{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-files",
  "type": "registry:block",
  "title": "Files",
  "description": "A workspace’s shared files on a raised page: places and collections in a narrow column, files as a list or a grid with drawn previews, uploading in place, an action bar to move, copy, collect, archive or delete, and a trash to restore from.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/action-bar.json",
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/breadcrumbs.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/checkbox.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/file-upload.json",
    "https://wideset.co/r/filter-button.json",
    "https://wideset.co/r/form-field.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/illustration.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/modal.json",
    "https://wideset.co/r/progress-bar.json",
    "https://wideset.co/r/radio-button.json",
    "https://wideset.co/r/segmented-control.json",
    "https://wideset.co/r/select.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-modal.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/toast.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/files/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/files/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiFolder3Fill,\n  RiFolder3Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  Lumen Studio's shared files in Orbit: the proposals, contracts, decks and call recordings the\n  sales team works from, in a handful of folders, a few pinned, three collections that gather\n  files across folders, two archived and two in the trash. Today is 10 November 2026.\n*/\n\n/** The product is Orbit; the workspace is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n  { id: 'files', label: 'Files', icon: RiFolder3Line, activeIcon: RiFolder3Fill },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\n/** \"Now\" for every relative date on the page, so the screen reads the same on any day. */\nexport const NOW = '2026-11-10T15:20:00Z';\n/** Deleted files stay in the trash this long, then go for good. */\nexport const TRASH_DAYS = 30;\n/** Recent holds what changed in the last two weeks. */\nexport const RECENT_DAYS = 14;\n\nexport type Person = { name: string; initials: string; color?: AvatarColor };\n\nexport type PersonId = 'maya' | 'jonas' | 'priya' | 'tom' | 'elena' | 'daniel' | 'leo' | 'nina';\n\nexport const PEOPLE: Record<PersonId, Person> = {\n  maya: { name: account.name, initials: account.initials, color: 'orange' },\n  jonas: { name: 'Jonas Weber', initials: 'JW' },\n  priya: { name: 'Priya Raman', initials: 'PR' },\n  tom: { name: 'Tom Becker', initials: 'TB' },\n  elena: { name: 'Elena Silva', initials: 'ES' },\n  daniel: { name: 'Daniel Reyes', initials: 'DR' },\n  leo: { name: 'Leo Marchetti', initials: 'LM' },\n  nina: { name: 'Nina Alvarez', initials: 'NA' },\n};\nexport const ME: PersonId = 'maya';\n\n/** What a file is, read from its extension. A folder is a kind too, so a list can hold both. */\nexport type Kind = 'folder' | 'pdf' | 'doc' | 'deck' | 'sheet' | 'recording';\n\nexport const KIND_LABEL: Record<Exclude<Kind, 'folder'>, string> = {\n  pdf: 'PDF',\n  doc: 'Document',\n  deck: 'Deck',\n  sheet: 'Spreadsheet',\n  recording: 'Recording',\n};\n\nconst EXTENSIONS: Record<string, Exclude<Kind, 'folder'>> = {\n  pdf: 'pdf',\n  doc: 'doc',\n  docx: 'doc',\n  txt: 'doc',\n  md: 'doc',\n  ppt: 'deck',\n  pptx: 'deck',\n  key: 'deck',\n  xls: 'sheet',\n  xlsx: 'sheet',\n  csv: 'sheet',\n  mp4: 'recording',\n  mov: 'recording',\n  m4a: 'recording',\n  mp3: 'recording',\n  wav: 'recording',\n};\n\n/** `proposal.pdf` → `pdf`; anything unknown is shown as a document. */\nexport const kindOf = (name: string): Exclude<Kind, 'folder'> =>\n  EXTENSIONS[name.split('.').pop()?.toLowerCase() ?? ''] ?? 'doc';\n\nexport type ItemState = 'active' | 'archived' | 'trashed';\n\nexport type Item = {\n  id: string;\n  name: string;\n  kind: Kind;\n  /** The folder it sits in; `null` is the top of All files. */\n  parent: string | null;\n  owner: PersonId;\n  /** ISO date and time of the last change. */\n  modified: string;\n  /** Bytes; folders have none. */\n  size?: number;\n  pinned?: boolean;\n  /** Shared with the signed-in person directly, by its owner. */\n  sharedWithMe?: boolean;\n  /** The collections it belongs to; a file can be in several. */\n  collections: string[];\n  state: ItemState;\n  /** When it was archived or moved to the trash. */\n  putAway?: string;\n  /** 0 to 1 while it uploads; gone once it is in. */\n  progress?: number;\n};\n\nexport type Collection = { id: string; name: string };\n\nexport const COLLECTIONS: Collection[] = [\n  { id: 'q4', name: 'Q4 proposals' },\n  { id: 'security', name: 'Security pack' },\n  { id: 'onboarding', name: 'Customer onboarding' },\n];\n\nconst MB = 1024 * 1024;\n\nconst folder = (id: string, name: string, owner: PersonId, modified: string, parent = null) =>\n  ({ id, name, kind: 'folder', parent, owner, modified, collections: [], state: 'active' }) as Item;\n\nconst file = (\n  id: string,\n  name: string,\n  parent: string | null,\n  owner: PersonId,\n  modified: string,\n  size: number,\n  extra: Partial<Item> = {},\n): Item => ({\n  id,\n  name,\n  kind: kindOf(name),\n  parent,\n  owner,\n  modified,\n  size: Math.round(size),\n  collections: [],\n  state: 'active',\n  ...extra,\n});\n\nexport const ITEMS: Item[] = [\n  folder('proposals', 'Proposals', 'maya', '2026-11-09T16:05:00Z'),\n  folder('contracts', 'Contracts', 'elena', '2026-11-04T10:12:00Z'),\n  folder('decks', 'Decks', 'priya', '2026-11-07T13:40:00Z'),\n  folder('recordings', 'Call recordings', 'jonas', '2026-11-10T11:02:00Z'),\n  folder('security', 'Security reviews', 'daniel', '2026-10-28T09:30:00Z'),\n  folder('planning', '2027 planning', 'maya', '2026-11-02T08:15:00Z'),\n  { ...folder('q4-2026', 'Q4 2026', 'maya', '2026-11-09T16:05:00Z'), parent: 'proposals' },\n\n  file(\n    'sales-playbook',\n    'Lumen Studio sales playbook.docx',\n    null,\n    'maya',\n    '2026-11-06T14:22:00Z',\n    0.31 * MB,\n    { pinned: true, collections: ['onboarding'] },\n  ),\n  file(\n    'pricing-one-pager',\n    'Orbit pricing one-pager.pdf',\n    null,\n    'maya',\n    '2026-10-21T09:10:00Z',\n    1.4 * MB,\n  ),\n  file('q4-forecast', 'Q4 forecast.xlsx', null, 'priya', '2026-11-10T09:41:00Z', 0.86 * MB, {\n    pinned: true,\n    sharedWithMe: true,\n  }),\n  file(\n    'pipeline-review',\n    'November pipeline review.pptx',\n    null,\n    'tom',\n    '2026-11-03T17:55:00Z',\n    14.2 * MB,\n  ),\n\n  file(\n    'halcyon-proposal',\n    'Halcyon Freight proposal.pdf',\n    'proposals',\n    'jonas',\n    '2026-11-05T12:30:00Z',\n    2.6 * MB,\n  ),\n  file(\n    'northwind-proposal',\n    'Northwind Health proposal.pdf',\n    'proposals',\n    'priya',\n    '2026-10-30T15:48:00Z',\n    3.1 * MB,\n    { collections: ['q4'] },\n  ),\n  file(\n    'proposal-template',\n    'Proposal template.docx',\n    'proposals',\n    'maya',\n    '2026-09-18T10:05:00Z',\n    0.18 * MB,\n    { pinned: true },\n  ),\n  file(\n    'kestrel-proposal',\n    'Kestrel Analytics proposal.pdf',\n    'q4-2026',\n    'tom',\n    '2026-11-09T16:05:00Z',\n    2.2 * MB,\n    { collections: ['q4'] },\n  ),\n  file(\n    'atlas-proposal',\n    'Atlas Robotics expansion proposal.pdf',\n    'q4-2026',\n    'elena',\n    '2026-11-08T11:20:00Z',\n    4.8 * MB,\n    { collections: ['q4'], sharedWithMe: true },\n  ),\n  file(\n    'cobalt-proposal',\n    'Cobalt Security renewal proposal.pdf',\n    'q4-2026',\n    'jonas',\n    '2026-11-04T13:02:00Z',\n    1.9 * MB,\n    { collections: ['q4', 'security'] },\n  ),\n\n  file(\n    'juniper-msa',\n    'Juniper Legal master services agreement.pdf',\n    'contracts',\n    'elena',\n    '2026-11-04T10:12:00Z',\n    0.94 * MB,\n  ),\n  file(\n    'marlow-order',\n    'Marlow & Finch order form.pdf',\n    'contracts',\n    'elena',\n    '2026-10-26T16:40:00Z',\n    0.42 * MB,\n  ),\n  file(\n    'tidewater-nda',\n    'Tidewater Energy NDA.pdf',\n    'contracts',\n    'leo',\n    '2026-10-14T08:55:00Z',\n    0.36 * MB,\n  ),\n  file(\n    'nda-template',\n    'Mutual NDA template.docx',\n    'contracts',\n    'elena',\n    '2026-08-27T12:00:00Z',\n    0.09 * MB,\n    { collections: ['security'] },\n  ),\n\n  file(\n    'company-overview',\n    'Orbit company overview.pptx',\n    'decks',\n    'priya',\n    '2026-11-07T13:40:00Z',\n    21.6 * MB,\n    { pinned: true, collections: ['onboarding'] },\n  ),\n  file(\n    'halcyon-qbr',\n    'Halcyon Freight QBR.pptx',\n    'decks',\n    'jonas',\n    '2026-10-29T10:18:00Z',\n    9.3 * MB,\n  ),\n  file(\n    'atlas-kickoff',\n    'Atlas Robotics kickoff.pptx',\n    'decks',\n    'nina',\n    '2026-11-02T15:26:00Z',\n    6.7 * MB,\n    { sharedWithMe: true, collections: ['onboarding'] },\n  ),\n\n  file(\n    'kestrel-call',\n    'Kestrel Analytics discovery call.mp4',\n    'recordings',\n    'tom',\n    '2026-11-10T11:02:00Z',\n    312 * MB,\n    { sharedWithMe: true },\n  ),\n  file(\n    'northwind-demo',\n    'Northwind Health demo.mp4',\n    'recordings',\n    'priya',\n    '2026-11-06T17:15:00Z',\n    486 * MB,\n  ),\n  file(\n    'cobalt-call',\n    'Cobalt Security pricing call.m4a',\n    'recordings',\n    'jonas',\n    '2026-10-31T14:44:00Z',\n    38 * MB,\n  ),\n\n  file(\n    'soc2',\n    'SOC 2 Type II report 2026.pdf',\n    'security',\n    'daniel',\n    '2026-10-28T09:30:00Z',\n    3.7 * MB,\n    { collections: ['security'] },\n  ),\n  file(\n    'cobalt-questionnaire',\n    'Cobalt security questionnaire.xlsx',\n    'security',\n    'daniel',\n    '2026-10-22T11:48:00Z',\n    0.24 * MB,\n    { collections: ['security'], sharedWithMe: true },\n  ),\n  file(\n    'dpa',\n    'Data processing addendum.pdf',\n    'security',\n    'daniel',\n    '2026-09-30T10:00:00Z',\n    0.51 * MB,\n    { collections: ['security'] },\n  ),\n\n  file('q3-forecast', 'Q3 forecast.xlsx', null, 'priya', '2026-08-01T09:00:00Z', 0.71 * MB, {\n    state: 'archived',\n    putAway: '2026-10-02T10:15:00Z',\n  }),\n  file('pricing-2025', 'Pricing sheet 2025.pdf', null, 'maya', '2026-01-12T12:00:00Z', 0.88 * MB, {\n    state: 'archived',\n    putAway: '2026-09-15T08:30:00Z',\n  }),\n  file(\n    'halcyon-draft',\n    'Halcyon Freight proposal draft.docx',\n    'proposals',\n    'maya',\n    '2026-10-20T10:30:00Z',\n    0.22 * MB,\n    { state: 'trashed', putAway: '2026-11-06T09:12:00Z' },\n  ),\n  file(\n    'tidewater-notes',\n    'Tidewater Energy call notes.docx',\n    null,\n    'leo',\n    '2026-10-12T16:20:00Z',\n    0.05 * MB,\n    { state: 'trashed', putAway: '2026-10-28T13:40:00Z' },\n  ),\n];\n\nexport type SortKey = 'modified' | 'name' | 'size';\nexport const sortOptions: { value: SortKey; label: string }[] = [\n  { value: 'modified', label: 'Last modified' },\n  { value: 'name', label: 'Name' },\n  { value: 'size', label: 'Size' },\n];\n\nexport const typeOptions = Object.entries(KIND_LABEL).map(([value, label]) => ({\n  value,\n  label: `${label}s`,\n}));\n\n/** Where the page is looking: a fixed place, or one collection (`c:` and its id). */\nexport type PlaceId = 'all' | 'pinned' | 'shared' | 'recent' | 'archive' | 'trash' | `c:${string}`;\n\nexport const PLACE_LABEL: Record<Exclude<PlaceId, `c:${string}`>, string> = {\n  all: 'All files',\n  pinned: 'Pinned',\n  shared: 'Shared with me',\n  recent: 'Recent',\n  archive: 'Archive',\n  trash: 'Trash',\n};\n\nexport type View = 'list' | 'grid';\n"
    },
    {
      "path": "src/blocks/files/empty-state.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/empty-state.tsx",
      "content": "'use client';\n\n// TODO(custom): empty state (drawing, title, line, actions); Wideset has no EmptyState.\nimport { Illustration } from '@/components/ui/wideset/illustration/Illustration';\nimport { type IllustrationName } from '@/components/ui/wideset/illustration/Illustration.types';\nimport type { ReactNode } from 'react';\n\n/*\n  The prototype for a Wideset EmptyState: one design for every region with nothing to show, copied\n  byte for byte into each block that needs one. A first run (nothing here yet) takes a drawing and\n  the ways in; a state the user caused (no search results) takes no drawing and the one way back.\n*/\n\ntype EmptyStateProps = {\n  /** A drawing, only for a first run: nothing has been added yet. */\n  illustration?: IllustrationName;\n  /** What is missing, in a few words: \"No customers yet\". */\n  title: ReactNode;\n  /** One sentence: what will appear here, or why nothing does. */\n  description: ReactNode;\n  /** One or two `size=\"sm\"` buttons: the ways in, or the way back. */\n  children?: ReactNode;\n};\n\n/** What a region shows with nothing in it: centred in the region, the text read first. */\nexport function EmptyState({ illustration, title, description, children }: EmptyStateProps) {\n  return (\n    <div className=\"gap-ws-12 flex flex-col items-center text-center\">\n      {illustration && <Illustration illustration={illustration} size=\"sm\" />}\n      {/* Announced when it replaces the rows, as after a search. */}\n      <div role=\"status\" className=\"gap-ws-3 flex max-w-[26rem] flex-col\">\n        <h2 className=\"typography-label-strong-md text-ws-static-strong\">{title}</h2>\n        <p className=\"typography-body-md text-ws-static-base\">{description}</p>\n      </div>\n      {children && <div className=\"gap-ws-5 flex flex-wrap justify-center\">{children}</div>}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/empty-trash-dialog.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/empty-trash-dialog.tsx",
      "content": "'use client';\n\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { StatusModal } from '@/components/ui/wideset/status-modal/StatusModal';\n\nimport { formatFiles } from './format';\n\n/**\n * The one step that cannot be undone, so it asks first: how many files go and that they go for\n * good. Cancel comes first; the danger button repeats the action's name.\n */\nexport function EmptyTrashDialog({\n  count,\n  open,\n  onOpenChange,\n  onConfirm,\n}: {\n  count: number;\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onConfirm: () => void;\n}) {\n  return (\n    <StatusModal status=\"notice\" open={open} onOpenChange={onOpenChange}>\n      <StatusModal.Content className=\"ws-block-utility\">\n        <StatusModal.Title>Empty the trash?</StatusModal.Title>\n        <StatusModal.Body>\n          {formatFiles(count)} will be deleted for good, for everyone in the workspace. This can’t\n          be undone.\n        </StatusModal.Body>\n        <StatusModal.Footer>\n          <StatusModal.Close asChild>\n            <Button variant=\"secondary\" preset=\"border\">\n              Cancel\n            </Button>\n          </StatusModal.Close>\n          <Button\n            variant=\"danger\"\n            onClick={() => {\n              onOpenChange(false);\n              onConfirm();\n            }}\n          >\n            Empty trash\n          </Button>\n        </StatusModal.Footer>\n      </StatusModal.Content>\n    </StatusModal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/file-grid.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/file-grid.tsx",
      "content": "'use client';\n\nimport type { Item } from './data';\nimport { FileTile } from './file-tile';\nimport type { RowAction } from './row-menu';\n\ntype FileGridProps = {\n  rows: Item[];\n  selected: string[];\n  onSelectedChange: (ids: string[]) => void;\n  onOpen: (item: Item) => void;\n  onAction: (item: Item, action: RowAction) => void;\n};\n\n/**\n * The files as tiles: folders first, as a row of short tiles with nothing to preview, then the\n * files with their drawn shape. As many columns as fit, since the sidebar opens and closes.\n */\nexport function FileGrid({ rows, selected, onSelectedChange, onOpen, onAction }: FileGridProps) {\n  const folders = rows.filter((row) => row.kind === 'folder');\n  const files = rows.filter((row) => row.kind !== 'folder');\n  const toggle = (id: string) =>\n    onSelectedChange(\n      selected.includes(id) ? selected.filter((item) => item !== id) : [...selected, id],\n    );\n  const tile = (item: Item) => (\n    <li key={item.id}>\n      <FileTile\n        item={item}\n        selected={selected.includes(item.id)}\n        selecting={selected.length > 0}\n        onToggle={() => toggle(item.id)}\n        onOpen={() => onOpen(item)}\n        onAction={(action) => onAction(item, action)}\n      />\n    </li>\n  );\n\n  return (\n    <div className=\"gap-ws-9 flex flex-col\">\n      {folders.length > 0 && (\n        <ul\n          aria-label=\"Folders\"\n          className=\"gap-ws-7 grid grid-cols-[repeat(auto-fill,minmax(14rem,1fr))]\"\n        >\n          {folders.map(tile)}\n        </ul>\n      )}\n      {files.length > 0 && (\n        <ul\n          aria-label=\"Files\"\n          className=\"gap-ws-7 grid grid-cols-[repeat(auto-fill,minmax(14rem,1fr))]\"\n        >\n          {files.map(tile)}\n        </ul>\n      )}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/file-icon.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/file-icon.tsx",
      "content": "'use client';\n\n// TODO(custom): a file's kind as an icon on a neutral tile; Wideset's Thumbnail colours each kind and has no folder, deck or audio kind.\nimport {\n  type RemixiconComponentType,\n  RiFilePdf2Line,\n  RiFileTextLine,\n  RiFolder3Line,\n  RiMicLine,\n  RiSlideshowLine,\n  RiTableLine,\n  RiVidiconLine,\n} from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\n\nimport type { Kind } from './data';\n\nconst ICONS: Record<Kind, RemixiconComponentType> = {\n  folder: RiFolder3Line,\n  pdf: RiFilePdf2Line,\n  doc: RiFileTextLine,\n  deck: RiSlideshowLine,\n  sheet: RiTableLine,\n  recording: RiVidiconLine,\n};\n\n/**\n * What a row or a tile holds, at a glance: the kind's line icon on a bordered white tile, the\n * same grey for every kind. In a list of thirty files a colour per kind would be the loudest\n * thing on the page, and the kind is not a judgement. Audio recordings take the microphone.\n */\nexport function FileIcon({\n  kind,\n  name,\n  className,\n}: {\n  kind: Kind;\n  name?: string;\n  className?: string;\n}) {\n  const Icon =\n    kind === 'recording' && /\\.(m4a|mp3|wav)$/i.test(name ?? '') ? RiMicLine : ICONS[kind];\n  return (\n    <span\n      aria-hidden=\"true\"\n      className={cn(\n        'border-ws-static-subtle bg-ws-static-foreground rounded-ws-control-lg size-ws-14 flex shrink-0 items-center justify-center border',\n        className,\n      )}\n    >\n      <Icon className=\"size-ws-9 text-ws-static-subtle\" />\n    </span>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/file-preview.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/file-preview.tsx",
      "content": "'use client';\n\n// TODO(custom): a drawn preview of a file's shape (a page, a slide, a sheet, a waveform); Wideset has no file preview, and blocks ship no images.\nimport { cn } from '@/lib/wideset/utils';\n\nimport type { Kind } from './data';\n\n/** Text lines on a page, as widths: a title, then a paragraph that ends short. */\nconst LINES = ['w-full', 'w-11/12', 'w-full', 'w-4/5', 'w-full', 'w-3/5'];\n/** A recording's waveform: bar heights, loud in the middle of the call. */\nconst WAVE = [\n  'h-ws-10',\n  'h-ws-13',\n  'h-ws-16',\n  'h-ws-11',\n  'h-ws-18',\n  'h-ws-20',\n  'h-ws-15',\n  'h-ws-21',\n  'h-ws-17',\n  'h-ws-12',\n  'h-ws-19',\n  'h-ws-21',\n  'h-ws-16',\n  'h-ws-20',\n  'h-ws-14',\n  'h-ws-18',\n  'h-ws-11',\n  'h-ws-15',\n  'h-ws-19',\n  'h-ws-13',\n  'h-ws-10',\n  'h-ws-14',\n  'h-ws-9',\n];\n\nconst PAGE = 'bg-ws-static-foreground border-ws-static-subtle border';\nconst LINE = 'bg-ws-static-alpha-strong h-ws-2 rounded-ws-control-full';\n\n/** A portrait page, cropped by the tile's bottom edge, with a title and a paragraph. */\nfunction Page({ table }: { table?: boolean }) {\n  return (\n    <div\n      className={cn(\n        PAGE,\n        'rounded-t-ws-control-md gap-ws-5 px-ws-7 pt-ws-7 bottom-ws-0 absolute inset-x-[22%] top-[18%] flex flex-col border-b-0',\n      )}\n    >\n      <div className={cn(LINE, 'h-ws-3 w-1/2')} />\n      {table ? (\n        // A sheet: a header row, then rows of cells split by hairlines.\n        <div className=\"bg-ws-static-alpha-base grid grid-cols-3 gap-px\">\n          {Array.from({ length: 18 }, (_, cell) => (\n            <div\n              key={cell}\n              className={cn(\n                'h-ws-5',\n                cell < 3 ? 'bg-ws-static-highlight-strong' : 'bg-ws-static-foreground',\n              )}\n            />\n          ))}\n        </div>\n      ) : (\n        <div className=\"gap-ws-3 flex flex-col\">\n          {LINES.map((width, line) => (\n            <div key={line} className={cn(LINE, width)} />\n          ))}\n        </div>\n      )}\n    </div>\n  );\n}\n\n/** A slide: a title over a block and two lines beside it. */\nfunction Slide() {\n  return (\n    <div\n      className={cn(\n        PAGE,\n        'rounded-ws-control-md gap-ws-5 p-ws-7 absolute inset-x-[16%] top-1/2 flex aspect-[16/10] -translate-y-1/2 flex-col',\n      )}\n    >\n      <div className={cn(LINE, 'h-ws-3 w-1/2')} />\n      <div className=\"gap-ws-5 flex flex-1\">\n        <div className=\"bg-ws-static-alpha-base rounded-ws-control-sm flex-1\" />\n        <div className=\"gap-ws-3 flex flex-1 flex-col\">\n          <div className={cn(LINE, 'w-full')} />\n          <div className={cn(LINE, 'w-4/5')} />\n          <div className={cn(LINE, 'w-3/5')} />\n        </div>\n      </div>\n    </div>\n  );\n}\n\n/** A waveform across the middle: what a call recording looks like before it plays. */\nfunction Wave() {\n  return (\n    <div className=\"gap-ws-3 inset-ws-0 absolute flex items-center justify-center\">\n      {WAVE.map((height, bar) => (\n        <div\n          key={bar}\n          className={cn('bg-ws-static-alpha-strong w-ws-3 rounded-ws-control-full', height)}\n        />\n      ))}\n    </div>\n  );\n}\n\n/**\n * A file's shape drawn in a few grey marks on a neutral ground, so a grid of files reads at a\n * glance without loading anything: documents and PDFs a page, decks a slide, spreadsheets a\n * table, recordings a waveform. Decorative: the name under it says what it is.\n */\nexport function FilePreview({\n  kind,\n  className,\n}: {\n  kind: Exclude<Kind, 'folder'>;\n  className?: string;\n}) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      className={cn('bg-ws-static-alpha-subtle relative aspect-[16/10] overflow-hidden', className)}\n    >\n      {kind === 'deck' ? (\n        <Slide />\n      ) : kind === 'recording' ? (\n        <Wave />\n      ) : (\n        <Page table={kind === 'sheet'} />\n      )}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/file-tile.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/file-tile.tsx",
      "content": "'use client';\n\n// TODO(custom): a file as a selectable tile with a preview, a checkbox and a menu; Tile.Checkbox is one button with no room for a menu, and Card has no selected state.\nimport { RiPushpinFill } from '@remixicon/react';\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { cn } from '@/lib/wideset/utils';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\nimport { useId } from 'react';\n\nimport { type Item, PEOPLE } from './data';\nimport { FileIcon } from './file-icon';\nimport { FilePreview } from './file-preview';\nimport { formatModified } from './format';\nimport { type RowAction, RowMenu } from './row-menu';\n\ntype FileTileProps = {\n  item: Item;\n  selected: boolean;\n  /** Something is selected: every tile then shows its checkbox, not only on hover. */\n  selecting: boolean;\n  onToggle: () => void;\n  onOpen: () => void;\n  onAction: (action: RowAction) => void;\n};\n\n/** The whole tile is the target of its name: a stretched layer under the tile's own controls. */\nconst STRETCH = 'after:inset-ws-0 after:absolute cursor-pointer';\n\n/**\n * One file or folder in the grid. A file draws its shape and, under it, its name, owner and\n * date; a folder is one row, since it has nothing to preview. A click anywhere selects a file\n * (the brand outline, as on a selected Tile) and opens a folder; the checkbox shows on hover and\n * stays while anything is selected. A file still uploading shows its progress instead.\n */\nexport function FileTile({ item, selected, selecting, onToggle, onOpen, onAction }: FileTileProps) {\n  const checkboxId = useId();\n  const folder = item.kind === 'folder';\n  const uploading = item.progress !== undefined;\n  const owner = PEOPLE[item.owner];\n  const showCheckbox = selected || selecting;\n\n  const checkbox = (\n    <Checkbox\n      id={checkboxId}\n      checked={selected}\n      onCheckedChange={onToggle}\n      aria-label={`Select ${item.name}`}\n      className={cn(\n        'z-ws-base relative',\n        !showCheckbox && 'opacity-0 group-hover/tile:opacity-100 focus-visible:opacity-100',\n      )}\n    />\n  );\n\n  // A file's name is the label of its checkbox, so a click on the tile selects it; a folder's\n  // name is the button that opens it.\n  const name = folder ? (\n    <button\n      type=\"button\"\n      onClick={onOpen}\n      className={cn(\n        STRETCH,\n        'typography-label-strong-sm text-ws-static-strong focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default truncate text-left',\n      )}\n    >\n      {item.name}\n    </button>\n  ) : (\n    <label\n      htmlFor={uploading ? undefined : checkboxId}\n      title={item.name}\n      className={cn(\n        !uploading && STRETCH,\n        'typography-label-strong-sm text-ws-static-strong truncate',\n      )}\n    >\n      {item.name}\n    </label>\n  );\n\n  return (\n    <div\n      className={cn(\n        'group/tile rounded-ws-container-md border-ws-static-base relative flex flex-col overflow-hidden border',\n        !uploading && 'hover:border-ws-static-strong',\n        selected &&\n          'border-ws-dynamic-primary-strong-default hover:border-ws-dynamic-primary-strong-default outline-ws-dynamic-primary-default/20 outline-2',\n      )}\n    >\n      {!folder && (\n        <>\n          <FilePreview kind={item.kind as Exclude<Item['kind'], 'folder'>} />\n          {!uploading && <div className=\"top-ws-5 left-ws-5 absolute flex\">{checkbox}</div>}\n          {item.pinned && (\n            <RiPushpinFill\n              role=\"img\"\n              aria-label=\"Pinned\"\n              className=\"size-ws-9 text-ws-static-base top-ws-5 right-ws-5 absolute\"\n            />\n          )}\n        </>\n      )}\n\n      <div\n        className={cn(\n          'gap-ws-5 py-ws-5 pr-ws-5 flex items-center',\n          folder ? 'pl-ws-5' : 'border-ws-static-subtle pl-ws-7 border-t',\n        )}\n      >\n        {/* A folder's icon gives way to its checkbox on hover, so the row keeps its width. */}\n        {folder && (\n          <div className=\"grid shrink-0 place-items-center *:col-start-1 *:row-start-1\">\n            <FileIcon\n              kind=\"folder\"\n              className={cn(showCheckbox ? 'opacity-0' : 'group-hover/tile:opacity-0')}\n            />\n            {checkbox}\n          </div>\n        )}\n        <div className=\"gap-ws-1 flex min-w-0 flex-1 flex-col\">\n          {name}\n          {uploading ? (\n            <ProgressBar\n              value={Math.round((item.progress ?? 0) * 100)}\n              aria-label={`Uploading ${item.name}`}\n              className=\"my-ws-3\"\n            />\n          ) : (\n            <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n              {owner.name} · {formatModified(item.modified)}\n            </span>\n          )}\n        </div>\n        {!uploading && (\n          <div className=\"z-ws-base relative flex\">\n            <RowMenu item={item} onAction={onAction} />\n          </div>\n        )}\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/file-toolbar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/file-toolbar.tsx",
      "content": "'use client';\n\nimport { RiLayoutGridLine, RiListUnordered, RiSearchLine } from '@remixicon/react';\nimport { FilterButton } from '@/components/ui/wideset/filter-button/FilterButton';\nimport { SegmentedControl } from '@/components/ui/wideset/segmented-control/SegmentedControl';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\n\nimport { type SortKey, sortOptions, typeOptions, type View } from './data';\n\ntype FileToolbarProps = {\n  query: string;\n  onQueryChange: (query: string) => void;\n  types: string[];\n  onTypesChange: (types: string[]) => void;\n  sort: SortKey;\n  onSortChange: (sort: SortKey) => void;\n  /** Left out where the files can only be a list (archive and trash). */\n  view?: View;\n  onViewChange: (view: View) => void;\n};\n\n/**\n * The controls over the files: search and the type filter narrow them, sort and the view switch\n * on the right only rearrange them. The switch is two icons, so each says what it is.\n */\nexport function FileToolbar({\n  query,\n  onQueryChange,\n  types,\n  onTypesChange,\n  sort,\n  onSortChange,\n  view,\n  onViewChange,\n}: FileToolbarProps) {\n  return (\n    <div className=\"gap-ws-5 flex flex-wrap items-center\">\n      <TextInput\n        size=\"sm\"\n        className=\"w-[18rem] max-w-full\"\n        value={query}\n        onChange={(event) => onQueryChange(event.target.value)}\n      >\n        <TextInput.Prefix inner>\n          <TextInput.Icon icon={RiSearchLine} />\n        </TextInput.Prefix>\n        <TextInput.Input type=\"search\" placeholder=\"Search files\" aria-label=\"Search files\" />\n        <TextInput.Suffix inner>\n          <TextInput.ClearButton aria-label=\"Clear search\" />\n        </TextInput.Suffix>\n      </TextInput>\n      <FilterButton\n        label=\"Type\"\n        placeholder=\"Type\"\n        options={typeOptions}\n        value={types}\n        onChange={onTypesChange}\n        clearFilterAriaLabel=\"Clear type filter\"\n      />\n      <div className=\"gap-ws-5 ml-auto flex items-center\">\n        <Select\n          size=\"sm\"\n          preset=\"border\"\n          aria-label=\"Sort files\"\n          options={sortOptions}\n          value={sort}\n          onValueChange={(value) => onSortChange(value as SortKey)}\n          className=\"w-auto\"\n        />\n        {view && (\n          <SegmentedControl\n            size=\"sm\"\n            aria-label=\"View\"\n            value={view}\n            onValueChange={(value) => onViewChange(value as View)}\n          >\n            <SegmentedControl.Item value=\"list\" icon={RiListUnordered} aria-label=\"List view\" />\n            <SegmentedControl.Item value=\"grid\" icon={RiLayoutGridLine} aria-label=\"Grid view\" />\n          </SegmentedControl>\n        )}\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/files-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/files-table.tsx",
      "content": "'use client';\n\nimport { RiPushpinFill, RiPushpinLine } from '@remixicon/react';\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport { type Item, PEOPLE } from './data';\nimport { FileIcon } from './file-icon';\nimport { formatDateTime, formatModified, formatSize } from './format';\nimport { PersonAvatar } from './person-avatar';\nimport { type RowAction, RowMenu } from './row-menu';\n\ntype FilesTableProps = {\n  rows: Item[];\n  selected: string[];\n  onSelectedChange: (ids: string[]) => void;\n  /** A folder opens in place; a file would open in its own viewer. */\n  onOpen: (item: Item) => void;\n  onAction: (item: Item, action: RowAction) => void;\n};\n\n/**\n * The files as a list. A folder row opens the folder; a file row selects the file, and its\n * checkbox is the same control for the keyboard. The pin mark shows on pinned files and, on\n * hover, on the others, where it pins with one click. A file still uploading shows its progress\n * where its date will be, and cannot be selected yet.\n */\nexport function FilesTable({\n  rows,\n  selected,\n  onSelectedChange,\n  onOpen,\n  onAction,\n}: FilesTableProps) {\n  const ids = rows.filter((row) => row.progress === undefined).map((row) => row.id);\n  const picked = ids.filter((id) => selected.includes(id)).length;\n  const toggle = (id: string) =>\n    onSelectedChange(\n      selected.includes(id) ? selected.filter((item) => item !== id) : [...selected, id],\n    );\n\n  return (\n    <div className=\"ws-scrollbar overflow-x-auto\">\n      <Table size=\"md\" selectionMode=\"multiple\" className=\"min-w-[44rem] table-fixed\">\n        <Table.Head>\n          <Table.Row>\n            <Table.Header className=\"w-[3.25rem]\">\n              <Checkbox\n                aria-label=\"Select all files\"\n                disabled={ids.length === 0}\n                checked={picked === 0 ? false : picked === ids.length ? true : 'indeterminate'}\n                onCheckedChange={(checked) =>\n                  onSelectedChange(\n                    checked === true\n                      ? [...new Set([...selected, ...ids])]\n                      : selected.filter((id) => !ids.includes(id)),\n                  )\n                }\n              />\n            </Table.Header>\n            <Table.Header>Name</Table.Header>\n            <Table.Header className=\"w-[10rem]\">Owner</Table.Header>\n            <Table.Header className=\"w-[9.5rem]\">Modified</Table.Header>\n            <Table.Header align=\"right\" className=\"w-[5.5rem]\">\n              Size\n            </Table.Header>\n            <Table.Header className=\"w-[5rem]\">\n              <span className=\"sr-only\">Pinned and actions</span>\n            </Table.Header>\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {rows.map((item) => {\n            const owner = PEOPLE[item.owner];\n            const uploading = item.progress !== undefined;\n            const isSelected = selected.includes(item.id);\n            const folder = item.kind === 'folder';\n            return (\n              <Table.Row\n                key={item.id}\n                selected={isSelected}\n                onClick={uploading ? undefined : () => (folder ? onOpen(item) : toggle(item.id))}\n                className=\"group/row\"\n              >\n                <Table.Cell onClick={(event) => event.stopPropagation()}>\n                  <Checkbox\n                    checked={isSelected}\n                    disabled={uploading}\n                    onCheckedChange={() => toggle(item.id)}\n                    aria-label={`Select ${item.name}`}\n                  />\n                </Table.Cell>\n                <Table.Cell>\n                  <div className=\"gap-ws-7 flex items-center\">\n                    <FileIcon kind={item.kind} name={item.name} />\n                    <span className=\"text-ws-static-strong min-w-0 truncate\" title={item.name}>\n                      {item.name}\n                    </span>\n                  </div>\n                </Table.Cell>\n                <Table.Cell>\n                  <div className=\"gap-ws-5 flex items-center\">\n                    <PersonAvatar\n                      size=\"sm\"\n                      name={owner.name}\n                      initials={owner.initials}\n                      color={owner.color}\n                    />\n                    <span className=\"truncate\">{owner.name}</span>\n                  </div>\n                </Table.Cell>\n                <Table.Cell>\n                  {uploading ? (\n                    <ProgressBar\n                      value={Math.round((item.progress ?? 0) * 100)}\n                      aria-label={`Uploading ${item.name}`}\n                    />\n                  ) : (\n                    <time\n                      dateTime={item.modified}\n                      title={formatDateTime(item.modified)}\n                      className=\"text-ws-static-subtle\"\n                    >\n                      {formatModified(item.modified)}\n                    </time>\n                  )}\n                </Table.Cell>\n                <Table.Cell align=\"right\" className=\"tabular-nums\">\n                  {item.size === undefined ? (\n                    <span className=\"text-ws-static-subtle\">—</span>\n                  ) : (\n                    formatSize(item.size)\n                  )}\n                </Table.Cell>\n                {/* Its own targets: their clicks must not open or select the row. */}\n                <Table.Cell align=\"right\" onClick={(event) => event.stopPropagation()}>\n                  {!uploading && (\n                    <div className=\"gap-ws-2 flex items-center justify-end\">\n                      <IconButton\n                        icon={item.pinned ? RiPushpinFill : RiPushpinLine}\n                        size=\"xs\"\n                        variant=\"secondary\"\n                        preset=\"ghost\"\n                        aria-label={`Pin ${item.name}`}\n                        aria-pressed={Boolean(item.pinned)}\n                        onClick={() => onAction(item, 'pin')}\n                        className={cn(\n                          !item.pinned &&\n                            'opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100',\n                        )}\n                      />\n                      <RowMenu item={item} onAction={(action) => onAction(item, action)} />\n                    </div>\n                  )}\n                </Table.Cell>\n              </Table.Row>\n            );\n          })}\n        </Table.Body>\n      </Table>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/folder-dialog.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/folder-dialog.tsx",
      "content": "'use client';\n\n// TODO(custom): a folder tree to pick from, as indented radio buttons; Wideset has no tree or tree picker.\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { RadioButton } from '@/components/ui/wideset/radio-button/RadioButton';\nimport { RadioButtonGroup } from '@/components/ui/wideset/radio-button/RadioButtonGroup';\nimport { useState } from 'react';\n\nimport type { Item } from './data';\nimport { formatFiles } from './format';\n\n/** Where a folder's row starts, by depth: the tree reads by indent alone. */\nconst INDENT = ['', 'pl-ws-12', 'pl-ws-20', 'pl-ws-24'];\nconst ROOT = 'root';\n\ntype FolderDialogProps = {\n  mode: 'move' | 'copy';\n  /** What is being moved or copied; kept while the dialog closes, so its words do not change. */\n  items: Item[];\n  /** Every folder that is not put away, to build the tree from. */\n  folders: Item[];\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onConfirm: (parent: string | null) => void;\n};\n\n/** Folders under a parent, A to Z, each followed by its own, with their depth. */\nconst tree = (folders: Item[], parent: string | null = null, depth = 1): [Item, number][] =>\n  folders\n    .filter((folder) => folder.parent === parent)\n    .sort((a, b) => a.name.localeCompare(b.name))\n    .flatMap((folder): [Item, number][] => [\n      [folder, depth],\n      ...tree(folders, folder.id, depth + 1),\n    ]);\n\n/**\n * Picking where files go: the folder tree as one set of radio buttons, All files at its root.\n * A folder cannot go into itself or a folder inside it, and a move cannot pick where everything\n * already is; those rows are disabled rather than hidden, so the tree keeps its shape. The\n * button names the action and waits for a choice.\n */\nexport function FolderDialog({\n  mode,\n  items,\n  folders,\n  open,\n  onOpenChange,\n  onConfirm,\n}: FolderDialogProps) {\n  const [destination, setDestination] = useState<string>();\n\n  // A folder being moved, and everything under it, is out of reach.\n  const blocked = new Set(items.filter((item) => item.kind === 'folder').map((item) => item.id));\n  for (const [folder] of tree(folders)) {\n    if (folder.parent && blocked.has(folder.parent)) blocked.add(folder.id);\n  }\n  const parents = new Set(items.map((item) => item.parent ?? ROOT));\n  const here = mode === 'move' && parents.size === 1 ? [...parents][0] : undefined;\n\n  const verb = mode === 'move' ? 'Move' : 'Copy';\n  const what = items.length === 1 ? items[0].name : formatFiles(items.length);\n\n  return (\n    <Modal\n      open={open}\n      onOpenChange={(next) => {\n        if (next) setDestination(undefined);\n        onOpenChange(next);\n      }}\n    >\n      <Modal.Content className=\"ws-block-utility\">\n        <Modal.Header>\n          <Modal.Title>{`${verb} ${what}`}</Modal.Title>\n          <Modal.Description>\n            {mode === 'move'\n              ? 'Choose a folder. Pins and collections stay as they are.'\n              : 'Choose a folder. A copy in the same folder is named “Copy of …”.'}\n          </Modal.Description>\n        </Modal.Header>\n        <Modal.Body>\n          <RadioButtonGroup\n            aria-label=\"Destination folder\"\n            value={destination ?? ''}\n            onValueChange={setDestination}\n          >\n            <RadioButton value={ROOT} label=\"All files\" disabled={here === ROOT} />\n            {tree(folders).map(([folder, depth]) => (\n              <div key={folder.id} className={cn(INDENT[Math.min(depth, INDENT.length - 1)])}>\n                <RadioButton\n                  value={folder.id}\n                  label={folder.name}\n                  disabled={blocked.has(folder.id) || here === folder.id}\n                />\n              </div>\n            ))}\n          </RadioButtonGroup>\n        </Modal.Body>\n        <Modal.Footer>\n          <Modal.Close asChild>\n            <Button variant=\"secondary\" preset=\"border\">\n              Cancel\n            </Button>\n          </Modal.Close>\n          <Button\n            disabled={!destination}\n            onClick={() => {\n              if (!destination) return;\n              onOpenChange(false);\n              onConfirm(destination === ROOT ? null : destination);\n            }}\n          >\n            {`${verb} here`}\n          </Button>\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/files/format.ts",
      "content": "import { NOW } from './data';\n\n// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\nconst DAY = 24 * 60 * 60 * 1000;\n\nconst time = new Intl.DateTimeFormat(LOCALE, { timeStyle: 'short', timeZone: 'UTC' });\nconst dayThisYear = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\nconst day = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'medium', timeZone: 'UTC' });\nconst dateTime = new Intl.DateTimeFormat(LOCALE, {\n  dateStyle: 'medium',\n  timeStyle: 'short',\n  timeZone: 'UTC',\n});\nconst number = new Intl.NumberFormat(LOCALE, { maximumFractionDigits: 1 });\n\n/** Whole calendar days between a date and today (UTC). */\nexport const daysAgo = (iso: string) =>\n  Math.round((Date.parse(NOW.slice(0, 10)) - Date.parse(iso.slice(0, 10))) / DAY);\n\n/** \"Today, 9:41 AM\", \"Yesterday\", \"Nov 3\", \"Aug 12, 2025\": as near as it is. */\nexport const formatModified = (iso: string) => {\n  const days = daysAgo(iso);\n  if (days === 0) return `Today, ${time.format(new Date(iso))}`;\n  if (days === 1) return 'Yesterday';\n  if (iso.slice(0, 4) === NOW.slice(0, 4)) return dayThisYear.format(new Date(iso));\n  return day.format(new Date(iso));\n};\n\n/** Nov 10, 2026, 9:41 AM: the full moment, for a title attribute. */\nexport const formatDateTime = (iso: string) => dateTime.format(new Date(iso));\n\n/** \"In 26 days\": how long a file put in the trash on that day has left. */\nexport const formatDaysLeft = (iso: string, keepFor: number) => {\n  const left = Math.max(keepFor - daysAgo(iso), 0);\n  if (left === 0) return 'Today';\n  return left === 1 ? 'In 1 day' : `In ${left} days`;\n};\n\n/** 312 MB, 1.4 MB, 86 KB: binary units, as file managers show them. */\nexport const formatSize = (bytes: number) => {\n  if (bytes < 1024) return `${bytes} B`;\n  if (bytes < 1024 * 1024) return `${Math.round(bytes / 1024)} KB`;\n  if (bytes < 1024 * 1024 * 1024) return `${number.format(bytes / 1024 / 1024)} MB`;\n  return `${number.format(bytes / 1024 / 1024 / 1024)} GB`;\n};\n\n/** \"1 file\", \"3 files\"; folders count as files here, as the action bar counts them. */\nexport const formatFiles = (count: number) => (count === 1 ? '1 file' : `${count} files`);\n"
    },
    {
      "path": "src/blocks/files/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiDeleteBinLine, RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\nimport { FileUpload } from '@/components/ui/wideset/file-upload/FileUpload';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { Toast } from '@/components/ui/wideset/toast/Toast';\nimport { ToastProvider, useToast } from '@/components/ui/wideset/toast/Toast.context';\nimport { type DragEvent, type ReactNode, useEffect, useId, useRef, useState } from 'react';\n\nimport {\n  type Collection,\n  COLLECTIONS,\n  type Item,\n  ITEMS,\n  kindOf,\n  ME,\n  NOW,\n  PLACE_LABEL,\n  type PlaceId,\n  RECENT_DAYS,\n  type SortKey,\n  TRASH_DAYS,\n  type View,\n} from './data';\nimport { EmptyState } from './empty-state';\nimport { EmptyTrashDialog } from './empty-trash-dialog';\nimport { FileGrid } from './file-grid';\nimport { FileToolbar } from './file-toolbar';\nimport { FilesTable } from './files-table';\nimport { FolderDialog } from './folder-dialog';\nimport { daysAgo, formatFiles } from './format';\nimport { NameDialog } from './name-dialog';\nimport { PageHeader } from './page-header';\nimport { PlacesNav } from './places-nav';\nimport { RestoreTable } from './restore-table';\nimport type { RowAction } from './row-menu';\nimport { SelectionBar } from './selection-bar';\nimport { FilesSidebar } from './sidebar';\n\n/** One column of the page: the header and the body share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\nconst MB = 1024 * 1024;\n\ntype FolderDialogState = { key: number; mode: 'move' | 'copy'; ids: string[]; open: boolean };\ntype NameDialogState = { key: number; open: boolean } & (\n  { kind: 'rename'; id: string } | { kind: 'collection'; ids: string[] }\n);\n\nconst hasFiles = (event: DragEvent) => event.dataTransfer.types.includes('Files');\n\n/** Small files arrive in a few ticks, large ones take longer. */\nconst advance = (item: Item): Item => {\n  if (item.progress === undefined) return item;\n  const next = item.progress + Math.max(0.04, 0.22 - (item.size ?? 0) / (60 * MB));\n  return next >= 1 ? { ...item, progress: undefined, modified: NOW } : { ...item, progress: next };\n};\n\nconst compare = (sort: SortKey, foldersFirst: boolean) => (a: Item, b: Item) => {\n  if (foldersFirst && (a.kind === 'folder') !== (b.kind === 'folder')) {\n    return a.kind === 'folder' ? -1 : 1;\n  }\n  if (sort === 'name') return a.name.localeCompare(b.name);\n  if (sort === 'size') return (b.size ?? 0) - (a.size ?? 0);\n  return b.modified.localeCompare(a.modified);\n};\n\n/**\n * The page inside the card, under the toasts. It holds every file and where the page is looking,\n * so each action changes the files in one place and says so in a toast, with Undo where it can\n * be undone.\n */\nfunction FilesPage() {\n  const { showToast, dismissToast } = useToast();\n  const picker = useRef<HTMLInputElement>(null);\n  const opened = useRef(0);\n  const uploadBatch = useRef<{ count: number; where: string } | undefined>(undefined);\n  // New files, copies and collections take ids from a counter, never from a list's length, which\n  // returns to an earlier value after a deletion.\n  const lastId = useRef(0);\n  const newId = (prefix: string) => `${prefix}-new-${++lastId.current}`;\n  const [items, setItems] = useState(ITEMS);\n  const [collections, setCollections] = useState(COLLECTIONS);\n  const [place, setPlace] = useState<PlaceId>('all');\n  const [folder, setFolder] = useState<string | null>(null);\n  const [query, setQuery] = useState('');\n  const [types, setTypes] = useState<string[]>([]);\n  const [sort, setSort] = useState<SortKey>('modified');\n  const [view, setView] = useState<View>('list');\n  const [selected, setSelected] = useState<string[]>([]);\n  const [dragging, setDragging] = useState(false);\n  const [folderDialog, setFolderDialog] = useState<FolderDialogState>();\n  const [nameDialog, setNameDialog] = useState<NameDialogState>();\n  const [emptying, setEmptying] = useState(false);\n\n  const byId = (id: string | null) => items.find((item) => item.id === id);\n  /**\n   * In use: active, and so is every folder above it. Archiving, trashing or deleting a folder\n   * takes everything inside with it, and restoring it brings them back, without touching them.\n   */\n  const isLive = (item: Item | undefined): boolean =>\n    !!item && item.state === 'active' && (item.parent === null || isLive(byId(item.parent)));\n  /** An item and everything inside it, for copies and permanent deletion. */\n  const subtree = (id: string): Item[] => [\n    byId(id)!,\n    ...items.filter((item) => item.parent === id).flatMap((child) => subtree(child.id)),\n  ];\n  const folderName = (id: string | null) => byId(id)?.name ?? PLACE_LABEL.all;\n  const collectionOf = (id: PlaceId) =>\n    id.startsWith('c:') ? collections.find((c) => `c:${c.id}` === id) : undefined;\n  const placeLabel = (id: PlaceId) =>\n    collectionOf(id)?.name ?? PLACE_LABEL[id as keyof typeof PLACE_LABEL];\n  const what = (ids: string[]) => (ids.length === 1 ? byId(ids[0])!.name : formatFiles(ids.length));\n  const putAway = place === 'archive' || place === 'trash';\n\n  // ——— What is on screen ———\n  const search = query.trim().toLowerCase();\n  const inPlace = (item: Item) => {\n    const active = isLive(item);\n    if (place === 'all') return active && (search ? true : item.parent === folder);\n    if (place === 'pinned') return active && Boolean(item.pinned);\n    if (place === 'shared') return active && Boolean(item.sharedWithMe);\n    if (place === 'recent')\n      return active && item.kind !== 'folder' && daysAgo(item.modified) <= RECENT_DAYS;\n    if (place === 'archive') return item.state === 'archived';\n    if (place === 'trash') return item.state === 'trashed';\n    return active && item.collections.includes(place.slice(2));\n  };\n  const here = items.filter(inPlace);\n  const rows = here\n    .filter(\n      (item) =>\n        item.name.toLowerCase().includes(search) &&\n        (types.length === 0 || types.includes(item.kind)),\n    )\n    .sort(compare(sort, place !== 'recent'));\n\n  /** The folder path under All files; anywhere else, the place alone. */\n  const path: { label: string; to: () => void }[] = [];\n  if (place === 'all') {\n    for (let id = folder; id; id = byId(id)?.parent ?? null) {\n      const at = id;\n      path.unshift({ label: folderName(at), to: () => go('all', at) });\n    }\n  }\n  path.unshift({ label: placeLabel(place), to: () => go(place) });\n\n  // ——— Moving around ———\n  function go(next: PlaceId, nextFolder: string | null = null) {\n    setPlace(next);\n    setFolder(nextFolder);\n    setSelected([]);\n    setQuery('');\n  }\n  const open = (item: Item) => item.kind === 'folder' && go('all', item.id);\n\n  // ——— Changing files ———\n  const change = (ids: string[], patch: (item: Item) => Partial<Item>) =>\n    setItems((all) =>\n      all.map((item) => (ids.includes(item.id) ? { ...item, ...patch(item) } : item)),\n    );\n\n  /**\n   * A toast whose Undo reverses this action only: the items it changed go back as they were and\n   * the ones it added go, while anything changed since (an upload, a rename) stays.\n   */\n  const toastWithUndo = (content: string, changed: string[], added: string[] = []) => {\n    const before = new Map(items.filter((item) => changed.includes(item.id)).map((i) => [i.id, i]));\n    const id = showToast({\n      content,\n      action: (\n        <Toast.Action\n          preset=\"ghost\"\n          onClick={() => {\n            setItems((all) =>\n              all\n                .filter((item) => !added.includes(item.id))\n                .map((item) => before.get(item.id) ?? item),\n            );\n            dismissToast(id);\n          }}\n        >\n          Undo\n        </Toast.Action>\n      ),\n    });\n  };\n\n  const download = (ids: string[]) =>\n    showToast({\n      content: ids.length === 1 ? `Downloading ${what(ids)}` : `Downloading ${what(ids)} as a .zip`,\n    });\n\n  const moveTo = (ids: string[], parent: string | null) => {\n    change(ids, () => ({ parent }));\n    setSelected([]);\n    toastWithUndo(`Moved ${what(ids)} to ${folderName(parent)}`, ids);\n  };\n\n  /**\n   * Copies sit beside the original as \"Copy of …\"; elsewhere they keep the name. A folder is\n   * copied with everything inside it, each copy under its copied folder.\n   */\n  const copyTo = (ids: string[], parent: string | null, announce = true) => {\n    const taken = new Set(items.filter((i) => i.parent === parent).map((i) => i.name));\n    const copies: Item[] = [];\n    const copy = (source: Item, into: string | null, top: boolean) => {\n      const id = newId(`${source.id}-copy`);\n      const name = top && taken.has(source.name) ? `Copy of ${source.name}` : source.name;\n      copies.push({\n        ...source,\n        id,\n        name,\n        parent: into,\n        owner: ME,\n        modified: NOW,\n        pinned: false,\n        sharedWithMe: false,\n      });\n      items\n        .filter((item) => item.parent === source.id && item.state === 'active')\n        .forEach((child) => copy(child, id, false));\n    };\n    ids.forEach((id) => copy(byId(id)!, parent, true));\n    setItems((all) => [...copies, ...all]);\n    setSelected([]);\n    if (announce) {\n      toastWithUndo(\n        `Copied ${what(ids)} to ${folderName(parent)}`,\n        [],\n        copies.map((item) => item.id),\n      );\n    }\n  };\n\n  const archive = (ids: string[]) => {\n    change(ids, () => ({ state: 'archived', putAway: NOW }));\n    setSelected([]);\n    toastWithUndo(`Archived ${what(ids)}`, ids);\n  };\n\n  const trash = (ids: string[]) => {\n    change(ids, () => ({ state: 'trashed', putAway: NOW }));\n    setSelected([]);\n    toastWithUndo(`Moved ${what(ids)} to the trash`, ids);\n  };\n\n  const restore = (item: Item) => {\n    // Back where it was, unless that folder is gone too: then to the top of All files.\n    const parent = isLive(byId(item.parent)) ? item.parent : null;\n    change([item.id], () => ({ state: 'active', putAway: undefined, parent }));\n    toastWithUndo(`Restored ${item.name} to ${folderName(parent)}`, [item.id]);\n  };\n\n  const addToCollection = (ids: string[], collection: Collection) => {\n    change(ids, (item) => ({ collections: [...new Set([...item.collections, collection.id])] }));\n    setSelected([]);\n    toastWithUndo(`Added ${what(ids)} to ${collection.name}`, ids);\n  };\n\n  const createCollection = (name: string, ids: string[]) => {\n    const collection = {\n      id: newId(name.toLowerCase().replace(/\\W+/g, '-')),\n      name,\n    };\n    setCollections((all) => [...all, collection]);\n    if (ids.length > 0) addToCollection(ids, collection);\n    else go(`c:${collection.id}`);\n  };\n\n  const upload = (files: File[]) => {\n    if (files.length === 0) return;\n    const collection = collectionOf(place);\n    const parent = place === 'all' ? folder : null;\n    const added = files.map((file): Item => ({\n      id: newId('upload'),\n      name: file.name,\n      kind: kindOf(file.name),\n      parent,\n      owner: ME,\n      modified: NOW,\n      size: file.size,\n      collections: collection ? [collection.id] : [],\n      state: 'active',\n      progress: 0,\n    }));\n    setItems((all) => [...added, ...all]);\n    // Where the new files would not show, the page goes to where they land.\n    const where = collection?.name ?? folderName(parent);\n    if (!collection && place !== 'all' && place !== 'recent') go('all');\n    uploadBatch.current = {\n      count: (uploadBatch.current?.count ?? 0) + files.length,\n      where,\n    };\n  };\n\n  const act = (item: Item, action: RowAction) => {\n    if (action === 'open') open(item);\n    if (action === 'download') download([item.id]);\n    if (action === 'duplicate') copyTo([item.id], item.parent, false);\n    if (action === 'pin') change([item.id], () => ({ pinned: !item.pinned }));\n    if (action === 'delete') trash([item.id]);\n    if (action === 'move') {\n      setFolderDialog({ key: ++opened.current, mode: 'move', ids: [item.id], open: true });\n    }\n    if (action === 'rename') {\n      setNameDialog({ key: ++opened.current, kind: 'rename', id: item.id, open: true });\n    }\n  };\n\n  // ——— Uploads in progress ———\n  const uploading = items.some((item) => item.progress !== undefined);\n  useEffect(() => {\n    if (!uploading) return;\n    const timer = window.setInterval(() => setItems((all) => all.map(advance)), 160);\n    return () => window.clearInterval(timer);\n  }, [uploading]);\n  useEffect(() => {\n    if (uploading || !uploadBatch.current) return;\n    const { count, where } = uploadBatch.current;\n    uploadBatch.current = undefined;\n    showToast({ status: 'success', content: `Uploaded ${formatFiles(count)} to ${where}` });\n  }, [uploading, showToast]);\n\n  // ——— Dropping files ———\n  const dropProps = {\n    onDragOver: (event: DragEvent) => event.preventDefault(),\n    onDragLeave: (event: DragEvent) => {\n      if (!event.currentTarget.contains(event.relatedTarget as Node | null)) setDragging(false);\n    },\n    onDrop: (event: DragEvent) => {\n      event.preventDefault();\n      setDragging(false);\n      upload([...event.dataTransfer.files]);\n    },\n  };\n  const browse = () => picker.current?.click();\n  /** Where an upload lands: the open folder, the open collection, or the top of All files. */\n  const dropTarget =\n    collectionOf(place)?.name ?? (place === 'all' ? folderName(folder) : PLACE_LABEL.all);\n\n  // ——— What the list area shows ———\n  const clearSearch = () => {\n    setQuery('');\n    setTypes([]);\n  };\n  let content: ReactNode;\n  if (rows.length > 0) {\n    content = putAway ? (\n      <RestoreTable rows={rows} trash={place === 'trash'} onRestore={restore} />\n    ) : view === 'list' ? (\n      <FilesTable\n        rows={rows}\n        selected={selected}\n        onSelectedChange={setSelected}\n        onOpen={open}\n        onAction={act}\n      />\n    ) : (\n      <FileGrid\n        rows={rows}\n        selected={selected}\n        onSelectedChange={setSelected}\n        onOpen={open}\n        onAction={act}\n      />\n    );\n  } else if (here.length > 0 || search) {\n    content = (\n      <div className=\"py-ws-20\">\n        <EmptyState\n          title={search ? `No files match “${query.trim()}”` : 'No files of this type here'}\n          description={\n            search\n              ? 'Check the spelling, or look for part of the name.'\n              : 'Choose another type, or clear the filter to see everything here.'\n          }\n        >\n          <Button size=\"sm\" variant=\"secondary\" preset=\"border\" onClick={clearSearch}>\n            {search ? 'Clear search' : 'Clear filter'}\n          </Button>\n        </EmptyState>\n      </div>\n    );\n  } else if (place === 'all') {\n    content = (\n      <FileUpload\n        browse\n        isDragActive={dragging}\n        onBrowse={browse}\n        zoneProps={{ ...dropProps, className: 'min-h-[18rem]' }}\n        labels={{\n          dropzoneBrowse: `Nothing in ${folderName(folder)} yet. Drop files here to upload them, or`,\n          browse: 'Choose files',\n          dropzoneActive: `Drop to upload to ${dropTarget}`,\n        }}\n      />\n    );\n  } else {\n    const empty: Record<string, [string, string]> = {\n      pinned: ['Nothing pinned', 'Pin a file from its menu to keep it here, wherever it lives.'],\n      shared: [\n        'Nothing shared with you',\n        'Files a teammate shares with you directly show up here.',\n      ],\n      recent: [\n        'Nothing changed lately',\n        `Files changed in the last ${RECENT_DAYS} days show up here.`,\n      ],\n      archive: [\n        'The archive is empty',\n        'Archived files leave the folders but stay until you delete them.',\n      ],\n      trash: [\n        'The trash is empty',\n        `Deleted files stay here for ${TRASH_DAYS} days, then go for good.`,\n      ],\n    };\n    const [title, description] = empty[place] ?? [\n      'Nothing in this collection yet',\n      'Select files anywhere and choose Add to collection. They stay in their folders.',\n    ];\n    content = (\n      <div className=\"py-ws-20\">\n        <EmptyState title={title} description={description} />\n      </div>\n    );\n  }\n\n  const folderItems = folderDialog?.ids.map((id) => byId(id)!).filter(Boolean) ?? [];\n  const renaming = nameDialog?.kind === 'rename' ? byId(nameDialog.id) : undefined;\n  const trashCount = items.filter((item) => item.state === 'trashed').length;\n\n  return (\n    <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n      <PageHeader\n        onUpload={browse}\n        quiet={Boolean(folderDialog?.open || nameDialog?.open || emptying)}\n      />\n      <input\n        ref={picker}\n        type=\"file\"\n        multiple\n        hidden\n        tabIndex={-1}\n        aria-hidden=\"true\"\n        onChange={(event) => {\n          upload([...(event.target.files ?? [])]);\n          // Emptied, so picking the same file again still reports a change.\n          event.target.value = '';\n        }}\n      />\n\n      <div className=\"gap-ws-16 grid grid-cols-1 items-start md:grid-cols-[13rem_minmax(0,1fr)]\">\n        <PlacesNav\n          place={place}\n          collections={collections}\n          onSelect={(next) => go(next)}\n          onNewCollection={() =>\n            setNameDialog({ key: ++opened.current, kind: 'collection', ids: [], open: true })\n          }\n        />\n\n        <section aria-label={placeLabel(place)} className=\"gap-ws-9 flex min-w-0 flex-col\">\n          <div className=\"gap-ws-5 min-h-ws-forms-sm flex flex-wrap items-center justify-between\">\n            <Breadcrumbs separator=\"slash\" className=\"-ml-ws-6\">\n              {path.map((crumb, n) => (\n                <Breadcrumbs.Item\n                  key={crumb.label}\n                  onClick={n < path.length - 1 ? crumb.to : undefined}\n                >\n                  {crumb.label}\n                </Breadcrumbs.Item>\n              ))}\n            </Breadcrumbs>\n            {place === 'trash' && (\n              <Button\n                size=\"sm\"\n                variant=\"danger\"\n                preset=\"border\"\n                disabled={trashCount === 0}\n                onClick={() => setEmptying(true)}\n              >\n                <Button.Icon icon={RiDeleteBinLine} />\n                Empty trash\n              </Button>\n            )}\n          </div>\n\n          <FileToolbar\n            query={query}\n            onQueryChange={setQuery}\n            types={types}\n            onTypesChange={setTypes}\n            sort={sort}\n            onSortChange={setSort}\n            view={putAway ? undefined : view}\n            onViewChange={setView}\n          />\n\n          {/* The list takes dropped files: while files are held over it, the drop zone covers it. */}\n          <div\n            className=\"relative\"\n            onDragEnter={(event) => hasFiles(event) && setDragging(true)}\n            onDragOver={(event) => hasFiles(event) && event.preventDefault()}\n          >\n            {content}\n            {dragging && rows.length > 0 && (\n              <div className=\"bg-ws-static-foreground inset-ws-0 z-ws-base absolute flex\">\n                <FileUpload\n                  isDragActive\n                  onBrowse={browse}\n                  zoneProps={{ ...dropProps, className: 'flex-1 min-h-[12rem]' }}\n                  labels={{ dropzoneActive: `Drop to upload to ${dropTarget}` }}\n                  className=\"flex-1\"\n                />\n              </div>\n            )}\n          </div>\n        </section>\n      </div>\n\n      <SelectionBar\n        count={putAway ? 0 : selected.length}\n        collections={collections}\n        onClear={() => setSelected([])}\n        onDownload={() => download(selected)}\n        onMove={() =>\n          setFolderDialog({ key: ++opened.current, mode: 'move', ids: selected, open: true })\n        }\n        onCopy={() =>\n          setFolderDialog({ key: ++opened.current, mode: 'copy', ids: selected, open: true })\n        }\n        onAddToCollection={(id) =>\n          addToCollection(\n            selected,\n            collections.find((c) => c.id === id)!,\n          )\n        }\n        onNewCollection={() =>\n          setNameDialog({ key: ++opened.current, kind: 'collection', ids: selected, open: true })\n        }\n        onArchive={() => archive(selected)}\n        onDelete={() => trash(selected)}\n      />\n\n      {folderDialog && (\n        <FolderDialog\n          key={folderDialog.key}\n          mode={folderDialog.mode}\n          items={folderItems}\n          folders={items.filter((item) => item.kind === 'folder' && isLive(item))}\n          open={folderDialog.open}\n          onOpenChange={(next) => setFolderDialog({ ...folderDialog, open: next })}\n          onConfirm={(parent) =>\n            folderDialog.mode === 'move'\n              ? moveTo(folderDialog.ids, parent)\n              : copyTo(folderDialog.ids, parent)\n          }\n        />\n      )}\n\n      {nameDialog && (\n        <NameDialog\n          key={nameDialog.key}\n          title={\n            renaming ? `Rename ${renaming.kind === 'folder' ? 'folder' : 'file'}` : 'New collection'\n          }\n          description={\n            renaming\n              ? `Everyone in the workspace sees the new name. Links to it keep working.`\n              : nameDialog.kind === 'collection' && nameDialog.ids.length > 0\n                ? `Gather ${what(nameDialog.ids)} in a new collection. Files stay in their folders.`\n                : 'A collection gathers files from any folder. Files stay where they are.'\n          }\n          label=\"Name\"\n          initial={renaming?.name ?? ''}\n          submit={renaming ? 'Rename' : 'Create collection'}\n          taken={\n            renaming\n              ? items\n                  .filter(\n                    (i) =>\n                      i.parent === renaming.parent && i.state === 'active' && i.id !== renaming.id,\n                  )\n                  .map((i) => i.name)\n              : collections.map((c) => c.name)\n          }\n          open={nameDialog.open}\n          onOpenChange={(next) => setNameDialog({ ...nameDialog, open: next })}\n          onSubmit={(name) =>\n            nameDialog.kind === 'rename'\n              ? change([nameDialog.id], () => ({ name, modified: NOW }))\n              : createCollection(name, nameDialog.ids)\n          }\n        />\n      )}\n\n      <EmptyTrashDialog\n        count={trashCount}\n        open={emptying}\n        onOpenChange={setEmptying}\n        onConfirm={() => {\n          // Deleting a folder for good deletes what was inside it too.\n          const gone = new Set(\n            items\n              .filter((item) => item.state === 'trashed')\n              .flatMap((item) => subtree(item.id))\n              .map((item) => item.id),\n          );\n          setItems((all) => all.filter((item) => !gone.has(item.id)));\n          showToast({ content: `Deleted ${formatFiles(trashCount)} for good` });\n        }}\n      />\n    </div>\n  );\n}\n\n/**\n * Files (Inset direction): the workspace's shared files on the raised page beside the workspace\n * sidebar. Upload is the one filled button; a narrow column of places sits beside the files,\n * which show as a list or a grid under their folder path and the toolbar. Selecting files brings\n * up the action bar; anything put away waits in the archive or the trash.\n */\nexport default function Files() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n\n  return (\n    <ToastProvider>\n      <AppShell className=\"ws-block-utility\" direction=\"inset\">\n        <FilesSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n        <AppShell.Main>\n          <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n            {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is\n                pulled left so its glyph, not its box, sits 20px from the edge; the crumbs follow\n                it. */}\n            <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n              <IconButton\n                icon={RiSideBarLine}\n                variant=\"secondary\"\n                preset=\"ghost\"\n                size=\"sm\"\n                iconClassName=\"text-ws-static-subtle size-ws-9\"\n                aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n                aria-expanded={!collapsed}\n                aria-controls={sidebarId}\n                onClick={() => setCollapsed(!collapsed)}\n                className=\"-ml-ws-5\"\n              />\n              <Breadcrumbs separator=\"arrow\">\n                <Breadcrumbs.Item>Files</Breadcrumbs.Item>\n              </Breadcrumbs>\n            </div>\n          </div>\n\n          {/* The page scrolls inside the card, so the card's corners stay put. */}\n          <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n            <FilesPage />\n          </div>\n        </AppShell.Main>\n      </AppShell>\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/name-dialog.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/name-dialog.tsx",
      "content": "'use client';\n\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { FormField } from '@/components/ui/wideset/form-field/FormField';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useId, useState } from 'react';\n\ntype NameDialogProps = {\n  title: string;\n  description: string;\n  label: string;\n  /** The name it starts with: the current one when renaming, empty for a new collection. */\n  initial: string;\n  /** The button's words: \"Rename\", \"Create collection\". */\n  submit: string;\n  /** Names already in use, compared without case. */\n  taken: string[];\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onSubmit: (name: string) => void;\n};\n\n/**\n * Naming something: renaming a file or folder, or starting a collection. One field, filled and\n * selected on open so typing replaces it; Enter submits. An empty name or one already used is\n * stopped with the reason under the field, not by a disabled button.\n */\nexport function NameDialog({\n  title,\n  description,\n  label,\n  initial,\n  submit,\n  taken,\n  open,\n  onOpenChange,\n  onSubmit,\n}: NameDialogProps) {\n  const fieldId = useId();\n  const [name, setName] = useState(initial);\n  const [error, setError] = useState<string>();\n\n  const save = (event: FormEvent) => {\n    event.preventDefault();\n    const value = name.trim();\n    if (!value) return setError('Enter a name.');\n    const unchanged = value === initial.trim();\n    if (!unchanged && taken.some((other) => other.toLowerCase() === value.toLowerCase())) {\n      return setError(`“${value}” is already used here.`);\n    }\n    onOpenChange(false);\n    if (!unchanged) onSubmit(value);\n  };\n\n  return (\n    <Modal\n      open={open}\n      onOpenChange={(next) => {\n        if (next) {\n          setName(initial);\n          setError(undefined);\n        }\n        onOpenChange(next);\n      }}\n    >\n      <Modal.Content className=\"ws-block-utility\">\n        <form onSubmit={save} noValidate>\n          <Modal.Header>\n            <Modal.Title>{title}</Modal.Title>\n            <Modal.Description>{description}</Modal.Description>\n          </Modal.Header>\n          <Modal.Body>\n            <FormField label={label} htmlFor={fieldId} errorText={error}>\n              <TextInput\n                id={fieldId}\n                autoComplete=\"off\"\n                value={name}\n                variant={error ? 'danger' : undefined}\n                onFocus={(event) => event.target.select()}\n                onChange={(event) => {\n                  setName(event.target.value);\n                  setError(undefined);\n                }}\n              />\n            </FormField>\n          </Modal.Body>\n          <Modal.Footer>\n            <Modal.Close asChild>\n              <Button variant=\"secondary\" preset=\"border\">\n                Cancel\n              </Button>\n            </Modal.Close>\n            <Button type=\"submit\">{submit}</Button>\n          </Modal.Footer>\n        </form>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the one filled button on the right); no PageHeader in Wideset.\nimport { RiUpload2Line } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\nimport { workspace } from './data';\n\n/**\n * The page's title, what it holds, and Upload: the screen's one filled button. It opens the file\n * picker; dropping files on the list does the same without it. While a dialog holds the filled\n * button, Upload steps back to a bordered one (`quiet`), so the screen keeps one.\n */\nexport function PageHeader({ onUpload, quiet }: { onUpload: () => void; quiet?: boolean }) {\n  return (\n    <header className=\"gap-ws-12 flex flex-wrap items-center justify-between\">\n      <div className=\"gap-ws-2 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">Files</h1>\n        <p className=\"typography-body-md text-ws-static-subtle\">\n          Proposals, contracts, decks and call recordings, shared across {workspace.name}.\n        </p>\n      </div>\n      <Button\n        size=\"sm\"\n        variant={quiet ? 'secondary' : 'primary'}\n        preset={quiet ? 'border' : 'filled'}\n        onClick={onUpload}\n      >\n        <Button.Icon icon={RiUpload2Line} />\n        Upload\n      </Button>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/files/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBz/wAARCABgAGADASIAAhEBAxEB/8QAHQAAAAcBAQEAAAAAAAAAAAAAAgMEBQYHCAEACf/EADUQAAEDAwMBBgUDAgcAAAAAAAECAwQABREGEiEHEzFBUWGBCBQicaEVMpHB0SQzQkNTseH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8V4zJbEGOuRIcS20jqo/aprC0Q6eVUpzGd+RP8A6a9L/wAPGb5pyVCaSEv45m1f1A5Tn3GPoapsvjKVKRSOY/aaXh/hm65g2SeRfqf6/wC6SvN+Ld6kPyW0q8J04GeuAMZ+1KtP6ivNhZLLcczBjlQpP6h7U8W6xOw3DFmMqbdbUUrQsYINTGzad+EmNrShJGQRmhzbe1ljO/mST8zC9jY601IlZ0FAHyAiWFbb/rPwm7g0uDBSBzDI53PYdKl15tbcWNCiR0BDbZwAkdBipVEZCEcxxnFaqtjlxkNJbbK3SocoHn/akqutrsWyr1gekXIpqvqeq/qrDR+EgE60yre2y680Qw+OZt0fpWP97UiPSrIyLNFTaGLe82h1tKQkhSQQcd/3qC3rh1BkgrhKMV3uB8yD7dvaiNi8XVlAvGj7R5QR5/hl1YtiHmX2Hz/X4nKKKd7tpq42ZSviI6i0OjqBlB9+3vTTVyliuOZDsTMW0vS3JYpB98ftO6cXd1hxf/AFYx511e22iPCZS220kBI7CmXRkMRHExjsh5suJH9QOD9sVMEjEhKfNJ+1ZDKy3yX2x6dhCXw7h1WDWFUel3Pt/qIHI45hgda3ZjhG9KlI+Yp7GvRLe1RNSx3I/etF2vUICpDRbkAYS82cLHv396QI4fvMtIQ1KbWUdFLSUn3xmpklHpXunKaj2YlVh2wkivLtrGlPSR2Bo98DEmU2B5NgnP71JIVui2tJLKMuEYKzuo/2rZJJ716Yp1WLXX1UdY23Ktt6Mek81oU8rKz7VoWEJ7ZNe/etSCd/KpGpH3PBxhLzakKQCk7EEbGuW640MzborlygIUlKVfmND9IHmPL6V1fJQyk9zWJ0duXGWwtIU2tJCge+akY2S9DhlPx98hZ2DVmVFHHXsfYZ/9k=',\n};\n"
    },
    {
      "path": "src/blocks/files/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | 'style' | 'title' | 'aria-hidden'\n> & {\n  name: string;\n  initials: string;\n  /** The photo's text: empty beside the person's name, their name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when `people.assets.ts` has one, with the initials as its\n * fallback, otherwise the initials on their colour. Every place that draws a person uses it, so\n * someone has the same face across the screen and photos mix with initials as in a real product.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...props }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...props} />\n  ) : (\n    <Avatar initials={initials} color={color} {...props} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/places-nav.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/places-nav.tsx",
      "content": "'use client';\n\n// TODO(custom): a list of places inside the page, drawn like Sidebar.Item, which throws outside a Sidebar; no NavList in Wideset.\nimport {\n  type RemixiconComponentType,\n  RiAddLine,\n  RiArchiveLine,\n  RiDeleteBinLine,\n  RiFolder3Line,\n  RiPushpinLine,\n  RiStackLine,\n  RiTimeLine,\n  RiUserSharedLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId } from 'react';\n\nimport { type Collection, PLACE_LABEL, type PlaceId } from './data';\n\ntype PlaceRow = { id: PlaceId; label: string; icon: RemixiconComponentType };\n\nconst TOP: PlaceRow[] = [\n  { id: 'all', label: PLACE_LABEL.all, icon: RiFolder3Line },\n  { id: 'pinned', label: PLACE_LABEL.pinned, icon: RiPushpinLine },\n  { id: 'shared', label: PLACE_LABEL.shared, icon: RiUserSharedLine },\n  { id: 'recent', label: PLACE_LABEL.recent, icon: RiTimeLine },\n];\n\nconst BOTTOM: PlaceRow[] = [\n  { id: 'archive', label: PLACE_LABEL.archive, icon: RiArchiveLine },\n  { id: 'trash', label: PLACE_LABEL.trash, icon: RiDeleteBinLine },\n];\n\n/** One place: one target across the row, the neutral fill on the open one, as in the sidebar. */\nfunction Place({\n  label,\n  icon: Icon,\n  current,\n  onSelect,\n}: {\n  label: string;\n  icon: RemixiconComponentType;\n  current: boolean;\n  onSelect: () => void;\n}) {\n  return (\n    <li>\n      <button\n        type=\"button\"\n        aria-current={current ? 'page' : undefined}\n        onClick={onSelect}\n        className=\"group gap-ws-5 px-ws-5 h-ws-14 rounded-ws-control-lg typography-label-strong-sm text-ws-static-base hover:bg-ws-dynamic-tertiary-alpha-strong-default hover:text-ws-static-strong aria-[current=page]:bg-ws-dynamic-tertiary-alpha-strong-default aria-[current=page]:text-ws-static-strong focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left focus-visible:-outline-offset-2\"\n      >\n        <Icon\n          aria-hidden=\"true\"\n          className=\"size-ws-10 text-ws-static-subtle group-aria-[current=page]:text-ws-static-strong shrink-0\"\n        />\n        <span className=\"min-w-0 flex-1 truncate\">{label}</span>\n      </button>\n    </li>\n  );\n}\n\n/**\n * The places a file can be found from, in a narrow column inside the page: every file, the ones\n * pinned or shared with you, what changed lately, then the collections, which gather files from\n * any folder, and last what has been put away. The open place is the selected row.\n */\nexport function PlacesNav({\n  place,\n  collections,\n  onSelect,\n  onNewCollection,\n}: {\n  place: PlaceId;\n  collections: Collection[];\n  onSelect: (place: PlaceId) => void;\n  onNewCollection: () => void;\n}) {\n  const collectionsId = useId();\n  const row = ({ id, label, icon }: PlaceRow) => (\n    <Place\n      key={id}\n      label={label}\n      icon={icon}\n      current={place === id}\n      onSelect={() => onSelect(id)}\n    />\n  );\n\n  return (\n    <nav aria-label=\"Places\" className=\"gap-ws-9 flex flex-col\">\n      <ul className=\"flex flex-col\">{TOP.map(row)}</ul>\n\n      <section aria-labelledby={collectionsId} className=\"gap-ws-2 flex flex-col\">\n        <div className=\"flex items-center justify-between\">\n          <h2\n            id={collectionsId}\n            className=\"typography-caption-strong-md text-ws-static-subtle px-ws-5 py-ws-3\"\n          >\n            Collections\n          </h2>\n          <IconButton\n            icon={RiAddLine}\n            variant=\"secondary\"\n            preset=\"ghost\"\n            size=\"xs\"\n            aria-label=\"New collection\"\n            onClick={onNewCollection}\n            className=\"mr-ws-3\"\n          />\n        </div>\n        <ul className=\"flex flex-col\">\n          {collections.map(({ id, name }) =>\n            row({ id: `c:${id}`, label: name, icon: RiStackLine }),\n          )}\n        </ul>\n      </section>\n\n      <Divider weight=\"thin\" />\n      <ul className=\"flex flex-col\">{BOTTOM.map(row)}</ul>\n    </nav>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/restore-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/restore-table.tsx",
      "content": "'use client';\n\nimport { RiArrowGoBackLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport { type Item, PEOPLE, TRASH_DAYS } from './data';\nimport { FileIcon } from './file-icon';\nimport { formatDateTime, formatDaysLeft, formatModified, formatSize } from './format';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * What has been put away, with the one way back on each row. In the trash it also says when\n * each file goes for good, counted from the day it was deleted; archived files stay until\n * someone restores or deletes them.\n */\nexport function RestoreTable({\n  rows,\n  trash,\n  onRestore,\n}: {\n  rows: Item[];\n  /** The trash, rather than the archive. */\n  trash: boolean;\n  onRestore: (item: Item) => void;\n}) {\n  return (\n    <div className=\"ws-scrollbar overflow-x-auto\">\n      <Table size=\"md\" className=\"min-w-[44rem] table-fixed\">\n        <Table.Head>\n          <Table.Row>\n            <Table.Header>Name</Table.Header>\n            <Table.Header className=\"w-[10rem]\">Owner</Table.Header>\n            <Table.Header className=\"w-[9rem]\">{trash ? 'Deleted' : 'Archived'}</Table.Header>\n            {trash ? (\n              <Table.Header className=\"w-[9.5rem]\">Deleted for good</Table.Header>\n            ) : (\n              <Table.Header align=\"right\" className=\"w-[6rem]\">\n                Size\n              </Table.Header>\n            )}\n            <Table.Header className=\"w-[7.5rem]\">\n              <span className=\"sr-only\">Restore</span>\n            </Table.Header>\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {rows.map((item) => {\n            const owner = PEOPLE[item.owner];\n            const putAway = item.putAway ?? item.modified;\n            return (\n              <Table.Row key={item.id}>\n                <Table.Cell>\n                  <div className=\"gap-ws-7 flex items-center\">\n                    <FileIcon kind={item.kind} name={item.name} />\n                    <span className=\"text-ws-static-strong min-w-0 truncate\" title={item.name}>\n                      {item.name}\n                    </span>\n                  </div>\n                </Table.Cell>\n                <Table.Cell>\n                  <div className=\"gap-ws-5 flex items-center\">\n                    <PersonAvatar\n                      size=\"sm\"\n                      name={owner.name}\n                      initials={owner.initials}\n                      color={owner.color}\n                    />\n                    <span className=\"truncate\">{owner.name}</span>\n                  </div>\n                </Table.Cell>\n                <Table.Cell>\n                  <time dateTime={putAway} title={formatDateTime(putAway)}>\n                    {formatModified(putAway)}\n                  </time>\n                </Table.Cell>\n                {trash ? (\n                  <Table.Cell className=\"text-ws-static-subtle\">\n                    {formatDaysLeft(putAway, TRASH_DAYS)}\n                  </Table.Cell>\n                ) : (\n                  <Table.Cell align=\"right\" className=\"tabular-nums\">\n                    {item.size === undefined ? '—' : formatSize(item.size)}\n                  </Table.Cell>\n                )}\n                <Table.Cell align=\"right\">\n                  <Button\n                    size=\"sm\"\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    onClick={() => onRestore(item)}\n                    aria-label={`Restore ${item.name}`}\n                  >\n                    <Button.Icon icon={RiArrowGoBackLine} />\n                    Restore\n                  </Button>\n                </Table.Cell>\n              </Table.Row>\n            );\n          })}\n        </Table.Body>\n      </Table>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/row-menu.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/row-menu.tsx",
      "content": "'use client';\n\nimport {\n  type RemixiconComponentType,\n  RiDeleteBinLine,\n  RiDownloadLine,\n  RiExternalLinkLine,\n  RiFileCopy2Line,\n  RiFolderTransferLine,\n  RiMoreFill,\n  RiPencilLine,\n  RiPushpinLine,\n  RiUnpinLine,\n} from '@remixicon/react';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\n\nimport type { Item } from './data';\n\nexport type RowAction = 'open' | 'download' | 'rename' | 'duplicate' | 'move' | 'pin' | 'delete';\n\nconst Entry = ({\n  label,\n  icon: Icon,\n  onSelect,\n  danger,\n}: {\n  label: string;\n  icon: RemixiconComponentType;\n  onSelect: () => void;\n  danger?: boolean;\n}) => (\n  <DropdownMenu.Item variant={danger ? 'danger' : undefined} onSelect={onSelect}>\n    <ListItem.Prefix>\n      <Icon className=\"size-ws-9\" />\n    </ListItem.Prefix>\n    <ListItem.Content>\n      <ListItem.Label>{label}</ListItem.Label>\n    </ListItem.Content>\n  </DropdownMenu.Item>\n);\n\n/**\n * One file's or folder's own actions, behind the ⋯ at the end of its row or tile: what to do\n * with it, then where it lives, then Delete, alone and last. Delete only moves it to the trash.\n */\nexport function RowMenu({ item, onAction }: { item: Item; onAction: (action: RowAction) => void }) {\n  return (\n    <DropdownMenu>\n      <DropdownMenu.Trigger asChild>\n        <IconButton\n          icon={RiMoreFill}\n          size=\"xs\"\n          variant=\"secondary\"\n          preset=\"ghost\"\n          aria-label={`Actions for ${item.name}`}\n        />\n      </DropdownMenu.Trigger>\n      <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[13rem]\">\n        <Entry label=\"Open\" icon={RiExternalLinkLine} onSelect={() => onAction('open')} />\n        <Entry label=\"Download\" icon={RiDownloadLine} onSelect={() => onAction('download')} />\n        <Entry label=\"Rename\" icon={RiPencilLine} onSelect={() => onAction('rename')} />\n        <Entry label=\"Duplicate\" icon={RiFileCopy2Line} onSelect={() => onAction('duplicate')} />\n        <DropdownMenu.Separator />\n        <Entry label=\"Move\" icon={RiFolderTransferLine} onSelect={() => onAction('move')} />\n        <Entry\n          label={item.pinned ? 'Unpin' : 'Pin'}\n          icon={item.pinned ? RiUnpinLine : RiPushpinLine}\n          onSelect={() => onAction('pin')}\n        />\n        <DropdownMenu.Separator />\n        <Entry label=\"Delete\" icon={RiDeleteBinLine} danger onSelect={() => onAction('delete')} />\n      </DropdownMenu.Content>\n    </DropdownMenu>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/selection-bar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/selection-bar.tsx",
      "content": "'use client';\n\nimport {\n  RiAddLine,\n  RiArchiveLine,\n  RiArrowDownSLine,\n  RiDeleteBinLine,\n  RiDownloadLine,\n  RiFileCopyLine,\n  RiFolderTransferLine,\n  RiStackLine,\n} from '@remixicon/react';\nimport { ActionBar } from '@/components/ui/wideset/action-bar/ActionBar';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\n\nimport type { Collection } from './data';\n\ntype SelectionBarProps = {\n  count: number;\n  collections: Collection[];\n  onClear: () => void;\n  onDownload: () => void;\n  onMove: () => void;\n  onCopy: () => void;\n  onAddToCollection: (collectionId: string) => void;\n  onNewCollection: () => void;\n  onArchive: () => void;\n  onDelete: () => void;\n};\n\n/**\n * What can be done to every selected file at once, floating over the page while anything is\n * selected: take it, put it somewhere, gather it into a collection, put it away. Delete is last\n * and red; it only moves the files to the trash, with Undo in its toast.\n */\nexport function SelectionBar({\n  count,\n  collections,\n  onClear,\n  onDownload,\n  onMove,\n  onCopy,\n  onAddToCollection,\n  onNewCollection,\n  onArchive,\n  onDelete,\n}: SelectionBarProps) {\n  return (\n    <ActionBar\n      isOpen={count > 0}\n      amountSelected={count}\n      onClose={onClear}\n      closeAriaLabel=\"Clear selection\"\n    >\n      <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={onDownload}>\n        <Button.Icon icon={RiDownloadLine} />\n        Download\n      </Button>\n      <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={onMove}>\n        <Button.Icon icon={RiFolderTransferLine} />\n        Move\n      </Button>\n      <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={onCopy}>\n        <Button.Icon icon={RiFileCopyLine} />\n        Copy\n      </Button>\n      <DropdownMenu>\n        <DropdownMenu.Trigger asChild>\n          <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n            <Button.Icon icon={RiStackLine} />\n            Add to collection\n            <Button.Icon icon={RiArrowDownSLine} />\n          </Button>\n        </DropdownMenu.Trigger>\n        <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n          {collections.map((collection) => (\n            <DropdownMenu.Item\n              key={collection.id}\n              onSelect={() => onAddToCollection(collection.id)}\n            >\n              <ListItem.Prefix>\n                <RiStackLine className=\"size-ws-9\" />\n              </ListItem.Prefix>\n              <ListItem.Content>\n                <ListItem.Label>{collection.name}</ListItem.Label>\n              </ListItem.Content>\n            </DropdownMenu.Item>\n          ))}\n          <DropdownMenu.Separator />\n          <DropdownMenu.Item onSelect={onNewCollection}>\n            <ListItem.Prefix>\n              <RiAddLine className=\"size-ws-9\" />\n            </ListItem.Prefix>\n            <ListItem.Content>\n              <ListItem.Label>New collection</ListItem.Label>\n            </ListItem.Content>\n          </DropdownMenu.Item>\n        </DropdownMenu.Content>\n      </DropdownMenu>\n      <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={onArchive}>\n        <Button.Icon icon={RiArchiveLine} />\n        Archive\n      </Button>\n      <Button variant=\"danger\" preset=\"border\" size=\"sm\" onClick={onDelete}>\n        <Button.Icon icon={RiDeleteBinLine} />\n        Delete\n      </Button>\n    </ActionBar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/files/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/files/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function FilesSidebar(props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>) {\n  const [active, setActive] = useState('files');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  alt={account.name}\n                  title={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
