{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-file-text",
  "title": "File Text",
  "description": "Animated Lucide file-text icon — the page draws on, then the text lines type themselves in, top to bottom.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-file-text/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 PAGE_PATH =\n  \"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\";\nconst FOLD_PATH = \"M14 2v5a1 1 0 0 0 1 1h5\";\nconst LINE1_PATH = \"M8 9H10\";\nconst LINE2_PATH = \"M8 13H16\";\nconst LINE3_PATH = \"M8 17H16\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 14,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 26,\n  loop: false,\n} as const;\n\nexport function FileTextIcon({\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 pageDraw = interpolate(linearDraw, [0, 0.7], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const foldDraw = interpolate(linearDraw, [0.55, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const line1Type = interpolate(actionProgress, [0.05, 0.4], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.linear,\n  });\n  const line2Type = interpolate(actionProgress, [0.3, 0.65], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.linear,\n  });\n  const line3Type = interpolate(actionProgress, [0.55, 0.9], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.linear,\n  });\n\n  const line1Progress = animation === \"draw\" ? 1 : acting ? line1Type : 0;\n  const line2Progress = animation === \"draw\" ? 1 : acting ? line2Type : 0;\n  const line3Progress = animation === \"draw\" ? 1 : acting ? line3Type : 0;\n\n  const page = drawnPathProps(PAGE_PATH, acting ? 1 : pageDraw);\n  const fold = drawnPathProps(FOLD_PATH, acting ? 1 : foldDraw);\n  const line1 = drawnPathProps(LINE1_PATH, line1Progress);\n  const line2 = drawnPathProps(LINE2_PATH, line2Progress);\n  const line3 = drawnPathProps(LINE3_PATH, line3Progress);\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      <path\n        d={PAGE_PATH}\n        strokeDasharray={page.strokeDasharray}\n        strokeDashoffset={page.strokeDashoffset}\n      />\n      <path\n        d={FOLD_PATH}\n        strokeDasharray={fold.strokeDasharray}\n        strokeDashoffset={fold.strokeDashoffset}\n      />\n      <path\n        d={LINE1_PATH}\n        strokeDasharray={line1.strokeDasharray}\n        strokeDashoffset={line1.strokeDashoffset}\n      />\n      <path\n        d={LINE2_PATH}\n        strokeDasharray={line2.strokeDasharray}\n        strokeDashoffset={line2.strokeDashoffset}\n      />\n      <path\n        d={LINE3_PATH}\n        strokeDasharray={line3.strokeDasharray}\n        strokeDashoffset={line3.strokeDashoffset}\n      />\n    </svg>\n  );\n}\n\nexport function FileTextIconStatic({\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={PAGE_PATH} />\n      <path d={FOLD_PATH} />\n      <path d=\"M10 9H8\" />\n      <path d=\"M16 13H8\" />\n      <path d=\"M16 17H8\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-file-text.tsx"
    }
  ],
  "type": "registry:component"
}
