{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-gallery",
  "type": "registry:block",
  "title": "Gallery",
  "description": "A template library on a raised page: categories as tabs beside the sort, featured collections, templates as cards with a drawn preview and a save toggle, and a side panel to add one to the workspace.",
  "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/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/form-field.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/illustration.json",
    "https://wideset.co/r/link-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/sidepanel.json",
    "https://wideset.co/r/status-badge.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/gallery/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/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/gallery/collection-card.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/collection-card.tsx",
      "content": "'use client';\n\n// TODO(custom): a collection as a card that opens as a whole; Card has no interactive state and ActionTile is a one-row tile with no room for previews.\nimport { type Collection, makerName, type Template } from './data';\nimport { TemplatePreview } from './template-preview';\n\n/**\n * A featured collection: the shapes of its first three templates side by side, then its name,\n * what it is for and who put it together. Quiet on purpose, the same border and greys as a\n * template card; the name is the button that opens it, stretched over the card.\n */\nexport function CollectionCard({\n  collection,\n  templates,\n  onOpen,\n}: {\n  collection: Collection;\n  /** Its templates, in the collection's order. */\n  templates: Template[];\n  onOpen: () => void;\n}) {\n  return (\n    <article className=\"rounded-ws-container-md border-ws-static-base hover:border-ws-static-strong relative flex w-full flex-col overflow-hidden border transition-colors\">\n      <div className=\"gap-ws-5 p-ws-7 border-ws-static-subtle grid grid-cols-3 border-b\">\n        {templates.slice(0, 3).map((template) => (\n          <TemplatePreview\n            key={template.id}\n            kind={template.kind}\n            compact\n            className=\"rounded-ws-control-lg\"\n          />\n        ))}\n      </div>\n      <div className=\"gap-ws-2 p-ws-7 flex flex-col\">\n        <h3 className=\"typography-label-strong-md text-ws-static-strong\">\n          <button\n            type=\"button\"\n            onClick={onOpen}\n            className=\"focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default after:inset-ws-0 cursor-pointer text-left after:absolute\"\n          >\n            {collection.name}\n          </button>\n        </h3>\n        <p className=\"typography-body-md text-ws-static-base\">{collection.description}</p>\n        <p className=\"typography-caption-md text-ws-static-subtle mt-ws-3\">\n          By {makerName(collection.by)}\n        </p>\n      </div>\n    </article>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLayoutMasonryFill,\n  RiLayoutMasonryLine,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  Orbit's template library as Lumen Studio sees it: playbooks, e-mail sequences, reports and\n  dashboards, made by Orbit or by a teammate, free to add to the workspace. Two collections are\n  Orbit's picks; one is Maya's own. Two templates are already in the workspace, three are saved.\n*/\n\n/** The product is Orbit; the workspace is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n  {\n    id: 'templates',\n    label: 'Templates',\n    icon: RiLayoutMasonryLine,\n    activeIcon: RiLayoutMasonryFill,\n  },\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 Person = { name: string; initials: string; color?: AvatarColor };\nexport type PersonId = 'maya' | 'jonas' | 'priya' | 'tom' | 'elena' | 'daniel' | 'leo' | 'nina';\n\nexport const PEOPLE: Record<PersonId, Person> = {\n  maya: { name: account.name, initials: account.initials, color: 'orange' },\n  jonas: { name: 'Jonas Weber', initials: 'JW' },\n  priya: { name: 'Priya Raman', initials: 'PR' },\n  tom: { name: 'Tom Becker', initials: 'TB' },\n  elena: { name: 'Elena Silva', initials: 'ES' },\n  daniel: { name: 'Daniel Reyes', initials: 'DR' },\n  leo: { name: 'Leo Marchetti', initials: 'LM' },\n  nina: { name: 'Nina Alvarez', initials: 'NA' },\n};\nexport const ME: PersonId = 'maya';\n\n/** Who made a template or a collection: Orbit, or someone in the workspace. */\nexport type Maker = 'orbit' | PersonId;\nexport const makerName = (maker: Maker) => (maker === 'orbit' ? 'Orbit' : PEOPLE[maker].name);\n\nexport type Kind = 'playbook' | 'sequence' | 'report' | 'dashboard';\n\nexport const CATEGORIES: { value: Kind | 'all' | 'saved'; label: string }[] = [\n  { value: 'all', label: 'All' },\n  { value: 'playbook', label: 'Playbooks' },\n  { value: 'sequence', label: 'E-mail sequences' },\n  { value: 'report', label: 'Reports' },\n  { value: 'dashboard', label: 'Dashboards' },\n  { value: 'saved', label: 'Saved' },\n];\nexport type Category = (typeof CATEGORIES)[number]['value'];\n\nexport const KIND_LABEL: Record<Kind, string> = {\n  playbook: 'Playbook',\n  sequence: 'E-mail sequence',\n  report: 'Report',\n  dashboard: 'Dashboard',\n};\n\n/** Where an added template lives in Orbit, for the link that opens it. */\nexport const KIND_HOME: Record<Kind, { label: string; href: string }> = {\n  playbook: { label: 'Open in Deals', href: '#deals' },\n  sequence: { label: 'Open in Inbox', href: '#inbox' },\n  report: { label: 'Open in Reports', href: '#reports' },\n  dashboard: { label: 'Open in Reports', href: '#reports' },\n};\n\nexport type Template = {\n  id: string;\n  name: string;\n  /** One line under the name. */\n  summary: string;\n  kind: Kind;\n  by: Maker;\n  /** Teams across Orbit that use it. */\n  teams: number;\n  /** When it was published, for Newest. */\n  published: string;\n  /** A short paragraph for the detail. */\n  about: string;\n  /** What adding it brings, as a short list. */\n  contents: string[];\n  /** Teammates in Lumen Studio who already use it. */\n  usedBy: PersonId[];\n};\n\nexport const TEMPLATES: Template[] = [\n  {\n    id: 'discovery',\n    name: 'Discovery call playbook',\n    summary: 'Questions, qualification and next steps for a first call.',\n    kind: 'playbook',\n    by: 'orbit',\n    teams: 4820,\n    published: '2025-03-12',\n    about:\n      'A first call in four parts: why now, what hurts, who decides and what happens next. Each part has the questions to ask and a place for what you heard, so the notes land on the deal.',\n    contents: [\n      '12 discovery questions in four parts',\n      'Qualification checklist (MEDDICC)',\n      'Next-step e-mail to send after the call',\n      'Call notes saved to the deal',\n    ],\n    usedBy: ['jonas', 'tom', 'nina'],\n  },\n  {\n    id: 'qbr',\n    name: 'Quarterly business review',\n    summary: 'Prepare and run a QBR with an existing customer.',\n    kind: 'playbook',\n    by: 'orbit',\n    teams: 2310,\n    published: '2025-06-02',\n    about:\n      'Everything for a review with a customer: the agenda, the numbers to bring, the questions that surface expansion, and the follow-up that turns it into a plan.',\n    contents: [\n      'Agenda for a 45-minute review',\n      'Usage and value summary to fill in',\n      'Expansion questions',\n      'Follow-up e-mail with the agreed plan',\n    ],\n    usedBy: ['priya'],\n  },\n  {\n    id: 'renewal-risk',\n    name: 'Renewal risk playbook',\n    summary: 'Spot accounts at risk 90 days before renewal and act.',\n    kind: 'playbook',\n    by: 'priya',\n    teams: 3,\n    published: '2026-09-18',\n    about:\n      'How Lumen Studio handles a renewal that looks shaky: the signals to watch from 90 days out, who to bring in, and the save offer the team may make.',\n    contents: [\n      'Risk signals to check each week',\n      'Escalation steps by account size',\n      'Save offer guidelines',\n      'Call script for the first risk call',\n    ],\n    usedBy: ['priya', 'leo'],\n  },\n  {\n    id: 'deal-review',\n    name: 'Enterprise deal review',\n    summary: 'A weekly review for deals over $50,000.',\n    kind: 'playbook',\n    by: 'orbit',\n    teams: 1460,\n    published: '2025-11-20',\n    about:\n      'A short weekly review that keeps large deals honest: what changed, what is blocking, and the one action that moves the deal this week.',\n    contents: [\n      'Review checklist for each deal',\n      'Mutual action plan template',\n      'Risk and blocker log',\n    ],\n    usedBy: [],\n  },\n  {\n    id: 'onboarding',\n    name: 'New rep onboarding',\n    summary: 'The first 30 days for a new account executive.',\n    kind: 'playbook',\n    by: 'elena',\n    teams: 2,\n    published: '2026-10-04',\n    about:\n      'What a new account executive at Lumen Studio does in the first month: who to meet, which calls to shadow and when to take a first deal.',\n    contents: ['30-day checklist by week', 'Calls to shadow', 'Product and pricing quiz'],\n    usedBy: ['elena'],\n  },\n  {\n    id: 'outbound',\n    name: 'Outbound to new accounts',\n    summary: 'Five e-mails over three weeks for a cold account.',\n    kind: 'sequence',\n    by: 'orbit',\n    teams: 6150,\n    published: '2025-01-28',\n    about:\n      'A five-step sequence for an account that has not heard of you: a short opener, a proof point, a question, a resource and a polite close. It stops when someone replies.',\n    contents: [\n      '5 e-mails over 21 days',\n      'Stops on reply or meeting booked',\n      'Personal fields for name, company and role',\n    ],\n    usedBy: ['tom', 'nina'],\n  },\n  {\n    id: 'renewal-reminders',\n    name: 'Renewal reminders',\n    summary: 'Three reminders from 60 days before the renewal date.',\n    kind: 'sequence',\n    by: 'orbit',\n    teams: 3890,\n    published: '2025-04-15',\n    about:\n      'Three reminders to the customer’s main contact, at 60, 30 and 7 days before the renewal, each with the renewal amount and a link to book a call.',\n    contents: [\n      '3 e-mails at 60, 30 and 7 days',\n      'Renewal amount and date filled in',\n      'Booking link for a renewal call',\n    ],\n    usedBy: [],\n  },\n  {\n    id: 'post-demo',\n    name: 'Post-demo follow-up',\n    summary: 'The recap and two nudges after a product demo.',\n    kind: 'sequence',\n    by: 'tom',\n    teams: 4,\n    published: '2026-08-22',\n    about:\n      'What Tom sends after a demo: a recap the same day with the recording, then two short nudges a week apart if nobody answers.',\n    contents: ['Recap e-mail with the recording', '2 follow-ups, 7 days apart'],\n    usedBy: ['tom', 'jonas'],\n  },\n  {\n    id: 'event-follow-up',\n    name: 'Event follow-up',\n    summary: 'Follow up with people you met at an event.',\n    kind: 'sequence',\n    by: 'orbit',\n    teams: 2740,\n    published: '2026-02-10',\n    about:\n      'A short sequence for the week after a trade show or meetup: a thank-you, the thing you promised, and an invitation to talk.',\n    contents: ['3 e-mails over 10 days', 'Event name and booth notes filled in'],\n    usedBy: [],\n  },\n  {\n    id: 'pipeline-by-stage',\n    name: 'Pipeline by stage',\n    summary: 'Open deals and their value at each stage, week by week.',\n    kind: 'report',\n    by: 'orbit',\n    teams: 7240,\n    published: '2024-11-05',\n    about:\n      'The open pipeline at each stage and how it moved since last week, by owner. The report most teams start their Monday with.',\n    contents: ['Value and count by stage', 'Change since last week', 'Breakdown by owner'],\n    usedBy: ['jonas', 'priya', 'tom', 'daniel'],\n  },\n  {\n    id: 'win-rate',\n    name: 'Win rate by source',\n    summary: 'Which lead sources turn into closed deals.',\n    kind: 'report',\n    by: 'orbit',\n    teams: 3120,\n    published: '2025-08-19',\n    about:\n      'Win rate and average deal size for each lead source over the last four quarters, so you know which channels deserve the next dollar.',\n    contents: [\n      'Win rate by source, by quarter',\n      'Average deal size by source',\n      'Time to close by source',\n    ],\n    usedBy: [],\n  },\n  {\n    id: 'forecast',\n    name: 'Forecast against target',\n    summary: 'Commit, best case and closed against the quarter’s target.',\n    kind: 'report',\n    by: 'daniel',\n    teams: 2,\n    published: '2026-10-27',\n    about:\n      'Daniel’s weekly forecast view: what each rep commits, the best case and what is closed, against the quarter’s target.',\n    contents: ['Commit and best case by rep', 'Closed against target', 'Gap to target by week'],\n    usedBy: ['daniel', 'maya'],\n  },\n  {\n    id: 'leadership',\n    name: 'Sales leadership dashboard',\n    summary: 'Bookings, pipeline coverage and forecast on one page.',\n    kind: 'dashboard',\n    by: 'orbit',\n    teams: 5380,\n    published: '2025-05-07',\n    about:\n      'One page for the head of sales: bookings this quarter, pipeline coverage for the next, the forecast and the deals that moved.',\n    contents: [\n      'Bookings and target',\n      'Pipeline coverage for next quarter',\n      'Forecast by rep',\n      'Deals that moved this week',\n    ],\n    usedBy: [],\n  },\n  {\n    id: 'rep-performance',\n    name: 'Rep performance',\n    summary: 'Activity, pipeline and wins for each rep.',\n    kind: 'dashboard',\n    by: 'orbit',\n    teams: 4410,\n    published: '2025-09-30',\n    about:\n      'Each rep’s calls, meetings, new pipeline and wins side by side, for one-to-ones and coaching.',\n    contents: ['Activity by rep', 'New pipeline by rep', 'Wins and win rate by rep'],\n    usedBy: ['maya'],\n  },\n  {\n    id: 'customer-health',\n    name: 'Customer health',\n    summary: 'Usage, support and renewal dates for every customer.',\n    kind: 'dashboard',\n    by: 'leo',\n    teams: 3,\n    published: '2026-09-02',\n    about:\n      'Leo’s view of every customer: how much they use Orbit, open support tickets and how far the renewal is, sorted by what needs a call first.',\n    contents: ['Usage trend by customer', 'Open support tickets', 'Days to renewal'],\n    usedBy: ['leo', 'priya'],\n  },\n];\n\nexport type Collection = {\n  id: string;\n  name: string;\n  description: string;\n  by: Maker;\n  templates: string[];\n};\n\nexport const COLLECTIONS: Collection[] = [\n  {\n    id: 'start-of-quarter',\n    name: 'Start of quarter',\n    description: 'Plan the quarter: the reviews, the pipeline and the forecast.',\n    by: 'orbit',\n    templates: ['pipeline-by-stage', 'forecast', 'leadership', 'deal-review', 'qbr'],\n  },\n  {\n    id: 'renewals',\n    name: 'Renewals',\n    description: 'Spot risk early, remind on time and renew without a scramble.',\n    by: 'orbit',\n    templates: ['renewal-risk', 'renewal-reminders', 'customer-health', 'qbr'],\n  },\n  {\n    id: 'q1-kickoff',\n    name: 'Q1 kickoff',\n    description: 'What the team runs in the first weeks of January.',\n    by: 'maya',\n    templates: ['discovery', 'outbound', 'onboarding'],\n  },\n];\n\n/** Templates already added to Lumen Studio's workspace. */\nexport const ADDED = ['discovery', 'pipeline-by-stage'];\n/** Templates Maya has saved. */\nexport const SAVED = ['renewal-risk', 'leadership', 'outbound'];\n\nexport type SortKey = 'popular' | 'newest';\nexport const sortOptions: { value: SortKey; label: string }[] = [\n  { value: 'popular', label: 'Popular' },\n  { value: 'newest', label: 'Newest' },\n];\n"
    },
    {
      "path": "src/blocks/gallery/empty-state.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/empty-state.tsx",
      "content": "'use client';\n\n// TODO(custom): empty state (drawing, title, line, actions); Wideset has no EmptyState.\nimport { Illustration } from '@/components/ui/wideset/illustration/Illustration';\nimport { type IllustrationName } from '@/components/ui/wideset/illustration/Illustration.types';\nimport type { ReactNode } from 'react';\n\n/*\n  The prototype for a Wideset EmptyState: one design for every region with nothing to show, copied\n  byte for byte into each block that needs one. A first run (nothing here yet) takes a drawing and\n  the ways in; a state the user caused (no search results) takes no drawing and the one way back.\n*/\n\ntype EmptyStateProps = {\n  /** A drawing, only for a first run: nothing has been added yet. */\n  illustration?: IllustrationName;\n  /** What is missing, in a few words: \"No customers yet\". */\n  title: ReactNode;\n  /** One sentence: what will appear here, or why nothing does. */\n  description: ReactNode;\n  /** One or two `size=\"sm\"` buttons: the ways in, or the way back. */\n  children?: ReactNode;\n};\n\n/** What a region shows with nothing in it: centred in the region, the text read first. */\nexport function EmptyState({ illustration, title, description, children }: EmptyStateProps) {\n  return (\n    <div className=\"gap-ws-12 flex flex-col items-center text-center\">\n      {illustration && <Illustration illustration={illustration} size=\"sm\" />}\n      {/* Announced when it replaces the rows, as after a search. */}\n      <div role=\"status\" className=\"gap-ws-3 flex max-w-[26rem] flex-col\">\n        <h2 className=\"typography-label-strong-md text-ws-static-strong\">{title}</h2>\n        <p className=\"typography-body-md text-ws-static-base\">{description}</p>\n      </div>\n      {children && <div className=\"gap-ws-5 flex flex-wrap justify-center\">{children}</div>}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/format.ts",
      "content": "// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\n\nconst number = new Intl.NumberFormat(LOCALE);\nconst list = new Intl.ListFormat(LOCALE, { style: 'long', type: 'conjunction' });\n\n/** \"4,820 teams\", \"1 team\". */\nexport const formatTeams = (count: number) =>\n  `${number.format(count)} ${count === 1 ? 'team' : 'teams'}`;\n\n/** \"Jonas Weber, Tom Becker and Nina Alvarez\". */\nexport const formatList = (items: string[]) => list.format(items);\n"
    },
    {
      "path": "src/blocks/gallery/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiArrowLeftLine, RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { Tabs } from '@/components/ui/wideset/tabs/Tabs';\nimport { Toast } from '@/components/ui/wideset/toast/Toast';\nimport { ToastProvider, useToast } from '@/components/ui/wideset/toast/Toast.context';\nimport { useId, useRef, useState } from 'react';\n\nimport { CollectionCard } from './collection-card';\nimport {\n  ADDED,\n  CATEGORIES,\n  type Category,\n  type Collection,\n  COLLECTIONS,\n  makerName,\n  ME,\n  SAVED,\n  type SortKey,\n  sortOptions,\n  TEMPLATES,\n  workspace,\n} from './data';\nimport { EmptyState } from './empty-state';\nimport { NameDialog } from './name-dialog';\nimport { PageHeader } from './page-header';\nimport { Section } from './section';\nimport { GallerySidebar } from './sidebar';\nimport { TemplateCard } from './template-card';\nimport { TemplatePanel } from './template-panel';\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/** As many columns as fit a card: the sidebar opens and closes, so the window says little. */\nconst GRID = 'gap-ws-7 grid grid-cols-[repeat(auto-fill,minmax(15rem,1fr))]';\n\nconst byId = (id: string) => TEMPLATES.find((template) => template.id === id)!;\n\n/**\n * The library inside the card, under the toasts. It holds what is saved, what is added and the\n * collections, so a save on a card and in the detail are the same toggle, and the detail's Add\n * marks the card too.\n */\nfunction GalleryPage() {\n  const { showToast, dismissToast } = useToast();\n  const opened = useRef(0);\n  const [category, setCategory] = useState<Category>('all');\n  const [query, setQuery] = useState('');\n  const [sort, setSort] = useState<SortKey>('popular');\n  const [collectionId, setCollectionId] = useState<string>();\n  const [saved, setSaved] = useState(SAVED);\n  const [added, setAdded] = useState(ADDED);\n  const [collections, setCollections] = useState(COLLECTIONS);\n  // The template stays while the panel slides out, so its words do not vanish under it.\n  const [panel, setPanel] = useState<{ id: string; open: boolean }>();\n  const [naming, setNaming] = useState<{ key: number; open: boolean; templateId: string }>();\n\n  const collection = collections.find((entry) => entry.id === collectionId);\n  const search = query.trim().toLowerCase();\n  const shown = TEMPLATES.filter(\n    (template) =>\n      (category === 'all' ||\n        (category === 'saved' ? saved.includes(template.id) : template.kind === category)) &&\n      (!collection || collection.templates.includes(template.id)) &&\n      `${template.name} ${template.summary}`.toLowerCase().includes(search),\n  ).sort((a, b) =>\n    sort === 'popular' ? b.teams - a.teams : b.published.localeCompare(a.published),\n  );\n  const featured = category === 'all' && !search && !collection;\n  const categoryLabel = CATEGORIES.find((entry) => entry.value === category)!.label;\n\n  const setSavedOne = (id: string, on: boolean) =>\n    setSaved((all) => (on ? [...all, id] : all.filter((item) => item !== id)));\n\n  /** Puts a template in one of your collections, or takes it out; Undo reverses either. */\n  const toggleInCollection = (target: Collection, templateId: string) => {\n    const before = collections;\n    const inside = target.templates.includes(templateId);\n    setCollections((all) =>\n      all.map((entry) =>\n        entry.id !== target.id\n          ? entry\n          : {\n              ...entry,\n              templates: inside\n                ? entry.templates.filter((id) => id !== templateId)\n                : [...entry.templates, templateId],\n            },\n      ),\n    );\n    const toastId = showToast({\n      content: `${inside ? 'Removed from' : 'Added to'} ${target.name}`,\n      action: (\n        <Toast.Action\n          preset=\"ghost\"\n          onClick={() => {\n            setCollections(before);\n            dismissToast(toastId);\n          }}\n        >\n          Undo\n        </Toast.Action>\n      ),\n    });\n  };\n\n  const openCollection = (id: string) => {\n    setCollectionId(id);\n    setCategory('all');\n    setQuery('');\n  };\n\n  const panelTemplate = panel && byId(panel.id);\n\n  let results;\n  if (shown.length > 0) {\n    results = (\n      <ul aria-label=\"Templates\" className={GRID}>\n        {shown.map((template) => (\n          <li key={template.id} className=\"flex\">\n            <TemplateCard\n              template={template}\n              saved={saved.includes(template.id)}\n              added={added.includes(template.id)}\n              onOpen={() => setPanel({ id: template.id, open: true })}\n              onSaveChange={(on) => setSavedOne(template.id, on)}\n            />\n          </li>\n        ))}\n      </ul>\n    );\n  } else if (search) {\n    results = (\n      <EmptyState\n        title={`No templates match “${query.trim()}”`}\n        description={\n          category === 'all' && !collection\n            ? 'Check the spelling, or search for what the template does: “renewal”, “forecast”.'\n            : `Nothing in ${collection?.name ?? categoryLabel} matches. Search every template instead.`\n        }\n      >\n        <Button\n          size=\"sm\"\n          variant=\"secondary\"\n          preset=\"border\"\n          onClick={() => {\n            if (category === 'all' && !collection) return setQuery('');\n            setCategory('all');\n            setCollectionId(undefined);\n          }}\n        >\n          {category === 'all' && !collection ? 'Clear search' : 'Search all templates'}\n        </Button>\n      </EmptyState>\n    );\n  } else {\n    results = (\n      <EmptyState\n        title=\"Nothing saved yet\"\n        description=\"Save a template with its bookmark to keep it here while you decide.\"\n      />\n    );\n  }\n\n  return (\n    <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n      <PageHeader query={query} onQueryChange={setQuery} />\n\n      {/* The categories and the sort share one line; the tabs' indicator sits on it. In a narrow\n          window the tabs scroll sideways with no bar; the 1px of padding holds the indicator, which\n          hangs 1px under the list and would otherwise make the row scroll up and down. */}\n      <div className=\"border-ws-static-subtle gap-ws-9 flex items-end justify-between border-b\">\n        <Tabs\n          value={category}\n          onValueChange={(value) => setCategory(value as Category)}\n          divider={false}\n          className=\"-mb-px min-w-0 [scrollbar-width:none] overflow-x-auto pb-px\"\n        >\n          <Tabs.List aria-label=\"Categories\">\n            {CATEGORIES.map((entry) => (\n              <Tabs.Item key={entry.value} value={entry.value}>\n                <Tabs.Label>{entry.label}</Tabs.Label>\n              </Tabs.Item>\n            ))}\n          </Tabs.List>\n        </Tabs>\n        <Select\n          size=\"sm\"\n          preset=\"border\"\n          aria-label=\"Sort templates\"\n          options={sortOptions}\n          value={sort}\n          onValueChange={(value) => setSort(value as SortKey)}\n          className=\"mb-ws-4 w-auto shrink-0\"\n        />\n      </div>\n\n      {collection && (\n        <div className=\"gap-ws-7 flex flex-col items-start\">\n          <Button\n            size=\"sm\"\n            variant=\"secondary\"\n            preset=\"ghost\"\n            onClick={() => setCollectionId(undefined)}\n            className=\"-ml-ws-5\"\n          >\n            <Button.Icon icon={RiArrowLeftLine} />\n            All templates\n          </Button>\n          <div className=\"gap-ws-2 flex flex-col\">\n            <h2 className=\"typography-subtitle-xs text-ws-static-strong\">{collection.name}</h2>\n            <p className=\"typography-body-md text-ws-static-base\">{collection.description}</p>\n            <p className=\"typography-caption-md text-ws-static-subtle\">\n              By {makerName(collection.by)}\n            </p>\n          </div>\n        </div>\n      )}\n\n      {featured ? (\n        <div className=\"gap-ws-16 flex flex-col\">\n          <Section title=\"Collections\">\n            <ul\n              aria-label=\"Collections\"\n              className=\"gap-ws-7 grid grid-cols-[repeat(auto-fill,minmax(20rem,1fr))]\"\n            >\n              {collections.map((entry) => (\n                <li key={entry.id} className=\"flex\">\n                  <CollectionCard\n                    collection={entry}\n                    templates={entry.templates.map(byId)}\n                    onOpen={() => openCollection(entry.id)}\n                  />\n                </li>\n              ))}\n            </ul>\n          </Section>\n          <Section title=\"All templates\">{results}</Section>\n        </div>\n      ) : (\n        <div className={cn(shown.length === 0 && 'py-ws-20')}>{results}</div>\n      )}\n\n      {panel && panelTemplate && (\n        <TemplatePanel\n          template={panelTemplate}\n          saved={saved.includes(panelTemplate.id)}\n          added={added.includes(panelTemplate.id)}\n          collections={collections.filter((entry) => entry.by === ME)}\n          open={panel.open}\n          onOpenChange={(open) => setPanel({ ...panel, open })}\n          onSaveChange={(on) => setSavedOne(panelTemplate.id, on)}\n          onAdd={() => setAdded((all) => [...all, panelTemplate.id])}\n          onToggleCollection={(target) => toggleInCollection(target, panelTemplate.id)}\n          quiet={naming?.open}\n          onNewCollection={() =>\n            setNaming({ key: ++opened.current, open: true, templateId: panelTemplate.id })\n          }\n        />\n      )}\n\n      {naming && (\n        <NameDialog\n          key={naming.key}\n          title=\"New collection\"\n          description={`Start a collection with ${byId(naming.templateId).name}. Anyone in ${workspace.name} can browse it.`}\n          label=\"Name\"\n          initial=\"\"\n          submit=\"Create collection\"\n          taken={collections.map((entry) => entry.name)}\n          open={naming.open}\n          onOpenChange={(open) => setNaming({ ...naming, open })}\n          onSubmit={(name) => {\n            const id = `${name.toLowerCase().replace(/\\W+/g, '-')}-${collections.length}`;\n            setCollections((all) => [\n              ...all,\n              {\n                id,\n                name,\n                description: `Made by ${makerName(ME)}.`,\n                by: ME,\n                templates: [naming.templateId],\n              },\n            ]);\n            showToast({ status: 'success', content: `Created ${name}` });\n          }}\n        />\n      )}\n    </div>\n  );\n}\n\n/**\n * Gallery (Inset direction): Orbit's template library on the raised page beside the workspace\n * sidebar. A search in the header, the categories as tabs with the sort beside them, the\n * collections first and every template as a card under them. A card opens its detail in a side\n * panel, where Add to workspace is the screen's one filled button; saving works from both.\n */\nexport default function Gallery() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n\n  return (\n    <ToastProvider>\n      <AppShell className=\"ws-block-utility\" direction=\"inset\">\n        <GallerySidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n        <AppShell.Main>\n          <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n            {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is\n                pulled left so its glyph, not its box, sits 20px from the edge; the crumbs follow\n                it. */}\n            <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n              <IconButton\n                icon={RiSideBarLine}\n                variant=\"secondary\"\n                preset=\"ghost\"\n                size=\"sm\"\n                iconClassName=\"text-ws-static-subtle size-ws-9\"\n                aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n                aria-expanded={!collapsed}\n                aria-controls={sidebarId}\n                onClick={() => setCollapsed(!collapsed)}\n                className=\"-ml-ws-5\"\n              />\n              <Breadcrumbs separator=\"arrow\">\n                <Breadcrumbs.Item>Templates</Breadcrumbs.Item>\n              </Breadcrumbs>\n            </div>\n          </div>\n\n          {/* The page scrolls inside the card, so the card's corners stay put. */}\n          <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n            <GalleryPage />\n          </div>\n        </AppShell.Main>\n      </AppShell>\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/name-dialog.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/name-dialog.tsx",
      "content": "'use client';\n\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { FormField } from '@/components/ui/wideset/form-field/FormField';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { type FormEvent, useId, useState } from 'react';\n\ntype NameDialogProps = {\n  title: string;\n  description: string;\n  label: string;\n  /** The name it starts with: the current one when renaming, empty for a new collection. */\n  initial: string;\n  /** The button's words: \"Rename\", \"Create collection\". */\n  submit: string;\n  /** Names already in use, compared without case. */\n  taken: string[];\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onSubmit: (name: string) => void;\n};\n\n/**\n * Naming something: renaming a file or folder, or starting a collection. One field, filled and\n * selected on open so typing replaces it; Enter submits. An empty name or one already used is\n * stopped with the reason under the field, not by a disabled button.\n */\nexport function NameDialog({\n  title,\n  description,\n  label,\n  initial,\n  submit,\n  taken,\n  open,\n  onOpenChange,\n  onSubmit,\n}: NameDialogProps) {\n  const fieldId = useId();\n  const [name, setName] = useState(initial);\n  const [error, setError] = useState<string>();\n\n  const save = (event: FormEvent) => {\n    event.preventDefault();\n    const value = name.trim();\n    if (!value) return setError('Enter a name.');\n    const unchanged = value === initial.trim();\n    if (!unchanged && taken.some((other) => other.toLowerCase() === value.toLowerCase())) {\n      return setError(`“${value}” is already used here.`);\n    }\n    onOpenChange(false);\n    if (!unchanged) onSubmit(value);\n  };\n\n  return (\n    <Modal\n      open={open}\n      onOpenChange={(next) => {\n        if (next) {\n          setName(initial);\n          setError(undefined);\n        }\n        onOpenChange(next);\n      }}\n    >\n      <Modal.Content className=\"ws-block-utility\">\n        <form onSubmit={save} noValidate>\n          <Modal.Header>\n            <Modal.Title>{title}</Modal.Title>\n            <Modal.Description>{description}</Modal.Description>\n          </Modal.Header>\n          <Modal.Body>\n            <FormField label={label} htmlFor={fieldId} errorText={error}>\n              <TextInput\n                id={fieldId}\n                autoComplete=\"off\"\n                value={name}\n                variant={error ? 'danger' : undefined}\n                onFocus={(event) => event.target.select()}\n                onChange={(event) => {\n                  setName(event.target.value);\n                  setError(undefined);\n                }}\n              />\n            </FormField>\n          </Modal.Body>\n          <Modal.Footer>\n            <Modal.Close asChild>\n              <Button variant=\"secondary\" preset=\"border\">\n                Cancel\n              </Button>\n            </Modal.Close>\n            <Button type=\"submit\">{submit}</Button>\n          </Modal.Footer>\n        </form>\n      </Modal.Content>\n    </Modal>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, search field on the right); no PageHeader in Wideset.\nimport { RiSearchLine } from '@remixicon/react';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\n\nimport { workspace } from './data';\n\ntype PageHeaderProps = {\n  query: string;\n  onQueryChange: (query: string) => void;\n};\n\n/**\n * The page's title, what the library is for, and the search over every template. No filled\n * button here: the one primary action is adding a template, in its detail.\n */\nexport function PageHeader({ query, onQueryChange }: PageHeaderProps) {\n  return (\n    <header className=\"gap-ws-12 flex flex-wrap items-center justify-between\">\n      <div className=\"gap-ws-2 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">Templates</h1>\n        <p className=\"typography-body-md text-ws-static-subtle\">\n          Playbooks, e-mail sequences, reports and dashboards, free to add to {workspace.name}.\n        </p>\n      </div>\n      <TextInput\n        size=\"sm\"\n        className=\"w-[20rem] max-w-full\"\n        value={query}\n        onChange={(event) => onQueryChange(event.target.value)}\n      >\n        <TextInput.Prefix inner>\n          <TextInput.Icon icon={RiSearchLine} />\n        </TextInput.Prefix>\n        <TextInput.Input\n          type=\"search\"\n          placeholder=\"Search templates\"\n          aria-label=\"Search templates\"\n        />\n        <TextInput.Suffix inner>\n          <TextInput.ClearButton aria-label=\"Clear search\" />\n        </TextInput.Suffix>\n      </TextInput>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/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/4AAQSkZJR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PyW0q8J04GeuAMZ+1KtP6ivNhZLLcczBjlQpP6h7U8W6xOw3DFmMqbdbUUrQsYINTGzad+EmNrShJGQRmhzbe1ljO/mST8zC9jY601IlZ0FAHyAiWFbb/rPwm7g0uDBSBzDI53PYdKl15tbcWNCiR0BDbZwAkdBipVEZCEcxxnFaqtjlxkNJbbK3SocoHn/akqutrsWyr1gekXIpqvqeq/qrDR+EgE60yre2y680Qw+OZt0fpWP97UiPSrIyLNFTaGLe82h1tKQkhSQQcd/3qC3rh1BkgrhKMV3uB8yD7dvaiNi8XVlAvGj7R5QR5/hl1YtiHmX2Hz/X4nKKKd7tpq42ZSviI6i0OjqBlB9+3vTTVyliuOZDsTMW0vS3JYpB98ftO6cXd1hxf/AFYx511e22iPCZS220kBI7CmXRkMRHExjsh5suJH9QOD9sVMEjEhKfNJ+1ZDKy3yX2x6dhCXw7h1WDWFUel3Pt/qIHI45hgda3ZjhG9KlI+Yp7GvRLe1RNSx3I/etF2vUICpDRbkAYS82cLHv396QI4fvMtIQ1KbWUdFLSUn3xmpklHpXunKaj2YlVh2wkivLtrGlPSR2Bo98DEmU2B5NgnP71JIVui2tJLKMuEYKzuo/2rZJJ716Yp1WLXX1UdY23Ktt6Mek81oU8rKz7VoWEJ7ZNe/etSCd/KpGpH3PBxhLzakKQCk7EEbGuW640MzborlygIUlKVfmND9IHmPL6V1fJQyk9zWJ0duXGWwtIU2tJCge+akY2S9DhlPx98hZ2DVmVFHHXsfYZ/9k=',\n};\n"
    },
    {
      "path": "src/blocks/gallery/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | 'style' | 'title' | 'aria-hidden'\n> & {\n  name: string;\n  initials: string;\n  /** The photo's text: empty beside the person's name, their name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when `people.assets.ts` has one, with the initials as its\n * fallback, otherwise the initials on their colour. Every place that draws a person uses it, so\n * someone has the same face across the screen and photos mix with initials as in a real product.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...props }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...props} />\n  ) : (\n    <Avatar initials={initials} color={color} {...props} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/section.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/section.tsx",
      "content": "'use client';\n\n// TODO(custom): section title above its content; Wideset has no Section or PageSection.\nimport { type ReactNode, useId } from 'react';\n\n/** One part of the page: a 16px title, then what it holds. The title names the region. */\nexport function Section({ title, children }: { title: string; children: ReactNode }) {\n  const id = useId();\n\n  return (\n    <section aria-labelledby={id} className=\"gap-ws-7 flex flex-col\">\n      <h2 id={id} className=\"typography-label-strong-md text-ws-static-strong\">\n        {title}\n      </h2>\n      {children}\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function GallerySidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('templates');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  alt={account.name}\n                  title={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/template-card.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/template-card.tsx",
      "content": "'use client';\n\n// TODO(custom): a template as a card that opens as a whole, with a save toggle on it; Card has no interactive state and ActionTile is a one-row tile with no room for a preview or a second control.\nimport { RiBookmarkFill, RiBookmarkLine } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\n\nimport { makerName, type Template } from './data';\nimport { formatTeams } from './format';\nimport { TemplatePreview } from './template-preview';\n\ntype TemplateCardProps = {\n  template: Template;\n  saved: boolean;\n  /** Already in the workspace. */\n  added: boolean;\n  onOpen: () => void;\n  onSaveChange: (saved: boolean) => void;\n};\n\n/**\n * One template in the library: its drawn shape, its name and one line, who made it and how many\n * teams use it, in plain text. The name is the button that opens the detail, stretched over the\n * card so the whole card answers; on hover its border darkens (no shadow inside the page's\n * card). The bookmark sits above that layer and saves without opening. A template already in the\n * workspace carries a neutral Added.\n */\nexport function TemplateCard({ template, saved, added, onOpen, onSaveChange }: TemplateCardProps) {\n  return (\n    <article className=\"rounded-ws-container-md border-ws-static-base hover:border-ws-static-strong relative flex w-full flex-col overflow-hidden border transition-colors\">\n      <TemplatePreview kind={template.kind} className=\"border-ws-static-subtle border-b\" />\n      {added && (\n        <StatusBadge size=\"sm\" className=\"top-ws-5 left-ws-5 absolute\">\n          Added\n        </StatusBadge>\n      )}\n      <div className=\"gap-ws-5 p-ws-7 flex flex-1 items-start\">\n        <div className=\"gap-ws-2 flex min-w-0 flex-1 flex-col\">\n          <h3 className=\"typography-label-strong-md text-ws-static-strong\">\n            <button\n              type=\"button\"\n              onClick={onOpen}\n              className=\"focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default after:inset-ws-0 cursor-pointer text-left after:absolute\"\n            >\n              {template.name}\n            </button>\n          </h3>\n          <p className=\"typography-body-md text-ws-static-base line-clamp-2\">{template.summary}</p>\n          <p className=\"typography-caption-md text-ws-static-subtle mt-ws-3\">\n            By {makerName(template.by)} · {formatTeams(template.teams)}\n          </p>\n        </div>\n        <IconButton\n          icon={saved ? RiBookmarkFill : RiBookmarkLine}\n          size=\"xs\"\n          variant=\"secondary\"\n          preset=\"ghost\"\n          aria-label={`Save ${template.name}`}\n          aria-pressed={saved}\n          onClick={() => onSaveChange(!saved)}\n          className=\"z-ws-base relative shrink-0\"\n        />\n      </div>\n    </article>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/template-panel.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/template-panel.tsx",
      "content": "'use client';\n\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiArrowRightUpLine,\n  RiBookmarkFill,\n  RiBookmarkLine,\n  RiCheckLine,\n  RiCloseLine,\n  RiStackLine,\n} from '@remixicon/react';\nimport { AvatarGroup } from '@/components/ui/wideset/avatar/AvatarGroup';\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 { LinkButton } from '@/components/ui/wideset/button/LinkButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidepanel } from '@/components/ui/wideset/sidepanel/Sidepanel';\nimport { useId } from 'react';\n\nimport {\n  type Collection,\n  KIND_HOME,\n  KIND_LABEL,\n  makerName,\n  PEOPLE,\n  type Template,\n  workspace,\n} from './data';\nimport { formatList, formatTeams } from './format';\nimport { PersonAvatar } from './person-avatar';\nimport { TemplatePreview } from './template-preview';\n\ntype TemplatePanelProps = {\n  template: Template;\n  saved: boolean;\n  added: boolean;\n  /** Collections the signed-in person can change (their own). */\n  collections: Collection[];\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onSaveChange: (saved: boolean) => void;\n  onAdd: () => void;\n  onToggleCollection: (collection: Collection) => void;\n  onNewCollection: () => void;\n  /** A dialog over the panel holds the filled button: Add steps back to a bordered one. */\n  quiet?: boolean;\n};\n\n/**\n * One template beside the library: a larger drawing of it, what it does, what adding it brings\n * and who already uses it, then Add to workspace, the panel's one filled button. Once added, the\n * button says Added and a link opens the template where it now lives. Saving and adding to a\n * collection sit at the other end of the footer, the same toggle as on the card.\n */\nexport function TemplatePanel({\n  template,\n  saved,\n  added,\n  collections,\n  open,\n  onOpenChange,\n  onSaveChange,\n  onAdd,\n  onToggleCollection,\n  onNewCollection,\n  quiet,\n}: TemplatePanelProps) {\n  const insideId = useId();\n  const usersId = useId();\n  const teammates = template.usedBy.map((id) => PEOPLE[id]);\n  const home = KIND_HOME[template.kind];\n\n  return (\n    <Sidepanel open={open} onOpenChange={onOpenChange}>\n      <Sidepanel.Panel className=\"ws-block-utility\" size=\"sm\">\n        <Sidepanel.Actions>\n          <Sidepanel.Close asChild>\n            <IconButton\n              variant=\"secondary\"\n              preset=\"border\"\n              size=\"sm\"\n              icon={RiCloseLine}\n              aria-label=\"Close\"\n            />\n          </Sidepanel.Close>\n        </Sidepanel.Actions>\n\n        <Sidepanel.Header>\n          <div className=\"pr-ws-16\">\n            <Sidepanel.Title>{template.name}</Sidepanel.Title>\n            <Sidepanel.Description>\n              {`${KIND_LABEL[template.kind]} · By ${makerName(template.by)}`}\n            </Sidepanel.Description>\n          </div>\n        </Sidepanel.Header>\n\n        <Sidepanel.Content className=\"gap-ws-12 flex flex-col\">\n          <TemplatePreview\n            kind={template.kind}\n            className=\"rounded-ws-container-md border-ws-static-subtle border\"\n          />\n\n          <p className=\"typography-body-md text-ws-static-base\">{template.about}</p>\n\n          <section aria-labelledby={insideId} className=\"gap-ws-5 flex flex-col\">\n            <h3 id={insideId} className=\"typography-label-strong-md text-ws-static-strong\">\n              What’s inside\n            </h3>\n            <ul className=\"gap-ws-3 flex flex-col\">\n              {template.contents.map((item) => (\n                <li key={item} className=\"gap-ws-5 typography-body-md text-ws-static-base flex\">\n                  <RiCheckLine\n                    aria-hidden=\"true\"\n                    className=\"size-ws-9 text-ws-static-subtle mt-ws-1 shrink-0\"\n                  />\n                  {item}\n                </li>\n              ))}\n            </ul>\n          </section>\n\n          <section aria-labelledby={usersId} className=\"gap-ws-5 flex flex-col\">\n            <h3 id={usersId} className=\"typography-label-strong-md text-ws-static-strong\">\n              Who uses it\n            </h3>\n            <div className=\"gap-ws-7 flex items-center\">\n              {teammates.length > 0 && (\n                <AvatarGroup size=\"sm\" className=\"w-auto shrink-0\">\n                  {teammates.map((person) => (\n                    <PersonAvatar\n                      key={person.name}\n                      name={person.name}\n                      initials={person.initials}\n                      color={person.color}\n                      alt={person.name}\n                      title={person.name}\n                    />\n                  ))}\n                </AvatarGroup>\n              )}\n              <p className=\"typography-body-md text-ws-static-base\">\n                {teammates.length > 0\n                  ? `${formatList(teammates.map((person) => person.name))} ${teammates.length === 1 ? 'uses' : 'use'} it in ${workspace.name}. `\n                  : `Nobody in ${workspace.name} uses it yet. `}\n                <span className=\"text-ws-static-subtle\">\n                  {`${formatTeams(template.teams)} use it in Orbit.`}\n                </span>\n              </p>\n            </div>\n          </section>\n        </Sidepanel.Content>\n\n        <Sidepanel.Footer>\n          <div className=\"gap-ws-5 flex\">\n            <IconButton\n              icon={saved ? RiBookmarkFill : RiBookmarkLine}\n              variant=\"secondary\"\n              preset=\"border\"\n              aria-label={`Save ${template.name}`}\n              aria-pressed={saved}\n              onClick={() => onSaveChange(!saved)}\n            />\n            <DropdownMenu>\n              <DropdownMenu.Trigger asChild>\n                <Button variant=\"secondary\" preset=\"border\">\n                  Add to collection\n                  <Button.Icon icon={RiArrowDownSLine} />\n                </Button>\n              </DropdownMenu.Trigger>\n              <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                {collections.map((collection) => {\n                  const inside = collection.templates.includes(template.id);\n                  return (\n                    <DropdownMenu.Item\n                      key={collection.id}\n                      onSelect={() => onToggleCollection(collection)}\n                    >\n                      <ListItem.Prefix>\n                        <RiStackLine className=\"size-ws-9\" />\n                      </ListItem.Prefix>\n                      <ListItem.Content>\n                        <ListItem.Label>{collection.name}</ListItem.Label>\n                      </ListItem.Content>\n                      {inside && (\n                        <ListItem.Suffix>\n                          <RiCheckLine\n                            role=\"img\"\n                            aria-label=\"In this collection\"\n                            className=\"size-ws-9\"\n                          />\n                        </ListItem.Suffix>\n                      )}\n                    </DropdownMenu.Item>\n                  );\n                })}\n                <DropdownMenu.Separator />\n                <DropdownMenu.Item onSelect={onNewCollection}>\n                  <ListItem.Prefix>\n                    <RiAddLine className=\"size-ws-9\" />\n                  </ListItem.Prefix>\n                  <ListItem.Content>\n                    <ListItem.Label>New collection</ListItem.Label>\n                  </ListItem.Content>\n                </DropdownMenu.Item>\n              </DropdownMenu.Content>\n            </DropdownMenu>\n          </div>\n\n          <div className=\"gap-ws-9 ml-auto flex items-center\">\n            {added ? (\n              <>\n                <LinkButton href={home.href} className=\"gap-ws-3\">\n                  {home.label}\n                  <RiArrowRightUpLine aria-hidden className=\"size-ws-9\" />\n                </LinkButton>\n                <Button disabled>\n                  <Button.Icon icon={RiCheckLine} />\n                  Added\n                </Button>\n              </>\n            ) : (\n              <Button\n                variant={quiet ? 'secondary' : 'primary'}\n                preset={quiet ? 'border' : 'filled'}\n                onClick={onAdd}\n              >\n                <Button.Icon icon={RiAddLine} />\n                Add to workspace\n              </Button>\n            )}\n          </div>\n        </Sidepanel.Footer>\n      </Sidepanel.Panel>\n    </Sidepanel>\n  );\n}\n"
    },
    {
      "path": "src/blocks/gallery/template-preview.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/gallery/template-preview.tsx",
      "content": "'use client';\n\n// TODO(custom): a drawn preview of a template's shape (a checklist, a sequence of e-mails, a chart, a dashboard); Wideset has no preview, and blocks ship no images.\nimport { cn } from '@/lib/wideset/utils';\n\nimport type { Kind } from './data';\n\nconst PAPER = 'bg-ws-static-foreground border-ws-static-subtle border rounded-ws-control-md';\nconst LINE = 'bg-ws-static-alpha-strong h-ws-2 rounded-ws-control-full';\n\n/** Bar heights for the report's chart, as a share of its height. */\nconst BARS = [\n  'h-[38%]',\n  'h-[52%]',\n  'h-[46%]',\n  'h-[64%]',\n  'h-[58%]',\n  'h-[78%]',\n  'h-[70%]',\n  'h-[92%]',\n];\n/** The dashboard's line, in a 100 × 40 box. */\nconst TREND = '0,32 14,28 28,30 42,20 56,23 70,14 84,16 100,6';\n\n/** A checklist on a page: the first steps ticked, the rest still open. */\nfunction Checklist({ compact }: { compact: boolean }) {\n  const rows = compact ? 3 : 5;\n  return (\n    <div\n      className={cn(\n        PAPER,\n        'gap-ws-5 p-ws-7 absolute inset-x-[18%] top-[14%] bottom-[-8%] flex flex-col',\n      )}\n    >\n      <div className={cn(LINE, 'h-ws-3 w-1/2')} />\n      {Array.from({ length: rows }, (_, row) => (\n        <div key={row} className=\"gap-ws-4 flex items-center\">\n          <div\n            className={cn(\n              'size-ws-5 rounded-ws-control-sm shrink-0',\n              row < 2 ? 'bg-ws-static-alpha-strong' : 'border-ws-static-strong border',\n            )}\n          />\n          <div className={cn(LINE, row % 2 ? 'w-3/5' : 'w-4/5')} />\n        </div>\n      ))}\n    </div>\n  );\n}\n\n/** E-mails one after another down a thread line: the steps of a sequence. */\nfunction Sequence({ compact }: { compact: boolean }) {\n  const steps = compact ? 2 : 3;\n  return (\n    <div className=\"gap-ws-5 absolute inset-x-[16%] top-1/2 flex -translate-y-1/2 flex-col\">\n      {Array.from({ length: steps }, (_, step) => (\n        <div key={step} className={cn(PAPER, 'gap-ws-5 px-ws-5 py-ws-4 flex items-center')}>\n          <div className=\"size-ws-7 bg-ws-static-alpha-base rounded-ws-control-full shrink-0\" />\n          <div className=\"gap-ws-3 flex flex-1 flex-col\">\n            <div className={cn(LINE, step === 0 ? 'w-3/5' : 'w-1/2')} />\n            {!compact && <div className={cn(LINE, 'bg-ws-static-alpha-base w-4/5')} />}\n          </div>\n        </div>\n      ))}\n    </div>\n  );\n}\n\n/** A report: a title over a bar chart, one grey series rising. */\nfunction Report({ compact }: { compact: boolean }) {\n  return (\n    <div\n      className={cn(PAPER, 'gap-ws-5 p-ws-7 absolute inset-x-[14%] inset-y-[14%] flex flex-col')}\n    >\n      <div className={cn(LINE, 'h-ws-3 w-2/5')} />\n      <div className=\"gap-ws-3 border-ws-static-base flex flex-1 items-end border-b\">\n        {(compact ? BARS.slice(2) : BARS).map((height, bar) => (\n          <div\n            key={bar}\n            className={cn('bg-ws-static-alpha-strong rounded-t-ws-control-sm flex-1', height)}\n          />\n        ))}\n      </div>\n    </div>\n  );\n}\n\n/** A dashboard: figures in a row of tiles over one wide chart. */\nfunction Dashboard({ compact }: { compact: boolean }) {\n  return (\n    <div className=\"gap-ws-4 absolute inset-[10%] grid grid-cols-3 grid-rows-[auto_1fr]\">\n      {Array.from({ length: 3 }, (_, tile) => (\n        <div key={tile} className={cn(PAPER, 'gap-ws-3 p-ws-4 flex flex-col')}>\n          <div className={cn(LINE, 'bg-ws-static-alpha-base w-3/5')} />\n          <div className={cn(LINE, 'h-ws-3 w-4/5')} />\n        </div>\n      ))}\n      <div className={cn(PAPER, 'p-ws-5 col-span-3 flex')}>\n        <svg viewBox=\"0 0 100 40\" preserveAspectRatio=\"none\" className=\"size-full overflow-visible\">\n          <polyline\n            points={TREND}\n            strokeWidth={compact ? 1.5 : 2}\n            vectorEffect=\"non-scaling-stroke\"\n            strokeLinejoin=\"round\"\n            strokeLinecap=\"round\"\n            className=\"fill-none stroke-(--ws-static-stroke-strong)\"\n          />\n        </svg>\n      </div>\n    </div>\n  );\n}\n\n/**\n * A template's shape drawn in a few grey marks on a neutral ground, so the library reads at a\n * glance without loading a picture: a playbook is a checklist, a sequence a run of e-mails, a\n * report a chart and a dashboard tiles over a line. One grey for everything: the marks stand for\n * the template's shape, not for data. `compact` drops detail for the small previews in a\n * collection. Decorative: the name beside it says what it is.\n */\nexport function TemplatePreview({\n  kind,\n  compact = false,\n  className,\n}: {\n  kind: Kind;\n  compact?: boolean;\n  className?: string;\n}) {\n  const Shape = { playbook: Checklist, sequence: Sequence, report: Report, dashboard: Dashboard }[\n    kind\n  ];\n  return (\n    <div\n      aria-hidden=\"true\"\n      className={cn('bg-ws-static-alpha-subtle relative aspect-[16/10] overflow-hidden', className)}\n    >\n      <Shape compact={compact} />\n    </div>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
