{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-gift",
  "title": "Gift",
  "description": "Animated Lucide gift icon — draws on, then the lid lifts for a peek and lands with a ribbon pop: almost unwrapped.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-gift/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 BOX_PATH = \"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8\";\nconst LID_PATH =\n  \"M4 7H20A1 1 0 0 1 21 8V10A1 1 0 0 1 20 11H4A1 1 0 0 1 3 10V8A1 1 0 0 1 4 7Z\";\nconst CENTER_TOP_PATH = \"M12 7V11\";\nconst CENTER_BOTTOM_PATH = \"M12 11V21\";\nconst BOW_PATH =\n  \"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5\";\n\nconst LID_CX = 12;\nconst LID_CY = 9;\n\nconst TIMINGS = {\n  drawDurationInFrames: 18,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 28,\n  loop: false,\n} as const;\n\nexport function GiftIcon({\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 boxDraw = interpolate(linearDraw, [0, 0.55], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const lidDraw = interpolate(linearDraw, [0.35, 0.7], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const ribbonDraw = interpolate(linearDraw, [0.6, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const lidLift = acting\n    ? interpolate(actionProgress, [0, 0.4, 0.65], [0, -2.5, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const lidTilt = acting\n    ? interpolate(actionProgress, [0, 0.4, 0.65], [0, 3, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const lidPop = acting\n    ? interpolate(actionProgress, [0.6, 0.78, 1], [1, 1.06, 1], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 1;\n\n  const box = drawnPathProps(BOX_PATH, acting ? 1 : boxDraw);\n  const lid = drawnPathProps(LID_PATH, acting ? 1 : lidDraw);\n  const centerTop = drawnPathProps(CENTER_TOP_PATH, acting ? 1 : ribbonDraw);\n  const centerBottom = drawnPathProps(\n    CENTER_BOTTOM_PATH,\n    acting ? 1 : ribbonDraw,\n  );\n  const bow = drawnPathProps(BOW_PATH, acting ? 1 : ribbonDraw);\n\n  const scale = 0.85 + 0.15 * scaleIn;\n  const lidTransform = `translate(0 ${lidLift}) rotate(${lidTilt} ${LID_CX} ${LID_CY}) translate(${LID_CX * (1 - lidPop)} ${LID_CY * (1 - lidPop)}) scale(${lidPop})`;\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={BOX_PATH}\n        strokeDasharray={box.strokeDasharray}\n        strokeDashoffset={box.strokeDashoffset}\n      />\n      <path\n        d={CENTER_BOTTOM_PATH}\n        strokeDasharray={centerBottom.strokeDasharray}\n        strokeDashoffset={centerBottom.strokeDashoffset}\n      />\n      <g transform={lidTransform}>\n        <path\n          d={LID_PATH}\n          strokeDasharray={lid.strokeDasharray}\n          strokeDashoffset={lid.strokeDashoffset}\n        />\n        <path\n          d={CENTER_TOP_PATH}\n          strokeDasharray={centerTop.strokeDasharray}\n          strokeDashoffset={centerTop.strokeDashoffset}\n        />\n        <path\n          d={BOW_PATH}\n          strokeDasharray={bow.strokeDasharray}\n          strokeDashoffset={bow.strokeDashoffset}\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport function GiftIconStatic({\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=\"M12 7v14\" />\n      <path d={BOX_PATH} />\n      <path d={BOW_PATH} />\n      <rect x=\"3\" y=\"7\" width=\"18\" height=\"4\" rx=\"1\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-gift.tsx"
    }
  ],
  "type": "registry:component"
}
