{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "battery-charging-icon",
  "dependencies": ["motion"],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "icons/battery-charging-icon.tsx",
      "content": "\"use client\";\nimport { forwardRef, useImperativeHandle, useEffect } from \"react\";\nimport type { AnimatedIconHandle, AnimatedIconProps } from \"./types\";\nimport { motion, useAnimate } from \"motion/react\";\n\nconst BatteryChargingIcon = forwardRef<AnimatedIconHandle, AnimatedIconProps>(\n  (\n    { size = 24, color = \"currentColor\", strokeWidth = 2.5, className = \"\" },\n    ref,\n  ) => {\n    const [scope, animate] = useAnimate();\n\n    useEffect(() => {\n      animate(\".battery-bar-1\", { opacity: 0 }, { duration: 0 });\n      animate(\".battery-bar-2\", { opacity: 0 }, { duration: 0 });\n      animate(\".battery-bar-3\", { opacity: 0 }, { duration: 0 });\n      animate(\".battery-bar-4\", { opacity: 0 }, { duration: 0 });\n    }, [animate]);\n\n    const start = async () => {\n      await animate(\n        \".battery-bar-1\",\n        { opacity: 1 },\n        { duration: 0.15, ease: \"easeOut\" },\n      );\n\n      await animate(\n        \".battery-bar-2\",\n        { opacity: 1 },\n        { duration: 0.15, ease: \"easeOut\" },\n      );\n\n      await animate(\n        \".battery-bar-3\",\n        { opacity: 1 },\n        { duration: 0.15, ease: \"easeOut\" },\n      );\n\n      await animate(\n        \".battery-bar-4\",\n        { opacity: 1 },\n        { duration: 0.15, ease: \"easeOut\" },\n      );\n    };\n\n    const stop = async () => {\n      await animate(\n        \".battery-bar-1, .battery-bar-2, .battery-bar-3, .battery-bar-4\",\n        { opacity: 0 },\n        { duration: 0.2, ease: \"easeInOut\" },\n      );\n    };\n\n    useImperativeHandle(ref, () => {\n      return {\n        startAnimation: start,\n        stopAnimation: stop,\n      };\n    });\n\n    const handleHoverStart = () => {\n      start();\n    };\n\n    const handleHoverEnd = () => {\n      stop();\n    };\n\n    return (\n      <motion.div\n        ref={scope}\n        onHoverStart={handleHoverStart}\n        onHoverEnd={handleHoverEnd}\n        className={`inline-flex cursor-pointer ${className}`}\n      >\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          width={size}\n          height={size}\n          viewBox=\"0 0 48 48\"\n          fill=\"none\"\n          stroke={color}\n          strokeWidth={strokeWidth}\n          strokeLinecap=\"square\"\n        >\n          <motion.path\n            initial={{\n              opacity: 0,\n            }}\n            className=\"battery-bar-1\"\n            d=\"M10 31V17\"\n          />\n          <motion.path\n            initial={{\n              opacity: 0,\n            }}\n            className=\"battery-bar-2\"\n            d=\"M17 31V17\"\n          />\n          <motion.path\n            initial={{\n              opacity: 0,\n            }}\n            className=\"battery-bar-3\"\n            d=\"M24 31V17\"\n          />\n          <motion.path\n            initial={{\n              opacity: 0,\n            }}\n            className=\"battery-bar-4\"\n            d=\"M31 31V17\"\n          />\n\n          <motion.path d=\"M46 20V28\" />\n\n          <motion.path d=\"M37 10H8C5.2386 10 3 12.2386 3 15V33C3 35.7614 5.2386 38 8 38H37C39.7614 38 42 35.7614 42 33V15C42 12.2386 39.7614 10 37 10Z\" />\n        </svg>\n      </motion.div>\n    );\n  },\n);\n\nBatteryChargingIcon.displayName = \"BatteryChargingIcon\";\n\nexport default BatteryChargingIcon;\n",
      "type": "registry:ui"
    },
    {
      "path": "icons/types.ts",
      "content": "import type { SVGProps } from \"react\";\n\n/** Standard stroke width for 24×24 outline icons */\nexport const DEFAULT_STROKE_WIDTH = 2;\n\n/** Scale stroke to match DEFAULT_STROKE_WIDTH on non-24 viewBoxes */\nexport function scaledStrokeWidth(\n  strokeWidth: number,\n  viewBoxSize: number,\n): number {\n  return strokeWidth * (viewBoxSize / 24);\n}\n\nexport type IconEasing =\n  | \"linear\"\n  | \"easeIn\"\n  | \"easeOut\"\n  | \"easeInOut\"\n  | \"circIn\"\n  | \"circOut\"\n  | \"circInOut\"\n  | \"backIn\"\n  | \"backOut\"\n  | \"backInOut\"\n  | \"anticipate\";\n\nexport interface AnimatedIconProps extends Omit<\n  SVGProps<SVGSVGElement>,\n  | \"ref\"\n  | \"onAnimationStart\"\n  | \"onAnimationEnd\"\n  | \"onAnimationIteration\"\n  | \"onDrag\"\n  | \"onDragEnd\"\n  | \"onDragEnter\"\n  | \"onDragExit\"\n  | \"onDragLeave\"\n  | \"onDragOver\"\n  | \"onDragStart\"\n  | \"onDrop\"\n  | \"values\"\n> {\n  /** Icon size in pixels or CSS string */\n  size?: number | string;\n  /** Icon color (defaults to currentColor) */\n  color?: string;\n  /** SVG stroke width */\n  strokeWidth?: number;\n  /** Additional CSS classes */\n  className?: string;\n}\n\nexport interface AnimatedIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}
