@vertz/theme-shadcn 0.2.20 → 0.2.21
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/configs.js +1 -1
- package/dist/index.d.ts +499 -245
- package/dist/index.js +1101 -1954
- package/dist/shared/{chunk-qvb3evv2.js → chunk-gzfp8m46.js} +22 -27
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -32,10 +32,12 @@ interface ResolvedThemeBase {
|
|
|
32
32
|
globals: GlobalCSSOutput;
|
|
33
33
|
}
|
|
34
34
|
import { VariantFunction as VariantFunction5 } from "@vertz/ui";
|
|
35
|
-
import {
|
|
35
|
+
import { ToastOptions as ToastOptions2 } from "@vertz/ui-primitives";
|
|
36
36
|
import { ChildValue } from "@vertz/ui";
|
|
37
37
|
interface AlertProps {
|
|
38
38
|
variant?: "default" | "destructive";
|
|
39
|
+
className?: string;
|
|
40
|
+
/** @deprecated Use `className` instead. */
|
|
39
41
|
class?: string;
|
|
40
42
|
children?: ChildValue;
|
|
41
43
|
}
|
|
@@ -46,12 +48,16 @@ interface AlertComponents {
|
|
|
46
48
|
}
|
|
47
49
|
import { ChildValue as ChildValue2 } from "@vertz/ui";
|
|
48
50
|
interface AvatarProps {
|
|
51
|
+
className?: string;
|
|
52
|
+
/** @deprecated Use `className` instead. */
|
|
49
53
|
class?: string;
|
|
50
54
|
children?: ChildValue2;
|
|
51
55
|
}
|
|
52
56
|
interface AvatarImageProps {
|
|
53
57
|
src: string;
|
|
54
58
|
alt: string;
|
|
59
|
+
className?: string;
|
|
60
|
+
/** @deprecated Use `className` instead. */
|
|
55
61
|
class?: string;
|
|
56
62
|
}
|
|
57
63
|
interface AvatarComponents {
|
|
@@ -62,6 +68,8 @@ interface AvatarComponents {
|
|
|
62
68
|
import { ChildValue as ChildValue3 } from "@vertz/ui";
|
|
63
69
|
interface BadgeProps {
|
|
64
70
|
color?: string;
|
|
71
|
+
className?: string;
|
|
72
|
+
/** @deprecated Use `className` instead. */
|
|
65
73
|
class?: string;
|
|
66
74
|
children?: ChildValue3;
|
|
67
75
|
}
|
|
@@ -72,13 +80,18 @@ interface BreadcrumbItem {
|
|
|
72
80
|
interface BreadcrumbProps {
|
|
73
81
|
items: BreadcrumbItem[];
|
|
74
82
|
separator?: string;
|
|
83
|
+
className?: string;
|
|
84
|
+
/** @deprecated Use `className` instead. */
|
|
75
85
|
class?: string;
|
|
76
86
|
}
|
|
77
87
|
type BreadcrumbComponents = (props: BreadcrumbProps) => HTMLElement;
|
|
78
88
|
import { ChildValue as ChildValue4 } from "@vertz/ui";
|
|
79
|
-
|
|
89
|
+
import { ElementEventHandlers } from "@vertz/ui-primitives";
|
|
90
|
+
interface ButtonProps extends ElementEventHandlers {
|
|
80
91
|
intent?: string;
|
|
81
92
|
size?: string;
|
|
93
|
+
className?: string;
|
|
94
|
+
/** @deprecated Use `className` instead. */
|
|
82
95
|
class?: string;
|
|
83
96
|
children?: ChildValue4;
|
|
84
97
|
disabled?: boolean;
|
|
@@ -87,6 +100,8 @@ interface ButtonProps {
|
|
|
87
100
|
}
|
|
88
101
|
import { ChildValue as ChildValue5 } from "@vertz/ui";
|
|
89
102
|
interface CardProps {
|
|
103
|
+
className?: string;
|
|
104
|
+
/** @deprecated Use `className` instead. */
|
|
90
105
|
class?: string;
|
|
91
106
|
children?: ChildValue5;
|
|
92
107
|
}
|
|
@@ -101,10 +116,14 @@ interface CardComponents {
|
|
|
101
116
|
}
|
|
102
117
|
import { ChildValue as ChildValue6 } from "@vertz/ui";
|
|
103
118
|
interface FormGroupProps {
|
|
119
|
+
className?: string;
|
|
120
|
+
/** @deprecated Use `className` instead. */
|
|
104
121
|
class?: string;
|
|
105
122
|
children?: ChildValue6;
|
|
106
123
|
}
|
|
107
124
|
interface FormErrorProps {
|
|
125
|
+
className?: string;
|
|
126
|
+
/** @deprecated Use `className` instead. */
|
|
108
127
|
class?: string;
|
|
109
128
|
children?: ChildValue6;
|
|
110
129
|
}
|
|
@@ -112,7 +131,10 @@ interface FormGroupComponents {
|
|
|
112
131
|
FormGroup: (props: FormGroupProps) => HTMLDivElement;
|
|
113
132
|
FormError: (props: FormErrorProps) => HTMLSpanElement;
|
|
114
133
|
}
|
|
115
|
-
|
|
134
|
+
import { ElementEventHandlers as ElementEventHandlers2 } from "@vertz/ui-primitives";
|
|
135
|
+
interface InputProps extends ElementEventHandlers2 {
|
|
136
|
+
className?: string;
|
|
137
|
+
/** @deprecated Use `className` instead. */
|
|
116
138
|
class?: string;
|
|
117
139
|
name?: string;
|
|
118
140
|
placeholder?: string;
|
|
@@ -123,6 +145,8 @@ interface InputProps {
|
|
|
123
145
|
}
|
|
124
146
|
import { ChildValue as ChildValue7 } from "@vertz/ui";
|
|
125
147
|
interface LabelProps {
|
|
148
|
+
className?: string;
|
|
149
|
+
/** @deprecated Use `className` instead. */
|
|
126
150
|
class?: string;
|
|
127
151
|
for?: string;
|
|
128
152
|
children?: ChildValue7;
|
|
@@ -132,6 +156,8 @@ interface PaginationProps {
|
|
|
132
156
|
totalPages: number;
|
|
133
157
|
onPageChange: (page: number) => void;
|
|
134
158
|
siblingCount?: number;
|
|
159
|
+
className?: string;
|
|
160
|
+
/** @deprecated Use `className` instead. */
|
|
135
161
|
class?: string;
|
|
136
162
|
}
|
|
137
163
|
type PaginationComponents = (props: PaginationProps) => HTMLElement;
|
|
@@ -143,68 +169,92 @@ interface AccordionRootProps {
|
|
|
143
169
|
}
|
|
144
170
|
interface AccordionSlotProps {
|
|
145
171
|
children?: ChildValue8;
|
|
172
|
+
className?: string;
|
|
173
|
+
/** @deprecated Use `className` instead. */
|
|
146
174
|
class?: string;
|
|
147
175
|
}
|
|
148
176
|
interface AccordionItemProps {
|
|
149
177
|
value: string;
|
|
150
178
|
children?: ChildValue8;
|
|
179
|
+
className?: string;
|
|
180
|
+
/** @deprecated Use `className` instead. */
|
|
151
181
|
class?: string;
|
|
152
182
|
}
|
|
153
183
|
interface ThemedAccordionComponent {
|
|
154
|
-
(props: AccordionRootProps):
|
|
155
|
-
Item: (props: AccordionItemProps) =>
|
|
184
|
+
(props: AccordionRootProps): HTMLElement;
|
|
185
|
+
Item: (props: AccordionItemProps) => HTMLElement;
|
|
156
186
|
Trigger: (props: AccordionSlotProps) => HTMLElement;
|
|
157
187
|
Content: (props: AccordionSlotProps) => HTMLElement;
|
|
158
188
|
}
|
|
159
189
|
import { ChildValue as ChildValue9 } from "@vertz/ui";
|
|
160
|
-
|
|
161
|
-
interface AlertDialogRootProps extends DialogOptions {
|
|
190
|
+
interface AlertDialogRootProps {
|
|
162
191
|
children?: ChildValue9;
|
|
192
|
+
onOpenChange?: (open: boolean) => void;
|
|
193
|
+
onAction?: () => void;
|
|
163
194
|
}
|
|
164
195
|
interface AlertDialogSlotProps {
|
|
165
196
|
children?: ChildValue9;
|
|
197
|
+
className?: string;
|
|
198
|
+
/** @deprecated Use `className` instead. */
|
|
166
199
|
class?: string;
|
|
167
200
|
}
|
|
201
|
+
interface AlertDialogButtonSlotProps extends AlertDialogSlotProps {
|
|
202
|
+
onClick?: () => void;
|
|
203
|
+
disabled?: boolean;
|
|
204
|
+
}
|
|
168
205
|
interface ThemedAlertDialogComponent {
|
|
169
206
|
(props: AlertDialogRootProps): HTMLElement;
|
|
170
207
|
Trigger: (props: AlertDialogSlotProps) => HTMLElement;
|
|
171
208
|
Content: (props: AlertDialogSlotProps) => HTMLElement;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
import {
|
|
193
|
-
interface
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
interface
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
Header: (props: AlertDialogSlotProps) => HTMLElement;
|
|
210
|
+
Title: (props: AlertDialogSlotProps) => HTMLElement;
|
|
211
|
+
Description: (props: AlertDialogSlotProps) => HTMLElement;
|
|
212
|
+
Footer: (props: AlertDialogSlotProps) => HTMLElement;
|
|
213
|
+
Cancel: (props: AlertDialogButtonSlotProps) => HTMLElement;
|
|
214
|
+
Action: (props: AlertDialogButtonSlotProps) => HTMLElement;
|
|
215
|
+
}
|
|
216
|
+
import { ComposedCalendarProps } from "@vertz/ui-primitives";
|
|
217
|
+
interface CalendarRootProps {
|
|
218
|
+
mode?: ComposedCalendarProps["mode"];
|
|
219
|
+
defaultValue?: ComposedCalendarProps["defaultValue"];
|
|
220
|
+
defaultMonth?: Date;
|
|
221
|
+
minDate?: Date;
|
|
222
|
+
maxDate?: Date;
|
|
223
|
+
disabled?: (date: Date) => boolean;
|
|
224
|
+
weekStartsOn?: ComposedCalendarProps["weekStartsOn"];
|
|
225
|
+
onValueChange?: ComposedCalendarProps["onValueChange"];
|
|
226
|
+
onMonthChange?: (month: Date) => void;
|
|
227
|
+
}
|
|
228
|
+
type ThemedCalendarComponent = (props: CalendarRootProps) => HTMLElement;
|
|
229
|
+
import { ChildValue as ChildValue10 } from "@vertz/ui";
|
|
230
|
+
interface CarouselRootProps {
|
|
231
|
+
orientation?: "horizontal" | "vertical";
|
|
232
|
+
loop?: boolean;
|
|
233
|
+
defaultIndex?: number;
|
|
234
|
+
onSlideChange?: (index: number) => void;
|
|
235
|
+
children?: ChildValue10;
|
|
236
|
+
}
|
|
237
|
+
interface CarouselSlotProps {
|
|
238
|
+
children?: ChildValue10;
|
|
239
|
+
className?: string;
|
|
240
|
+
/** @deprecated Use `className` instead. */
|
|
241
|
+
class?: string;
|
|
242
|
+
}
|
|
243
|
+
interface ThemedCarouselComponent {
|
|
244
|
+
(props: CarouselRootProps): HTMLElement;
|
|
245
|
+
Slide: (props: CarouselSlotProps) => HTMLElement;
|
|
246
|
+
Previous: (props: CarouselSlotProps) => HTMLElement;
|
|
247
|
+
Next: (props: CarouselSlotProps) => HTMLElement;
|
|
248
|
+
}
|
|
249
|
+
import { ChildValue as ChildValue11 } from "@vertz/ui";
|
|
250
|
+
import { CheckedState } from "@vertz/ui-primitives";
|
|
251
|
+
interface CheckboxRootProps {
|
|
252
|
+
children?: ChildValue11;
|
|
253
|
+
defaultChecked?: CheckedState;
|
|
254
|
+
disabled?: boolean;
|
|
255
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
256
|
+
}
|
|
257
|
+
type ThemedCheckboxComponent = (props: CheckboxRootProps) => HTMLElement;
|
|
208
258
|
import { CollapsibleElements, CollapsibleOptions, CollapsibleState } from "@vertz/ui-primitives";
|
|
209
259
|
interface CollapsibleStyleClasses {
|
|
210
260
|
readonly content: string;
|
|
@@ -212,46 +262,84 @@ interface CollapsibleStyleClasses {
|
|
|
212
262
|
declare function createThemedCollapsible(styles: CollapsibleStyleClasses): (options?: CollapsibleOptions) => CollapsibleElements & {
|
|
213
263
|
state: CollapsibleState;
|
|
214
264
|
};
|
|
215
|
-
import {
|
|
216
|
-
interface
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
readonly groupHeading: string;
|
|
223
|
-
readonly separator: string;
|
|
224
|
-
readonly empty: string;
|
|
225
|
-
}
|
|
226
|
-
interface ThemedCommandResult extends CommandElements {
|
|
227
|
-
state: CommandState;
|
|
228
|
-
Item: (value: string, label?: string, keywords?: string[]) => HTMLDivElement;
|
|
229
|
-
Group: (label: string) => {
|
|
230
|
-
el: HTMLDivElement;
|
|
231
|
-
Item: (value: string, label?: string, keywords?: string[]) => HTMLDivElement;
|
|
232
|
-
};
|
|
233
|
-
Separator: () => HTMLHRElement;
|
|
265
|
+
import { ChildValue as ChildValue12 } from "@vertz/ui";
|
|
266
|
+
interface CommandRootProps {
|
|
267
|
+
filter?: (value: string, search: string) => boolean;
|
|
268
|
+
onSelect?: (value: string) => void;
|
|
269
|
+
onInputChange?: (value: string) => void;
|
|
270
|
+
placeholder?: string;
|
|
271
|
+
children?: ChildValue12;
|
|
234
272
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
273
|
+
interface CommandSlotProps {
|
|
274
|
+
children?: ChildValue12;
|
|
275
|
+
className?: string;
|
|
276
|
+
/** @deprecated Use `className` instead. */
|
|
277
|
+
class?: string;
|
|
278
|
+
}
|
|
279
|
+
interface CommandItemProps {
|
|
280
|
+
value: string;
|
|
281
|
+
children?: ChildValue12;
|
|
282
|
+
keywords?: string[];
|
|
283
|
+
className?: string;
|
|
284
|
+
/** @deprecated Use `className` instead. */
|
|
285
|
+
class?: string;
|
|
286
|
+
}
|
|
287
|
+
interface CommandGroupProps {
|
|
288
|
+
label: string;
|
|
289
|
+
children?: ChildValue12;
|
|
290
|
+
className?: string;
|
|
291
|
+
/** @deprecated Use `className` instead. */
|
|
292
|
+
class?: string;
|
|
293
|
+
}
|
|
294
|
+
interface ThemedCommandComponent {
|
|
295
|
+
(props: CommandRootProps): HTMLElement;
|
|
296
|
+
Input: (props: CommandSlotProps) => HTMLElement;
|
|
297
|
+
List: (props: CommandSlotProps) => HTMLElement;
|
|
298
|
+
Empty: (props: CommandSlotProps) => HTMLElement;
|
|
299
|
+
Item: (props: CommandItemProps) => HTMLElement;
|
|
300
|
+
Group: (props: CommandGroupProps) => HTMLElement;
|
|
301
|
+
Separator: (props: CommandSlotProps) => HTMLElement;
|
|
302
|
+
}
|
|
303
|
+
import { ChildValue as ChildValue13 } from "@vertz/ui";
|
|
304
|
+
interface ContextMenuRootProps {
|
|
305
|
+
onSelect?: (value: string) => void;
|
|
306
|
+
children?: ChildValue13;
|
|
307
|
+
}
|
|
308
|
+
interface ContextMenuSlotProps {
|
|
309
|
+
children?: ChildValue13;
|
|
310
|
+
className?: string;
|
|
311
|
+
/** @deprecated Use `className` instead. */
|
|
312
|
+
class?: string;
|
|
313
|
+
}
|
|
314
|
+
interface ContextMenuItemProps {
|
|
315
|
+
value: string;
|
|
316
|
+
children?: ChildValue13;
|
|
317
|
+
className?: string;
|
|
318
|
+
/** @deprecated Use `className` instead. */
|
|
319
|
+
class?: string;
|
|
320
|
+
}
|
|
321
|
+
interface ContextMenuGroupProps {
|
|
322
|
+
label: string;
|
|
323
|
+
children?: ChildValue13;
|
|
324
|
+
className?: string;
|
|
325
|
+
/** @deprecated Use `className` instead. */
|
|
326
|
+
class?: string;
|
|
327
|
+
}
|
|
328
|
+
interface ContextMenuLabelProps {
|
|
329
|
+
children?: ChildValue13;
|
|
330
|
+
className?: string;
|
|
331
|
+
/** @deprecated Use `className` instead. */
|
|
332
|
+
class?: string;
|
|
333
|
+
}
|
|
334
|
+
interface ThemedContextMenuComponent {
|
|
335
|
+
(props: ContextMenuRootProps): HTMLElement;
|
|
336
|
+
Trigger: (props: ContextMenuSlotProps) => HTMLElement;
|
|
337
|
+
Content: (props: ContextMenuSlotProps) => HTMLElement;
|
|
338
|
+
Item: (props: ContextMenuItemProps) => HTMLElement;
|
|
339
|
+
Group: (props: ContextMenuGroupProps) => HTMLElement;
|
|
340
|
+
Label: (props: ContextMenuLabelProps) => HTMLElement;
|
|
341
|
+
Separator: (props: ContextMenuSlotProps) => HTMLElement;
|
|
253
342
|
}
|
|
254
|
-
declare function createThemedContextMenu(styles: ContextMenuStyleClasses): (options?: ContextMenuOptions) => ThemedContextMenuResult;
|
|
255
343
|
import { DatePickerElements, DatePickerOptions, DatePickerState } from "@vertz/ui-primitives";
|
|
256
344
|
interface DatePickerStyleClasses {
|
|
257
345
|
readonly trigger: string;
|
|
@@ -262,77 +350,91 @@ declare function createThemedDatePicker(styles: DatePickerStyleClasses): (option
|
|
|
262
350
|
show: () => void;
|
|
263
351
|
hide: () => void;
|
|
264
352
|
};
|
|
265
|
-
import { ChildValue as
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
353
|
+
import { ChildValue as ChildValue14 } from "@vertz/ui";
|
|
354
|
+
interface DialogRootProps {
|
|
355
|
+
children?: ChildValue14;
|
|
356
|
+
onOpenChange?: (open: boolean) => void;
|
|
269
357
|
}
|
|
270
358
|
interface DialogSlotProps {
|
|
271
|
-
children?:
|
|
359
|
+
children?: ChildValue14;
|
|
360
|
+
className?: string;
|
|
361
|
+
/** @deprecated Use `className` instead. */
|
|
272
362
|
class?: string;
|
|
273
363
|
}
|
|
274
364
|
interface ThemedDialogComponent {
|
|
275
365
|
(props: DialogRootProps): HTMLElement;
|
|
276
366
|
Trigger: (props: DialogSlotProps) => HTMLElement;
|
|
277
367
|
Content: (props: DialogSlotProps) => HTMLElement;
|
|
278
|
-
Header: (props: DialogSlotProps) =>
|
|
279
|
-
Title: (props: DialogSlotProps) =>
|
|
280
|
-
Description: (props: DialogSlotProps) =>
|
|
281
|
-
Footer: (props: DialogSlotProps) =>
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
368
|
+
Header: (props: DialogSlotProps) => HTMLElement;
|
|
369
|
+
Title: (props: DialogSlotProps) => HTMLElement;
|
|
370
|
+
Description: (props: DialogSlotProps) => HTMLElement;
|
|
371
|
+
Footer: (props: DialogSlotProps) => HTMLElement;
|
|
372
|
+
Close: (props: DialogSlotProps) => HTMLElement;
|
|
373
|
+
}
|
|
374
|
+
import { ChildValue as ChildValue15 } from "@vertz/ui";
|
|
375
|
+
import { SheetSide } from "@vertz/ui-primitives";
|
|
376
|
+
type DrawerSide = SheetSide;
|
|
377
|
+
interface DrawerRootProps {
|
|
286
378
|
side?: DrawerSide;
|
|
379
|
+
onOpenChange?: (open: boolean) => void;
|
|
380
|
+
children?: ChildValue15;
|
|
287
381
|
}
|
|
288
|
-
interface
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
readonly panelBottom: string;
|
|
294
|
-
readonly title: string;
|
|
295
|
-
readonly description: string;
|
|
296
|
-
readonly handle: string;
|
|
297
|
-
readonly close: string;
|
|
382
|
+
interface DrawerSlotProps {
|
|
383
|
+
children?: ChildValue15;
|
|
384
|
+
className?: string;
|
|
385
|
+
/** @deprecated Use `className` instead. */
|
|
386
|
+
class?: string;
|
|
298
387
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
388
|
+
interface ThemedDrawerComponent {
|
|
389
|
+
(props: DrawerRootProps): HTMLElement;
|
|
390
|
+
Trigger: (props: DrawerSlotProps) => HTMLElement;
|
|
391
|
+
Content: (props: DrawerSlotProps) => HTMLElement;
|
|
392
|
+
Header: (props: DrawerSlotProps) => HTMLElement;
|
|
393
|
+
Title: (props: DrawerSlotProps) => HTMLElement;
|
|
394
|
+
Description: (props: DrawerSlotProps) => HTMLElement;
|
|
395
|
+
Footer: (props: DrawerSlotProps) => HTMLElement;
|
|
396
|
+
Handle: (props: DrawerSlotProps) => HTMLElement;
|
|
397
|
+
}
|
|
398
|
+
import { ChildValue as ChildValue16 } from "@vertz/ui";
|
|
399
|
+
interface DropdownMenuRootProps {
|
|
400
|
+
onSelect?: (value: string) => void;
|
|
401
|
+
onOpenChange?: (open: boolean) => void;
|
|
402
|
+
children?: ChildValue16;
|
|
309
403
|
}
|
|
310
404
|
interface DropdownMenuSlotProps {
|
|
311
|
-
children?:
|
|
405
|
+
children?: ChildValue16;
|
|
406
|
+
className?: string;
|
|
407
|
+
/** @deprecated Use `className` instead. */
|
|
312
408
|
class?: string;
|
|
313
409
|
}
|
|
314
410
|
interface DropdownMenuItemProps {
|
|
315
411
|
value: string;
|
|
316
|
-
children?:
|
|
412
|
+
children?: ChildValue16;
|
|
413
|
+
className?: string;
|
|
414
|
+
/** @deprecated Use `className` instead. */
|
|
317
415
|
class?: string;
|
|
318
416
|
}
|
|
319
417
|
interface DropdownMenuGroupProps {
|
|
320
418
|
label: string;
|
|
321
|
-
children?:
|
|
419
|
+
children?: ChildValue16;
|
|
420
|
+
className?: string;
|
|
421
|
+
/** @deprecated Use `className` instead. */
|
|
322
422
|
class?: string;
|
|
323
423
|
}
|
|
324
424
|
interface DropdownMenuLabelProps {
|
|
325
|
-
children?:
|
|
425
|
+
children?: ChildValue16;
|
|
426
|
+
className?: string;
|
|
427
|
+
/** @deprecated Use `className` instead. */
|
|
326
428
|
class?: string;
|
|
327
429
|
}
|
|
328
430
|
interface ThemedDropdownMenuComponent {
|
|
329
431
|
(props: DropdownMenuRootProps): HTMLElement;
|
|
330
432
|
Trigger: (props: DropdownMenuSlotProps) => HTMLElement;
|
|
331
433
|
Content: (props: DropdownMenuSlotProps) => HTMLElement;
|
|
332
|
-
Item: (props: DropdownMenuItemProps) =>
|
|
333
|
-
Group: (props: DropdownMenuGroupProps) =>
|
|
334
|
-
Label: (props: DropdownMenuLabelProps) =>
|
|
335
|
-
Separator: () =>
|
|
434
|
+
Item: (props: DropdownMenuItemProps) => HTMLElement;
|
|
435
|
+
Group: (props: DropdownMenuGroupProps) => HTMLElement;
|
|
436
|
+
Label: (props: DropdownMenuLabelProps) => HTMLElement;
|
|
437
|
+
Separator: (props: DropdownMenuSlotProps) => HTMLElement;
|
|
336
438
|
}
|
|
337
439
|
import { HoverCardElements, HoverCardOptions, HoverCardState } from "@vertz/ui-primitives";
|
|
338
440
|
interface HoverCardStyleClasses {
|
|
@@ -341,54 +443,98 @@ interface HoverCardStyleClasses {
|
|
|
341
443
|
declare function createThemedHoverCard(styles: HoverCardStyleClasses): (options?: HoverCardOptions) => HoverCardElements & {
|
|
342
444
|
state: HoverCardState;
|
|
343
445
|
};
|
|
344
|
-
import {
|
|
345
|
-
interface
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
readonly content: string;
|
|
349
|
-
readonly item: string;
|
|
350
|
-
readonly separator: string;
|
|
351
|
-
readonly label: string;
|
|
352
|
-
}
|
|
353
|
-
interface ThemedMenubarResult extends MenubarElements {
|
|
354
|
-
state: MenubarState;
|
|
355
|
-
Menu: (value: string, label?: string) => {
|
|
356
|
-
trigger: HTMLButtonElement;
|
|
357
|
-
content: HTMLDivElement;
|
|
358
|
-
Item: (value: string, label?: string) => HTMLDivElement;
|
|
359
|
-
Group: (label: string) => {
|
|
360
|
-
el: HTMLDivElement;
|
|
361
|
-
Item: (value: string, label?: string) => HTMLDivElement;
|
|
362
|
-
};
|
|
363
|
-
Separator: () => HTMLHRElement;
|
|
364
|
-
};
|
|
446
|
+
import { ChildValue as ChildValue17 } from "@vertz/ui";
|
|
447
|
+
interface MenubarRootProps {
|
|
448
|
+
onSelect?: (value: string) => void;
|
|
449
|
+
children?: ChildValue17;
|
|
365
450
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
readonly root: string;
|
|
370
|
-
readonly list: string;
|
|
371
|
-
readonly trigger: string;
|
|
372
|
-
readonly content: string;
|
|
373
|
-
readonly link: string;
|
|
374
|
-
readonly viewport: string;
|
|
451
|
+
interface MenubarMenuProps {
|
|
452
|
+
value: string;
|
|
453
|
+
children?: ChildValue17;
|
|
375
454
|
}
|
|
376
|
-
interface
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
};
|
|
382
|
-
Link: (href: string, label: string) => HTMLAnchorElement;
|
|
455
|
+
interface MenubarSlotProps {
|
|
456
|
+
children?: ChildValue17;
|
|
457
|
+
className?: string;
|
|
458
|
+
/** @deprecated Use `className` instead. */
|
|
459
|
+
class?: string;
|
|
383
460
|
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
461
|
+
interface MenubarItemProps {
|
|
462
|
+
value: string;
|
|
463
|
+
children?: ChildValue17;
|
|
464
|
+
className?: string;
|
|
465
|
+
/** @deprecated Use `className` instead. */
|
|
466
|
+
class?: string;
|
|
467
|
+
}
|
|
468
|
+
interface MenubarGroupProps {
|
|
469
|
+
label: string;
|
|
470
|
+
children?: ChildValue17;
|
|
471
|
+
className?: string;
|
|
472
|
+
/** @deprecated Use `className` instead. */
|
|
473
|
+
class?: string;
|
|
474
|
+
}
|
|
475
|
+
interface MenubarLabelProps {
|
|
476
|
+
children?: ChildValue17;
|
|
477
|
+
className?: string;
|
|
478
|
+
/** @deprecated Use `className` instead. */
|
|
479
|
+
class?: string;
|
|
480
|
+
}
|
|
481
|
+
interface ThemedMenubarComponent {
|
|
482
|
+
(props: MenubarRootProps): HTMLElement;
|
|
483
|
+
Menu: (props: MenubarMenuProps) => HTMLElement;
|
|
484
|
+
Trigger: (props: MenubarSlotProps) => HTMLElement;
|
|
485
|
+
Content: (props: MenubarSlotProps) => HTMLElement;
|
|
486
|
+
Item: (props: MenubarItemProps) => HTMLElement;
|
|
487
|
+
Group: (props: MenubarGroupProps) => HTMLElement;
|
|
488
|
+
Label: (props: MenubarLabelProps) => HTMLElement;
|
|
489
|
+
Separator: (props: MenubarSlotProps) => HTMLElement;
|
|
490
|
+
}
|
|
491
|
+
import { ChildValue as ChildValue18 } from "@vertz/ui";
|
|
492
|
+
interface NavigationMenuRootProps {
|
|
493
|
+
orientation?: "horizontal" | "vertical";
|
|
494
|
+
delayOpen?: number;
|
|
495
|
+
delayClose?: number;
|
|
496
|
+
children?: ChildValue18;
|
|
497
|
+
}
|
|
498
|
+
interface NavigationMenuSlotProps {
|
|
499
|
+
children?: ChildValue18;
|
|
500
|
+
className?: string;
|
|
501
|
+
/** @deprecated Use `className` instead. */
|
|
502
|
+
class?: string;
|
|
503
|
+
}
|
|
504
|
+
interface NavigationMenuItemProps {
|
|
505
|
+
value: string;
|
|
506
|
+
children?: ChildValue18;
|
|
507
|
+
}
|
|
508
|
+
interface NavigationMenuLinkProps {
|
|
509
|
+
href: string;
|
|
510
|
+
children?: ChildValue18;
|
|
511
|
+
className?: string;
|
|
512
|
+
/** @deprecated Use `className` instead. */
|
|
513
|
+
class?: string;
|
|
514
|
+
}
|
|
515
|
+
interface NavigationMenuViewportProps {
|
|
516
|
+
className?: string;
|
|
517
|
+
/** @deprecated Use `className` instead. */
|
|
518
|
+
class?: string;
|
|
519
|
+
}
|
|
520
|
+
interface ThemedNavigationMenuComponent {
|
|
521
|
+
(props: NavigationMenuRootProps): HTMLElement;
|
|
522
|
+
List: (props: NavigationMenuSlotProps) => HTMLElement;
|
|
523
|
+
Item: (props: NavigationMenuItemProps) => HTMLElement;
|
|
524
|
+
Trigger: (props: NavigationMenuSlotProps) => HTMLElement;
|
|
525
|
+
Content: (props: NavigationMenuSlotProps) => HTMLElement;
|
|
526
|
+
Link: (props: NavigationMenuLinkProps) => HTMLElement;
|
|
527
|
+
Viewport: (props: NavigationMenuViewportProps) => HTMLElement;
|
|
528
|
+
}
|
|
529
|
+
import { ChildValue as ChildValue19 } from "@vertz/ui";
|
|
530
|
+
interface PopoverRootProps {
|
|
531
|
+
onOpenChange?: (open: boolean) => void;
|
|
532
|
+
children?: ChildValue19;
|
|
389
533
|
}
|
|
390
534
|
interface PopoverSlotProps {
|
|
391
|
-
children?:
|
|
535
|
+
children?: ChildValue19;
|
|
536
|
+
className?: string;
|
|
537
|
+
/** @deprecated Use `className` instead. */
|
|
392
538
|
class?: string;
|
|
393
539
|
}
|
|
394
540
|
interface ThemedPopoverComponent {
|
|
@@ -396,10 +542,28 @@ interface ThemedPopoverComponent {
|
|
|
396
542
|
Trigger: (props: PopoverSlotProps) => HTMLElement;
|
|
397
543
|
Content: (props: PopoverSlotProps) => HTMLElement;
|
|
398
544
|
}
|
|
399
|
-
import {
|
|
400
|
-
interface
|
|
401
|
-
|
|
402
|
-
|
|
545
|
+
import { ChildValue as ChildValue20 } from "@vertz/ui";
|
|
546
|
+
interface ProgressRootProps {
|
|
547
|
+
children?: ChildValue20;
|
|
548
|
+
defaultValue?: number;
|
|
549
|
+
min?: number;
|
|
550
|
+
max?: number;
|
|
551
|
+
}
|
|
552
|
+
type ThemedProgressComponent = (props: ProgressRootProps) => HTMLElement;
|
|
553
|
+
import { ChildValue as ChildValue21 } from "@vertz/ui";
|
|
554
|
+
interface RadioGroupRootProps {
|
|
555
|
+
children?: ChildValue21;
|
|
556
|
+
defaultValue?: string;
|
|
557
|
+
onValueChange?: (value: string) => void;
|
|
558
|
+
}
|
|
559
|
+
interface RadioGroupItemProps {
|
|
560
|
+
value: string;
|
|
561
|
+
disabled?: boolean;
|
|
562
|
+
children?: ChildValue21;
|
|
563
|
+
}
|
|
564
|
+
interface ThemedRadioGroupComponent {
|
|
565
|
+
(props: RadioGroupRootProps): HTMLElement;
|
|
566
|
+
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
403
567
|
}
|
|
404
568
|
import { PanelOptions, ResizablePanelElements, ResizablePanelOptions, ResizablePanelState } from "@vertz/ui-primitives";
|
|
405
569
|
interface ResizablePanelStyleClasses {
|
|
@@ -423,81 +587,113 @@ declare function createThemedScrollArea(styles: ScrollAreaStyleClasses): (option
|
|
|
423
587
|
state: ScrollAreaState;
|
|
424
588
|
update: () => void;
|
|
425
589
|
};
|
|
426
|
-
import { ChildValue as
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
590
|
+
import { ChildValue as ChildValue22 } from "@vertz/ui";
|
|
591
|
+
interface SelectRootProps {
|
|
592
|
+
defaultValue?: string;
|
|
593
|
+
placeholder?: string;
|
|
594
|
+
onValueChange?: (value: string) => void;
|
|
595
|
+
children?: ChildValue22;
|
|
430
596
|
}
|
|
431
597
|
interface SelectSlotProps {
|
|
432
|
-
children?:
|
|
598
|
+
children?: ChildValue22;
|
|
599
|
+
className?: string;
|
|
600
|
+
/** @deprecated Use `className` instead. */
|
|
433
601
|
class?: string;
|
|
434
602
|
}
|
|
435
603
|
interface SelectItemProps {
|
|
436
604
|
value: string;
|
|
437
|
-
children?:
|
|
605
|
+
children?: ChildValue22;
|
|
606
|
+
className?: string;
|
|
607
|
+
/** @deprecated Use `className` instead. */
|
|
438
608
|
class?: string;
|
|
439
609
|
}
|
|
440
610
|
interface SelectGroupProps {
|
|
441
611
|
label: string;
|
|
442
|
-
children?:
|
|
612
|
+
children?: ChildValue22;
|
|
613
|
+
className?: string;
|
|
614
|
+
/** @deprecated Use `className` instead. */
|
|
443
615
|
class?: string;
|
|
444
616
|
}
|
|
445
617
|
interface ThemedSelectComponent {
|
|
446
618
|
(props: SelectRootProps): HTMLElement;
|
|
447
619
|
Trigger: (props: SelectSlotProps) => HTMLElement;
|
|
448
620
|
Content: (props: SelectSlotProps) => HTMLElement;
|
|
449
|
-
Item: (props: SelectItemProps) =>
|
|
450
|
-
Group: (props: SelectGroupProps) =>
|
|
451
|
-
Separator: (props: SelectSlotProps) =>
|
|
621
|
+
Item: (props: SelectItemProps) => HTMLElement;
|
|
622
|
+
Group: (props: SelectGroupProps) => HTMLElement;
|
|
623
|
+
Separator: (props: SelectSlotProps) => HTMLElement;
|
|
452
624
|
}
|
|
453
|
-
import { ChildValue as
|
|
454
|
-
import {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
children?:
|
|
625
|
+
import { ChildValue as ChildValue23 } from "@vertz/ui";
|
|
626
|
+
import { SheetSide as SheetSide2 } from "@vertz/ui-primitives";
|
|
627
|
+
interface SheetRootProps {
|
|
628
|
+
side?: SheetSide2;
|
|
629
|
+
onOpenChange?: (open: boolean) => void;
|
|
630
|
+
children?: ChildValue23;
|
|
459
631
|
}
|
|
460
632
|
interface SheetSlotProps {
|
|
461
|
-
children?:
|
|
633
|
+
children?: ChildValue23;
|
|
634
|
+
className?: string;
|
|
635
|
+
/** @deprecated Use `className` instead. */
|
|
462
636
|
class?: string;
|
|
463
637
|
}
|
|
464
638
|
interface ThemedSheetComponent {
|
|
465
639
|
(props: SheetRootProps): HTMLElement;
|
|
466
640
|
Trigger: (props: SheetSlotProps) => HTMLElement;
|
|
467
641
|
Content: (props: SheetSlotProps) => HTMLElement;
|
|
468
|
-
Title: (props: SheetSlotProps) =>
|
|
469
|
-
Description: (props: SheetSlotProps) =>
|
|
470
|
-
Close: (props: SheetSlotProps) =>
|
|
642
|
+
Title: (props: SheetSlotProps) => HTMLElement;
|
|
643
|
+
Description: (props: SheetSlotProps) => HTMLElement;
|
|
644
|
+
Close: (props: SheetSlotProps) => HTMLElement;
|
|
645
|
+
}
|
|
646
|
+
import { ChildValue as ChildValue24 } from "@vertz/ui";
|
|
647
|
+
interface SliderRootProps {
|
|
648
|
+
children?: ChildValue24;
|
|
649
|
+
defaultValue?: number;
|
|
650
|
+
min?: number;
|
|
651
|
+
max?: number;
|
|
652
|
+
step?: number;
|
|
653
|
+
disabled?: boolean;
|
|
654
|
+
onValueChange?: (value: number) => void;
|
|
471
655
|
}
|
|
472
|
-
|
|
473
|
-
|
|
656
|
+
type ThemedSliderComponent = (props: SliderRootProps) => HTMLElement;
|
|
657
|
+
import { ChildValue as ChildValue25 } from "@vertz/ui";
|
|
658
|
+
interface ThemedSwitchProps {
|
|
659
|
+
children?: ChildValue25;
|
|
660
|
+
defaultChecked?: boolean;
|
|
661
|
+
disabled?: boolean;
|
|
662
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
474
663
|
size?: "default" | "sm";
|
|
475
664
|
}
|
|
476
|
-
|
|
665
|
+
type ThemedSwitchComponent = (props: ThemedSwitchProps) => HTMLElement;
|
|
666
|
+
import { ChildValue as ChildValue26 } from "@vertz/ui";
|
|
477
667
|
interface TabsRootProps {
|
|
478
668
|
defaultValue?: string;
|
|
479
669
|
variant?: "default" | "line";
|
|
480
|
-
children?:
|
|
670
|
+
children?: ChildValue26;
|
|
481
671
|
}
|
|
482
672
|
interface TabsSlotProps {
|
|
483
|
-
children?:
|
|
673
|
+
children?: ChildValue26;
|
|
674
|
+
className?: string;
|
|
675
|
+
/** @deprecated Use `className` instead. */
|
|
484
676
|
class?: string;
|
|
485
677
|
}
|
|
486
678
|
interface TabsTriggerProps {
|
|
487
679
|
value: string;
|
|
488
|
-
children?:
|
|
680
|
+
children?: ChildValue26;
|
|
681
|
+
className?: string;
|
|
682
|
+
/** @deprecated Use `className` instead. */
|
|
489
683
|
class?: string;
|
|
490
684
|
}
|
|
491
685
|
interface TabsContentProps {
|
|
492
686
|
value: string;
|
|
493
|
-
children?:
|
|
687
|
+
children?: ChildValue26;
|
|
688
|
+
className?: string;
|
|
689
|
+
/** @deprecated Use `className` instead. */
|
|
494
690
|
class?: string;
|
|
495
691
|
}
|
|
496
692
|
interface ThemedTabsComponent {
|
|
497
|
-
(props: TabsRootProps):
|
|
498
|
-
List: (props: TabsSlotProps) =>
|
|
499
|
-
Trigger: (props: TabsTriggerProps) =>
|
|
500
|
-
Content: (props: TabsContentProps) =>
|
|
693
|
+
(props: TabsRootProps): HTMLElement;
|
|
694
|
+
List: (props: TabsSlotProps) => HTMLElement;
|
|
695
|
+
Trigger: (props: TabsTriggerProps) => HTMLElement;
|
|
696
|
+
Content: (props: TabsContentProps) => HTMLElement;
|
|
501
697
|
}
|
|
502
698
|
import { ToastElements, ToastMessage, ToastState } from "@vertz/ui-primitives";
|
|
503
699
|
type ThemedToastResult = ToastElements & {
|
|
@@ -505,11 +701,14 @@ type ThemedToastResult = ToastElements & {
|
|
|
505
701
|
announce: (content: string) => ToastMessage;
|
|
506
702
|
dismiss: (id: string) => void;
|
|
507
703
|
};
|
|
508
|
-
import {
|
|
509
|
-
interface
|
|
510
|
-
|
|
704
|
+
import { ChildValue as ChildValue27 } from "@vertz/ui";
|
|
705
|
+
interface ToggleRootProps {
|
|
706
|
+
children?: ChildValue27;
|
|
707
|
+
defaultPressed?: boolean;
|
|
708
|
+
disabled?: boolean;
|
|
709
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
511
710
|
}
|
|
512
|
-
|
|
711
|
+
type ThemedToggleComponent = (props: ToggleRootProps) => HTMLElement;
|
|
513
712
|
import { ToggleGroupElements, ToggleGroupOptions, ToggleGroupState } from "@vertz/ui-primitives";
|
|
514
713
|
interface ToggleGroupStyleClasses {
|
|
515
714
|
readonly root: string;
|
|
@@ -519,13 +718,15 @@ declare function createThemedToggleGroup(styles: ToggleGroupStyleClasses): (opti
|
|
|
519
718
|
state: ToggleGroupState;
|
|
520
719
|
Item: (value: string) => HTMLButtonElement;
|
|
521
720
|
};
|
|
522
|
-
import { ChildValue as
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
children?:
|
|
721
|
+
import { ChildValue as ChildValue28 } from "@vertz/ui";
|
|
722
|
+
interface TooltipRootProps {
|
|
723
|
+
delay?: number;
|
|
724
|
+
children?: ChildValue28;
|
|
526
725
|
}
|
|
527
726
|
interface TooltipSlotProps {
|
|
528
|
-
children?:
|
|
727
|
+
children?: ChildValue28;
|
|
728
|
+
className?: string;
|
|
729
|
+
/** @deprecated Use `className` instead. */
|
|
529
730
|
class?: string;
|
|
530
731
|
}
|
|
531
732
|
interface ThemedTooltipComponent {
|
|
@@ -534,9 +735,13 @@ interface ThemedTooltipComponent {
|
|
|
534
735
|
Content: (props: TooltipSlotProps) => HTMLElement;
|
|
535
736
|
}
|
|
536
737
|
interface SeparatorProps {
|
|
738
|
+
className?: string;
|
|
739
|
+
/** @deprecated Use `className` instead. */
|
|
537
740
|
class?: string;
|
|
538
741
|
}
|
|
539
742
|
interface SkeletonProps {
|
|
743
|
+
className?: string;
|
|
744
|
+
/** @deprecated Use `className` instead. */
|
|
540
745
|
class?: string;
|
|
541
746
|
width?: string;
|
|
542
747
|
height?: string;
|
|
@@ -544,10 +749,12 @@ interface SkeletonProps {
|
|
|
544
749
|
interface SkeletonComponents {
|
|
545
750
|
Skeleton: (props?: SkeletonProps) => HTMLDivElement;
|
|
546
751
|
}
|
|
547
|
-
import { ChildValue as
|
|
752
|
+
import { ChildValue as ChildValue29 } from "@vertz/ui";
|
|
548
753
|
interface TableProps {
|
|
754
|
+
className?: string;
|
|
755
|
+
/** @deprecated Use `className` instead. */
|
|
549
756
|
class?: string;
|
|
550
|
-
children?:
|
|
757
|
+
children?: ChildValue29;
|
|
551
758
|
}
|
|
552
759
|
interface TableComponents {
|
|
553
760
|
Table: (props: TableProps) => HTMLDivElement;
|
|
@@ -559,7 +766,10 @@ interface TableComponents {
|
|
|
559
766
|
TableCaption: (props: TableProps) => HTMLTableCaptionElement;
|
|
560
767
|
TableFooter: (props: TableProps) => HTMLTableSectionElement;
|
|
561
768
|
}
|
|
562
|
-
|
|
769
|
+
import { ElementEventHandlers as ElementEventHandlers3 } from "@vertz/ui-primitives";
|
|
770
|
+
interface TextareaProps extends ElementEventHandlers3 {
|
|
771
|
+
className?: string;
|
|
772
|
+
/** @deprecated Use `className` instead. */
|
|
563
773
|
class?: string;
|
|
564
774
|
name?: string;
|
|
565
775
|
placeholder?: string;
|
|
@@ -645,8 +855,10 @@ type DrawerBlocks = {
|
|
|
645
855
|
panelRight: StyleEntry16[];
|
|
646
856
|
panelTop: StyleEntry16[];
|
|
647
857
|
panelBottom: StyleEntry16[];
|
|
858
|
+
header: StyleEntry16[];
|
|
648
859
|
title: StyleEntry16[];
|
|
649
860
|
description: StyleEntry16[];
|
|
861
|
+
footer: StyleEntry16[];
|
|
650
862
|
handle: StyleEntry16[];
|
|
651
863
|
close: StyleEntry16[];
|
|
652
864
|
};
|
|
@@ -977,57 +1189,52 @@ interface ThemedPrimitives {
|
|
|
977
1189
|
Select: ThemedSelectComponent;
|
|
978
1190
|
/** Themed Tabs — composable JSX component with Tabs.List, Tabs.Trigger, Tabs.Content. */
|
|
979
1191
|
Tabs: ThemedTabsComponent;
|
|
980
|
-
/** Themed Checkbox —
|
|
981
|
-
|
|
982
|
-
/** Themed Switch —
|
|
983
|
-
|
|
1192
|
+
/** Themed Checkbox — composable JSX component wrapping @vertz/ui-primitives Checkbox. */
|
|
1193
|
+
Checkbox: ThemedCheckboxComponent;
|
|
1194
|
+
/** Themed Switch — composable JSX component wrapping @vertz/ui-primitives Switch. */
|
|
1195
|
+
Switch: ThemedSwitchComponent;
|
|
984
1196
|
/** Themed Popover — composable JSX component with Popover.Trigger, Popover.Content. */
|
|
985
1197
|
Popover: ThemedPopoverComponent;
|
|
986
|
-
/** Themed Progress —
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
radioGroup: (options?: RadioOptions2) => ThemedRadioGroupResult;
|
|
993
|
-
/** Themed Slider — wraps @vertz/ui-primitives Slider with shadcn styles. */
|
|
994
|
-
slider: (options?: SliderOptions) => SliderElements & {
|
|
995
|
-
state: SliderState;
|
|
996
|
-
};
|
|
1198
|
+
/** Themed Progress — composable JSX component wrapping @vertz/ui-primitives Progress. */
|
|
1199
|
+
Progress: ThemedProgressComponent;
|
|
1200
|
+
/** Themed RadioGroup — composable JSX component with RadioGroup.Item sub-components. */
|
|
1201
|
+
RadioGroup: ThemedRadioGroupComponent;
|
|
1202
|
+
/** Themed Slider — composable JSX component wrapping @vertz/ui-primitives Slider. */
|
|
1203
|
+
Slider: ThemedSliderComponent;
|
|
997
1204
|
/** Themed Accordion — composable JSX component with Accordion.Item, Accordion.Trigger, Accordion.Content. */
|
|
998
1205
|
Accordion: ThemedAccordionComponent;
|
|
999
|
-
/** Themed Toast —
|
|
1000
|
-
|
|
1206
|
+
/** Themed Toast — factory wrapping @vertz/ui-primitives Toast with shadcn styles. */
|
|
1207
|
+
Toast: (options?: ToastOptions2) => ThemedToastResult;
|
|
1001
1208
|
/** Themed Tooltip — composable JSX component with Tooltip.Trigger, Tooltip.Content. */
|
|
1002
1209
|
Tooltip: ThemedTooltipComponent;
|
|
1003
1210
|
/** Themed Sheet — composable JSX component with Sheet.Trigger, Sheet.Content, etc. */
|
|
1004
1211
|
Sheet: ThemedSheetComponent;
|
|
1005
|
-
/** Themed Calendar —
|
|
1006
|
-
|
|
1007
|
-
/** Themed Carousel —
|
|
1008
|
-
|
|
1212
|
+
/** Themed Calendar — composable JSX component wrapping @vertz/ui-primitives Calendar. */
|
|
1213
|
+
Calendar: ThemedCalendarComponent;
|
|
1214
|
+
/** Themed Carousel — composable JSX component with Carousel.Slide, Carousel.Previous, Carousel.Next. */
|
|
1215
|
+
Carousel: ThemedCarouselComponent;
|
|
1009
1216
|
/** Themed Collapsible — expandable/collapsible content section. */
|
|
1010
1217
|
collapsible: ReturnType<typeof createThemedCollapsible>;
|
|
1011
|
-
/** Themed Command —
|
|
1012
|
-
|
|
1013
|
-
/** Themed ContextMenu —
|
|
1014
|
-
|
|
1218
|
+
/** Themed Command — composable JSX component with Command.Input, Command.List, Command.Item, Command.Group, etc. */
|
|
1219
|
+
Command: ThemedCommandComponent;
|
|
1220
|
+
/** Themed ContextMenu — composable JSX component with ContextMenu.Trigger, ContextMenu.Content, etc. */
|
|
1221
|
+
ContextMenu: ThemedContextMenuComponent;
|
|
1015
1222
|
/** Themed DatePicker — date picker composing Calendar + Popover. */
|
|
1016
1223
|
datePicker: ReturnType<typeof createThemedDatePicker>;
|
|
1017
|
-
/** Themed Drawer —
|
|
1018
|
-
|
|
1224
|
+
/** Themed Drawer — composable JSX component with Drawer.Trigger, Drawer.Content, Drawer.Handle, etc. */
|
|
1225
|
+
Drawer: ThemedDrawerComponent;
|
|
1019
1226
|
/** Themed HoverCard — hover-triggered interactive card. */
|
|
1020
1227
|
hoverCard: ReturnType<typeof createThemedHoverCard>;
|
|
1021
|
-
/** Themed Menubar —
|
|
1022
|
-
|
|
1023
|
-
/** Themed NavigationMenu —
|
|
1024
|
-
|
|
1228
|
+
/** Themed Menubar — composable JSX component with Menubar.Menu, Menubar.Trigger, Menubar.Content, etc. */
|
|
1229
|
+
Menubar: ThemedMenubarComponent;
|
|
1230
|
+
/** Themed NavigationMenu — composable JSX component with NavigationMenu.List, NavigationMenu.Item, etc. */
|
|
1231
|
+
NavigationMenu: ThemedNavigationMenuComponent;
|
|
1025
1232
|
/** Themed ResizablePanel — resizable panel layout with drag handles. */
|
|
1026
1233
|
resizablePanel: ReturnType<typeof createThemedResizablePanel>;
|
|
1027
1234
|
/** Themed ScrollArea — custom scrollbars. */
|
|
1028
1235
|
scrollArea: ReturnType<typeof createThemedScrollArea>;
|
|
1029
|
-
/** Themed Toggle —
|
|
1030
|
-
|
|
1236
|
+
/** Themed Toggle — composable JSX component wrapping @vertz/ui-primitives Toggle. */
|
|
1237
|
+
Toggle: ThemedToggleComponent;
|
|
1031
1238
|
/** Themed ToggleGroup — group of toggle buttons. */
|
|
1032
1239
|
toggleGroup: ReturnType<typeof createThemedToggleGroup>;
|
|
1033
1240
|
}
|
|
@@ -1080,4 +1287,51 @@ interface ResolvedTheme extends ResolvedThemeBase {
|
|
|
1080
1287
|
* component styles, use `configureThemeBase()` from `@vertz/theme-shadcn/base`.
|
|
1081
1288
|
*/
|
|
1082
1289
|
declare function configureTheme(config?: ThemeConfig): ResolvedTheme;
|
|
1290
|
+
declare module "@vertz/ui/components" {
|
|
1291
|
+
interface ThemeComponentMap {
|
|
1292
|
+
Button: (props: ButtonProps) => HTMLButtonElement;
|
|
1293
|
+
Badge: (props: BadgeProps) => HTMLSpanElement;
|
|
1294
|
+
Input: (props: InputProps) => HTMLInputElement;
|
|
1295
|
+
Textarea: (props: TextareaProps) => HTMLTextAreaElement;
|
|
1296
|
+
Label: (props: LabelProps) => HTMLLabelElement;
|
|
1297
|
+
Separator: (props: SeparatorProps) => HTMLHRElement;
|
|
1298
|
+
Breadcrumb: BreadcrumbComponents;
|
|
1299
|
+
Pagination: PaginationComponents;
|
|
1300
|
+
Alert: AlertComponents;
|
|
1301
|
+
Card: CardComponents;
|
|
1302
|
+
FormGroup: FormGroupComponents;
|
|
1303
|
+
Avatar: AvatarComponents;
|
|
1304
|
+
Skeleton: SkeletonComponents;
|
|
1305
|
+
Table: TableComponents;
|
|
1306
|
+
AlertDialog: ThemedAlertDialogComponent;
|
|
1307
|
+
Dialog: ThemedDialogComponent;
|
|
1308
|
+
DropdownMenu: ThemedDropdownMenuComponent;
|
|
1309
|
+
Select: ThemedSelectComponent;
|
|
1310
|
+
Tabs: ThemedTabsComponent;
|
|
1311
|
+
Popover: ThemedPopoverComponent;
|
|
1312
|
+
RadioGroup: ThemedRadioGroupComponent;
|
|
1313
|
+
Accordion: ThemedAccordionComponent;
|
|
1314
|
+
ContextMenu: ThemedContextMenuComponent;
|
|
1315
|
+
Tooltip: ThemedTooltipComponent;
|
|
1316
|
+
Sheet: ThemedSheetComponent;
|
|
1317
|
+
Drawer: ThemedDrawerComponent;
|
|
1318
|
+
Menubar: ThemedMenubarComponent;
|
|
1319
|
+
Calendar: ThemedCalendarComponent;
|
|
1320
|
+
Checkbox: ThemedCheckboxComponent;
|
|
1321
|
+
Switch: ThemedSwitchComponent;
|
|
1322
|
+
Progress: ThemedProgressComponent;
|
|
1323
|
+
Slider: ThemedSliderComponent;
|
|
1324
|
+
Toggle: ThemedToggleComponent;
|
|
1325
|
+
Toast: ThemedPrimitives["Toast"];
|
|
1326
|
+
Carousel: ThemedCarouselComponent;
|
|
1327
|
+
Command: ThemedCommandComponent;
|
|
1328
|
+
collapsible: ThemedPrimitives["collapsible"];
|
|
1329
|
+
datePicker: ThemedPrimitives["datePicker"];
|
|
1330
|
+
hoverCard: ThemedPrimitives["hoverCard"];
|
|
1331
|
+
NavigationMenu: ThemedNavigationMenuComponent;
|
|
1332
|
+
resizablePanel: ThemedPrimitives["resizablePanel"];
|
|
1333
|
+
scrollArea: ThemedPrimitives["scrollArea"];
|
|
1334
|
+
toggleGroup: ThemedPrimitives["toggleGroup"];
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1083
1337
|
export { configureTheme, ThemedPrimitives, ThemeStyles, ThemeStyle, ThemeConfig, ThemeComponents, ResolvedThemeBase, ResolvedTheme };
|