@nadicodeai/ui 12.1.206 → 12.1.207
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.
- package/dist/components/account-menu.d.ts.map +1 -1
- package/dist/components/account-menu.js +7 -5
- package/dist/components/action-menu.d.ts +119 -23
- package/dist/components/action-menu.d.ts.map +1 -1
- package/dist/components/action-menu.js +52 -24
- package/dist/components/catalog-entry.d.ts +3 -2
- package/dist/components/catalog-entry.d.ts.map +1 -1
- package/dist/components/collection-page.d.ts +6 -3
- package/dist/components/collection-page.d.ts.map +1 -1
- package/dist/components/collection-page.js +4 -3
- package/dist/components/confirm-dialog.d.ts +37 -10
- package/dist/components/confirm-dialog.d.ts.map +1 -1
- package/dist/components/confirm-dialog.js +63 -11
- package/dist/components/data-table.d.ts +2 -2
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +7 -2
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/message-notice.js +1 -1
- package/dist/components/notice-banner.d.ts +1 -1
- package/dist/components/notice-banner.js +1 -1
- package/dist/components/object-page.d.ts +4 -1
- package/dist/components/object-page.d.ts.map +1 -1
- package/dist/components/object-page.js +3 -2
- package/dist/components/overview-page.d.ts +4 -1
- package/dist/components/overview-page.d.ts.map +1 -1
- package/dist/components/overview-page.js +3 -2
- package/dist/components/page-actions.d.ts +12 -61
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +27 -35
- package/dist/components/record-commands.d.ts +71 -0
- package/dist/components/record-commands.d.ts.map +1 -0
- package/dist/components/record-commands.js +92 -0
- package/dist/components/record-list.d.ts +32 -64
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +53 -61
- package/dist/components/record-sheet.d.ts +3 -3
- package/dist/components/record-sheet.d.ts.map +1 -1
- package/dist/components/settings-page.d.ts +5 -2
- package/dist/components/settings-page.d.ts.map +1 -1
- package/dist/components/settings-page.js +4 -3
- package/dist/internal/catalog-list.d.ts.map +1 -1
- package/dist/internal/catalog-list.js +2 -4
- package/dist/internal/command-runner.d.ts +13 -0
- package/dist/internal/command-runner.d.ts.map +1 -0
- package/dist/internal/command-runner.js +67 -0
- package/dist/internal/page-command-button.d.ts +83 -0
- package/dist/internal/page-command-button.d.ts.map +1 -0
- package/dist/internal/page-command-button.js +47 -0
- package/dist/internal/record-menu-items.d.ts +7 -5
- package/dist/internal/record-menu-items.d.ts.map +1 -1
- package/dist/internal/record-menu-items.js +1 -9
- package/dist/showcase/samples.d.ts +9 -2
- package/dist/showcase/samples.d.ts.map +1 -1
- package/dist/showcase/samples.js +15 -1
- package/dist/showcase/specimens/actions.d.ts +2 -0
- package/dist/showcase/specimens/actions.d.ts.map +1 -1
- package/dist/showcase/specimens/actions.js +4 -1
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +17 -14
- package/dist/showcase/specimens/index.d.ts +2 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/specimens/menus.d.ts.map +1 -1
- package/dist/showcase/specimens/menus.js +4 -3
- package/dist/showcase/usage.generated.d.ts +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +51 -29
- package/package.json +2 -2
|
@@ -65,7 +65,7 @@ export const USAGE = [
|
|
|
65
65
|
summary: "A page whose job is a list of records: its title with the page's actions on one row, its sibling collections, one toolbar, then one line per record.",
|
|
66
66
|
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: a list of entity rows a person finds one of, opens and acts on: Customers, Agents, Skills, Apps, MCP servers, Mailboxes, domains, environment variables (a row with an `editor` expands into its form). Its rows are a `RecordList`'s, so a row has a mark, a name over a muted line and at most three facts; anything wider is not this page. “Projects”: Vercel's Projects page stands a column of titled cards (Usage, Alerts, Recent Previews) at the left of its list. (https://vercel.com/dashboard) Ours: Customers and Partners use the full-width list, with actionable attention above the toolbar when present. Business summaries belong on Dashboard and Analytics. A rail remains available for context that belongs to the collection itself, such as the selected Library hub.",
|
|
67
67
|
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) Ours: records compared across columns, read by their headings, are a `DataTable` under the page's own title and toolbar. A list inside another page's section is a `RecordList` with its `heading`.",
|
|
68
|
-
behaviour: "The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as Vercel decides it: a page that is one plain list of things a person makes, whose concept needs no sentence, such as Vercel's Domains, Storage, Projects and AI Gateway's API Keys, has no title row, and its actions (its create buttons) end its search row, after the filters. A page that needs its one sentence, or whose commands do something other than create, such as Environment Variables, Members, Integrations and Deployments, keeps its title row with the sentence and every action on it. The product says which a page is (`PageActionsHostProvider`'s `titled`, or this composition's own `title`), never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The title row
|
|
68
|
+
behaviour: "The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as Vercel decides it: a page that is one plain list of things a person makes, whose concept needs no sentence, such as Vercel's Domains, Storage, Projects and AI Gateway's API Keys, has no title row, and its actions (its create buttons) end its search row, after the filters. A page that needs its one sentence, or whose commands do something other than create, such as Environment Variables, Members, Integrations and Deployments, keeps its title row with the sentence and every action on it. The product says which a page is (`PageActionsHostProvider`'s `titled`, or this composition's own `title`), never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The title row is `PageActions`'s, drawn from `actions`. The primary stays in the title row whether the collection is empty or not, filled, as Vercel's Flags keeps Create Flag; a first use repeats it as the filled button in its card. The page's actions stay on its title row whichever tab is shown; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.",
|
|
69
69
|
words: '“For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing.” (https://vercel.com/geist/empty-state) Ours: every string is the product\'s, in sentence case. The title names the collection in the plural ("Agents"); the search says what it finds ("Find a skill"); no match says what found nothing and offers to clear it ("Clear search", "Clear filters").',
|
|
70
70
|
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) Ours: the rows' region is the RecordList's, which holds it. The title is the page's h1 when the composition draws it. The toolbar is named by `label` and busy while `pending`; the rows are the RecordList's table, named by `label`.",
|
|
71
71
|
},
|
|
@@ -85,11 +85,11 @@ export const USAGE = [
|
|
|
85
85
|
module: "confirm-dialog",
|
|
86
86
|
family: "Compositions",
|
|
87
87
|
summary: "A consequence confirmed before it happens, in a blocking alert dialog.",
|
|
88
|
-
when:
|
|
89
|
-
instead: '"Don\'t use for routine confirmations (save draft, discard changes, close without saving). The typed gate reads as melodrama when the stakes are low — use a plain `Modal` instead." (https://vercel.com/geist/destructive-action-modal) "Confirm destructive actions in a Modal. `Drawer` and `Sheet` don’t fully dim the page, so they read as too soft for a delete or revoke." (https://vercel.com/geist/modal) Ours: a
|
|
90
|
-
behaviour: '"The verification input gets focus on open so the user can start typing immediately. Submit stays disabled until the value matches `verificationPhrase` exactly." (https://vercel.com/geist/destructive-action-modal) "Enter submits only when the gate is open; it\'s a no-op otherwise. Cancel, outside-click, and Escape all dismiss." (https://vercel.com/geist/destructive-action-modal) "`loading` disables both buttons. The caller owns `open` — do not self-dismiss from `onConfirm`. Close the modal after the API settles (success or error), or keep it open on error so the user can retry." (https://vercel.com/geist/destructive-action-modal) "Default focus to `Cancel` on any destructive Modal. Enter must never trigger the destructive action without a typed confirmation." (https://vercel.com/geist/modal)
|
|
91
|
-
words: '"`title` is Title Case, `Verb + Noun`, a statement — never a question. `Delete Project`, not `Delete this project?`." (https://vercel.com/geist/destructive-action-modal) "`description` is sentence case, names the consequence, and interpolates the specific resource when relevant.
|
|
92
|
-
access: '"The verification input is associated with its prompt via `aria-labelledby` + `htmlFor`.
|
|
88
|
+
when: "\"Reach for this over `Modal` when the action is destructive and warrants friction: delete, rotate, revoke, disconnect, downgrade, disable a security setting. The typed gate forces deliberate intent.\" (https://vercel.com/geist/destructive-action-modal) Ours: Geist's DestructiveActionModal. A command's `confirm` opens it: `RecordList`, `RecordCommands`, `PageActions` and `AccountMenu` open it from the command they draw, keep it open and busy while the command runs, and show its failure in it, so a product passes the words and never mounts it for a command (nadicode decision). A product mounts it itself only for a confirmation that is no command of theirs, such as a settings card's delete or discarding a form (nadicode decision).",
|
|
89
|
+
instead: '"Don\'t use for routine confirmations (save draft, discard changes, close without saving). The typed gate reads as melodrama when the stakes are low — use a plain `Modal` instead." (https://vercel.com/geist/destructive-action-modal) "Confirm destructive actions in a Modal. `Drawer` and `Sheet` don’t fully dim the page, so they read as too soft for a delete or revoke." (https://vercel.com/geist/modal) Ours: a destructive command the system can honestly reverse runs at once and offers its Undo in a toast (the command\'s `undo`), and one it cannot reverse asks here first (its `confirm`); a form of a few fields is a `FormDialog`; a choice from a catalogue is a `CatalogDrawer` (nadicode decision).',
|
|
90
|
+
behaviour: '"The verification input gets focus on open so the user can start typing immediately. Submit stays disabled until the value matches `verificationPhrase` exactly." (https://vercel.com/geist/destructive-action-modal) "Enter submits only when the gate is open; it\'s a no-op otherwise. Cancel, outside-click, and Escape all dismiss." (https://vercel.com/geist/destructive-action-modal) "`loading` disables both buttons. The caller owns `open` — do not self-dismiss from `onConfirm`. Close the modal after the API settles (success or error), or keep it open on error so the user can retry." (https://vercel.com/geist/destructive-action-modal) "Default focus to `Cancel` on any destructive Modal. Enter must never trigger the destructive action without a typed confirmation." (https://vercel.com/geist/modal) Ours: `title`, `description` and `confirmLabel` are required; `irreversible` and `verify` are optional, and the absence of `irreversible` is what marks the action reversible. Geist\'s `irreversibleDescription` is `irreversible`, `verificationPhrase` and `verificationLabel` are `verify.phrase` and `verify.prompt`, and `error` is the catalogue\'s message (nadicode decision). The record\'s name is typed (`verify`) only to delete a record that holds others and cannot be restored: an Agent, a workspace, a company (owner, 2026-11-06). 480 px wide over a scrim; the title and the description, then the body in a 24 px column: the `irreversible` note, the `verify` field, the failure under it. `irreversible` is a flat red note with a red mark and red words; besides it the only red is the failure and the enabled destructive confirm. While `loading` the field turns read-only and keeps focus, Escape does not close it, and the confirm says `confirmPendingLabel`, which falls back to its label. A press outside does not close it, so a stray click never discards a typed phrase or an action in flight; Escape and Cancel do. The footer stays at the bottom while a tall confirmation scrolls, and is a row on a phone too (nadicode decision).',
|
|
91
|
+
words: '"`title` is Title Case, `Verb + Noun`, a statement — never a question. `Delete Project`, not `Delete this project?`." (https://vercel.com/geist/destructive-action-modal) "`description` is sentence case, names the consequence, and interpolates the specific resource when relevant." (https://vercel.com/geist/destructive-action-modal) "`confirmLabel` matches the title 1:1. Never generic (`Confirm`, `OK`, `Continue`), never a bare verb (`Delete`)." (https://vercel.com/geist/destructive-action-modal) "Cancel literal stays `Cancel`. Acknowledgment-only Modals (after a key reveal, after a one-time-show) use `Done`, never `OK` or `Close`." (https://vercel.com/geist/modal) "`irreversibleDescription` names the specific action and resource and ends with `cannot be undone.` — `Deleting my-project cannot be undone.` rather than the generic `This cannot be undone.`." (https://vercel.com/geist/destructive-action-modal) "Pair the post-confirm success toast verb 1:1 with the primary button: `Delete Project` button, `Project deleted` toast. Never `Project removed`." (https://vercel.com/geist/destructive-action-modal) Ours: sentence case. The title names the verb and the record, "Remove pec@acme.it"; the confirm repeats the verb with its noun, "Remove mailbox", and a confirm of one word throws in development and tests; the dismissal has no prop: it is the product\'s catalogue word for Cancel, given once at its root by `ConfirmWordsProvider` ("Annulla"); the success toast uses the same verb, "Mailbox removed" (owner, 2026-11-06).',
|
|
92
|
+
access: '"The verification input is associated with its prompt via `aria-labelledby` + `htmlFor`." (https://vercel.com/geist/destructive-action-modal) "Keep the Cancel button literally `Cancel` so screen-reader users hear a stable dismissal label across destructive flows." (https://vercel.com/geist/modal) Ours: `role="alertdialog"` named by its title and described by its consequence; the note is `role="note"` with its icon hidden; focus starts on Cancel, or in the field with `verify` (nadicode decision).',
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
name: "DrawerSteps",
|
|
@@ -217,11 +217,11 @@ export const USAGE = [
|
|
|
217
217
|
module: "record-list",
|
|
218
218
|
family: "Compositions",
|
|
219
219
|
summary: "Entity rows: objects a person opens or acts on, one line each on one resting card: the identity mark and name over what it is, then its attributes as data, one per column: a few facts, a status only for the exception, when it happened, at most two row commands, and the three dots last.",
|
|
220
|
-
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: the records are things a person opens or acts on and that name themselves: projects, deployments, domains, members, integrations, Agents, Skills, mailboxes. A list inside another page: an Overview's exceptions, an object page's \"Needs attention\". A page whose whole job is the list is a `CollectionPage`, which draws this. Values edited in place (a domain, an environment variable) are the same rows with an `editor`: the row expands into its form. Of the three kinds of list, entity rows and rows edited in place are this; records compared across columns are a `DataTable
|
|
221
|
-
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity) Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item
|
|
222
|
-
behaviour: "One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps=\"detail\"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout=\"line\"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three.
|
|
223
|
-
words: '“Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity) Ours: the name is the record\'s own and the labels around it are sentence case, not Title Case. “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity) Ours:
|
|
224
|
-
access: '“Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton) Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column\'s is `commandsHeader`, and empty without one, since its controls name themselves, never the list\'s name a second time. The row link carries `open.label`; the three dots carry
|
|
220
|
+
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: the records are things a person opens or acts on and that name themselves: projects, deployments, domains, members, integrations, Agents, Skills, mailboxes. A list inside another page: an Overview's exceptions, an object page's \"Needs attention\". A page whose whole job is the list is a `CollectionPage`, which draws this. Values edited in place (a domain, an environment variable) are the same rows with an `editor`: the row expands into its form. Of the three kinds of list, entity rows and rows edited in place are this; records compared across columns are a `DataTable` (nadicode decision).",
|
|
221
|
+
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity) Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item` (nadicode decision).",
|
|
222
|
+
behaviour: "One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps=\"detail\"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout=\"line\"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list (\"Deployment retention is enabled. Learn more\", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs (\"2 selected\") and their one command stands at the footer's end as an outline button (\"Invite 2\"), so choosing never changes the page's title row; the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message. “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) Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision). “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity) Ours: at most two buttons stand on a row, then the three dots, all 32 px, as the commands rule above draws them (owner, 2026-11-06). “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity) Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision).",
|
|
223
|
+
words: '“Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity) Ours: the name is the record\'s own and the labels around it are sentence case, not Title Case (nadicode decision). “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity) Ours: a command reads the same on every row that has it, sentence case ("Cancel invite"), and the record\'s own name goes in its `accessibleName`, never in the label (nadicode decision). “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) Ours: a list is the records\' attributes shown as data, not written as text. Its columns are the few attributes a person compares across the records to decide what to do with one (a deployment\'s status, environment, commit, branch and time), chosen from that job, never from what there is to say about a record. A cell holds the value alone, in the same shape down its column: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. Never a sentence that restates the column ("Through Partner Alpha", "Joins as a company"), and never a word in place of a missing value ("Not available", "No Partner"): `of` returns nothing and the list draws the dash, and `nadicodeai/record-fact-no-stand-in` refuses the word given by `??`, a presence check or a guard clause. A known zero stays the count ("0 Agents") and a complete report that found nothing keeps its word ("None"), as `TableValue` says; a word that names a kind of its own, a glossary term such as "Direct customer", is a value. A fact\'s `label`, the status\'s and the time\'s are the nouns the headings would be ("Partner", "State", "Asked"). The name\'s line under it is the one place a record is described in words, and the time keeps its verb\'s sentence ("Updated 3h ago"), as the approved canvas rules. Every string is the product\'s: `label` names the list, a time\'s `phrase` writes its sentence, `missing` is what a screen reader hears behind a dash, `moreLabel` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the exception\'s word ("Needs attention", "Can\'t sign in"), never "Active" on every row, and never the state a row\'s own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step (nadicode decision).',
|
|
224
|
+
access: '“Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton) Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column\'s is `commandsHeader`, and empty without one, since its controls name themselves, never the list\'s name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu\'s first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision). “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity) Ours: each box is named by `select.label`, which reads "Select {record}" (nadicode decision).',
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
name: "RecordSheet",
|
|
@@ -328,7 +328,7 @@ export const USAGE = [
|
|
|
328
328
|
family: "Actions",
|
|
329
329
|
summary: "The end of a card's header: what the card's reader can do from it, and where it leads.",
|
|
330
330
|
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.",
|
|
331
|
-
instead: "A page's own commands are `PageActions` on the title's row. A
|
|
331
|
+
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).",
|
|
332
332
|
behaviour: 'As Vercel\'s card headers draw it (the plan card\'s "Invoices" and "Usage", a deployment\'s "Share" and "Logs" before "Visit", the overview\'s Usage card\'s "Billing"): 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. It wraps under the title when the header is narrow, as the card\'s header places it.',
|
|
333
333
|
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").',
|
|
334
334
|
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.",
|
|
@@ -360,12 +360,34 @@ export const USAGE = [
|
|
|
360
360
|
module: "page-actions",
|
|
361
361
|
family: "Actions",
|
|
362
362
|
summary: "A page's actions, drawn on its title's row. The row has one owner: a page kept hidden for a quick return has given it back, and a second `PageActions` on the page a person sees throws in development and in tests. Outside a `PageActionsHostProvider`, they render where they stand.",
|
|
363
|
-
when: "The actions of a collection, an object or an overview page, on the title's row at its trailing edge
|
|
364
|
-
instead: "A
|
|
365
|
-
behaviour: "
|
|
366
|
-
words: '
|
|
363
|
+
when: "The actions of a collection, an object or an overview page, on the title's row at its trailing edge; the page compositions draw it from their `actions`. A settings page (`SettingsPage`) has none: each section saves from its footer (nadicode decision).",
|
|
364
|
+
instead: "A record's commands are its list's (`RecordList`) or its `RecordCommands`. A collection toolbar holds search and filters, never a page action, except on a list page that draws no title row, where `CollectionPage` ends the toolbar with the page's actions. A page whose parts each have commands gathers them in the one `PageActions` of the component that owns the page; a part never draws a second (nadicode decision).",
|
|
365
|
+
behaviour: "Ours: an action sits on the title of the thing it acts on, never on a tab's, and a page's commands are the same on each of its sibling tabs, whatever its list shows or has chosen: only the viewer's permission removes one (nadicode decision). A command on chosen records is the list's own (`select.chosen`), and a record's is its row's (nadicode decision). One per page: a second `PageActions` on the page a person sees would hide the first's commands, so it throws in development and in tests, and in production the one that mounted last keeps the row; a page kept hidden for a quick return (an `Activity` with `mode=\"hidden\"`) has given the row back (nadicode decision). It takes `period`, `secondary`, `primary` and `menu` and draws their order: the period, the outline secondary, the filled primary, then the three dots last; one filled button per page (nadicode decision). The page's three dots hold two commands or more, which the type requires; a single extra command is the secondary (owner, 2026-11-06). A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon; a kind that needs its own fields opens its dialog from its row (nadicode decision). A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon and says its pending word, and the type requires `pendingLabel` whenever `pending` is set; one that cannot run now stays, disabled, with `disabledReason` in its tooltip (nadicode decision). Deleting the page's own record is never here: it is the danger zone of the record's Settings, in a card. A reversible command on the record, such as Archive, may stand last in the page's three dots, after a divider, with its `confirm` or `undo` (nadicode decision). “Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why.” (https://vercel.com/geist/button) “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)",
|
|
366
|
+
words: 'Ours: the primary is the page\'s main job as verb and noun: "Invite member", "New Agent"; its choices are the kinds, as nouns: "Folder", "Documents", "Web page"; the pending word is its -ing form: "Inviting member"; the menu names the page\'s record at its top (nadicode decision).',
|
|
367
367
|
access: 'DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A running command is `aria-busy` and keeps focus. The three dots carry "More for {record}"; the menu returns focus to them when it closes.',
|
|
368
368
|
},
|
|
369
|
+
{
|
|
370
|
+
name: "RecordCommands",
|
|
371
|
+
module: "record-commands",
|
|
372
|
+
family: "Actions",
|
|
373
|
+
summary: "One record's commands outside a list: a message's hover bar, a member's card, an Agent's header.",
|
|
374
|
+
when: "Ours: the commands of one record that is not a row of a `RecordList`: Alveare's message hover bar and member card, Nadia's assignment card and an Agent's header (nadicode decision).",
|
|
375
|
+
instead: "Ours: the records of a list give their commands to `RecordList`, which draws the same decision on every row; a page's own commands are its composition's `actions` (nadicode decision).",
|
|
376
|
+
behaviour: "Ours: one record's commands drawn by the rule `RecordList` holds for its rows, which decides which stand as buttons, which go in the three dots and how a destructive one confirms; the buttons and the three dots are 32 px, aligned to the end (nadicode decision).",
|
|
377
|
+
words: '“Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity) Ours: sentence case, "Cancel invite"; the three dots read "More for {record}" (nadicode decision).',
|
|
378
|
+
access: "Ours: each button is named by its label, or its `accessibleName` where the label alone does not name the record; a reason is the button's description; the three dots carry `moreLabel` (nadicode decision).",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "RecordContextMenu",
|
|
382
|
+
module: "record-commands",
|
|
383
|
+
family: "Actions",
|
|
384
|
+
summary: "A record's right-click: every command its `RecordCommands` draws, in one menu.",
|
|
385
|
+
when: "“ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity.” (https://vercel.com/geist/context-menu) Ours: around a card that also draws `RecordCommands`, given the same commands (nadicode decision).",
|
|
386
|
+
instead: "Ours: a `RecordList` row already opens the same menu on a right-click (nadicode decision).",
|
|
387
|
+
behaviour: "Ours: every command, destructive last after a divider, a destructive one opening its confirmation; with none, the card keeps its element and the browser its own menu (nadicode decision).",
|
|
388
|
+
words: "Ours: the same labels as the visible commands (nadicode decision).",
|
|
389
|
+
access: "Ours: the menu is named by `moreLabel` (nadicode decision).",
|
|
390
|
+
},
|
|
369
391
|
{
|
|
370
392
|
name: "Calendar",
|
|
371
393
|
module: "calendar",
|
|
@@ -1482,7 +1504,7 @@ export const USAGE = [
|
|
|
1482
1504
|
module: "notice-banner",
|
|
1483
1505
|
family: "Feedback",
|
|
1484
1506
|
summary: "A condition of the page's own object, with the fix the page offers.",
|
|
1485
|
-
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`.
|
|
1507
|
+
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`), which places it under the title; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).',
|
|
1486
1508
|
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 Vercel dashboard displays a popover, which contains all relevant notifications" (https://vercel.com/docs/notifications), and the Portal\'s System health raises it through Knock to the bell at the sidebar\'s foot.',
|
|
1487
1509
|
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.',
|
|
1488
1510
|
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.',
|
|
@@ -1580,23 +1602,23 @@ export const USAGE = [
|
|
|
1580
1602
|
name: "ActionContextMenu",
|
|
1581
1603
|
module: "action-menu",
|
|
1582
1604
|
family: "Menus",
|
|
1583
|
-
summary: "A record's menu opened from its row by a right-click: the mirror of its
|
|
1584
|
-
when:
|
|
1585
|
-
instead: '"For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu) Ours:
|
|
1586
|
-
behaviour: '"Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours:
|
|
1587
|
-
words: '"Items follow the same rules as `Menu`: Title Case `Verb + Noun` (`Open in New Tab`, `Copy URL`, `Delete Deployment`). Bare verbs are wrong." (https://vercel.com/geist/context-menu) Ours: sentence case, "Copy address"
|
|
1588
|
-
access: '"Trigger the keyboard menu key (`Shift+F10` on Windows/Linux, the menu key, or platform equivalent) to open the same menu without right-click." (https://vercel.com/geist/context-menu) "Up/Down arrows move focus, Enter/Space activates, Escape closes and returns focus to the row." (https://vercel.com/geist/context-menu) Ours: the menu is named by `label`, which is required.',
|
|
1605
|
+
summary: "A record's menu opened from its row by a right-click: the mirror of its visible commands.",
|
|
1606
|
+
when: "\"ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity.\" (https://vercel.com/geist/context-menu) Ours: drawn by `DataTable`'s entity rows and by `RecordContextMenu`, with every command the record's visible buttons and three dots hold; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).",
|
|
1607
|
+
instead: '"For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu) Ours: a product gives a card\'s right-click to `RecordContextMenu`, with the same commands it gives `RecordCommands` (nadicode decision).',
|
|
1608
|
+
behaviour: '"Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: every command of the record, in the order of its buttons and dots, with the dropdown\'s surface and rows, destructive last after a divider, a destructive one opening its confirmation; with no command the row renders alone and keeps its element (nadicode decision).',
|
|
1609
|
+
words: '"Items follow the same rules as `Menu`: Title Case `Verb + Noun` (`Open in New Tab`, `Copy URL`, `Delete Deployment`). Bare verbs are wrong." (https://vercel.com/geist/context-menu) Ours: sentence case, "Copy address"; a command reached two ways reads the same both ways (nadicode decision).',
|
|
1610
|
+
access: '"Trigger the keyboard menu key (`Shift+F10` on Windows/Linux, the menu key, or platform equivalent) to open the same menu without right-click." (https://vercel.com/geist/context-menu) "Up/Down arrows move focus, Enter/Space activates, Escape closes and returns focus to the row." (https://vercel.com/geist/context-menu) Ours: the menu is named by `label`, which is required (nadicode decision).',
|
|
1589
1611
|
},
|
|
1590
1612
|
{
|
|
1591
1613
|
name: "ActionMenu",
|
|
1592
1614
|
module: "action-menu",
|
|
1593
1615
|
family: "Menus",
|
|
1594
|
-
summary: "A record's three dots: the menu of
|
|
1595
|
-
when: '"An overflow menu triggered by a three-dot icon that reveals additional actions in a dropdown." (https://vercel.com/geist/dots-menu) "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: the
|
|
1596
|
-
instead: "\"For right-click or long-press on a row, use `ContextMenu`. For global commands behind `⌘K`, use `CommandMenu
|
|
1597
|
-
behaviour: '"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
|
|
1598
|
-
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)
|
|
1599
|
-
access: '"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: the trigger is a ghost icon button named by `label`,
|
|
1616
|
+
summary: "A record's three dots: the menu of the commands that do not stand as buttons, headed by the record's name.",
|
|
1617
|
+
when: '"An overflow menu triggered by a three-dot icon that reveals additional actions in a dropdown." (https://vercel.com/geist/dots-menu) "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: the three dots of a record or of a page. Only `RecordList`, `RecordCommands` and the page compositions draw it, from the commands a product passes them; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).',
|
|
1618
|
+
instead: "\"For right-click or long-press on a row, use `ContextMenu`. For global commands behind `⌘K`, use `CommandMenu`.\" (https://vercel.com/geist/menu) Ours: a record's commands are given to `RecordList` (in a list) or `RecordCommands` (one record outside a list), and a page's to its composition's `actions`; each decides what stands as a button and what goes in these dots. Finding across everything is `CommandDialog`; a value to choose is a `Select` (nadicode decision).",
|
|
1619
|
+
behaviour: '"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 required `reason`: the row stays, inert, with a lock at its end and the reason under its label (nadicode decision). "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: it holds two commands or more, so a menu of one does not compile (owner, 2026-11-06), and more than ten throws in development and tests (nadicode decision). The menu is at most 288 px wide and the record\'s name heading it is one line, cut with an ellipsis and whole in its tooltip (nadicode decision). The trigger is a ghost icon button, 32 px on a row and at the control height (36 px) on a title row, named for its record, last after any button, keeping its fill while open (nadicode decision). The menu opens 10 px under the trigger, aligned to its end: the record\'s name, the commands with their icons first and the value one acts on in mono under it, then the destructive ones after a divider in the error colour (nadicode decision). A command that cannot run now takes `disabledReason`: it stays, 36 px like the rest, its text muted, never dimmed, with why in a line under its label; a destructive one is muted, not red; a running one takes `pending` and `pendingLabel` (nadicode decision). A destructive command opens its confirmation from here, or runs and offers its Undo, as `MenuCommand` requires (nadicode decision).',
|
|
1620
|
+
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) Ours: sentence case, "Remove mailbox", not Title Case; the trigger reads "More for {record}" and the header is the record\'s name; rows wrap, never truncate (nadicode decision).',
|
|
1621
|
+
access: '"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: the trigger is a ghost icon button named by `label`, `aria-expanded` while open; `role="menu"`, items `menuitem` in a group named by `record`; every command requires its `icon`, which is hidden; the value a command acts on and its reason are the item\'s description (nadicode decision).',
|
|
1600
1622
|
},
|
|
1601
1623
|
{
|
|
1602
1624
|
name: "AlertDialog",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.207",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@headless-tree/react": "1.8.0",
|
|
79
79
|
"@iconify-icons/logos": "^2.0.3",
|
|
80
80
|
"@iconify/react": "^6.0.2",
|
|
81
|
-
"@nadicodeai/design-system": "12.1.
|
|
81
|
+
"@nadicodeai/design-system": "12.1.207",
|
|
82
82
|
"@tanstack/react-table": "^9.3.1",
|
|
83
83
|
"@vgpu/wgsl": "0.6.0",
|
|
84
84
|
"class-variance-authority": "^0.7.1",
|