{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "accessibility-icon",
  "dependencies": ["motion"],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "icons/accessibility-icon.tsx",
      "content": "import { forwardRef, useImperativeHandle, useRef } from \"react\";\nimport type {\n  AnimatedIconHandle,\n  AnimatedIconProps,\n  IconEasing,\n} from \"./types\";\nimport { motion, useAnimate } from \"motion/react\";\n\ntype CustomAnimation = {\n  rotateFrom: number;\n  rotateTo: number;\n  duration: number;\n  ease: IconEasing;\n  personDuration: number;\n  personEase: IconEasing;\n  exitDuration: number;\n};\n\nconst AccessibilityIcon = forwardRef<\n  AnimatedIconHandle,\n  AnimatedIconProps & CustomAnimation\n>(\n  (\n    {\n      size = 24,\n      color = \"currentColor\",\n      strokeWidth = 2,\n      className = \"\",\n      rotateFrom = 0,\n      rotateTo = 360,\n      duration = 1,\n      ease = \"easeInOut\",\n      personDuration = 0.6,\n      personEase = \"easeInOut\",\n      exitDuration = 0.3,\n    },\n    ref,\n  ) => {\n    const [scope, animate] = useAnimate();\n    const animationControls = useRef<Array<ReturnType<typeof animate>>>([]);\n\n    const start = async () => {\n      animationControls.current.forEach((control) => control.stop());\n      animationControls.current = [];\n\n      animationControls.current.push(\n        animate(\n          \".wheel\",\n          { rotate: [rotateFrom, rotateTo] },\n          { duration: duration, ease: ease, repeat: Infinity },\n        ),\n      );\n      animate(\n        \".person\",\n        { y: [0, -2, 0] },\n        { duration: personDuration, ease: personEase },\n      );\n    };\n\n    const stop = () => {\n      animationControls.current.forEach((control) => control.stop());\n      animationControls.current = [];\n\n      animate(\".wheel\", { rotate: 0 }, { duration: exitDuration });\n      animate(\".person\", { y: 0 }, { duration: exitDuration });\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.svg\n        ref={scope}\n        onHoverStart={handleHoverStart}\n        onHoverEnd={handleHoverEnd}\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={color}\n        strokeWidth={strokeWidth}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className={`cursor-pointer ${className} `}\n      >\n        <motion.circle className=\"person\" cx=\"16\" cy=\"4\" r=\"1\" />\n        <motion.path className=\"person\" d=\"m18 19 1-7-6 1\" />\n        <motion.path className=\"person\" d=\"m5 8 3-3 5.5 3-2.36 3.5\" />\n        <motion.g className=\"wheel\" style={{ transformOrigin: \"8.5px 17.5px\" }}>\n          <path d=\"M4.24 14.5a5 5 0 0 0 6.88 6\" />\n          <path d=\"M13.76 17.5a5 5 0 0 0-6.88-6\" />\n        </motion.g>\n      </motion.svg>\n    );\n  },\n);\n\nAccessibilityIcon.displayName = \"AccessibilityIcon\";\n\nexport default AccessibilityIcon;\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"
}
