@nadicodeai/ui 12.1.224 → 12.1.225

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 (189) hide show
  1. package/AGENTS.md +4 -1
  2. package/dist/components/action-menu.d.ts +4 -4
  3. package/dist/components/action-menu.d.ts.map +1 -1
  4. package/dist/components/action-menu.js +2 -2
  5. package/dist/components/agent-card.d.ts +1 -1
  6. package/dist/components/agent-card.js +1 -1
  7. package/dist/components/badge.d.ts +2 -1
  8. package/dist/components/badge.d.ts.map +1 -1
  9. package/dist/components/badge.js +2 -1
  10. package/dist/components/brand.d.ts +1 -1
  11. package/dist/components/brand.d.ts.map +1 -1
  12. package/dist/components/brand.js +21 -2
  13. package/dist/components/card.d.ts +1 -1
  14. package/dist/components/card.js +1 -1
  15. package/dist/components/catalog-card.d.ts +1 -2
  16. package/dist/components/catalog-card.d.ts.map +1 -1
  17. package/dist/components/catalog-card.js +1 -2
  18. package/dist/components/chart-card.d.ts +2 -2
  19. package/dist/components/chart-card.d.ts.map +1 -1
  20. package/dist/components/chart-card.js +1 -1
  21. package/dist/components/check-counts.d.ts +3 -5
  22. package/dist/components/check-counts.d.ts.map +1 -1
  23. package/dist/components/check-counts.js +5 -7
  24. package/dist/components/collection-page.d.ts +6 -7
  25. package/dist/components/collection-page.d.ts.map +1 -1
  26. package/dist/components/collection-page.js +3 -3
  27. package/dist/components/data-table.d.ts +13 -21
  28. package/dist/components/data-table.d.ts.map +1 -1
  29. package/dist/components/data-table.js +57 -192
  30. package/dist/components/drawer-steps.d.ts +1 -1
  31. package/dist/components/drawer-steps.js +1 -1
  32. package/dist/components/dropdown-menu.d.ts +5 -4
  33. package/dist/components/dropdown-menu.d.ts.map +1 -1
  34. package/dist/components/dropdown-menu.js +7 -6
  35. package/dist/components/empty-state.d.ts +4 -1
  36. package/dist/components/empty-state.d.ts.map +1 -1
  37. package/dist/components/empty-state.js +5 -4
  38. package/dist/components/figure-row.d.ts +58 -0
  39. package/dist/components/figure-row.d.ts.map +1 -0
  40. package/dist/components/figure-row.js +41 -0
  41. package/dist/components/form-dialog.d.ts +1 -1
  42. package/dist/components/form-dialog.js +1 -1
  43. package/dist/components/form-drawer.d.ts +2 -2
  44. package/dist/components/form-drawer.js +2 -2
  45. package/dist/components/gauge.d.ts +2 -0
  46. package/dist/components/gauge.d.ts.map +1 -1
  47. package/dist/components/gauge.js +2 -0
  48. package/dist/components/icon-tile.d.ts +27 -0
  49. package/dist/components/icon-tile.d.ts.map +1 -0
  50. package/dist/components/icon-tile.js +18 -0
  51. package/dist/components/identity-mark.d.ts +3 -2
  52. package/dist/components/identity-mark.d.ts.map +1 -1
  53. package/dist/components/identity-mark.js +3 -10
  54. package/dist/components/kpi-card.d.ts +23 -6
  55. package/dist/components/kpi-card.d.ts.map +1 -1
  56. package/dist/components/kpi-card.js +11 -7
  57. package/dist/components/library-shelf.d.ts +1 -1
  58. package/dist/components/library-shelf.js +1 -1
  59. package/dist/components/menu-choice-row.d.ts +1 -2
  60. package/dist/components/menu-choice-row.d.ts.map +1 -1
  61. package/dist/components/menu-choice-row.js +1 -2
  62. package/dist/components/notice-banner.d.ts +1 -1
  63. package/dist/components/notice-banner.js +1 -1
  64. package/dist/components/numbered-steps.d.ts +1 -1
  65. package/dist/components/numbered-steps.js +1 -1
  66. package/dist/components/object-page.d.ts +25 -9
  67. package/dist/components/object-page.d.ts.map +1 -1
  68. package/dist/components/object-page.js +13 -9
  69. package/dist/components/object-workspace.d.ts +2 -2
  70. package/dist/components/object-workspace.js +2 -2
  71. package/dist/components/overview-page.d.ts +6 -1
  72. package/dist/components/overview-page.d.ts.map +1 -1
  73. package/dist/components/page-actions.d.ts +16 -15
  74. package/dist/components/page-actions.d.ts.map +1 -1
  75. package/dist/components/page-actions.js +9 -7
  76. package/dist/components/page-frame.d.ts +1 -1
  77. package/dist/components/page-frame.js +1 -1
  78. package/dist/components/page-header.d.ts +12 -9
  79. package/dist/components/page-header.d.ts.map +1 -1
  80. package/dist/components/page-header.js +11 -8
  81. package/dist/components/product-shell.d.ts +10 -13
  82. package/dist/components/product-shell.d.ts.map +1 -1
  83. package/dist/components/product-shell.js +9 -12
  84. package/dist/components/progress-checklist.d.ts +4 -4
  85. package/dist/components/progress-checklist.d.ts.map +1 -1
  86. package/dist/components/progress-checklist.js +4 -14
  87. package/dist/components/progress.d.ts +3 -1
  88. package/dist/components/progress.d.ts.map +1 -1
  89. package/dist/components/progress.js +3 -1
  90. package/dist/components/reading-column.d.ts +2 -2
  91. package/dist/components/reading-column.js +2 -2
  92. package/dist/components/record-commands.d.ts +15 -7
  93. package/dist/components/record-commands.d.ts.map +1 -1
  94. package/dist/components/record-commands.js +26 -19
  95. package/dist/components/record-identity.d.ts +4 -2
  96. package/dist/components/record-identity.d.ts.map +1 -1
  97. package/dist/components/record-identity.js +3 -4
  98. package/dist/components/record-list.d.ts +25 -27
  99. package/dist/components/record-list.d.ts.map +1 -1
  100. package/dist/components/record-list.js +31 -79
  101. package/dist/components/record-sheet.d.ts +1 -1
  102. package/dist/components/record-sheet.js +1 -1
  103. package/dist/components/row-edit-form.d.ts +1 -1
  104. package/dist/components/row-edit-form.js +1 -1
  105. package/dist/components/settings-facts.d.ts +5 -6
  106. package/dist/components/settings-facts.d.ts.map +1 -1
  107. package/dist/components/settings-facts.js +3 -4
  108. package/dist/components/settings-page.d.ts +2 -2
  109. package/dist/components/settings-page.js +2 -2
  110. package/dist/components/settings-section.d.ts +10 -5
  111. package/dist/components/settings-section.d.ts.map +1 -1
  112. package/dist/components/settings-section.js +8 -4
  113. package/dist/components/sheet.d.ts +1 -1
  114. package/dist/components/sheet.js +1 -1
  115. package/dist/components/sidebar-sections.d.ts +4 -4
  116. package/dist/components/sidebar-sections.d.ts.map +1 -1
  117. package/dist/components/sidebar-sections.js +3 -3
  118. package/dist/components/sidebar.d.ts +1 -1
  119. package/dist/components/sidebar.js +1 -1
  120. package/dist/components/status-badge.d.ts +15 -12
  121. package/dist/components/status-badge.d.ts.map +1 -1
  122. package/dist/components/status-badge.js +15 -12
  123. package/dist/components/step-cards.d.ts +1 -2
  124. package/dist/components/step-cards.d.ts.map +1 -1
  125. package/dist/components/step-cards.js +1 -2
  126. package/dist/components/switch.d.ts +4 -2
  127. package/dist/components/switch.d.ts.map +1 -1
  128. package/dist/components/switch.js +9 -3
  129. package/dist/components/table-card.d.ts +2 -3
  130. package/dist/components/table-card.d.ts.map +1 -1
  131. package/dist/components/table-card.js +2 -3
  132. package/dist/components/table.d.ts +6 -24
  133. package/dist/components/table.d.ts.map +1 -1
  134. package/dist/components/table.js +11 -23
  135. package/dist/components/tabs-nav.d.ts +2 -2
  136. package/dist/components/tabs-nav.js +2 -2
  137. package/dist/components/text-link.d.ts +5 -5
  138. package/dist/components/text-link.js +5 -5
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.d.ts.map +1 -1
  141. package/dist/index.js +2 -0
  142. package/dist/internal/badge-frame.d.ts +1 -1
  143. package/dist/internal/badge-frame.d.ts.map +1 -1
  144. package/dist/internal/badge-frame.js +1 -0
  145. package/dist/internal/catalog-list.d.ts.map +1 -1
  146. package/dist/internal/catalog-list.js +1 -1
  147. package/dist/internal/collection-rail.d.ts +2 -2
  148. package/dist/internal/collection-rail.d.ts.map +1 -1
  149. package/dist/internal/empty.d.ts +1 -1
  150. package/dist/internal/empty.d.ts.map +1 -1
  151. package/dist/internal/empty.js +1 -2
  152. package/dist/internal/fieldset-disabled.d.ts +6 -0
  153. package/dist/internal/fieldset-disabled.d.ts.map +1 -0
  154. package/dist/internal/fieldset-disabled.js +7 -0
  155. package/dist/internal/final-focus.d.ts +2 -2
  156. package/dist/internal/final-focus.js +2 -2
  157. package/dist/internal/icon-tile-frame.d.ts +16 -0
  158. package/dist/internal/icon-tile-frame.d.ts.map +1 -0
  159. package/dist/internal/icon-tile-frame.js +21 -0
  160. package/dist/internal/record-grid.d.ts +58 -0
  161. package/dist/internal/record-grid.d.ts.map +1 -0
  162. package/dist/internal/record-grid.js +79 -0
  163. package/dist/internal/settings-save.d.ts.map +1 -1
  164. package/dist/internal/settings-save.js +2 -1
  165. package/dist/showcase/specimens/actions.d.ts.map +1 -1
  166. package/dist/showcase/specimens/actions.js +1 -1
  167. package/dist/showcase/specimens/charts.d.ts.map +1 -1
  168. package/dist/showcase/specimens/charts.js +1 -1
  169. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  170. package/dist/showcase/specimens/compositions.js +3 -3
  171. package/dist/showcase/specimens/data.d.ts +1 -0
  172. package/dist/showcase/specimens/data.d.ts.map +1 -1
  173. package/dist/showcase/specimens/data.js +7 -4
  174. package/dist/showcase/specimens/index.d.ts +2 -0
  175. package/dist/showcase/specimens/index.d.ts.map +1 -1
  176. package/dist/showcase/specimens/status.d.ts +1 -0
  177. package/dist/showcase/specimens/status.d.ts.map +1 -1
  178. package/dist/showcase/specimens/status.js +4 -2
  179. package/dist/showcase/usage.generated.d.ts +1 -1
  180. package/dist/showcase/usage.generated.d.ts.map +1 -1
  181. package/dist/showcase/usage.generated.js +99 -77
  182. package/dist/standalone/index.js +1 -1
  183. package/package.json +2 -2
  184. package/dist/components/table-layouts.d.ts +0 -110
  185. package/dist/components/table-layouts.d.ts.map +0 -1
  186. package/dist/components/table-layouts.js +0 -125
  187. package/dist/internal/table-compact-line.d.ts +0 -57
  188. package/dist/internal/table-compact-line.d.ts.map +0 -1
  189. package/dist/internal/table-compact-line.js +0 -119
@@ -33,20 +33,15 @@ type DataTableFeatures = {
33
33
  wraps?: boolean;
34
34
  /** Its value is an id or a path: it is drawn cut in the middle, its start and end readable, and the column's own `cell` is not used. */
35
35
  identifier?: boolean;
36
- /** A value only some rows have: a row whose value is empty leaves it out of its detail row. */
36
+ /** A value only some rows have: on a record's card, a row whose value is empty leaves it out. */
37
37
  optional?: boolean;
38
38
  /** Its heading and its values sit centred in the column, for a column of switches or marks. */
39
39
  centered?: boolean;
40
40
  /**
41
- * Where its value goes on a card too narrow for the column: `line`, the default, joins the one
42
- * muted line under the name; `text` joins it as the column's value (its accessor's) instead of
43
- * its cell, for a cell that is a link or a control, since an entity row's line sits inside the
44
- * row's own link; `dropped` leaves it out, for a fact the record's page holds and the phone's
45
- * line can spare; `name` stands beside an entity row's name, which ends in an ellipsis before
46
- * it, for the exception no ellipsis may hide, such as a status, and joins the line in any other
47
- * table. A column in `primaryColumns` stays in the row and says none of them.
41
+ * On a record's card, this column stays on the first line beside the name (a selection box
42
+ * before it, the checklist ring and the commands after it) instead of joining the facts under it.
48
43
  */
49
- compact?: "line" | "text" | "dropped" | "name";
44
+ firstLine?: boolean;
50
45
  };
51
46
  };
52
47
  type WithoutHeader<Definition> = Definition extends unknown ? Omit<Definition, "header"> : never;
@@ -95,15 +90,13 @@ type DataTableBaseProps<TData extends RowData> = {
95
90
  * update that inserts, removes or reorders rows.
96
91
  */
97
92
  getRowId?: (row: TData) => string;
98
- /** Columns retained beside the identity at compact container widths. */
99
- primaryColumns: string[];
100
93
  /** The column that names the record and carries the row link; the first column when left out. */
101
94
  primaryColumnId?: string;
102
95
  /** Names the table for assistive technology, and says what it lists: "Usage by Agent". */
103
96
  tableLabel: string;
104
97
  /**
105
- * Names this collection inside its own frame. A page whose whole job is one
106
- * collection leaves it out, because the page heading already names it.
98
+ * Names this table when it is one section of a page: drawn above the box, never inside it, with
99
+ * the toolbar under it. A page whose whole job is one table leaves it out.
107
100
  */
108
101
  heading?: {
109
102
  title: React.ReactNode;
@@ -116,15 +109,16 @@ type DataTableBaseProps<TData extends RowData> = {
116
109
  /**
117
110
  * Splits the rows into sections inside this one table, each under a heading row that spans
118
111
  * the columns: the section a record belongs to, in the order the sections first appear. A
119
- * section's heading is its name from the record, in sentence case: "Delivery network".
112
+ * section's heading is its name from the record, in sentence case.
120
113
  */
121
114
  group?: (row: TData) => string;
122
115
  /** A fixed comparison inside an existing detail Card keeps that one frame. */
123
116
  embedded?: boolean;
124
117
  /**
125
- * `entities` draws the records as `RecordList` draws its rows, for a registry whose columns
126
- * `RecordList` cannot hold (Vercel's Deployments list): headings read by assistive technology
127
- * only, 72 px rows, the identity column a `RecordIdentity` and the phone's line under its name.
118
+ * `entities` draws records a person opens as `RecordList` draws its rows, for a registry whose
119
+ * columns `RecordList` cannot hold: aligned columns from 48rem of
120
+ * card with no heading row, one card per record below, 72 px rows, the identity column a
121
+ * `RecordIdentity`.
128
122
  */
129
123
  rows?: "figures" | "entities";
130
124
  summary?: {
@@ -212,8 +206,6 @@ type EntityTableProps<TData extends RowData> = DataTableProps<TData> & {
212
206
  rowEditor?: EntityRowEditor<TData>;
213
207
  /** The record's menu, opened from its row by a right-click as from its three dots. */
214
208
  rowMenu?: (row: TData) => Omit<ActionContextMenuProps, "children"> | null;
215
- /** Controls drawn under the record's name, outside the row's link, so pressing one never opens the record. */
216
- rowUnderName?: (row: TData) => React.ReactNode;
217
209
  };
218
210
  export declare function columnMenuLabel<TData extends RowData, TValue extends CellData = CellData>(column: Pick<DataTableColumn<TData, TValue>, "id"> & {
219
211
  columnDef: Pick<DataTableColumn<TData, TValue>["columnDef"], "header">;
@@ -227,8 +219,8 @@ export declare function columnMenuLabel<TData extends RowData, TValue extends Ce
227
219
  * Ours: the person compares: usage per Agent, statements, invoices, customers with their partner and count. The columns are fixed, each has a heading, and at least one is a figure or can be sorted. There are three kinds of list. Objects a person opens (a project, a deployment, a member, an integration) are entity rows: a `RecordList`. Values edited in place (a domain, an environment variable) are entity rows that expand into their form: a `RecordList`'s `editor`. Records compared across columns are this table.
228
220
  * @instead “For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table)
229
221
  * “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table)
230
- * Ours: Geist's `Entity` is a `RecordList` row. A registry of entities whose columns `RecordList` cannot hold, more than three facts beside a filter bar the product owns, as Vercel's Deployments list, is this table with `rows="entities"`, which draws the same rows: headings for assistive technology only, 72 px rows, a `RecordIdentity` in the identity column. Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
231
- * @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is as wide as its definition's `size`, in pixels, and the columns without one share the rest, so a table gives a size to every column but the one that takes the spare width; a value too long for its column ends in an ellipsis, whole in its title (a record's name carries its own), unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle instead. The last column trails unless it `wraps` or is `centered`, and on a card too narrow for the columns the last one the row keeps is its last column; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings (Vercel's Usage page: *Delivery network*, *Functions*): a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. A row never scrolls sideways and never gives a column without a size less than 160 px: on a card narrower than its columns (the sized ones and 160 px for each without a size, however wide that is; columns no card holds lay out this way on every card) the row keeps its name and its `primaryColumns`, and every other column leaves it, its value joining the one muted line under the name, joined by a middle dot (a `Tag` reads as its text there); entity facts wrap below the name so every value stays readable, while other rows end in an ellipsis unless a column `wraps`, or `dropped` when its `compact` says so, or beside an entity row's name, which ends in an ellipsis before it, when it says `name`, as Vercel's lists read on a phone: no labels, no second line; an `optional` column's empty value is left out of the line. A table whose every column is in `primaryColumns`, a settings matrix, lays out by its content there instead, so the name wraps beside the columns. A document's table, such as a legal page's, is read whole instead: its columns take the `wraps` option, so their words wrap and the row grows, and it keeps its header row; in the compact layout every cell but the identity wraps between words. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` ("Page 2 of 7") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right (Vercel's deployments list ends "Deployment retention is enabled. Learn more" with *View recently deleted*); it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
222
+ * Ours: Geist's `Entity` is a `RecordList` row. A registry of entities whose columns `RecordList` cannot hold, more than three facts beside a filter bar the product owns, is this table with `rows="entities"`, which draws the same rows: aligned columns on a wide card, one card per record on a narrow one, 72 px rows, a `RecordIdentity` in the identity column. Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
223
+ * @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows. With `rows="entities"` the records are things a person opens and stand as `RecordList`'s rows do: aligned columns from 48rem of card, their headings read by assistive technology only, and below it one card per record, its name on the first line and its other values wrapping under it, each whole. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` ("Page 2 of 7") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right; it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
232
224
  * “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table)
233
225
  * “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
234
226
  * Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/components/data-table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EAGnB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,WAAW,EAIX,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,SAAS,EAGd,KAAK,OAAO,EAGb,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAS1F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AA2BlF,KAAK,iBAAiB,GAAG;IACvB,sBAAsB,EAAE,OAAO,sBA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MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACxC,qBAwCA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,SAAS,OAAO,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,qBAEhF"}
@@ -1,7 +1,6 @@
1
1
  "use client";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { flushSync } from "react-dom";
5
4
  import { columnFilteringFeature, columnSizingFeature, columnVisibilityFeature, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, filterFn_arrIncludes, filterFn_equals, filterFn_inDateRange, filterFn_includesString, filterFn_inNumberRange, filterFn_weakEquals, flexRender, metaHelper, rowPaginationFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_datetime, sortFn_text, tableFeatures, useTable, } from "@tanstack/react-table";
6
5
  import { ChevronDown } from "lucide-react";
7
6
  import { cn } from "../lib/utils.js";
@@ -12,11 +11,10 @@ import { EmptyState } from "./empty-state.js";
12
11
  import { FilterToolbar, filterToolbarHolds, } from "./filter-toolbar.js";
13
12
  import { MiddleTruncate } from "./middle-truncate.js";
14
13
  import { NoticeBanner } from "./notice-banner.js";
15
- import { Table, TableBody, TableCell, TableCol, TableColgroup, TableDetailRow, TableHead, TableHeader, TableRecordGroup, TableRow, } from "./table.js";
14
+ import { Table, TableBody, TableCell, TableCol, TableColgroup, TableHead, TableHeader, TableRecordGroup, TableRow, } from "./table.js";
16
15
  import { Skeleton } from "./skeleton.js";
17
16
  import { TableCard } from "./table-card.js";
18
- import { TableCompactLayoutOf, TableCompactLine, } from "../internal/table-compact-line.js";
19
- import { compactLayoutFor, tableCompactLayouts, } from "./table-layouts.js";
17
+ import { openRowOnClick, RecordGrid, RecordGridGroupHeading, RecordGridRow, } from "../internal/record-grid.js";
20
18
  import { titleWhenCut } from "../internal/title-when-cut.js";
21
19
  const dataTableFeatures = tableFeatures({
22
20
  columnFilteringFeature,
@@ -78,59 +76,6 @@ function primaryRowLinkProps({ href, label, wraps, content, }) {
78
76
  }
79
77
  return props;
80
78
  }
81
- // Below its layout's width the table lays out by content, so the identity takes the room the
82
- // other columns leave and a long name ends in an ellipsis instead of widening the table.
83
- const COMPACT_IDENTITY_CLASS = {
84
- tight: "@max-xl/table:w-full @max-xl/table:max-w-0",
85
- standard: "@max-3xl/table:w-full @max-3xl/table:max-w-0",
86
- ample: "@max-[52rem]/table:w-full @max-[52rem]/table:max-w-0",
87
- large: "@max-4xl/table:w-full @max-4xl/table:max-w-0",
88
- generous: "@max-[60rem]/table:w-full @max-[60rem]/table:max-w-0",
89
- wide: "@max-5xl/table:w-full @max-5xl/table:max-w-0",
90
- roomy: "@max-[68rem]/table:w-full @max-[68rem]/table:max-w-0",
91
- spacious: "@max-6xl/table:w-full @max-6xl/table:max-w-0",
92
- broad: "@max-7xl/table:w-full @max-7xl/table:max-w-0",
93
- vast: "@max-[96rem]/table:w-full @max-[96rem]/table:max-w-0",
94
- always: "w-full max-w-0",
95
- };
96
- const COMPACT_TRAILING_SPACING = {
97
- tight: "@max-xl/table:pr-(--card-spacing)",
98
- standard: "@max-3xl/table:pr-(--card-spacing)",
99
- ample: "@max-[52rem]/table:pr-(--card-spacing)",
100
- large: "@max-4xl/table:pr-(--card-spacing)",
101
- generous: "@max-[60rem]/table:pr-(--card-spacing)",
102
- wide: "@max-5xl/table:pr-(--card-spacing)",
103
- roomy: "@max-[68rem]/table:pr-(--card-spacing)",
104
- spacious: "@max-6xl/table:pr-(--card-spacing)",
105
- broad: "@max-7xl/table:pr-(--card-spacing)",
106
- vast: "@max-[96rem]/table:pr-(--card-spacing)",
107
- always: "pr-(--card-spacing)",
108
- };
109
- const COMPACT_TRAILING_ALIGN = {
110
- tight: "@max-xl/table:text-right",
111
- standard: "@max-3xl/table:text-right",
112
- ample: "@max-[52rem]/table:text-right",
113
- large: "@max-4xl/table:text-right",
114
- generous: "@max-[60rem]/table:text-right",
115
- wide: "@max-5xl/table:text-right",
116
- roomy: "@max-[68rem]/table:text-right",
117
- spacious: "@max-6xl/table:text-right",
118
- broad: "@max-7xl/table:text-right",
119
- vast: "@max-[96rem]/table:text-right",
120
- always: "text-right",
121
- };
122
- function compactTrailingClass(column, trailingColumnId, identityColumnId, compactLayout) {
123
- if (!compactLayout || column.id !== trailingColumnId)
124
- return false;
125
- const meta = column.columnDef.meta;
126
- const trails = meta?.wraps !== true && meta?.centered !== true && column.id !== identityColumnId;
127
- return cn(COMPACT_TRAILING_SPACING[compactLayout], trails && COMPACT_TRAILING_ALIGN[compactLayout]);
128
- }
129
- function identityWidthClass(column, identityColumnId, compactLayout) {
130
- return column.id === identityColumnId && compactLayout
131
- ? COMPACT_IDENTITY_CLASS[compactLayout]
132
- : false;
133
- }
134
79
  function definitionId(column) {
135
80
  if (!column)
136
81
  return undefined;
@@ -149,72 +94,11 @@ function sortOrder(sorted) {
149
94
  return "descending";
150
95
  return undefined;
151
96
  }
152
- function collapseLayout(column, primaryColumns, compactLayout) {
153
- if (primaryColumns.includes(column.id))
154
- return undefined;
155
- return compactLayout;
156
- }
157
- function collapseClass(column, primaryColumns, compactLayout) {
158
- const layout = collapseLayout(column, primaryColumns, compactLayout);
159
- return layout ? tableCompactLayouts[layout].column : undefined;
160
- }
161
- function collapseTrackClass(column, primaryColumns, compactLayout) {
162
- const layout = collapseLayout(column, primaryColumns, compactLayout);
163
- return layout ? tableCompactLayouts[layout].track : undefined;
164
- }
165
97
  const NO_ROW_MENU = {
166
98
  label: "",
167
99
  record: "",
168
100
  commands: [],
169
101
  };
170
- function useShownLayout() {
171
- const [shownLayout, setShownLayout] = React.useState("both");
172
- const probeRef = React.useCallback((probe) => {
173
- const container = probe?.closest('[data-slot="table-container"]');
174
- if (!probe || !container)
175
- return;
176
- const read = () => getComputedStyle(probe).display === "none" ? "columns" : "details";
177
- let shown = read();
178
- setShownLayout(shown);
179
- // Without a ResizeObserver to follow the card, the first measurement stands.
180
- if (typeof ResizeObserver === "undefined")
181
- return;
182
- const show = (next) => {
183
- if (next === shown)
184
- return;
185
- shown = next;
186
- // Observers run after layout and before paint: committing here keeps any
187
- // frame from showing a width whose layout has not been rendered.
188
- flushSync(() => setShownLayout(next));
189
- };
190
- let printing = false;
191
- const observer = new ResizeObserver(() => {
192
- if (!printing)
193
- show(read());
194
- });
195
- const beforePrint = () => {
196
- printing = true;
197
- show("both");
198
- };
199
- const afterPrint = () => {
200
- printing = false;
201
- show(read());
202
- };
203
- observer.observe(container);
204
- window.addEventListener("beforeprint", beforePrint);
205
- window.addEventListener("afterprint", afterPrint);
206
- return () => {
207
- observer.disconnect();
208
- window.removeEventListener("beforeprint", beforePrint);
209
- window.removeEventListener("afterprint", afterPrint);
210
- setShownLayout("both");
211
- };
212
- }, []);
213
- return [shownLayout, probeRef];
214
- }
215
- function LayoutProbeLeadingRecords({ layout, probeRef, children, }) {
216
- return (_jsxs(_Fragment, { children: [_jsx("tbody", { ref: probeRef, "aria-hidden": "true", "data-slot": "table-layout-probe", className: tableCompactLayouts[layout].details }, layout), children] }));
217
- }
218
102
  const defaultRowLink = ({ children, ...props }) => (_jsx("a", { ...props, children: children }));
219
103
  function PagerButton({ enabled, label, link, onClick, }) {
220
104
  if (link && enabled) {
@@ -234,8 +118,8 @@ function GroupHeading({ children, span }) {
234
118
  * Ours: the person compares: usage per Agent, statements, invoices, customers with their partner and count. The columns are fixed, each has a heading, and at least one is a figure or can be sorted. There are three kinds of list. Objects a person opens (a project, a deployment, a member, an integration) are entity rows: a `RecordList`. Values edited in place (a domain, an environment variable) are entity rows that expand into their form: a `RecordList`'s `editor`. Records compared across columns are this table.
235
119
  * @instead “For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table)
236
120
  * “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table)
237
- * Ours: Geist's `Entity` is a `RecordList` row. A registry of entities whose columns `RecordList` cannot hold, more than three facts beside a filter bar the product owns, as Vercel's Deployments list, is this table with `rows="entities"`, which draws the same rows: headings for assistive technology only, 72 px rows, a `RecordIdentity` in the identity column. Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
238
- * @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is as wide as its definition's `size`, in pixels, and the columns without one share the rest, so a table gives a size to every column but the one that takes the spare width; a value too long for its column ends in an ellipsis, whole in its title (a record's name carries its own), unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle instead. The last column trails unless it `wraps` or is `centered`, and on a card too narrow for the columns the last one the row keeps is its last column; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings (Vercel's Usage page: *Delivery network*, *Functions*): a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. A row never scrolls sideways and never gives a column without a size less than 160 px: on a card narrower than its columns (the sized ones and 160 px for each without a size, however wide that is; columns no card holds lay out this way on every card) the row keeps its name and its `primaryColumns`, and every other column leaves it, its value joining the one muted line under the name, joined by a middle dot (a `Tag` reads as its text there); entity facts wrap below the name so every value stays readable, while other rows end in an ellipsis unless a column `wraps`, or `dropped` when its `compact` says so, or beside an entity row's name, which ends in an ellipsis before it, when it says `name`, as Vercel's lists read on a phone: no labels, no second line; an `optional` column's empty value is left out of the line. A table whose every column is in `primaryColumns`, a settings matrix, lays out by its content there instead, so the name wraps beside the columns. A document's table, such as a legal page's, is read whole instead: its columns take the `wraps` option, so their words wrap and the row grows, and it keeps its header row; in the compact layout every cell but the identity wraps between words. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` ("Page 2 of 7") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right (Vercel's deployments list ends "Deployment retention is enabled. Learn more" with *View recently deleted*); it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
121
+ * Ours: Geist's `Entity` is a `RecordList` row. A registry of entities whose columns `RecordList` cannot hold, more than three facts beside a filter bar the product owns, is this table with `rows="entities"`, which draws the same rows: aligned columns on a wide card, one card per record on a narrow one, 72 px rows, a `RecordIdentity` in the identity column. Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
122
+ * @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows. With `rows="entities"` the records are things a person opens and stand as `RecordList`'s rows do: aligned columns from 48rem of card, their headings read by assistive technology only, and below it one card per record, its name on the first line and its other values wrapping under it, each whole. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` ("Page 2 of 7") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right; it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
239
123
  * “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table)
240
124
  * “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
241
125
  * Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
@@ -276,7 +160,7 @@ export function DataTableSkeleton({ rows, columns, notice, }) {
276
160
  export function EntityTable(props) {
277
161
  return _jsx(RecordsTable, { ...props, kind: "entities" });
278
162
  }
279
- function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPlaceholder, primaryColumns, tableLabel, heading, footer, footerNote, group, embedded = false, summary, rowHref, rowLabel, primaryColumnId, empty, noMatchMessage, columnsLabel, clearSearchLabel, pageLabels, toolbarActions, externalFilter, sorting: externalSorting, pagination, renderRowLink = defaultRowLink, toolbar, wrapCard, notice, rowEditor, rowMenu, rowUnderName, }) {
163
+ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPlaceholder, tableLabel, heading, footer, footerNote, group, embedded = false, summary, rowHref, rowLabel, primaryColumnId, empty, noMatchMessage, columnsLabel, clearSearchLabel, pageLabels, toolbarActions, externalFilter, sorting: externalSorting, pagination, renderRowLink = defaultRowLink, toolbar, wrapCard, notice, rowEditor, rowMenu, }) {
280
164
  const entities = kind === "entities";
281
165
  const [sorting, setSorting] = React.useState([]);
282
166
  const [columnFilters, setColumnFilters] = React.useState([]);
@@ -307,18 +191,6 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
307
191
  if (getRowId)
308
192
  tableOptions.getRowId = getRowId;
309
193
  const table = useTable(tableOptions);
310
- const hasDetailColumns = table
311
- .getAllLeafColumns()
312
- .some((column) => !primaryColumns.includes(column.id));
313
- const neededLayout = compactLayoutFor(table.getVisibleLeafColumns().map((column) => sizeOf.get(column.id)));
314
- const compactLayout = hasDetailColumns ? neededLayout : undefined;
315
- // A table whose every column stays lays out by its content on a narrow card, so the name wraps
316
- // beside the columns instead of collapsing between them.
317
- const tableLayout = compactLayout ?? neededLayout;
318
- const visibleColumns = table.getVisibleLeafColumns();
319
- const lastKept = visibleColumns.filter((column) => primaryColumns.includes(column.id)).at(-1);
320
- const trailingColumnId = lastKept === visibleColumns.at(-1) ? undefined : lastKept?.id;
321
- const [shownLayout, layoutProbeRef] = useShownLayout();
322
194
  const canPreviousPage = pagination ? pagination.hasPrevious : table.getCanPreviousPage();
323
195
  const canNextPage = pagination ? pagination.hasNext : table.getCanNextPage();
324
196
  const goPreviousPage = pagination ? pagination.onPrevious : () => table.previousPage();
@@ -332,6 +204,7 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
332
204
  .getAllColumns()
333
205
  .filter((column) => column.getCanHide())
334
206
  .map((column) => (_jsx(DropdownMenuCheckboxItem, { checked: column.getIsVisible(), onCheckedChange: (value) => column.toggleVisibility(!!value), children: columnMenuLabel(column) }, column.id))) }) })] })) : null;
207
+ const visibleColumns = table.getVisibleLeafColumns();
335
208
  const rows = table.getRowModel().rows;
336
209
  const sections = [];
337
210
  for (const row of rows) {
@@ -342,59 +215,36 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
342
215
  else
343
216
  sections.push({ heading, rows: [row] });
344
217
  }
218
+ const configuredPrimaryVisible = primaryColumnId !== undefined && table.getColumn(primaryColumnId)?.getIsVisible();
219
+ const primaryId = configuredPrimaryVisible ? primaryColumnId : visibleColumns[0]?.id;
345
220
  const renderRow = (row) => {
346
221
  const href = rowHref?.(row.original);
347
222
  const label = rowLabel?.(row.original);
348
- const visibleCells = row.getVisibleCells();
349
- const configuredPrimaryVisible = primaryColumnId !== undefined && table.getColumn(primaryColumnId)?.getIsVisible();
350
- const primaryId = configuredPrimaryVisible ? primaryColumnId : visibleCells[0]?.column.id;
351
- const detailCells = visibleCells.filter((cell) => !primaryColumns.includes(cell.column.id) &&
352
- cell.column.columnDef.meta?.compact !== "dropped" &&
353
- !(cell.column.columnDef.meta?.optional === true && isEmptyValue(cell.getValue())));
354
- const detailFacts = () => detailCells.map((cell) => ({
355
- id: cell.id,
356
- label: columnMenuLabel(cell.column),
357
- value: entities && cell.column.columnDef.meta?.compact === "text"
358
- ? String(cell.getValue() ?? "")
359
- : renderCell(cell),
360
- wraps: cell.column.columnDef.meta?.wraps === true,
361
- besideName: entities && cell.column.columnDef.meta?.compact === "name",
362
- }));
363
- // The line's provider stays in the tree when the card is wide enough for the columns and only
364
- // its facts go, so a layout read after hydration never remounts the name a click is landing on.
365
- const compactLine = entities && compactLayout && detailCells.length > 0
366
- ? { layout: compactLayout, facts: shownLayout === "columns" ? [] : detailFacts() }
367
- : undefined;
368
- const detailRowShown = !entities && detailCells.length > 0 && shownLayout !== "columns";
369
223
  const menu = rowMenu?.(row.original);
370
- const record = (_jsxs(TableRecordGroup, { interactive: Boolean(href), children: [_jsx(TableRow, { "data-href": href, className: cn(href && "cursor-pointer"), detailLayout: !entities && detailCells.length > 0 ? compactLayout : undefined, onClick: href
371
- ? (event) => {
372
- const target = event.target;
373
- if (!(target instanceof Element) ||
374
- !event.currentTarget.contains(target) ||
375
- target.closest("a, button, input, select, textarea, label, [role='button'], [role='checkbox']")) {
376
- return;
377
- }
378
- event.currentTarget.querySelector("a[data-row-link]")?.click();
379
- }
380
- : undefined, children: visibleCells.map((cell) => {
381
- const numeric = isNumericColumn(cell.column);
382
- const isPrimaryLink = href && cell.column.id === primaryId;
383
- const collapsed = collapseClass(cell.column, primaryColumns, compactLayout);
384
- const wraps = cell.column.columnDef.meta?.wraps === true;
385
- const centered = cell.column.columnDef.meta?.centered === true;
386
- const cutByEllipsis = !wraps && !isPrimaryLink;
387
- const holdsCompactLine = compactLine !== undefined && cell.column.id === identityColumnId;
388
- const className = cn(numeric && "text-right tabular-nums wrap-normal", wraps && "whitespace-normal last:text-left", centered && "text-center last:text-center", cutByEllipsis && "overflow-hidden text-ellipsis", identityWidthClass(cell.column, identityColumnId, tableLayout), compactTrailingClass(cell.column, trailingColumnId, identityColumnId, compactLayout), collapsed);
389
- const drawnOnlyInDetailRow = Boolean(collapsed) && shownLayout === "details" && !isPrimaryLink;
390
- if (drawnOnlyInDetailRow) {
391
- return _jsx(TableCell, { className: className }, cell.id);
392
- }
393
- const content = holdsCompactLine ? (_jsx(TableCompactLine, { ...compactLine, children: renderCell(cell) })) : (renderCell(cell));
394
- return (_jsxs(TableCell, { className: className, onFocus: cutByEllipsis ? titleWhenCut : undefined, onPointerEnter: cutByEllipsis ? titleWhenCut : undefined, children: [isPrimaryLink
395
- ? renderRowLink(primaryRowLinkProps({ href, label, wraps, content }))
396
- : content, cell.column.id === identityColumnId ? rowUnderName?.(row.original) : null] }, cell.id));
397
- }) }), rowEditor?.rowId === row.id ? (_jsx(TableRow, { "data-slot": "table-row-editor", className: "h-auto! [&>td]:bg-transparent!", children: _jsx(TableCell, { colSpan: visibleCells.length, className: "p-0 whitespace-normal", children: rowEditor.render(row.original) }) })) : null, detailRowShown ? (_jsx(TableDetailRow, { layout: compactLayout, colSpan: visibleCells.filter((cell) => !collapseClass(cell.column, primaryColumns, compactLayout)).length, facts: detailFacts() })) : null] }));
224
+ const visibleCells = row.getVisibleCells();
225
+ const cellContent = (cell) => {
226
+ const content = renderCell(cell);
227
+ return href && cell.column.id === primaryId
228
+ ? renderRowLink(primaryRowLinkProps({
229
+ href,
230
+ label,
231
+ wraps: cell.column.columnDef.meta?.wraps === true,
232
+ content,
233
+ }))
234
+ : content;
235
+ };
236
+ const editor = rowEditor?.rowId === row.id ? rowEditor.render(row.original) : null;
237
+ const record = entities ? (_jsx(RecordGridRow, { cells: visibleCells.map((cell) => ({
238
+ id: cell.id,
239
+ content: cellContent(cell),
240
+ meta: cell.column.columnDef.meta,
241
+ identity: cell.column.id === identityColumnId,
242
+ empty: isEmptyValue(cell.getValue()),
243
+ })), editor: editor, href: href })) : (_jsxs(TableRecordGroup, { interactive: Boolean(href), children: [_jsx(TableRow, { "data-href": href, className: cn(href && "cursor-pointer"), onClick: openRowOnClick(href), children: visibleCells.map((cell) => {
244
+ const meta = cell.column.columnDef.meta;
245
+ const wraps = meta?.wraps === true;
246
+ return (_jsx(TableCell, { className: cn(isNumericColumn(cell.column) && "text-right tabular-nums wrap-normal", wraps && "whitespace-normal last:text-left", meta?.centered === true && "text-center last:text-center"), children: cellContent(cell) }, cell.id));
247
+ }) }), editor === null ? null : (_jsx(TableRow, { "data-slot": "table-row-editor", className: "h-auto! [&>td]:bg-transparent!", children: _jsx(TableCell, { colSpan: visibleCells.length, className: "p-0 whitespace-normal", children: editor }) }))] }));
398
248
  return (_jsx(React.Fragment, { children: _jsx(ActionContextMenu, { ...(menu ?? NO_ROW_MENU), children: record }) }, row.id));
399
249
  };
400
250
  const absence = rows.length === 0 && (_jsx(EmptyState, { scope: "card", ...(filterValue && noMatchMessage && clearSearchLabel && filterColumn
@@ -407,13 +257,28 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
407
257
  },
408
258
  }
409
259
  : empty) }));
410
- const tableNode = (_jsxs(_Fragment, { children: [_jsx("div", { "aria-live": "polite", "data-slot": "data-table-absence", children: absence }), rows.length === 0 ? null : (_jsx(TableCompactLayoutOf, { layout: tableLayout, shown: shownLayout, children: _jsxs(Table, { "aria-label": tableLabel, className: "table-fixed text-body-sm", compactDetails: tableLayout, density: entities ? "comfortable" : "default", children: [_jsx(TableColgroup, { children: table.getVisibleLeafColumns().map((column) => {
411
- const size = sizeOf.get(column.id);
412
- return (_jsx(TableCol, { className: cn(collapseTrackClass(column, primaryColumns, compactLayout)), style: size === undefined ? undefined : { width: size } }, column.id));
413
- }) }), _jsx(TableHeader, { className: entities ? "sr-only" : undefined, children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => (_jsx(TableHead, { "aria-sort": sortOrder(header.column.getIsSorted()), "data-identity": header.column.id === identityColumnId ? "" : undefined, className: cn(isNumericColumn(header.column) && "text-right tabular-nums", header.column.columnDef.meta?.wraps === true && "last:text-left", header.column.columnDef.meta?.centered === true &&
414
- "text-center last:text-center", identityWidthClass(header.column, identityColumnId, tableLayout), compactTrailingClass(header.column, trailingColumnId, identityColumnId, compactLayout), collapseClass(header.column, primaryColumns, compactLayout)), children: header.isPlaceholder
415
- ? null
416
- : flexRender(header.column.columnDef.header, header.getContext()) }, header.id))) }, headerGroup.id))) }), _jsx(LayoutProbeLeadingRecords, { layout: tableLayout, probeRef: layoutProbeRef, children: sections.map((section) => (_jsxs(React.Fragment, { children: [section.heading === undefined ? null : (_jsx(GroupHeading, { span: table.getVisibleLeafColumns().length, children: section.heading })), section.rows.map(renderRow)] }, section.heading ?? ""))) })] }) }))] }));
260
+ const headings = table.getHeaderGroups().flatMap((headerGroup) => headerGroup.headers.map((header) => ({
261
+ id: header.id,
262
+ column: header.column,
263
+ content: header.isPlaceholder
264
+ ? null
265
+ : flexRender(header.column.columnDef.header, header.getContext()),
266
+ })));
267
+ const records = sections.map((section) => (_jsxs(React.Fragment, { children: [section.heading === undefined ? null : entities ? (_jsx(RecordGridGroupHeading, { children: section.heading })) : (_jsx(GroupHeading, { span: visibleColumns.length, children: section.heading })), section.rows.map(renderRow)] }, section.heading ?? "")));
268
+ const tableNode = (_jsxs(_Fragment, { children: [_jsx("div", { "aria-live": "polite", "data-slot": "data-table-absence", children: absence }), rows.length === 0 ? null : entities ? (_jsx(RecordGrid, { columns: visibleColumns.map((column) => ({
269
+ id: column.id,
270
+ meta: column.columnDef.meta,
271
+ identity: column.id === identityColumnId,
272
+ size: sizeOf.get(column.id),
273
+ })), headings: headings.map((heading) => ({
274
+ id: heading.id,
275
+ content: heading.content,
276
+ sort: sortOrder(heading.column.getIsSorted()),
277
+ })), label: tableLabel, children: records })) : (_jsxs(Table, { "aria-label": tableLabel, className: "text-body-sm", children: [_jsx(TableColgroup, { children: visibleColumns.map((column) => {
278
+ const size = sizeOf.get(column.id);
279
+ return (_jsx(TableCol, { style: size === undefined ? undefined : { width: size } }, column.id));
280
+ }) }), _jsx(TableHeader, { children: _jsx(TableRow, { children: headings.map((heading) => (_jsx(TableHead, { "aria-sort": sortOrder(heading.column.getIsSorted()), className: cn(isNumericColumn(heading.column) && "text-right tabular-nums", heading.column.columnDef.meta?.wraps === true && "last:text-left", heading.column.columnDef.meta?.centered === true &&
281
+ "text-center last:text-center"), children: heading.content }, heading.id))) }) }), records] }))] }));
417
282
  const actions = columnsControl || toolbarActions ? (_jsxs(_Fragment, { children: [columnsControl, toolbarActions] })) : null;
418
283
  const tools = toolbar ?? {
419
284
  label: filterPlaceholder ?? columnsLabel ?? tableLabel,
@@ -428,6 +293,6 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
428
293
  };
429
294
  const toolbarRow = filterToolbarHolds({ ...tools, actions }) ? (_jsx(FilterToolbar, { lead: "filters", ...tools, actions: actions })) : null;
430
295
  const pager = pageLabels && pagination !== false && (canPreviousPage || canNextPage) ? (_jsxs("div", { "aria-busy": waitingForPage || undefined, className: "flex items-center gap-3", children: [pagination && pagination.status ? (_jsx("span", { className: "tabular-nums", children: pagination.status })) : null, _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(PagerButton, { enabled: canPreviousPage && !waitingForPage, label: pageLabels.previous, link: pagination ? pagination.previousLink : undefined, onClick: goPreviousPage }), _jsx(PagerButton, { enabled: canNextPage && !waitingForPage, label: pageLabels.next, link: pagination ? pagination.nextLink : undefined, onClick: goNextPage })] })] })) : null;
431
- const card = (_jsx(TableCard, { surface: embedded ? "plain" : "resting", title: heading?.title, description: heading?.description, toolbar: heading ? toolbarRow : undefined, summary: summary, footerHint: footer, footer: pager, note: footerNote, children: tableNode }));
432
- return (_jsxs("div", { className: "min-w-0 w-full text-body-sm", "data-slot": "data-table", children: [notice ? _jsx(NoticeBanner, { ...notice, className: cn("mb-3", notice.className) }) : null, heading ? null : toolbarRow, wrapCard ? wrapCard(card) : card] }));
296
+ const card = (_jsx(TableCard, { surface: embedded ? "plain" : "resting", summary: summary, footerHint: footer, footer: pager, note: footerNote, children: tableNode }));
297
+ return (_jsxs("div", { className: "min-w-0 w-full text-body-sm", "data-slot": "data-table", children: [notice ? _jsx(NoticeBanner, { ...notice, className: cn("mb-3", notice.className) }) : null, heading ? (_jsxs("section", { className: "grid min-w-0 grid-cols-1 gap-3", "data-slot": "data-table-section", children: [_jsxs("div", { className: "grid min-w-0 gap-1", "data-slot": "data-table-heading", children: [_jsx("h2", { className: "text-heading-sm", children: heading.title }), heading.description ? (_jsx("p", { className: "text-sm text-muted-foreground", children: heading.description })) : null] }), toolbarRow, wrapCard ? wrapCard(card) : card] })) : (_jsxs(_Fragment, { children: [toolbarRow, wrapCard ? wrapCard(card) : card] }))] }));
433
298
  }
@@ -13,7 +13,7 @@ export type DrawerStep = {
13
13
  * A job in a drawer as a stack of cards, one per step, every step in sight from the start.
14
14
  *
15
15
  * @family Compositions
16
- * @when Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, as Vercel's Add Connection: what they chose, then the steps that remain.
16
+ * @when Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, which holds what they chose, then the steps that remain.
17
17
  * @instead Steps a person follows on a page are `NumberedSteps`; a setup whose steps replace each other around a wait is `FormDrawer` with `job="steps"`.
18
18
  * @behaviour One card per step, 16 px apart. Each card's first row is 20 px of mark and its title, 24 px in from its sides. What was chosen stands first with its own mark, and what the person should know about it under that; the current step has its number in ink, its content and its actions in a band under it. The orb may overhang its 20 px, since its drawn edge is inside its box.
19
19
  * @words A step's title is one or two words: *Review*, *Configure*.
@@ -8,7 +8,7 @@ function StepNumber({ index }) {
8
8
  * A job in a drawer as a stack of cards, one per step, every step in sight from the start.
9
9
  *
10
10
  * @family Compositions
11
- * @when Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, as Vercel's Add Connection: what they chose, then the steps that remain.
11
+ * @when Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, which holds what they chose, then the steps that remain.
12
12
  * @instead Steps a person follows on a page are `NumberedSteps`; a setup whose steps replace each other around a wait is `FormDrawer` with `job="steps"`.
13
13
  * @behaviour One card per step, 16 px apart. Each card's first row is 20 px of mark and its title, 24 px in from its sides. What was chosen stands first with its own mark, and what the person should know about it under that; the current step has its number in ink, its content and its actions in a band under it. The orb may overhang its 20 px, since its drawn edge is inside its box.
14
14
  * @words A step's title is one or two words: *Review*, *Configure*.
@@ -7,7 +7,7 @@ import type { LoadingWord } from "./button.js";
7
7
  * @family Menus
8
8
  * @when "Use Menu for a discoverable trigger that opens a list of actions on a single resource (a dots menu on a row, a dropdown on a primary entity)." (https://vercel.com/geist/menu) Ours: inside `@nadicodeai/ui` only, which does not export it, a menu no composition draws: a column chooser, a sort, a product's own choices in a submenu.
9
9
  * @instead "For right-click or long-press on a row, use `ContextMenu`. For global commands behind `⌘K`, use `CommandMenu`. For two related primary actions, use a split button rather than burying the secondary action." (https://vercel.com/geist/menu) Ours: those are `ContextMenu` and `CommandDialog`; two related primary actions stand side by side as buttons. A record's or a page's commands are `ActionMenu` or `PageActions`' menu, from data. The account's rows are `AccountMenu`. These four draw their rows with `DropdownMenuCommand`; the `DropdownMenu` family is used directly only for a choice menu such as a sort, with `DropdownMenuLink` for a destination row. A value to choose in a form is `Select`.
10
- * @behaviour "Dropdown menu opened via button. Supports typeahead and keyboard navigation." (https://vercel.com/geist/menu) "Open on click, not hover; hover-open menus collide with screen readers and trackpad scrolls." (https://vercel.com/geist/menu) "Position auto-flips based on window bounds; don’t hardcode a side that clips on narrow viewports." (https://vercel.com/geist/menu) "Close on item activation, Escape, and outside-click. Don’t auto-close on a hover-out." (https://vercel.com/geist/menu) "Use `MenuItemLocked` for permission-gated actions so the lock icon and disabled state explain why the row is inert." (https://vercel.com/geist/menu) Ours: that is `locked` with its `reason`. A solid floating surface, 200 px wide at least, 10 px from its trigger. A labelled trigger may end in a chevron; an icon trigger has none. Safe commands come first, each with its icon, groups split by a divider, the destructive command last. Colour sits on that command alone: its text is the error colour at rest and its row takes the soft error fill when highlighted; the panel, the other rows, a section title and the divider stay neutral, and a suffix or lock is muted, 12 px after the label. A command that cannot run stays in place with muted text, never dimmed, and says why in a muted line under its label, which a tap on a phone reads as well as a pointer, since a tooltip opens for the mouse only; a destructive one is muted, not red. Every row, of any kind, is 36 px in the default comfortable density (44 on touch; the compact density, `density="compact"`, tightens the padding to about 28 px on a fine pointer, and no menu in the product uses it) with `{rounded.sm}` corners and the pointer cursor, or the default one when it cannot be chosen, a row with a reason growing by its line, and a section title is a muted row of that height. The highlight is the row's fill alone: no text inside a row changes colour with it, and a row that cannot be chosen takes no highlight. A submenu goes one level deep at most (`one-submenu-level`), and never holds a destructive command.
10
+ * @behaviour "Dropdown menu opened via button. Supports typeahead and keyboard navigation." (https://vercel.com/geist/menu) "Open on click, not hover; hover-open menus collide with screen readers and trackpad scrolls." (https://vercel.com/geist/menu) "Position auto-flips based on window bounds; don’t hardcode a side that clips on narrow viewports." (https://vercel.com/geist/menu) "Close on item activation, Escape, and outside-click. Don’t auto-close on a hover-out." (https://vercel.com/geist/menu) "Use `MenuItemLocked` for permission-gated actions so the lock icon and disabled state explain why the row is inert." (https://vercel.com/geist/menu) Ours: that is `locked` with its `reason`. A solid floating surface, 200 px wide at least, 10 px from its trigger. A labelled trigger may end in a chevron; an icon trigger has none. Safe commands come first, each with its icon, groups split by a divider, the destructive command last. Colour sits on that command alone: its text is the error colour at rest and its row takes the soft error fill when highlighted; the panel, the other rows, a section title and the divider stay neutral, and a suffix or lock is muted, 12 px after the label. A command that cannot run stays in place with muted text, never dimmed, and a lock at its end; why is its description, read by a screen reader, never a line of text in the menu (owner, 2026-11-09); a destructive one is muted, not red. Every row, of any kind, is 36 px in the default comfortable density (44 on touch; the compact density, `density="compact"`, tightens the padding to about 28 px on a fine pointer, and no menu in the product uses it) with `{rounded.sm}` corners and the pointer cursor, or the default one when it cannot be chosen, and a section title is a muted row of that height. The highlight is the row's fill alone: no text inside a row changes colour with it, and a row that cannot be chosen takes no highlight. A submenu goes one level deep at most (`one-submenu-level`), and never holds a destructive command.
11
11
  * @words "Item children are Title Case `Verb + Noun` (`Rename Project`, `Duplicate Deployment`). Bare verbs like `Rename` or `Edit` are wrong outside obvious single-object context." (https://vercel.com/geist/menu) "End an item with `…` only when activating it opens a follow-up dialog (`Rename…`, `Transfer to Team…`)." (https://vercel.com/geist/menu) "Group destructive items at the bottom, separated by a divider, and keep the destructive copy as `Verb + Noun` (`Delete Project`, never bare `Delete`)." (https://vercel.com/geist/menu) "Section headers (`MenuSection title`) are Title Case, 1–2 words (`Workspace`, `Recent Projects`)." (https://vercel.com/geist/menu) "Cap a Menu around 10 items. Past that, group with `MenuSection` or move secondary actions to a settings page." (https://vercel.com/geist/menu) Ours: sentence case, not Title Case: "Remove mailbox", never a bare "Delete"; a section title is sentence case too. Italian runs a third longer; rows wrap, never truncate.
12
12
  * @access "Up/Down arrows move focus through items, Home/End jump to first/last, Enter or Space activates." (https://vercel.com/geist/menu) "Typeahead jumps to the next item whose label starts with the typed character; keep the visible label first so typeahead matches what the user sees." (https://vercel.com/geist/menu) "Return focus to the trigger on close so keyboard users keep their place in the row." (https://vercel.com/geist/menu) Ours: `role="menu"` named by its trigger, items `menuitem`. Unlike Geist, which skips disabled rows, arrows land on a command that cannot run so its reason is read; it is still never highlighted and never runs. A command's icon is hidden; the value it acts on and its reason are its description. `DropdownMenuCommand` requires its `icon`; a command that cannot run takes `disabledReason`, and one a person may not run is `locked` with its `reason`, so nothing is greyed without saying why.
13
13
  */
@@ -69,9 +69,10 @@ type CommandLink = {
69
69
  * icon takes the row's text colour; at the end it is muted, and red on a
70
70
  * destructive command. A command that
71
71
  * cannot run now takes `disabledReason` and stays in place with its text muted
72
- * and the reason under its label, and a destructive one is muted too,
73
- * not red. A command a person may not run is `locked`: inert, with a lock at
74
- * the end and the `reason` it is inert, which a locked command must give. A
72
+ * and a lock at its end, and a destructive one is muted too, not red. A
73
+ * command a person may not run is `locked`, drawn the same with the `reason` it
74
+ * is inert, which a locked command must give. Either reason is the item's
75
+ * description, read by a screen reader, never a line of text in the menu. A
75
76
  * command that starts work is `loading`: it says `loadingLabel` in its label's
76
77
  * place, stays focusable and ignores a second press, with no dimming. A
77
78
  * `link` is drawn as a link menu item, like `DropdownMenuLink`.
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOvD;;;;;;;;;GASG;AACH,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,qBAEhF;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,qBAEnE;AAED,iBAAS,mBAAmB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,qBAErE;AAED,iBAAS,mBAAmB,CAAC,EAC3B,KAAe,EACf,WAAe,EACf,OAAuB,EACvB,IAAe,EACf,UAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa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