@tangle-network/ui 11.12.0 → 11.13.1
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/CHANGELOG.md +24 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/auth/auth.d.ts +53 -0
- package/dist/{auth-DOETfnd9.js → auth/auth.js} +7 -37
- package/dist/auth/login-layout.d.ts +20 -0
- package/dist/auth/login-layout.js +36 -0
- package/dist/auth.d.ts +2 -1
- package/dist/auth.js +2 -1
- package/dist/chat/agent-timeline.d.ts +83 -0
- package/dist/chat/agent-timeline.js +236 -0
- package/dist/chat/chat-container.d.ts +51 -0
- package/dist/chat/chat-container.js +309 -0
- package/dist/chat/chat-message.d.ts +22 -0
- package/dist/chat/chat-message.js +38 -0
- package/dist/chat/message-list.d.ts +32 -0
- package/dist/chat/message-list.js +37 -0
- package/dist/chat/thinking-indicator.d.ts +6 -0
- package/dist/chat/thinking-indicator.js +38 -0
- package/dist/chat/user-message.d.ts +21 -0
- package/dist/chat/user-message.js +42 -0
- package/dist/chat.d.ts +6 -1
- package/dist/chat.js +6 -1
- package/dist/editor/document-editor-pane.d.ts +37 -0
- package/dist/editor/document-editor-pane.js +199 -0
- package/dist/editor/editor-lazy.js +37 -0
- package/dist/editor/editor-loading.js +21 -0
- package/dist/editor/editor-peers.d.ts +6 -0
- package/dist/editor/editor-peers.js +155 -0
- package/dist/editor/editor-provider.d.ts +97 -0
- package/dist/editor/editor-provider.js +253 -0
- package/dist/editor/editor-toolbar.d.ts +11 -0
- package/dist/editor/editor-toolbar.js +106 -0
- package/dist/editor/markdown-conversion.js +23 -0
- package/dist/editor/markdown-document-editor.js +103 -0
- package/dist/editor/tiptap-editor.d.ts +45 -0
- package/dist/editor/tiptap-editor.js +271 -0
- package/dist/editor/use-editor.d.ts +67 -0
- package/dist/editor/use-editor.js +158 -0
- package/dist/editor.d.ts +6 -119
- package/dist/editor.js +5 -1
- package/dist/files/file-artifact-pane.d.ts +47 -0
- package/dist/files/file-artifact-pane.js +114 -0
- package/dist/files/file-format.d.ts +51 -0
- package/dist/{file-format-BgXbr-Ib.js → files/file-format.js} +1 -1
- package/dist/files/file-preview.d.ts +27 -0
- package/dist/files/file-preview.js +359 -0
- package/dist/files/file-tabs.d.ts +19 -0
- package/dist/files/file-tabs.js +48 -0
- package/dist/files/file-tree.d.ts +31 -0
- package/dist/files/file-tree.js +135 -0
- package/dist/files/rich-file-tree.d.ts +62 -0
- package/dist/files/rich-file-tree.js +122 -0
- package/dist/files.d.ts +6 -1
- package/dist/files.js +6 -2
- package/dist/hooks/use-auth.d.ts +40 -0
- package/dist/hooks/use-auth.js +91 -0
- package/dist/hooks/use-auto-scroll.d.ts +11 -0
- package/dist/hooks/use-auto-scroll.js +48 -0
- package/dist/hooks/use-dropdown-menu.d.ts +12 -0
- package/dist/hooks/use-dropdown-menu.js +31 -0
- package/dist/hooks/use-live-time.d.ts +7 -0
- package/dist/hooks/use-live-time.js +22 -0
- package/dist/hooks/use-realtime-session.d.ts +32 -0
- package/dist/hooks/use-realtime-session.js +235 -0
- package/dist/hooks/use-run-collapse-state.d.ts +13 -0
- package/dist/hooks/use-run-collapse-state.js +24 -0
- package/dist/hooks/use-run-groups.d.ts +11 -0
- package/dist/hooks/use-run-groups.js +85 -0
- package/dist/hooks/use-sdk-session.d.ts +59 -0
- package/dist/hooks/use-sdk-session.js +322 -0
- package/dist/hooks/use-sse-stream.d.ts +124 -0
- package/dist/hooks/use-sse-stream.js +229 -0
- package/dist/hooks/use-tool-call-stream.d.ts +23 -0
- package/dist/hooks/use-tool-call-stream.js +75 -0
- package/dist/hooks.d.ts +11 -49
- package/dist/hooks.js +10 -110
- package/dist/index.d.ts +99 -25
- package/dist/index.js +86 -36
- package/dist/lib/focus.d.ts +55 -0
- package/dist/{focus-BcE_SHqz.js → lib/focus.js} +1 -1
- package/dist/lib/utils.d.ts +4 -0
- package/dist/{utils-C_uf36nf.js → lib/utils.js} +1 -1
- package/dist/{code-block-B9miUPht.d.ts → markdown/code-block.d.ts} +5 -6
- package/dist/{code-block-B36KVUSN.js → markdown/code-block.js} +60 -55
- package/dist/{markdown-C0atSabr.d.ts → markdown/markdown.d.ts} +4 -5
- package/dist/{markdown-Db08KAYF.js → markdown/markdown.js} +3 -3
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +2 -2
- package/dist/{openui-artifact-renderer-fkBQaoLO.d.ts → openui/openui-artifact-renderer.d.ts} +20 -21
- package/dist/{openui-artifact-renderer-DG_i2lOR.js → openui/openui-artifact-renderer.js} +9 -7
- package/dist/{schema-BpW9rSSG.js → openui/schema-compiled.js} +2 -354
- package/dist/{schema-DAstk-J4.d.ts → openui/schema-data.d.ts} +3 -24
- package/dist/openui/schema-data.js +206 -0
- package/dist/openui-schema.d.ts +22 -3
- package/dist/openui-schema.js +138 -1
- package/dist/openui.d.ts +3 -2
- package/dist/openui.js +3 -2
- package/dist/{artifact-pane-BL_DFWNl.d.ts → primitives/artifact-pane.d.ts} +3 -4
- package/dist/{artifact-pane-DMXT9a8U.js → primitives/artifact-pane.js} +2 -2
- package/dist/primitives/avatar.d.ts +8 -0
- package/dist/primitives/avatar.js +25 -0
- package/dist/primitives/badge.d.ts +22 -0
- package/dist/primitives/badge.js +47 -0
- package/dist/{button-yoIv77e2.d.ts → primitives/button.d.ts} +2 -2
- package/dist/primitives/button.js +113 -0
- package/dist/primitives/card.d.ts +18 -0
- package/dist/primitives/card.js +52 -0
- package/dist/primitives/code-block.d.ts +6 -0
- package/dist/primitives/code-block.js +13 -0
- package/dist/primitives/dialog.d.ts +23 -0
- package/dist/primitives/dialog.js +59 -0
- package/dist/primitives/drop-zone.d.ts +23 -0
- package/dist/primitives/drop-zone.js +104 -0
- package/dist/primitives/dropdown-menu.d.ts +29 -0
- package/dist/{dropdown-menu-BpcLa5vF.js → primitives/dropdown-menu.js} +2 -23
- package/dist/primitives/empty-state.d.ts +11 -0
- package/dist/primitives/empty-state.js +32 -0
- package/dist/primitives/heading.d.ts +23 -0
- package/dist/primitives/heading.js +38 -0
- package/dist/primitives/input.d.ts +23 -0
- package/dist/primitives/input.js +110 -0
- package/dist/primitives/label.d.ts +6 -0
- package/dist/primitives/label.js +16 -0
- package/dist/primitives/metric-strip.d.ts +48 -0
- package/dist/primitives/metric-strip.js +52 -0
- package/dist/primitives/page-header.d.ts +25 -0
- package/dist/primitives/page-header.js +47 -0
- package/dist/primitives/page-shell.d.ts +14 -0
- package/dist/primitives/page-shell.js +17 -0
- package/dist/primitives/progress.d.ts +9 -0
- package/dist/primitives/progress.js +29 -0
- package/dist/primitives/segmented-control.d.ts +40 -0
- package/dist/primitives/segmented-control.js +57 -0
- package/dist/primitives/select.d.ts +15 -0
- package/dist/primitives/select.js +74 -0
- package/dist/primitives/sidebar-drop-zone.d.ts +21 -0
- package/dist/primitives/sidebar-drop-zone.js +88 -0
- package/dist/primitives/skeleton.d.ts +10 -0
- package/dist/primitives/skeleton.js +50 -0
- package/dist/primitives/stat-card.d.ts +16 -0
- package/dist/primitives/stat-card.js +60 -0
- package/dist/primitives/status-pill.d.ts +44 -0
- package/dist/primitives/status-pill.js +119 -0
- package/dist/primitives/switch.d.ts +6 -0
- package/dist/primitives/switch.js +16 -0
- package/dist/primitives/table.d.ts +22 -0
- package/dist/primitives/table.js +63 -0
- package/dist/primitives/tabs.d.ts +13 -0
- package/dist/{tabs-BVHR6NkO.js → primitives/tabs.js} +3 -3
- package/dist/primitives/terminal-display.d.ts +25 -0
- package/dist/primitives/terminal-display.js +109 -0
- package/dist/primitives/text-shimmer.d.ts +16 -0
- package/dist/{text-shimmer-BUUo6I-g.js → primitives/text-shimmer.js} +2 -2
- package/dist/primitives/theme-toggle.d.ts +11 -0
- package/dist/primitives/theme-toggle.js +154 -0
- package/dist/primitives/toast.d.ts +29 -0
- package/dist/primitives/toast.js +142 -0
- package/dist/primitives/toolbar.d.ts +55 -0
- package/dist/primitives/toolbar.js +37 -0
- package/dist/primitives/upload-progress.d.ts +23 -0
- package/dist/primitives/upload-progress.js +72 -0
- package/dist/primitives.d.ts +35 -5
- package/dist/primitives.js +35 -9
- package/dist/{index-COgqsFAQ.d.ts → redaction/redacted-document.d.ts} +6 -7
- package/dist/{redaction-CGGB2ENG.js → redaction/redacted-document.js} +2 -2
- package/dist/redaction.d.ts +1 -1
- package/dist/redaction.js +1 -1
- package/dist/run/expandable-content.js +41 -0
- package/dist/run/expanded-tool-detail.d.ts +12 -0
- package/dist/run/expanded-tool-detail.js +163 -0
- package/dist/run/inline-thinking-item.d.ts +11 -0
- package/dist/run/inline-thinking-item.js +60 -0
- package/dist/run/inline-tool-item.d.ts +25 -0
- package/dist/run/inline-tool-item.js +63 -0
- package/dist/run/run-group.d.ts +26 -0
- package/dist/{run-group-BWGeesgs.js → run/run-group.js} +9 -60
- package/dist/run/run-item-primitives.d.ts +5 -0
- package/dist/{run-ZsIKPA6J.js → run/run-item-primitives.js} +2 -2
- package/dist/run/run-row-shell.d.ts +53 -0
- package/dist/run/run-row-shell.js +114 -0
- package/dist/{tool-call-feed-BeB1_4pX.d.ts → run/tool-call-feed.d.ts} +7 -12
- package/dist/{tool-call-feed-BpmMLpPX.js → run/tool-call-feed.js} +4 -4
- package/dist/run/tool-call-step.d.ts +5 -0
- package/dist/run/tool-call-step.js +82 -0
- package/dist/run.d.ts +8 -2
- package/dist/run.js +7 -4
- package/dist/sdk-hooks.d.ts +8 -1
- package/dist/sdk-hooks.js +8 -2
- package/dist/stores/active-sessions-store.d.ts +83 -0
- package/dist/{active-sessions-store-Gt1R0rFG.js → stores/active-sessions-store.js} +1 -1
- package/dist/stores/chat-store.d.ts +14 -0
- package/dist/stores/chat-store.js +33 -0
- package/dist/stores.d.ts +3 -16
- package/dist/stores.js +2 -33
- package/dist/tool-previews/command-preview.d.ts +11 -0
- package/dist/tool-previews/command-preview.js +91 -0
- package/dist/tool-previews/diff-preview.d.ts +7 -0
- package/dist/tool-previews/diff-preview.js +76 -0
- package/dist/tool-previews/glob-results-preview.d.ts +7 -0
- package/dist/tool-previews/glob-results-preview.js +53 -0
- package/dist/tool-previews/grep-results-preview.d.ts +7 -0
- package/dist/tool-previews/grep-results-preview.js +99 -0
- package/dist/tool-previews/preview-primitives.js +58 -0
- package/dist/tool-previews/question-preview.d.ts +7 -0
- package/dist/tool-previews/question-preview.js +63 -0
- package/dist/tool-previews/web-search-preview.d.ts +7 -0
- package/dist/tool-previews/web-search-preview.js +78 -0
- package/dist/tool-previews/write-file-preview.d.ts +11 -0
- package/dist/tool-previews/write-file-preview.js +52 -0
- package/dist/tool-previews.d.ts +7 -1
- package/dist/tool-previews.js +7 -1
- package/dist/{branding-26d5ARIr.d.ts → types/branding.d.ts} +2 -3
- package/dist/{message-vhUI0c5G.d.ts → types/message.d.ts} +2 -3
- package/dist/{parts-5mhy9yJ3.d.ts → types/parts.d.ts} +8 -9
- package/dist/{run-OyWmIDqu.d.ts → types/run.d.ts} +9 -10
- package/dist/{tool-display-DgmL5rIU.d.ts → types/tool-display.d.ts} +5 -6
- package/dist/types.d.ts +5 -5
- package/dist/utils/copy-text.d.ts +7 -0
- package/dist/{utils-Bl_CZ0Qp.js → utils/copy-text.js} +1 -11
- package/dist/utils/format.d.ts +22 -0
- package/dist/{format-DfcLWqMa.js → utils/format.js} +1 -1
- package/dist/utils/time-ago.d.ts +3 -0
- package/dist/utils/time-ago.js +11 -0
- package/dist/utils/tool-display.d.ts +16 -0
- package/dist/{tool-display-BAuAVa43.js → utils/tool-display.js} +1 -1
- package/dist/utils.d.ts +6 -1
- package/dist/utils.js +6 -5
- package/package.json +2 -2
- package/src/files/rich-file-tree.stories.tsx +1 -1
- package/src/files/rich-file-tree.tsx +12 -9
- package/src/markdown/code-block.test.tsx +80 -2
- package/src/markdown/code-block.tsx +76 -80
- package/src/primitives/button.stories.tsx +37 -1
- package/src/primitives/button.test.tsx +230 -0
- package/src/primitives/button.tsx +62 -14
- package/src/primitives/card-anatomy.stories.tsx +51 -0
- package/src/primitives/card.test.tsx +71 -0
- package/src/primitives/card.tsx +25 -13
- package/src/primitives/heading.stories.tsx +35 -0
- package/src/primitives/heading.test.tsx +56 -0
- package/src/primitives/heading.tsx +76 -0
- package/src/primitives/index.ts +8 -0
- package/src/primitives/input.stories.tsx +28 -0
- package/src/primitives/input.test.tsx +161 -0
- package/src/primitives/input.tsx +34 -28
- package/src/primitives/page-header.stories.tsx +51 -0
- package/src/primitives/page-header.test.tsx +48 -0
- package/src/primitives/page-header.tsx +35 -35
- package/src/primitives/page-shell.stories.tsx +89 -0
- package/src/primitives/page-shell.test.tsx +24 -0
- package/src/primitives/page-shell.tsx +26 -0
- package/src/primitives/table-wrapper.stories.tsx +54 -0
- package/src/primitives/table.test.tsx +72 -0
- package/src/primitives/table.tsx +33 -12
- package/src/primitives/theme-toggle.test.tsx +167 -0
- package/src/primitives/theme-toggle.tsx +111 -39
- package/dist/active-sessions-store-nl70ZnMC.d.ts +0 -84
- package/dist/button-C87nEe2R.js +0 -78
- package/dist/chat-DDvF2oGQ.js +0 -672
- package/dist/diff-preview-BcK3nRXb.js +0 -533
- package/dist/document-editor-pane-BilJfiCo.d.ts +0 -136
- package/dist/document-editor-pane-POsq5Q0o.js +0 -1279
- package/dist/files-hywocVZz.js +0 -753
- package/dist/index-2UntyjBb.d.ts +0 -52
- package/dist/index-BgUHilZm.d.ts +0 -108
- package/dist/index-CJ8wRfiC.d.ts +0 -236
- package/dist/index-CPDET_s1.d.ts +0 -549
- package/dist/index-Cg6gYAqh.d.ts +0 -73
- package/dist/index-Cs7j8V7l.d.ts +0 -203
- package/dist/index-DjKxO357.d.ts +0 -128
- package/dist/primitives-Bx59fT-U.js +0 -1239
- package/dist/table-Bss73DhB.js +0 -146
- package/dist/tool-call-step-DNebqhmX.js +0 -434
- package/dist/use-auto-scroll-C5Pjeqon.js +0 -153
- package/dist/use-sse-stream-DjqRuDft.js +0 -884
- package/dist/use-sse-stream-Dm6R5YWz.d.ts +0 -282
package/dist/index-CPDET_s1.d.ts
DELETED
|
@@ -1,549 +0,0 @@
|
|
|
1
|
-
import "./button-yoIv77e2.js";
|
|
2
|
-
import "./artifact-pane-BL_DFWNl.js";
|
|
3
|
-
import "./code-block-B9miUPht.js";
|
|
4
|
-
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as React$1 from "react";
|
|
6
|
-
import { ReactNode } from "react";
|
|
7
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
8
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
9
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
10
|
-
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
11
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
12
|
-
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
13
|
-
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
14
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
15
|
-
import { Logo, LogoProps, TangleKnot } from "@tangle-network/brand";
|
|
16
|
-
//#region src/primitives/card.d.ts
|
|
17
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
18
|
-
variant?: "default" | "glass" | "sandbox" | "elevated";
|
|
19
|
-
hover?: boolean;
|
|
20
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
23
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
24
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/primitives/dialog.d.ts
|
|
28
|
-
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
29
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
30
|
-
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
31
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
32
|
-
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
34
|
-
variant?: "default" | "sandbox";
|
|
35
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
declare function DialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
37
|
-
declare namespace DialogHeader {
|
|
38
|
-
var displayName: string;
|
|
39
|
-
}
|
|
40
|
-
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
41
|
-
declare namespace DialogFooter {
|
|
42
|
-
var displayName: string;
|
|
43
|
-
}
|
|
44
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
45
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/primitives/input.d.ts
|
|
48
|
-
declare const inputVariants: (props?: ({
|
|
49
|
-
variant?: "default" | "error" | "sandbox" | null | undefined;
|
|
50
|
-
size?: "default" | "lg" | "sm" | null | undefined;
|
|
51
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
52
|
-
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
53
|
-
label?: string;
|
|
54
|
-
error?: string;
|
|
55
|
-
hint?: string;
|
|
56
|
-
}
|
|
57
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
58
|
-
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
59
|
-
/** Both values render the same field. */
|
|
60
|
-
variant?: "default" | "sandbox";
|
|
61
|
-
label?: string;
|
|
62
|
-
error?: string;
|
|
63
|
-
hint?: string;
|
|
64
|
-
}
|
|
65
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/primitives/badge.d.ts
|
|
68
|
-
declare const badgeVariants: (props?: ({
|
|
69
|
-
variant?: "cold" | "creating" | "default" | "deleted" | "destructive" | "error" | "info" | "outline" | "running" | "sandbox" | "secondary" | "stopped" | "success" | "warm" | "warning" | null | undefined;
|
|
70
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
71
|
-
type BadgeVariant = "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "error" | "info" | "sandbox" | "running" | "creating" | "stopped" | "warm" | "cold" | "deleted" | null;
|
|
72
|
-
interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
73
|
-
variant?: BadgeVariant;
|
|
74
|
-
className?: string;
|
|
75
|
-
children?: React$1.ReactNode;
|
|
76
|
-
dot?: boolean;
|
|
77
|
-
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
78
|
-
style?: React$1.CSSProperties;
|
|
79
|
-
id?: string;
|
|
80
|
-
role?: React$1.AriaRole;
|
|
81
|
-
title?: string;
|
|
82
|
-
[key: string]: unknown;
|
|
83
|
-
}
|
|
84
|
-
declare function Badge({ className, variant, dot, children, ...props }: BadgeProps): React$1.JSX.Element;
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/primitives/avatar.d.ts
|
|
87
|
-
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
88
|
-
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
89
|
-
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/primitives/dropdown-menu.d.ts
|
|
92
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
93
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
94
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
95
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
96
|
-
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
97
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
98
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
99
|
-
inset?: boolean;
|
|
100
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
101
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
102
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
103
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
104
|
-
inset?: boolean;
|
|
105
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
106
|
-
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
108
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
109
|
-
inset?: boolean;
|
|
110
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
111
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
112
|
-
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
113
|
-
declare namespace DropdownMenuShortcut {
|
|
114
|
-
var displayName: string;
|
|
115
|
-
}
|
|
116
|
-
//#endregion
|
|
117
|
-
//#region src/primitives/select.d.ts
|
|
118
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
119
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
120
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
121
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
122
|
-
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
123
|
-
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
124
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
125
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
126
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
127
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region src/primitives/table.d.ts
|
|
130
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
131
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
132
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
133
|
-
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
134
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
135
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
136
|
-
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
137
|
-
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/primitives/tabs.d.ts
|
|
140
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
141
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
142
|
-
variant?: "default" | "pills" | "underline";
|
|
143
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
144
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
145
|
-
variant?: "default" | "pills" | "underline";
|
|
146
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
147
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region src/primitives/segmented-control.d.ts
|
|
150
|
-
/**
|
|
151
|
-
* Visually lightweight segmented control for single-value selection.
|
|
152
|
-
*
|
|
153
|
-
* Uses role="radiogroup" / role="radio" because this is a value-selector
|
|
154
|
-
* with no associated panels — not a tab interface. Arrow keys navigate
|
|
155
|
-
* between options (with wrapping), Home/End jump to first/last.
|
|
156
|
-
*
|
|
157
|
-
* **Accessibility:** Provide either `aria-label` or `aria-labelledby` — the
|
|
158
|
-
* ARIA spec requires every radiogroup to have an accessible name. A dev-mode
|
|
159
|
-
* console warning fires when both are omitted.
|
|
160
|
-
*
|
|
161
|
-
* Design rules baked into the default variant:
|
|
162
|
-
* - Only the SELECTED segment shows a surface colour + accent text.
|
|
163
|
-
* - Unselected segments have NO background — they're plain-text labels
|
|
164
|
-
* that darken on hover. This keeps the selected segment as the
|
|
165
|
-
* single visual anchor instead of the whole group competing with
|
|
166
|
-
* itself.
|
|
167
|
-
*/
|
|
168
|
-
interface SegmentedControlOption<T extends string = string> {
|
|
169
|
-
value: T;
|
|
170
|
-
label: React$1.ReactNode;
|
|
171
|
-
/** Rendered right of the label, typically a count or status pill. */
|
|
172
|
-
adornment?: React$1.ReactNode;
|
|
173
|
-
}
|
|
174
|
-
interface SegmentedControlProps<T extends string = string> extends Pick<React$1.HTMLAttributes<HTMLDivElement>, "id" | "className" | "aria-label" | "aria-labelledby"> {
|
|
175
|
-
value: T;
|
|
176
|
-
onValueChange: (value: T) => void;
|
|
177
|
-
options: SegmentedControlOption<T>[];
|
|
178
|
-
/**
|
|
179
|
-
* Layout:
|
|
180
|
-
* - "row" — horizontal pill bar (default, fits in a header region)
|
|
181
|
-
* - "tabs" — horizontal with a bottom border so the selected pill
|
|
182
|
-
* reads as a classic tab (used on the Team page)
|
|
183
|
-
*/
|
|
184
|
-
variant?: "row" | "tabs";
|
|
185
|
-
}
|
|
186
|
-
declare function SegmentedControl<T extends string = string>({ value, onValueChange, options, variant, className, ...rest }: SegmentedControlProps<T>): React$1.JSX.Element;
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/primitives/progress.d.ts
|
|
189
|
-
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
190
|
-
variant?: "default" | "sandbox";
|
|
191
|
-
showValue?: boolean;
|
|
192
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
193
|
-
//#endregion
|
|
194
|
-
//#region src/primitives/switch.d.ts
|
|
195
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/primitives/skeleton.d.ts
|
|
198
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
199
|
-
declare function SkeletonCard({ className }: {
|
|
200
|
-
className?: string;
|
|
201
|
-
}): import("react").JSX.Element;
|
|
202
|
-
declare function SkeletonTable({ rows }: {
|
|
203
|
-
rows?: number;
|
|
204
|
-
}): import("react").JSX.Element;
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/primitives/text-shimmer.d.ts
|
|
207
|
-
interface TextShimmerProps {
|
|
208
|
-
children: ReactNode;
|
|
209
|
-
className?: string;
|
|
210
|
-
/** One sweep across the text, in milliseconds. */
|
|
211
|
-
durationMs?: number;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Inline text with a gradient-mask sweep — the in-flight signal for a run row
|
|
215
|
-
* label ("Thinking…", a tool verb while its call is running). Carries the
|
|
216
|
-
* styles it needs, so a consumer that only scans this package for Tailwind
|
|
217
|
-
* classes still gets the animation.
|
|
218
|
-
*/
|
|
219
|
-
declare function TextShimmer({ children, className, durationMs }: TextShimmerProps): import("react").JSX.Element;
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/primitives/toast.d.ts
|
|
222
|
-
interface Toast {
|
|
223
|
-
id: string;
|
|
224
|
-
title: string;
|
|
225
|
-
description?: string;
|
|
226
|
-
variant?: "default" | "success" | "error" | "warning" | "info";
|
|
227
|
-
duration?: number;
|
|
228
|
-
}
|
|
229
|
-
interface ToastContainerProps {
|
|
230
|
-
toasts: Toast[];
|
|
231
|
-
onDismiss: (id: string) => void;
|
|
232
|
-
}
|
|
233
|
-
declare function ToastContainer({ toasts, onDismiss }: ToastContainerProps): React$1.JSX.Element;
|
|
234
|
-
type ToastInput = Omit<Toast, "id">;
|
|
235
|
-
interface ToastContextValue {
|
|
236
|
-
toasts: Toast[];
|
|
237
|
-
toast: (input: ToastInput) => void;
|
|
238
|
-
success: (title: string, description?: string) => void;
|
|
239
|
-
error: (title: string, description?: string) => void;
|
|
240
|
-
warning: (title: string, description?: string) => void;
|
|
241
|
-
info: (title: string, description?: string) => void;
|
|
242
|
-
dismiss: (id: string) => void;
|
|
243
|
-
}
|
|
244
|
-
declare function ToastProvider({ children }: {
|
|
245
|
-
children: React$1.ReactNode;
|
|
246
|
-
}): React$1.JSX.Element;
|
|
247
|
-
declare function useToast(): ToastContextValue;
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region src/primitives/label.d.ts
|
|
250
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region src/primitives/empty-state.d.ts
|
|
253
|
-
interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
254
|
-
icon?: React$1.ReactNode;
|
|
255
|
-
title: string;
|
|
256
|
-
description?: string;
|
|
257
|
-
action?: React$1.ReactNode;
|
|
258
|
-
}
|
|
259
|
-
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
260
|
-
//#endregion
|
|
261
|
-
//#region src/primitives/stat-card.d.ts
|
|
262
|
-
interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
263
|
-
variant?: "default" | "sandbox";
|
|
264
|
-
title: string;
|
|
265
|
-
value: string | number;
|
|
266
|
-
subtitle?: string;
|
|
267
|
-
icon?: React$1.ReactNode;
|
|
268
|
-
trend?: {
|
|
269
|
-
value: number;
|
|
270
|
-
label?: string;
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
274
|
-
//#endregion
|
|
275
|
-
//#region src/primitives/terminal-display.d.ts
|
|
276
|
-
interface TerminalDisplayProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
277
|
-
variant?: "default" | "sandbox";
|
|
278
|
-
title?: string;
|
|
279
|
-
showHeader?: boolean;
|
|
280
|
-
autoScroll?: boolean;
|
|
281
|
-
maxHeight?: string;
|
|
282
|
-
}
|
|
283
|
-
declare const TerminalDisplay: React$1.ForwardRefExoticComponent<TerminalDisplayProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
|
-
interface TerminalLineProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
285
|
-
type?: "input" | "output" | "error" | "success" | "info" | "thinking" | "command" | "warning";
|
|
286
|
-
prompt?: string;
|
|
287
|
-
timestamp?: string;
|
|
288
|
-
}
|
|
289
|
-
declare const TerminalLine: React$1.ForwardRefExoticComponent<TerminalLineProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
290
|
-
declare const TerminalCursor: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
291
|
-
interface TerminalInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onSubmit"> {
|
|
292
|
-
onSubmit?: (value: string) => void;
|
|
293
|
-
/** Both values render the same field. */
|
|
294
|
-
variant?: "default" | "sandbox";
|
|
295
|
-
}
|
|
296
|
-
declare const TerminalInput: React$1.ForwardRefExoticComponent<TerminalInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region src/primitives/drop-zone.d.ts
|
|
299
|
-
interface DropZoneProps {
|
|
300
|
-
/** Called with dropped files */
|
|
301
|
-
onDrop: (files: File[]) => void;
|
|
302
|
-
/** Accepted file types (e.g. ".pdf,.csv,.xlsx") */
|
|
303
|
-
accept?: string;
|
|
304
|
-
/** Whether drop zone is active */
|
|
305
|
-
disabled?: boolean;
|
|
306
|
-
/** Custom overlay content (replaces default) */
|
|
307
|
-
overlay?: ReactNode;
|
|
308
|
-
/** Overlay title */
|
|
309
|
-
title?: string;
|
|
310
|
-
/** Overlay description */
|
|
311
|
-
description?: string;
|
|
312
|
-
/** Overlay icon (Material Symbols name or ReactNode) */
|
|
313
|
-
icon?: string | ReactNode;
|
|
314
|
-
/** Children wrapped by the drop zone */
|
|
315
|
-
children: ReactNode;
|
|
316
|
-
className?: string;
|
|
317
|
-
}
|
|
318
|
-
declare function DropZone({ onDrop, accept, disabled, overlay, title, description, icon, children, className }: DropZoneProps): import("react").JSX.Element;
|
|
319
|
-
//#endregion
|
|
320
|
-
//#region src/primitives/upload-progress.d.ts
|
|
321
|
-
/**
|
|
322
|
-
* UploadProgress — file upload status indicators.
|
|
323
|
-
*
|
|
324
|
-
* Shows a list of files being uploaded with progress bars,
|
|
325
|
-
* completion checkmarks, and error states.
|
|
326
|
-
*/
|
|
327
|
-
interface UploadFile {
|
|
328
|
-
id: string;
|
|
329
|
-
name: string;
|
|
330
|
-
size: number;
|
|
331
|
-
status: "pending" | "uploading" | "complete" | "error";
|
|
332
|
-
progress?: number;
|
|
333
|
-
error?: string;
|
|
334
|
-
}
|
|
335
|
-
interface UploadProgressProps {
|
|
336
|
-
files: UploadFile[];
|
|
337
|
-
onRemove?: (id: string) => void;
|
|
338
|
-
onRetry?: (id: string) => void;
|
|
339
|
-
className?: string;
|
|
340
|
-
}
|
|
341
|
-
declare function UploadProgress({ files, onRemove, onRetry, className }: UploadProgressProps): import("react").JSX.Element | null;
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region src/primitives/sidebar-drop-zone.d.ts
|
|
344
|
-
interface SidebarDropZoneProps {
|
|
345
|
-
/** Called with dropped files */
|
|
346
|
-
onDrop: (files: File[]) => void;
|
|
347
|
-
/** Accepted file types (e.g. ".pdf,.csv") */
|
|
348
|
-
accept?: string;
|
|
349
|
-
/** Whether drop zone is active */
|
|
350
|
-
disabled?: boolean;
|
|
351
|
-
/** Title shown in the drop zone */
|
|
352
|
-
title?: string;
|
|
353
|
-
/** Description shown below the title */
|
|
354
|
-
description?: string;
|
|
355
|
-
/** Custom icon (replaces default upload icon) */
|
|
356
|
-
icon?: ReactNode;
|
|
357
|
-
/** Always visible (not just on drag). Useful as a persistent upload area. */
|
|
358
|
-
persistent?: boolean;
|
|
359
|
-
className?: string;
|
|
360
|
-
}
|
|
361
|
-
declare function SidebarDropZone({ onDrop, accept, disabled, title, description, icon, persistent, className }: SidebarDropZoneProps): import("react").JSX.Element;
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region src/primitives/code-block.d.ts
|
|
364
|
-
interface InlineCodeProps extends React.HTMLAttributes<HTMLElement> {}
|
|
365
|
-
declare function InlineCode({ className, children, ...props }: InlineCodeProps): import("react").JSX.Element;
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region src/primitives/theme-toggle.d.ts
|
|
368
|
-
type Theme = "light" | "dark" | "system";
|
|
369
|
-
declare function useTheme(): {
|
|
370
|
-
theme: Theme;
|
|
371
|
-
setTheme: (next: Theme) => void;
|
|
372
|
-
};
|
|
373
|
-
declare function ThemeToggle(): import("react").JSX.Element;
|
|
374
|
-
//#endregion
|
|
375
|
-
//#region src/primitives/page-header.d.ts
|
|
376
|
-
/**
|
|
377
|
-
* The one masthead every console page opens with.
|
|
378
|
-
*
|
|
379
|
-
* A page identifies itself in three separate registers, and each gets its own
|
|
380
|
-
* slot here so they cannot compete for the same one:
|
|
381
|
-
*
|
|
382
|
-
* - `title` — what the page IS. The `<h1>`, and the only `<h1>`.
|
|
383
|
-
* - `description` — one line on what it is for. Prose belongs here, never in
|
|
384
|
-
* the title slot: a paragraph rendered where a heading goes reads as body
|
|
385
|
-
* copy to a sighted reader and as nothing at all to a screen reader, which
|
|
386
|
-
* is how a page ends up with no accessible name.
|
|
387
|
-
* - `actions` — what the reader can DO from here, right-aligned and wrapping
|
|
388
|
-
* under the title on a narrow viewport rather than squeezing it.
|
|
389
|
-
*
|
|
390
|
-
* `meta` is the fourth register and the one most often missing: the small facts
|
|
391
|
-
* that qualify everything below (a count, a scope, a window). They sit on their
|
|
392
|
-
* own line under the title so a reader can tell the difference between "this
|
|
393
|
-
* page has nothing in it" and "this filter matches nothing".
|
|
394
|
-
*
|
|
395
|
-
* `titleId` is exposed so a page can point `aria-labelledby` at the heading
|
|
396
|
-
* from a region further down without minting a second copy of the string.
|
|
397
|
-
*/
|
|
398
|
-
interface PageHeaderProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "title"> {
|
|
399
|
-
title: React$1.ReactNode;
|
|
400
|
-
description?: React$1.ReactNode;
|
|
401
|
-
actions?: React$1.ReactNode;
|
|
402
|
-
meta?: React$1.ReactNode;
|
|
403
|
-
titleId?: string;
|
|
404
|
-
/** Renders the title one step down for a nested/tab surface. */
|
|
405
|
-
level?: 1 | 2;
|
|
406
|
-
}
|
|
407
|
-
declare const PageHeader: React$1.ForwardRefExoticComponent<PageHeaderProps & React$1.RefAttributes<HTMLElement>>;
|
|
408
|
-
//#endregion
|
|
409
|
-
//#region src/primitives/status-pill.d.ts
|
|
410
|
-
/**
|
|
411
|
-
* A run/resource state, told three ways at once.
|
|
412
|
-
*
|
|
413
|
-
* Status is the one place a console cannot afford to speak in colour alone: a
|
|
414
|
-
* red dot and a green dot are the same dot to roughly one man in twelve, and
|
|
415
|
-
* identical in a greyscale print or a screenshot pasted into a ticket. So every
|
|
416
|
-
* pill carries all three channels — a GLYPH whose silhouette differs per tone,
|
|
417
|
-
* the tone's COLOUR, and the state's own LABEL as text.
|
|
418
|
-
*
|
|
419
|
-
* The glyphs are chosen to survive at 8px and to differ in outline rather than
|
|
420
|
-
* in fill: a ring reads as "still open", a solid disc as "settled", a slashed
|
|
421
|
-
* disc as "stopped". Two states never share one silhouette.
|
|
422
|
-
*
|
|
423
|
-
* Each tone draws its fill, border and text from ONE matched token triple.
|
|
424
|
-
* That pairing is the whole point: a status colour is solved against its own
|
|
425
|
-
* background, and nothing guarantees it against an arbitrary one. A component
|
|
426
|
-
* that always brings its own background cannot be placed onto a plane that
|
|
427
|
-
* breaks it.
|
|
428
|
-
*/
|
|
429
|
-
type StatusTone = "success" | "warning" | "danger" | "info" | "neutral" | "running";
|
|
430
|
-
interface StatusPillProps extends Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
431
|
-
tone: StatusTone;
|
|
432
|
-
children: React$1.ReactNode;
|
|
433
|
-
/**
|
|
434
|
-
* Drops the fill and border, leaving a toned GLYPH beside a label in the
|
|
435
|
-
* inherited body colour.
|
|
436
|
-
*
|
|
437
|
-
* The label deliberately does not keep the tone. Every status text token
|
|
438
|
-
* clears the 4.5:1 body floor on the page canvas — a gate holds them there —
|
|
439
|
-
* but in light the margin is thin (4.51:1 for warning, 4.54:1 for success),
|
|
440
|
-
* and the canvas is only one of the planes a caller can put a pill on. The
|
|
441
|
-
* glyph keeps the tone instead because a glyph is non-text content against a
|
|
442
|
-
* 3:1 floor, so the tone still reads with room to spare on any plane.
|
|
443
|
-
*
|
|
444
|
-
* For a control that supplies its own surface (a chip, a selected row).
|
|
445
|
-
*/
|
|
446
|
-
bare?: boolean;
|
|
447
|
-
size?: "sm" | "md";
|
|
448
|
-
}
|
|
449
|
-
declare const StatusPill: React$1.ForwardRefExoticComponent<StatusPillProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region src/primitives/metric-strip.d.ts
|
|
452
|
-
/**
|
|
453
|
-
* The headline figures for a console page, as ONE statement rather than four.
|
|
454
|
-
*
|
|
455
|
-
* A row of separate stat cards is the default and it is usually wrong here.
|
|
456
|
-
* Each card is a box that must be tall enough for its longest member, so a row
|
|
457
|
-
* mixing "$248.55 / Personal wallet" against a bare "0" leaves the short ones
|
|
458
|
-
* mostly empty; and four bordered boxes read as four unrelated facts when they
|
|
459
|
-
* are four readings of one account. `MetricStrip` puts them on one plane
|
|
460
|
-
* divided by hairlines: same information, one object, no holes.
|
|
461
|
-
*
|
|
462
|
-
* The divider is a border on the item rather than a `divide-*` utility on the
|
|
463
|
-
* parent, because these wrap. `divide-x` draws from DOM order and leaves a
|
|
464
|
-
* stray rule at the start of every wrapped line; a per-item leading border
|
|
465
|
-
* suppressed at each row start does not.
|
|
466
|
-
*/
|
|
467
|
-
interface MetricStripProps extends React$1.HTMLAttributes<HTMLDListElement> {
|
|
468
|
-
children: React$1.ReactNode;
|
|
469
|
-
}
|
|
470
|
-
declare const MetricStrip: React$1.ForwardRefExoticComponent<MetricStripProps & React$1.RefAttributes<HTMLDListElement>>;
|
|
471
|
-
interface MetricProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
472
|
-
label: React$1.ReactNode;
|
|
473
|
-
value: React$1.ReactNode;
|
|
474
|
-
/** The qualifying line: which wallet, which window, what the limit is. */
|
|
475
|
-
hint?: React$1.ReactNode;
|
|
476
|
-
/** Raises the value's tone and shows a pill beside the label. A metric is
|
|
477
|
-
* `attention` only when a person has to DO something — not merely when a
|
|
478
|
-
* number is zero. */
|
|
479
|
-
attention?: {
|
|
480
|
-
tone: StatusTone;
|
|
481
|
-
label: string;
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* One reading inside a `MetricStrip`.
|
|
486
|
-
*
|
|
487
|
-
* `<dt>` carries the label and `<dd>` the value, so the pair is announced as a
|
|
488
|
-
* described term rather than as two loose strings — the semantic that makes a
|
|
489
|
-
* figure legible without the visual grouping.
|
|
490
|
-
*
|
|
491
|
-
* The value is `tabular-nums`: these sit in a row and change on a timer, and
|
|
492
|
-
* proportional digits make the column jitter every time a 1 becomes an 8.
|
|
493
|
-
*/
|
|
494
|
-
declare const Metric: React$1.ForwardRefExoticComponent<MetricProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
495
|
-
//#endregion
|
|
496
|
-
//#region src/primitives/toolbar.d.ts
|
|
497
|
-
/**
|
|
498
|
-
* The control row above a table or list: search, filters, then the view switch.
|
|
499
|
-
*
|
|
500
|
-
* It exists because the alternative keeps producing the same two failures. A
|
|
501
|
-
* bare flex row gives every control its natural width, so a search field sits
|
|
502
|
-
* at 1120px on one line and three selects stack full-width beneath it — three
|
|
503
|
-
* enormous empty bars where a compact bar belongs. And each control brought its
|
|
504
|
-
* own visual language, so one row carried a native `<select>`, a custom input
|
|
505
|
-
* and a segmented control side by side.
|
|
506
|
-
*
|
|
507
|
-
* So search and filters SHARE the free space and `actions` stays at its content
|
|
508
|
-
* width, and the row is the one place those controls are composed, which is what
|
|
509
|
-
* keeps them looking like one set.
|
|
510
|
-
*
|
|
511
|
-
* Sharing is deliberate, and the alternative is worse. Giving the filter row its
|
|
512
|
-
* content width starves search: measured with a 537px filter row in an 832px
|
|
513
|
-
* toolbar, the search field collapses to 89px. Letting both flex bounds the
|
|
514
|
-
* filter row instead, so it scrolls within its half — 313px each in that same
|
|
515
|
-
* case — and search stays usable however many filters a page adds. `max-w-sm`
|
|
516
|
-
* then stops search claiming more than it can use when there are few filters.
|
|
517
|
-
*
|
|
518
|
-
* On a narrow viewport the row becomes a column and the filters scroll
|
|
519
|
-
* horizontally as a group rather than wrapping into a tall stack that pushes
|
|
520
|
-
* the table itself below the fold.
|
|
521
|
-
*/
|
|
522
|
-
/**
|
|
523
|
-
* Slots only — `children` is omitted deliberately. A free child would render as
|
|
524
|
-
* a bare flex item with none of the `min-w-0` / `shrink-0` guards the named
|
|
525
|
-
* slots carry, so it would size itself off its content and push the row into
|
|
526
|
-
* the overflow this layout exists to prevent.
|
|
527
|
-
*/
|
|
528
|
-
interface ToolbarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
529
|
-
/** The one control that expands to fill the row. */
|
|
530
|
-
search?: React$1.ReactNode;
|
|
531
|
-
/** Filters, in reading order. Kept on one scrollable line when space runs out. */
|
|
532
|
-
filters?: React$1.ReactNode;
|
|
533
|
-
/** View switches and exports, pinned to the end. */
|
|
534
|
-
actions?: React$1.ReactNode;
|
|
535
|
-
}
|
|
536
|
-
declare const Toolbar: React$1.ForwardRefExoticComponent<ToolbarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
537
|
-
/**
|
|
538
|
-
* A labelled filter control. The label is visible, not a placeholder: a select
|
|
539
|
-
* whose current value IS its label ("All products") tells the reader what is
|
|
540
|
-
* selected but never what the control governs, so a row of three reads as three
|
|
541
|
-
* unrelated words.
|
|
542
|
-
*/
|
|
543
|
-
interface FilterFieldProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
544
|
-
label: string;
|
|
545
|
-
htmlFor?: string;
|
|
546
|
-
}
|
|
547
|
-
declare const FilterField: React$1.ForwardRefExoticComponent<FilterFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
548
|
-
//#endregion
|
|
549
|
-
export { TabsList as $, DialogTrigger as $t, TerminalInput as A, DropdownMenuSub as At, useToast as B, Input as Bt, UploadFile as C, DropdownMenuItem as Ct, DropZoneProps as D, DropdownMenuRadioItem as Dt, DropZone as E, DropdownMenuRadioGroup as Et, EmptyStateProps as F, AvatarFallback as Ft, SkeletonTable as G, DialogClose as Gt, TextShimmerProps as H, Textarea as Ht, Label as I, AvatarImage as It, SegmentedControl as J, DialogFooter as Jt, Switch as K, DialogContent as Kt, Toast as L, Badge as Lt, StatCard as M, DropdownMenuSubTrigger as Mt, StatCardProps as N, DropdownMenuTrigger as Nt, TerminalCursor as O, DropdownMenuSeparator as Ot, EmptyState as P, Avatar as Pt, TabsContent as Q, DialogTitle as Qt, ToastContainer as R, BadgeProps as Rt, SidebarDropZoneProps as S, DropdownMenuGroup as St, UploadProgressProps as T, DropdownMenuPortal as Tt, Skeleton as U, TextareaProps as Ut, TextShimmer as V, InputProps as Vt, SkeletonCard as W, Dialog as Wt, SegmentedControlProps as X, DialogOverlay as Xt, SegmentedControlOption as Y, DialogHeader as Yt, Tabs as Z, DialogPortal as Zt, ThemeToggle as _, SelectTrigger as _t, FilterFieldProps as a, CardTitle as an, TableFooter as at, InlineCodeProps as b, DropdownMenuCheckboxItem as bt, Metric as c, TableRow as ct, MetricStripProps as d, SelectGroup as dt, Card as en, TabsTrigger as et, StatusPill as f, SelectItem as ft, PageHeaderProps as g, SelectSeparator as gt, PageHeader as h, SelectScrollUpButton as ht, FilterField as i, CardHeader as in, TableCell as it, TerminalLine as j, DropdownMenuSubContent as jt, TerminalDisplay as k, DropdownMenuShortcut as kt, MetricProps as l, Select as lt, StatusTone as m, SelectScrollDownButton as mt, LogoProps as n, CardDescription as nn, TableBody as nt, Toolbar as o, TableHead as ot, StatusPillProps as p, SelectLabel as pt, Progress as q, DialogDescription as qt, TangleKnot as r, CardFooter as rn, TableCaption as rt, ToolbarProps as s, TableHeader as st, Logo as t, CardContent as tn, Table as tt, MetricStrip as u, SelectContent as ut, useTheme as v, SelectValue as vt, UploadProgress as w, DropdownMenuLabel as wt, SidebarDropZone as x, DropdownMenuContent as xt, InlineCode as y, DropdownMenu as yt, ToastProvider as z, badgeVariants as zt };
|
package/dist/index-Cg6gYAqh.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { n as ButtonProps } from "./button-yoIv77e2.js";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
//#region src/auth/auth.d.ts
|
|
4
|
-
interface SessionUser {
|
|
5
|
-
customer_id: string;
|
|
6
|
-
email: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
tier?: string;
|
|
9
|
-
github?: {
|
|
10
|
-
login: string;
|
|
11
|
-
connected: boolean;
|
|
12
|
-
} | null;
|
|
13
|
-
session_expires_at: string;
|
|
14
|
-
}
|
|
15
|
-
interface GitHubLoginButtonProps extends Omit<ButtonProps, "onClick"> {
|
|
16
|
-
/** API base URL (defaults to /auth/github) */
|
|
17
|
-
authUrl?: string;
|
|
18
|
-
/** Product variant for styling */
|
|
19
|
-
variant?: "sandbox" | "default" | "outline";
|
|
20
|
-
}
|
|
21
|
-
declare function GitHubLoginButton({ authUrl, variant, className, children, ...props }: GitHubLoginButtonProps): React.JSX.Element;
|
|
22
|
-
interface UserMenuProps {
|
|
23
|
-
user: SessionUser;
|
|
24
|
-
/** API base URL for logout */
|
|
25
|
-
logoutUrl?: string;
|
|
26
|
-
/** Links to show in menu */
|
|
27
|
-
links?: Array<{
|
|
28
|
-
href: string;
|
|
29
|
-
label: string;
|
|
30
|
-
icon?: React.ReactNode;
|
|
31
|
-
}>;
|
|
32
|
-
/** Product variant for styling */
|
|
33
|
-
variant?: "sandbox";
|
|
34
|
-
/** Callback when logout is clicked */
|
|
35
|
-
onLogout?: () => void;
|
|
36
|
-
}
|
|
37
|
-
declare function UserMenu({ user, logoutUrl, links, variant, onLogout }: UserMenuProps): React.JSX.Element;
|
|
38
|
-
interface AuthHeaderProps {
|
|
39
|
-
/** Current session user (null if not logged in) */
|
|
40
|
-
user: SessionUser | null;
|
|
41
|
-
/** Whether session is loading */
|
|
42
|
-
loading?: boolean;
|
|
43
|
-
/** Product variant */
|
|
44
|
-
variant?: "sandbox";
|
|
45
|
-
/** API base URL */
|
|
46
|
-
apiBaseUrl?: string;
|
|
47
|
-
/** Links for user menu */
|
|
48
|
-
menuLinks?: UserMenuProps["links"];
|
|
49
|
-
/** Custom className */
|
|
50
|
-
className?: string;
|
|
51
|
-
}
|
|
52
|
-
declare function AuthHeader({ user, loading, variant, apiBaseUrl, menuLinks, className }: AuthHeaderProps): React.JSX.Element;
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/auth/login-layout.d.ts
|
|
55
|
-
interface LoginLayoutProps {
|
|
56
|
-
title?: React.ReactNode;
|
|
57
|
-
subtitle?: React.ReactNode;
|
|
58
|
-
brandIcon?: React.ReactNode;
|
|
59
|
-
children: React.ReactNode;
|
|
60
|
-
className?: string;
|
|
61
|
-
/** (Deprecated) terminal lines from legacy layout, kept for backwards compatibility */
|
|
62
|
-
terminalLines?: string[];
|
|
63
|
-
/** (Deprecated) tagline, kept for backwards compatibility */
|
|
64
|
-
tagline?: React.ReactNode;
|
|
65
|
-
/** (Deprecated) footerLinks, kept for backwards compatibility */
|
|
66
|
-
footerLinks?: {
|
|
67
|
-
label: string;
|
|
68
|
-
href: string;
|
|
69
|
-
}[];
|
|
70
|
-
}
|
|
71
|
-
declare function LoginLayout({ title, subtitle, brandIcon, children, className }: LoginLayoutProps): React.JSX.Element;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { GitHubLoginButton as a, UserMenu as c, AuthHeaderProps as i, UserMenuProps as l, LoginLayoutProps as n, GitHubLoginButtonProps as o, AuthHeader as r, SessionUser as s, LoginLayout as t };
|