@nadicodeai/ui 12.1.224 → 12.1.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -2
- package/dist/components/agent-card.js +2 -2
- package/dist/components/agent-profile.d.ts +2 -83
- package/dist/components/agent-profile.d.ts.map +1 -1
- package/dist/components/agent-profile.js +0 -46
- 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 +33 -11
- package/dist/components/object-page.d.ts.map +1 -1
- package/dist/components/object-page.js +16 -11
- 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 +0 -2
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +3 -9
- 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 -1
- 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 +102 -91
- 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,CA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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)
|
|
@@ -33,9 +33,9 @@ export type AgentCardProps = AgentCardContent & Omit<React.ComponentProps<typeof
|
|
|
33
33
|
* Agents to create from, the templates of a hub. An Agent shown as an object is this one card
|
|
34
34
|
* shape wherever it appears, in the Portal's Library and in Nadia's gallery alike.
|
|
35
35
|
* @instead The same gallery read as a list is `AgentRow`. A list of Agents to open is
|
|
36
|
-
* `AgentListRow`. An Agent's own page
|
|
36
|
+
* `AgentListRow`. An Agent's own page is an `ObjectPage`, 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
|
|
@@ -20,9 +20,9 @@ function CornerGlow({ glow }) {
|
|
|
20
20
|
* Agents to create from, the templates of a hub. An Agent shown as an object is this one card
|
|
21
21
|
* shape wherever it appears, in the Portal's Library and in Nadia's gallery alike.
|
|
22
22
|
* @instead The same gallery read as a list is `AgentRow`. A list of Agents to open is
|
|
23
|
-
* `AgentListRow`. An Agent's own page
|
|
23
|
+
* `AgentListRow`. An Agent's own page is an `ObjectPage`, 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
|
|
@@ -1,88 +1,7 @@
|
|
|
1
1
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
2
|
-
import type { ComponentProps
|
|
3
|
-
import type {
|
|
4
|
-
import { type AccessibleName } from "./button.js";
|
|
5
|
-
import { type PageActionsProps } from "./page-actions.js";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import type { AccessibleName } from "./button.js";
|
|
6
4
|
import { RadioGroup, type RadioGroupName } from "./radio-group.js";
|
|
7
|
-
import { type StatusBadgeTone } from "./status-badge.js";
|
|
8
|
-
/**
|
|
9
|
-
* A fact on the card whose label stays in place when its value is missing.
|
|
10
|
-
* `pending` draws the value's place while it is read, so a value not yet known
|
|
11
|
-
* never reads as missing.
|
|
12
|
-
*/
|
|
13
|
-
export type AgentProfileFact = {
|
|
14
|
-
label: string;
|
|
15
|
-
value?: string | null;
|
|
16
|
-
missingLabel: string;
|
|
17
|
-
pending?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type AgentProfileCardProps = {
|
|
20
|
-
/** Draws the Agent's orb at the size the card gives it. */
|
|
21
|
-
orb: (size: AgentOrbSize) => ReactNode;
|
|
22
|
-
name: string;
|
|
23
|
-
/** What she does: her description, shown whole. */
|
|
24
|
-
description?: string;
|
|
25
|
-
descriptionMissingLabel: string;
|
|
26
|
-
/**
|
|
27
|
-
* The ghost pencil beside her name, which turns her name, description, look
|
|
28
|
-
* and voice into fields in place. Absent where the person cannot change them.
|
|
29
|
-
*/
|
|
30
|
-
edit?: {
|
|
31
|
-
label: string;
|
|
32
|
-
onClick: () => void;
|
|
33
|
-
ref?: Ref<HTMLButtonElement>;
|
|
34
|
-
} | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Her name, description, look and voice as fields, drawn in place of her name and
|
|
37
|
-
* description while the person edits, with her facts kept under them; her
|
|
38
|
-
* name stays the page's heading for assistive technology, and the card's
|
|
39
|
-
* footer saves the fields with the rest of the card.
|
|
40
|
-
*/
|
|
41
|
-
editor?: ReactNode;
|
|
42
|
-
state: {
|
|
43
|
-
label: string;
|
|
44
|
-
tone: StatusBadgeTone;
|
|
45
|
-
text: string;
|
|
46
|
-
};
|
|
47
|
-
/** When she last did something the product can see, already worded. */
|
|
48
|
-
activity: AgentProfileFact;
|
|
49
|
-
/** The Agent template she was made from. */
|
|
50
|
-
origin: AgentProfileFact;
|
|
51
|
-
/** The right column: her model and her reasoning. */
|
|
52
|
-
settings?: ReactNode;
|
|
53
|
-
/** The card's Save, in its footer; a card with nothing to save has no footer. */
|
|
54
|
-
footer?: ReactNode;
|
|
55
|
-
footerHint?: ReactNode;
|
|
56
|
-
/**
|
|
57
|
-
* The page's commands where the product's chrome has no place for them, at
|
|
58
|
-
* the trailing edge of her name's row.
|
|
59
|
-
*/
|
|
60
|
-
actions?: PageActionsProps | undefined;
|
|
61
|
-
/** Her name is the page's h1, with these attributes. */
|
|
62
|
-
headingProps?: Omit<ComponentProps<"h1">, "children">;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The card an Agent's Profile opens with in every product.
|
|
66
|
-
*
|
|
67
|
-
* @family Compositions
|
|
68
|
-
* @when The head of an Agent's Profile: who she is, what she does, her state, and her model and
|
|
69
|
-
* reasoning beside them.
|
|
70
|
-
* @instead An Agent in a gallery is `AgentCard`; in a list `AgentListRow`. Another object's page is
|
|
71
|
-
* `ObjectPage`.
|
|
72
|
-
* @behaviour Her orb at 64, her name with the pencil, her description and her facts on the left;
|
|
73
|
-
* her description is read whole, wrapping and never cut; her model and reasoning on the right; the card's footer saves both sides. The pencil turns her
|
|
74
|
-
* name, description and, where the product holds them, her look and her voice into fields in place, saved by the
|
|
75
|
-
* card's own Save, with no drawer or overlay. Her facts are her state, her last activity and the
|
|
76
|
-
* template she was made from; her model is drawn with its maker's mark, and her permissions join the
|
|
77
|
-
* right column where the product holds them. The page's commands sit in the window's three dots
|
|
78
|
-
* where the product has one, and otherwise at the end of her name's row (`actions`). A fact being
|
|
79
|
-
* read draws its place; a missing one keeps its label and a dash.
|
|
80
|
-
* @words Each product brings its own data, fields and words; the shape, sizes and order are this
|
|
81
|
-
* component's. Her state is a word: *Working*, *Waiting for you*.
|
|
82
|
-
* @access Her name is the page's `h1`, kept as the heading while she is edited; the pencil is named
|
|
83
|
-
* (*Edit Nadia*); the orb is decorative beside her name.
|
|
84
|
-
*/
|
|
85
|
-
export declare function AgentProfileCard({ orb, name, description, descriptionMissingLabel, edit, editor, state, activity, origin, settings, footer, footerHint, actions, headingProps, }: AgentProfileCardProps): import("react").JSX.Element;
|
|
86
5
|
export type ModelSelectProps = Omit<ComponentProps<typeof SelectPrimitive.Trigger>, "children" | "value" | "onChange" | "aria-label" | "aria-labelledby"> & AccessibleName & {
|
|
87
6
|
/** The chosen model's id; `null` until one is chosen. */
|
|
88
7
|
value: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profile.d.ts","sourceRoot":"","sources":["../../src/components/agent-profile.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-profile.d.ts","sourceRoot":"","sources":["../../src/components/agent-profile.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9C,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,iBAAiB,CACrE,GACC,cAAc,GAAG;IACf,yDAAyD;IACzD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,8DAA8D;IAC9D,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACpC,CAAC;AAEJ;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,aAAa,EACb,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,+BA2ClB;AAED,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,MAAM,IAAI,IAAI,CAC5D,cAAc,CAAC,OAAO,UAAU,CAAC,EACjC,UAAU,GAAG,cAAc,GAAG,eAAe,GAAG,OAAO,GAAG,YAAY,GAAG,iBAAiB,CAC3F,GACC,cAAc,GAAG;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,SAAS;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAEJ;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,MAAM,SAAS,MAAM,EAAE,EACrD,KAAK,EACL,OAAO,EACP,aAAa,EACb,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,MAAM,CAAC,+BA8B9B"}
|
|
@@ -2,58 +2,12 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
4
4
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
5
|
-
import { PencilIcon } from "lucide-react";
|
|
6
|
-
import { FooterStrip } from "../internal/footer-strip.js";
|
|
7
5
|
import { cn } from "../lib/utils.js";
|
|
8
|
-
import { Button } from "./button.js";
|
|
9
|
-
import { Card, CardContent } from "./card.js";
|
|
10
6
|
import { modelAuthor, modelDisplayName } from "./model-identity.js";
|
|
11
7
|
import { ModelMark } from "./model-mark.js";
|
|
12
|
-
import { PageActionsRow } from "./page-actions.js";
|
|
13
8
|
import { RadioGroup } from "./radio-group.js";
|
|
14
9
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger } from "./select.js";
|
|
15
|
-
import { Skeleton, SkeletonRegion } from "./skeleton.js";
|
|
16
|
-
import { StatusBadge } from "./status-badge.js";
|
|
17
|
-
import { TableValue } from "./table-value.js";
|
|
18
10
|
import { toggleVariants } from "./toggle.js";
|
|
19
|
-
const AGENT_PROFILE_ORB_SIZE = 64;
|
|
20
|
-
function FactValue({ fact }) {
|
|
21
|
-
return (_jsx(SkeletonRegion, { busy: fact.pending === true, children: fact.pending ? (_jsx(Skeleton, { className: "h-4 w-24" })) : (_jsx(TableValue, { missingLabel: fact.missingLabel, value: fact.value })) }));
|
|
22
|
-
}
|
|
23
|
-
function EditButton({ label, onClick, ref }) {
|
|
24
|
-
return (_jsx(Button, { "aria-label": label, onClick: onClick, ref: ref, size: "icon", title: label, type: "button", variant: "ghost", children: _jsx(PencilIcon, { "aria-hidden": "true" }) }));
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The card an Agent's Profile opens with in every product.
|
|
28
|
-
*
|
|
29
|
-
* @family Compositions
|
|
30
|
-
* @when The head of an Agent's Profile: who she is, what she does, her state, and her model and
|
|
31
|
-
* reasoning beside them.
|
|
32
|
-
* @instead An Agent in a gallery is `AgentCard`; in a list `AgentListRow`. Another object's page is
|
|
33
|
-
* `ObjectPage`.
|
|
34
|
-
* @behaviour Her orb at 64, her name with the pencil, her description and her facts on the left;
|
|
35
|
-
* her description is read whole, wrapping and never cut; her model and reasoning on the right; the card's footer saves both sides. The pencil turns her
|
|
36
|
-
* name, description and, where the product holds them, her look and her voice into fields in place, saved by the
|
|
37
|
-
* card's own Save, with no drawer or overlay. Her facts are her state, her last activity and the
|
|
38
|
-
* template she was made from; her model is drawn with its maker's mark, and her permissions join the
|
|
39
|
-
* right column where the product holds them. The page's commands sit in the window's three dots
|
|
40
|
-
* where the product has one, and otherwise at the end of her name's row (`actions`). A fact being
|
|
41
|
-
* read draws its place; a missing one keeps its label and a dash.
|
|
42
|
-
* @words Each product brings its own data, fields and words; the shape, sizes and order are this
|
|
43
|
-
* component's. Her state is a word: *Working*, *Waiting for you*.
|
|
44
|
-
* @access Her name is the page's `h1`, kept as the heading while she is edited; the pencil is named
|
|
45
|
-
* (*Edit Nadia*); the orb is decorative beside her name.
|
|
46
|
-
*/
|
|
47
|
-
export function AgentProfileCard({ orb, name, description, descriptionMissingLabel, edit, editor, state, activity, origin, settings, footer, footerHint, actions, headingProps, }) {
|
|
48
|
-
const facts = [
|
|
49
|
-
{ label: state.label, value: _jsx(StatusBadge, { label: state.text, tone: state.tone }) },
|
|
50
|
-
{ label: activity.label, value: _jsx(FactValue, { fact: activity }) },
|
|
51
|
-
{ label: origin.label, value: _jsx(FactValue, { fact: origin }) },
|
|
52
|
-
];
|
|
53
|
-
const factList = (_jsx("dl", { className: "mt-nadicode-sm flex min-w-0 flex-wrap gap-x-nadicode-lg gap-y-nadicode-sm", "data-slot": "agent-profile-facts", children: facts.map((fact) => (_jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx("dt", { className: "text-xs text-muted-foreground", children: fact.label }), _jsx("dd", { className: "flex min-h-6 min-w-0 items-center text-sm", children: fact.value })] }, fact.label))) }));
|
|
54
|
-
const text = description?.trim();
|
|
55
|
-
return (_jsxs(Card, { className: "@container/agent-profile min-w-0", render: _jsx("section", { "aria-labelledby": headingProps?.id }), "data-slot": "agent-profile", children: [_jsxs(CardContent, { className: "grid min-w-0 gap-nadicode-lg @3xl/agent-profile:grid-cols-[minmax(0,1fr)_minmax(18rem,22rem)] @3xl/agent-profile:gap-nadicode-xl", children: [_jsxs("div", { className: "grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-nadicode-md", children: [_jsx("div", { className: "shrink-0", children: orb(AGENT_PROFILE_ORB_SIZE) }), editor ? (_jsxs("div", { className: "grid min-w-0 gap-nadicode-md", "data-slot": "agent-profile-editor", children: [_jsx("h1", { ...headingProps, className: cn("sr-only", headingProps?.className), children: name }), editor, factList] })) : (_jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-x-1 gap-y-nadicode-sm", children: [_jsx("h1", { ...headingProps, className: cn("min-w-0 text-heading-md wrap-break-word text-foreground outline-none", headingProps?.className), children: name }), edit ? _jsx(EditButton, { ...edit }) : null, actions ? (_jsx("div", { className: "ml-auto flex shrink-0 items-center gap-2 pl-nadicode-sm", "data-slot": "agent-profile-actions", children: _jsx(PageActionsRow, { ...actions }) })) : null] }), _jsx("p", { className: "min-w-0 text-sm text-pretty wrap-break-word text-muted-foreground", children: _jsx(TableValue, { missingLabel: descriptionMissingLabel, value: text }) }), factList] }))] }), settings ? (_jsx("div", { className: "grid min-w-0 content-start gap-nadicode-md border-t border-border pt-nadicode-md @3xl/agent-profile:border-t-0 @3xl/agent-profile:border-l @3xl/agent-profile:pt-0 @3xl/agent-profile:pl-nadicode-lg", "data-slot": "agent-profile-settings", children: settings })) : null] }), _jsx(FooterStrip, { hint: footerHint, hintSlot: "agent-profile-hint", children: footer })] }));
|
|
56
|
-
}
|
|
57
11
|
/**
|
|
58
12
|
* A model chosen from a list, each read with its maker's mark.
|
|
59
13
|
*
|
|
@@ -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,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AAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,qBAwBzF;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/components/brand.js
CHANGED
|
@@ -64,6 +64,25 @@ const productWordmarkVariants = cva("inline-flex min-w-0 items-baseline 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.
|
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
@@ -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];
|