@nadicodeai/ui 12.1.224 → 12.1.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -1
- package/dist/components/action-menu.d.ts +4 -4
- package/dist/components/action-menu.d.ts.map +1 -1
- package/dist/components/action-menu.js +2 -2
- package/dist/components/agent-card.d.ts +1 -1
- package/dist/components/agent-card.js +1 -1
- package/dist/components/badge.d.ts +2 -1
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +2 -1
- package/dist/components/brand.d.ts +1 -1
- package/dist/components/brand.d.ts.map +1 -1
- package/dist/components/brand.js +21 -2
- package/dist/components/card.d.ts +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/catalog-card.d.ts +1 -2
- package/dist/components/catalog-card.d.ts.map +1 -1
- package/dist/components/catalog-card.js +1 -2
- package/dist/components/chart-card.d.ts +2 -2
- package/dist/components/chart-card.d.ts.map +1 -1
- package/dist/components/chart-card.js +1 -1
- package/dist/components/check-counts.d.ts +3 -5
- package/dist/components/check-counts.d.ts.map +1 -1
- package/dist/components/check-counts.js +5 -7
- package/dist/components/collection-page.d.ts +6 -7
- package/dist/components/collection-page.d.ts.map +1 -1
- package/dist/components/collection-page.js +3 -3
- package/dist/components/data-table.d.ts +13 -21
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +57 -192
- package/dist/components/drawer-steps.d.ts +1 -1
- package/dist/components/drawer-steps.js +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -4
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +7 -6
- package/dist/components/empty-state.d.ts +4 -1
- package/dist/components/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state.js +5 -4
- package/dist/components/figure-row.d.ts +58 -0
- package/dist/components/figure-row.d.ts.map +1 -0
- package/dist/components/figure-row.js +41 -0
- package/dist/components/form-dialog.d.ts +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-drawer.d.ts +2 -2
- package/dist/components/form-drawer.js +2 -2
- package/dist/components/gauge.d.ts +2 -0
- package/dist/components/gauge.d.ts.map +1 -1
- package/dist/components/gauge.js +2 -0
- package/dist/components/icon-tile.d.ts +27 -0
- package/dist/components/icon-tile.d.ts.map +1 -0
- package/dist/components/icon-tile.js +18 -0
- package/dist/components/identity-mark.d.ts +3 -2
- package/dist/components/identity-mark.d.ts.map +1 -1
- package/dist/components/identity-mark.js +3 -10
- package/dist/components/kpi-card.d.ts +23 -6
- package/dist/components/kpi-card.d.ts.map +1 -1
- package/dist/components/kpi-card.js +11 -7
- package/dist/components/library-shelf.d.ts +1 -1
- package/dist/components/library-shelf.js +1 -1
- package/dist/components/menu-choice-row.d.ts +1 -2
- package/dist/components/menu-choice-row.d.ts.map +1 -1
- package/dist/components/menu-choice-row.js +1 -2
- package/dist/components/notice-banner.d.ts +1 -1
- package/dist/components/notice-banner.js +1 -1
- package/dist/components/numbered-steps.d.ts +1 -1
- package/dist/components/numbered-steps.js +1 -1
- package/dist/components/object-page.d.ts +25 -9
- package/dist/components/object-page.d.ts.map +1 -1
- package/dist/components/object-page.js +13 -9
- package/dist/components/object-workspace.d.ts +2 -2
- package/dist/components/object-workspace.js +2 -2
- package/dist/components/overview-page.d.ts +6 -1
- package/dist/components/overview-page.d.ts.map +1 -1
- package/dist/components/page-actions.d.ts +16 -15
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +9 -7
- package/dist/components/page-frame.d.ts +1 -1
- package/dist/components/page-frame.js +1 -1
- package/dist/components/page-header.d.ts +12 -9
- package/dist/components/page-header.d.ts.map +1 -1
- package/dist/components/page-header.js +11 -8
- package/dist/components/product-shell.d.ts +10 -13
- package/dist/components/product-shell.d.ts.map +1 -1
- package/dist/components/product-shell.js +9 -12
- package/dist/components/progress-checklist.d.ts +4 -4
- package/dist/components/progress-checklist.d.ts.map +1 -1
- package/dist/components/progress-checklist.js +4 -14
- package/dist/components/progress.d.ts +3 -1
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +3 -1
- package/dist/components/reading-column.d.ts +2 -2
- package/dist/components/reading-column.js +2 -2
- package/dist/components/record-commands.d.ts +15 -7
- package/dist/components/record-commands.d.ts.map +1 -1
- package/dist/components/record-commands.js +26 -19
- package/dist/components/record-identity.d.ts +4 -2
- package/dist/components/record-identity.d.ts.map +1 -1
- package/dist/components/record-identity.js +3 -4
- package/dist/components/record-list.d.ts +25 -27
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +31 -79
- package/dist/components/record-sheet.d.ts +1 -1
- package/dist/components/record-sheet.js +1 -1
- package/dist/components/row-edit-form.d.ts +1 -1
- package/dist/components/row-edit-form.js +1 -1
- package/dist/components/settings-facts.d.ts +5 -6
- package/dist/components/settings-facts.d.ts.map +1 -1
- package/dist/components/settings-facts.js +3 -4
- package/dist/components/settings-page.d.ts +2 -2
- package/dist/components/settings-page.js +2 -2
- package/dist/components/settings-section.d.ts +10 -5
- package/dist/components/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section.js +8 -4
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar-sections.d.ts +4 -4
- package/dist/components/sidebar-sections.d.ts.map +1 -1
- package/dist/components/sidebar-sections.js +3 -3
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/status-badge.d.ts +15 -12
- package/dist/components/status-badge.d.ts.map +1 -1
- package/dist/components/status-badge.js +15 -12
- package/dist/components/step-cards.d.ts +1 -2
- package/dist/components/step-cards.d.ts.map +1 -1
- package/dist/components/step-cards.js +1 -2
- package/dist/components/switch.d.ts +4 -2
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +9 -3
- package/dist/components/table-card.d.ts +2 -3
- package/dist/components/table-card.d.ts.map +1 -1
- package/dist/components/table-card.js +2 -3
- package/dist/components/table.d.ts +6 -24
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/table.js +11 -23
- package/dist/components/tabs-nav.d.ts +2 -2
- package/dist/components/tabs-nav.js +2 -2
- package/dist/components/text-link.d.ts +5 -5
- package/dist/components/text-link.js +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/internal/badge-frame.d.ts +1 -1
- package/dist/internal/badge-frame.d.ts.map +1 -1
- package/dist/internal/badge-frame.js +1 -0
- package/dist/internal/catalog-list.d.ts.map +1 -1
- package/dist/internal/catalog-list.js +1 -1
- package/dist/internal/collection-rail.d.ts +2 -2
- package/dist/internal/collection-rail.d.ts.map +1 -1
- package/dist/internal/empty.d.ts +1 -1
- package/dist/internal/empty.d.ts.map +1 -1
- package/dist/internal/empty.js +1 -2
- package/dist/internal/fieldset-disabled.d.ts +6 -0
- package/dist/internal/fieldset-disabled.d.ts.map +1 -0
- package/dist/internal/fieldset-disabled.js +7 -0
- package/dist/internal/final-focus.d.ts +2 -2
- package/dist/internal/final-focus.js +2 -2
- package/dist/internal/icon-tile-frame.d.ts +16 -0
- package/dist/internal/icon-tile-frame.d.ts.map +1 -0
- package/dist/internal/icon-tile-frame.js +21 -0
- package/dist/internal/record-grid.d.ts +58 -0
- package/dist/internal/record-grid.d.ts.map +1 -0
- package/dist/internal/record-grid.js +79 -0
- package/dist/internal/settings-save.d.ts.map +1 -1
- package/dist/internal/settings-save.js +2 -1
- package/dist/showcase/specimens/actions.d.ts.map +1 -1
- package/dist/showcase/specimens/actions.js +1 -1
- package/dist/showcase/specimens/charts.d.ts.map +1 -1
- package/dist/showcase/specimens/charts.js +1 -1
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +3 -3
- package/dist/showcase/specimens/data.d.ts +1 -0
- package/dist/showcase/specimens/data.d.ts.map +1 -1
- package/dist/showcase/specimens/data.js +7 -4
- package/dist/showcase/specimens/index.d.ts +2 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/specimens/status.d.ts +1 -0
- package/dist/showcase/specimens/status.d.ts.map +1 -1
- package/dist/showcase/specimens/status.js +4 -2
- 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 +99 -77
- package/dist/standalone/index.js +1 -1
- package/package.json +2 -2
- package/dist/components/table-layouts.d.ts +0 -110
- package/dist/components/table-layouts.d.ts.map +0 -1
- package/dist/components/table-layouts.js +0 -125
- package/dist/internal/table-compact-line.d.ts +0 -57
- package/dist/internal/table-compact-line.d.ts.map +0 -1
- package/dist/internal/table-compact-line.js +0 -119
package/AGENTS.md
CHANGED
|
@@ -67,7 +67,10 @@ draws it for all of them, never in `DESIGN.md`
|
|
|
67
67
|
until it runs. `@when` is the job, with the products' own examples; `@instead`
|
|
68
68
|
what to use for the jobs next to it; `@behaviour` its states, what it does on
|
|
69
69
|
each input and what it owns; `@words` which strings the product words, and how;
|
|
70
|
-
`@access` its role, name, keyboard path and focus. A page
|
|
70
|
+
`@access` its role, name, keyboard path and focus. A usage page states the
|
|
71
|
+
behaviour itself, never as a comparison with a Vercel screen ("as Vercel's
|
|
72
|
+
Deployments list does"): the screen a pattern came from is written only in
|
|
73
|
+
the product-design skill's Vercel correspondence. A page quoting Geist names
|
|
71
74
|
our API, not Geist's props (Button's appearance is `variant`), and a name
|
|
72
75
|
Geist has that we lack does not call for a new primitive: use the existing
|
|
73
76
|
composition first.
|
|
@@ -82,8 +82,8 @@ type MenuCommandFace = PendingWord & {
|
|
|
82
82
|
* colour, and carries its `confirm` or `undo`.
|
|
83
83
|
*/
|
|
84
84
|
export type MenuCommand = MenuCommandFace & CommandConsequence;
|
|
85
|
-
/**
|
|
86
|
-
export type MenuCommands = readonly [MenuCommand,
|
|
85
|
+
/** One command or more: a three-dots menu never opens onto none. */
|
|
86
|
+
export type MenuCommands = readonly [MenuCommand, ...MenuCommand[]];
|
|
87
87
|
/** A record's menu: whose it is, and what can be done to it. */
|
|
88
88
|
export type RecordMenu = {
|
|
89
89
|
/** The trigger's accessible name, from the catalogue: "More for pec@acme.it". */
|
|
@@ -120,9 +120,9 @@ export declare function refuseTooManyCommands(name: string, count: number): void
|
|
|
120
120
|
* "Position auto-flips based on window bounds; don’t hardcode a side that clips on narrow viewports." (https://vercel.com/geist/menu)
|
|
121
121
|
* "Close on item activation, Escape, and outside-click. Don’t auto-close on a hover-out." (https://vercel.com/geist/menu)
|
|
122
122
|
* "Use `MenuItemLocked` for permission-gated actions so the lock icon and disabled state explain why the row is inert." (https://vercel.com/geist/menu)
|
|
123
|
-
* Ours: that is `locked` with its required `reason`: the row stays, inert, with a lock at its end and the reason
|
|
123
|
+
* Ours: that is `locked` with its required `reason`: the row stays, inert, with a lock at its end, and the reason is its description, read by a screen reader (owner, 2026-11-09).
|
|
124
124
|
* "Cap a Menu around 10 items. Past that, group with `MenuSection` or move secondary actions to a settings page." (https://vercel.com/geist/menu)
|
|
125
|
-
* Ours: it holds
|
|
125
|
+
* Ours: it holds one command or more, 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 a lock at its end and why as its description, never a line of text in the menu (owner, 2026-11-09); 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).
|
|
126
126
|
* @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)
|
|
127
127
|
* "End an item with `…` only when activating it opens a follow-up dialog (`Rename…`, `Transfer to Team…`)." (https://vercel.com/geist/menu)
|
|
128
128
|
* "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)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-menu.d.ts","sourceRoot":"","sources":["../../src/components/action-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrE,OAAO,EAEL,mBAAmB,EAEnB,KAAK,wBAAwB,EAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAIpE,iFAAiF;AACjF,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AACtE;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,WAAW,EAAE,SAAS,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,6GAA6G;IAC7G,MAAM,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,qGAAqG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G,SAAS,CAAC;IAC/B,gGAAgG;IAChG,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IACpC,gGAAgG;IAChG,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC,YAAY,CAAC,CAAC;CACvE,CAAC;AAEF,0GAA0G;AAC1G,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAOvE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,IAAe,EACf,UAAU,GACX,EAAE,eAAe,+BAyBjB;AAED,4GAA4G;AAC5G,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;IAClE,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,wEAAwE;IACxE,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,sBAAsB,+BAkB9F"}
|
|
@@ -29,9 +29,9 @@ export function refuseTooManyCommands(name, count) {
|
|
|
29
29
|
* "Position auto-flips based on window bounds; don’t hardcode a side that clips on narrow viewports." (https://vercel.com/geist/menu)
|
|
30
30
|
* "Close on item activation, Escape, and outside-click. Don’t auto-close on a hover-out." (https://vercel.com/geist/menu)
|
|
31
31
|
* "Use `MenuItemLocked` for permission-gated actions so the lock icon and disabled state explain why the row is inert." (https://vercel.com/geist/menu)
|
|
32
|
-
* Ours: that is `locked` with its required `reason`: the row stays, inert, with a lock at its end and the reason
|
|
32
|
+
* Ours: that is `locked` with its required `reason`: the row stays, inert, with a lock at its end, and the reason is its description, read by a screen reader (owner, 2026-11-09).
|
|
33
33
|
* "Cap a Menu around 10 items. Past that, group with `MenuSection` or move secondary actions to a settings page." (https://vercel.com/geist/menu)
|
|
34
|
-
* Ours: it holds
|
|
34
|
+
* Ours: it holds one command or more, 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 a lock at its end and why as its description, never a line of text in the menu (owner, 2026-11-09); 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).
|
|
35
35
|
* @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)
|
|
36
36
|
* "End an item with `…` only when activating it opens a follow-up dialog (`Rename…`, `Transfer to Team…`)." (https://vercel.com/geist/menu)
|
|
37
37
|
* "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)
|
|
@@ -35,7 +35,7 @@ export type AgentCardProps = AgentCardContent & Omit<React.ComponentProps<typeof
|
|
|
35
35
|
* @instead The same gallery read as a list is `AgentRow`. A list of Agents to open is
|
|
36
36
|
* `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page
|
|
37
37
|
* heading. A Library skill or plugin is a row of its collection (`CollectionPage`).
|
|
38
|
-
* @behaviour
|
|
38
|
+
* @behaviour Every card has the same slots, so what one holds never moves
|
|
39
39
|
* another's. The picture stands top left, her orb at 64 with its empty edge outside the card's
|
|
40
40
|
* padding, and the status (her apps) top right; at the card's foot her name on one line, her job in
|
|
41
41
|
* a slot of two lines cut after the second, and the meta, with the one action at its end. With
|
|
@@ -22,7 +22,7 @@ function CornerGlow({ glow }) {
|
|
|
22
22
|
* @instead The same gallery read as a list is `AgentRow`. A list of Agents to open is
|
|
23
23
|
* `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page
|
|
24
24
|
* heading. A Library skill or plugin is a row of its collection (`CollectionPage`).
|
|
25
|
-
* @behaviour
|
|
25
|
+
* @behaviour Every card has the same slots, so what one holds never moves
|
|
26
26
|
* another's. The picture stands top left, her orb at 64 with its empty edge outside the card's
|
|
27
27
|
* padding, and the status (her apps) top right; at the card's foot her name on one line, her job in
|
|
28
28
|
* a slot of two lines cut after the second, and the meta, with the one action at its end. With
|
|
@@ -20,7 +20,8 @@ type BadgeProps = Omit<BadgeFrameProps, "children" | "icon" | "title"> & ({
|
|
|
20
20
|
* Ours: a state is a `StatusBadge`; a `Badge` is a role (*Owner*), a plan, an environment, *Beta*.
|
|
21
21
|
* It always has a word, or one `icon` with a `title`, and the type asks for it. `size` follows the
|
|
22
22
|
* type beside it: `sm` (20 px) next to small labels, `md` (24 px) in a row, `lg` (32 px) in a
|
|
23
|
-
* header. The category fills (teal, purple, pink) name a kind
|
|
23
|
+
* header. The category fills (teal, purple, pink, orange) name a kind, such as a plan's tier; a
|
|
24
|
+
* rank, such as a role, takes `default`, `secondary` and `outline` in that order.
|
|
24
25
|
* @instead "For a colored dot without text, use `Status Dot`." (https://vercel.com/geist/badge)
|
|
25
26
|
* Ours: a single dot is never a status; a state is `StatusBadge`, its tone's shape of dots and its
|
|
26
27
|
* word, with no pill.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE1F,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,GACpE,CACI;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,qGAAqG;IACrG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;CACf,CACJ,CAAC;AAEJ
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE1F,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,GACpE,CACI;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,qGAAqG;IACrG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;CACf,CACJ,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,iBAAS,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAElD;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,CAAC"}
|
package/dist/components/badge.js
CHANGED
|
@@ -9,7 +9,8 @@ import { BadgeFrame } from "../internal/badge-frame.js";
|
|
|
9
9
|
* Ours: a state is a `StatusBadge`; a `Badge` is a role (*Owner*), a plan, an environment, *Beta*.
|
|
10
10
|
* It always has a word, or one `icon` with a `title`, and the type asks for it. `size` follows the
|
|
11
11
|
* type beside it: `sm` (20 px) next to small labels, `md` (24 px) in a row, `lg` (32 px) in a
|
|
12
|
-
* header. The category fills (teal, purple, pink) name a kind
|
|
12
|
+
* header. The category fills (teal, purple, pink, orange) name a kind, such as a plan's tier; a
|
|
13
|
+
* rank, such as a role, takes `default`, `secondary` and `outline` in that order.
|
|
13
14
|
* @instead "For a colored dot without text, use `Status Dot`." (https://vercel.com/geist/badge)
|
|
14
15
|
* Ours: a single dot is never a status; a state is `StatusBadge`, its tone's shape of dots and its
|
|
15
16
|
* word, with no pill.
|
|
@@ -41,7 +41,7 @@ type ProductWordmarkProps = Omit<React.ComponentProps<"span">, "children" | "rol
|
|
|
41
41
|
* on their own names and marks, never after the wordmark.
|
|
42
42
|
* @behaviour One line on one baseline. The font size is the wordmark's height: `size="header"` in an
|
|
43
43
|
* entry page's header, and `SidebarBrand` fits it to the column. The name is set at the
|
|
44
|
-
* wordmark's x-height, a word space after it, in lowercase Geist
|
|
44
|
+
* wordmark's x-height, a word space after it, in lowercase semibold Geist, a one-word name's letters cut into three even groups in three of Sofia's arc colours, cobalto, verde and arancio, so the company leads and the product marks itself in its Agent's colours; a name of several words stays whole in verde. Its glyphs stand above the box, which is as tall as the
|
|
45
45
|
* wordmark, so the pair centres on the logo. Narrower than the pair, the name ends in an ellipsis.
|
|
46
46
|
* @words The product's name as the glossary writes it in the page's language.
|
|
47
47
|
* @access One image named "nadicode" and the product by default; `alt=""` hides it where a link or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/components/brand.tsx"],"names":[],"mappings":"AASA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,cAAc,GAAG,IAAI,CACxB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CACnD,GAAG;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;CACpD,CAAC;AAwCF,4FAA4F;AAC5F,iBAAS,SAAS,CAAC,EACjB,GAAgB,EAChB,SAAS,EACT,KAAU,EACV,MAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,qBAkBhB;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,aAAa,CAAC,EACrB,GAAgB,EAChB,SAAS,EACT,KAAW,EACX,MAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,qBAkBhB;AAED,QAAA,MAAM,uBAAuB;;8EAQ3B,CAAC;AAEH,KAAK,oBAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,GACjF,YAAY,CAAC,OAAO,uBAAuB,CAAC,GAAG;IAC7C,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;
|
|
1
|
+
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/components/brand.tsx"],"names":[],"mappings":"AASA,OAAO,EAAO,KAAK,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gap-[0.4
|
|
|
64
64
|
},
|
|
65
65
|
defaultVariants: { size: "inherit" },
|
|
66
66
|
});
|
|
67
|
+
/**
|
|
68
|
+
* Three of Sofia's arc colours, each holding a third of the name as her outline holds its arc. The
|
|
69
|
+
* cobalto third is the logo's dot, so the dot and the name's first letters are one blue in both
|
|
70
|
+
* themes.
|
|
71
|
+
*/
|
|
72
|
+
const PRODUCT_NAME_TONES = [
|
|
73
|
+
"text-[var(--nc-logo-dot)]",
|
|
74
|
+
// Each theme's own step of verde and arancio, which clears 4.5:1 at the name's size on its ground.
|
|
75
|
+
"text-[var(--nc-product-name-verde)]",
|
|
76
|
+
"text-[var(--nc-product-name-arancio)]",
|
|
77
|
+
];
|
|
78
|
+
/** The name cut into three letter groups as even as its length allows: "po rt al", "Por ta le". */
|
|
79
|
+
function productNameThirds(name) {
|
|
80
|
+
const base = Math.floor(name.length / 3);
|
|
81
|
+
const extra = name.length % 3;
|
|
82
|
+
const first = base + (extra > 0 ? 1 : 0);
|
|
83
|
+
const second = first + base + (extra > 1 ? 1 : 0);
|
|
84
|
+
return [name.slice(0, first), name.slice(first, second), name.slice(second)];
|
|
85
|
+
}
|
|
67
86
|
/**
|
|
68
87
|
* The wordmark followed by the name of the nadicode product it heads: *nadicode Portal*.
|
|
69
88
|
*
|
|
@@ -74,7 +93,7 @@ const productWordmarkVariants = cva("inline-flex min-w-0 items-baseline gap-[0.4
|
|
|
74
93
|
* on their own names and marks, never after the wordmark.
|
|
75
94
|
* @behaviour One line on one baseline. The font size is the wordmark's height: `size="header"` in an
|
|
76
95
|
* entry page's header, and `SidebarBrand` fits it to the column. The name is set at the
|
|
77
|
-
* wordmark's x-height, a word space after it, in lowercase Geist
|
|
96
|
+
* wordmark's x-height, a word space after it, in lowercase semibold Geist, a one-word name's letters cut into three even groups in three of Sofia's arc colours, cobalto, verde and arancio, so the company leads and the product marks itself in its Agent's colours; a name of several words stays whole in verde. Its glyphs stand above the box, which is as tall as the
|
|
78
97
|
* wordmark, so the pair centres on the logo. Narrower than the pair, the name ends in an ellipsis.
|
|
79
98
|
* @words The product's name as the glossary writes it in the page's language.
|
|
80
99
|
* @access One image named "nadicode" and the product by default; `alt=""` hides it where a link or
|
|
@@ -82,6 +101,6 @@ const productWordmarkVariants = cva("inline-flex min-w-0 items-baseline gap-[0.4
|
|
|
82
101
|
*/
|
|
83
102
|
function ProductWordmark({ product, alt, size, className, ...props }) {
|
|
84
103
|
const name = alt ?? `nadicode ${product}`;
|
|
85
|
-
return (_jsxs("span", { "data-slot": "product-wordmark", className: cn(productWordmarkVariants({ size }), className), ...accessibilityProps(name), ...props, children: [_jsx(BrandWordmark, { alt: "", className: "h-[1em] shrink-0" }), _jsx("span", { className: "min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap [font-size-adjust:calc(100/150)] leading-0 font-
|
|
104
|
+
return (_jsxs("span", { "data-slot": "product-wordmark", className: cn(productWordmarkVariants({ size }), className), ...accessibilityProps(name), ...props, children: [_jsx(BrandWordmark, { alt: "", className: "h-[1em] shrink-0" }), _jsx("span", { className: "min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap [font-size-adjust:calc(100/150)] leading-0 font-semibold tracking-[-0.01em] lowercase", children: /\s/.test(product) ? (_jsx("span", { className: "text-label-green", children: product })) : (productNameThirds(product).map((part, index) => (_jsx("span", { className: PRODUCT_NAME_TONES[index], children: part }, `${index}:${part}`)))) })] }));
|
|
86
105
|
}
|
|
87
106
|
export { BrandMark, BrandWordmark, ProductWordmark };
|
|
@@ -9,7 +9,7 @@ type CardFlush = "bottom" | "all";
|
|
|
9
9
|
* @family Data
|
|
10
10
|
* @when "For in-product cards and dashboard tiles, use `Card`; Book is too decorative for repeated UI rows." (https://vercel.com/geist/book) Ours: only inside a composition that owns the job: the object card of an `ObjectPage`, the setting card of a `SettingsSection`, a KPI, a chart, a table. A new kind of card is a new composition, never a `Card` assembled at a call site, and never a card holding only an introduction.
|
|
11
11
|
* @instead "Groups related form controls inside a bordered card with optional footer actions." (https://vercel.com/geist/fieldset) Ours: that card, a title and description, one control and a footer with help at the start and one action at the end, is `SettingsSection`. An object's card (a header bar with its name and commands, a body of facts, rows that open, a footer hint with one link elsewhere) is `ObjectPage`. The page's title row is never in a card. A row of a list is `Item`. A plane of brand colour is `BrandField`.
|
|
12
|
-
* @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right
|
|
12
|
+
* @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title's longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header's own width, not the viewport's); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card's edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section's action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card's header holds the object's commands and its footer only a link, so it never saves; a setting card's header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card's or a section's title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section's `tone`.
|
|
13
13
|
* `flush="bottom"` ends the card at its last child, for rows whose hairlines run to its bottom edge, as a footer does; `flush="all"` lets the content meet every edge with no gap between children, for one picture or grid that fills the card.
|
|
14
14
|
* @words The title is a noun phrase naming what the card holds; the description one sentence directly under it, only when it adds something.
|
|
15
15
|
* @access A plain container; give it `render={<section />}` with a heading when it is a region of the page.
|
package/dist/components/card.js
CHANGED
|
@@ -8,7 +8,7 @@ import { cn } from "../lib/utils.js";
|
|
|
8
8
|
* @family Data
|
|
9
9
|
* @when "For in-product cards and dashboard tiles, use `Card`; Book is too decorative for repeated UI rows." (https://vercel.com/geist/book) Ours: only inside a composition that owns the job: the object card of an `ObjectPage`, the setting card of a `SettingsSection`, a KPI, a chart, a table. A new kind of card is a new composition, never a `Card` assembled at a call site, and never a card holding only an introduction.
|
|
10
10
|
* @instead "Groups related form controls inside a bordered card with optional footer actions." (https://vercel.com/geist/fieldset) Ours: that card, a title and description, one control and a footer with help at the start and one action at the end, is `SettingsSection`. An object's card (a header bar with its name and commands, a body of facts, rows that open, a footer hint with one link elsewhere) is `ObjectPage`. The page's title row is never in a card. A row of a list is `Item`. A plane of brand colour is `BrandField`.
|
|
11
|
-
* @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right
|
|
11
|
+
* @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title's longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header's own width, not the viewport's); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card's edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section's action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card's header holds the object's commands and its footer only a link, so it never saves; a setting card's header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card's or a section's title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section's `tone`.
|
|
12
12
|
* `flush="bottom"` ends the card at its last child, for rows whose hairlines run to its bottom edge, as a footer does; `flush="all"` lets the content meet every edge with no gap between children, for one picture or grid that fills the card.
|
|
13
13
|
* @words The title is a noun phrase naming what the card holds; the description one sentence directly under it, only when it adds something.
|
|
14
14
|
* @access A plain container; give it `render={<section />}` with a heading when it is a region of the page.
|
|
@@ -13,8 +13,7 @@ export type CatalogCardProps = {
|
|
|
13
13
|
accessibleName?: string;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* One thing a person can connect, as a card in a catalogue that opens its drawer
|
|
17
|
-
* Browse Connectors draws a connector.
|
|
16
|
+
* One thing a person can connect, as a card in a catalogue that opens its drawer.
|
|
18
17
|
*
|
|
19
18
|
* @family Data
|
|
20
19
|
* @when A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `cards`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-card.d.ts","sourceRoot":"","sources":["../../src/components/catalog-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAElF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"catalog-card.d.ts","sourceRoot":"","sources":["../../src/components/catalog-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAElF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,MAAM,EACN,cAAc,GACf,EAAE,gBAAgB,+BAuClB"}
|
|
@@ -3,8 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Card } from "./card.js";
|
|
4
4
|
import { IdentityMark } from "./identity-mark.js";
|
|
5
5
|
/**
|
|
6
|
-
* One thing a person can connect, as a card in a catalogue that opens its drawer
|
|
7
|
-
* Browse Connectors draws a connector.
|
|
6
|
+
* One thing a person can connect, as a card in a catalogue that opens its drawer.
|
|
8
7
|
*
|
|
9
8
|
* @family Data
|
|
10
9
|
* @when A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `cards`.
|
|
@@ -34,7 +34,7 @@ type ChartCardFooter = {
|
|
|
34
34
|
/** A command on the reading, such as Refresh; the way to its owner is the header's `link`. */
|
|
35
35
|
link?: PageCommand;
|
|
36
36
|
};
|
|
37
|
-
/** The way to the reading's owner: a › at the header's trailing edge
|
|
37
|
+
/** The way to the reading's owner: a › at the header's trailing edge. */
|
|
38
38
|
type ChartCardLink = {
|
|
39
39
|
/** The link's accessible name, which names its destination: "Explore Usage by model". */
|
|
40
40
|
label: string;
|
|
@@ -108,7 +108,7 @@ declare function foldOtherSeries(series: readonly ChartSeries[], data: readonly
|
|
|
108
108
|
* @family Charts
|
|
109
109
|
* @when Every chart and every reading built around one: the frame a page never builds by hand. A chart is a named section of its page.
|
|
110
110
|
* @instead A single figure is a `KpiCard`, never nested inside a chart. A ranking beside the plot goes in the card's `aside`, not a second card.
|
|
111
|
-
* @behaviour The plot's legend names two series or more, and a split's one entity (`split`); a chart of one measure has none, its title naming it. `summaryPlacement="beside"` stands the summary at the plot's leading edge from `sm` up and above it on a phone, as Usage's Activity card puts the period's total beside its calendar (nadicode decision). The plot may be given as a node, for a plot that names itself, such as an `ActivityCalendar`, or a page rendered on the server. `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a reading that stands beside fuller cards (nadicode decision). The default header puts controls at the trailing edge on wide cards, below the title on narrow cards. The way to the reading's owner is a › icon link after the controls
|
|
111
|
+
* @behaviour The plot's legend names two series or more, and a split's one entity (`split`); a chart of one measure has none, its title naming it. `summaryPlacement="beside"` stands the summary at the plot's leading edge from `sm` up and above it on a phone, as Usage's Activity card puts the period's total beside its calendar (nadicode decision). The plot may be given as a node, for a plot that names itself, such as an `ActivityCalendar`, or a page rendered on the server. `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a reading that stands beside fuller cards (nadicode decision). The default header puts controls at the trailing edge on wide cards, below the title on narrow cards. The way to the reading's owner is a › icon link after the controls. The summary variant keeps controls immediately after the title, the owner link at the trailing edge, and the total and period above the plot. The ranking sits beside the plot only when the card itself reaches 48 rem; narrower cards keep a full-width plot and put the ranking below it. Controls wrap on narrow cards. An empty dataset shows its `emptyState` in the plot's place. The footer carries the reading time and at most one command on that reading. While its page reads the series, `ChartCardSkeleton` stands in its place: the same card, a bar for the title, the summary's figure when the card has one (`summary`), the plot's area at its `size`'s height, and the footer's line when the card has one (`footer`), with no words (nadicode decision).
|
|
112
112
|
* @words Title names the measure and its split: "Model spend by Customer". Period as dates. The link's name says where it goes: "Explore Usage by model", "Open revenue in Analytics". Footer: the reading's time, "Updated 4 minutes ago" or "Read at 12:42". Sentence case throughout.
|
|
113
113
|
* @access The title is a heading at the page's level (default 2) and labels the plot. The owner link is a native link named by its `label`. The plot is focusable and shows the 2 px focus outline only on keyboard focus. `ChartCardSkeleton` is busy and its bars are hidden from assistive technology.
|
|
114
114
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-card.d.ts","sourceRoot":"","sources":["../../src/components/chart-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,WAA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B,OAAO,GACP,QAAQ,GACR,cAAc,GACd,WAAW,GACX,UAAU,CACb,GAAG;IACF,uGAAuG;IACvG,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CACpE,qBAwFA;AAED;;;GAGG;AACH,iBAAS,iBAAiB,CAAC,EACzB,OAAe,EACf,IAAgB,EAChB,MAAc,GACf,EAAE;IACD,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,qBA0BA;AAED,iBAAS,YAAY,CAAC,EACpB,OAAmB,EACnB,KAAK,EACL,KAAK,EACL,UAAU,EACV,SAAqB,EACrB,KAAK,EACL,MAAM,GACP,EAAE,iBAAiB,qBAiDnB;AAED,uEAAuE;AACvE,iBAAS,kBAAkB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAEvD;AAED;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,0GACkF,CAAC;AAE1G,sEAAsE;AACtE,QAAA,MAAM,kBAAkB,4BAA4B,CAAC;AAErD,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,GAClB,CAAC;AACF,YAAY,EACV,eAAe,EACf,aAAa,EACb,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|
|
@@ -66,7 +66,7 @@ function foldOtherSeries(series, data, entityColorMap, otherLabel) {
|
|
|
66
66
|
* @family Charts
|
|
67
67
|
* @when Every chart and every reading built around one: the frame a page never builds by hand. A chart is a named section of its page.
|
|
68
68
|
* @instead A single figure is a `KpiCard`, never nested inside a chart. A ranking beside the plot goes in the card's `aside`, not a second card.
|
|
69
|
-
* @behaviour The plot's legend names two series or more, and a split's one entity (`split`); a chart of one measure has none, its title naming it. `summaryPlacement="beside"` stands the summary at the plot's leading edge from `sm` up and above it on a phone, as Usage's Activity card puts the period's total beside its calendar (nadicode decision). The plot may be given as a node, for a plot that names itself, such as an `ActivityCalendar`, or a page rendered on the server. `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a reading that stands beside fuller cards (nadicode decision). The default header puts controls at the trailing edge on wide cards, below the title on narrow cards. The way to the reading's owner is a › icon link after the controls
|
|
69
|
+
* @behaviour The plot's legend names two series or more, and a split's one entity (`split`); a chart of one measure has none, its title naming it. `summaryPlacement="beside"` stands the summary at the plot's leading edge from `sm` up and above it on a phone, as Usage's Activity card puts the period's total beside its calendar (nadicode decision). The plot may be given as a node, for a plot that names itself, such as an `ActivityCalendar`, or a page rendered on the server. `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a reading that stands beside fuller cards (nadicode decision). The default header puts controls at the trailing edge on wide cards, below the title on narrow cards. The way to the reading's owner is a › icon link after the controls. The summary variant keeps controls immediately after the title, the owner link at the trailing edge, and the total and period above the plot. The ranking sits beside the plot only when the card itself reaches 48 rem; narrower cards keep a full-width plot and put the ranking below it. Controls wrap on narrow cards. An empty dataset shows its `emptyState` in the plot's place. The footer carries the reading time and at most one command on that reading. While its page reads the series, `ChartCardSkeleton` stands in its place: the same card, a bar for the title, the summary's figure when the card has one (`summary`), the plot's area at its `size`'s height, and the footer's line when the card has one (`footer`), with no words (nadicode decision).
|
|
70
70
|
* @words Title names the measure and its split: "Model spend by Customer". Period as dates. The link's name says where it goes: "Explore Usage by model", "Open revenue in Analytics". Footer: the reading's time, "Updated 4 minutes ago" or "Read at 12:42". Sentence case throughout.
|
|
71
71
|
* @access The title is a heading at the page's level (default 2) and labels the plot. The owner link is a native link named by its `label`. The plot is focusable and shows the 2 px focus outline only on keyboard focus. `ChartCardSkeleton` is busy and its bars are hidden from assistive technology.
|
|
72
72
|
*/
|
|
@@ -16,13 +16,12 @@ type CheckCountsProps = {
|
|
|
16
16
|
*
|
|
17
17
|
* @family Status
|
|
18
18
|
* @when The summary of a set of checks on one object, at the trailing edge of the row that opens
|
|
19
|
-
* them: an Agent's health checks (tasks completed, failed, still running)
|
|
20
|
-
* deployment's checks on its Deployment Checks row.
|
|
19
|
+
* them: an Agent's health checks (tasks completed, failed, still running).
|
|
21
20
|
* @instead One state of a record is a `StatusBadge`. Whether the row as a whole passed is
|
|
22
21
|
* `CheckState`. A count of changed lines is `DiffCount`.
|
|
23
22
|
* @behaviour Each outcome is a 24 px outlined pill of its mark, in the outcome's colour (passed
|
|
24
23
|
* blue, failed red, warning amber, pending grey), and its count in ink and tabular figures, zeros
|
|
25
|
-
* included, in the order given
|
|
24
|
+
* included, in the order given. Static.
|
|
26
25
|
* @words The label is the count in words with its noun: *3 tasks completed*, *0 failed*.
|
|
27
26
|
* @access A list, drawn in phrasing elements so it can stand inside the button of the row it sums
|
|
28
27
|
* up; each chip is read by its label, and the mark is hidden, so colour never carries
|
|
@@ -31,8 +30,7 @@ type CheckCountsProps = {
|
|
|
31
30
|
declare function CheckCounts({ counts, className }: CheckCountsProps): import("react").JSX.Element;
|
|
32
31
|
/**
|
|
33
32
|
* Whether a row of checks passed, as one filled 16 px circle at the row's trailing edge (passed
|
|
34
|
-
* blue with its check
|
|
35
|
-
* when there was nothing to check. Read by its `label`, never by its colour.
|
|
33
|
+
* blue with its check); `none` when there was nothing to check. Read by its `label`, never by its colour.
|
|
36
34
|
*/
|
|
37
35
|
declare function CheckState({ outcome, label, className, }: {
|
|
38
36
|
outcome: CheckOutcome | "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-counts.d.ts","sourceRoot":"","sources":["../../src/components/check-counts.tsx"],"names":[],"mappings":"AAYA,uDAAuD;AACvD,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhE,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAWF,KAAK,gBAAgB,GAAG;IACtB,iFAAiF;IACjF,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"check-counts.d.ts","sourceRoot":"","sources":["../../src/components/check-counts.tsx"],"names":[],"mappings":"AAYA,uDAAuD;AACvD,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhE,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAWF,KAAK,gBAAgB,GAAG;IACtB,iFAAiF;IACjF,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,gBAAgB,+BAwB3D;AAUD;;;GAGG;AACH,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,KAAK,EACL,SAAS,GACV,EAAE;IACD,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC;IAC/B,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAiBA;AAED,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Check, CircleAlert, CircleCheck, CircleDot, Clock, Minus, } from "lucide-react";
|
|
3
3
|
import { cn } from "../lib/utils.js";
|
|
4
|
-
//
|
|
5
|
-
//
|
|
4
|
+
// An outlined pill per outcome, its mark in the outcome's colour and its count in
|
|
5
|
+
// ink, zeros included.
|
|
6
6
|
const CHIP_BY_OUTCOME = {
|
|
7
7
|
passed: { icon: CircleCheck, mark: "text-info" },
|
|
8
8
|
failed: { icon: CircleAlert, mark: "text-destructive" },
|
|
@@ -14,13 +14,12 @@ const CHIP_BY_OUTCOME = {
|
|
|
14
14
|
*
|
|
15
15
|
* @family Status
|
|
16
16
|
* @when The summary of a set of checks on one object, at the trailing edge of the row that opens
|
|
17
|
-
* them: an Agent's health checks (tasks completed, failed, still running)
|
|
18
|
-
* deployment's checks on its Deployment Checks row.
|
|
17
|
+
* them: an Agent's health checks (tasks completed, failed, still running).
|
|
19
18
|
* @instead One state of a record is a `StatusBadge`. Whether the row as a whole passed is
|
|
20
19
|
* `CheckState`. A count of changed lines is `DiffCount`.
|
|
21
20
|
* @behaviour Each outcome is a 24 px outlined pill of its mark, in the outcome's colour (passed
|
|
22
21
|
* blue, failed red, warning amber, pending grey), and its count in ink and tabular figures, zeros
|
|
23
|
-
* included, in the order given
|
|
22
|
+
* included, in the order given. Static.
|
|
24
23
|
* @words The label is the count in words with its noun: *3 tasks completed*, *0 failed*.
|
|
25
24
|
* @access A list, drawn in phrasing elements so it can stand inside the button of the row it sums
|
|
26
25
|
* up; each chip is read by its label, and the mark is hidden, so colour never carries
|
|
@@ -41,8 +40,7 @@ const STATE_BY_OUTCOME = {
|
|
|
41
40
|
};
|
|
42
41
|
/**
|
|
43
42
|
* Whether a row of checks passed, as one filled 16 px circle at the row's trailing edge (passed
|
|
44
|
-
* blue with its check
|
|
45
|
-
* when there was nothing to check. Read by its `label`, never by its colour.
|
|
43
|
+
* blue with its check); `none` when there was nothing to check. Read by its `label`, never by its colour.
|
|
46
44
|
*/
|
|
47
45
|
function CheckState({ outcome, label, className, }) {
|
|
48
46
|
const { icon: Icon, fill } = STATE_BY_OUTCOME[outcome];
|
|
@@ -20,7 +20,7 @@ type CollectionTitle = {
|
|
|
20
20
|
description?: never;
|
|
21
21
|
};
|
|
22
22
|
export type CollectionPageProps<TRecord extends RowData> = RecordListWithout<TRecord, "heading" | "noMatch" | "layout"> & CollectionTitle & {
|
|
23
|
-
/** The
|
|
23
|
+
/** The page's actions, secondary, primary, then the three dots: on the title's row, or at the end of the search row where no title is drawn. The primary stays there whether the collection is empty or not. */
|
|
24
24
|
actions?: Omit<PageActionsProps, "period">;
|
|
25
25
|
/** The page's sibling collections, under the title row: `TabsNav variant="line"`. */
|
|
26
26
|
tabs?: ReactElement;
|
|
@@ -38,24 +38,23 @@ export type CollectionPageProps<TRecord extends RowData> = RecordListWithout<TRe
|
|
|
38
38
|
/** The records of a new search, filter or sort are being read; the rows shown are the last ones. */
|
|
39
39
|
pending?: boolean;
|
|
40
40
|
/**
|
|
41
|
-
* The left column of titled cards about the records
|
|
42
|
-
*
|
|
43
|
-
* collection, recent records.
|
|
41
|
+
* The left column of titled cards about the records: what needs the reader, figures of the
|
|
42
|
+
* whole collection, recent records.
|
|
44
43
|
*/
|
|
45
44
|
rail?: CollectionRail;
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
48
47
|
* A page whose job is a list of records: its title with the page's actions on
|
|
49
|
-
* one row,
|
|
48
|
+
* one row, or, where no title is drawn, its actions at the end of its search
|
|
49
|
+
* row; its sibling collections, one toolbar, then one line per record.
|
|
50
50
|
*
|
|
51
51
|
* @family Compositions
|
|
52
52
|
* @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)
|
|
53
53
|
* 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.
|
|
54
|
-
* “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)
|
|
55
54
|
* 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.
|
|
56
55
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
57
56
|
* 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`.
|
|
58
|
-
* @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as
|
|
57
|
+
* @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as the product decides it: where no title is drawn over the page, as under `ProductShell`, whose path names the page and whose title stays unseen, the page's actions end its search row, after the filters, whatever they do (owner, 2026-11-08); where a title is drawn (`PageActionsHostProvider`'s `titled`, as a `PageFrame` with its `title`, or this composition's own `title`), every action stands on the title's row. The product says which, 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 actions are drawn from `actions` in `PageActions`' order. The primary stays where they stand whether the collection is empty or not, filled; a first use repeats it as the filled button in its card. The page's actions stay where they stand whichever tab is shown, each tab's collection given the same `actions`; 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 toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). 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.
|
|
59
58
|
* @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)
|
|
60
59
|
* 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").
|
|
61
60
|
* @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)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-page.d.ts","sourceRoot":"","sources":["../../src/components/collection-page.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAIL,KAAK,gBAAgB,EAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;A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G;AACH,wBAAgB,cAAc,CAAC,OAAO,SAAS,OAAO,EAAE,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,+BAyD1F"}
|
|
@@ -8,16 +8,16 @@ import { RecordList } from "./record-list.js";
|
|
|
8
8
|
import { CollectionRailColumn } from "../internal/collection-rail.js";
|
|
9
9
|
/**
|
|
10
10
|
* A page whose job is a list of records: its title with the page's actions on
|
|
11
|
-
* one row,
|
|
11
|
+
* one row, or, where no title is drawn, its actions at the end of its search
|
|
12
|
+
* row; its sibling collections, one toolbar, then one line per record.
|
|
12
13
|
*
|
|
13
14
|
* @family Compositions
|
|
14
15
|
* @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)
|
|
15
16
|
* 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.
|
|
16
|
-
* “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)
|
|
17
17
|
* 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.
|
|
18
18
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
19
19
|
* 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`.
|
|
20
|
-
* @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as
|
|
20
|
+
* @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as the product decides it: where no title is drawn over the page, as under `ProductShell`, whose path names the page and whose title stays unseen, the page's actions end its search row, after the filters, whatever they do (owner, 2026-11-08); where a title is drawn (`PageActionsHostProvider`'s `titled`, as a `PageFrame` with its `title`, or this composition's own `title`), every action stands on the title's row. The product says which, 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 actions are drawn from `actions` in `PageActions`' order. The primary stays where they stand whether the collection is empty or not, filled; a first use repeats it as the filled button in its card. The page's actions stay where they stand whichever tab is shown, each tab's collection given the same `actions`; 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 toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). 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.
|
|
21
21
|
* @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)
|
|
22
22
|
* 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").
|
|
23
23
|
* @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)
|