{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-calendar",
  "title": "Calendar",
  "description": "Animated Lucide calendar icon — the pad draws on, then the binder rings dip and the page snaps into place.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-calendar/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 FRAME_PATH =\n  \"M5 4H19A2 2 0 0 1 21 6V20A2 2 0 0 1 19 22H5A2 2 0 0 1 3 20V6A2 2 0 0 1 5 4Z\";\nconst RING1_PATH = \"M8 2v4\";\nconst RING2_PATH = \"M16 2v4\";\nconst RULE_PATH = \"M3 10H21\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 18,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 20,\n  loop: false,\n} as const;\n\nexport function CalendarIcon({\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 frameDraw = interpolate(linearDraw, [0, 0.6], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const ringsDraw = interpolate(linearDraw, [0.4, 0.75], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const ruleDraw = interpolate(linearDraw, [0.65, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const ring1Dip = acting\n    ? interpolate(actionProgress, [0, 0.25, 0.5], [0, 1.5, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const ring2Dip = acting\n    ? interpolate(actionProgress, [0.1, 0.35, 0.6], [0, 1.5, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const pop = acting\n    ? interpolate(actionProgress, [0.5, 0.7, 1], [1, 1.04, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 1;\n\n  const frame = drawnPathProps(FRAME_PATH, acting ? 1 : frameDraw);\n  const ring1 = drawnPathProps(RING1_PATH, acting ? 1 : ringsDraw);\n  const ring2 = drawnPathProps(RING2_PATH, acting ? 1 : ringsDraw);\n  const rule = drawnPathProps(RULE_PATH, acting ? 1 : ruleDraw);\n\n  const scale = (0.85 + 0.15 * scaleIn) * pop;\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      <path\n        d={FRAME_PATH}\n        strokeDasharray={frame.strokeDasharray}\n        strokeDashoffset={frame.strokeDashoffset}\n      />\n      <g transform={`translate(0 ${ring1Dip})`}>\n        <path\n          d={RING1_PATH}\n          strokeDasharray={ring1.strokeDasharray}\n          strokeDashoffset={ring1.strokeDashoffset}\n        />\n      </g>\n      <g transform={`translate(0 ${ring2Dip})`}>\n        <path\n          d={RING2_PATH}\n          strokeDasharray={ring2.strokeDasharray}\n          strokeDashoffset={ring2.strokeDashoffset}\n        />\n      </g>\n      <path\n        d={RULE_PATH}\n        strokeDasharray={rule.strokeDasharray}\n        strokeDashoffset={rule.strokeDashoffset}\n      />\n    </svg>\n  );\n}\n\nexport function CalendarIconStatic({\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=\"M8 2v4\" />\n      <path d=\"M16 2v4\" />\n      <rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" />\n      <path d=\"M3 10h18\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-calendar.tsx"
    }
  ],
  "type": "registry:component"
}
