@nadicodeai/ui 12.1.209 → 12.1.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/AGENTS.md +17 -1
  2. package/dist/components/account-menu.d.ts +3 -3
  3. package/dist/components/account-menu.d.ts.map +1 -1
  4. package/dist/components/account-menu.js +7 -5
  5. package/dist/components/activity-feed.d.ts +4 -2
  6. package/dist/components/activity-feed.d.ts.map +1 -1
  7. package/dist/components/activity-feed.js +10 -3
  8. package/dist/components/board.d.ts +45 -0
  9. package/dist/components/board.d.ts.map +1 -0
  10. package/dist/components/board.js +35 -0
  11. package/dist/components/breadcrumb.d.ts +3 -3
  12. package/dist/components/breadcrumb.d.ts.map +1 -1
  13. package/dist/components/button.d.ts +6 -1
  14. package/dist/components/button.d.ts.map +1 -1
  15. package/dist/components/button.js +5 -2
  16. package/dist/components/card-row.js +1 -1
  17. package/dist/components/chart-card.d.ts +19 -6
  18. package/dist/components/chart-card.d.ts.map +1 -1
  19. package/dist/components/chart-card.js +17 -7
  20. package/dist/components/collection-page.d.ts +4 -4
  21. package/dist/components/collection-page.d.ts.map +1 -1
  22. package/dist/components/collection-page.js +4 -8
  23. package/dist/components/column-foot.d.ts +53 -0
  24. package/dist/components/column-foot.d.ts.map +1 -0
  25. package/dist/components/column-foot.js +32 -0
  26. package/dist/components/conversation-card.d.ts +38 -0
  27. package/dist/components/conversation-card.d.ts.map +1 -0
  28. package/dist/components/conversation-card.js +19 -0
  29. package/dist/components/data-table.d.ts +26 -21
  30. package/dist/components/data-table.d.ts.map +1 -1
  31. package/dist/components/data-table.js +34 -22
  32. package/dist/components/entry-page.d.ts +55 -0
  33. package/dist/components/entry-page.d.ts.map +1 -0
  34. package/dist/components/entry-page.js +41 -0
  35. package/dist/components/entry-scene.d.ts +1 -1
  36. package/dist/components/entry-scene.js +1 -1
  37. package/dist/components/filter-toolbar.d.ts +43 -0
  38. package/dist/components/filter-toolbar.d.ts.map +1 -0
  39. package/dist/components/filter-toolbar.js +44 -0
  40. package/dist/components/hive-scene.d.ts +4 -1
  41. package/dist/components/hive-scene.d.ts.map +1 -1
  42. package/dist/components/hive-scene.js +6 -1
  43. package/dist/components/kpi-card.d.ts +10 -3
  44. package/dist/components/kpi-card.d.ts.map +1 -1
  45. package/dist/components/kpi-card.js +11 -3
  46. package/dist/components/message-notice.d.ts +3 -3
  47. package/dist/components/message-notice.js +1 -1
  48. package/dist/components/notice-banner.d.ts +1 -1
  49. package/dist/components/notice-banner.js +1 -1
  50. package/dist/components/object-workspace.d.ts +25 -5
  51. package/dist/components/object-workspace.d.ts.map +1 -1
  52. package/dist/components/object-workspace.js +30 -7
  53. package/dist/components/page-actions.d.ts +0 -2
  54. package/dist/components/page-actions.d.ts.map +1 -1
  55. package/dist/components/page-actions.js +1 -5
  56. package/dist/components/page-frame.d.ts +38 -0
  57. package/dist/components/page-frame.d.ts.map +1 -0
  58. package/dist/components/page-frame.js +29 -0
  59. package/dist/components/place-count.d.ts +20 -0
  60. package/dist/components/place-count.d.ts.map +1 -0
  61. package/dist/components/place-count.js +16 -0
  62. package/dist/components/plan-card.d.ts +49 -0
  63. package/dist/components/plan-card.d.ts.map +1 -0
  64. package/dist/components/plan-card.js +22 -0
  65. package/dist/components/product-band.d.ts +20 -0
  66. package/dist/components/product-band.d.ts.map +1 -0
  67. package/dist/components/product-band.js +23 -0
  68. package/dist/components/product-shell.d.ts +314 -44
  69. package/dist/components/product-shell.d.ts.map +1 -1
  70. package/dist/components/product-shell.js +465 -36
  71. package/dist/components/reading-column.d.ts +1 -1
  72. package/dist/components/reading-column.js +1 -1
  73. package/dist/components/record-list.d.ts +19 -3
  74. package/dist/components/record-list.d.ts.map +1 -1
  75. package/dist/components/record-list.js +23 -8
  76. package/dist/components/record-sheet.d.ts +5 -3
  77. package/dist/components/record-sheet.d.ts.map +1 -1
  78. package/dist/components/record-sheet.js +5 -5
  79. package/dist/components/record-time.d.ts +6 -2
  80. package/dist/components/record-time.d.ts.map +1 -1
  81. package/dist/components/record-time.js +8 -5
  82. package/dist/components/row-edit-form.d.ts +1 -1
  83. package/dist/components/row-edit-form.js +1 -1
  84. package/dist/components/scope-switcher.d.ts +3 -1
  85. package/dist/components/scope-switcher.d.ts.map +1 -1
  86. package/dist/components/scope-switcher.js +3 -6
  87. package/dist/components/settings-page.d.ts +3 -3
  88. package/dist/components/settings-page.js +3 -3
  89. package/dist/components/settings-section.d.ts +18 -4
  90. package/dist/components/settings-section.d.ts.map +1 -1
  91. package/dist/components/settings-section.js +12 -4
  92. package/dist/components/sidebar-sections.d.ts.map +1 -1
  93. package/dist/components/sidebar-sections.js +4 -4
  94. package/dist/components/sidebar.d.ts +27 -5
  95. package/dist/components/sidebar.d.ts.map +1 -1
  96. package/dist/components/sidebar.js +55 -23
  97. package/dist/components/table-card.d.ts.map +1 -1
  98. package/dist/components/table-card.js +2 -1
  99. package/dist/components/toast.d.ts +10 -1
  100. package/dist/components/toast.d.ts.map +1 -1
  101. package/dist/components/toast.js +24 -1
  102. package/dist/index.d.ts +5 -0
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/index.js +5 -0
  105. package/dist/internal/button-classes.d.ts +2 -0
  106. package/dist/internal/button-classes.d.ts.map +1 -1
  107. package/dist/internal/button-classes.js +54 -46
  108. package/dist/internal/card-actions.d.ts +3 -0
  109. package/dist/internal/card-actions.d.ts.map +1 -0
  110. package/dist/internal/card-actions.js +4 -0
  111. package/dist/internal/footer-strip.d.ts.map +1 -1
  112. package/dist/internal/footer-strip.js +3 -1
  113. package/dist/lib/product-shell.d.ts +20 -0
  114. package/dist/lib/product-shell.d.ts.map +1 -0
  115. package/dist/lib/product-shell.js +19 -0
  116. package/dist/showcase/specimens/compositions.d.ts +15 -0
  117. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  118. package/dist/showcase/specimens/compositions.js +70 -0
  119. package/dist/showcase/specimens/index.d.ts +11 -0
  120. package/dist/showcase/specimens/index.d.ts.map +1 -1
  121. package/dist/showcase/specimens/navigation.d.ts +4 -0
  122. package/dist/showcase/specimens/navigation.d.ts.map +1 -1
  123. package/dist/showcase/specimens/navigation.js +26 -1
  124. package/dist/showcase/usage.generated.d.ts +1 -1
  125. package/dist/showcase/usage.generated.d.ts.map +1 -1
  126. package/dist/showcase/usage.generated.js +161 -40
  127. package/dist/styles/components.css +12 -0
  128. package/package.json +6 -2
@@ -97,6 +97,15 @@ export type RecordListFooter = {
97
97
  };
98
98
  /** One muted line about the whole list, with Learn more and one secondary action, in a strip of its own under the count and the paging. */
99
99
  note?: CollectionNote;
100
+ /**
101
+ * A long list read in part: its first `shows` records, then the footer's outline button that
102
+ * shows the rest ("Show the full list") and, once they show, fewer again ("Show fewer sessions").
103
+ */
104
+ more?: {
105
+ shows: number;
106
+ showAllLabel: string;
107
+ showFewerLabel: string;
108
+ };
100
109
  };
101
110
  /**
102
111
  * The records' commands: what each record can do now, in the product's order, and the name of its
@@ -213,6 +222,13 @@ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord>
213
222
  commandsSize?: number;
214
223
  };
215
224
  export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey> = RecordListProps<TRecord> extends infer TProps ? TProps extends unknown ? Omit<TProps, Key> : never : never;
225
+ /**
226
+ * What stands in a RecordList's place while its page reads the records: its card and `rows` of the
227
+ * loading rows the list draws itself, with no words.
228
+ */
229
+ export declare function RecordListSkeleton({ rows }: {
230
+ rows?: number;
231
+ }): import("react").JSX.Element;
216
232
  /**
217
233
  * Entity rows: objects a person opens or acts on, one line each on one resting card: the
218
234
  * identity mark and name over what it is, then its attributes as data, one per column: a few
@@ -225,13 +241,13 @@ export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey>
225
241
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
226
242
  * “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
227
243
  * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item` (nadicode decision).
228
- * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
244
+ * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A long list a person reads in part, such as their signed-in sessions, takes `footer.more`: its first `shows` records, then an outline button at the footer's end that shows the rest and, once they show, fewer again, its `aria-expanded` saying which; the page never draws that button under the list itself (nadicode decision). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
229
245
  * “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
230
246
  * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
231
247
  * “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
232
248
  * Ours: at most two buttons stand on a row, then the three dots, all 32 px, as the commands rule above draws them (owner, 2026-11-06).
233
249
  * “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
234
- * Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision).
250
+ * Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words (nadicode decision).
235
251
  * @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
236
252
  * Ours: the name is the record's own and the labels around it are sentence case, not Title Case (nadicode decision).
237
253
  * “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity)
@@ -240,7 +256,7 @@ export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey>
240
256
  * “Render — in cells where a value is unknown or not applicable. Don’t substitute N/A, null, or an empty string.” (https://vercel.com/geist/table)
241
257
  * Ours: a list is the records' attributes shown as data, not written as text. Its columns are the few attributes a person compares across the records to decide what to do with one (a deployment's status, environment, commit, branch and time), chosen from that job, never from what there is to say about a record. A cell holds the value alone, in the same shape down its column: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. Never a sentence that restates the column ("Through Partner Alpha", "Joins as a company"), and never a word in place of a missing value ("Not available", "No Partner"): `of` returns nothing and the list draws the dash, and `nadicodeai/record-fact-no-stand-in` refuses the word given by `??`, a presence check or a guard clause. A known zero stays the count ("0 Agents") and a complete report that found nothing keeps its word ("None"), as `TableValue` says; a word that names a kind of its own, a glossary term such as "Direct customer", is a value. A fact's `label`, the status's and the time's are the nouns the headings would be ("Partner", "State", "Asked"). The name's line under it is the one place a record is described in words, and the time keeps its verb's sentence ("Updated 3h ago"), as the approved canvas rules. Every string is the product's: `label` names the list, a time's `phrase` writes its sentence, `missing` is what a screen reader hears behind a dash, `moreLabel` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the exception's word ("Needs attention", "Can't sign in"), never "Active" on every row, and never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step (nadicode decision).
242
258
  * @access “Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton)
243
- * Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column's is `commandsHeader`, and empty without one, since its controls name themselves, never the list's name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu's first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision).
259
+ * Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column's is `commandsHeader`, and empty without one, since its controls name themselves, never the list's name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu's first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision). `RecordListSkeleton`, which a page shows while it reads the records, is busy and carries no words.
244
260
  * “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity)
245
261
  * Ours: each box is named by `select.label`, which reads "Select {record}" (nadicode decision).
246
262
  */
@@ -1 +1 @@
1
- {"version":3,"file":"record-list.d.ts","sourceRoot":"","sources":["../../src/components/record-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAI5F,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAClG,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAE,KAAK,UAAU,EAAsC,MAAM,8BAA8B,CAAC;AAInG,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAE,KAAK,UAAU,EAAqC,MAAM,wBAAwB,CAAC;AAG5F,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG;IACvB,0FAA0F;IAC1F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AW,CAAC,EAAE,SAAS,CAAC;QACxB,6GAA6G;QAC7G,OAAO,CAAC,EAAE,WAAW,CAAC;KACvB,CAAC;IACF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,iFAAiF;IACjF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;IAC/C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,OAAO,EAAE,GAAG,SAAS,WAAW,IAC5E,eAAe,CAAC,OAAO,CAAC,SAAS,MAAM,MAAM,GACzC,MAAM,SAAS,OAAO,GACpB,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GACjB,KAAK,GACP,KAAK,CAAC;AAwOZ;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAUjE;AA0JD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,UAAU,CAAC,OAAO,SAAS,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,sCAmElF"}
@@ -1,7 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { createContext, useContext, useId } from "react";
3
+ import { createContext, useContext, useId, useState, } from "react";
4
4
  import { ActionMenu } from "./action-menu.js";
5
+ import { Button } from "./button.js";
5
6
  import { Checkbox } from "./checkbox.js";
6
7
  import { EntityTable, } from "./data-table.js";
7
8
  import { EmptyState } from "./empty-state.js";
@@ -173,8 +174,18 @@ function CommandsCell({ row }) {
173
174
  return null;
174
175
  return (_jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsxs(WideOnly, { children: [buttons.length > 0 ? (_jsx("div", { className: "flex min-w-0 justify-end gap-2 *:max-w-full *:min-w-0 *:shrink [&>*>span:not([data-icon])]:truncate", children: _jsx(RowCommandButtons, { arm: arm, commands: buttons }) })) : null, state ? _jsx(RowMessageActions, { state: state }) : null] }), menu] }));
175
176
  }
177
+ function LoadingRows({ rows }) {
178
+ return Array.from({ length: rows }, (_, index) => (_jsxs("div", { className: "flex items-center gap-4 px-2 py-4", children: [_jsx(Skeleton, { className: "shrink-0", height: 32, width: 32 }), _jsxs("div", { className: "grid min-w-0 gap-2", children: [_jsx(Skeleton, { className: "max-w-full", height: 16, width: 160 }), _jsx(Skeleton, { className: "max-w-full", height: 16, width: 224 })] }), _jsx(Skeleton, { className: "ml-auto", height: 16, width: 92 })] }, index)));
179
+ }
176
180
  function LoadingRecords({ label }) {
177
- return (_jsx("div", { "aria-busy": "true", "aria-label": label, className: "divide-y divide-border", role: "status", children: Array.from({ length: 3 }, (_, index) => (_jsxs("div", { className: "flex items-center gap-4 px-2 py-4", children: [_jsx(Skeleton, { className: "shrink-0", height: 32, width: 32 }), _jsxs("div", { className: "grid min-w-0 gap-2", children: [_jsx(Skeleton, { className: "max-w-full", height: 16, width: 160 }), _jsx(Skeleton, { className: "max-w-full", height: 16, width: 224 })] }), _jsx(Skeleton, { className: "ml-auto", height: 16, width: 92 })] }, index))) }));
181
+ return (_jsx("div", { "aria-busy": "true", "aria-label": label, className: "divide-y divide-border", role: "status", children: _jsx(LoadingRows, { rows: 3 }) }));
182
+ }
183
+ /**
184
+ * What stands in a RecordList's place while its page reads the records: its card and `rows` of the
185
+ * loading rows the list draws itself, with no words.
186
+ */
187
+ export function RecordListSkeleton({ rows = 3 }) {
188
+ return (_jsx("div", { "aria-busy": "true", className: "min-w-0", "data-slot": "record-list-skeleton", children: _jsx(TableCard, { children: _jsx("div", { className: "divide-y divide-border", children: _jsx(LoadingRows, { rows: rows }) }) }) }));
178
189
  }
179
190
  function Pages({ pages }) {
180
191
  const side = (label, onClick) => ({
@@ -301,13 +312,13 @@ function RecordRows(props) {
301
312
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
302
313
  * “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
303
314
  * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item` (nadicode decision).
304
- * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
315
+ * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A long list a person reads in part, such as their signed-in sessions, takes `footer.more`: its first `shows` records, then an outline button at the footer's end that shows the rest and, once they show, fewer again, its `aria-expanded` saying which; the page never draws that button under the list itself (nadicode decision). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
305
316
  * “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
306
317
  * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
307
318
  * “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
308
319
  * Ours: at most two buttons stand on a row, then the three dots, all 32 px, as the commands rule above draws them (owner, 2026-11-06).
309
320
  * “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
310
- * Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision).
321
+ * Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words (nadicode decision).
311
322
  * @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
312
323
  * Ours: the name is the record's own and the labels around it are sentence case, not Title Case (nadicode decision).
313
324
  * “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity)
@@ -316,15 +327,19 @@ function RecordRows(props) {
316
327
  * “Render — in cells where a value is unknown or not applicable. Don’t substitute N/A, null, or an empty string.” (https://vercel.com/geist/table)
317
328
  * Ours: a list is the records' attributes shown as data, not written as text. Its columns are the few attributes a person compares across the records to decide what to do with one (a deployment's status, environment, commit, branch and time), chosen from that job, never from what there is to say about a record. A cell holds the value alone, in the same shape down its column: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. Never a sentence that restates the column ("Through Partner Alpha", "Joins as a company"), and never a word in place of a missing value ("Not available", "No Partner"): `of` returns nothing and the list draws the dash, and `nadicodeai/record-fact-no-stand-in` refuses the word given by `??`, a presence check or a guard clause. A known zero stays the count ("0 Agents") and a complete report that found nothing keeps its word ("None"), as `TableValue` says; a word that names a kind of its own, a glossary term such as "Direct customer", is a value. A fact's `label`, the status's and the time's are the nouns the headings would be ("Partner", "State", "Asked"). The name's line under it is the one place a record is described in words, and the time keeps its verb's sentence ("Updated 3h ago"), as the approved canvas rules. Every string is the product's: `label` names the list, a time's `phrase` writes its sentence, `missing` is what a screen reader hears behind a dash, `moreLabel` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the exception's word ("Needs attention", "Can't sign in"), never "Active" on every row, and never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step (nadicode decision).
318
329
  * @access “Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton)
319
- * Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column's is `commandsHeader`, and empty without one, since its controls name themselves, never the list's name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu's first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision).
330
+ * Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column's is `commandsHeader`, and empty without one, since its controls name themselves, never the list's name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu's first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision). `RecordListSkeleton`, which a page shows while it reads the records, is busy and carries no words.
320
331
  * “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity)
321
332
  * Ours: each box is named by `select.label`, which reads "Select {record}" (nadicode decision).
322
333
  */
323
334
  export function RecordList(props) {
324
- const { records, heading, footer, select } = props;
335
+ const { heading, footer, select } = props;
325
336
  const { arm, dialog } = useCommandRunner();
337
+ const [allShown, setAllShown] = useState(false);
338
+ const more = footer?.more;
339
+ const cut = more !== undefined && props.records !== undefined && props.records.length > more.shows;
340
+ const records = cut && !allShown ? props.records?.slice(0, more.shows) : props.records;
326
341
  const loading = !props.failed && records === undefined;
327
- const chosenRecords = records?.filter((record) => select?.checked(record) === true) ?? [];
342
+ const chosenRecords = props.records?.filter((record) => select?.checked(record) === true) ?? [];
328
343
  const chosen = select && chosenRecords.length > 0 ? select.chosen(chosenRecords) : undefined;
329
344
  const pages = footer?.pages?.onPrevious === undefined && footer?.pages?.onNext === undefined
330
345
  ? undefined
@@ -347,5 +362,5 @@ export function RecordList(props) {
347
362
  else {
348
363
  body = _jsx(RecordRows, { ...props, records: records });
349
364
  }
350
- return (_jsxs(_Fragment, { children: [_jsx(TableCard, { actions: heading?.actions, footer: chosen || pages ? (_jsxs(_Fragment, { children: [chosen ? _jsx(PageCommandButton, { command: chosen.command, variant: "outline" }) : null, pages ? _jsx(Pages, { pages: pages }) : null] })) : undefined, footerHint: chosen?.count ?? footer?.count, note: footer?.note, description: heading?.description, status: heading?.status, title: heading?.title, children: _jsx(ShownList.Provider, { value: props, children: _jsx(RowCommandsArm.Provider, { value: arm, children: _jsx(SkeletonRegion, { busy: loading, children: body }) }) }) }), dialog] }));
365
+ return (_jsxs(_Fragment, { children: [_jsx(TableCard, { actions: heading?.actions, footer: chosen || pages || cut ? (_jsxs(_Fragment, { children: [chosen ? _jsx(PageCommandButton, { command: chosen.command, variant: "outline" }) : null, pages ? _jsx(Pages, { pages: pages }) : null, cut ? (_jsx(Button, { "aria-expanded": allShown, onClick: () => setAllShown((shown) => !shown), type: "button", variant: "outline", children: allShown ? more.showFewerLabel : more.showAllLabel })) : null] })) : undefined, footerHint: chosen?.count ?? footer?.count, note: footer?.note, description: heading?.description, status: heading?.status, title: heading?.title, children: _jsx(ShownList.Provider, { value: props, children: _jsx(RowCommandsArm.Provider, { value: arm, children: _jsx(SkeletonRegion, { busy: loading, children: body }) }) }) }), dialog] }));
351
366
  }
@@ -28,6 +28,8 @@ export type RecordSheetProps<THeld extends RowData = never> = {
28
28
  * with its `heading`, whose actions add one, and each row's commands.
29
29
  */
30
30
  held?: RecordListProps<THeld>;
31
+ /** A second list of what the record is tied to, under the records it holds, such as which Agents use an app: a `RecordList` with its own heading. */
32
+ children?: ReactNode;
31
33
  /** The record's setup in numbered steps, in the body, in place of its facts: connecting an app. */
32
34
  steps?: StepCardsProps;
33
35
  /** The way to the record's owner: "Open Beta Studio". */
@@ -39,11 +41,11 @@ export type RecordSheetProps<THeld extends RowData = never> = {
39
41
  * One record from a list, looked at in a sheet at the right edge, then back to the list.
40
42
  *
41
43
  * @family Compositions
42
- * @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`).
44
+ * @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`), and the Agents that use the app, each with its switch (`children`).
43
45
  * @instead A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own beyond the records it holds has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.
44
- * @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
46
+ * @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands, then any second list; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
45
47
  * @words The title is the record's own name, as its row shows it. The footer's command names where it goes: "Open Beta Studio".
46
48
  * @access A dialog named by its title, not `modal` while it is only read: no scrim, and focus stays inside it; `modal`, with the scrim, while it holds records or a setup. Escape and Close close it. Focus returns to the row it opened from (`finalFocus`) after every close but a mouse, touch or pen one, as `Sheet` does by default; a caller that passes its own `finalFocus` decides. The payload is a read-only text area named by its label.
47
49
  */
48
- export declare function RecordSheet<THeld extends RowData = never>({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, steps, footer, finalFocus, }: RecordSheetProps<THeld>): import("react").JSX.Element;
50
+ export declare function RecordSheet<THeld extends RowData = never>({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, children, steps, footer, finalFocus, }: RecordSheetProps<THeld>): import("react").JSX.Element;
49
51
  //# sourceMappingURL=record-sheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-sheet.d.ts","sourceRoot":"","sources":["../../src/components/record-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAEL,YAAY,EAKb,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,OAAO,GAAG,KAAK,IAAI;IAC5D,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,qDAAqD;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAC7B,kFAAkF;IAClF,IAAI,CAAC,EAAE;QAAE,KAAK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Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetT
12
12
  * One record from a list, looked at in a sheet at the right edge, then back to the list.
13
13
  *
14
14
  * @family Compositions
15
- * @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`).
15
+ * @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`), and the Agents that use the app, each with its switch (`children`).
16
16
  * @instead A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own beyond the records it holds has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.
17
- * @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
17
+ * @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands, then any second list; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
18
18
  * @words The title is the record's own name, as its row shows it. The footer's command names where it goes: "Open Beta Studio".
19
19
  * @access A dialog named by its title, not `modal` while it is only read: no scrim, and focus stays inside it; `modal`, with the scrim, while it holds records or a setup. Escape and Close close it. Focus returns to the row it opened from (`finalFocus`) after every close but a mouse, touch or pen one, as `Sheet` does by default; a caller that passes its own `finalFocus` decides. The payload is a read-only text area named by its label.
20
20
  */
21
- export function RecordSheet({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, steps, footer, finalFocus, }) {
22
- const managed = held !== undefined || steps !== undefined;
23
- return (_jsx(Sheet, { modal: managed, onOpenChange: onOpenChange, open: open, children: _jsxs(SheetContent, { className: cn("max-sm:data-[side=right]:left-nadicode-sm max-sm:data-[side=right]:w-auto data-[side=right]:sm:w-[420px] data-[side=right]:sm:max-w-[calc(100%-var(--nc-lg))]", managed && "data-[side=right]:lg:w-[640px]"), closeLabel: closeLabel, finalFocus: finalFocus, side: "right", children: [_jsxs(SheetHeader, { className: "flex-row items-center gap-nadicode-sm pr-12", children: [mark ? _jsx(IdentityMark, { ...mark, size: 40 }) : null, _jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx(SheetTitle, { className: "wrap-break-word", children: title }), description ? _jsx(SheetDescription, { children: description }) : null] })] }), _jsxs("div", { className: "grid min-h-0 flex-1 grid-cols-[minmax(0,1fr)] content-start gap-nadicode-md overflow-y-auto px-nadicode-lg pb-nadicode-lg", "data-slot": "record-sheet-body", children: [facts.length > 0 ? _jsx(ObjectFacts, { facts: facts }) : null, steps ? _jsx(StepCards, { ...steps }) : null, code ? (_jsx(CodeBlock, { code: code.value, copiedLabel: code.copiedLabel, copyFailedLabel: code.copyFailedLabel, copyLabel: code.copyLabel, label: code.label })) : null, held ? _jsx(RecordList, { ...held }) : null] }), footer ? (_jsx(SheetFooter, { className: "flex-row justify-end", "data-slot": "record-sheet-footer", children: _jsx(PageCommandButton, { command: footer, variant: "outline" }) })) : null] }) }));
21
+ export function RecordSheet({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, children, steps, footer, finalFocus, }) {
22
+ const managed = held !== undefined || steps !== undefined || Boolean(children);
23
+ return (_jsx(Sheet, { modal: managed, onOpenChange: onOpenChange, open: open, children: _jsxs(SheetContent, { className: cn("max-sm:data-[side=right]:left-nadicode-sm max-sm:data-[side=right]:w-auto data-[side=right]:sm:w-[420px] data-[side=right]:sm:max-w-[calc(100%-var(--nc-lg))]", managed && "data-[side=right]:lg:w-[640px]"), closeLabel: closeLabel, finalFocus: finalFocus, side: "right", children: [_jsxs(SheetHeader, { className: "flex-row items-center gap-nadicode-sm pr-12", children: [mark ? _jsx(IdentityMark, { ...mark, size: 40 }) : null, _jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx(SheetTitle, { className: "wrap-break-word", children: title }), description ? _jsx(SheetDescription, { children: description }) : null] })] }), _jsxs("div", { className: "grid min-h-0 flex-1 auto-rows-max grid-cols-[minmax(0,1fr)] content-start gap-nadicode-md overflow-y-auto px-nadicode-lg pb-nadicode-lg", "data-slot": "record-sheet-body", children: [facts.length > 0 ? _jsx(ObjectFacts, { facts: facts }) : null, steps ? _jsx(StepCards, { ...steps }) : null, code ? (_jsx(CodeBlock, { code: code.value, copiedLabel: code.copiedLabel, copyFailedLabel: code.copyFailedLabel, copyLabel: code.copyLabel, label: code.label })) : null, held ? _jsx(RecordList, { ...held }) : null, children] }), footer ? (_jsx(SheetFooter, { className: "flex-row justify-end", "data-slot": "record-sheet-footer", children: _jsx(PageCommandButton, { command: footer, variant: "outline" }) })) : null] }) }));
24
24
  }
@@ -30,6 +30,10 @@ export type RecordTimeProps = {
30
30
  /** The time of day in the viewer's zone, tabular: "3:05 PM". */
31
31
  | {
32
32
  mode: "clock";
33
+ }
34
+ /** The day in the viewer's zone, with its year: "Sep 19, 2026". */
35
+ | {
36
+ mode: "day";
33
37
  });
34
38
  /**
35
39
  * The moment the server drew the page, for every `RecordTime` below: the server writes each relative
@@ -49,11 +53,11 @@ export declare function recordDate(at: Date | number | string | null | undefined
49
53
  *
50
54
  * @family Data
51
55
  * @when "Use `<RelativeTimeCard>` anywhere a recent timestamp appears in scannable surfaces: `Table` cells, `Entity` rows, deploy lists, activity feeds." (https://vercel.com/geist/relative-time-card)
52
- * Ours: `RelativeTimeCard` is `RecordTime`: the moment a record was made, changed or last ran, in its row or its facts, and the time of each event in an ActivityFeed or a RunTimeline step (`mode="clock"`).
56
+ * Ours: `RelativeTimeCard` is `RecordTime`: the moment a record was made, changed or last ran, in its row or its facts, and the time of each event in an ActivityFeed or a RunTimeline step (`mode="clock"`). The day a moment fell on, where the sentence already says the time or the day is the fact, such as a reading's day beside its clock when it was read on an earlier day, is `mode="day"` (nadicode decision).
53
57
  * @instead "For a static date in body prose past 7 days, render `Mar 14, 2026` directly." (https://vercel.com/geist/relative-time-card)
54
58
  * Ours: a date a person picks is a Calendar; a span of days a page reads is a DateRangeControl; a run's duration is a fact written by the product (*Took 4 min*).
55
59
  * @behaviour "The hover card already shows absolute UTC and local time, so don’t duplicate that copy elsewhere on the row." (https://vercel.com/geist/relative-time-card)
56
- * Ours: relative within a week, then the day and month, with the year only when it is another year; `mode="clock"` prints the time of day in the viewer's zone in tabular figures. Hovering either shows a card that opens above after 150 ms, 13 px from the time, with a stem: the relative reading first, then the exact date and time in UTC and in the viewer's zone, each behind a zone chip, the viewer's by its offset (*GMT+2*). A page rendered on a server passes the viewer's `timeZone` when it knows it, so the server and the browser write the same time; otherwise the server and the hydrating page write UTC and the page then rewrites it in the browser's zone. A relative time counts from the moment the server drew the page, which a `RecordTimeRenderedAt` above gives the server and the hydrating page alike, so a minute that turns before the page is live changes nothing, and the live page then counts from the browser's clock; a server with no such moment writes the day with its year (*Signed up Oct 14, 2026*), and the live page rewrites it. The product supplies any refresh after that. A time that names no moment draws `children`, a state such as *Pending*, or nothing. While `at` does name a moment, `children` (*Queued*) replaces the sentence and the card stays.
60
+ * Ours: relative within a week, then the day and month, with the year only when it is another year; `mode="clock"` prints the time of day in the viewer's zone in tabular figures; `mode="day"` prints the day in the viewer's zone with its year, whatever the clock reads (*Sep 19, 2026*, *19 set 2026*). Hovering any of them shows a card that opens above after 150 ms, 13 px from the time, with a stem: the relative reading first, then the exact date and time in UTC and in the viewer's zone, each behind a zone chip, the viewer's by its offset (*GMT+2*). A page rendered on a server passes the viewer's `timeZone` when it knows it, so the server and the browser write the same time; otherwise the server and the hydrating page write UTC and the page then rewrites it in the browser's zone. A relative time counts from the moment the server drew the page, which a `RecordTimeRenderedAt` above gives the server and the hydrating page alike, so a minute that turns before the page is live changes nothing, and the live page then counts from the browser's clock; a server with no such moment writes the day with its year (*Signed up Oct 14, 2026*), and the live page rewrites it. The product supplies any refresh after that. A time that names no moment draws `children`, a state such as *Pending*, or nothing. While `at` does name a moment, `children` (*Queued*) replaces the sentence and the card stays.
57
61
  * @words "Pass `date` as a number (Unix ms or epoch)." "Don’t pre-format the value, and don’t replace `children` with a formatted string." "The component’s short formatter is the canonical form (`2m`, `5h`, `Yesterday`)." "Don’t append `ago` after the component." "The formatter already produces `2m ago` / `5h ago`, so `<RelativeTimeCard /> ago` reads as `2m ago ago`." "Use `children` only for non-time labels (`Just now`, `Pending`, `Queued`) where the formatter can’t describe the state." "Pair with a leading label when the row is ambiguous on its own: `Last deploy <RelativeTimeCard date={ts} />`." (https://vercel.com/geist/relative-time-card)
58
62
  * Ours: `at` takes a Date, epoch milliseconds or an ISO string, never a display string such as *3 hours ago*. The reading is Geist's short form in the person's language (*now*, *2m ago*, *3h ago*, *yesterday*, *3d ago*, then *12 Sep*; *ora*, *3 h fa* in Italian). The product writes the sentence through `phrase` (*Updated {when}*, *Ran {when}*), so *ago* is never added after it, and a row says what happened because its list's headings are read only by assistive technology; the clock needs no words. The package formats every date with the person's `locale`.
59
63
  * @access Ours: a `<time>` element with the machine-readable moment; assistive technology reads the exact local moment after the visible text.
@@ -1 +1 @@
1
- {"version":3,"file":"record-time.d.ts","sourceRoot":"","sources":["../../src/components/record-time.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAa,gBAAgB,EAAoB,MAAM,yBAAyB,CAAC;AAIxF,MAAM,MAAM,eAAe,GAAG;IAC5B,0FAA0F;IAC1F,EAAE,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,kEAAkE;IAClE,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IACvD,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kIAAkI;IAClI,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,CACA;IACE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;OAGG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAClC;AACH,gEAAgE;GAC9D;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CACpB,CAAC;AAIF;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA;AAoDD,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAIrF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,sCA+EhD"}
1
+ {"version":3,"file":"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AAK,EAAE,eAAe,sCAkFhD"}
@@ -59,11 +59,11 @@ export function recordDate(at) {
59
59
  *
60
60
  * @family Data
61
61
  * @when "Use `<RelativeTimeCard>` anywhere a recent timestamp appears in scannable surfaces: `Table` cells, `Entity` rows, deploy lists, activity feeds." (https://vercel.com/geist/relative-time-card)
62
- * Ours: `RelativeTimeCard` is `RecordTime`: the moment a record was made, changed or last ran, in its row or its facts, and the time of each event in an ActivityFeed or a RunTimeline step (`mode="clock"`).
62
+ * Ours: `RelativeTimeCard` is `RecordTime`: the moment a record was made, changed or last ran, in its row or its facts, and the time of each event in an ActivityFeed or a RunTimeline step (`mode="clock"`). The day a moment fell on, where the sentence already says the time or the day is the fact, such as a reading's day beside its clock when it was read on an earlier day, is `mode="day"` (nadicode decision).
63
63
  * @instead "For a static date in body prose past 7 days, render `Mar 14, 2026` directly." (https://vercel.com/geist/relative-time-card)
64
64
  * Ours: a date a person picks is a Calendar; a span of days a page reads is a DateRangeControl; a run's duration is a fact written by the product (*Took 4 min*).
65
65
  * @behaviour "The hover card already shows absolute UTC and local time, so don’t duplicate that copy elsewhere on the row." (https://vercel.com/geist/relative-time-card)
66
- * Ours: relative within a week, then the day and month, with the year only when it is another year; `mode="clock"` prints the time of day in the viewer's zone in tabular figures. Hovering either shows a card that opens above after 150 ms, 13 px from the time, with a stem: the relative reading first, then the exact date and time in UTC and in the viewer's zone, each behind a zone chip, the viewer's by its offset (*GMT+2*). A page rendered on a server passes the viewer's `timeZone` when it knows it, so the server and the browser write the same time; otherwise the server and the hydrating page write UTC and the page then rewrites it in the browser's zone. A relative time counts from the moment the server drew the page, which a `RecordTimeRenderedAt` above gives the server and the hydrating page alike, so a minute that turns before the page is live changes nothing, and the live page then counts from the browser's clock; a server with no such moment writes the day with its year (*Signed up Oct 14, 2026*), and the live page rewrites it. The product supplies any refresh after that. A time that names no moment draws `children`, a state such as *Pending*, or nothing. While `at` does name a moment, `children` (*Queued*) replaces the sentence and the card stays.
66
+ * Ours: relative within a week, then the day and month, with the year only when it is another year; `mode="clock"` prints the time of day in the viewer's zone in tabular figures; `mode="day"` prints the day in the viewer's zone with its year, whatever the clock reads (*Sep 19, 2026*, *19 set 2026*). Hovering any of them shows a card that opens above after 150 ms, 13 px from the time, with a stem: the relative reading first, then the exact date and time in UTC and in the viewer's zone, each behind a zone chip, the viewer's by its offset (*GMT+2*). A page rendered on a server passes the viewer's `timeZone` when it knows it, so the server and the browser write the same time; otherwise the server and the hydrating page write UTC and the page then rewrites it in the browser's zone. A relative time counts from the moment the server drew the page, which a `RecordTimeRenderedAt` above gives the server and the hydrating page alike, so a minute that turns before the page is live changes nothing, and the live page then counts from the browser's clock; a server with no such moment writes the day with its year (*Signed up Oct 14, 2026*), and the live page rewrites it. The product supplies any refresh after that. A time that names no moment draws `children`, a state such as *Pending*, or nothing. While `at` does name a moment, `children` (*Queued*) replaces the sentence and the card stays.
67
67
  * @words "Pass `date` as a number (Unix ms or epoch)." "Don’t pre-format the value, and don’t replace `children` with a formatted string." "The component’s short formatter is the canonical form (`2m`, `5h`, `Yesterday`)." "Don’t append `ago` after the component." "The formatter already produces `2m ago` / `5h ago`, so `<RelativeTimeCard /> ago` reads as `2m ago ago`." "Use `children` only for non-time labels (`Just now`, `Pending`, `Queued`) where the formatter can’t describe the state." "Pair with a leading label when the row is ambiguous on its own: `Last deploy <RelativeTimeCard date={ts} />`." (https://vercel.com/geist/relative-time-card)
68
68
  * Ours: `at` takes a Date, epoch milliseconds or an ISO string, never a display string such as *3 hours ago*. The reading is Geist's short form in the person's language (*now*, *2m ago*, *3h ago*, *yesterday*, *3d ago*, then *12 Sep*; *ora*, *3 h fa* in Italian). The product writes the sentence through `phrase` (*Updated {when}*, *Ran {when}*), so *ago* is never added after it, and a row says what happened because its list's headings are read only by assistive technology; the clock needs no words. The package formats every date with the person's `locale`.
69
69
  * @access Ours: a `<time>` element with the machine-readable moment; assistive technology reads the exact local moment after the visible text.
@@ -74,7 +74,8 @@ export function RecordTime(props) {
74
74
  const timeZone = props.timeZone ?? (hydrated ? undefined : "UTC");
75
75
  const date = recordDate(at);
76
76
  const clock = props.mode === "clock";
77
- const reading = useReadingTime(now, date !== null && !clock);
77
+ const day = props.mode === "day";
78
+ const reading = useReadingTime(now, date !== null && !clock && !day);
78
79
  if (!date) {
79
80
  return props.children ? (_jsx("span", { className: "whitespace-nowrap text-muted-foreground", "data-slot": "record-time", children: props.children })) : null;
80
81
  }
@@ -95,8 +96,10 @@ export function RecordTime(props) {
95
96
  const shown = props.children ??
96
97
  (clock
97
98
  ? new Intl.DateTimeFormat(locale, { timeStyle: "short", timeZone }).format(date)
98
- : props.phrase(when));
99
+ : day
100
+ ? formatRecordDay(date, locale, timeZone, true)
101
+ : props.phrase(when));
99
102
  return (_jsxs(HoverCard, { children: [_jsxs(HoverCardTrigger, { render: _jsx("time", { className: clock
100
103
  ? "whitespace-nowrap tabular-nums text-muted-foreground"
101
- : "whitespace-nowrap text-muted-foreground", "data-slot": "record-time", dateTime: date.toISOString() }), children: [shown, _jsxs("span", { className: "sr-only", children: [", ", local] })] }), _jsx(HoverCardContent, { side: props.side, sideOffset: 13, children: _jsxs("div", { className: "grid min-w-75 gap-3 text-body-compact", "data-slot": "record-time-exact", children: [_jsx("p", { className: "text-muted-foreground tabular-nums", children: clock ? (_jsx(OpenedReading, { at: date, locale: locale, now: now, timeZone: timeZone })) : (when) }), _jsx("dl", { className: "grid gap-2", children: exactRows.map((row) => (_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx("dt", { className: "inline-flex h-4 items-center rounded-xs bg-recessed px-1.5 font-label-mono text-label-mono text-muted-foreground", children: row.zone }), _jsxs("dd", { className: "flex min-w-0 flex-1 items-center justify-between gap-3", children: [_jsx("span", { children: row.date }), _jsx("span", { className: "font-label-mono text-label-mono text-muted-foreground tabular-nums", children: row.time })] })] }, row.id))) })] }) })] }));
104
+ : "whitespace-nowrap text-muted-foreground", "data-slot": "record-time", dateTime: date.toISOString() }), children: [shown, _jsxs("span", { className: "sr-only", children: [", ", local] })] }), _jsx(HoverCardContent, { side: props.side, sideOffset: 13, children: _jsxs("div", { className: "grid min-w-75 gap-3 text-body-compact", "data-slot": "record-time-exact", children: [_jsx("p", { className: "text-muted-foreground tabular-nums", children: clock || day ? (_jsx(OpenedReading, { at: date, locale: locale, now: now, timeZone: timeZone })) : (when) }), _jsx("dl", { className: "grid gap-2", children: exactRows.map((row) => (_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx("dt", { className: "inline-flex h-4 items-center rounded-xs bg-recessed px-1.5 font-label-mono text-label-mono text-muted-foreground", children: row.zone }), _jsxs("dd", { className: "flex min-w-0 flex-1 items-center justify-between gap-3", children: [_jsx("span", { children: row.date }), _jsx("span", { className: "font-label-mono text-label-mono text-muted-foreground tabular-nums", children: row.time })] })] }, row.id))) })] }) })] }));
102
105
  }
@@ -18,7 +18,7 @@ export type RowEditFormProps = Omit<ComponentProps<typeof Form>, "children" | "c
18
18
  * @family Compositions
19
19
  * @when A person changes a record they see in a list: edit a mailbox, a task, an MCP server, a channel. It is a `RecordList`'s `editor` or a `DataTable`'s `rowEditor`.
20
20
  * @instead A new record from a few fields is a `FormDialog`; a fact on the record's own page changes in place in its section; a choice from a catalogue is a `CatalogDrawer`.
21
- * @behaviour The fields open under the record's line, inside its row, and the other rows stay where they are; a refusal or a failed save sits above the footer. The footer, one tone below, holds an optional hint at its leading edge, then Cancel and the save rightmost. Save stays off until a field changes: the caller sets `submit.disabled` from its own fields. Cancel holds while the save runs, and the waiting line runs under them.
21
+ * @behaviour The fields open under the record's line, inside its row, and the other rows stay where they are; a refusal or a failed save sits above the footer. The footer, one tone below, holds an optional hint at its leading edge, then Cancel and the save rightmost. Save stays off until a field changes: the caller sets `submit.disabled` from its own fields. Cancel holds while the save runs, and the waiting line runs under them. The row's commands stay as they were while its form is open: Cancel closes the form, never a Close put on the row (owner).
22
22
  * @words The save says what it does, "Save"; Cancel is "Cancel". The hint is a way on, such as where to find a token, never a restatement of a field's label.
23
23
  * @access A form in the row's place, which the caller moves focus into. The running save is marked busy, and the line saying why the save cannot run yet is its description (`submit.describedBy`).
24
24
  */
@@ -10,7 +10,7 @@ import { FormSubmitButton } from "../internal/form-submit.js";
10
10
  * @family Compositions
11
11
  * @when A person changes a record they see in a list: edit a mailbox, a task, an MCP server, a channel. It is a `RecordList`'s `editor` or a `DataTable`'s `rowEditor`.
12
12
  * @instead A new record from a few fields is a `FormDialog`; a fact on the record's own page changes in place in its section; a choice from a catalogue is a `CatalogDrawer`.
13
- * @behaviour The fields open under the record's line, inside its row, and the other rows stay where they are; a refusal or a failed save sits above the footer. The footer, one tone below, holds an optional hint at its leading edge, then Cancel and the save rightmost. Save stays off until a field changes: the caller sets `submit.disabled` from its own fields. Cancel holds while the save runs, and the waiting line runs under them.
13
+ * @behaviour The fields open under the record's line, inside its row, and the other rows stay where they are; a refusal or a failed save sits above the footer. The footer, one tone below, holds an optional hint at its leading edge, then Cancel and the save rightmost. Save stays off until a field changes: the caller sets `submit.disabled` from its own fields. Cancel holds while the save runs, and the waiting line runs under them. The row's commands stay as they were while its form is open: Cancel closes the form, never a Close put on the row (owner).
14
14
  * @words The save says what it does, "Save"; Cancel is "Cancel". The hint is a way on, such as where to find a token, never a restatement of a field's label.
15
15
  * @access A form in the row's place, which the caller moves focus into. The running save is marked busy, and the line saying why the save cannot run yet is its description (`submit.describedBy`).
16
16
  */
@@ -5,6 +5,8 @@ export type ScopeOption = {
5
5
  group?: string;
6
6
  keywords?: readonly string[];
7
7
  mark?: React.ReactNode;
8
+ /** What tells this option from another of the same name, at the row's end in muted text, as a chat's start time. */
9
+ meta?: React.ReactNode;
8
10
  };
9
11
  export type ScopeSwitcherCopy = {
10
12
  label: string;
@@ -31,7 +33,7 @@ export type ScopeSwitcherProps = {
31
33
  * @family Navigation
32
34
  * @when Changing which part of the account a page reads, such as Analytics' scope, or switching between objects from the shell's top bar with `variant="navigation"`.
33
35
  * @instead A viewer with one scope and nothing to create reads its name with no control, which this draws by itself. Finding anything is `CommandDialog`; narrowing rows is `CollectionFilters`.
34
- * @behaviour A ghost trigger, at most 16rem, opens a 288 px popover with focus in its search. Navigation omits the visible prefix, wraps the selected name on phones instead of cutting it, carries each option's identity mark and opens a 384 px popover constrained to the viewport. Type to filter, Enter chooses and closes; choosing the current one changes nothing. The caller writes the choice to the URL in `onValueChange`, so sibling pages keep it. Scope selectors preserve the authorized organization or account. An optional create command sits last.
36
+ * @behaviour A ghost trigger, at most 16rem, opens a 288 px popover with focus in its search. Navigation omits the visible prefix, takes the path's room in place of the 16rem, and keeps the selected name on one line, whole while the path can show it and cut with an ellipsis only when it cannot, as the path it stands in does (owner ruling, 2026-11-07 (centred), with names kept whole), carries each option's identity mark and its `meta`, such as a chat's start time, at the row's end and opens a 384 px popover constrained to the viewport. Type to filter, Enter chooses and closes; choosing the current one changes nothing. The caller writes the choice to the URL in `onValueChange`, so sibling pages keep it. Scope selectors preserve the authorized organization or account. An optional create command sits last.
35
37
  * @words `copy.label` names what is chosen ("Scope") beside the current scope's name. Search and empty lines name the thing: "Find a scope", "No scope matches".
36
38
  * @access The trigger reads "Scope: All customers"; the popover has a hidden title; options are a listbox with the current one checked.
37
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"scope-switcher.d.ts","sourceRoot":"","sources":["../../src/components/scope-switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,+FAA+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AEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,8DAA8D;IAC9D,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;CAClC,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,aAAa,EACb,IAAI,EACJ,MAAM,EACN,OAAiB,GAClB,EAAE,kBAAkB,qBA+GpB"}
@@ -12,7 +12,7 @@ import { cn } from "../lib/utils.js";
12
12
  * @family Navigation
13
13
  * @when Changing which part of the account a page reads, such as Analytics' scope, or switching between objects from the shell's top bar with `variant="navigation"`.
14
14
  * @instead A viewer with one scope and nothing to create reads its name with no control, which this draws by itself. Finding anything is `CommandDialog`; narrowing rows is `CollectionFilters`.
15
- * @behaviour A ghost trigger, at most 16rem, opens a 288 px popover with focus in its search. Navigation omits the visible prefix, wraps the selected name on phones instead of cutting it, carries each option's identity mark and opens a 384 px popover constrained to the viewport. Type to filter, Enter chooses and closes; choosing the current one changes nothing. The caller writes the choice to the URL in `onValueChange`, so sibling pages keep it. Scope selectors preserve the authorized organization or account. An optional create command sits last.
15
+ * @behaviour A ghost trigger, at most 16rem, opens a 288 px popover with focus in its search. Navigation omits the visible prefix, takes the path's room in place of the 16rem, and keeps the selected name on one line, whole while the path can show it and cut with an ellipsis only when it cannot, as the path it stands in does (owner ruling, 2026-11-07 (centred), with names kept whole), carries each option's identity mark and its `meta`, such as a chat's start time, at the row's end and opens a 384 px popover constrained to the viewport. Type to filter, Enter chooses and closes; choosing the current one changes nothing. The caller writes the choice to the URL in `onValueChange`, so sibling pages keep it. Scope selectors preserve the authorized organization or account. An optional create command sits last.
16
16
  * @words `copy.label` names what is chosen ("Scope") beside the current scope's name. Search and empty lines name the thing: "Find a scope", "No scope matches".
17
17
  * @access The trigger reads "Scope: All customers"; the popover has a hidden title; options are a listbox with the current one checked.
18
18
  */
@@ -36,14 +36,11 @@ export function ScopeSwitcher({ value, options, onValueChange, copy, create, var
36
36
  onValueChange(next);
37
37
  };
38
38
  const switchable = options.length > 1 || create !== undefined;
39
- return (_jsxs("span", { "data-slot": "scope-switcher", className: "flex min-w-0 items-center gap-2", children: [_jsx("span", { "aria-hidden": switchable ? "true" : undefined, className: cn("text-xs font-medium text-muted-foreground", variant === "navigation" && "sr-only"), children: copy.label }), switchable ? (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsxs(PopoverTrigger, { render: _jsx(Button, { variant: "ghost", className: cn("min-w-0 max-w-64 shrink", variant === "navigation" &&
40
- "h-auto max-w-full py-1 md:h-control-height md:max-w-64 md:py-0"), prefix: current?.mark ? _jsx("span", { "aria-hidden": "true", children: current.mark }) : undefined, suffix: _jsx(ChevronsUpDown, { "aria-hidden": "true" }) }), children: [_jsxs("span", { className: "sr-only", children: [copy.label, ":"] }), " ", _jsx("span", { className: cn(variant === "navigation"
41
- ? "whitespace-normal wrap-break-word text-left md:truncate"
42
- : "truncate"), children: currentLabel })] }), _jsxs(PopoverContent, { align: "start", className: cn("w-72 max-w-[calc(100vw-2rem)] p-0", variant === "navigation" && "w-96"), initialFocus: search, children: [_jsx(PopoverTitle, { className: "sr-only", children: copy.label }), _jsxs(Command, { label: copy.search, resultCount: copy.results, children: [_jsx(CommandInput, { ref: search, "aria-label": copy.search, placeholder: copy.search }), _jsxs(CommandList, { label: copy.label, children: [_jsx(CommandEmpty, { children: copy.empty }), groups.map(([group, items]) => (_jsx(CommandGroup, { heading: group, children: items.map((option) => (_jsxs(CommandItem, { value: option.value, keywords: [
39
+ return (_jsxs("span", { "data-slot": "scope-switcher", className: "flex min-w-0 items-center gap-2", children: [_jsx("span", { "aria-hidden": switchable ? "true" : undefined, className: cn("text-xs font-medium text-muted-foreground", variant === "navigation" && "sr-only"), children: copy.label }), switchable ? (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsxs(PopoverTrigger, { render: _jsx(Button, { variant: "ghost", className: cn("min-w-0 max-w-64 shrink", variant === "navigation" && "max-w-full"), prefix: current?.mark ? _jsx("span", { "aria-hidden": "true", children: current.mark }) : undefined, suffix: _jsx(ChevronsUpDown, { "aria-hidden": "true" }) }), children: [_jsxs("span", { className: "sr-only", children: [copy.label, ":"] }), " ", _jsx("span", { className: "truncate", children: currentLabel })] }), _jsxs(PopoverContent, { align: "start", className: cn("w-72 max-w-[calc(100vw-2rem)] p-0", variant === "navigation" && "w-96"), initialFocus: search, children: [_jsx(PopoverTitle, { className: "sr-only", children: copy.label }), _jsxs(Command, { label: copy.search, resultCount: copy.results, children: [_jsx(CommandInput, { ref: search, "aria-label": copy.search, placeholder: copy.search }), _jsxs(CommandList, { label: copy.label, children: [_jsx(CommandEmpty, { children: copy.empty }), groups.map(([group, items]) => (_jsx(CommandGroup, { heading: group, children: items.map((option) => (_jsxs(CommandItem, { value: option.value, keywords: [
43
40
  option.label,
44
41
  ...(option.group ? [option.group] : []),
45
42
  ...(option.keywords ?? []),
46
- ], "data-checked": option.value === value, onSelect: () => choose(option.value), children: [option.mark ? _jsx("span", { "aria-hidden": "true", children: option.mark }) : null, _jsx("span", { className: "truncate", children: option.label })] }, option.value))) }, group ?? ""))), create ? (_jsxs(_Fragment, { children: [_jsx(CommandSeparator, { alwaysRender: true }), _jsx(CommandGroup, { forceMount: true, heading: undefined, children: _jsxs(CommandItem, { value: `create ${create.label}`, forceMount: true, onSelect: () => {
43
+ ], "data-checked": option.value === value, onSelect: () => choose(option.value), children: [option.mark ? _jsx("span", { "aria-hidden": "true", children: option.mark }) : null, _jsx("span", { className: "truncate", children: option.label }), option.meta ? (_jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: option.meta })) : null] }, option.value))) }, group ?? ""))), create ? (_jsxs(_Fragment, { children: [_jsx(CommandSeparator, { alwaysRender: true }), _jsx(CommandGroup, { forceMount: true, heading: undefined, children: _jsxs(CommandItem, { value: `create ${create.label}`, forceMount: true, onSelect: () => {
47
44
  setOpen(false);
48
45
  create.onSelect();
49
46
  }, children: [_jsx(Plus, { "aria-hidden": "true" }), create.label] }) })] })) : null] })] })] })] })) : (_jsxs("span", { className: "flex min-w-0 items-center gap-2 px-3 text-sm", children: [current?.mark ? _jsx("span", { "aria-hidden": "true", children: current.mark }) : null, _jsx("span", { className: "truncate", children: currentLabel })] }))] }));
@@ -11,10 +11,10 @@ export type SettingsPageProps = {
11
11
  *
12
12
  * @family Compositions
13
13
  * @when A place whose job is changing how something behaves: an account's profile, a company's identity, Nadia's notifications. Every page of settings is this composition, whether it belongs to the person, to the platform or to one record's Settings tab, so the column keeps its width and its field layout from one entry of a settings menu to the next.
14
- * @instead One object's page with a settings card among its sections is an ObjectPage; "Place it once per app, in the footer or settings, not duplicated across pages." (https://vercel.com/geist/theme-switcher) Ours: Theme and Language, which apply on change, stay in the account menu.
15
- * @behaviour One setting per card (the card's shapes are SettingsSection's: one field, a row of short parts of one value, rows of switches or of selects), the cards stacked 24 apart in the settings column (`ReadingColumn` `settings`, 960 px) under the page's header, which the product's page frame draws with its title and description, as Vercel's settings cards fill their column and stop there, with no heading between them; a field inside keeps its own bound. A page that mixes cards with other content, such as a table or a list of rules, is not a SettingsPage: its sections take a plain h2 above each card. The page draws no header and no save of its own: each SettingsSection saves from its footer. The danger zone closes the page, in rising severity: transfer, then pause, then delete; only delete is `tone="error"`, and only delete and pause take a button in a hue.
14
+ * @instead One object's page with a settings card among its sections is an ObjectPage; "Place it once per app, in the footer or settings, not duplicated across pages." (https://vercel.com/geist/theme-switcher) Ours: Theme and Language stand in the account menu, and a product's preferences page may show them too; when they apply is `SettingsSection`'s rule.
15
+ * @behaviour One setting per card (the card's shapes are SettingsSection's: one field, a row of short parts of one value, rows of switches or of selects), the cards stacked 24 apart in the settings column (`ReadingColumn` `settings`, 960 px) under the page's header, which the product's chrome draws with its title and description (`PageFrame`'s `title` where the host app draws the page area), as Vercel's settings cards fill their column and stop there, with no heading between them; a field inside keeps its own bound. A page that mixes cards with other content, such as a table or a list of rules, is not a SettingsPage: its sections take a plain h2 above each card. The page draws no header and no save of its own: each SettingsSection saves from its footer. The danger zone closes the page, in rising severity: transfer, then pause, then delete; only delete is `tone="error"`, and only delete and pause take a button in a hue.
16
16
  * @words The sections' titles and lines; a card's title is never the page's h1.
17
- * @access Draws no heading of its own: the page frame's header is the page's h1.
17
+ * @access Draws no heading of its own: the header the product's chrome or `PageFrame` draws is the page's h1.
18
18
  */
19
19
  export declare function SettingsPage({ notice, children }: SettingsPageProps): ReactElement;
20
20
  //# sourceMappingURL=settings-page.d.ts.map
@@ -6,10 +6,10 @@ import { ReadingColumn } from "./reading-column.js";
6
6
  *
7
7
  * @family Compositions
8
8
  * @when A place whose job is changing how something behaves: an account's profile, a company's identity, Nadia's notifications. Every page of settings is this composition, whether it belongs to the person, to the platform or to one record's Settings tab, so the column keeps its width and its field layout from one entry of a settings menu to the next.
9
- * @instead One object's page with a settings card among its sections is an ObjectPage; "Place it once per app, in the footer or settings, not duplicated across pages." (https://vercel.com/geist/theme-switcher) Ours: Theme and Language, which apply on change, stay in the account menu.
10
- * @behaviour One setting per card (the card's shapes are SettingsSection's: one field, a row of short parts of one value, rows of switches or of selects), the cards stacked 24 apart in the settings column (`ReadingColumn` `settings`, 960 px) under the page's header, which the product's page frame draws with its title and description, as Vercel's settings cards fill their column and stop there, with no heading between them; a field inside keeps its own bound. A page that mixes cards with other content, such as a table or a list of rules, is not a SettingsPage: its sections take a plain h2 above each card. The page draws no header and no save of its own: each SettingsSection saves from its footer. The danger zone closes the page, in rising severity: transfer, then pause, then delete; only delete is `tone="error"`, and only delete and pause take a button in a hue.
9
+ * @instead One object's page with a settings card among its sections is an ObjectPage; "Place it once per app, in the footer or settings, not duplicated across pages." (https://vercel.com/geist/theme-switcher) Ours: Theme and Language stand in the account menu, and a product's preferences page may show them too; when they apply is `SettingsSection`'s rule.
10
+ * @behaviour One setting per card (the card's shapes are SettingsSection's: one field, a row of short parts of one value, rows of switches or of selects), the cards stacked 24 apart in the settings column (`ReadingColumn` `settings`, 960 px) under the page's header, which the product's chrome draws with its title and description (`PageFrame`'s `title` where the host app draws the page area), as Vercel's settings cards fill their column and stop there, with no heading between them; a field inside keeps its own bound. A page that mixes cards with other content, such as a table or a list of rules, is not a SettingsPage: its sections take a plain h2 above each card. The page draws no header and no save of its own: each SettingsSection saves from its footer. The danger zone closes the page, in rising severity: transfer, then pause, then delete; only delete is `tone="error"`, and only delete and pause take a button in a hue.
11
11
  * @words The sections' titles and lines; a card's title is never the page's h1.
12
- * @access Draws no heading of its own: the page frame's header is the page's h1.
12
+ * @access Draws no heading of its own: the header the product's chrome or `PageFrame` draws is the page's h1.
13
13
  */
14
14
  export function SettingsPage({ notice, children }) {
15
15
  return (_jsxs(ReadingColumn, { width: "settings", children: [notice ? _jsx(NoticeBanner, { ...notice }) : null, children] }));