{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-account-menu",
  "type": "registry:block",
  "title": "Account menu",
  "description": "The account menu opened from the sidebar: who is signed in, the workspaces, settings, a theme submenu, switching account and logging out.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "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/card.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/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/account-menu/account-menu.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/account-menu.tsx",
      "content": "'use client';\n\nimport {\n  type RemixiconComponentType,\n  RiAddLine,\n  RiArrowDownSLine,\n  RiContrast2Line,\n  RiKeyboardLine,\n  RiLogoutBoxRLine,\n  RiQuestionLine,\n  RiSettingsLine,\n  RiUserSharedLine,\n} from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { useSyncExternalStore } from 'react';\n\nimport { type Account, type Theme, THEMES, type Workspace } from './data';\nimport { MenuChoice } from './menu-choice';\nimport { MenuSub } from './menu-sub';\nimport { PersonAvatar } from './person-avatar';\n\nconst never = () => () => {};\nconst apple = () => (/Mac|iPhone|iPad/.test(navigator.userAgent) ? '⌘' : 'Ctrl');\n\n/**\n * ⌘ on Apple keyboards, Ctrl elsewhere. The server, which has no keyboard, renders Ctrl\n * and the browser corrects it after hydration, so a server-rendered page does not mismatch.\n */\nconst useModifier = () => useSyncExternalStore(never, apple, () => 'Ctrl');\n\ntype AccountMenuProps = {\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  account: Account;\n  accounts: Account[];\n  onAccountChange: (id: string) => void;\n  workspace: Workspace;\n  workspaces: Workspace[];\n  onWorkspaceChange: (id: string) => void;\n  theme: Theme;\n  onThemeChange: (theme: Theme) => void;\n  onLogOut: () => void;\n  /** Where the menu and its submenus portal to: the screen, so they take its theme. */\n  container: HTMLElement | null;\n};\n\n/** One plain command row: an icon, a label, and what comes after it. */\nfunction Command({\n  icon: Icon,\n  label,\n  suffix,\n}: {\n  icon: RemixiconComponentType;\n  label: string;\n  suffix?: string;\n}) {\n  return (\n    <DropdownMenu.Item>\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      {suffix && (\n        <ListItem.Suffix>\n          <span className=\"text-ws-static-subtle\">{suffix}</span>\n        </ListItem.Suffix>\n      )}\n    </DropdownMenu.Item>\n  );\n}\n\n/**\n * The account menu, opened from the account row at the foot of the sidebar. It starts on the\n * row's left edge and is wider than the sidebar, so it reaches past the navigation over the page\n * and reads as a layer above both, with room for the shortcut and the theme beside their names.\n * Who is signed in heads it; then where they are (the\n * workspaces, the open one ticked), what is theirs (settings, shortcuts, theme, help), and last\n * who they are signed in as (switching account, logging out). Theme and Switch account are\n * submenus: three choices each that would otherwise double the menu's height. Log out asks\n * nothing, since signing in again undoes it.\n */\nexport function AccountMenu({\n  open,\n  onOpenChange,\n  account,\n  accounts,\n  onAccountChange,\n  workspace,\n  workspaces,\n  onWorkspaceChange,\n  theme,\n  onThemeChange,\n  onLogOut,\n  container,\n}: AccountMenuProps) {\n  const modifier = useModifier();\n\n  return (\n    <DropdownMenu open={open} onOpenChange={onOpenChange}>\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 data-[state=open]: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={account.color} />\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 aria-hidden=\"true\" className=\"size-ws-9 text-ws-static-strong\" />\n        </button>\n      </DropdownMenu.Trigger>\n\n      <DropdownMenu.Content\n        side=\"top\"\n        align=\"start\"\n        portalContainer={container}\n        className=\"ws-block-utility w-[18rem]\"\n      >\n        {/* Who is signed in: a label, not an action. */}\n        <DropdownMenu.Label className=\"gap-ws-5 flex items-center\">\n          <PersonAvatar name={account.name} initials={account.initials} color={account.color} />\n          <span className=\"flex min-w-0 flex-col\">\n            <span className=\"typography-label-strong-sm text-ws-static-strong 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        </DropdownMenu.Label>\n        <DropdownMenu.Separator />\n\n        <DropdownMenu.RadioGroup\n          aria-label=\"Workspaces\"\n          value={workspace.id}\n          onValueChange={onWorkspaceChange}\n        >\n          {workspaces.map((item) => (\n            <MenuChoice key={item.id} value={item.id}>\n              <ListItem.Prefix>\n                <Avatar size=\"xs\" shape=\"square\" initials={item.initials} color={item.color} />\n              </ListItem.Prefix>\n              <ListItem.Content>\n                <ListItem.Label>{item.name}</ListItem.Label>\n              </ListItem.Content>\n            </MenuChoice>\n          ))}\n        </DropdownMenu.RadioGroup>\n        <Command icon={RiAddLine} label=\"Create workspace\" />\n        <DropdownMenu.Separator />\n\n        <Command icon={RiSettingsLine} label=\"Account settings\" />\n        <Command icon={RiKeyboardLine} label=\"Keyboard shortcuts\" suffix={`${modifier} /`} />\n        <MenuSub\n          icon={RiContrast2Line}\n          label=\"Theme\"\n          value={THEMES.find((item) => item.value === theme)?.label}\n          container={container}\n        >\n          <DropdownMenu.RadioGroup\n            aria-label=\"Theme\"\n            value={theme}\n            onValueChange={(value) => onThemeChange(value as Theme)}\n          >\n            {THEMES.map(({ value, label, icon: Icon }) => (\n              <MenuChoice key={value} value={value}>\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              </MenuChoice>\n            ))}\n          </DropdownMenu.RadioGroup>\n        </MenuSub>\n        <Command icon={RiQuestionLine} label=\"Help and support\" />\n        <DropdownMenu.Separator />\n\n        <MenuSub icon={RiUserSharedLine} label=\"Switch account\" container={container}>\n          <DropdownMenu.RadioGroup\n            aria-label=\"Accounts\"\n            value={account.id}\n            onValueChange={onAccountChange}\n          >\n            {accounts.map((item) => (\n              <MenuChoice key={item.id} value={item.id}>\n                <ListItem.Prefix>\n                  <PersonAvatar\n                    size=\"xs\"\n                    name={item.name}\n                    initials={item.initials}\n                    color={item.color}\n                  />\n                </ListItem.Prefix>\n                <ListItem.Content>\n                  <ListItem.Label>{item.name}</ListItem.Label>\n                  <ListItem.Description>{item.email}</ListItem.Description>\n                </ListItem.Content>\n              </MenuChoice>\n            ))}\n          </DropdownMenu.RadioGroup>\n          <DropdownMenu.Separator />\n          <Command icon={RiAddLine} label=\"Add account\" />\n        </MenuSub>\n        <DropdownMenu.Item variant=\"danger\" onSelect={onLogOut}>\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  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/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/account-menu/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiComputerLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Fill,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiMoonLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiSunLine,\n  RiTeamLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  Maya's Tuesday afternoon in Orbit, Home open behind the account menu. She belongs to three\n  workspaces (Lumen Studio is the one open) and is signed in twice on this browser: as herself and\n  as the studio's shared admin account.\n*/\n\n/** The product is Orbit; the workspace is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const account = { firstName: 'Maya' };\n\n/** The sample is frozen on this day. */\nexport const TODAY = '2026-11-10';\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, activeIcon: RiHome5Fill },\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];\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\nexport type Deal = {\n  id: string;\n  customer: string;\n  stage: 'Discovery' | 'Proposal' | 'Negotiation' | 'Commit';\n  amount: number;\n  nextStep: string;\n};\n\n/** Maya's open deals whose next step falls this week, soonest first. */\nexport const deals: Deal[] = [\n  {\n    id: 'halcyon',\n    customer: 'Halcyon Freight',\n    stage: 'Negotiation',\n    amount: 24_000,\n    nextStep: 'Send the revised quote today',\n  },\n  {\n    id: 'northwind',\n    customer: 'Northwind Health',\n    stage: 'Proposal',\n    amount: 18_500,\n    nextStep: 'Walk through the pricing this afternoon',\n  },\n  {\n    id: 'kestrel',\n    customer: 'Kestrel Analytics',\n    stage: 'Discovery',\n    amount: 9_600,\n    nextStep: 'Run the product demo on Thursday',\n  },\n  {\n    id: 'cobalt',\n    customer: 'Cobalt Security',\n    stage: 'Commit',\n    amount: 21_000,\n    nextStep: 'Get the order form signed by Friday',\n  },\n];\n\nexport type Meeting = {\n  id: string;\n  title: string;\n  customer: string;\n  /** When it starts, as a local date and time. */\n  start: string;\n  minutes: number;\n};\n\n/** The next meetings on Maya's calendar. */\nexport const meetings: Meeting[] = [\n  {\n    id: 'northwind',\n    title: 'Pricing review',\n    customer: 'Northwind Health',\n    start: '2026-11-10T16:00',\n    minutes: 30,\n  },\n  {\n    id: 'juniper',\n    title: 'Contract walkthrough',\n    customer: 'Juniper Legal',\n    start: '2026-11-11T10:00',\n    minutes: 60,\n  },\n  {\n    id: 'kestrel',\n    title: 'Product demo',\n    customer: 'Kestrel Analytics',\n    start: '2026-11-12T15:00',\n    minutes: 45,\n  },\n];\n\nexport type Workspace = {\n  id: string;\n  name: string;\n  /** One letter is drawn at the menu's size, so each workspace starts with its own. */\n  initials: string;\n  color: AvatarColor;\n};\n\n/** The workspaces Maya belongs to; Lumen Studio is open. */\nexport const workspaces: Workspace[] = [\n  { id: 'lumen', name: 'Lumen Studio', initials: 'LS', color: 'orange' },\n  { id: 'sandbox', name: 'Sandbox', initials: 'SB', color: 'teal' },\n  { id: 'northgate', name: 'Northgate Partners', initials: 'NP', color: 'blue' },\n];\n\nexport type Account = {\n  id: string;\n  name: string;\n  email: string;\n  initials: string;\n  color: AvatarColor;\n};\n\n/** The accounts signed in on this browser; Maya's own is in use. */\nexport const accounts: Account[] = [\n  {\n    id: 'maya',\n    name: 'Maya Okafor',\n    email: 'maya@lumenstudio.co',\n    initials: 'MO',\n    color: 'orange',\n  },\n  {\n    id: 'admin',\n    name: 'Lumen Studio admin',\n    email: 'admin@lumenstudio.co',\n    initials: 'LA',\n    color: 'purple',\n  },\n];\n\nexport type Theme = 'light' | 'dark' | 'system';\n\nexport const THEMES: { value: Theme; label: string; icon: RemixiconComponentType }[] = [\n  { value: 'light', label: 'Light', icon: RiSunLine },\n  { value: 'dark', label: 'Dark', icon: RiMoonLine },\n  { value: 'system', label: 'Match system', icon: RiComputerLine },\n];\n"
    },
    {
      "path": "src/blocks/account-menu/deals-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/deals-table.tsx",
      "content": "'use client';\n\n// TODO(custom): whole-row link done with a stretched <a>; Table has no row link.\nimport { Card } from '@/components/ui/wideset/card/Card';\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { type StatusBadgeProps } from '@/components/ui/wideset/status-badge/StatusBadge.types';\nimport { Table } from '@/components/ui/wideset/table/Table';\nimport { useId } from 'react';\n\nimport type { Deal } from './data';\nimport { formatUsd } from './format';\n\n/**\n * A stage's colour says how the deal stands, as on the sales overview: discovery is only a\n * start, a proposal is out and in progress, a negotiation still needs a look before it can close,\n * a commit is as good as won.\n */\nconst STAGE_COLOR: Record<Deal['stage'], NonNullable<StatusBadgeProps['color']>> = {\n  Discovery: 'neutral',\n  Proposal: 'info',\n  Negotiation: 'notice',\n  Commit: 'positive',\n};\n\n/**\n * The deals whose next step falls this week, soonest first, in a card: the list to work through\n * is the page's main job. Who, where the deal stands, what to do next, and what it is worth; a\n * row opens its deal from anywhere on it. The table sits in the card itself, not in\n * `Card.Content` (whose scrollbar gutter would stop the lines short of the right edge), so its\n * lines run edge to edge; the outer cells keep the card's 20px so the text lines up with the\n * title, and the last row drops its line, which the card's border replaces.\n */\nexport function DealsTable({ deals }: { deals: Deal[] }) {\n  const titleId = useId();\n\n  return (\n    <Card role=\"region\" aria-labelledby={titleId}>\n      <Card.Header>\n        <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n          Deals to move this week\n        </h2>\n      </Card.Header>\n      {/* Auto layout: the short columns keep to one line and their width, the next step takes\n          the rest. */}\n      <Table\n        interactive\n        aria-labelledby={titleId}\n        className=\"[&_tbody_tr:last-child>td]:border-b-0\"\n      >\n        <Table.Head>\n          <Table.Row>\n            <Table.Header className=\"pl-ws-11 whitespace-nowrap\">Customer</Table.Header>\n            <Table.Header>Stage</Table.Header>\n            <Table.Header className=\"w-full\">Next step</Table.Header>\n            <Table.Header align=\"right\" className=\"pr-ws-11\">\n              Amount\n            </Table.Header>\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {deals.map((deal) => (\n            // The customer's link stretches over the whole row: one target, the hover on every\n            // cell.\n            <Table.Row key={deal.id} className=\"relative\">\n              <Table.Cell className=\"pl-ws-11 whitespace-nowrap\">\n                <a\n                  href={`#deal-${deal.id}`}\n                  className=\"text-ws-static-strong focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default after:inset-ws-0 after:absolute\"\n                >\n                  {deal.customer}\n                </a>\n              </Table.Cell>\n              <Table.Cell>\n                <StatusBadge color={STAGE_COLOR[deal.stage]}>{deal.stage}</StatusBadge>\n              </Table.Cell>\n              <Table.Cell>{deal.nextStep}</Table.Cell>\n              <Table.Cell align=\"right\" className=\"pr-ws-11\">\n                <span className=\"text-ws-static-strong tabular-nums\">{formatUsd(deal.amount)}</span>\n              </Table.Cell>\n            </Table.Row>\n          ))}\n        </Table.Body>\n      </Table>\n    </Card>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/format.ts",
      "content": "// One locale and currency for the whole screen; swap them for the user's.\nconst LOCALE = 'en-US';\n\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  maximumFractionDigits: 0,\n});\n// Days are calendar days (`2026-11-10`), parsed as UTC midnight: format them in UTC too.\nconst longDay = new Intl.DateTimeFormat(LOCALE, {\n  weekday: 'long',\n  month: 'long',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\nconst shortDay = new Intl.DateTimeFormat(LOCALE, {\n  weekday: 'short',\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\n// Times are local (`2026-11-10T11:30`, no zone): parsed and formatted in the reader's zone, so\n// the clock on screen is the one in the data.\nconst time = new Intl.DateTimeFormat(LOCALE, { hour: 'numeric', minute: '2-digit' });\nconst relative = new Intl.RelativeTimeFormat(LOCALE, { numeric: 'auto' });\n\nconst DAY = 86_400_000;\n\nexport const formatUsd = (value: number) => usd.format(value);\n/** Tuesday, November 10. */\nexport const formatLongDay = (iso: string) => longDay.format(new Date(iso));\n/** 11:30 AM. */\nexport const formatTime = (iso: string) => time.format(new Date(iso));\n\n/** A day as the week reads it: `Today`, `Tomorrow`, then `Thu, Nov 12`. */\nexport function formatDay(iso: string, today: string) {\n  const day = iso.slice(0, 10);\n  const away = (Date.parse(day) - Date.parse(today)) / DAY;\n  if (away < 0 || away > 1) return shortDay.format(new Date(day));\n  const text = relative.format(away, 'day');\n  return text.charAt(0).toUpperCase() + text.slice(1);\n}\n"
    },
    {
      "path": "src/blocks/account-menu/home-page.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/home-page.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nimport { account, deals, meetings, TODAY } from './data';\nimport { DealsTable } from './deals-table';\nimport { formatLongDay } from './format';\nimport { UpcomingMeetings } from './upcoming-meetings';\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\n/**\n * Home, drawn quietly: the page the overlay opens over. The greeting, the deals to move this week\n * and what is coming up, so the screen behind is real without competing with what is open on it.\n */\nexport function HomePage() {\n  return (\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        <header className=\"gap-ws-2 flex flex-col\">\n          <h1 className=\"typography-title-md text-ws-static-strong\">\n            Good afternoon, {account.firstName}\n          </h1>\n          <p className=\"typography-body-md text-ws-static-subtle\">\n            {formatLongDay(TODAY)}. Your deals and meetings for the week.\n          </p>\n        </header>\n\n        <div className=\"gap-ws-12 grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_18rem]\">\n          <DealsTable deals={deals} />\n          <UpcomingMeetings meetings={meetings} today={TODAY} />\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/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 { useId, useState, useSyncExternalStore } from 'react';\n\nimport { AccountMenu } from './account-menu';\nimport { accounts, type Theme, workspaces } from './data';\nimport { HomePage } from './home-page';\nimport { WorkspaceSidebar } from './sidebar';\nimport { SignedOut } from './signed-out';\n\n/**\n * Whether the device asks for dark, kept in step with it. Where there is no `matchMedia` (a test\n * runner, an old browser) the answer is light and nothing is watched.\n */\nconst DARK_QUERY = '(prefers-color-scheme: dark)';\nconst darkQuery = () =>\n  typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n    ? window.matchMedia(DARK_QUERY)\n    : null;\nconst subscribe = (onChange: () => void) => {\n  const query = darkQuery();\n  query?.addEventListener('change', onChange);\n  return () => query?.removeEventListener('change', onChange);\n};\nconst useSystemDark = () =>\n  useSyncExternalStore(\n    subscribe,\n    () => darkQuery()?.matches ?? false,\n    () => false,\n  );\n\n/**\n * Account menu (panel over Home, Inset direction): the menu from the account row at the foot of\n * the sidebar, open on load. Everything in it works: the workspace and the account switch what the\n * sidebar shows, the theme really turns the screen (the `dark` class on its root, and the menus\n * portal into that root so they turn with it; a real app sets it on <html> with `useTheme`), and\n * Log out leaves a signed-out card with the way back.\n */\nexport default function AccountMenuBlock() {\n  const sidebarId = useId();\n  const [root, setRoot] = useState<HTMLDivElement | null>(null);\n  const [collapsed, setCollapsed] = useState(false);\n  const [open, setOpen] = useState(true);\n  const [workspaceId, setWorkspaceId] = useState(workspaces[0].id);\n  const [accountId, setAccountId] = useState(accounts[0].id);\n  const [theme, setTheme] = useState<Theme>('system');\n  const [signedOut, setSignedOut] = useState(false);\n  const systemDark = useSystemDark();\n\n  const dark = theme === 'dark' || (theme === 'system' && systemDark);\n  const workspace = workspaces.find((item) => item.id === workspaceId) ?? workspaces[0];\n  const account = accounts.find((item) => item.id === accountId) ?? accounts[0];\n\n  return (\n    <AppShell direction=\"inset\" ref={setRoot} className={['ws-block-utility', (cn(dark && 'dark'))].filter(Boolean).join(' ')}>\n      {signedOut ? (\n        <SignedOut\n          email={account.email}\n          workspace={workspace.name}\n          onSignIn={() => setSignedOut(false)}\n        />\n      ) : (\n        <>\n          <WorkspaceSidebar\n            id={sidebarId}\n            collapsed={collapsed}\n            onCollapsedChange={setCollapsed}\n            workspace={workspace}\n            account={account}\n            accountMenu={\n              <AccountMenu\n                open={open}\n                onOpenChange={setOpen}\n                account={account}\n                accounts={accounts}\n                onAccountChange={setAccountId}\n                workspace={workspace}\n                workspaces={workspaces}\n                onWorkspaceChange={setWorkspaceId}\n                theme={theme}\n                onThemeChange={setTheme}\n                onLogOut={() => setSignedOut(true)}\n                container={root}\n              />\n            }\n          />\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\n                  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                  <Breadcrumbs.Item>Home</Breadcrumbs.Item>\n                </Breadcrumbs>\n              </div>\n            </div>\n\n            <HomePage />\n          </AppShell.Main>\n        </>\n      )}\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/menu-choice.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/menu-choice.tsx",
      "content": "'use client';\n\n// TODO(custom): a menu item that is one choice of several, ticked when picked; Wideset exports DropdownMenu.RadioGroup and RadioItem as bare Radix parts with no styling.\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport type { ReactNode } from 'react';\n\n/**\n * One choice in a `DropdownMenu.RadioGroup` (a workspace, a theme, an account): drawn as\n * `DropdownMenu.Item` draws a row, with `ListItem`'s own tick and selected fill on the one picked,\n * and announced as a radio item, so a screen reader hears which one is on.\n */\nexport function MenuChoice({\n  value,\n  onSelect,\n  children,\n}: {\n  value: string;\n  onSelect?: () => void;\n  children: ReactNode;\n}) {\n  return (\n    <DropdownMenu.RadioItem\n      value={value}\n      onSelect={onSelect}\n      asChild\n      className=\"min-h-ws-14 outline-hidden\"\n    >\n      <ListItem>{children}</ListItem>\n    </DropdownMenu.RadioItem>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/menu-sub.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/menu-sub.tsx",
      "content": "'use client';\n\n// TODO(custom): a submenu (a row with the current value and a chevron, its own panel beside the menu); Wideset exports DropdownMenu.Sub, SubTrigger and SubContent as bare Radix parts with no styling.\nimport { type RemixiconComponentType, RiArrowRightSLine } from '@remixicon/react';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport type { ReactNode } from 'react';\n\n/** `DropdownMenu.Content`'s surface, copied so the submenu is drawn as the menu it opens from. */\nconst PANEL =\n  'min-w-ws-28 rounded-ws-container-sm p-ws-3 bg-ws-static-overlay text-ws-dynamic-secondary-default shadow-ws-medium z-ws-popout outline-hidden';\n\ntype MenuSubProps = {\n  icon: RemixiconComponentType;\n  label: string;\n  /** What is chosen inside now, shown quietly before the chevron (\"Match system\"). */\n  value?: string;\n  /** Where the panel portals to: the menu's own container, so it follows the screen's theme. */\n  container?: HTMLElement | null;\n  children: ReactNode;\n};\n\n/**\n * A row that opens a second menu beside the first: hover, → or Enter opens it, ← or Esc goes back.\n * The row is a `ListItem` like every other item, with the choice it holds and a chevron after the\n * label; while its panel is open it keeps the hover fill, so the eye can follow where it came from.\n */\nexport function MenuSub({ icon: Icon, label, value, container, children }: MenuSubProps) {\n  return (\n    <DropdownMenu.Sub>\n      <DropdownMenu.SubTrigger\n        asChild\n        className=\"min-h-ws-14 data-[state=open]:bg-ws-dynamic-secondary-alpha-hover outline-hidden\"\n      >\n        <ListItem>\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          <ListItem.Suffix>\n            {value && <span className=\"text-ws-static-subtle\">{value}</span>}\n            <RiArrowRightSLine aria-hidden=\"true\" className=\"size-ws-9\" />\n          </ListItem.Suffix>\n        </ListItem>\n      </DropdownMenu.SubTrigger>\n      <DropdownMenu.Portal container={container ?? undefined}>\n        <DropdownMenu.SubContent\n          sideOffset={8}\n          alignOffset={-4}\n          collisionPadding={12}\n          className={['ws-block-utility', (PANEL)].filter(Boolean).join(' ')}\n        >\n          {children}\n        </DropdownMenu.SubContent>\n      </DropdownMenu.Portal>\n    </DropdownMenu.Sub>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/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/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBw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": "registry:file",
      "target": "blocks/wideset/account-menu/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\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' | 'className' | 'style' | '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  /** The colour of the initials. A photo takes none. */\n  color?: AvatarColor;\n  /** Empty beside the person's name (the default); their name when the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when they have one, their initials when not. The choice lives\n * here so every place the block draws a person mixes the two the same way. The rest of the props\n * go to the `Avatar`, so it also sits in an `Avatar.Group`.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...avatar }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...avatar} />\n  ) : (\n    <Avatar initials={initials} color={color} {...avatar} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport { RiAddLine, RiArrowDownSLine, RiSearchLine } 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 { type ReactNode, useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  type Account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  type 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 * whose row opens the account menu (passed in, since the screen holds what it changes).\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 WorkspaceSidebar({\n  workspace,\n  account,\n  accountMenu,\n  ...props\n}: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'> & {\n  /** The workspace open now, named at the top. */\n  workspace: Workspace;\n  /** Who is signed in, for the avatar left when the sidebar is collapsed. */\n  account: Account;\n  /** The account row and the menu it opens, at the foot. */\n  accountMenu: ReactNode;\n}) {\n  const [active, setActive] = useState('home');\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>{accountMenu}</Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color={account.color}\n                  title={account.name}\n                  alt={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/signed-out.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/signed-out.tsx",
      "content": "'use client';\n\n// TODO(custom): a signed-out message (the mark, a title, a line, one action) on a raised card; Wideset has no empty or result state component.\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { useEffect, useId, useRef } from 'react';\n\nimport { BrandMark } from './brand-mark';\n\n/**\n * What the screen shows after Log out: no app around it, only a short card on the grey ground\n * saying who signed out of what, and the one way back. Signing in again is the undo, which is why\n * Log out asked nothing.\n */\nexport function SignedOut({\n  email,\n  workspace,\n  onSignIn,\n}: {\n  email: string;\n  workspace: string;\n  onSignIn: () => void;\n}) {\n  const titleId = useId();\n  const action = useRef<HTMLButtonElement>(null);\n\n  // The row that had the focus is gone with the app: hand it to the way back.\n  useEffect(() => action.current?.focus(), []);\n\n  return (\n    <main className=\"p-ws-12 flex flex-1 items-center justify-center\">\n      <section\n        aria-labelledby={titleId}\n        className=\"bg-ws-static-foreground rounded-ws-container-lg shadow-ws-low gap-ws-12 p-ws-14 flex w-full max-w-[26rem] flex-col items-start\"\n      >\n        <BrandMark className=\"size-ws-15\" />\n        <div className=\"gap-ws-3 flex flex-col\">\n          <h1 id={titleId} className=\"typography-title-md text-ws-static-strong\">\n            Signed out\n          </h1>\n          <p role=\"status\" className=\"typography-body-md text-ws-static-subtle\">\n            You signed out of {workspace} as {email}.\n          </p>\n        </div>\n        <Button ref={action} onClick={onSignIn}>\n          Sign in again\n        </Button>\n      </section>\n    </main>\n  );\n}\n"
    },
    {
      "path": "src/blocks/account-menu/upcoming-meetings.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/account-menu/upcoming-meetings.tsx",
      "content": "'use client';\n\n// TODO(custom): agenda list (a time column, then the meeting and who it is with); Wideset has no agenda or event row.\nimport { Card } from '@/components/ui/wideset/card/Card';\nimport { useId } from 'react';\n\nimport type { Meeting } from './data';\nimport { formatDay, formatTime } from './format';\n\n/**\n * The next few meetings, in a card beside the deals so the row reads as two containers drawn the\n * same way: when on the left, in one column so the times line up, then what the meeting is and\n * the customer it is with. Plain rows, nothing to click: the calendar owns them.\n */\nexport function UpcomingMeetings({ meetings, today }: { meetings: Meeting[]; today: string }) {\n  const titleId = useId();\n\n  return (\n    <Card role=\"region\" aria-labelledby={titleId}>\n      <Card.Header>\n        <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n          Coming up\n        </h2>\n      </Card.Header>\n      {/* Card.Content keeps 10px free on its right for a scrollbar: the padding gives it back. */}\n      <Card.Content contentClassName=\"pr-ws-6\">\n        <ul className=\"gap-ws-9 flex flex-col\">\n          {meetings.map((meeting) => (\n            <li key={meeting.id} className=\"gap-ws-9 flex items-start\">\n              <time dateTime={meeting.start} className=\"flex w-[4.5rem] shrink-0 flex-col\">\n                <span className=\"typography-label-sm text-ws-static-strong tabular-nums\">\n                  {formatTime(meeting.start)}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle\">\n                  {formatDay(meeting.start, today)}\n                </span>\n              </time>\n              <div className=\"flex min-w-0 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {meeting.title}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {meeting.customer} · {meeting.minutes} min\n                </span>\n              </div>\n            </li>\n          ))}\n        </ul>\n      </Card.Content>\n    </Card>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
