{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-upload",
  "title": "Upload",
  "description": "Animated Lucide upload icon — the tray draws on, the arrow fades in, then launches upward with a spring for an upload, publish, or submission beat.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-upload/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 TRAY_DRAW = \"M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4\";\nconst TRAY_STATIC = \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\";\nconst SHAFT_DRAW = \"M12 15V3\";\nconst SHAFT_STATIC = \"M12 3v12\";\nconst HEAD_PATH = \"M17 8 12 3 7 8\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 14,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 18,\n  loop: false,\n} as const;\n\nexport function UploadIcon({\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 } = useIconAnimation(\n    { animation, loop, speed },\n    TIMINGS,\n  );\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n\n  const trayProgress = interpolate(linearDraw, [0, 0.714], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n  const arrowProgress = interpolate(linearDraw, [0.429, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const arrowOpacity = interpolate(linearDraw, [0.429, 0.6], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n  });\n\n  const tray = drawnPathProps(TRAY_DRAW, trayProgress);\n  const shaft = drawnPathProps(SHAFT_DRAW, arrowProgress);\n  const head = drawnPathProps(HEAD_PATH, arrowProgress);\n\n  const launchY = interpolate(actionProgress, [0, 0.4, 0.7, 1], [0, -5, 1, 0], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n  const traySquash = interpolate(\n    actionProgress,\n    [0, 0.2, 0.4, 1],\n    [1, 0.96, 1, 1],\n    { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n  );\n\n  const scale = 0.85 + 0.15 * scaleIn;\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\n        transform={`translate(12 21) scale(1 ${traySquash}) translate(-12 -21)`}\n      >\n        <path\n          d={TRAY_DRAW}\n          strokeDasharray={tray.strokeDasharray}\n          strokeDashoffset={tray.strokeDashoffset}\n        />\n      </g>\n      <g opacity={arrowOpacity} transform={`translate(0 ${launchY})`}>\n        <path\n          d={SHAFT_DRAW}\n          strokeDasharray={shaft.strokeDasharray}\n          strokeDashoffset={shaft.strokeDashoffset}\n        />\n        <path\n          d={HEAD_PATH}\n          strokeDasharray={head.strokeDasharray}\n          strokeDashoffset={head.strokeDashoffset}\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport function UploadIconStatic({\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      <path d={SHAFT_STATIC} />\n      <path d={HEAD_PATH} />\n      <path d={TRAY_STATIC} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-upload.tsx"
    }
  ],
  "type": "registry:component"
}
