{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "newspaper",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "newspaper-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 NewspaperIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface NewspaperIconProps 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 NewspaperIcon = forwardRef<NewspaperIconHandle, NewspaperIconProps>(\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 drawVariants = (delay: number): Variants => ({\n   normal: { scaleX: 1 },\n   animate: {\n    scaleX: [0, 1],\n    transition: {\n     duration: 0.35 * duration,\n     ease: \"easeOut\",\n     delay: delay * duration,\n    },\n   },\n  });\n\n  const columnVariants: Variants = {\n   normal: { scaleY: 1 },\n   animate: {\n    scaleY: [0, 1],\n    transition: {\n     duration: 0.35 * duration,\n     ease: \"easeOut\",\n     delay: 0.36 * duration,\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      <path d=\"M19.4922 21H7.49219C5.13516 21 3.95665 21 3.22442 20.2678C2.49219 19.5355 2.49219 18.357 2.49219 16V8C2.49219 5.64298 2.49219 4.46447 3.22442 3.73223C3.95665 3 5.13516 3 7.49219 3H12.4922C14.8492 3 16.0277 3 16.76 3.73223C17.4922 4.46447 17.4922 5.64298 17.4922 8\" />\n      <m.path\n       d=\"M11.9922 6H7.99219C7.04938 6 6.57797 6 6.28508 6.29289C5.99219 6.58579 5.99219 7.05719 5.99219 8C5.99219 8.94281 5.99219 9.41421 6.28508 9.70711C6.57797 10 7.04938 10 7.99219 10H11.9922C12.935 10 13.4064 10 13.6993 9.70711C13.9922 9.41421 13.9922 8.94281 13.9922 8C13.9922 7.05719 13.9922 6.58579 13.6993 6.29289C13.4064 6 12.935 6 11.9922 6Z\"\n       variants={drawVariants(0)}\n       style={{ transformBox: \"view-box\", originX: \"6px\", originY: \"8px\" }}\n      />\n      <m.path\n       d=\"M5.99219 14L13.9922 14\"\n       variants={drawVariants(0.12)}\n       style={{ transformBox: \"view-box\", originX: \"6px\", originY: \"14px\" }}\n      />\n      <m.path\n       d=\"M5.99219 18H10.9922\"\n       variants={drawVariants(0.24)}\n       style={{ transformBox: \"view-box\", originX: \"6px\", originY: \"18px\" }}\n      />\n      <m.path\n       d=\"M17.4922 8H18.4922C19.9064 8 20.6135 8 21.0528 8.43934C21.4922 8.87868 21.4922 9.58579 21.4922 11V19C21.4922 20.1046 20.5968 21 19.4922 21C18.3876 21 17.4922 20.1046 17.4922 19V8Z\"\n       variants={columnVariants}\n       style={{ transformBox: \"view-box\", originX: \"19.5px\", originY: \"8px\" }}\n      />\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nNewspaperIcon.displayName = \"NewspaperIcon\";\nexport { NewspaperIcon };\n",
      "type": "registry:ui"
    }
  ]
}