@storm-ds/ui 0.1.0
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/LICENSE +21 -0
- package/README.md +33 -0
- package/dist/charts.d.mts +136 -0
- package/dist/charts.d.ts +136 -0
- package/dist/charts.js +406 -0
- package/dist/charts.js.map +1 -0
- package/dist/charts.mjs +410 -0
- package/dist/charts.mjs.map +1 -0
- package/dist/index.d.mts +927 -0
- package/dist/index.d.ts +927 -0
- package/dist/index.js +3987 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3987 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin.d.mts +8 -0
- package/dist/plugin.d.ts +8 -0
- package/dist/plugin.js +159 -0
- package/dist/plugin.js.map +1 -0
- package/dist/plugin.mjs +128 -0
- package/dist/plugin.mjs.map +1 -0
- package/package.json +72 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,927 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const variantStyles$7: {
|
|
5
|
+
readonly default: "border border-storm-primary bg-storm-primary text-storm-primary-foreground hover:bg-storm-primary/90";
|
|
6
|
+
readonly secondary: "border border-storm-secondary bg-storm-secondary text-storm-secondary-foreground hover:bg-storm-secondary/80";
|
|
7
|
+
readonly outline: "border border-storm-border bg-transparent text-storm-foreground hover:bg-storm-accent/10";
|
|
8
|
+
readonly ghost: "border border-transparent bg-transparent text-storm-foreground hover:bg-storm-accent/10";
|
|
9
|
+
readonly destructive: "border border-storm-destructive bg-storm-destructive text-white hover:bg-storm-destructive/90";
|
|
10
|
+
};
|
|
11
|
+
declare const sizeStyles$c: {
|
|
12
|
+
readonly sm: "px-3 py-1.5 text-sm";
|
|
13
|
+
readonly md: "px-4 py-2 text-base";
|
|
14
|
+
readonly lg: "px-6 py-3 text-lg";
|
|
15
|
+
};
|
|
16
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
17
|
+
variant?: keyof typeof variantStyles$7;
|
|
18
|
+
size?: keyof typeof sizeStyles$c;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
iconOnly?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
|
|
24
|
+
declare const variantStyles$6: {
|
|
25
|
+
readonly outlined: "border border-storm-border bg-storm-background";
|
|
26
|
+
readonly filled: "border border-transparent bg-storm-muted";
|
|
27
|
+
readonly ghost: "border border-transparent bg-transparent";
|
|
28
|
+
};
|
|
29
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
variant?: keyof typeof variantStyles$6;
|
|
31
|
+
interactive?: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
34
|
+
}
|
|
35
|
+
interface CardBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
36
|
+
}
|
|
37
|
+
interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
}
|
|
39
|
+
interface CardImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
40
|
+
aspectRatio?: 'square' | 'video' | '4/3' | '21/9';
|
|
41
|
+
}
|
|
42
|
+
interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
43
|
+
}
|
|
44
|
+
interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
45
|
+
}
|
|
46
|
+
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const CardImage: react.ForwardRefExoticComponent<CardImageProps & react.RefAttributes<HTMLImageElement>>;
|
|
51
|
+
declare const CardTitle: react.ForwardRefExoticComponent<CardTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
52
|
+
declare const CardDescription: react.ForwardRefExoticComponent<CardDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
53
|
+
|
|
54
|
+
declare const sizeStyles$b: {
|
|
55
|
+
readonly sm: "h-8 px-3 py-1.5 text-sm";
|
|
56
|
+
readonly md: "h-10 px-4 py-2 text-base";
|
|
57
|
+
readonly lg: "h-12 px-6 py-3 text-lg";
|
|
58
|
+
};
|
|
59
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
60
|
+
size?: keyof typeof sizeStyles$b;
|
|
61
|
+
error?: boolean;
|
|
62
|
+
}
|
|
63
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
64
|
+
|
|
65
|
+
declare const resizeStyles: {
|
|
66
|
+
readonly none: "resize-none";
|
|
67
|
+
readonly vertical: "resize-y";
|
|
68
|
+
readonly horizontal: "resize-x";
|
|
69
|
+
readonly both: "resize";
|
|
70
|
+
};
|
|
71
|
+
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
72
|
+
error?: boolean;
|
|
73
|
+
resize?: keyof typeof resizeStyles;
|
|
74
|
+
}
|
|
75
|
+
declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
76
|
+
|
|
77
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
78
|
+
required?: boolean;
|
|
79
|
+
}
|
|
80
|
+
declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttributes<HTMLLabelElement>>;
|
|
81
|
+
|
|
82
|
+
declare const sizeStyles$a: {
|
|
83
|
+
readonly sm: "h-8 px-3 py-1.5 text-sm";
|
|
84
|
+
readonly md: "h-10 px-4 py-2 text-base";
|
|
85
|
+
readonly lg: "h-12 px-6 py-2 text-lg";
|
|
86
|
+
};
|
|
87
|
+
interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
88
|
+
size?: keyof typeof sizeStyles$a;
|
|
89
|
+
error?: boolean;
|
|
90
|
+
}
|
|
91
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLSelectElement>>;
|
|
92
|
+
|
|
93
|
+
declare const sizeStyles$9: {
|
|
94
|
+
readonly sm: "h-4 w-4";
|
|
95
|
+
readonly md: "h-5 w-5";
|
|
96
|
+
readonly lg: "h-6 w-6";
|
|
97
|
+
};
|
|
98
|
+
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
99
|
+
size?: keyof typeof sizeStyles$9;
|
|
100
|
+
}
|
|
101
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
102
|
+
|
|
103
|
+
declare const trackSizeStyles: {
|
|
104
|
+
readonly sm: "h-5 w-9";
|
|
105
|
+
readonly md: "h-6 w-11";
|
|
106
|
+
readonly lg: "h-7 w-14";
|
|
107
|
+
};
|
|
108
|
+
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
109
|
+
checked?: boolean;
|
|
110
|
+
onChange?: (checked: boolean) => void;
|
|
111
|
+
size?: keyof typeof trackSizeStyles;
|
|
112
|
+
}
|
|
113
|
+
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLButtonElement>>;
|
|
114
|
+
|
|
115
|
+
declare const sizeStyles$8: {
|
|
116
|
+
readonly sm: "h-4 w-4";
|
|
117
|
+
readonly md: "h-5 w-5";
|
|
118
|
+
readonly lg: "h-6 w-6";
|
|
119
|
+
};
|
|
120
|
+
interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
121
|
+
orientation?: 'vertical' | 'horizontal';
|
|
122
|
+
}
|
|
123
|
+
interface RadioGroupItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
124
|
+
size?: keyof typeof sizeStyles$8;
|
|
125
|
+
}
|
|
126
|
+
declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
127
|
+
declare const RadioGroupItem: react.ForwardRefExoticComponent<RadioGroupItemProps & react.RefAttributes<HTMLInputElement>>;
|
|
128
|
+
|
|
129
|
+
interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
130
|
+
}
|
|
131
|
+
interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
132
|
+
}
|
|
133
|
+
declare const InputGroup: react.ForwardRefExoticComponent<InputGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
134
|
+
declare const InputGroupAddon: react.ForwardRefExoticComponent<InputGroupAddonProps & react.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
|
|
136
|
+
declare const variantStyles$5: {
|
|
137
|
+
readonly default: "border border-storm-border bg-storm-background text-storm-foreground";
|
|
138
|
+
readonly secondary: "border border-storm-secondary bg-storm-secondary text-storm-secondary-foreground";
|
|
139
|
+
readonly destructive: "border border-storm-destructive/50 bg-storm-destructive/10 text-storm-destructive";
|
|
140
|
+
readonly success: "border border-storm-success/50 bg-storm-success/10 text-storm-success";
|
|
141
|
+
readonly warning: "border border-storm-warning/50 bg-storm-warning/10 text-storm-warning";
|
|
142
|
+
readonly info: "border border-storm-info/50 bg-storm-info/10 text-storm-info";
|
|
143
|
+
};
|
|
144
|
+
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
145
|
+
variant?: keyof typeof variantStyles$5;
|
|
146
|
+
icon?: React.ReactNode;
|
|
147
|
+
}
|
|
148
|
+
interface AlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
149
|
+
}
|
|
150
|
+
interface AlertDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
151
|
+
}
|
|
152
|
+
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
153
|
+
declare const AlertTitle: react.ForwardRefExoticComponent<AlertTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
154
|
+
declare const AlertDescription: react.ForwardRefExoticComponent<AlertDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
155
|
+
|
|
156
|
+
declare const variantStyles$4: {
|
|
157
|
+
readonly default: "border border-storm-primary bg-storm-primary text-storm-primary-foreground";
|
|
158
|
+
readonly secondary: "border border-storm-secondary bg-storm-secondary text-storm-secondary-foreground";
|
|
159
|
+
readonly outline: "border border-storm-border bg-transparent text-storm-foreground";
|
|
160
|
+
readonly destructive: "border border-storm-destructive bg-storm-destructive text-white";
|
|
161
|
+
readonly success: "border border-storm-success bg-storm-success text-storm-success-foreground";
|
|
162
|
+
readonly warning: "border border-storm-warning bg-storm-warning text-storm-warning-foreground";
|
|
163
|
+
readonly info: "border border-storm-info bg-storm-info text-storm-info-foreground";
|
|
164
|
+
};
|
|
165
|
+
declare const sizeStyles$7: {
|
|
166
|
+
readonly sm: "px-1.5 py-0.5 text-[10px]";
|
|
167
|
+
readonly md: "px-2.5 py-0.5 text-xs";
|
|
168
|
+
readonly lg: "px-3 py-1 text-sm";
|
|
169
|
+
};
|
|
170
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
171
|
+
variant?: keyof typeof variantStyles$4;
|
|
172
|
+
size?: keyof typeof sizeStyles$7;
|
|
173
|
+
}
|
|
174
|
+
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
175
|
+
|
|
176
|
+
declare const sizeStyles$6: {
|
|
177
|
+
readonly sm: "h-8 w-8 text-xs";
|
|
178
|
+
readonly md: "h-10 w-10 text-sm";
|
|
179
|
+
readonly lg: "h-12 w-12 text-base";
|
|
180
|
+
};
|
|
181
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
182
|
+
size?: keyof typeof sizeStyles$6;
|
|
183
|
+
src?: string;
|
|
184
|
+
alt?: string;
|
|
185
|
+
fallback?: string;
|
|
186
|
+
}
|
|
187
|
+
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
188
|
+
max?: number;
|
|
189
|
+
}
|
|
190
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLSpanElement>>;
|
|
191
|
+
declare const AvatarGroup: react.ForwardRefExoticComponent<AvatarGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
192
|
+
|
|
193
|
+
declare const variantStyles$3: {
|
|
194
|
+
readonly default: "rounded-storm-md";
|
|
195
|
+
readonly circle: "rounded-full";
|
|
196
|
+
readonly text: "rounded-storm-sm h-4";
|
|
197
|
+
};
|
|
198
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
199
|
+
variant?: keyof typeof variantStyles$3;
|
|
200
|
+
}
|
|
201
|
+
declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
202
|
+
|
|
203
|
+
declare const orientationStyles: {
|
|
204
|
+
readonly horizontal: "h-0 w-full border-t border-storm-border";
|
|
205
|
+
readonly vertical: "w-0 self-stretch border-l border-storm-border";
|
|
206
|
+
};
|
|
207
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
208
|
+
orientation?: keyof typeof orientationStyles;
|
|
209
|
+
label?: string;
|
|
210
|
+
}
|
|
211
|
+
declare const Separator: react.ForwardRefExoticComponent<SeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
|
|
213
|
+
interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {
|
|
214
|
+
separator?: React.ReactNode;
|
|
215
|
+
}
|
|
216
|
+
interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
217
|
+
active?: boolean;
|
|
218
|
+
}
|
|
219
|
+
declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLElement>>;
|
|
220
|
+
declare const BreadcrumbItem: react.ForwardRefExoticComponent<BreadcrumbItemProps & react.RefAttributes<HTMLLIElement>>;
|
|
221
|
+
declare const BreadcrumbSeparator: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
222
|
+
declare const BreadcrumbEllipsis: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
223
|
+
|
|
224
|
+
declare const sizeStyles$5: {
|
|
225
|
+
readonly sm: "h-8 w-8 text-xs";
|
|
226
|
+
readonly md: "h-10 w-10 text-sm";
|
|
227
|
+
readonly lg: "h-12 w-12 text-base";
|
|
228
|
+
};
|
|
229
|
+
interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
230
|
+
}
|
|
231
|
+
interface PaginationItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
232
|
+
active?: boolean;
|
|
233
|
+
size?: keyof typeof sizeStyles$5;
|
|
234
|
+
}
|
|
235
|
+
declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & react.RefAttributes<HTMLElement>>;
|
|
236
|
+
declare const PaginationItem: react.ForwardRefExoticComponent<PaginationItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
237
|
+
declare const PaginationPrevious: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
238
|
+
declare const PaginationNext: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
239
|
+
declare const PaginationEllipsis: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
240
|
+
|
|
241
|
+
interface NavigationMenuProps extends React.HTMLAttributes<HTMLElement> {
|
|
242
|
+
}
|
|
243
|
+
interface NavigationMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
244
|
+
}
|
|
245
|
+
interface NavigationMenuLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
246
|
+
active?: boolean;
|
|
247
|
+
}
|
|
248
|
+
declare const NavigationMenu: react.ForwardRefExoticComponent<NavigationMenuProps & react.RefAttributes<HTMLElement>>;
|
|
249
|
+
declare const NavigationMenuItem: react.ForwardRefExoticComponent<NavigationMenuItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
250
|
+
declare const NavigationMenuLink: react.ForwardRefExoticComponent<NavigationMenuLinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
251
|
+
|
|
252
|
+
declare const sizeStyles$4: {
|
|
253
|
+
readonly sm: "max-w-sm";
|
|
254
|
+
readonly md: "max-w-lg";
|
|
255
|
+
readonly lg: "max-w-2xl";
|
|
256
|
+
readonly xl: "max-w-4xl";
|
|
257
|
+
readonly full: "max-w-[calc(100vw-2rem)]";
|
|
258
|
+
};
|
|
259
|
+
interface DialogProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
|
|
260
|
+
size?: keyof typeof sizeStyles$4;
|
|
261
|
+
}
|
|
262
|
+
interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
263
|
+
}
|
|
264
|
+
declare const Dialog: react.ForwardRefExoticComponent<DialogProps & react.RefAttributes<HTMLDialogElement>>;
|
|
265
|
+
declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
266
|
+
declare const DialogHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
267
|
+
declare const DialogTitle: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLHeadingElement> & react.RefAttributes<HTMLHeadingElement>>;
|
|
268
|
+
declare const DialogDescription: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLParagraphElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
269
|
+
declare const DialogFooter: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
270
|
+
declare const DialogClose: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
271
|
+
|
|
272
|
+
interface DropdownMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
273
|
+
}
|
|
274
|
+
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
275
|
+
}
|
|
276
|
+
interface DropdownMenuItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
277
|
+
destructive?: boolean;
|
|
278
|
+
}
|
|
279
|
+
interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
280
|
+
}
|
|
281
|
+
declare const DropdownMenu: react.ForwardRefExoticComponent<DropdownMenuProps & react.RefAttributes<HTMLDivElement>>;
|
|
282
|
+
declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
283
|
+
declare const DropdownMenuContent: react.ForwardRefExoticComponent<DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
284
|
+
declare const DropdownMenuItem: react.ForwardRefExoticComponent<DropdownMenuItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
285
|
+
declare const DropdownMenuSeparator: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLHRElement> & react.RefAttributes<HTMLHRElement>>;
|
|
286
|
+
declare const DropdownMenuLabel: react.ForwardRefExoticComponent<DropdownMenuLabelProps & react.RefAttributes<HTMLDivElement>>;
|
|
287
|
+
|
|
288
|
+
interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
289
|
+
defaultValue?: string;
|
|
290
|
+
}
|
|
291
|
+
interface TabsListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
292
|
+
fullWidth?: boolean;
|
|
293
|
+
}
|
|
294
|
+
interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
295
|
+
value: string;
|
|
296
|
+
}
|
|
297
|
+
interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
298
|
+
value: string;
|
|
299
|
+
}
|
|
300
|
+
declare const Tabs: react.ForwardRefExoticComponent<TabsProps & react.RefAttributes<HTMLDivElement>>;
|
|
301
|
+
declare const TabsList: react.ForwardRefExoticComponent<TabsListProps & react.RefAttributes<HTMLDivElement>>;
|
|
302
|
+
declare const TabsTrigger: react.ForwardRefExoticComponent<TabsTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
303
|
+
declare const TabsContent: react.ForwardRefExoticComponent<TabsContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
304
|
+
|
|
305
|
+
declare const variantStyles$2: {
|
|
306
|
+
readonly default: "border border-storm-border bg-storm-background text-storm-foreground";
|
|
307
|
+
readonly destructive: "border border-storm-destructive/50 bg-storm-destructive/10 text-storm-destructive";
|
|
308
|
+
readonly success: "border border-storm-success/50 bg-storm-success/10 text-storm-success";
|
|
309
|
+
readonly warning: "border border-storm-warning/50 bg-storm-warning/10 text-storm-warning";
|
|
310
|
+
readonly info: "border border-storm-info/50 bg-storm-info/10 text-storm-info";
|
|
311
|
+
};
|
|
312
|
+
interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
313
|
+
variant?: keyof typeof variantStyles$2;
|
|
314
|
+
}
|
|
315
|
+
interface ToastTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
316
|
+
}
|
|
317
|
+
interface ToastDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
318
|
+
}
|
|
319
|
+
interface ToastActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
320
|
+
}
|
|
321
|
+
declare const Toast: react.ForwardRefExoticComponent<ToastProps & react.RefAttributes<HTMLDivElement>>;
|
|
322
|
+
declare const ToastTitle: react.ForwardRefExoticComponent<ToastTitleProps & react.RefAttributes<HTMLDivElement>>;
|
|
323
|
+
declare const ToastDescription: react.ForwardRefExoticComponent<ToastDescriptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
324
|
+
declare const ToastClose: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
325
|
+
declare const ToastAction: react.ForwardRefExoticComponent<ToastActionProps & react.RefAttributes<HTMLButtonElement>>;
|
|
326
|
+
|
|
327
|
+
declare const sideStyles$2: {
|
|
328
|
+
readonly top: "bottom-full left-1/2 mb-2 -translate-x-1/2";
|
|
329
|
+
readonly bottom: "top-full left-1/2 mt-2 -translate-x-1/2";
|
|
330
|
+
readonly left: "right-full top-1/2 mr-2 -translate-y-1/2";
|
|
331
|
+
readonly right: "left-full top-1/2 ml-2 -translate-y-1/2";
|
|
332
|
+
};
|
|
333
|
+
interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
334
|
+
}
|
|
335
|
+
interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
336
|
+
side?: keyof typeof sideStyles$2;
|
|
337
|
+
}
|
|
338
|
+
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
339
|
+
declare const TooltipTrigger: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
340
|
+
declare const TooltipContent: react.ForwardRefExoticComponent<TooltipContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
341
|
+
|
|
342
|
+
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
343
|
+
}
|
|
344
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<ButtonGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
345
|
+
|
|
346
|
+
interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
347
|
+
}
|
|
348
|
+
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
349
|
+
interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
350
|
+
}
|
|
351
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
352
|
+
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
353
|
+
}
|
|
354
|
+
declare const TableBody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
355
|
+
interface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
356
|
+
}
|
|
357
|
+
declare const TableFooter: react.ForwardRefExoticComponent<TableFooterProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
358
|
+
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
359
|
+
}
|
|
360
|
+
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
361
|
+
interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
|
|
362
|
+
}
|
|
363
|
+
declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
364
|
+
interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
365
|
+
}
|
|
366
|
+
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
367
|
+
interface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement> {
|
|
368
|
+
}
|
|
369
|
+
declare const TableCaption: react.ForwardRefExoticComponent<TableCaptionProps & react.RefAttributes<HTMLTableCaptionElement>>;
|
|
370
|
+
|
|
371
|
+
declare const sizeStyles$3: {
|
|
372
|
+
readonly sm: "h-1";
|
|
373
|
+
readonly md: "h-2";
|
|
374
|
+
readonly lg: "h-3";
|
|
375
|
+
};
|
|
376
|
+
declare const variantStyles$1: {
|
|
377
|
+
readonly default: "bg-storm-primary";
|
|
378
|
+
readonly secondary: "bg-storm-secondary-foreground";
|
|
379
|
+
readonly destructive: "bg-storm-destructive";
|
|
380
|
+
readonly success: "bg-green-500";
|
|
381
|
+
};
|
|
382
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
383
|
+
value?: number;
|
|
384
|
+
max?: number;
|
|
385
|
+
size?: keyof typeof sizeStyles$3;
|
|
386
|
+
variant?: keyof typeof variantStyles$1;
|
|
387
|
+
}
|
|
388
|
+
declare const Progress: react.ForwardRefExoticComponent<ProgressProps & react.RefAttributes<HTMLDivElement>>;
|
|
389
|
+
|
|
390
|
+
declare const sizeStyles$2: {
|
|
391
|
+
readonly sm: {
|
|
392
|
+
readonly track: "h-1";
|
|
393
|
+
readonly thumb: "h-3 w-3";
|
|
394
|
+
};
|
|
395
|
+
readonly md: {
|
|
396
|
+
readonly track: "h-2";
|
|
397
|
+
readonly thumb: "h-4 w-4";
|
|
398
|
+
};
|
|
399
|
+
readonly lg: {
|
|
400
|
+
readonly track: "h-3";
|
|
401
|
+
readonly thumb: "h-5 w-5";
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
interface SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
405
|
+
value?: number;
|
|
406
|
+
defaultValue?: number;
|
|
407
|
+
min?: number;
|
|
408
|
+
max?: number;
|
|
409
|
+
step?: number;
|
|
410
|
+
size?: keyof typeof sizeStyles$2;
|
|
411
|
+
disabled?: boolean;
|
|
412
|
+
onChange?: (value: number) => void;
|
|
413
|
+
}
|
|
414
|
+
declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLDivElement>>;
|
|
415
|
+
|
|
416
|
+
declare const variantStyles: {
|
|
417
|
+
readonly default: "hover:bg-storm-accent/10 data-[state=on]:bg-storm-accent/20 data-[state=on]:text-storm-foreground";
|
|
418
|
+
readonly outline: "border border-storm-border hover:bg-storm-accent/10 data-[state=on]:bg-storm-accent/20 data-[state=on]:text-storm-foreground";
|
|
419
|
+
};
|
|
420
|
+
declare const sizeStyles$1: {
|
|
421
|
+
readonly sm: "h-8 px-2 text-sm";
|
|
422
|
+
readonly md: "h-10 px-3 text-base";
|
|
423
|
+
readonly lg: "h-12 px-4 text-lg";
|
|
424
|
+
};
|
|
425
|
+
interface ToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
426
|
+
pressed?: boolean;
|
|
427
|
+
defaultPressed?: boolean;
|
|
428
|
+
variant?: keyof typeof variantStyles;
|
|
429
|
+
size?: keyof typeof sizeStyles$1;
|
|
430
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
431
|
+
}
|
|
432
|
+
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
|
|
433
|
+
|
|
434
|
+
declare const sizeStyles: {
|
|
435
|
+
readonly sm: "h-8 px-2 text-sm";
|
|
436
|
+
readonly md: "h-10 px-3 text-base";
|
|
437
|
+
readonly lg: "h-12 px-4 text-lg";
|
|
438
|
+
};
|
|
439
|
+
interface ToggleGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
440
|
+
variant?: 'default' | 'outline';
|
|
441
|
+
size?: keyof typeof sizeStyles;
|
|
442
|
+
}
|
|
443
|
+
declare const ToggleGroup: react.ForwardRefExoticComponent<ToggleGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
444
|
+
interface ToggleGroupItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
445
|
+
active?: boolean;
|
|
446
|
+
size?: keyof typeof sizeStyles;
|
|
447
|
+
}
|
|
448
|
+
declare const ToggleGroupItem: react.ForwardRefExoticComponent<ToggleGroupItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
449
|
+
|
|
450
|
+
declare const sideStyles$1: {
|
|
451
|
+
readonly left: "inset-y-0 left-0 border-r border-storm-border data-[open]:animate-in data-[open]:slide-in-from-left";
|
|
452
|
+
readonly right: "inset-y-0 right-0 border-l border-storm-border data-[open]:animate-in data-[open]:slide-in-from-right";
|
|
453
|
+
readonly top: "inset-x-0 top-0 border-b border-storm-border data-[open]:animate-in data-[open]:slide-in-from-top";
|
|
454
|
+
readonly bottom: "inset-x-0 bottom-0 border-t border-storm-border data-[open]:animate-in data-[open]:slide-in-from-bottom";
|
|
455
|
+
};
|
|
456
|
+
interface SheetProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
|
|
457
|
+
side?: keyof typeof sideStyles$1;
|
|
458
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
459
|
+
}
|
|
460
|
+
declare const Sheet: react.ForwardRefExoticComponent<SheetProps & react.RefAttributes<HTMLDialogElement>>;
|
|
461
|
+
interface SheetContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
462
|
+
}
|
|
463
|
+
declare const SheetContent: react.ForwardRefExoticComponent<SheetContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
464
|
+
interface SheetHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
465
|
+
}
|
|
466
|
+
declare const SheetHeader: react.ForwardRefExoticComponent<SheetHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
467
|
+
interface SheetTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
468
|
+
}
|
|
469
|
+
declare const SheetTitle: react.ForwardRefExoticComponent<SheetTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
470
|
+
interface SheetDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
471
|
+
}
|
|
472
|
+
declare const SheetDescription: react.ForwardRefExoticComponent<SheetDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
473
|
+
interface SheetFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
474
|
+
}
|
|
475
|
+
declare const SheetFooter: react.ForwardRefExoticComponent<SheetFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
476
|
+
declare const SheetClose: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
477
|
+
|
|
478
|
+
interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
479
|
+
}
|
|
480
|
+
declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
481
|
+
interface PopoverTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
482
|
+
}
|
|
483
|
+
declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverTriggerProps & react.RefAttributes<HTMLDivElement>>;
|
|
484
|
+
declare const alignStyles: {
|
|
485
|
+
readonly start: "left-0";
|
|
486
|
+
readonly center: "left-1/2 -translate-x-1/2";
|
|
487
|
+
readonly end: "right-0";
|
|
488
|
+
};
|
|
489
|
+
declare const sideStyles: {
|
|
490
|
+
readonly top: "bottom-full mb-2";
|
|
491
|
+
readonly bottom: "top-full mt-2";
|
|
492
|
+
};
|
|
493
|
+
interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
494
|
+
align?: keyof typeof alignStyles;
|
|
495
|
+
side?: keyof typeof sideStyles;
|
|
496
|
+
}
|
|
497
|
+
declare const PopoverContent: react.ForwardRefExoticComponent<PopoverContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
498
|
+
|
|
499
|
+
interface CollapsibleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
500
|
+
open?: boolean;
|
|
501
|
+
}
|
|
502
|
+
declare const Collapsible: react.ForwardRefExoticComponent<CollapsibleProps & react.RefAttributes<HTMLDivElement>>;
|
|
503
|
+
interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
504
|
+
}
|
|
505
|
+
declare const CollapsibleTrigger: react.ForwardRefExoticComponent<CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
506
|
+
interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
507
|
+
open?: boolean;
|
|
508
|
+
}
|
|
509
|
+
declare const CollapsibleContent: react.ForwardRefExoticComponent<CollapsibleContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
510
|
+
|
|
511
|
+
interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
512
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
513
|
+
}
|
|
514
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
515
|
+
|
|
516
|
+
interface AspectRatioProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
517
|
+
ratio?: number;
|
|
518
|
+
}
|
|
519
|
+
declare const AspectRatio: react.ForwardRefExoticComponent<AspectRatioProps & react.RefAttributes<HTMLDivElement>>;
|
|
520
|
+
|
|
521
|
+
interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
522
|
+
type?: 'single' | 'multiple';
|
|
523
|
+
defaultValue?: string | string[];
|
|
524
|
+
}
|
|
525
|
+
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
526
|
+
interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
527
|
+
value: string;
|
|
528
|
+
}
|
|
529
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<AccordionItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
530
|
+
interface AccordionTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
531
|
+
value: string;
|
|
532
|
+
}
|
|
533
|
+
declare const AccordionTrigger: react.ForwardRefExoticComponent<AccordionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
534
|
+
interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
535
|
+
value: string;
|
|
536
|
+
}
|
|
537
|
+
declare const AccordionContent: react.ForwardRefExoticComponent<AccordionContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
538
|
+
|
|
539
|
+
interface AlertDialogProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
|
|
540
|
+
}
|
|
541
|
+
declare const AlertDialog: react.ForwardRefExoticComponent<AlertDialogProps & react.RefAttributes<HTMLDialogElement>>;
|
|
542
|
+
interface AlertDialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
543
|
+
}
|
|
544
|
+
declare const AlertDialogContent: react.ForwardRefExoticComponent<AlertDialogContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
545
|
+
interface AlertDialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
546
|
+
}
|
|
547
|
+
declare const AlertDialogHeader: react.ForwardRefExoticComponent<AlertDialogHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
548
|
+
interface AlertDialogTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
549
|
+
}
|
|
550
|
+
declare const AlertDialogTitle: react.ForwardRefExoticComponent<AlertDialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
551
|
+
interface AlertDialogDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
552
|
+
}
|
|
553
|
+
declare const AlertDialogDescription: react.ForwardRefExoticComponent<AlertDialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
554
|
+
interface AlertDialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
555
|
+
}
|
|
556
|
+
declare const AlertDialogFooter: react.ForwardRefExoticComponent<AlertDialogFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
557
|
+
interface AlertDialogActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
558
|
+
variant?: 'default' | 'destructive';
|
|
559
|
+
}
|
|
560
|
+
declare const AlertDialogAction: react.ForwardRefExoticComponent<AlertDialogActionProps & react.RefAttributes<HTMLButtonElement>>;
|
|
561
|
+
interface AlertDialogCancelProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
562
|
+
}
|
|
563
|
+
declare const AlertDialogCancel: react.ForwardRefExoticComponent<AlertDialogCancelProps & react.RefAttributes<HTMLButtonElement>>;
|
|
564
|
+
|
|
565
|
+
interface CalendarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
566
|
+
value?: Date;
|
|
567
|
+
defaultValue?: Date;
|
|
568
|
+
onChange?: (date: Date) => void;
|
|
569
|
+
min?: Date;
|
|
570
|
+
max?: Date;
|
|
571
|
+
}
|
|
572
|
+
declare const Calendar: react.ForwardRefExoticComponent<CalendarProps & react.RefAttributes<HTMLDivElement>>;
|
|
573
|
+
|
|
574
|
+
interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange' | 'defaultValue'> {
|
|
575
|
+
value?: Date;
|
|
576
|
+
defaultValue?: Date;
|
|
577
|
+
onChange?: (date: Date) => void;
|
|
578
|
+
placeholder?: string;
|
|
579
|
+
min?: Date;
|
|
580
|
+
max?: Date;
|
|
581
|
+
disabled?: boolean;
|
|
582
|
+
}
|
|
583
|
+
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
584
|
+
|
|
585
|
+
interface ComboboxOption {
|
|
586
|
+
value: string;
|
|
587
|
+
label: string;
|
|
588
|
+
disabled?: boolean;
|
|
589
|
+
}
|
|
590
|
+
interface ComboboxProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange' | 'defaultValue'> {
|
|
591
|
+
options: ComboboxOption[];
|
|
592
|
+
value?: string;
|
|
593
|
+
defaultValue?: string;
|
|
594
|
+
onChange?: (value: string) => void;
|
|
595
|
+
placeholder?: string;
|
|
596
|
+
searchPlaceholder?: string;
|
|
597
|
+
emptyMessage?: string;
|
|
598
|
+
disabled?: boolean;
|
|
599
|
+
}
|
|
600
|
+
declare const Combobox: react.ForwardRefExoticComponent<ComboboxProps & react.RefAttributes<HTMLButtonElement>>;
|
|
601
|
+
|
|
602
|
+
interface CommandProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
603
|
+
}
|
|
604
|
+
declare const Command: react.ForwardRefExoticComponent<CommandProps & react.RefAttributes<HTMLDivElement>>;
|
|
605
|
+
interface CommandInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
606
|
+
}
|
|
607
|
+
declare const CommandInput: react.ForwardRefExoticComponent<CommandInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
608
|
+
interface CommandListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
609
|
+
}
|
|
610
|
+
declare const CommandList: react.ForwardRefExoticComponent<CommandListProps & react.RefAttributes<HTMLDivElement>>;
|
|
611
|
+
interface CommandGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
612
|
+
heading?: string;
|
|
613
|
+
}
|
|
614
|
+
declare const CommandGroup: react.ForwardRefExoticComponent<CommandGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
615
|
+
interface CommandItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
616
|
+
disabled?: boolean;
|
|
617
|
+
}
|
|
618
|
+
declare const CommandItem: react.ForwardRefExoticComponent<CommandItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
619
|
+
interface CommandSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
620
|
+
}
|
|
621
|
+
declare const CommandSeparator: react.ForwardRefExoticComponent<CommandSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
622
|
+
interface CommandEmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
623
|
+
}
|
|
624
|
+
declare const CommandEmpty: react.ForwardRefExoticComponent<CommandEmptyProps & react.RefAttributes<HTMLDivElement>>;
|
|
625
|
+
interface CommandShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
626
|
+
}
|
|
627
|
+
declare const CommandShortcut: react.ForwardRefExoticComponent<CommandShortcutProps & react.RefAttributes<HTMLSpanElement>>;
|
|
628
|
+
interface CommandDialogProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
|
|
629
|
+
}
|
|
630
|
+
declare const CommandDialog: react.ForwardRefExoticComponent<CommandDialogProps & react.RefAttributes<HTMLDialogElement>>;
|
|
631
|
+
|
|
632
|
+
interface ContextMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
633
|
+
}
|
|
634
|
+
declare const ContextMenu: react.ForwardRefExoticComponent<ContextMenuProps & react.RefAttributes<HTMLDivElement>>;
|
|
635
|
+
interface ContextMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
636
|
+
}
|
|
637
|
+
declare const ContextMenuContent: react.ForwardRefExoticComponent<ContextMenuContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
638
|
+
interface ContextMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
639
|
+
destructive?: boolean;
|
|
640
|
+
disabled?: boolean;
|
|
641
|
+
}
|
|
642
|
+
declare const ContextMenuItem: react.ForwardRefExoticComponent<ContextMenuItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
643
|
+
interface ContextMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
644
|
+
}
|
|
645
|
+
declare const ContextMenuSeparator: react.ForwardRefExoticComponent<ContextMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
646
|
+
interface ContextMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
647
|
+
}
|
|
648
|
+
declare const ContextMenuLabel: react.ForwardRefExoticComponent<ContextMenuLabelProps & react.RefAttributes<HTMLDivElement>>;
|
|
649
|
+
|
|
650
|
+
interface HoverCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
651
|
+
}
|
|
652
|
+
declare const HoverCard: react.ForwardRefExoticComponent<HoverCardProps & react.RefAttributes<HTMLDivElement>>;
|
|
653
|
+
interface HoverCardTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
654
|
+
}
|
|
655
|
+
declare const HoverCardTrigger: react.ForwardRefExoticComponent<HoverCardTriggerProps & react.RefAttributes<HTMLDivElement>>;
|
|
656
|
+
interface HoverCardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
657
|
+
align?: 'start' | 'center' | 'end';
|
|
658
|
+
side?: 'top' | 'bottom';
|
|
659
|
+
}
|
|
660
|
+
declare const HoverCardContent: react.ForwardRefExoticComponent<HoverCardContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
661
|
+
|
|
662
|
+
interface MenubarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
663
|
+
}
|
|
664
|
+
declare const Menubar: react.ForwardRefExoticComponent<MenubarProps & react.RefAttributes<HTMLDivElement>>;
|
|
665
|
+
interface MenubarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
666
|
+
}
|
|
667
|
+
declare const MenubarMenu: react.ForwardRefExoticComponent<MenubarMenuProps & react.RefAttributes<HTMLDivElement>>;
|
|
668
|
+
interface MenubarTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
669
|
+
}
|
|
670
|
+
declare const MenubarTrigger: react.ForwardRefExoticComponent<MenubarTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
671
|
+
interface MenubarContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
672
|
+
}
|
|
673
|
+
declare const MenubarContent: react.ForwardRefExoticComponent<MenubarContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
674
|
+
interface MenubarItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
675
|
+
disabled?: boolean;
|
|
676
|
+
}
|
|
677
|
+
declare const MenubarItem: react.ForwardRefExoticComponent<MenubarItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
678
|
+
interface MenubarSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
679
|
+
}
|
|
680
|
+
declare const MenubarSeparator: react.ForwardRefExoticComponent<MenubarSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
681
|
+
interface MenubarShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
682
|
+
}
|
|
683
|
+
declare const MenubarShortcut: react.ForwardRefExoticComponent<MenubarShortcutProps & react.RefAttributes<HTMLSpanElement>>;
|
|
684
|
+
|
|
685
|
+
interface DrawerProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
|
|
686
|
+
}
|
|
687
|
+
declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDialogElement>>;
|
|
688
|
+
interface DrawerContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
689
|
+
}
|
|
690
|
+
declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
691
|
+
interface DrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
692
|
+
}
|
|
693
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<DrawerHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
694
|
+
interface DrawerTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
695
|
+
}
|
|
696
|
+
declare const DrawerTitle: react.ForwardRefExoticComponent<DrawerTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
697
|
+
interface DrawerDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
698
|
+
}
|
|
699
|
+
declare const DrawerDescription: react.ForwardRefExoticComponent<DrawerDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
700
|
+
interface DrawerFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
701
|
+
}
|
|
702
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<DrawerFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
703
|
+
declare const DrawerClose: react.ForwardRefExoticComponent<react.ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
704
|
+
|
|
705
|
+
interface ResizablePanelGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
706
|
+
direction?: 'horizontal' | 'vertical';
|
|
707
|
+
}
|
|
708
|
+
declare const ResizablePanelGroup: react.ForwardRefExoticComponent<ResizablePanelGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
709
|
+
interface ResizablePanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
710
|
+
defaultSize?: number;
|
|
711
|
+
minSize?: number;
|
|
712
|
+
maxSize?: number;
|
|
713
|
+
}
|
|
714
|
+
declare const ResizablePanel: react.ForwardRefExoticComponent<ResizablePanelProps & react.RefAttributes<HTMLDivElement>>;
|
|
715
|
+
interface ResizableHandleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
716
|
+
withHandle?: boolean;
|
|
717
|
+
}
|
|
718
|
+
declare const ResizableHandle: react.ForwardRefExoticComponent<ResizableHandleProps & react.RefAttributes<HTMLDivElement>>;
|
|
719
|
+
|
|
720
|
+
interface InputOTPProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
721
|
+
length?: number;
|
|
722
|
+
value?: string;
|
|
723
|
+
onChange?: (value: string) => void;
|
|
724
|
+
disabled?: boolean;
|
|
725
|
+
}
|
|
726
|
+
declare const InputOTP: react.ForwardRefExoticComponent<InputOTPProps & react.RefAttributes<HTMLDivElement>>;
|
|
727
|
+
interface InputOTPSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
728
|
+
}
|
|
729
|
+
declare const InputOTPSeparator: react.ForwardRefExoticComponent<InputOTPSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
730
|
+
|
|
731
|
+
type KbdSize = 'sm' | 'md' | 'lg';
|
|
732
|
+
interface KbdProps extends React.HTMLAttributes<HTMLElement> {
|
|
733
|
+
size?: KbdSize;
|
|
734
|
+
}
|
|
735
|
+
declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
|
|
736
|
+
|
|
737
|
+
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
738
|
+
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
739
|
+
size?: SpinnerSize;
|
|
740
|
+
}
|
|
741
|
+
declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<HTMLDivElement>>;
|
|
742
|
+
|
|
743
|
+
interface TypographyH1Props extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
744
|
+
}
|
|
745
|
+
interface TypographyH2Props extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
746
|
+
}
|
|
747
|
+
interface TypographyH3Props extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
748
|
+
}
|
|
749
|
+
interface TypographyH4Props extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
750
|
+
}
|
|
751
|
+
interface TypographyPProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
752
|
+
}
|
|
753
|
+
interface TypographyLeadProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
754
|
+
}
|
|
755
|
+
interface TypographyLargeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
756
|
+
}
|
|
757
|
+
interface TypographySmallProps extends React.HTMLAttributes<HTMLElement> {
|
|
758
|
+
}
|
|
759
|
+
interface TypographyMutedProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
760
|
+
}
|
|
761
|
+
interface TypographyBlockquoteProps extends React.HTMLAttributes<HTMLQuoteElement> {
|
|
762
|
+
}
|
|
763
|
+
interface TypographyInlineCodeProps extends React.HTMLAttributes<HTMLElement> {
|
|
764
|
+
}
|
|
765
|
+
interface TypographyListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
766
|
+
}
|
|
767
|
+
declare const TypographyH1: react.ForwardRefExoticComponent<TypographyH1Props & react.RefAttributes<HTMLHeadingElement>>;
|
|
768
|
+
declare const TypographyH2: react.ForwardRefExoticComponent<TypographyH2Props & react.RefAttributes<HTMLHeadingElement>>;
|
|
769
|
+
declare const TypographyH3: react.ForwardRefExoticComponent<TypographyH3Props & react.RefAttributes<HTMLHeadingElement>>;
|
|
770
|
+
declare const TypographyH4: react.ForwardRefExoticComponent<TypographyH4Props & react.RefAttributes<HTMLHeadingElement>>;
|
|
771
|
+
declare const TypographyP: react.ForwardRefExoticComponent<TypographyPProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
772
|
+
declare const TypographyLead: react.ForwardRefExoticComponent<TypographyLeadProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
773
|
+
declare const TypographyLarge: react.ForwardRefExoticComponent<TypographyLargeProps & react.RefAttributes<HTMLDivElement>>;
|
|
774
|
+
declare const TypographySmall: react.ForwardRefExoticComponent<TypographySmallProps & react.RefAttributes<HTMLElement>>;
|
|
775
|
+
declare const TypographyMuted: react.ForwardRefExoticComponent<TypographyMutedProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
776
|
+
declare const TypographyBlockquote: react.ForwardRefExoticComponent<TypographyBlockquoteProps & react.RefAttributes<HTMLQuoteElement>>;
|
|
777
|
+
declare const TypographyInlineCode: react.ForwardRefExoticComponent<TypographyInlineCodeProps & react.RefAttributes<HTMLElement>>;
|
|
778
|
+
declare const TypographyList: react.ForwardRefExoticComponent<TypographyListProps & react.RefAttributes<HTMLUListElement>>;
|
|
779
|
+
|
|
780
|
+
interface EmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
781
|
+
icon?: React.ReactNode;
|
|
782
|
+
title?: string;
|
|
783
|
+
description?: string;
|
|
784
|
+
action?: React.ReactNode;
|
|
785
|
+
}
|
|
786
|
+
declare const Empty: react.ForwardRefExoticComponent<EmptyProps & react.RefAttributes<HTMLDivElement>>;
|
|
787
|
+
|
|
788
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
789
|
+
label?: string;
|
|
790
|
+
htmlFor?: string;
|
|
791
|
+
required?: boolean;
|
|
792
|
+
error?: string;
|
|
793
|
+
description?: string;
|
|
794
|
+
}
|
|
795
|
+
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
796
|
+
|
|
797
|
+
type Dir = 'ltr' | 'rtl';
|
|
798
|
+
declare function useDirection(): Dir;
|
|
799
|
+
interface DirectionProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
800
|
+
dir: Dir;
|
|
801
|
+
}
|
|
802
|
+
declare const DirectionProvider: react.ForwardRefExoticComponent<DirectionProviderProps & react.RefAttributes<HTMLDivElement>>;
|
|
803
|
+
|
|
804
|
+
type NativeSelectSize = 'sm' | 'md' | 'lg';
|
|
805
|
+
interface NativeSelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
806
|
+
error?: boolean;
|
|
807
|
+
selectSize?: NativeSelectSize;
|
|
808
|
+
}
|
|
809
|
+
declare const NativeSelect: react.ForwardRefExoticComponent<NativeSelectProps & react.RefAttributes<HTMLSelectElement>>;
|
|
810
|
+
|
|
811
|
+
interface ItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
812
|
+
active?: boolean;
|
|
813
|
+
disabled?: boolean;
|
|
814
|
+
leading?: React.ReactNode;
|
|
815
|
+
trailing?: React.ReactNode;
|
|
816
|
+
}
|
|
817
|
+
declare const Item: react.ForwardRefExoticComponent<ItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
818
|
+
|
|
819
|
+
interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
820
|
+
orientation?: 'horizontal' | 'vertical';
|
|
821
|
+
loop?: boolean;
|
|
822
|
+
autoplay?: boolean;
|
|
823
|
+
autoplayInterval?: number;
|
|
824
|
+
}
|
|
825
|
+
declare const Carousel: react.ForwardRefExoticComponent<CarouselProps & react.RefAttributes<HTMLDivElement>>;
|
|
826
|
+
interface CarouselContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
827
|
+
}
|
|
828
|
+
declare const CarouselContent: react.ForwardRefExoticComponent<CarouselContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
829
|
+
interface CarouselItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
830
|
+
}
|
|
831
|
+
declare const CarouselItem: react.ForwardRefExoticComponent<CarouselItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
832
|
+
interface CarouselPreviousProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
833
|
+
}
|
|
834
|
+
declare const CarouselPrevious: react.ForwardRefExoticComponent<CarouselPreviousProps & react.RefAttributes<HTMLButtonElement>>;
|
|
835
|
+
interface CarouselNextProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
836
|
+
}
|
|
837
|
+
declare const CarouselNext: react.ForwardRefExoticComponent<CarouselNextProps & react.RefAttributes<HTMLButtonElement>>;
|
|
838
|
+
|
|
839
|
+
interface DataTableColumn<T> {
|
|
840
|
+
key: string;
|
|
841
|
+
header: string;
|
|
842
|
+
render?: (row: T) => React.ReactNode;
|
|
843
|
+
sortable?: boolean;
|
|
844
|
+
}
|
|
845
|
+
interface DataTableProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
846
|
+
columns: DataTableColumn<T>[];
|
|
847
|
+
data: T[];
|
|
848
|
+
pageSize?: number;
|
|
849
|
+
searchable?: boolean;
|
|
850
|
+
searchPlaceholder?: string;
|
|
851
|
+
emptyMessage?: string;
|
|
852
|
+
resultsLabel?: string;
|
|
853
|
+
}
|
|
854
|
+
declare const DataTable: <T extends Record<string, unknown>>(props: DataTableProps<T> & {
|
|
855
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
856
|
+
}) => React.ReactElement;
|
|
857
|
+
|
|
858
|
+
interface SidebarContextValue {
|
|
859
|
+
collapsed: boolean;
|
|
860
|
+
setCollapsed: (v: boolean) => void;
|
|
861
|
+
toggle: () => void;
|
|
862
|
+
}
|
|
863
|
+
declare function useSidebar(): SidebarContextValue;
|
|
864
|
+
interface SidebarProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
865
|
+
defaultCollapsed?: boolean;
|
|
866
|
+
}
|
|
867
|
+
declare const SidebarProvider: react.ForwardRefExoticComponent<SidebarProviderProps & react.RefAttributes<HTMLDivElement>>;
|
|
868
|
+
interface StormSidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
869
|
+
side?: 'left' | 'right';
|
|
870
|
+
}
|
|
871
|
+
declare const StormSidebar: react.ForwardRefExoticComponent<StormSidebarProps & react.RefAttributes<HTMLElement>>;
|
|
872
|
+
interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
873
|
+
}
|
|
874
|
+
declare const SidebarHeader: react.ForwardRefExoticComponent<SidebarHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
875
|
+
interface SidebarContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
876
|
+
}
|
|
877
|
+
declare const SidebarContent: react.ForwardRefExoticComponent<SidebarContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
878
|
+
interface SidebarFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
879
|
+
}
|
|
880
|
+
declare const SidebarFooter: react.ForwardRefExoticComponent<SidebarFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
881
|
+
interface SidebarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
882
|
+
label?: string;
|
|
883
|
+
}
|
|
884
|
+
declare const SidebarGroup: react.ForwardRefExoticComponent<SidebarGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
885
|
+
interface SidebarItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
886
|
+
active?: boolean;
|
|
887
|
+
icon?: React.ReactNode;
|
|
888
|
+
}
|
|
889
|
+
declare const SidebarItem: react.ForwardRefExoticComponent<SidebarItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
890
|
+
interface SidebarTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
891
|
+
}
|
|
892
|
+
declare const SidebarTrigger: react.ForwardRefExoticComponent<SidebarTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
893
|
+
|
|
894
|
+
type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
895
|
+
interface SonnerToast {
|
|
896
|
+
id: string;
|
|
897
|
+
title?: string;
|
|
898
|
+
description?: string;
|
|
899
|
+
variant?: ToastVariant;
|
|
900
|
+
duration?: number;
|
|
901
|
+
action?: {
|
|
902
|
+
label: string;
|
|
903
|
+
onClick: () => void;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
interface SonnerContextValue {
|
|
907
|
+
toasts: SonnerToast[];
|
|
908
|
+
addToast: (toast: Omit<SonnerToast, 'id'>) => string;
|
|
909
|
+
removeToast: (id: string) => void;
|
|
910
|
+
}
|
|
911
|
+
declare function useSonner(): SonnerContextValue;
|
|
912
|
+
interface SonnerProviderProps {
|
|
913
|
+
children: React.ReactNode;
|
|
914
|
+
}
|
|
915
|
+
declare function SonnerProvider({ children }: SonnerProviderProps): react_jsx_runtime.JSX.Element;
|
|
916
|
+
declare namespace SonnerProvider {
|
|
917
|
+
var displayName: string;
|
|
918
|
+
}
|
|
919
|
+
interface SonnerToasterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
920
|
+
position?: 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
921
|
+
}
|
|
922
|
+
declare const SonnerToaster: react.ForwardRefExoticComponent<SonnerToasterProps & react.RefAttributes<HTMLDivElement>>;
|
|
923
|
+
|
|
924
|
+
type ClassValue = string | undefined | null | false | Record<string, boolean | undefined | null> | ClassValue[];
|
|
925
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
926
|
+
|
|
927
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, type AlertProps, AlertTitle, type AlertTitleProps, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbProps, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, CardTitle, type CardTitleProps, Carousel, CarouselContent, type CarouselContentProps, CarouselItem, type CarouselItemProps, CarouselNext, type CarouselNextProps, CarouselPrevious, type CarouselPreviousProps, type CarouselProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, type ContextMenuProps, ContextMenuSeparator, type ContextMenuSeparatorProps, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, type Dir, DirectionProvider, type DirectionProviderProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, Empty, type EmptyProps, Field, type FieldProps, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, InputOTP, type InputOTPProps, InputOTPSeparator, type InputOTPSeparatorProps, type InputProps, Item, type ItemProps, Kbd, type KbdProps, Label, type LabelProps, Menubar, MenubarContent, type MenubarContentProps, MenubarItem, type MenubarItemProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarSeparator, type MenubarSeparatorProps, MenubarShortcut, type MenubarShortcutProps, MenubarTrigger, type MenubarTriggerProps, NativeSelect, type NativeSelectProps, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, type NavigationMenuProps, Pagination, PaginationEllipsis, PaginationItem, type PaginationItemProps, PaginationNext, PaginationPrevious, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, ScrollArea, type ScrollAreaProps, Select, type SelectProps, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, SidebarProvider, type SidebarProviderProps, SidebarTrigger, type SidebarTriggerProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SonnerProvider, type SonnerProviderProps, type SonnerToast as SonnerToastType, SonnerToaster, type SonnerToasterProps, type ToastVariant as SonnerVariant, Spinner, type SpinnerProps, StormSidebar, type StormSidebarProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, type ToastActionProps, ToastClose, ToastDescription, type ToastDescriptionProps, type ToastProps, ToastTitle, type ToastTitleProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipTrigger, TypographyBlockquote, type TypographyBlockquoteProps, TypographyH1, type TypographyH1Props, TypographyH2, type TypographyH2Props, TypographyH3, type TypographyH3Props, TypographyH4, type TypographyH4Props, TypographyInlineCode, type TypographyInlineCodeProps, TypographyLarge, type TypographyLargeProps, TypographyLead, type TypographyLeadProps, TypographyList, type TypographyListProps, TypographyMuted, type TypographyMutedProps, TypographyP, type TypographyPProps, TypographySmall, type TypographySmallProps, cn, useDirection, useSidebar, useSonner };
|