@nadicodeai/ui 12.1.224 → 12.1.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -1
- package/dist/components/action-menu.d.ts +4 -4
- package/dist/components/action-menu.d.ts.map +1 -1
- package/dist/components/action-menu.js +2 -2
- package/dist/components/agent-card.d.ts +1 -1
- package/dist/components/agent-card.js +1 -1
- package/dist/components/badge.d.ts +2 -1
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +2 -1
- package/dist/components/brand.d.ts +1 -1
- package/dist/components/brand.d.ts.map +1 -1
- package/dist/components/brand.js +21 -2
- package/dist/components/card.d.ts +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/catalog-card.d.ts +1 -2
- package/dist/components/catalog-card.d.ts.map +1 -1
- package/dist/components/catalog-card.js +1 -2
- package/dist/components/chart-card.d.ts +2 -2
- package/dist/components/chart-card.d.ts.map +1 -1
- package/dist/components/chart-card.js +1 -1
- package/dist/components/check-counts.d.ts +3 -5
- package/dist/components/check-counts.d.ts.map +1 -1
- package/dist/components/check-counts.js +5 -7
- package/dist/components/collection-page.d.ts +6 -7
- package/dist/components/collection-page.d.ts.map +1 -1
- package/dist/components/collection-page.js +3 -3
- package/dist/components/data-table.d.ts +13 -21
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +57 -192
- package/dist/components/drawer-steps.d.ts +1 -1
- package/dist/components/drawer-steps.js +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -4
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +7 -6
- package/dist/components/empty-state.d.ts +4 -1
- package/dist/components/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state.js +5 -4
- package/dist/components/figure-row.d.ts +58 -0
- package/dist/components/figure-row.d.ts.map +1 -0
- package/dist/components/figure-row.js +41 -0
- package/dist/components/form-dialog.d.ts +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-drawer.d.ts +2 -2
- package/dist/components/form-drawer.js +2 -2
- package/dist/components/gauge.d.ts +2 -0
- package/dist/components/gauge.d.ts.map +1 -1
- package/dist/components/gauge.js +2 -0
- package/dist/components/icon-tile.d.ts +27 -0
- package/dist/components/icon-tile.d.ts.map +1 -0
- package/dist/components/icon-tile.js +18 -0
- package/dist/components/identity-mark.d.ts +3 -2
- package/dist/components/identity-mark.d.ts.map +1 -1
- package/dist/components/identity-mark.js +3 -10
- package/dist/components/kpi-card.d.ts +23 -6
- package/dist/components/kpi-card.d.ts.map +1 -1
- package/dist/components/kpi-card.js +11 -7
- package/dist/components/library-shelf.d.ts +1 -1
- package/dist/components/library-shelf.js +1 -1
- package/dist/components/menu-choice-row.d.ts +1 -2
- package/dist/components/menu-choice-row.d.ts.map +1 -1
- package/dist/components/menu-choice-row.js +1 -2
- package/dist/components/notice-banner.d.ts +1 -1
- package/dist/components/notice-banner.js +1 -1
- package/dist/components/numbered-steps.d.ts +1 -1
- package/dist/components/numbered-steps.js +1 -1
- package/dist/components/object-page.d.ts +25 -9
- package/dist/components/object-page.d.ts.map +1 -1
- package/dist/components/object-page.js +13 -9
- package/dist/components/object-workspace.d.ts +2 -2
- package/dist/components/object-workspace.js +2 -2
- package/dist/components/overview-page.d.ts +6 -1
- package/dist/components/overview-page.d.ts.map +1 -1
- package/dist/components/page-actions.d.ts +16 -15
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +9 -7
- package/dist/components/page-frame.d.ts +1 -1
- package/dist/components/page-frame.js +1 -1
- package/dist/components/page-header.d.ts +12 -9
- package/dist/components/page-header.d.ts.map +1 -1
- package/dist/components/page-header.js +11 -8
- package/dist/components/product-shell.d.ts +10 -13
- package/dist/components/product-shell.d.ts.map +1 -1
- package/dist/components/product-shell.js +9 -12
- package/dist/components/progress-checklist.d.ts +4 -4
- package/dist/components/progress-checklist.d.ts.map +1 -1
- package/dist/components/progress-checklist.js +4 -14
- package/dist/components/progress.d.ts +3 -1
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +3 -1
- package/dist/components/reading-column.d.ts +2 -2
- package/dist/components/reading-column.js +2 -2
- package/dist/components/record-commands.d.ts +15 -7
- package/dist/components/record-commands.d.ts.map +1 -1
- package/dist/components/record-commands.js +26 -19
- package/dist/components/record-identity.d.ts +4 -2
- package/dist/components/record-identity.d.ts.map +1 -1
- package/dist/components/record-identity.js +3 -4
- package/dist/components/record-list.d.ts +25 -27
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +31 -79
- package/dist/components/record-sheet.d.ts +1 -1
- package/dist/components/record-sheet.js +1 -1
- package/dist/components/row-edit-form.d.ts +1 -1
- package/dist/components/row-edit-form.js +1 -1
- package/dist/components/settings-facts.d.ts +5 -6
- package/dist/components/settings-facts.d.ts.map +1 -1
- package/dist/components/settings-facts.js +3 -4
- package/dist/components/settings-page.d.ts +2 -2
- package/dist/components/settings-page.js +2 -2
- package/dist/components/settings-section.d.ts +10 -5
- package/dist/components/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section.js +8 -4
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar-sections.d.ts +4 -4
- package/dist/components/sidebar-sections.d.ts.map +1 -1
- package/dist/components/sidebar-sections.js +3 -3
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/status-badge.d.ts +15 -12
- package/dist/components/status-badge.d.ts.map +1 -1
- package/dist/components/status-badge.js +15 -12
- package/dist/components/step-cards.d.ts +1 -2
- package/dist/components/step-cards.d.ts.map +1 -1
- package/dist/components/step-cards.js +1 -2
- package/dist/components/switch.d.ts +4 -2
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +9 -3
- package/dist/components/table-card.d.ts +2 -3
- package/dist/components/table-card.d.ts.map +1 -1
- package/dist/components/table-card.js +2 -3
- package/dist/components/table.d.ts +6 -24
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/table.js +11 -23
- package/dist/components/tabs-nav.d.ts +2 -2
- package/dist/components/tabs-nav.js +2 -2
- package/dist/components/text-link.d.ts +5 -5
- package/dist/components/text-link.js +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/internal/badge-frame.d.ts +1 -1
- package/dist/internal/badge-frame.d.ts.map +1 -1
- package/dist/internal/badge-frame.js +1 -0
- package/dist/internal/catalog-list.d.ts.map +1 -1
- package/dist/internal/catalog-list.js +1 -1
- package/dist/internal/collection-rail.d.ts +2 -2
- package/dist/internal/collection-rail.d.ts.map +1 -1
- package/dist/internal/empty.d.ts +1 -1
- package/dist/internal/empty.d.ts.map +1 -1
- package/dist/internal/empty.js +1 -2
- package/dist/internal/fieldset-disabled.d.ts +6 -0
- package/dist/internal/fieldset-disabled.d.ts.map +1 -0
- package/dist/internal/fieldset-disabled.js +7 -0
- package/dist/internal/final-focus.d.ts +2 -2
- package/dist/internal/final-focus.js +2 -2
- package/dist/internal/icon-tile-frame.d.ts +16 -0
- package/dist/internal/icon-tile-frame.d.ts.map +1 -0
- package/dist/internal/icon-tile-frame.js +21 -0
- package/dist/internal/record-grid.d.ts +58 -0
- package/dist/internal/record-grid.d.ts.map +1 -0
- package/dist/internal/record-grid.js +79 -0
- package/dist/internal/settings-save.d.ts.map +1 -1
- package/dist/internal/settings-save.js +2 -1
- package/dist/showcase/specimens/actions.d.ts.map +1 -1
- package/dist/showcase/specimens/actions.js +1 -1
- package/dist/showcase/specimens/charts.d.ts.map +1 -1
- package/dist/showcase/specimens/charts.js +1 -1
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +3 -3
- package/dist/showcase/specimens/data.d.ts +1 -0
- package/dist/showcase/specimens/data.d.ts.map +1 -1
- package/dist/showcase/specimens/data.js +7 -4
- package/dist/showcase/specimens/index.d.ts +2 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/specimens/status.d.ts +1 -0
- package/dist/showcase/specimens/status.d.ts.map +1 -1
- package/dist/showcase/specimens/status.js +4 -2
- package/dist/showcase/usage.generated.d.ts +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +99 -77
- package/dist/standalone/index.js +1 -1
- package/package.json +2 -2
- package/dist/components/table-layouts.d.ts +0 -110
- package/dist/components/table-layouts.d.ts.map +0 -1
- package/dist/components/table-layouts.js +0 -125
- package/dist/internal/table-compact-line.d.ts +0 -57
- package/dist/internal/table-compact-line.d.ts.map +0 -1
- package/dist/internal/table-compact-line.js +0 -119
|
@@ -4,8 +4,8 @@ import { type MenuCommands, type RecordMenu } from "./action-menu.js";
|
|
|
4
4
|
export type { PageCommand, PageCommandAction, PendingWord } from "../internal/page-command-button.js";
|
|
5
5
|
/**
|
|
6
6
|
* A page's main command that comes in a few kinds of the same job, such as Add source's folder,
|
|
7
|
-
* documents or web page: the button opens a menu of them
|
|
8
|
-
*
|
|
7
|
+
* documents or web page: the button opens a menu of them. Only the page's primary and a first
|
|
8
|
+
* use's action take it.
|
|
9
9
|
*/
|
|
10
10
|
export type PageChoicesCommand = PageCommandFace & {
|
|
11
11
|
choices: MenuCommands;
|
|
@@ -25,9 +25,8 @@ export type PageActionsProps = {
|
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* The trailing edge of every card's header: a short muted text, then the card's reading period and
|
|
28
|
-
* commands in `PageActions`' order, with up to two secondaries
|
|
29
|
-
* "
|
|
30
|
-
* a button like the others, as Vercel's plan card draws "Invoices" and "Usage".
|
|
28
|
+
* commands in `PageActions`' order, with up to two secondaries. A way to another page, such as
|
|
29
|
+
* "Statements", is a secondary with its `link`, drawn as a button like the others.
|
|
31
30
|
*/
|
|
32
31
|
export type CardActions = Omit<PageActionsProps, "secondary"> & {
|
|
33
32
|
/** A period or a count before the commands: "26 Oct – 26 Nov", "2 of 5 Agents". */
|
|
@@ -40,7 +39,7 @@ export type CardActions = Omit<PageActionsProps, "secondary"> & {
|
|
|
40
39
|
* @family Actions
|
|
41
40
|
* @when The header of every card composition draws it from the card's `actions`: ObjectPage, ObjectSection, SettingsSection, SettingsFactsSection and TableCard. A page gives the card its `actions` and never renders this row.
|
|
42
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).
|
|
43
|
-
* @behaviour
|
|
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.
|
|
44
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").
|
|
45
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.
|
|
46
45
|
*/
|
|
@@ -52,8 +51,9 @@ export declare function PageCommandButton({ command, ...appearance }: CommandLoo
|
|
|
52
51
|
export declare function PageActionsRow({ period, primary, secondary, menu }: PageActionsProps): import("react").JSX.Element | null;
|
|
53
52
|
/**
|
|
54
53
|
* Holds the place on the title's row where the open page puts its actions. The
|
|
55
|
-
* product's chrome draws the row (`PageHeader
|
|
56
|
-
* commands (`PageActions`), so the two meet here rather than
|
|
54
|
+
* product's chrome draws the row (`PageHeader`, drawn or unseen) and the page
|
|
55
|
+
* below draws its commands (`PageActions`), so the two meet here rather than
|
|
56
|
+
* through props.
|
|
57
57
|
*
|
|
58
58
|
* The context's value never changes: a changed context value above a page whose
|
|
59
59
|
* server HTML is still streaming makes React render that page again in the
|
|
@@ -62,25 +62,26 @@ export declare function PageActionsRow({ period, primary, secondary, menu }: Pag
|
|
|
62
62
|
export declare function PageActionsHostProvider({ children, titled, }: {
|
|
63
63
|
children: ReactNode;
|
|
64
64
|
/**
|
|
65
|
-
* Whether
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* Whether a title is drawn above this page, with the page's actions on its row. `ProductShell`'s
|
|
66
|
+
* is never drawn, since its path names the page, and a `PageFrame` without a `title` draws none:
|
|
67
|
+
* under either, a list page's actions end its search row (`CollectionPage`).
|
|
68
68
|
*/
|
|
69
69
|
titled?: boolean;
|
|
70
70
|
}): import("react").JSX.Element;
|
|
71
|
-
/** Whether
|
|
71
|
+
/** Whether a title is drawn above the page, its actions on its row; false outside a host or where none is drawn. */
|
|
72
72
|
export declare function usePageTitled(): boolean;
|
|
73
73
|
/** The element on `PageHeader`'s title row that the page's `PageActions` render into. */
|
|
74
74
|
export declare function PageActionsSlot(): import("react").JSX.Element;
|
|
75
75
|
/**
|
|
76
|
-
* A page's actions, drawn on its title's row
|
|
76
|
+
* A page's actions, drawn on its title's row, or, where the title is unseen,
|
|
77
|
+
* in the one row the unseen title keeps at the page's top. The row has one owner: a page
|
|
77
78
|
* kept hidden for a quick return has given it back, and a second `PageActions`
|
|
78
79
|
* on the page a person sees throws in development and in tests. Outside a
|
|
79
80
|
* `PageActionsHostProvider`, they render where they stand.
|
|
80
81
|
*
|
|
81
82
|
* @family Actions
|
|
82
|
-
* @when The actions of a collection, an object or an overview page,
|
|
83
|
-
* @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
|
|
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
|
+
* @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).
|
|
84
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, the outline secondary, the filled primary, then the three dots last; one filled button per page (nadicode decision). The page's three dots hold two commands or more, which the type requires; a single extra command is the secondary (owner, 2026-11-06). A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon; a kind that needs its own fields opens its dialog from its row (nadicode decision). A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon and says its pending word, and the type requires `pendingLabel` whenever `pending` is set; one that cannot run now stays, disabled, with `disabledReason` in its tooltip (nadicode decision). Deleting the page's own record is never here: it is the danger zone of the record's Settings, in a card. A reversible command on the record, such as Archive, may stand last in the page's three dots, after a divider, with its `confirm` or `undo` (nadicode decision). “Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why.” (https://vercel.com/geist/button) “Group destructive items at the bottom, separated by a divider, and keep the destructive copy as `Verb + Noun` (`Delete Project`, never bare `Delete`).” (https://vercel.com/geist/menu)
|
|
85
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).
|
|
86
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.
|
|
@@ -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;IACpC,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACzC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
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,KAA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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,sCAUpF;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"}
|
|
@@ -16,7 +16,7 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "./dropdo
|
|
|
16
16
|
* @family Actions
|
|
17
17
|
* @when The header of every card composition draws it from the card's `actions`: ObjectPage, ObjectSection, SettingsSection, SettingsFactsSection and TableCard. A page gives the card its `actions` and never renders this row.
|
|
18
18
|
* @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
|
-
* @behaviour
|
|
19
|
+
* @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
20
|
* @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
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.
|
|
22
22
|
*/
|
|
@@ -72,8 +72,9 @@ const unhosted = createHost(false);
|
|
|
72
72
|
const PageActionsHostContext = createContext(null);
|
|
73
73
|
/**
|
|
74
74
|
* Holds the place on the title's row where the open page puts its actions. The
|
|
75
|
-
* product's chrome draws the row (`PageHeader
|
|
76
|
-
* commands (`PageActions`), so the two meet here rather than
|
|
75
|
+
* product's chrome draws the row (`PageHeader`, drawn or unseen) and the page
|
|
76
|
+
* below draws its commands (`PageActions`), so the two meet here rather than
|
|
77
|
+
* through props.
|
|
77
78
|
*
|
|
78
79
|
* The context's value never changes: a changed context value above a page whose
|
|
79
80
|
* server HTML is still streaming makes React render that page again in the
|
|
@@ -84,7 +85,7 @@ export function PageActionsHostProvider({ children, titled = true, }) {
|
|
|
84
85
|
useLayoutEffect(() => host.setState({ titled }), [host, titled]);
|
|
85
86
|
return _jsx(PageActionsHostContext, { value: host, children: children });
|
|
86
87
|
}
|
|
87
|
-
/** Whether
|
|
88
|
+
/** Whether a title is drawn above the page, its actions on its row; false outside a host or where none is drawn. */
|
|
88
89
|
export function usePageTitled() {
|
|
89
90
|
const host = useContext(PageActionsHostContext);
|
|
90
91
|
return useStore(host ?? unhosted, (state) => state.titled);
|
|
@@ -95,14 +96,15 @@ export function PageActionsSlot() {
|
|
|
95
96
|
return (_jsx("div", { "data-slot": "page-header-actions", className: "flex max-w-full min-w-0 items-center empty:hidden", ref: host?.getState().attach }));
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
|
-
* A page's actions, drawn on its title's row
|
|
99
|
+
* A page's actions, drawn on its title's row, or, where the title is unseen,
|
|
100
|
+
* in the one row the unseen title keeps at the page's top. The row has one owner: a page
|
|
99
101
|
* kept hidden for a quick return has given it back, and a second `PageActions`
|
|
100
102
|
* on the page a person sees throws in development and in tests. Outside a
|
|
101
103
|
* `PageActionsHostProvider`, they render where they stand.
|
|
102
104
|
*
|
|
103
105
|
* @family Actions
|
|
104
|
-
* @when The actions of a collection, an object or an overview page,
|
|
105
|
-
* @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
|
|
106
|
+
* @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
|
+
* @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).
|
|
106
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, the outline secondary, the filled primary, then the three dots last; one filled button per page (nadicode decision). The page's three dots hold two commands or more, which the type requires; a single extra command is the secondary (owner, 2026-11-06). A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon; a kind that needs its own fields opens its dialog from its row (nadicode decision). A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon and says its pending word, and the type requires `pendingLabel` whenever `pending` is set; one that cannot run now stays, disabled, with `disabledReason` in its tooltip (nadicode decision). Deleting the page's own record is never here: it is the danger zone of the record's Settings, in a card. A reversible command on the record, such as Archive, may stand last in the page's three dots, after a divider, with its `confirm` or `undo` (nadicode decision). “Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why.” (https://vercel.com/geist/button) “Group destructive items at the bottom, separated by a divider, and keep the destructive copy as `Verb + Noun` (`Delete Project`, never bare `Delete`).” (https://vercel.com/geist/menu)
|
|
107
109
|
* @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).
|
|
108
110
|
* @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.
|
|
@@ -29,7 +29,7 @@ export type PageFrameProps = PageFrameTitle & {
|
|
|
29
29
|
* @family Compositions
|
|
30
30
|
* @when Every page of Nadia's window, whose `ProductShell` stands in Hermes's window with `host` while Hermes renders each page in its own page area: Settings, the company's places, an Agent's Edit sections and her landing, Scheduled tasks, a past conversation and New Agent.
|
|
31
31
|
* @instead A product whose `ProductShell` draws the page area itself (its `main`) gives the shell its page composition and never draws this. A page whose composition titles it (the `title` of `CollectionPage` or `OverviewPage`, `ObjectPage`'s `headingProps`) gives the frame a `label` and no `title`, so the page has one h1. A board whose lanes the host draws is `BoardHeader` above them and `BoardEmpty` in their place. A page never draws `PageHeader` or `ReadingColumn` itself, which `nadicodeai/page-composition` refuses.
|
|
32
|
-
* @behaviour The product passes its own `<main />`, as `ProductShell` takes it, and the frame fills it: the page's scroller at the full height of the host's page area, 24 px in from every edge, with the scrollbar's gutter kept on both edges, so the column stands at the same place whether the page scrolls or not. Inside stands one column: `full` (1280 px) for collections, objects, boards and an Agent's Edit sections, `settings` (960 px) for a page of settings, `reading` (768 px) for a conversation or a form a person fills in. Given a `title`, the frame draws the title row at the top of that column, `PageHeader` with the `description` under it and the page's `PageActions` on its row
|
|
32
|
+
* @behaviour The product passes its own `<main />`, as `ProductShell` takes it, and the frame fills it: the page's scroller at the full height of the host's page area, 24 px in from every edge, with the scrollbar's gutter kept on both edges, so the column stands at the same place whether the page scrolls or not. Inside stands one column: `full` (1280 px) for collections, objects, boards and an Agent's Edit sections, `settings` (960 px) for a page of settings, `reading` (768 px) for a conversation or a form a person fills in. Given a `title`, the frame draws the title row at the top of that column, `PageHeader` with the `description` under it and the page's `PageActions` on its row; without one it draws no row and tells the page so (`PageActionsHostProvider`'s `titled`), and the composition that titles the page holds its actions, as `CollectionPage` ends its search row with them. The page keeps its place in the tree whether the frame draws a title or not, so a page that opens one of its records and comes back keeps what the person chose there.
|
|
33
33
|
* @words The product's: the title is the page's name as the product's column writes it ("Skills", "Mail"); the description is one sentence saying what the page's concept does; the label names the record the page belongs to ("Sofia") or the page whose composition draws the title ("Scheduled tasks").
|
|
34
34
|
* @access The product's element is the page's `main` landmark, named by `label`, or by the title. The title is the page's h1, and `headingProps` gives it a fuller name where the title alone does not say whose page it is. DOM order is visual order.
|
|
35
35
|
*/
|
|
@@ -11,7 +11,7 @@ import { ReadingColumn } from "./reading-column.js";
|
|
|
11
11
|
* @family Compositions
|
|
12
12
|
* @when Every page of Nadia's window, whose `ProductShell` stands in Hermes's window with `host` while Hermes renders each page in its own page area: Settings, the company's places, an Agent's Edit sections and her landing, Scheduled tasks, a past conversation and New Agent.
|
|
13
13
|
* @instead A product whose `ProductShell` draws the page area itself (its `main`) gives the shell its page composition and never draws this. A page whose composition titles it (the `title` of `CollectionPage` or `OverviewPage`, `ObjectPage`'s `headingProps`) gives the frame a `label` and no `title`, so the page has one h1. A board whose lanes the host draws is `BoardHeader` above them and `BoardEmpty` in their place. A page never draws `PageHeader` or `ReadingColumn` itself, which `nadicodeai/page-composition` refuses.
|
|
14
|
-
* @behaviour The product passes its own `<main />`, as `ProductShell` takes it, and the frame fills it: the page's scroller at the full height of the host's page area, 24 px in from every edge, with the scrollbar's gutter kept on both edges, so the column stands at the same place whether the page scrolls or not. Inside stands one column: `full` (1280 px) for collections, objects, boards and an Agent's Edit sections, `settings` (960 px) for a page of settings, `reading` (768 px) for a conversation or a form a person fills in. Given a `title`, the frame draws the title row at the top of that column, `PageHeader` with the `description` under it and the page's `PageActions` on its row
|
|
14
|
+
* @behaviour The product passes its own `<main />`, as `ProductShell` takes it, and the frame fills it: the page's scroller at the full height of the host's page area, 24 px in from every edge, with the scrollbar's gutter kept on both edges, so the column stands at the same place whether the page scrolls or not. Inside stands one column: `full` (1280 px) for collections, objects, boards and an Agent's Edit sections, `settings` (960 px) for a page of settings, `reading` (768 px) for a conversation or a form a person fills in. Given a `title`, the frame draws the title row at the top of that column, `PageHeader` with the `description` under it and the page's `PageActions` on its row; without one it draws no row and tells the page so (`PageActionsHostProvider`'s `titled`), and the composition that titles the page holds its actions, as `CollectionPage` ends its search row with them. The page keeps its place in the tree whether the frame draws a title or not, so a page that opens one of its records and comes back keeps what the person chose there.
|
|
15
15
|
* @words The product's: the title is the page's name as the product's column writes it ("Skills", "Mail"); the description is one sentence saying what the page's concept does; the label names the record the page belongs to ("Sofia") or the page whose composition draws the title ("Scheduled tasks").
|
|
16
16
|
* @access The product's element is the page's `main` landmark, named by `label`, or by the title. The title is the page's h1, and `headingProps` gives it a fuller name where the title alone does not say whose page it is. DOM order is visual order.
|
|
17
17
|
*/
|
|
@@ -4,27 +4,30 @@ import * as React from "react";
|
|
|
4
4
|
*
|
|
5
5
|
* @family Compositions
|
|
6
6
|
* @when The top of every page, collection, working page and settings page alike: the title at heading
|
|
7
|
-
* size, `PageActions` at the trailing edge of its row.
|
|
7
|
+
* size, `PageActions` at the trailing edge of its row. A product whose top bar's path names the page,
|
|
8
|
+
* as the Portal's does, draws it `unseen` through `ProductShell`'s `title` (owner, 2026-11-08).
|
|
8
9
|
* @instead An object's own header is `ObjectPage`'s: a page that opens with the object's own header
|
|
9
|
-
* or card, such as an Agent's Profile, has that as its title and no `PageHeader` above it. A
|
|
10
|
-
*
|
|
10
|
+
* or card, such as an Agent's Profile, has that as its title and no `PageHeader` above it. A list
|
|
11
|
+
* page whose title is unseen ends its search row with its actions (`CollectionPage`). The path above
|
|
11
12
|
* it is the top bar's `Breadcrumb`; filters, search and sort sit in the toolbar below.
|
|
12
13
|
* @behaviour The header stands in the page's own column, so the title and the page's cards share one
|
|
13
14
|
* left edge. The title is always there and the actions arrive through the `PageActions` slot, so
|
|
14
15
|
* the page draws its commands once. The title wraps between words and is never cut. On a header
|
|
15
16
|
* narrower than 576 px, a phone's or a narrow window's, the actions leave the title's row and stand
|
|
16
17
|
* as one row under the title and the description, on their left edge. Under the title sits the `description`: one muted line
|
|
17
|
-
* saying what the page's concept is, on every page that is a destination or a section
|
|
18
|
-
*
|
|
18
|
+
* saying what the page's concept is, on every page that is a destination or a section. It ends in a
|
|
19
|
+
* link to learn more when there is one, and never counts or introduces anything
|
|
19
20
|
* else. It is the page's only explanation: no other line introduces, explains or counts the page, and
|
|
20
21
|
* no line of text stands loose under a card or a list. What a card's reader needs is the card's own
|
|
21
22
|
* description or footer line, and a lasting condition is a notice above what it concerns. The
|
|
22
|
-
* description is neutral; no hue sits in the header.
|
|
23
|
+
* description is neutral; no hue sits in the header. `unseen`, the title is drawn nowhere and the row
|
|
24
|
+
* keeps only the page's actions, at its trailing edge on every width, and takes no room while the page
|
|
25
|
+
* has none (owner, 2026-11-08).
|
|
23
26
|
* @words The title is the page's name as the sidebar writes it: *Customers*, *Agents*. Inside an
|
|
24
27
|
* object worked from a section sidebar, the title is the section's name: *Apps*. The description is
|
|
25
28
|
* one sentence in the product's words, saying what the page's concept does and where it applies,
|
|
26
29
|
* without a full stop when it ends in a link.
|
|
27
|
-
* @access The title is the page's `h1`, read before its description and then the actions; DOM order is the narrow header's visual order, and a wider one sets the actions at the title row's end.
|
|
30
|
+
* @access The title is the page's `h1`, read before its description and then the actions; DOM order is the narrow header's visual order, and a wider one sets the actions at the title row's end. `unseen`, the `h1` stays, read by assistive technology and taking focus after a navigation, before the actions.
|
|
28
31
|
*/
|
|
29
32
|
declare function PageHeader({ title, description, headingProps, className, unseen, ...props }: Omit<React.ComponentProps<"header">, "title" | "children"> & {
|
|
30
33
|
title: React.ReactNode;
|
|
@@ -32,8 +35,8 @@ declare function PageHeader({ title, description, headingProps, className, unsee
|
|
|
32
35
|
description?: React.ReactNode;
|
|
33
36
|
headingProps?: Omit<React.ComponentProps<"h1">, "children">;
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
38
|
+
* The top bar's path names the page, so the title is not drawn: the heading stays for assistive
|
|
39
|
+
* technology and focus, and the row holds only the page's actions.
|
|
37
40
|
*/
|
|
38
41
|
unseen?: boolean;
|
|
39
42
|
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/components/page-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/components/page-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,MAAc,EACd,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC9D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,uEAAuE;IACvE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;IAC5D;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,qBA8CA;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -6,31 +6,34 @@ import { PageActionsSlot } from "./page-actions.js";
|
|
|
6
6
|
*
|
|
7
7
|
* @family Compositions
|
|
8
8
|
* @when The top of every page, collection, working page and settings page alike: the title at heading
|
|
9
|
-
* size, `PageActions` at the trailing edge of its row.
|
|
9
|
+
* size, `PageActions` at the trailing edge of its row. A product whose top bar's path names the page,
|
|
10
|
+
* as the Portal's does, draws it `unseen` through `ProductShell`'s `title` (owner, 2026-11-08).
|
|
10
11
|
* @instead An object's own header is `ObjectPage`'s: a page that opens with the object's own header
|
|
11
|
-
* or card, such as an Agent's Profile, has that as its title and no `PageHeader` above it. A
|
|
12
|
-
*
|
|
12
|
+
* or card, such as an Agent's Profile, has that as its title and no `PageHeader` above it. A list
|
|
13
|
+
* page whose title is unseen ends its search row with its actions (`CollectionPage`). The path above
|
|
13
14
|
* it is the top bar's `Breadcrumb`; filters, search and sort sit in the toolbar below.
|
|
14
15
|
* @behaviour The header stands in the page's own column, so the title and the page's cards share one
|
|
15
16
|
* left edge. The title is always there and the actions arrive through the `PageActions` slot, so
|
|
16
17
|
* the page draws its commands once. The title wraps between words and is never cut. On a header
|
|
17
18
|
* narrower than 576 px, a phone's or a narrow window's, the actions leave the title's row and stand
|
|
18
19
|
* as one row under the title and the description, on their left edge. Under the title sits the `description`: one muted line
|
|
19
|
-
* saying what the page's concept is, on every page that is a destination or a section
|
|
20
|
-
*
|
|
20
|
+
* saying what the page's concept is, on every page that is a destination or a section. It ends in a
|
|
21
|
+
* link to learn more when there is one, and never counts or introduces anything
|
|
21
22
|
* else. It is the page's only explanation: no other line introduces, explains or counts the page, and
|
|
22
23
|
* no line of text stands loose under a card or a list. What a card's reader needs is the card's own
|
|
23
24
|
* description or footer line, and a lasting condition is a notice above what it concerns. The
|
|
24
|
-
* description is neutral; no hue sits in the header.
|
|
25
|
+
* description is neutral; no hue sits in the header. `unseen`, the title is drawn nowhere and the row
|
|
26
|
+
* keeps only the page's actions, at its trailing edge on every width, and takes no room while the page
|
|
27
|
+
* has none (owner, 2026-11-08).
|
|
25
28
|
* @words The title is the page's name as the sidebar writes it: *Customers*, *Agents*. Inside an
|
|
26
29
|
* object worked from a section sidebar, the title is the section's name: *Apps*. The description is
|
|
27
30
|
* one sentence in the product's words, saying what the page's concept does and where it applies,
|
|
28
31
|
* without a full stop when it ends in a link.
|
|
29
|
-
* @access The title is the page's `h1`, read before its description and then the actions; DOM order is the narrow header's visual order, and a wider one sets the actions at the title row's end.
|
|
32
|
+
* @access The title is the page's `h1`, read before its description and then the actions; DOM order is the narrow header's visual order, and a wider one sets the actions at the title row's end. `unseen`, the `h1` stays, read by assistive technology and taking focus after a navigation, before the actions.
|
|
30
33
|
*/
|
|
31
34
|
function PageHeader({ title, description, headingProps, className, unseen = false, ...props }) {
|
|
32
35
|
if (unseen) {
|
|
33
|
-
return (_jsx("h1", { ...headingProps, className: cn("sr-only", headingProps?.className), children: title }));
|
|
36
|
+
return (_jsxs("header", { "data-slot": "page-header", className: cn("flex min-w-0 justify-end has-[>[data-slot=page-header-actions]:empty]:contents", className), ...props, children: [_jsx("h1", { ...headingProps, className: cn("sr-only", headingProps?.className), children: title }), _jsx(PageActionsSlot, {})] }));
|
|
34
37
|
}
|
|
35
38
|
return (_jsx("header", { "data-slot": "page-header", className: cn("@container/page-header min-w-0", className), ...props, children: _jsxs("div", { className: "grid min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[minmax(2.25rem,auto)] items-center @xl/page-header:grid-cols-[minmax(0,1fr)_auto] *:data-[slot=page-header-actions]:mt-3 @xl/page-header:*:data-[slot=page-header-actions]:col-start-2 @xl/page-header:*:data-[slot=page-header-actions]:row-start-1 @xl/page-header:*:data-[slot=page-header-actions]:ms-6 @xl/page-header:*:data-[slot=page-header-actions]:mt-0", children: [_jsx("h1", { ...headingProps, className: cn("col-start-1 row-start-1 min-w-0 text-heading-md text-foreground wrap-break-word outline-none", headingProps?.className), children: title }), description ? (_jsx("div", { "data-slot": "page-header-description", className: "mt-1 min-w-0 text-body-sm text-muted-foreground @xl/page-header:col-span-2 @xl/page-header:row-start-2", children: description })) : null, _jsx(PageActionsSlot, {})] }) }));
|
|
36
39
|
}
|
|
@@ -72,7 +72,7 @@ export type ProductShellStatus = {
|
|
|
72
72
|
tone: StatusBadgeTone;
|
|
73
73
|
label: string;
|
|
74
74
|
};
|
|
75
|
-
/** The scope a path's first step switches
|
|
75
|
+
/** The scope a path's first step switches: the Portal's Customers or Partners, and the company open. */
|
|
76
76
|
export type ProductShellScope = Omit<ScopeSwitcherProps, "variant"> & {
|
|
77
77
|
/** The way back to every record of the scope while one is open: "Back to Customers". */
|
|
78
78
|
close?: {
|
|
@@ -126,16 +126,12 @@ export type ProductShellHomeData = {
|
|
|
126
126
|
mark?: string;
|
|
127
127
|
link?: ReactElement;
|
|
128
128
|
};
|
|
129
|
-
/** The page's title
|
|
129
|
+
/** The page's title, which the shell keeps above the page and never draws, for a product that names its pages from their address: the path names the page. */
|
|
130
130
|
export type ProductShellPageTitle = {
|
|
131
|
-
/** The page's name, as the column and the path write it. */
|
|
131
|
+
/** The page's name, as the column and the path write it: the page's `h1`, read by assistive technology. */
|
|
132
132
|
text: string;
|
|
133
|
-
/**
|
|
134
|
-
description?: string;
|
|
135
|
-
/** The column the page stands in, title and content alike: `settings` (960 px) for a page of settings or one object's settings-like page, such as a company's Billing; `full` elsewhere. */
|
|
133
|
+
/** The column the page stands in, its actions and content alike: `settings` (960 px) for a page of settings or one object's settings-like page, such as a company's Billing; `full` elsewhere. */
|
|
136
134
|
column?: "full" | "settings";
|
|
137
|
-
/** A plain list's page draws no title row: the heading stays for assistive technology and focus. */
|
|
138
|
-
unseen?: boolean;
|
|
139
135
|
};
|
|
140
136
|
/** One section in the band of an area's or an object's sections under the top bar. */
|
|
141
137
|
export type ProductShellTab = {
|
|
@@ -238,7 +234,7 @@ export type ProductShellProps = {
|
|
|
238
234
|
bell?: ReactElement;
|
|
239
235
|
/** The path to the page, drawn in the top bar, or the region that draws it. */
|
|
240
236
|
path: readonly ProductShellCrumb[] | ProductShellRegion;
|
|
241
|
-
/** The page's title row above the page, or the region that draws
|
|
237
|
+
/** The page's unseen title and the row of its actions above the page, or the region that draws them; a page whose composition draws its own title passes none. */
|
|
242
238
|
title?: ProductShellPageTitle | ProductShellRegion;
|
|
243
239
|
/** The band of an area's or an object's sections under the top bar, or the region that draws it. */
|
|
244
240
|
tabs?: ProductShellTabsData | ProductShellRegion;
|
|
@@ -283,9 +279,9 @@ export type ProductShellProps = {
|
|
|
283
279
|
* @family Navigation
|
|
284
280
|
* @when The frame of every product page in the Portal, Nadia and Alveare Server: the product's home, Find, its places or an area's sections, the update offer or the way out, and the account, beside the page with its path. Alveare keeps Buzz's sidebar and mounts this shell's foot in it as `ColumnFoot`, and its counts as `PlaceCount` (nadicode decision, 6 November 2026). Nadia's window is this shell with `host`, inside Hermes's `window.shell` area: each Agent is a place with her orb as its `mark` and what she is doing as its `status`, with Find as a lens and New Agent as `create` in the column's top row, and her company is a `foot` place that opens its area. A product shows its `home`, its mark and name, only where nothing else names it: on the web, as the Portal in a browser among many tabs, where the mark is also the way home; a desktop app's window, Dock and menu bar already name it, so its column starts with its Find and then its places (owner ruling, 2026-11-07). Find's `form` follows the column: a product whose column is a list of conversations or Agents, as Nadia's, takes the lens (`button`); a product of many places, as the Portal, takes the field (owner ruling, 2026-11-07).
|
|
285
281
|
* @instead A product never draws `Sidebar`, `SidebarFrame`, `SidebarProvider`, `SidebarInset`, `AccountMenu`, `UpdateCard`, `PageHeader` or `ReadingColumn` itself, which `nadicodeai/page-composition` refuses: it passes its places, its account, its band, its path and its title (nadicode decision). A page's own views are `Tabs`; an object's sections swap the column (`sections`) or stand in the band under the top bar (`tabs`), never a second column (nadicode decision). A part that waits for the page's language or for who is signed in is a region (`{ region }`) the product streams beside the page, drawn with the shell's component for it, so the frame and the page never wait for it; while it resolves, that component with `loading` holds its place. A product that reads everything before it draws shows `ProductShellSkeleton` meanwhile (owner ruling, 7 November 2026).
|
|
286
|
-
* @behaviour One column, its regions in this order: the home with the collapse control (no home where the window already names the product: a desktop app's column starts with its Find, and a host's `mover` fills the row's free room, where the window's own buttons sit), and Find's lens and the plus of `create` beside it when Find is a `button`, Find's field when it is one, the places in their groups, then the column's foot, pinned at its bottom with no rule above it and in glass on the column's own colour so the places scroll under it: one band (the update offer or the way out), the `foot` places and the account with the bell beside it (nadicode decision; owner ruling, 7 November 2026); the foot's places stay whether the column holds the places or an area's sections. The column is 256 px wide, dragged on its edge between 224 and 384 px, collapsed by its control, by the handle's Enter or by dragging it under the narrowest width to 48 px of icons, or with `width.collapsedTo` `marks` to 64 px of marks at 40, the width a column of Agents or people collapses to on every page of the product, and a sheet under 768 px; the width and the collapse go to the product through `width.onChange`, and the shell opens at the ones it is given, or, with `width.kept`, at the ones the product keeps in the browser, which its pre-paint script already gave the column the server drew, so the first frame stands at the kept width with no jump (owner ruling, 6 November 2026; the first frame at the kept width, owner ruling, 7 November 2026); below `width.collapseBelow` the column shows its marks alone with no control or handle to open it, and opens again as the window widens, keeping the person's choice. Collapsed, the account shows its picture alone and the update card one icon. A place's badge counts what waits there in the attention colour, and the phone's menu button carries their sum. A place with its own `mark` leads its row with it in place of an icon: an Agent's orb at 64 px beside her name and `status`, as `AgentListRow` draws her, any other mark at 32; collapsed, the column shows each mark alone, at 40 in a column of marks and 32 in one of icons, with the name and the status in its tooltip. A place's `commands` open on a right-click of its row, as a record's in a list, and its one `action` stands beside its row as a small outline button while the column shows names, as a failed set-up's Try again. A group with a `label` is a navigation named by it, headed only when the column holds more than one group; the lens and the plus stand as 36 px ghost icon buttons with 18 px icons in the column's top row, the lens's tooltip and `aria-keyshortcuts` naming its key, and collapsed as icon rows above the places, while an area's sections, collapsed, start with their way out; while a group's places are read it holds three placeholder rows, a failed read says so with its Try again (collapsed, one button that tries again, the message in its tooltip), and a read with no place says its `empty` line. Choosing a place closes the sheet, and so does any new page. Every confirmation a command in the frame opens is the shell's: it closes the sheet first, so one overlay never opens over another (nadicode decision); Find closes it too as it opens the product's search. The top bar stands over the page above a 1 px rule and holds navigation only, never the page's commands: the menu button at phone width, the path, and the assistant at its end (nadicode decision). The path stands at the bar's true centre on one line while its names fit whole there; when centring would cut a name, it moves toward the bar's start only as far as needed to show its names whole, and cuts them with an ellipsis only when even that is not enough; what stands at the bar's end never overlaps it, the path giving up its room first (owner ruling, 2026-11-07 (centred), with names kept whole). With the window's own buttons at its start (`startInset`), the collapsed column's top row is theirs and its control to open stands under them. The path is the breadcrumb, never a back button in its place (nadicode decision); a step may carry its own mark beside its name, and the last step may be a switcher among the page's siblings, as an Agent's chats; under 1024 px it keeps only the page and the step before it, and the open record's `status` stands beside its name; a `scope` step stands at the path's start with the way back to the whole scope, the page's name centred (owner ruling, 7 November 2026). The pages sit on the workspace ground under a 1 px rule, at most 1280 px wide with 24 px around them; the strip, when there is one, stands between the top bar and the page; the band of `tabs` stands under them and stays while the page scrolls under the top bar (owner ruling, 7 November 2026). The `title`
|
|
282
|
+
* @behaviour One column, its regions in this order: the home with the collapse control (no home where the window already names the product: a desktop app's column starts with its Find, and a host's `mover` fills the row's free room, where the window's own buttons sit), and Find's lens and the plus of `create` beside it when Find is a `button`, Find's field when it is one, the places in their groups, then the column's foot, pinned at its bottom with no rule above it and in glass on the column's own colour so the places scroll under it: one band (the update offer or the way out), the `foot` places and the account with the bell beside it (nadicode decision; owner ruling, 7 November 2026); the foot's places stay whether the column holds the places or an area's sections. The column is 256 px wide, dragged on its edge between 224 and 384 px, collapsed by its control, by the handle's Enter or by dragging it under the narrowest width to 48 px of icons, or with `width.collapsedTo` `marks` to 64 px of marks at 40, the width a column of Agents or people collapses to on every page of the product, and a sheet under 768 px; the width and the collapse go to the product through `width.onChange`, and the shell opens at the ones it is given, or, with `width.kept`, at the ones the product keeps in the browser, which its pre-paint script already gave the column the server drew, so the first frame stands at the kept width with no jump (owner ruling, 6 November 2026; the first frame at the kept width, owner ruling, 7 November 2026); below `width.collapseBelow` the column shows its marks alone with no control or handle to open it, and opens again as the window widens, keeping the person's choice. Collapsed, the account shows its picture alone and the update card one icon. A place's badge counts what waits there in the attention colour, and the phone's menu button carries their sum. A place with its own `mark` leads its row with it in place of an icon: an Agent's orb at 64 px beside her name and `status`, as `AgentListRow` draws her, any other mark at 32; collapsed, the column shows each mark alone, at 40 in a column of marks and 32 in one of icons, with the name and the status in its tooltip. A place's `commands` open on a right-click of its row, as a record's in a list, and its one `action` stands beside its row as a small outline button while the column shows names, as a failed set-up's Try again. A group with a `label` is a navigation named by it, headed only when the column holds more than one group; the lens and the plus stand as 36 px ghost icon buttons with 18 px icons in the column's top row, the lens's tooltip and `aria-keyshortcuts` naming its key, and collapsed as icon rows above the places, while an area's sections, collapsed, start with their way out; while a group's places are read it holds three placeholder rows, a failed read says so with its Try again (collapsed, one button that tries again, the message in its tooltip), and a read with no place says its `empty` line. Choosing a place closes the sheet, and so does any new page. Every confirmation a command in the frame opens is the shell's: it closes the sheet first, so one overlay never opens over another (nadicode decision); Find closes it too as it opens the product's search. The top bar stands over the page above a 1 px rule and holds navigation only, never the page's commands: the menu button at phone width, the path, and the assistant at its end (nadicode decision). The path stands at the bar's true centre on one line while its names fit whole there; when centring would cut a name, it moves toward the bar's start only as far as needed to show its names whole, and cuts them with an ellipsis only when even that is not enough; what stands at the bar's end never overlaps it, the path giving up its room first (owner ruling, 2026-11-07 (centred), with names kept whole). With the window's own buttons at its start (`startInset`), the collapsed column's top row is theirs and its control to open stands under them. The path is the breadcrumb, never a back button in its place (nadicode decision); a step may carry its own mark beside its name, and the last step may be a switcher among the page's siblings, as an Agent's chats; under 1024 px it keeps only the page and the step before it, and the open record's `status` stands beside its name; a `scope` step stands at the path's start with the way back to the whole scope, the page's name centred (owner ruling, 7 November 2026). The pages sit on the workspace ground under a 1 px rule, at most 1280 px wide with 24 px around them; the strip, when there is one, stands between the top bar and the page; the band of `tabs` stands under them and stays while the page scrolls under the top bar (owner ruling, 7 November 2026). The `title` is never drawn, since the path names the page: it is the page's hidden `h1`, and it keeps the first row of the page's column for the page's actions (`PageActions`), at the row's trailing edge, a row that takes no room while the page has none (owner ruling, 8 November 2026). The shell tells its pages that it draws no title (`PageActionsHostProvider`'s `titled`), so a list page ends its search row with its actions instead (`CollectionPage`). A title in the `settings` column narrows the whole page to that column, 960 px, so the actions and everything under them share one edge from the first paint (owner ruling, 7 November 2026). A region that waits for the viewer before it knows whether it draws (`ProductShellTabs pending`) keeps the page unseen until it does, so the page never moves when it arrives. A new page opens at its top. Choosing a section in the column, or anything in the sheet, moves focus to the new page's heading once it arrives; a page opened any other way keeps focus where it was (owner ruling, 7 November 2026). With `labels.skip`, the first thing a keyboard reaches is a link to the page, shown only while focused. With `host`, the shell fills the region the host gives it rather than the viewport, the host's page area fills the room under the top bar edge to edge with its own landmark and scrolling, the host's `controls` stand at the top bar's end, and its `compactControls` in their place while they would cut a name of the path under 48 px, about three letters and the ellipsis, until the bar has grown the room those names lacked, its `mover` fills the bar's free room, `endInset` keeps the bar's end clear of the window's own buttons and `startInset` its start while the column is a sheet, the bar keeps the window's edge spacing, 12 px at either end, at every width, and with `underBar` the host's page runs under the bar, which is glass over it with only its bottom rim, as DESIGN.md's glass over Nadia's conversation.
|
|
287
283
|
* @words Every word is the product's: the places' nouns, the path's names exactly as the places and the records write them, the title as the column writes it, and `labels` from its catalogue. A product whose words wait for the page's language draws `labels` in a region with `ProductShellWords`: the frame's controls are named by those hidden words, so they stand in the first HTML before any language is known. A status is a short state ("Working", "Needs you"); `create` names what it adds ("New Agent").
|
|
288
|
-
* @access Each group of places is a navigation named by its heading, or by `labels.navigation` when it has none, with the places as buttons or links, the current one `aria-current="page"`, busy while its places are read; a place's row reads its name, then its status; the handle is a separator named by `labels.resize`; the page is the `main` landmark the product passes, named by `labels.main`, which the skip link focuses, or the one the host draws; the path is a navigation named by `labels.path`; the band of tabs is a navigation named by what its sections are of. The title is the page's `h1
|
|
284
|
+
* @access Each group of places is a navigation named by its heading, or by `labels.navigation` when it has none, with the places as buttons or links, the current one `aria-current="page"`, busy while its places are read; a place's row reads its name, then its status; the handle is a separator named by `labels.resize`; the page is the `main` landmark the product passes, named by `labels.main`, which the skip link focuses, or the one the host draws; the path is a navigation named by `labels.path`; the band of tabs is a navigation named by what its sections are of. The title is the page's `h1`, unseen and read before the page's actions. The phone's menu button names how many things wait. The skeleton, and a region's `loading` form, is busy and draws no word.
|
|
289
285
|
*/
|
|
290
286
|
export declare function ProductShell(props: ProductShellProps): import("react").JSX.Element;
|
|
291
287
|
/**
|
|
@@ -368,9 +364,10 @@ export type ProductShellTitleProps = (ProductShellPageTitle & {
|
|
|
368
364
|
text?: never;
|
|
369
365
|
};
|
|
370
366
|
/**
|
|
371
|
-
* The page's title
|
|
367
|
+
* The page's unseen title, drawn from its title: `ProductShell` draws it from its `title`, and a
|
|
372
368
|
* product whose router resolves the title beside the page renders it in that region, or with
|
|
373
|
-
* `loading` while the region resolves. It
|
|
369
|
+
* `loading` while the region resolves. It is the page's hidden `h1` and the row that carries the
|
|
370
|
+
* page's `PageActions`.
|
|
374
371
|
*/
|
|
375
372
|
export declare function ProductShellTitle(props: ProductShellTitleProps): import("react").JSX.Element;
|
|
376
373
|
export type ProductShellTabsProps = (ProductShellTabsData & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-shell.d.ts","sourceRoot":"","sources":["../../src/components/product-shell.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,YAAY,EACjB,KAAK,SAAS,EAWf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAY,MAAM,0BAA0B,CAAC;AAYjG,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAO,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGlF,OAAO,KA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CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAc5D;AAqGD,MAAM,MAAM,sBAAsB,GAC9B,CAAC,qBAAqB,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GAC7C;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE9E;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAkB9D;AAED,MAAM,MAAM,qBAAqB,GAC7B,CAAC,oBAAoB,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GAC7D;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACjD;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAStD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAwB5D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,GACN,EAAE;IACD,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC;CACvD,+BA4CA"}
|
|
@@ -123,9 +123,9 @@ const subscribeToNothing = () => () => { };
|
|
|
123
123
|
* @family Navigation
|
|
124
124
|
* @when The frame of every product page in the Portal, Nadia and Alveare Server: the product's home, Find, its places or an area's sections, the update offer or the way out, and the account, beside the page with its path. Alveare keeps Buzz's sidebar and mounts this shell's foot in it as `ColumnFoot`, and its counts as `PlaceCount` (nadicode decision, 6 November 2026). Nadia's window is this shell with `host`, inside Hermes's `window.shell` area: each Agent is a place with her orb as its `mark` and what she is doing as its `status`, with Find as a lens and New Agent as `create` in the column's top row, and her company is a `foot` place that opens its area. A product shows its `home`, its mark and name, only where nothing else names it: on the web, as the Portal in a browser among many tabs, where the mark is also the way home; a desktop app's window, Dock and menu bar already name it, so its column starts with its Find and then its places (owner ruling, 2026-11-07). Find's `form` follows the column: a product whose column is a list of conversations or Agents, as Nadia's, takes the lens (`button`); a product of many places, as the Portal, takes the field (owner ruling, 2026-11-07).
|
|
125
125
|
* @instead A product never draws `Sidebar`, `SidebarFrame`, `SidebarProvider`, `SidebarInset`, `AccountMenu`, `UpdateCard`, `PageHeader` or `ReadingColumn` itself, which `nadicodeai/page-composition` refuses: it passes its places, its account, its band, its path and its title (nadicode decision). A page's own views are `Tabs`; an object's sections swap the column (`sections`) or stand in the band under the top bar (`tabs`), never a second column (nadicode decision). A part that waits for the page's language or for who is signed in is a region (`{ region }`) the product streams beside the page, drawn with the shell's component for it, so the frame and the page never wait for it; while it resolves, that component with `loading` holds its place. A product that reads everything before it draws shows `ProductShellSkeleton` meanwhile (owner ruling, 7 November 2026).
|
|
126
|
-
* @behaviour One column, its regions in this order: the home with the collapse control (no home where the window already names the product: a desktop app's column starts with its Find, and a host's `mover` fills the row's free room, where the window's own buttons sit), and Find's lens and the plus of `create` beside it when Find is a `button`, Find's field when it is one, the places in their groups, then the column's foot, pinned at its bottom with no rule above it and in glass on the column's own colour so the places scroll under it: one band (the update offer or the way out), the `foot` places and the account with the bell beside it (nadicode decision; owner ruling, 7 November 2026); the foot's places stay whether the column holds the places or an area's sections. The column is 256 px wide, dragged on its edge between 224 and 384 px, collapsed by its control, by the handle's Enter or by dragging it under the narrowest width to 48 px of icons, or with `width.collapsedTo` `marks` to 64 px of marks at 40, the width a column of Agents or people collapses to on every page of the product, and a sheet under 768 px; the width and the collapse go to the product through `width.onChange`, and the shell opens at the ones it is given, or, with `width.kept`, at the ones the product keeps in the browser, which its pre-paint script already gave the column the server drew, so the first frame stands at the kept width with no jump (owner ruling, 6 November 2026; the first frame at the kept width, owner ruling, 7 November 2026); below `width.collapseBelow` the column shows its marks alone with no control or handle to open it, and opens again as the window widens, keeping the person's choice. Collapsed, the account shows its picture alone and the update card one icon. A place's badge counts what waits there in the attention colour, and the phone's menu button carries their sum. A place with its own `mark` leads its row with it in place of an icon: an Agent's orb at 64 px beside her name and `status`, as `AgentListRow` draws her, any other mark at 32; collapsed, the column shows each mark alone, at 40 in a column of marks and 32 in one of icons, with the name and the status in its tooltip. A place's `commands` open on a right-click of its row, as a record's in a list, and its one `action` stands beside its row as a small outline button while the column shows names, as a failed set-up's Try again. A group with a `label` is a navigation named by it, headed only when the column holds more than one group; the lens and the plus stand as 36 px ghost icon buttons with 18 px icons in the column's top row, the lens's tooltip and `aria-keyshortcuts` naming its key, and collapsed as icon rows above the places, while an area's sections, collapsed, start with their way out; while a group's places are read it holds three placeholder rows, a failed read says so with its Try again (collapsed, one button that tries again, the message in its tooltip), and a read with no place says its `empty` line. Choosing a place closes the sheet, and so does any new page. Every confirmation a command in the frame opens is the shell's: it closes the sheet first, so one overlay never opens over another (nadicode decision); Find closes it too as it opens the product's search. The top bar stands over the page above a 1 px rule and holds navigation only, never the page's commands: the menu button at phone width, the path, and the assistant at its end (nadicode decision). The path stands at the bar's true centre on one line while its names fit whole there; when centring would cut a name, it moves toward the bar's start only as far as needed to show its names whole, and cuts them with an ellipsis only when even that is not enough; what stands at the bar's end never overlaps it, the path giving up its room first (owner ruling, 2026-11-07 (centred), with names kept whole). With the window's own buttons at its start (`startInset`), the collapsed column's top row is theirs and its control to open stands under them. The path is the breadcrumb, never a back button in its place (nadicode decision); a step may carry its own mark beside its name, and the last step may be a switcher among the page's siblings, as an Agent's chats; under 1024 px it keeps only the page and the step before it, and the open record's `status` stands beside its name; a `scope` step stands at the path's start with the way back to the whole scope, the page's name centred (owner ruling, 7 November 2026). The pages sit on the workspace ground under a 1 px rule, at most 1280 px wide with 24 px around them; the strip, when there is one, stands between the top bar and the page; the band of `tabs` stands under them and stays while the page scrolls under the top bar (owner ruling, 7 November 2026). The `title`
|
|
126
|
+
* @behaviour One column, its regions in this order: the home with the collapse control (no home where the window already names the product: a desktop app's column starts with its Find, and a host's `mover` fills the row's free room, where the window's own buttons sit), and Find's lens and the plus of `create` beside it when Find is a `button`, Find's field when it is one, the places in their groups, then the column's foot, pinned at its bottom with no rule above it and in glass on the column's own colour so the places scroll under it: one band (the update offer or the way out), the `foot` places and the account with the bell beside it (nadicode decision; owner ruling, 7 November 2026); the foot's places stay whether the column holds the places or an area's sections. The column is 256 px wide, dragged on its edge between 224 and 384 px, collapsed by its control, by the handle's Enter or by dragging it under the narrowest width to 48 px of icons, or with `width.collapsedTo` `marks` to 64 px of marks at 40, the width a column of Agents or people collapses to on every page of the product, and a sheet under 768 px; the width and the collapse go to the product through `width.onChange`, and the shell opens at the ones it is given, or, with `width.kept`, at the ones the product keeps in the browser, which its pre-paint script already gave the column the server drew, so the first frame stands at the kept width with no jump (owner ruling, 6 November 2026; the first frame at the kept width, owner ruling, 7 November 2026); below `width.collapseBelow` the column shows its marks alone with no control or handle to open it, and opens again as the window widens, keeping the person's choice. Collapsed, the account shows its picture alone and the update card one icon. A place's badge counts what waits there in the attention colour, and the phone's menu button carries their sum. A place with its own `mark` leads its row with it in place of an icon: an Agent's orb at 64 px beside her name and `status`, as `AgentListRow` draws her, any other mark at 32; collapsed, the column shows each mark alone, at 40 in a column of marks and 32 in one of icons, with the name and the status in its tooltip. A place's `commands` open on a right-click of its row, as a record's in a list, and its one `action` stands beside its row as a small outline button while the column shows names, as a failed set-up's Try again. A group with a `label` is a navigation named by it, headed only when the column holds more than one group; the lens and the plus stand as 36 px ghost icon buttons with 18 px icons in the column's top row, the lens's tooltip and `aria-keyshortcuts` naming its key, and collapsed as icon rows above the places, while an area's sections, collapsed, start with their way out; while a group's places are read it holds three placeholder rows, a failed read says so with its Try again (collapsed, one button that tries again, the message in its tooltip), and a read with no place says its `empty` line. Choosing a place closes the sheet, and so does any new page. Every confirmation a command in the frame opens is the shell's: it closes the sheet first, so one overlay never opens over another (nadicode decision); Find closes it too as it opens the product's search. The top bar stands over the page above a 1 px rule and holds navigation only, never the page's commands: the menu button at phone width, the path, and the assistant at its end (nadicode decision). The path stands at the bar's true centre on one line while its names fit whole there; when centring would cut a name, it moves toward the bar's start only as far as needed to show its names whole, and cuts them with an ellipsis only when even that is not enough; what stands at the bar's end never overlaps it, the path giving up its room first (owner ruling, 2026-11-07 (centred), with names kept whole). With the window's own buttons at its start (`startInset`), the collapsed column's top row is theirs and its control to open stands under them. The path is the breadcrumb, never a back button in its place (nadicode decision); a step may carry its own mark beside its name, and the last step may be a switcher among the page's siblings, as an Agent's chats; under 1024 px it keeps only the page and the step before it, and the open record's `status` stands beside its name; a `scope` step stands at the path's start with the way back to the whole scope, the page's name centred (owner ruling, 7 November 2026). The pages sit on the workspace ground under a 1 px rule, at most 1280 px wide with 24 px around them; the strip, when there is one, stands between the top bar and the page; the band of `tabs` stands under them and stays while the page scrolls under the top bar (owner ruling, 7 November 2026). The `title` is never drawn, since the path names the page: it is the page's hidden `h1`, and it keeps the first row of the page's column for the page's actions (`PageActions`), at the row's trailing edge, a row that takes no room while the page has none (owner ruling, 8 November 2026). The shell tells its pages that it draws no title (`PageActionsHostProvider`'s `titled`), so a list page ends its search row with its actions instead (`CollectionPage`). A title in the `settings` column narrows the whole page to that column, 960 px, so the actions and everything under them share one edge from the first paint (owner ruling, 7 November 2026). A region that waits for the viewer before it knows whether it draws (`ProductShellTabs pending`) keeps the page unseen until it does, so the page never moves when it arrives. A new page opens at its top. Choosing a section in the column, or anything in the sheet, moves focus to the new page's heading once it arrives; a page opened any other way keeps focus where it was (owner ruling, 7 November 2026). With `labels.skip`, the first thing a keyboard reaches is a link to the page, shown only while focused. With `host`, the shell fills the region the host gives it rather than the viewport, the host's page area fills the room under the top bar edge to edge with its own landmark and scrolling, the host's `controls` stand at the top bar's end, and its `compactControls` in their place while they would cut a name of the path under 48 px, about three letters and the ellipsis, until the bar has grown the room those names lacked, its `mover` fills the bar's free room, `endInset` keeps the bar's end clear of the window's own buttons and `startInset` its start while the column is a sheet, the bar keeps the window's edge spacing, 12 px at either end, at every width, and with `underBar` the host's page runs under the bar, which is glass over it with only its bottom rim, as DESIGN.md's glass over Nadia's conversation.
|
|
127
127
|
* @words Every word is the product's: the places' nouns, the path's names exactly as the places and the records write them, the title as the column writes it, and `labels` from its catalogue. A product whose words wait for the page's language draws `labels` in a region with `ProductShellWords`: the frame's controls are named by those hidden words, so they stand in the first HTML before any language is known. A status is a short state ("Working", "Needs you"); `create` names what it adds ("New Agent").
|
|
128
|
-
* @access Each group of places is a navigation named by its heading, or by `labels.navigation` when it has none, with the places as buttons or links, the current one `aria-current="page"`, busy while its places are read; a place's row reads its name, then its status; the handle is a separator named by `labels.resize`; the page is the `main` landmark the product passes, named by `labels.main`, which the skip link focuses, or the one the host draws; the path is a navigation named by `labels.path`; the band of tabs is a navigation named by what its sections are of. The title is the page's `h1
|
|
128
|
+
* @access Each group of places is a navigation named by its heading, or by `labels.navigation` when it has none, with the places as buttons or links, the current one `aria-current="page"`, busy while its places are read; a place's row reads its name, then its status; the handle is a separator named by `labels.resize`; the page is the `main` landmark the product passes, named by `labels.main`, which the skip link focuses, or the one the host draws; the path is a navigation named by `labels.path`; the band of tabs is a navigation named by what its sections are of. The title is the page's `h1`, unseen and read before the page's actions. The phone's menu button names how many things wait. The skeleton, and a region's `loading` form, is busy and draws no word.
|
|
129
129
|
*/
|
|
130
130
|
export function ProductShell(props) {
|
|
131
131
|
const { width } = props;
|
|
@@ -261,7 +261,7 @@ function Frame({ home, create, find, band, foot, account, bell, path, title, tab
|
|
|
261
261
|
// (axe's scrollable-region-focusable); the skip link lands on it too.
|
|
262
262
|
tabIndex: 0,
|
|
263
263
|
className: "min-h-0 flex-1 overflow-auto overscroll-contain focus-visible:-outline-offset-(--outline-offset-focus) group-has-data-tabs-pending/product-shell-workspace:invisible",
|
|
264
|
-
children: (_jsx("div", { className: "mx-auto flex w-full min-w-0 max-w-7xl flex-col gap-6 p-6 has-[>[data-slot=product-shell-title]>[data-page-column=settings]]:max-w-[calc(60rem+3rem)]", "data-slot": "product-shell-column", children: _jsxs(PageActionsHostProvider, { children: [title ? (_jsx("div", { className: "
|
|
264
|
+
children: (_jsx("div", { className: "mx-auto flex w-full min-w-0 max-w-7xl flex-col gap-6 p-6 has-[>[data-slot=product-shell-title]>[data-page-column=settings]]:max-w-[calc(60rem+3rem)]", "data-slot": "product-shell-column", children: _jsxs(PageActionsHostProvider, { titled: false, children: [title ? (_jsx("div", { className: "contents", "data-slot": "product-shell-title", children: isRegion(title) ? (_jsx(Fragment, { children: title.region }, "title-region")) : (_jsx(ProductShellTitle, { ...title })) })) : null, children] }) })),
|
|
265
265
|
},
|
|
266
266
|
state: { slot: "product-shell-page" },
|
|
267
267
|
});
|
|
@@ -336,7 +336,7 @@ function Frame({ home, create, find, band, foot, account, bell, path, title, tab
|
|
|
336
336
|
return (_jsx(ProductShellContext, { value: context, children: _jsxs(CommandRunnerHost, { onAsk: closeSheet, children: [_jsx(ProductShellWordsContext, { value: wordsContext, children: isRegion(labels) ? (_jsx(Fragment, { children: labels.region }, "words-region")) : (_jsx(ProductShellWords, { ...labels })) }), _jsx(ProductShellColumnContext, { value: column, children: _jsxs(Sidebar, { mobileCloseLabel: words?.closeNavigation ?? "", mobileDescription: words?.navigationDescription, mobileFinalFocus: sheetFinalFocus, mobileTitle: words?.navigation, resize: narrow ? undefined : { "aria-labelledby": ids.resize }, children: [isMobile ? null : titleBar, _jsxs(SidebarFrame, { account: isRegion(account) ? (_jsx(Fragment, { children: account.region }, "account-region")) : (_jsx(ProductShellAccount, { ...account })), actions: bell ? _jsx(Fragment, { children: bell }, "bell") : undefined, band: band === undefined ? undefined : isRegion(band) ? (_jsx(Fragment, { children: band.region }, "band-region")) : (_jsx(ProductShellBand, { band: band })), find: find === undefined ? null : isRegion(find) ? (_jsx(Fragment, { children: find.region }, "find-region")) : find.form === "button" ? null : (_jsx(ProductShellFindField, { find: find })), foot: foot && foot.length > 0 ? (_jsx(SidebarMenu, { children: foot.map((place) => (_jsx(PlaceRow, { collapsed: collapsed, onChosen: isMobile ? choose : closeSheet, place: place }, place.id))) })) : undefined, header: !home ? (Mover ? (_jsx("div", { className: "flex h-14 min-w-0", children: _jsx(Mover, {}) })) : null) : isRegion(home) ? (_jsx(Fragment, { children: home.region }, "home-region")) : (_jsx(ProductShellHome, { ...home })), toggle: _jsxs(_Fragment, { children: [collapsed
|
|
337
337
|
? null
|
|
338
338
|
: topCommands.map((command) => (_jsx(TopCommand, { command: command, onChosen: closeSheet }, command.label))), collapsed && (narrow || expandBelowButtons) ? (Mover ? (_jsx("div", { className: "flex h-14 w-full self-stretch", children: _jsx(Mover, {}) })) : null) : narrow ? null : (_jsx(SidebarTrigger, { "aria-labelledby": ids.collapse, className: "hidden shrink-0 md:inline-flex" }))] }), children: [collapsed &&
|
|
339
|
-
((places && topCommands.length > 0) || (expandBelowButtons && !narrow)) ? (_jsx(SidebarGroup, { children: _jsx(SidebarGroupContent, { children: _jsxs(SidebarMenu, { children: [expandBelowButtons && !narrow ? (_jsx(SidebarMenuItem, { children: _jsx(SidebarMenuButton, { "aria-expanded": false, "aria-labelledby": ids.collapse, onClick: toggleSidebar, tooltip: words?.collapse, children: _jsx(PanelLeftIcon, { "aria-hidden": "true" }) }) })) : null, (places ? topCommands : []).map((command) => (_jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { "aria-keyshortcuts": command.keyshortcuts, onClick: command.onClick, tooltip: command.label, children: [_jsx(command.icon, { "aria-hidden": "true" }), _jsx("span", { className: "sr-only", children: command.label })] }) }, command.label)))] }) }) })) : null, places ? (isRegion(places) ? (_jsx(Fragment, { children: places.region }, "places-region")) : (_jsx(ProductShellPlaces, { places: places }))) : sections ? (_jsx(ProductShellSections, { ...sections })) : null] })] }) }), isMobile && isRegion(places) ? (_jsx(ProductShellColumnContext, { value: waitingCounter, children: _jsx(Fragment, { children: places.region }, "places-count") })) : null, _jsxs(SidebarInset, { className: cn("h-full min-h-0 min-w-0", !host && "overflow-clip"), children: [isMobile ? titleBar : null, host ? (_jsxs("div", { className: "relative flex min-h-0 min-w-0 flex-1 flex-col", children: [topBar, stripRegion, _jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", "data-slot": "product-shell-page", children: children })] })) : (_jsxs("div", { className: "grid min-h-0 min-w-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-(--nc-guide) overflow-clip bg-border has-[>[data-slot=product-shell-strip]]:grid-rows-[auto_auto_minmax(0,1fr)]", "data-slot": "product-shell-inset", children: [topBar, stripRegion, _jsxs("div", { className: "group/product-shell-workspace flex min-h-0 min-w-0 flex-col overflow-clip bg-(--nc-material-workspace)", "data-slot": "product-shell-workspace", children: [tabs ? (_jsx("div", { className: "min-w-0 shrink-0", "data-slot": "product-shell-tabs-region", children: isRegion(tabs) ? (_jsx(Fragment, { children: tabs.region }, "tabs-region")) : (_jsx(ProductShellTabs, { ...tabs })) })) : null, pageRegion] })] }))] }), aside ? _jsx(Fragment, { children: aside }, "aside") : null, isRegion(address) ? (_jsx(Fragment, { children: address.region }, "address-region")) : (_jsx(ProductShellAddress, { address: address ?? (isRegion(path) ? "" : path.map(crumbKey).join("\u0000")) }))] }) }));
|
|
339
|
+
((places && topCommands.length > 0) || (expandBelowButtons && !narrow)) ? (_jsx(SidebarGroup, { children: _jsx(SidebarGroupContent, { children: _jsxs(SidebarMenu, { children: [expandBelowButtons && !narrow ? (_jsx(SidebarMenuItem, { children: _jsx(SidebarMenuButton, { "aria-expanded": false, "aria-labelledby": ids.collapse, onClick: toggleSidebar, tooltip: words?.collapse, children: _jsx(PanelLeftIcon, { "aria-hidden": "true" }) }) })) : null, (places ? topCommands : []).map((command) => (_jsx(SidebarMenuItem, { children: _jsxs(SidebarMenuButton, { "aria-keyshortcuts": command.keyshortcuts, onClick: command.onClick, tooltip: command.label, children: [_jsx(command.icon, { "aria-hidden": "true" }), _jsx("span", { className: "sr-only", children: command.label })] }) }, command.label)))] }) }) })) : null, places ? (isRegion(places) ? (_jsx(Fragment, { children: places.region }, "places-region")) : (_jsx(ProductShellPlaces, { places: places }))) : sections ? (_jsx(ProductShellSections, { ...sections })) : null] })] }) }), isMobile && isRegion(places) ? (_jsx(ProductShellColumnContext, { value: waitingCounter, children: _jsx(Fragment, { children: places.region }, "places-count") })) : null, _jsxs(SidebarInset, { className: cn("h-full min-h-0 min-w-0", !host && "overflow-clip"), children: [isMobile ? titleBar : null, host ? (_jsxs("div", { className: "relative flex min-h-0 min-w-0 flex-1 flex-col", children: [topBar, stripRegion, _jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", "data-slot": "product-shell-page", children: children })] })) : (_jsxs("div", { className: "grid min-h-0 min-w-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-(--nc-guide) overflow-clip bg-border has-[>[data-slot=product-shell-strip]]:grid-rows-[auto_auto_minmax(0,1fr)]", "data-slot": "product-shell-inset", children: [topBar, stripRegion, _jsxs("div", { className: "group/product-shell-workspace flex min-h-0 min-w-0 flex-col overflow-clip bg-(--nc-material-workspace) has-[>[data-slot=product-shell-tabs-region]_[data-slot=tabs-nav-band]]:-mt-(--nc-guide)", "data-slot": "product-shell-workspace", children: [tabs ? (_jsx("div", { className: "min-w-0 shrink-0", "data-slot": "product-shell-tabs-region", children: isRegion(tabs) ? (_jsx(Fragment, { children: tabs.region }, "tabs-region")) : (_jsx(ProductShellTabs, { ...tabs })) })) : null, pageRegion] })] }))] }), aside ? _jsx(Fragment, { children: aside }, "aside") : null, isRegion(address) ? (_jsx(Fragment, { children: address.region }, "address-region")) : (_jsx(ProductShellAddress, { address: address ?? (isRegion(path) ? "" : path.map(crumbKey).join("\u0000")) }))] }) }));
|
|
340
340
|
}
|
|
341
341
|
/**
|
|
342
342
|
* The shell's own words, from the product's catalogue: the skip link, and the hidden words the
|
|
@@ -535,21 +535,18 @@ function ScopedPath({ scope: step, rest, name, }) {
|
|
|
535
535
|
return (_jsx(Breadcrumb, { ...name, className: "w-full min-w-0", "data-slot": "product-shell-path", children: _jsxs(BreadcrumbList, { className: "grid min-w-0 grid-cols-1 items-center gap-0 md:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] md:gap-3", children: [_jsxs(BreadcrumbItem, { className: "min-w-0 gap-2", "data-scope": "", children: [_jsx("span", { className: "min-w-0 flex-1 md:flex-initial", children: _jsx(ScopeSwitcher, { ...switcher, variant: "navigation" }) }), step.status ? (_jsx("span", { className: "hidden shrink-0 md:inline-flex", children: _jsx(Status, { status: step.status }) })) : null, close ? (_jsx(ButtonLink, { "aria-label": close.label, render: close.link, size: "icon", variant: "ghost", children: _jsx(XIcon, { "aria-hidden": "true" }) })) : null] }), current && !current.scope ? (_jsxs(BreadcrumbItem, { className: "min-w-0 flex-wrap justify-center gap-x-3 gap-y-1 md:flex-nowrap md:justify-self-center", children: [step.status ? (_jsx("span", { className: "inline-flex shrink-0 md:hidden", children: _jsx(Status, { status: step.status }) })) : null, _jsx(BreadcrumbPage, { className: "block min-w-0 truncate", children: current.label })] })) : null] }) }));
|
|
536
536
|
}
|
|
537
537
|
/**
|
|
538
|
-
* The page's title
|
|
538
|
+
* The page's unseen title, drawn from its title: `ProductShell` draws it from its `title`, and a
|
|
539
539
|
* product whose router resolves the title beside the page renders it in that region, or with
|
|
540
|
-
* `loading` while the region resolves. It
|
|
540
|
+
* `loading` while the region resolves. It is the page's hidden `h1` and the row that carries the
|
|
541
|
+
* page's `PageActions`.
|
|
541
542
|
*/
|
|
542
543
|
export function ProductShellTitle(props) {
|
|
543
544
|
const focusHeading = use(ProductShellContext)?.focusHeading;
|
|
544
545
|
// A choice in the column waits for the new page's heading, which may arrive after the page.
|
|
545
546
|
useEffect(() => focusHeading?.(), [focusHeading]);
|
|
546
|
-
const headingProps = { tabIndex: -1, id: PRODUCT_SHELL_HEADING_ID };
|
|
547
|
-
if (!props.loading && props.unseen) {
|
|
548
|
-
return _jsx(PageHeader, { headingProps: headingProps, title: props.text, unseen: true });
|
|
549
|
-
}
|
|
550
547
|
// The page's whole column follows its title's: the shell narrows to the settings column while
|
|
551
|
-
// a title in it stands first, so the
|
|
552
|
-
return (_jsx("div", { "data-page-column": props.column ?? "full", children: props.loading ?
|
|
548
|
+
// a title in it stands first, so the actions and the page share one edge from the first paint.
|
|
549
|
+
return (_jsx("div", { className: "contents", "data-page-column": props.column ?? "full", children: props.loading ? null : (_jsx(PageHeader, { headingProps: { tabIndex: -1, id: PRODUCT_SHELL_HEADING_ID }, title: props.text, unseen: true })) }));
|
|
553
550
|
}
|
|
554
551
|
/** Marks the band as pending, which keeps the page unseen; a heading waiting for focus takes it once the band resolves. */
|
|
555
552
|
function PendingTabs() {
|