@nadicodeai/ui 12.1.239 → 12.1.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/action-menu.d.ts +5 -1
- package/dist/components/action-menu.d.ts.map +1 -1
- package/dist/components/assistant-panel-header.d.ts +25 -0
- package/dist/components/assistant-panel-header.d.ts.map +1 -0
- package/dist/components/assistant-panel-header.js +18 -0
- package/dist/components/assistant-welcome.d.ts +26 -0
- package/dist/components/assistant-welcome.d.ts.map +1 -0
- package/dist/components/assistant-welcome.js +16 -0
- package/dist/components/button.d.ts +6 -1
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +6 -1
- package/dist/components/collection-filters.d.ts +6 -3
- package/dist/components/collection-filters.d.ts.map +1 -1
- package/dist/components/collection-filters.js +5 -4
- package/dist/components/column-foot.d.ts +3 -2
- package/dist/components/column-foot.d.ts.map +1 -1
- package/dist/components/column-foot.js +2 -1
- package/dist/components/company-card-actions.d.ts +19 -0
- package/dist/components/company-card-actions.d.ts.map +1 -0
- package/dist/components/company-card-actions.js +16 -0
- package/dist/components/confirm-dialog.d.ts +6 -1
- package/dist/components/confirm-dialog.d.ts.map +1 -1
- package/dist/components/confirm-dialog.js +17 -3
- package/dist/components/drawer-steps.d.ts +8 -7
- package/dist/components/drawer-steps.d.ts.map +1 -1
- package/dist/components/drawer-steps.js +7 -6
- package/dist/components/figure-row.d.ts +2 -4
- package/dist/components/figure-row.d.ts.map +1 -1
- package/dist/components/figure-row.js +3 -3
- package/dist/components/filter-toolbar.d.ts +2 -4
- package/dist/components/filter-toolbar.d.ts.map +1 -1
- package/dist/components/filter-toolbar.js +2 -2
- package/dist/components/form-dialog.d.ts +11 -2
- package/dist/components/form-dialog.d.ts.map +1 -1
- package/dist/components/form-dialog.js +18 -3
- package/dist/components/item.d.ts +5 -9
- package/dist/components/item.d.ts.map +1 -1
- package/dist/components/item.js +5 -9
- package/dist/components/numbered-steps.d.ts +8 -5
- package/dist/components/numbered-steps.d.ts.map +1 -1
- package/dist/components/numbered-steps.js +5 -4
- package/dist/components/object-workspace.d.ts +2 -2
- package/dist/components/object-workspace.d.ts.map +1 -1
- package/dist/components/object-workspace.js +2 -2
- package/dist/components/page-actions.d.ts +5 -5
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +9 -4
- package/dist/components/plan-card.d.ts +14 -2
- package/dist/components/plan-card.d.ts.map +1 -1
- package/dist/components/plan-card.js +3 -2
- package/dist/components/product-band.d.ts +19 -7
- package/dist/components/product-band.d.ts.map +1 -1
- package/dist/components/product-band.js +12 -6
- package/dist/components/product-shell-bell.d.ts +71 -0
- package/dist/components/product-shell-bell.d.ts.map +1 -0
- package/dist/components/product-shell-bell.js +36 -0
- package/dist/components/product-shell.d.ts +21 -4
- package/dist/components/product-shell.d.ts.map +1 -1
- package/dist/components/product-shell.js +23 -2
- package/dist/components/record-list.d.ts +4 -2
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +10 -7
- package/dist/components/settings-facts.d.ts +5 -4
- package/dist/components/settings-facts.d.ts.map +1 -1
- package/dist/components/settings-facts.js +4 -3
- package/dist/components/settings-section.d.ts +11 -9
- package/dist/components/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section.js +8 -7
- package/dist/internal/clear-filters.d.ts +7 -0
- package/dist/internal/clear-filters.d.ts.map +1 -0
- package/dist/internal/clear-filters.js +6 -0
- package/dist/internal/command-runner.d.ts +30 -5
- package/dist/internal/command-runner.d.ts.map +1 -1
- package/dist/internal/command-runner.js +61 -14
- package/dist/internal/footer-commands.d.ts +33 -0
- package/dist/internal/footer-commands.d.ts.map +1 -0
- package/dist/internal/footer-commands.js +27 -0
- package/dist/internal/footer-strip.d.ts.map +1 -1
- package/dist/internal/footer-strip.js +2 -4
- package/dist/internal/form-submit.d.ts +3 -2
- package/dist/internal/form-submit.d.ts.map +1 -1
- package/dist/internal/form-submit.js +2 -2
- package/dist/internal/page-command-button.d.ts +11 -1
- package/dist/internal/page-command-button.d.ts.map +1 -1
- package/dist/internal/page-command-button.js +3 -0
- package/dist/showcase/specimens/actions.d.ts +1 -0
- package/dist/showcase/specimens/actions.d.ts.map +1 -1
- package/dist/showcase/specimens/actions.js +12 -1
- package/dist/showcase/specimens/compositions.d.ts +2 -0
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +16 -7
- package/dist/showcase/specimens/data.d.ts.map +1 -1
- package/dist/showcase/specimens/data.js +1 -1
- package/dist/showcase/specimens/index.d.ts +4 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/specimens/navigation.d.ts +2 -0
- package/dist/showcase/specimens/navigation.d.ts.map +1 -1
- package/dist/showcase/specimens/navigation.js +28 -0
- 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 +74 -30
- package/package.json +2 -2
|
@@ -2,16 +2,14 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
import { type CollectionFiltersProps } from "./collection-filters.js";
|
|
3
3
|
import { type CollectionSearchProps } from "./collection-search.js";
|
|
4
4
|
import { type CollectionSortProps } from "./collection-sort.js";
|
|
5
|
+
import { type ClearFilters } from "../internal/clear-filters.js";
|
|
5
6
|
export type FilterToolbarProps = {
|
|
6
7
|
/** Names the toolbar: "Customer filters". */
|
|
7
8
|
label: string;
|
|
8
9
|
search?: CollectionSearchProps | undefined;
|
|
9
10
|
filters?: CollectionFiltersProps | undefined;
|
|
10
11
|
/** Clears the search and every filter at once; shown only while one is set: "Clear filters". */
|
|
11
|
-
clear?:
|
|
12
|
-
label: string;
|
|
13
|
-
onClear: () => void;
|
|
14
|
-
} | undefined;
|
|
12
|
+
clear?: ClearFilters | undefined;
|
|
15
13
|
sort?: CollectionSortProps | undefined;
|
|
16
14
|
/** The collection's own commands, after the sort at the trailing edge. */
|
|
17
15
|
actions?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-toolbar.d.ts","sourceRoot":"","sources":["../../src/components/filter-toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"filter-toolbar.d.ts","sourceRoot":"","sources":["../../src/components/filter-toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAIxF,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,0BAA0B,CAAC;AAMjF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC3C,OAAO,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC7C,gGAAgG;IAChG,KAAK,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACvC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,iGAAiG;IACjG,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,IAAI,EACJ,OAAO,GACR,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC,GAAG,OAAO,CAO/E;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,OAAO,EACP,OAAe,EACf,OAAO,EACP,IAAe,GAChB,EAAE,kBAAkB,sCA2CpB;AAED,mJAAmJ;AACnJ,wBAAgB,qBAAqB,gCAepC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useSyncExternalStore } from "react";
|
|
4
|
-
import { Button } from "./button.js";
|
|
5
4
|
import { CollectionFilters } from "./collection-filters.js";
|
|
6
5
|
import { CollectionSearch } from "./collection-search.js";
|
|
7
6
|
import { CollectionSort } from "./collection-sort.js";
|
|
8
7
|
import { CollectionToolbar } from "./collection-toolbar.js";
|
|
9
8
|
import { Skeleton } from "./skeleton.js";
|
|
10
9
|
import { WaitingLine } from "./waiting-line.js";
|
|
10
|
+
import { ClearFiltersButton } from "../internal/clear-filters.js";
|
|
11
11
|
const subscribeToClientSnapshot = () => () => undefined;
|
|
12
12
|
const getClientSnapshot = () => true;
|
|
13
13
|
const getServerSnapshot = () => false;
|
|
@@ -34,7 +34,7 @@ export function FilterToolbar({ label, search, filters, clear, sort, actions, pe
|
|
|
34
34
|
return null;
|
|
35
35
|
const narrowed = Boolean(search?.value) || (filters?.facets.some((facet) => Boolean(facet.value)) ?? false);
|
|
36
36
|
const filtersLead = lead === "filters";
|
|
37
|
-
const filtering = (filters && filters.facets.length > 0) || (clear && narrowed) ? (_jsxs(_Fragment, { children: [filters ? _jsx(CollectionFilters, { ...filters }) : null, clear && narrowed ?
|
|
37
|
+
const filtering = (filters && filters.facets.length > 0) || (clear && narrowed) ? (_jsxs(_Fragment, { children: [filters ? _jsx(CollectionFilters, { ...filters }) : null, clear && narrowed ? _jsx(ClearFiltersButton, { ...clear }) : null] })) : undefined;
|
|
38
38
|
const trailing = (!filtersLead && filtering) || sort || actions ? (_jsxs(_Fragment, { children: [filtersLead ? null : filtering, sort ? _jsx(CollectionSort, { ...sort }) : null, actions] })) : undefined;
|
|
39
39
|
return (_jsx(CollectionToolbar, { actions: trailing, controls: filtersLead ? filtering : undefined, "aria-busy": pending || undefined, "data-pending": pending || undefined, "data-slot": "filter-toolbar", label: label, search: search ? (_jsx(CollectionSearch, { ...search, disabled: search.disabled === true || !interactive })) : undefined, status: _jsx(WaitingLine, { className: "w-24", decorative: true, waiting: pending }), surface: surface }));
|
|
40
40
|
}
|
|
@@ -4,9 +4,18 @@ export type FormDialogProps = FormSurfaceProps & {
|
|
|
4
4
|
/** Its form's save is running: the dialog stays open until it settles. */
|
|
5
5
|
pending?: boolean;
|
|
6
6
|
};
|
|
7
|
+
/** A second way to submit the same form: "Use the plan's" beside Save. */
|
|
8
|
+
export type FormAlternative = {
|
|
9
|
+
label: string;
|
|
10
|
+
/** The field it sends with the form, so the action knows which submit was pressed: `reset`. */
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
7
14
|
export type FormDialogFormProps = FormProps & {
|
|
8
15
|
/** The primary removes, closes or refuses something, as a decline with a note: it turns red. */
|
|
9
16
|
destructive?: boolean;
|
|
17
|
+
/** A lesser submit before the primary, which sends the form without checking its fields. */
|
|
18
|
+
alternative?: FormAlternative | undefined;
|
|
10
19
|
};
|
|
11
20
|
/**
|
|
12
21
|
* A new record, or one or two values from a command, in a modal dialog.
|
|
@@ -14,10 +23,10 @@ export type FormDialogFormProps = FormProps & {
|
|
|
14
23
|
* @family Compositions
|
|
15
24
|
* @when "Use Modal when a decision must block the rest of the page. For persistent associated context where the underlying page stays readable, use `Sheet` on desktop or `Drawer` on mobile." (https://vercel.com/geist/modal) Ours: a person adds a record through a few fields, or changes one or two values a command asks for: new customer, add a mailbox, add an MCP server; or changes what an object's card shows, from the card: its Edit opens the facts the card holds (Edit company details), and a setting's value at a glance opens that one setting (Voice chat) (owner, 2026-11-08).
|
|
16
25
|
* @instead "Skip Modal for routine create flows that have a dedicated page; route to the page instead." (https://vercel.com/geist/modal) "Confirm destructive actions in a Modal. `Drawer` and `Sheet` don’t fully dim the page, so they read as too soft for a delete or revoke." (https://vercel.com/geist/modal) Ours: a record already in a list edits in its row with `RowEditForm`; a choice from a catalogue is a `CatalogDrawer`; a setup in steps with a wait is a `FormDrawer` with `job="steps"`; a consequence that asks nothing is confirmed in a `ConfirmDialog`.
|
|
17
|
-
* @behaviour "Allow Escape and outside-click to dismiss non-destructive Modals; gate dismissal on destructive ones with unsaved input." (https://vercel.com/geist/modal) Ours: centred over a scrim without blur, 540 px wide, a bottom sheet on a phone: the title and its help, the fields in a 12 px column, then the footer, which stays at the bottom while a tall form scrolls, with Cancel at the leading edge and the primary at the trailing edge, in one row also on a phone. `FormDialogForm` puts the fields in the dialog's own scroll body and the actions in its fixed footer; no other overlay is nested inside. A refusal or a failed save sits above the footer and the fields keep what was typed. While its save runs it holds open, Cancel and the primary hold, and the waiting line runs under them. With `unsaved.dirty`, Escape and a press outside are held back and `unsaved.onDismissBlocked` runs so the caller can ask; Close and Cancel always close. A form whose primary takes something away, such as declining a company with a note for the record, sets `destructive` on `FormDialogForm`: the primary turns red, as `ConfirmDialog`'s destructive confirm does, and nothing else changes. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
|
|
26
|
+
* @behaviour "Allow Escape and outside-click to dismiss non-destructive Modals; gate dismissal on destructive ones with unsaved input." (https://vercel.com/geist/modal) Ours: centred over a scrim without blur, 540 px wide, a bottom sheet on a phone: the title and its help, the fields in a 12 px column, then the footer, which stays at the bottom while a tall form scrolls, with Cancel at the leading edge and the primary at the trailing edge, in one row also on a phone. An `alternative` is a second submit of the same form, an outline button just before the primary, for a value the command can also set without the fields, such as an amount going back to the plan's: it sends its `name` and `value` with the form and skips the fields' checks, and holds with the primary while the save runs; Enter in a field still submits the primary, never the alternative (nadicode decision). `FormDialogForm` puts the fields in the dialog's own scroll body and the actions in its fixed footer; no other overlay is nested inside. A refusal or a failed save sits above the footer and the fields keep what was typed. While its save runs it holds open, Cancel and the primary hold, and the waiting line runs under them. With `unsaved.dirty`, Escape and a press outside are held back and `unsaved.onDismissBlocked` runs so the caller can ask; Close and Cancel always close. A form whose primary takes something away, such as declining a company with a note for the record, sets `destructive` on `FormDialogForm`: the primary turns red, as `ConfirmDialog`'s destructive confirm does, and nothing else changes. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
|
|
18
27
|
* @words "`Modal.Title` is a Title Case statement, never a question. `Transfer Project` is correct; `Transfer Project?` is wrong." (https://vercel.com/geist/modal) "Primary button is `Verb + Noun` and matches the title verb (`Transfer Project` title pairs with `Transfer Project` button). Never `Confirm`, `OK`, or a bare verb on a destructive primary." (https://vercel.com/geist/modal) "Cancel literal stays `Cancel`. Acknowledgment-only Modals (after a key reveal, after a one-time-show) use `Done`, never `OK` or `Close`." (https://vercel.com/geist/modal) Ours: the title and the primary are sentence case, where Geist writes Title Case: the title names the job and its object, "New customer", "Add a mailbox"; the primary repeats it, "Create customer", "Add mailbox"; a destructive primary names what it takes away, "Decline company", never a bare "Decline".
|
|
19
28
|
* @access "Set `aria-labelledby` to the `Modal.Title` id so screen readers announce the title on open." (https://vercel.com/geist/modal) "Trap focus inside the Modal while it’s open and return focus to the trigger after close. Restore body scroll on the same tick the Modal unmounts." (https://vercel.com/geist/modal) "After an error inside the Modal, keep focus inside so the user can retry; after success, return focus to the trigger." (https://vercel.com/geist/modal) Ours: a modal dialog with a Close named by `closeLabel`; focus starts in its first field or `initialFocus` and returns to the opener or `finalFocus`. Escape and Close close it unless the save runs.
|
|
20
29
|
*/
|
|
21
30
|
export declare function FormDialog({ open, onOpenChange, onOpenChangeComplete, title, description, closeLabel, children, initialFocus, finalFocus, unsaved, pending, }: FormDialogProps): import("react").JSX.Element;
|
|
22
|
-
export declare function FormDialogForm({ cancelLabel, submit, notice, destructive, children, ...form }: FormDialogFormProps): import("react").JSX.Element;
|
|
31
|
+
export declare function FormDialogForm({ cancelLabel, submit, notice, destructive, alternative, children, ...form }: FormDialogFormProps): import("react").JSX.Element;
|
|
23
32
|
//# sourceMappingURL=form-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-dialog.d.ts","sourceRoot":"","sources":["../../src/components/form-dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-dialog.d.ts","sourceRoot":"","sources":["../../src/components/form-dialog.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,wBAAwB,CAAC;AAG1E,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,+FAA+F;IAC/F,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,gGAAgG;IAChG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,UAAiB,EACjB,OAAO,EACP,OAAe,GAChB,EAAE,eAAe,+BAmBjB;AAyBD,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,MAAM,EACN,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,mBAAmB,+BA0CrB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useRef } from "react";
|
|
3
4
|
import { Button } from "./button.js";
|
|
4
5
|
import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "./dialog.js";
|
|
5
6
|
import { Form } from "./form.js";
|
|
@@ -12,7 +13,7 @@ import { guardUnsaved } from "../internal/unsaved-guard.js";
|
|
|
12
13
|
* @family Compositions
|
|
13
14
|
* @when "Use Modal when a decision must block the rest of the page. For persistent associated context where the underlying page stays readable, use `Sheet` on desktop or `Drawer` on mobile." (https://vercel.com/geist/modal) Ours: a person adds a record through a few fields, or changes one or two values a command asks for: new customer, add a mailbox, add an MCP server; or changes what an object's card shows, from the card: its Edit opens the facts the card holds (Edit company details), and a setting's value at a glance opens that one setting (Voice chat) (owner, 2026-11-08).
|
|
14
15
|
* @instead "Skip Modal for routine create flows that have a dedicated page; route to the page instead." (https://vercel.com/geist/modal) "Confirm destructive actions in a Modal. `Drawer` and `Sheet` don’t fully dim the page, so they read as too soft for a delete or revoke." (https://vercel.com/geist/modal) Ours: a record already in a list edits in its row with `RowEditForm`; a choice from a catalogue is a `CatalogDrawer`; a setup in steps with a wait is a `FormDrawer` with `job="steps"`; a consequence that asks nothing is confirmed in a `ConfirmDialog`.
|
|
15
|
-
* @behaviour "Allow Escape and outside-click to dismiss non-destructive Modals; gate dismissal on destructive ones with unsaved input." (https://vercel.com/geist/modal) Ours: centred over a scrim without blur, 540 px wide, a bottom sheet on a phone: the title and its help, the fields in a 12 px column, then the footer, which stays at the bottom while a tall form scrolls, with Cancel at the leading edge and the primary at the trailing edge, in one row also on a phone. `FormDialogForm` puts the fields in the dialog's own scroll body and the actions in its fixed footer; no other overlay is nested inside. A refusal or a failed save sits above the footer and the fields keep what was typed. While its save runs it holds open, Cancel and the primary hold, and the waiting line runs under them. With `unsaved.dirty`, Escape and a press outside are held back and `unsaved.onDismissBlocked` runs so the caller can ask; Close and Cancel always close. A form whose primary takes something away, such as declining a company with a note for the record, sets `destructive` on `FormDialogForm`: the primary turns red, as `ConfirmDialog`'s destructive confirm does, and nothing else changes. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
|
|
16
|
+
* @behaviour "Allow Escape and outside-click to dismiss non-destructive Modals; gate dismissal on destructive ones with unsaved input." (https://vercel.com/geist/modal) Ours: centred over a scrim without blur, 540 px wide, a bottom sheet on a phone: the title and its help, the fields in a 12 px column, then the footer, which stays at the bottom while a tall form scrolls, with Cancel at the leading edge and the primary at the trailing edge, in one row also on a phone. An `alternative` is a second submit of the same form, an outline button just before the primary, for a value the command can also set without the fields, such as an amount going back to the plan's: it sends its `name` and `value` with the form and skips the fields' checks, and holds with the primary while the save runs; Enter in a field still submits the primary, never the alternative (nadicode decision). `FormDialogForm` puts the fields in the dialog's own scroll body and the actions in its fixed footer; no other overlay is nested inside. A refusal or a failed save sits above the footer and the fields keep what was typed. While its save runs it holds open, Cancel and the primary hold, and the waiting line runs under them. With `unsaved.dirty`, Escape and a press outside are held back and `unsaved.onDismissBlocked` runs so the caller can ask; Close and Cancel always close. A form whose primary takes something away, such as declining a company with a note for the record, sets `destructive` on `FormDialogForm`: the primary turns red, as `ConfirmDialog`'s destructive confirm does, and nothing else changes. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
|
|
16
17
|
* @words "`Modal.Title` is a Title Case statement, never a question. `Transfer Project` is correct; `Transfer Project?` is wrong." (https://vercel.com/geist/modal) "Primary button is `Verb + Noun` and matches the title verb (`Transfer Project` title pairs with `Transfer Project` button). Never `Confirm`, `OK`, or a bare verb on a destructive primary." (https://vercel.com/geist/modal) "Cancel literal stays `Cancel`. Acknowledgment-only Modals (after a key reveal, after a one-time-show) use `Done`, never `OK` or `Close`." (https://vercel.com/geist/modal) Ours: the title and the primary are sentence case, where Geist writes Title Case: the title names the job and its object, "New customer", "Add a mailbox"; the primary repeats it, "Create customer", "Add mailbox"; a destructive primary names what it takes away, "Decline company", never a bare "Decline".
|
|
17
18
|
* @access "Set `aria-labelledby` to the `Modal.Title` id so screen readers announce the title on open." (https://vercel.com/geist/modal) "Trap focus inside the Modal while it’s open and return focus to the trigger after close. Restore body scroll on the same tick the Modal unmounts." (https://vercel.com/geist/modal) "After an error inside the Modal, keep focus inside so the user can retry; after success, return focus to the trigger." (https://vercel.com/geist/modal) Ours: a modal dialog with a Close named by `closeLabel`; focus starts in its first field or `initialFocus` and returns to the opener or `finalFocus`. Escape and Close close it unless the save runs.
|
|
18
19
|
*/
|
|
@@ -23,7 +24,21 @@ export function FormDialog({ open, onOpenChange, onOpenChangeComplete, title, de
|
|
|
23
24
|
requestOpenChange(next, details);
|
|
24
25
|
}, onOpenChangeComplete: onOpenChangeComplete, children: _jsxs(DialogContent, { closeLabel: closeLabel, initialFocus: initialFocus, finalFocus: finalFocus, children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: title }), description ? _jsx(DialogDescription, { children: description }) : null] }), children] }) }));
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Enter in a field submits the form's default button, the first submit button in tree order
|
|
29
|
+
* (https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission).
|
|
30
|
+
* The alternative reads and tabs before the primary, so it would be that button: this one comes
|
|
31
|
+
* first instead and hands the press to the primary, which keeps its own hold while the save runs.
|
|
32
|
+
* It is laid out but unseen, because an engine may skip a default button that is not rendered.
|
|
33
|
+
*/
|
|
34
|
+
function DefaultSubmit({ primary }) {
|
|
35
|
+
return (_jsx("button", { "aria-hidden": true, className: "sr-only", "data-slot": "form-dialog-default-submit", onClick: (event) => {
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
primary.current?.click();
|
|
38
|
+
}, tabIndex: -1, type: "submit" }));
|
|
39
|
+
}
|
|
40
|
+
export function FormDialogForm({ cancelLabel, submit, notice, destructive = false, alternative, children, ...form }) {
|
|
27
41
|
const pending = submit.pending === true;
|
|
28
|
-
|
|
42
|
+
const primary = useRef(null);
|
|
43
|
+
return (_jsxs(Form, { className: "flex min-h-0 flex-col gap-(--dialog-gap)", "aria-busy": pending || undefined, "data-slot": "form-dialog-form", ...form, children: [alternative ? _jsx(DefaultSubmit, { primary: primary }) : null, _jsx(DialogBody, { children: children }), notice, _jsxs(DialogFooter, { className: "relative", children: [_jsx(DialogClose, { disabled: pending, render: _jsx(Button, { type: "button", variant: "outline" }), children: cancelLabel }), alternative ? (_jsxs("span", { className: "flex gap-nadicode-md", "data-slot": "form-dialog-submits", children: [_jsx(Button, { disabled: pending, formNoValidate: true, name: alternative.name, type: "submit", value: alternative.value, variant: "outline", children: alternative.label }), _jsx(FormSubmitButton, { destructive: destructive, ref: primary, submit: submit })] })) : (_jsx(FormSubmitButton, { destructive: destructive, submit: submit })), _jsx(WaitingLine, { className: "absolute inset-x-nadicode-sm bottom-1 w-auto", decorative: true, waiting: pending })] })] }));
|
|
29
44
|
}
|
|
@@ -19,22 +19,18 @@ declare const itemVariants: (props?: ({
|
|
|
19
19
|
size?: "default" | "xs" | null | undefined;
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
21
|
/**
|
|
22
|
-
* A row said in a sentence: media, a title, one line of description,
|
|
22
|
+
* A row said in a sentence: media, a title, one line of description, and at its end what it reads.
|
|
23
23
|
*
|
|
24
24
|
* @family Data
|
|
25
|
-
* @when
|
|
26
|
-
* Ours: things best said in a sentence, with one or two controls and no columns: a connected account, a session, a notification preference, a Library shelf row, an activity row. Media, a title over its description, trailing controls.
|
|
25
|
+
* @when Ours: a descriptive row best said in a sentence, with no columns and no command: a background service and its state, a notification preference and its switch, a Library shelf row, an activity row. Media, a title over its description, and at its end a reading or a value control (nadicode decision).
|
|
27
26
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
28
27
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
29
|
-
* Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`.
|
|
30
|
-
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items, and no side padding, so each row's media and words start on the card's content edge under its title, as a table's first column does. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none.
|
|
31
|
-
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
32
|
-
* Ours: the third control goes in the row's three dots.
|
|
28
|
+
* Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`. A row a person acts on one by one (opens, edits, connects, chooses, removes) is a `RecordList` row, which draws its `commands`; an object a person opens, with a mark, facts and a status, is a `RecordList` row too; the same row edited in place is a `RecordList` with an `editor`. A page whose job is one collection is `CollectionPage`. Agents in a gallery are `AgentListRow`; Library entries `CatalogEntry`.
|
|
29
|
+
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items, and no side padding, so each row's media and words start on the card's content edge under its title, as a table's first column does. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. An `Item` holds no command: `ItemActions` holds a reading, such as a value, a meter, a sparkline or a `StatusBadge`, or a value control, such as a `Switch`, and never a button, a link drawn as a button or a three-dots menu (nadicode decision). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue of the row's own; a `StatusBadge` at its end carries its tone.
|
|
33
30
|
* “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
|
|
34
31
|
* Ours: `ItemSkeleton` stands in a `SkeletonRegion`, still, with no shimmer.
|
|
35
32
|
* @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
|
|
36
|
-
*
|
|
37
|
-
* Ours: the title is the name, or what happened as a short sentence (*Nadia filed 12 invoices*), and the description one sentence, in sentence case: *Remove member*, never *Remove*.
|
|
33
|
+
* Ours: the title is the name, or what happened as a short sentence (*Nadia filed 12 invoices*), and the description one sentence, in sentence case; a reading at the end is the product's word for the state (*Connected*).
|
|
38
34
|
* @access Draw each row of a group `render={<li />}`, so the group is a list of list items. A linked item's text is its name; image media is decorative beside the title.
|
|
39
35
|
* “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity)
|
|
40
36
|
* Ours: the box of `ItemSelect` is named *Select {name}* in the product's words.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/components/item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,OAAe,EACf,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACnC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,0EAmBA;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,qBAWrF;AAED,QAAA,MAAM,YAAY;;;8EAmBjB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/components/item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,OAAe,EACf,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACnC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,0EAmBA;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,qBAWrF;AAED,QAAA,MAAM,YAAY;;;8EAmBjB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,0EAiBrE;AAED,QAAA,MAAM,iBAAiB;;8EAetB,CAAC;AAEF,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,qBAStE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWxE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWtE;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC7B,yGAAyG;IACzG,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,qBAYA;AAED,KAAK,UAAU,GAAG,KAAK,CAAC,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;AAElF,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,iEAAiE;IACjE,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;CAC3D,qBAIA;AAED,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC,GAAG;IACxE,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACf,qBAMA;AAED;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,qBAW3F;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,OAAO,EACL,IAAI,EACJ,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,EACV,SAAS,EACT,aAAa,EACb,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,YAAY,GACb,CAAC"}
|
package/dist/components/item.js
CHANGED
|
@@ -40,22 +40,18 @@ const itemVariants = cva("nc-transition-paint group/item flex w-full flex-wrap i
|
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
/**
|
|
43
|
-
* A row said in a sentence: media, a title, one line of description,
|
|
43
|
+
* A row said in a sentence: media, a title, one line of description, and at its end what it reads.
|
|
44
44
|
*
|
|
45
45
|
* @family Data
|
|
46
|
-
* @when
|
|
47
|
-
* Ours: things best said in a sentence, with one or two controls and no columns: a connected account, a session, a notification preference, a Library shelf row, an activity row. Media, a title over its description, trailing controls.
|
|
46
|
+
* @when Ours: a descriptive row best said in a sentence, with no columns and no command: a background service and its state, a notification preference and its switch, a Library shelf row, an activity row. Media, a title over its description, and at its end a reading or a value control (nadicode decision).
|
|
48
47
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
49
48
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
50
|
-
* Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`.
|
|
51
|
-
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items, and no side padding, so each row's media and words start on the card's content edge under its title, as a table's first column does. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none.
|
|
52
|
-
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
53
|
-
* Ours: the third control goes in the row's three dots.
|
|
49
|
+
* Ours: Geist's `Table` is a `DataTable` and its `Description` is `ObjectFacts`. A row a person acts on one by one (opens, edits, connects, chooses, removes) is a `RecordList` row, which draws its `commands`; an object a person opens, with a mark, facts and a status, is a `RecordList` row too; the same row edited in place is a `RecordList` with an `editor`. A page whose job is one collection is `CollectionPage`. Agents in a gallery are `AgentListRow`; Library entries `CatalogEntry`.
|
|
50
|
+
* @behaviour A list of descriptive rows is an `ItemGroup` of `Item`s, never table semantics. A row too narrow for its title beside its actions puts the actions under the title, so a name never squeezes to a few letters a line; `min-w-0` on `ItemContent` turns that off, for a row whose figures must stay on the title's line. Every row has a title over its one muted description line; only a message row read whole, or a second content beside the first, may be description only. Media, content and actions stand 16 px apart, centred on one another, in a 72 px row of 16 px padding; a 600 title stands over one 20 px description with no gap, and each holds one line and ends in an ellipsis (`whole` lets a message wrap). Inside a card the group is `divided`: no gaps, one hairline between items, and no side padding, so each row's media and words start on the card's content edge under its title, as a table's first column does. An item that is an `a`, a `button` or a `label` takes the `accent` hover and is one hit target; a plain item never reacts to hover; nested controls stay independent. An `xs` item inside a menu or a combobox option takes the option's padding and adds none. An `Item` holds no command: `ItemActions` holds a reading, such as a value, a meter, a sparkline or a `StatusBadge`, or a value control, such as a `Switch`, and never a button, a link drawn as a button or a three-dots menu (nadicode decision). A row a person picks starts with `ItemSelect` and is drawn `render={<label />}`, so the whole row ticks its box and has no other control. A second content beside the first takes only the room its words need. Colour is neutral: the title in ink, the description and any trailing words muted, no hue of the row's own; a `StatusBadge` at its end carries its tone.
|
|
54
51
|
* “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
|
|
55
52
|
* Ours: `ItemSkeleton` stands in a `SkeletonRegion`, still, with no shimmer.
|
|
56
53
|
* @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
|
|
57
|
-
*
|
|
58
|
-
* Ours: the title is the name, or what happened as a short sentence (*Nadia filed 12 invoices*), and the description one sentence, in sentence case: *Remove member*, never *Remove*.
|
|
54
|
+
* Ours: the title is the name, or what happened as a short sentence (*Nadia filed 12 invoices*), and the description one sentence, in sentence case; a reading at the end is the product's word for the state (*Connected*).
|
|
59
55
|
* @access Draw each row of a group `render={<li />}`, so the group is a list of list items. A linked item's text is its name; image media is decorative beside the title.
|
|
60
56
|
* “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity)
|
|
61
57
|
* Ours: the box of `ItemSelect` is named *Select {name}* in the product's words.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import { type PageCommand } from "../internal/page-command-button.js";
|
|
2
3
|
export type NumberedStep = {
|
|
3
4
|
id: string;
|
|
4
5
|
/** The person's step, or a finished one in the past tense. */
|
|
5
6
|
title: string;
|
|
6
7
|
description?: ReactNode;
|
|
7
|
-
/** The step's own
|
|
8
|
-
|
|
8
|
+
/** The step's own command, under its words: "Confirm the company", "Download Nadia". */
|
|
9
|
+
command?: PageCommand | undefined;
|
|
10
|
+
/** What the step holds under its words that is not a command: the command line to paste as a `Snippet`, a platform line, the step's state as a `StatusBadge`. */
|
|
11
|
+
content?: ReactNode;
|
|
9
12
|
};
|
|
10
13
|
export type NumberedStepsProps = {
|
|
11
14
|
/** "How to start" */
|
|
@@ -26,13 +29,13 @@ export type NumberedStepsProps = {
|
|
|
26
29
|
framed?: never;
|
|
27
30
|
});
|
|
28
31
|
/**
|
|
29
|
-
* Steps a person follows, each with its number, its words and its own
|
|
32
|
+
* Steps a person follows, each with its number, its words and its own command.
|
|
30
33
|
*
|
|
31
34
|
* @family Other
|
|
32
35
|
* @when A short sequence the person does: installing Nadia from Downloads, connecting Teams, the Dashboard's setup guide, an `ObjectSection` whose body is these steps; or a sequence whose real progress the page tracks, such as the company check; and, as `columns`, the few steps a page explains, such as the website's how it works.
|
|
33
36
|
* @instead Stages the system runs on an entry screen are the EntryStageList; the steps of an Agent's run are a RunTimeline; a setup with a wait is a FormDrawer with its "Step 2 of 3" line.
|
|
34
|
-
* @behaviour Each step is a 28 px square number in label-mono, its title, one muted description and, under it, the step's own
|
|
35
|
-
* @words The title is what the person does, in the imperative ("Install Nadia"), or a finished step in the past tense ("Sofia looked up acme.it"). The current step's word is short: "Now".
|
|
37
|
+
* @behaviour Each step is a 28 px square number in label-mono, its title, one muted description and, under it, the step's own `command` and then its `content`. The product gives the command as data and the steps draw it: filled on the current step, the page's next thing to do, and outline on the others; a product never draws a button in a step (nadicode decision). `content` holds what is not a command, such as a `Snippet` to copy or a state badge. Instructions mark no step and every number stays muted, because the page cannot know which one the person is on. Where the page tracks real progress, `current` turns that step's number to ink and writes its word beside the title. `framed` draws one bordered list with a seam between steps; `columns` sets the steps side by side as the width it is given allows, each column at least 192 px, so a phone stacks them and a wide page or panel holds three, each number above its words, and is never framed. A step's command and content never grow past its step: one wider than the step is held to its width, and its label is cut short with an ellipsis inside it. Colour is neutral: the current number is ink on the page's background and the others are muted; no hue marks a step. It is the one owner of a drawn step number.
|
|
38
|
+
* @words The title is what the person does, in the imperative ("Install Nadia"), or a finished step in the past tense ("Sofia looked up acme.it"). The current step's word is short: "Now". A command names its verb and its noun ("Download Nadia"), and a platform line under it is its `content` ("macOS · 2.14.0 · Apple silicon").
|
|
36
39
|
* @access An ordered list named by `label`, so assistive technology reads the count and position; the drawn numbers are hidden. The current step carries `aria-current="step"`. The titles are not headings, so the list never breaks the page's heading order.
|
|
37
40
|
*/
|
|
38
41
|
export declare function NumberedSteps({ label, steps, current, framed, columns, }: NumberedStepsProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbered-steps.d.ts","sourceRoot":"","sources":["../../src/components/numbered-steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"numbered-steps.d.ts","sourceRoot":"","sources":["../../src/components/numbered-steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,gCAAgC,CAAC;AAGrF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wFAAwF;IACxF,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC,iKAAiK;IACjK,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,gHAAgH;IAChH,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC,GAAG,CACA;IACE,mDAAmD;IACnD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,8IAA8I;IAC9I,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CACJ,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAc,EACd,OAAO,GACR,EAAE,kBAAkB,+BAsEpB"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PageCommandButton } from "../internal/page-command-button.js";
|
|
2
3
|
import { cn } from "../lib/utils.js";
|
|
3
4
|
/**
|
|
4
|
-
* Steps a person follows, each with its number, its words and its own
|
|
5
|
+
* Steps a person follows, each with its number, its words and its own command.
|
|
5
6
|
*
|
|
6
7
|
* @family Other
|
|
7
8
|
* @when A short sequence the person does: installing Nadia from Downloads, connecting Teams, the Dashboard's setup guide, an `ObjectSection` whose body is these steps; or a sequence whose real progress the page tracks, such as the company check; and, as `columns`, the few steps a page explains, such as the website's how it works.
|
|
8
9
|
* @instead Stages the system runs on an entry screen are the EntryStageList; the steps of an Agent's run are a RunTimeline; a setup with a wait is a FormDrawer with its "Step 2 of 3" line.
|
|
9
|
-
* @behaviour Each step is a 28 px square number in label-mono, its title, one muted description and, under it, the step's own
|
|
10
|
-
* @words The title is what the person does, in the imperative ("Install Nadia"), or a finished step in the past tense ("Sofia looked up acme.it"). The current step's word is short: "Now".
|
|
10
|
+
* @behaviour Each step is a 28 px square number in label-mono, its title, one muted description and, under it, the step's own `command` and then its `content`. The product gives the command as data and the steps draw it: filled on the current step, the page's next thing to do, and outline on the others; a product never draws a button in a step (nadicode decision). `content` holds what is not a command, such as a `Snippet` to copy or a state badge. Instructions mark no step and every number stays muted, because the page cannot know which one the person is on. Where the page tracks real progress, `current` turns that step's number to ink and writes its word beside the title. `framed` draws one bordered list with a seam between steps; `columns` sets the steps side by side as the width it is given allows, each column at least 192 px, so a phone stacks them and a wide page or panel holds three, each number above its words, and is never framed. A step's command and content never grow past its step: one wider than the step is held to its width, and its label is cut short with an ellipsis inside it. Colour is neutral: the current number is ink on the page's background and the others are muted; no hue marks a step. It is the one owner of a drawn step number.
|
|
11
|
+
* @words The title is what the person does, in the imperative ("Install Nadia"), or a finished step in the past tense ("Sofia looked up acme.it"). The current step's word is short: "Now". A command names its verb and its noun ("Download Nadia"), and a platform line under it is its `content` ("macOS · 2.14.0 · Apple silicon").
|
|
11
12
|
* @access An ordered list named by `label`, so assistive technology reads the count and position; the drawn numbers are hidden. The current step carries `aria-current="step"`. The titles are not headings, so the list never breaks the page's heading order.
|
|
12
13
|
*/
|
|
13
14
|
export function NumberedSteps({ label, steps, current, framed = false, columns, }) {
|
|
@@ -20,6 +21,6 @@ export function NumberedSteps({ label, steps, current, framed = false, columns,
|
|
|
20
21
|
? "grid grid-cols-[minmax(0,1fr)] content-start gap-y-3"
|
|
21
22
|
: "grid grid-cols-[1.75rem_minmax(0,1fr)] gap-x-3 gap-y-1", framed && "p-4"), children: [_jsx("span", { "aria-hidden": "true", className: isCurrent
|
|
22
23
|
? "flex size-7 items-center justify-center rounded-md bg-foreground font-label-mono text-label-mono tabular-nums text-background"
|
|
23
|
-
: "flex size-7 items-center justify-center rounded-md bg-muted font-label-mono text-label-mono tabular-nums text-muted-foreground", children: index + 1 }), _jsxs("div", { className: "flex min-h-7 min-w-0 flex-wrap items-center gap-2", children: [_jsx("span", { className: "text-body-sm font-medium text-foreground", children: step.title }), isCurrent ? (_jsx("span", { className: "font-label-mono text-label-mono uppercase text-muted-foreground", children: word })) : null] }), step.description ? (_jsx("div", { className: cn("text-body-sm text-muted-foreground", !columns && "col-start-2"), children: step.description })) : null, step.
|
|
24
|
+
: "flex size-7 items-center justify-center rounded-md bg-muted font-label-mono text-label-mono tabular-nums text-muted-foreground", children: index + 1 }), _jsxs("div", { className: "flex min-h-7 min-w-0 flex-wrap items-center gap-2", children: [_jsx("span", { className: "text-body-sm font-medium text-foreground", children: step.title }), isCurrent ? (_jsx("span", { className: "font-label-mono text-label-mono uppercase text-muted-foreground", children: word })) : null] }), step.description ? (_jsx("div", { className: cn("text-body-sm text-muted-foreground", !columns && "col-start-2"), children: step.description })) : null, step.command || step.content ? (_jsxs("div", { className: cn("grid grid-cols-[minmax(0,1fr)] justify-items-start gap-1.5 *:max-w-full [&>*>span:not([data-icon])]:block [&>*>span:not([data-icon])]:truncate", columns ? "pt-1" : "col-start-2 pt-3"), children: [step.command ? (_jsx(PageCommandButton, { command: step.command, variant: isCurrent ? "default" : "outline" })) : null, step.content] })) : null] }, step.id));
|
|
24
25
|
}) }));
|
|
25
26
|
}
|
|
@@ -27,7 +27,7 @@ export type ObjectSectionBack = {
|
|
|
27
27
|
/** The product's router link, such as `<Link href="/statements" />`. */
|
|
28
28
|
link: ReactElement;
|
|
29
29
|
};
|
|
30
|
-
/** A card's footer: one muted sentence at its start and the card's one command at its end. */
|
|
30
|
+
/** A card's footer: one muted sentence at its start and the card's one command at its end, filled unless it is a `link` elsewhere. */
|
|
31
31
|
export type CardFooterLine = {
|
|
32
32
|
hint: string;
|
|
33
33
|
command?: PageCommand;
|
|
@@ -41,7 +41,7 @@ export type CardFooterLine = {
|
|
|
41
41
|
* @family Compositions
|
|
42
42
|
* @when A part of an ObjectPage a person reads or changes on its own: a customer's Company details, an Agent's Instructions, a Library entry's source, a Partner's services in Billing. Also a setup card on an overview, its body the `NumberedSteps` a person follows, such as the Dashboard's setup guide; and a card among a person's settings that holds no setting, such as their nadicode card on Profile.
|
|
43
43
|
* @instead Values a person edits and saves together are a SettingsSection; a list of the object's records is a RecordList with its heading; a passing condition is a MessageNotice.
|
|
44
|
-
* @behaviour `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a section that stands beside fuller cards (nadicode decision). The section is a resting card, its title and the one-sentence description directly under it, both always given; a `status` right after the title, as SettingsSection and TableCard place theirs ("Provisional"), makes the header one record's, as a Statement's cycle: the title at medium weight, and a lone `meta` in the caption's size that keeps the title's row on a narrow card (nadicode decision); at the header's trailing edge `actions`, drawn as every card's header draws them (`CardActions`: the muted `meta`, then up to two secondaries as outline buttons, the primary as the filled one, then the three dots), so a way to another page is a secondary with its `link`, an outline button named for the page, never a text link; then its body; then the optional `footer`, a strip under a divider with its sentence at the start and its one command at the end as an outline button. No icon in the header. Neutral throughout. A section that shows one record chosen from a list on the same page, such as an issued Statement opened from its history, takes `back`: the way to the list with nothing chosen, a quiet link with a leading arrow above the title, never a button among the `actions` (nadicode decision). A section that edits in place swaps to the same section as a `SettingsSection`, with Cancel (`save.cancel`) before Save. While its page reads it, `ObjectSectionSkeleton` stands in its place: the same card, bars for the title and the description at their line heights, then `rows` lines of the body, with no words (nadicode decision).
|
|
44
|
+
* @behaviour `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a section that stands beside fuller cards (nadicode decision). The section is a resting card, its title and the one-sentence description directly under it, both always given; a `status` right after the title, as SettingsSection and TableCard place theirs ("Provisional"), makes the header one record's, as a Statement's cycle: the title at medium weight, and a lone `meta` in the caption's size that keeps the title's row on a narrow card (nadicode decision); at the header's trailing edge `actions`, drawn as every card's header draws them (`CardActions`: the muted `meta`, then up to two secondaries as outline buttons, the primary as the filled one, then the three dots), so a way to another page is a secondary with its `link`, an outline button named for the page, never a text link; then its body; then the optional `footer`, a strip under a divider with its sentence at the start and its one command at the end: the command the section is there for, such as the upgrade a plan's confirmation asks for, is the filled button, and a footer command that only leads to another page (`link`) is an outline button named for that page. No icon in the header. Neutral throughout. A section that shows one record chosen from a list on the same page, such as an issued Statement opened from its history, takes `back`: the way to the list with nothing chosen, a quiet link with a leading arrow above the title, never a button among the `actions` (nadicode decision). A section that edits in place swaps to the same section as a `SettingsSection`, with Cancel (`save.cancel`) before Save. While its page reads it, `ObjectSectionSkeleton` stands in its place: the same card, bars for the title and the description at their line heights, then `rows` lines of the body, with no words (nadicode decision).
|
|
45
45
|
* @words The title names what the section holds ("Company", "Instructions"); the description says in one sentence what it holds or lets a person change; a command is a verb on it ("Edit"), and a way to another page is that page's name ("Statements"); `meta` is a short count or time ("2 of 5 Agents"); `back` says where it leads ("Back to statements"); the footer's sentence is a limit or where the section's object changes ("At most three cards.").
|
|
46
46
|
* @access The title is a heading one level under the page (h2), deeper only under another heading through `headingLevel`; a `status` stands beside it, outside it. `back` is a real link before the title in reading order. `ObjectSectionSkeleton` is busy and its bars are hidden from assistive technology.
|
|
47
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-workspace.d.ts","sourceRoot":"","sources":["../../src/components/object-workspace.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAMjE,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAEjB,MAAM,gBAAgB,CAAC;AAKxB,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,gGAAgG;IAChG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,eAAe,GACtC,CACI;IACE;;;OAGG;IACH,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,oJAAoJ;IACpJ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CACJ,CAAC;AAEJ,wFAAwF;AACxF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAkBF,
|
|
1
|
+
{"version":3,"file":"object-workspace.d.ts","sourceRoot":"","sources":["../../src/components/object-workspace.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAMjE,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAEjB,MAAM,gBAAgB,CAAC;AAKxB,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,gGAAgG;IAChG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,eAAe,GACtC,CACI;IACE;;;OAGG;IACH,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,oJAAoJ;IACpJ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CACJ,CAAC;AAEJ,wFAAwF;AACxF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAkBF,sIAAsI;AACtI,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,GACvC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAE,CAAC;AAE5C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,WAAW,EACX,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,YAAgB,EAChB,QAAoB,GACrB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,oGAAoG;IACpG,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,oFAAoF;IACpF,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACpC,8FAA8F;IAC9F,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,uFAAuF;IACvF,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,mGAAmG;IACnG,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,sFAAsF;IACtF,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC7B,+BAoDA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,+BAoB/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAmB,GACpB,EAAE;IACD,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,+BAyDA"}
|
|
@@ -26,14 +26,14 @@ function BackLink({ label, link }) {
|
|
|
26
26
|
* @family Compositions
|
|
27
27
|
* @when A part of an ObjectPage a person reads or changes on its own: a customer's Company details, an Agent's Instructions, a Library entry's source, a Partner's services in Billing. Also a setup card on an overview, its body the `NumberedSteps` a person follows, such as the Dashboard's setup guide; and a card among a person's settings that holds no setting, such as their nadicode card on Profile.
|
|
28
28
|
* @instead Values a person edits and saves together are a SettingsSection; a list of the object's records is a RecordList with its heading; a passing condition is a MessageNotice.
|
|
29
|
-
* @behaviour `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a section that stands beside fuller cards (nadicode decision). The section is a resting card, its title and the one-sentence description directly under it, both always given; a `status` right after the title, as SettingsSection and TableCard place theirs ("Provisional"), makes the header one record's, as a Statement's cycle: the title at medium weight, and a lone `meta` in the caption's size that keeps the title's row on a narrow card (nadicode decision); at the header's trailing edge `actions`, drawn as every card's header draws them (`CardActions`: the muted `meta`, then up to two secondaries as outline buttons, the primary as the filled one, then the three dots), so a way to another page is a secondary with its `link`, an outline button named for the page, never a text link; then its body; then the optional `footer`, a strip under a divider with its sentence at the start and its one command at the end as an outline button. No icon in the header. Neutral throughout. A section that shows one record chosen from a list on the same page, such as an issued Statement opened from its history, takes `back`: the way to the list with nothing chosen, a quiet link with a leading arrow above the title, never a button among the `actions` (nadicode decision). A section that edits in place swaps to the same section as a `SettingsSection`, with Cancel (`save.cancel`) before Save. While its page reads it, `ObjectSectionSkeleton` stands in its place: the same card, bars for the title and the description at their line heights, then `rows` lines of the body, with no words (nadicode decision).
|
|
29
|
+
* @behaviour `cardSize="sm"` draws the compact card, as `Card`'s `size`, for a section that stands beside fuller cards (nadicode decision). The section is a resting card, its title and the one-sentence description directly under it, both always given; a `status` right after the title, as SettingsSection and TableCard place theirs ("Provisional"), makes the header one record's, as a Statement's cycle: the title at medium weight, and a lone `meta` in the caption's size that keeps the title's row on a narrow card (nadicode decision); at the header's trailing edge `actions`, drawn as every card's header draws them (`CardActions`: the muted `meta`, then up to two secondaries as outline buttons, the primary as the filled one, then the three dots), so a way to another page is a secondary with its `link`, an outline button named for the page, never a text link; then its body; then the optional `footer`, a strip under a divider with its sentence at the start and its one command at the end: the command the section is there for, such as the upgrade a plan's confirmation asks for, is the filled button, and a footer command that only leads to another page (`link`) is an outline button named for that page. No icon in the header. Neutral throughout. A section that shows one record chosen from a list on the same page, such as an issued Statement opened from its history, takes `back`: the way to the list with nothing chosen, a quiet link with a leading arrow above the title, never a button among the `actions` (nadicode decision). A section that edits in place swaps to the same section as a `SettingsSection`, with Cancel (`save.cancel`) before Save. While its page reads it, `ObjectSectionSkeleton` stands in its place: the same card, bars for the title and the description at their line heights, then `rows` lines of the body, with no words (nadicode decision).
|
|
30
30
|
* @words The title names what the section holds ("Company", "Instructions"); the description says in one sentence what it holds or lets a person change; a command is a verb on it ("Edit"), and a way to another page is that page's name ("Statements"); `meta` is a short count or time ("2 of 5 Agents"); `back` says where it leads ("Back to statements"); the footer's sentence is a limit or where the section's object changes ("At most three cards.").
|
|
31
31
|
* @access The title is a heading one level under the page (h2), deeper only under another heading through `headingLevel`; a `status` stands beside it, outside it. `back` is a real link before the title in reading order. `ObjectSectionSkeleton` is busy and its bars are hidden from assistive technology.
|
|
32
32
|
*/
|
|
33
33
|
export function ObjectSection({ title, status, description, actions, back, footer, children, headingLevel = 2, cardSize = "default", }) {
|
|
34
34
|
const loneMeta = Boolean(actions?.meta) && !hasCardActions({ ...actions, meta: undefined });
|
|
35
35
|
const header = (_jsxs(CardHeader, { className: status ? "[&_[data-slot=card-actions-meta]]:text-caption" : undefined, narrowAction: status && loneMeta ? "title-row" : undefined, children: [status ? (_jsxs(CardTitle, { className: "flex flex-wrap items-center gap-2 font-medium", children: [_jsx("span", { role: "heading", "aria-level": headingLevel, children: title }), status] })) : (_jsx(CardTitle, { role: "heading", "aria-level": headingLevel, children: title })), _jsx(CardDescription, { children: description }), actions ? (_jsx(CardAction, { children: _jsx(CardActionsRow, { ...actions }) })) : null] }));
|
|
36
|
-
return (_jsxs(Card, { "data-slot": "object-section", size: cardSize, children: [back ? (_jsxs("div", { className: "grid min-w-0 gap-2", children: [_jsx("div", { className: "px-(--card-spacing)", children: _jsx(BackLink, { ...back }) }), header] })) : (header), _jsx(CardContent, { children: children }), footer ? (_jsx(FooterStrip, { hint: footer.hint, hintSlot: "object-section-hint", children: footer.command ? _jsx(PageCommandButton, { command: footer.command, variant: "outline" }) : null })) : null] }));
|
|
36
|
+
return (_jsxs(Card, { "data-slot": "object-section", size: cardSize, children: [back ? (_jsxs("div", { className: "grid min-w-0 gap-2", children: [_jsx("div", { className: "px-(--card-spacing)", children: _jsx(BackLink, { ...back }) }), header] })) : (header), _jsx(CardContent, { children: children }), footer ? (_jsx(FooterStrip, { hint: footer.hint, hintSlot: "object-section-hint", children: footer.command ? (_jsx(PageCommandButton, { command: footer.command, variant: footer.command.link ? "outline" : "default" })) : null })) : null] }));
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* What stands in an ObjectSection's place while its page reads it: its card, a bar for the title
|
|
@@ -19,7 +19,8 @@ export type PageMenu = RecordMenu;
|
|
|
19
19
|
export type PageActionsProps = {
|
|
20
20
|
/** An overview's reading period, first on the title row: a period `Select` or `DateRangeControl`. */
|
|
21
21
|
period?: ReactElement | undefined;
|
|
22
|
-
|
|
22
|
+
/** Up to two lesser commands, outline, before the primary: a way to another page among them. */
|
|
23
|
+
secondary?: PageCommand | readonly [PageCommand, PageCommand] | undefined;
|
|
23
24
|
primary?: PagePrimaryCommand | undefined;
|
|
24
25
|
menu?: PageMenu | undefined;
|
|
25
26
|
};
|
|
@@ -28,10 +29,9 @@ export type PageActionsProps = {
|
|
|
28
29
|
* commands in `PageActions`' order, with up to two secondaries. A way to another page, such as
|
|
29
30
|
* "Statements", is a secondary with its `link`, drawn as a button like the others.
|
|
30
31
|
*/
|
|
31
|
-
export type CardActions =
|
|
32
|
+
export type CardActions = PageActionsProps & {
|
|
32
33
|
/** A period or a count before the commands: "26 Oct – 26 Nov", "2 of 5 Agents". */
|
|
33
34
|
meta?: string | undefined;
|
|
34
|
-
secondary?: PageCommand | readonly [PageCommand, PageCommand] | undefined;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* The end of a card's header: what the card's reader can do from it, and where it leads.
|
|
@@ -41,7 +41,7 @@ export type CardActions = Omit<PageActionsProps, "secondary"> & {
|
|
|
41
41
|
* @instead A page's own commands are `PageActions` on the title's row. A record's commands are its list's (`RecordList`) or its `RecordCommands`. A setting card whose value stands at its header's end, such as an avatar upload, gives `SettingsSection` its `control`. A link inside the card's description or footer line is a `TextLink` in that sentence (nadicode decision).
|
|
42
42
|
* @behaviour The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. It wraps under the title when the header is narrow, as the card's header places it.
|
|
43
43
|
* @words A command is a verb on the card's object ("Add card", "Buy Extra usage for Customers"); a way to another page is that page's name as its navigation writes it ("Statements"); `meta` is a short count or period ("2 of 5 Agents").
|
|
44
|
-
* @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link.
|
|
44
|
+
* @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link. A command with `autoFocus` takes focus as it appears, as the Edit that opened a card's in-place editor does when the editor closes.
|
|
45
45
|
*/
|
|
46
46
|
export declare function CardActionsRow({ meta, period, secondary, primary, menu }: CardActions): import("react").JSX.Element | null;
|
|
47
47
|
export declare function PageCommandButton({ command, ...appearance }: CommandLook & {
|
|
@@ -82,7 +82,7 @@ export declare function PageActionsSlot(): import("react").JSX.Element;
|
|
|
82
82
|
* @family Actions
|
|
83
83
|
* @when The actions of a collection, an object or an overview page, at the trailing edge of the title's row, or, where the product's path names the page and its title is unseen (`ProductShell`'s `title`, every Portal page's), of the one row the unseen title keeps at the top of the page, which takes no room while the page has none (owner, 2026-11-08); the page compositions draw it from their `actions`. A settings page (`SettingsPage`) has none: each section saves from its footer (nadicode decision).
|
|
84
84
|
* @instead A record's commands are its list's (`RecordList`) or its `RecordCommands`. A collection toolbar holds search and filters, never a page action, except on a list page whose title is not drawn, where `CollectionPage` ends the toolbar with the page's actions (owner, 2026-11-08). A page whose parts each have commands gathers them in the one `PageActions` of the component that owns the page; a part never draws a second (nadicode decision).
|
|
85
|
-
* @behaviour Ours: an action sits on the title of the thing it acts on, never on a tab's, and a page's commands are the same on each of its sibling tabs, whatever its list shows or has chosen: only the viewer's permission removes one (nadicode decision). A command on chosen records is the list's own (`select.chosen`), and a record's is its row's (nadicode decision). One per page: a second `PageActions` on the page a person sees would hide the first's commands, so it throws in development and in tests, and in production the one that mounted last keeps the row; a page kept hidden for a quick return (an `Activity` with `mode="hidden"`) has given the row back (nadicode decision). It takes `period`, `secondary`, `primary` and `menu` and draws their order: the period,
|
|
85
|
+
* @behaviour Ours: an action sits on the title of the thing it acts on, never on a tab's, and a page's commands are the same on each of its sibling tabs, whatever its list shows or has chosen: only the viewer's permission removes one (nadicode decision). A command on chosen records is the list's own (`select.chosen`), and a record's is its row's (nadicode decision). One per page: a second `PageActions` on the page a person sees would hide the first's commands, so it throws in development and in tests, and in production the one that mounted last keeps the row; a page kept hidden for a quick return (an `Activity` with `mode="hidden"`) has given the row back (nadicode decision). It takes `period`, `secondary`, `primary` and `menu` and draws their order: the period, up to two outline secondaries, the filled primary, then the three dots last; one filled button per page, so a page whose commands only serve its main job, such as a Library catalogue's link to its hub and its Sync now, gives them as secondaries and no primary, and the page's one filled button is its first use's (nadicode decision). The page's three dots hold two commands or more, which the type requires; a single extra command is the secondary (owner, 2026-11-06). A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon; a kind that needs its own fields opens its dialog from its row (nadicode decision). A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon and says its pending word, and the type requires `pendingLabel` whenever `pending` is set; one that cannot run now stays, disabled, with `disabledReason` in its tooltip (nadicode decision). Deleting the page's own record is never here: it is the danger zone of the record's Settings, in a card. A reversible command on the record, such as Archive, may stand last in the page's three dots, after a divider, with its `confirm` or `undo` (nadicode decision). “Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why.” (https://vercel.com/geist/button) “Group destructive items at the bottom, separated by a divider, and keep the destructive copy as `Verb + Noun` (`Delete Project`, never bare `Delete`).” (https://vercel.com/geist/menu)
|
|
86
86
|
* @words Ours: the primary is the page's main job as verb and noun: "Invite member", "New Agent"; its choices are the kinds, as nouns: "Folder", "Documents", "Web page"; the pending word is its -ing form: "Inviting member"; the menu names the page's record at its top (nadicode decision).
|
|
87
87
|
* @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A running command is `aria-busy` and keeps focus. The three dots carry "More for {record}"; the menu returns focus to them when it closes.
|
|
88
88
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-actions.d.ts","sourceRoot":"","sources":["../../src/components/page-actions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAChB,KAAK,eAAe,EAGrB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAI/E,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElG;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IACjD,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAElE,uEAAuE;AACvE,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qGAAqG;IACrG,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"page-actions.d.ts","sourceRoot":"","sources":["../../src/components/page-actions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAChB,KAAK,eAAe,EAGrB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAI/E,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElG;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IACjD,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAElE,uEAAuE;AACvE,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qGAAqG;IACrG,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,gGAAgG;IAChG,SAAS,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,SAAS,CAAC;IAC1E,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACzC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG;IAC3C,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAOF;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,WAAW,sCAkBrF;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,GAAG,UAAU,EACd,EAAE,WAAW,GAAG;IAAE,OAAO,EAAE,kBAAkB,CAAA;CAAE,+BAG/C;AAwCD,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,gBAAgB,sCAYpF;AAyCD;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,MAAa,GACd,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,+BAIA;AAED,oHAAoH;AACpH,wBAAgB,aAAa,IAAI,OAAO,CAGvC;AAED,yFAAyF;AACzF,wBAAgB,eAAe,gCAS9B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCA6BlD"}
|
|
@@ -10,6 +10,11 @@ import { MenuCommandRow } from "../internal/record-menu-items.js";
|
|
|
10
10
|
import { ActionMenu } from "./action-menu.js";
|
|
11
11
|
import { Button } from "./button.js";
|
|
12
12
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
13
|
+
function secondariesOf(secondary) {
|
|
14
|
+
if (secondary === undefined)
|
|
15
|
+
return [];
|
|
16
|
+
return "label" in secondary ? [secondary] : secondary;
|
|
17
|
+
}
|
|
13
18
|
/**
|
|
14
19
|
* The end of a card's header: what the card's reader can do from it, and where it leads.
|
|
15
20
|
*
|
|
@@ -18,12 +23,12 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "./dropdo
|
|
|
18
23
|
* @instead A page's own commands are `PageActions` on the title's row. A record's commands are its list's (`RecordList`) or its `RecordCommands`. A setting card whose value stands at its header's end, such as an avatar upload, gives `SettingsSection` its `control`. A link inside the card's description or footer line is a `TextLink` in that sentence (nadicode decision).
|
|
19
24
|
* @behaviour The row holds, in order: the muted `meta` (a period or a count), the reading `period`, up to two secondaries as outline buttons, the primary as the filled button, and the three dots last. A way to another page is a secondary with its `link`, drawn as a button like the others and named for the page; it is never a text link in the header's corner. A page has one filled button, so a card on a page whose primary stands elsewhere takes outline buttons only. It wraps under the title when the header is narrow, as the card's header places it.
|
|
20
25
|
* @words A command is a verb on the card's object ("Add card", "Buy Extra usage for Customers"); a way to another page is that page's name as its navigation writes it ("Statements"); `meta` is a short count or period ("2 of 5 Agents").
|
|
21
|
-
* @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link.
|
|
26
|
+
* @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A way to another page is a real link. A command with `autoFocus` takes focus as it appears, as the Edit that opened a card's in-place editor does when the editor closes.
|
|
22
27
|
*/
|
|
23
28
|
export function CardActionsRow({ meta, period, secondary, primary, menu }) {
|
|
24
29
|
if (!hasCardActions({ meta, period, secondary, primary, menu }))
|
|
25
30
|
return null;
|
|
26
|
-
const secondaries = secondary
|
|
31
|
+
const secondaries = secondariesOf(secondary);
|
|
27
32
|
return (_jsxs("div", { "data-slot": "card-actions", className: "flex max-w-full min-w-0 flex-wrap items-center gap-2", children: [meta ? (_jsx("span", { className: "mr-1 text-label-sm text-muted-foreground", "data-slot": "card-actions-meta", children: meta })) : null, period, secondaries.map((command) => (_jsx(PageCommandButton, { command: command, variant: "outline" }, command.label))), primary ? _jsx(PageCommandButton, { command: primary, variant: "default" }) : null, menu ? _jsx(ActionMenu, { ...menu, size: "page" }) : null] }));
|
|
28
33
|
}
|
|
29
34
|
export function PageCommandButton({ command, ...appearance }) {
|
|
@@ -46,7 +51,7 @@ function ChoicesButton({ command, look: ownLook, ...trigger }) {
|
|
|
46
51
|
export function PageActionsRow({ period, primary, secondary, menu }) {
|
|
47
52
|
if (!period && !primary && !secondary && !menu)
|
|
48
53
|
return null;
|
|
49
|
-
return (_jsxs("div", { "data-slot": "page-actions", className: "flex max-w-full min-w-0 flex-wrap items-center gap-2", children: [period, secondary
|
|
54
|
+
return (_jsxs("div", { "data-slot": "page-actions", className: "flex max-w-full min-w-0 flex-wrap items-center gap-2", children: [period, secondariesOf(secondary).map((command) => (_jsx(PageCommandButton, { command: command, variant: "outline" }, command.label))), primary ? _jsx(PageCommandButton, { command: primary, variant: "default" }) : null, menu ? _jsx(ActionMenu, { ...menu, size: "page" }) : null] }));
|
|
50
55
|
}
|
|
51
56
|
const TWO_OWNERS = "Two PageActions are on the page at once. The title row has one owner, so the one that mounted last hides the commands of the other. Give the page one PageActions.";
|
|
52
57
|
function createHost(titled = true) {
|
|
@@ -105,7 +110,7 @@ export function PageActionsSlot() {
|
|
|
105
110
|
* @family Actions
|
|
106
111
|
* @when The actions of a collection, an object or an overview page, at the trailing edge of the title's row, or, where the product's path names the page and its title is unseen (`ProductShell`'s `title`, every Portal page's), of the one row the unseen title keeps at the top of the page, which takes no room while the page has none (owner, 2026-11-08); the page compositions draw it from their `actions`. A settings page (`SettingsPage`) has none: each section saves from its footer (nadicode decision).
|
|
107
112
|
* @instead A record's commands are its list's (`RecordList`) or its `RecordCommands`. A collection toolbar holds search and filters, never a page action, except on a list page whose title is not drawn, where `CollectionPage` ends the toolbar with the page's actions (owner, 2026-11-08). A page whose parts each have commands gathers them in the one `PageActions` of the component that owns the page; a part never draws a second (nadicode decision).
|
|
108
|
-
* @behaviour Ours: an action sits on the title of the thing it acts on, never on a tab's, and a page's commands are the same on each of its sibling tabs, whatever its list shows or has chosen: only the viewer's permission removes one (nadicode decision). A command on chosen records is the list's own (`select.chosen`), and a record's is its row's (nadicode decision). One per page: a second `PageActions` on the page a person sees would hide the first's commands, so it throws in development and in tests, and in production the one that mounted last keeps the row; a page kept hidden for a quick return (an `Activity` with `mode="hidden"`) has given the row back (nadicode decision). It takes `period`, `secondary`, `primary` and `menu` and draws their order: the period,
|
|
113
|
+
* @behaviour Ours: an action sits on the title of the thing it acts on, never on a tab's, and a page's commands are the same on each of its sibling tabs, whatever its list shows or has chosen: only the viewer's permission removes one (nadicode decision). A command on chosen records is the list's own (`select.chosen`), and a record's is its row's (nadicode decision). One per page: a second `PageActions` on the page a person sees would hide the first's commands, so it throws in development and in tests, and in production the one that mounted last keeps the row; a page kept hidden for a quick return (an `Activity` with `mode="hidden"`) has given the row back (nadicode decision). It takes `period`, `secondary`, `primary` and `menu` and draws their order: the period, up to two outline secondaries, the filled primary, then the three dots last; one filled button per page, so a page whose commands only serve its main job, such as a Library catalogue's link to its hub and its Sync now, gives them as secondaries and no primary, and the page's one filled button is its first use's (nadicode decision). The page's three dots hold two commands or more, which the type requires; a single extra command is the secondary (owner, 2026-11-06). A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon; a kind that needs its own fields opens its dialog from its row (nadicode decision). A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon and says its pending word, and the type requires `pendingLabel` whenever `pending` is set; one that cannot run now stays, disabled, with `disabledReason` in its tooltip (nadicode decision). Deleting the page's own record is never here: it is the danger zone of the record's Settings, in a card. A reversible command on the record, such as Archive, may stand last in the page's three dots, after a divider, with its `confirm` or `undo` (nadicode decision). “Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why.” (https://vercel.com/geist/button) “Group destructive items at the bottom, separated by a divider, and keep the destructive copy as `Verb + Noun` (`Delete Project`, never bare `Delete`).” (https://vercel.com/geist/menu)
|
|
109
114
|
* @words Ours: the primary is the page's main job as verb and noun: "Invite member", "New Agent"; its choices are the kinds, as nouns: "Folder", "Documents", "Web page"; the pending word is its -ing form: "Inviting member"; the menu names the page's record at its top (nadicode decision).
|
|
110
115
|
* @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A running command is `aria-busy` and keeps focus. The three dots carry "More for {record}"; the menu returns focus to them when it closes.
|
|
111
116
|
*/
|