@nadicodeai/ui 12.1.224 → 12.1.226

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 (193) 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 +2 -2
  6. package/dist/components/agent-card.js +2 -2
  7. package/dist/components/agent-profile.d.ts +2 -83
  8. package/dist/components/agent-profile.d.ts.map +1 -1
  9. package/dist/components/agent-profile.js +0 -46
  10. package/dist/components/badge.d.ts +2 -1
  11. package/dist/components/badge.d.ts.map +1 -1
  12. package/dist/components/badge.js +2 -1
  13. package/dist/components/brand.d.ts +1 -1
  14. package/dist/components/brand.d.ts.map +1 -1
  15. package/dist/components/brand.js +21 -2
  16. package/dist/components/card.d.ts +1 -1
  17. package/dist/components/card.js +1 -1
  18. package/dist/components/catalog-card.d.ts +1 -2
  19. package/dist/components/catalog-card.d.ts.map +1 -1
  20. package/dist/components/catalog-card.js +1 -2
  21. package/dist/components/chart-card.d.ts +2 -2
  22. package/dist/components/chart-card.d.ts.map +1 -1
  23. package/dist/components/chart-card.js +1 -1
  24. package/dist/components/check-counts.d.ts +3 -5
  25. package/dist/components/check-counts.d.ts.map +1 -1
  26. package/dist/components/check-counts.js +5 -7
  27. package/dist/components/collection-page.d.ts +6 -7
  28. package/dist/components/collection-page.d.ts.map +1 -1
  29. package/dist/components/collection-page.js +3 -3
  30. package/dist/components/data-table.d.ts +13 -21
  31. package/dist/components/data-table.d.ts.map +1 -1
  32. package/dist/components/data-table.js +57 -192
  33. package/dist/components/drawer-steps.d.ts +1 -1
  34. package/dist/components/drawer-steps.js +1 -1
  35. package/dist/components/dropdown-menu.d.ts +5 -4
  36. package/dist/components/dropdown-menu.d.ts.map +1 -1
  37. package/dist/components/dropdown-menu.js +7 -6
  38. package/dist/components/empty-state.d.ts +4 -1
  39. package/dist/components/empty-state.d.ts.map +1 -1
  40. package/dist/components/empty-state.js +5 -4
  41. package/dist/components/figure-row.d.ts +58 -0
  42. package/dist/components/figure-row.d.ts.map +1 -0
  43. package/dist/components/figure-row.js +41 -0
  44. package/dist/components/form-dialog.d.ts +1 -1
  45. package/dist/components/form-dialog.js +1 -1
  46. package/dist/components/form-drawer.d.ts +2 -2
  47. package/dist/components/form-drawer.js +2 -2
  48. package/dist/components/gauge.d.ts +2 -0
  49. package/dist/components/gauge.d.ts.map +1 -1
  50. package/dist/components/gauge.js +2 -0
  51. package/dist/components/icon-tile.d.ts +27 -0
  52. package/dist/components/icon-tile.d.ts.map +1 -0
  53. package/dist/components/icon-tile.js +18 -0
  54. package/dist/components/identity-mark.d.ts +3 -2
  55. package/dist/components/identity-mark.d.ts.map +1 -1
  56. package/dist/components/identity-mark.js +3 -10
  57. package/dist/components/kpi-card.d.ts +23 -6
  58. package/dist/components/kpi-card.d.ts.map +1 -1
  59. package/dist/components/kpi-card.js +11 -7
  60. package/dist/components/library-shelf.d.ts +1 -1
  61. package/dist/components/library-shelf.js +1 -1
  62. package/dist/components/menu-choice-row.d.ts +1 -2
  63. package/dist/components/menu-choice-row.d.ts.map +1 -1
  64. package/dist/components/menu-choice-row.js +1 -2
  65. package/dist/components/notice-banner.d.ts +1 -1
  66. package/dist/components/notice-banner.js +1 -1
  67. package/dist/components/numbered-steps.d.ts +1 -1
  68. package/dist/components/numbered-steps.js +1 -1
  69. package/dist/components/object-page.d.ts +33 -11
  70. package/dist/components/object-page.d.ts.map +1 -1
  71. package/dist/components/object-page.js +16 -11
  72. package/dist/components/object-workspace.d.ts +2 -2
  73. package/dist/components/object-workspace.js +2 -2
  74. package/dist/components/overview-page.d.ts +6 -1
  75. package/dist/components/overview-page.d.ts.map +1 -1
  76. package/dist/components/page-actions.d.ts +16 -15
  77. package/dist/components/page-actions.d.ts.map +1 -1
  78. package/dist/components/page-actions.js +9 -7
  79. package/dist/components/page-frame.d.ts +1 -1
  80. package/dist/components/page-frame.js +1 -1
  81. package/dist/components/page-header.d.ts +12 -9
  82. package/dist/components/page-header.d.ts.map +1 -1
  83. package/dist/components/page-header.js +11 -8
  84. package/dist/components/product-shell.d.ts +10 -13
  85. package/dist/components/product-shell.d.ts.map +1 -1
  86. package/dist/components/product-shell.js +9 -12
  87. package/dist/components/progress-checklist.d.ts +4 -4
  88. package/dist/components/progress-checklist.d.ts.map +1 -1
  89. package/dist/components/progress-checklist.js +4 -14
  90. package/dist/components/progress.d.ts +3 -1
  91. package/dist/components/progress.d.ts.map +1 -1
  92. package/dist/components/progress.js +3 -1
  93. package/dist/components/reading-column.d.ts +2 -2
  94. package/dist/components/reading-column.js +2 -2
  95. package/dist/components/record-commands.d.ts +15 -7
  96. package/dist/components/record-commands.d.ts.map +1 -1
  97. package/dist/components/record-commands.js +26 -19
  98. package/dist/components/record-identity.d.ts +4 -2
  99. package/dist/components/record-identity.d.ts.map +1 -1
  100. package/dist/components/record-identity.js +3 -4
  101. package/dist/components/record-list.d.ts +25 -27
  102. package/dist/components/record-list.d.ts.map +1 -1
  103. package/dist/components/record-list.js +31 -79
  104. package/dist/components/record-sheet.d.ts +1 -1
  105. package/dist/components/record-sheet.js +1 -1
  106. package/dist/components/row-edit-form.d.ts +1 -1
  107. package/dist/components/row-edit-form.js +1 -1
  108. package/dist/components/settings-facts.d.ts +5 -6
  109. package/dist/components/settings-facts.d.ts.map +1 -1
  110. package/dist/components/settings-facts.js +3 -4
  111. package/dist/components/settings-page.d.ts +2 -2
  112. package/dist/components/settings-page.js +2 -2
  113. package/dist/components/settings-section.d.ts +10 -5
  114. package/dist/components/settings-section.d.ts.map +1 -1
  115. package/dist/components/settings-section.js +8 -4
  116. package/dist/components/sheet.d.ts +1 -1
  117. package/dist/components/sheet.js +1 -1
  118. package/dist/components/sidebar-sections.d.ts +4 -4
  119. package/dist/components/sidebar-sections.d.ts.map +1 -1
  120. package/dist/components/sidebar-sections.js +3 -3
  121. package/dist/components/sidebar.d.ts +1 -1
  122. package/dist/components/sidebar.js +1 -1
  123. package/dist/components/status-badge.d.ts +15 -12
  124. package/dist/components/status-badge.d.ts.map +1 -1
  125. package/dist/components/status-badge.js +15 -12
  126. package/dist/components/step-cards.d.ts +1 -2
  127. package/dist/components/step-cards.d.ts.map +1 -1
  128. package/dist/components/step-cards.js +1 -2
  129. package/dist/components/switch.d.ts +4 -2
  130. package/dist/components/switch.d.ts.map +1 -1
  131. package/dist/components/switch.js +9 -3
  132. package/dist/components/table-card.d.ts +2 -3
  133. package/dist/components/table-card.d.ts.map +1 -1
  134. package/dist/components/table-card.js +2 -3
  135. package/dist/components/table.d.ts +6 -24
  136. package/dist/components/table.d.ts.map +1 -1
  137. package/dist/components/table.js +11 -23
  138. package/dist/components/tabs-nav.d.ts +2 -2
  139. package/dist/components/tabs-nav.js +2 -2
  140. package/dist/components/text-link.d.ts +5 -5
  141. package/dist/components/text-link.js +5 -5
  142. package/dist/index.d.ts +2 -0
  143. package/dist/index.d.ts.map +1 -1
  144. package/dist/index.js +2 -0
  145. package/dist/internal/badge-frame.d.ts +1 -1
  146. package/dist/internal/badge-frame.d.ts.map +1 -1
  147. package/dist/internal/badge-frame.js +1 -0
  148. package/dist/internal/catalog-list.d.ts.map +1 -1
  149. package/dist/internal/catalog-list.js +1 -1
  150. package/dist/internal/collection-rail.d.ts +2 -2
  151. package/dist/internal/collection-rail.d.ts.map +1 -1
  152. package/dist/internal/empty.d.ts +1 -1
  153. package/dist/internal/empty.d.ts.map +1 -1
  154. package/dist/internal/empty.js +1 -2
  155. package/dist/internal/fieldset-disabled.d.ts +6 -0
  156. package/dist/internal/fieldset-disabled.d.ts.map +1 -0
  157. package/dist/internal/fieldset-disabled.js +7 -0
  158. package/dist/internal/final-focus.d.ts +2 -2
  159. package/dist/internal/final-focus.js +2 -2
  160. package/dist/internal/icon-tile-frame.d.ts +16 -0
  161. package/dist/internal/icon-tile-frame.d.ts.map +1 -0
  162. package/dist/internal/icon-tile-frame.js +21 -0
  163. package/dist/internal/record-grid.d.ts +58 -0
  164. package/dist/internal/record-grid.d.ts.map +1 -0
  165. package/dist/internal/record-grid.js +79 -0
  166. package/dist/internal/settings-save.d.ts.map +1 -1
  167. package/dist/internal/settings-save.js +2 -1
  168. package/dist/showcase/specimens/actions.d.ts.map +1 -1
  169. package/dist/showcase/specimens/actions.js +1 -1
  170. package/dist/showcase/specimens/charts.d.ts.map +1 -1
  171. package/dist/showcase/specimens/charts.js +1 -1
  172. package/dist/showcase/specimens/compositions.d.ts +0 -2
  173. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  174. package/dist/showcase/specimens/compositions.js +3 -9
  175. package/dist/showcase/specimens/data.d.ts +1 -0
  176. package/dist/showcase/specimens/data.d.ts.map +1 -1
  177. package/dist/showcase/specimens/data.js +7 -4
  178. package/dist/showcase/specimens/index.d.ts +2 -1
  179. package/dist/showcase/specimens/index.d.ts.map +1 -1
  180. package/dist/showcase/specimens/status.d.ts +1 -0
  181. package/dist/showcase/specimens/status.d.ts.map +1 -1
  182. package/dist/showcase/specimens/status.js +4 -2
  183. package/dist/showcase/usage.generated.d.ts +1 -1
  184. package/dist/showcase/usage.generated.d.ts.map +1 -1
  185. package/dist/showcase/usage.generated.js +102 -91
  186. package/dist/standalone/index.js +1 -1
  187. package/package.json +2 -2
  188. package/dist/components/table-layouts.d.ts +0 -110
  189. package/dist/components/table-layouts.d.ts.map +0 -1
  190. package/dist/components/table-layouts.js +0 -125
  191. package/dist/internal/table-compact-line.d.ts +0 -57
  192. package/dist/internal/table-compact-line.d.ts.map +0 -1
  193. package/dist/internal/table-compact-line.js +0 -119
@@ -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,CAAC,KAAK,CAAC,KAAK,GAC1B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG;IACtF,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACrC,qBAqBF;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,qBAEjE;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,UAAU,CAAC,KA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AAK,qBASpF;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBASlF;AAED,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,CAAC"}
@@ -12,7 +12,7 @@ import { ChevronRightIcon, CheckIcon, LockIcon } from "lucide-react";
12
12
  * @family Menus
13
13
  * @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.
14
14
  * @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`.
15
- * @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.
15
+ * @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.
16
16
  * @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.
17
17
  * @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.
18
18
  */
@@ -50,9 +50,10 @@ function DropdownMenuLink({ className, closeOnClick = true, inset, ...props }) {
50
50
  * icon takes the row's text colour; at the end it is muted, and red on a
51
51
  * destructive command. A command that
52
52
  * cannot run now takes `disabledReason` and stays in place with its text muted
53
- * and the reason under its label, and a destructive one is muted too,
54
- * not red. A command a person may not run is `locked`: inert, with a lock at
55
- * the end and the `reason` it is inert, which a locked command must give. A
53
+ * and a lock at its end, and a destructive one is muted too, not red. A
54
+ * command a person may not run is `locked`, drawn the same with the `reason` it
55
+ * is inert, which a locked command must give. Either reason is the item's
56
+ * description, read by a screen reader, never a line of text in the menu. A
56
57
  * command that starts work is `loading`: it says `loadingLabel` in its label's
57
58
  * place, stays focusable and ignores a second press, with no dimming. A
58
59
  * `link` is drawn as a link menu item, like `DropdownMenuLink`.
@@ -65,7 +66,7 @@ function DropdownMenuCommand({ icon, iconEnd = false, children, className, detai
65
66
  const describedBy = [detail ? `${id}-detail` : null, why ? `${id}-reason` : null]
66
67
  .filter(Boolean)
67
68
  .join(" ");
68
- const end = locked ? (_jsx(LockIcon, {})) : iconEnd ? (_jsxs(_Fragment, { children: [suffix, _jsx("span", { "aria-hidden": "true", className: "flex h-5 items-center justify-center in-data-[variant=destructive]:text-destructive-soft-foreground", children: icon })] })) : (suffix);
69
+ const end = inert ? (_jsx(LockIcon, {})) : iconEnd ? (_jsxs(_Fragment, { children: [suffix, _jsx("span", { "aria-hidden": "true", className: "flex h-5 items-center justify-center in-data-[variant=destructive]:text-destructive-soft-foreground", children: icon })] })) : (suffix);
69
70
  const hasLabelledParts = describedBy !== "" || Boolean(end);
70
71
  const row = {
71
72
  "aria-label": accessibleName,
@@ -75,7 +76,7 @@ function DropdownMenuCommand({ icon, iconEnd = false, children, className, detai
75
76
  "aria-disabled": busy || inert || undefined,
76
77
  closeOnClick: busy ? false : props.closeOnClick,
77
78
  className: cn(className, "h-auto w-full min-w-0 items-start justify-start gap-2 text-left font-normal whitespace-normal data-disabled:pointer-events-auto"),
78
- children: (_jsxs(_Fragment, { children: [iconEnd ? null : (_jsx("span", { "aria-hidden": "true", className: "flex h-5 shrink-0 items-center justify-center text-current", children: icon })), _jsxs("span", { className: "grid min-w-0 flex-1 gap-0.5 wrap-break-word", children: [_jsx("span", { id: `${id}-label`, children: loadingLabel === undefined ? (children) : (_jsx(PendingLabel, { pending: busy, pendingLabel: loadingLabel, children: children })) }), detail ? (_jsx("span", { className: "font-label-mono text-label-mono text-muted-foreground", "data-slot": "dropdown-menu-detail", id: `${id}-detail`, children: detail })) : null, why ? (_jsx("span", { className: "text-body-sm text-muted-foreground", "data-slot": "dropdown-menu-reason", id: `${id}-reason`, children: why })) : null] }), end ? (_jsx("span", { "aria-hidden": locked ? true : undefined, className: "ml-auto flex h-5 shrink-0 items-center gap-2 pl-3 text-muted-foreground", "data-slot": "dropdown-menu-suffix", children: end })) : null] })),
79
+ children: (_jsxs(_Fragment, { children: [iconEnd ? null : (_jsx("span", { "aria-hidden": "true", className: "flex h-5 shrink-0 items-center justify-center text-current", children: icon })), _jsxs("span", { className: "grid min-w-0 flex-1 gap-0.5 wrap-break-word", children: [_jsx("span", { id: `${id}-label`, children: loadingLabel === undefined ? (children) : (_jsx(PendingLabel, { pending: busy, pendingLabel: loadingLabel, children: children })) }), detail ? (_jsx("span", { className: "font-label-mono text-label-mono text-muted-foreground", "data-slot": "dropdown-menu-detail", id: `${id}-detail`, children: detail })) : null, why ? (_jsx("span", { className: "sr-only", "data-slot": "dropdown-menu-reason", id: `${id}-reason`, children: why })) : null] }), end ? (_jsx("span", { "aria-hidden": inert ? true : undefined, className: "ml-auto flex h-5 shrink-0 items-center gap-2 pl-3 text-muted-foreground", "data-slot": "dropdown-menu-suffix", children: end })) : null] })),
79
80
  };
80
81
  const linkElement = link ??
81
82
  (React.isValidElement(props.render) && props.render.props.href !== undefined
@@ -2,6 +2,7 @@ import { type ReactElement } from "react";
2
2
  import { type EmptyScope } from "../internal/empty.js";
3
3
  import { type CopyButtonProps } from "./copy-button.js";
4
4
  import type { EmptyArt } from "./empty-art.js";
5
+ import type { IconComponent } from "./identity-mark.js";
5
6
  import { type PageCommand, type PagePrimaryCommand } from "./page-actions.js";
6
7
  import { type ResolvedMessage } from "./product-message.js";
7
8
  /** A link that leaves for the product's documentation: a command drawn from the product's router link, so it carries `link`, never `onClick`. */
@@ -29,6 +30,8 @@ export type EmptyStateProps = {
29
30
  } | {
30
31
  kind: "nothingYet";
31
32
  message: string;
33
+ /** The kind of what is missing, as a 32 px tile above the sentence on a page or a region; a card or a line draws the sentence alone. */
34
+ icon?: IconComponent;
32
35
  } | {
33
36
  kind: "noResults";
34
37
  message: string;
@@ -61,7 +64,7 @@ export type EmptyStateKind<K extends EmptyStateProps["kind"]> = Omit<Extract<Emp
61
64
  * @family Feedback
62
65
  * @when "Fill spaces when no content has been added yet, or is temporarily empty due to the nature of the feature and should be designed to prevent confusion." (https://vercel.com/geist/empty-state) "A card used to communicate an error state with a title and message." (https://vercel.com/geist/error-card) "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) "Render the permission and tier-denial variants full-page when the user lands on a route they can’t view. Use a `Note` only when one tile inside an otherwise-accessible page is gated." (https://vercel.com/geist/empty-state) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: it is the one owner of an absence in every product: nothing else draws one, and it has no presentation option, so each kind looks the same everywhere. A composition takes its absence as a prop (`empty`, `noMatch` or `failed`), as `DataTable` takes `empty`. Pick the `kind` by the cause. `firstUse` is the blank slate and the informational variant: no record was ever made. `nothingYet`: empty now and it fills by itself. `noResults`: the search or filter found nothing. `cleared`: the work is done. `denied`: this viewer's role or plan does not open it. `failed`: the read failed; it is the Error and the Error Card, a failure inside a card with `scope="card"` and one that stands alone as a block with `page` or `region`. There is no educational kind.
63
66
  * @instead "Don’t put critical persistent warnings here. Empty states vanish when the list populates; persistent warnings belong in `Note` or the page header." (https://vercel.com/geist/empty-state) "Pick `toasts.error()` for transient action failures (`Couldn’t save settings. Try again.`) and the `error` prop on `Input` for field-level validation. Don’t replace either with this block." (https://vercel.com/geist/error) Ours: `Note` is `MessageNotice` or `NoticeBanner`, `toasts.error()` is `showMessageToast` with the tone `error`, and the `error` prop on `Input` is `FieldError`. Rows still loading are skeleton rows. A failure of one record's action is that record's row message. One gated tile on an open page is a `MessageNotice`, so `denied` takes `page` or `region`, never `card`.
64
- * @behaviour "The CTA must be a real `Button` or `Link`, not an `onClick` div, so it joins the tab order and exposes a role." (https://vercel.com/geist/empty-state) "Cap at one primary CTA, plus one secondary when the first action could legitimately be one of two paths (`Import Repository` and `Deploy Template`). Three CTAs is a smell." (https://vercel.com/geist/empty-state) "Don’t auto-launch a tour from the educational variant; pair `Start Tour` with `Skip`." (https://vercel.com/geist/empty-state) "The recovery action must do something concrete: a `Try Again` button when the operation is retry-safe, a named verb (`Reconnect GitHub`, `Update Payment Method`) when it isn’t." (https://vercel.com/geist/error) "Don’t auto-retry in the background; the user came to this surface to decide." (https://vercel.com/geist/error) "For full-page route errors (`error.tsx`), return focus to the `Try Again` button on appearance so a keyboard user can retry without hunting for it." (https://vercel.com/geist/error) "Always pair platform or system errors with a stable identifier (request ID `x-vercel-id`, deployment ID `dpl_…`, run ID, trace ID). Validation and permission denials are user-state, not system, and don’t need an ID." (https://vercel.com/geist/error) "Render the stable ID on a monospace sub-line under a collapsed `<details>` so the user can copy-paste it into a support thread." (https://vercel.com/geist/error) Ours: `firstUse` has the one picture, one action and at most one docs link under it; there is no educational kind, so no tour. A failure shows at most two of its message's actions, Retry first, and moves focus to the first one when it fills a page (`scope="page"`); its `reference` is the collapsed Disclosure holding the monospace identifier and a copy button. A page or a region stands on a resting card, inside a card it takes none, and a collection always passes `card`; a card that lists a few items, as a collection's rail does, passes `line`, where `nothingYet` and `cleared` are one 44 px row like an item: the message at the left, after the cleared check at 16 px. Every kind that carries a title, `failed` excepted, draws it the same way: a mark or picture, a 16 px medium title, one or two muted 14 px lines, 24 px apart, centred, the lines no wider than 340 px. `cleared` and `denied` carry a bordered 54 px tile with a muted icon, never a hue; the picture is `firstUse`'s alone. The action is the filled primary button, as Vercel's Connect draws Create Connector in its empty card; the docs link is muted. A page or a region is padded 48 px above and below and 70 px at the sides (a first use narrows to 24 px under 640 px for its picture). `failed` is the one hued kind: on a page or a region its ground, line, mark and text are all in the error colour, with a 16 px regular title, 16 px padding and 8 px between its parts, and the buttons stay neutral; inside a card it takes the text and mark colour alone, because the card owns the edge and a second one would double it. A first use's picture is 240 × 176 px on a page and 200 × 144 px in a region or a card. Required: `firstUse` and `denied` take a title and a line, `firstUse` its picture, `failed` the catalogue message whose title is always drawn.
67
+ * @behaviour "The CTA must be a real `Button` or `Link`, not an `onClick` div, so it joins the tab order and exposes a role." (https://vercel.com/geist/empty-state) "Cap at one primary CTA, plus one secondary when the first action could legitimately be one of two paths (`Import Repository` and `Deploy Template`). Three CTAs is a smell." (https://vercel.com/geist/empty-state) "Don’t auto-launch a tour from the educational variant; pair `Start Tour` with `Skip`." (https://vercel.com/geist/empty-state) "The recovery action must do something concrete: a `Try Again` button when the operation is retry-safe, a named verb (`Reconnect GitHub`, `Update Payment Method`) when it isn’t." (https://vercel.com/geist/error) "Don’t auto-retry in the background; the user came to this surface to decide." (https://vercel.com/geist/error) "For full-page route errors (`error.tsx`), return focus to the `Try Again` button on appearance so a keyboard user can retry without hunting for it." (https://vercel.com/geist/error) "Always pair platform or system errors with a stable identifier (request ID `x-vercel-id`, deployment ID `dpl_…`, run ID, trace ID). Validation and permission denials are user-state, not system, and don’t need an ID." (https://vercel.com/geist/error) "Render the stable ID on a monospace sub-line under a collapsed `<details>` so the user can copy-paste it into a support thread." (https://vercel.com/geist/error) Ours: `firstUse` has the one picture, one action and at most one docs link under it; there is no educational kind, so no tour. A failure shows at most two of its message's actions, Retry first, and moves focus to the first one when it fills a page (`scope="page"`); its `reference` is the collapsed Disclosure holding the monospace identifier and a copy button. A page or a region stands on a resting card, inside a card it takes none, and a collection always passes `card`; a card that lists a few items, as a collection's rail does, passes `line`, where `nothingYet` and `cleared` are one 44 px row like an item: the message at the left, after the cleared check at 16 px. A `nothingYet` on a page or a region may take `icon`, drawn as a 32 px `IconTile` above its sentence; inside a card or a line it is the sentence alone. Every kind that carries a title, `failed` excepted, draws it the same way: a mark or picture, a 16 px medium title, one or two muted 14 px lines, 24 px apart, centred, the lines no wider than 340 px. `cleared` and `denied` carry a neutral 54 px `IconTile`, never a hue; the picture is `firstUse`'s alone. The action is the filled primary button; the docs link is muted. A page or a region is padded 48 px above and below and 70 px at the sides (a first use narrows to 24 px under 640 px for its picture). `failed` is the one hued kind: on a page or a region its ground, line, mark and text are all in the error colour, with a 16 px regular title, 16 px padding and 8 px between its parts, and the buttons stay neutral; inside a card it takes the text and mark colour alone, because the card owns the edge and a second one would double it. A first use's picture is 240 × 176 px on a page and 200 × 144 px in a region or a card. Required: `firstUse` and `denied` take a title and a line, `firstUse` its picture, `failed` the catalogue message whose title is always drawn.
65
68
  * @words "`title` is Title Case (`No Logs Match Your Filter`); `description` is sentence case and adds new information instead of restating the title." (https://vercel.com/geist/empty-state) Ours: a title is sentence case and names what is missing ("No mailboxes yet"), not Title Case; a quiet line is one sentence. "Quote a single typed query verbatim with curly quotes: `No logs match “${query}”. Clear the filter to see all logs.` For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing." (https://vercel.com/geist/empty-state) "Onboarding bodies name the next action that creates the first item: `Push to your Git repository to create your first one.` Tier-gated bodies follow `{Feature value} with the {Plan} plan.`" (https://vercel.com/geist/empty-state) "Error variant pairs the body with a copyable request ID and a `Try Again` button." (https://vercel.com/geist/empty-state) "CTA labels are Title Case `Verb + Noun`. Never `Get Started`, `Continue`, or `OK`." (https://vercel.com/geist/empty-state) Ours: an action label is sentence case, verb and noun ("Clear filters", "New Agent"), never "Get started" or "OK". "State what happened and what to do next, in that order. Cut apologetic preambles (`Unfortunately`, `Oops`, `We’re sorry`)." (https://vercel.com/geist/error) "Use `Couldn’t` or `Can’t` for user-state errors (`Couldn’t verify your passkey. Try again.`); use `Failed to` for system or infra errors that mirror CLI output (`Build failed. Bundle exceeds 50 MB.`). `Unable to` is banned." (https://vercel.com/geist/error) "Don’t fall back to `Something Went Wrong` as a title; name the resource that failed (`Couldn’t Load Page`, `Couldn’t Load Deployments`)." (https://vercel.com/geist/error) "Never humor an error. Users hitting an error are frustrated; insincere copy makes it worse." (https://vercel.com/geist/error) Ours: a failure is the catalogue's message, never a string of the component's own, and its title names what failed to load.
66
69
  * @access "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) "When the error appears asynchronously (after a failed fetch), wrap the region in `aria-live="polite"` so it’s announced. Reserve `aria-live="assertive"` for true blocking errors that interrupt input." (https://vercel.com/geist/error) Ours: a title, a failure's included, is a heading, level 2 or, inside a titled section, 3. The picture is decorative. A failure's message is a `role="status"` line, polite, never an assertive alert, because it arrives after a read, not in the middle of input. `nothingYet`, `noResults` and `cleared` are plain lines with no live role of their own: the wrapper that stays mounted while rows and absence swap (the `aria-live="polite"` region, such as `SkeletonRegion`) announces them, once. Beside a table, an absence stands outside the semantic table body, never as a row of it, in that same wrapper.
67
70
  */
@@ -1 +1 @@
1
- {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/components/empty-state.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAqC,MAAM,OAAO,CAAC;AAE7E,OAAO,EAOL,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE1E,iJAAiJ;AACjJ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AA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