{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "waves-arrow-down",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "waves-arrow-down.tsx",
      "content": "\"use client\";\n\nimport { motion, useAnimation, type Variants } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface WavesArrowDownIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface WavesArrowDownIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst HEAD_VARIANTS: Variants = {\n  normal: {\n    translateY: 0,\n  },\n  animate: {\n    translateY: [0, 3, 0],\n    transition: {\n      duration: 0.5,\n      ease: \"easeInOut\",\n    },\n  },\n};\n\nconst SHAFT_VARIANTS: Variants = {\n  normal: {\n    translateX: 0,\n    translateY: 0,\n    scale: 1,\n  },\n  animate: {\n    translateY: [0, 3, 0],\n    scale: [1, 0.85, 1],\n    originX: 1,\n    originY: 1,\n    transition: {\n      duration: 0.5,\n      ease: \"easeInOut\",\n    },\n  },\n};\n\nconst WavesArrowDownIcon = forwardRef<\n  WavesArrowDownIconHandle,\n  WavesArrowDownIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const controls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = true;\n    return {\n      startAnimation: () => controls.start(\"animate\"),\n      stopAnimation: () => controls.start(\"normal\"),\n    };\n  });\n\n  const handleMouseEnter = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseEnter?.(e);\n      } else {\n        controls.start(\"animate\");\n      }\n    },\n    [controls, onMouseEnter]\n  );\n\n  const handleMouseLeave = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseLeave?.(e);\n      } else {\n        controls.start(\"normal\");\n      }\n    },\n    [controls, onMouseLeave]\n  );\n\n  return (\n    <div\n      className={cn(className)}\n      onMouseEnter={handleMouseEnter}\n      onMouseLeave={handleMouseLeave}\n      {...props}\n    >\n      <motion.svg\n        fill=\"none\"\n        height={size}\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"2\"\n        style={{ overflow: \"visible\" }}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <motion.path\n          animate={controls}\n          d=\"M12 10L12 2\"\n          initial=\"normal\"\n          variants={SHAFT_VARIANTS}\n        />\n        <motion.path\n          animate={controls}\n          d=\"M16 6L12 10L8 6\"\n          initial=\"normal\"\n          variants={HEAD_VARIANTS}\n        />\n        <path d=\"M2 15C2.6 15.5 3.2 16 4.5 16C7 16 7 14 9.5 14C12.1 14 11.9 16 14.5 16C17 16 17 14 19.5 14C20.8 14 21.4 14.5 22 15\" />\n        <path d=\"M2 21C2.6 21.5 3.2 22 4.5 22C7 22 7 20 9.5 20C12.1 20 11.9 22 14.5 22C17 22 17 20 19.5 20C20.8 20 21.4 20.5 22 21\" />\n      </motion.svg>\n    </div>\n  );\n});\n\nWavesArrowDownIcon.displayName = \"WavesArrowDownIcon\";\n\nexport { WavesArrowDownIcon };\n",
      "type": "registry:ui"
    }
  ]
}
