@nadicodeai/ui 12.1.199 → 12.1.200

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.
Files changed (31) hide show
  1. package/dist/components/agent-card.d.ts +54 -22
  2. package/dist/components/agent-card.d.ts.map +1 -1
  3. package/dist/components/agent-card.js +47 -20
  4. package/dist/components/agent-orb.d.ts +2 -2
  5. package/dist/components/agent-orb.js +2 -2
  6. package/dist/components/drawer-steps.d.ts +31 -0
  7. package/dist/components/drawer-steps.d.ts.map +1 -0
  8. package/dist/components/drawer-steps.js +27 -0
  9. package/dist/components/form-drawer.d.ts +11 -6
  10. package/dist/components/form-drawer.d.ts.map +1 -1
  11. package/dist/components/form-drawer.js +2 -2
  12. package/dist/components/library-shelf.d.ts +8 -3
  13. package/dist/components/library-shelf.d.ts.map +1 -1
  14. package/dist/components/library-shelf.js +14 -6
  15. package/dist/components/object-workspace.d.ts.map +1 -1
  16. package/dist/components/object-workspace.js +3 -1
  17. package/dist/internal/form-drawer-frame.d.ts +2 -0
  18. package/dist/internal/form-drawer-frame.d.ts.map +1 -1
  19. package/dist/internal/form-drawer-frame.js +3 -1
  20. package/dist/showcase/specimens/compositions.d.ts +2 -0
  21. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  22. package/dist/showcase/specimens/compositions.js +20 -1
  23. package/dist/showcase/specimens/data.d.ts +1 -0
  24. package/dist/showcase/specimens/data.d.ts.map +1 -1
  25. package/dist/showcase/specimens/data.js +4 -3
  26. package/dist/showcase/specimens/index.d.ts +2 -0
  27. package/dist/showcase/specimens/index.d.ts.map +1 -1
  28. package/dist/showcase/usage.generated.d.ts +1 -1
  29. package/dist/showcase/usage.generated.d.ts.map +1 -1
  30. package/dist/showcase/usage.generated.js +32 -10
  31. package/package.json +2 -2
@@ -1,38 +1,70 @@
1
- import type { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
2
  import { Card } from "./card.js";
3
- type AgentCardProps = Omit<React.ComponentProps<typeof Card>, "children"> & {
4
- action?: ReactNode;
3
+ /** What a pressable card's top corner glows with on hover: an app's logo or her orb's colour. */
4
+ export type AgentCardGlow = {
5
+ image: string;
6
+ } | {
7
+ color: string;
8
+ };
9
+ type AgentCardContent = {
5
10
  job: ReactNode;
6
11
  meta?: ReactNode;
7
12
  name: ReactNode;
8
13
  status?: ReactNode;
9
- /** The object's picture: an Agent's orb, an app's mark. A skill, which is text, has none. */
14
+ /** The object's picture: an Agent's orb, at 64 on a card and at 40 in a row. */
10
15
  visual?: ReactNode;
11
16
  };
17
+ export type AgentCardProps = AgentCardContent & Omit<React.ComponentProps<typeof Card>, "children" | "onClick" | "render"> & ({
18
+ action?: ReactNode;
19
+ glow?: never;
20
+ onOpen?: never;
21
+ }
22
+ /** The whole card is the one target, so it holds no control of its own. */
23
+ | {
24
+ action?: never;
25
+ glow?: AgentCardGlow;
26
+ onOpen: () => void;
27
+ });
12
28
  /**
13
- * One Agent, or another pictured object, as a card in a gallery, as Vercel's
14
- * Templates gallery draws a template.
29
+ * One Agent, or another pictured object, as a card in a gallery.
15
30
  *
16
31
  * @family Data
17
32
  * @when A gallery of Agents or templates where each one is chosen by its picture and its job: the
18
33
  * Agents to create from, the templates of a hub. An Agent shown as an object is this one card
19
34
  * shape wherever it appears, in the Portal's Library and in Nadia's gallery alike.
20
- * @instead A list of Agents to open is `AgentListRow`. An Agent's own page opens with
21
- * `AgentProfileCard`, where the name is the page heading. A Library skill or plugin is a row of its
22
- * collection (`CollectionPage`).
23
- * @behaviour Vercel's template card: the name over its job, cut after two lines, then the small
24
- * meta and an optional status row, and under them the preview tile, inset 32 px from the card's
25
- * leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its
26
- * middle on the recessed ground. The one action stands at the name's right, as a card's one
27
- * header action does while the card's content is at least 18rem wide; a narrower card puts it
28
- * under the words, so the name keeps the card's width. A long name wraps inside the card. A text object, with no picture, ends
29
- * after its words.
35
+ * @instead The same gallery read as a list is `AgentRow`. A list of Agents to open is
36
+ * `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page
37
+ * heading. A Library skill or plugin is a row of its collection (`CollectionPage`).
38
+ * @behaviour As Vercel's Connect cards: every card has the same slots, so what one holds never moves
39
+ * another's. The picture stands top left, her orb at 64 with its empty edge outside the card's
40
+ * padding, and the status (her apps) top right; at the card's foot her name on one line, her job in
41
+ * a slot of two lines cut after the second, and the meta, with the one action at its end. With
42
+ * `onOpen` the whole card is one button and holds no action; on hover its ground lifts and, with
43
+ * `glow`, the corner behind the status fades up in a blurred 112 px of that logo or colour over
44
+ * 500 ms. A text object, with no picture, keeps the same foot.
30
45
  * @words The name as the Agent calls herself; the job in one line (*Writes quotes from the price
31
- * list*); the meta as short facts joined by a middle dot (*6 skills · v1.2.0*); the action verb
32
- * and noun (*Create Agent*).
33
- * @access The name is the card's heading text; the orb is decorative beside it; the action is a
34
- * real button or link.
46
+ * list*); the meta as short facts joined by a middle dot (*6 skills · 2 tasks*); the action verb
47
+ * and noun (*Start*).
48
+ * @access With `onOpen` the name, the job and the meta name the button, in that order, and the
49
+ * status and the orb stay out of its name; the glow is hidden; an action is a real button or link.
50
+ */
51
+ declare function AgentCard({ action, className, glow, job, meta, name, onOpen, status, visual, ...props }: AgentCardProps): import("react").JSX.Element;
52
+ export type AgentRowProps = AgentCardContent & {
53
+ onOpen: () => void;
54
+ };
55
+ /**
56
+ * One Agent of a gallery as a row: the same object as `AgentCard`, read as a list.
57
+ *
58
+ * @family Data
59
+ * @when A shelf's rows view, inside `LibraryShelf` with `view="rows"`: the Portal's Agent templates.
60
+ * @instead The gallery's default is `AgentCard`. A list of Agents to open as records is a
61
+ * `RecordList` row; Nadia's sidebar is `AgentListRow`.
62
+ * @behaviour The whole row is one button, 64 px high at every width: her orb at 40, her name over her
63
+ * job, each on one line, the status and the meta in columns of 128 px that line up down the shelf,
64
+ * then a chevron. Below `md` the columns go, and the card or the surface it opens holds them.
65
+ * @words As `AgentCard`.
66
+ * @access The row's text names the button; the orb and the chevron are decorative.
35
67
  */
36
- declare function AgentCard({ action, className, job, meta, name, status, visual, ...props }: AgentCardProps): import("react").JSX.Element;
37
- export { AgentCard, type AgentCardProps };
68
+ declare function AgentRow({ job, meta, name, onOpen, status, visual }: AgentRowProps): import("react").JSX.Element;
69
+ export { AgentCard, AgentRow };
38
70
  //# sourceMappingURL=agent-card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAA8B,MAAM,mBAAmB,CAAC;AAGrE,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,SAAS,CAAC,EACjB,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,+BA4DhB;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/components/agent-card.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGzC,iGAAiG;AACjG,MAAM,MAAM,aAAa,GAAG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1,38 +1,65 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Card, CardDescription, CardTitle } from "./card.js";
2
+ import { ChevronRight } from "lucide-react";
3
+ import { useId } from "react";
4
+ import { Card } from "./card.js";
3
5
  import { cn } from "../lib/utils.js";
4
6
  function hasSlotContent(value) {
5
7
  return value !== null && value !== undefined && value !== false;
6
8
  }
9
+ const PRESSABLE = "cursor-pointer text-left outline-ring transition-colors duration-150 hover:bg-accent focus-visible:outline-2 focus-visible:outline-offset-2";
10
+ function CornerGlow({ glow }) {
11
+ return (_jsx("span", { "aria-hidden": "true", className: "pointer-events-none absolute -top-6 -right-6 size-28 rounded-full bg-contain bg-center bg-no-repeat opacity-0 blur-[40px] saturate-150 transition-opacity duration-500 group-hover/card:opacity-70 group-focus-visible/card:opacity-70", "data-slot": "agent-card-glow", style: "image" in glow
12
+ ? { backgroundImage: `url("${glow.image}")` }
13
+ : { backgroundColor: glow.color } }));
14
+ }
7
15
  /**
8
- * One Agent, or another pictured object, as a card in a gallery, as Vercel's
9
- * Templates gallery draws a template.
16
+ * One Agent, or another pictured object, as a card in a gallery.
10
17
  *
11
18
  * @family Data
12
19
  * @when A gallery of Agents or templates where each one is chosen by its picture and its job: the
13
20
  * Agents to create from, the templates of a hub. An Agent shown as an object is this one card
14
21
  * shape wherever it appears, in the Portal's Library and in Nadia's gallery alike.
15
- * @instead A list of Agents to open is `AgentListRow`. An Agent's own page opens with
16
- * `AgentProfileCard`, where the name is the page heading. A Library skill or plugin is a row of its
17
- * collection (`CollectionPage`).
18
- * @behaviour Vercel's template card: the name over its job, cut after two lines, then the small
19
- * meta and an optional status row, and under them the preview tile, inset 32 px from the card's
20
- * leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its
21
- * middle on the recessed ground. The one action stands at the name's right, as a card's one
22
- * header action does while the card's content is at least 18rem wide; a narrower card puts it
23
- * under the words, so the name keeps the card's width. A long name wraps inside the card. A text object, with no picture, ends
24
- * after its words.
22
+ * @instead The same gallery read as a list is `AgentRow`. A list of Agents to open is
23
+ * `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page
24
+ * heading. A Library skill or plugin is a row of its collection (`CollectionPage`).
25
+ * @behaviour As Vercel's Connect cards: every card has the same slots, so what one holds never moves
26
+ * another's. The picture stands top left, her orb at 64 with its empty edge outside the card's
27
+ * padding, and the status (her apps) top right; at the card's foot her name on one line, her job in
28
+ * a slot of two lines cut after the second, and the meta, with the one action at its end. With
29
+ * `onOpen` the whole card is one button and holds no action; on hover its ground lifts and, with
30
+ * `glow`, the corner behind the status fades up in a blurred 112 px of that logo or colour over
31
+ * 500 ms. A text object, with no picture, keeps the same foot.
25
32
  * @words The name as the Agent calls herself; the job in one line (*Writes quotes from the price
26
- * list*); the meta as short facts joined by a middle dot (*6 skills · v1.2.0*); the action verb
27
- * and noun (*Create Agent*).
28
- * @access The name is the card's heading text; the orb is decorative beside it; the action is a
29
- * real button or link.
33
+ * list*); the meta as short facts joined by a middle dot (*6 skills · 2 tasks*); the action verb
34
+ * and noun (*Start*).
35
+ * @access With `onOpen` the name, the job and the meta name the button, in that order, and the
36
+ * status and the orb stay out of its name; the glow is hidden; an action is a real button or link.
30
37
  */
31
- function AgentCard({ action, className, job, meta, name, status, visual, ...props }) {
38
+ function AgentCard({ action, className, glow, job, meta, name, onOpen, status, visual, ...props }) {
32
39
  const hasStatus = hasSlotContent(status);
33
40
  const hasMeta = hasSlotContent(meta);
34
41
  const hasAction = hasSlotContent(action);
35
42
  const hasVisual = hasSlotContent(visual);
36
- return (_jsxs(Card, { className: cn("h-full gap-0", hasVisual && "pb-0", className), ...props, children: [_jsx("div", { className: cn("@container/agent-card-header px-(--card-spacing)", hasVisual && "pb-nadicode-md"), "data-slot": "agent-card-header", children: _jsxs("div", { className: cn("grid items-start gap-nadicode-sm", hasAction && "@2xs/agent-card-header:grid-cols-[minmax(0,1fr)_auto]"), children: [_jsxs("div", { className: "grid min-w-0 grid-cols-[minmax(0,1fr)] content-start gap-nadicode-xxs", children: [_jsx(CardTitle, { className: "wrap-break-word", children: name }), _jsx(CardDescription, { className: "line-clamp-2", children: job }), hasMeta ? (_jsx("div", { className: "pt-nadicode-xxs text-xs text-muted-foreground", "data-slot": "agent-card-meta", children: meta })) : null, hasStatus ? (_jsx("div", { className: "flex flex-wrap items-center gap-nadicode-xxs pt-nadicode-xxs", "data-slot": "agent-card-status", children: status })) : null] }), hasAction ? (_jsx("div", { className: "shrink-0 justify-self-start", "data-slot": "agent-card-action", children: action })) : null] }) }), hasVisual ? (_jsx("div", { className: "mt-auto ml-8 grid h-36 place-items-center overflow-hidden rounded-tl-md border-t border-l border-border bg-recessed pt-nadicode-md", "data-slot": "agent-card-visual", children: visual })) : null] }));
43
+ const id = useId();
44
+ const words = hasMeta ? `${id}-name ${id}-job ${id}-meta` : `${id}-name ${id}-job`;
45
+ return (_jsxs(Card, { className: cn("relative h-full min-h-48 min-w-0 gap-0 p-4", onOpen && PRESSABLE, className), ...(onOpen
46
+ ? { render: _jsx("button", { "aria-labelledby": words, onClick: onOpen, type: "button" }) }
47
+ : {}), ...props, children: [glow ? _jsx(CornerGlow, { glow: glow }) : null, hasVisual || hasStatus ? (_jsxs("span", { className: "relative flex min-h-12 w-full shrink-0 items-start justify-between gap-3", children: [hasVisual ? (_jsx("span", { className: "-mt-2 -ml-2 shrink-0", "data-slot": "agent-card-visual", children: visual })) : (_jsx("span", {})), hasStatus ? (_jsx("span", { className: "flex min-w-0 flex-wrap items-center justify-end gap-nadicode-xxs", "data-slot": "agent-card-status", children: status })) : null] })) : null, _jsxs("span", { className: "relative mt-auto grid w-full min-w-0 gap-1 pt-nadicode-md", children: [_jsx("span", { className: "truncate text-heading-xs text-foreground", "data-slot": "agent-card-name", id: `${id}-name`, children: name }), _jsx("span", { className: "line-clamp-2 h-10 text-sm text-muted-foreground", "data-slot": "agent-card-job", id: `${id}-job`, children: job }), hasMeta || hasAction ? (_jsxs("span", { className: "flex min-h-5 min-w-0 items-center justify-between gap-3 pt-1", children: [_jsx("span", { className: "min-w-0 truncate text-xs text-muted-foreground", "data-slot": "agent-card-meta", id: `${id}-meta`, children: hasMeta ? meta : null }), hasAction ? (_jsx("span", { className: "shrink-0", "data-slot": "agent-card-action", children: action })) : null] })) : null] })] }));
48
+ }
49
+ /**
50
+ * One Agent of a gallery as a row: the same object as `AgentCard`, read as a list.
51
+ *
52
+ * @family Data
53
+ * @when A shelf's rows view, inside `LibraryShelf` with `view="rows"`: the Portal's Agent templates.
54
+ * @instead The gallery's default is `AgentCard`. A list of Agents to open as records is a
55
+ * `RecordList` row; Nadia's sidebar is `AgentListRow`.
56
+ * @behaviour The whole row is one button, 64 px high at every width: her orb at 40, her name over her
57
+ * job, each on one line, the status and the meta in columns of 128 px that line up down the shelf,
58
+ * then a chevron. Below `md` the columns go, and the card or the surface it opens holds them.
59
+ * @words As `AgentCard`.
60
+ * @access The row's text names the button; the orb and the chevron are decorative.
61
+ */
62
+ function AgentRow({ job, meta, name, onOpen, status, visual }) {
63
+ return (_jsxs("button", { className: cn("grid h-16 w-full grid-cols-[2.5rem_minmax(0,1fr)_1rem] items-center gap-4 px-4 md:grid-cols-[2.5rem_minmax(0,1fr)_8rem_8rem_1rem]", PRESSABLE, "focus-visible:-outline-offset-2"), "data-slot": "agent-row", onClick: onOpen, type: "button", children: [_jsx("span", { className: "size-10", children: visual }), _jsxs("span", { className: "grid min-w-0 gap-0.5", children: [_jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: name }), _jsx("span", { className: "truncate text-sm text-muted-foreground", children: job })] }), _jsx("span", { className: "hidden min-w-0 md:block", children: status }), _jsx("span", { className: "hidden truncate text-sm text-muted-foreground md:block", children: meta }), _jsx(ChevronRight, { "aria-hidden": "true", className: "size-4 text-muted-foreground" })] }));
37
64
  }
38
- export { AgentCard };
65
+ export { AgentCard, AgentRow };
@@ -33,8 +33,8 @@ export type AgentOrbProps = AgentOrbBaseProps & ({
33
33
  * An Agent, anywhere: her orb, the only thing that moves on its own.
34
34
  *
35
35
  * @family Status
36
- * @when An Agent, anywhere: 20 in the sidebar, 32 in a row, 64 on her Profile card, 96 in an Agent
37
- * card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and
36
+ * @when An Agent, anywhere: 20 in the sidebar, 32 in a row, 40 in a gallery's row, 64 on her Profile
37
+ * card and an Agent card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and
38
38
  * 160 px, and no other. Detail follows the size the orb is drawn at: up to 32 px it draws the
39
39
  * engine's lightest dot profile, at 40 px the middle one and from 64 px the full one, since a small
40
40
  * orb cannot show the full profile's dots apart. On a photograph the orb takes the stronger `presence="over-picture"`
@@ -7,8 +7,8 @@ import { cn } from "../lib/utils.js";
7
7
  * An Agent, anywhere: her orb, the only thing that moves on its own.
8
8
  *
9
9
  * @family Status
10
- * @when An Agent, anywhere: 20 in the sidebar, 32 in a row, 64 on her Profile card, 96 in an Agent
11
- * card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and
10
+ * @when An Agent, anywhere: 20 in the sidebar, 32 in a row, 40 in a gallery's row, 64 on her Profile
11
+ * card and an Agent card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and
12
12
  * 160 px, and no other. Detail follows the size the orb is drawn at: up to 32 px it draws the
13
13
  * engine's lightest dot profile, at 40 px the middle one and from 64 px the full one, since a small
14
14
  * orb cannot show the full profile's dots apart. On a photograph the orb takes the stronger `presence="over-picture"`
@@ -0,0 +1,31 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ export type DrawerStep = {
3
+ id: string;
4
+ /** The step's name; for what was already chosen, the thing's own name. */
5
+ title: ReactNode;
6
+ state: "chosen" | "current";
7
+ /** What was chosen stands with this in place of a number, such as an Agent's orb. */
8
+ mark?: ReactNode;
9
+ /** A `DrawerStepBody` and a `DrawerStepFooter`, with the step's form around them if it has one. */
10
+ children?: ReactNode;
11
+ };
12
+ /**
13
+ * A job in a drawer as a stack of cards, one per step, every step in sight from the start.
14
+ *
15
+ * @family Compositions
16
+ * @when Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, as Vercel's Add Connection: what they chose, then the steps that remain.
17
+ * @instead Steps a person follows on a page are `NumberedSteps`; a setup whose steps replace each other around a wait is `FormDrawer` with `job="steps"`.
18
+ * @behaviour One card per step, 16 px apart. Each card's first row is 20 px of mark and its title, 24 px in from its sides. What was chosen stands first with its own mark, and what the person should know about it under that; the current step has its number in ink, its content and its actions in a band under it. The orb may overhang its 20 px, since its drawn edge is inside its box.
19
+ * @words A step's title is one or two words: *Review*, *Configure*.
20
+ * @access An ordered list; the current step carries `aria-current="step"`; the drawn numbers are hidden, since the list reads the position.
21
+ */
22
+ export declare function DrawerSteps({ steps }: {
23
+ steps: readonly DrawerStep[];
24
+ }): import("react").JSX.Element;
25
+ /** What the current step holds, under its row. */
26
+ export declare function DrawerStepBody({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
27
+ /** The band under the current step, its primary at the end. */
28
+ export declare function DrawerStepFooter({ children }: {
29
+ children: ReactNode;
30
+ }): import("react").JSX.Element;
31
+ //# sourceMappingURL=drawer-steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-steps.d.ts","sourceRoot":"","sources":["../../src/components/drawer-steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,0EAA0E;IAC1E,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B,qFAAqF;IACrF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAaF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,+BAoBtE;AAED,kDAAkD;AAClD,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAQ5E;AAED,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMrE"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card, CardFooter } from "./card.js";
3
+ import { cn } from "../lib/utils.js";
4
+ function StepNumber({ index }) {
5
+ return (_jsx("span", { "aria-hidden": "true", className: "flex size-5 items-center justify-center rounded-full bg-foreground text-xs font-medium tabular-nums text-background", children: index + 1 }));
6
+ }
7
+ /**
8
+ * A job in a drawer as a stack of cards, one per step, every step in sight from the start.
9
+ *
10
+ * @family Compositions
11
+ * @when Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, as Vercel's Add Connection: what they chose, then the steps that remain.
12
+ * @instead Steps a person follows on a page are `NumberedSteps`; a setup whose steps replace each other around a wait is `FormDrawer` with `job="steps"`.
13
+ * @behaviour One card per step, 16 px apart. Each card's first row is 20 px of mark and its title, 24 px in from its sides. What was chosen stands first with its own mark, and what the person should know about it under that; the current step has its number in ink, its content and its actions in a band under it. The orb may overhang its 20 px, since its drawn edge is inside its box.
14
+ * @words A step's title is one or two words: *Review*, *Configure*.
15
+ * @access An ordered list; the current step carries `aria-current="step"`; the drawn numbers are hidden, since the list reads the position.
16
+ */
17
+ export function DrawerSteps({ steps }) {
18
+ return (_jsx("ol", { className: "grid grid-cols-[minmax(0,1fr)] gap-4", "data-slot": "drawer-steps", children: steps.map((step, index) => (_jsx("li", { "aria-current": step.state === "current" ? "step" : undefined, children: _jsxs(Card, { className: "gap-0 py-0", "data-state": step.state, children: [_jsxs("div", { className: "flex min-w-0 items-center gap-3 px-6 py-5", children: [_jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", children: step.mark ?? _jsx(StepNumber, { index: index }) }), _jsx("span", { className: "min-w-0 text-heading-xs wrap-break-word text-foreground", children: step.title })] }), step.children] }) }, step.id))) }));
19
+ }
20
+ /** What the current step holds, under its row. */
21
+ export function DrawerStepBody({ className, ...props }) {
22
+ return (_jsx("div", { className: cn("grid min-w-0 gap-5 px-6 pb-6", className), "data-slot": "drawer-step-body", ...props }));
23
+ }
24
+ /** The band under the current step, its primary at the end. */
25
+ export function DrawerStepFooter({ children }) {
26
+ return (_jsx(CardFooter, { className: "justify-end px-6", "data-slot": "drawer-step-footer", children: children }));
27
+ }
@@ -25,22 +25,27 @@ export type FormSurfaceProps = {
25
25
  };
26
26
  /**
27
27
  * Why this is a drawer and not a dialog: it sets something up over several
28
- * steps, with a wait; a list too long for a dialog is a `CatalogDrawer`. A form
29
- * of a few fields is a `FormDialog`, and a record already on screen edits
28
+ * steps, with a wait, or it shows what was chosen from a shelf above the few
29
+ * fields that make it; a list too long for a dialog is a `CatalogDrawer`. A form
30
+ * of a few fields alone is a `FormDialog`, and a record already on screen edits
30
31
  * inside its row.
31
32
  */
32
- export type FormDrawerProps = FormSurfaceProps & {
33
+ export type FormDrawerProps = FormSurfaceProps & ({
33
34
  job: "steps";
34
35
  /** "Step 2 of 3", worded by the product, drawn over the title, which stays the job's name. */
35
36
  progress: string;
36
- };
37
+ }
38
+ /** Every step in sight: a `DrawerSteps` in a `FormDrawerBody`, each step with its own actions, wider than the other drawers and with no footer of its own. */
39
+ | {
40
+ job: "stack";
41
+ });
37
42
  /**
38
43
  * The right-side sheet for a catalogue or a setup in steps, at one width.
39
44
  *
40
45
  * @family Compositions
41
- * @when Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code.
46
+ * @when Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code; or, with `job="stack"` and a `DrawerSteps`, making something from a shelf's card with what it holds in sight, as Vercel's Add Connection: an Agent from an Agent template.
42
47
  * @instead "Don’t use Sheet to confirm destructive actions. The default `modal=false` keeps the page interactive, which weakens severity for a delete or revoke." (https://vercel.com/geist/sheet) Ours: a new record from a few fields is a `FormDialog`; a record already in a list edits in its row with `RowEditForm`; a fact on the record's own page changes in place in its section; a consequence is confirmed in a `ConfirmDialog`; a phone's short job is a `Drawer`.
43
- * @behaviour "Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet's one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job's name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
48
+ * @behaviour "Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet's one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job's name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. With `job="stack"` it is 658 px wide from `lg`, for the cards it holds, with no step line over the title and no footer: each card has its own actions. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
44
49
  * @words "Title is Title Case and names the entity (`Deployment Details`, `Member Profile`), not the page action." (https://vercel.com/geist/sheet) "Body is read-mostly: sentence case prose with Title Case sub-headings. Action buttons are optional; when present, follow `Verb + Noun`." (https://vercel.com/geist/sheet) Ours: the title is sentence case and names the job and its object: "Connect Telegram", "Add a skill". The step reads "Step N of M". The primary says what it does: "Connect", "Continue", never "OK".
45
50
  * @access "Trap focus inside the sheet while it’s open and return focus to the trigger row on close so keyboard users keep their place in the list." (https://vercel.com/geist/sheet) "Provide a visible close button labeled `Close` (or an icon button with `aria-label="Close"`) since clicking outside doesn’t dismiss." (https://vercel.com/geist/sheet) "Announce the sheet with `aria-labelledby` pointing at the title; pair it with `aria-describedby` only when the body is short and load-bearing." (https://vercel.com/geist/sheet) Ours: a modal dialog named by its title; focus returns to the opener on close, or to `finalFocus` when the opener is gone. The step is read before the title.
46
51
  */
@@ -1 +1 @@
1
- {"version":3,"file":"form-drawer.d.ts","sourceRoot":"","sources":["../../src/components/form-drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAc,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAG3E,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpE,wFAAwF;AACxF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,qFAAq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AA8J;GAC5J;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,CACnB,CAAC;AAEJ;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAEhD;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAW5E;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,+DAA+D;IAC/D,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/C,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,iIAAiI;AACjI,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAW3E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAqB3F"}
@@ -11,9 +11,9 @@ import { cn } from "../lib/utils.js";
11
11
  * The right-side sheet for a catalogue or a setup in steps, at one width.
12
12
  *
13
13
  * @family Compositions
14
- * @when Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code.
14
+ * @when Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code; or, with `job="stack"` and a `DrawerSteps`, making something from a shelf's card with what it holds in sight, as Vercel's Add Connection: an Agent from an Agent template.
15
15
  * @instead "Don’t use Sheet to confirm destructive actions. The default `modal=false` keeps the page interactive, which weakens severity for a delete or revoke." (https://vercel.com/geist/sheet) Ours: a new record from a few fields is a `FormDialog`; a record already in a list edits in its row with `RowEditForm`; a fact on the record's own page changes in place in its section; a consequence is confirmed in a `ConfirmDialog`; a phone's short job is a `Drawer`.
16
- * @behaviour "Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet's one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job's name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
16
+ * @behaviour "Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet's one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job's name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. With `job="stack"` it is 658 px wide from `lg`, for the cards it holds, with no step line over the title and no footer: each card has its own actions. How long it stays open while work goes on follows the product-design skill's rule/wait-shows-where-it-lives and living-elements.md "System waits".
17
17
  * @words "Title is Title Case and names the entity (`Deployment Details`, `Member Profile`), not the page action." (https://vercel.com/geist/sheet) "Body is read-mostly: sentence case prose with Title Case sub-headings. Action buttons are optional; when present, follow `Verb + Noun`." (https://vercel.com/geist/sheet) Ours: the title is sentence case and names the job and its object: "Connect Telegram", "Add a skill". The step reads "Step N of M". The primary says what it does: "Connect", "Continue", never "OK".
18
18
  * @access "Trap focus inside the sheet while it’s open and return focus to the trigger row on close so keyboard users keep their place in the list." (https://vercel.com/geist/sheet) "Provide a visible close button labeled `Close` (or an icon button with `aria-label="Close"`) since clicking outside doesn’t dismiss." (https://vercel.com/geist/sheet) "Announce the sheet with `aria-labelledby` pointing at the title; pair it with `aria-describedby` only when the body is short and load-bearing." (https://vercel.com/geist/sheet) Ours: a modal dialog named by its title; focus returns to the opener on close, or to `finalFocus` when the opener is gone. The step is read before the title.
19
19
  */
@@ -8,6 +8,8 @@ export type LibraryShelfProps = {
8
8
  /** Above the search, for the people who keep the shelf: the hub's sync. */
9
9
  notice?: ReactNode;
10
10
  search?: CollectionSearchProps;
11
+ /** At the end of the search's row: the switch between a shelf's two views. */
12
+ searchEnd?: ReactNode;
11
13
  loadingLabel: string;
12
14
  empty: EmptyStateKind<"firstUse"> | EmptyStateKind<"nothingYet">;
13
15
  /** Offered only while the search holds text; otherwise a shelf with nothing in it is `empty`. */
@@ -16,18 +18,21 @@ export type LibraryShelfProps = {
16
18
  } & ({
17
19
  sections: readonly CatalogSection[] | undefined;
18
20
  }
19
- /** The Agent templates shelf: AgentCard elements, three to a row. */
21
+ /** The Agent templates shelf: AgentCard elements, or AgentRow elements with `view="rows"`. */
20
22
  | {
21
23
  templates: readonly ReactElement[] | undefined;
24
+ /** Cards to a row from md: three by default. */
25
+ columns?: 2 | 3;
26
+ view?: "cards" | "rows";
22
27
  });
23
28
  /**
24
29
  * A Library shelf: the one line saying what it holds, the search, then the
25
- * reusable things a person adds, as two-column entries or Agent template cards.
30
+ * reusable things a person adds, as two-column entries, or Agent template cards or rows.
26
31
  *
27
32
  * @family Compositions
28
33
  * @when A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery.
29
34
  * @instead The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.
30
- * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates three to a row. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty.
35
+ * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view="rows"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.
31
36
  * @words The product words every string: the optional definition (one sentence on what the shelf holds), the search's label ("Search skills"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.
32
37
  * @access Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.
33
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"library-shelf.d.ts","sourceRoot":"","sources":["../../src/components/library-shelf.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,iIAAiI;IACjI,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EA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AAC,YAAY,CAAC,CAAC;IACjE,iGAAiG;IACjG,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CACnC,GAAG,CACA;IAAE,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAA;CAAE;AACrD,8FAA8F;GAC5F;IACE,SAAS,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAC;IAC/C,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACzB,CACJ,CAAC;AA6CF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAgCpD"}
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Card } from "./card.js";
3
4
  import { CardRow } from "./card-row.js";
4
5
  import { CollectionSearch } from "./collection-search.js";
5
6
  import { EmptyState } from "./empty-state.js";
@@ -7,7 +8,11 @@ import { CatalogList, CatalogSkeleton, catalogIsEmpty } from "../internal/catalo
7
8
  function loadedShelf(props) {
8
9
  if ("sections" in props)
9
10
  return props.sections && { sections: props.sections };
10
- return props.templates && { templates: props.templates };
11
+ return (props.templates && {
12
+ templates: props.templates,
13
+ columns: props.columns ?? 3,
14
+ view: props.view ?? "cards",
15
+ });
11
16
  }
12
17
  function holdsNothing(shelf) {
13
18
  return "sections" in shelf ? catalogIsEmpty(shelf.sections) : shelf.templates.length === 0;
@@ -16,25 +21,28 @@ function ShelfContents({ shelf }) {
16
21
  if ("sections" in shelf) {
17
22
  return _jsx(CatalogList, { columns: 2, headingLevel: 2, sections: shelf.sections });
18
23
  }
19
- return (_jsx(CardRow, { className: "gap-3", columns: 3, render: _jsx("ul", {}), children: shelf.templates.map((template, index) => (_jsx("li", { children: template }, template.key ?? index))) }));
24
+ if (shelf.view === "rows") {
25
+ return (_jsx(Card, { className: "gap-0 overflow-hidden py-0", render: _jsx("ul", {}), children: shelf.templates.map((template, index) => (_jsx("li", { className: "not-last:border-b not-last:border-border", children: template }, template.key ?? index))) }));
26
+ }
27
+ return (_jsx(CardRow, { className: "gap-4", columns: shelf.columns, render: _jsx("ul", {}), children: shelf.templates.map((template, index) => (_jsx("li", { children: template }, template.key ?? index))) }));
20
28
  }
21
29
  /**
22
30
  * A Library shelf: the one line saying what it holds, the search, then the
23
- * reusable things a person adds, as two-column entries or Agent template cards.
31
+ * reusable things a person adds, as two-column entries, or Agent template cards or rows.
24
32
  *
25
33
  * @family Compositions
26
34
  * @when A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery.
27
35
  * @instead The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.
28
- * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates three to a row. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty.
36
+ * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view="rows"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.
29
37
  * @words The product words every string: the optional definition (one sentence on what the shelf holds), the search's label ("Search skills"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.
30
38
  * @access Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.
31
39
  */
32
40
  export function LibraryShelf(props) {
33
- const { definition, empty, failed, loadingLabel, notice, search } = props;
41
+ const { definition, empty, failed, loadingLabel, notice, search, searchEnd } = props;
34
42
  const noMatch = search?.value ? props.noMatch : undefined;
35
43
  const shelf = loadedShelf(props);
36
44
  const nothing = shelf !== undefined && holdsNothing(shelf);
37
45
  const body = failed ? (_jsx(EmptyState, { ...failed, scope: "page" })) : !shelf ? (_jsx(CatalogSkeleton, { columns: 2, label: loadingLabel })) : nothing && noMatch ? (_jsx(EmptyState, { kind: "noResults", ...noMatch, scope: "page" })) : nothing ? (_jsx(EmptyState, { ...empty, scope: "page" })) : (_jsx(ShelfContents, { shelf: shelf }));
38
46
  const showsEmpty = !failed && nothing && !noMatch;
39
- return (_jsxs("div", { className: "grid min-w-0 gap-6", "data-slot": "library-shelf", children: [definition ? _jsx("p", { className: "text-body-md text-muted-foreground", children: definition }) : null, notice, search && !showsEmpty ? _jsx(CollectionSearch, { ...search }) : null, body] }));
47
+ return (_jsxs("div", { className: "grid min-w-0 gap-6", "data-slot": "library-shelf", children: [definition ? _jsx("p", { className: "text-body-md text-muted-foreground", children: definition }) : null, notice, search && !showsEmpty ? (_jsxs("div", { className: "flex min-w-0 items-center gap-2", "data-slot": "library-shelf-search", children: [_jsx("div", { className: "min-w-0 flex-1", children: _jsx(CollectionSearch, { ...search }) }), searchEnd] })) : null, body] }));
40
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"object-workspace.d.ts","sourceRoot":"","sources":["../../src/components/object-workspace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAK9C,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAEjB,MAAM,gBAAgB,CAAC;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CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,+BAuDA"}
1
+ {"version":3,"file":"object-workspace.d.ts","sourceRoot":"","sources":["../../src/components/object-workspace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAK9C,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAEjB,MAAM,gBAAgB,CAAC;AAGxB,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,gGAAgG;IAChG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,eAAe,GACtC,CACI;IACE;;;OAGG;IACH,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,oJAAoJ;IACpJ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CACJ,CAAC;AAEJ,8FAA8F;AAC9F,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,GACvC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAE,CAAC;AAE5C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,YAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACpC,8FAA8F;IAC9F,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,mGAAmG;IACnG,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,sFAAsF;IACtF,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC1B,+BAsBA;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAmB,GACpB,EAAE;IACD,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,+BAyDA"}
@@ -39,5 +39,7 @@ export function ObjectFacts({ facts, density = "default", }) {
39
39
  const termId = useId();
40
40
  return (_jsx("dl", { "data-density": density, "data-slot": "object-facts", className: density === "compact"
41
41
  ? "grid min-w-0 grid-cols-2 gap-x-6 gap-y-2"
42
- : "grid min-w-0 gap-x-6 gap-y-5 sm:grid-cols-2", children: facts.map((fact, index) => (_jsxs("div", { className: cn(density === "compact" ? "grid min-w-0 gap-0.5" : "grid min-w-0 gap-2", fact.block && "col-span-full", fact.right && "text-right"), children: [_jsxs("dt", { className: cn("min-h-4 text-sm/3.5 text-muted-foreground", fact.ellipsis && "truncate"), children: [_jsx("span", { id: `${termId}-${index}`, children: fact.label }), fact.tooltip ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { "aria-label": fact.label, className: "ml-1 inline-flex size-3.5 cursor-help align-text-bottom", children: _jsx(Info, { "aria-hidden": "true", className: "size-3.5" }) }), _jsx(TooltipContent, { children: fact.tooltip })] })) : null] }), _jsx("dd", { "aria-labelledby": `${termId}-${index}`, className: cn("min-w-0 text-sm", fact.block ? "font-normal leading-5 whitespace-pre-wrap" : "font-medium leading-4", fact.ellipsis ? "truncate" : "wrap-break-word"), title: fact.ellipsis && typeof fact.value === "string" ? fact.value : undefined, children: fact.value })] }, fact.label))) }));
42
+ : "grid min-w-0 gap-x-6 gap-y-5 sm:grid-cols-2", children: facts.map((fact, index) => (_jsxs("div", { className: cn(density === "compact"
43
+ ? "grid min-w-0 content-start gap-0.5"
44
+ : "grid min-w-0 content-start gap-2", fact.block && "col-span-full", fact.right && "text-right"), children: [_jsxs("dt", { className: cn("min-h-4 text-sm/3.5 text-muted-foreground", fact.ellipsis && "truncate"), children: [_jsx("span", { id: `${termId}-${index}`, children: fact.label }), fact.tooltip ? (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { "aria-label": fact.label, className: "ml-1 inline-flex size-3.5 cursor-help align-text-bottom", children: _jsx(Info, { "aria-hidden": "true", className: "size-3.5" }) }), _jsx(TooltipContent, { children: fact.tooltip })] })) : null] }), _jsx("dd", { "aria-labelledby": `${termId}-${index}`, className: cn("min-w-0 text-sm", fact.block ? "font-normal leading-5 whitespace-pre-wrap" : "font-medium leading-4", fact.ellipsis ? "truncate" : "wrap-break-word"), title: fact.ellipsis && typeof fact.value === "string" ? fact.value : undefined, children: fact.value })] }, fact.label))) }));
43
45
  }
@@ -1,6 +1,8 @@
1
1
  import type { FormSurfaceProps } from "../components/form-drawer.js";
2
2
  export type FormDrawerFrameProps = FormSurfaceProps & ({
3
3
  job: "catalog";
4
+ } | {
5
+ job: "stack";
4
6
  } | {
5
7
  job: "steps";
6
8
  progress: string;
@@ -1 +1 @@
1
- {"version":3,"file":"form-drawer-frame.d.ts","sourceRoot":"","sources":["../../src/internal/form-drawer-frame.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GACjD,CAAC;IAAE,GAAG,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE5D,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BA0C1D"}
1
+ {"version":3,"file":"form-drawer-frame.d.ts","sourceRoot":"","sources":["../../src/internal/form-drawer-frame.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GACjD,CAAC;IAAE,GAAG,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE/E,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BA+C1D"}
@@ -5,5 +5,7 @@ import { guardUnsaved } from "./unsaved-guard.js";
5
5
  /** The right-side sheet that `FormDrawer` and `CatalogDrawer` both draw. */
6
6
  export function FormDrawerFrame(props) {
7
7
  const { open, onOpenChange, onOpenChangeComplete, title, description, closeLabel, children, initialFocus, finalFocus = true, unsaved, } = props;
8
- return (_jsx(Sheet, { modal: true, open: open, onOpenChange: guardUnsaved(onOpenChange, unsaved), onOpenChangeComplete: onOpenChangeComplete, children: _jsxs(SheetContent, { closeLabel: closeLabel, finalFocus: finalFocus, initialFocus: initialFocus, side: "right", children: [_jsxs(SheetHeader, { className: "pr-12", children: [props.job === "steps" ? (_jsx("p", { className: "font-label-mono text-label-mono text-muted-foreground", "data-slot": "form-drawer-progress", children: props.progress })) : null, _jsx(SheetTitle, { className: "wrap-break-word", children: title }), description ? _jsx(SheetDescription, { children: description }) : null] }), children] }) }));
8
+ return (_jsx(Sheet, { modal: true, open: open, onOpenChange: guardUnsaved(onOpenChange, unsaved), onOpenChangeComplete: onOpenChangeComplete, children: _jsxs(SheetContent, { className: props.job === "stack"
9
+ ? "data-[side=right]:lg:w-[658px] data-[side=right]:sm:max-w-[calc(100%-var(--nc-lg))] [&>[data-slot=sheet-close]]:top-[22px]"
10
+ : undefined, closeLabel: closeLabel, finalFocus: finalFocus, initialFocus: initialFocus, side: "right", children: [_jsxs(SheetHeader, { className: props.job === "stack" ? "pr-12 pb-0" : "pr-12", children: [props.job === "steps" ? (_jsx("p", { className: "font-label-mono text-label-mono text-muted-foreground", "data-slot": "form-drawer-progress", children: props.progress })) : null, _jsx(SheetTitle, { className: "wrap-break-word", children: title }), description ? _jsx(SheetDescription, { children: description }) : null] }), children] }) }));
9
11
  }
@@ -11,6 +11,7 @@ declare function EntryPictureSpecimen(): import("react").JSX.Element;
11
11
  declare function InviteCardSpecimen(): import("react").JSX.Element;
12
12
  declare function FormDialogSpecimen(): import("react").JSX.Element;
13
13
  declare function FormDrawerSpecimen(): import("react").JSX.Element;
14
+ declare function DrawerStepsSpecimen(): import("react").JSX.Element;
14
15
  declare function LibraryShelfSpecimen(): import("react").JSX.Element;
15
16
  declare function OverviewPageSpecimen(): import("react").JSX.Element;
16
17
  declare function RecordSheetSpecimen(): import("react").JSX.Element;
@@ -30,6 +31,7 @@ export declare const COMPOSITIONS: {
30
31
  InviteCard: typeof InviteCardSpecimen;
31
32
  FormDialog: typeof FormDialogSpecimen;
32
33
  FormDrawer: typeof FormDrawerSpecimen;
34
+ DrawerSteps: typeof DrawerStepsSpecimen;
33
35
  LibraryShelf: typeof LibraryShelfSpecimen;
34
36
  ObjectPage: () => import("react").JSX.Element;
35
37
  ObjectSection: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"AAuIA,iBAAS,oBAAoB,gCA+B5B;AAMD,iBAAS,wBAAwB,gCAahC;AAED,iBAAS,qBAAqB,gCA0B7B;AAED,iBAAS,yBAAyB,gCAGjC;AAwBD,iBAAS,mBAAmB,gCAoC3B;AAED,iBAAS,sBAAsB,gCAyD9B;AAED,iBAAS,yBAAyB,gCAUjC;AAED,iBAAS,qBAAqB,gCAwC7B;AAED,iBAAS,kBAAkB,gCAiB1B;AAED,iBAAS,oBAAoB,gCAS5B;AAED,iBAAS,kBAAkB,gCA0B1B;AAED,iBAAS,kBAAkB,gCAuE1B;AAED,iBAAS,kBAAkB,gCAwB1B;AAED,iBAAS,oBAAoB,gCAkD5B;AAED,iBAAS,oBAAoB,gCAqC5B;AAED,iBAAS,mBAAmB,gCA2B3B;AAED,iBAAS,mBAAmB,gCAoB3B;AAwBD,iBAAS,uBAAuB,gCAkD/B;AAmCD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;CA+FE,CAAC"}
1
+ {"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"AAwIA,iBAAS,oBAAoB,gCA+B5B;AAMD,iBAAS,wBAAwB,gCAahC;AAED,iBAAS,qBAAqB,gCA0B7B;AAED,iBAAS,yBAAyB,gCAGjC;AAwBD,iBAAS,mBAAmB,gCAoC3B;AAED,iBAAS,sBAAsB,gCAyD9B;AAED,iBAAS,yBAAyB,gCAUjC;AAED,iBAAS,qBAAqB,gCAwC7B;AAED,iBAAS,kBAAkB,gCAiB1B;AAED,iBAAS,oBAAoB,gCAS5B;AAED,iBAAS,kBAAkB,gCA0B1B;AAED,iBAAS,kBAAkB,gCAuE1B;AAED,iBAAS,kBAAkB,gCAwB1B;AAED,iBAAS,mBAAmB,gCA6B3B;AAED,iBAAS,oBAAoB,gCAkD5B;AAED,iBAAS,oBAAoB,gCAqC5B;AAED,iBAAS,mBAAmB,gCA2B3B;AAED,iBAAS,mBAAmB,gCAoB3B;AAwBD,iBAAS,uBAAuB,gCAkD/B;AAmCD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAgGE,CAAC"}
@@ -4,6 +4,7 @@ import { Mail, Plus, Puzzle, RefreshCw, Wrench } from "lucide-react";
4
4
  import { useState } from "react";
5
5
  import { ActivityFeed } from "../../components/activity-feed.js";
6
6
  import { AgentCard } from "../../components/agent-card.js";
7
+ import { DrawerStepBody, DrawerStepFooter, DrawerSteps } from "../../components/drawer-steps.js";
7
8
  import { AgentOrb } from "../../components/agent-orb.js";
8
9
  import { AgentProfileCard } from "../../components/agent-profile.js";
9
10
  import { BrandWordmark } from "../../components/brand.js";
@@ -309,6 +310,23 @@ function FormDrawerSpecimen() {
309
310
  const [open, setOpen] = useState(false);
310
311
  return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setOpen(true), variant: "outline", children: "Connect Telegram" }), _jsxs(FormDrawer, { closeLabel: "Close", job: "steps", onOpenChange: setOpen, open: open, progress: "Step 1 of 2", title: "Connect Telegram", children: [_jsx(FormDrawerBody, { children: _jsx("p", { className: "text-sm", children: "Open the bot on your phone and send it the code 4821." }) }), _jsx(FormDrawerFooter, { cancel: { label: "Cancel" }, children: _jsx(Button, { onClick: () => setOpen(false), children: "Continue" }) })] })] }));
311
312
  }
313
+ function DrawerStepsSpecimen() {
314
+ return (_jsx("div", { className: "max-w-xl", children: _jsx(DrawerSteps, { steps: [
315
+ {
316
+ id: "chosen",
317
+ state: "chosen",
318
+ title: "Acme Quotes",
319
+ mark: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 32 }),
320
+ children: _jsx(DrawerStepBody, { children: "Writes quotes from the price list." }),
321
+ },
322
+ {
323
+ id: "configure",
324
+ state: "current",
325
+ title: "Configure",
326
+ children: (_jsxs(_Fragment, { children: [_jsx(DrawerStepBody, { children: "The fields of this step." }), _jsx(DrawerStepFooter, { children: _jsx(Button, { children: "Create Agent" }) })] })),
327
+ },
328
+ ] }) }));
329
+ }
312
330
  function LibraryShelfSpecimen() {
313
331
  const art = useEmptyArt();
314
332
  const [search, setSearch] = useState("");
@@ -342,7 +360,7 @@ function LibraryShelfSpecimen() {
342
360
  clearLabel: "Clear search",
343
361
  value: search,
344
362
  onValueChange: setSearch,
345
- }, templates: templates.map((template) => (_jsx(AgentCard, { action: _jsx(Button, { prefix: _jsx(Plus, {}), children: "Create agent" }), job: template.job, meta: template.meta, name: template.name, visual: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: template.form, size: 96 }) }, template.name))) }));
363
+ }, templates: templates.map((template) => (_jsx(AgentCard, { job: template.job, meta: template.meta, name: template.name, onOpen: () => undefined, visual: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: template.form, size: 64 }) }, template.name))) }));
346
364
  }
347
365
  function OverviewPageSpecimen() {
348
366
  return (_jsx(OverviewPage, { exceptions: _jsx(RecordList, { ...MAILBOX_LIST, heading: { title: "Needs attention", actions: { meta: "1 of 3 mailboxes" } }, label: "Needs attention", records: MAILBOXES.filter((mailbox) => mailbox.status === "failed") }), figures: [
@@ -442,6 +460,7 @@ export const COMPOSITIONS = {
442
460
  InviteCard: InviteCardSpecimen,
443
461
  FormDialog: FormDialogSpecimen,
444
462
  FormDrawer: FormDrawerSpecimen,
463
+ DrawerSteps: DrawerStepsSpecimen,
445
464
  LibraryShelf: LibraryShelfSpecimen,
446
465
  ObjectPage: () => (_jsx(ObjectPage, { actions: { secondary: { label: "Edit", onClick: nothing }, menu: PAGE_MENU }, description: "Optician \u00B7 partner since March 2026", facts: [
447
466
  { label: "Customers", value: "4" },
@@ -8,6 +8,7 @@ declare function DisclosureRowSpecimen(): import("react").JSX.Element;
8
8
  declare function UsageTable(): import("react").JSX.Element;
9
9
  export declare const DATA: {
10
10
  AgentCard: () => import("react").JSX.Element;
11
+ AgentRow: () => import("react").JSX.Element;
11
12
  Card: () => import("react").JSX.Element;
12
13
  CardRow: () => import("react").JSX.Element;
13
14
  CodeBlock: typeof CodeBlockSpecimen;
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AA4HA,iBAAS,iBAAiB,gCAczB;AAsCD,iBAAS,iBAAiB,gCAkDzB;AAUD,iBAAS,eAAe,gCASvB;AAED,iBAAS,YAAY,gCAoCpB;AAED,iBAAS,WAAW,gCAuBnB;AAQD,iBAAS,gBAAgB,gCAqBxB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,UAAU,gCAqClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;CAgOU,CAAC"}
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AA4HA,iBAAS,iBAAiB,gCAczB;AAsCD,iBAAS,iBAAiB,gCAkDzB;AAUD,iBAAS,eAAe,gCASvB;AAED,iBAAS,YAAY,gCAoCpB;AAED,iBAAS,WAAW,gCAuBnB;AAQD,iBAAS,gBAAgB,gCAqBxB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,UAAU,gCAqClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAyOU,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { MessageCircle, Plus, RotateCw } from "lucide-react";
3
+ import { MessageCircle, RotateCw } from "lucide-react";
4
4
  import { useState } from "react";
5
- import { AgentCard } from "../../components/agent-card.js";
5
+ import { AgentCard, AgentRow } from "../../components/agent-card.js";
6
6
  import { AgentOrb } from "../../components/agent-orb.js";
7
7
  import { Button } from "../../components/button.js";
8
8
  import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "../../components/card.js";
@@ -155,7 +155,8 @@ function UsageTable() {
155
155
  return (_jsxs(Table, { "aria-label": "Usage by Agent", children: [_jsxs(TableColgroup, { children: [_jsx(TableCol, {}), _jsx(TableCol, { className: "w-36" }), _jsx(TableCol, { className: "w-32" })] }), _jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { scope: "col", children: "Agent" }), _jsx(TableHead, { className: "text-right", scope: "col", children: "Tokens" }), _jsx(TableHead, { className: "text-right", scope: "col", children: "Cost (\u20AC)" })] }) }), _jsx(TableBody, { interactive: true, striped: true, children: USAGE_ROWS.map((row) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: row.agent }), _jsx(TableCell, { className: "text-right tabular-nums", children: row.tokens }), _jsx(TableCell, { className: "text-right tabular-nums", children: row.cost })] }, row.agent))) }), _jsx(TableFooter, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Total" }), _jsx(TableCell, { className: "text-right tabular-nums", children: "3,850,352" }), _jsx(TableCell, { className: "text-right tabular-nums", children: "\u20AC 59.27" })] }) })] }));
156
156
  }
157
157
  export const DATA = {
158
- AgentCard: () => (_jsx("div", { className: "max-w-xs", children: _jsx(AgentCard, { action: _jsx(Button, { prefix: _jsx(Plus, {}), children: "Create agent" }), job: "Writes quotes from the price list", meta: "3 skills \u00B7 2 tasks \u00B7 v1.2.0", name: "Acme Quotes", visual: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 96 }) }) })),
158
+ AgentCard: () => (_jsx("div", { className: "max-w-xs", children: _jsx(AgentCard, { job: "Writes quotes from the price list", meta: "3 skills \u00B7 2 tasks", name: "Acme Quotes", onOpen: () => undefined, visual: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 64 }) }) })),
159
+ AgentRow: () => (_jsx(AgentRow, { job: "Writes quotes from the price list", meta: "3 skills \u00B7 2 tasks", name: "Acme Quotes", onOpen: () => undefined, visual: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 40 }) })),
159
160
  Card: () => (_jsxs("div", { className: "grid max-w-md gap-6", children: [_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Billing contact" }), _jsx(CardDescription, { children: "Who receives invoices and payment reminders." }), _jsx(CardAction, { children: _jsx(Button, { size: "sm", variant: "outline", children: "Edit" }) })] }), _jsx(CardContent, { className: "text-sm", children: "amministrazione@acme.it" }), _jsx(CardFooter, { children: "Changed on 2 October" })] }), _jsxs(Card, { surface: "raised", children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Payment method" }), _jsx(CardDescription, { children: "The card charged for Agents and extra seats." }), _jsx(CardAction, { children: _jsx(Button, { size: "sm", variant: "outline", children: "Change" }) })] }), _jsx(CardContent, { className: "text-sm", children: "Visa ending 4242" })] }), _jsx("div", { className: "max-w-72", children: _jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Personalizzazione" }), _jsx(CardDescription, { children: "Il nome e i colori che vedono i Clienti." }), _jsx(CardAction, { children: _jsx(Button, { size: "sm", variant: "outline", children: "Modifica" }) })] }), _jsx(CardContent, { className: "text-sm", children: "Acme Servizi" })] }) })] })),
160
161
  CardRow: () => (_jsx(CardRow, { columns: 5, children: ["Runs", "Approvals", "Cost", "Tokens", "Cache hit rate"].map((title, index) => (_jsx(Card, { children: _jsxs(CardHeader, { children: [_jsx(CardTitle, { children: title }), _jsx(CardDescription, { children: index === 1 ? "A longer line shows every card keeps the tallest's height." : "—" })] }) }, title))) })),
161
162
  CodeBlock: CodeBlockSpecimen,
@@ -56,6 +56,7 @@ export declare const SPECIMENS: {
56
56
  UpdateCard: () => import("react").JSX.Element;
57
57
  WaitingLine: () => import("react").JSX.Element;
58
58
  AgentCard: () => import("react").JSX.Element;
59
+ AgentRow: () => import("react").JSX.Element;
59
60
  Card: () => import("react").JSX.Element;
60
61
  CardRow: () => import("react").JSX.Element;
61
62
  CodeBlock: () => import("react").JSX.Element;
@@ -168,6 +169,7 @@ export declare const SPECIMENS: {
168
169
  InviteCard: () => import("react").JSX.Element;
169
170
  FormDialog: () => import("react").JSX.Element;
170
171
  FormDrawer: () => import("react").JSX.Element;
172
+ DrawerSteps: () => import("react").JSX.Element;
171
173
  LibraryShelf: () => import("react").JSX.Element;
172
174
  ObjectPage: () => import("react").JSX.Element;
173
175
  ObjectSection: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
@@ -1,4 +1,4 @@
1
- export type UsageName = "ActivityFeed" | "AgentProfileCard" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "EntryPicture" | "EntryScene" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageHeader" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PortalSidebarFrame" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "Card" | "CardRow" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
1
+ export type UsageName = "ActivityFeed" | "AgentProfileCard" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "DrawerSteps" | "EntryPicture" | "EntryScene" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageHeader" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CopyButton" | "LoadMoreButton" | "PageActions" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PortalSidebarFrame" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
2
2
  export type UsageFamily = "Compositions" | "Actions" | "Inputs" | "Choices" | "Status" | "Navigation" | "Data" | "Feedback" | "Menus" | "Charts" | "Other";
3
3
  export type ComponentUsage = {
4
4
  name: UsageName;
@@ -1 +1 @@
1
- {"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb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T,YAAY,GACZ,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,cAAc,GACd,eAAe,GACf,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAsmF1C,CAAC"}
1
+ {"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd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AAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAioF1C,CAAC"}
@@ -91,6 +91,17 @@ export const USAGE = [
91
91
  words: '"`title` is Title Case, `Verb + Noun`, a statement — never a question. `Delete Project`, not `Delete this project?`." (https://vercel.com/geist/destructive-action-modal) "`description` is sentence case, names the consequence, and interpolates the specific resource when relevant. `<b>my-project</b> and all its deployments will be permanently deleted.` reads stronger than `This project and all its deployments will be deleted.`." (https://vercel.com/geist/destructive-action-modal) "`confirmLabel` matches the title 1:1. Never generic (`Confirm`, `OK`, `Continue`), never a bare verb (`Delete`)." (https://vercel.com/geist/destructive-action-modal) "`cancelLabel` defaults to `Cancel`. Override when Cancel is ambiguous, such as `Keep Turn Running` when the primary action is itself a cancellation." (https://vercel.com/geist/destructive-action-modal) "`verificationPhrase`: for entity deletes, type the **resource name itself** (`my-project`) and pair with `verificationLabel="project name"` so the prompt reads `To confirm, type the project name "my-project"`. That\'s the canonical signal that the user knows which thing they\'re acting on. Fall back to a lowercase verb phrase (`disable vercel authentication`) only when there\'s no entity to name." (https://vercel.com/geist/destructive-action-modal) "`irreversibleDescription` names the specific action and resource and ends with `cannot be undone.` — `Deleting my-project cannot be undone.` rather than the generic `This cannot be undone.`. Omit the prop entirely for reversible actions; the prop\'s absence is the signal, not a falsy value." (https://vercel.com/geist/destructive-action-modal) "`error` surfaces the API failure verbatim in Vercel voice: `Couldn\'t save settings. Try again.`. Never dump a raw error object." (https://vercel.com/geist/destructive-action-modal) "Pair the post-confirm success toast verb 1:1 with the primary button: `Delete Project` button, `Project deleted` toast. Never `Project removed`." (https://vercel.com/geist/destructive-action-modal) "Close irreversible bodies with `This cannot be undone.`; close cascade-only bodies with `Some effects cannot be undone.`. Don’t claim full irreversibility for a partial cascade." (https://vercel.com/geist/modal) Ours: the title is sentence case and names the record, "Remove pec@acme.it", and the confirm repeats the verb and the noun, "Remove mailbox", so the two share a verb and not every word; its success toast uses the same verb ("Mailbox removed"). The description names the record in medium weight.',
92
92
  access: '"The verification input is associated with its prompt via `aria-labelledby` + `htmlFor`. Screen readers announce the full prompt (`To confirm, type "delete my-project"`) on focus." (https://vercel.com/geist/destructive-action-modal) "The Warning icon in the irreversibility band is `aria-hidden`; the sentence carries the meaning so nothing is announced twice." (https://vercel.com/geist/destructive-action-modal) "Focus stays inside the modal across an `error` transition so the user can retry without losing context. After success, return focus to the trigger." (https://vercel.com/geist/destructive-action-modal) "Set `aria-labelledby` to the `Modal.Title` id so screen readers announce the title on open." (https://vercel.com/geist/modal) "Keep the Cancel button literally `Cancel` so screen-reader users hear a stable dismissal label across destructive flows." (https://vercel.com/geist/modal) Ours: `role="alertdialog"` named by its title and described by its consequence; the note is `role="note"` with its icon hidden. Focus starts on Cancel, or in the field with `verify`.',
93
93
  },
94
+ {
95
+ name: "DrawerSteps",
96
+ module: "drawer-steps",
97
+ family: "Compositions",
98
+ summary: "A job in a drawer as a stack of cards, one per step, every step in sight from the start.",
99
+ when: 'Inside a `FormDrawer` with `job="stack"`: a job a person starts from a card and finishes in the drawer, as Vercel\'s Add Connection: what they chose, then the steps that remain.',
100
+ instead: 'Steps a person follows on a page are `NumberedSteps`; a setup whose steps replace each other around a wait is `FormDrawer` with `job="steps"`.',
101
+ behaviour: "One card per step, 16 px apart. Each card's first row is 20 px of mark and its title, 24 px in from its sides. What was chosen stands first with its own mark, and what the person should know about it under that; the current step has its number in ink, its content and its actions in a band under it. The orb may overhang its 20 px, since its drawn edge is inside its box.",
102
+ words: "A step's title is one or two words: *Review*, *Configure*.",
103
+ access: 'An ordered list; the current step carries `aria-current="step"`; the drawn numbers are hidden, since the list reads the position.',
104
+ },
94
105
  {
95
106
  name: "EntryPicture",
96
107
  module: "entry-picture",
@@ -129,9 +140,9 @@ export const USAGE = [
129
140
  module: "form-drawer",
130
141
  family: "Compositions",
131
142
  summary: "The right-side sheet for a catalogue or a setup in steps, at one width.",
132
- when: "Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code.",
143
+ when: "Ours: choosing from a catalogue too long for a dialog (through `CatalogDrawer`), or setting something up in several steps with a wait: connect a messaging channel, Telegram's code; or, with `job=\"stack\"` and a `DrawerSteps`, making something from a shelf's card with what it holds in sight, as Vercel's Add Connection: an Agent from an Agent template.",
133
144
  instead: "\"Don’t use Sheet to confirm destructive actions. The default `modal=false` keeps the page interactive, which weakens severity for a delete or revoke.\" (https://vercel.com/geist/sheet) Ours: a new record from a few fields is a `FormDialog`; a record already in a list edits in its row with `RowEditForm`; a fact on the record's own page changes in place in its section; a consequence is confirmed in a `ConfirmDialog`; a phone's short job is a `Drawer`.",
134
- behaviour: '"Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet\'s one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job\'s name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. How long it stays open while work goes on follows the product-design skill\'s rule/wait-shows-where-it-lives and living-elements.md "System waits".',
145
+ behaviour: '"Sheet defaults to `modal=false` so toasts and other high-z elements stay reachable. Keep that default unless the sheet owns the screen." (https://vercel.com/geist/sheet) "Pick `side` from the trigger location: a row inspector slides from `right`, a global filter from `left`. Don’t change sides mid-session." (https://vercel.com/geist/sheet) "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet) Ours: a modal `Sheet` from the right edge over the scrim, because the drawer owns the screen, at the Sheet\'s one width that no caller sets. The header holds the step ("Step 2 of 3", in mono) over the title, which stays the job\'s name, then the description and Close; the body scrolls between the header and a footer that stays, with no fill or rule of its own, Cancel then the primary at its trailing edge. A press outside does not close it; Escape does, unless `unsaved.dirty` holds it back. Cancel holds while a save runs. With `job="stack"` it is 658 px wide from `lg`, for the cards it holds, with no step line over the title and no footer: each card has its own actions. How long it stays open while work goes on follows the product-design skill\'s rule/wait-shows-where-it-lives and living-elements.md "System waits".',
135
146
  words: '"Title is Title Case and names the entity (`Deployment Details`, `Member Profile`), not the page action." (https://vercel.com/geist/sheet) "Body is read-mostly: sentence case prose with Title Case sub-headings. Action buttons are optional; when present, follow `Verb + Noun`." (https://vercel.com/geist/sheet) Ours: the title is sentence case and names the job and its object: "Connect Telegram", "Add a skill". The step reads "Step N of M". The primary says what it does: "Connect", "Continue", never "OK".',
136
147
  access: '"Trap focus inside the sheet while it’s open and return focus to the trigger row on close so keyboard users keep their place in the list." (https://vercel.com/geist/sheet) "Provide a visible close button labeled `Close` (or an icon button with `aria-label="Close"`) since clicking outside doesn’t dismiss." (https://vercel.com/geist/sheet) "Announce the sheet with `aria-labelledby` pointing at the title; pair it with `aria-describedby` only when the body is short and load-bearing." (https://vercel.com/geist/sheet) Ours: a modal dialog named by its title; focus returns to the opener on close, or to `finalFocus` when the opener is gone. The step is read before the title.',
137
148
  },
@@ -150,10 +161,10 @@ export const USAGE = [
150
161
  name: "LibraryShelf",
151
162
  module: "library-shelf",
152
163
  family: "Compositions",
153
- summary: "A Library shelf: the one line saying what it holds, the search, then the reusable things a person adds, as two-column entries or Agent template cards.",
164
+ summary: "A Library shelf: the one line saying what it holds, the search, then the reusable things a person adds, as two-column entries, or Agent template cards or rows.",
154
165
  when: "A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery.",
155
166
  instead: "The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.",
156
- behaviour: "The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates three to a row. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty.",
167
+ behaviour: "The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view=\"rows\"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.",
157
168
  words: "The product words every string: the optional definition (one sentence on what the shelf holds), the search's label (\"Search skills\"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.",
158
169
  access: "Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.",
159
170
  },
@@ -679,7 +690,7 @@ export const USAGE = [
679
690
  module: "agent-orb",
680
691
  family: "Status",
681
692
  summary: "An Agent, anywhere: her orb, the only thing that moves on its own.",
682
- when: "An Agent, anywhere: 20 in the sidebar, 32 in a row, 64 on her Profile card, 96 in an Agent card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and 160 px, and no other. Detail follows the size the orb is drawn at: up to 32 px it draws the engine's lightest dot profile, at 40 px the middle one and from 64 px the full one, since a small orb cannot show the full profile's dots apart. On a photograph the orb takes the stronger `presence=\"over-picture\"` weight; everywhere else it is `plain`.",
693
+ when: "An Agent, anywhere: 20 in the sidebar, 32 in a row, 40 in a gallery's row, 64 on her Profile card and an Agent card, 160 on entry. There is no other Agent picture. The sizes are 20, 24, 32, 40, 64, 96 and 160 px, and no other. Detail follows the size the orb is drawn at: up to 32 px it draws the engine's lightest dot profile, at 40 px the middle one and from 64 px the full one, since a small orb cannot show the full profile's dots apart. On a photograph the orb takes the stronger `presence=\"over-picture\"` weight; everywhere else it is `plain`.",
683
694
  instead: 'A person is an `Avatar`. The system\'s own wait is the waiting line, never an orb. An orb in artwork, such as a sign-in picture, takes `motion="ambient"` and claims no activity. An orb that stands for an Agent shows her real state.',
684
695
  behaviour: "The only thing that moves on its own. Idle particles turn at 86.4% of the form's native pace, with a separate 6.4 s breath. Working sweeps a ribbon every 3.2 s; thinking passes three pulses over 2.4 s. Waiting leans softly as centered pause bars arrive; blocked recoils as a centered stop sign lands. Both entrances settle over 2 s, then waiting breathes and blocked holds still. Done celebrates once over 4.8 s, then rests at 72% of native particle speed with the Idle breath. A state change interrupts the previous gesture; `motionKey` replays it and `paused` freezes it. A surface that only knows a machine checked in draws idle. No state draws a circle around the orb. Ambient motion moves the form at its own pace with no state pose or cue. An orb at rest (idle, ambient, or done after its celebration) paints 15 frames a second; every other state, gesture and the celebration paint 30. The pace is the same at either rate. Reduced motion: movement stops, a thinking or working orb breathes between full ink and 0.45 opacity so busy still reads as busy, an ambient orb holds still, and waiting and blocked keep their centered signs without an entrance gesture. An orb is one of seven forms, `ribbon`, `lattice`, `orbit`, `globe`, `network`, `braid` and `morph`, in one colour a person chose: cobalto, verde or arancio, or none, which draws it in the text colour. Giallo is not offered because it fails 3:1 on white; rosso is not offered because it is the error red. nadicode's own two Agents are the only ones with a figure nobody chooses, the same at every size and in every state. Nadia is her striped ribbon, the form `nadia`: azzurro, verde, the text colour and rosso along its whole length. Sofia, nadicode's own Agent in the Portal, is her sister, the form `sofia`: the shapeshifting morph, a circle that turns into a triangle and a square, its outline cut into five arcs in the brand's identity colours, cobalto, verde, giallo, arancio and rosso, each holding its arc through every shape. Neither figure is ever stored as an Agent's look. An Agent's form is stored as `orb:<form>` and its colour as the identity hex or nothing; a template declares its starting look the same way. The stored-appearance resolver reads it: the root Agent always draws as Nadia, an unknown form draws `orbit`, an unknown colour the text colour, and a stored rosso draws arancio. The retired `forma:*` shapes each draw one of the seven forms, so an Agent that chose one before the orbs keeps a distinct look. An Agent's look is a person's choice and is never derived from a name, id or role. A template that names no look is the one exception: `templateAgentOrb` gives it a form and colour fixed by its slug, so the templates in a gallery differ and the Portal and Nadia draw the same one; Nadia and Sofia keep their figures.",
685
696
  words: "Text sits beside the orb, never on it. Where the exact state matters a word names it: *Working*, *Waiting for you*.",
@@ -1096,12 +1107,23 @@ export const USAGE = [
1096
1107
  name: "AgentCard",
1097
1108
  module: "agent-card",
1098
1109
  family: "Data",
1099
- summary: "One Agent, or another pictured object, as a card in a gallery, as Vercel's Templates gallery draws a template.",
1110
+ summary: "One Agent, or another pictured object, as a card in a gallery.",
1100
1111
  when: "A gallery of Agents or templates where each one is chosen by its picture and its job: the Agents to create from, the templates of a hub. An Agent shown as an object is this one card shape wherever it appears, in the Portal's Library and in Nadia's gallery alike.",
1101
- instead: "A list of Agents to open is `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page heading. A Library skill or plugin is a row of its collection (`CollectionPage`).",
1102
- behaviour: "Vercel's template card: the name over its job, cut after two lines, then the small meta and an optional status row, and under them the preview tile, inset 32 px from the card's leading edge and running off its trailing and bottom edges, the picture (her orb at 96) in its middle on the recessed ground. The one action stands at the name's right, as a card's one header action does while the card's content is at least 18rem wide; a narrower card puts it under the words, so the name keeps the card's width. A long name wraps inside the card. A text object, with no picture, ends after its words.",
1103
- words: "The name as the Agent calls herself; the job in one line (*Writes quotes from the price list*); the meta as short facts joined by a middle dot (*6 skills · v1.2.0*); the action verb and noun (*Create Agent*).",
1104
- access: "The name is the card's heading text; the orb is decorative beside it; the action is a real button or link.",
1112
+ instead: "The same gallery read as a list is `AgentRow`. A list of Agents to open is `AgentListRow`. An Agent's own page opens with `AgentProfileCard`, where the name is the page heading. A Library skill or plugin is a row of its collection (`CollectionPage`).",
1113
+ behaviour: "As Vercel's Connect cards: every card has the same slots, so what one holds never moves another's. The picture stands top left, her orb at 64 with its empty edge outside the card's padding, and the status (her apps) top right; at the card's foot her name on one line, her job in a slot of two lines cut after the second, and the meta, with the one action at its end. With `onOpen` the whole card is one button and holds no action; on hover its ground lifts and, with `glow`, the corner behind the status fades up in a blurred 112 px of that logo or colour over 500 ms. A text object, with no picture, keeps the same foot.",
1114
+ words: "The name as the Agent calls herself; the job in one line (*Writes quotes from the price list*); the meta as short facts joined by a middle dot (*6 skills · 2 tasks*); the action verb and noun (*Start*).",
1115
+ access: "With `onOpen` the name, the job and the meta name the button, in that order, and the status and the orb stay out of its name; the glow is hidden; an action is a real button or link.",
1116
+ },
1117
+ {
1118
+ name: "AgentRow",
1119
+ module: "agent-card",
1120
+ family: "Data",
1121
+ summary: "One Agent of a gallery as a row: the same object as `AgentCard`, read as a list.",
1122
+ when: "A shelf's rows view, inside `LibraryShelf` with `view=\"rows\"`: the Portal's Agent templates.",
1123
+ instead: "The gallery's default is `AgentCard`. A list of Agents to open as records is a `RecordList` row; Nadia's sidebar is `AgentListRow`.",
1124
+ behaviour: "The whole row is one button, 64 px high at every width: her orb at 40, her name over her job, each on one line, the status and the meta in columns of 128 px that line up down the shelf, then a chevron. Below `md` the columns go, and the card or the surface it opens holds them.",
1125
+ words: "As `AgentCard`.",
1126
+ access: "The row's text names the button; the orb and the chevron are decorative.",
1105
1127
  },
1106
1128
  {
1107
1129
  name: "Card",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.199",
3
+ "version": "12.1.200",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -78,7 +78,7 @@
78
78
  "@headless-tree/react": "1.8.0",
79
79
  "@iconify-icons/logos": "^2.0.3",
80
80
  "@iconify/react": "^6.0.2",
81
- "@nadicodeai/design-system": "12.1.199",
81
+ "@nadicodeai/design-system": "12.1.200",
82
82
  "@tanstack/react-table": "^9.3.1",
83
83
  "@vgpu/wgsl": "0.6.0",
84
84
  "class-variance-authority": "^0.7.1",