{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-filter-popover",
  "type": "registry:block",
  "title": "Filter popover",
  "description": "Building a filter in a popover over a list: conditions of field, test and value joined by and or or, applied together and shown as removable chips, with the sort in a popover beside it.",
  "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/chip.json",
    "https://wideset.co/r/date-picker.json",
    "https://wideset.co/r/date-range-picker.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/multi-select.json",
    "https://wideset.co/r/popup.json",
    "https://wideset.co/r/segmented-control.json",
    "https://wideset.co/r/select.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/filter-popover/active-filters.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/active-filters.tsx",
      "content": "'use client';\n\nimport { Chip } from '@/components/ui/wideset/chip/Chip';\nimport { Fragment } from 'react';\n\nimport { describe, type Filter } from './conditions';\n\n/**\n * The filter on the list, in words, between the toolbar and the table: one chip per condition,\n * the join word between them, each chip removing its condition. The chips are the summary; the\n * Filter button carries no count.\n */\nexport function ActiveFilters({\n  filter,\n  onChange,\n}: {\n  filter: Filter;\n  onChange: (filter: Filter) => void;\n}) {\n  if (filter.conditions.length === 0) return null;\n\n  return (\n    <div\n      role=\"group\"\n      aria-label=\"Filters on the list\"\n      className=\"gap-ws-5 flex flex-wrap items-center\"\n    >\n      {filter.conditions.map((condition, index) => {\n        const words = describe(condition);\n        return (\n          <Fragment key={condition.id}>\n            {index > 0 && (\n              <span className=\"typography-label-sm text-ws-static-subtle\">{filter.join}</span>\n            )}\n            <Chip variant=\"secondary\">\n              <Chip.Label>{words}</Chip.Label>\n              <Chip.IconButton\n                aria-label={`Remove filter: ${words}`}\n                onClick={() =>\n                  onChange({\n                    ...filter,\n                    conditions: filter.conditions.filter((c) => c.id !== condition.id),\n                  })\n                }\n              />\n            </Chip>\n          </Fragment>\n        );\n      })}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/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/filter-popover/condition-row.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/condition-row.tsx",
      "content": "'use client';\n\n// TODO(custom): one condition of a filter builder (join word, field, test, value, remove); Wideset has no filter builder, only FilterButton for one field and a short list.\nimport { RiCloseLine } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { useEffect, useRef } from 'react';\n\nimport { ConditionValue } from './condition-value';\nimport {\n  blank,\n  type Condition,\n  FIELD_IDS,\n  FIELDS,\n  type Join,\n  type Operator,\n  OPERATORS,\n} from './conditions';\n\n/** The row's columns, the same in every row so fields, tests and values line up. */\nconst ROW = 'gap-ws-5 grid grid-cols-[4.5rem_9rem_8.5rem_minmax(0,1fr)_auto] items-center';\n\nconst FIELD_OPTIONS = FIELD_IDS.map((id) => ({ value: id, label: FIELDS[id].label }));\nconst JOIN_OPTIONS = [\n  { value: 'and', label: 'and' },\n  { value: 'or', label: 'or' },\n];\n\ntype ConditionRowProps = {\n  condition: Condition;\n  /** Its place in the filter: the first reads \"Where\", the second holds the join, the rest repeat it. */\n  index: number;\n  join: Join;\n  onJoinChange: (join: Join) => void;\n  onChange: (condition: Condition) => void;\n  onRemove: () => void;\n  /** Its field takes the focus when it appears: the row just added. */\n  focusOnMount?: boolean;\n};\n\n/**\n * One condition as a sentence: where (or the join word) · field · test · value · remove. A new\n * field starts the row again on its first test, since the old value means nothing to it; a new\n * test keeps what still fits (one option of several, the first day of two).\n */\nexport function ConditionRow({\n  condition,\n  index,\n  join,\n  onJoinChange,\n  onChange,\n  onRemove,\n  focusOnMount,\n}: ConditionRowProps) {\n  const row = useRef<HTMLDivElement>(null);\n  // The row just added hands the keyboard its first choice, the field.\n  useEffect(() => {\n    if (focusOnMount) row.current?.querySelector<HTMLElement>('[aria-label=\"Field\"]')?.focus();\n  }, [focusOnMount]);\n\n  const { field, operator } = condition;\n  const fieldLabel = FIELDS[field].label;\n  const set = (next: Partial<Condition>) => onChange({ ...condition, ...next });\n\n  const setOperator = (next: Operator) =>\n    set({\n      operator: next,\n      values: next === 'anyOf' ? condition.values : condition.values.slice(0, 1),\n      to: next === 'between' ? condition.to : undefined,\n    });\n\n  return (\n    <div ref={row} role=\"group\" aria-label={`Condition ${index + 1}`} className={ROW}>\n      {index === 1 ? (\n        <Select\n          size=\"sm\"\n          preset=\"border\"\n          aria-label=\"Match conditions with\"\n          options={JOIN_OPTIONS}\n          value={join}\n          onValueChange={(value) => onJoinChange(value as Join)}\n          className=\"w-full\"\n        />\n      ) : (\n        <span className=\"typography-label-sm text-ws-static-subtle px-ws-7\">\n          {index === 0 ? 'Where' : join}\n        </span>\n      )}\n      <Select\n        size=\"sm\"\n        preset=\"border\"\n        aria-label=\"Field\"\n        options={FIELD_OPTIONS}\n        value={field}\n        onValueChange={(value) =>\n          onChange({ ...blank(value as Condition['field']), id: condition.id })\n        }\n        className=\"w-full\"\n      />\n      <Select\n        size=\"sm\"\n        preset=\"border\"\n        aria-label={`${fieldLabel} test`}\n        options={OPERATORS[FIELDS[field].kind]}\n        value={operator}\n        onValueChange={(value) => setOperator(value as Operator)}\n        className=\"w-full\"\n      />\n      <ConditionValue condition={condition} onChange={set} />\n      <IconButton\n        icon={RiCloseLine}\n        variant=\"secondary\"\n        preset=\"ghost\"\n        size=\"sm\"\n        aria-label={`Remove the ${fieldLabel.toLowerCase()} condition`}\n        onClick={onRemove}\n      />\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/condition-value.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/condition-value.tsx",
      "content": "'use client';\n\nimport { DatePicker } from '@/components/ui/wideset/datepicker/DatePicker';\nimport { DateRangePicker } from '@/components/ui/wideset/daterangepicker/DateRangePicker';\nimport { MultiSelect } from '@/components/ui/wideset/multi-select/MultiSelect';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\n\nimport { type Condition, FIELDS } from './conditions';\nimport { TODAY } from './data';\n\n/** The sample's own today as a local Date, for the calendars: drop it to follow the clock. */\nconst [year, month, day] = TODAY.split('-').map(Number);\nconst SAMPLE_TODAY = new Date(year, month - 1, day);\nconst DATE_FORMAT = 'MMM d, yyyy';\n\n/** How a list field's choices are named: in a placeholder, and in the summary past two (\"3 owners\"). */\nconst NOUN: Record<string, { one: string; many: string }> = {\n  stage: { one: 'a stage', many: 'stages' },\n  owner: { one: 'an owner', many: 'owners' },\n  customer: { one: 'a customer', many: 'customers' },\n};\n\n/**\n * A condition's value, in the control its field and test call for: one option from a list (is,\n * is not), several (is any of), an amount in dollars, one day (before, after) or two (between).\n * Every control fills its column of the row.\n */\nexport function ConditionValue({\n  condition,\n  onChange,\n}: {\n  condition: Condition;\n  onChange: (next: Partial<Condition>) => void;\n}) {\n  const { field, operator } = condition;\n  const { label, kind, options = [] } = FIELDS[field];\n  const name = `${label} value`;\n\n  if (kind === 'amount') {\n    return (\n      <TextInput\n        size=\"sm\"\n        inputMode=\"numeric\"\n        autoComplete=\"off\"\n        placeholder=\"0\"\n        value={condition.amount}\n        onChange={(event) => onChange({ amount: event.target.value.replace(/[^\\d.,]/g, '') })}\n        className=\"w-full\"\n      >\n        <TextInput.Prefix>$</TextInput.Prefix>\n        <TextInput.Input aria-label={name} className=\"tabular-nums\" />\n      </TextInput>\n    );\n  }\n\n  if (kind === 'date') {\n    return operator === 'between' ? (\n      <DateRangePicker\n        size=\"sm\"\n        aria-label={name}\n        placeholder=\"Pick the days\"\n        dateFormat={DATE_FORMAT}\n        weekStartsOn={1}\n        today={SAMPLE_TODAY}\n        defaultMonth={SAMPLE_TODAY}\n        selected={{ from: condition.from, to: condition.to }}\n        onSelect={(range) => onChange({ from: range?.from, to: range?.to })}\n        className=\"w-full\"\n      />\n    ) : (\n      <DatePicker\n        size=\"sm\"\n        aria-label={name}\n        placeholder=\"Pick a day\"\n        dateFormat={DATE_FORMAT}\n        weekStartsOn={1}\n        today={SAMPLE_TODAY}\n        defaultMonth={SAMPLE_TODAY}\n        selected={condition.from}\n        onSelect={(from) => onChange({ from })}\n        className=\"w-full\"\n      />\n    );\n  }\n\n  return operator === 'anyOf' ? (\n    <MultiSelect\n      size=\"sm\"\n      aria-label={name}\n      placeholder={`Choose ${NOUN[field].many}`}\n      options={options}\n      value={condition.values}\n      onValueChange={(values) => onChange({ values })}\n      maxVisibleTags={2}\n      multiValuesLabel={NOUN[field].many}\n      hasSearch={options.length > 6}\n      className=\"w-full\"\n    />\n  ) : (\n    <Select\n      size=\"sm\"\n      preset=\"border\"\n      aria-label={name}\n      placeholder={`Choose ${NOUN[field].one}`}\n      options={options}\n      value={condition.values[0] ?? ''}\n      onValueChange={(value) => onChange({ values: value ? [value] : [] })}\n      hasSearch={options.length > 6}\n      className=\"w-full\"\n    />\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/conditions.ts",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/conditions.ts",
      "content": "import { CUSTOMERS, type Deal, OWNERS, STAGES } from './data';\nimport { formatEither, formatMonthDay, formatUsd } from './format';\n\n/*\n  The filter as data: conditions of field, test and value, joined by one word. Each field has a\n  kind, and the kind decides the tests it offers and the control its value takes: a list of\n  options, an amount, or a day.\n*/\n\nexport type FieldId = 'stage' | 'owner' | 'amount' | 'closeDate' | 'customer';\nexport type Operator = 'is' | 'isNot' | 'anyOf' | 'gt' | 'lt' | 'before' | 'after' | 'between';\ntype Kind = 'option' | 'amount' | 'date';\ntype Option = { value: string; label: string };\n\nexport const FIELDS: Record<FieldId, { label: string; kind: Kind; options?: Option[] }> = {\n  stage: { label: 'Stage', kind: 'option', options: STAGES.map((s) => ({ value: s, label: s })) },\n  owner: {\n    label: 'Owner',\n    kind: 'option',\n    options: Object.entries(OWNERS).map(([value, label]) => ({ value, label })),\n  },\n  amount: { label: 'Amount', kind: 'amount' },\n  closeDate: { label: 'Close date', kind: 'date' },\n  customer: {\n    label: 'Customer',\n    kind: 'option',\n    options: CUSTOMERS.map((c) => ({ value: c, label: c })),\n  },\n};\nexport const FIELD_IDS = Object.keys(FIELDS) as FieldId[];\n\nexport const OPERATORS: Record<Kind, { value: Operator; label: string }[]> = {\n  option: [\n    { value: 'is', label: 'is' },\n    { value: 'isNot', label: 'is not' },\n    { value: 'anyOf', label: 'is any of' },\n  ],\n  amount: [\n    { value: 'gt', label: 'greater than' },\n    { value: 'lt', label: 'less than' },\n  ],\n  date: [\n    { value: 'before', label: 'before' },\n    { value: 'after', label: 'after' },\n    { value: 'between', label: 'between' },\n  ],\n};\n\n/**\n * One condition. It keeps a slot for each kind of value, and only its field's kind is read:\n * `values` for options (one for is and is not), `amount` as typed, `from` and `to` as days (one\n * day for before and after).\n */\nexport type Condition = {\n  id: string;\n  field: FieldId;\n  operator: Operator;\n  values: string[];\n  amount: string;\n  from?: string;\n  to?: string;\n};\n\nexport type Join = 'and' | 'or';\nexport type Filter = { join: Join; conditions: Condition[] };\n\nlet made = 0;\n/** A new condition on a field: its first test, no value yet. */\nexport const blank = (field: FieldId): Condition => ({\n  id: `condition-${++made}`,\n  field,\n  operator: OPERATORS[FIELDS[field].kind][0].value,\n  values: [],\n  amount: '',\n});\n\nconst amountOf = (condition: Condition) => Number(condition.amount.replace(/[^\\d.]/g, '') || NaN);\n\n/** Whether a condition has its value; one without it narrows nothing and is not applied. */\nexport function isComplete(condition: Condition) {\n  const { kind } = FIELDS[condition.field];\n  if (kind === 'option') return condition.values.length > 0;\n  if (kind === 'amount') return Number.isFinite(amountOf(condition));\n  return Boolean(condition.from && (condition.operator !== 'between' || condition.to));\n}\n\nfunction matches(deal: Deal, condition: Condition) {\n  const { field, operator, values, from = '', to = '' } = condition;\n  if (field === 'amount') {\n    return operator === 'gt'\n      ? deal.amount > amountOf(condition)\n      : deal.amount < amountOf(condition);\n  }\n  if (field === 'closeDate') {\n    if (operator === 'before') return deal.closeDate < from;\n    if (operator === 'after') return deal.closeDate > from;\n    return deal.closeDate >= from && deal.closeDate <= to;\n  }\n  const value = deal[field];\n  if (operator === 'is') return value === values[0];\n  if (operator === 'isNot') return value !== values[0];\n  return values.includes(value);\n}\n\n/** The deals the filter keeps: every complete condition (and), or any one of them (or). */\nexport function applyFilter(deals: Deal[], { join, conditions }: Filter) {\n  const complete = conditions.filter(isComplete);\n  if (complete.length === 0) return deals;\n  return deals.filter((deal) =>\n    join === 'and'\n      ? complete.every((condition) => matches(deal, condition))\n      : complete.some((condition) => matches(deal, condition)),\n  );\n}\n\n/** A condition in words, for its chip: `Stage is Proposal or Negotiation`, `Amount over $10,000`. */\nexport function describe(condition: Condition) {\n  const { field, operator, values, from = '', to = '' } = condition;\n  const { label, options = [] } = FIELDS[field];\n  if (field === 'amount') {\n    return `${label} ${operator === 'gt' ? 'over' : 'under'} ${formatUsd(amountOf(condition))}`;\n  }\n  if (field === 'closeDate') {\n    if (operator === 'between') return `Closes ${formatMonthDay(from)} – ${formatMonthDay(to)}`;\n    return `Closes ${operator} ${formatMonthDay(from)}`;\n  }\n  const names = values.map((value) => options.find((o) => o.value === value)?.label ?? value);\n  return `${label} ${operator === 'isNot' ? 'is not' : 'is'} ${formatEither(names)}`;\n}\n\n// The filter the list opens with, and the two conditions being added to it in the popover.\nconst stages: Condition = {\n  ...blank('stage'),\n  operator: 'anyOf',\n  values: ['Proposal', 'Negotiation'],\n};\nexport const APPLIED: Filter = { join: 'and', conditions: [stages] };\nexport const DRAFT: Filter = {\n  join: 'and',\n  conditions: [\n    stages,\n    { ...blank('amount'), amount: '10,000' },\n    { ...blank('closeDate'), operator: 'between', from: '2026-11-01', to: '2026-12-31' },\n  ],\n};\n\nexport type SortKey = 'closeDate' | 'amount' | 'name' | 'customer' | 'stage';\nexport type Sort = { key: SortKey; direction: 'asc' | 'desc' };\n\n/** What each sort's two directions are called, in the words of what is sorted. */\nexport const SORTS: Record<SortKey, { label: string; asc: string; desc: string }> = {\n  closeDate: { label: 'Close date', asc: 'Earliest first', desc: 'Latest first' },\n  amount: { label: 'Amount', asc: 'Smallest first', desc: 'Largest first' },\n  name: { label: 'Deal', asc: 'A to Z', desc: 'Z to A' },\n  customer: { label: 'Customer', asc: 'A to Z', desc: 'Z to A' },\n  stage: { label: 'Stage', asc: 'Earliest stage first', desc: 'Latest stage first' },\n};\n\nexport const compare =\n  ({ key, direction }: Sort) =>\n  (a: Deal, b: Deal) => {\n    const order =\n      key === 'amount'\n        ? a.amount - b.amount\n        : key === 'stage'\n          ? STAGES.indexOf(a.stage) - STAGES.indexOf(b.stage)\n          : a[key].localeCompare(b[key]);\n    return direction === 'asc' ? order : -order;\n  };\n"
    },
    {
      "path": "src/blocks/filter-popover/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinFill,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/*\n  Maya is getting ready for Thursday's pipeline review: the deals in proposal or negotiation, worth\n  over $10,000, closing before the year is out. The list already shows the stage filter; the filter\n  popover is open on the two conditions she is adding to it.\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\n/** The sample is frozen on this day. */\nexport const TODAY = '2026-11-10';\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine, activeIcon: RiHandCoinFill },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\n/** The pipeline's stages, in order. A stage is a lifecycle state, so its badge stays neutral. */\nexport const STAGES = ['Discovery', 'Proposal', 'Negotiation', 'Commit', 'Won', 'Lost'] as const;\nexport type Stage = (typeof STAGES)[number];\n\nexport const OWNERS = {\n  maya: 'Maya Okafor',\n  jonas: 'Jonas Weber',\n  priya: 'Priya Raman',\n  tom: 'Tom Becker',\n  elena: 'Elena Silva',\n  daniel: 'Daniel Reyes',\n  nina: 'Nina Alvarez',\n};\nexport type OwnerId = keyof typeof OWNERS;\n\nexport const CUSTOMERS = [\n  'Atlas Robotics',\n  'Cobalt Security',\n  'Halcyon Freight',\n  'Juniper Legal',\n  'Kestrel Analytics',\n  'Marlow & Finch',\n  'Northwind Health',\n  'Tidewater Energy',\n];\n\nexport type Deal = {\n  id: string;\n  name: string;\n  customer: string;\n  stage: Stage;\n  owner: OwnerId;\n  /** In US dollars, a year's worth. */\n  amount: number;\n  /** The day it is expected to close, or closed (`2026-11-20`). */\n  closeDate: string;\n};\n\nconst deal = (\n  id: string,\n  name: string,\n  customer: string,\n  stage: Stage,\n  owner: OwnerId,\n  amount: number,\n  closeDate: string,\n): Deal => ({ id, name, customer, stage, owner, amount, closeDate });\n\n// One deal per line: id, name, customer, stage, owner, amount, close date.\n// prettier-ignore\nexport const DEALS: Deal[] = [\n  deal('d-1048', 'Annual plan, 120 seats', 'Halcyon Freight', 'Negotiation', 'jonas', 24000, '2026-11-20'),\n  deal('d-1052', 'Business plan, 60 seats', 'Northwind Health', 'Proposal', 'maya', 18500, '2026-12-04'),\n  deal('d-1057', 'Team plan, 45 seats', 'Kestrel Analytics', 'Discovery', 'tom', 9600, '2027-01-15'),\n  deal('d-1041', 'Security add-on', 'Cobalt Security', 'Commit', 'jonas', 21000, '2026-11-14'),\n  deal('d-1060', 'Pilot, 20 seats', 'Atlas Robotics', 'Discovery', 'tom', 6400, '2026-12-18'),\n  deal('d-1044', 'Renewal, 35 seats', 'Juniper Legal', 'Negotiation', 'priya', 14200, '2026-11-28'),\n  deal('d-1050', 'Renewal with a discount', 'Marlow & Finch', 'Proposal', 'elena', 5880, '2026-12-10'),\n  deal('d-1055', 'Enterprise expansion', 'Tidewater Energy', 'Proposal', 'daniel', 42000, '2026-12-22'),\n  deal('d-1036', 'Analytics add-on', 'Northwind Health', 'Won', 'maya', 7200, '2026-10-30'),\n  deal('d-1032', 'Onboarding package', 'Halcyon Freight', 'Lost', 'jonas', 3500, '2026-10-21'),\n  deal('d-1058', 'Data export add-on', 'Kestrel Analytics', 'Negotiation', 'tom', 4800, '2026-11-25'),\n  deal('d-1062', 'Second region, 30 seats', 'Cobalt Security', 'Discovery', 'nina', 12600, '2027-02-05'),\n];\n"
    },
    {
      "path": "src/blocks/filter-popover/deals-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/deals-table.tsx",
      "content": "'use client';\n\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { Table } from '@/components/ui/wideset/table/Table';\n\nimport type { Sort, SortKey } from './conditions';\nimport { type Deal, OWNERS } from './data';\nimport { formatDate, formatUsd } from './format';\nimport { PersonAvatar } from './person-avatar';\n\nconst initialsOf = (name: string) =>\n  name\n    .split(' ')\n    .map((word) => word[0])\n    .join('');\n\n/**\n * The deals the filter keeps: what each one is and for whom, its stage, owner, close date and\n * amount. A header sorts by its column (again to turn it round), in step with the Sort popover.\n * Stages are lifecycle states, so the badges stay neutral. With nothing left, one row says so.\n */\nexport function DealsTable({\n  rows,\n  sort,\n  onSort,\n}: {\n  rows: Deal[];\n  sort: Sort;\n  onSort: (key: SortKey) => void;\n}) {\n  const sortable = (key: SortKey) => ({\n    sortable: true,\n    sortDirection: sort.key === key ? sort.direction : null,\n    onSort: () => onSort(key),\n  });\n\n  return (\n    <div className=\"ws-scrollbar overflow-x-auto\">\n      <Table size=\"md\" className=\"min-w-[56rem] table-fixed\">\n        <Table.Head>\n          <Table.Row>\n            <Table.Header {...sortable('name')}>Deal</Table.Header>\n            <Table.Header className=\"w-[11rem]\" {...sortable('customer')}>\n              Customer\n            </Table.Header>\n            <Table.Header className=\"w-[9rem]\" {...sortable('stage')}>\n              Stage\n            </Table.Header>\n            <Table.Header className=\"w-[11rem]\">Owner</Table.Header>\n            <Table.Header className=\"w-[9.5rem]\" {...sortable('closeDate')}>\n              Close date\n            </Table.Header>\n            <Table.Header align=\"right\" className=\"w-[8.5rem]\" {...sortable('amount')}>\n              Amount\n            </Table.Header>\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {rows.length === 0 ? (\n            <Table.Row>\n              <Table.Cell colSpan={6}>\n                <span className=\"text-ws-static-subtle\">No deals match these filters.</span>\n              </Table.Cell>\n            </Table.Row>\n          ) : (\n            rows.map((deal) => (\n              <Table.Row key={deal.id}>\n                <Table.Cell>\n                  <span className=\"text-ws-static-strong block truncate\">{deal.name}</span>\n                </Table.Cell>\n                <Table.Cell>\n                  <span className=\"block truncate\">{deal.customer}</span>\n                </Table.Cell>\n                <Table.Cell>\n                  <StatusBadge size=\"sm\">{deal.stage}</StatusBadge>\n                </Table.Cell>\n                <Table.Cell>\n                  <div className=\"gap-ws-5 flex items-center\">\n                    <PersonAvatar\n                      size=\"sm\"\n                      name={OWNERS[deal.owner]}\n                      initials={initialsOf(OWNERS[deal.owner])}\n                    />\n                    <span className=\"truncate\">{OWNERS[deal.owner]}</span>\n                  </div>\n                </Table.Cell>\n                <Table.Cell>\n                  <time dateTime={deal.closeDate} className=\"tabular-nums\">\n                    {formatDate(deal.closeDate)}\n                  </time>\n                </Table.Cell>\n                <Table.Cell align=\"right\">\n                  <span className=\"text-ws-static-strong tabular-nums\">\n                    {formatUsd(deal.amount)}\n                  </span>\n                </Table.Cell>\n              </Table.Row>\n            ))\n          )}\n        </Table.Body>\n      </Table>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/filter-popover.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/filter-popover.tsx",
      "content": "'use client';\n\nimport { RiAddLine, RiArrowDownSLine, RiFilter3Line } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Popup } from '@/components/ui/wideset/popup/Popup';\nimport { useRef, useState } from 'react';\n\nimport { ConditionRow } from './condition-row';\nimport { blank, type Condition, FIELD_IDS, type Filter, isComplete } from './conditions';\n\ntype FilterPopoverProps = {\n  /** The filter on the list now; the popover edits a copy of it. */\n  applied: Filter;\n  onApply: (filter: Filter) => void;\n  defaultOpen?: boolean;\n  /** The copy on screen the first time it opens, when that is not `applied` (a sample mid-edit). */\n  defaultDraft?: Filter;\n};\n\n/**\n * The filter builder, under the toolbar's Filter button. It edits a draft of the list's filter:\n * conditions as rows of field, test and value, one join word for all of them, Add condition under\n * the rows, and the footer's Clear all and Apply, the popover's one filled button. Apply hands\n * the draft's complete conditions to the list and closes; Esc or a click away drop it, and the next opening starts\n * from the filter on the list again. Focus lands on the popover itself, so it reads its name\n * before Tab walks the rows.\n */\nexport function FilterPopover({ applied, onApply, defaultOpen, defaultDraft }: FilterPopoverProps) {\n  const [open, setOpen] = useState(defaultOpen ?? false);\n  const [draft, setDraft] = useState(defaultDraft ?? applied);\n  const [added, setAdded] = useState<string>();\n  const surface = useRef<HTMLDivElement>(null);\n  const addButton = useRef<HTMLButtonElement>(null);\n\n  const setConditions = (conditions: Condition[]) => setDraft({ ...draft, conditions });\n  // A new condition starts on the first field not filtered yet.\n  const add = () => {\n    const used = draft.conditions.map((condition) => condition.field);\n    const condition = blank(FIELD_IDS.find((field) => !used.includes(field)) ?? 'stage');\n    setConditions([...draft.conditions, condition]);\n    setAdded(condition.id);\n  };\n\n  return (\n    <Popup\n      open={open}\n      onOpenChange={(next) => {\n        if (next) {\n          setDraft(applied);\n          setAdded(undefined);\n        }\n        setOpen(next);\n      }}\n    >\n      <Popup.Trigger asChild>\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n          <Button.Icon icon={RiFilter3Line} />\n          Filter\n          <Button.Icon icon={RiArrowDownSLine} />\n        </Button>\n      </Popup.Trigger>\n      <Popup.Container\n        ref={surface}\n        side=\"bottom\"\n        align=\"end\"\n        collisionPadding={16}\n        aria-label=\"Filter deals\"\n        className=\"ws-block-utility w-[44rem] max-w-[calc(100vw-2rem)]\"\n        onOpenAutoFocus={(event) => {\n          event.preventDefault();\n          surface.current?.focus();\n        }}\n      >\n        <Popup.Content contentClassName=\"gap-ws-5 flex flex-col\">\n          {draft.conditions.length === 0 && (\n            <p className=\"typography-body-md text-ws-static-subtle\">\n              No conditions yet. Add one to narrow the deals.\n            </p>\n          )}\n          {draft.conditions.map((condition, index) => (\n            <ConditionRow\n              key={condition.id}\n              condition={condition}\n              index={index}\n              join={draft.join}\n              onJoinChange={(join) => setDraft({ ...draft, join })}\n              onChange={(next) =>\n                setConditions(draft.conditions.map((c) => (c.id === next.id ? next : c)))\n              }\n              onRemove={() => {\n                setConditions(draft.conditions.filter((c) => c.id !== condition.id));\n                addButton.current?.focus();\n              }}\n              focusOnMount={condition.id === added}\n            />\n          ))}\n          <Button\n            ref={addButton}\n            variant=\"secondary\"\n            preset=\"ghost\"\n            size=\"sm\"\n            onClick={add}\n            className=\"self-start\"\n          >\n            <Button.Icon icon={RiAddLine} />\n            Add condition\n          </Button>\n        </Popup.Content>\n        <Popup.Footer className=\"justify-between\">\n          <Button\n            variant=\"secondary\"\n            preset=\"ghost\"\n            size=\"sm\"\n            disabled={draft.conditions.length === 0}\n            onClick={() => setConditions([])}\n          >\n            Clear all\n          </Button>\n          <Button\n            size=\"sm\"\n            onClick={() => {\n              // A condition left without a value narrows nothing: it is not kept.\n              onApply({ ...draft, conditions: draft.conditions.filter(isComplete) });\n              setOpen(false);\n            }}\n          >\n            Apply\n          </Button>\n        </Popup.Footer>\n      </Popup.Container>\n    </Popup>\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/format.ts",
      "content": "// One locale and currency for the whole screen; swap them for the user's.\nconst LOCALE = 'en-US';\n\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  maximumFractionDigits: 0,\n});\n// Days are calendar days (`2026-11-20`), parsed as UTC midnight: format them in UTC too.\nconst day = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'medium', timeZone: 'UTC' });\nconst monthDay = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\n/** `Proposal or Negotiation`, `Proposal, Negotiation, or Commit`. */\nconst either = new Intl.ListFormat(LOCALE, { type: 'disjunction' });\n\n/** $24,000: whole dollars, as deals are read. */\nexport const formatUsd = (value: number) => usd.format(value);\n/** Nov 20, 2026. */\nexport const formatDate = (iso: string) => day.format(new Date(iso));\n/** Nov 20: a day in a chip, where the year is this one or the next. */\nexport const formatMonthDay = (iso: string) => monthDay.format(new Date(iso));\nexport const formatEither = (items: string[]) => either.format(items);\n"
    },
    {
      "path": "src/blocks/filter-popover/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSearchLine, 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 { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useId, useState } from 'react';\n\nimport { ActiveFilters } from './active-filters';\nimport { APPLIED, applyFilter, compare, DRAFT, type Sort, type SortKey } from './conditions';\nimport { DEALS } from './data';\nimport { DealsTable } from './deals-table';\nimport { FilterPopover } from './filter-popover';\nimport { PageHeader } from './page-header';\nimport { DealsSidebar } from './sidebar';\nimport { SortPopover } from './sort-popover';\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/** The direction a column sorts in first: soonest, largest, A to Z, earliest stage. */\nconst FIRST: Record<SortKey, Sort['direction']> = {\n  closeDate: 'asc',\n  amount: 'desc',\n  name: 'asc',\n  customer: 'asc',\n  stage: 'asc',\n};\nconst OPPOSITE = { asc: 'desc', desc: 'asc' } as const;\n\n/**\n * Filter popover (Inset direction): building a filter over the deals list, open on load. The\n * toolbar holds search, then Filter and Sort at its end; the filter on the list shows as chips\n * between the toolbar and the table. The popover is the builder: rows of field, test and value\n * joined by one word, applied together. Sort is its own small popover beside it.\n */\nexport default function FilterPopoverBlock() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const [query, setQuery] = useState('');\n  const [filter, setFilter] = useState(APPLIED);\n  const [sort, setSort] = useState<Sort>({ key: 'closeDate', direction: 'asc' });\n\n  const words = query.trim().toLowerCase();\n  const rows = applyFilter(DEALS, filter)\n    .filter((deal) => `${deal.name} ${deal.customer}`.toLowerCase().includes(words))\n    .sort(compare(sort));\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <DealsSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n      <AppShell.Main>\n        <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n          {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow it. */}\n          <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n            <IconButton\n              icon={RiSideBarLine}\n              variant=\"secondary\"\n              preset=\"ghost\"\n              size=\"sm\"\n              iconClassName=\"text-ws-static-subtle size-ws-9\"\n              aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n              aria-expanded={!collapsed}\n              aria-controls={sidebarId}\n              onClick={() => setCollapsed(!collapsed)}\n              className=\"-ml-ws-5\"\n            />\n            <Breadcrumbs separator=\"arrow\">\n              <Breadcrumbs.Item>Deals</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          <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n            <PageHeader />\n\n            <section aria-label=\"Deals\" className=\"gap-ws-9 flex flex-col\">\n              <div className=\"gap-ws-5 flex flex-wrap items-center\">\n                <TextInput\n                  size=\"sm\"\n                  className=\"w-[18rem] max-w-full\"\n                  value={query}\n                  onChange={(event) => setQuery(event.target.value)}\n                >\n                  <TextInput.Prefix inner>\n                    <TextInput.Icon icon={RiSearchLine} />\n                  </TextInput.Prefix>\n                  <TextInput.Input\n                    type=\"search\"\n                    placeholder=\"Search by deal or customer\"\n                    aria-label=\"Search deals\"\n                  />\n                  <TextInput.Suffix inner>\n                    <TextInput.ClearButton />\n                  </TextInput.Suffix>\n                </TextInput>\n                <div className=\"gap-ws-5 ml-auto flex items-center\">\n                  <FilterPopover\n                    applied={filter}\n                    onApply={setFilter}\n                    defaultOpen\n                    defaultDraft={DRAFT}\n                  />\n                  <SortPopover sort={sort} onSortChange={setSort} />\n                </div>\n              </div>\n              <ActiveFilters filter={filter} onChange={setFilter} />\n              <DealsTable\n                rows={rows}\n                sort={sort}\n                // A second click on the sorted column turns it round.\n                onSort={(key) =>\n                  setSort({\n                    key,\n                    direction: sort.key === key ? OPPOSITE[sort.direction] : FIRST[key],\n                  })\n                }\n              />\n            </section>\n          </div>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the actions on the right); no PageHeader in Wideset.\nimport { RiAddLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\n/** The page's title, one line saying what the list holds, and its actions. */\nexport function PageHeader() {\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\">Deals</h1>\n        <p className=\"typography-body-md text-ws-static-subtle\">\n          Every deal in Lumen Studio’s pipeline, open and closed.\n        </p>\n      </div>\n      <div className=\"gap-ws-5 flex items-center\">\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n          Export\n        </Button>\n        <Button size=\"sm\">\n          <Button.Icon icon={RiAddLine} />\n          New deal\n        </Button>\n      </div>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/filter-popover/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/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/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAA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S2SfHKhWrqyLjsJIHD+mfuP3rduZ7JqO37TjY+WDWxfWu2tkhPUJCx8ONDOEa40WLQybFwafZ2n3fsqY1B49G9voT+mq//2Q==',\n};\n"
    },
    {
      "path": "src/blocks/filter-popover/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/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/filter-popover/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/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 DealsSidebar(props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>) {\n  const [active, setActive] = useState('deals');\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/filter-popover/sort-popover.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/filter-popover/sort-popover.tsx",
      "content": "'use client';\n\nimport { RiArrowDownSLine, RiArrowUpDownLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Popup } from '@/components/ui/wideset/popup/Popup';\nimport { SegmentedControl } from '@/components/ui/wideset/segmented-control/SegmentedControl';\nimport { Select } from '@/components/ui/wideset/select/Select';\nimport { useId } from 'react';\n\nimport { type Sort, type SortKey, SORTS } from './conditions';\n\nconst SORT_OPTIONS = Object.entries(SORTS).map(([value, { label }]) => ({ value, label }));\n\n/**\n * The sort, in a small popover beside Filter: the field in a select, the direction as two\n * segments named in the field's own words (earliest first, largest first, A to Z). It changes\n * the list as it is set, so it has no footer to confirm.\n */\nexport function SortPopover({\n  sort,\n  onSortChange,\n}: {\n  sort: Sort;\n  onSortChange: (sort: Sort) => void;\n}) {\n  const labelId = useId();\n  const directions = SORTS[sort.key];\n\n  return (\n    <Popup>\n      <Popup.Trigger asChild>\n        <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n          <Button.Icon icon={RiArrowUpDownLine} />\n          Sort\n          <Button.Icon icon={RiArrowDownSLine} />\n        </Button>\n      </Popup.Trigger>\n      <Popup.Container side=\"bottom\" align=\"end\" aria-label=\"Sort deals\" className=\"ws-block-utility w-[20rem]\">\n        <Popup.Content contentClassName=\"gap-ws-5 flex flex-col\">\n          <span id={labelId} className=\"typography-label-strong-sm text-ws-static-strong\">\n            Sort by\n          </span>\n          <Select\n            size=\"sm\"\n            preset=\"border\"\n            aria-labelledby={labelId}\n            options={SORT_OPTIONS}\n            value={sort.key}\n            onValueChange={(key) => onSortChange({ ...sort, key: key as SortKey })}\n            className=\"w-full\"\n          />\n          <SegmentedControl\n            size=\"sm\"\n            variant=\"fullWidth\"\n            aria-label=\"Direction\"\n            value={sort.direction}\n            onValueChange={(direction) =>\n              direction && onSortChange({ ...sort, direction: direction as Sort['direction'] })\n            }\n          >\n            <SegmentedControl.Item value=\"asc\">{directions.asc}</SegmentedControl.Item>\n            <SegmentedControl.Item value=\"desc\">{directions.desc}</SegmentedControl.Item>\n          </SegmentedControl>\n        </Popup.Content>\n      </Popup.Container>\n    </Popup>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
