{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-loader",
  "title": "Loader",
  "description": "Animated Lucide loader-circle icon — the arc draws on, then spins continuously for a loading or processing beat. Loops by default.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-loader/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 ARC_PATH = \"M21 12a9 9 0 1 1-6.219-8.56\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 10,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 40,\n  loop: true,\n} as const;\n\nexport function LoaderIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, actionProgress, cycleIndex } = useIconAnimation(\n    { animation, loop, speed },\n    TIMINGS,\n  );\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n\n  const arcProgress = interpolate(linearDraw, [0, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n  const entrance = interpolate(linearDraw, [0, 1], [0.9, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const arc = drawnPathProps(ARC_PATH, arcProgress);\n  const rotate = (cycleIndex + actionProgress) * 360;\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: `rotate(${rotate}deg) scale(${entrance})`,\n      }}\n    >\n      <path\n        d={ARC_PATH}\n        strokeDasharray={arc.strokeDasharray}\n        strokeDashoffset={arc.strokeDashoffset}\n      />\n    </svg>\n  );\n}\n\nexport function LoaderIconStatic({\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={ARC_PATH} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-loader.tsx"
    }
  ],
  "type": "registry:component"
}
