{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "a-arrow-up",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "a-arrow-up-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 AArrowUpIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface AArrowUpIconProps 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 AArrowUpIcon = forwardRef<AArrowUpIconHandle, AArrowUpIconProps>(\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 groupControls = useAnimation();\n  const headControls = useAnimation();\n  const stemControls = useAnimation();\n  const diagControls = useAnimation();\n  const barControls = useAnimation();\n  const reduced = useReducedMotion();\n  const isControlled = useRef(false);\n\n  useImperativeHandle(ref, () => {\n   isControlled.current = true;\n   return {\n    startAnimation: () => {\n     if (reduced) {\n      groupControls.start(\"normal\");\n      headControls.start(\"normal\");\n      stemControls.start(\"normal\");\n      diagControls.start(\"normal\");\n      barControls.start(\"normal\");\n     } else {\n      groupControls.start(\"animate\");\n      headControls.start(\"animate\");\n      stemControls.start(\"animate\");\n      diagControls.start(\"animate\");\n      barControls.start(\"animate\");\n     }\n    },\n    stopAnimation: () => {\n     groupControls.start(\"normal\");\n     headControls.start(\"normal\");\n     stemControls.start(\"normal\");\n     diagControls.start(\"normal\");\n     barControls.start(\"normal\");\n    },\n   };\n  });\n\n  const handleEnter = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isAnimated || reduced) return;\n    if (!isControlled.current) {\n     groupControls.start(\"animate\");\n     headControls.start(\"animate\");\n     stemControls.start(\"animate\");\n     diagControls.start(\"animate\");\n     barControls.start(\"animate\");\n    } else onMouseEnter?.(e as any);\n   },\n   [\n    groupControls,\n    headControls,\n    stemControls,\n    diagControls,\n    barControls,\n    reduced,\n    onMouseEnter,\n    isAnimated,\n   ],\n  );\n\n  const handleLeave = useCallback(\n   (e?: React.MouseEvent<HTMLDivElement>) => {\n    if (!isControlled.current) {\n     groupControls.start(\"normal\");\n     headControls.start(\"normal\");\n     stemControls.start(\"normal\");\n     diagControls.start(\"normal\");\n     barControls.start(\"normal\");\n    } else onMouseLeave?.(e as any);\n   },\n   [\n    groupControls,\n    headControls,\n    stemControls,\n    diagControls,\n    barControls,\n    onMouseLeave,\n   ],\n  );\n\n  const groupVariants: Variants = {\n   normal: { scale: 1, rotate: 0 },\n   animate: {\n    scale: [1, 1.06, 0.98, 1],\n    rotate: [0, -1.5, 1, 0],\n    transition: {\n     duration: 0.85 * duration,\n     ease: [0.22, 0.9, 0.32, 1],\n    },\n   },\n  };\n\n  const headVariants: Variants = {\n   normal: { pathLength: 1, scale: 1, opacity: 1 },\n   animate: {\n    pathLength: [0, 1],\n    scale: [1, 1.12, 1],\n    opacity: [0.6, 1, 1],\n    transition: {\n     duration: 0.9 * duration,\n     ease: \"easeOut\",\n     delay: 0.06,\n    },\n   },\n  };\n\n  const stemVariants: Variants = {\n   normal: { pathLength: 1, opacity: 1, y: 0 },\n   animate: {\n    pathLength: [0, 1],\n    y: [6, 0],\n    opacity: [0, 1],\n    transition: {\n     duration: 0.8 * duration,\n     ease: \"easeOut\",\n     delay: 0.12,\n    },\n   },\n  };\n\n  const diagVariants: Variants = {\n   normal: { x: 0, opacity: 1 },\n   animate: {\n    x: [8, 0],\n    opacity: [0, 1],\n    transition: {\n     duration: 0.7 * duration,\n     ease: \"easeOut\",\n     delay: 0.02,\n    },\n   },\n  };\n\n  const barVariants: Variants = {\n   normal: { pathLength: 1, opacity: 1, scaleX: 1 },\n   animate: {\n    pathLength: [0, 1],\n    opacity: [0, 1],\n    scaleX: [0.9, 1],\n    transition: {\n     duration: 0.7 * duration,\n     ease: \"easeInOut\",\n     delay: 0.18,\n    },\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      initial=\"normal\"\n      animate={groupControls}\n      variants={groupVariants}\n     >\n      <m.path\n       d=\"m14 11 4-4 4 4\"\n       initial=\"normal\"\n       animate={headControls}\n       variants={headVariants}\n      />\n      <m.path\n       d=\"M18 16V7\"\n       initial=\"normal\"\n       animate={stemControls}\n       variants={stemVariants}\n      />\n      <m.path\n       d=\"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16\"\n       initial=\"normal\"\n       animate={diagControls}\n       variants={diagVariants}\n      />\n      <m.path\n       d=\"M3.304 13h6.392\"\n       initial=\"normal\"\n       animate={barControls}\n       variants={barVariants}\n      />\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nAArrowUpIcon.displayName = \"AArrowUpIcon\";\nexport { AArrowUpIcon };\n",
      "type": "registry:ui"
    }
  ]
}