{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-move-dialog",
  "type": "registry:block",
  "title": "Move dialog",
  "description": "Moving files in a dialog: a searchable folder tree with the current folder marked, the chosen path under it, a new folder named in place, and moving or archiving, with Open folder and Undo after.",
  "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/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/modal.json",
    "https://wideset.co/r/sidebar.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/move-dialog/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/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/move-dialog/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/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, open on the Proposals folder: the year folders, the\n  template and calculator everyone starts from, and three proposals sent this month that were left\n  loose. They are selected and on their way into Proposals / 2026. 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\nexport type PersonId = 'maya' | 'jonas' | 'priya' | 'tom' | 'elena' | 'daniel';\nexport type Person = { name: string; initials: string; color?: AvatarColor };\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};\n\n/** The top of the tree: every folder sits somewhere under it. */\nexport const ROOT = 'root';\n\nexport type Folder = {\n  id: string;\n  name: string;\n  /** The folder it sits in; only the root has none. */\n  parent: string | null;\n  owner: PersonId;\n  modified: string;\n};\n\nconst folder = (\n  id: string,\n  name: string,\n  parent: string,\n  owner: PersonId,\n  modified: string,\n): Folder => ({ id, name, parent, owner, modified });\n\nexport const FOLDERS: Folder[] = [\n  { id: ROOT, name: 'All files', parent: null, owner: 'maya', modified: NOW },\n  folder('proposals', 'Proposals', ROOT, 'maya', '2026-11-09T16:05:00Z'),\n  folder('proposals-2025', '2025', 'proposals', 'maya', '2026-01-08T10:00:00Z'),\n  folder('proposals-2026', '2026', 'proposals', 'maya', '2026-11-03T14:30:00Z'),\n  folder('contracts', 'Contracts', ROOT, 'elena', '2026-11-04T10:12:00Z'),\n  folder('contracts-signed', 'Signed', 'contracts', 'elena', '2026-11-04T10:12:00Z'),\n  folder('contracts-drafts', 'Drafts', 'contracts', 'elena', '2026-10-29T15:40:00Z'),\n  folder('decks', 'Decks', ROOT, 'priya', '2026-11-07T13:40:00Z'),\n  folder('recordings', 'Call recordings', ROOT, 'jonas', '2026-11-10T11:02:00Z'),\n  folder('security', 'Security reviews', ROOT, 'daniel', '2026-10-28T09:30:00Z'),\n  folder('planning', '2027 planning', ROOT, 'maya', '2026-11-02T08:15:00Z'),\n];\n\n/** The folder the page is open on when the screen loads. */\nexport const START_FOLDER = 'proposals';\n/** Where the three files are about to go. */\nexport const START_DESTINATION = 'proposals-2026';\n\nexport type Kind = 'pdf' | 'doc' | 'sheet';\n\nexport type FileEntry = {\n  id: string;\n  name: string;\n  kind: Kind;\n  folder: string;\n  owner: PersonId;\n  /** ISO date and time of the last change. */\n  modified: string;\n  /** Bytes. */\n  size: number;\n  archived?: boolean;\n};\n\nconst MB = 1024 * 1024;\n\nconst file = (\n  id: string,\n  name: string,\n  kind: Kind,\n  folderId: string,\n  owner: PersonId,\n  modified: string,\n  size: number,\n): FileEntry => ({ id, name, kind, folder: folderId, owner, modified, size: Math.round(size) });\n\n// One file per line: id, name, kind, folder, owner, modified, size.\n// prettier-ignore\nexport const FILES: FileEntry[] = [\n  file('halcyon', 'Halcyon Freight renewal proposal.pdf', 'pdf', 'proposals', 'jonas', '2026-11-09T16:05:00Z', 1.8 * MB),\n  file('kestrel', 'Kestrel Analytics expansion proposal.pdf', 'pdf', 'proposals', 'tom', '2026-11-06T11:20:00Z', 2.1 * MB),\n  file('cobalt', 'Cobalt Security proposal.docx', 'doc', 'proposals', 'daniel', '2026-11-04T09:45:00Z', 0.42 * MB),\n  file('template', 'Proposal template.docx', 'doc', 'proposals', 'maya', '2026-09-15T08:30:00Z', 0.21 * MB),\n  file('calculator', 'Pricing calculator.xlsx', 'sheet', 'proposals', 'priya', '2026-10-30T14:10:00Z', 0.33 * MB),\n  file('case-studies', 'Customer case studies.pdf', 'pdf', 'proposals', 'elena', '2026-10-12T10:00:00Z', 5.6 * MB),\n  file('atlas', 'Atlas Robotics proposal.pdf', 'pdf', 'proposals-2026', 'priya', '2026-10-21T09:10:00Z', 1.6 * MB),\n  file('juniper', 'Juniper Legal proposal.pdf', 'pdf', 'proposals-2026', 'elena', '2026-09-30T13:25:00Z', 1.2 * MB),\n  file('tidewater', 'Tidewater Energy proposal.pdf', 'pdf', 'proposals-2026', 'jonas', '2026-08-18T15:00:00Z', 2.4 * MB),\n  file('northwind-2025', 'Northwind Health proposal.pdf', 'pdf', 'proposals-2025', 'maya', '2025-11-12T10:30:00Z', 1.1 * MB),\n  file('marlow-2025', 'Marlow & Finch proposal.pdf', 'pdf', 'proposals-2025', 'elena', '2025-06-03T09:00:00Z', 0.9 * MB),\n  file('msa', 'Master services agreement.pdf', 'pdf', 'contracts', 'elena', '2026-07-01T09:00:00Z', 0.6 * MB),\n];\n\n/** Selected when the screen loads: this month's loose proposals. */\nexport const START_SELECTION = ['halcyon', 'kestrel', 'cobalt'];\n"
    },
    {
      "path": "src/blocks/move-dialog/file-icon.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/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 kind.\nimport {\n  type RemixiconComponentType,\n  RiFilePdf2Line,\n  RiFileTextLine,\n  RiFolder3Line,\n  RiTableLine,\n} from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\n\nimport type { Kind } from './data';\n\nconst ICONS: Record<Kind | 'folder', RemixiconComponentType> = {\n  folder: RiFolder3Line,\n  pdf: RiFilePdf2Line,\n  doc: RiFileTextLine,\n  sheet: RiTableLine,\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.\n */\nexport function FileIcon({ kind, className }: { kind: Kind | 'folder'; className?: string }) {\n  const Icon = 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/move-dialog/files-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/files-table.tsx",
      "content": "'use client';\n\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport { type FileEntry, type Folder, PEOPLE } from './data';\nimport { FileIcon } from './file-icon';\nimport { formatDateTime, formatModified, formatSize } from './format';\nimport { PersonAvatar } from './person-avatar';\n\ntype FilesTableProps = {\n  folders: Folder[];\n  files: FileEntry[];\n  selected: string[];\n  onSelectedChange: (ids: string[]) => void;\n  onOpenFolder: (id: string) => void;\n};\n\n/**\n * One folder's content as a list: its folders first, which open in place, then its files, which\n * a click selects (the checkbox is the same control for the keyboard). Folders take no checkbox\n * here: what is moved, archived or downloaded from this page is files.\n */\nexport function FilesTable({\n  folders,\n  files,\n  selected,\n  onSelectedChange,\n  onOpenFolder,\n}: FilesTableProps) {\n  const ids = files.map((file) => file.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  const name = (kind: FileEntry['kind'] | 'folder', text: string) => (\n    <div className=\"gap-ws-7 flex items-center\">\n      <FileIcon kind={kind} />\n      <span className=\"text-ws-static-strong min-w-0 truncate\" title={text}>\n        {text}\n      </span>\n    </div>\n  );\n  const owner = (id: FileEntry['owner']) => (\n    <div className=\"gap-ws-5 flex items-center\">\n      <PersonAvatar\n        size=\"sm\"\n        name={PEOPLE[id].name}\n        initials={PEOPLE[id].initials}\n        color={PEOPLE[id].color}\n      />\n      <span className=\"truncate\">{PEOPLE[id].name}</span>\n    </div>\n  );\n  const modified = (iso: string) => (\n    <time dateTime={iso} title={formatDateTime(iso)} className=\"text-ws-static-subtle\">\n      {formatModified(iso)}\n    </time>\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-[11rem]\">Owner</Table.Header>\n            <Table.Header className=\"w-[9.5rem]\">Modified</Table.Header>\n            <Table.Header align=\"right\" className=\"w-[6rem]\">\n              Size\n            </Table.Header>\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {folders.map((folder) => (\n            <Table.Row key={folder.id} onClick={() => onOpenFolder(folder.id)}>\n              <Table.Cell />\n              <Table.Cell>\n                {/* The row opens on a click; the name is the keyboard's way in (Tab, Enter, Space). */}\n                <button\n                  type=\"button\"\n                  onClick={(event) => {\n                    event.stopPropagation();\n                    onOpenFolder(folder.id);\n                  }}\n                  aria-label={`Open ${folder.name}`}\n                  className=\"rounded-ws-control-sm focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default block max-w-full cursor-pointer text-left\"\n                >\n                  {name('folder', folder.name)}\n                </button>\n              </Table.Cell>\n              <Table.Cell>{owner(folder.owner)}</Table.Cell>\n              <Table.Cell>{modified(folder.modified)}</Table.Cell>\n              <Table.Cell align=\"right\">\n                <span className=\"text-ws-static-subtle\">—</span>\n              </Table.Cell>\n            </Table.Row>\n          ))}\n          {files.map((file) => {\n            const isSelected = selected.includes(file.id);\n            return (\n              <Table.Row key={file.id} selected={isSelected} onClick={() => toggle(file.id)}>\n                <Table.Cell onClick={(event) => event.stopPropagation()}>\n                  <Checkbox\n                    checked={isSelected}\n                    onCheckedChange={() => toggle(file.id)}\n                    aria-label={`Select ${file.name}`}\n                  />\n                </Table.Cell>\n                <Table.Cell>{name(file.kind, file.name)}</Table.Cell>\n                <Table.Cell>{owner(file.owner)}</Table.Cell>\n                <Table.Cell>{modified(file.modified)}</Table.Cell>\n                <Table.Cell align=\"right\" className=\"tabular-nums\">\n                  {formatSize(file.size)}\n                </Table.Cell>\n              </Table.Row>\n            );\n          })}\n        </Table.Body>\n      </Table>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/folder-tree.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/folder-tree.tsx",
      "content": "'use client';\n\n// TODO(custom): a folder tree (rows that expand and collapse, one chosen, the current folder marked, an inline field naming a new folder); Wideset has no Tree or TreeView.\nimport { RiArrowRightSLine, RiCheckLine, RiFolder3Line } from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type KeyboardEvent, type RefObject, useId, useRef, useState } from 'react';\n\nimport { type Folder, ROOT } from './data';\n\n/** Where a row starts, by depth: 20px a level, the chevron and its gap, so names line up. */\nconst INDENT = ['pl-ws-3', 'pl-ws-12', 'pl-ws-17', 'pl-ws-20', 'pl-ws-22'];\nconst ROW =\n  'h-ws-14 gap-ws-3 pr-ws-5 rounded-ws-control-lg typography-label-sm flex items-center outline-ws-dynamic-primary-strong-default focus-visible:wds-focus-visible focus-visible:-outline-offset-2';\n\nexport type TreeRow = {\n  folder: Folder;\n  depth: number;\n  hasChildren: boolean;\n  /** Its place among its siblings on screen, for screen readers. */\n  position: number;\n  siblings: number;\n};\n\nconst childrenOf = (folders: Folder[], id: string) =>\n  folders\n    .filter((folder) => folder.parent === id)\n    .sort((a, b) => a.name.localeCompare(b.name, 'en', { numeric: true }));\n\n/**\n * The rows on screen, top to bottom: All files, then every folder whose parent is open. While\n * searching, only the folders that match and the folders that lead to them, all open, so a match\n * deep in the tree shows with its path.\n */\nexport function treeRows(folders: Folder[], expanded: string[], query: string): TreeRow[] {\n  const words = query.trim().toLowerCase();\n  const leadsToMatch = (folder: Folder): boolean =>\n    folder.name.toLowerCase().includes(words) || childrenOf(folders, folder.id).some(leadsToMatch);\n  const rows: TreeRow[] = [];\n  const walk = (parent: Folder, depth: number) => {\n    const kids = childrenOf(folders, parent.id).filter((kid) => !words || leadsToMatch(kid));\n    kids.forEach((folder, index) => {\n      const hasChildren = childrenOf(folders, folder.id).length > 0;\n      rows.push({ folder, depth, hasChildren, position: index + 1, siblings: kids.length });\n      if (words || expanded.includes(folder.id)) walk(folder, depth + 1);\n    });\n  };\n  const root = folders.find((folder) => folder.id === ROOT)!;\n  rows.push({ folder: root, depth: 0, hasChildren: true, position: 1, siblings: 1 });\n  if (words || expanded.includes(ROOT)) walk(root, 1);\n  return rows;\n}\n\ntype FolderTreeProps = {\n  rows: TreeRow[];\n  /** While searching every row is open and the chevrons rest. */\n  searching: boolean;\n  expanded: string[];\n  onExpandedChange: (expanded: string[]) => void;\n  /** The folder the files are in: marked, and not a place to move them to. */\n  current: string;\n  chosen?: string;\n  onChoose: (id: string) => void;\n  /** The folder a new one is being named in: the field shows as its first child. */\n  naming?: string;\n  /** Tries the name: the new folder's id, or why it cannot be used. */\n  onName: (name: string) => { id: string } | { error: string };\n  onNamingEnd: () => void;\n  treeRef: RefObject<HTMLUListElement | null>;\n};\n\n/**\n * Naming a new folder, in the tree where it will be: a field at the folder's depth that takes the\n * focus. Enter makes it, Esc drops it, and leaving the field keeps a good name and drops an empty\n * one. A name already used beside it, or no name, is said under the field.\n */\nfunction NewFolderField({\n  depth,\n  onName,\n  onDone,\n}: {\n  depth: number;\n  onName: FolderTreeProps['onName'];\n  /** The new folder's id, or nothing when it was dropped. */\n  onDone: (made?: string) => void;\n}) {\n  const id = useId();\n  const [name, setName] = useState('');\n  const [error, setError] = useState<string>();\n  const done = useRef(false);\n\n  const finish = (commit: boolean) => {\n    if (done.current) return;\n    const result = commit ? onName(name) : undefined;\n    if (result && 'error' in result) {\n      setError(result.error);\n      return;\n    }\n    done.current = true;\n    onDone(result?.id);\n  };\n\n  return (\n    <li role=\"treeitem\" aria-level={depth + 1} aria-selected={false} className=\"py-ws-2\">\n      <div className={cn('gap-ws-3 flex items-start', INDENT[depth])}>\n        <span className=\"size-ws-9 shrink-0\" />\n        <div className=\"gap-ws-3 flex min-w-0 flex-1 flex-col\">\n          <TextInput\n            variant={error ? 'danger' : undefined}\n            value={name}\n            onChange={(event) => {\n              setName(event.target.value);\n              setError(undefined);\n            }}\n          >\n            <TextInput.Prefix inner>\n              <TextInput.Icon icon={RiFolder3Line} />\n            </TextInput.Prefix>\n            <TextInput.Input\n              // A field that appears because it was asked for takes the focus.\n              // eslint-disable-next-line jsx-a11y/no-autofocus\n              autoFocus\n              placeholder=\"Folder name\"\n              aria-label=\"New folder name\"\n              // Scrolled into view with the field's border and its error, not the text alone.\n              className=\"scroll-my-ws-12\"\n              aria-invalid={Boolean(error)}\n              aria-describedby={error ? `${id}-error` : undefined}\n              onKeyDown={(event) => {\n                if (event.key === 'Enter') {\n                  event.preventDefault();\n                  finish(true);\n                }\n                // The dialog leaves Esc to the field while it is open (see MoveDialog).\n                if (event.key === 'Escape') finish(false);\n              }}\n              onBlur={() => finish(name.trim() !== '' && !error)}\n            />\n          </TextInput>\n          {error && (\n            <p id={`${id}-error`} className=\"typography-body-sm text-ws-semantic-negative\">\n              {error}\n            </p>\n          )}\n        </div>\n      </div>\n    </li>\n  );\n}\n\n/**\n * Where the files can go, as the folders nest: a single-select tree, one tab stop. The arrows\n * move up and down, Right opens a folder (or steps into it), Left closes it (or steps out), Enter\n * or a click chooses; the chevron opens and closes without choosing. The chosen folder takes the\n * brand tint and a tick, the selected treatment; the current folder stays in its place, quiet,\n * named as such, so the tree keeps its shape and the reader knows where they are.\n */\nexport function FolderTree({\n  rows,\n  searching,\n  expanded,\n  onExpandedChange,\n  current,\n  chosen,\n  onChoose,\n  naming,\n  onName,\n  onNamingEnd,\n  treeRef,\n}: FolderTreeProps) {\n  const [focused, setFocused] = useState<string>();\n  // A folder just made takes the focus once its row is on screen.\n  const [focusNext, setFocusNext] = useState<string>();\n\n  const ids = rows.map((row) => row.folder.id);\n  const tabStop = [focused, chosen].find((item) => item && ids.includes(item)) ?? ids[0];\n  const toggle = (folder: string, open: boolean) =>\n    onExpandedChange(open ? [...expanded, folder] : expanded.filter((item) => item !== folder));\n\n  const keyDown = (event: KeyboardEvent<HTMLLIElement>, index: number) => {\n    const { folder, depth, hasChildren } = rows[index];\n    const open = hasChildren && (searching || expanded.includes(folder.id));\n    const focusRow = (at: number) =>\n      treeRef.current\n        ?.querySelector<HTMLElement>(`[data-folder=\"${rows[at]?.folder.id}\"]`)\n        ?.focus();\n    const keys: Record<string, () => void> = {\n      ArrowDown: () => focusRow(Math.min(index + 1, rows.length - 1)),\n      ArrowUp: () => focusRow(Math.max(index - 1, 0)),\n      Home: () => focusRow(0),\n      End: () => focusRow(rows.length - 1),\n      ArrowRight: () => {\n        if (!hasChildren) return;\n        if (!open) toggle(folder.id, true);\n        else focusRow(index + 1);\n      },\n      ArrowLeft: () => {\n        if (open && !searching) {\n          toggle(folder.id, false);\n          return;\n        }\n        let parent = index - 1;\n        while (parent >= 0 && rows[parent].depth !== depth - 1) parent--;\n        if (parent >= 0) focusRow(parent);\n      },\n      Enter: () => folder.id !== current && onChoose(folder.id),\n      ' ': () => folder.id !== current && onChoose(folder.id),\n    };\n    if (!keys[event.key]) return;\n    event.preventDefault();\n    keys[event.key]();\n  };\n\n  return (\n    <ul ref={treeRef} role=\"tree\" aria-label=\"Folders\" className=\"flex flex-col\">\n      {rows.map(({ folder, depth, hasChildren, position, siblings }, index) => {\n        const open = hasChildren && (searching || expanded.includes(folder.id));\n        const isCurrent = folder.id === current;\n        const isChosen = folder.id === chosen;\n        return [\n          <li\n            key={folder.id}\n            ref={folder.id === focusNext ? (element) => element?.focus() : undefined}\n            data-folder={folder.id}\n            role=\"treeitem\"\n            aria-level={depth + 1}\n            aria-posinset={position}\n            aria-setsize={siblings}\n            aria-expanded={hasChildren ? open : undefined}\n            aria-selected={isChosen}\n            aria-disabled={isCurrent || undefined}\n            tabIndex={folder.id === tabStop ? 0 : -1}\n            onFocus={(event) => {\n              if (event.target !== event.currentTarget) return;\n              setFocused(folder.id);\n              setFocusNext(undefined);\n            }}\n            onClick={() => !isCurrent && onChoose(folder.id)}\n            onKeyDown={(event) => keyDown(event, index)}\n            className={cn(\n              ROW,\n              INDENT[depth],\n              isCurrent\n                ? 'text-ws-static-subtle cursor-default'\n                : 'text-ws-static-strong hover:bg-ws-dynamic-tertiary-alpha-strong-default cursor-pointer',\n              isChosen &&\n                'bg-ws-dynamic-primary-alpha-strong-default hover:bg-ws-dynamic-primary-alpha-strong-hover',\n            )}\n          >\n            {/* The keyboard opens and closes with Right and Left; the chevron is for the pointer. */}\n            {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}\n            <span\n              aria-hidden=\"true\"\n              onClick={(event) => {\n                event.stopPropagation();\n                if (hasChildren && !searching) toggle(folder.id, !open);\n              }}\n              className=\"size-ws-9 text-ws-static-subtle flex shrink-0 items-center justify-center\"\n            >\n              {hasChildren && (\n                <RiArrowRightSLine\n                  className={cn('size-ws-9 transition-transform', open && 'rotate-90')}\n                />\n              )}\n            </span>\n            <RiFolder3Line\n              aria-hidden=\"true\"\n              className=\"size-ws-9 text-ws-static-subtle shrink-0\"\n            />\n            <span className=\"ml-ws-3 min-w-0 flex-1 truncate\">{folder.name}</span>\n            {isCurrent && (\n              <span className=\"typography-caption-md text-ws-static-subtle shrink-0\">\n                Current folder\n              </span>\n            )}\n            {isChosen && (\n              <RiCheckLine\n                aria-hidden=\"true\"\n                className=\"size-ws-9 text-ws-dynamic-primary-default shrink-0\"\n              />\n            )}\n          </li>,\n          naming === folder.id && (\n            <NewFolderField\n              key=\"new-folder\"\n              depth={depth + 1}\n              onName={onName}\n              onDone={(made) => {\n                if (made) setFocusNext(made);\n                onNamingEnd();\n              }}\n            />\n          ),\n        ];\n      })}\n    </ul>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/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/** 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\". */\nexport const formatFiles = (count: number) => (count === 1 ? '1 file' : `${count} files`);\n"
    },
    {
      "path": "src/blocks/move-dialog/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { cn } from '@/lib/wideset/utils';\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 { useId, useRef, useState } from 'react';\n\nimport {\n  FILES,\n  FOLDERS,\n  NOW,\n  ROOT,\n  START_DESTINATION,\n  START_FOLDER,\n  START_SELECTION,\n} from './data';\nimport { FilesTable } from './files-table';\nimport { formatFiles } from './format';\nimport { MoveDialog, pathOf } from './move-dialog';\nimport { MoveToast } from './move-toast';\nimport { PageHeader } from './page-header';\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]';\n\ntype DialogState = { key: number; open: boolean; ids: string[] };\n\n/**\n * The screen inside the toasts. It holds the folders, the files and the open folder, so a move,\n * an archive or a new folder changes them in one place and says so in a toast, with Undo.\n */\nfunction FilesScreen() {\n  const sidebarId = useId();\n  const { showToast, dismissToast } = useToast();\n  const made = useRef(0);\n  // The latest move of each file: an older toast's Undo must not undo a newer one.\n  const moves = useRef(new Map<string, number>());\n  const moveCount = useRef(0);\n  const [collapsed, setCollapsed] = useState(false);\n  const [folders, setFolders] = useState(FOLDERS);\n  const [files, setFiles] = useState(FILES);\n  const [folder, setFolder] = useState(START_FOLDER);\n  const [selected, setSelected] = useState(START_SELECTION);\n  const [dialog, setDialog] = useState<DialogState>({ key: 0, open: true, ids: START_SELECTION });\n  // Where files last went: the dialog opens on it next time.\n  const [lastPlace, setLastPlace] = useState(START_DESTINATION);\n\n  const subfolders = folders\n    .filter((item) => item.parent === folder)\n    .sort((a, b) => a.name.localeCompare(b.name, 'en', { numeric: true }));\n  const here = files\n    .filter((file) => file.folder === folder && !file.archived)\n    .sort((a, b) => b.modified.localeCompare(a.modified));\n  const title = folder === ROOT ? 'Files' : folders.find((item) => item.id === folder)!.name;\n\n  /** Files, then each folder down to the open one; every crumb but the last goes there. */\n  const crumbs: { id: string; label: string }[] = [];\n  for (let at = folders.find((item) => item.id === folder); at;) {\n    crumbs.unshift({ id: at.id, label: at.id === ROOT ? 'Files' : at.name });\n    at = folders.find((item) => item.id === at?.parent);\n  }\n\n  const go = (id: string) => {\n    setFolder(id);\n    setSelected([]);\n  };\n\n  const close = () => setDialog({ ...dialog, open: false });\n\n  const move = (destination: string) => {\n    const { ids } = dialog;\n    // Where each file was, so Undo takes back this move only and nothing done since.\n    const from = new Map(\n      files.filter((file) => ids.includes(file.id)).map((f) => [f.id, f.folder]),\n    );\n    const token = ++moveCount.current;\n    ids.forEach((file) => moves.current.set(file, token));\n    setFiles((all) =>\n      all.map((file) => (ids.includes(file.id) ? { ...file, folder: destination } : file)),\n    );\n    setSelected([]);\n    setLastPlace(destination);\n    close();\n    const id = showToast({\n      variant: 'expanded',\n      content: (\n        <MoveToast\n          message={`Moved ${formatFiles(ids.length)} to ${pathOf(folders, destination)}`}\n          onOpenFolder={() => {\n            go(destination);\n            dismissToast(id);\n          }}\n          onUndo={() => {\n            setFiles((all) =>\n              all.map((file) =>\n                from.has(file.id) && moves.current.get(file.id) === token\n                  ? { ...file, folder: from.get(file.id)! }\n                  : file,\n              ),\n            );\n            dismissToast(id);\n          }}\n        />\n      ),\n    });\n  };\n\n  const archive = (ids: string[]) => {\n    setFiles((all) =>\n      all.map((file) => (ids.includes(file.id) ? { ...file, archived: true } : file)),\n    );\n    setSelected([]);\n    close();\n    const id = showToast({\n      content: `Archived ${formatFiles(ids.length)}`,\n      action: (\n        <Toast.Action\n          preset=\"ghost\"\n          onClick={() => {\n            setFiles((all) =>\n              all.map((file) => (ids.includes(file.id) ? { ...file, archived: false } : file)),\n            );\n            dismissToast(id);\n          }}\n        >\n          Undo\n        </Toast.Action>\n      ),\n    });\n  };\n\n  const createFolder = (name: string, parent: string) => {\n    const id = `new-folder-${++made.current}`;\n    setFolders((all) => [...all, { id, name, parent, owner: 'maya', modified: NOW }]);\n    return id;\n  };\n\n  return (\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 pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow 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              {crumbs.map((crumb, n) => (\n                <Breadcrumbs.Item\n                  key={crumb.id}\n                  onClick={n < crumbs.length - 1 ? () => go(crumb.id) : undefined}\n                >\n                  {crumb.label}\n                </Breadcrumbs.Item>\n              ))}\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          <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n            <PageHeader title={title} />\n            {subfolders.length + here.length > 0 ? (\n              <FilesTable\n                folders={subfolders}\n                files={here}\n                selected={selected}\n                onSelectedChange={setSelected}\n                onOpenFolder={go}\n              />\n            ) : (\n              <p className=\"py-ws-20 typography-body-md text-ws-static-subtle text-center\">\n                Nothing in this folder yet. Move files here, or upload them.\n              </p>\n            )}\n          </div>\n        </div>\n      </AppShell.Main>\n\n      <SelectionBar\n        count={selected.length}\n        onClear={() => setSelected([])}\n        onDownload={() =>\n          showToast({ content: `Downloading ${formatFiles(selected.length)} as a .zip` })\n        }\n        onMove={() => setDialog({ key: dialog.key + 1, open: true, ids: selected })}\n        onArchive={() => archive(selected)}\n      />\n\n      <MoveDialog\n        key={dialog.key}\n        open={dialog.open}\n        onOpenChange={(open) => setDialog({ ...dialog, open })}\n        count={dialog.ids.length}\n        folders={folders}\n        current={folder}\n        initialChoice={lastPlace !== folder ? lastPlace : undefined}\n        onCreateFolder={createFolder}\n        onMove={move}\n        onArchive={() => archive(dialog.ids)}\n      />\n    </AppShell>\n  );\n}\n\n/**\n * Move dialog (panel over Files, Inset direction): three proposals selected in the Proposals\n * folder and Move pressed in the selection bar, so the dialog is open on load. Its tree opens on\n * where the files are and on where they last went; moving closes it, takes the files off the list\n * and says where they went, with Open folder and Undo. The selection bar's Move opens it again.\n */\nexport default function MoveDialogBlock() {\n  return (\n    <ToastProvider>\n      <FilesScreen />\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/move-dialog.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/move-dialog.tsx",
      "content": "'use client';\n\nimport { RiArchiveLine, RiFolderAddLine, RiSearchLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useRef, useState } from 'react';\n\nimport { type Folder, ROOT } from './data';\nimport { FolderTree, treeRows } from './folder-tree';\nimport { formatFiles } from './format';\n\ntype MoveDialogProps = {\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  /** How many files are moving; kept while the dialog closes, so its words do not change. */\n  count: number;\n  folders: Folder[];\n  /** The folder the files are in now. */\n  current: string;\n  /** Chosen when the dialog opens: the place files last went, or nothing. */\n  initialChoice?: string;\n  /** Makes a folder and gives back its id. */\n  onCreateFolder: (name: string, parent: string) => string;\n  onMove: (destination: string) => void;\n  onArchive: () => void;\n};\n\n/** \"Proposals / 2026\": a folder's path under All files, or All files itself. */\nexport const pathOf = (folders: Folder[], id: string) => {\n  const names: string[] = [];\n  for (let at = folders.find((f) => f.id === id); at && at.id !== ROOT;) {\n    names.unshift(at.name);\n    at = folders.find((f) => f.id === at?.parent);\n  }\n  return names.length > 0 ? names.join(' / ') : 'All files';\n};\n\n/** A folder and the folders above it: the ones to open so it shows. */\nconst lineOf = (folders: Folder[], id?: string): string[] => {\n  const folder = folders.find((item) => item.id === id);\n  return folder ? [folder.id, ...lineOf(folders, folder.parent ?? undefined)] : [];\n};\n\n/**\n * Moving files to another folder. A search over the tree narrows it to the folders that match;\n * the tree opens on the current folder, which is marked and cannot be chosen. The choice is\n * repeated under the tree as a path, where New folder makes one inside it and chooses it. Move\n * here, the one filled button, waits for a choice. Archive instead sits apart on the left, for\n * files that should leave the active folders rather than move between them.\n */\nexport function MoveDialog({\n  open,\n  onOpenChange,\n  count,\n  folders,\n  current,\n  initialChoice,\n  onCreateFolder,\n  onMove,\n  onArchive,\n}: MoveDialogProps) {\n  const tree = useRef<HTMLUListElement>(null);\n  const [query, setQuery] = useState('');\n  const [chosen, setChosen] = useState(initialChoice);\n  const [expanded, setExpanded] = useState(() => [\n    ...new Set([...lineOf(folders, current), ...lineOf(folders, initialChoice), ROOT]),\n  ]);\n  // The folder a new one is being named in.\n  const [naming, setNaming] = useState<string>();\n\n  const searching = query.trim() !== '';\n  const rows = treeRows(folders, expanded, query);\n  const destination = chosen && chosen !== current ? chosen : undefined;\n\n  const startNaming = () => {\n    const parent = destination ?? ROOT;\n    setQuery('');\n    setExpanded((all) => [...new Set([...all, ...lineOf(folders, parent)])]);\n    setNaming(parent);\n  };\n\n  const name = (value: string) => {\n    const trimmed = value.trim();\n    if (!trimmed) return { error: 'Give the folder a name.' };\n    const taken = folders.some(\n      (folder) => folder.parent === naming && folder.name.toLowerCase() === trimmed.toLowerCase(),\n    );\n    if (taken) return { error: `There is already a folder called “${trimmed}” here.` };\n    const id = onCreateFolder(trimmed, naming ?? ROOT);\n    setChosen(id);\n    return { id };\n  };\n\n  return (\n    <Modal open={open} onOpenChange={onOpenChange}>\n      <Modal.Content className=\"ws-block-utility\"\n        // While a new folder is being named, Esc drops the name, not the dialog.\n        onEscapeKeyDown={(event) => naming && event.preventDefault()}\n      >\n        <Modal.Header>\n          <Modal.Title>{`Move ${formatFiles(count)}`}</Modal.Title>\n          <Modal.Description>\n            Choose a folder. The files keep their links and who they are shared with.\n          </Modal.Description>\n        </Modal.Header>\n        <Modal.Body className=\"gap-ws-9 flex flex-col\">\n          <TextInput value={query} onChange={(event) => setQuery(event.target.value)}>\n            <TextInput.Prefix inner>\n              <TextInput.Icon icon={RiSearchLine} />\n            </TextInput.Prefix>\n            <TextInput.Input\n              type=\"search\"\n              placeholder=\"Search folders\"\n              aria-label=\"Search folders\"\n              onKeyDown={(event) => {\n                // Down from the search goes into the tree, at its focus.\n                if (event.key !== 'ArrowDown') return;\n                event.preventDefault();\n                tree.current?.querySelector<HTMLElement>('[tabindex=\"0\"]')?.focus();\n              }}\n            />\n            <TextInput.Suffix inner>\n              <TextInput.ClearButton />\n            </TextInput.Suffix>\n          </TextInput>\n\n          {/* The tree scrolls inside its frame, so the dialog keeps its height while it opens. */}\n          <div className=\"border-ws-static-base rounded-ws-container-sm p-ws-3 ws-scrollbar h-[18.5rem] overflow-y-auto border\">\n            <FolderTree\n              rows={rows}\n              searching={searching}\n              expanded={expanded}\n              onExpandedChange={setExpanded}\n              current={current}\n              chosen={chosen}\n              onChoose={setChosen}\n              naming={naming}\n              onName={name}\n              onNamingEnd={() => setNaming(undefined)}\n              treeRef={tree}\n            />\n            {searching && rows.length === 1 && (\n              <p role=\"status\" className=\"px-ws-5 py-ws-5 typography-body-md text-ws-static-subtle\">\n                {`No folders called “${query.trim()}”.`}\n              </p>\n            )}\n          </div>\n\n          <div className=\"gap-ws-9 flex items-center justify-between\">\n            <p\n              aria-live=\"polite\"\n              className=\"typography-body-md text-ws-static-subtle min-w-0 truncate\"\n            >\n              {destination ? (\n                <>\n                  To: <span className=\"text-ws-static-strong\">{pathOf(folders, destination)}</span>\n                </>\n              ) : (\n                'Choose where they go.'\n              )}\n            </p>\n            <Button variant=\"secondary\" preset=\"ghost\" onClick={startNaming}>\n              <Button.Icon icon={RiFolderAddLine} />\n              New folder\n            </Button>\n          </div>\n        </Modal.Body>\n        <Modal.Footer variant=\"extension\">\n          <Button variant=\"secondary\" preset=\"border\" onClick={onArchive}>\n            <Button.Icon icon={RiArchiveLine} />\n            Archive instead\n          </Button>\n          <div className=\"gap-ws-5 flex\">\n            <Modal.Close asChild>\n              <Button variant=\"secondary\" preset=\"border\">\n                Cancel\n              </Button>\n            </Modal.Close>\n            <Button\n              disabled={!destination || naming !== undefined}\n              onClick={() => destination && onMove(destination)}\n            >\n              Move here\n            </Button>\n          </div>\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/move-toast.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/move-toast.tsx",
      "content": "'use client';\n\n// TODO(custom): a toast with two actions (Open folder and Undo); Wideset's Toast renders one Toast.Action, so both sit in the message, laid out as the expanded toast lays out its action row.\nimport { Toast } from '@/components/ui/wideset/toast/Toast';\n\n/**\n * What the toast says after a move, for an expanded toast: where the files went, then going there\n * or taking it back. Open folder comes first, since checking the result is the usual next step.\n */\nexport function MoveToast({\n  message,\n  onOpenFolder,\n  onUndo,\n}: {\n  message: string;\n  onOpenFolder: () => void;\n  onUndo: () => void;\n}) {\n  return (\n    <>\n      {message}\n      {/* ToastProvider renders this content outside the block’s layout root. */}\n      <span className=\"ws-block-utility mt-ws-9 gap-ws-7 flex\">\n        <Toast.Action variant=\"secondary\" onClick={onOpenFolder}>\n          Open folder\n        </Toast.Action>\n        <Toast.Action variant=\"secondary\" preset=\"ghost\" onClick={onUndo}>\n          Undo\n        </Toast.Action>\n      </span>\n    </>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the actions 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 open folder's name, what the files are for, and Upload. Upload is a secondary button here:\n * the dialog over the page carries the screen's one filled button.\n */\nexport function PageHeader({ title }: { title: string }) {\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\">{title}</h1>\n        <p className=\"typography-body-md text-ws-static-subtle\">\n          Shared with everyone in {workspace.name}.\n        </p>\n      </div>\n      <Button size=\"sm\" variant=\"secondary\" preset=\"border\">\n        <Button.Icon icon={RiUpload2Line} />\n        Upload\n      </Button>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/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/8QAHQAA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83ObcCu1cGUhBHIHqfdW/DsSio6J74j59wd77+y7UU/jygP5K6tl1pTpyxQrUnk22P93WrGyp1rcPIdKhENwwpKVD/AC1ZHmKshhhCmUuJOUqG8DWnh+qdUROjedQb9j/N1nr2CN4cBoVyJDqbXAeexxSnPvNU3r3S6NS2hxmT3nXDvFR9o86tTU8pK1tQ0EHdO+sD6D9/lUZmR/SVoZ6YJPyodj9c4TthiP8Apr3/AIWigjswvdv8IABZAxdJoU0r0WM8W1LKcpODU20dGLmqYCLZ3oq1b2E54EDr4YOKnGv9nV4scS5xosbtoM94LS6gZW2c5/v31MNjezB3TzMm6TlBTz7Q7MeG8QT/AH76K1eLxvpTJmuSLAduZ6KkNIY5AANOd/pW0lJjwY5J7yS2SfHKhWrqyLjsJIHD+mfuP3rduZ7JqO37TjY+WDWxfWu2tkhPUJCx8ONDOEa40WLQybFwafZ2n3fsqY1B49G9voT+mq//2Q==',\n};\n"
    },
    {
      "path": "src/blocks/move-dialog/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/person-avatar.tsx",
      "content": "'use client';\n\nimport type { AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | 'title' | 'aria-hidden' | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** Leave empty beside the person's name; pass the name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when the sample people have one, otherwise their initials in\n * their colour. A real product mixes the two, so every place the block draws a person asks here\n * and the choice is made once. The initials stay as the fallback if the image fails to load.\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/move-dialog/selection-bar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/selection-bar.tsx",
      "content": "'use client';\n\nimport { RiArchiveLine, RiDownloadLine, RiFolderTransferLine } from '@remixicon/react';\nimport { ActionBar } from '@/components/ui/wideset/action-bar/ActionBar';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\ntype SelectionBarProps = {\n  count: number;\n  onClear: () => void;\n  onDownload: () => void;\n  onMove: () => void;\n  onArchive: () => 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, or put it away. Move opens the dialog.\n */\nexport function SelectionBar({ count, onClear, onDownload, onMove, onArchive }: 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={onArchive}>\n        <Button.Icon icon={RiArchiveLine} />\n        Archive\n      </Button>\n    </ActionBar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/move-dialog/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/move-dialog/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"
  }
}
