@tangle-network/sandbox-ui 0.10.3 → 0.10.5
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/{chunk-D4CZWJCD.js → chunk-36QY2W5G.js} +187 -90
- package/dist/{chunk-OHPW55EV.js → chunk-QMU2PWOU.js} +3 -1
- package/dist/{chunk-7LBHRASD.js → chunk-Z5PSS3VD.js} +127 -58
- package/dist/dashboard.d.ts +2 -2
- package/dist/dashboard.js +7 -3
- package/dist/globals.css +27 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/pages.d.ts +16 -2
- package/dist/pages.js +552 -187
- package/dist/primitives.d.ts +48 -296
- package/dist/primitives.js +3 -1
- package/dist/sidebar-drop-zone-tDBsuOH5.d.ts +301 -0
- package/dist/styles.css +27 -0
- package/dist/{usage-chart-SSiOgeQI.d.ts → usage-chart-CPTcNlGs.d.ts} +8 -1
- package/dist/{variant-list-DHP2OXFE.d.ts → variant-list-DAhiR-7S.d.ts} +14 -1
- package/package.json +1 -1
package/dist/primitives.d.ts
CHANGED
|
@@ -1,302 +1,54 @@
|
|
|
1
1
|
export { B as Button, a as ButtonProps, b as buttonVariants } from './button-CMQuQEW_.js';
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from 'react';
|
|
2
|
+
export { A as Avatar, a as AvatarFallback, b as AvatarImage, B as Badge, c as BadgeProps, C as Card, d as CardContent, e as CardDescription, f as CardFooter, g as CardHeader, h as CardTitle, D as Dialog, i as DialogClose, j as DialogContent, k as DialogDescription, l as DialogFooter, m as DialogHeader, n as DialogOverlay, o as DialogPortal, p as DialogTitle, q as DialogTrigger, r as DropZone, s as DropZoneProps, t as DropdownMenu, u as DropdownMenuCheckboxItem, v as DropdownMenuContent, w as DropdownMenuGroup, x as DropdownMenuItem, y as DropdownMenuLabel, z as DropdownMenuPortal, E as DropdownMenuRadioGroup, F as DropdownMenuRadioItem, G as DropdownMenuSeparator, H as DropdownMenuShortcut, I as DropdownMenuSub, J as DropdownMenuSubContent, K as DropdownMenuSubTrigger, L as DropdownMenuTrigger, M as EmptyState, N as EmptyStateProps, O as Input, P as InputProps, Q as Label, R as Logo, S as LogoProps, T as Progress, U as Select, V as SelectContent, W as SelectGroup, X as SelectItem, Y as SelectLabel, Z as SelectScrollDownButton, _ as SelectScrollUpButton, $ as SelectSeparator, a0 as SelectTrigger, a1 as SelectValue, a2 as SidebarDropZone, a3 as SidebarDropZoneProps, a4 as Skeleton, a5 as SkeletonCard, a6 as SkeletonTable, a7 as StatCard, a8 as StatCardProps, a9 as Switch, aa as Table, ab as TableBody, ac as TableCaption, ad as TableCell, ae as TableFooter, af as TableHead, ag as TableHeader, ah as TableRow, ai as Tabs, aj as TabsContent, ak as TabsList, al as TabsTrigger, am as TangleKnot, an as TerminalCursor, ao as TerminalDisplay, ap as TerminalInput, aq as TerminalLine, ar as Textarea, as as TextareaProps, at as Toast, au as ToastContainer, av as ToastProvider, aw as UploadFile, ax as UploadProgress, ay as UploadProgressProps, az as badgeVariants, aA as useToast } from './sidebar-drop-zone-tDBsuOH5.js';
|
|
4
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
-
variant?: "default" | "glass" | "sandbox" | "elevated";
|
|
18
|
-
hover?: boolean;
|
|
19
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
22
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
|
|
26
|
-
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
27
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
28
|
-
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
29
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
30
|
-
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
-
variant?: "default" | "sandbox";
|
|
33
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
declare const DialogHeader: {
|
|
35
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
38
|
-
declare const DialogFooter: {
|
|
39
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
40
|
-
displayName: string;
|
|
41
|
-
};
|
|
42
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
43
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
44
|
-
|
|
45
|
-
declare const inputVariants: (props?: ({
|
|
46
|
-
variant?: "default" | "sandbox" | "error" | null | undefined;
|
|
47
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
48
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
-
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
50
|
-
label?: string;
|
|
51
|
-
error?: string;
|
|
52
|
-
hint?: string;
|
|
53
|
-
}
|
|
54
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
55
|
-
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
56
|
-
variant?: "default" | "sandbox";
|
|
57
|
-
label?: string;
|
|
58
|
-
error?: string;
|
|
59
|
-
hint?: string;
|
|
60
|
-
}
|
|
61
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
62
|
-
|
|
63
|
-
declare const badgeVariants: (props?: ({
|
|
64
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "sandbox" | "error" | "success" | "warning" | "info" | "running" | "creating" | "stopped" | "warm" | "cold" | "deleted" | null | undefined;
|
|
65
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
|
-
type BadgeVariant = "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "error" | "info" | "sandbox" | "running" | "creating" | "stopped" | "warm" | "cold" | "deleted" | null;
|
|
67
|
-
interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
68
|
-
variant?: BadgeVariant;
|
|
69
|
-
className?: string;
|
|
70
|
-
children?: React$1.ReactNode;
|
|
71
|
-
dot?: boolean;
|
|
72
|
-
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
73
|
-
style?: React$1.CSSProperties;
|
|
74
|
-
id?: string;
|
|
75
|
-
role?: React$1.AriaRole;
|
|
76
|
-
title?: string;
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
}
|
|
79
|
-
declare function Badge({ className, variant, dot, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
80
|
-
|
|
81
|
-
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
82
|
-
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
83
|
-
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
84
|
-
|
|
85
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
86
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
87
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
89
|
-
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
90
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
92
|
-
inset?: boolean;
|
|
93
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
94
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
95
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
96
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
97
|
-
inset?: boolean;
|
|
98
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
99
|
-
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
100
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
101
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
102
|
-
inset?: boolean;
|
|
103
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
104
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
105
|
-
declare const DropdownMenuShortcut: {
|
|
106
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
107
|
-
displayName: string;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
111
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
112
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
113
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
114
|
-
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
115
|
-
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
116
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
117
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
118
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
119
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
120
|
-
|
|
121
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
122
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
123
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
124
|
-
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
125
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
126
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
127
|
-
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
128
|
-
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
129
|
-
|
|
130
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
131
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
132
|
-
variant?: "default" | "pills" | "underline";
|
|
133
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
134
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
135
|
-
variant?: "default" | "pills" | "underline";
|
|
136
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
137
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
138
|
-
|
|
139
|
-
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
140
|
-
variant?: "default" | "sandbox";
|
|
141
|
-
showValue?: boolean;
|
|
142
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
143
|
-
|
|
144
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
145
|
-
|
|
146
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
147
|
-
declare function SkeletonCard({ className }: {
|
|
148
|
-
className?: string;
|
|
149
|
-
}): react_jsx_runtime.JSX.Element;
|
|
150
|
-
declare function SkeletonTable({ rows }: {
|
|
151
|
-
rows?: number;
|
|
152
|
-
}): react_jsx_runtime.JSX.Element;
|
|
153
|
-
|
|
154
|
-
interface Toast {
|
|
155
|
-
id: string;
|
|
156
|
-
title: string;
|
|
157
|
-
description?: string;
|
|
158
|
-
variant?: "default" | "success" | "error" | "warning" | "info";
|
|
159
|
-
duration?: number;
|
|
160
|
-
}
|
|
161
|
-
interface ToastContainerProps {
|
|
162
|
-
toasts: Toast[];
|
|
163
|
-
onDismiss: (id: string) => void;
|
|
164
|
-
}
|
|
165
|
-
declare function ToastContainer({ toasts, onDismiss }: ToastContainerProps): react_jsx_runtime.JSX.Element;
|
|
166
|
-
type ToastInput = Omit<Toast, "id">;
|
|
167
|
-
interface ToastContextValue {
|
|
168
|
-
toasts: Toast[];
|
|
169
|
-
toast: (input: ToastInput) => void;
|
|
170
|
-
success: (title: string, description?: string) => void;
|
|
171
|
-
error: (title: string, description?: string) => void;
|
|
172
|
-
warning: (title: string, description?: string) => void;
|
|
173
|
-
info: (title: string, description?: string) => void;
|
|
174
|
-
dismiss: (id: string) => void;
|
|
175
|
-
}
|
|
176
|
-
declare function ToastProvider({ children }: {
|
|
177
|
-
children: React$1.ReactNode;
|
|
178
|
-
}): react_jsx_runtime.JSX.Element;
|
|
179
|
-
declare function useToast(): ToastContextValue;
|
|
180
|
-
|
|
181
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
182
|
-
|
|
183
|
-
interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
184
|
-
icon?: React$1.ReactNode;
|
|
185
|
-
title: string;
|
|
186
|
-
description?: string;
|
|
187
|
-
action?: React$1.ReactNode;
|
|
188
|
-
}
|
|
189
|
-
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
190
|
-
|
|
191
|
-
interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
192
|
-
variant?: "default" | "sandbox";
|
|
193
|
-
title: string;
|
|
194
|
-
value: string | number;
|
|
195
|
-
subtitle?: string;
|
|
196
|
-
icon?: React$1.ReactNode;
|
|
197
|
-
trend?: {
|
|
198
|
-
value: number;
|
|
199
|
-
label?: string;
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
203
|
-
|
|
204
|
-
interface LogoProps {
|
|
205
|
-
variant?: "sandbox";
|
|
206
|
-
size?: "sm" | "md" | "lg" | "xl";
|
|
207
|
-
className?: string;
|
|
208
|
-
iconOnly?: boolean;
|
|
209
|
-
}
|
|
210
|
-
declare function TangleKnot({ size, className }: {
|
|
211
|
-
size: number;
|
|
212
|
-
className?: string;
|
|
213
|
-
}): react_jsx_runtime.JSX.Element;
|
|
214
|
-
declare function Logo({ variant, size, className, iconOnly }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
215
|
-
declare namespace Logo {
|
|
216
|
-
var displayName: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
interface TerminalDisplayProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
220
|
-
variant?: "default" | "sandbox";
|
|
221
|
-
title?: string;
|
|
222
|
-
showHeader?: boolean;
|
|
223
|
-
autoScroll?: boolean;
|
|
224
|
-
maxHeight?: string;
|
|
225
|
-
}
|
|
226
|
-
declare const TerminalDisplay: React$1.ForwardRefExoticComponent<TerminalDisplayProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
227
|
-
interface TerminalLineProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
228
|
-
type?: "input" | "output" | "error" | "success" | "info" | "thinking" | "command" | "warning";
|
|
229
|
-
prompt?: string;
|
|
230
|
-
timestamp?: string;
|
|
231
|
-
}
|
|
232
|
-
declare const TerminalLine: React$1.ForwardRefExoticComponent<TerminalLineProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
233
|
-
declare const TerminalCursor: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
234
|
-
interface TerminalInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onSubmit"> {
|
|
235
|
-
onSubmit?: (value: string) => void;
|
|
236
|
-
variant?: "default" | "sandbox";
|
|
237
|
-
}
|
|
238
|
-
declare const TerminalInput: React$1.ForwardRefExoticComponent<TerminalInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
239
|
-
|
|
240
|
-
interface DropZoneProps {
|
|
241
|
-
/** Called with dropped files */
|
|
242
|
-
onDrop: (files: File[]) => void;
|
|
243
|
-
/** Accepted file types (e.g. ".pdf,.csv,.xlsx") */
|
|
244
|
-
accept?: string;
|
|
245
|
-
/** Whether drop zone is active */
|
|
246
|
-
disabled?: boolean;
|
|
247
|
-
/** Custom overlay content (replaces default) */
|
|
248
|
-
overlay?: ReactNode;
|
|
249
|
-
/** Overlay title */
|
|
250
|
-
title?: string;
|
|
251
|
-
/** Overlay description */
|
|
252
|
-
description?: string;
|
|
253
|
-
/** Overlay icon (Material Symbols name or ReactNode) */
|
|
254
|
-
icon?: string | ReactNode;
|
|
255
|
-
/** Children wrapped by the drop zone */
|
|
256
|
-
children: ReactNode;
|
|
257
|
-
className?: string;
|
|
258
|
-
}
|
|
259
|
-
declare function DropZone({ onDrop, accept, disabled, overlay, title, description, icon, children, className, }: DropZoneProps): react_jsx_runtime.JSX.Element;
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
import '@radix-ui/react-dialog';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
import '@radix-ui/react-avatar';
|
|
9
|
+
import '@radix-ui/react-dropdown-menu';
|
|
10
|
+
import '@radix-ui/react-select';
|
|
11
|
+
import '@radix-ui/react-tabs';
|
|
12
|
+
import '@radix-ui/react-progress';
|
|
13
|
+
import '@radix-ui/react-switch';
|
|
14
|
+
import '@radix-ui/react-label';
|
|
260
15
|
|
|
261
16
|
/**
|
|
262
|
-
*
|
|
17
|
+
* Visually lightweight segmented control for single-value selection.
|
|
18
|
+
*
|
|
19
|
+
* Uses role="radiogroup" / role="radio" because this is a value-selector
|
|
20
|
+
* with no associated panels — not a tab interface. Arrow keys navigate
|
|
21
|
+
* between options (with wrapping), Home/End jump to first/last.
|
|
22
|
+
*
|
|
23
|
+
* **Accessibility:** Provide either `aria-label` or `aria-labelledby` — the
|
|
24
|
+
* ARIA spec requires every radiogroup to have an accessible name. A dev-mode
|
|
25
|
+
* console warning fires when both are omitted.
|
|
263
26
|
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
27
|
+
* Design rules baked into the default variant:
|
|
28
|
+
* - Only the SELECTED segment shows a surface colour + accent text.
|
|
29
|
+
* - Unselected segments have NO background — they're plain-text labels
|
|
30
|
+
* that darken on hover. This keeps the selected segment as the
|
|
31
|
+
* single visual anchor instead of the whole group competing with
|
|
32
|
+
* itself.
|
|
266
33
|
*/
|
|
267
|
-
interface
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
/** Whether drop zone is active */
|
|
289
|
-
disabled?: boolean;
|
|
290
|
-
/** Title shown in the drop zone */
|
|
291
|
-
title?: string;
|
|
292
|
-
/** Description shown below the title */
|
|
293
|
-
description?: string;
|
|
294
|
-
/** Custom icon (replaces default upload icon) */
|
|
295
|
-
icon?: ReactNode;
|
|
296
|
-
/** Always visible (not just on drag). Useful as a persistent upload area. */
|
|
297
|
-
persistent?: boolean;
|
|
298
|
-
className?: string;
|
|
299
|
-
}
|
|
300
|
-
declare function SidebarDropZone({ onDrop, accept, disabled, title, description, icon, persistent, className, }: SidebarDropZoneProps): react_jsx_runtime.JSX.Element;
|
|
301
|
-
|
|
302
|
-
export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropZone, type DropZoneProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Input, type InputProps, Label, Logo, type LogoProps, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SidebarDropZone, type SidebarDropZoneProps, Skeleton, SkeletonCard, SkeletonTable, StatCard, type StatCardProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TangleKnot, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, Textarea, type TextareaProps, type Toast, ToastContainer, ToastProvider, type UploadFile, UploadProgress, type UploadProgressProps, badgeVariants, useToast };
|
|
34
|
+
interface SegmentedControlOption<T extends string = string> {
|
|
35
|
+
value: T;
|
|
36
|
+
label: React.ReactNode;
|
|
37
|
+
/** Rendered right of the label, typically a count or status pill. */
|
|
38
|
+
adornment?: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
interface SegmentedControlProps<T extends string = string> extends Pick<React.HTMLAttributes<HTMLDivElement>, "id" | "className" | "aria-label" | "aria-labelledby"> {
|
|
41
|
+
value: T;
|
|
42
|
+
onValueChange: (value: T) => void;
|
|
43
|
+
options: SegmentedControlOption<T>[];
|
|
44
|
+
/**
|
|
45
|
+
* Layout:
|
|
46
|
+
* - "row" — horizontal pill bar (default, fits in a header region)
|
|
47
|
+
* - "tabs" — horizontal with a bottom border so the selected pill
|
|
48
|
+
* reads as a classic tab (used on the Team page)
|
|
49
|
+
*/
|
|
50
|
+
variant?: "row" | "tabs";
|
|
51
|
+
}
|
|
52
|
+
declare function SegmentedControl<T extends string = string>({ value, onValueChange, options, variant, className, ...rest }: SegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps };
|
package/dist/primitives.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DropZone,
|
|
3
3
|
Label,
|
|
4
|
+
SegmentedControl,
|
|
4
5
|
Select,
|
|
5
6
|
SelectContent,
|
|
6
7
|
SelectGroup,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
ToastProvider,
|
|
22
23
|
UploadProgress,
|
|
23
24
|
useToast
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-36QY2W5G.js";
|
|
25
26
|
import {
|
|
26
27
|
Dialog,
|
|
27
28
|
DialogClose,
|
|
@@ -144,6 +145,7 @@ export {
|
|
|
144
145
|
Label,
|
|
145
146
|
Logo,
|
|
146
147
|
Progress,
|
|
148
|
+
SegmentedControl,
|
|
147
149
|
Select,
|
|
148
150
|
SelectContent,
|
|
149
151
|
SelectGroup,
|