{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-hugeicons-sun-moon",
  "type": "registry:ui",
  "title": "Sun Moon Icon",
  "description": "Sun moon icon component.",
  "dependencies": [
    "@animate-ui/react",
    "motion"
  ],
  "files": [
    {
      "path": "registry/hugeicons/sun-moon/index.tsx",
      "type": "registry:ui",
      "target": "@components/animate-ui/icons/hugeicons/sun-moon.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\nimport { motion, type Variants } from 'motion/react';\n\nimport {\n  getVariants,\n  useAnimateIconContext,\n  IconWrapper,\n  type IconProps,\n} from '@animate-ui/react/icons';\n\ntype SunMoonProps = IconProps<keyof typeof animations>;\n\nconst animations = {\n  default: (() => {\n    const animation: Record<string, Variants> = {\n      path1: {\n        initial: {\n          rotate: 0,\n        },\n        animate: {\n          rotate: [0, -10, 10, 0],\n          transition: {\n            duration: 0.6,\n            ease: 'easeInOut',\n          },\n        },\n      },\n      path2: {},\n    };\n\n    for (let i = 1; i <= 3; i++) {\n      animation[`line${i}`] = {\n        initial: { opacity: 1, scale: 1, pathLength: 1 },\n        animate: {\n          opacity: [0, 1],\n          pathLength: [0, 1],\n          transition: {\n            duration: 0.6,\n            ease: 'easeInOut',\n            delay: (i - 1) * 0.15,\n          },\n        },\n      };\n    }\n\n    return animation;\n  })() satisfies Record<string, Variants>,\n} as const;\n\nfunction IconComponent({ size, ...props }: SunMoonProps) {\n  const { controls } = useAnimateIconContext();\n  const variants = getVariants(animations);\n\n  return (\n    <motion.svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth={2}\n      initial=\"initial\"\n      animate={controls}\n      {...props}\n    >\n      <motion.path\n        d=\"M17 16.5314C16.116 17.0034 15.1064 17.271 14.0343 17.271C10.552 17.271 7.72899 14.448 7.72899 10.9657C7.72899 9.89358 7.99657 8.88398 8.46857 8C5.33406 8.73462 3 11.548 3 14.9065C3 18.8241 6.17586 22 10.0935 22C13.452 22 16.2654 19.6659 17 16.5314Z\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.path1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M16.5 11.5C16.5 9.567 14.933 8 13 8\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.path2}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M13.5 4.5L13.5 2.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M18.0028 5.99902L19.5018 4.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line2}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M19.502 10.5L21.5018 10.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line3}\n        initial=\"initial\"\n        animate={controls}\n      />\n    </motion.svg>\n  );\n}\n\nfunction SunMoon(props: SunMoonProps) {\n  return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n  animations,\n  SunMoon,\n  SunMoon as SunMoonIcon,\n  type SunMoonProps,\n  type SunMoonProps as SunMoonIconProps,\n};\n"
    }
  ],
  "meta": {
    "keywords": [
      "dark",
      "light",
      "moon",
      "sun",
      "brightness",
      "theme",
      "auto theme",
      "system theme",
      "appearance"
    ]
  }
}