{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "file-manager-fixtures",
  "title": "File Manager — fixtures",
  "author": "ilinxa",
  "description": "File Manager plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/file-manager"
  ],
  "files": [
    {
      "path": "src/registry/components/navigation/file-manager/dummy-data.ts",
      "content": "import type { FsNode } from \"./types\";\n\n/**\n * Small Next.js project shape (mirrors file-tree's fixture so the dual-pane\n * demo shows consistent data on both sides). Includes some `size` /\n * `modifiedAt` metadata so the list view + status bar have something to\n * display.\n */\nexport const dummyFsNodes: FsNode[] = [\n  {\n    id: \"src\",\n    name: \"src\",\n    type: \"folder\",\n    parentId: null,\n    modifiedAt: \"2026-04-12T10:14:00Z\",\n    children: [\n      {\n        id: \"src/app\",\n        name: \"app\",\n        type: \"folder\",\n        parentId: \"src\",\n        modifiedAt: \"2026-05-08T15:22:00Z\",\n        children: [\n          {\n            id: \"src/app/layout.tsx\",\n            name: \"layout.tsx\",\n            type: \"file\",\n            parentId: \"src/app\",\n            size: 412,\n            modifiedAt: \"2026-05-01T09:30:00Z\",\n          },\n          {\n            id: \"src/app/page.tsx\",\n            name: \"page.tsx\",\n            type: \"file\",\n            parentId: \"src/app\",\n            size: 1820,\n            modifiedAt: \"2026-05-08T15:22:00Z\",\n          },\n          {\n            id: \"src/app/globals.css\",\n            name: \"globals.css\",\n            type: \"file\",\n            parentId: \"src/app\",\n            size: 3104,\n            modifiedAt: \"2026-04-22T11:08:00Z\",\n          },\n        ],\n      },\n      {\n        id: \"src/components\",\n        name: \"components\",\n        type: \"folder\",\n        parentId: \"src\",\n        modifiedAt: \"2026-05-09T14:00:00Z\",\n        children: [\n          {\n            id: \"src/components/ui\",\n            name: \"ui\",\n            type: \"folder\",\n            parentId: \"src/components\",\n            modifiedAt: \"2026-05-09T14:00:00Z\",\n            children: [\n              {\n                id: \"src/components/ui/button.tsx\",\n                name: \"button.tsx\",\n                type: \"file\",\n                parentId: \"src/components/ui\",\n                size: 2240,\n                modifiedAt: \"2026-05-09T14:00:00Z\",\n              },\n              {\n                id: \"src/components/ui/input.tsx\",\n                name: \"input.tsx\",\n                type: \"file\",\n                parentId: \"src/components/ui\",\n                size: 1560,\n                modifiedAt: \"2026-05-04T10:18:00Z\",\n              },\n            ],\n          },\n          {\n            id: \"src/components/header.tsx\",\n            name: \"header.tsx\",\n            type: \"file\",\n            parentId: \"src/components\",\n            size: 1108,\n            modifiedAt: \"2026-05-07T17:00:00Z\",\n          },\n        ],\n      },\n      {\n        id: \"src/lib\",\n        name: \"lib\",\n        type: \"folder\",\n        parentId: \"src\",\n        modifiedAt: \"2026-04-30T08:42:00Z\",\n        children: [\n          {\n            id: \"src/lib/utils.ts\",\n            name: \"utils.ts\",\n            type: \"file\",\n            parentId: \"src/lib\",\n            size: 612,\n            modifiedAt: \"2026-04-30T08:42:00Z\",\n          },\n        ],\n      },\n    ],\n  },\n  {\n    id: \"public\",\n    name: \"public\",\n    type: \"folder\",\n    parentId: null,\n    modifiedAt: \"2026-04-15T12:00:00Z\",\n    children: [\n      {\n        id: \"public/favicon.ico\",\n        name: \"favicon.ico\",\n        type: \"file\",\n        parentId: \"public\",\n        size: 4286,\n        modifiedAt: \"2026-03-10T09:00:00Z\",\n      },\n      {\n        id: \"public/images\",\n        name: \"images\",\n        type: \"folder\",\n        parentId: \"public\",\n        modifiedAt: \"2026-04-15T12:00:00Z\",\n        children: [\n          {\n            id: \"public/images/hero.png\",\n            name: \"hero.png\",\n            type: \"file\",\n            parentId: \"public/images\",\n            size: 184320,\n            modifiedAt: \"2026-04-15T12:00:00Z\",\n          },\n        ],\n      },\n    ],\n  },\n  {\n    id: \"package.json\",\n    name: \"package.json\",\n    type: \"file\",\n    parentId: null,\n    size: 2048,\n    modifiedAt: \"2026-05-08T08:00:00Z\",\n  },\n  {\n    id: \"tsconfig.json\",\n    name: \"tsconfig.json\",\n    type: \"file\",\n    parentId: null,\n    size: 856,\n    modifiedAt: \"2026-05-01T08:00:00Z\",\n  },\n  {\n    id: \"next.config.ts\",\n    name: \"next.config.ts\",\n    type: \"file\",\n    parentId: null,\n    size: 412,\n    modifiedAt: \"2026-04-20T10:14:00Z\",\n  },\n  {\n    id: \"README.md\",\n    name: \"README.md\",\n    type: \"file\",\n    parentId: null,\n    size: 3140,\n    modifiedAt: \"2026-05-09T11:00:00Z\",\n  },\n];\n\n/** Flat fixture for the grid-view demo: ~30 mixed-extension items. */\nexport const dummyFlatGrid: FsNode[] = Array.from({ length: 30 }, (_, i) => ({\n  id: `asset-${i.toString().padStart(2, \"0\")}`,\n  name: `asset-${i.toString().padStart(2, \"0\")}.${\n    [\"png\", \"jpg\", \"svg\", \"json\", \"md\"][i % 5]\n  }`,\n  type: \"file\" as const,\n  parentId: null,\n  size: 1024 * (1 + (i % 16)),\n  modifiedAt: new Date(2026, 0, 1 + i).toISOString(),\n}));\n\n/** Virtualization-stress fixture (≥200 nodes for list-view virtualization demo). */\nexport function makeLargeFolder(count = 250): FsNode[] {\n  const exts = [\"ts\", \"tsx\", \"js\", \"json\", \"md\", \"css\", \"png\", \"py\"];\n  return Array.from({ length: count }, (_, i) => ({\n    id: `large-${i.toString().padStart(3, \"0\")}`,\n    name: `file-${i.toString().padStart(3, \"0\")}.${exts[i % exts.length]}`,\n    type: \"file\" as const,\n    parentId: null,\n    size: 1024 * (1 + (i % 32)),\n    modifiedAt: new Date(2026, i % 12, 1 + (i % 28)).toISOString(),\n  }));\n}\n\nexport const dummyLargeFolder: FsNode[] = makeLargeFolder(250);\n\n// @ilinxa/file-manager-fixtures 0.1.4\n",
      "type": "registry:component",
      "target": "components/file-manager/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.1.4",
    "status": "alpha"
  },
  "categories": [
    "navigation",
    "filesystem",
    "fixtures"
  ],
  "type": "registry:block"
}