{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "layout-list",
  "type": "registry:ui",
  "addGlobalCss": false,
  "registryDependencies": [],
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "files": [
    {
      "path": "layout-list-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 LayoutListIconHandle {\n startAnimation: () => void;\n stopAnimation: () => void;\n}\n\ninterface LayoutListIconProps 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 LayoutListIcon = forwardRef<LayoutListIconHandle, LayoutListIconProps>(\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 lineVariants = (delay: number): Variants => ({\n   normal: { scaleX: 1 },\n   animate: {\n    scaleX: [1, 0.5, 1],\n    transition: {\n     duration: 0.5 * duration,\n     ease: \"easeInOut\",\n     times: [0, 0.4, 1],\n     delay: delay * duration,\n    },\n   },\n  });\n\n  const tileVariants = (delay: number): Variants => ({\n   normal: { scale: 1 },\n   animate: {\n    scale: [1, 0.85, 1.05, 1],\n    transition: {\n     duration: 0.5 * duration,\n     ease: \"easeInOut\",\n     times: [0, 0.35, 0.7, 1],\n     delay: delay * 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      <m.path\n       d=\"M11.996 5H21.996\"\n       variants={lineVariants(0)}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"5px\" }}\n      />\n      <m.path\n       d=\"M11.996 9H17.996\"\n       variants={lineVariants(0.06)}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"9px\" }}\n      />\n      <m.path\n       d=\"M11.996 15H21.996\"\n       variants={lineVariants(0.15)}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"15px\" }}\n      />\n      <m.path\n       d=\"M11.996 19H17.996\"\n       variants={lineVariants(0.21)}\n       style={{ transformBox: \"view-box\", originX: \"12px\", originY: \"19px\" }}\n      />\n      <m.path\n       d=\"M1.99603 7C1.99603 6.06812 1.99603 5.60218 2.14827 5.23463C2.35126 4.74458 2.74061 4.35523 3.23067 4.15224C3.59821 4 4.06415 4 4.99603 4C5.92792 4 6.39386 4 6.7614 4.15224C7.25146 4.35523 7.6408 4.74458 7.84379 5.23463C7.99603 5.60218 7.99603 6.06812 7.99603 7C7.99603 7.93188 7.99603 8.39782 7.84379 8.76537C7.6408 9.25542 7.25146 9.64477 6.7614 9.84776C6.39386 10 5.92792 10 4.99603 10C4.06415 10 3.59821 10 3.23067 9.84776C2.74061 9.64477 2.35126 9.25542 2.14827 8.76537C1.99603 8.39782 1.99603 7.93188 1.99603 7Z\"\n       variants={tileVariants(0)}\n       style={{ transformBox: \"view-box\", originX: \"5px\", originY: \"7px\" }}\n      />\n      <m.path\n       d=\"M1.99603 17C1.99603 16.0681 1.99603 15.6022 2.14827 15.2346C2.35126 14.7446 2.74061 14.3552 3.23067 14.1522C3.59821 14 4.06415 14 4.99603 14C5.92792 14 6.39386 14 6.7614 14.1522C7.25146 14.3552 7.6408 14.7446 7.84379 15.2346C7.99603 15.6022 7.99603 16.0681 7.99603 17C7.99603 17.9319 7.99603 18.3978 7.84379 18.7654C7.6408 19.2554 7.25146 19.6448 6.7614 19.8478C6.39386 20 5.92792 20 4.99603 20C4.06415 20 3.59821 20 3.23067 19.8478C2.74061 19.6448 2.35126 19.2554 2.14827 18.7654C1.99603 18.3978 1.99603 17.9319 1.99603 17Z\"\n       variants={tileVariants(0.15)}\n       style={{ transformBox: \"view-box\", originX: \"5px\", originY: \"17px\" }}\n      />\n     </m.svg>\n    </m.div>\n   </LazyMotion>\n  );\n },\n);\n\nLayoutListIcon.displayName = \"LayoutListIcon\";\nexport { LayoutListIcon };\n",
      "type": "registry:ui"
    }
  ]
}