{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "queue-list",
  "title": "queue-list",
  "description": "Animated queue-list icon for React",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "files": [
    {
      "path": "queue-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 QueueListIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface QueueListIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst ITEM_DURATION = 0.2;\nconst INITIAL_DELAY = 0.1;\nconst STAGGER_DELAY = 0.15;\n\nconst CREATE_ITEM_VARIANTS = (delay: number): Variants => ({\n  normal: {\n    opacity: 1,\n  },\n  animate: {\n    opacity: [0, 1],\n    transition: {\n      duration: ITEM_DURATION,\n      ease: \"easeOut\",\n      delay,\n    },\n  },\n});\n\nconst LIST_ITEMS = [\n  { y: 19.5, path: \"M3.75 19.5H20.25\" },\n  { y: 15.75, path: \"M3.75 15.75H20.25\" },\n  { y: 12, path: \"M3.75 12H20.25\" },\n] as const;\n\nconst QueueListIcon = forwardRef<QueueListIconHandle, QueueListIconProps>(\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=\"M5.625 4.5H18.375C19.4105 4.5 20.25 5.33947 20.25 6.375C20.25 7.41053 19.4105 8.25 18.375 8.25H5.625C4.58947 8.25 3.75 7.41053 3.75 6.375C3.75 5.33947 4.58947 4.5 5.625 4.5Z\" />\n          {LIST_ITEMS.map((item, index) => {\n            const delay =\n              INITIAL_DELAY + (LIST_ITEMS.length - 1 - index) * STAGGER_DELAY;\n            return (\n              <motion.path\n                animate={controls}\n                d={item.path}\n                initial=\"normal\"\n                key={item.y}\n                variants={CREATE_ITEM_VARIANTS(delay)}\n              />\n            );\n          })}\n        </svg>\n      </div>\n    );\n  }\n);\n\nQueueListIcon.displayName = \"QueueListIcon\";\n\nexport { QueueListIcon };\n",
      "type": "registry:ui"
    }
  ]
}
