@nadicodeai/ui 12.1.250 → 12.1.252
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.
|
@@ -14,6 +14,6 @@ import { cn } from "../lib/utils.js";
|
|
|
14
14
|
* @access The label is a `button` with `aria-expanded` when it toggles.
|
|
15
15
|
*/
|
|
16
16
|
function DisclosureRow({ action, children, className, onToggle, open, trailing, }) {
|
|
17
|
-
return (_jsxs("div", { className: cn("group/disclosure-row relative flex w-full max-w-full min-w-0 text-muted-foreground", className), "data-slot": "disclosure-row", children: [_jsxs("button", { "aria-expanded": onToggle ? open : undefined, className: cn("nc-transition-paint flex min-w-0 max-w-fit items-start gap-1.5 text-left", onToggle ? "hover:text-foreground focus-visible:text-foreground" : "cursor-default"), disabled: !onToggle, onClick: onToggle, type: "button", children: [_jsx("span", { className: "flex min-w-0 flex-col gap-0.5", children: children }), onToggle ? (_jsx("span", { className: "flex shrink-0 items-center justify-center", children: _jsx(ChevronRightIcon, { "aria-hidden": "true", className: "nc-transition-transform size-3 data-[state=open]:rotate-90", "data-icon": "inline-end", "data-state": open ? "open" : "closed" }) })) : null] }), action ? (_jsx("span", { className: "ml-auto flex shrink-0 items-center self-start pl-1.5", children: action })) : null, trailing ? (_jsx("span", { className: "pointer-events-none absolute top-0 right-1 flex items-center", children: trailing })) : null] }));
|
|
17
|
+
return (_jsxs("div", { className: cn("group/disclosure-row relative flex w-full max-w-full min-w-0 text-muted-foreground", className), "data-slot": "disclosure-row", children: [_jsxs("button", { "aria-expanded": onToggle ? open : undefined, className: cn("nc-transition-paint flex min-w-0 max-w-fit items-start gap-1.5 text-left", onToggle ? "hover:text-foreground focus-visible:text-foreground" : "cursor-default"), disabled: !onToggle, onClick: onToggle, type: "button", children: [_jsx("span", { className: "flex min-w-0 flex-col gap-0.5", children: children }), onToggle ? (_jsx("span", { className: "flex h-lh shrink-0 items-center justify-center", children: _jsx(ChevronRightIcon, { "aria-hidden": "true", className: "nc-transition-transform size-3 data-[state=open]:rotate-90", "data-icon": "inline-end", "data-state": open ? "open" : "closed" }) })) : null] }), action ? (_jsx("span", { className: "ml-auto flex shrink-0 items-center self-start pl-1.5", children: action })) : null, trailing ? (_jsx("span", { className: "pointer-events-none absolute top-0 right-1 flex items-center", children: trailing })) : null] }));
|
|
18
18
|
}
|
|
19
19
|
export { DisclosureRow };
|
|
@@ -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; 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.
|
|
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. The page's words can be selected and copied, a path or an error included, though Hermes's window turns selection off for the whole window; its buttons and controls stay unselectable.
|
|
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; 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.
|
|
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. The page's words can be selected and copied, a path or an error included, though Hermes's window turns selection off for the whole window; its buttons and controls stay unselectable.
|
|
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
|
*/
|
|
@@ -21,7 +21,7 @@ export function PageFrame({ main, label, title, description, headingProps, colum
|
|
|
21
21
|
render: main,
|
|
22
22
|
props: {
|
|
23
23
|
"aria-label": label ?? title,
|
|
24
|
-
className: "h-full min-h-0 overflow-y-auto p-nadicode-lg [scrollbar-gutter:stable_both-edges]",
|
|
24
|
+
className: "h-full min-h-0 overflow-y-auto p-nadicode-lg select-text [scrollbar-gutter:stable_both-edges]",
|
|
25
25
|
children: (_jsx(PageActionsHostProvider, { titled: Boolean(title), children: _jsxs(ReadingColumn, { width: column, children: [title ? (_jsx(PageHeader, { description: description, headingProps: headingProps, title: title })) : null, children] }) })),
|
|
26
26
|
},
|
|
27
27
|
state: { slot: "page-frame" },
|
|
@@ -274,7 +274,7 @@ export const USAGE = [
|
|
|
274
274
|
summary: "The page area of a product whose host app draws the window around its pages: the page's `main` landmark, its scrolling and gutter, its column, and its title row when its composition draws none.",
|
|
275
275
|
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.",
|
|
276
276
|
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.",
|
|
277
|
-
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.",
|
|
277
|
+
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. The page's words can be selected and copied, a path or an error included, though Hermes's window turns selection off for the whole window; its buttons and controls stay unselectable.",
|
|
278
278
|
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").',
|
|
279
279
|
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.",
|
|
280
280
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.252",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@headless-tree/react": "1.8.0",
|
|
83
83
|
"@iconify-icons/logos": "^2.0.3",
|
|
84
84
|
"@iconify/react": "^6.0.2",
|
|
85
|
-
"@nadicodeai/design-system": "12.1.
|
|
85
|
+
"@nadicodeai/design-system": "12.1.252",
|
|
86
86
|
"@tanstack/react-table": "^9.3.1",
|
|
87
87
|
"@vgpu/wgsl": "0.6.0",
|
|
88
88
|
"class-variance-authority": "^0.7.1",
|