{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "file-tree-fixtures",
  "title": "File Tree — fixtures",
  "author": "ilinxa",
  "description": "File Tree plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/file-tree"
  ],
  "files": [
    {
      "path": "src/registry/components/navigation/file-tree/dummy-data.ts",
      "content": "import type { FsNode } from \"./types\";\n\n/**\n * Small Next.js project shape — universally recognizable for the docs demo.\n * Exercises every default icon-mapping category (code, json, markdown,\n * image, archive, audio, video, dotfile).\n */\nexport const dummyFsNodes: FsNode[] = [\n  {\n    id: \"src\",\n    name: \"src\",\n    type: \"folder\",\n    parentId: null,\n    children: [\n      {\n        id: \"src/app\",\n        name: \"app\",\n        type: \"folder\",\n        parentId: \"src\",\n        children: [\n          {\n            id: \"src/app/layout.tsx\",\n            name: \"layout.tsx\",\n            type: \"file\",\n            parentId: \"src/app\",\n          },\n          {\n            id: \"src/app/page.tsx\",\n            name: \"page.tsx\",\n            type: \"file\",\n            parentId: \"src/app\",\n          },\n          {\n            id: \"src/app/globals.css\",\n            name: \"globals.css\",\n            type: \"file\",\n            parentId: \"src/app\",\n          },\n        ],\n      },\n      {\n        id: \"src/components\",\n        name: \"components\",\n        type: \"folder\",\n        parentId: \"src\",\n        children: [\n          {\n            id: \"src/components/ui\",\n            name: \"ui\",\n            type: \"folder\",\n            parentId: \"src/components\",\n            children: [\n              {\n                id: \"src/components/ui/button.tsx\",\n                name: \"button.tsx\",\n                type: \"file\",\n                parentId: \"src/components/ui\",\n              },\n              {\n                id: \"src/components/ui/input.tsx\",\n                name: \"input.tsx\",\n                type: \"file\",\n                parentId: \"src/components/ui\",\n              },\n            ],\n          },\n          {\n            id: \"src/components/header.tsx\",\n            name: \"header.tsx\",\n            type: \"file\",\n            parentId: \"src/components\",\n          },\n        ],\n      },\n      {\n        id: \"src/lib\",\n        name: \"lib\",\n        type: \"folder\",\n        parentId: \"src\",\n        children: [\n          {\n            id: \"src/lib/utils.ts\",\n            name: \"utils.ts\",\n            type: \"file\",\n            parentId: \"src/lib\",\n          },\n        ],\n      },\n      {\n        id: \"src/types\",\n        name: \"types\",\n        type: \"folder\",\n        parentId: \"src\",\n        children: [\n          {\n            id: \"src/types/index.d.ts\",\n            name: \"index.d.ts\",\n            type: \"file\",\n            parentId: \"src/types\",\n          },\n        ],\n      },\n    ],\n  },\n  {\n    id: \"public\",\n    name: \"public\",\n    type: \"folder\",\n    parentId: null,\n    children: [\n      {\n        id: \"public/favicon.ico\",\n        name: \"favicon.ico\",\n        type: \"file\",\n        parentId: \"public\",\n      },\n      {\n        id: \"public/images\",\n        name: \"images\",\n        type: \"folder\",\n        parentId: \"public\",\n        children: [\n          {\n            id: \"public/images/hero.png\",\n            name: \"hero.png\",\n            type: \"file\",\n            parentId: \"public/images\",\n          },\n        ],\n      },\n    ],\n  },\n  {\n    id: \"assets\",\n    name: \"assets\",\n    type: \"folder\",\n    parentId: null,\n    children: [\n      {\n        id: \"assets/intro.mp4\",\n        name: \"intro.mp4\",\n        type: \"file\",\n        parentId: \"assets\",\n      },\n      {\n        id: \"assets/jingle.mp3\",\n        name: \"jingle.mp3\",\n        type: \"file\",\n        parentId: \"assets\",\n      },\n      {\n        id: \"assets/style.scss\",\n        name: \"style.scss\",\n        type: \"file\",\n        parentId: \"assets\",\n      },\n      {\n        id: \"assets/data.json\",\n        name: \"data.json\",\n        type: \"file\",\n        parentId: \"assets\",\n      },\n      {\n        id: \"assets/script.py\",\n        name: \"script.py\",\n        type: \"file\",\n        parentId: \"assets\",\n      },\n      {\n        id: \"assets/archive.zip\",\n        name: \"archive.zip\",\n        type: \"file\",\n        parentId: \"assets\",\n      },\n    ],\n  },\n  {\n    id: \"package.json\",\n    name: \"package.json\",\n    type: \"file\",\n    parentId: null,\n  },\n  {\n    id: \"tsconfig.json\",\n    name: \"tsconfig.json\",\n    type: \"file\",\n    parentId: null,\n  },\n  {\n    id: \"next.config.ts\",\n    name: \"next.config.ts\",\n    type: \"file\",\n    parentId: null,\n  },\n  {\n    id: \"README.md\",\n    name: \"README.md\",\n    type: \"file\",\n    parentId: null,\n  },\n  {\n    id: \".gitignore\",\n    name: \".gitignore\",\n    type: \"file\",\n    parentId: null,\n  },\n];\n\n/**\n * Lazy-load demo: shallow root + folders with `children: undefined`. Used to\n * showcase `onLoadChildren` async resolution.\n */\nexport const dummyShallowNodes: FsNode[] = [\n  { id: \"src\", name: \"src\", type: \"folder\", parentId: null },\n  { id: \"public\", name: \"public\", type: \"folder\", parentId: null },\n  { id: \"assets\", name: \"assets\", type: \"folder\", parentId: null },\n  { id: \"package.json\", name: \"package.json\", type: \"file\", parentId: null },\n  { id: \"README.md\", name: \"README.md\", type: \"file\", parentId: null },\n];\n\n/** Mock children for the lazy-load demo, keyed by parent id. */\nexport const dummyLazyChildren: Record<string, FsNode[]> = {\n  src: [\n    { id: \"src/app\", name: \"app\", type: \"folder\", parentId: \"src\" },\n    {\n      id: \"src/components\",\n      name: \"components\",\n      type: \"folder\",\n      parentId: \"src\",\n    },\n    { id: \"src/lib\", name: \"lib\", type: \"folder\", parentId: \"src\" },\n    {\n      id: \"src/index.ts\",\n      name: \"index.ts\",\n      type: \"file\",\n      parentId: \"src\",\n    },\n  ],\n  \"src/app\": [\n    {\n      id: \"src/app/layout.tsx\",\n      name: \"layout.tsx\",\n      type: \"file\",\n      parentId: \"src/app\",\n    },\n    {\n      id: \"src/app/page.tsx\",\n      name: \"page.tsx\",\n      type: \"file\",\n      parentId: \"src/app\",\n    },\n  ],\n  \"src/components\": [\n    {\n      id: \"src/components/header.tsx\",\n      name: \"header.tsx\",\n      type: \"file\",\n      parentId: \"src/components\",\n    },\n    {\n      id: \"src/components/footer.tsx\",\n      name: \"footer.tsx\",\n      type: \"file\",\n      parentId: \"src/components\",\n    },\n  ],\n  \"src/lib\": [\n    {\n      id: \"src/lib/utils.ts\",\n      name: \"utils.ts\",\n      type: \"file\",\n      parentId: \"src/lib\",\n    },\n  ],\n  public: [\n    {\n      id: \"public/favicon.ico\",\n      name: \"favicon.ico\",\n      type: \"file\",\n      parentId: \"public\",\n    },\n    {\n      id: \"public/og.png\",\n      name: \"og.png\",\n      type: \"file\",\n      parentId: \"public\",\n    },\n  ],\n  assets: [\n    { id: \"assets/data.json\", name: \"data.json\", type: \"file\", parentId: \"assets\" },\n    { id: \"assets/script.py\", name: \"script.py\", type: \"file\", parentId: \"assets\" },\n  ],\n};\n\n/** Programmatically generate a deep, virtualization-friendly tree. */\nexport function makeLargeTree(count = 250): FsNode[] {\n  const exts = [\"ts\", \"tsx\", \"js\", \"json\", \"md\", \"css\", \"png\", \"py\"];\n  const out: FsNode[] = [];\n  const folderCount = Math.min(8, Math.floor(count / 10));\n  let remaining = count;\n  for (let f = 0; f < folderCount && remaining > 0; f++) {\n    const folderId = `pkg-${f.toString().padStart(2, \"0\")}`;\n    const childCount = Math.min(remaining, Math.floor(count / folderCount));\n    const children: FsNode[] = [];\n    for (let i = 0; i < childCount; i++) {\n      const ext = exts[i % exts.length];\n      children.push({\n        id: `${folderId}/file-${i.toString().padStart(3, \"0\")}.${ext}`,\n        name: `file-${i.toString().padStart(3, \"0\")}.${ext}`,\n        type: \"file\",\n        parentId: folderId,\n      });\n    }\n    out.push({\n      id: folderId,\n      name: `package-${f}`,\n      type: \"folder\",\n      parentId: null,\n      children,\n    });\n    remaining -= childCount;\n  }\n  // top-level loose files to fill out the count\n  for (let i = 0; i < remaining; i++) {\n    out.push({\n      id: `loose-${i.toString().padStart(3, \"0\")}.txt`,\n      name: `loose-${i.toString().padStart(3, \"0\")}.txt`,\n      type: \"file\",\n      parentId: null,\n    });\n  }\n  return out;\n}\n\nexport const largeDummyFsNodes: FsNode[] = makeLargeTree(250);\n\n// @ilinxa/file-tree-fixtures 0.1.4\n",
      "type": "registry:component",
      "target": "components/file-tree/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.1.4",
    "status": "alpha"
  },
  "categories": [
    "navigation",
    "tree",
    "filesystem",
    "fixtures"
  ],
  "type": "registry:block"
}