{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-article",
  "type": "registry:block",
  "title": "Article",
  "description": "A help article on a raised page: the text in a reading column with steps, a note, a table and code, the contents following the scroll, whether it helped and what to read next.",
  "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/inline-alert.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/textarea.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/article/article-body.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/article-body.tsx",
      "content": "'use client';\n\nimport { InlineAlert } from '@/components/ui/wideset/inline-alert/InlineAlert';\nimport { Table } from '@/components/ui/wideset/table/Table';\nimport type { ReactNode } from 'react';\n\nimport { ArticleSection } from './article-section';\nimport { Code, CodeBlock } from './code';\nimport { columns, sampleFile, type SectionId, sections } from './data';\nimport { Steps } from './steps';\n\n/** Running text: the long-form body size, with the leading it needs over a 42rem measure. */\nconst TEXT = 'typography-body-lg text-ws-static-base';\n\n/** The name of something on screen, as the reader will find it written there. */\nfunction Ui({ children }: { children: ReactNode }) {\n  return <strong className=\"typography-body-strong-lg text-ws-static-strong\">{children}</strong>;\n}\n\n/** A section of the article, by the id \"On this page\" knows it by. */\nfunction Section({ id, children }: { id: SectionId; children: ReactNode }) {\n  const { title } = sections.find((section) => section.id === id)!;\n  return (\n    <ArticleSection id={id} title={title}>\n      {children}\n    </ArticleSection>\n  );\n}\n\n/**\n * The article's text, in the order a reader needs it: what to check first, how to shape the\n * file, the steps, then what happens after. Everything keeps one left edge: the steps' numbers,\n * the table's first column, the note and the code all start where a paragraph does.\n */\nexport function ArticleBody() {\n  return (\n    <div className=\"gap-ws-16 flex flex-col\">\n      <p className={TEXT}>\n        Bring the customers you track somewhere else into Orbit in one go. Export them from your old\n        tool or spreadsheet as a CSV file, check that its columns are ones Orbit can read, and Orbit\n        adds each row as a customer, with its owner and stage.\n      </p>\n\n      <Section id=\"before-you-start\">\n        <p className={TEXT}>\n          Workspace admins and members with the Sales manager role can import. If you do not see{' '}\n          <Ui>Import</Ui> on the Customers page, ask an admin to change your role in{' '}\n          <Ui>Settings</Ui>, <Ui>Members</Ui>.\n        </p>\n        <p className={TEXT}>\n          One import takes up to 5,000 rows and 10 MB. Split a larger file into several and import\n          them one after another.\n        </p>\n      </Section>\n\n      <Section id=\"prepare-the-file\">\n        <p className={TEXT}>\n          The first row of the file names its columns. Orbit needs a name for every customer; the\n          other columns are optional, and a column Orbit does not know is left out.\n        </p>\n        <Table>\n          <Table.Head>\n            <Table.Row>\n              <Table.Header flushMargin>Column</Table.Header>\n              <Table.Header>Required</Table.Header>\n              <Table.Header>What it holds</Table.Header>\n            </Table.Row>\n          </Table.Head>\n          <Table.Body>\n            {columns.map((column) => (\n              <Table.Row key={column.name}>\n                <Table.Cell flushMargin>\n                  <Code>{column.name}</Code>\n                </Table.Cell>\n                <Table.Cell>{column.required ? 'Yes' : 'No'}</Table.Cell>\n                <Table.Cell>{column.holds}</Table.Cell>\n              </Table.Row>\n            ))}\n          </Table.Body>\n        </Table>\n        <p className={TEXT}>A file with every column starts like this:</p>\n        <CodeBlock lines={sampleFile} />\n\n        <ArticleSection level={3} title=\"Amounts and owners\">\n          <p className={TEXT}>\n            Write amounts as plain numbers, without a currency sign or separators: 48000, not\n            $48,000. An owner must already be a member of the workspace. A row whose owner Orbit\n            does not know is imported without one, and you can assign it afterwards.\n          </p>\n        </ArticleSection>\n      </Section>\n\n      <Section id=\"import-the-file\">\n        <Steps\n          steps={[\n            <>\n              Open <Ui>Customers</Ui> and select <Ui>Import</Ui> in the top right.\n            </>,\n            <>\n              Drop the file onto the page, or select <Ui>Browse</Ui> and choose it on your computer.\n            </>,\n            <>\n              Check how the columns match. Orbit matches the ones named as in the table above;\n              choose a field for any other column, or <Ui>Don’t import</Ui> to leave it out.\n            </>,\n            <>\n              Choose what happens to customers already in Orbit: <Ui>Update them</Ui> with the\n              values in the file, <Ui>Skip them</Ui>, or <Ui>Create them anyway</Ui> as second\n              customers.\n            </>,\n            <>\n              Select <Ui>Import</Ui>. A large file takes a few minutes; you can keep working while\n              it runs.\n            </>,\n          ]}\n        />\n        <InlineAlert\n          status=\"warning\"\n          persistent\n          title=\"Updates can’t be undone\"\n          message=\"“Update them” replaces the values in Orbit with the ones in the file. If you may need the old values, export your customers first.\"\n        />\n      </Section>\n\n      <Section id=\"check-the-result\">\n        <p className={TEXT}>\n          When the import ends, Orbit e-mails you a summary: how many customers it added, updated\n          and skipped. The new customers are on the Customers page straight away, with Import as\n          their source, so you can filter for them.\n        </p>\n\n        <ArticleSection level={3} title=\"If some rows were skipped\">\n          <p className={TEXT}>\n            The summary lists every row Orbit could not read and why, such as a missing name or an\n            amount with letters in it. Select <Ui>Download skipped rows</Ui> to get them as a CSV\n            file, correct them and import that file. Rows that worked the first time are not\n            imported twice.\n          </p>\n        </ArticleSection>\n      </Section>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/article-feedback.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/article-feedback.tsx",
      "content": "'use client';\n\nimport { RiCheckLine, RiThumbDownLine, RiThumbUpLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { FormField } from '@/components/ui/wideset/form-field/FormField';\nimport { Textarea } from '@/components/ui/wideset/textarea/Textarea';\nimport { type FormEvent, useEffect, useId, useRef, useState } from 'react';\n\ntype Step = 'ask' | 'missing' | 'thanks';\n\n/**\n * \"Was this helpful?\" at the end of the text. Yes thanks the reader at once; No first asks, in\n * one short field, what was missing. Either way the thanks replaces the question in place, at\n * the height of its buttons, so a Yes does not move the page. Nothing here is the page's main action, so the buttons are bordered.\n */\nexport function ArticleFeedback() {\n  const fieldId = useId();\n  const [step, setStep] = useState<Step>('ask');\n  const [missing, setMissing] = useState('');\n  const [error, setError] = useState('');\n  const field = useRef<HTMLTextAreaElement>(null);\n\n  // No opens the field; the caret goes straight into it.\n  useEffect(() => {\n    if (step === 'missing') field.current?.focus();\n  }, [step]);\n\n  const send = (event: FormEvent) => {\n    event.preventDefault();\n    if (!missing.trim()) {\n      setError('Write a few words, or select Cancel.');\n      return;\n    }\n    setStep('thanks');\n  };\n\n  if (step === 'thanks') {\n    return (\n      <p\n        role=\"status\"\n        className=\"gap-ws-5 min-h-ws-14 typography-body-md text-ws-static-base flex items-center\"\n      >\n        <RiCheckLine aria-hidden=\"true\" className=\"size-ws-9 text-ws-static-strong shrink-0\" />\n        Thanks for telling us. The team that writes these articles reads every answer.\n      </p>\n    );\n  }\n\n  return (\n    <div className=\"gap-ws-9 flex flex-col\">\n      <div className=\"gap-ws-9 flex flex-wrap items-center\">\n        <h2 className=\"typography-label-strong-md text-ws-static-strong\">Was this helpful?</h2>\n        <div className=\"gap-ws-5 flex\">\n          <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={() => setStep('thanks')}>\n            <Button.Icon icon={RiThumbUpLine} />\n            Yes\n          </Button>\n          <Button\n            variant=\"secondary\"\n            preset=\"border\"\n            size=\"sm\"\n            aria-expanded={step === 'missing'}\n            onClick={() => setStep('missing')}\n          >\n            <Button.Icon icon={RiThumbDownLine} />\n            No\n          </Button>\n        </div>\n      </div>\n\n      {step === 'missing' && (\n        <form noValidate onSubmit={send} className=\"gap-ws-7 flex max-w-[32rem] flex-col\">\n          <FormField label=\"What was missing?\" htmlFor={fieldId} errorText={error || undefined}>\n            <Textarea\n              ref={field}\n              id={fieldId}\n              size=\"sm\"\n              rows={3}\n              variant={error ? 'danger' : 'primary'}\n              placeholder=\"For example, how to import contacts with their customers\"\n              value={missing}\n              onChange={(event) => {\n                setMissing(event.target.value);\n                setError('');\n              }}\n            />\n          </FormField>\n          <div className=\"gap-ws-5 flex\">\n            <Button type=\"submit\" variant=\"secondary\" preset=\"border\" size=\"sm\">\n              Send\n            </Button>\n            <Button\n              variant=\"secondary\"\n              preset=\"ghost\"\n              size=\"sm\"\n              onClick={() => {\n                setStep('ask');\n                setMissing('');\n                setError('');\n              }}\n            >\n              Cancel\n            </Button>\n          </div>\n        </form>\n      )}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/article-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/article-header.tsx",
      "content": "'use client';\n\nimport { RiBookmarkFill, RiBookmarkLine, RiCheckLine, RiLinkM } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { useEffect, useState } from 'react';\n\nimport { article } from './data';\nimport { formatDay } from './format';\n\n/**\n * The article's header: its title, when it was last updated and how long it takes to read, then\n * what a reader may do with it. A reading page has no primary action, so both are bordered and\n * quiet: Copy link confirms in its own label for a moment, Save toggles to Saved.\n */\nexport function ArticleHeader() {\n  const [copied, setCopied] = useState(false);\n  const [saved, setSaved] = useState(false);\n\n  useEffect(() => {\n    if (!copied) return;\n    const timer = setTimeout(() => setCopied(false), 2000);\n    return () => clearTimeout(timer);\n  }, [copied]);\n\n  const copy = () =>\n    navigator.clipboard?.writeText(window.location.href).then(\n      () => setCopied(true),\n      () => {},\n    );\n\n  return (\n    <header className=\"gap-ws-12 flex flex-wrap items-start justify-between\">\n      <div className=\"gap-ws-2 flex max-w-[42rem] min-w-0 flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">{article.title}</h1>\n        <p className=\"typography-body-md text-ws-static-subtle tabular-nums\">\n          Updated {formatDay(article.updated)}, {article.minutes} min read\n        </p>\n      </div>\n\n      <div className=\"gap-ws-5 flex items-center\">\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\" onClick={copy}>\n          <Button.Icon icon={copied ? RiCheckLine : RiLinkM} />\n          {copied ? 'Link copied' : 'Copy link'}\n        </Button>\n        <Button\n          variant=\"secondary\"\n          preset=\"border\"\n          size=\"sm\"\n          aria-pressed={saved}\n          onClick={() => setSaved(!saved)}\n        >\n          <Button.Icon icon={saved ? RiBookmarkFill : RiBookmarkLine} />\n          {saved ? 'Saved' : 'Save'}\n        </Button>\n        {/* The labels change in place; this says so to a screen reader. */}\n        <span role=\"status\" className=\"sr-only\">\n          {copied ? 'Link copied' : ''}\n        </span>\n      </div>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/article-links.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/article-links.tsx",
      "content": "'use client';\n\n// TODO(custom): article link row (title, topic); ListItem is a div with no link of its own, ActionTile is a bordered tile.\nimport { useId } from 'react';\n\nimport type { Article } from './data';\n\n/**\n * A titled list of articles, each row one link across its width: the title, and on the right the\n * topic it belongs to. The hover fill reaches past the text so the titles stay on the column's\n * edge. Plain on purpose: it reads as a list of links, not as more tiles.\n */\nexport function ArticleLinks({ title, articles }: { title: string; articles: Article[] }) {\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      <ul className=\"-mx-ws-5 flex flex-col\">\n        {articles.map((article) => (\n          <li key={article.id}>\n            <a\n              href={`#articles/${article.id}`}\n              className=\"h-ws-15 gap-ws-9 px-ws-5 rounded-ws-control-lg hover:bg-ws-dynamic-secondary-alpha-hover focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex items-center\"\n            >\n              <span className=\"typography-label-sm text-ws-static-strong min-w-0 flex-1 truncate\">\n                {article.title}\n              </span>\n              <span className=\"typography-label-sm text-ws-static-subtle shrink-0\">\n                {article.topic}\n              </span>\n            </a>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/article-section.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/article-section.tsx",
      "content": "'use client';\n\n// TODO(custom): a section of long text (heading, then its paragraphs, lists and tables at a reading rhythm); Wideset has typography-body-lg but no prose styles.\nimport type { ReactNode } from 'react';\n\nconst HEADING = {\n  2: 'typography-subtitle-xs text-ws-static-strong',\n  3: 'typography-label-strong-md text-ws-static-strong',\n};\n\n/**\n * A part of the article under its heading: 18px for a section, 16px for a sub-section, both\n * closer to their text than to what came before (a sub-section takes extra room above it). A section has an `id`, so \"On this page\" can\n * jump to it; `scroll-mt` leaves room above the heading once it lands.\n */\nexport function ArticleSection({\n  id,\n  level = 2,\n  title,\n  children,\n}: {\n  id?: string;\n  level?: 2 | 3;\n  title: string;\n  children: ReactNode;\n}) {\n  const Heading = `h${level}` as const;\n\n  return (\n    <section\n      id={id}\n      aria-labelledby={id && `${id}-title`}\n      className={\n        level === 2 ? 'gap-ws-7 scroll-mt-ws-14 flex flex-col' : 'gap-ws-5 mt-ws-7 flex flex-col'\n      }\n    >\n      <Heading id={id && `${id}-title`} className={HEADING[level]}>\n        {title}\n      </Heading>\n      <div className=\"gap-ws-9 flex flex-col\">{children}</div>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/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/article/code.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/code.tsx",
      "content": "'use client';\n\n// TODO(custom): code in long text, inline and as a block; Wideset has no Code component.\nimport type { ReactNode } from 'react';\n\n/** A name to type exactly as written (a column, a field), in the monospace face of its line. */\nexport function Code({ children }: { children: ReactNode }) {\n  return <code className=\"text-ws-static-strong font-ws-mono\">{children}</code>;\n}\n\n/**\n * Lines to copy exactly, set apart in an outlined box (inside the white card a box is drawn, not\n * filled). Long lines scroll inside it rather than break.\n */\nexport function CodeBlock({ lines }: { lines: string[] }) {\n  return (\n    <pre className=\"border-ws-static-base rounded-ws-container-md px-ws-9 py-ws-7 typography-body-md text-ws-static-strong font-ws-mono ws-scrollbar overflow-x-auto border\">\n      <code>{lines.join('\\n')}</code>\n    </pre>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/article/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionFill,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/** The product is Orbit; the workspace using it 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\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 = {\n  id: 'help',\n  label: 'Help and support',\n  icon: RiQuestionLine,\n  activeIcon: RiQuestionFill,\n};\n\n/*\n  One help article, opened from Customers and deals: importing customers from a CSV file. It was\n  last updated on 3 November 2026; today is 10 November. The sections are listed here once, for\n  the text's headings and for the \"On this page\" list beside it.\n*/\n\nexport type Article = {\n  id: string;\n  title: string;\n  topic: string;\n  /** Minutes to read it. */\n  minutes: number;\n};\n\nexport const article = {\n  id: 'import-customers-csv',\n  title: 'Import customers from a CSV file',\n  topic: { id: 'customers-and-deals', title: 'Customers and deals' },\n  updated: '2026-11-03',\n  minutes: 4,\n};\n\n/** The article's sections, in order: a heading each, and an entry in \"On this page\". */\nexport const sections = [\n  { id: 'before-you-start', title: 'Before you start' },\n  { id: 'prepare-the-file', title: 'Prepare the file' },\n  { id: 'import-the-file', title: 'Import the file' },\n  { id: 'check-the-result', title: 'Check the result' },\n] as const;\n\nexport type SectionId = (typeof sections)[number]['id'];\n\n/** The columns Orbit reads from the file. */\nexport const columns = [\n  { name: 'name', required: true, holds: 'The company’s name, as it should appear in Orbit' },\n  { name: 'domain', required: false, holds: 'The company’s website, used to find duplicates' },\n  { name: 'owner_email', required: false, holds: 'The e-mail of the teammate who owns it' },\n  { name: 'stage', required: false, holds: 'Lead, Prospect, Customer or Churned' },\n  { name: 'annual_value', required: false, holds: 'Expected revenue a year, in US dollars' },\n];\n\n/** The first two lines of a file with every column. */\nexport const sampleFile = [\n  columns.map((column) => column.name).join(','),\n  'Halcyon Freight,halcyonfreight.com,jonas@lumenstudio.co,Customer,48000',\n];\n\n/** Read next, from this topic and the ones it touches. */\nexport const related: Article[] = [\n  {\n    id: 'failed-rows',\n    title: 'Fix rows that failed to import',\n    topic: 'Customers and deals',\n    minutes: 3,\n  },\n  {\n    id: 'hubspot',\n    title: 'Connect HubSpot and import its contacts',\n    topic: 'Integrations',\n    minutes: 5,\n  },\n  {\n    id: 'invite-team',\n    title: 'Invite your team and choose their roles',\n    topic: 'Getting started',\n    minutes: 3,\n  },\n];\n"
    },
    {
      "path": "src/blocks/article/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/article/format.ts",
      "content": "// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\n\n// Days are calendar days (`2026-11-03`), parsed as UTC midnight: format them in UTC too.\nconst day = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'long', timeZone: 'UTC' });\n\n/** \"November 3, 2026\". */\nexport const formatDay = (iso: string) => day.format(new Date(iso));\n"
    },
    {
      "path": "src/blocks/article/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId, useRef, useState } from 'react';\n\nimport { ArticleBody } from './article-body';\nimport { ArticleFeedback } from './article-feedback';\nimport { ArticleHeader } from './article-header';\nimport { ArticleLinks } from './article-links';\nimport { article, related, sections } from './data';\nimport { OnThisPage } from './on-this-page';\nimport { ArticleSidebar } from './sidebar';\nimport { TextLink } from './text-link';\n\n/** One column of the page: the header and the body share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\n\n/**\n * Article (Inset direction): one help article on the raised page beside the workspace sidebar.\n * The text reads in a 42rem column on the page's left edge; \"On this page\" stands beside it and\n * follows the scroll; the end of the text asks whether it helped, offers what to read next and\n * the way to a person. The crumbs lead back to the article's topic.\n */\nexport default function Article() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const scrollRef = useRef<HTMLDivElement>(null);\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <ArticleSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n      <AppShell.Main>\n        <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n          {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow it. */}\n          <div className=\"gap-ws-5 px-ws-11 flex w-full min-w-0 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 asChild>\n                <a href=\"#help\">Help</a>\n              </Breadcrumbs.Item>\n              <Breadcrumbs.Item asChild>\n                <a href={`#topics/${article.topic.id}`}>{article.topic.title}</a>\n              </Breadcrumbs.Item>\n              <Breadcrumbs.Item>{article.title}</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\n        {/* The page scrolls inside the card, so the card's corners stay put; anchor jumps glide. */}\n        <div\n          ref={scrollRef}\n          className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto scroll-smooth motion-reduce:scroll-auto\"\n        >\n          <div className={cn(COLUMN, 'gap-ws-14 pt-ws-14 pb-ws-16 flex flex-col')}>\n            <ArticleHeader />\n\n            <div className=\"gap-ws-16 grid grid-cols-1 items-start lg:grid-cols-[minmax(0,42rem)_14rem] lg:justify-between\">\n              <article className=\"flex min-w-0 flex-col\">\n                <ArticleBody />\n\n                {/* After the text: did it help, what next, and a person if not. */}\n                <div className=\"gap-ws-14 border-ws-static-base mt-ws-18 pt-ws-14 flex flex-col border-t\">\n                  <ArticleFeedback />\n                  <ArticleLinks title=\"Related articles\" articles={related} />\n                  <p className=\"typography-body-md text-ws-static-base\">\n                    Still need help? <TextLink href=\"#contact-support\">Contact support</TextLink>\n                  </p>\n                </div>\n              </article>\n\n              <aside className=\"top-ws-14 sticky hidden lg:block\">\n                <OnThisPage sections={sections} scrollRef={scrollRef} />\n              </aside>\n            </div>\n          </div>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/on-this-page.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/on-this-page.tsx",
      "content": "'use client';\n\n// TODO(custom): an \"On this page\" list that follows the scroll; Wideset has no table of contents or scroll-spy navigation.\nimport { cn } from '@/lib/wideset/utils';\nimport { type RefObject, useEffect, useId, useState } from 'react';\n\ntype OnThisPageProps = {\n  sections: readonly { id: string; title: string }[];\n  /** The element the article scrolls in: the page card's body, not the window. */\n  scrollRef: RefObject<HTMLElement | null>;\n};\n\n/**\n * The article's sections as plain anchor links beside it: a click jumps to the section (the\n * scroll container scrolls smoothly), and the section in view is marked as the scroll goes. A\n * section counts as in view once its heading passes the top quarter of the view; at the very end\n * the last one does, even if it is too short to reach that line. The mark is neutral, like a\n * selected tab: strong text and a strong line on the rail.\n */\nexport function OnThisPage({ sections, scrollRef }: OnThisPageProps) {\n  const titleId = useId();\n  const [current, setCurrent] = useState(sections[0]?.id);\n\n  useEffect(() => {\n    const root = scrollRef.current;\n    if (!root) return;\n\n    const update = () => {\n      const line = root.getBoundingClientRect().top + root.clientHeight / 4;\n      const atEnd = root.scrollTop + root.clientHeight >= root.scrollHeight - 1;\n      const passed = sections.filter(\n        ({ id }) => (document.getElementById(id)?.getBoundingClientRect().top ?? Infinity) <= line,\n      );\n      setCurrent((atEnd ? sections.at(-1) : passed.at(-1))?.id ?? sections[0]?.id);\n    };\n\n    update();\n    root.addEventListener('scroll', update, { passive: true });\n    return () => root.removeEventListener('scroll', update);\n  }, [sections, scrollRef]);\n\n  return (\n    <nav aria-labelledby={titleId} className=\"gap-ws-7 flex flex-col\">\n      <h2 id={titleId} className=\"typography-label-strong-sm text-ws-static-strong\">\n        On this page\n      </h2>\n      <ul className=\"border-ws-static-base flex flex-col border-l\">\n        {sections.map(({ id, title }) => (\n          <li key={id}>\n            <a\n              href={`#${id}`}\n              aria-current={id === current ? 'location' : undefined}\n              className={cn(\n                'py-ws-3 pl-ws-7 typography-label-sm focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default -ml-px block border-l-[2px]',\n                id === current\n                  ? 'border-ws-static-strong text-ws-static-strong'\n                  : 'text-ws-static-subtle hover:text-ws-static-strong border-transparent',\n              )}\n            >\n              {title}\n            </a>\n          </li>\n        ))}\n      </ul>\n    </nav>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/article/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBz/wAARCABgAGADASIAAhEBAxEB/8QAHQAAAAcBAQEAAAAAAAAAAAAAAgMEBQYHCAEACf/EADUQAAEDAwMBBgUDAgcAAAAAAAECAwQABREGEiEHEzFBUWGBCBQicaEVMpHB0SQzQkNTseH/xAAbAQACAwEBAQAAAAAAAAAAAAADBAACBQYHAf/EAC0RAAIBAwIDBwMFAAAAAAAAAAECAAMEEQUhEjFBBhMiUWFxwRSB0UKRobHw/9oADAMBAAIRAxEAPwC1q4a8a4TWTPW57PFFvPoYbU44sJQkZJPcBTJqXVts0vDekT5KEFtG/swfrUPQVlHqb1tm6peUxbluxISNyRhWFKzwc49Ksqk7CI3l/StVy538pou+dZtK2IoLs4PIUM7mQVf9U56d6mab1Sy65bbglfZcqSsFKgPPBr5/PTVhWFOKPGQCa5Gub8Z0mO841vG1W1RGaN3JxOfHaN+PdRib1kdX9KRZD0dy5tdsz+4DkYz357van2yazsmoW90C4sOkDJSFjcPuK+dfzqlrUdyj4Z9aXQb1NtryHoshxlxBBCkrINfDRMunaI8XiTafSNKwoZB4oYNY+6cfELPtDvyl43zWXXEpSveAWxnnjxrWtvns3GI1JjuodZdTuStCgpJHoRQmUjYzfs72ldLxUzFua9Qa7mqxycoCjQiaIfXsbUrBOATgVJJlX4j9XMTr2i0tIV2kMbXCDwSeRWfXlFec/Tjwz31MuqNxkTtXXV99stqLysJIOcZ4znmoElDkh5Ccnk45pykuFzPPNTrmrcsT54gm23Zb6Go7SlvHgADJNS6F0x1HMjl3sAgAbglR5NW90w6bR4MSNLebCpLwCio87ftV6vaWYjRE7U7jisy41JlJFIco/aaMrKGrnc9BMN3TQ17sjZckRiWs7lFBzUdCt6yMKHofCtl6nsjJjuJKOCD4VnDXekUwQqbGQUAfuSBwaJZ6gavhqDBgdQ0n6ccdI5EgpKm1EgAYPePCtT/DV1OVLZOlrg6N7Q3RVHjjxTWUfqJ27gfE1YvRi6R7Try2uSWnFoUsNpUjjaVcc/zin6q5WL6TcNRuVwdjsZv9Ksih0naV9Io4Gk56HOGiXP2n7UaqilipJiYF6uPyHdbXYvqbJDpA7PuA/vUZ0jFFx1RbI6uUOPJBHp31eXxMaOmM3Ru/gMCA8lLASjO8L5JJHdzVa9ILKq539ExAyYL7ZUnHgoK5/H5oz1AlAt6Tgrq1cah3Z6nP25zTNraucSJ20NUBpmOkbW5BO5YH27hUmtGtHrw04idDYZW14sKKkke9Q6/9LHtRIVKbdfy8jZtS+UJQPTg8092CwJ0owuOdqn1oyoH6vAjjNc87KKYIO/tOiRXNU5G3v8Rk1TqGbcZK4tmhMOqA+tTyiAn+KqbV7E4RXWJ6Yit6TzHUSB6EGpvBgm7yr1BQgrkvhSQQraU5GNw9RUYuXTd/TcZciRIWsFO3YVlQ4Hf3DmiUSiAb7+0DXWq5O23v8Ymc0JUl1eOcEjBq5Phx+XX1BZblR+23NqLeRlKFjkE+2aqa5NCLNwk5DmVfb6iP6VqT4aNHzrZGfvMhplUaYnDaik9ogg8+1dFVcFM+cwtHt2a8UD9O5mj2+6jxRDdHilJ384aAqhmgqqSSK650mxrPT0q1PrLaXcELAyUkHNZQs0af0o1rIiTrW98lcSI7S1EDnf8AQ57c1tRQqK610TB1pbDDlKUy4FBSJDQG9BBzwTUIDKVPIzOvbEVyKqbOvL8SF3PqXLbtcSyMvNxFPklUhzADaRgE58TyMCnCJdFspkSbe9EfZaZwe1ALiiR3leef4pok2Bm23dq33ENyEhIKVlPeDx7cirGtOobNbLcqPebbbJBQkIQp+NjcnuzuAIyB4EZ9axxSUnhY4IizF0JwP9/Uzk9qKfbL0Lg6/EjOtuFeWedwPgTnke1LdZa2dvNoaVs2pcBUPIjHeD5U+dU7rZtRzEt2+0wY0flSwwyEpwCT3+Pf5AUzaT0eOpUuRHU/8tb4DSEr2D6iFE8DyztVzRloqzDEADVJNMczKr6caEk6/wBWxnpUB/8ARpW9HbI5DZQnOCfA/wB62/Z7WzaLexDYTtbaSEjnP58aR6b0xbdKW8QLYwGY+7eUg5yogAn8U+JrUZszR0+wW0QjOWPMwxAo0UWmjBVZoTlBNdNDZjPS19mw0txfkkZqAZlWYKMsdonVRSlBIJJwAMk+Qqa2rQT8gpcnOdkg/wC2jlR9+4fmnTW3T2FdtFyoUCMkSmFJkIAGVOlOcpJ7zkE49cUU0X4SwHKYtxr1tTcU0PET16D7/iZp1C9Hvt5cVHcC2m0BtLie4qGTwfek1x1OiHblRbhHSVDgrI4PrTobN8oFFoYCfDHNNd8jolxwHGwSR5VzT1uJiWHOFOWJbrKo1LqFiXvYhtJwvjKU44qRdFdTW/Td1ukW5yUx/wBQS0W3XDhG5G7gnwzv/FNk6whCisNYyeOKSRNFzb7cWIMKMt+U+oJQ2kck/wBB6+FO0KoGAoiRZ6dTvuo/aajiSmJrCH4zzbzCxlLjagpKvsRSkVI9NdPGNOaVtdmwlS4rQSpYGMq5Kj7qJNHSNGPhO+O4Ck+Ch3Vsmi2Ia27QW9Tar4T/ABI0mjBxR0q3SoKsPtFIH+ocik4NBII5zbp1UqrxIcj0jzpzT72oJvZoO1hvBdX5DyHqatJmzxrSlLcZlKGsDuHP80RoW3CFp+Orbhb+XVHzz3fjFP7mFpQT5lJrQpUwq56zz/WNRe5rtTB8KnAHzELaQ5jP80oTltQUPeiktlh1SPDvFGnuowmPIjqrppadUuLlMuKgXFf7nWk5Ss+akeP3GDVbS+id8TJQf8FKbTxuS4U59iKvTOPPNe7RYP7iKRr6fQrHiYYPpH7fU7igOFWyPWUOr4fZ90dQqZNjQmU+DSS4r27h75qxNJ9NrBoZClwGC7NcG1cp47nFDyz4D0GKmaipYwSTRak/UPSrULGjQOUG/nK3GoV7gYdtvIbRKIyFHcoZJNKEMJSg4AAr2PqA8AK6+5sVHb/5F01E4ln2pp9gpWgHcOePCqlvlt/Spqmx/lq5TVzSXgqYIoOCEb1HyA/9NVxrVjfHafA+rG/2JoVZAVmto141vcKM+FtjP//Z',\n};\n"
    },
    {
      "path": "src/blocks/article/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\nimport { type AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'className' | 'style' | 'title' | 'aria-hidden' | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** The colour of the initials. A photo takes none. */\n  color?: AvatarColor;\n  /** Empty beside the person's name (the default); their name when the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when they have one, their initials when not. The choice lives\n * here so every place the block draws a person mixes the two the same way. The rest of the props\n * go to the `Avatar`, so it also sits in an `Avatar.Group`.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...avatar }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...avatar} />\n  ) : (\n    <Avatar initials={initials} color={color} {...avatar} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/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 ArticleSidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('help');\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                  title={account.name}\n                  alt={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/steps.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/steps.tsx",
      "content": "'use client';\n\n// TODO(custom): a numbered list in long text; Wideset has no list styles, and the browser's markers would hang outside the text edge.\nimport type { ReactNode } from 'react';\n\n/**\n * Steps to follow in order. The numbers sit on the text's left edge in a column of their own, so\n * a step that wraps keeps its lines under its first word, not under the number.\n */\nexport function Steps({ steps }: { steps: ReactNode[] }) {\n  return (\n    <ol className=\"gap-ws-5 flex flex-col\">\n      {steps.map((step, index) => (\n        <li\n          key={index}\n          className=\"typography-body-lg text-ws-static-base grid grid-cols-[1.5rem_minmax(0,1fr)]\"\n        >\n          <span aria-hidden=\"true\" className=\"text-ws-static-subtle tabular-nums\">\n            {index + 1}.\n          </span>\n          <span>{step}</span>\n        </li>\n      ))}\n    </ol>\n  );\n}\n"
    },
    {
      "path": "src/blocks/article/text-link.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/article/text-link.tsx",
      "content": "'use client';\n\n// TODO(custom): a link inside a sentence; Wideset has no inline text link (LinkButton is a control with its own padding and height).\nimport { cn } from '@/lib/wideset/utils';\nimport type { AnchorHTMLAttributes } from 'react';\n\n/**\n * A link inside a sentence, as Figma draws the terms link: the sentence's own type in the primary\n * colour. The underline comes on hover and focus.\n */\nexport function TextLink({\n  className,\n  children,\n  ...props\n}: AnchorHTMLAttributes<HTMLAnchorElement>) {\n  return (\n    <a\n      className={cn(\n        'text-ws-dynamic-primary-default hover:text-ws-dynamic-primary-hover active:text-ws-dynamic-primary-pressed rounded-ws-control-sm focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default decoration-from-font hover:underline focus-visible:underline',\n        className,\n      )}\n      {...props}\n    >\n      {children}\n    </a>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
