@vertz/ui-primitives 0.2.20 → 0.2.22
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/shared/{chunk-bew4bjgf.js → chunk-07yzsaaw.js} +5 -5
- package/dist/shared/{chunk-yr9yzpvq.js → chunk-279bzynx.js} +83 -58
- package/dist/shared/{chunk-sqs8kyb2.js → chunk-27xs9apd.js} +5 -5
- package/dist/shared/{chunk-dpsgb1xw.js → chunk-2db2dnp3.js} +6 -2
- package/dist/shared/{chunk-8ak7vdk1.js → chunk-2k8gxzdf.js} +5 -5
- package/dist/shared/{chunk-t1vkvsz2.js → chunk-3rp73gkd.js} +5 -5
- package/dist/shared/{chunk-7ffg0caj.js → chunk-4rf1m34c.js} +8 -6
- package/dist/shared/{chunk-gkddsbmh.js → chunk-56reyd5r.js} +22 -31
- package/dist/shared/{chunk-jctqs9m4.js → chunk-7867pr13.js} +36 -12
- package/dist/shared/{chunk-n9nwx58j.js → chunk-7bxsf80c.js} +4 -4
- package/dist/shared/{chunk-7krvqrwq.js → chunk-8qtexw5s.js} +36 -14
- package/dist/shared/{chunk-m1ptgp1s.js → chunk-9ezgd78r.js} +7 -7
- package/dist/shared/{chunk-kg27s15c.js → chunk-ajpj10z0.js} +5 -5
- package/dist/shared/{chunk-tfyg0qrp.js → chunk-c46v0fsw.js} +6 -6
- package/dist/shared/{chunk-96d9nr7y.js → chunk-dhyr0s9n.js} +1 -1
- package/dist/shared/{chunk-avxcmmk6.js → chunk-e4mm5e59.js} +7 -7
- package/dist/shared/{chunk-gt0wth9h.js → chunk-fqa5bwn1.js} +3 -3
- package/dist/shared/{chunk-x0we8gcy.js → chunk-g8hnc95b.js} +5 -5
- package/dist/shared/chunk-j2tdpxgc.js +185 -0
- package/dist/shared/{chunk-x2hz98qn.js → chunk-jda3v59q.js} +2 -2
- package/dist/shared/{chunk-18y8gfk0.js → chunk-k8nabsxm.js} +115 -93
- package/dist/shared/{chunk-j4cm8avr.js → chunk-kcnq15je.js} +5 -5
- package/dist/shared/{chunk-4da5zksy.js → chunk-mqs4qq0b.js} +2 -2
- package/dist/shared/{chunk-9hj9p7s2.js → chunk-myq79qew.js} +37 -31
- package/dist/shared/{chunk-ppcv3ehd.js → chunk-pg2yjn8f.js} +15 -12
- package/dist/shared/{chunk-hr9hx58m.js → chunk-rb53v045.js} +4 -4
- package/dist/shared/{chunk-ttsyf6ma.js → chunk-s6a2yph8.js} +5 -5
- package/dist/shared/{chunk-vvjyx7fe.js → chunk-vevfhpc9.js} +1 -1
- package/dist/shared/{chunk-4085nbdq.js → chunk-vhx3sqw6.js} +5 -5
- package/dist/shared/{chunk-34yfm2b0.js → chunk-w318par6.js} +106 -84
- package/dist/shared/chunk-w9dag6ce.js +237 -0
- package/dist/shared/{chunk-g9qvd20g.js → chunk-wcdq7bew.js} +3 -3
- package/dist/shared/{chunk-rnjm61t0.js → chunk-z0gwkzgp.js} +3 -3
- package/dist/shared/{chunk-jz0s6srh.js → chunk-z850et33.js} +1 -1
- package/dist/shared/{chunk-7kpsyjd7.js → chunk-zyfc6cx3.js} +4 -4
- package/dist/src/accordion/accordion.d.ts +2 -0
- package/dist/src/accordion/accordion.js +1 -5
- package/dist/src/alert-dialog/alert-dialog.d.ts +7 -7
- package/dist/src/alert-dialog/alert-dialog.js +1 -4
- package/dist/src/badge/badge.d.ts +2 -0
- package/dist/src/badge/badge.js +1 -3
- package/dist/src/button/button.d.ts +2 -0
- package/dist/src/button/button.js +1 -3
- package/dist/src/calendar/calendar.d.ts +9 -6
- package/dist/src/calendar/calendar.js +1 -2
- package/dist/src/carousel/carousel.d.ts +2 -0
- package/dist/src/carousel/carousel.js +1 -4
- package/dist/src/checkbox/checkbox.d.ts +2 -0
- package/dist/src/checkbox/checkbox.js +1 -4
- package/dist/src/collapsible/collapsible.d.ts +2 -0
- package/dist/src/collapsible/collapsible.js +1 -4
- package/dist/src/combobox/combobox.d.ts +2 -0
- package/dist/src/combobox/combobox.js +1 -5
- package/dist/src/command/command.d.ts +2 -0
- package/dist/src/command/command.js +1 -5
- package/dist/src/context-menu/context-menu.d.ts +2 -0
- package/dist/src/context-menu/context-menu.js +1 -7
- package/dist/src/date-picker/date-picker.d.ts +6 -6
- package/dist/src/date-picker/date-picker.js +1 -10
- package/dist/src/dialog/dialog.d.ts +3 -0
- package/dist/src/dialog/dialog.js +1 -6
- package/dist/src/dropdown-menu/dropdown-menu.d.ts +3 -0
- package/dist/src/dropdown-menu/dropdown-menu.js +1 -8
- package/dist/src/hover-card/hover-card.d.ts +2 -0
- package/dist/src/hover-card/hover-card.js +1 -6
- package/dist/src/index.d.ts +906 -34
- package/dist/src/index.js +5183 -39
- package/dist/src/menu/menu.d.ts +3 -0
- package/dist/src/menu/menu.js +1 -7
- package/dist/src/menubar/menubar.d.ts +2 -0
- package/dist/src/menubar/menubar.js +1 -8
- package/dist/src/navigation-menu/navigation-menu.d.ts +7 -5
- package/dist/src/navigation-menu/navigation-menu.js +1 -6
- package/dist/src/popover/popover.d.ts +2 -0
- package/dist/src/popover/popover.js +1 -8
- package/dist/src/progress/progress.d.ts +4 -2
- package/dist/src/progress/progress.js +1 -4
- package/dist/src/radio/radio.d.ts +9 -3
- package/dist/src/radio/radio.js +1 -6
- package/dist/src/resizable-panel/resizable-panel.d.ts +2 -0
- package/dist/src/resizable-panel/resizable-panel.js +1 -4
- package/dist/src/scroll-area/scroll-area.d.ts +2 -0
- package/dist/src/scroll-area/scroll-area.js +1 -2
- package/dist/src/select/select.d.ts +2 -0
- package/dist/src/select/select.js +1 -7
- package/dist/src/sheet/sheet.js +1 -5
- package/dist/src/slider/slider.d.ts +2 -0
- package/dist/src/slider/slider.js +1 -5
- package/dist/src/switch/switch.d.ts +2 -0
- package/dist/src/switch/switch.js +1 -4
- package/dist/src/tabs/tabs.d.ts +7 -4
- package/dist/src/tabs/tabs.js +1 -6
- package/dist/src/toast/toast.d.ts +2 -0
- package/dist/src/toast/toast.js +1 -4
- package/dist/src/toggle/toggle.d.ts +2 -0
- package/dist/src/toggle/toggle.js +1 -4
- package/dist/src/toggle-group/toggle-group.d.ts +2 -0
- package/dist/src/toggle-group/toggle-group.js +1 -5
- package/dist/src/tooltip/tooltip.d.ts +3 -1
- package/dist/src/tooltip/tooltip.js +1 -6
- package/dist/src/utils.d.ts +62 -2
- package/dist/src/utils.js +50 -3
- package/package.json +4 -6
- package/dist/shared/chunk-8nk0ya7a.js +0 -163
- package/dist/shared/chunk-8tvzqry6.js +0 -218
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Signal } from "@vertz/ui";
|
|
2
2
|
interface ElementAttrs {
|
|
3
|
+
className?: string;
|
|
4
|
+
/** @deprecated Use `className` instead. */
|
|
3
5
|
class?: string;
|
|
4
6
|
id?: string;
|
|
5
7
|
style?: string;
|
|
@@ -42,13 +44,13 @@ interface AlertDialogState {
|
|
|
42
44
|
open: Signal2<boolean>;
|
|
43
45
|
}
|
|
44
46
|
interface AlertDialogElements {
|
|
45
|
-
trigger:
|
|
46
|
-
overlay:
|
|
47
|
-
content:
|
|
48
|
-
title:
|
|
49
|
-
description:
|
|
50
|
-
cancel:
|
|
51
|
-
action:
|
|
47
|
+
trigger: HTMLElement;
|
|
48
|
+
overlay: HTMLElement;
|
|
49
|
+
content: HTMLElement;
|
|
50
|
+
title: HTMLElement;
|
|
51
|
+
description: HTMLElement;
|
|
52
|
+
cancel: HTMLElement;
|
|
53
|
+
action: HTMLElement;
|
|
52
54
|
show: () => void;
|
|
53
55
|
hide: () => void;
|
|
54
56
|
}
|
|
@@ -100,16 +102,17 @@ interface CalendarState {
|
|
|
100
102
|
displayMonth: Signal3<Date>;
|
|
101
103
|
}
|
|
102
104
|
interface CalendarElements {
|
|
103
|
-
root:
|
|
104
|
-
header:
|
|
105
|
-
title:
|
|
106
|
-
prevButton:
|
|
107
|
-
nextButton:
|
|
108
|
-
grid:
|
|
105
|
+
root: HTMLElement;
|
|
106
|
+
header: HTMLElement;
|
|
107
|
+
title: HTMLElement;
|
|
108
|
+
prevButton: HTMLElement;
|
|
109
|
+
nextButton: HTMLElement;
|
|
110
|
+
grid: HTMLElement;
|
|
109
111
|
}
|
|
110
112
|
declare const Calendar: {
|
|
111
113
|
Root: (options?: CalendarOptions) => CalendarElements & {
|
|
112
114
|
state: CalendarState;
|
|
115
|
+
destroy: () => void;
|
|
113
116
|
};
|
|
114
117
|
};
|
|
115
118
|
import { Signal as Signal4 } from "@vertz/ui";
|
|
@@ -286,12 +289,12 @@ interface DatePickerElements {
|
|
|
286
289
|
trigger: HTMLButtonElement;
|
|
287
290
|
content: HTMLDivElement;
|
|
288
291
|
calendar: {
|
|
289
|
-
root:
|
|
290
|
-
header:
|
|
291
|
-
title:
|
|
292
|
-
prevButton:
|
|
293
|
-
nextButton:
|
|
294
|
-
grid:
|
|
292
|
+
root: HTMLElement;
|
|
293
|
+
header: HTMLElement;
|
|
294
|
+
title: HTMLElement;
|
|
295
|
+
prevButton: HTMLElement;
|
|
296
|
+
nextButton: HTMLElement;
|
|
297
|
+
grid: HTMLElement;
|
|
295
298
|
};
|
|
296
299
|
}
|
|
297
300
|
declare const DatePicker: {
|
|
@@ -315,6 +318,7 @@ interface DialogElements {
|
|
|
315
318
|
content: HTMLDivElement;
|
|
316
319
|
overlay: HTMLDivElement;
|
|
317
320
|
title: HTMLHeadingElement;
|
|
321
|
+
description: HTMLParagraphElement;
|
|
318
322
|
close: HTMLButtonElement;
|
|
319
323
|
show: () => void;
|
|
320
324
|
hide: () => void;
|
|
@@ -327,6 +331,7 @@ declare const Dialog: {
|
|
|
327
331
|
import { Signal as Signal11 } from "@vertz/ui";
|
|
328
332
|
interface MenuOptions extends ElementAttrs {
|
|
329
333
|
onSelect?: (value: string) => void;
|
|
334
|
+
onOpenChange?: (open: boolean) => void;
|
|
330
335
|
positioning?: FloatingOptions;
|
|
331
336
|
}
|
|
332
337
|
interface MenuState {
|
|
@@ -420,17 +425,17 @@ interface NavigationMenuState {
|
|
|
420
425
|
}
|
|
421
426
|
interface NavigationMenuElements {
|
|
422
427
|
root: HTMLElement;
|
|
423
|
-
list:
|
|
424
|
-
viewport:
|
|
428
|
+
list: HTMLElement;
|
|
429
|
+
viewport: HTMLElement;
|
|
425
430
|
}
|
|
426
431
|
declare const NavigationMenu: {
|
|
427
432
|
Root: (options?: NavigationMenuOptions) => NavigationMenuElements & {
|
|
428
433
|
state: NavigationMenuState;
|
|
429
434
|
Item: (value: string, label?: string) => {
|
|
430
|
-
trigger:
|
|
431
|
-
content:
|
|
435
|
+
trigger: HTMLElement;
|
|
436
|
+
content: HTMLElement;
|
|
432
437
|
};
|
|
433
|
-
Link: (href: string, label: string) =>
|
|
438
|
+
Link: (href: string, label: string) => HTMLElement;
|
|
434
439
|
};
|
|
435
440
|
};
|
|
436
441
|
import { Signal as Signal15 } from "@vertz/ui";
|
|
@@ -461,8 +466,8 @@ interface ProgressState {
|
|
|
461
466
|
value: Signal16<number>;
|
|
462
467
|
}
|
|
463
468
|
interface ProgressElements {
|
|
464
|
-
root:
|
|
465
|
-
indicator:
|
|
469
|
+
root: HTMLElement;
|
|
470
|
+
indicator: HTMLElement;
|
|
466
471
|
}
|
|
467
472
|
declare const Progress: {
|
|
468
473
|
Root: (options?: ProgressOptions) => ProgressElements & {
|
|
@@ -479,12 +484,16 @@ interface RadioState {
|
|
|
479
484
|
value: Signal17<string>;
|
|
480
485
|
}
|
|
481
486
|
interface RadioElements {
|
|
482
|
-
root:
|
|
487
|
+
root: HTMLElement;
|
|
488
|
+
}
|
|
489
|
+
interface RadioItemOptions {
|
|
490
|
+
disabled?: boolean;
|
|
483
491
|
}
|
|
484
492
|
declare const Radio: {
|
|
485
493
|
Root: (options?: RadioOptions) => RadioElements & {
|
|
486
494
|
state: RadioState;
|
|
487
|
-
Item: (value: string, label?: string) =>
|
|
495
|
+
Item: (value: string, label?: string, itemOptions?: RadioItemOptions) => HTMLElement;
|
|
496
|
+
destroy: () => void;
|
|
488
497
|
};
|
|
489
498
|
};
|
|
490
499
|
import { Signal as Signal18 } from "@vertz/ui";
|
|
@@ -625,16 +634,17 @@ interface TabsState {
|
|
|
625
634
|
value: Signal23<string>;
|
|
626
635
|
}
|
|
627
636
|
interface TabsElements {
|
|
628
|
-
root:
|
|
629
|
-
list:
|
|
637
|
+
root: HTMLElement;
|
|
638
|
+
list: HTMLElement;
|
|
630
639
|
}
|
|
631
640
|
declare const Tabs: {
|
|
632
641
|
Root: (options?: TabsOptions) => TabsElements & {
|
|
633
642
|
state: TabsState;
|
|
634
643
|
Tab: (value: string, label?: string) => {
|
|
635
|
-
trigger:
|
|
636
|
-
panel:
|
|
644
|
+
trigger: HTMLElement;
|
|
645
|
+
panel: HTMLElement;
|
|
637
646
|
};
|
|
647
|
+
destroy: () => void;
|
|
638
648
|
};
|
|
639
649
|
};
|
|
640
650
|
import { Signal as Signal24 } from "@vertz/ui";
|
|
@@ -700,11 +710,873 @@ interface TooltipState {
|
|
|
700
710
|
}
|
|
701
711
|
interface TooltipElements {
|
|
702
712
|
trigger: HTMLElement;
|
|
703
|
-
content:
|
|
713
|
+
content: HTMLElement;
|
|
704
714
|
}
|
|
705
715
|
declare const Tooltip: {
|
|
706
716
|
Root: (options?: TooltipOptions) => TooltipElements & {
|
|
707
717
|
state: TooltipState;
|
|
708
718
|
};
|
|
709
719
|
};
|
|
710
|
-
|
|
720
|
+
import { ChildValue } from "@vertz/ui";
|
|
721
|
+
interface AccordionClasses {
|
|
722
|
+
item?: string;
|
|
723
|
+
trigger?: string;
|
|
724
|
+
content?: string;
|
|
725
|
+
}
|
|
726
|
+
interface SlotProps {
|
|
727
|
+
children?: ChildValue;
|
|
728
|
+
className?: string;
|
|
729
|
+
/** @deprecated Use `className` instead. */
|
|
730
|
+
class?: string;
|
|
731
|
+
}
|
|
732
|
+
interface ItemProps extends SlotProps {
|
|
733
|
+
value: string;
|
|
734
|
+
}
|
|
735
|
+
interface ComposedAccordionProps {
|
|
736
|
+
children?: ChildValue;
|
|
737
|
+
classes?: AccordionClasses;
|
|
738
|
+
type?: "single" | "multiple";
|
|
739
|
+
defaultValue?: string[];
|
|
740
|
+
onValueChange?: (value: string[]) => void;
|
|
741
|
+
}
|
|
742
|
+
type AccordionClassKey = keyof AccordionClasses;
|
|
743
|
+
declare const ComposedAccordion: ((props: ComposedAccordionProps) => HTMLElement) & {
|
|
744
|
+
__classKeys?: AccordionClassKey;
|
|
745
|
+
Item: (props: ItemProps) => HTMLElement;
|
|
746
|
+
Trigger: (props: SlotProps) => HTMLElement;
|
|
747
|
+
Content: (props: SlotProps) => HTMLElement;
|
|
748
|
+
};
|
|
749
|
+
import { ChildValue as ChildValue2 } from "@vertz/ui";
|
|
750
|
+
interface AlertDialogClasses {
|
|
751
|
+
overlay?: string;
|
|
752
|
+
content?: string;
|
|
753
|
+
cancel?: string;
|
|
754
|
+
action?: string;
|
|
755
|
+
header?: string;
|
|
756
|
+
title?: string;
|
|
757
|
+
description?: string;
|
|
758
|
+
footer?: string;
|
|
759
|
+
}
|
|
760
|
+
interface SlotProps2 {
|
|
761
|
+
children?: ChildValue2;
|
|
762
|
+
className?: string;
|
|
763
|
+
/** @deprecated Use `className` instead. */
|
|
764
|
+
class?: string;
|
|
765
|
+
}
|
|
766
|
+
interface ButtonSlotProps extends SlotProps2 {
|
|
767
|
+
onClick?: () => void;
|
|
768
|
+
disabled?: boolean;
|
|
769
|
+
}
|
|
770
|
+
interface ComposedAlertDialogProps {
|
|
771
|
+
children?: ChildValue2;
|
|
772
|
+
classes?: AlertDialogClasses;
|
|
773
|
+
onOpenChange?: (open: boolean) => void;
|
|
774
|
+
onAction?: () => void;
|
|
775
|
+
}
|
|
776
|
+
type AlertDialogClassKey = keyof AlertDialogClasses;
|
|
777
|
+
declare const ComposedAlertDialog: ((props: ComposedAlertDialogProps) => HTMLElement) & {
|
|
778
|
+
__classKeys?: AlertDialogClassKey;
|
|
779
|
+
Trigger: (props: SlotProps2) => HTMLElement;
|
|
780
|
+
Content: (props: SlotProps2) => HTMLElement;
|
|
781
|
+
Title: (props: SlotProps2) => HTMLElement;
|
|
782
|
+
Description: (props: SlotProps2) => HTMLElement;
|
|
783
|
+
Header: (props: SlotProps2) => HTMLElement;
|
|
784
|
+
Footer: (props: SlotProps2) => HTMLElement;
|
|
785
|
+
Cancel: (props: ButtonSlotProps) => HTMLElement;
|
|
786
|
+
Action: (props: ButtonSlotProps) => HTMLElement;
|
|
787
|
+
};
|
|
788
|
+
interface CalendarClasses {
|
|
789
|
+
root?: string;
|
|
790
|
+
header?: string;
|
|
791
|
+
title?: string;
|
|
792
|
+
navButton?: string;
|
|
793
|
+
grid?: string;
|
|
794
|
+
headCell?: string;
|
|
795
|
+
cell?: string;
|
|
796
|
+
dayButton?: string;
|
|
797
|
+
}
|
|
798
|
+
type CalendarClassKey = keyof CalendarClasses;
|
|
799
|
+
interface ComposedCalendarProps {
|
|
800
|
+
classes?: CalendarClasses;
|
|
801
|
+
mode?: "single" | "range" | "multiple";
|
|
802
|
+
defaultValue?: Date | Date[] | {
|
|
803
|
+
from: Date;
|
|
804
|
+
to: Date;
|
|
805
|
+
};
|
|
806
|
+
defaultMonth?: Date;
|
|
807
|
+
minDate?: Date;
|
|
808
|
+
maxDate?: Date;
|
|
809
|
+
disabled?: (date: Date) => boolean;
|
|
810
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
811
|
+
onValueChange?: (value: Date | Date[] | {
|
|
812
|
+
from: Date;
|
|
813
|
+
to: Date;
|
|
814
|
+
} | null) => void;
|
|
815
|
+
onMonthChange?: (month: Date) => void;
|
|
816
|
+
}
|
|
817
|
+
declare const ComposedCalendar: ((props: ComposedCalendarProps) => HTMLElement) & {
|
|
818
|
+
__classKeys?: CalendarClassKey;
|
|
819
|
+
};
|
|
820
|
+
import { ChildValue as ChildValue3 } from "@vertz/ui";
|
|
821
|
+
interface CarouselClasses {
|
|
822
|
+
root?: string;
|
|
823
|
+
viewport?: string;
|
|
824
|
+
slide?: string;
|
|
825
|
+
prevButton?: string;
|
|
826
|
+
nextButton?: string;
|
|
827
|
+
}
|
|
828
|
+
interface SlideProps {
|
|
829
|
+
children?: ChildValue3;
|
|
830
|
+
className?: string;
|
|
831
|
+
class?: string;
|
|
832
|
+
}
|
|
833
|
+
interface SlotProps3 {
|
|
834
|
+
children?: ChildValue3;
|
|
835
|
+
}
|
|
836
|
+
interface ComposedCarouselProps {
|
|
837
|
+
children?: ChildValue3;
|
|
838
|
+
classes?: CarouselClasses;
|
|
839
|
+
orientation?: "horizontal" | "vertical";
|
|
840
|
+
loop?: boolean;
|
|
841
|
+
defaultIndex?: number;
|
|
842
|
+
onSlideChange?: (index: number) => void;
|
|
843
|
+
}
|
|
844
|
+
type CarouselClassKey = keyof CarouselClasses;
|
|
845
|
+
declare const ComposedCarousel: ((props: ComposedCarouselProps) => HTMLElement) & {
|
|
846
|
+
__classKeys?: CarouselClassKey;
|
|
847
|
+
Slide: (props: SlideProps) => HTMLElement;
|
|
848
|
+
Previous: (props: SlotProps3) => HTMLElement;
|
|
849
|
+
Next: (props: SlotProps3) => HTMLElement;
|
|
850
|
+
};
|
|
851
|
+
import { ChildValue as ChildValue4 } from "@vertz/ui";
|
|
852
|
+
interface CheckboxClasses {
|
|
853
|
+
root?: string;
|
|
854
|
+
indicator?: string;
|
|
855
|
+
}
|
|
856
|
+
type CheckboxClassKey = keyof CheckboxClasses;
|
|
857
|
+
interface ComposedCheckboxProps {
|
|
858
|
+
children?: ChildValue4;
|
|
859
|
+
classes?: CheckboxClasses;
|
|
860
|
+
defaultChecked?: CheckedState;
|
|
861
|
+
disabled?: boolean;
|
|
862
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
863
|
+
}
|
|
864
|
+
declare const ComposedCheckbox: ((props: ComposedCheckboxProps) => HTMLElement) & {
|
|
865
|
+
__classKeys?: CheckboxClassKey;
|
|
866
|
+
};
|
|
867
|
+
import { ChildValue as ChildValue5 } from "@vertz/ui";
|
|
868
|
+
interface CollapsibleClasses {
|
|
869
|
+
root?: string;
|
|
870
|
+
trigger?: string;
|
|
871
|
+
content?: string;
|
|
872
|
+
}
|
|
873
|
+
type CollapsibleClassKey = keyof CollapsibleClasses;
|
|
874
|
+
interface SlotProps4 {
|
|
875
|
+
children?: ChildValue5;
|
|
876
|
+
className?: string;
|
|
877
|
+
/** @deprecated Use `className` instead. */
|
|
878
|
+
class?: string;
|
|
879
|
+
}
|
|
880
|
+
interface ComposedCollapsibleProps {
|
|
881
|
+
children?: ChildValue5;
|
|
882
|
+
classes?: CollapsibleClasses;
|
|
883
|
+
defaultOpen?: boolean;
|
|
884
|
+
disabled?: boolean;
|
|
885
|
+
onOpenChange?: (open: boolean) => void;
|
|
886
|
+
}
|
|
887
|
+
declare const ComposedCollapsible: ((props: ComposedCollapsibleProps) => HTMLElement) & {
|
|
888
|
+
__classKeys?: CollapsibleClassKey;
|
|
889
|
+
Trigger: (props: SlotProps4) => HTMLElement;
|
|
890
|
+
Content: (props: SlotProps4) => HTMLElement;
|
|
891
|
+
};
|
|
892
|
+
import { ChildValue as ChildValue6 } from "@vertz/ui";
|
|
893
|
+
interface CommandClasses {
|
|
894
|
+
root?: string;
|
|
895
|
+
input?: string;
|
|
896
|
+
list?: string;
|
|
897
|
+
item?: string;
|
|
898
|
+
group?: string;
|
|
899
|
+
groupHeading?: string;
|
|
900
|
+
separator?: string;
|
|
901
|
+
empty?: string;
|
|
902
|
+
}
|
|
903
|
+
interface CommandInputProps {
|
|
904
|
+
className?: string;
|
|
905
|
+
/** @deprecated Use `className` instead. */
|
|
906
|
+
class?: string;
|
|
907
|
+
}
|
|
908
|
+
interface CommandListProps {
|
|
909
|
+
children?: ChildValue6;
|
|
910
|
+
className?: string;
|
|
911
|
+
/** @deprecated Use `className` instead. */
|
|
912
|
+
class?: string;
|
|
913
|
+
}
|
|
914
|
+
interface CommandEmptyProps {
|
|
915
|
+
children?: ChildValue6;
|
|
916
|
+
className?: string;
|
|
917
|
+
/** @deprecated Use `className` instead. */
|
|
918
|
+
class?: string;
|
|
919
|
+
}
|
|
920
|
+
interface CommandItemProps {
|
|
921
|
+
value: string;
|
|
922
|
+
children?: ChildValue6;
|
|
923
|
+
keywords?: string[];
|
|
924
|
+
className?: string;
|
|
925
|
+
/** @deprecated Use `className` instead. */
|
|
926
|
+
class?: string;
|
|
927
|
+
}
|
|
928
|
+
interface CommandGroupProps {
|
|
929
|
+
label: string;
|
|
930
|
+
children?: ChildValue6;
|
|
931
|
+
className?: string;
|
|
932
|
+
/** @deprecated Use `className` instead. */
|
|
933
|
+
class?: string;
|
|
934
|
+
}
|
|
935
|
+
interface CommandSeparatorProps {
|
|
936
|
+
className?: string;
|
|
937
|
+
/** @deprecated Use `className` instead. */
|
|
938
|
+
class?: string;
|
|
939
|
+
}
|
|
940
|
+
interface ComposedCommandProps {
|
|
941
|
+
children?: ChildValue6;
|
|
942
|
+
classes?: CommandClasses;
|
|
943
|
+
filter?: (value: string, search: string) => boolean;
|
|
944
|
+
onSelect?: (value: string) => void;
|
|
945
|
+
onInputChange?: (value: string) => void;
|
|
946
|
+
placeholder?: string;
|
|
947
|
+
}
|
|
948
|
+
type CommandClassKey = keyof CommandClasses;
|
|
949
|
+
declare const ComposedCommand: ((props: ComposedCommandProps) => HTMLElement) & {
|
|
950
|
+
__classKeys?: CommandClassKey;
|
|
951
|
+
Input: (props: CommandInputProps) => HTMLElement;
|
|
952
|
+
List: (props: CommandListProps) => HTMLElement;
|
|
953
|
+
Empty: (props: CommandEmptyProps) => HTMLElement;
|
|
954
|
+
Item: (props: CommandItemProps) => HTMLElement;
|
|
955
|
+
Group: (props: CommandGroupProps) => HTMLElement;
|
|
956
|
+
Separator: (props: CommandSeparatorProps) => HTMLElement;
|
|
957
|
+
};
|
|
958
|
+
import { ChildValue as ChildValue7 } from "@vertz/ui";
|
|
959
|
+
/**
|
|
960
|
+
* A composed primitive is a callable function with a `__classKeys` phantom brand
|
|
961
|
+
* that defines the valid class keys for that component.
|
|
962
|
+
*/
|
|
963
|
+
interface ComposedPrimitive<K extends string = string> {
|
|
964
|
+
(props: {
|
|
965
|
+
children?: ChildValue7;
|
|
966
|
+
classes?: Partial<Record<K, string>>;
|
|
967
|
+
[key: string]: unknown;
|
|
968
|
+
}): HTMLElement;
|
|
969
|
+
__classKeys?: K;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Extract the class keys from a composed primitive's phantom brand.
|
|
973
|
+
*/
|
|
974
|
+
type ClassesOf<C> = C extends ComposedPrimitive<infer K> ? Record<K, string> : never;
|
|
975
|
+
/**
|
|
976
|
+
* Return type of withStyles: a callable that accepts all props except `classes`,
|
|
977
|
+
* plus all sub-component properties from the original component.
|
|
978
|
+
*/
|
|
979
|
+
type StyledPrimitive<C extends ComposedPrimitive> = ((props: Omit<Parameters<C>[0], "classes">) => HTMLElement) & Omit<C, "__classKeys" | keyof CallableFunction>;
|
|
980
|
+
/**
|
|
981
|
+
* Pre-bind CSS classes onto a composed primitive.
|
|
982
|
+
* Returns a new function that accepts all props except `classes`,
|
|
983
|
+
* with all sub-component properties preserved.
|
|
984
|
+
*/
|
|
985
|
+
declare function withStyles<C extends ComposedPrimitive>(component: C, classes: ClassesOf<C>): StyledPrimitive<C>;
|
|
986
|
+
import { ChildValue as ChildValue8 } from "@vertz/ui";
|
|
987
|
+
interface ContextMenuClasses {
|
|
988
|
+
content?: string;
|
|
989
|
+
item?: string;
|
|
990
|
+
group?: string;
|
|
991
|
+
label?: string;
|
|
992
|
+
separator?: string;
|
|
993
|
+
}
|
|
994
|
+
interface SlotProps5 {
|
|
995
|
+
children?: ChildValue8;
|
|
996
|
+
className?: string;
|
|
997
|
+
/** @deprecated Use `className` instead. */
|
|
998
|
+
class?: string;
|
|
999
|
+
}
|
|
1000
|
+
interface ItemProps2 extends SlotProps5 {
|
|
1001
|
+
value: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface GroupProps extends SlotProps5 {
|
|
1004
|
+
label: string;
|
|
1005
|
+
}
|
|
1006
|
+
interface ComposedContextMenuProps {
|
|
1007
|
+
children?: ChildValue8;
|
|
1008
|
+
classes?: ContextMenuClasses;
|
|
1009
|
+
onSelect?: (value: string) => void;
|
|
1010
|
+
onOpenChange?: (open: boolean) => void;
|
|
1011
|
+
positioning?: FloatingOptions;
|
|
1012
|
+
}
|
|
1013
|
+
type ContextMenuClassKey = keyof ContextMenuClasses;
|
|
1014
|
+
declare const ComposedContextMenu: ((props: ComposedContextMenuProps) => HTMLElement) & {
|
|
1015
|
+
__classKeys?: ContextMenuClassKey;
|
|
1016
|
+
Trigger: (props: SlotProps5) => HTMLElement;
|
|
1017
|
+
Content: (props: SlotProps5) => HTMLElement;
|
|
1018
|
+
Item: (props: ItemProps2) => HTMLElement;
|
|
1019
|
+
Group: (props: GroupProps) => HTMLElement;
|
|
1020
|
+
Label: (props: SlotProps5) => HTMLElement;
|
|
1021
|
+
Separator: (props: SlotProps5) => HTMLElement;
|
|
1022
|
+
};
|
|
1023
|
+
import { ChildValue as ChildValue9 } from "@vertz/ui";
|
|
1024
|
+
interface DatePickerClasses {
|
|
1025
|
+
trigger?: string;
|
|
1026
|
+
content?: string;
|
|
1027
|
+
calendar?: CalendarClasses;
|
|
1028
|
+
}
|
|
1029
|
+
type DatePickerClassKey = keyof DatePickerClasses;
|
|
1030
|
+
interface SlotProps6 {
|
|
1031
|
+
children?: ChildValue9;
|
|
1032
|
+
className?: string;
|
|
1033
|
+
/** @deprecated Use `className` instead. */
|
|
1034
|
+
class?: string;
|
|
1035
|
+
}
|
|
1036
|
+
interface ComposedDatePickerProps {
|
|
1037
|
+
children?: ChildValue9;
|
|
1038
|
+
classes?: DatePickerClasses;
|
|
1039
|
+
mode?: "single" | "range";
|
|
1040
|
+
defaultValue?: Date | {
|
|
1041
|
+
from: Date;
|
|
1042
|
+
to: Date;
|
|
1043
|
+
};
|
|
1044
|
+
defaultMonth?: Date;
|
|
1045
|
+
minDate?: Date;
|
|
1046
|
+
maxDate?: Date;
|
|
1047
|
+
disabled?: (date: Date) => boolean;
|
|
1048
|
+
formatDate?: (date: Date) => string;
|
|
1049
|
+
placeholder?: string;
|
|
1050
|
+
onValueChange?: (value: Date | {
|
|
1051
|
+
from: Date;
|
|
1052
|
+
to: Date;
|
|
1053
|
+
} | null) => void;
|
|
1054
|
+
onOpenChange?: (open: boolean) => void;
|
|
1055
|
+
}
|
|
1056
|
+
declare const ComposedDatePicker: ((props: ComposedDatePickerProps) => HTMLElement) & {
|
|
1057
|
+
__classKeys?: DatePickerClassKey;
|
|
1058
|
+
Trigger: (props: SlotProps6) => HTMLElement;
|
|
1059
|
+
Content: (props: SlotProps6) => HTMLElement;
|
|
1060
|
+
};
|
|
1061
|
+
import { ChildValue as ChildValue10 } from "@vertz/ui";
|
|
1062
|
+
interface DialogClasses {
|
|
1063
|
+
overlay?: string;
|
|
1064
|
+
content?: string;
|
|
1065
|
+
close?: string;
|
|
1066
|
+
header?: string;
|
|
1067
|
+
title?: string;
|
|
1068
|
+
description?: string;
|
|
1069
|
+
footer?: string;
|
|
1070
|
+
}
|
|
1071
|
+
interface SlotProps7 {
|
|
1072
|
+
children?: ChildValue10;
|
|
1073
|
+
className?: string;
|
|
1074
|
+
/** @deprecated Use `className` instead. */
|
|
1075
|
+
class?: string;
|
|
1076
|
+
}
|
|
1077
|
+
interface DialogContentProps extends SlotProps7 {
|
|
1078
|
+
showClose?: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
interface ComposedDialogProps {
|
|
1081
|
+
children?: ChildValue10;
|
|
1082
|
+
classes?: DialogClasses;
|
|
1083
|
+
onOpenChange?: (open: boolean) => void;
|
|
1084
|
+
}
|
|
1085
|
+
type DialogClassKey = keyof DialogClasses;
|
|
1086
|
+
declare const ComposedDialog: ((props: ComposedDialogProps) => HTMLElement) & {
|
|
1087
|
+
__classKeys?: DialogClassKey;
|
|
1088
|
+
Trigger: (props: SlotProps7) => HTMLElement;
|
|
1089
|
+
Content: (props: DialogContentProps) => HTMLElement;
|
|
1090
|
+
Title: (props: SlotProps7) => HTMLElement;
|
|
1091
|
+
Description: (props: SlotProps7) => HTMLElement;
|
|
1092
|
+
Header: (props: SlotProps7) => HTMLElement;
|
|
1093
|
+
Footer: (props: SlotProps7) => HTMLElement;
|
|
1094
|
+
Close: (props: SlotProps7) => HTMLElement;
|
|
1095
|
+
};
|
|
1096
|
+
import { ChildValue as ChildValue11 } from "@vertz/ui";
|
|
1097
|
+
interface DropdownMenuClasses {
|
|
1098
|
+
content?: string;
|
|
1099
|
+
item?: string;
|
|
1100
|
+
group?: string;
|
|
1101
|
+
label?: string;
|
|
1102
|
+
separator?: string;
|
|
1103
|
+
}
|
|
1104
|
+
interface SlotProps8 {
|
|
1105
|
+
children?: ChildValue11;
|
|
1106
|
+
className?: string;
|
|
1107
|
+
/** @deprecated Use `className` instead. */
|
|
1108
|
+
class?: string;
|
|
1109
|
+
}
|
|
1110
|
+
interface ItemProps3 extends SlotProps8 {
|
|
1111
|
+
value: string;
|
|
1112
|
+
}
|
|
1113
|
+
interface GroupProps2 extends SlotProps8 {
|
|
1114
|
+
label: string;
|
|
1115
|
+
}
|
|
1116
|
+
interface ComposedDropdownMenuProps {
|
|
1117
|
+
children?: ChildValue11;
|
|
1118
|
+
classes?: DropdownMenuClasses;
|
|
1119
|
+
onSelect?: (value: string) => void;
|
|
1120
|
+
onOpenChange?: (open: boolean) => void;
|
|
1121
|
+
positioning?: FloatingOptions;
|
|
1122
|
+
}
|
|
1123
|
+
type DropdownMenuClassKey = keyof DropdownMenuClasses;
|
|
1124
|
+
declare const ComposedDropdownMenu: ((props: ComposedDropdownMenuProps) => HTMLElement) & {
|
|
1125
|
+
__classKeys?: DropdownMenuClassKey;
|
|
1126
|
+
Trigger: (props: SlotProps8) => HTMLElement;
|
|
1127
|
+
Content: (props: SlotProps8) => HTMLElement;
|
|
1128
|
+
Item: (props: ItemProps3) => HTMLElement;
|
|
1129
|
+
Group: (props: GroupProps2) => HTMLElement;
|
|
1130
|
+
Label: (props: SlotProps8) => HTMLElement;
|
|
1131
|
+
Separator: (props: SlotProps8) => HTMLElement;
|
|
1132
|
+
};
|
|
1133
|
+
import { ChildValue as ChildValue12 } from "@vertz/ui";
|
|
1134
|
+
interface HoverCardClasses {
|
|
1135
|
+
content?: string;
|
|
1136
|
+
}
|
|
1137
|
+
type HoverCardClassKey = keyof HoverCardClasses;
|
|
1138
|
+
interface SlotProps9 {
|
|
1139
|
+
children?: ChildValue12;
|
|
1140
|
+
className?: string;
|
|
1141
|
+
/** @deprecated Use `className` instead. */
|
|
1142
|
+
class?: string;
|
|
1143
|
+
}
|
|
1144
|
+
interface ComposedHoverCardProps {
|
|
1145
|
+
children?: ChildValue12;
|
|
1146
|
+
classes?: HoverCardClasses;
|
|
1147
|
+
openDelay?: number;
|
|
1148
|
+
closeDelay?: number;
|
|
1149
|
+
onOpenChange?: (open: boolean) => void;
|
|
1150
|
+
positioning?: FloatingOptions;
|
|
1151
|
+
}
|
|
1152
|
+
declare const ComposedHoverCard: ((props: ComposedHoverCardProps) => HTMLElement) & {
|
|
1153
|
+
__classKeys?: HoverCardClassKey;
|
|
1154
|
+
Trigger: (props: SlotProps9) => HTMLElement;
|
|
1155
|
+
Content: (props: SlotProps9) => HTMLElement;
|
|
1156
|
+
};
|
|
1157
|
+
import { ChildValue as ChildValue13 } from "@vertz/ui";
|
|
1158
|
+
interface MenubarClasses {
|
|
1159
|
+
root?: string;
|
|
1160
|
+
trigger?: string;
|
|
1161
|
+
content?: string;
|
|
1162
|
+
item?: string;
|
|
1163
|
+
group?: string;
|
|
1164
|
+
label?: string;
|
|
1165
|
+
separator?: string;
|
|
1166
|
+
}
|
|
1167
|
+
interface SlotProps10 {
|
|
1168
|
+
children?: ChildValue13;
|
|
1169
|
+
className?: string;
|
|
1170
|
+
/** @deprecated Use `className` instead. */
|
|
1171
|
+
class?: string;
|
|
1172
|
+
}
|
|
1173
|
+
interface MenuProps extends SlotProps10 {
|
|
1174
|
+
value: string;
|
|
1175
|
+
}
|
|
1176
|
+
interface ItemProps4 extends SlotProps10 {
|
|
1177
|
+
value: string;
|
|
1178
|
+
}
|
|
1179
|
+
interface GroupProps3 extends SlotProps10 {
|
|
1180
|
+
label: string;
|
|
1181
|
+
}
|
|
1182
|
+
interface ComposedMenubarProps {
|
|
1183
|
+
children?: ChildValue13;
|
|
1184
|
+
classes?: MenubarClasses;
|
|
1185
|
+
onSelect?: (value: string) => void;
|
|
1186
|
+
positioning?: FloatingOptions;
|
|
1187
|
+
}
|
|
1188
|
+
type MenubarClassKey = keyof MenubarClasses;
|
|
1189
|
+
declare const ComposedMenubar: ((props: ComposedMenubarProps) => HTMLElement) & {
|
|
1190
|
+
__classKeys?: MenubarClassKey;
|
|
1191
|
+
Menu: (props: MenuProps) => HTMLElement;
|
|
1192
|
+
Trigger: (props: SlotProps10) => HTMLElement;
|
|
1193
|
+
Content: (props: SlotProps10) => HTMLElement;
|
|
1194
|
+
Item: (props: ItemProps4) => HTMLElement;
|
|
1195
|
+
Group: (props: GroupProps3) => HTMLElement;
|
|
1196
|
+
Label: (props: SlotProps10) => HTMLElement;
|
|
1197
|
+
Separator: (props: SlotProps10) => HTMLElement;
|
|
1198
|
+
};
|
|
1199
|
+
import { ChildValue as ChildValue14 } from "@vertz/ui";
|
|
1200
|
+
interface NavigationMenuClasses {
|
|
1201
|
+
root?: string;
|
|
1202
|
+
list?: string;
|
|
1203
|
+
trigger?: string;
|
|
1204
|
+
content?: string;
|
|
1205
|
+
link?: string;
|
|
1206
|
+
viewport?: string;
|
|
1207
|
+
}
|
|
1208
|
+
interface ListProps {
|
|
1209
|
+
children?: ChildValue14;
|
|
1210
|
+
className?: string;
|
|
1211
|
+
class?: string;
|
|
1212
|
+
}
|
|
1213
|
+
interface ItemProps5 {
|
|
1214
|
+
value: string;
|
|
1215
|
+
children?: ChildValue14;
|
|
1216
|
+
}
|
|
1217
|
+
interface TriggerProps {
|
|
1218
|
+
children?: ChildValue14;
|
|
1219
|
+
className?: string;
|
|
1220
|
+
class?: string;
|
|
1221
|
+
}
|
|
1222
|
+
interface ContentProps {
|
|
1223
|
+
children?: ChildValue14;
|
|
1224
|
+
className?: string;
|
|
1225
|
+
class?: string;
|
|
1226
|
+
}
|
|
1227
|
+
interface LinkProps {
|
|
1228
|
+
href: string;
|
|
1229
|
+
children?: ChildValue14;
|
|
1230
|
+
className?: string;
|
|
1231
|
+
class?: string;
|
|
1232
|
+
}
|
|
1233
|
+
interface ViewportProps {
|
|
1234
|
+
className?: string;
|
|
1235
|
+
class?: string;
|
|
1236
|
+
}
|
|
1237
|
+
interface ComposedNavigationMenuProps {
|
|
1238
|
+
children?: ChildValue14;
|
|
1239
|
+
classes?: NavigationMenuClasses;
|
|
1240
|
+
orientation?: "horizontal" | "vertical";
|
|
1241
|
+
delayOpen?: number;
|
|
1242
|
+
delayClose?: number;
|
|
1243
|
+
}
|
|
1244
|
+
type NavigationMenuClassKey = keyof NavigationMenuClasses;
|
|
1245
|
+
declare const ComposedNavigationMenu: ((props: ComposedNavigationMenuProps) => HTMLElement) & {
|
|
1246
|
+
__classKeys?: NavigationMenuClassKey;
|
|
1247
|
+
List: (props: ListProps) => HTMLElement;
|
|
1248
|
+
Item: (props: ItemProps5) => HTMLElement;
|
|
1249
|
+
Trigger: (props: TriggerProps) => HTMLElement;
|
|
1250
|
+
Content: (props: ContentProps) => HTMLElement;
|
|
1251
|
+
Link: (props: LinkProps) => HTMLElement;
|
|
1252
|
+
Viewport: (props: ViewportProps) => HTMLElement;
|
|
1253
|
+
};
|
|
1254
|
+
import { ChildValue as ChildValue15 } from "@vertz/ui";
|
|
1255
|
+
interface PopoverClasses {
|
|
1256
|
+
content?: string;
|
|
1257
|
+
}
|
|
1258
|
+
interface SlotProps11 {
|
|
1259
|
+
children?: ChildValue15;
|
|
1260
|
+
className?: string;
|
|
1261
|
+
/** @deprecated Use `className` instead. */
|
|
1262
|
+
class?: string;
|
|
1263
|
+
}
|
|
1264
|
+
interface ComposedPopoverProps {
|
|
1265
|
+
children?: ChildValue15;
|
|
1266
|
+
classes?: PopoverClasses;
|
|
1267
|
+
onOpenChange?: (open: boolean) => void;
|
|
1268
|
+
positioning?: FloatingOptions;
|
|
1269
|
+
}
|
|
1270
|
+
type PopoverClassKey = keyof PopoverClasses;
|
|
1271
|
+
declare const ComposedPopover: ((props: ComposedPopoverProps) => HTMLElement) & {
|
|
1272
|
+
__classKeys?: PopoverClassKey;
|
|
1273
|
+
Trigger: (props: SlotProps11) => HTMLElement;
|
|
1274
|
+
Content: (props: SlotProps11) => HTMLElement;
|
|
1275
|
+
};
|
|
1276
|
+
import { ChildValue as ChildValue16 } from "@vertz/ui";
|
|
1277
|
+
interface ProgressClasses {
|
|
1278
|
+
root?: string;
|
|
1279
|
+
indicator?: string;
|
|
1280
|
+
}
|
|
1281
|
+
type ProgressClassKey = keyof ProgressClasses;
|
|
1282
|
+
interface ComposedProgressProps {
|
|
1283
|
+
children?: ChildValue16;
|
|
1284
|
+
classes?: ProgressClasses;
|
|
1285
|
+
defaultValue?: number;
|
|
1286
|
+
min?: number;
|
|
1287
|
+
max?: number;
|
|
1288
|
+
}
|
|
1289
|
+
declare const ComposedProgress: ((props: ComposedProgressProps) => HTMLElement) & {
|
|
1290
|
+
__classKeys?: ProgressClassKey;
|
|
1291
|
+
};
|
|
1292
|
+
import { ChildValue as ChildValue17 } from "@vertz/ui";
|
|
1293
|
+
interface RadioGroupClasses {
|
|
1294
|
+
root?: string;
|
|
1295
|
+
item?: string;
|
|
1296
|
+
indicator?: string;
|
|
1297
|
+
indicatorIcon?: string;
|
|
1298
|
+
}
|
|
1299
|
+
type RadioGroupClassKey = keyof RadioGroupClasses;
|
|
1300
|
+
interface RadioGroupItemProps {
|
|
1301
|
+
value: string;
|
|
1302
|
+
disabled?: boolean;
|
|
1303
|
+
children?: ChildValue17;
|
|
1304
|
+
}
|
|
1305
|
+
interface ComposedRadioGroupProps {
|
|
1306
|
+
children?: ChildValue17;
|
|
1307
|
+
classes?: RadioGroupClasses;
|
|
1308
|
+
defaultValue?: string;
|
|
1309
|
+
onValueChange?: (value: string) => void;
|
|
1310
|
+
}
|
|
1311
|
+
declare const ComposedRadioGroup: ((props: ComposedRadioGroupProps) => HTMLElement) & {
|
|
1312
|
+
__classKeys?: RadioGroupClassKey;
|
|
1313
|
+
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
1314
|
+
};
|
|
1315
|
+
import { ChildValue as ChildValue18 } from "@vertz/ui";
|
|
1316
|
+
interface ResizablePanelClasses {
|
|
1317
|
+
root?: string;
|
|
1318
|
+
panel?: string;
|
|
1319
|
+
handle?: string;
|
|
1320
|
+
}
|
|
1321
|
+
type ResizablePanelClassKey = keyof ResizablePanelClasses;
|
|
1322
|
+
interface PanelSlotProps extends PanelOptions {
|
|
1323
|
+
children?: ChildValue18;
|
|
1324
|
+
className?: string;
|
|
1325
|
+
/** @deprecated Use `className` instead. */
|
|
1326
|
+
class?: string;
|
|
1327
|
+
}
|
|
1328
|
+
interface HandleSlotProps {
|
|
1329
|
+
className?: string;
|
|
1330
|
+
/** @deprecated Use `className` instead. */
|
|
1331
|
+
class?: string;
|
|
1332
|
+
}
|
|
1333
|
+
interface ComposedResizablePanelProps {
|
|
1334
|
+
children?: ChildValue18;
|
|
1335
|
+
classes?: ResizablePanelClasses;
|
|
1336
|
+
orientation?: "horizontal" | "vertical";
|
|
1337
|
+
onResize?: (sizes: number[]) => void;
|
|
1338
|
+
}
|
|
1339
|
+
declare const ComposedResizablePanel: ((props: ComposedResizablePanelProps) => HTMLElement) & {
|
|
1340
|
+
__classKeys?: ResizablePanelClassKey;
|
|
1341
|
+
Panel: (props: PanelSlotProps) => HTMLElement;
|
|
1342
|
+
Handle: (props: HandleSlotProps) => HTMLElement;
|
|
1343
|
+
};
|
|
1344
|
+
import { ChildValue as ChildValue19 } from "@vertz/ui";
|
|
1345
|
+
interface ScrollAreaClasses {
|
|
1346
|
+
root?: string;
|
|
1347
|
+
viewport?: string;
|
|
1348
|
+
scrollbar?: string;
|
|
1349
|
+
thumb?: string;
|
|
1350
|
+
}
|
|
1351
|
+
type ScrollAreaClassKey = keyof ScrollAreaClasses;
|
|
1352
|
+
interface ComposedScrollAreaProps {
|
|
1353
|
+
children?: ChildValue19;
|
|
1354
|
+
classes?: ScrollAreaClasses;
|
|
1355
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
1356
|
+
}
|
|
1357
|
+
declare const ComposedScrollArea: ((props: ComposedScrollAreaProps) => HTMLElement) & {
|
|
1358
|
+
__classKeys?: ScrollAreaClassKey;
|
|
1359
|
+
};
|
|
1360
|
+
import { ChildValue as ChildValue20 } from "@vertz/ui";
|
|
1361
|
+
interface SelectClasses {
|
|
1362
|
+
trigger?: string;
|
|
1363
|
+
content?: string;
|
|
1364
|
+
item?: string;
|
|
1365
|
+
itemIndicator?: string;
|
|
1366
|
+
group?: string;
|
|
1367
|
+
label?: string;
|
|
1368
|
+
separator?: string;
|
|
1369
|
+
}
|
|
1370
|
+
interface SlotProps12 {
|
|
1371
|
+
children?: ChildValue20;
|
|
1372
|
+
className?: string;
|
|
1373
|
+
/** @deprecated Use `className` instead. */
|
|
1374
|
+
class?: string;
|
|
1375
|
+
}
|
|
1376
|
+
interface ItemProps6 extends SlotProps12 {
|
|
1377
|
+
value: string;
|
|
1378
|
+
}
|
|
1379
|
+
interface GroupProps4 extends SlotProps12 {
|
|
1380
|
+
label: string;
|
|
1381
|
+
}
|
|
1382
|
+
interface ComposedSelectProps {
|
|
1383
|
+
children?: ChildValue20;
|
|
1384
|
+
classes?: SelectClasses;
|
|
1385
|
+
defaultValue?: string;
|
|
1386
|
+
placeholder?: string;
|
|
1387
|
+
onValueChange?: (value: string) => void;
|
|
1388
|
+
positioning?: FloatingOptions;
|
|
1389
|
+
}
|
|
1390
|
+
type SelectClassKey = keyof SelectClasses;
|
|
1391
|
+
declare const ComposedSelect: ((props: ComposedSelectProps) => HTMLElement) & {
|
|
1392
|
+
__classKeys?: SelectClassKey;
|
|
1393
|
+
Trigger: (props: SlotProps12) => HTMLElement;
|
|
1394
|
+
Content: (props: SlotProps12) => HTMLElement;
|
|
1395
|
+
Item: (props: ItemProps6) => HTMLElement;
|
|
1396
|
+
Group: (props: GroupProps4) => HTMLElement;
|
|
1397
|
+
Separator: (props: SlotProps12) => HTMLElement;
|
|
1398
|
+
};
|
|
1399
|
+
import { ChildValue as ChildValue21 } from "@vertz/ui";
|
|
1400
|
+
interface SheetClasses {
|
|
1401
|
+
overlay?: string;
|
|
1402
|
+
content?: string;
|
|
1403
|
+
title?: string;
|
|
1404
|
+
description?: string;
|
|
1405
|
+
close?: string;
|
|
1406
|
+
}
|
|
1407
|
+
interface SlotProps13 {
|
|
1408
|
+
children?: ChildValue21;
|
|
1409
|
+
className?: string;
|
|
1410
|
+
/** @deprecated Use `className` instead. */
|
|
1411
|
+
class?: string;
|
|
1412
|
+
}
|
|
1413
|
+
interface SheetContentProps extends SlotProps13 {
|
|
1414
|
+
showClose?: boolean;
|
|
1415
|
+
}
|
|
1416
|
+
interface ComposedSheetProps {
|
|
1417
|
+
children?: ChildValue21;
|
|
1418
|
+
classes?: SheetClasses;
|
|
1419
|
+
side?: SheetSide;
|
|
1420
|
+
onOpenChange?: (open: boolean) => void;
|
|
1421
|
+
}
|
|
1422
|
+
type SheetClassKey = keyof SheetClasses;
|
|
1423
|
+
declare const ComposedSheet: ((props: ComposedSheetProps) => HTMLElement) & {
|
|
1424
|
+
__classKeys?: SheetClassKey;
|
|
1425
|
+
Trigger: (props: SlotProps13) => HTMLElement;
|
|
1426
|
+
Content: (props: SheetContentProps) => HTMLElement;
|
|
1427
|
+
Title: (props: SlotProps13) => HTMLElement;
|
|
1428
|
+
Description: (props: SlotProps13) => HTMLElement;
|
|
1429
|
+
Close: (props: SlotProps13) => HTMLElement;
|
|
1430
|
+
};
|
|
1431
|
+
import { ChildValue as ChildValue22 } from "@vertz/ui";
|
|
1432
|
+
interface SliderClasses {
|
|
1433
|
+
root?: string;
|
|
1434
|
+
track?: string;
|
|
1435
|
+
range?: string;
|
|
1436
|
+
thumb?: string;
|
|
1437
|
+
}
|
|
1438
|
+
type SliderClassKey = keyof SliderClasses;
|
|
1439
|
+
interface ComposedSliderProps {
|
|
1440
|
+
children?: ChildValue22;
|
|
1441
|
+
classes?: SliderClasses;
|
|
1442
|
+
defaultValue?: number;
|
|
1443
|
+
min?: number;
|
|
1444
|
+
max?: number;
|
|
1445
|
+
step?: number;
|
|
1446
|
+
disabled?: boolean;
|
|
1447
|
+
onValueChange?: (value: number) => void;
|
|
1448
|
+
}
|
|
1449
|
+
declare const ComposedSlider: ((props: ComposedSliderProps) => HTMLElement) & {
|
|
1450
|
+
__classKeys?: SliderClassKey;
|
|
1451
|
+
};
|
|
1452
|
+
import { ChildValue as ChildValue23 } from "@vertz/ui";
|
|
1453
|
+
interface SwitchClasses {
|
|
1454
|
+
root?: string;
|
|
1455
|
+
thumb?: string;
|
|
1456
|
+
}
|
|
1457
|
+
type SwitchClassKey = keyof SwitchClasses;
|
|
1458
|
+
interface ComposedSwitchProps {
|
|
1459
|
+
children?: ChildValue23;
|
|
1460
|
+
classes?: SwitchClasses;
|
|
1461
|
+
defaultChecked?: boolean;
|
|
1462
|
+
disabled?: boolean;
|
|
1463
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1464
|
+
}
|
|
1465
|
+
declare const ComposedSwitch: ((props: ComposedSwitchProps) => HTMLElement) & {
|
|
1466
|
+
__classKeys?: SwitchClassKey;
|
|
1467
|
+
};
|
|
1468
|
+
import { ChildValue as ChildValue24 } from "@vertz/ui";
|
|
1469
|
+
interface TabsClasses {
|
|
1470
|
+
list?: string;
|
|
1471
|
+
trigger?: string;
|
|
1472
|
+
panel?: string;
|
|
1473
|
+
}
|
|
1474
|
+
interface SlotProps14 {
|
|
1475
|
+
children?: ChildValue24;
|
|
1476
|
+
className?: string;
|
|
1477
|
+
/** @deprecated Use `className` instead. */
|
|
1478
|
+
class?: string;
|
|
1479
|
+
}
|
|
1480
|
+
interface TriggerProps2 extends SlotProps14 {
|
|
1481
|
+
value: string;
|
|
1482
|
+
}
|
|
1483
|
+
interface ContentProps2 extends SlotProps14 {
|
|
1484
|
+
value: string;
|
|
1485
|
+
}
|
|
1486
|
+
interface ComposedTabsProps {
|
|
1487
|
+
children?: ChildValue24;
|
|
1488
|
+
classes?: TabsClasses;
|
|
1489
|
+
defaultValue?: string;
|
|
1490
|
+
onValueChange?: (value: string) => void;
|
|
1491
|
+
orientation?: "horizontal" | "vertical";
|
|
1492
|
+
}
|
|
1493
|
+
type TabsClassKey = keyof TabsClasses;
|
|
1494
|
+
declare const ComposedTabs: ((props: ComposedTabsProps) => HTMLElement) & {
|
|
1495
|
+
__classKeys?: TabsClassKey;
|
|
1496
|
+
List: (props: SlotProps14) => HTMLElement;
|
|
1497
|
+
Trigger: (props: TriggerProps2) => HTMLElement;
|
|
1498
|
+
Content: (props: ContentProps2) => HTMLElement;
|
|
1499
|
+
};
|
|
1500
|
+
import { ChildValue as ChildValue25 } from "@vertz/ui";
|
|
1501
|
+
interface ToggleClasses {
|
|
1502
|
+
root?: string;
|
|
1503
|
+
}
|
|
1504
|
+
type ToggleClassKey = keyof ToggleClasses;
|
|
1505
|
+
interface ComposedToggleProps {
|
|
1506
|
+
children?: ChildValue25;
|
|
1507
|
+
classes?: ToggleClasses;
|
|
1508
|
+
defaultPressed?: boolean;
|
|
1509
|
+
disabled?: boolean;
|
|
1510
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1511
|
+
}
|
|
1512
|
+
declare const ComposedToggle: ((props: ComposedToggleProps) => HTMLElement) & {
|
|
1513
|
+
__classKeys?: ToggleClassKey;
|
|
1514
|
+
};
|
|
1515
|
+
import { ChildValue as ChildValue26 } from "@vertz/ui";
|
|
1516
|
+
interface ToggleGroupClasses {
|
|
1517
|
+
root?: string;
|
|
1518
|
+
item?: string;
|
|
1519
|
+
}
|
|
1520
|
+
type ToggleGroupClassKey = keyof ToggleGroupClasses;
|
|
1521
|
+
interface ToggleGroupItemProps {
|
|
1522
|
+
value: string;
|
|
1523
|
+
children?: ChildValue26;
|
|
1524
|
+
}
|
|
1525
|
+
interface ComposedToggleGroupProps {
|
|
1526
|
+
children?: ChildValue26;
|
|
1527
|
+
classes?: ToggleGroupClasses;
|
|
1528
|
+
type?: "single" | "multiple";
|
|
1529
|
+
defaultValue?: string[];
|
|
1530
|
+
orientation?: "horizontal" | "vertical";
|
|
1531
|
+
disabled?: boolean;
|
|
1532
|
+
onValueChange?: (value: string[]) => void;
|
|
1533
|
+
}
|
|
1534
|
+
declare const ComposedToggleGroup: ((props: ComposedToggleGroupProps) => HTMLElement) & {
|
|
1535
|
+
__classKeys?: ToggleGroupClassKey;
|
|
1536
|
+
Item: (props: ToggleGroupItemProps) => HTMLElement;
|
|
1537
|
+
};
|
|
1538
|
+
import { ChildValue as ChildValue27 } from "@vertz/ui";
|
|
1539
|
+
interface TooltipClasses {
|
|
1540
|
+
content?: string;
|
|
1541
|
+
}
|
|
1542
|
+
interface SlotProps15 {
|
|
1543
|
+
children?: ChildValue27;
|
|
1544
|
+
className?: string;
|
|
1545
|
+
/** @deprecated Use `className` instead. */
|
|
1546
|
+
class?: string;
|
|
1547
|
+
}
|
|
1548
|
+
interface ComposedTooltipProps {
|
|
1549
|
+
children?: ChildValue27;
|
|
1550
|
+
classes?: TooltipClasses;
|
|
1551
|
+
delay?: number;
|
|
1552
|
+
positioning?: FloatingOptions;
|
|
1553
|
+
}
|
|
1554
|
+
type TooltipClassKey = keyof TooltipClasses;
|
|
1555
|
+
declare const ComposedTooltip: ((props: ComposedTooltipProps) => HTMLElement) & {
|
|
1556
|
+
__classKeys?: TooltipClassKey;
|
|
1557
|
+
Trigger: (props: SlotProps15) => HTMLElement;
|
|
1558
|
+
Content: (props: SlotProps15) => HTMLElement;
|
|
1559
|
+
};
|
|
1560
|
+
/**
|
|
1561
|
+
* Typed event handler props for interactive themed components.
|
|
1562
|
+
*
|
|
1563
|
+
* Shared across Button, AlertDialog.Action, AlertDialog.Cancel, etc.
|
|
1564
|
+
* Only explicitly listed events are accepted — no arbitrary `on*` string matching.
|
|
1565
|
+
*/
|
|
1566
|
+
interface ElementEventHandlers {
|
|
1567
|
+
onClick?: (event: MouseEvent) => void;
|
|
1568
|
+
onDblClick?: (event: MouseEvent) => void;
|
|
1569
|
+
onMouseDown?: (event: MouseEvent) => void;
|
|
1570
|
+
onMouseUp?: (event: MouseEvent) => void;
|
|
1571
|
+
onMouseEnter?: (event: MouseEvent) => void;
|
|
1572
|
+
onMouseLeave?: (event: MouseEvent) => void;
|
|
1573
|
+
onFocus?: (event: FocusEvent) => void;
|
|
1574
|
+
onBlur?: (event: FocusEvent) => void;
|
|
1575
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
1576
|
+
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1577
|
+
onPointerDown?: (event: PointerEvent) => void;
|
|
1578
|
+
onPointerUp?: (event: PointerEvent) => void;
|
|
1579
|
+
onInput?: (event: InputEvent) => void;
|
|
1580
|
+
onChange?: (event: Event) => void;
|
|
1581
|
+
}
|
|
1582
|
+
export { withStyles, TooltipState, TooltipOptions, TooltipElements, TooltipClasses, Tooltip, ToggleOptions, ToggleGroupState, ToggleGroupOptions, ToggleGroupElements, ToggleGroupClasses, ToggleGroup, ToggleClasses, Toggle, ToastState, ToastOptions, ToastMessage, ToastElements, Toast, TabsState, TabsOptions, TabsElements, TabsClasses, Tabs, SwitchOptions, SwitchClasses, Switch, StyledPrimitive, SliderState, SliderOptions, SliderElements, SliderClasses, Slider, SheetState, SheetSide, SheetOptions, SheetElements, SheetClasses, Sheet, SelectState, SelectOptions, SelectElements, SelectClasses, Select, ScrollAreaState, ScrollAreaOptions, ScrollAreaElements, ScrollAreaClasses, ScrollAreaClassKey, ScrollArea, ResizablePanelState, ResizablePanelOptions, ResizablePanelElements, ResizablePanelClasses, ResizablePanelClassKey, ResizablePanel, RadioState, RadioOptions, RadioItemOptions, RadioGroupClasses, RadioElements, Radio, ProgressState, ProgressOptions, ProgressElements, ProgressClasses, Progress, PopoverState, PopoverOptions, PopoverElements, PopoverClasses, Popover, PanelOptions, NavigationMenuState, NavigationMenuOptions, NavigationMenuElements, NavigationMenuClasses, NavigationMenu, MenubarState, MenubarOptions, MenubarElements, MenubarClasses, Menubar, MenuState, MenuOptions, MenuElements, Menu2 as Menu, HoverCardState, HoverCardOptions, HoverCardElements, HoverCardClasses, HoverCardClassKey, HoverCard, FloatingOptions, ElementEventHandlers, ElementAttrs, DropdownMenuState, DropdownMenuOptions, DropdownMenuElements, DropdownMenuClasses, DropdownMenu, DialogState, DialogOptions, DialogElements, DialogClasses, Dialog, DatePickerState, DatePickerOptions, DatePickerElements, DatePickerClasses, DatePickerClassKey, DatePicker, ContextMenuState, ContextMenuOptions, ContextMenuElements, ContextMenuClasses, ContextMenu, ComposedTooltipProps, ComposedTooltip, ComposedToggleProps, ComposedToggleGroupProps, ComposedToggleGroup, ComposedToggle, ComposedTabsProps, ComposedTabs, ComposedSwitchProps, ComposedSwitch, ComposedSliderProps, ComposedSlider, ComposedSheetProps, ComposedSheet, ComposedSelectProps, ComposedSelect, ComposedScrollAreaProps, ComposedScrollArea, ComposedResizablePanelProps, ComposedResizablePanel, ComposedRadioGroupProps, ComposedRadioGroup, ComposedProgressProps, ComposedProgress, ComposedPrimitive, ComposedPopoverProps, ComposedPopover, ComposedNavigationMenuProps, ComposedNavigationMenu, ComposedMenubarProps, ComposedMenubar, ComposedHoverCardProps, ComposedHoverCard, ComposedDropdownMenuProps, ComposedDropdownMenu, ComposedDialogProps, ComposedDialog, ComposedDatePickerProps, ComposedDatePicker, ComposedContextMenuProps, ComposedContextMenu, ComposedCommandProps, ComposedCommand, ComposedCollapsibleProps, ComposedCollapsible, ComposedCheckboxProps, ComposedCheckbox, ComposedCarouselProps, ComposedCarousel, ComposedCalendarProps, ComposedCalendar, ComposedAlertDialogProps, ComposedAlertDialog, ComposedAccordionProps, ComposedAccordion, CommandState, CommandOptions, CommandElements, CommandClasses, Command, ComboboxState, ComboboxOptions, ComboboxElements, Combobox, CollapsibleState, CollapsibleOptions, CollapsibleElements, CollapsibleClasses, CollapsibleClassKey, Collapsible, ClassesOf, CheckedState, CheckboxOptions, CheckboxClasses, Checkbox, CarouselState, CarouselOptions, CarouselElements, CarouselClasses, Carousel, CalendarState, CalendarOptions, CalendarElements, CalendarClasses, Calendar, ButtonOptions, Button, BadgeOptions, BadgeElements, Badge, AlertDialogState, AlertDialogOptions, AlertDialogElements, AlertDialogClasses, AlertDialog, AccordionState, AccordionOptions, AccordionElements, AccordionClasses, Accordion };
|