@vertz/ui-primitives 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/shared/{chunk-ppcv3ehd.js → chunk-0gn67thm.js} +14 -11
- package/dist/shared/{chunk-4da5zksy.js → chunk-1dzcjmfq.js} +2 -2
- package/dist/shared/{chunk-avxcmmk6.js → chunk-1hv9yd28.js} +6 -6
- package/dist/shared/{chunk-kg27s15c.js → chunk-2d05qxdw.js} +4 -4
- package/dist/shared/{chunk-bew4bjgf.js → chunk-4jnweh3m.js} +4 -4
- package/dist/shared/{chunk-jctqs9m4.js → chunk-7867pr13.js} +36 -12
- package/dist/shared/{chunk-rnjm61t0.js → chunk-90hmpm0w.js} +3 -3
- package/dist/shared/{chunk-hr9hx58m.js → chunk-ac86qw7a.js} +4 -4
- package/dist/shared/{chunk-gt0wth9h.js → chunk-b02fkvts.js} +2 -2
- package/dist/shared/{chunk-7kpsyjd7.js → chunk-bsx59bv9.js} +4 -4
- package/dist/shared/{chunk-jz0s6srh.js → chunk-cm2akzrm.js} +1 -1
- package/dist/shared/{chunk-yr9yzpvq.js → chunk-cvms20w3.js} +82 -57
- package/dist/shared/{chunk-ttsyf6ma.js → chunk-d8n8mggh.js} +4 -4
- package/dist/shared/{chunk-34yfm2b0.js → chunk-er9625ar.js} +105 -83
- package/dist/shared/{chunk-tfyg0qrp.js → chunk-ewxzhtej.js} +5 -5
- package/dist/shared/{chunk-4085nbdq.js → chunk-ey4485fh.js} +4 -4
- package/dist/shared/{chunk-x2hz98qn.js → chunk-f501vw7e.js} +2 -2
- package/dist/shared/{chunk-9hj9p7s2.js → chunk-g67tnd19.js} +36 -30
- package/dist/shared/{chunk-j4cm8avr.js → chunk-gbxbkmte.js} +4 -4
- package/dist/shared/chunk-gzgyfhz6.js +237 -0
- package/dist/shared/{chunk-g9qvd20g.js → chunk-je7tqf67.js} +2 -2
- package/dist/shared/{chunk-sqs8kyb2.js → chunk-kr5qg80z.js} +4 -4
- package/dist/shared/{chunk-7krvqrwq.js → chunk-kytkmdpc.js} +35 -13
- package/dist/shared/{chunk-18y8gfk0.js → chunk-pvy0tcd7.js} +115 -93
- package/dist/shared/{chunk-n9nwx58j.js → chunk-q2q20y9a.js} +4 -4
- package/dist/shared/{chunk-dpsgb1xw.js → chunk-q8dm19a5.js} +7 -2
- package/dist/shared/{chunk-7ffg0caj.js → chunk-q9fgfgh9.js} +7 -5
- package/dist/shared/{chunk-m1ptgp1s.js → chunk-qfk1ycfw.js} +6 -6
- package/dist/shared/{chunk-x0we8gcy.js → chunk-te4pdqnh.js} +4 -4
- package/dist/shared/{chunk-gkddsbmh.js → chunk-v9qddmh9.js} +3 -3
- package/dist/shared/{chunk-t1vkvsz2.js → chunk-vm37m55w.js} +4 -4
- package/dist/shared/{chunk-8ak7vdk1.js → chunk-y5vdb6br.js} +4 -4
- package/dist/shared/{chunk-96d9nr7y.js → chunk-zf0rhm9e.js} +1 -1
- package/dist/shared/chunk-ztvj60xp.js +185 -0
- 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 +744 -34
- package/dist/src/index.js +4955 -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 +61 -1
- package/dist/src/utils.js +48 -1
- 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,711 @@ 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 CommandClasses {
|
|
869
|
+
root?: string;
|
|
870
|
+
input?: string;
|
|
871
|
+
list?: string;
|
|
872
|
+
item?: string;
|
|
873
|
+
group?: string;
|
|
874
|
+
groupHeading?: string;
|
|
875
|
+
separator?: string;
|
|
876
|
+
empty?: string;
|
|
877
|
+
}
|
|
878
|
+
interface CommandInputProps {
|
|
879
|
+
className?: string;
|
|
880
|
+
/** @deprecated Use `className` instead. */
|
|
881
|
+
class?: string;
|
|
882
|
+
}
|
|
883
|
+
interface CommandListProps {
|
|
884
|
+
children?: ChildValue5;
|
|
885
|
+
className?: string;
|
|
886
|
+
/** @deprecated Use `className` instead. */
|
|
887
|
+
class?: string;
|
|
888
|
+
}
|
|
889
|
+
interface CommandEmptyProps {
|
|
890
|
+
children?: ChildValue5;
|
|
891
|
+
className?: string;
|
|
892
|
+
/** @deprecated Use `className` instead. */
|
|
893
|
+
class?: string;
|
|
894
|
+
}
|
|
895
|
+
interface CommandItemProps {
|
|
896
|
+
value: string;
|
|
897
|
+
children?: ChildValue5;
|
|
898
|
+
keywords?: string[];
|
|
899
|
+
className?: string;
|
|
900
|
+
/** @deprecated Use `className` instead. */
|
|
901
|
+
class?: string;
|
|
902
|
+
}
|
|
903
|
+
interface CommandGroupProps {
|
|
904
|
+
label: string;
|
|
905
|
+
children?: ChildValue5;
|
|
906
|
+
className?: string;
|
|
907
|
+
/** @deprecated Use `className` instead. */
|
|
908
|
+
class?: string;
|
|
909
|
+
}
|
|
910
|
+
interface CommandSeparatorProps {
|
|
911
|
+
className?: string;
|
|
912
|
+
/** @deprecated Use `className` instead. */
|
|
913
|
+
class?: string;
|
|
914
|
+
}
|
|
915
|
+
interface ComposedCommandProps {
|
|
916
|
+
children?: ChildValue5;
|
|
917
|
+
classes?: CommandClasses;
|
|
918
|
+
filter?: (value: string, search: string) => boolean;
|
|
919
|
+
onSelect?: (value: string) => void;
|
|
920
|
+
onInputChange?: (value: string) => void;
|
|
921
|
+
placeholder?: string;
|
|
922
|
+
}
|
|
923
|
+
type CommandClassKey = keyof CommandClasses;
|
|
924
|
+
declare const ComposedCommand: ((props: ComposedCommandProps) => HTMLElement) & {
|
|
925
|
+
__classKeys?: CommandClassKey;
|
|
926
|
+
Input: (props: CommandInputProps) => HTMLElement;
|
|
927
|
+
List: (props: CommandListProps) => HTMLElement;
|
|
928
|
+
Empty: (props: CommandEmptyProps) => HTMLElement;
|
|
929
|
+
Item: (props: CommandItemProps) => HTMLElement;
|
|
930
|
+
Group: (props: CommandGroupProps) => HTMLElement;
|
|
931
|
+
Separator: (props: CommandSeparatorProps) => HTMLElement;
|
|
932
|
+
};
|
|
933
|
+
import { ChildValue as ChildValue6 } from "@vertz/ui";
|
|
934
|
+
/**
|
|
935
|
+
* A composed primitive is a callable function with a `__classKeys` phantom brand
|
|
936
|
+
* that defines the valid class keys for that component.
|
|
937
|
+
*/
|
|
938
|
+
interface ComposedPrimitive<K extends string = string> {
|
|
939
|
+
(props: {
|
|
940
|
+
children?: ChildValue6;
|
|
941
|
+
classes?: Partial<Record<K, string>>;
|
|
942
|
+
[key: string]: unknown;
|
|
943
|
+
}): HTMLElement;
|
|
944
|
+
__classKeys?: K;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Extract the class keys from a composed primitive's phantom brand.
|
|
948
|
+
*/
|
|
949
|
+
type ClassesOf<C> = C extends ComposedPrimitive<infer K> ? Record<K, string> : never;
|
|
950
|
+
/**
|
|
951
|
+
* Return type of withStyles: a callable that accepts all props except `classes`,
|
|
952
|
+
* plus all sub-component properties from the original component.
|
|
953
|
+
*/
|
|
954
|
+
type StyledPrimitive<C extends ComposedPrimitive> = ((props: Omit<Parameters<C>[0], "classes">) => HTMLElement) & Omit<C, "__classKeys" | keyof CallableFunction>;
|
|
955
|
+
/**
|
|
956
|
+
* Pre-bind CSS classes onto a composed primitive.
|
|
957
|
+
* Returns a new function that accepts all props except `classes`,
|
|
958
|
+
* with all sub-component properties preserved.
|
|
959
|
+
*/
|
|
960
|
+
declare function withStyles<C extends ComposedPrimitive>(component: C, classes: ClassesOf<C>): StyledPrimitive<C>;
|
|
961
|
+
import { ChildValue as ChildValue7 } from "@vertz/ui";
|
|
962
|
+
interface ContextMenuClasses {
|
|
963
|
+
content?: string;
|
|
964
|
+
item?: string;
|
|
965
|
+
group?: string;
|
|
966
|
+
label?: string;
|
|
967
|
+
separator?: string;
|
|
968
|
+
}
|
|
969
|
+
interface SlotProps4 {
|
|
970
|
+
children?: ChildValue7;
|
|
971
|
+
className?: string;
|
|
972
|
+
/** @deprecated Use `className` instead. */
|
|
973
|
+
class?: string;
|
|
974
|
+
}
|
|
975
|
+
interface ItemProps2 extends SlotProps4 {
|
|
976
|
+
value: string;
|
|
977
|
+
}
|
|
978
|
+
interface GroupProps extends SlotProps4 {
|
|
979
|
+
label: string;
|
|
980
|
+
}
|
|
981
|
+
interface ComposedContextMenuProps {
|
|
982
|
+
children?: ChildValue7;
|
|
983
|
+
classes?: ContextMenuClasses;
|
|
984
|
+
onSelect?: (value: string) => void;
|
|
985
|
+
positioning?: FloatingOptions;
|
|
986
|
+
}
|
|
987
|
+
type ContextMenuClassKey = keyof ContextMenuClasses;
|
|
988
|
+
declare const ComposedContextMenu: ((props: ComposedContextMenuProps) => HTMLElement) & {
|
|
989
|
+
__classKeys?: ContextMenuClassKey;
|
|
990
|
+
Trigger: (props: SlotProps4) => HTMLElement;
|
|
991
|
+
Content: (props: SlotProps4) => HTMLElement;
|
|
992
|
+
Item: (props: ItemProps2) => HTMLElement;
|
|
993
|
+
Group: (props: GroupProps) => HTMLElement;
|
|
994
|
+
Label: (props: SlotProps4) => HTMLElement;
|
|
995
|
+
Separator: (props: SlotProps4) => HTMLElement;
|
|
996
|
+
};
|
|
997
|
+
import { ChildValue as ChildValue8 } from "@vertz/ui";
|
|
998
|
+
interface DialogClasses {
|
|
999
|
+
overlay?: string;
|
|
1000
|
+
content?: string;
|
|
1001
|
+
close?: string;
|
|
1002
|
+
header?: string;
|
|
1003
|
+
title?: string;
|
|
1004
|
+
description?: string;
|
|
1005
|
+
footer?: string;
|
|
1006
|
+
}
|
|
1007
|
+
interface SlotProps5 {
|
|
1008
|
+
children?: ChildValue8;
|
|
1009
|
+
className?: string;
|
|
1010
|
+
/** @deprecated Use `className` instead. */
|
|
1011
|
+
class?: string;
|
|
1012
|
+
}
|
|
1013
|
+
interface ComposedDialogProps {
|
|
1014
|
+
children?: ChildValue8;
|
|
1015
|
+
classes?: DialogClasses;
|
|
1016
|
+
onOpenChange?: (open: boolean) => void;
|
|
1017
|
+
closeIcon?: HTMLElement;
|
|
1018
|
+
}
|
|
1019
|
+
type DialogClassKey = keyof DialogClasses;
|
|
1020
|
+
declare const ComposedDialog: ((props: ComposedDialogProps) => HTMLElement) & {
|
|
1021
|
+
__classKeys?: DialogClassKey;
|
|
1022
|
+
Trigger: (props: SlotProps5) => HTMLElement;
|
|
1023
|
+
Content: (props: SlotProps5) => HTMLElement;
|
|
1024
|
+
Title: (props: SlotProps5) => HTMLElement;
|
|
1025
|
+
Description: (props: SlotProps5) => HTMLElement;
|
|
1026
|
+
Header: (props: SlotProps5) => HTMLElement;
|
|
1027
|
+
Footer: (props: SlotProps5) => HTMLElement;
|
|
1028
|
+
Close: (props: SlotProps5) => HTMLElement;
|
|
1029
|
+
};
|
|
1030
|
+
import { ChildValue as ChildValue9 } from "@vertz/ui";
|
|
1031
|
+
interface DropdownMenuClasses {
|
|
1032
|
+
content?: string;
|
|
1033
|
+
item?: string;
|
|
1034
|
+
group?: string;
|
|
1035
|
+
label?: string;
|
|
1036
|
+
separator?: string;
|
|
1037
|
+
}
|
|
1038
|
+
interface SlotProps6 {
|
|
1039
|
+
children?: ChildValue9;
|
|
1040
|
+
className?: string;
|
|
1041
|
+
/** @deprecated Use `className` instead. */
|
|
1042
|
+
class?: string;
|
|
1043
|
+
}
|
|
1044
|
+
interface ItemProps3 extends SlotProps6 {
|
|
1045
|
+
value: string;
|
|
1046
|
+
}
|
|
1047
|
+
interface GroupProps2 extends SlotProps6 {
|
|
1048
|
+
label: string;
|
|
1049
|
+
}
|
|
1050
|
+
interface ComposedDropdownMenuProps {
|
|
1051
|
+
children?: ChildValue9;
|
|
1052
|
+
classes?: DropdownMenuClasses;
|
|
1053
|
+
onSelect?: (value: string) => void;
|
|
1054
|
+
onOpenChange?: (open: boolean) => void;
|
|
1055
|
+
positioning?: FloatingOptions;
|
|
1056
|
+
}
|
|
1057
|
+
type DropdownMenuClassKey = keyof DropdownMenuClasses;
|
|
1058
|
+
declare const ComposedDropdownMenu: ((props: ComposedDropdownMenuProps) => HTMLElement) & {
|
|
1059
|
+
__classKeys?: DropdownMenuClassKey;
|
|
1060
|
+
Trigger: (props: SlotProps6) => HTMLElement;
|
|
1061
|
+
Content: (props: SlotProps6) => HTMLElement;
|
|
1062
|
+
Item: (props: ItemProps3) => HTMLElement;
|
|
1063
|
+
Group: (props: GroupProps2) => HTMLElement;
|
|
1064
|
+
Label: (props: SlotProps6) => HTMLElement;
|
|
1065
|
+
Separator: (props: SlotProps6) => HTMLElement;
|
|
1066
|
+
};
|
|
1067
|
+
import { ChildValue as ChildValue10 } from "@vertz/ui";
|
|
1068
|
+
interface MenubarClasses {
|
|
1069
|
+
root?: string;
|
|
1070
|
+
trigger?: string;
|
|
1071
|
+
content?: string;
|
|
1072
|
+
item?: string;
|
|
1073
|
+
group?: string;
|
|
1074
|
+
label?: string;
|
|
1075
|
+
separator?: string;
|
|
1076
|
+
}
|
|
1077
|
+
interface SlotProps7 {
|
|
1078
|
+
children?: ChildValue10;
|
|
1079
|
+
className?: string;
|
|
1080
|
+
/** @deprecated Use `className` instead. */
|
|
1081
|
+
class?: string;
|
|
1082
|
+
}
|
|
1083
|
+
interface MenuProps extends SlotProps7 {
|
|
1084
|
+
value: string;
|
|
1085
|
+
}
|
|
1086
|
+
interface ItemProps4 extends SlotProps7 {
|
|
1087
|
+
value: string;
|
|
1088
|
+
}
|
|
1089
|
+
interface GroupProps3 extends SlotProps7 {
|
|
1090
|
+
label: string;
|
|
1091
|
+
}
|
|
1092
|
+
interface ComposedMenubarProps {
|
|
1093
|
+
children?: ChildValue10;
|
|
1094
|
+
classes?: MenubarClasses;
|
|
1095
|
+
onSelect?: (value: string) => void;
|
|
1096
|
+
positioning?: FloatingOptions;
|
|
1097
|
+
}
|
|
1098
|
+
type MenubarClassKey = keyof MenubarClasses;
|
|
1099
|
+
declare const ComposedMenubar: ((props: ComposedMenubarProps) => HTMLElement) & {
|
|
1100
|
+
__classKeys?: MenubarClassKey;
|
|
1101
|
+
Menu: (props: MenuProps) => HTMLElement;
|
|
1102
|
+
Trigger: (props: SlotProps7) => HTMLElement;
|
|
1103
|
+
Content: (props: SlotProps7) => HTMLElement;
|
|
1104
|
+
Item: (props: ItemProps4) => HTMLElement;
|
|
1105
|
+
Group: (props: GroupProps3) => HTMLElement;
|
|
1106
|
+
Label: (props: SlotProps7) => HTMLElement;
|
|
1107
|
+
Separator: (props: SlotProps7) => HTMLElement;
|
|
1108
|
+
};
|
|
1109
|
+
import { ChildValue as ChildValue11 } from "@vertz/ui";
|
|
1110
|
+
interface NavigationMenuClasses {
|
|
1111
|
+
root?: string;
|
|
1112
|
+
list?: string;
|
|
1113
|
+
trigger?: string;
|
|
1114
|
+
content?: string;
|
|
1115
|
+
link?: string;
|
|
1116
|
+
viewport?: string;
|
|
1117
|
+
}
|
|
1118
|
+
interface ListProps {
|
|
1119
|
+
children?: ChildValue11;
|
|
1120
|
+
className?: string;
|
|
1121
|
+
class?: string;
|
|
1122
|
+
}
|
|
1123
|
+
interface ItemProps5 {
|
|
1124
|
+
value: string;
|
|
1125
|
+
children?: ChildValue11;
|
|
1126
|
+
}
|
|
1127
|
+
interface TriggerProps {
|
|
1128
|
+
children?: ChildValue11;
|
|
1129
|
+
className?: string;
|
|
1130
|
+
class?: string;
|
|
1131
|
+
}
|
|
1132
|
+
interface ContentProps {
|
|
1133
|
+
children?: ChildValue11;
|
|
1134
|
+
className?: string;
|
|
1135
|
+
class?: string;
|
|
1136
|
+
}
|
|
1137
|
+
interface LinkProps {
|
|
1138
|
+
href: string;
|
|
1139
|
+
children?: ChildValue11;
|
|
1140
|
+
className?: string;
|
|
1141
|
+
class?: string;
|
|
1142
|
+
}
|
|
1143
|
+
interface ViewportProps {
|
|
1144
|
+
className?: string;
|
|
1145
|
+
class?: string;
|
|
1146
|
+
}
|
|
1147
|
+
interface ComposedNavigationMenuProps {
|
|
1148
|
+
children?: ChildValue11;
|
|
1149
|
+
classes?: NavigationMenuClasses;
|
|
1150
|
+
orientation?: "horizontal" | "vertical";
|
|
1151
|
+
delayOpen?: number;
|
|
1152
|
+
delayClose?: number;
|
|
1153
|
+
}
|
|
1154
|
+
type NavigationMenuClassKey = keyof NavigationMenuClasses;
|
|
1155
|
+
declare const ComposedNavigationMenu: ((props: ComposedNavigationMenuProps) => HTMLElement) & {
|
|
1156
|
+
__classKeys?: NavigationMenuClassKey;
|
|
1157
|
+
List: (props: ListProps) => HTMLElement;
|
|
1158
|
+
Item: (props: ItemProps5) => HTMLElement;
|
|
1159
|
+
Trigger: (props: TriggerProps) => HTMLElement;
|
|
1160
|
+
Content: (props: ContentProps) => HTMLElement;
|
|
1161
|
+
Link: (props: LinkProps) => HTMLElement;
|
|
1162
|
+
Viewport: (props: ViewportProps) => HTMLElement;
|
|
1163
|
+
};
|
|
1164
|
+
import { ChildValue as ChildValue12 } from "@vertz/ui";
|
|
1165
|
+
interface PopoverClasses {
|
|
1166
|
+
content?: string;
|
|
1167
|
+
}
|
|
1168
|
+
interface SlotProps8 {
|
|
1169
|
+
children?: ChildValue12;
|
|
1170
|
+
className?: string;
|
|
1171
|
+
/** @deprecated Use `className` instead. */
|
|
1172
|
+
class?: string;
|
|
1173
|
+
}
|
|
1174
|
+
interface ComposedPopoverProps {
|
|
1175
|
+
children?: ChildValue12;
|
|
1176
|
+
classes?: PopoverClasses;
|
|
1177
|
+
onOpenChange?: (open: boolean) => void;
|
|
1178
|
+
positioning?: FloatingOptions;
|
|
1179
|
+
}
|
|
1180
|
+
type PopoverClassKey = keyof PopoverClasses;
|
|
1181
|
+
declare const ComposedPopover: ((props: ComposedPopoverProps) => HTMLElement) & {
|
|
1182
|
+
__classKeys?: PopoverClassKey;
|
|
1183
|
+
Trigger: (props: SlotProps8) => HTMLElement;
|
|
1184
|
+
Content: (props: SlotProps8) => HTMLElement;
|
|
1185
|
+
};
|
|
1186
|
+
import { ChildValue as ChildValue13 } from "@vertz/ui";
|
|
1187
|
+
interface ProgressClasses {
|
|
1188
|
+
root?: string;
|
|
1189
|
+
indicator?: string;
|
|
1190
|
+
}
|
|
1191
|
+
type ProgressClassKey = keyof ProgressClasses;
|
|
1192
|
+
interface ComposedProgressProps {
|
|
1193
|
+
children?: ChildValue13;
|
|
1194
|
+
classes?: ProgressClasses;
|
|
1195
|
+
defaultValue?: number;
|
|
1196
|
+
min?: number;
|
|
1197
|
+
max?: number;
|
|
1198
|
+
}
|
|
1199
|
+
declare const ComposedProgress: ((props: ComposedProgressProps) => HTMLElement) & {
|
|
1200
|
+
__classKeys?: ProgressClassKey;
|
|
1201
|
+
};
|
|
1202
|
+
import { ChildValue as ChildValue14 } from "@vertz/ui";
|
|
1203
|
+
interface RadioGroupClasses {
|
|
1204
|
+
root?: string;
|
|
1205
|
+
item?: string;
|
|
1206
|
+
indicator?: string;
|
|
1207
|
+
}
|
|
1208
|
+
type RadioGroupClassKey = keyof RadioGroupClasses;
|
|
1209
|
+
interface RadioGroupItemProps {
|
|
1210
|
+
value: string;
|
|
1211
|
+
disabled?: boolean;
|
|
1212
|
+
children?: ChildValue14;
|
|
1213
|
+
}
|
|
1214
|
+
interface ComposedRadioGroupProps {
|
|
1215
|
+
children?: ChildValue14;
|
|
1216
|
+
classes?: RadioGroupClasses;
|
|
1217
|
+
defaultValue?: string;
|
|
1218
|
+
onValueChange?: (value: string) => void;
|
|
1219
|
+
}
|
|
1220
|
+
declare const ComposedRadioGroup: ((props: ComposedRadioGroupProps) => HTMLElement) & {
|
|
1221
|
+
__classKeys?: RadioGroupClassKey;
|
|
1222
|
+
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
1223
|
+
};
|
|
1224
|
+
import { ChildValue as ChildValue15 } from "@vertz/ui";
|
|
1225
|
+
interface SelectClasses {
|
|
1226
|
+
trigger?: string;
|
|
1227
|
+
content?: string;
|
|
1228
|
+
item?: string;
|
|
1229
|
+
itemIndicator?: string;
|
|
1230
|
+
group?: string;
|
|
1231
|
+
label?: string;
|
|
1232
|
+
separator?: string;
|
|
1233
|
+
}
|
|
1234
|
+
interface SlotProps9 {
|
|
1235
|
+
children?: ChildValue15;
|
|
1236
|
+
className?: string;
|
|
1237
|
+
/** @deprecated Use `className` instead. */
|
|
1238
|
+
class?: string;
|
|
1239
|
+
}
|
|
1240
|
+
interface ItemProps6 extends SlotProps9 {
|
|
1241
|
+
value: string;
|
|
1242
|
+
}
|
|
1243
|
+
interface GroupProps4 extends SlotProps9 {
|
|
1244
|
+
label: string;
|
|
1245
|
+
}
|
|
1246
|
+
interface ComposedSelectProps {
|
|
1247
|
+
children?: ChildValue15;
|
|
1248
|
+
classes?: SelectClasses;
|
|
1249
|
+
defaultValue?: string;
|
|
1250
|
+
placeholder?: string;
|
|
1251
|
+
onValueChange?: (value: string) => void;
|
|
1252
|
+
positioning?: FloatingOptions;
|
|
1253
|
+
}
|
|
1254
|
+
type SelectClassKey = keyof SelectClasses;
|
|
1255
|
+
declare const ComposedSelect: ((props: ComposedSelectProps) => HTMLElement) & {
|
|
1256
|
+
__classKeys?: SelectClassKey;
|
|
1257
|
+
Trigger: (props: SlotProps9) => HTMLElement;
|
|
1258
|
+
Content: (props: SlotProps9) => HTMLElement;
|
|
1259
|
+
Item: (props: ItemProps6) => HTMLElement;
|
|
1260
|
+
Group: (props: GroupProps4) => HTMLElement;
|
|
1261
|
+
Separator: (props: SlotProps9) => HTMLElement;
|
|
1262
|
+
};
|
|
1263
|
+
import { ChildValue as ChildValue16 } from "@vertz/ui";
|
|
1264
|
+
interface SheetClasses {
|
|
1265
|
+
overlay?: string;
|
|
1266
|
+
content?: string;
|
|
1267
|
+
title?: string;
|
|
1268
|
+
description?: string;
|
|
1269
|
+
close?: string;
|
|
1270
|
+
}
|
|
1271
|
+
interface SlotProps10 {
|
|
1272
|
+
children?: ChildValue16;
|
|
1273
|
+
className?: string;
|
|
1274
|
+
/** @deprecated Use `className` instead. */
|
|
1275
|
+
class?: string;
|
|
1276
|
+
}
|
|
1277
|
+
interface ComposedSheetProps {
|
|
1278
|
+
children?: ChildValue16;
|
|
1279
|
+
classes?: SheetClasses;
|
|
1280
|
+
side?: SheetSide;
|
|
1281
|
+
onOpenChange?: (open: boolean) => void;
|
|
1282
|
+
}
|
|
1283
|
+
type SheetClassKey = keyof SheetClasses;
|
|
1284
|
+
declare const ComposedSheet: ((props: ComposedSheetProps) => HTMLElement) & {
|
|
1285
|
+
__classKeys?: SheetClassKey;
|
|
1286
|
+
Trigger: (props: SlotProps10) => HTMLElement;
|
|
1287
|
+
Content: (props: SlotProps10) => HTMLElement;
|
|
1288
|
+
Title: (props: SlotProps10) => HTMLElement;
|
|
1289
|
+
Description: (props: SlotProps10) => HTMLElement;
|
|
1290
|
+
Close: (props: SlotProps10) => HTMLElement;
|
|
1291
|
+
};
|
|
1292
|
+
import { ChildValue as ChildValue17 } from "@vertz/ui";
|
|
1293
|
+
interface SliderClasses {
|
|
1294
|
+
root?: string;
|
|
1295
|
+
track?: string;
|
|
1296
|
+
range?: string;
|
|
1297
|
+
thumb?: string;
|
|
1298
|
+
}
|
|
1299
|
+
type SliderClassKey = keyof SliderClasses;
|
|
1300
|
+
interface ComposedSliderProps {
|
|
1301
|
+
children?: ChildValue17;
|
|
1302
|
+
classes?: SliderClasses;
|
|
1303
|
+
defaultValue?: number;
|
|
1304
|
+
min?: number;
|
|
1305
|
+
max?: number;
|
|
1306
|
+
step?: number;
|
|
1307
|
+
disabled?: boolean;
|
|
1308
|
+
onValueChange?: (value: number) => void;
|
|
1309
|
+
}
|
|
1310
|
+
declare const ComposedSlider: ((props: ComposedSliderProps) => HTMLElement) & {
|
|
1311
|
+
__classKeys?: SliderClassKey;
|
|
1312
|
+
};
|
|
1313
|
+
import { ChildValue as ChildValue18 } from "@vertz/ui";
|
|
1314
|
+
interface SwitchClasses {
|
|
1315
|
+
root?: string;
|
|
1316
|
+
thumb?: string;
|
|
1317
|
+
}
|
|
1318
|
+
type SwitchClassKey = keyof SwitchClasses;
|
|
1319
|
+
interface ComposedSwitchProps {
|
|
1320
|
+
children?: ChildValue18;
|
|
1321
|
+
classes?: SwitchClasses;
|
|
1322
|
+
defaultChecked?: boolean;
|
|
1323
|
+
disabled?: boolean;
|
|
1324
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1325
|
+
}
|
|
1326
|
+
declare const ComposedSwitch: ((props: ComposedSwitchProps) => HTMLElement) & {
|
|
1327
|
+
__classKeys?: SwitchClassKey;
|
|
1328
|
+
};
|
|
1329
|
+
import { ChildValue as ChildValue19 } from "@vertz/ui";
|
|
1330
|
+
interface TabsClasses {
|
|
1331
|
+
list?: string;
|
|
1332
|
+
trigger?: string;
|
|
1333
|
+
panel?: string;
|
|
1334
|
+
}
|
|
1335
|
+
interface SlotProps11 {
|
|
1336
|
+
children?: ChildValue19;
|
|
1337
|
+
className?: string;
|
|
1338
|
+
/** @deprecated Use `className` instead. */
|
|
1339
|
+
class?: string;
|
|
1340
|
+
}
|
|
1341
|
+
interface TriggerProps2 extends SlotProps11 {
|
|
1342
|
+
value: string;
|
|
1343
|
+
}
|
|
1344
|
+
interface ContentProps2 extends SlotProps11 {
|
|
1345
|
+
value: string;
|
|
1346
|
+
}
|
|
1347
|
+
interface ComposedTabsProps {
|
|
1348
|
+
children?: ChildValue19;
|
|
1349
|
+
classes?: TabsClasses;
|
|
1350
|
+
defaultValue?: string;
|
|
1351
|
+
onValueChange?: (value: string) => void;
|
|
1352
|
+
orientation?: "horizontal" | "vertical";
|
|
1353
|
+
}
|
|
1354
|
+
type TabsClassKey = keyof TabsClasses;
|
|
1355
|
+
declare const ComposedTabs: ((props: ComposedTabsProps) => HTMLElement) & {
|
|
1356
|
+
__classKeys?: TabsClassKey;
|
|
1357
|
+
List: (props: SlotProps11) => HTMLElement;
|
|
1358
|
+
Trigger: (props: TriggerProps2) => HTMLElement;
|
|
1359
|
+
Content: (props: ContentProps2) => HTMLElement;
|
|
1360
|
+
};
|
|
1361
|
+
import { ChildValue as ChildValue20 } from "@vertz/ui";
|
|
1362
|
+
interface ToggleClasses {
|
|
1363
|
+
root?: string;
|
|
1364
|
+
}
|
|
1365
|
+
type ToggleClassKey = keyof ToggleClasses;
|
|
1366
|
+
interface ComposedToggleProps {
|
|
1367
|
+
children?: ChildValue20;
|
|
1368
|
+
classes?: ToggleClasses;
|
|
1369
|
+
defaultPressed?: boolean;
|
|
1370
|
+
disabled?: boolean;
|
|
1371
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1372
|
+
}
|
|
1373
|
+
declare const ComposedToggle: ((props: ComposedToggleProps) => HTMLElement) & {
|
|
1374
|
+
__classKeys?: ToggleClassKey;
|
|
1375
|
+
};
|
|
1376
|
+
import { ChildValue as ChildValue21 } from "@vertz/ui";
|
|
1377
|
+
interface TooltipClasses {
|
|
1378
|
+
content?: string;
|
|
1379
|
+
}
|
|
1380
|
+
interface SlotProps12 {
|
|
1381
|
+
children?: ChildValue21;
|
|
1382
|
+
className?: string;
|
|
1383
|
+
/** @deprecated Use `className` instead. */
|
|
1384
|
+
class?: string;
|
|
1385
|
+
}
|
|
1386
|
+
interface ComposedTooltipProps {
|
|
1387
|
+
children?: ChildValue21;
|
|
1388
|
+
classes?: TooltipClasses;
|
|
1389
|
+
delay?: number;
|
|
1390
|
+
positioning?: FloatingOptions;
|
|
1391
|
+
}
|
|
1392
|
+
type TooltipClassKey = keyof TooltipClasses;
|
|
1393
|
+
declare const ComposedTooltip: ((props: ComposedTooltipProps) => HTMLElement) & {
|
|
1394
|
+
__classKeys?: TooltipClassKey;
|
|
1395
|
+
Trigger: (props: SlotProps12) => HTMLElement;
|
|
1396
|
+
Content: (props: SlotProps12) => HTMLElement;
|
|
1397
|
+
};
|
|
1398
|
+
/**
|
|
1399
|
+
* Typed event handler props for interactive themed components.
|
|
1400
|
+
*
|
|
1401
|
+
* Shared across Button, AlertDialog.Action, AlertDialog.Cancel, etc.
|
|
1402
|
+
* Only explicitly listed events are accepted — no arbitrary `on*` string matching.
|
|
1403
|
+
*/
|
|
1404
|
+
interface ElementEventHandlers {
|
|
1405
|
+
onClick?: (event: MouseEvent) => void;
|
|
1406
|
+
onDblClick?: (event: MouseEvent) => void;
|
|
1407
|
+
onMouseDown?: (event: MouseEvent) => void;
|
|
1408
|
+
onMouseUp?: (event: MouseEvent) => void;
|
|
1409
|
+
onMouseEnter?: (event: MouseEvent) => void;
|
|
1410
|
+
onMouseLeave?: (event: MouseEvent) => void;
|
|
1411
|
+
onFocus?: (event: FocusEvent) => void;
|
|
1412
|
+
onBlur?: (event: FocusEvent) => void;
|
|
1413
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
1414
|
+
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1415
|
+
onPointerDown?: (event: PointerEvent) => void;
|
|
1416
|
+
onPointerUp?: (event: PointerEvent) => void;
|
|
1417
|
+
onInput?: (event: InputEvent) => void;
|
|
1418
|
+
onChange?: (event: Event) => void;
|
|
1419
|
+
}
|
|
1420
|
+
export { withStyles, TooltipState, TooltipOptions, TooltipElements, TooltipClasses, Tooltip, ToggleOptions, ToggleGroupState, ToggleGroupOptions, ToggleGroupElements, 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, ScrollArea, ResizablePanelState, ResizablePanelOptions, ResizablePanelElements, 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, HoverCard, FloatingOptions, ElementEventHandlers, ElementAttrs, DropdownMenuState, DropdownMenuOptions, DropdownMenuElements, DropdownMenuClasses, DropdownMenu, DialogState, DialogOptions, DialogElements, DialogClasses, Dialog, DatePickerState, DatePickerOptions, DatePickerElements, DatePicker, ContextMenuState, ContextMenuOptions, ContextMenuElements, ContextMenuClasses, ContextMenu, ComposedTooltipProps, ComposedTooltip, ComposedToggleProps, ComposedToggle, ComposedTabsProps, ComposedTabs, ComposedSwitchProps, ComposedSwitch, ComposedSliderProps, ComposedSlider, ComposedSheetProps, ComposedSheet, ComposedSelectProps, ComposedSelect, ComposedRadioGroupProps, ComposedRadioGroup, ComposedProgressProps, ComposedProgress, ComposedPrimitive, ComposedPopoverProps, ComposedPopover, ComposedNavigationMenuProps, ComposedNavigationMenu, ComposedMenubarProps, ComposedMenubar, ComposedDropdownMenuProps, ComposedDropdownMenu, ComposedDialogProps, ComposedDialog, ComposedContextMenuProps, ComposedContextMenu, ComposedCommandProps, ComposedCommand, ComposedCheckboxProps, ComposedCheckbox, ComposedCarouselProps, ComposedCarousel, ComposedCalendarProps, ComposedCalendar, ComposedAlertDialogProps, ComposedAlertDialog, ComposedAccordionProps, ComposedAccordion, CommandState, CommandOptions, CommandElements, CommandClasses, Command, ComboboxState, ComboboxOptions, ComboboxElements, Combobox, CollapsibleState, CollapsibleOptions, CollapsibleElements, 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 };
|