{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-hugeicons-cloud-sun-rain",
  "type": "registry:ui",
  "title": "Cloud Sun Rain Icon",
  "description": "Cloud sun rain icon component.",
  "dependencies": [
    "@animate-ui/react",
    "motion"
  ],
  "files": [
    {
      "path": "registry/hugeicons/cloud-sun-rain/index.tsx",
      "type": "registry:ui",
      "target": "@components/animate-ui/icons/hugeicons/cloud-sun-rain.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 CloudSunRainProps = IconProps<keyof typeof animations>;\n\nconst rainAnimation: Variants = {\n  initial: { y: 0, opacity: 1 },\n  animate: (i: number = 0) => ({\n    y: [0, 1, -1, 0],\n    opacity: [1, 0, 0, 1],\n    transition: {\n      duration: 0.8,\n      times: [0, 0.4, 0.4, 1],\n      ease: ['easeIn', 'linear', 'easeOut'],\n      repeat: Infinity,\n      delay: i * 0.3,\n    },\n  }),\n};\n\nconst animations = {\n  default: (() => {\n    const animation: Record<string, Variants> = {\n      path1: {},\n      path2: {},\n      group: {},\n      path3: rainAnimation,\n      path4: rainAnimation,\n    };\n\n    for (let i = 1; i <= 4; 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 }: CloudSunRainProps) {\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.3686 13C17.4509 12.6804 17.4946 12.3453 17.4946 12C17.4946 9.79086 15.7038 8 13.4946 8C12.7915 8 12.1308 8.18142 11.5566 8.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.path1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M4 20.6792C2.81753 20.1442 2 18.9964 2 17.6667C2 15.9336 3.38879 14.5094 5.1643 14.3485C5.33363 12.4724 6.98627 11 9 11C11.1263 11 12.85 12.6416 12.85 14.6667C12.85 14.779 12.8447 14.8902 12.8343 15C12.8395 15 12.8448 15 12.85 15C14.5897 15 16 16.3431 16 18C16 19.2703 15.1709 20.3563 14 20.7938\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.path2}\n        initial=\"initial\"\n        animate={controls}\n      />\n\n      <motion.g variants={variants.group} initial=\"initial\" animate={controls}>\n        <motion.path\n          d=\"M7 18V20\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          variants={variants.path3}\n          custom={0}\n          initial=\"initial\"\n          animate={controls}\n        />\n        <motion.path\n          d=\"M11 19V21\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          variants={variants.path4}\n          custom={1}\n          initial=\"initial\"\n          animate={controls}\n        />\n      </motion.g>\n\n      <motion.path\n        d=\"M8.19929 6.19343L7.49218 5.48633\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M13.494 4L13.494 3\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line2}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M18.7988 6.19328L19.5059 5.48617\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line3}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        d=\"M20.999 11.495L21.999 11.495\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        variants={variants.line4}\n        initial=\"initial\"\n        animate={controls}\n      />\n    </motion.svg>\n  );\n}\n\nfunction CloudSunRain(props: CloudSunRainProps) {\n  return <IconWrapper icon={IconComponent} {...props} />;\n}\n\nexport {\n  animations,\n  CloudSunRain,\n  CloudSunRain as CloudSunRainIcon,\n  type CloudSunRainProps,\n  type CloudSunRainProps as CloudSunRainIconProps,\n};\n"
    }
  ],
  "meta": {
    "keywords": [
      "weather",
      "partly",
      "rainfall"
    ]
  }
}