{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "discount-tag-0-1",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "discount-tag-0-1-icon.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport type { Variants } from \"motion/react\";\nimport {\n LazyMotion,\n domMin,\n m,\n useAnimation,\n useReducedMotion,\n} from \"motion/react\";\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useRef,\n type HTMLAttributes,\n} from \"react\";\nexport interface DiscountTag01IconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface DiscountTag01IconProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n | \"color\"\n | \"onDrag\"\n | \"onDragStart\"\n | \"onDragEnd\"\n | \"onAnimationStart\"\n | \"onAnimationEnd\"\n | \"onAnimationIteration\"\n> {\n size?: number;\n duration?: number;\n isAnimated?: boolean;\n color?: string;\n}\n\nconst DiscountTag01Icon = forwardRef<\n DiscountTag01IconHandle,\n DiscountTag01IconProps\n>(\n (\n  {\n   onMouseEnter,\n   onMouseLeave,\n   className,\n   size = 24,\n   duration = 1,\n   isAnimated = true,\n   color,\n   ...props\n  },\n  ref,\n ) => {\n  const controls = useAnimation();\n  const reduced = useReducedMotion();\n  const isControlled = useRef(false);\n\n  useImperativeHandle(ref, () => {\n   isControlled.current = true;\n   return {\n    startAnimation: () =>\n     reduced ? controls.start(\"normal\") : controls.start(\"animate\"),\n    stopAnimation: () => controls.start(\"normal\"),\n   };\n  });\n\n  const handleEnter = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isAnimated || reduced) return;\n    if (!isControlled.current) controls.start(\"animate\");\n    else onMouseEnter?.(e as any);\n   },\n   [controls, reduced, isAnimated, onMouseEnter],\n  );\n\n  const handleLeave = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isControlled.current) controls.start(\"normal\");\n    else onMouseLeave?.(e as any);\n   },\n   [controls, onMouseLeave],\n  );\n\n  const swingVariants: Variants = {\n   normal: { rotate: 0 },\n   animate: {\n    rotate: [0, -12, 8, -3, 0],\n    transition: { duration: 0.8 * duration, ease: \"easeInOut\" },\n   },\n  };\n\n  return (\n   <LazyMotion features={domMin} strict>\n    <m.div\n     className={cn(\"inline-flex items-center justify-center\", className)}\n     onMouseEnter={handleEnter}\n     onMouseLeave={handleLeave}\n     {...props}\n     style={{ color, ...props.style }}\n    >\n     <m.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      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      animate={controls}\n      initial=\"normal\"\n     >\n      <m.g\n       variants={swingVariants}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"2px\" }}\n      >\n       <path d=\"M17.2426 6.24264L13.7071 2.70711C13.2544 2.25435 12.6403 2 12 2C11.3597 2 10.7456 2.25435 10.2929 2.70711L6.75736 6.24264C5.89027 7.10973 5.45672 7.54328 5.22836 8.09459C5 8.6459 5 9.25903 5 10.4853V16C5 18.8284 5 20.2426 5.87868 21.1213C6.75736 22 8.17157 22 11 22H13C15.8284 22 17.2426 22 18.1213 21.1213C19 20.2426 19 18.8284 19 16V10.4853C19 9.25903 19 8.6459 18.7716 8.09459C18.5433 7.54328 18.1097 7.10973 17.2426 6.24264Z\" />\n       <path d=\"M12.25 7H12M12.5 7C12.5 7.27614 12.2761 7.5 12 7.5C11.7239 7.5 11.5 7.27614 11.5 7C11.5 6.72386 11.7239 6.5 12 6.5C12.2761 6.5 12.5 6.72386 12.5 7Z\" />\n       <path d=\"M14.5 13L9.5 18\" />\n       <path d=\"M9.875 13.25H9.75M10 13.25C10 13.3881 9.88807 13.5 9.75 13.5C9.61193 13.5 9.5 13.3881 9.5 13.25C9.5 13.1119 9.61193 13 9.75 13C9.88807 13 10 13.1119 10 13.25Z\" />\n       <path d=\"M14.375 17.75H14.25M14.5 17.75C14.5 17.8881 14.3881 18 14.25 18C14.1119 18 14 17.8881 14 17.75C14 17.6119 14.1119 17.5 14.25 17.5C14.3881 17.5 14.5 17.6119 14.5 17.75Z\" />\n      </m.g>\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nDiscountTag01Icon.displayName = \"DiscountTag01Icon\";\nexport { DiscountTag01Icon };\n",
      "type": "registry:ui"
    }
  ]
}