@nadicodeai/ui 12.1.266 → 12.1.268

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.
@@ -19,7 +19,7 @@ function LanguageSwitcher({ label, onChange, options, value }) {
19
19
  return (_jsxs(Select, { value: value, onValueChange: (next) => {
20
20
  if (next !== null)
21
21
  onChange(next);
22
- }, children: [_jsx(SelectTrigger, { "aria-label": label, size: "sm", className: "w-auto bg-transparent px-2 text-label-sm text-muted-foreground shadow-none hover:bg-accent focus-visible:shadow-[0_0_0_2px_var(--ring)] data-popup-open:bg-accent [&_svg]:size-4", children: _jsx(SelectValue, { children: options.find((option) => option.value === value)?.label }) }), _jsx(SelectContent, { children: _jsx(SelectGroup, { children: options.map((option) => (_jsx(SelectItem, { value: option.value, children: option.label }, option.value))) }) })] }));
22
+ }, children: [_jsx(SelectTrigger, { "aria-label": label, size: "sm", className: "w-auto bg-transparent px-2 text-label-sm text-muted-foreground md:text-label-sm shadow-none hover:bg-accent focus-visible:shadow-[0_0_0_2px_var(--ring)] data-popup-open:bg-accent [&_svg]:size-4", children: _jsx(SelectValue, { children: options.find((option) => option.value === value)?.label }) }), _jsx(SelectContent, { children: _jsx(SelectGroup, { children: options.map((option) => (_jsx(SelectItem, { value: option.value, children: option.label }, option.value))) }) })] }));
23
23
  }
24
24
  function LanguageTabs({ label, onChange, options, value }) {
25
25
  return (_jsx(Tabs, { value: value, onValueChange: (next) => onChange(String(next)), className: "min-w-0", children: _jsx(TabsList, { "aria-label": label, children: options.map((option) => (_jsx(TabsTrigger, { value: option.value, children: option.label }, option.value))) }) }));
@@ -34,5 +34,5 @@ export function CollectionToolbar({ label, controls, search, actions, status, su
34
34
  const drawn = surface === "glass" && (controls || actions) ? "glass" : "plain";
35
35
  return (_jsxs("div", { "data-slot": "collection-toolbar", ...props, role: "toolbar", "aria-label": label, "data-surface": drawn, className: `flex min-w-0 flex-wrap items-center gap-2 ${drawn === "glass" ? ON_PAGE : PLAIN} ${IN_CARD}`, children: [controls ? (_jsx("div", { "data-slot": "collection-toolbar-controls", className: "flex min-w-0 max-w-full flex-wrap items-center gap-2 max-sm:contents", children: controls })) : null, search || actions ? (_jsxs("div", { "data-slot": "collection-toolbar-end", className: controls
36
36
  ? cn("flex min-w-0 items-center gap-2 max-sm:contents", search ? (actions ? "flex-1 basis-80" : "flex-1 basis-64") : "ml-auto")
37
- : "contents", children: [search ? (_jsx("div", { "data-slot": "collection-toolbar-search", className: "min-w-0 flex-1 basis-64 max-sm:-order-1 max-sm:basis-full", children: search })) : null, actions ? (_jsx("div", { "data-slot": "collection-toolbar-actions", className: "ml-auto flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-2", children: actions })) : null] })) : null, status ? _jsx("div", { className: "absolute right-0 bottom-0", children: status }) : null] }));
37
+ : "contents", children: [search ? (_jsx("div", { "data-slot": "collection-toolbar-search", className: "min-w-0 flex-1 basis-64 max-sm:-order-1 max-sm:basis-full", children: search })) : null, actions ? (_jsx("div", { "data-slot": "collection-toolbar-actions", className: "ml-auto flex min-w-0 max-w-full shrink-0 flex-wrap items-center justify-end gap-2", children: actions })) : null] })) : null, status ? _jsx("div", { className: "absolute right-0 bottom-0", children: status }) : null] }));
38
38
  }
@@ -216,7 +216,7 @@ export declare function columnMenuLabel<TData extends RowData, TValue extends Ce
216
216
  * @instead “For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table)
217
217
  * “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table)
218
218
  * Ours: Geist's `Entity` is a `RecordList` row: a row that is one thing with a name a person opens, such as a deployment, a Customer, a Member account or an Agent, is a `RecordList`'s, however many facts it shows (owner, 2026-11-08). Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
219
- * @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. 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. A column's `footer` is its total: when a shown column has one, a row of totals closes the table under a rule, in ink, medium text, each total under its own column, a figure trailing in tabular digits like the column's values, the first column's footer naming the row, and a column with no total leaving its cell empty. One total with no column of its own is `summary`, under the table at its trailing edge, where it reads as the last column's; a total of another column is that column's `footer` (nadicode decision). Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
219
+ * @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. A column that wraps (`meta.wraps`) gives way first and shrinks toward its longest word; its definition's `minSize` is the floor it keeps, so a narrow card scrolls the table sideways instead of breaking a sentence one word per line. 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. 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. A column's `footer` is its total: when a shown column has one, a row of totals closes the table under a rule, in ink, medium text, each total under its own column, a figure trailing in tabular digits like the column's values, the first column's footer naming the row, and a column with no total leaving its cell empty. One total with no column of its own is `summary`, under the table at its trailing edge, where it reads as the last column's; a total of another column is that column's `footer` (nadicode decision). Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
220
220
  * “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)
221
221
  * “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)
222
222
  * Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
@@ -119,7 +119,7 @@ function GroupHeading({ children, span }) {
119
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)
120
120
  * “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table)
121
121
  * Ours: Geist's `Entity` is a `RecordList` row: a row that is one thing with a name a person opens, such as a deployment, a Customer, a Member account or an Agent, is a `RecordList`'s, however many facts it shows (owner, 2026-11-08). 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. 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. A column's `footer` is its total: when a shown column has one, a row of totals closes the table under a rule, in ink, medium text, each total under its own column, a figure trailing in tabular digits like the column's values, the first column's footer naming the row, and a column with no total leaving its cell empty. One total with no column of its own is `summary`, under the table at its trailing edge, where it reads as the last column's; a total of another column is that column's `footer` (nadicode decision). Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
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. A column that wraps (`meta.wraps`) gives way first and shrinks toward its longest word; its definition's `minSize` is the floor it keeps, so a narrow card scrolls the table sideways instead of breaking a sentence one word per line. 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. 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. A column's `footer` is its total: when a shown column has one, a row of totals closes the table under a rule, in ink, medium text, each total under its own column, a figure trailing in tabular digits like the column's values, the first column's footer naming the row, and a column with no total leaving its cell empty. One total with no column of its own is `summary`, under the table at its trailing edge, where it reads as the last column's; a total of another column is that column's `footer` (nadicode decision). Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
123
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)
124
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)
125
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.
@@ -168,6 +168,7 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
168
168
  const identityColumnId = primaryColumnId ?? definitionId(columns[0]);
169
169
  // TanStack gives a column without a size its default one; only the caller's definition says whether it has one.
170
170
  const sizeOf = new Map(columns.map((column) => [definitionId(column), column.size]));
171
+ const minSizeOf = new Map(columns.map((column) => [definitionId(column), column.minSize]));
171
172
  const tableColumns = React.useMemo(() => columns.map(tableColumn), [columns]);
172
173
  // An external pager means `data` is already one bounded server page:
173
174
  // `manualPagination` makes the paginated row model a passthrough so every
@@ -277,7 +278,9 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
277
278
  })), label: tableLabel, children: records })) : (_jsxs(Table, { "aria-label": tableLabel, className: "text-body-sm", children: [_jsx(TableColgroup, { children: visibleColumns.map((column) => {
278
279
  const size = sizeOf.get(column.id);
279
280
  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
+ }) }), _jsx(TableHeader, { children: _jsx(TableRow, { children: headings.map((heading) => (_jsx(TableHead, { "aria-sort": sortOrder(heading.column.getIsSorted()),
282
+ // A wrapping column shrinks to its longest word unless its definition gives it a floor.
283
+ style: { minWidth: minSizeOf.get(heading.column.id) }, 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
284
  "text-center last:text-center"), children: heading.content }, heading.id))) }) }), records, visibleColumns.some((column) => column.columnDef.footer !== undefined) ? (_jsx(TableFooter, { children: _jsx(TableRow, { children: table
282
285
  .getFooterGroups()
283
286
  .flatMap((footerGroup) => footerGroup.headers)
@@ -1 +1 @@
1
- {"version":3,"file":"message-notice.d.ts","sourceRoot":"","sources":["../../src/components/message-notice.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAKL,KAAK,UAAU,IAAI,iBAAiB,EACrC,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE1E,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAWlC;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,CACA;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,GACzC;IACE,SAAS,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACJ,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,IAAoB,EACpB,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,+BA2EpB"}
1
+ {"version":3,"file":"message-notice.d.ts","sourceRoot":"","sources":["../../src/components/message-notice.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAIL,KAAK,UAAU,IAAI,iBAAiB,EACrC,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE1E,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAWlC;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,CACA;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,GACzC;IACE,SAAS,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACJ,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,IAAoB,EACpB,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,+BA2EpB"}
@@ -2,7 +2,8 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { OctagonAlert } from "lucide-react";
4
4
  import { Alert } from "./alert.js";
5
- import { closedSentence, NOTICE_EDGE, NoticeLink, NoticeMark, } from "../internal/notice.js";
5
+ import { closedSentence, NOTICE_EDGE, NoticeMark, } from "../internal/notice.js";
6
+ import { NoticeLink } from "../internal/notice-link.js";
6
7
  import { cn } from "../lib/utils.js";
7
8
  import { PageCommandButton } from "../internal/page-command-button.js";
8
9
  import { bodyBeyondTitle } from "./product-message.js";
@@ -75,7 +75,7 @@ function NativeSelect({ className, size = "default", prefix, suffix, label, desc
75
75
  option.selected = shown.includes(option.value);
76
76
  appliedDefault.current = defaultKey;
77
77
  }, [defaultKey]);
78
- return (_jsx(FieldFrame, { label: label, description: description, error: error, size: size, control: props, children: (aria) => (_jsxs("div", { className: cn("group/native-select relative w-full", className), "data-slot": "native-select-wrapper", "data-size": size, children: [prefix ? (_jsx("span", { "data-slot": "native-select-prefix", "aria-hidden": "true", className: "pointer-events-none absolute top-1/2 left-control-padding-inline flex -translate-y-1/2 items-center text-muted-foreground [&_svg:not([class*='size-'])]:size-4", children: prefix })) : null, _jsx("select", { ref: setRef, "data-slot": "native-select", "data-size": size, "data-field-frame": "", className: cn("h-control-height min-h-touch-target w-full min-w-0 cursor-pointer appearance-none rounded-sm bg-(--nc-field,var(--background)) py-0 pr-9 pl-control-padding-inline text-sm select-none selection:bg-primary selection:text-primary-foreground data-[size=lg]:h-nadicode-control-height-lg data-[size=lg]:rounded-md data-[size=lg]:text-base data-[size=sm]:h-nadicode-control-height-sm [@media(hover:hover)_and_(pointer:fine)]:min-h-0", fieldRing, fieldStates, fieldDisabled, prefix ? "pl-10" : undefined), ...props, ...aria }), suffix ? (_jsx("span", { "data-slot": "native-select-suffix", "aria-hidden": "true", className: "pointer-events-none absolute top-1/2 right-3 flex -translate-y-1/2 items-center text-muted-foreground select-none [&_svg:not([class*='size-'])]:size-4", children: suffix })) : (_jsx(ChevronDownIcon, { className: "pointer-events-none absolute top-1/2 right-3 size-3.5 -translate-y-1/2 text-muted-foreground select-none", "aria-hidden": "true", "data-slot": "native-select-icon" }))] })) }));
78
+ return (_jsx(FieldFrame, { label: label, description: description, error: error, size: size, control: props, children: (aria) => (_jsxs("div", { className: cn("group/native-select relative w-full", className), "data-slot": "native-select-wrapper", "data-size": size, children: [prefix ? (_jsx("span", { "data-slot": "native-select-prefix", "aria-hidden": "true", className: "pointer-events-none absolute top-1/2 left-control-padding-inline flex -translate-y-1/2 items-center text-muted-foreground [&_svg:not([class*='size-'])]:size-4", children: prefix })) : null, _jsx("select", { ref: setRef, "data-slot": "native-select", "data-size": size, "data-field-frame": "", className: cn("h-control-height min-h-touch-target w-full min-w-0 cursor-pointer appearance-none rounded-sm bg-(--nc-field,var(--background)) py-0 pr-9 pl-control-padding-inline text-base select-none md:text-sm selection:bg-primary selection:text-primary-foreground data-[size=lg]:h-nadicode-control-height-lg data-[size=lg]:rounded-md data-[size=lg]:text-base data-[size=sm]:h-nadicode-control-height-sm [@media(hover:hover)_and_(pointer:fine)]:min-h-0", fieldRing, fieldStates, fieldDisabled, prefix ? "pl-10" : undefined), ...props, ...aria }), suffix ? (_jsx("span", { "data-slot": "native-select-suffix", "aria-hidden": "true", className: "pointer-events-none absolute top-1/2 right-3 flex -translate-y-1/2 items-center text-muted-foreground select-none [&_svg:not([class*='size-'])]:size-4", children: suffix })) : (_jsx(ChevronDownIcon, { className: "pointer-events-none absolute top-1/2 right-3 size-3.5 -translate-y-1/2 text-muted-foreground select-none", "aria-hidden": "true", "data-slot": "native-select-icon" }))] })) }));
79
79
  }
80
80
  function NativeSelectOption({ className, ...props }) {
81
81
  return (_jsx("option", { "data-slot": "native-select-option", className: cn("bg-[Canvas] text-[CanvasText]", className), ...props }));
@@ -1,12 +1,12 @@
1
1
  import type { ComponentProps, ReactNode } from "react";
2
2
  import type { LucideIcon } from "lucide-react";
3
3
  import { type NoticeTone } from "../internal/notice.js";
4
- import type { PageCommand } from "./page-actions.js";
4
+ import type { CardCommand } from "./page-actions.js";
5
5
  export type NoticeBannerTone = NoticeTone;
6
6
  export type NoticeBannerLiveRegion = "off" | "polite" | "assertive";
7
7
  export type NoticeBannerProps = {
8
- /** The one fix the page offers, drawn as an underlined link. Required: a condition is shown with its fix. */
9
- action: PageCommand;
8
+ /** The one fix the page offers, drawn as an underlined link; it may ask first (`confirm`). Required: a condition is shown with its fix. */
9
+ action: CardCommand;
10
10
  className?: string;
11
11
  /** One more sentence the title leaves out, run on after it; not shown when it repeats the title. */
12
12
  description?: string;
@@ -27,7 +27,7 @@ export type NoticeBannerProps = {
27
27
  * @family Feedback
28
28
  * @when "A prominent message that spans the full width of its container to announce important information." (https://vercel.com/geist/banner) "Used for temporary, project-wide notifications that require resolution" (https://vercel.com/geist/project-banner) "Use Project Banner for project-wide states that need resolution: overdue billing, an active rollback, attack mitigation, an expiring trial blocking deploys." (https://vercel.com/geist/project-banner) "Match `variant` to severity: `error` for critical downtime or payment-blocking states, `warning` for an exceptional state with non-immediate action, `success` for a positive temporary mitigation, `gray` for routine project-wide notices." (https://vercel.com/geist/project-banner) Ours: a condition of the page's own object that the page itself resolves, with that resolving action on the banner: a past-due subscription on its billing page, a failed refresh of the page's own reading. The `tone` is the `variant`: `destructive` is `error`, `warning` is `warning`, `info` is `success` and `neutral` is `gray`. A page gives it to its composition's `notice` (`CollectionPage`, `ObjectPage`, `OverviewPage`, `SettingsPage`, a `DataTable` that is the page's job, and `EntryPage` outside the shell), which places it under the title; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).
29
29
  * @instead "Pick `Note` for inline contextual messages tied to a single field or card, `Toast` for transient acknowledgments, `Modal` for confirmations." (https://vercel.com/geist/project-banner) Ours: there is no announcement strip. `Note` is `MessageNotice` (`placement="section"`), `Toast` is `showMessageToast` and `Modal` is `ConfirmDialog`. For a measured level use a `KpiCard` with its tone; crossing a threshold is a notification in the inbox, not a banner. A condition of the system, the setup or the staff (a connection, a stored secret, a failing job, anything a staff member fixes in settings) is a notification in the product's inbox, never a banner on a page, and the page that fixes it shows the state in its own section; the Portal's System health raises it through Knock to the bell at the sidebar's foot.
30
- * @behaviour "Project Banner is non-dismissible by design. If the message can be dismissed without resolving the underlying state, it isn’t banner-worthy; move it to a `Note`." (https://vercel.com/geist/project-banner) "Show one Project Banner at a time. Stacking competing banners drowns the most urgent state." (https://vercel.com/geist/project-banner) "Always pass a `callToAction` that resolves the state. A banner with no route is a dead end." (https://vercel.com/geist/project-banner) Ours: a strip as wide as its container: a filled ground with a line on its top and bottom edge only, no corners, 40 px high and centred, with the mark, the sentence and the fix on one row; under 768 px the fix drops under the sentence, aligned with its text. The title and the description run on as one passage: the title closed by a full stop when it has none of its own, leading in semibold when a description follows and at regular weight alone, the description after it on the same line, and a description that repeats the title not shown. `detail` takes its own row under the passage. Colour sits on the whole strip (ground, both lines, mark and text); the fix is an underlined link in the darkest step of the same hue (neutral: `text-foreground`) and returns to the strip's text on hover. Neutral and info take the Info mark, warning and destructive the TriangleAlert. `action` is the `callToAction`: one command, never two, never a ready-made button, and there is no close button. Required: `action`, `title`, `tone` and `liveRegion`; the mark is always drawn, and `icon` swaps the tone's mark for another lucide icon.
30
+ * @behaviour "Project Banner is non-dismissible by design. If the message can be dismissed without resolving the underlying state, it isn’t banner-worthy; move it to a `Note`." (https://vercel.com/geist/project-banner) "Show one Project Banner at a time. Stacking competing banners drowns the most urgent state." (https://vercel.com/geist/project-banner) "Always pass a `callToAction` that resolves the state. A banner with no route is a dead end." (https://vercel.com/geist/project-banner) Ours: a strip as wide as its container: a filled ground with a line on its top and bottom edge only, no corners, 40 px high and centred, with the mark, the sentence and the fix on one row; under 768 px the fix drops under the sentence, aligned with its text. The title and the description run on as one passage: the title closed by a full stop when it has none of its own, leading in semibold when a description follows and at regular weight alone, the description after it on the same line, and a description that repeats the title not shown. `detail` takes its own row under the passage. Colour sits on the whole strip (ground, both lines, mark and text); the fix is an underlined link in the darkest step of the same hue (neutral: `text-foreground`) and returns to the strip's text on hover. Neutral and info take the Info mark, warning and destructive the TriangleAlert. `action` is the `callToAction`: one command, never two, never a ready-made button, and there is no close button. A fix that asks first (`confirm`), such as an approval that starts a payment, opens its confirmation from the link, which stays open and busy while it runs and shows its failure inside it, so a product passes the words and never mounts the confirmation itself (nadicode decision). Required: `action`, `title`, `tone` and `liveRegion`; the mark is always drawn, and `icon` swaps the tone's mark for another lucide icon.
31
31
  * @words "`label` is one sentence in sentence case that names the impact: `Your Pro trial expires in 3 days.` Don’t open with `Heads up` or apologetic preambles." (https://vercel.com/geist/project-banner) "`callToAction.label` is Title Case `Verb + Noun` and points at the resolver: `Update Payment Method`, `Reactivate Project`, `Review Tokens`." (https://vercel.com/geist/project-banner) "Name the affected entity when the project context isn’t obvious from the surrounding chrome (`Production deployments are paused on my-project`)." (https://vercel.com/geist/project-banner) "Don’t encode severity in the copy with emoji or interjections; the variant carries that signal." (https://vercel.com/geist/project-banner) "`NoteLabel` is a 1–2 word Title Case prefix that names the topic: `Region Change`, `Rate Limit`, `Plan Limit`. Cut hedges like `Heads Up`, `FYI`, and `Note`." (https://vercel.com/geist/note) Ours: the `title` is the `label`: the one sentence, naming the condition, its impact and the object. A `description` only adds what the title leaves out, in one more sentence. Our `label` is the `NoteLabel` topic prefix. The action is sentence case, verb and noun, pointing at the resolver: "Update payment method", "Try again". No "Please". The words come from the product's catalogue code.
32
32
  * @access `liveRegion="assertive"` gives `role="alert"`, for a failure the person just caused; `"polite"` gives `role="status"`, announced once when it appears; `"off"` gives `role="note"` for one already there at load. The mark, given or not, is hidden.
33
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"notice-banner.d.ts","sourceRoot":"","sources":["../../src/components/notice-banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAC1C,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6GAA6G;IAC7G,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,sBAAsB,CAAC;IACnC,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;I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GAAG,OAAO,CAAC,CAAC;AAKtD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,SAAS,EACT,WAAW,EACX,MAAM,EACN,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EACL,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,iBAAiB,+BAkDnB"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Alert, AlertDescription, AlertTitle } from "./alert.js";
3
- import { closedSentence, NOTICE_EDGE, NoticeLink, NoticeMark, } from "../internal/notice.js";
3
+ import { closedSentence, NOTICE_EDGE, NoticeMark } from "../internal/notice.js";
4
+ import { NoticeLink } from "../internal/notice-link.js";
4
5
  import { cn } from "../lib/utils.js";
5
6
  import { bodyBeyondTitle } from "./product-message.js";
6
7
  const LIVE_REGION_ROLE = { assertive: "alert", polite: "status", off: "note" };
@@ -11,7 +12,7 @@ const LIVE_REGION_ROLE = { assertive: "alert", polite: "status", off: "note" };
11
12
  * @family Feedback
12
13
  * @when "A prominent message that spans the full width of its container to announce important information." (https://vercel.com/geist/banner) "Used for temporary, project-wide notifications that require resolution" (https://vercel.com/geist/project-banner) "Use Project Banner for project-wide states that need resolution: overdue billing, an active rollback, attack mitigation, an expiring trial blocking deploys." (https://vercel.com/geist/project-banner) "Match `variant` to severity: `error` for critical downtime or payment-blocking states, `warning` for an exceptional state with non-immediate action, `success` for a positive temporary mitigation, `gray` for routine project-wide notices." (https://vercel.com/geist/project-banner) Ours: a condition of the page's own object that the page itself resolves, with that resolving action on the banner: a past-due subscription on its billing page, a failed refresh of the page's own reading. The `tone` is the `variant`: `destructive` is `error`, `warning` is `warning`, `info` is `success` and `neutral` is `gray`. A page gives it to its composition's `notice` (`CollectionPage`, `ObjectPage`, `OverviewPage`, `SettingsPage`, a `DataTable` that is the page's job, and `EntryPage` outside the shell), which places it under the title; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).
13
14
  * @instead "Pick `Note` for inline contextual messages tied to a single field or card, `Toast` for transient acknowledgments, `Modal` for confirmations." (https://vercel.com/geist/project-banner) Ours: there is no announcement strip. `Note` is `MessageNotice` (`placement="section"`), `Toast` is `showMessageToast` and `Modal` is `ConfirmDialog`. For a measured level use a `KpiCard` with its tone; crossing a threshold is a notification in the inbox, not a banner. A condition of the system, the setup or the staff (a connection, a stored secret, a failing job, anything a staff member fixes in settings) is a notification in the product's inbox, never a banner on a page, and the page that fixes it shows the state in its own section; the Portal's System health raises it through Knock to the bell at the sidebar's foot.
14
- * @behaviour "Project Banner is non-dismissible by design. If the message can be dismissed without resolving the underlying state, it isn’t banner-worthy; move it to a `Note`." (https://vercel.com/geist/project-banner) "Show one Project Banner at a time. Stacking competing banners drowns the most urgent state." (https://vercel.com/geist/project-banner) "Always pass a `callToAction` that resolves the state. A banner with no route is a dead end." (https://vercel.com/geist/project-banner) Ours: a strip as wide as its container: a filled ground with a line on its top and bottom edge only, no corners, 40 px high and centred, with the mark, the sentence and the fix on one row; under 768 px the fix drops under the sentence, aligned with its text. The title and the description run on as one passage: the title closed by a full stop when it has none of its own, leading in semibold when a description follows and at regular weight alone, the description after it on the same line, and a description that repeats the title not shown. `detail` takes its own row under the passage. Colour sits on the whole strip (ground, both lines, mark and text); the fix is an underlined link in the darkest step of the same hue (neutral: `text-foreground`) and returns to the strip's text on hover. Neutral and info take the Info mark, warning and destructive the TriangleAlert. `action` is the `callToAction`: one command, never two, never a ready-made button, and there is no close button. Required: `action`, `title`, `tone` and `liveRegion`; the mark is always drawn, and `icon` swaps the tone's mark for another lucide icon.
15
+ * @behaviour "Project Banner is non-dismissible by design. If the message can be dismissed without resolving the underlying state, it isn’t banner-worthy; move it to a `Note`." (https://vercel.com/geist/project-banner) "Show one Project Banner at a time. Stacking competing banners drowns the most urgent state." (https://vercel.com/geist/project-banner) "Always pass a `callToAction` that resolves the state. A banner with no route is a dead end." (https://vercel.com/geist/project-banner) Ours: a strip as wide as its container: a filled ground with a line on its top and bottom edge only, no corners, 40 px high and centred, with the mark, the sentence and the fix on one row; under 768 px the fix drops under the sentence, aligned with its text. The title and the description run on as one passage: the title closed by a full stop when it has none of its own, leading in semibold when a description follows and at regular weight alone, the description after it on the same line, and a description that repeats the title not shown. `detail` takes its own row under the passage. Colour sits on the whole strip (ground, both lines, mark and text); the fix is an underlined link in the darkest step of the same hue (neutral: `text-foreground`) and returns to the strip's text on hover. Neutral and info take the Info mark, warning and destructive the TriangleAlert. `action` is the `callToAction`: one command, never two, never a ready-made button, and there is no close button. A fix that asks first (`confirm`), such as an approval that starts a payment, opens its confirmation from the link, which stays open and busy while it runs and shows its failure inside it, so a product passes the words and never mounts the confirmation itself (nadicode decision). Required: `action`, `title`, `tone` and `liveRegion`; the mark is always drawn, and `icon` swaps the tone's mark for another lucide icon.
15
16
  * @words "`label` is one sentence in sentence case that names the impact: `Your Pro trial expires in 3 days.` Don’t open with `Heads up` or apologetic preambles." (https://vercel.com/geist/project-banner) "`callToAction.label` is Title Case `Verb + Noun` and points at the resolver: `Update Payment Method`, `Reactivate Project`, `Review Tokens`." (https://vercel.com/geist/project-banner) "Name the affected entity when the project context isn’t obvious from the surrounding chrome (`Production deployments are paused on my-project`)." (https://vercel.com/geist/project-banner) "Don’t encode severity in the copy with emoji or interjections; the variant carries that signal." (https://vercel.com/geist/project-banner) "`NoteLabel` is a 1–2 word Title Case prefix that names the topic: `Region Change`, `Rate Limit`, `Plan Limit`. Cut hedges like `Heads Up`, `FYI`, and `Note`." (https://vercel.com/geist/note) Ours: the `title` is the `label`: the one sentence, naming the condition, its impact and the object. A `description` only adds what the title leaves out, in one more sentence. Our `label` is the `NoteLabel` topic prefix. The action is sentence case, verb and noun, pointing at the resolver: "Update payment method", "Try again". No "Please". The words come from the product's catalogue code.
16
17
  * @access `liveRegion="assertive"` gives `role="alert"`, for a failure the person just caused; `"polite"` gives `role="status"`, announced once when it appears; `"off"` gives `role="note"` for one already there at load. The mark, given or not, is hidden.
17
18
  */
@@ -41,9 +41,11 @@ export type CardCommand = (PageCommand & {
41
41
  * commands in `PageActions`' order, with up to two secondaries. A way to another page, such as
42
42
  * "Statements", is a secondary with its `link`, drawn as a button like the others.
43
43
  */
44
- export type CardActions = Omit<PageActionsProps, "secondary"> & {
45
- /** Up to two lesser commands, outline, before the primary; one may ask first (`confirm`). */
44
+ export type CardActions = Omit<PageActionsProps, "secondary" | "primary"> & {
45
+ /** Up to two lesser commands, outline, before the primary; each may ask first (`confirm`). */
46
46
  secondary?: CardCommand | readonly [CardCommand, CardCommand] | undefined;
47
+ /** The card's filled command, which may ask first (`confirm`), or a button of `choices`. */
48
+ primary?: PagePrimaryCommand | ConfirmedCardCommand | undefined;
47
49
  /** A period or a count before the commands: "26 Oct – 26 Nov", "2 of 5 Agents". */
48
50
  meta?: string | undefined;
49
51
  };
@@ -53,7 +55,7 @@ export type CardActions = Omit<PageActionsProps, "secondary"> & {
53
55
  * @family Actions
54
56
  * @when The header of every card composition draws it from the card's `actions`: ObjectPage, ObjectSection, SettingsSection, SettingsFactsSection and TableCard. A page gives the card its `actions` and never renders this row.
55
57
  * @instead A page's own commands are `PageActions` on the title's row. A record's commands are its list's (`RecordList`) or its `RecordCommands`. A setting card whose value stands at its header's end, such as an avatar upload, gives `SettingsSection` its `control`. A link inside the card's description or footer line is a `TextLink` in that sentence (nadicode decision).
56
- * @behaviour The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. A secondary with `confirm`, such as a machine's Stop, asks first: pressing it opens its confirmation, which stays open and busy, saying the command's `pendingLabel`, while it runs, shows its failure inside it and closes once it succeeds, so a product passes the words and never mounts the confirmation itself. It wraps under the title when the header is narrow, as the card's header places it.
58
+ * @behaviour The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. A secondary or the primary with `confirm`, such as a machine's Stop, asks first: pressing it opens its confirmation, which stays open and busy, saying the command's `pendingLabel`, while it runs, shows its failure inside it and closes once it succeeds, so a product passes the words and never mounts the confirmation itself. It wraps under the title when the header is narrow, as the card's header places it.
57
59
  * @words A command is a verb on the card's object ("Add card", "Buy Extra usage for Customers"); a way to another page is that page's name as its navigation writes it ("Statements"); `meta` is a short count or period ("2 of 5 Agents").
58
60
  * @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link. A command with `autoFocus` takes focus as it appears, as the Edit that opened a card's in-place editor does when the editor closes.
59
61
  */
@@ -1 +1 @@
1
- {"version":3,"file":"page-actions.d.ts","sourceRoot":"","sources":["../../src/components/page-actions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAChB,KAAK,eAAe,EAGrB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAIvB,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElG;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IACjD,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAElE,uE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AE,WAAW,sCAgCrF;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,GAAG,UAAU,EACd,EAAE,WAAW,GAAG;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,+BAG/C;AAyCD,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,gBAAgB,sCAYpF;AAyCD;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,MAAa,GACd,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,+BAIA;AAED,oHAAoH;AACpH,wBAAgB,aAAa,IAAI,OAAO,CAGvC;AAED,yFAAyF;AACzF,wBAAgB,eAAe,gCAS9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCA6BlD"}
@@ -21,7 +21,7 @@ function secondariesOf(secondary) {
21
21
  * @family Actions
22
22
  * @when The header of every card composition draws it from the card's `actions`: ObjectPage, ObjectSection, SettingsSection, SettingsFactsSection and TableCard. A page gives the card its `actions` and never renders this row.
23
23
  * @instead A page's own commands are `PageActions` on the title's row. A record's commands are its list's (`RecordList`) or its `RecordCommands`. A setting card whose value stands at its header's end, such as an avatar upload, gives `SettingsSection` its `control`. A link inside the card's description or footer line is a `TextLink` in that sentence (nadicode decision).
24
- * @behaviour The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. A secondary with `confirm`, such as a machine's Stop, asks first: pressing it opens its confirmation, which stays open and busy, saying the command's `pendingLabel`, while it runs, shows its failure inside it and closes once it succeeds, so a product passes the words and never mounts the confirmation itself. It wraps under the title when the header is narrow, as the card's header places it.
24
+ * @behaviour The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. A secondary or the primary with `confirm`, such as a machine's Stop, asks first: pressing it opens its confirmation, which stays open and busy, saying the command's `pendingLabel`, while it runs, shows its failure inside it and closes once it succeeds, so a product passes the words and never mounts the confirmation itself. It wraps under the title when the header is narrow, as the card's header places it.
25
25
  * @words A command is a verb on the card's object ("Add card", "Buy Extra usage for Customers"); a way to another page is that page's name as its navigation writes it ("Statements"); `meta` is a short count or period ("2 of 5 Agents").
26
26
  * @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link. A command with `autoFocus` takes focus as it appears, as the Edit that opened a card's in-place editor does when the editor closes.
27
27
  */
@@ -31,7 +31,7 @@ export function CardActionsRow({ meta, period, secondary, primary, menu }) {
31
31
  if (!hasCardActions({ meta, period, secondary, primary, menu }))
32
32
  return null;
33
33
  const secondaries = secondariesOf(secondary);
34
- return (_jsxs("div", { "data-slot": "card-actions", className: "flex max-w-full min-w-0 flex-wrap items-center gap-2", ref: row, children: [meta ? (_jsx("span", { className: "mr-1 text-label-sm text-muted-foreground", "data-slot": "card-actions-meta", children: meta })) : null, period, secondaries.map((command) => (_jsx(PageCommandButton, { command: arm(command), variant: "outline" }, command.label))), primary ? _jsx(PageCommandButton, { command: primary, variant: "default" }) : null, menu ? _jsx(ActionMenu, { ...menu, size: "page" }) : null, dialog] }));
34
+ return (_jsxs("div", { "data-slot": "card-actions", className: "flex max-w-full min-w-0 flex-wrap items-center gap-2", ref: row, children: [meta ? (_jsx("span", { className: "mr-1 text-label-sm text-muted-foreground", "data-slot": "card-actions-meta", children: meta })) : null, period, secondaries.map((command) => (_jsx(PageCommandButton, { command: arm(command), variant: "outline" }, command.label))), primary ? (_jsx(PageCommandButton, { command: "choices" in primary ? primary : arm(primary), variant: "default" })) : null, menu ? _jsx(ActionMenu, { ...menu, size: "page" }) : null, dialog] }));
35
35
  }
36
36
  export function PageCommandButton({ command, ...appearance }) {
37
37
  if ("choices" in command)
@@ -63,7 +63,7 @@ function SelectValue({ className, ...props }) {
63
63
  * `SelectTrigger`, such as `MultiSelectTrigger`, wears the same box.
64
64
  */
65
65
  const selectTriggerVariants = cva([
66
- "flex min-h-touch-target w-full items-center justify-between gap-1.5 py-0 pr-3 pl-control-padding-inline text-sm whitespace-nowrap select-none data-placeholder:text-placeholder [@media(hover:hover)_and_(pointer:fine)]:min-h-0 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
66
+ "flex min-h-touch-target w-full items-center justify-between gap-1.5 py-0 pr-3 pl-control-padding-inline text-base whitespace-nowrap select-none data-placeholder:text-placeholder [@media(hover:hover)_and_(pointer:fine)]:min-h-0 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
67
67
  ], {
68
68
  variants: {
69
69
  look: {
@@ -71,8 +71,8 @@ const selectTriggerVariants = cva([
71
71
  inline: "",
72
72
  },
73
73
  size: {
74
- sm: "h-nadicode-control-height-sm rounded-sm",
75
- default: "h-control-height rounded-sm",
74
+ sm: "h-nadicode-control-height-sm rounded-sm md:text-sm",
75
+ default: "h-control-height rounded-sm md:text-sm",
76
76
  lg: "h-nadicode-control-height-lg rounded-md text-base",
77
77
  },
78
78
  },
@@ -14,8 +14,8 @@ import { CardActionsRow, PageCommandButton, } from "./page-actions.js";
14
14
  import { Switch } from "./switch.js";
15
15
  import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
16
16
  const toneClassNames = {
17
- error: "border border-destructive *:data-[slot=card-footer]:border-destructive *:data-[slot=card-footer]:bg-destructive-soft *:data-[slot=card-footer]:*:data-[slot=settings-section-hint]:text-destructive-soft-foreground",
18
- warning: "border border-warning *:data-[slot=card-footer]:border-warning *:data-[slot=card-footer]:bg-warning-soft *:data-[slot=card-footer]:*:data-[slot=settings-section-hint]:text-warning-soft-foreground",
17
+ error: "relative after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:border after:border-destructive *:data-[slot=card-footer]:border-destructive *:data-[slot=card-footer]:bg-destructive-soft *:data-[slot=card-footer]:*:data-[slot=settings-section-hint]:text-destructive-soft-foreground",
18
+ warning: "relative after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:border after:border-warning *:data-[slot=card-footer]:border-warning *:data-[slot=card-footer]:bg-warning-soft *:data-[slot=card-footer]:*:data-[slot=settings-section-hint]:text-warning-soft-foreground",
19
19
  };
20
20
  /**
21
21
  * A card of one setting that says what changing it does and ends in a footer.
@@ -1,6 +1,6 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { cn } from "../lib/utils.js";
3
- const heldNeutral = "disabled:border-border disabled:bg-muted disabled:text-muted-foreground aria-disabled:border-border aria-disabled:bg-muted aria-disabled:text-muted-foreground";
3
+ const heldNeutral = "disabled:border-border disabled:bg-muted disabled:text-placeholder aria-disabled:border-border aria-disabled:bg-muted aria-disabled:text-placeholder";
4
4
  const heldDim = "disabled:opacity-50 aria-disabled:not-aria-busy:opacity-50";
5
5
  const variantClasses = {
6
6
  default: [
@@ -0,0 +1,18 @@
1
+ import { type CardCommand } from "../components/page-actions.js";
2
+ import type { NoticeTone } from "./notice.js";
3
+ /**
4
+ * A notice's one fix, drawn as an underlined 14 px link with no padding. In a `strip` it takes the
5
+ * darkest step of the strip's own hue (neutral takes the foreground) and returns to the strip's
6
+ * text on hover; `inline` it follows the sentence in the sentence's own colour. A fix that asks
7
+ * first (`confirm`) opens its confirmation from here, as a card's command does.
8
+ */
9
+ export declare function NoticeLink({ className, command, ...place }: {
10
+ className?: string;
11
+ command: CardCommand;
12
+ } & ({
13
+ place: "inline";
14
+ } | {
15
+ place: "strip";
16
+ tone: NoticeTone;
17
+ })): import("react").JSX.Element;
18
+ //# sourceMappingURL=notice-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notice-link.d.ts","sourceRoot":"","sources":["../../src/internal/notice-link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAIhF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAgB3C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;CACtB,GAAG,CAAC;IAAE,KAAK,EAAE,QAAQ,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,+BAgB/D"}
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { PageCommandButton } from "../components/page-actions.js";
4
+ import { useCommandRunner } from "./command-runner.js";
5
+ import { cn } from "../lib/utils.js";
6
+ const LINK_LOOK = "[&_[data-slot=button]]:gap-0.5 [&_[data-slot=button]]:px-0! [&_[data-slot=button]]:text-body-sm [&_[data-slot=button]]:underline [&_[data-slot=button]_svg]:size-4!";
7
+ const STRIP_LINK = "[&_[data-slot=button]]:h-6 [&_[data-slot=button]]:hover:text-inherit";
8
+ const STRIP_LINK_TONE = {
9
+ neutral: "[&_[data-slot=button]]:text-foreground",
10
+ info: "[&_[data-slot=button]]:text-(--nc-cobalto-1000)",
11
+ warning: "[&_[data-slot=button]]:text-(--nc-giallo-1000)",
12
+ destructive: "[&_[data-slot=button]]:text-(--nc-rosso-1000)",
13
+ };
14
+ const INLINE_LINK = "align-bottom [&_[data-slot=button]]:h-5 [&_[data-slot=button]]:text-current";
15
+ /**
16
+ * A notice's one fix, drawn as an underlined 14 px link with no padding. In a `strip` it takes the
17
+ * darkest step of the strip's own hue (neutral takes the foreground) and returns to the strip's
18
+ * text on hover; `inline` it follows the sentence in the sentence's own colour. A fix that asks
19
+ * first (`confirm`) opens its confirmation from here, as a card's command does.
20
+ */
21
+ export function NoticeLink({ className, command, ...place }) {
22
+ const { arm, dialog } = useCommandRunner();
23
+ return (_jsxs("span", { className: cn("inline-flex", LINK_LOOK, place.place === "strip" ? [STRIP_LINK, STRIP_LINK_TONE[place.tone]] : INLINE_LINK, className), "data-notice-action": true, children: [_jsx(PageCommandButton, { command: arm(command), size: "xs", variant: "link" }), dialog] }));
24
+ }
@@ -1,5 +1,4 @@
1
1
  import { type LucideIcon } from "lucide-react";
2
- import { type PageCommand } from "../components/page-actions.js";
3
2
  export type NoticeTone = "neutral" | "info" | "warning" | "destructive";
4
3
  /** The hue of a notice's edge: a light step of its text colour, neutral for the plain tone. */
5
4
  export declare const NOTICE_EDGE: Record<NoticeTone, string>;
@@ -10,18 +9,4 @@ export declare function NoticeMark({ icon, tone }: {
10
9
  icon?: LucideIcon | undefined;
11
10
  tone: NoticeTone;
12
11
  }): import("react").JSX.Element;
13
- /**
14
- * A notice's one fix, drawn as an underlined 14 px link with no padding. In a `strip` it takes the
15
- * darkest step of the strip's own hue (neutral takes the foreground) and returns to the strip's
16
- * text on hover; `inline` it follows the sentence in the sentence's own colour.
17
- */
18
- export declare function NoticeLink({ className, command, ...place }: {
19
- className?: string;
20
- command: PageCommand;
21
- } & ({
22
- place: "inline";
23
- } | {
24
- place: "strip";
25
- tone: NoticeTone;
26
- })): import("react").JSX.Element;
27
12
  //# sourceMappingURL=notice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notice.d.ts","sourceRoot":"","sources":["../../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;AAEhD,kGAAkG;AAClG,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,+BAG7F"}
@@ -1,7 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Info, TriangleAlert } from "lucide-react";
3
- import { PageCommandButton } from "../components/page-actions.js";
4
- import { cn } from "../lib/utils.js";
5
3
  /** The hue of a notice's edge: a light step of its text colour, neutral for the plain tone. */
6
4
  export const NOTICE_EDGE = {
7
5
  neutral: "border-border",
@@ -16,20 +14,3 @@ export function NoticeMark({ icon, tone }) {
16
14
  const Mark = icon ?? (tone === "warning" || tone === "destructive" ? TriangleAlert : Info);
17
15
  return _jsx(Mark, { "aria-hidden": "true" });
18
16
  }
19
- const LINK_LOOK = "[&_[data-slot=button]]:gap-0.5 [&_[data-slot=button]]:px-0! [&_[data-slot=button]]:text-body-sm [&_[data-slot=button]]:underline [&_[data-slot=button]_svg]:size-4!";
20
- const STRIP_LINK = "[&_[data-slot=button]]:h-6 [&_[data-slot=button]]:hover:text-inherit";
21
- const STRIP_LINK_TONE = {
22
- neutral: "[&_[data-slot=button]]:text-foreground",
23
- info: "[&_[data-slot=button]]:text-(--nc-cobalto-1000)",
24
- warning: "[&_[data-slot=button]]:text-(--nc-giallo-1000)",
25
- destructive: "[&_[data-slot=button]]:text-(--nc-rosso-1000)",
26
- };
27
- const INLINE_LINK = "align-bottom [&_[data-slot=button]]:h-5 [&_[data-slot=button]]:text-current";
28
- /**
29
- * A notice's one fix, drawn as an underlined 14 px link with no padding. In a `strip` it takes the
30
- * darkest step of the strip's own hue (neutral takes the foreground) and returns to the strip's
31
- * text on hover; `inline` it follows the sentence in the sentence's own colour.
32
- */
33
- export function NoticeLink({ className, command, ...place }) {
34
- return (_jsx("span", { className: cn("inline-flex", LINK_LOOK, place.place === "strip" ? [STRIP_LINK, STRIP_LINK_TONE[place.tone]] : INLINE_LINK, className), "data-notice-action": true, children: _jsx(PageCommandButton, { command: command, size: "xs", variant: "link" }) }));
35
- }
@@ -439,7 +439,7 @@ export const USAGE = [
439
439
  summary: "The end of a card's header: what the card's reader can do from it, and where it leads.",
440
440
  when: "The header of every card composition draws it from the card's `actions`: ObjectPage, ObjectSection, SettingsSection, SettingsFactsSection and TableCard. A page gives the card its `actions` and never renders this row.",
441
441
  instead: "A page's own commands are `PageActions` on the title's row. A record's commands are its list's (`RecordList`) or its `RecordCommands`. A setting card whose value stands at its header's end, such as an avatar upload, gives `SettingsSection` its `control`. A link inside the card's description or footer line is a `TextLink` in that sentence (nadicode decision).",
442
- behaviour: "The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. A secondary with `confirm`, such as a machine's Stop, asks first: pressing it opens its confirmation, which stays open and busy, saying the command's `pendingLabel`, while it runs, shows its failure inside it and closes once it succeeds, so a product passes the words and never mounts the confirmation itself. It wraps under the title when the header is narrow, as the card's header places it.",
442
+ behaviour: "The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. A secondary or the primary with `confirm`, such as a machine's Stop, asks first: pressing it opens its confirmation, which stays open and busy, saying the command's `pendingLabel`, while it runs, shows its failure inside it and closes once it succeeds, so a product passes the words and never mounts the confirmation itself. It wraps under the title when the header is narrow, as the card's header places it.",
443
443
  words: 'A command is a verb on the card\'s object ("Add card", "Buy Extra usage for Customers"); a way to another page is that page\'s name as its navigation writes it ("Statements"); `meta` is a short count or period ("2 of 5 Agents").',
444
444
  access: "DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link. A command with `autoFocus` takes focus as it appears, as the Edit that opened a card's in-place editor does when the editor closes.",
445
445
  },
@@ -1407,7 +1407,7 @@ export const USAGE = [
1407
1407
  summary: "Lines of figures read and compared: the same figures on every row, read down a column under its heading and across a row, inside their `TableCard`.",
1408
1408
  when: "“Use `<Table>` for tabular data where rows share the same shape and at least one column is sortable or comparable across rows.” (https://vercel.com/geist/table) Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the table: its rows are not things a person opens but lines of figures read and compared, such as usage per product, the amounts in a statement or invoices. It has a visible heading row, because a number means nothing without its label, and at least one column is a figure.",
1409
1409
  instead: "“For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table) “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table) Ours: Geist's `Entity` is a `RecordList` row: a row that is one thing with a name a person opens, such as a deployment, a Customer, a Member account or an Agent, is a `RecordList`'s, however many facts it shows (owner, 2026-11-08). Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.",
1410
- 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. 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. A column's `footer` is its total: when a shown column has one, a row of totals closes the table under a rule, in ink, medium text, each total under its own column, a figure trailing in tabular digits like the column's values, the first column's footer naming the row, and a column with no total leaving its cell empty. One total with no column of its own is `summary`, under the table at its trailing edge, where it reads as the last column's; a total of another column is that column's `footer` (nadicode decision). Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries. “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) “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) Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced. Ours: a table that is the page's job under its title takes the page's `notice`, one `NoticeBanner` above its toolbar, 12 px over it, as a collection page places it under the title: a refresh of the rows that failed, with Try again (nadicode decision). Ours: the table draws its own toolbar, a `FilterToolbar`: from `toolbar` for a registry whose search, filters and sort the product keeps (the URL), or else its own local search; the column menu and `toolbarActions` end it. A product never draws a table's toolbar itself. While the page reads the rows, `DataTableSkeleton` stands in the table's place: the same card, a heading row and the given number of rows at the table's heights, the columns after the second leaving it below 640 px, with no words (nadicode decision). “Sortable column headers are buttons. The visible label stays Title Case; the sort-direction arrow is decorative and the button announces the next sort state to assistive tech.” (https://vercel.com/geist/table) Ours: the order has one owner, the app's `sorting`, which the URL holds and a `CollectionSort` above the list sets, so no heading is a button and every page of a paged list follows one order. “Apply `tabular-nums` (or Geist Mono) to numeric columns so digits align across rows for comparison.” (https://vercel.com/geist/table) Ours: a numeric column trails in tabular figures.",
1410
+ 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. A column that wraps (`meta.wraps`) gives way first and shrinks toward its longest word; its definition's `minSize` is the floor it keeps, so a narrow card scrolls the table sideways instead of breaking a sentence one word per line. 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. 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. A column's `footer` is its total: when a shown column has one, a row of totals closes the table under a rule, in ink, medium text, each total under its own column, a figure trailing in tabular digits like the column's values, the first column's footer naming the row, and a column with no total leaving its cell empty. One total with no column of its own is `summary`, under the table at its trailing edge, where it reads as the last column's; a total of another column is that column's `footer` (nadicode decision). Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries. “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) “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) Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced. Ours: a table that is the page's job under its title takes the page's `notice`, one `NoticeBanner` above its toolbar, 12 px over it, as a collection page places it under the title: a refresh of the rows that failed, with Try again (nadicode decision). Ours: the table draws its own toolbar, a `FilterToolbar`: from `toolbar` for a registry whose search, filters and sort the product keeps (the URL), or else its own local search; the column menu and `toolbarActions` end it. A product never draws a table's toolbar itself. While the page reads the rows, `DataTableSkeleton` stands in the table's place: the same card, a heading row and the given number of rows at the table's heights, the columns after the second leaving it below 640 px, with no words (nadicode decision). “Sortable column headers are buttons. The visible label stays Title Case; the sort-direction arrow is decorative and the button announces the next sort state to assistive tech.” (https://vercel.com/geist/table) Ours: the order has one owner, the app's `sorting`, which the URL holds and a `CollectionSort` above the list sets, so no heading is a button and every page of a paged list follows one order. “Apply `tabular-nums` (or Geist Mono) to numeric columns so digits align across rows for comparison.” (https://vercel.com/geist/table) Ours: a numeric column trails in tabular figures.",
1411
1411
  words: '“Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table) “Render `—` in cells where a value is unknown or not applicable. Don’t substitute `N/A`, `null`, or an empty string.” (https://vercel.com/geist/table) “Use the canonical short relative-time form in cells (`2m ago`, `5h ago`); switch to `Mar 14, 2026` past 7 days. See `Relative Time Card`.” (https://vercel.com/geist/table) “Pagination labels are `Previous` and `Next`. Page-count copy reads `Page 2 of 7` or `21–40 of 142` with an en-dash inside the range.” (https://vercel.com/geist/table) Ours: headings are sentence case nouns with their unit, "Cost (€)", "Tokens", where Geist writes Title Case. The words of a time and of Previous and Next are the product\'s catalogue, in both languages. The footer is a count or the paging, never a help sentence: guidance a step needs lives in that step. Totals and paging each stand in a footer zone of their own, the paging at the trailing edge; the summary row is a labelled total, and the first cell of a row of totals names what it totals ("All files"). Italian headings run a third longer and never wrap.',
1412
1412
  access: 'A native table named by `tableLabel`, which is required; `th scope="col"`; the record\'s name is the row\'s one link. A sorted column\'s heading carries `aria-sort`. `DataTableSkeleton` is busy and its placeholder table is hidden from assistive technology. Ours: a missing value is a hidden "—" with screen-reader text, never blank.',
1413
1413
  },
@@ -1715,7 +1715,7 @@ export const USAGE = [
1715
1715
  summary: "A condition of the page's own object, with the fix the page offers.",
1716
1716
  when: '"A prominent message that spans the full width of its container to announce important information." (https://vercel.com/geist/banner) "Used for temporary, project-wide notifications that require resolution" (https://vercel.com/geist/project-banner) "Use Project Banner for project-wide states that need resolution: overdue billing, an active rollback, attack mitigation, an expiring trial blocking deploys." (https://vercel.com/geist/project-banner) "Match `variant` to severity: `error` for critical downtime or payment-blocking states, `warning` for an exceptional state with non-immediate action, `success` for a positive temporary mitigation, `gray` for routine project-wide notices." (https://vercel.com/geist/project-banner) Ours: a condition of the page\'s own object that the page itself resolves, with that resolving action on the banner: a past-due subscription on its billing page, a failed refresh of the page\'s own reading. The `tone` is the `variant`: `destructive` is `error`, `warning` is `warning`, `info` is `success` and `neutral` is `gray`. A page gives it to its composition\'s `notice` (`CollectionPage`, `ObjectPage`, `OverviewPage`, `SettingsPage`, a `DataTable` that is the page\'s job, and `EntryPage` outside the shell), which places it under the title; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).',
1717
1717
  instead: '"Pick `Note` for inline contextual messages tied to a single field or card, `Toast` for transient acknowledgments, `Modal` for confirmations." (https://vercel.com/geist/project-banner) Ours: there is no announcement strip. `Note` is `MessageNotice` (`placement="section"`), `Toast` is `showMessageToast` and `Modal` is `ConfirmDialog`. For a measured level use a `KpiCard` with its tone; crossing a threshold is a notification in the inbox, not a banner. A condition of the system, the setup or the staff (a connection, a stored secret, a failing job, anything a staff member fixes in settings) is a notification in the product\'s inbox, never a banner on a page, and the page that fixes it shows the state in its own section; the Portal\'s System health raises it through Knock to the bell at the sidebar\'s foot.',
1718
- behaviour: '"Project Banner is non-dismissible by design. If the message can be dismissed without resolving the underlying state, it isn’t banner-worthy; move it to a `Note`." (https://vercel.com/geist/project-banner) "Show one Project Banner at a time. Stacking competing banners drowns the most urgent state." (https://vercel.com/geist/project-banner) "Always pass a `callToAction` that resolves the state. A banner with no route is a dead end." (https://vercel.com/geist/project-banner) Ours: a strip as wide as its container: a filled ground with a line on its top and bottom edge only, no corners, 40 px high and centred, with the mark, the sentence and the fix on one row; under 768 px the fix drops under the sentence, aligned with its text. The title and the description run on as one passage: the title closed by a full stop when it has none of its own, leading in semibold when a description follows and at regular weight alone, the description after it on the same line, and a description that repeats the title not shown. `detail` takes its own row under the passage. Colour sits on the whole strip (ground, both lines, mark and text); the fix is an underlined link in the darkest step of the same hue (neutral: `text-foreground`) and returns to the strip\'s text on hover. Neutral and info take the Info mark, warning and destructive the TriangleAlert. `action` is the `callToAction`: one command, never two, never a ready-made button, and there is no close button. Required: `action`, `title`, `tone` and `liveRegion`; the mark is always drawn, and `icon` swaps the tone\'s mark for another lucide icon.',
1718
+ behaviour: '"Project Banner is non-dismissible by design. If the message can be dismissed without resolving the underlying state, it isn’t banner-worthy; move it to a `Note`." (https://vercel.com/geist/project-banner) "Show one Project Banner at a time. Stacking competing banners drowns the most urgent state." (https://vercel.com/geist/project-banner) "Always pass a `callToAction` that resolves the state. A banner with no route is a dead end." (https://vercel.com/geist/project-banner) Ours: a strip as wide as its container: a filled ground with a line on its top and bottom edge only, no corners, 40 px high and centred, with the mark, the sentence and the fix on one row; under 768 px the fix drops under the sentence, aligned with its text. The title and the description run on as one passage: the title closed by a full stop when it has none of its own, leading in semibold when a description follows and at regular weight alone, the description after it on the same line, and a description that repeats the title not shown. `detail` takes its own row under the passage. Colour sits on the whole strip (ground, both lines, mark and text); the fix is an underlined link in the darkest step of the same hue (neutral: `text-foreground`) and returns to the strip\'s text on hover. Neutral and info take the Info mark, warning and destructive the TriangleAlert. `action` is the `callToAction`: one command, never two, never a ready-made button, and there is no close button. A fix that asks first (`confirm`), such as an approval that starts a payment, opens its confirmation from the link, which stays open and busy while it runs and shows its failure inside it, so a product passes the words and never mounts the confirmation itself (nadicode decision). Required: `action`, `title`, `tone` and `liveRegion`; the mark is always drawn, and `icon` swaps the tone\'s mark for another lucide icon.',
1719
1719
  words: '"`label` is one sentence in sentence case that names the impact: `Your Pro trial expires in 3 days.` Don’t open with `Heads up` or apologetic preambles." (https://vercel.com/geist/project-banner) "`callToAction.label` is Title Case `Verb + Noun` and points at the resolver: `Update Payment Method`, `Reactivate Project`, `Review Tokens`." (https://vercel.com/geist/project-banner) "Name the affected entity when the project context isn’t obvious from the surrounding chrome (`Production deployments are paused on my-project`)." (https://vercel.com/geist/project-banner) "Don’t encode severity in the copy with emoji or interjections; the variant carries that signal." (https://vercel.com/geist/project-banner) "`NoteLabel` is a 1–2 word Title Case prefix that names the topic: `Region Change`, `Rate Limit`, `Plan Limit`. Cut hedges like `Heads Up`, `FYI`, and `Note`." (https://vercel.com/geist/note) Ours: the `title` is the `label`: the one sentence, naming the condition, its impact and the object. A `description` only adds what the title leaves out, in one more sentence. Our `label` is the `NoteLabel` topic prefix. The action is sentence case, verb and noun, pointing at the resolver: "Update payment method", "Try again". No "Please". The words come from the product\'s catalogue code.',
1720
1720
  access: '`liveRegion="assertive"` gives `role="alert"`, for a failure the person just caused; `"polite"` gives `role="status"`, announced once when it appears; `"off"` gives `role="note"` for one already there at load. The mark, given or not, is hidden.',
1721
1721
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.266",
3
+ "version": "12.1.268",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -82,7 +82,7 @@
82
82
  "@headless-tree/react": "1.8.0",
83
83
  "@iconify-icons/logos": "^2.0.3",
84
84
  "@iconify/react": "^6.0.2",
85
- "@nadicodeai/design-system": "12.1.266",
85
+ "@nadicodeai/design-system": "12.1.268",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",