{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "mail-open",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "mail-open-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 useId,\n useRef,\n type HTMLAttributes,\n} from \"react\";\nexport interface MailOpenIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface MailOpenIconProps 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 MailOpenIcon = forwardRef<MailOpenIconHandle, MailOpenIconProps>(\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 clipId = useId().replace(/:/g, \"\");\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) {\n     controls.start(\"normal\");\n    } else {\n     onMouseLeave?.(e as any);\n    }\n   },\n   [controls, onMouseLeave],\n  );\n\n  const paperVariants: Variants = {\n   normal: { y: 14, opacity: 0, transition: { duration: 0 } },\n   animate: {\n    y: [-9, 0, 14],\n    opacity: [0, 1, 1],\n    transition: {\n     y: { duration: 0.8 * duration, ease: \"easeInOut\", times: [0, 0.4, 1] },\n     opacity: {\n      duration: 0.8 * duration,\n      ease: \"easeOut\",\n      times: [0, 0.25, 1],\n     },\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      animate={controls}\n      initial=\"normal\"\n     >\n      <defs>\n       <clipPath id={clipId}>\n        <path d=\"M-2 -20H26V10H22l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10H-2Z\" />\n       </clipPath>\n      </defs>\n      <g clipPath={`url(#${clipId})`}>\n       <m.g variants={paperVariants} strokeWidth=\"1.5\">\n        <rect x=\"7\" y=\"4\" width=\"10\" height=\"9.5\" rx=\"1\" />\n        <path d=\"M9.5 7.3h5\" />\n        <path d=\"M9.5 10.3h3\" />\n       </m.g>\n      </g>\n      <path d=\"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6\" />\n      <path d=\"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10\" />\n      <path d=\"M2.8 8.4 10.8 2.4a2 2 0 0 1 2.4 0L21.2 8.4\" />\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nMailOpenIcon.displayName = \"MailOpenIcon\";\nexport { MailOpenIcon };\n",
      "type": "registry:ui"
    }
  ]
}