{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "clipboard-document-list",
  "title": "clipboard-document-list",
  "description": "Animated clipboard-document-list icon for React",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "files": [
    {
      "path": "clipboard-document-list.tsx",
      "content": "\"use client\";\n\nimport type { Variants } from \"motion/react\";\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface ClipboardDocumentListIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface ClipboardDocumentListIconProps\n  extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst DOT_DURATION = 0.1;\nconst LINE_DURATION = 0.3;\n\nconst CREATE_DOT_VARIANTS = (delay: number): Variants => ({\n  normal: {\n    opacity: 1,\n  },\n  animate: {\n    opacity: [0, 1],\n    transition: {\n      duration: DOT_DURATION,\n      ease: \"easeInOut\",\n      delay,\n    },\n  },\n});\n\nconst CREATE_LINE_VARIANTS = (delay: number): Variants => ({\n  normal: {\n    pathLength: 1,\n    opacity: 1,\n  },\n  animate: {\n    pathLength: [0, 1],\n    opacity: [0, 1],\n    transition: {\n      pathLength: { duration: LINE_DURATION, ease: \"easeInOut\", delay },\n      opacity: { duration: LINE_DURATION, ease: \"easeInOut\", delay },\n    },\n  },\n});\n\nconst LIST_ITEMS = [\n  { y: 12, dotPath: \"M6.75 12h.008v.008H6.75V12Z\", linePath: \"M9 12h3.75\" },\n  { y: 15, dotPath: \"M6.75 15h.008v.008H6.75V15Z\", linePath: \"M9 15h3.75\" },\n  { y: 18, dotPath: \"M6.75 18h.008v.008H6.75V18Z\", linePath: \"M9 18h3.75\" },\n] as const;\n\nconst ClipboardDocumentListIcon = forwardRef<\n  ClipboardDocumentListIconHandle,\n  ClipboardDocumentListIconProps\n>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n  const controls = useAnimation();\n  const isControlledRef = useRef(false);\n\n  useImperativeHandle(ref, () => {\n    isControlledRef.current = true;\n\n    return {\n      startAnimation: () => controls.start(\"animate\"),\n      stopAnimation: () => controls.start(\"normal\"),\n    };\n  });\n\n  const handleMouseEnter = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseEnter?.(e);\n      } else {\n        controls.start(\"animate\");\n      }\n    },\n    [controls, onMouseEnter]\n  );\n\n  const handleMouseLeave = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseLeave?.(e);\n      } else {\n        controls.start(\"normal\");\n      }\n    },\n    [controls, onMouseLeave]\n  );\n\n  return (\n    <div\n      className={cn(className)}\n      onMouseEnter={handleMouseEnter}\n      onMouseLeave={handleMouseLeave}\n      {...props}\n    >\n      <svg\n        fill=\"none\"\n        height={size}\n        stroke=\"currentColor\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeWidth=\"1.5\"\n        viewBox=\"0 0 24 24\"\n        width={size}\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path d=\"M15.75 18.75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25Z\" />\n        {LIST_ITEMS.map((item, index) => {\n          const dotDelay = index * (DOT_DURATION + LINE_DURATION);\n          const lineDelay = dotDelay + DOT_DURATION;\n\n          return (\n            <g key={item.y}>\n              <motion.path\n                animate={controls}\n                d={item.dotPath}\n                initial=\"normal\"\n                variants={CREATE_DOT_VARIANTS(dotDelay)}\n              />\n              <motion.path\n                animate={controls}\n                d={item.linePath}\n                initial=\"normal\"\n                variants={CREATE_LINE_VARIANTS(lineDelay)}\n              />\n            </g>\n          );\n        })}\n      </svg>\n    </div>\n  );\n});\n\nClipboardDocumentListIcon.displayName = \"ClipboardDocumentListIcon\";\n\nexport { ClipboardDocumentListIcon };\n",
      "type": "registry:ui"
    }
  ]
}
