{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bell-electric",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "bell-electric.tsx",
      "content": "\"use client\";\n\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface BellElectricIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface BellElectricIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst BellElectricIcon = forwardRef<\n  BellElectricIconHandle,\n  BellElectricIconProps\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        animate={controls}\n        fill=\"none\"\n        height={size}\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"2\"\n        style={{ transformBox: \"fill-box\", transformOrigin: \"50% 50%\" }}\n        transition={{ duration: 0.9 }}\n        variants={{\n          normal: { rotate: 0, translateX: 0, translateY: 0 },\n          animate: {\n            rotate: [0, -12, 12, -8, 8, 0],\n            translateX: [0, -1.5, 1.5, -1, 1, 0],\n            translateY: [0, -1, 1, -0.5, 0.5, 0],\n          },\n        }}\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path d=\"M18.518 17.347A7 7 0 0 1 14 19\" />\n        <motion.path\n          animate={controls}\n          d=\"M18.8 4A11 11 0 0 1 20 9\"\n          style={{ transformBox: \"fill-box\", originX: \"50%\", originY: \"50%\" }}\n          transition={{ duration: 0.9 }}\n          variants={{\n            normal: { translateX: 0, translateY: 0, rotate: 0 },\n            animate: {\n              translateX: [0, -0.8, 0.8, -0.6, 0.6, 0],\n              translateY: [0, -0.5, 0.5, -0.3, 0.3, 0],\n              rotate: [0, -6, 6, -4, 4, 0],\n            },\n          }}\n        />\n        <motion.path\n          animate={controls}\n          d=\"M9 9h.01\"\n          style={{ transformBox: \"fill-box\", originX: \"50%\", originY: \"50%\" }}\n          transition={{ duration: 0.75 }}\n          variants={{\n            normal: { translateX: 0, translateY: 0, rotate: 0, scale: 1 },\n            animate: {\n              translateX: [0, -1.6, 1.6, -1.2, 1.2, 0],\n              translateY: [0, -1.2, 1.2, -0.8, 0.8, 0],\n              rotate: [0, -10, 10, -7, 7, 0],\n              scale: [1, 1.08, 0.95, 1.06, 0.98, 1],\n            },\n          }}\n        />\n        <circle cx=\"9\" cy=\"9\" r=\"7\" />\n        <rect height=\"6\" rx=\"2\" width=\"10\" x=\"4\" y=\"16\" />\n        <circle cx=\"20\" cy=\"16\" r=\"2\" />\n      </motion.svg>\n    </div>\n  );\n});\n\nBellElectricIcon.displayName = \"BellElectricIcon\";\n\nexport { BellElectricIcon };\n",
      "type": "registry:ui"
    }
  ]
}
