{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-shopping-cart",
  "title": "Shopping Cart",
  "description": "Animated Lucide shopping-cart icon — draws on, then rolls forward to checkout, wheels popping as it stops.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-shopping-cart/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate } from \"remotion\";\nimport {\n  drawnPathProps,\n  type IconAnimationProps,\n  useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst BODY_PATH =\n  \"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12\";\nconst BACK_WHEEL_PATH = \"M8 20a1 1 0 1 0 0 2 1 1 0 1 0 0-2Z\";\nconst FRONT_WHEEL_PATH = \"M19 20a1 1 0 1 0 0 2 1 1 0 1 0 0-2Z\";\n\nconst BACK_CX = 8;\nconst FRONT_CX = 19;\nconst WHEEL_CY = 21;\n\nconst TIMINGS = {\n  drawDurationInFrames: 16,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 26,\n  loop: false,\n} as const;\n\nexport function ShoppingCartIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, scaleIn, actionProgress, actionFrame } =\n    useIconAnimation({ animation, loop, speed }, TIMINGS);\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n  const acting = animation !== \"draw\" && actionFrame >= 0;\n\n  const bodyDraw = interpolate(linearDraw, [0, 0.7], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const wheelsDraw = interpolate(linearDraw, [0.5, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const rollX = acting\n    ? interpolate(actionProgress, [0, 0.4, 0.7], [0, 4, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const tilt = acting\n    ? interpolate(actionProgress, [0, 0.4, 0.7], [0, -1, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const backPop = acting\n    ? interpolate(actionProgress, [0.5, 0.65, 0.85], [1, 1.2, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 1;\n  const frontPop = acting\n    ? interpolate(actionProgress, [0.6, 0.75, 0.95], [1, 1.2, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 1;\n\n  const body = drawnPathProps(BODY_PATH, acting ? 1 : bodyDraw);\n  const backWheel = drawnPathProps(BACK_WHEEL_PATH, acting ? 1 : wheelsDraw);\n  const frontWheel = drawnPathProps(FRONT_WHEEL_PATH, acting ? 1 : wheelsDraw);\n\n  const scale = 0.85 + 0.15 * scaleIn;\n  const backTransform = `translate(${BACK_CX * (1 - backPop)} ${WHEEL_CY * (1 - backPop)}) scale(${backPop})`;\n  const frontTransform = `translate(${FRONT_CX * (1 - frontPop)} ${WHEEL_CY * (1 - frontPop)}) scale(${frontPop})`;\n\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{\n        overflow: \"visible\",\n        transformOrigin: \"center\",\n        transform: `scale(${scale})`,\n      }}\n    >\n      <g transform={`translate(${rollX} 0) rotate(${tilt} 12 12)`}>\n        <path\n          d={BODY_PATH}\n          strokeDasharray={body.strokeDasharray}\n          strokeDashoffset={body.strokeDashoffset}\n        />\n        <g transform={backTransform}>\n          <path\n            d={BACK_WHEEL_PATH}\n            strokeDasharray={backWheel.strokeDasharray}\n            strokeDashoffset={backWheel.strokeDashoffset}\n          />\n        </g>\n        <g transform={frontTransform}>\n          <path\n            d={FRONT_WHEEL_PATH}\n            strokeDasharray={frontWheel.strokeDasharray}\n            strokeDashoffset={frontWheel.strokeDashoffset}\n          />\n        </g>\n      </g>\n    </svg>\n  );\n}\n\nexport function ShoppingCartIconStatic({\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: {\n  size?: number;\n  color?: string;\n  strokeWidth?: number;\n  className?: string;\n}) {\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    >\n      <circle cx=\"8\" cy=\"21\" r=\"1\" />\n      <circle cx=\"19\" cy=\"21\" r=\"1\" />\n      <path d={BODY_PATH} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-shopping-cart.tsx"
    }
  ],
  "type": "registry:component"
}
