@nadicodeai/ui 12.1.199 → 12.1.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/agent-card.d.ts +54 -22
- package/dist/components/agent-card.d.ts.map +1 -1
- package/dist/components/agent-card.js +47 -20
- package/dist/components/agent-orb.d.ts +2 -2
- package/dist/components/agent-orb.js +2 -2
- package/dist/components/catalog-card.d.ts +27 -0
- package/dist/components/catalog-card.d.ts.map +1 -0
- package/dist/components/catalog-card.js +19 -0
- package/dist/components/drawer-steps.d.ts +31 -0
- package/dist/components/drawer-steps.d.ts.map +1 -0
- package/dist/components/drawer-steps.js +27 -0
- package/dist/components/form-drawer.d.ts +11 -6
- package/dist/components/form-drawer.d.ts.map +1 -1
- package/dist/components/form-drawer.js +2 -2
- package/dist/components/library-shelf.d.ts +20 -4
- package/dist/components/library-shelf.d.ts.map +1 -1
- package/dist/components/library-shelf.js +28 -8
- package/dist/components/object-workspace.d.ts.map +1 -1
- package/dist/components/object-workspace.js +3 -1
- package/dist/components/record-sheet.d.ts +19 -6
- package/dist/components/record-sheet.d.ts.map +1 -1
- package/dist/components/record-sheet.js +11 -6
- package/dist/components/sheet.d.ts +4 -2
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +5 -3
- package/dist/components/sidebar-sections.d.ts +3 -1
- package/dist/components/sidebar-sections.d.ts.map +1 -1
- package/dist/components/sidebar-sections.js +3 -3
- package/dist/components/step-cards.d.ts +28 -0
- package/dist/components/step-cards.d.ts.map +1 -0
- package/dist/components/step-cards.js +21 -0
- package/dist/internal/form-drawer-frame.d.ts +2 -0
- package/dist/internal/form-drawer-frame.d.ts.map +1 -1
- package/dist/internal/form-drawer-frame.js +3 -1
- package/dist/showcase/specimens/compositions.d.ts +6 -0
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +39 -1
- package/dist/showcase/specimens/data.d.ts +1 -0
- package/dist/showcase/specimens/data.d.ts.map +1 -1
- package/dist/showcase/specimens/data.js +4 -3
- package/dist/showcase/specimens/index.d.ts +4 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/usage.generated.d.ts +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +61 -17
- package/package.json +2 -2
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import type { RowData } from "@tanstack/react-table";
|
|
1
2
|
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import { type IdentityMarkProps } from "./identity-mark.js";
|
|
2
4
|
import type { CopyButtonProps } from "./copy-button.js";
|
|
3
5
|
import { type ObjectFact } from "./object-workspace.js";
|
|
4
6
|
import { type PageCommand } from "./page-actions.js";
|
|
7
|
+
import { type RecordListProps } from "./record-list.js";
|
|
8
|
+
import { type StepCardsProps } from "./step-cards.js";
|
|
5
9
|
import { SheetContent } from "./sheet.js";
|
|
6
|
-
export type RecordSheetProps = {
|
|
10
|
+
export type RecordSheetProps<THeld extends RowData = never, THeldCommand extends string = never> = {
|
|
7
11
|
open: boolean;
|
|
8
12
|
onOpenChange: (open: boolean) => void;
|
|
9
13
|
/** Names the record: "invoice.payment_failed". */
|
|
10
14
|
title: string;
|
|
15
|
+
/** The record's mark beside its name, as its row draws it. */
|
|
16
|
+
mark?: IdentityMarkProps;
|
|
11
17
|
/** One muted line: "Beta Studio · Oct 13, 14:02". */
|
|
12
18
|
description?: ReactNode;
|
|
13
19
|
closeLabel: string;
|
|
@@ -17,6 +23,13 @@ export type RecordSheetProps = {
|
|
|
17
23
|
label: string;
|
|
18
24
|
value: string;
|
|
19
25
|
} & Pick<CopyButtonProps, "copyLabel" | "copiedLabel" | "copyFailedLabel">;
|
|
26
|
+
/**
|
|
27
|
+
* The few records this record holds, each managed on its own: an app's accounts. A `RecordList`
|
|
28
|
+
* with its `heading`, whose actions add one, and each row's commands.
|
|
29
|
+
*/
|
|
30
|
+
held?: RecordListProps<THeld, THeldCommand>;
|
|
31
|
+
/** The record's setup in numbered steps, in the body, in place of its facts: connecting an app. */
|
|
32
|
+
steps?: StepCardsProps;
|
|
20
33
|
/** The way to the record's owner: "Open Beta Studio". */
|
|
21
34
|
footer?: PageCommand;
|
|
22
35
|
/** The row it opened from, which takes focus back on Close. */
|
|
@@ -26,11 +39,11 @@ export type RecordSheetProps = {
|
|
|
26
39
|
* One record from a list, looked at in a sheet at the right edge, then back to the list.
|
|
27
40
|
*
|
|
28
41
|
* @family Compositions
|
|
29
|
-
* @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row.
|
|
30
|
-
* @instead A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.
|
|
31
|
-
* @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px. The header holds the record's name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
|
|
42
|
+
* @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`).
|
|
43
|
+
* @instead A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own beyond the records it holds has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.
|
|
44
|
+
* @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
|
|
32
45
|
* @words The title is the record's own name, as its row shows it. The footer's command names where it goes: "Open Beta Studio".
|
|
33
|
-
* @access A dialog named by its title, not `modal
|
|
46
|
+
* @access A dialog named by its title, not `modal` while it is only read: no scrim, and focus stays inside it; `modal`, with the scrim, while it holds records or a setup. Escape and Close close it. Focus returns to the row it opened from (`finalFocus`) after every close but a mouse, touch or pen one, as `Sheet` does by default; a caller that passes its own `finalFocus` decides. The payload is a read-only text area named by its label.
|
|
34
47
|
*/
|
|
35
|
-
export declare function RecordSheet({ open, onOpenChange, title, description, closeLabel, facts, code, footer, finalFocus, }: RecordSheetProps): import("react").JSX.Element;
|
|
48
|
+
export declare function RecordSheet<THeld extends RowData = never, THeldCommand extends string = never>({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, steps, footer, finalFocus, }: RecordSheetProps<THeld, THeldCommand>): import("react").JSX.Element;
|
|
36
49
|
//# sourceMappingURL=record-sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-sheet.d.ts","sourceRoot":"","sources":["../../src/components/record-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"record-sheet.d.ts","sourceRoot":"","sources":["../../src/components/record-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAe,KA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AS,MAAM,GAAG,KAAK,EAAE,EAC9F,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,IAAI,EACJ,WAAW,EACX,UAAU,EACV,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,UAAU,GACX,EAAE,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,+BA8CvC"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { CodeBlock } from "./code-block.js";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { IdentityMark } from "./identity-mark.js";
|
|
4
6
|
import { ObjectFacts } from "./object-workspace.js";
|
|
5
7
|
import { PageCommandButton } from "./page-actions.js";
|
|
8
|
+
import { RecordList } from "./record-list.js";
|
|
9
|
+
import { StepCards } from "./step-cards.js";
|
|
6
10
|
import { Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, } from "./sheet.js";
|
|
7
11
|
/**
|
|
8
12
|
* One record from a list, looked at in a sheet at the right edge, then back to the list.
|
|
9
13
|
*
|
|
10
14
|
* @family Compositions
|
|
11
|
-
* @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row.
|
|
12
|
-
* @instead A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.
|
|
13
|
-
* @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px. The header holds the record's name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
|
|
15
|
+
* @when A list's record holds more than its row shows and is only read, not changed: a Stripe event in Billing, a usage row. Or it holds a few records of its own that a person manages one by one, beside the list: an app's accounts in Nadia's Apps, each connected, renamed, reconnected or disconnected from its row in the sheet (`held`).
|
|
16
|
+
* @instead A record changed from its list edits in its row with `RowEditForm`; a record with sections and commands of its own beyond the records it holds has its own page, an `ObjectPage`; a choice from a catalogue is a `CatalogDrawer`.
|
|
17
|
+
* @behaviour Opens from the right as an inset card 12 px from the window's edges with 16 px corners, the list still behind it and, while it is only read, usable. It is 420 px wide from 640 px, 512 px from 1024 px (the sheet's own width), and the window less its margins below 640 px; one that holds records or a setup is 640 px from 1024 px, as Vercel's Add Connection is about that wide, so each held record's row stands on one line with its status and its commands, and it dims the page behind it and owns the screen while it is open. The header holds the record's mark at 40 beside its name, one muted line and Close; the body scrolls through its facts as labelled values, then the read-only payload with its copy button, then its setup as `StepCards`, then the records it holds as a `RecordList` under its heading, whose actions add one and whose rows carry their own status and commands; the footer holds one command to the record's owner. A press outside does not close it. It has no states of its own: it opens only on a record.
|
|
14
18
|
* @words The title is the record's own name, as its row shows it. The footer's command names where it goes: "Open Beta Studio".
|
|
15
|
-
* @access A dialog named by its title, not `modal
|
|
19
|
+
* @access A dialog named by its title, not `modal` while it is only read: no scrim, and focus stays inside it; `modal`, with the scrim, while it holds records or a setup. Escape and Close close it. Focus returns to the row it opened from (`finalFocus`) after every close but a mouse, touch or pen one, as `Sheet` does by default; a caller that passes its own `finalFocus` decides. The payload is a read-only text area named by its label.
|
|
16
20
|
*/
|
|
17
|
-
export function RecordSheet({ open, onOpenChange, title, description, closeLabel, facts, code, footer, finalFocus, }) {
|
|
18
|
-
|
|
21
|
+
export function RecordSheet({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, steps, footer, finalFocus, }) {
|
|
22
|
+
const managed = held !== undefined || steps !== undefined;
|
|
23
|
+
return (_jsx(Sheet, { modal: managed, onOpenChange: onOpenChange, open: open, children: _jsxs(SheetContent, { className: cn("max-sm:data-[side=right]:left-nadicode-sm max-sm:data-[side=right]:w-auto data-[side=right]:sm:w-[420px] data-[side=right]:sm:max-w-[calc(100%-var(--nc-lg))]", managed && "data-[side=right]:lg:w-[640px]"), closeLabel: closeLabel, finalFocus: finalFocus, side: "right", children: [_jsxs(SheetHeader, { className: "flex-row items-center gap-nadicode-sm pr-12", children: [mark ? _jsx(IdentityMark, { ...mark, size: 40 }) : null, _jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx(SheetTitle, { className: "wrap-break-word", children: title }), description ? _jsx(SheetDescription, { children: description }) : null] })] }), _jsxs("div", { className: "grid min-h-0 flex-1 grid-cols-[minmax(0,1fr)] content-start gap-nadicode-md overflow-y-auto px-nadicode-lg pb-nadicode-lg", "data-slot": "record-sheet-body", children: [facts.length > 0 ? _jsx(ObjectFacts, { facts: facts }) : null, steps ? _jsx(StepCards, { ...steps }) : null, code ? (_jsx(CodeBlock, { code: code.value, copiedLabel: code.copiedLabel, copyFailedLabel: code.copyFailedLabel, copyLabel: code.copyLabel, label: code.label })) : null, held ? _jsx(RecordList, { ...held }) : null] }), footer ? (_jsx(SheetFooter, { className: "flex-row justify-end", "data-slot": "record-sheet-footer", children: _jsx(PageCommandButton, { command: footer, variant: "outline" }) })) : null] }) }));
|
|
19
24
|
}
|
|
@@ -29,8 +29,10 @@ type SheetProps = Omit<SheetPrimitive.Root.Props, "modal" | "disablePointerDismi
|
|
|
29
29
|
* "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet)
|
|
30
30
|
* Ours: `modal` dims the page and blocks it, for a sheet that owns the screen, and `noOverlay` on
|
|
31
31
|
* its content drops the scrim again. An inset card with 16 px corners, 12 px from the window's
|
|
32
|
-
* edges
|
|
33
|
-
*
|
|
32
|
+
* edges and 12 px below the band where a desktop window draws its own controls over the page
|
|
33
|
+
* (`env(titlebar-area-height)`), so its Close never stands under the window's; a side panel owns its width, 512 px from 1024 px and the window less its margins
|
|
34
|
+
* below it, and only `RecordSheet` changes it: 420 px between 640 and 1024 px, and 640 px from 1024 px while it
|
|
35
|
+
* holds records of its own or a setup. A given kind of sheet always opens on the
|
|
34
36
|
* same side. A press outside never closes it, Escape does, except the phone navigation, which
|
|
35
37
|
* `closesOnScrimPress` closes on a press on its scrim. The body scrolls between a header and a
|
|
36
38
|
* footer with its actions at the trailing edge, as Vercel's drawers (Production Checklist): the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAUjE,KAAK,UAAU,GAAG,IAAI,CACpB,cAAc,CAAC,IAAI,CAAC,KAAK,EACzB,OAAO,GAAG,yBAAyB,GAAG,aAAa,CACpD,GAAG;IACF;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAUjE,KAAK,UAAU,GAAG,IAAI,CACpB,cAAc,CAAC,IAAI,CAAC,KAAK,EACzB,OAAO,GAAG,yBAAyB,GAAG,aAAa,CACpD,GAAG;IACF;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAS,KAAK,CAAC,EAAE,KAAa,EAAE,kBAA0B,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,qBAWjF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,CAAC,KAAK,qBAE/D;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,qBAE3D;AAsBD,KAAK,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,KAAK,GAAG;IACpD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,SAAiB,EACjB,UAAU,EACV,UAAqC,EACrC,GAAG,KAAK,EACT,EAAE,iBAAiB,qBAkCnB;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBASxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,qBAStE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,WAAW,CAAC,KAAK,qBASlF;AAED,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
package/dist/components/sheet.js
CHANGED
|
@@ -25,8 +25,10 @@ const SheetModalContext = React.createContext(false);
|
|
|
25
25
|
* "Outside-click does not auto-close, so always render an explicit close affordance and honor Escape." (https://vercel.com/geist/sheet)
|
|
26
26
|
* Ours: `modal` dims the page and blocks it, for a sheet that owns the screen, and `noOverlay` on
|
|
27
27
|
* its content drops the scrim again. An inset card with 16 px corners, 12 px from the window's
|
|
28
|
-
* edges
|
|
29
|
-
*
|
|
28
|
+
* edges and 12 px below the band where a desktop window draws its own controls over the page
|
|
29
|
+
* (`env(titlebar-area-height)`), so its Close never stands under the window's; a side panel owns its width, 512 px from 1024 px and the window less its margins
|
|
30
|
+
* below it, and only `RecordSheet` changes it: 420 px between 640 and 1024 px, and 640 px from 1024 px while it
|
|
31
|
+
* holds records of its own or a setup. A given kind of sheet always opens on the
|
|
30
32
|
* same side. A press outside never closes it, Escape does, except the phone navigation, which
|
|
31
33
|
* `closesOnScrimPress` closes on a press on its scrim. The body scrolls between a header and a
|
|
32
34
|
* footer with its actions at the trailing edge, as Vercel's drawers (Production Checklist): the
|
|
@@ -61,7 +63,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
61
63
|
}
|
|
62
64
|
function SheetContent({ className, children, side = "right", noOverlay = false, closeLabel, finalFocus = returnFocusUnlessPointer, ...props }) {
|
|
63
65
|
const modal = React.useContext(SheetModalContext);
|
|
64
|
-
return (_jsxs(SheetPortal, { children: [modal && !noOverlay ? _jsx(SheetOverlay, {}) : null, _jsxs(SheetPrimitive.Popup, { "data-slot": "sheet-content", "data-nc-ui": "", finalFocus: finalFocus, "data-side": side, className: cn("pointer-events-auto", "fixed z-50 flex max-h-[calc(100%-var(--nc-lg))] flex-col gap-nadicode-md rounded-xl border-0 bg-popover bg-clip-padding text-sm text-popover-foreground nc-elevation-modal transition-[opacity,translate] duration-(--nc-duration-close) ease-(--nc-ease-out-strong) data-open:duration-(--nc-duration-open) data-ending-style:opacity-0 data-starting-style:opacity-0 motion-reduce:transition-opacity data-[side=bottom]:inset-x-nadicode-sm data-[side=bottom]:bottom-nadicode-sm data-[side=bottom]:h-auto data-[side=bottom]:data-ending-style:translate-y-nadicode-md data-[side=bottom]:data-starting-style:translate-y-nadicode-md motion-reduce:data-[side=bottom]:data-ending-style:translate-none motion-reduce:data-[side=bottom]:data-starting-style:translate-none data-[side=left]:
|
|
66
|
+
return (_jsxs(SheetPortal, { children: [modal && !noOverlay ? _jsx(SheetOverlay, {}) : null, _jsxs(SheetPrimitive.Popup, { "data-slot": "sheet-content", "data-nc-ui": "", finalFocus: finalFocus, "data-side": side, className: cn("pointer-events-auto", "fixed z-50 flex max-h-[calc(100%-var(--nc-lg)-env(titlebar-area-height,0px))] flex-col gap-nadicode-md rounded-xl border-0 bg-popover bg-clip-padding text-sm text-popover-foreground nc-elevation-modal transition-[opacity,translate] duration-(--nc-duration-close) ease-(--nc-ease-out-strong) data-open:duration-(--nc-duration-open) data-ending-style:opacity-0 data-starting-style:opacity-0 motion-reduce:transition-opacity data-[side=bottom]:inset-x-nadicode-sm data-[side=bottom]:bottom-nadicode-sm data-[side=bottom]:h-auto data-[side=bottom]:data-ending-style:translate-y-nadicode-md data-[side=bottom]:data-starting-style:translate-y-nadicode-md motion-reduce:data-[side=bottom]:data-ending-style:translate-none motion-reduce:data-[side=bottom]:data-starting-style:translate-none data-[side=left]:top-[calc(env(titlebar-area-height,0px)+var(--nc-sm))] data-[side=left]:bottom-nadicode-sm data-[side=left]:left-nadicode-sm data-[side=left]:w-[calc(100%-var(--nc-lg))] data-[side=left]:data-ending-style:-translate-x-nadicode-md data-[side=left]:data-starting-style:-translate-x-nadicode-md motion-reduce:data-[side=left]:data-ending-style:translate-none motion-reduce:data-[side=left]:data-starting-style:translate-none data-[side=right]:top-[calc(env(titlebar-area-height,0px)+var(--nc-sm))] data-[side=right]:bottom-nadicode-sm data-[side=right]:right-nadicode-sm data-[side=right]:w-[calc(100%-var(--nc-lg))] data-[side=right]:data-ending-style:translate-x-nadicode-md data-[side=right]:data-starting-style:translate-x-nadicode-md motion-reduce:data-[side=right]:data-ending-style:translate-none motion-reduce:data-[side=right]:data-starting-style:translate-none data-[side=top]:inset-x-nadicode-sm data-[side=top]:top-[calc(env(titlebar-area-height,0px)+var(--nc-sm))] data-[side=top]:h-auto data-[side=top]:data-ending-style:-translate-y-nadicode-md data-[side=top]:data-starting-style:-translate-y-nadicode-md motion-reduce:data-[side=top]:data-ending-style:translate-none motion-reduce:data-[side=top]:data-starting-style:translate-none data-[side=left]:lg:w-[512px] data-[side=right]:lg:w-[512px]", className), ...props, children: [children, _jsx(SheetPrimitive.Close, { "data-slot": "sheet-close", render: _jsx(Button, { "aria-label": closeLabel, variant: "ghost", className: "absolute top-nadicode-md right-nadicode-md", size: "icon-sm" }), children: _jsx(XIcon, {}) })] })] }));
|
|
65
67
|
}
|
|
66
68
|
function SheetHeader({ className, ...props }) {
|
|
67
69
|
return (_jsx("div", { "data-slot": "sheet-header", "data-nc-ui": "", className: cn("flex flex-col gap-1 p-nadicode-lg", className), ...props }));
|
|
@@ -6,6 +6,8 @@ export type SidebarSection<Id extends string> = PageCommandAction & {
|
|
|
6
6
|
icon: IconComponent;
|
|
7
7
|
/** The heading over this section and the ones after it, until another section names its own: "Account", "Platform settings". */
|
|
8
8
|
group?: string;
|
|
9
|
+
/** How many things the section holds, at the row's end, as Vercel's Browse Connectors counts each category. */
|
|
10
|
+
count?: number;
|
|
9
11
|
};
|
|
10
12
|
export type SidebarSectionsProps<Id extends string> = {
|
|
11
13
|
/** The way back: "Agents", "Customers", "Back to workspace". */
|
|
@@ -34,7 +36,7 @@ export type SidebarSectionsProps<Id extends string> = {
|
|
|
34
36
|
* The sidebar swapped to one object or one area: the way back, what you are in, and its sections.
|
|
35
37
|
*
|
|
36
38
|
* @family Navigation
|
|
37
|
-
* @when Inside an object, the same sidebar column shows these instead of the places: an Installation's sections in the Portal, Nadia's Edit and Settings sections. Inside an area whose pages are siblings a person moves between, the area's sub-menu without `identity`, as Vercel's Settings: the Portal's Settings, Company, Library and Account. The row that opens an area ends in `SidebarMenuChevron`; a row that only opens a page has none. Required: the way back and the nav's `label`; every section has an icon.
|
|
39
|
+
* @when Inside an object, the same sidebar column shows these instead of the places: an Installation's sections in the Portal, Nadia's Edit and Settings sections. Inside an area whose pages are siblings a person moves between, the area's sub-menu without `identity`, as Vercel's Settings: the Portal's Settings, Company, Library and Account. A catalogue long enough to be browsed by category takes this sub-menu too, one section a category with its `count`, as Vercel's Browse Connectors does: Nadia's Browse apps. The row that opens an area ends in `SidebarMenuChevron`; a row that only opens a page has none. Required: the way back and the nav's `label`; every section has an icon.
|
|
38
40
|
* @instead The places a person can go are the sidebar's own groups; a settings page that does not swap the column is a SettingsPage. Never a second column beside the first. “Tabs imply the views share scope, URL parent, and data model” (https://vercel.com/geist/tabs) Ours: an area whose pages hold different objects, with different lists and different ways to add, is this sub-menu, as Vercel's AI Gateway is; a destination whose pages are views of one reading keeps its Tabs, as Vercel's Analytics and OpenRouter's Activity do (the Portal's Analytics). An object's sections under the top bar are a `TabsNav` band.
|
|
39
41
|
* @behaviour With `identity`: a back arrow row, then what you are in, then the sections. Without it, as Vercel's sub-menu: one row with a ‹ at its start and the area's name centred, then the sections as words alone. The back row returns to where the person came from and is disabled while leaving is blocked. One section is current and takes the selection fill; the rest stay neutral. A section that sets `group` opens a labelled group that holds the sections after it until another names its own; the label and the gap tell groups apart, never a rule. Narrow, the identity, the area's name and the labels leave, and each row keeps its icon with its name in a tooltip.
|
|
40
42
|
* @words The back row names where it goes ("Agents", "Back to workspace"); the identity is the object's own name; an area's `label` is its sidebar row's word ("Settings", "Company"); a group heading names the kind of settings ("Account"), in sentence case; sections are nouns ("Skills", "Members").
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-sections.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-sections.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"sidebar-sections.d.ts","sourceRoot":"","sources":["../../src/components/sidebar-sections.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL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"lucide-react";
|
|
4
4
|
import { IdentityMark, } from "./identity-mark.js";
|
|
5
|
-
import { SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "./sidebar.js";
|
|
5
|
+
import { SidebarGroupLabel, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, } from "./sidebar.js";
|
|
6
6
|
import { cn } from "../lib/utils.js";
|
|
7
7
|
function groupSections(sections) {
|
|
8
8
|
const groups = [];
|
|
@@ -32,7 +32,7 @@ function actionProps(action, disabled = false) {
|
|
|
32
32
|
* The sidebar swapped to one object or one area: the way back, what you are in, and its sections.
|
|
33
33
|
*
|
|
34
34
|
* @family Navigation
|
|
35
|
-
* @when Inside an object, the same sidebar column shows these instead of the places: an Installation's sections in the Portal, Nadia's Edit and Settings sections. Inside an area whose pages are siblings a person moves between, the area's sub-menu without `identity`, as Vercel's Settings: the Portal's Settings, Company, Library and Account. The row that opens an area ends in `SidebarMenuChevron`; a row that only opens a page has none. Required: the way back and the nav's `label`; every section has an icon.
|
|
35
|
+
* @when Inside an object, the same sidebar column shows these instead of the places: an Installation's sections in the Portal, Nadia's Edit and Settings sections. Inside an area whose pages are siblings a person moves between, the area's sub-menu without `identity`, as Vercel's Settings: the Portal's Settings, Company, Library and Account. A catalogue long enough to be browsed by category takes this sub-menu too, one section a category with its `count`, as Vercel's Browse Connectors does: Nadia's Browse apps. The row that opens an area ends in `SidebarMenuChevron`; a row that only opens a page has none. Required: the way back and the nav's `label`; every section has an icon.
|
|
36
36
|
* @instead The places a person can go are the sidebar's own groups; a settings page that does not swap the column is a SettingsPage. Never a second column beside the first. “Tabs imply the views share scope, URL parent, and data model” (https://vercel.com/geist/tabs) Ours: an area whose pages hold different objects, with different lists and different ways to add, is this sub-menu, as Vercel's AI Gateway is; a destination whose pages are views of one reading keeps its Tabs, as Vercel's Analytics and OpenRouter's Activity do (the Portal's Analytics). An object's sections under the top bar are a `TabsNav` band.
|
|
37
37
|
* @behaviour With `identity`: a back arrow row, then what you are in, then the sections. Without it, as Vercel's sub-menu: one row with a ‹ at its start and the area's name centred, then the sections as words alone. The back row returns to where the person came from and is disabled while leaving is blocked. One section is current and takes the selection fill; the rest stay neutral. A section that sets `group` opens a labelled group that holds the sections after it until another names its own; the label and the gap tell groups apart, never a rule. Narrow, the identity, the area's name and the labels leave, and each row keeps its icon with its name in a tooltip.
|
|
38
38
|
* @words The back row names where it goes ("Agents", "Back to workspace"); the identity is the object's own name; an area's `label` is its sidebar row's word ("Settings", "Company"); a group heading names the kind of settings ("Account"), in sentence case; sections are nouns ("Skills", "Members").
|
|
@@ -45,6 +45,6 @@ export function SidebarSections({ back, current, identity, label, narrow = false
|
|
|
45
45
|
return (_jsxs("div", { className: "grid w-full gap-2", "data-slot": "sidebar-sections", children: [_jsx(SidebarMenu, { children: _jsxs(SidebarMenuItem, { children: [_jsxs(SidebarMenuButton, { className: row, tooltip: back.label, ...actionProps(back, back.disabled), children: [submenu ? _jsx(ChevronLeft, { "aria-hidden": "true" }) : _jsx(ArrowLeft, { "aria-hidden": "true" }), _jsx("span", { className: submenu ? "sr-only" : words, children: back.label })] }), submenu && !narrow ? (_jsx("span", { className: "pointer-events-none absolute inset-x-8 top-1/2 -translate-y-1/2 truncate text-center text-sm font-medium text-sidebar-foreground", "data-slot": "sidebar-sections-title", children: label })) : null] }) }), narrow || !identity ? null : (_jsxs("div", { className: "flex min-w-0 items-center gap-2 px-2 pt-2 text-sm", "data-slot": "sidebar-sections-identity", children: [identity.mark ? _jsx(IdentityMark, { ...identity.mark, size: 24 }) : null, _jsxs("span", { className: "grid min-w-0", children: [_jsx("span", { className: "truncate font-medium text-sidebar-foreground", children: identity.name }), identity.detail ? (_jsx("span", { className: "truncate text-xs text-muted-foreground", children: identity.detail })) : null] })] })), _jsx("nav", { "aria-label": label, className: "grid gap-2", children: groupSections(sections).map((group) => (_jsxs("div", { className: "grid gap-1", "data-slot": "sidebar-sections-group", children: [group.label && !narrow ? _jsx(SidebarGroupLabel, { children: group.label }) : null, _jsx(SidebarMenu, { children: group.sections.map((section) => {
|
|
46
46
|
const Icon = section.icon;
|
|
47
47
|
const isCurrent = section.id === current;
|
|
48
|
-
return (
|
|
48
|
+
return (_jsxs(SidebarMenuItem, { children: [_jsxs(SidebarMenuButton, { "aria-current": isCurrent ? "page" : undefined, className: row, isActive: isCurrent, tooltip: section.label, ...actionProps(section), children: [submenu && !narrow ? null : _jsx(Icon, { "aria-hidden": "true" }), _jsx("span", { className: words, children: section.label })] }), section.count === undefined || narrow ? null : (_jsx(SidebarMenuBadge, { className: "text-muted-foreground", children: section.count }))] }, section.id));
|
|
49
49
|
}) })] }, group.id))) })] }));
|
|
50
50
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type StepCard = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
state: "done" | "current" | "upcoming";
|
|
6
|
+
/** What a done step settled, in its title's place: the app's mark and name. */
|
|
7
|
+
settled?: ReactNode;
|
|
8
|
+
/** The current step's own content; only the current step shows it. */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export type StepCardsProps = {
|
|
12
|
+
/** Names the list of steps: "Steps to connect Gmail". */
|
|
13
|
+
label: string;
|
|
14
|
+
steps: readonly StepCard[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The steps of one setup, one numbered card each, inside its drawer, as Vercel's Add Connection
|
|
18
|
+
* draws them.
|
|
19
|
+
*
|
|
20
|
+
* @family Compositions
|
|
21
|
+
* @when A setup in a drawer whose steps a person should see ahead of them, with what each settled: connecting an app in Nadia, through `RecordSheet`'s `steps`.
|
|
22
|
+
* @instead A setup told as "Step 2 of 3" over the drawer's title is `FormDrawer` with `job="steps"`. Steps a person does in any order, each done elsewhere, are a `ProgressChecklist`.
|
|
23
|
+
* @behaviour One hairline card a step, in order, 12 px apart. The current one has a filled number and opens its content under its title. A done one shows what it settled in its title's place, or a check beside its title; one still to come is its muted number and title, with nothing under it. Only the current step ever holds controls.
|
|
24
|
+
* @words Each title names the step in a word or two: "Name", "Sign in". A done step says what was settled: the app, the account's name.
|
|
25
|
+
* @access An ordered list named by `label`, the current step marked `aria-current="step"`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function StepCards({ label, steps }: StepCardsProps): import("react").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=step-cards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cards.d.ts","sourceRoot":"","sources":["../../src/components/step-cards.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IACvC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CAC5B,CAAC;AAgBF;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,+BAgCzD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { CheckIcon } from "lucide-react";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
function StepNumber({ number, state }) {
|
|
6
|
+
return (_jsx("span", { "aria-hidden": "true", className: cn("grid size-5 shrink-0 place-items-center rounded-full text-xs font-medium tabular-nums", state === "current" ? "bg-foreground text-background" : "bg-muted text-muted-foreground"), children: state === "done" ? _jsx(CheckIcon, { className: "size-3" }) : number }));
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The steps of one setup, one numbered card each, inside its drawer, as Vercel's Add Connection
|
|
10
|
+
* draws them.
|
|
11
|
+
*
|
|
12
|
+
* @family Compositions
|
|
13
|
+
* @when A setup in a drawer whose steps a person should see ahead of them, with what each settled: connecting an app in Nadia, through `RecordSheet`'s `steps`.
|
|
14
|
+
* @instead A setup told as "Step 2 of 3" over the drawer's title is `FormDrawer` with `job="steps"`. Steps a person does in any order, each done elsewhere, are a `ProgressChecklist`.
|
|
15
|
+
* @behaviour One hairline card a step, in order, 12 px apart. The current one has a filled number and opens its content under its title. A done one shows what it settled in its title's place, or a check beside its title; one still to come is its muted number and title, with nothing under it. Only the current step ever holds controls.
|
|
16
|
+
* @words Each title names the step in a word or two: "Name", "Sign in". A done step says what was settled: the app, the account's name.
|
|
17
|
+
* @access An ordered list named by `label`, the current step marked `aria-current="step"`.
|
|
18
|
+
*/
|
|
19
|
+
export function StepCards({ label, steps }) {
|
|
20
|
+
return (_jsx("ol", { "aria-label": label, className: "grid gap-nadicode-sm", "data-slot": "step-cards", children: steps.map((step, index) => (_jsxs("li", { "aria-current": step.state === "current" ? "step" : undefined, className: "rounded-sm border border-border", "data-slot": "step-card", "data-state": step.state, children: [_jsx("div", { className: "flex min-h-14 items-center gap-nadicode-sm px-nadicode-md py-nadicode-sm text-body-md font-medium", children: step.state === "done" && step.settled ? (step.settled) : (_jsxs(_Fragment, { children: [_jsx(StepNumber, { number: index + 1, state: step.state }), _jsx("span", { className: cn(step.state === "upcoming" && "text-muted-foreground"), children: step.title })] })) }), step.state === "current" && step.children ? (_jsx("div", { className: "grid gap-nadicode-md px-nadicode-md pb-nadicode-md", children: step.children })) : null] }, step.id))) }));
|
|
21
|
+
}
|
|
@@ -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;
|
|
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, {
|
|
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,12 +11,17 @@ 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;
|
|
17
18
|
declare function RowEditFormSpecimen(): import("react").JSX.Element;
|
|
18
19
|
declare function SettingsSectionSpecimen(): import("react").JSX.Element;
|
|
20
|
+
declare function CatalogCardSpecimen(): import("react").JSX.Element;
|
|
21
|
+
declare function StepCardsSpecimen(): import("react").JSX.Element;
|
|
19
22
|
export declare const COMPOSITIONS: {
|
|
23
|
+
CatalogCard: typeof CatalogCardSpecimen;
|
|
24
|
+
StepCards: typeof StepCardsSpecimen;
|
|
20
25
|
ActivityFeed: typeof ActivityFeedSpecimen;
|
|
21
26
|
AgentProfileCard: typeof AgentProfileCardSpecimen;
|
|
22
27
|
CatalogDrawer: typeof CatalogDrawerSpecimen;
|
|
@@ -30,6 +35,7 @@ export declare const COMPOSITIONS: {
|
|
|
30
35
|
InviteCard: typeof InviteCardSpecimen;
|
|
31
36
|
FormDialog: typeof FormDialogSpecimen;
|
|
32
37
|
FormDrawer: typeof FormDrawerSpecimen;
|
|
38
|
+
DrawerSteps: typeof DrawerStepsSpecimen;
|
|
33
39
|
LibraryShelf: typeof LibraryShelfSpecimen;
|
|
34
40
|
ObjectPage: () => import("react").JSX.Element;
|
|
35
41
|
ObjectSection: () => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compositions.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/compositions.tsx"],"names":[],"mappings":"AA0IA,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,iBAAS,mBAAmB,gCAW3B;AAED,iBAAS,iBAAiB,gCAkBzB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGE,CAAC"}
|
|
@@ -4,10 +4,12 @@ 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";
|
|
10
11
|
import { Button } from "../../components/button.js";
|
|
12
|
+
import { CatalogCard } from "../../components/catalog-card.js";
|
|
11
13
|
import { CatalogDrawer } from "../../components/catalog-drawer.js";
|
|
12
14
|
import { useCatalogRows } from "../../components/catalog-row.js";
|
|
13
15
|
import { CollectionFilters } from "../../components/collection-filters.js";
|
|
@@ -30,6 +32,7 @@ import { PageActions, PageActionsHostProvider } from "../../components/page-acti
|
|
|
30
32
|
import { PageHeader } from "../../components/page-header.js";
|
|
31
33
|
import { RecordList } from "../../components/record-list.js";
|
|
32
34
|
import { RecordSheet } from "../../components/record-sheet.js";
|
|
35
|
+
import { StepCards } from "../../components/step-cards.js";
|
|
33
36
|
import { RowEditForm } from "../../components/row-edit-form.js";
|
|
34
37
|
import { SettingsField, SettingsSection } from "../../components/settings-section.js";
|
|
35
38
|
import { SettingsPage } from "../../components/settings-page.js";
|
|
@@ -309,6 +312,23 @@ function FormDrawerSpecimen() {
|
|
|
309
312
|
const [open, setOpen] = useState(false);
|
|
310
313
|
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
314
|
}
|
|
315
|
+
function DrawerStepsSpecimen() {
|
|
316
|
+
return (_jsx("div", { className: "max-w-xl", children: _jsx(DrawerSteps, { steps: [
|
|
317
|
+
{
|
|
318
|
+
id: "chosen",
|
|
319
|
+
state: "chosen",
|
|
320
|
+
title: "Acme Quotes",
|
|
321
|
+
mark: _jsx(AgentOrb, { color: COBALTO, decorative: true, form: "orbit", size: 32 }),
|
|
322
|
+
children: _jsx(DrawerStepBody, { children: "Writes quotes from the price list." }),
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: "configure",
|
|
326
|
+
state: "current",
|
|
327
|
+
title: "Configure",
|
|
328
|
+
children: (_jsxs(_Fragment, { children: [_jsx(DrawerStepBody, { children: "The fields of this step." }), _jsx(DrawerStepFooter, { children: _jsx(Button, { children: "Create Agent" }) })] })),
|
|
329
|
+
},
|
|
330
|
+
] }) }));
|
|
331
|
+
}
|
|
312
332
|
function LibraryShelfSpecimen() {
|
|
313
333
|
const art = useEmptyArt();
|
|
314
334
|
const [search, setSearch] = useState("");
|
|
@@ -342,7 +362,7 @@ function LibraryShelfSpecimen() {
|
|
|
342
362
|
clearLabel: "Clear search",
|
|
343
363
|
value: search,
|
|
344
364
|
onValueChange: setSearch,
|
|
345
|
-
}, templates: templates.map((template) => (_jsx(AgentCard, {
|
|
365
|
+
}, 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
366
|
}
|
|
347
367
|
function OverviewPageSpecimen() {
|
|
348
368
|
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: [
|
|
@@ -428,7 +448,24 @@ const reconnectMenu = (mailbox) => ({
|
|
|
428
448
|
label: `More for ${mailbox.address}`,
|
|
429
449
|
commands: [{ label: "Reconnect", icon: _jsx(RefreshCw, {}), onClick: nothing }],
|
|
430
450
|
});
|
|
451
|
+
function CatalogCardSpecimen() {
|
|
452
|
+
return (_jsx("div", { className: "max-w-sm", children: _jsx(CatalogCard, { description: "Send, read and sort email from your Gmail accounts.", mark: { kind: "record", icon: Mail }, name: "Gmail", onOpen: () => { } }) }));
|
|
453
|
+
}
|
|
454
|
+
function StepCardsSpecimen() {
|
|
455
|
+
return (_jsx(StepCards, { label: "Steps to connect Gmail", steps: [
|
|
456
|
+
{ id: "app", state: "done", title: "Gmail" },
|
|
457
|
+
{
|
|
458
|
+
children: (_jsx("p", { className: "text-body-sm text-muted-foreground", children: "Sign in to Gmail in your browser." })),
|
|
459
|
+
id: "sign-in",
|
|
460
|
+
state: "current",
|
|
461
|
+
title: "Sign in",
|
|
462
|
+
},
|
|
463
|
+
{ id: "done", state: "upcoming", title: "Done" },
|
|
464
|
+
] }));
|
|
465
|
+
}
|
|
431
466
|
export const COMPOSITIONS = {
|
|
467
|
+
CatalogCard: CatalogCardSpecimen,
|
|
468
|
+
StepCards: StepCardsSpecimen,
|
|
432
469
|
ActivityFeed: ActivityFeedSpecimen,
|
|
433
470
|
AgentProfileCard: AgentProfileCardSpecimen,
|
|
434
471
|
CatalogDrawer: CatalogDrawerSpecimen,
|
|
@@ -442,6 +479,7 @@ export const COMPOSITIONS = {
|
|
|
442
479
|
InviteCard: InviteCardSpecimen,
|
|
443
480
|
FormDialog: FormDialogSpecimen,
|
|
444
481
|
FormDrawer: FormDrawerSpecimen,
|
|
482
|
+
DrawerSteps: DrawerStepsSpecimen,
|
|
445
483
|
LibraryShelf: LibraryShelfSpecimen,
|
|
446
484
|
ObjectPage: () => (_jsx(ObjectPage, { actions: { secondary: { label: "Edit", onClick: nothing }, menu: PAGE_MENU }, description: "Optician \u00B7 partner since March 2026", facts: [
|
|
447
485
|
{ 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
|
|
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,
|
|
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, {
|
|
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;
|
|
@@ -155,6 +156,8 @@ export declare const SPECIMENS: {
|
|
|
155
156
|
CopyButton: () => import("react").JSX.Element;
|
|
156
157
|
CardActionsRow: () => import("react").JSX.Element;
|
|
157
158
|
PageActions: () => import("react").JSX.Element;
|
|
159
|
+
CatalogCard: () => import("react").JSX.Element;
|
|
160
|
+
StepCards: () => import("react").JSX.Element;
|
|
158
161
|
ActivityFeed: () => import("react").JSX.Element;
|
|
159
162
|
AgentProfileCard: () => import("react").JSX.Element;
|
|
160
163
|
CatalogDrawer: () => import("react").JSX.Element;
|
|
@@ -168,6 +171,7 @@ export declare const SPECIMENS: {
|
|
|
168
171
|
InviteCard: () => import("react").JSX.Element;
|
|
169
172
|
FormDialog: () => import("react").JSX.Element;
|
|
170
173
|
FormDrawer: () => import("react").JSX.Element;
|
|
174
|
+
DrawerSteps: () => import("react").JSX.Element;
|
|
171
175
|
LibraryShelf: () => import("react").JSX.Element;
|
|
172
176
|
ObjectPage: () => import("react").JSX.Element;
|
|
173
177
|
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
|
|
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" | "StepCards" | "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" | "CatalogCard" | "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,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,m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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,
|
|
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,aAAa,GACb,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,WAAW,GACX,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ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