@vertz/theme-shadcn 0.2.21 → 0.2.23
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/base.js +1 -1
- package/dist/index.d.ts +206 -129
- package/dist/index.js +713 -297
- package/dist/shared/{chunk-d2nh1syq.js → chunk-gjsm05ga.js} +3 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,7 @@ interface CalendarRootProps {
|
|
|
224
224
|
weekStartsOn?: ComposedCalendarProps["weekStartsOn"];
|
|
225
225
|
onValueChange?: ComposedCalendarProps["onValueChange"];
|
|
226
226
|
onMonthChange?: (month: Date) => void;
|
|
227
|
+
captionLayout?: ComposedCalendarProps["captionLayout"];
|
|
227
228
|
}
|
|
228
229
|
type ThemedCalendarComponent = (props: CalendarRootProps) => HTMLElement;
|
|
229
230
|
import { ChildValue as ChildValue10 } from "@vertz/ui";
|
|
@@ -255,30 +256,41 @@ interface CheckboxRootProps {
|
|
|
255
256
|
onCheckedChange?: (checked: CheckedState) => void;
|
|
256
257
|
}
|
|
257
258
|
type ThemedCheckboxComponent = (props: CheckboxRootProps) => HTMLElement;
|
|
258
|
-
import { CollapsibleElements, CollapsibleOptions, CollapsibleState } from "@vertz/ui-primitives";
|
|
259
|
-
interface CollapsibleStyleClasses {
|
|
260
|
-
readonly content: string;
|
|
261
|
-
}
|
|
262
|
-
declare function createThemedCollapsible(styles: CollapsibleStyleClasses): (options?: CollapsibleOptions) => CollapsibleElements & {
|
|
263
|
-
state: CollapsibleState;
|
|
264
|
-
};
|
|
265
259
|
import { ChildValue as ChildValue12 } from "@vertz/ui";
|
|
260
|
+
interface CollapsibleRootProps {
|
|
261
|
+
defaultOpen?: boolean;
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
onOpenChange?: (open: boolean) => void;
|
|
264
|
+
children?: ChildValue12;
|
|
265
|
+
}
|
|
266
|
+
interface CollapsibleSlotProps {
|
|
267
|
+
children?: ChildValue12;
|
|
268
|
+
className?: string;
|
|
269
|
+
/** @deprecated Use `className` instead. */
|
|
270
|
+
class?: string;
|
|
271
|
+
}
|
|
272
|
+
interface ThemedCollapsibleComponent {
|
|
273
|
+
(props: CollapsibleRootProps): HTMLElement;
|
|
274
|
+
Trigger: (props: CollapsibleSlotProps) => HTMLElement;
|
|
275
|
+
Content: (props: CollapsibleSlotProps) => HTMLElement;
|
|
276
|
+
}
|
|
277
|
+
import { ChildValue as ChildValue13 } from "@vertz/ui";
|
|
266
278
|
interface CommandRootProps {
|
|
267
279
|
filter?: (value: string, search: string) => boolean;
|
|
268
280
|
onSelect?: (value: string) => void;
|
|
269
281
|
onInputChange?: (value: string) => void;
|
|
270
282
|
placeholder?: string;
|
|
271
|
-
children?:
|
|
283
|
+
children?: ChildValue13;
|
|
272
284
|
}
|
|
273
285
|
interface CommandSlotProps {
|
|
274
|
-
children?:
|
|
286
|
+
children?: ChildValue13;
|
|
275
287
|
className?: string;
|
|
276
288
|
/** @deprecated Use `className` instead. */
|
|
277
289
|
class?: string;
|
|
278
290
|
}
|
|
279
291
|
interface CommandItemProps {
|
|
280
292
|
value: string;
|
|
281
|
-
children?:
|
|
293
|
+
children?: ChildValue13;
|
|
282
294
|
keywords?: string[];
|
|
283
295
|
className?: string;
|
|
284
296
|
/** @deprecated Use `className` instead. */
|
|
@@ -286,7 +298,7 @@ interface CommandItemProps {
|
|
|
286
298
|
}
|
|
287
299
|
interface CommandGroupProps {
|
|
288
300
|
label: string;
|
|
289
|
-
children?:
|
|
301
|
+
children?: ChildValue13;
|
|
290
302
|
className?: string;
|
|
291
303
|
/** @deprecated Use `className` instead. */
|
|
292
304
|
class?: string;
|
|
@@ -300,33 +312,33 @@ interface ThemedCommandComponent {
|
|
|
300
312
|
Group: (props: CommandGroupProps) => HTMLElement;
|
|
301
313
|
Separator: (props: CommandSlotProps) => HTMLElement;
|
|
302
314
|
}
|
|
303
|
-
import { ChildValue as
|
|
315
|
+
import { ChildValue as ChildValue14 } from "@vertz/ui";
|
|
304
316
|
interface ContextMenuRootProps {
|
|
305
317
|
onSelect?: (value: string) => void;
|
|
306
|
-
children?:
|
|
318
|
+
children?: ChildValue14;
|
|
307
319
|
}
|
|
308
320
|
interface ContextMenuSlotProps {
|
|
309
|
-
children?:
|
|
321
|
+
children?: ChildValue14;
|
|
310
322
|
className?: string;
|
|
311
323
|
/** @deprecated Use `className` instead. */
|
|
312
324
|
class?: string;
|
|
313
325
|
}
|
|
314
326
|
interface ContextMenuItemProps {
|
|
315
327
|
value: string;
|
|
316
|
-
children?:
|
|
328
|
+
children?: ChildValue14;
|
|
317
329
|
className?: string;
|
|
318
330
|
/** @deprecated Use `className` instead. */
|
|
319
331
|
class?: string;
|
|
320
332
|
}
|
|
321
333
|
interface ContextMenuGroupProps {
|
|
322
334
|
label: string;
|
|
323
|
-
children?:
|
|
335
|
+
children?: ChildValue14;
|
|
324
336
|
className?: string;
|
|
325
337
|
/** @deprecated Use `className` instead. */
|
|
326
338
|
class?: string;
|
|
327
339
|
}
|
|
328
340
|
interface ContextMenuLabelProps {
|
|
329
|
-
children?:
|
|
341
|
+
children?: ChildValue14;
|
|
330
342
|
className?: string;
|
|
331
343
|
/** @deprecated Use `className` instead. */
|
|
332
344
|
class?: string;
|
|
@@ -340,47 +352,73 @@ interface ThemedContextMenuComponent {
|
|
|
340
352
|
Label: (props: ContextMenuLabelProps) => HTMLElement;
|
|
341
353
|
Separator: (props: ContextMenuSlotProps) => HTMLElement;
|
|
342
354
|
}
|
|
343
|
-
import {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
355
|
+
import { ChildValue as ChildValue15 } from "@vertz/ui";
|
|
356
|
+
import { ComposedCalendarProps as ComposedCalendarProps2 } from "@vertz/ui-primitives";
|
|
357
|
+
interface DatePickerRootProps {
|
|
358
|
+
mode?: "single" | "range";
|
|
359
|
+
defaultValue?: Date | {
|
|
360
|
+
from: Date;
|
|
361
|
+
to: Date;
|
|
362
|
+
};
|
|
363
|
+
defaultMonth?: Date;
|
|
364
|
+
minDate?: Date;
|
|
365
|
+
maxDate?: Date;
|
|
366
|
+
disabled?: (date: Date) => boolean;
|
|
367
|
+
formatDate?: (date: Date) => string;
|
|
368
|
+
placeholder?: string;
|
|
369
|
+
onValueChange?: (value: Date | {
|
|
370
|
+
from: Date;
|
|
371
|
+
to: Date;
|
|
372
|
+
} | null) => void;
|
|
373
|
+
onOpenChange?: (open: boolean) => void;
|
|
374
|
+
captionLayout?: ComposedCalendarProps2["captionLayout"];
|
|
375
|
+
children?: ChildValue15;
|
|
347
376
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
377
|
+
interface DatePickerSlotProps {
|
|
378
|
+
children?: ChildValue15;
|
|
379
|
+
className?: string;
|
|
380
|
+
/** @deprecated Use `className` instead. */
|
|
381
|
+
class?: string;
|
|
382
|
+
}
|
|
383
|
+
interface ThemedDatePickerComponent {
|
|
384
|
+
(props: DatePickerRootProps): HTMLElement;
|
|
385
|
+
Trigger: (props: DatePickerSlotProps) => HTMLElement;
|
|
386
|
+
Content: (props: DatePickerSlotProps) => HTMLElement;
|
|
387
|
+
}
|
|
388
|
+
import { ChildValue as ChildValue16 } from "@vertz/ui";
|
|
354
389
|
interface DialogRootProps {
|
|
355
|
-
children?:
|
|
390
|
+
children?: ChildValue16;
|
|
356
391
|
onOpenChange?: (open: boolean) => void;
|
|
357
392
|
}
|
|
358
393
|
interface DialogSlotProps {
|
|
359
|
-
children?:
|
|
394
|
+
children?: ChildValue16;
|
|
360
395
|
className?: string;
|
|
361
396
|
/** @deprecated Use `className` instead. */
|
|
362
397
|
class?: string;
|
|
363
398
|
}
|
|
399
|
+
interface DialogContentProps extends DialogSlotProps {
|
|
400
|
+
showClose?: boolean;
|
|
401
|
+
}
|
|
364
402
|
interface ThemedDialogComponent {
|
|
365
403
|
(props: DialogRootProps): HTMLElement;
|
|
366
404
|
Trigger: (props: DialogSlotProps) => HTMLElement;
|
|
367
|
-
Content: (props:
|
|
405
|
+
Content: (props: DialogContentProps) => HTMLElement;
|
|
368
406
|
Header: (props: DialogSlotProps) => HTMLElement;
|
|
369
407
|
Title: (props: DialogSlotProps) => HTMLElement;
|
|
370
408
|
Description: (props: DialogSlotProps) => HTMLElement;
|
|
371
409
|
Footer: (props: DialogSlotProps) => HTMLElement;
|
|
372
410
|
Close: (props: DialogSlotProps) => HTMLElement;
|
|
373
411
|
}
|
|
374
|
-
import { ChildValue as
|
|
412
|
+
import { ChildValue as ChildValue17 } from "@vertz/ui";
|
|
375
413
|
import { SheetSide } from "@vertz/ui-primitives";
|
|
376
414
|
type DrawerSide = SheetSide;
|
|
377
415
|
interface DrawerRootProps {
|
|
378
416
|
side?: DrawerSide;
|
|
379
417
|
onOpenChange?: (open: boolean) => void;
|
|
380
|
-
children?:
|
|
418
|
+
children?: ChildValue17;
|
|
381
419
|
}
|
|
382
420
|
interface DrawerSlotProps {
|
|
383
|
-
children?:
|
|
421
|
+
children?: ChildValue17;
|
|
384
422
|
className?: string;
|
|
385
423
|
/** @deprecated Use `className` instead. */
|
|
386
424
|
class?: string;
|
|
@@ -395,34 +433,34 @@ interface ThemedDrawerComponent {
|
|
|
395
433
|
Footer: (props: DrawerSlotProps) => HTMLElement;
|
|
396
434
|
Handle: (props: DrawerSlotProps) => HTMLElement;
|
|
397
435
|
}
|
|
398
|
-
import { ChildValue as
|
|
436
|
+
import { ChildValue as ChildValue18 } from "@vertz/ui";
|
|
399
437
|
interface DropdownMenuRootProps {
|
|
400
438
|
onSelect?: (value: string) => void;
|
|
401
439
|
onOpenChange?: (open: boolean) => void;
|
|
402
|
-
children?:
|
|
440
|
+
children?: ChildValue18;
|
|
403
441
|
}
|
|
404
442
|
interface DropdownMenuSlotProps {
|
|
405
|
-
children?:
|
|
443
|
+
children?: ChildValue18;
|
|
406
444
|
className?: string;
|
|
407
445
|
/** @deprecated Use `className` instead. */
|
|
408
446
|
class?: string;
|
|
409
447
|
}
|
|
410
448
|
interface DropdownMenuItemProps {
|
|
411
449
|
value: string;
|
|
412
|
-
children?:
|
|
450
|
+
children?: ChildValue18;
|
|
413
451
|
className?: string;
|
|
414
452
|
/** @deprecated Use `className` instead. */
|
|
415
453
|
class?: string;
|
|
416
454
|
}
|
|
417
455
|
interface DropdownMenuGroupProps {
|
|
418
456
|
label: string;
|
|
419
|
-
children?:
|
|
457
|
+
children?: ChildValue18;
|
|
420
458
|
className?: string;
|
|
421
459
|
/** @deprecated Use `className` instead. */
|
|
422
460
|
class?: string;
|
|
423
461
|
}
|
|
424
462
|
interface DropdownMenuLabelProps {
|
|
425
|
-
children?:
|
|
463
|
+
children?: ChildValue18;
|
|
426
464
|
className?: string;
|
|
427
465
|
/** @deprecated Use `className` instead. */
|
|
428
466
|
class?: string;
|
|
@@ -436,44 +474,55 @@ interface ThemedDropdownMenuComponent {
|
|
|
436
474
|
Label: (props: DropdownMenuLabelProps) => HTMLElement;
|
|
437
475
|
Separator: (props: DropdownMenuSlotProps) => HTMLElement;
|
|
438
476
|
}
|
|
439
|
-
import {
|
|
440
|
-
interface
|
|
441
|
-
|
|
477
|
+
import { ChildValue as ChildValue19 } from "@vertz/ui";
|
|
478
|
+
interface HoverCardRootProps {
|
|
479
|
+
openDelay?: number;
|
|
480
|
+
closeDelay?: number;
|
|
481
|
+
onOpenChange?: (open: boolean) => void;
|
|
482
|
+
children?: ChildValue19;
|
|
442
483
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
484
|
+
interface HoverCardSlotProps {
|
|
485
|
+
children?: ChildValue19;
|
|
486
|
+
className?: string;
|
|
487
|
+
/** @deprecated Use `className` instead. */
|
|
488
|
+
class?: string;
|
|
489
|
+
}
|
|
490
|
+
interface ThemedHoverCardComponent {
|
|
491
|
+
(props: HoverCardRootProps): HTMLElement;
|
|
492
|
+
Trigger: (props: HoverCardSlotProps) => HTMLElement;
|
|
493
|
+
Content: (props: HoverCardSlotProps) => HTMLElement;
|
|
494
|
+
}
|
|
495
|
+
import { ChildValue as ChildValue20 } from "@vertz/ui";
|
|
447
496
|
interface MenubarRootProps {
|
|
448
497
|
onSelect?: (value: string) => void;
|
|
449
|
-
children?:
|
|
498
|
+
children?: ChildValue20;
|
|
450
499
|
}
|
|
451
500
|
interface MenubarMenuProps {
|
|
452
501
|
value: string;
|
|
453
|
-
children?:
|
|
502
|
+
children?: ChildValue20;
|
|
454
503
|
}
|
|
455
504
|
interface MenubarSlotProps {
|
|
456
|
-
children?:
|
|
505
|
+
children?: ChildValue20;
|
|
457
506
|
className?: string;
|
|
458
507
|
/** @deprecated Use `className` instead. */
|
|
459
508
|
class?: string;
|
|
460
509
|
}
|
|
461
510
|
interface MenubarItemProps {
|
|
462
511
|
value: string;
|
|
463
|
-
children?:
|
|
512
|
+
children?: ChildValue20;
|
|
464
513
|
className?: string;
|
|
465
514
|
/** @deprecated Use `className` instead. */
|
|
466
515
|
class?: string;
|
|
467
516
|
}
|
|
468
517
|
interface MenubarGroupProps {
|
|
469
518
|
label: string;
|
|
470
|
-
children?:
|
|
519
|
+
children?: ChildValue20;
|
|
471
520
|
className?: string;
|
|
472
521
|
/** @deprecated Use `className` instead. */
|
|
473
522
|
class?: string;
|
|
474
523
|
}
|
|
475
524
|
interface MenubarLabelProps {
|
|
476
|
-
children?:
|
|
525
|
+
children?: ChildValue20;
|
|
477
526
|
className?: string;
|
|
478
527
|
/** @deprecated Use `className` instead. */
|
|
479
528
|
class?: string;
|
|
@@ -488,26 +537,26 @@ interface ThemedMenubarComponent {
|
|
|
488
537
|
Label: (props: MenubarLabelProps) => HTMLElement;
|
|
489
538
|
Separator: (props: MenubarSlotProps) => HTMLElement;
|
|
490
539
|
}
|
|
491
|
-
import { ChildValue as
|
|
540
|
+
import { ChildValue as ChildValue21 } from "@vertz/ui";
|
|
492
541
|
interface NavigationMenuRootProps {
|
|
493
542
|
orientation?: "horizontal" | "vertical";
|
|
494
543
|
delayOpen?: number;
|
|
495
544
|
delayClose?: number;
|
|
496
|
-
children?:
|
|
545
|
+
children?: ChildValue21;
|
|
497
546
|
}
|
|
498
547
|
interface NavigationMenuSlotProps {
|
|
499
|
-
children?:
|
|
548
|
+
children?: ChildValue21;
|
|
500
549
|
className?: string;
|
|
501
550
|
/** @deprecated Use `className` instead. */
|
|
502
551
|
class?: string;
|
|
503
552
|
}
|
|
504
553
|
interface NavigationMenuItemProps {
|
|
505
554
|
value: string;
|
|
506
|
-
children?:
|
|
555
|
+
children?: ChildValue21;
|
|
507
556
|
}
|
|
508
557
|
interface NavigationMenuLinkProps {
|
|
509
558
|
href: string;
|
|
510
|
-
children?:
|
|
559
|
+
children?: ChildValue21;
|
|
511
560
|
className?: string;
|
|
512
561
|
/** @deprecated Use `className` instead. */
|
|
513
562
|
class?: string;
|
|
@@ -526,13 +575,13 @@ interface ThemedNavigationMenuComponent {
|
|
|
526
575
|
Link: (props: NavigationMenuLinkProps) => HTMLElement;
|
|
527
576
|
Viewport: (props: NavigationMenuViewportProps) => HTMLElement;
|
|
528
577
|
}
|
|
529
|
-
import { ChildValue as
|
|
578
|
+
import { ChildValue as ChildValue22 } from "@vertz/ui";
|
|
530
579
|
interface PopoverRootProps {
|
|
531
580
|
onOpenChange?: (open: boolean) => void;
|
|
532
|
-
children?:
|
|
581
|
+
children?: ChildValue22;
|
|
533
582
|
}
|
|
534
583
|
interface PopoverSlotProps {
|
|
535
|
-
children?:
|
|
584
|
+
children?: ChildValue22;
|
|
536
585
|
className?: string;
|
|
537
586
|
/** @deprecated Use `className` instead. */
|
|
538
587
|
class?: string;
|
|
@@ -542,74 +591,87 @@ interface ThemedPopoverComponent {
|
|
|
542
591
|
Trigger: (props: PopoverSlotProps) => HTMLElement;
|
|
543
592
|
Content: (props: PopoverSlotProps) => HTMLElement;
|
|
544
593
|
}
|
|
545
|
-
import { ChildValue as
|
|
594
|
+
import { ChildValue as ChildValue23 } from "@vertz/ui";
|
|
546
595
|
interface ProgressRootProps {
|
|
547
|
-
children?:
|
|
596
|
+
children?: ChildValue23;
|
|
548
597
|
defaultValue?: number;
|
|
549
598
|
min?: number;
|
|
550
599
|
max?: number;
|
|
551
600
|
}
|
|
552
601
|
type ThemedProgressComponent = (props: ProgressRootProps) => HTMLElement;
|
|
553
|
-
import { ChildValue as
|
|
602
|
+
import { ChildValue as ChildValue24 } from "@vertz/ui";
|
|
554
603
|
interface RadioGroupRootProps {
|
|
555
|
-
children?:
|
|
604
|
+
children?: ChildValue24;
|
|
556
605
|
defaultValue?: string;
|
|
557
606
|
onValueChange?: (value: string) => void;
|
|
558
607
|
}
|
|
559
608
|
interface RadioGroupItemProps {
|
|
560
609
|
value: string;
|
|
561
610
|
disabled?: boolean;
|
|
562
|
-
children?:
|
|
611
|
+
children?: ChildValue24;
|
|
563
612
|
}
|
|
564
613
|
interface ThemedRadioGroupComponent {
|
|
565
614
|
(props: RadioGroupRootProps): HTMLElement;
|
|
566
615
|
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
567
616
|
}
|
|
568
|
-
import {
|
|
617
|
+
import { ChildValue as ChildValue25 } from "@vertz/ui";
|
|
618
|
+
import { PanelOptions } from "@vertz/ui-primitives";
|
|
569
619
|
interface ResizablePanelStyleClasses {
|
|
570
620
|
readonly root: string;
|
|
571
621
|
readonly panel: string;
|
|
572
622
|
readonly handle: string;
|
|
573
623
|
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
};
|
|
579
|
-
import { ScrollAreaElements, ScrollAreaOptions, ScrollAreaState } from "@vertz/ui-primitives";
|
|
580
|
-
interface ScrollAreaStyleClasses {
|
|
581
|
-
readonly root: string;
|
|
582
|
-
readonly viewport: string;
|
|
583
|
-
readonly scrollbar: string;
|
|
584
|
-
readonly thumb: string;
|
|
624
|
+
interface ResizablePanelRootProps {
|
|
625
|
+
orientation?: "horizontal" | "vertical";
|
|
626
|
+
onResize?: (sizes: number[]) => void;
|
|
627
|
+
children?: ChildValue25;
|
|
585
628
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
629
|
+
interface ResizablePanelPanelProps extends PanelOptions {
|
|
630
|
+
children?: ChildValue25;
|
|
631
|
+
className?: string;
|
|
632
|
+
/** @deprecated Use `className` instead. */
|
|
633
|
+
class?: string;
|
|
634
|
+
}
|
|
635
|
+
interface ResizablePanelHandleProps {
|
|
636
|
+
className?: string;
|
|
637
|
+
/** @deprecated Use `className` instead. */
|
|
638
|
+
class?: string;
|
|
639
|
+
}
|
|
640
|
+
interface ThemedResizablePanelComponent {
|
|
641
|
+
(props: ResizablePanelRootProps): HTMLElement;
|
|
642
|
+
Panel: (props: ResizablePanelPanelProps) => HTMLElement;
|
|
643
|
+
Handle: (props: ResizablePanelHandleProps) => HTMLElement;
|
|
644
|
+
}
|
|
645
|
+
declare function createThemedResizablePanel(styles: ResizablePanelStyleClasses): ThemedResizablePanelComponent;
|
|
646
|
+
import { ChildValue as ChildValue26 } from "@vertz/ui";
|
|
647
|
+
interface ScrollAreaRootProps {
|
|
648
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
649
|
+
children?: ChildValue26;
|
|
650
|
+
}
|
|
651
|
+
type ThemedScrollAreaComponent = (props: ScrollAreaRootProps) => HTMLElement;
|
|
652
|
+
import { ChildValue as ChildValue27 } from "@vertz/ui";
|
|
591
653
|
interface SelectRootProps {
|
|
592
654
|
defaultValue?: string;
|
|
593
655
|
placeholder?: string;
|
|
594
656
|
onValueChange?: (value: string) => void;
|
|
595
|
-
children?:
|
|
657
|
+
children?: ChildValue27;
|
|
596
658
|
}
|
|
597
659
|
interface SelectSlotProps {
|
|
598
|
-
children?:
|
|
660
|
+
children?: ChildValue27;
|
|
599
661
|
className?: string;
|
|
600
662
|
/** @deprecated Use `className` instead. */
|
|
601
663
|
class?: string;
|
|
602
664
|
}
|
|
603
665
|
interface SelectItemProps {
|
|
604
666
|
value: string;
|
|
605
|
-
children?:
|
|
667
|
+
children?: ChildValue27;
|
|
606
668
|
className?: string;
|
|
607
669
|
/** @deprecated Use `className` instead. */
|
|
608
670
|
class?: string;
|
|
609
671
|
}
|
|
610
672
|
interface SelectGroupProps {
|
|
611
673
|
label: string;
|
|
612
|
-
children?:
|
|
674
|
+
children?: ChildValue27;
|
|
613
675
|
className?: string;
|
|
614
676
|
/** @deprecated Use `className` instead. */
|
|
615
677
|
class?: string;
|
|
@@ -622,30 +684,33 @@ interface ThemedSelectComponent {
|
|
|
622
684
|
Group: (props: SelectGroupProps) => HTMLElement;
|
|
623
685
|
Separator: (props: SelectSlotProps) => HTMLElement;
|
|
624
686
|
}
|
|
625
|
-
import { ChildValue as
|
|
687
|
+
import { ChildValue as ChildValue28 } from "@vertz/ui";
|
|
626
688
|
import { SheetSide as SheetSide2 } from "@vertz/ui-primitives";
|
|
627
689
|
interface SheetRootProps {
|
|
628
690
|
side?: SheetSide2;
|
|
629
691
|
onOpenChange?: (open: boolean) => void;
|
|
630
|
-
children?:
|
|
692
|
+
children?: ChildValue28;
|
|
631
693
|
}
|
|
632
694
|
interface SheetSlotProps {
|
|
633
|
-
children?:
|
|
695
|
+
children?: ChildValue28;
|
|
634
696
|
className?: string;
|
|
635
697
|
/** @deprecated Use `className` instead. */
|
|
636
698
|
class?: string;
|
|
637
699
|
}
|
|
700
|
+
interface SheetContentProps extends SheetSlotProps {
|
|
701
|
+
showClose?: boolean;
|
|
702
|
+
}
|
|
638
703
|
interface ThemedSheetComponent {
|
|
639
704
|
(props: SheetRootProps): HTMLElement;
|
|
640
705
|
Trigger: (props: SheetSlotProps) => HTMLElement;
|
|
641
|
-
Content: (props:
|
|
706
|
+
Content: (props: SheetContentProps) => HTMLElement;
|
|
642
707
|
Title: (props: SheetSlotProps) => HTMLElement;
|
|
643
708
|
Description: (props: SheetSlotProps) => HTMLElement;
|
|
644
709
|
Close: (props: SheetSlotProps) => HTMLElement;
|
|
645
710
|
}
|
|
646
|
-
import { ChildValue as
|
|
711
|
+
import { ChildValue as ChildValue29 } from "@vertz/ui";
|
|
647
712
|
interface SliderRootProps {
|
|
648
|
-
children?:
|
|
713
|
+
children?: ChildValue29;
|
|
649
714
|
defaultValue?: number;
|
|
650
715
|
min?: number;
|
|
651
716
|
max?: number;
|
|
@@ -654,37 +719,37 @@ interface SliderRootProps {
|
|
|
654
719
|
onValueChange?: (value: number) => void;
|
|
655
720
|
}
|
|
656
721
|
type ThemedSliderComponent = (props: SliderRootProps) => HTMLElement;
|
|
657
|
-
import { ChildValue as
|
|
722
|
+
import { ChildValue as ChildValue30 } from "@vertz/ui";
|
|
658
723
|
interface ThemedSwitchProps {
|
|
659
|
-
children?:
|
|
724
|
+
children?: ChildValue30;
|
|
660
725
|
defaultChecked?: boolean;
|
|
661
726
|
disabled?: boolean;
|
|
662
727
|
onCheckedChange?: (checked: boolean) => void;
|
|
663
728
|
size?: "default" | "sm";
|
|
664
729
|
}
|
|
665
730
|
type ThemedSwitchComponent = (props: ThemedSwitchProps) => HTMLElement;
|
|
666
|
-
import { ChildValue as
|
|
731
|
+
import { ChildValue as ChildValue31 } from "@vertz/ui";
|
|
667
732
|
interface TabsRootProps {
|
|
668
733
|
defaultValue?: string;
|
|
669
734
|
variant?: "default" | "line";
|
|
670
|
-
children?:
|
|
735
|
+
children?: ChildValue31;
|
|
671
736
|
}
|
|
672
737
|
interface TabsSlotProps {
|
|
673
|
-
children?:
|
|
738
|
+
children?: ChildValue31;
|
|
674
739
|
className?: string;
|
|
675
740
|
/** @deprecated Use `className` instead. */
|
|
676
741
|
class?: string;
|
|
677
742
|
}
|
|
678
743
|
interface TabsTriggerProps {
|
|
679
744
|
value: string;
|
|
680
|
-
children?:
|
|
745
|
+
children?: ChildValue31;
|
|
681
746
|
className?: string;
|
|
682
747
|
/** @deprecated Use `className` instead. */
|
|
683
748
|
class?: string;
|
|
684
749
|
}
|
|
685
750
|
interface TabsContentProps {
|
|
686
751
|
value: string;
|
|
687
|
-
children?:
|
|
752
|
+
children?: ChildValue31;
|
|
688
753
|
className?: string;
|
|
689
754
|
/** @deprecated Use `className` instead. */
|
|
690
755
|
class?: string;
|
|
@@ -701,30 +766,38 @@ type ThemedToastResult = ToastElements & {
|
|
|
701
766
|
announce: (content: string) => ToastMessage;
|
|
702
767
|
dismiss: (id: string) => void;
|
|
703
768
|
};
|
|
704
|
-
import { ChildValue as
|
|
769
|
+
import { ChildValue as ChildValue32 } from "@vertz/ui";
|
|
705
770
|
interface ToggleRootProps {
|
|
706
|
-
children?:
|
|
771
|
+
children?: ChildValue32;
|
|
707
772
|
defaultPressed?: boolean;
|
|
708
773
|
disabled?: boolean;
|
|
709
774
|
onPressedChange?: (pressed: boolean) => void;
|
|
710
775
|
}
|
|
711
776
|
type ThemedToggleComponent = (props: ToggleRootProps) => HTMLElement;
|
|
712
|
-
import {
|
|
713
|
-
interface
|
|
714
|
-
|
|
715
|
-
|
|
777
|
+
import { ChildValue as ChildValue33 } from "@vertz/ui";
|
|
778
|
+
interface ToggleGroupRootProps {
|
|
779
|
+
children?: ChildValue33;
|
|
780
|
+
type?: "single" | "multiple";
|
|
781
|
+
defaultValue?: string[];
|
|
782
|
+
orientation?: "horizontal" | "vertical";
|
|
783
|
+
disabled?: boolean;
|
|
784
|
+
onValueChange?: (value: string[]) => void;
|
|
716
785
|
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
|
|
786
|
+
interface ToggleGroupItemProps {
|
|
787
|
+
value: string;
|
|
788
|
+
children?: ChildValue33;
|
|
789
|
+
}
|
|
790
|
+
interface ThemedToggleGroupComponent {
|
|
791
|
+
(props: ToggleGroupRootProps): HTMLElement;
|
|
792
|
+
Item: (props: ToggleGroupItemProps) => HTMLElement;
|
|
793
|
+
}
|
|
794
|
+
import { ChildValue as ChildValue34 } from "@vertz/ui";
|
|
722
795
|
interface TooltipRootProps {
|
|
723
796
|
delay?: number;
|
|
724
|
-
children?:
|
|
797
|
+
children?: ChildValue34;
|
|
725
798
|
}
|
|
726
799
|
interface TooltipSlotProps {
|
|
727
|
-
children?:
|
|
800
|
+
children?: ChildValue34;
|
|
728
801
|
className?: string;
|
|
729
802
|
/** @deprecated Use `className` instead. */
|
|
730
803
|
class?: string;
|
|
@@ -735,6 +808,7 @@ interface ThemedTooltipComponent {
|
|
|
735
808
|
Content: (props: TooltipSlotProps) => HTMLElement;
|
|
736
809
|
}
|
|
737
810
|
interface SeparatorProps {
|
|
811
|
+
orientation?: "horizontal" | "vertical";
|
|
738
812
|
className?: string;
|
|
739
813
|
/** @deprecated Use `className` instead. */
|
|
740
814
|
class?: string;
|
|
@@ -749,12 +823,12 @@ interface SkeletonProps {
|
|
|
749
823
|
interface SkeletonComponents {
|
|
750
824
|
Skeleton: (props?: SkeletonProps) => HTMLDivElement;
|
|
751
825
|
}
|
|
752
|
-
import { ChildValue as
|
|
826
|
+
import { ChildValue as ChildValue35 } from "@vertz/ui";
|
|
753
827
|
interface TableProps {
|
|
754
828
|
className?: string;
|
|
755
829
|
/** @deprecated Use `className` instead. */
|
|
756
830
|
class?: string;
|
|
757
|
-
children?:
|
|
831
|
+
children?: ChildValue35;
|
|
758
832
|
}
|
|
759
833
|
interface TableComponents {
|
|
760
834
|
Table: (props: TableProps) => HTMLDivElement;
|
|
@@ -799,6 +873,8 @@ type CalendarBlocks = {
|
|
|
799
873
|
headCell: StyleEntry8[];
|
|
800
874
|
cell: StyleEntry8[];
|
|
801
875
|
dayButton: StyleEntry8[];
|
|
876
|
+
monthSelect: StyleEntry8[];
|
|
877
|
+
yearSelect: StyleEntry8[];
|
|
802
878
|
};
|
|
803
879
|
/** Create calendar css() styles. */
|
|
804
880
|
declare function createCalendarStyles(): CSSOutput16<CalendarBlocks>;
|
|
@@ -899,6 +975,7 @@ type PaginationBlocks = {
|
|
|
899
975
|
item: StyleEntry23[];
|
|
900
976
|
link: StyleEntry23[];
|
|
901
977
|
linkActive: StyleEntry23[];
|
|
978
|
+
navButton: StyleEntry23[];
|
|
902
979
|
ellipsis: StyleEntry23[];
|
|
903
980
|
};
|
|
904
981
|
/** Create pagination css() styles. */
|
|
@@ -1214,29 +1291,29 @@ interface ThemedPrimitives {
|
|
|
1214
1291
|
/** Themed Carousel — composable JSX component with Carousel.Slide, Carousel.Previous, Carousel.Next. */
|
|
1215
1292
|
Carousel: ThemedCarouselComponent;
|
|
1216
1293
|
/** Themed Collapsible — expandable/collapsible content section. */
|
|
1217
|
-
|
|
1294
|
+
Collapsible: ThemedCollapsibleComponent;
|
|
1218
1295
|
/** Themed Command — composable JSX component with Command.Input, Command.List, Command.Item, Command.Group, etc. */
|
|
1219
1296
|
Command: ThemedCommandComponent;
|
|
1220
1297
|
/** Themed ContextMenu — composable JSX component with ContextMenu.Trigger, ContextMenu.Content, etc. */
|
|
1221
1298
|
ContextMenu: ThemedContextMenuComponent;
|
|
1222
|
-
/** Themed DatePicker —
|
|
1223
|
-
|
|
1299
|
+
/** Themed DatePicker — composable JSX component with DatePicker.Trigger, DatePicker.Content. */
|
|
1300
|
+
DatePicker: ThemedDatePickerComponent;
|
|
1224
1301
|
/** Themed Drawer — composable JSX component with Drawer.Trigger, Drawer.Content, Drawer.Handle, etc. */
|
|
1225
1302
|
Drawer: ThemedDrawerComponent;
|
|
1226
1303
|
/** Themed HoverCard — hover-triggered interactive card. */
|
|
1227
|
-
|
|
1304
|
+
HoverCard: ThemedHoverCardComponent;
|
|
1228
1305
|
/** Themed Menubar — composable JSX component with Menubar.Menu, Menubar.Trigger, Menubar.Content, etc. */
|
|
1229
1306
|
Menubar: ThemedMenubarComponent;
|
|
1230
1307
|
/** Themed NavigationMenu — composable JSX component with NavigationMenu.List, NavigationMenu.Item, etc. */
|
|
1231
1308
|
NavigationMenu: ThemedNavigationMenuComponent;
|
|
1232
1309
|
/** Themed ResizablePanel — resizable panel layout with drag handles. */
|
|
1233
|
-
|
|
1234
|
-
/** Themed ScrollArea —
|
|
1235
|
-
|
|
1310
|
+
ResizablePanel: ReturnType<typeof createThemedResizablePanel>;
|
|
1311
|
+
/** Themed ScrollArea — composable JSX component wrapping @vertz/ui-primitives ScrollArea. */
|
|
1312
|
+
ScrollArea: ThemedScrollAreaComponent;
|
|
1236
1313
|
/** Themed Toggle — composable JSX component wrapping @vertz/ui-primitives Toggle. */
|
|
1237
1314
|
Toggle: ThemedToggleComponent;
|
|
1238
|
-
/** Themed ToggleGroup —
|
|
1239
|
-
|
|
1315
|
+
/** Themed ToggleGroup — composable JSX component with ToggleGroup.Item sub-components. */
|
|
1316
|
+
ToggleGroup: ThemedToggleGroupComponent;
|
|
1240
1317
|
}
|
|
1241
1318
|
/** Component functions returned by configureTheme(). */
|
|
1242
1319
|
interface ThemeComponents {
|
|
@@ -1325,13 +1402,13 @@ declare module "@vertz/ui/components" {
|
|
|
1325
1402
|
Toast: ThemedPrimitives["Toast"];
|
|
1326
1403
|
Carousel: ThemedCarouselComponent;
|
|
1327
1404
|
Command: ThemedCommandComponent;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1405
|
+
Collapsible: ThemedCollapsibleComponent;
|
|
1406
|
+
DatePicker: ThemedDatePickerComponent;
|
|
1407
|
+
HoverCard: ThemedHoverCardComponent;
|
|
1331
1408
|
NavigationMenu: ThemedNavigationMenuComponent;
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1409
|
+
ResizablePanel: ThemedResizablePanelComponent;
|
|
1410
|
+
ScrollArea: ThemedPrimitives["ScrollArea"];
|
|
1411
|
+
ToggleGroup: ThemedToggleGroupComponent;
|
|
1335
1412
|
}
|
|
1336
1413
|
}
|
|
1337
1414
|
export { configureTheme, ThemedPrimitives, ThemeStyles, ThemeStyle, ThemeConfig, ThemeComponents, ResolvedThemeBase, ResolvedTheme };
|