{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-team",
  "type": "registry:block",
  "title": "Team",
  "description": "The people in a workspace: members with their roles, pending invitations and inviting someone new.",
  "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/button.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/select.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/tabs.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/toast.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/team/access-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/access-list.tsx",
      "content": "'use client';\n\n// TODO(custom): a person row (avatar, name, e-mail, role); Figma uses List Item flush and without hover, Wideset's ListItem always insets and reads as clickable.\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { useId } from 'react';\n\nimport { PersonAvatar } from './person-avatar';\nimport { RoleMenu, type RoleOption } from './role-menu';\n\nexport type AccessPerson<Role extends string = string> = {\n  id: string;\n  email: string;\n  /** Name and initials are left out for someone invited who has not joined yet. */\n  name?: string;\n  initials?: string;\n  role: Role;\n  online?: boolean;\n};\n\n/**\n * \"Who has access\": the people and their roles, each role changed in its own row; someone invited\n * shows by their address until they join. The rows are not clickable, so they are plain list\n * items on ListItem's measures (32px avatar, 8px gap, 4px above and below), not ListItem. Past\n * five rows the list scrolls on its own, so the invite field above it stays in reach; the part\n * of the sixth row left in view shows there is more.\n */\nexport function AccessList<Role extends string>({\n  people,\n  roles,\n  onRoleChange,\n}: {\n  people: AccessPerson<Role>[];\n  /** Every role; a `fixed` one (the owner's) is only shown on whoever holds it. */\n  roles: RoleOption<Role>[];\n  onRoleChange: (person: AccessPerson<Role>, role: Role) => void;\n}) {\n  const id = useId();\n  const assignable = roles.filter((role) => !role.fixed);\n\n  return (\n    <section className=\"gap-ws-7 flex flex-col\">\n      <h3 id={id} className=\"typography-body-md text-ws-static-subtle\">\n        Who has access\n      </h3>\n      <ul\n        aria-labelledby={id}\n        className=\"gap-ws-5 ws-scrollbar flex max-h-[18rem] flex-col overflow-y-auto\"\n      >\n        {people.map((person) => (\n          <li key={person.id} className=\"gap-ws-5 py-ws-3 flex items-center\">\n            {person.name && person.initials ? (\n              <PersonAvatar\n                aria-hidden=\"true\"\n                name={person.name}\n                initials={person.initials}\n                status={person.online ? 'online' : undefined}\n              />\n            ) : (\n              <Avatar aria-hidden=\"true\" />\n            )}\n            <div className=\"min-w-0 flex-1\">\n              <p className=\"typography-label-sm text-ws-dynamic-secondary-default truncate\">\n                {person.name ?? person.email}\n              </p>\n              <p className=\"typography-body-sm text-ws-static-subtle truncate\">\n                {person.name ? person.email : 'Invitation sent'}\n              </p>\n            </div>\n            <RoleMenu\n              aria-label={`Role of ${person.name ?? person.email}`}\n              value={person.role}\n              options={\n                assignable.some((role) => role.value === person.role)\n                  ? assignable\n                  : roles.filter((role) => role.value === person.role)\n              }\n              onValueChange={(role) => onRoleChange(person, role)}\n            />\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/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/team/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/team/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiBuilding2Line,\n  RiHandCoinLine,\n  RiHomeLine,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/** The sample's clock: every relative date on the page is measured from here. */\nexport const NOW = new Date('2026-11-10T14:30:00');\n\nexport const workspace = {\n  name: 'Lumen Studio',\n  plan: 'Growth',\n  seats: 15,\n  /** The address people join the workspace by. */\n  inviteLink: 'join.orbit.so/lumen-studio',\n};\n\nexport type Role = 'owner' | 'admin' | 'member' | 'viewer';\n\nexport const ROLE_LABEL: Record<Role, string> = {\n  owner: 'Owner',\n  admin: 'Admin',\n  member: 'Member',\n  viewer: 'Viewer',\n};\n\n/** The roles a person can be given. Ownership is transferred, never assigned. */\nexport const ROLE_OPTIONS = (['admin', 'member', 'viewer'] as const).map((value) => ({\n  value,\n  label: ROLE_LABEL[value],\n}));\n\n/** What each role may do, shown under its name in the role menu. */\nexport const ROLE_HINT: Record<Exclude<Role, 'owner'>, string> = {\n  admin: 'Admins manage members, billing and workspace settings.',\n  member: 'Members work with customers, deals and reports.',\n  viewer: 'Viewers can see everything and change nothing.',\n};\n\nexport type Member = {\n  id: string;\n  name: string;\n  initials: string;\n  email: string;\n  role: Role;\n  teams: string[];\n  /** ISO date and time of the last session. */\n  lastActive: string;\n  twoFactor: boolean;\n};\n\nexport type Invitation = {\n  id: string;\n  email: string;\n  role: Exclude<Role, 'owner'>;\n  invitedBy: string;\n  /** ISO date and time; the link expires 7 days later. */\n  sent: string;\n};\n\nexport const members: Member[] = [\n  {\n    id: 'hana',\n    name: 'Hana Kobayashi',\n    initials: 'HK',\n    email: 'hana@lumen.studio',\n    role: 'owner',\n    teams: ['Leadership'],\n    lastActive: '2026-11-10T14:30:00',\n    twoFactor: true,\n  },\n  {\n    id: 'marcus',\n    name: 'Marcus Bell',\n    initials: 'MB',\n    email: 'marcus@lumen.studio',\n    role: 'admin',\n    teams: ['Revenue Ops'],\n    lastActive: '2026-11-10T13:48:00',\n    twoFactor: true,\n  },\n  {\n    id: 'priya',\n    name: 'Priya Raman',\n    initials: 'PR',\n    email: 'priya@lumen.studio',\n    role: 'admin',\n    teams: ['Revenue Ops', 'Finance'],\n    lastActive: '2026-11-10T09:15:00',\n    twoFactor: true,\n  },\n  {\n    id: 'amara',\n    name: 'Amara Nwosu',\n    initials: 'AN',\n    email: 'amara@lumen.studio',\n    role: 'member',\n    teams: ['Sales'],\n    lastActive: '2026-11-10T11:02:00',\n    twoFactor: false,\n  },\n  {\n    id: 'jonas',\n    name: 'Jonas Lindqvist',\n    initials: 'JL',\n    email: 'jonas@lumen.studio',\n    role: 'member',\n    teams: ['Customer Success'],\n    lastActive: '2026-11-09T16:40:00',\n    twoFactor: true,\n  },\n  {\n    id: 'kofi',\n    name: 'Kofi Mensah',\n    initials: 'KM',\n    email: 'kofi@lumen.studio',\n    role: 'member',\n    teams: ['Sales'],\n    lastActive: '2026-11-10T08:05:00',\n    twoFactor: true,\n  },\n  {\n    id: 'leila',\n    name: 'Leila Haddad',\n    initials: 'LH',\n    email: 'leila@lumen.studio',\n    role: 'member',\n    teams: ['Customer Success', 'Sales'],\n    lastActive: '2026-11-08T10:05:00',\n    twoFactor: true,\n  },\n  {\n    id: 'sofia',\n    name: 'Sofia Marino',\n    initials: 'SM',\n    email: 'sofia@lumen.studio',\n    role: 'member',\n    teams: ['Marketing'],\n    lastActive: '2026-11-07T09:30:00',\n    twoFactor: false,\n  },\n  {\n    id: 'tomas',\n    name: 'Tomás Ortega',\n    initials: 'TO',\n    email: 'tomas@lumen.studio',\n    role: 'member',\n    teams: ['Sales'],\n    lastActive: '2026-11-10T14:18:00',\n    twoFactor: true,\n  },\n  {\n    id: 'wei',\n    name: 'Wei Chen',\n    initials: 'WC',\n    email: 'wei@lumen.studio',\n    role: 'member',\n    teams: ['Data'],\n    lastActive: '2026-11-06T17:20:00',\n    twoFactor: true,\n  },\n  {\n    id: 'daniel',\n    name: 'Daniel Okoro',\n    initials: 'DO',\n    email: 'daniel@lumen.studio',\n    role: 'viewer',\n    teams: ['Finance'],\n    lastActive: '2026-10-21T15:00:00',\n    twoFactor: true,\n  },\n  {\n    id: 'nadia',\n    name: 'Nadia Farouk',\n    initials: 'NF',\n    email: 'nadia@northfold.co',\n    role: 'viewer',\n    teams: ['Marketing'],\n    lastActive: '2026-10-28T12:00:00',\n    twoFactor: true,\n  },\n];\n\n/** The signed-in user: the workspace's owner. */\nexport const account = members[0];\n\nexport const invitations: Invitation[] = [\n  {\n    id: 'noah',\n    email: 'noah@lumen.studio',\n    role: 'member',\n    invitedBy: 'Marcus Bell',\n    sent: '2026-11-09T10:20:00',\n  },\n  {\n    id: 'ines',\n    email: 'ines@lumen.studio',\n    role: 'admin',\n    invitedBy: 'Priya Raman',\n    sent: '2026-11-05T15:00:00',\n  },\n  {\n    id: 'ravi',\n    email: 'ravi@kettle.design',\n    role: 'viewer',\n    invitedBy: 'Hana Kobayashi',\n    sent: '2026-10-31T09:00:00',\n  },\n];\n\nexport const navigation: { id: string; label: string; icon: RemixiconComponentType }[] = [\n  { id: 'home', label: 'Home', icon: RiHomeLine },\n  { id: 'customers', label: 'Customers', icon: RiBuilding2Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine },\n  { id: 'forecast', label: 'Forecast', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const workspaceNavigation: { id: string; label: string; icon: RemixiconComponentType }[] = [\n  { id: 'team', label: 'Team', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'settings', label: 'Settings', icon: RiSettings3Line },\n];\n"
    },
    {
      "path": "src/blocks/team/empty-state.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/empty-state.tsx",
      "content": "'use client';\n\n// TODO(custom): empty state (title, line, action); no EmptyState in Wideset.\nimport type { ReactNode } from 'react';\n\n/**\n * What a table shows with no rows: why it is empty and the one way forward, centred in the\n * table's width. Wideset has no EmptyState yet; this is the craft recipe (a title, a line, one\n * action), placed in a single cell that spans every column.\n */\nexport function EmptyState({\n  title,\n  description,\n  action,\n}: {\n  title: string;\n  description: string;\n  action: ReactNode;\n}) {\n  return (\n    <div className=\"gap-ws-9 py-ws-16 flex flex-col items-center text-center\">\n      <div className=\"gap-ws-3 flex flex-col\">\n        <p className=\"typography-label-strong-md text-ws-static-strong\">{title}</p>\n        <p className=\"typography-body-md text-ws-static-subtle\">{description}</p>\n      </div>\n      {action}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/team/format.ts",
      "content": "import { NOW } from './data';\n\nconst DAY = 24 * 60 * 60 * 1000;\nconst relative = new Intl.RelativeTimeFormat('en', { numeric: 'auto' });\nconst date = new Intl.DateTimeFormat('en-GB', { day: 'numeric', month: 'short', year: 'numeric' });\nconst dateTime = new Intl.DateTimeFormat('en-GB', { dateStyle: 'medium', timeStyle: 'short' });\n\nconst capitalise = (text: string) => text.charAt(0).toUpperCase() + text.slice(1);\nconst startOfDay = (value: Date) =>\n  new Date(value.getFullYear(), value.getMonth(), value.getDate()).getTime();\n\n/** \"Just now\", \"12 minutes ago\", \"Yesterday\", \"4 days ago\"; a week or more back, the date. */\nexport function formatRelative(iso: string) {\n  const then = new Date(iso);\n  const days = Math.round((startOfDay(NOW) - startOfDay(then)) / DAY);\n  if (days >= 7) return date.format(then);\n  if (days > 0) return capitalise(relative.format(-days, 'day'));\n  const minutes = Math.round((NOW.getTime() - then.getTime()) / 60000);\n  if (minutes < 1) return 'Just now';\n  if (minutes < 60) return relative.format(-minutes, 'minute');\n  return relative.format(-Math.round(minutes / 60), 'hour');\n}\n\n/** The exact moment, for the `title` beside a relative date. */\nexport const formatDateTime = (iso: string) => dateTime.format(new Date(iso));\n\n/** Days until an invitation sent at `iso` expires (7 days later); 0 or less once it has. */\nexport const daysToExpiry = (iso: string) =>\n  Math.round((new Date(iso).getTime() + 7 * DAY - NOW.getTime()) / DAY);\n\n/** \"Expires tomorrow\", \"Expires in 6 days\". */\nexport const formatExpiry = (days: number) => `Expires ${relative.format(days, 'day')}`;\n"
    },
    {
      "path": "src/blocks/team/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSearchLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Tabs } from '@/components/ui/wideset/tabs/Tabs';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { Toast } from '@/components/ui/wideset/toast/Toast';\nimport { ToastProvider, useToast } from '@/components/ui/wideset/toast/Toast.context';\nimport { useRef, useState } from 'react';\n\nimport {\n  account,\n  type Invitation,\n  invitations as initialInvitations,\n  type Member,\n  members as initialMembers,\n  NOW,\n  type Role,\n  ROLE_LABEL,\n  workspace,\n} from './data';\nimport { InvitationsTable } from './invitations-table';\nimport { InviteModal } from './invite-modal';\nimport { MembersTable } from './members-table';\nimport { PageHeader } from './page-header';\nimport { RemoveMemberModal } from './remove-member-modal';\nimport { TeamSidebar } from './sidebar';\n\ntype Tab = 'members' | 'invitations';\n\nconst matches = (query: string, ...fields: string[]) =>\n  fields.some((field) => field.toLowerCase().includes(query));\n\n/** The page: header, the two tabs with one search over both, and the dialogs they open. */\nfunction TeamPage() {\n  const { showToast, dismissToast } = useToast();\n  const [members, setMembers] = useState(initialMembers);\n  const [invitations, setInvitations] = useState(initialInvitations);\n  const [tab, setTab] = useState<Tab>('members');\n  const [query, setQuery] = useState('');\n  const [inviting, setInviting] = useState(false);\n  // The modal has no trigger, so the button that opened it is kept to take the focus back.\n  const inviteOpener = useRef<HTMLElement | null>(null);\n  // The header's button stays when an empty state's button is gone (the first invitation replaces it).\n  const headerInvite = useRef<HTMLButtonElement>(null);\n  const openInvite = () => {\n    inviteOpener.current = document.activeElement as HTMLElement | null;\n    setInviting(true);\n  };\n  const [removing, setRemoving] = useState<{ member?: Member; open: boolean }>({ open: false });\n\n  const q = query.trim().toLowerCase();\n  const shownMembers = members.filter((m) => matches(q, m.name, m.email));\n  const shownInvitations = invitations.filter((i) => matches(q, i.email));\n  const shown = tab === 'members' ? shownMembers.length : shownInvitations.length;\n  const total = tab === 'members' ? members.length : invitations.length;\n\n  const invite = (emails: string[], role: Invitation['role']) => {\n    const sent = NOW.toISOString();\n    setInvitations([\n      ...emails.map((email) => ({ id: email, email, role, invitedBy: account.name, sent })),\n      ...invitations,\n    ]);\n    setTab('invitations');\n    setQuery('');\n    showToast({\n      status: 'success',\n      content:\n        emails.length === 1\n          ? `Invitation sent to ${emails[0]}`\n          : `${emails.length} invitations sent`,\n    });\n  };\n\n  /** A role changed in the table or in the invite modal's list. */\n  const changeRole = (member: Member, role: Role) => {\n    setMembers(members.map((m) => (m.id === member.id ? { ...m, role } : m)));\n    showToast({\n      content: `${member.name} is now ${role === 'admin' ? 'an' : 'a'} ${ROLE_LABEL[role].toLowerCase()}`,\n    });\n  };\n\n  const revoke = (invitation: Invitation) => {\n    const before = invitations;\n    setInvitations(invitations.filter((i) => i.id !== invitation.id));\n    const id = showToast({\n      content: `Invitation to ${invitation.email} revoked`,\n      action: (\n        <Toast.Action\n          preset=\"ghost\"\n          onClick={() => {\n            setInvitations(before);\n            dismissToast(id);\n          }}\n        >\n          Undo\n        </Toast.Action>\n      ),\n    });\n  };\n\n  return (\n    <main className=\"px-ws-16 ws-scrollbar min-w-0 flex-1 overflow-y-auto\">\n      <div className=\"gap-ws-14 py-ws-14 mx-auto flex w-full max-w-[80rem] flex-col\">\n        <PageHeader seatsUsed={members.length} onInvite={openInvite} inviteRef={headerInvite} />\n\n        <Tabs value={tab} onValueChange={(value) => setTab(value as Tab)} className=\"gap-ws-9\">\n          <Tabs.List aria-label=\"People in the workspace\" className=\"w-full\">\n            <Tabs.Item value=\"members\">\n              <Tabs.Label>Members</Tabs.Label>\n            </Tabs.Item>\n            <Tabs.Item value=\"invitations\">\n              <Tabs.Label>Invitations</Tabs.Label>\n            </Tabs.Item>\n          </Tabs.List>\n\n          <div className=\"gap-ws-5 flex items-center\">\n            <TextInput\n              size=\"sm\"\n              className=\"w-[20rem] max-w-full\"\n              value={query}\n              onChange={(event) => setQuery(event.target.value)}\n            >\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input\n                type=\"search\"\n                placeholder=\"Search by name or e-mail\"\n                aria-label=\"Search people\"\n              />\n              <TextInput.Suffix inner>\n                <TextInput.ClearButton />\n              </TextInput.Suffix>\n            </TextInput>\n            <p\n              role=\"status\"\n              className=\"typography-body-md text-ws-static-subtle ml-auto tabular-nums\"\n            >\n              {q && `${shown} of ${total} ${tab}`}\n            </p>\n          </div>\n\n          <Tabs.Content value=\"members\">\n            <MembersTable\n              members={shownMembers}\n              query={query.trim()}\n              onClearSearch={() => setQuery('')}\n              onRoleChange={changeRole}\n              onCopyEmail={(member) => {\n                navigator.clipboard\n                  ?.writeText(member.email)\n                  .then(() => showToast({ content: `Copied ${member.email}` }))\n                  .catch(() => {});\n              }}\n              onRemind={(member) =>\n                showToast({ content: `Two-factor reminder sent to ${member.name}` })\n              }\n              onRemove={(member) => setRemoving({ member, open: true })}\n            />\n          </Tabs.Content>\n          <Tabs.Content value=\"invitations\">\n            <InvitationsTable\n              invitations={shownInvitations}\n              query={query.trim()}\n              onClearSearch={() => setQuery('')}\n              onInvite={openInvite}\n              onResend={(invitation) => {\n                setInvitations(\n                  invitations.map((i) =>\n                    i.id === invitation.id ? { ...i, sent: NOW.toISOString() } : i,\n                  ),\n                );\n                showToast({\n                  status: 'success',\n                  content: `Invitation sent again to ${invitation.email}`,\n                });\n              }}\n              onRevoke={revoke}\n            />\n          </Tabs.Content>\n        </Tabs>\n      </div>\n\n      <InviteModal\n        open={inviting}\n        onOpenChange={setInviting}\n        onCloseAutoFocus={(event) => {\n          event.preventDefault();\n          const opener = inviteOpener.current;\n          (opener?.isConnected ? opener : headerInvite.current)?.focus();\n        }}\n        members={members}\n        taken={[...members.map((m) => m.email), ...invitations.map((i) => i.email)]}\n        onInvite={invite}\n        onRoleChange={changeRole}\n      />\n      <RemoveMemberModal\n        member={removing.member}\n        open={removing.open}\n        onOpenChange={(open) => setRemoving({ ...removing, open })}\n        onRemove={(member) => {\n          setMembers(members.filter((m) => m.id !== member.id));\n          showToast({ content: `${member.name} removed from ${workspace.name}` });\n        }}\n      />\n    </main>\n  );\n}\n\n/** Team (Frame direction): the people in a workspace, their roles and pending invitations. */\nexport default function Team() {\n  return (\n    <ToastProvider position=\"bottom-center\">\n      <AppShell className=\"ws-block-utility\" direction=\"frame\">\n        <TeamSidebar />\n        <TeamPage />\n      </AppShell>\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/invitations-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/invitations-table.tsx",
      "content": "'use client';\n\nimport { RiMoreLine } from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { Button } from '@/components/ui/wideset/button/Button';\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 { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport { account, type Invitation, ROLE_LABEL } from './data';\nimport { EmptyState } from './empty-state';\nimport { daysToExpiry, formatDateTime, formatExpiry, formatRelative } from './format';\n\nconst COLUMNS = 6;\n\n/**\n * Invitations nobody has accepted yet: who, as what, from whom and when, and whether the link\n * still works. Its columns match the members table, so switching tabs moves nothing.\n */\nexport function InvitationsTable({\n  invitations,\n  query,\n  onClearSearch,\n  onInvite,\n  onResend,\n  onRevoke,\n}: {\n  invitations: Invitation[];\n  query: string;\n  onClearSearch: () => void;\n  onInvite: () => void;\n  onResend: (invitation: Invitation) => void;\n  onRevoke: (invitation: Invitation) => void;\n}) {\n  return (\n    <Table size=\"md\" className=\"min-w-[56rem] table-fixed\">\n      <Table.Head>\n        <Table.Row>\n          <Table.Header flushMargin>E-mail</Table.Header>\n          <Table.Header className=\"w-[10rem]\">Role</Table.Header>\n          <Table.Header className=\"w-[14rem]\">Invited by</Table.Header>\n          <Table.Header className=\"w-[10rem]\">Sent</Table.Header>\n          <Table.Header className=\"w-[10rem]\">Status</Table.Header>\n          <Table.Header flushMargin className=\"w-ws-12\">\n            <span className=\"sr-only\">Actions</span>\n          </Table.Header>\n        </Table.Row>\n      </Table.Head>\n      <Table.Body>\n        {invitations.length === 0 ? (\n          <Table.Row>\n            <Table.Cell colSpan={COLUMNS}>\n              {query ? (\n                <EmptyState\n                  title={`No invitations match “${query}”`}\n                  description=\"Search looks at e-mail addresses.\"\n                  action={\n                    <Button size=\"sm\" variant=\"secondary\" preset=\"border\" onClick={onClearSearch}>\n                      Clear search\n                    </Button>\n                  }\n                />\n              ) : (\n                <EmptyState\n                  title=\"No pending invitations\"\n                  description=\"People you invite show here until they join.\"\n                  action={\n                    <Button size=\"sm\" variant=\"secondary\" preset=\"border\" onClick={onInvite}>\n                      Invite people\n                    </Button>\n                  }\n                />\n              )}\n            </Table.Cell>\n          </Table.Row>\n        ) : (\n          invitations.map((invitation) => {\n            const days = daysToExpiry(invitation.sent);\n            return (\n              <Table.Row key={invitation.id}>\n                <Table.Cell flushMargin>\n                  <div className=\"gap-ws-7 flex items-center\">\n                    <Avatar aria-hidden=\"true\" />\n                    <p className=\"text-ws-static-strong min-w-0 truncate\">{invitation.email}</p>\n                  </div>\n                </Table.Cell>\n                <Table.Cell>{ROLE_LABEL[invitation.role]}</Table.Cell>\n                <Table.Cell truncate>\n                  {invitation.invitedBy === account.name ? 'You' : invitation.invitedBy}\n                </Table.Cell>\n                <Table.Cell title={formatDateTime(invitation.sent)}>\n                  {formatRelative(invitation.sent)}\n                </Table.Cell>\n                <Table.Cell>\n                  {days > 0 ? (\n                    <span className=\"text-ws-static-subtle\">{formatExpiry(days)}</span>\n                  ) : (\n                    <StatusBadge size=\"sm\" color=\"notice\">\n                      Expired\n                    </StatusBadge>\n                  )}\n                </Table.Cell>\n                <Table.Cell align=\"right\" flushMargin>\n                  <DropdownMenu>\n                    <DropdownMenu.Trigger asChild>\n                      <IconButton\n                        icon={RiMoreLine}\n                        variant=\"secondary\"\n                        preset=\"ghost\"\n                        size=\"xs\"\n                        aria-label={`Actions for ${invitation.email}`}\n                      />\n                    </DropdownMenu.Trigger>\n                    <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[14rem]\">\n                      <DropdownMenu.Item onSelect={() => onResend(invitation)}>\n                        <ListItem.Content>\n                          <ListItem.Label>Resend invitation</ListItem.Label>\n                        </ListItem.Content>\n                      </DropdownMenu.Item>\n                      <DropdownMenu.Separator />\n                      <DropdownMenu.Item variant=\"danger\" onSelect={() => onRevoke(invitation)}>\n                        <ListItem.Content>\n                          <ListItem.Label>Revoke invitation</ListItem.Label>\n                        </ListItem.Content>\n                      </DropdownMenu.Item>\n                    </DropdownMenu.Content>\n                  </DropdownMenu>\n                </Table.Cell>\n              </Table.Row>\n            );\n          })\n        )}\n      </Table.Body>\n    </Table>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/invite-form.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/invite-form.tsx",
      "content": "'use client';\n\n// TODO(custom): the invite row: several e-mails typed comma-separated (no token input in Wideset) and an error line under a field with no label (FormField needs a visible label, HelperText is not exported).\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useId, useState } from 'react';\n\nimport { RoleMenu, type RoleOption } from './role-menu';\n\nconst EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n/**\n * Inviting by e-mail: the address (or several, comma-separated), the role picked inside the\n * field, and the one primary action. Nothing is sent until every address is an e-mail address\n * and none of them has access already; the line under the field says which one is wrong.\n */\nexport function InviteForm<Role extends string>({\n  roles,\n  defaultRole,\n  taken,\n  onInvite,\n}: {\n  /** The roles a person can be invited with. */\n  roles: RoleOption<Role>[];\n  defaultRole: Role;\n  /** Addresses that already have access or an invitation. */\n  taken: string[];\n  onInvite: (emails: string[], role: Role) => void;\n}) {\n  const errorId = useId();\n  const [emails, setEmails] = useState('');\n  const [role, setRole] = useState(defaultRole);\n  const [error, setError] = useState('');\n\n  const send = (event: FormEvent) => {\n    event.preventDefault();\n    const list = [\n      ...new Set(\n        emails\n          .split(/[\\s,;]+/)\n          .map((email) => email.toLowerCase())\n          .filter(Boolean),\n      ),\n    ];\n    const invalid = list.find((email) => !EMAIL.test(email));\n    const existing = list.find((email) => taken.includes(email));\n    if (!list.length) setError('Enter an e-mail address.');\n    else if (invalid) setError(`“${invalid}” is not an e-mail address.`);\n    else if (existing) setError(`${existing} already has access or an invitation.`);\n    else {\n      onInvite(list, role);\n      setEmails('');\n    }\n  };\n\n  return (\n    <form noValidate onSubmit={send} className=\"gap-ws-3 flex flex-col\">\n      <div className=\"gap-ws-5 flex\">\n        <TextInput\n          className=\"min-w-0 flex-1\"\n          variant={error ? 'danger' : 'primary'}\n          value={emails}\n          onChange={(event) => {\n            setEmails(event.target.value);\n            setError('');\n          }}\n        >\n          <TextInput.Input\n            type=\"email\"\n            multiple\n            placeholder=\"Enter e-mail address\"\n            aria-label=\"E-mail address\"\n            aria-describedby={error ? errorId : undefined}\n          />\n          {/* Figma's suffix holds a Button: the affix insets it like an icon button (4px). */}\n          <TextInput.Suffix inner content=\"iconButton\">\n            <RoleMenu\n              size=\"md\"\n              aria-label=\"Role\"\n              value={role}\n              options={roles}\n              onValueChange={setRole}\n            />\n          </TextInput.Suffix>\n        </TextInput>\n        <Button type=\"submit\">Send invite</Button>\n      </div>\n      {error && (\n        <p id={errorId} role=\"alert\" className=\"typography-body-sm text-ws-semantic-negative\">\n          {error}\n        </p>\n      )}\n    </form>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/invite-modal.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/invite-modal.tsx",
      "content": "'use client';\n\nimport { RiCheckLine, RiFileCopyLine } from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { useEffect, useState } from 'react';\n\nimport { AccessList } from './access-list';\nimport {\n  account,\n  type Invitation,\n  type Member,\n  type Role,\n  ROLE_HINT,\n  ROLE_LABEL,\n  ROLE_OPTIONS,\n  workspace,\n} from './data';\nimport { InviteForm } from './invite-form';\nimport type { RoleOption } from './role-menu';\n\ntype InviteRole = Invitation['role'];\n\n/** The roles a person can be invited with, each with what it may do. */\nconst INVITE_ROLES: RoleOption<InviteRole>[] = ROLE_OPTIONS.map((option) => ({\n  ...option,\n  hint: ROLE_HINT[option.value],\n}));\n\n/** Every role. Ownership is transferred, never given: it shows only on the owner. */\nconst ROLES: RoleOption<Role>[] = [\n  { value: 'owner', label: ROLE_LABEL.owner, fixed: true },\n  ...INVITE_ROLES,\n];\n\n/**\n * Figma's Modal `Type=Share` on the workspace: inviting by e-mail with a role, the members and\n * their roles, and the link to pass on in the footer. Sending closes it, since the invitation\n * shows on the Invitations tab behind it; a role changed here applies at once, as in the table.\n */\nexport function InviteModal({\n  open,\n  onOpenChange,\n  onCloseAutoFocus,\n  members,\n  taken,\n  onInvite,\n  onRoleChange,\n}: {\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  /** Where the focus goes on close; the modal has no trigger to return it to. */\n  onCloseAutoFocus?: (event: Event) => void;\n  members: Member[];\n  /** Addresses already in the workspace or invited. */\n  taken: string[];\n  onInvite: (emails: string[], role: InviteRole) => void;\n  onRoleChange: (member: Member, role: Role) => void;\n}) {\n  return (\n    <Modal open={open} onOpenChange={onOpenChange}>\n      {/* The e-mail field takes the focus on open (Modal's default): inviting comes first. */}\n      <Modal.Content className=\"ws-block-utility\" aria-describedby={undefined} onCloseAutoFocus={onCloseAutoFocus}>\n        <Modal.Header>\n          <Modal.Title>Access</Modal.Title>\n        </Modal.Header>\n        <Modal.Body className=\"gap-ws-11 flex flex-col\">\n          <InviteForm\n            roles={INVITE_ROLES}\n            defaultRole=\"member\"\n            taken={taken}\n            onInvite={(emails, role) => {\n              onInvite(emails, role);\n              onOpenChange(false);\n            }}\n          />\n          <Divider weight=\"thin\" />\n          <AccessList\n            people={members.map((member) => ({\n              ...member,\n              name: member.id === account.id ? `${member.name} (you)` : member.name,\n            }))}\n            roles={ROLES}\n            onRoleChange={(person, role) => {\n              const member = members.find((m) => m.id === person.id);\n              if (member) onRoleChange(member, role);\n            }}\n          />\n        </Modal.Body>\n        {/* Figma lines this footer off; Modal.Footer's `extension` has no line of its own. */}\n        <Divider weight=\"thin\" />\n        <Modal.Footer variant=\"extension\" className=\"items-center justify-start\">\n          <ShareLink link={workspace.inviteLink} />\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n\n/** The link to pass on: the button copies it and says so for two seconds. */\nfunction ShareLink({ link }: { link: string }) {\n  const [copied, setCopied] = useState(false);\n\n  useEffect(() => {\n    if (!copied) return;\n    const timer = setTimeout(() => setCopied(false), 2000);\n    return () => clearTimeout(timer);\n  }, [copied]);\n\n  return (\n    <>\n      <IconButton\n        size=\"xs\"\n        variant=\"secondary\"\n        preset=\"border\"\n        icon={copied ? RiCheckLine : RiFileCopyLine}\n        aria-label=\"Copy link\"\n        onClick={() => {\n          navigator.clipboard\n            ?.writeText(`https://${link}`)\n            .then(() => setCopied(true))\n            .catch(() => {});\n        }}\n      />\n      <span role=\"status\" className=\"typography-body-md text-ws-static-subtle\">\n        {copied ? 'Link copied' : link}\n      </span>\n    </>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/members-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/members-table.tsx",
      "content": "'use client';\n\n// TODO(custom): inline ghost Select pulled left (-ml-ws-7) to line up with its column.\nimport { RiMoreLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\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 { Select } from '@/components/ui/wideset/select/Select';\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport { account, type Member, type Role, ROLE_LABEL, ROLE_OPTIONS } from './data';\nimport { EmptyState } from './empty-state';\nimport { formatDateTime, formatRelative } from './format';\nimport { PersonAvatar } from './person-avatar';\n\nconst COLUMNS = 6;\n\nfunction MemberMenu({\n  member,\n  onCopyEmail,\n  onRemind,\n  onRemove,\n}: {\n  member: Member;\n  onCopyEmail: () => void;\n  onRemind: () => void;\n  onRemove: () => void;\n}) {\n  return (\n    <DropdownMenu>\n      <DropdownMenu.Trigger asChild>\n        <IconButton\n          icon={RiMoreLine}\n          variant=\"secondary\"\n          preset=\"ghost\"\n          size=\"xs\"\n          aria-label={`Actions for ${member.name}`}\n        />\n      </DropdownMenu.Trigger>\n      <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[14rem]\">\n        <DropdownMenu.Item onSelect={onCopyEmail}>\n          <ListItem.Content>\n            <ListItem.Label>Copy e-mail address</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n        {!member.twoFactor && (\n          <DropdownMenu.Item onSelect={onRemind}>\n            <ListItem.Content>\n              <ListItem.Label>Send two-factor reminder</ListItem.Label>\n            </ListItem.Content>\n          </DropdownMenu.Item>\n        )}\n        <DropdownMenu.Separator />\n        <DropdownMenu.Item variant=\"danger\" onSelect={onRemove}>\n          <ListItem.Content>\n            <ListItem.Label>Remove from workspace</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n      </DropdownMenu.Content>\n    </DropdownMenu>\n  );\n}\n\n/**\n * The workspace's members: who they are, their role (changed in place, except the owner's),\n * teams, when they were last in, whether two-factor is on, and their actions.\n */\nexport function MembersTable({\n  members,\n  query,\n  onClearSearch,\n  onRoleChange,\n  onCopyEmail,\n  onRemind,\n  onRemove,\n}: {\n  members: Member[];\n  query: string;\n  onClearSearch: () => void;\n  onRoleChange: (member: Member, role: Role) => void;\n  onCopyEmail: (member: Member) => void;\n  onRemind: (member: Member) => void;\n  onRemove: (member: Member) => void;\n}) {\n  return (\n    <Table size=\"md\" className=\"min-w-[56rem] table-fixed\">\n      <Table.Head>\n        <Table.Row>\n          <Table.Header flushMargin>Member</Table.Header>\n          <Table.Header className=\"w-[10rem]\">Role</Table.Header>\n          <Table.Header className=\"w-[14rem]\">Teams</Table.Header>\n          <Table.Header className=\"w-[10rem]\">Last active</Table.Header>\n          <Table.Header className=\"w-[10rem]\">Two-factor</Table.Header>\n          <Table.Header flushMargin className=\"w-ws-12\">\n            <span className=\"sr-only\">Actions</span>\n          </Table.Header>\n        </Table.Row>\n      </Table.Head>\n      <Table.Body>\n        {members.length === 0 ? (\n          <Table.Row>\n            <Table.Cell colSpan={COLUMNS}>\n              <EmptyState\n                title={`No members match “${query}”`}\n                description=\"Search looks at names and e-mail addresses.\"\n                action={\n                  <Button size=\"sm\" variant=\"secondary\" preset=\"border\" onClick={onClearSearch}>\n                    Clear search\n                  </Button>\n                }\n              />\n            </Table.Cell>\n          </Table.Row>\n        ) : (\n          members.map((member) => (\n            <Table.Row key={member.id}>\n              <Table.Cell flushMargin>\n                <div className=\"gap-ws-7 flex items-center\">\n                  <PersonAvatar name={member.name} initials={member.initials} aria-hidden=\"true\" />\n                  <div className=\"min-w-0\">\n                    <p className=\"text-ws-static-strong truncate\">\n                      {member.name}\n                      {member.id === account.id && (\n                        <span className=\"text-ws-static-subtle\"> (you)</span>\n                      )}\n                    </p>\n                    <Table.CellDescription className=\"truncate\">\n                      {member.email}\n                    </Table.CellDescription>\n                  </div>\n                </div>\n              </Table.Cell>\n              <Table.Cell>\n                {member.role === 'owner' ? (\n                  <span className=\"text-ws-static-strong\">{ROLE_LABEL.owner}</span>\n                ) : (\n                  // Ghost reads as a value; pulled left so its text starts on the column's edge.\n                  <Select\n                    size=\"sm\"\n                    preset=\"ghost\"\n                    className=\"-ml-ws-7 w-[8rem]\"\n                    aria-label={`Role of ${member.name}`}\n                    options={ROLE_OPTIONS}\n                    value={member.role}\n                    onValueChange={(role) => onRoleChange(member, role as Role)}\n                  />\n                )}\n              </Table.Cell>\n              <Table.Cell truncate>{member.teams.join(', ')}</Table.Cell>\n              <Table.Cell title={formatDateTime(member.lastActive)}>\n                {formatRelative(member.lastActive)}\n              </Table.Cell>\n              <Table.Cell>\n                {member.twoFactor ? (\n                  'On'\n                ) : (\n                  <StatusBadge size=\"sm\" color=\"notice\">\n                    Off\n                  </StatusBadge>\n                )}\n              </Table.Cell>\n              <Table.Cell align=\"right\" flushMargin>\n                {member.role !== 'owner' && (\n                  <MemberMenu\n                    member={member}\n                    onCopyEmail={() => onCopyEmail(member)}\n                    onRemind={() => onRemind(member)}\n                    onRemove={() => onRemove(member)}\n                  />\n                )}\n              </Table.Cell>\n            </Table.Row>\n          ))\n        )}\n      </Table.Body>\n    </Table>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the primary action); no PageHeader in Wideset.\nimport { RiUserAddLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport type { Ref } from 'react';\n\nimport { workspace } from './data';\n\n/** The page's title, how many seats the plan has left, and the one primary action. */\nexport function PageHeader({\n  seatsUsed,\n  onInvite,\n  inviteRef,\n}: {\n  seatsUsed: number;\n  onInvite: () => void;\n  inviteRef?: Ref<HTMLButtonElement>;\n}) {\n  return (\n    <header className=\"gap-ws-9 flex items-center justify-between\">\n      <div className=\"gap-ws-3 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">Team</h1>\n        <p className=\"typography-body-md text-ws-static-base\">\n          <span className=\"tabular-nums\">\n            {seatsUsed} of {workspace.seats}\n          </span>{' '}\n          seats used on the {workspace.plan} plan\n        </p>\n      </div>\n      <Button ref={inviteRef} size=\"sm\" onClick={onInvite}>\n        <Button.Icon icon={RiUserAddLine} />\n        Invite people\n      </Button>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/team/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  'Priya Raman':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTE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TGghtqG3nBUlJPoBk06NHKfv1oSGyWT//Z',\n};\n"
    },
    {
      "path": "src/blocks/team/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/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/team/remove-member-modal.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/remove-member-modal.tsx",
      "content": "'use client';\n\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\n\nimport { type Member, workspace } from './data';\n\n/** Asks once before a member loses access; the safe way out comes first. */\nexport function RemoveMemberModal({\n  member,\n  open,\n  onOpenChange,\n  onRemove,\n}: {\n  /** Kept after closing, so the title does not empty while the dialog fades out. */\n  member?: Member;\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onRemove: (member: Member) => void;\n}) {\n  return (\n    <Modal open={open} onOpenChange={onOpenChange}>\n      <Modal.Content className=\"ws-block-utility\">\n        <Modal.Header>\n          <Modal.Title>\n            Remove {member?.name} from {workspace.name}?\n          </Modal.Title>\n          <Modal.Description>\n            They lose access right away. The customers, deals and notes they own stay in the\n            workspace.\n          </Modal.Description>\n        </Modal.Header>\n        <Modal.Footer>\n          <Modal.Close asChild>\n            <Button size=\"sm\" variant=\"secondary\" preset=\"border\">\n              Cancel\n            </Button>\n          </Modal.Close>\n          <Modal.Close asChild>\n            <Button size=\"sm\" variant=\"danger\" onClick={() => member && onRemove(member)}>\n              Remove member\n            </Button>\n          </Modal.Close>\n        </Modal.Footer>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/role-menu.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/role-menu.tsx",
      "content": "'use client';\n\n// TODO(custom): a role picker drawn as Figma draws it, a ghost Button with a chevron over a menu; Wideset's ghost Select hides its arrow until hover and sets the value in regular weight.\nimport { RiArrowDownSLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\n\nexport type RoleOption<Role extends string = string> = {\n  value: Role;\n  label: string;\n  /** What the role may do, under its name in the menu. */\n  hint?: string;\n  /** Held, never given: shown on the person who has it and left out of everyone else's menu. */\n  fixed?: boolean;\n};\n\n/**\n * A role, changed in place. Figma draws it as a ghost Button with a chevron, in the invite field\n * (`md`) and at the end of a person's row (`sm`); the menu marks the current role. The click\n * stops at the button, so inside a field it does not also move the focus to the input.\n */\nexport function RoleMenu<Role extends string>({\n  value,\n  options,\n  onValueChange,\n  size = 'sm',\n  'aria-label': label,\n}: {\n  value: Role;\n  options: RoleOption<Role>[];\n  onValueChange: (value: Role) => void;\n  size?: 'sm' | 'md';\n  /** What the role belongs to (\"Role of Marcus Bell\"); the current role is read after it. */\n  'aria-label': string;\n}) {\n  const current = options.find((option) => option.value === value)?.label;\n\n  return (\n    <DropdownMenu>\n      <DropdownMenu.Trigger asChild>\n        <Button\n          variant=\"secondary\"\n          preset=\"ghost\"\n          size={size}\n          aria-label={`${label}: ${current}`}\n          onClick={(event) => event.stopPropagation()}\n        >\n          {current}\n          <Button.Icon icon={RiArrowDownSLine} />\n        </Button>\n      </DropdownMenu.Trigger>\n      <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n        {options.map((option) => (\n          <DropdownMenu.Item\n            key={option.value}\n            data-state={option.value === value ? 'checked' : 'unchecked'}\n            onSelect={() => onValueChange(option.value)}\n          >\n            <ListItem.Content>\n              <ListItem.Label>{option.label}</ListItem.Label>\n              {option.hint && <ListItem.Description>{option.hint}</ListItem.Description>}\n            </ListItem.Content>\n          </DropdownMenu.Item>\n        ))}\n      </DropdownMenu.Content>\n    </DropdownMenu>\n  );\n}\n"
    },
    {
      "path": "src/blocks/team/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/team/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): account menu is composed by hand.\nimport { RiArrowDownSLine } from '@remixicon/react';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport { account, navigation, ROLE_LABEL, workspace, workspaceNavigation } from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/** The account menu: who is signed in, their settings and sign-out. */\nfunction AccountMenu() {\n  return (\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} status=\"online\" />\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-label-sm text-ws-static-subtle truncate\">\n              {ROLE_LABEL[account.role]}\n            </span>\n          </span>\n          <RiArrowDownSLine aria-hidden=\"true\" className=\"size-ws-9 text-ws-static-strong\" />\n        </button>\n      </DropdownMenu.Trigger>\n      <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[13.875rem]\">\n        <DropdownMenu.Item>\n          <ListItem.Prefix>\n            <PersonAvatar name={account.name} initials={account.initials} status=\"online\" />\n          </ListItem.Prefix>\n          <ListItem.Content>\n            <ListItem.Label>{account.name}</ListItem.Label>\n            <ListItem.Description>{account.email}</ListItem.Description>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n        <DropdownMenu.Separator />\n        <DropdownMenu.Item>\n          <ListItem.Content>\n            <ListItem.Label>Account</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n        <DropdownMenu.Item>\n          <ListItem.Content>\n            <ListItem.Label>Preferences</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n        <DropdownMenu.Separator />\n        <DropdownMenu.Item variant=\"danger\">\n          <ListItem.Content>\n            <ListItem.Label>Log out</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n      </DropdownMenu.Content>\n    </DropdownMenu>\n  );\n}\n\n/** The app sidebar (Frame direction: a grey tint beside the white page). */\nexport function TeamSidebar() {\n  const [active, setActive] = useState('team');\n\n  const item = ({ id, label, icon }: (typeof navigation)[number]) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Main\" className=\"gap-ws-7 flex flex-col\">\n      <div className=\"flex flex-col\">{navigation.map(item)}</div>\n      <div role=\"group\" aria-labelledby=\"sidebar-workspace\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-workspace\">Workspace</Sidebar.SectionHeader>\n        {workspaceNavigation.map(item)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-7 py-ws-3 pl-ws-5 flex items-center\">\n            <BrandMark />\n            <span className=\"typography-label-strong-sm text-ws-dynamic-secondary-default min-w-0 flex-1 truncate\">\n              {workspace.name}\n            </span>\n            <Sidebar.Trigger />\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"gap-ws-7 flex flex-col items-center\">\n            <BrandMark label={workspace.name} />\n            <Sidebar.Trigger />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <Sidebar.Expanded>\n          <AccountMenu />\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <PersonAvatar\n            name={account.name}\n            initials={account.initials}\n            status=\"online\"\n            alt={account.name}\n            aria-label={account.name}\n          />\n        </Sidebar.Collapsed>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
