@vertz/ui-primitives 0.2.23 → 0.2.25
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-pzx0vpq1.js → chunk-00fqgnq1.js} +6 -11
- package/dist/shared/chunk-1dx23qnr.js +232 -0
- package/dist/shared/chunk-1hm0mbke.js +258 -0
- package/dist/shared/{chunk-ww7k2azn.js → chunk-20kwns82.js} +5 -9
- package/dist/shared/chunk-3jack97k.js +509 -0
- package/dist/shared/{chunk-xs6gp369.js → chunk-455p0jbk.js} +3 -7
- package/dist/shared/chunk-4z006v1j.js +467 -0
- package/dist/shared/{chunk-b25npqer.js → chunk-585ysr70.js} +1 -1
- package/dist/shared/chunk-5964gmv0.js +416 -0
- package/dist/shared/chunk-75pegjs7.js +26 -0
- package/dist/shared/{chunk-mr1tb0dp.js → chunk-7a2nqmeh.js} +1 -1
- package/dist/shared/chunk-7wem1bhb.js +252 -0
- package/dist/shared/{chunk-7cb3z0s8.js → chunk-8evj43jn.js} +5 -8
- package/dist/shared/chunk-8t0nm721.js +152 -0
- package/dist/shared/chunk-94twh4s4.js +28 -0
- package/dist/shared/chunk-98y1sw9y.js +398 -0
- package/dist/shared/chunk-9eedsnnk.js +164 -0
- package/dist/shared/{chunk-8c01c8mb.js → chunk-9hv3vc72.js} +0 -2
- package/dist/shared/{chunk-4894pmy6.js → chunk-9ydd4pn3.js} +6 -1
- package/dist/shared/chunk-aa3w85hn.js +321 -0
- package/dist/shared/chunk-axpbdpgx.js +177 -0
- package/dist/shared/chunk-b4zzg457.js +410 -0
- package/dist/shared/chunk-bc2qqkhr.js +194 -0
- package/dist/shared/chunk-brk0drrk.js +202 -0
- package/dist/shared/chunk-czv0kqj4.js +107 -0
- package/dist/shared/chunk-d83ag07h.js +189 -0
- package/dist/shared/{chunk-3kwh27dv.js → chunk-de18ashk.js} +0 -1
- package/dist/shared/{chunk-cgb2j94g.js → chunk-dvk4h36t.js} +0 -1
- package/dist/shared/chunk-e6660g7e.js +179 -0
- package/dist/shared/{chunk-3h1mxp95.js → chunk-eq4d9b0w.js} +0 -1
- package/dist/shared/chunk-ev367pq3.js +102 -0
- package/dist/shared/chunk-fjykbv0v.js +214 -0
- package/dist/shared/chunk-ghkw5bjq.js +55 -0
- package/dist/shared/chunk-gqb1n1hj.js +60 -0
- package/dist/shared/chunk-hfjtkytb.js +310 -0
- package/dist/shared/chunk-hpvjfj0j.js +31 -0
- package/dist/shared/chunk-hxmxvp56.js +67 -0
- package/dist/shared/chunk-j9m2f0rd.js +162 -0
- package/dist/shared/chunk-jpyjk616.js +52 -0
- package/dist/shared/{chunk-ttb2tt03.js → chunk-jsa3byag.js} +1 -1
- package/dist/shared/{chunk-9gfp3ffv.js → chunk-jzy1bkdk.js} +0 -1
- package/dist/shared/{chunk-f2vx4tpw.js → chunk-knzg86am.js} +5 -5
- package/dist/shared/chunk-metxdt5x.js +28 -0
- package/dist/shared/chunk-mhn2aazf.js +353 -0
- package/dist/shared/chunk-mtx2cfbx.js +175 -0
- package/dist/shared/chunk-nsmvdxgp.js +213 -0
- package/dist/shared/{chunk-pn6shbcs.js → chunk-pdzmg245.js} +1 -5
- package/dist/shared/chunk-pzknpa1y.js +327 -0
- package/dist/shared/chunk-q1ff3xp3.js +95 -0
- package/dist/shared/chunk-q7xbcj9q.js +7 -0
- package/dist/shared/{chunk-p0x7hgv6.js → chunk-qhnany7w.js} +0 -2
- package/dist/shared/chunk-qrm43tr3.js +357 -0
- package/dist/shared/{chunk-xa1b96mb.js → chunk-qsp7sfhp.js} +2 -2
- package/dist/shared/{chunk-j902w020.js → chunk-qwqnjjg8.js} +1 -1
- package/dist/shared/{chunk-h3v10x04.js → chunk-r0rz7z03.js} +6 -11
- package/dist/shared/chunk-r3ngaa64.js +418 -0
- package/dist/shared/chunk-r3pffzss.js +13 -0
- package/dist/shared/chunk-rrt62bp0.js +353 -0
- package/dist/shared/chunk-s24gkmna.js +131 -0
- package/dist/shared/chunk-s62e7jf4.js +30 -0
- package/dist/shared/chunk-spng4yb9.js +73 -0
- package/dist/shared/chunk-v0b5pkcq.js +30 -0
- package/dist/shared/chunk-v11kd39k.js +162 -0
- package/dist/shared/{chunk-0mcr52hc.js → chunk-vef3sepw.js} +17 -1
- package/dist/shared/chunk-vkscwzpr.js +294 -0
- package/dist/shared/chunk-vv187snj.js +112 -0
- package/dist/shared/chunk-wqsek87j.js +311 -0
- package/dist/shared/chunk-wtkxz2te.js +157 -0
- package/dist/shared/chunk-y1hpsqzy.js +185 -0
- package/dist/shared/chunk-yfzddvxc.js +71 -0
- package/dist/src/accordion/accordion-composed.d.ts +30 -0
- package/dist/src/accordion/accordion-composed.js +6 -0
- package/dist/src/accordion/accordion.js +1 -1
- package/dist/src/alert/alert-composed.d.ts +26 -0
- package/dist/src/alert/alert-composed.js +6 -0
- package/dist/src/alert-dialog/alert-dialog-composed.d.ts +40 -0
- package/dist/src/alert-dialog/alert-dialog-composed.js +6 -0
- package/dist/src/avatar/avatar-composed.d.ts +33 -0
- package/dist/src/avatar/avatar-composed.js +6 -0
- package/dist/src/badge/badge-composed.d.ts +33 -0
- package/dist/src/badge/badge-composed.js +6 -0
- package/dist/src/breadcrumb/breadcrumb-composed.d.ts +34 -0
- package/dist/src/breadcrumb/breadcrumb-composed.js +6 -0
- package/dist/src/button/button-composed.d.ts +34 -0
- package/dist/src/button/button-composed.js +6 -0
- package/dist/src/calendar/calendar-composed.d.ts +42 -0
- package/dist/src/calendar/calendar-composed.js +6 -0
- package/dist/src/calendar/calendar.js +1 -1
- package/dist/src/card/card-composed.d.ts +34 -0
- package/dist/src/card/card-composed.js +6 -0
- package/dist/src/carousel/carousel-composed.d.ts +32 -0
- package/dist/src/carousel/carousel-composed.js +6 -0
- package/dist/src/carousel/carousel.js +1 -1
- package/dist/src/checkbox/checkbox-composed.d.ts +18 -0
- package/dist/src/checkbox/checkbox-composed.js +6 -0
- package/dist/src/collapsible/collapsible-composed.d.ts +26 -0
- package/dist/src/collapsible/collapsible-composed.js +6 -0
- package/dist/src/combobox/combobox-composed.d.ts +30 -0
- package/dist/src/combobox/combobox-composed.js +6 -0
- package/dist/src/combobox/combobox.js +1 -1
- package/dist/src/command/command-composed.d.ts +67 -0
- package/dist/src/command/command-composed.js +6 -0
- package/dist/src/command/command.js +1 -1
- package/dist/src/composed/with-styles.d.ts +38 -0
- package/dist/src/composed/with-styles.js +6 -0
- package/dist/src/context-menu/context-menu-composed.d.ts +51 -0
- package/dist/src/context-menu/context-menu-composed.js +6 -0
- package/dist/src/context-menu/context-menu.js +1 -1
- package/dist/src/date-picker/date-picker-composed.d.ts +77 -0
- package/dist/src/date-picker/date-picker-composed.js +6 -0
- package/dist/src/date-picker/date-picker.js +1 -1
- package/dist/src/dialog/dialog-composed.d.ts +36 -0
- package/dist/src/dialog/dialog-composed.js +6 -0
- package/dist/src/dialog/dialog-stack-parts.d.ts +16 -0
- package/dist/src/dialog/dialog-stack-parts.js +18 -0
- package/dist/src/dropdown-menu/dropdown-menu-composed.d.ts +51 -0
- package/dist/src/dropdown-menu/dropdown-menu-composed.js +6 -0
- package/dist/src/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/src/empty-state/empty-state-composed.d.ts +30 -0
- package/dist/src/empty-state/empty-state-composed.js +6 -0
- package/dist/src/form-group/form-group-composed.d.ts +24 -0
- package/dist/src/form-group/form-group-composed.js +6 -0
- package/dist/src/hover-card/hover-card-composed.d.ts +38 -0
- package/dist/src/hover-card/hover-card-composed.js +6 -0
- package/dist/src/hover-card/hover-card.js +1 -1
- package/dist/src/index.d.ts +1312 -812
- package/dist/src/index.js +79 -6566
- package/dist/src/input/input-composed.d.ts +35 -0
- package/dist/src/input/input-composed.js +6 -0
- package/dist/src/label/label-composed.d.ts +32 -0
- package/dist/src/label/label-composed.js +6 -0
- package/dist/src/list/list-composed.d.ts +34 -0
- package/dist/src/list/list-composed.js +6 -0
- package/dist/src/menu/menu-composed.d.ts +51 -0
- package/dist/src/menu/menu-composed.js +6 -0
- package/dist/src/menu/menu.js +1 -1
- package/dist/src/menubar/menubar-composed.d.ts +56 -0
- package/dist/src/menubar/menubar-composed.js +6 -0
- package/dist/src/menubar/menubar.js +1 -1
- package/dist/src/navigation-menu/navigation-menu-composed.d.ts +56 -0
- package/dist/src/navigation-menu/navigation-menu-composed.js +6 -0
- package/dist/src/navigation-menu/navigation-menu.js +1 -1
- package/dist/src/pagination/pagination-composed.d.ts +30 -0
- package/dist/src/pagination/pagination-composed.js +6 -0
- package/dist/src/popover/popover-composed.d.ts +36 -0
- package/dist/src/popover/popover-composed.js +6 -0
- package/dist/src/popover/popover.js +1 -1
- package/dist/src/progress/progress-composed.d.ts +17 -0
- package/dist/src/progress/progress-composed.js +6 -0
- package/dist/src/radio/radio-composed.d.ts +24 -0
- package/dist/src/radio/radio-composed.js +6 -0
- package/dist/src/radio/radio.js +1 -1
- package/dist/src/resizable-panel/resizable-panel-composed.d.ts +33 -0
- package/dist/src/resizable-panel/resizable-panel-composed.js +6 -0
- package/dist/src/resizable-panel/resizable-panel.js +1 -1
- package/dist/src/scroll-area/scroll-area-composed.d.ts +17 -0
- package/dist/src/scroll-area/scroll-area-composed.js +6 -0
- package/dist/src/scroll-area/scroll-area.js +1 -1
- package/dist/src/select/select-composed.d.ts +53 -0
- package/dist/src/select/select-composed.js +6 -0
- package/dist/src/select/select.js +1 -1
- package/dist/src/separator/separator-composed.d.ts +32 -0
- package/dist/src/separator/separator-composed.js +6 -0
- package/dist/src/sheet/sheet-composed.d.ts +34 -0
- package/dist/src/sheet/sheet-composed.js +6 -0
- package/dist/src/skeleton/skeleton-composed.d.ts +65 -0
- package/dist/src/skeleton/skeleton-composed.js +6 -0
- package/dist/src/slider/slider-composed.d.ts +22 -0
- package/dist/src/slider/slider-composed.js +6 -0
- package/dist/src/switch/switch-composed.d.ts +17 -0
- package/dist/src/switch/switch-composed.js +6 -0
- package/dist/src/table/table-composed.d.ts +34 -0
- package/dist/src/table/table-composed.js +6 -0
- package/dist/src/tabs/tabs-composed.d.ts +33 -0
- package/dist/src/tabs/tabs-composed.js +6 -0
- package/dist/src/tabs/tabs.js +1 -1
- package/dist/src/textarea/textarea-composed.d.ts +35 -0
- package/dist/src/textarea/textarea-composed.js +6 -0
- package/dist/src/toast/toast.js +1 -1
- package/dist/src/toggle/toggle-composed.d.ts +16 -0
- package/dist/src/toggle/toggle-composed.js +6 -0
- package/dist/src/toggle-group/toggle-group-composed.d.ts +24 -0
- package/dist/src/toggle-group/toggle-group-composed.js +6 -0
- package/dist/src/toggle-group/toggle-group.js +1 -1
- package/dist/src/tooltip/tooltip-composed.d.ts +36 -0
- package/dist/src/tooltip/tooltip-composed.js +6 -0
- package/dist/src/tooltip/tooltip.js +1 -1
- package/dist/src/utils.js +1 -1
- package/package.json +3 -3
- package/dist/shared/chunk-56reyd5r.js +0 -64
- package/dist/shared/chunk-mgr904ap.js +0 -370
package/dist/src/index.d.ts
CHANGED
|
@@ -34,6 +34,60 @@ declare const Accordion: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
+
import { ChildValue } from "@vertz/ui";
|
|
38
|
+
interface AccordionClasses {
|
|
39
|
+
item?: string;
|
|
40
|
+
trigger?: string;
|
|
41
|
+
content?: string;
|
|
42
|
+
}
|
|
43
|
+
interface SlotProps {
|
|
44
|
+
children?: ChildValue;
|
|
45
|
+
className?: string;
|
|
46
|
+
/** @deprecated Use `className` instead. */
|
|
47
|
+
class?: string;
|
|
48
|
+
}
|
|
49
|
+
interface ItemProps extends SlotProps {
|
|
50
|
+
value: string;
|
|
51
|
+
}
|
|
52
|
+
interface ComposedAccordionProps {
|
|
53
|
+
children?: ChildValue;
|
|
54
|
+
classes?: AccordionClasses;
|
|
55
|
+
type?: "single" | "multiple";
|
|
56
|
+
defaultValue?: string[];
|
|
57
|
+
onValueChange?: (value: string[]) => void;
|
|
58
|
+
}
|
|
59
|
+
type AccordionClassKey = keyof AccordionClasses;
|
|
60
|
+
declare const ComposedAccordion: ((props: ComposedAccordionProps) => HTMLElement) & {
|
|
61
|
+
__classKeys?: AccordionClassKey;
|
|
62
|
+
Item: (props: ItemProps) => HTMLElement;
|
|
63
|
+
Trigger: (props: SlotProps) => HTMLElement;
|
|
64
|
+
Content: (props: SlotProps) => HTMLElement;
|
|
65
|
+
};
|
|
66
|
+
import { ChildValue as ChildValue2 } from "@vertz/ui";
|
|
67
|
+
interface AlertClasses {
|
|
68
|
+
root?: string;
|
|
69
|
+
title?: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
}
|
|
72
|
+
type AlertClassKey = keyof AlertClasses;
|
|
73
|
+
interface SlotProps2 {
|
|
74
|
+
children?: ChildValue2;
|
|
75
|
+
className?: string;
|
|
76
|
+
/** @deprecated Use `className` instead. */
|
|
77
|
+
class?: string;
|
|
78
|
+
}
|
|
79
|
+
interface ComposedAlertProps {
|
|
80
|
+
children?: ChildValue2;
|
|
81
|
+
classes?: AlertClasses;
|
|
82
|
+
className?: string;
|
|
83
|
+
/** @deprecated Use `className` instead. */
|
|
84
|
+
class?: string;
|
|
85
|
+
}
|
|
86
|
+
declare const ComposedAlert: ((props: ComposedAlertProps) => HTMLElement) & {
|
|
87
|
+
__classKeys?: AlertClassKey;
|
|
88
|
+
Title: (props: SlotProps2) => HTMLElement;
|
|
89
|
+
Description: (props: SlotProps2) => HTMLElement;
|
|
90
|
+
};
|
|
37
91
|
import { Signal as Signal2 } from "@vertz/ui";
|
|
38
92
|
interface AlertDialogOptions {
|
|
39
93
|
defaultOpen?: boolean;
|
|
@@ -59,6 +113,77 @@ declare const AlertDialog: {
|
|
|
59
113
|
state: AlertDialogState;
|
|
60
114
|
};
|
|
61
115
|
};
|
|
116
|
+
import { ChildValue as ChildValue3 } from "@vertz/ui";
|
|
117
|
+
interface AlertDialogClasses {
|
|
118
|
+
overlay?: string;
|
|
119
|
+
content?: string;
|
|
120
|
+
cancel?: string;
|
|
121
|
+
action?: string;
|
|
122
|
+
header?: string;
|
|
123
|
+
title?: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
footer?: string;
|
|
126
|
+
}
|
|
127
|
+
interface SlotProps3 {
|
|
128
|
+
children?: ChildValue3;
|
|
129
|
+
className?: string;
|
|
130
|
+
/** @deprecated Use `className` instead. */
|
|
131
|
+
class?: string;
|
|
132
|
+
}
|
|
133
|
+
interface ButtonSlotProps extends SlotProps3 {
|
|
134
|
+
onClick?: () => void;
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface ComposedAlertDialogProps {
|
|
138
|
+
children?: ChildValue3;
|
|
139
|
+
classes?: AlertDialogClasses;
|
|
140
|
+
onOpenChange?: (open: boolean) => void;
|
|
141
|
+
onAction?: () => void;
|
|
142
|
+
}
|
|
143
|
+
type AlertDialogClassKey = keyof AlertDialogClasses;
|
|
144
|
+
declare const ComposedAlertDialog: ((props: ComposedAlertDialogProps) => HTMLElement) & {
|
|
145
|
+
__classKeys?: AlertDialogClassKey;
|
|
146
|
+
Trigger: (props: SlotProps3) => HTMLElement;
|
|
147
|
+
Content: (props: SlotProps3) => HTMLElement;
|
|
148
|
+
Title: (props: SlotProps3) => HTMLElement;
|
|
149
|
+
Description: (props: SlotProps3) => HTMLElement;
|
|
150
|
+
Header: (props: SlotProps3) => HTMLElement;
|
|
151
|
+
Footer: (props: SlotProps3) => HTMLElement;
|
|
152
|
+
Cancel: (props: ButtonSlotProps) => HTMLElement;
|
|
153
|
+
Action: (props: ButtonSlotProps) => HTMLElement;
|
|
154
|
+
};
|
|
155
|
+
import { ChildValue as ChildValue4 } from "@vertz/ui";
|
|
156
|
+
interface AvatarClasses {
|
|
157
|
+
root?: string;
|
|
158
|
+
image?: string;
|
|
159
|
+
fallback?: string;
|
|
160
|
+
}
|
|
161
|
+
type AvatarClassKey = keyof AvatarClasses;
|
|
162
|
+
interface SlotProps4 {
|
|
163
|
+
children?: ChildValue4;
|
|
164
|
+
className?: string;
|
|
165
|
+
/** @deprecated Use `className` instead. */
|
|
166
|
+
class?: string;
|
|
167
|
+
}
|
|
168
|
+
interface AvatarImageProps {
|
|
169
|
+
src: string;
|
|
170
|
+
alt: string;
|
|
171
|
+
className?: string;
|
|
172
|
+
/** @deprecated Use `className` instead. */
|
|
173
|
+
class?: string;
|
|
174
|
+
}
|
|
175
|
+
interface ComposedAvatarProps {
|
|
176
|
+
children?: ChildValue4;
|
|
177
|
+
classes?: AvatarClasses;
|
|
178
|
+
className?: string;
|
|
179
|
+
/** @deprecated Use `className` instead. */
|
|
180
|
+
class?: string;
|
|
181
|
+
}
|
|
182
|
+
declare const ComposedAvatar: ((props: ComposedAvatarProps) => HTMLElement) & {
|
|
183
|
+
__classKeys?: AvatarClassKey;
|
|
184
|
+
Image: (props: AvatarImageProps) => HTMLElement;
|
|
185
|
+
Fallback: (props: SlotProps4) => HTMLElement;
|
|
186
|
+
};
|
|
62
187
|
interface BadgeOptions extends ElementAttrs {
|
|
63
188
|
variant?: "default" | "secondary" | "outline" | "destructive";
|
|
64
189
|
}
|
|
@@ -68,6 +193,91 @@ interface BadgeElements {
|
|
|
68
193
|
declare const Badge: {
|
|
69
194
|
Root: (options?: BadgeOptions) => BadgeElements;
|
|
70
195
|
};
|
|
196
|
+
import { ChildValue as ChildValue5 } from "@vertz/ui";
|
|
197
|
+
/**
|
|
198
|
+
* A composed primitive is a callable function with phantom brands
|
|
199
|
+
* that define the valid class keys and element return type for that component.
|
|
200
|
+
*/
|
|
201
|
+
interface ComposedPrimitive<
|
|
202
|
+
K extends string = string,
|
|
203
|
+
E extends Element = HTMLElement
|
|
204
|
+
> {
|
|
205
|
+
(props: {
|
|
206
|
+
children?: ChildValue5;
|
|
207
|
+
classes?: Partial<Record<K, string>>;
|
|
208
|
+
[key: string]: unknown;
|
|
209
|
+
}): E;
|
|
210
|
+
__classKeys?: K;
|
|
211
|
+
__elementType?: E;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Extract the class keys from a composed primitive's phantom brand.
|
|
215
|
+
*/
|
|
216
|
+
type ClassesOf<C> = C extends ComposedPrimitive<infer K> ? Record<K, string> : never;
|
|
217
|
+
/**
|
|
218
|
+
* Extract the element return type from a composed primitive's phantom brand.
|
|
219
|
+
*/
|
|
220
|
+
type ElementOf<C> = C extends ComposedPrimitive<string, infer E> ? E : HTMLElement;
|
|
221
|
+
/**
|
|
222
|
+
* Return type of withStyles: a callable that accepts all props except `classes`,
|
|
223
|
+
* plus all sub-component properties from the original component.
|
|
224
|
+
* Preserves the element return type from the underlying composed primitive.
|
|
225
|
+
*/
|
|
226
|
+
type StyledPrimitive<C extends ComposedPrimitive> = ((props: Omit<Parameters<C>[0], "classes">) => ElementOf<C>) & Omit<C, "__classKeys" | "__elementType" | keyof CallableFunction>;
|
|
227
|
+
/**
|
|
228
|
+
* Pre-bind CSS classes onto a composed primitive.
|
|
229
|
+
* Returns a new function that accepts all props except `classes`,
|
|
230
|
+
* with all sub-component properties preserved.
|
|
231
|
+
*/
|
|
232
|
+
declare function withStyles<C extends ComposedPrimitive>(component: C, classes: ClassesOf<C>): StyledPrimitive<C>;
|
|
233
|
+
import { ChildValue as ChildValue6 } from "@vertz/ui";
|
|
234
|
+
interface BadgeClasses {
|
|
235
|
+
base?: string;
|
|
236
|
+
}
|
|
237
|
+
type BadgeClassKey = keyof BadgeClasses;
|
|
238
|
+
interface ComposedBadgeProps {
|
|
239
|
+
classes?: BadgeClasses;
|
|
240
|
+
className?: string;
|
|
241
|
+
/** @deprecated Use `className` instead. */
|
|
242
|
+
class?: string;
|
|
243
|
+
children?: ChildValue6;
|
|
244
|
+
style?: Record<string, string | number>;
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
}
|
|
247
|
+
declare const ComposedBadge: ComposedPrimitive<BadgeClassKey, HTMLElement>;
|
|
248
|
+
import { ChildValue as ChildValue7 } from "@vertz/ui";
|
|
249
|
+
interface BreadcrumbClasses {
|
|
250
|
+
nav?: string;
|
|
251
|
+
list?: string;
|
|
252
|
+
item?: string;
|
|
253
|
+
link?: string;
|
|
254
|
+
page?: string;
|
|
255
|
+
separator?: string;
|
|
256
|
+
}
|
|
257
|
+
type BreadcrumbClassKey = keyof BreadcrumbClasses;
|
|
258
|
+
interface BreadcrumbItemProps {
|
|
259
|
+
children?: string | Node | (() => string | Node);
|
|
260
|
+
/** Target path — renders as Link (SPA navigation). Omit for non-linked items. */
|
|
261
|
+
href?: string;
|
|
262
|
+
/** Marks this item as the current page (aria-current="page", no link). */
|
|
263
|
+
current?: boolean;
|
|
264
|
+
className?: string;
|
|
265
|
+
/** @deprecated Use `className` instead. */
|
|
266
|
+
class?: string;
|
|
267
|
+
}
|
|
268
|
+
interface ComposedBreadcrumbProps {
|
|
269
|
+
children?: ChildValue7;
|
|
270
|
+
/** Separator character between items. Default: "/" */
|
|
271
|
+
separator?: string;
|
|
272
|
+
classes?: BreadcrumbClasses;
|
|
273
|
+
className?: string;
|
|
274
|
+
/** @deprecated Use `className` instead. */
|
|
275
|
+
class?: string;
|
|
276
|
+
}
|
|
277
|
+
declare const ComposedBreadcrumb: ((props: ComposedBreadcrumbProps) => HTMLElement) & {
|
|
278
|
+
__classKeys?: BreadcrumbClassKey;
|
|
279
|
+
Item: (props: BreadcrumbItemProps) => HTMLElement;
|
|
280
|
+
};
|
|
71
281
|
interface ButtonOptions extends ElementAttrs {
|
|
72
282
|
disabled?: boolean;
|
|
73
283
|
onClick?: () => void;
|
|
@@ -75,6 +285,22 @@ interface ButtonOptions extends ElementAttrs {
|
|
|
75
285
|
declare const Button: {
|
|
76
286
|
Root: (options?: ButtonOptions) => HTMLButtonElement;
|
|
77
287
|
};
|
|
288
|
+
import { ChildValue as ChildValue8 } from "@vertz/ui";
|
|
289
|
+
interface ButtonClasses {
|
|
290
|
+
base?: string;
|
|
291
|
+
}
|
|
292
|
+
type ButtonClassKey = keyof ButtonClasses;
|
|
293
|
+
interface ComposedButtonProps {
|
|
294
|
+
classes?: ButtonClasses;
|
|
295
|
+
className?: string;
|
|
296
|
+
/** @deprecated Use `className` instead. */
|
|
297
|
+
class?: string;
|
|
298
|
+
children?: ChildValue8;
|
|
299
|
+
disabled?: boolean;
|
|
300
|
+
type?: "button" | "submit" | "reset";
|
|
301
|
+
[key: string]: unknown;
|
|
302
|
+
}
|
|
303
|
+
declare const ComposedButton: ComposedPrimitive<ButtonClassKey, HTMLElement>;
|
|
78
304
|
import { Signal as Signal3 } from "@vertz/ui";
|
|
79
305
|
interface CalendarOptions extends ElementAttrs {
|
|
80
306
|
mode?: "single" | "range" | "multiple";
|
|
@@ -115,6 +341,80 @@ declare const Calendar: {
|
|
|
115
341
|
destroy: () => void;
|
|
116
342
|
};
|
|
117
343
|
};
|
|
344
|
+
interface CalendarClasses {
|
|
345
|
+
root?: string;
|
|
346
|
+
header?: string;
|
|
347
|
+
title?: string;
|
|
348
|
+
navButton?: string;
|
|
349
|
+
grid?: string;
|
|
350
|
+
headCell?: string;
|
|
351
|
+
cell?: string;
|
|
352
|
+
dayButton?: string;
|
|
353
|
+
monthSelect?: string;
|
|
354
|
+
yearSelect?: string;
|
|
355
|
+
}
|
|
356
|
+
type CalendarClassKey = keyof CalendarClasses;
|
|
357
|
+
interface ComposedCalendarProps {
|
|
358
|
+
classes?: CalendarClasses;
|
|
359
|
+
mode?: "single" | "range" | "multiple";
|
|
360
|
+
defaultValue?: Date | Date[] | {
|
|
361
|
+
from: Date;
|
|
362
|
+
to: Date;
|
|
363
|
+
};
|
|
364
|
+
defaultMonth?: Date;
|
|
365
|
+
minDate?: Date;
|
|
366
|
+
maxDate?: Date;
|
|
367
|
+
disabled?: (date: Date) => boolean;
|
|
368
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
369
|
+
onValueChange?: (value: Date | Date[] | {
|
|
370
|
+
from: Date;
|
|
371
|
+
to: Date;
|
|
372
|
+
} | null) => void;
|
|
373
|
+
onMonthChange?: (month: Date) => void;
|
|
374
|
+
/**
|
|
375
|
+
* Controls how the calendar header navigation is rendered.
|
|
376
|
+
* - 'buttons' (default): prev/next arrow buttons only
|
|
377
|
+
* - 'dropdown': month + year <select> elements, no arrow buttons
|
|
378
|
+
* - 'dropdown-buttons': month + year <select> elements AND arrow buttons
|
|
379
|
+
*/
|
|
380
|
+
captionLayout?: "buttons" | "dropdown" | "dropdown-buttons";
|
|
381
|
+
}
|
|
382
|
+
declare const ComposedCalendar: ((props: ComposedCalendarProps) => HTMLElement) & {
|
|
383
|
+
__classKeys?: CalendarClassKey;
|
|
384
|
+
};
|
|
385
|
+
import { ChildValue as ChildValue9 } from "@vertz/ui";
|
|
386
|
+
interface CardClasses {
|
|
387
|
+
root?: string;
|
|
388
|
+
header?: string;
|
|
389
|
+
title?: string;
|
|
390
|
+
description?: string;
|
|
391
|
+
content?: string;
|
|
392
|
+
footer?: string;
|
|
393
|
+
action?: string;
|
|
394
|
+
}
|
|
395
|
+
type CardClassKey = keyof CardClasses;
|
|
396
|
+
interface SlotProps5 {
|
|
397
|
+
children?: ChildValue9;
|
|
398
|
+
className?: string;
|
|
399
|
+
/** @deprecated Use `className` instead. */
|
|
400
|
+
class?: string;
|
|
401
|
+
}
|
|
402
|
+
interface ComposedCardProps {
|
|
403
|
+
children?: ChildValue9;
|
|
404
|
+
classes?: CardClasses;
|
|
405
|
+
className?: string;
|
|
406
|
+
/** @deprecated Use `className` instead. */
|
|
407
|
+
class?: string;
|
|
408
|
+
}
|
|
409
|
+
declare const ComposedCard: ((props: ComposedCardProps) => HTMLElement) & {
|
|
410
|
+
__classKeys?: CardClassKey;
|
|
411
|
+
Header: (props: SlotProps5) => HTMLElement;
|
|
412
|
+
Title: (props: SlotProps5) => HTMLElement;
|
|
413
|
+
Description: (props: SlotProps5) => HTMLElement;
|
|
414
|
+
Content: (props: SlotProps5) => HTMLElement;
|
|
415
|
+
Footer: (props: SlotProps5) => HTMLElement;
|
|
416
|
+
Action: (props: SlotProps5) => HTMLElement;
|
|
417
|
+
};
|
|
118
418
|
import { Signal as Signal4 } from "@vertz/ui";
|
|
119
419
|
interface CarouselOptions extends ElementAttrs {
|
|
120
420
|
orientation?: "horizontal" | "vertical";
|
|
@@ -141,6 +441,37 @@ declare const Carousel: {
|
|
|
141
441
|
goPrev: () => void;
|
|
142
442
|
};
|
|
143
443
|
};
|
|
444
|
+
import { ChildValue as ChildValue10 } from "@vertz/ui";
|
|
445
|
+
interface CarouselClasses {
|
|
446
|
+
root?: string;
|
|
447
|
+
viewport?: string;
|
|
448
|
+
slide?: string;
|
|
449
|
+
prevButton?: string;
|
|
450
|
+
nextButton?: string;
|
|
451
|
+
}
|
|
452
|
+
interface SlideProps {
|
|
453
|
+
children?: ChildValue10;
|
|
454
|
+
className?: string;
|
|
455
|
+
class?: string;
|
|
456
|
+
}
|
|
457
|
+
interface SlotProps6 {
|
|
458
|
+
children?: ChildValue10;
|
|
459
|
+
}
|
|
460
|
+
interface ComposedCarouselProps {
|
|
461
|
+
children?: ChildValue10;
|
|
462
|
+
classes?: CarouselClasses;
|
|
463
|
+
orientation?: "horizontal" | "vertical";
|
|
464
|
+
loop?: boolean;
|
|
465
|
+
defaultIndex?: number;
|
|
466
|
+
onSlideChange?: (index: number) => void;
|
|
467
|
+
}
|
|
468
|
+
type CarouselClassKey = keyof CarouselClasses;
|
|
469
|
+
declare const ComposedCarousel: ((props: ComposedCarouselProps) => HTMLElement) & {
|
|
470
|
+
__classKeys?: CarouselClassKey;
|
|
471
|
+
Slide: (props: SlideProps) => HTMLElement;
|
|
472
|
+
Previous: (props: SlotProps6) => HTMLElement;
|
|
473
|
+
Next: (props: SlotProps6) => HTMLElement;
|
|
474
|
+
};
|
|
144
475
|
type CheckedState = boolean | "mixed";
|
|
145
476
|
interface CheckboxOptions extends ElementAttrs {
|
|
146
477
|
defaultChecked?: CheckedState;
|
|
@@ -150,13 +481,29 @@ interface CheckboxOptions extends ElementAttrs {
|
|
|
150
481
|
declare const Checkbox: {
|
|
151
482
|
Root: (options?: CheckboxOptions) => HTMLButtonElement;
|
|
152
483
|
};
|
|
153
|
-
import {
|
|
154
|
-
interface
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
onOpenChange?: (open: boolean) => void;
|
|
484
|
+
import { ChildValue as ChildValue11 } from "@vertz/ui";
|
|
485
|
+
interface CheckboxClasses {
|
|
486
|
+
root?: string;
|
|
487
|
+
indicator?: string;
|
|
158
488
|
}
|
|
159
|
-
|
|
489
|
+
type CheckboxClassKey = keyof CheckboxClasses;
|
|
490
|
+
interface ComposedCheckboxProps {
|
|
491
|
+
children?: ChildValue11;
|
|
492
|
+
classes?: CheckboxClasses;
|
|
493
|
+
defaultChecked?: CheckedState;
|
|
494
|
+
disabled?: boolean;
|
|
495
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
496
|
+
}
|
|
497
|
+
declare const ComposedCheckbox: ((props: ComposedCheckboxProps) => HTMLElement) & {
|
|
498
|
+
__classKeys?: CheckboxClassKey;
|
|
499
|
+
};
|
|
500
|
+
import { Signal as Signal5 } from "@vertz/ui";
|
|
501
|
+
interface CollapsibleOptions extends ElementAttrs {
|
|
502
|
+
defaultOpen?: boolean;
|
|
503
|
+
disabled?: boolean;
|
|
504
|
+
onOpenChange?: (open: boolean) => void;
|
|
505
|
+
}
|
|
506
|
+
interface CollapsibleState {
|
|
160
507
|
open: Signal5<boolean>;
|
|
161
508
|
disabled: Signal5<boolean>;
|
|
162
509
|
}
|
|
@@ -170,6 +517,31 @@ declare const Collapsible: {
|
|
|
170
517
|
state: CollapsibleState;
|
|
171
518
|
};
|
|
172
519
|
};
|
|
520
|
+
import { ChildValue as ChildValue12 } from "@vertz/ui";
|
|
521
|
+
interface CollapsibleClasses {
|
|
522
|
+
root?: string;
|
|
523
|
+
trigger?: string;
|
|
524
|
+
content?: string;
|
|
525
|
+
}
|
|
526
|
+
type CollapsibleClassKey = keyof CollapsibleClasses;
|
|
527
|
+
interface SlotProps7 {
|
|
528
|
+
children?: ChildValue12;
|
|
529
|
+
className?: string;
|
|
530
|
+
/** @deprecated Use `className` instead. */
|
|
531
|
+
class?: string;
|
|
532
|
+
}
|
|
533
|
+
interface ComposedCollapsibleProps {
|
|
534
|
+
children?: ChildValue12;
|
|
535
|
+
classes?: CollapsibleClasses;
|
|
536
|
+
defaultOpen?: boolean;
|
|
537
|
+
disabled?: boolean;
|
|
538
|
+
onOpenChange?: (open: boolean) => void;
|
|
539
|
+
}
|
|
540
|
+
declare const ComposedCollapsible: ((props: ComposedCollapsibleProps) => HTMLElement) & {
|
|
541
|
+
__classKeys?: CollapsibleClassKey;
|
|
542
|
+
Trigger: (props: SlotProps7) => HTMLElement;
|
|
543
|
+
Content: (props: SlotProps7) => HTMLElement;
|
|
544
|
+
};
|
|
173
545
|
import { Signal as Signal6 } from "@vertz/ui";
|
|
174
546
|
interface ComboboxOptions extends ElementAttrs {
|
|
175
547
|
defaultValue?: string;
|
|
@@ -192,6 +564,35 @@ declare const Combobox: {
|
|
|
192
564
|
Option: (value: string, label?: string) => HTMLDivElement;
|
|
193
565
|
};
|
|
194
566
|
};
|
|
567
|
+
import { ChildValue as ChildValue13 } from "@vertz/ui";
|
|
568
|
+
interface ComboboxClasses {
|
|
569
|
+
input?: string;
|
|
570
|
+
content?: string;
|
|
571
|
+
option?: string;
|
|
572
|
+
}
|
|
573
|
+
interface SlotProps8 {
|
|
574
|
+
children?: ChildValue13;
|
|
575
|
+
className?: string;
|
|
576
|
+
/** @deprecated Use `className` instead. */
|
|
577
|
+
class?: string;
|
|
578
|
+
}
|
|
579
|
+
interface OptionProps extends SlotProps8 {
|
|
580
|
+
value: string;
|
|
581
|
+
}
|
|
582
|
+
interface ComposedComboboxProps {
|
|
583
|
+
children?: ChildValue13;
|
|
584
|
+
classes?: ComboboxClasses;
|
|
585
|
+
defaultValue?: string;
|
|
586
|
+
onValueChange?: (value: string) => void;
|
|
587
|
+
onInputChange?: (input: string) => void;
|
|
588
|
+
}
|
|
589
|
+
type ComboboxClassKey = keyof ComboboxClasses;
|
|
590
|
+
declare const ComposedCombobox: ((props: ComposedComboboxProps) => HTMLElement) & {
|
|
591
|
+
__classKeys?: ComboboxClassKey;
|
|
592
|
+
Input: (props: SlotProps8) => HTMLElement;
|
|
593
|
+
Content: (props: SlotProps8) => HTMLElement;
|
|
594
|
+
Option: (props: OptionProps) => HTMLElement;
|
|
595
|
+
};
|
|
195
596
|
import { Signal as Signal7 } from "@vertz/ui";
|
|
196
597
|
interface CommandOptions extends ElementAttrs {
|
|
197
598
|
filter?: (value: string, search: string) => boolean;
|
|
@@ -220,6 +621,72 @@ declare const Command: {
|
|
|
220
621
|
Separator: () => HTMLHRElement;
|
|
221
622
|
};
|
|
222
623
|
};
|
|
624
|
+
import { ChildValue as ChildValue14 } from "@vertz/ui";
|
|
625
|
+
interface CommandClasses {
|
|
626
|
+
root?: string;
|
|
627
|
+
input?: string;
|
|
628
|
+
list?: string;
|
|
629
|
+
item?: string;
|
|
630
|
+
group?: string;
|
|
631
|
+
groupHeading?: string;
|
|
632
|
+
separator?: string;
|
|
633
|
+
empty?: string;
|
|
634
|
+
}
|
|
635
|
+
interface CommandInputProps {
|
|
636
|
+
className?: string;
|
|
637
|
+
/** @deprecated Use `className` instead. */
|
|
638
|
+
class?: string;
|
|
639
|
+
}
|
|
640
|
+
interface CommandListProps {
|
|
641
|
+
children?: ChildValue14;
|
|
642
|
+
className?: string;
|
|
643
|
+
/** @deprecated Use `className` instead. */
|
|
644
|
+
class?: string;
|
|
645
|
+
}
|
|
646
|
+
interface CommandEmptyProps {
|
|
647
|
+
children?: ChildValue14;
|
|
648
|
+
className?: string;
|
|
649
|
+
/** @deprecated Use `className` instead. */
|
|
650
|
+
class?: string;
|
|
651
|
+
}
|
|
652
|
+
interface CommandItemProps {
|
|
653
|
+
value: string;
|
|
654
|
+
children?: ChildValue14;
|
|
655
|
+
keywords?: string[];
|
|
656
|
+
className?: string;
|
|
657
|
+
/** @deprecated Use `className` instead. */
|
|
658
|
+
class?: string;
|
|
659
|
+
}
|
|
660
|
+
interface CommandGroupProps {
|
|
661
|
+
label: string;
|
|
662
|
+
children?: ChildValue14;
|
|
663
|
+
className?: string;
|
|
664
|
+
/** @deprecated Use `className` instead. */
|
|
665
|
+
class?: string;
|
|
666
|
+
}
|
|
667
|
+
interface CommandSeparatorProps {
|
|
668
|
+
className?: string;
|
|
669
|
+
/** @deprecated Use `className` instead. */
|
|
670
|
+
class?: string;
|
|
671
|
+
}
|
|
672
|
+
interface ComposedCommandProps {
|
|
673
|
+
children?: ChildValue14;
|
|
674
|
+
classes?: CommandClasses;
|
|
675
|
+
filter?: (value: string, search: string) => boolean;
|
|
676
|
+
onSelect?: (value: string) => void;
|
|
677
|
+
onInputChange?: (value: string) => void;
|
|
678
|
+
placeholder?: string;
|
|
679
|
+
}
|
|
680
|
+
type CommandClassKey = keyof CommandClasses;
|
|
681
|
+
declare const ComposedCommand: ((props: ComposedCommandProps) => HTMLElement) & {
|
|
682
|
+
__classKeys?: CommandClassKey;
|
|
683
|
+
Input: (props: CommandInputProps) => HTMLElement;
|
|
684
|
+
List: (props: CommandListProps) => HTMLElement;
|
|
685
|
+
Empty: (props: CommandEmptyProps) => HTMLElement;
|
|
686
|
+
Item: (props: CommandItemProps) => HTMLElement;
|
|
687
|
+
Group: (props: CommandGroupProps) => HTMLElement;
|
|
688
|
+
Separator: (props: CommandSeparatorProps) => HTMLElement;
|
|
689
|
+
};
|
|
223
690
|
import { Signal as Signal8 } from "@vertz/ui";
|
|
224
691
|
import { Middleware, Placement, Strategy } from "@floating-ui/dom";
|
|
225
692
|
interface FloatingOptions {
|
|
@@ -258,6 +725,43 @@ declare const ContextMenu: {
|
|
|
258
725
|
Label: (text: string) => HTMLDivElement;
|
|
259
726
|
};
|
|
260
727
|
};
|
|
728
|
+
import { ChildValue as ChildValue15 } from "@vertz/ui";
|
|
729
|
+
interface ContextMenuClasses {
|
|
730
|
+
content?: string;
|
|
731
|
+
item?: string;
|
|
732
|
+
group?: string;
|
|
733
|
+
label?: string;
|
|
734
|
+
separator?: string;
|
|
735
|
+
}
|
|
736
|
+
interface SlotProps9 {
|
|
737
|
+
children?: ChildValue15;
|
|
738
|
+
className?: string;
|
|
739
|
+
/** @deprecated Use `className` instead. */
|
|
740
|
+
class?: string;
|
|
741
|
+
}
|
|
742
|
+
interface ItemProps2 extends SlotProps9 {
|
|
743
|
+
value: string;
|
|
744
|
+
}
|
|
745
|
+
interface GroupProps extends SlotProps9 {
|
|
746
|
+
label: string;
|
|
747
|
+
}
|
|
748
|
+
interface ComposedContextMenuProps {
|
|
749
|
+
children?: ChildValue15;
|
|
750
|
+
classes?: ContextMenuClasses;
|
|
751
|
+
onSelect?: (value: string) => void;
|
|
752
|
+
onOpenChange?: (open: boolean) => void;
|
|
753
|
+
positioning?: FloatingOptions;
|
|
754
|
+
}
|
|
755
|
+
type ContextMenuClassKey = keyof ContextMenuClasses;
|
|
756
|
+
declare const ComposedContextMenu: ((props: ComposedContextMenuProps) => HTMLElement) & {
|
|
757
|
+
__classKeys?: ContextMenuClassKey;
|
|
758
|
+
Trigger: (props: SlotProps9) => HTMLElement;
|
|
759
|
+
Content: (props: SlotProps9) => HTMLElement;
|
|
760
|
+
Item: (props: ItemProps2) => HTMLElement;
|
|
761
|
+
Group: (props: GroupProps) => HTMLElement;
|
|
762
|
+
Label: (props: SlotProps9) => HTMLElement;
|
|
763
|
+
Separator: (props: SlotProps9) => HTMLElement;
|
|
764
|
+
};
|
|
261
765
|
import { Signal as Signal9 } from "@vertz/ui";
|
|
262
766
|
interface DatePickerOptions {
|
|
263
767
|
mode?: "single" | "range";
|
|
@@ -304,6 +808,45 @@ declare const DatePicker: {
|
|
|
304
808
|
hide: () => void;
|
|
305
809
|
};
|
|
306
810
|
};
|
|
811
|
+
import { ChildValue as ChildValue16 } from "@vertz/ui";
|
|
812
|
+
interface DatePickerClasses {
|
|
813
|
+
trigger?: string;
|
|
814
|
+
content?: string;
|
|
815
|
+
calendar?: CalendarClasses;
|
|
816
|
+
}
|
|
817
|
+
type DatePickerClassKey = keyof DatePickerClasses;
|
|
818
|
+
interface SlotProps10 {
|
|
819
|
+
children?: ChildValue16;
|
|
820
|
+
className?: string;
|
|
821
|
+
/** @deprecated Use `className` instead. */
|
|
822
|
+
class?: string;
|
|
823
|
+
}
|
|
824
|
+
interface ComposedDatePickerProps {
|
|
825
|
+
children?: ChildValue16;
|
|
826
|
+
classes?: DatePickerClasses;
|
|
827
|
+
mode?: "single" | "range";
|
|
828
|
+
defaultValue?: Date | {
|
|
829
|
+
from: Date;
|
|
830
|
+
to: Date;
|
|
831
|
+
};
|
|
832
|
+
defaultMonth?: Date;
|
|
833
|
+
minDate?: Date;
|
|
834
|
+
maxDate?: Date;
|
|
835
|
+
disabled?: (date: Date) => boolean;
|
|
836
|
+
formatDate?: (date: Date) => string;
|
|
837
|
+
placeholder?: string;
|
|
838
|
+
onValueChange?: (value: Date | {
|
|
839
|
+
from: Date;
|
|
840
|
+
to: Date;
|
|
841
|
+
} | null) => void;
|
|
842
|
+
onOpenChange?: (open: boolean) => void;
|
|
843
|
+
captionLayout?: ComposedCalendarProps["captionLayout"];
|
|
844
|
+
}
|
|
845
|
+
declare const ComposedDatePicker: ((props: ComposedDatePickerProps) => HTMLElement) & {
|
|
846
|
+
__classKeys?: DatePickerClassKey;
|
|
847
|
+
Trigger: (props: SlotProps10) => HTMLElement;
|
|
848
|
+
Content: (props: SlotProps10) => HTMLElement;
|
|
849
|
+
};
|
|
307
850
|
import { Signal as Signal10 } from "@vertz/ui";
|
|
308
851
|
interface DialogOptions extends ElementAttrs {
|
|
309
852
|
modal?: boolean;
|
|
@@ -328,6 +871,56 @@ declare const Dialog: {
|
|
|
328
871
|
state: DialogState;
|
|
329
872
|
};
|
|
330
873
|
};
|
|
874
|
+
import { ChildValue as ChildValue17 } from "@vertz/ui";
|
|
875
|
+
interface DialogClasses {
|
|
876
|
+
overlay?: string;
|
|
877
|
+
content?: string;
|
|
878
|
+
close?: string;
|
|
879
|
+
header?: string;
|
|
880
|
+
title?: string;
|
|
881
|
+
description?: string;
|
|
882
|
+
footer?: string;
|
|
883
|
+
}
|
|
884
|
+
interface SlotProps11 {
|
|
885
|
+
children?: ChildValue17;
|
|
886
|
+
className?: string;
|
|
887
|
+
/** @deprecated Use `className` instead. */
|
|
888
|
+
class?: string;
|
|
889
|
+
}
|
|
890
|
+
interface DialogContentProps extends SlotProps11 {
|
|
891
|
+
showClose?: boolean;
|
|
892
|
+
}
|
|
893
|
+
interface ComposedDialogProps {
|
|
894
|
+
children?: ChildValue17;
|
|
895
|
+
classes?: DialogClasses;
|
|
896
|
+
onOpenChange?: (open: boolean) => void;
|
|
897
|
+
}
|
|
898
|
+
type DialogClassKey = keyof DialogClasses;
|
|
899
|
+
declare const ComposedDialog: ((props: ComposedDialogProps) => HTMLElement) & {
|
|
900
|
+
__classKeys?: DialogClassKey;
|
|
901
|
+
Trigger: (props: SlotProps11) => HTMLElement;
|
|
902
|
+
Content: (props: DialogContentProps) => HTMLElement;
|
|
903
|
+
Title: (props: SlotProps11) => HTMLElement;
|
|
904
|
+
Description: (props: SlotProps11) => HTMLElement;
|
|
905
|
+
Header: (props: SlotProps11) => HTMLElement;
|
|
906
|
+
Footer: (props: SlotProps11) => HTMLElement;
|
|
907
|
+
Close: (props: SlotProps11) => HTMLElement;
|
|
908
|
+
};
|
|
909
|
+
import { ChildValue as ChildValue18 } from "@vertz/ui";
|
|
910
|
+
import { JSX } from "@vertz/ui/jsx-runtime";
|
|
911
|
+
interface SlotProps12 {
|
|
912
|
+
children?: ChildValue18;
|
|
913
|
+
className?: string;
|
|
914
|
+
/** @deprecated Use `className` instead. */
|
|
915
|
+
class?: string;
|
|
916
|
+
}
|
|
917
|
+
declare function StackDialogTitle({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
918
|
+
declare function StackDialogDescription({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
919
|
+
declare function StackDialogHeader({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
920
|
+
declare function StackDialogFooter({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
921
|
+
declare function StackDialogBody({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
922
|
+
declare function StackDialogCancel({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
923
|
+
declare function StackDialogClose({ children, className: cls, class: classProp }: SlotProps12): JSX.Element;
|
|
331
924
|
import { Signal as Signal11 } from "@vertz/ui";
|
|
332
925
|
interface MenuOptions extends ElementAttrs {
|
|
333
926
|
onSelect?: (value: string) => void;
|
|
@@ -369,802 +962,266 @@ declare const DropdownMenu: {
|
|
|
369
962
|
Label: (text: string) => HTMLDivElement;
|
|
370
963
|
};
|
|
371
964
|
};
|
|
372
|
-
import {
|
|
373
|
-
interface
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
965
|
+
import { ChildValue as ChildValue19 } from "@vertz/ui";
|
|
966
|
+
interface DropdownMenuClasses {
|
|
967
|
+
content?: string;
|
|
968
|
+
item?: string;
|
|
969
|
+
group?: string;
|
|
970
|
+
label?: string;
|
|
971
|
+
separator?: string;
|
|
378
972
|
}
|
|
379
|
-
interface
|
|
380
|
-
|
|
973
|
+
interface SlotProps13 {
|
|
974
|
+
children?: ChildValue19;
|
|
975
|
+
className?: string;
|
|
976
|
+
/** @deprecated Use `className` instead. */
|
|
977
|
+
class?: string;
|
|
381
978
|
}
|
|
382
|
-
interface
|
|
383
|
-
|
|
384
|
-
content: HTMLDivElement;
|
|
385
|
-
}
|
|
386
|
-
declare const HoverCard: {
|
|
387
|
-
Root: (options?: HoverCardOptions) => HoverCardElements & {
|
|
388
|
-
state: HoverCardState;
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
import { Signal as Signal13 } from "@vertz/ui";
|
|
392
|
-
interface MenubarOptions extends ElementAttrs {
|
|
393
|
-
onSelect?: (value: string) => void;
|
|
394
|
-
positioning?: FloatingOptions;
|
|
395
|
-
}
|
|
396
|
-
interface MenubarState {
|
|
397
|
-
activeMenu: Signal13<string | null>;
|
|
398
|
-
}
|
|
399
|
-
interface MenubarElements {
|
|
400
|
-
root: HTMLDivElement;
|
|
401
|
-
}
|
|
402
|
-
declare const Menubar: {
|
|
403
|
-
Root: (options?: MenubarOptions) => MenubarElements & {
|
|
404
|
-
state: MenubarState;
|
|
405
|
-
Menu: (value: string, label?: string) => {
|
|
406
|
-
trigger: HTMLButtonElement;
|
|
407
|
-
content: HTMLDivElement;
|
|
408
|
-
Item: (value: string, label?: string) => HTMLDivElement;
|
|
409
|
-
Group: (label: string) => {
|
|
410
|
-
el: HTMLDivElement;
|
|
411
|
-
Item: (value: string, label?: string) => HTMLDivElement;
|
|
412
|
-
};
|
|
413
|
-
Separator: () => HTMLHRElement;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
import { Signal as Signal14 } from "@vertz/ui";
|
|
418
|
-
interface NavigationMenuOptions extends ElementAttrs {
|
|
419
|
-
orientation?: "horizontal" | "vertical";
|
|
420
|
-
delayOpen?: number;
|
|
421
|
-
delayClose?: number;
|
|
422
|
-
}
|
|
423
|
-
interface NavigationMenuState {
|
|
424
|
-
activeItem: Signal14<string | null>;
|
|
425
|
-
}
|
|
426
|
-
interface NavigationMenuElements {
|
|
427
|
-
root: HTMLElement;
|
|
428
|
-
list: HTMLElement;
|
|
429
|
-
viewport: HTMLElement;
|
|
430
|
-
}
|
|
431
|
-
declare const NavigationMenu: {
|
|
432
|
-
Root: (options?: NavigationMenuOptions) => NavigationMenuElements & {
|
|
433
|
-
state: NavigationMenuState;
|
|
434
|
-
Item: (value: string, label?: string) => {
|
|
435
|
-
trigger: HTMLElement;
|
|
436
|
-
content: HTMLElement;
|
|
437
|
-
};
|
|
438
|
-
Link: (href: string, label: string) => HTMLElement;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
import { Signal as Signal15 } from "@vertz/ui";
|
|
442
|
-
interface PopoverOptions extends ElementAttrs {
|
|
443
|
-
defaultOpen?: boolean;
|
|
444
|
-
onOpenChange?: (open: boolean) => void;
|
|
445
|
-
positioning?: FloatingOptions;
|
|
446
|
-
}
|
|
447
|
-
interface PopoverState {
|
|
448
|
-
open: Signal15<boolean>;
|
|
449
|
-
}
|
|
450
|
-
interface PopoverElements {
|
|
451
|
-
trigger: HTMLButtonElement;
|
|
452
|
-
content: HTMLDivElement;
|
|
453
|
-
}
|
|
454
|
-
declare const Popover: {
|
|
455
|
-
Root: (options?: PopoverOptions) => PopoverElements & {
|
|
456
|
-
state: PopoverState;
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
import { Signal as Signal16 } from "@vertz/ui";
|
|
460
|
-
interface ProgressOptions extends ElementAttrs {
|
|
461
|
-
defaultValue?: number;
|
|
462
|
-
min?: number;
|
|
463
|
-
max?: number;
|
|
464
|
-
}
|
|
465
|
-
interface ProgressState {
|
|
466
|
-
value: Signal16<number>;
|
|
467
|
-
}
|
|
468
|
-
interface ProgressElements {
|
|
469
|
-
root: HTMLElement;
|
|
470
|
-
indicator: HTMLElement;
|
|
471
|
-
}
|
|
472
|
-
declare const Progress: {
|
|
473
|
-
Root: (options?: ProgressOptions) => ProgressElements & {
|
|
474
|
-
state: ProgressState;
|
|
475
|
-
setValue: (value: number) => void;
|
|
476
|
-
};
|
|
477
|
-
};
|
|
478
|
-
import { Signal as Signal17 } from "@vertz/ui";
|
|
479
|
-
interface RadioOptions extends ElementAttrs {
|
|
480
|
-
defaultValue?: string;
|
|
481
|
-
onValueChange?: (value: string) => void;
|
|
482
|
-
}
|
|
483
|
-
interface RadioState {
|
|
484
|
-
value: Signal17<string>;
|
|
485
|
-
}
|
|
486
|
-
interface RadioElements {
|
|
487
|
-
root: HTMLElement;
|
|
488
|
-
}
|
|
489
|
-
interface RadioItemOptions {
|
|
490
|
-
disabled?: boolean;
|
|
491
|
-
}
|
|
492
|
-
declare const Radio: {
|
|
493
|
-
Root: (options?: RadioOptions) => RadioElements & {
|
|
494
|
-
state: RadioState;
|
|
495
|
-
Item: (value: string, label?: string, itemOptions?: RadioItemOptions) => HTMLElement;
|
|
496
|
-
destroy: () => void;
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
import { Signal as Signal18 } from "@vertz/ui";
|
|
500
|
-
interface ResizablePanelOptions extends ElementAttrs {
|
|
501
|
-
orientation?: "horizontal" | "vertical";
|
|
502
|
-
onResize?: (sizes: number[]) => void;
|
|
503
|
-
}
|
|
504
|
-
interface PanelOptions {
|
|
505
|
-
defaultSize?: number;
|
|
506
|
-
minSize?: number;
|
|
507
|
-
maxSize?: number;
|
|
508
|
-
}
|
|
509
|
-
interface ResizablePanelState {
|
|
510
|
-
sizes: Signal18<number[]>;
|
|
511
|
-
}
|
|
512
|
-
interface ResizablePanelElements {
|
|
513
|
-
root: HTMLDivElement;
|
|
514
|
-
}
|
|
515
|
-
declare const ResizablePanel: {
|
|
516
|
-
Root: (options?: ResizablePanelOptions) => ResizablePanelElements & {
|
|
517
|
-
state: ResizablePanelState;
|
|
518
|
-
Panel: (panelOptions?: PanelOptions) => HTMLDivElement;
|
|
519
|
-
Handle: () => HTMLDivElement;
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
import { Signal as Signal19 } from "@vertz/ui";
|
|
523
|
-
interface ScrollAreaOptions extends ElementAttrs {
|
|
524
|
-
orientation?: "vertical" | "horizontal" | "both";
|
|
525
|
-
type?: "auto" | "always" | "hover" | "scroll";
|
|
526
|
-
}
|
|
527
|
-
interface ScrollAreaState {
|
|
528
|
-
scrollTop: Signal19<number>;
|
|
529
|
-
scrollLeft: Signal19<number>;
|
|
530
|
-
}
|
|
531
|
-
interface ScrollAreaElements {
|
|
532
|
-
root: HTMLDivElement;
|
|
533
|
-
viewport: HTMLDivElement;
|
|
534
|
-
content: HTMLDivElement;
|
|
535
|
-
scrollbarY: HTMLDivElement;
|
|
536
|
-
thumbY: HTMLDivElement;
|
|
537
|
-
scrollbarX: HTMLDivElement;
|
|
538
|
-
thumbX: HTMLDivElement;
|
|
539
|
-
}
|
|
540
|
-
declare const ScrollArea: {
|
|
541
|
-
Root: (options?: ScrollAreaOptions) => ScrollAreaElements & {
|
|
542
|
-
state: ScrollAreaState;
|
|
543
|
-
update: () => void;
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
import { Signal as Signal20 } from "@vertz/ui";
|
|
547
|
-
interface SelectOptions extends ElementAttrs {
|
|
548
|
-
defaultValue?: string;
|
|
549
|
-
placeholder?: string;
|
|
550
|
-
onValueChange?: (value: string) => void;
|
|
551
|
-
positioning?: FloatingOptions;
|
|
552
|
-
}
|
|
553
|
-
interface SelectState {
|
|
554
|
-
open: Signal20<boolean>;
|
|
555
|
-
value: Signal20<string>;
|
|
556
|
-
activeIndex: Signal20<number>;
|
|
557
|
-
}
|
|
558
|
-
interface SelectElements {
|
|
559
|
-
trigger: HTMLButtonElement;
|
|
560
|
-
content: HTMLDivElement;
|
|
561
|
-
}
|
|
562
|
-
declare const Select: {
|
|
563
|
-
Root: (options?: SelectOptions) => SelectElements & {
|
|
564
|
-
state: SelectState;
|
|
565
|
-
Item: (value: string, label?: string) => HTMLDivElement;
|
|
566
|
-
Group: (label: string) => {
|
|
567
|
-
el: HTMLDivElement;
|
|
568
|
-
Item: (value: string, label?: string) => HTMLDivElement;
|
|
569
|
-
};
|
|
570
|
-
Separator: () => HTMLHRElement;
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
import { Signal as Signal21 } from "@vertz/ui";
|
|
574
|
-
type SheetSide = "left" | "right" | "top" | "bottom";
|
|
575
|
-
interface SheetOptions {
|
|
576
|
-
side?: SheetSide;
|
|
577
|
-
defaultOpen?: boolean;
|
|
578
|
-
onOpenChange?: (open: boolean) => void;
|
|
579
|
-
}
|
|
580
|
-
interface SheetState {
|
|
581
|
-
open: Signal21<boolean>;
|
|
582
|
-
}
|
|
583
|
-
interface SheetElements {
|
|
584
|
-
trigger: HTMLButtonElement;
|
|
585
|
-
overlay: HTMLDivElement;
|
|
586
|
-
content: HTMLDivElement;
|
|
587
|
-
close: HTMLButtonElement;
|
|
588
|
-
show: () => void;
|
|
589
|
-
hide: () => void;
|
|
590
|
-
}
|
|
591
|
-
declare const Sheet: {
|
|
592
|
-
Root: (options?: SheetOptions) => SheetElements & {
|
|
593
|
-
state: SheetState;
|
|
594
|
-
};
|
|
595
|
-
};
|
|
596
|
-
import { Signal as Signal22 } from "@vertz/ui";
|
|
597
|
-
interface SliderOptions extends ElementAttrs {
|
|
598
|
-
defaultValue?: number;
|
|
599
|
-
min?: number;
|
|
600
|
-
max?: number;
|
|
601
|
-
step?: number;
|
|
602
|
-
disabled?: boolean;
|
|
603
|
-
onValueChange?: (value: number) => void;
|
|
604
|
-
}
|
|
605
|
-
interface SliderState {
|
|
606
|
-
value: Signal22<number>;
|
|
607
|
-
disabled: Signal22<boolean>;
|
|
608
|
-
}
|
|
609
|
-
interface SliderElements {
|
|
610
|
-
root: HTMLDivElement;
|
|
611
|
-
thumb: HTMLDivElement;
|
|
612
|
-
track: HTMLDivElement;
|
|
613
|
-
}
|
|
614
|
-
declare const Slider: {
|
|
615
|
-
Root: (options?: SliderOptions) => SliderElements & {
|
|
616
|
-
state: SliderState;
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
interface SwitchOptions extends ElementAttrs {
|
|
620
|
-
defaultChecked?: boolean;
|
|
621
|
-
disabled?: boolean;
|
|
622
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
623
|
-
}
|
|
624
|
-
declare const Switch: {
|
|
625
|
-
Root: (options?: SwitchOptions) => HTMLButtonElement;
|
|
626
|
-
};
|
|
627
|
-
import { Signal as Signal23 } from "@vertz/ui";
|
|
628
|
-
interface TabsOptions extends ElementAttrs {
|
|
629
|
-
defaultValue?: string;
|
|
630
|
-
orientation?: "horizontal" | "vertical";
|
|
631
|
-
onValueChange?: (value: string) => void;
|
|
632
|
-
}
|
|
633
|
-
interface TabsState {
|
|
634
|
-
value: Signal23<string>;
|
|
635
|
-
}
|
|
636
|
-
interface TabsElements {
|
|
637
|
-
root: HTMLElement;
|
|
638
|
-
list: HTMLElement;
|
|
639
|
-
}
|
|
640
|
-
declare const Tabs: {
|
|
641
|
-
Root: (options?: TabsOptions) => TabsElements & {
|
|
642
|
-
state: TabsState;
|
|
643
|
-
Tab: (value: string, label?: string) => {
|
|
644
|
-
trigger: HTMLElement;
|
|
645
|
-
panel: HTMLElement;
|
|
646
|
-
};
|
|
647
|
-
destroy: () => void;
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
import { Signal as Signal24 } from "@vertz/ui";
|
|
651
|
-
interface ToastOptions extends ElementAttrs {
|
|
652
|
-
duration?: number;
|
|
653
|
-
politeness?: "polite" | "assertive";
|
|
654
|
-
}
|
|
655
|
-
interface ToastMessage {
|
|
656
|
-
id: string;
|
|
657
|
-
content: string;
|
|
658
|
-
el: HTMLDivElement;
|
|
659
|
-
}
|
|
660
|
-
interface ToastState {
|
|
661
|
-
messages: Signal24<ToastMessage[]>;
|
|
662
|
-
}
|
|
663
|
-
interface ToastElements {
|
|
664
|
-
region: HTMLDivElement;
|
|
665
|
-
}
|
|
666
|
-
declare const Toast: {
|
|
667
|
-
Root: (options?: ToastOptions) => ToastElements & {
|
|
668
|
-
state: ToastState;
|
|
669
|
-
announce: (content: string) => ToastMessage;
|
|
670
|
-
dismiss: (id: string) => void;
|
|
671
|
-
};
|
|
672
|
-
};
|
|
673
|
-
interface ToggleOptions extends ElementAttrs {
|
|
674
|
-
defaultPressed?: boolean;
|
|
675
|
-
disabled?: boolean;
|
|
676
|
-
onPressedChange?: (pressed: boolean) => void;
|
|
677
|
-
}
|
|
678
|
-
declare const Toggle: {
|
|
679
|
-
Root: (options?: ToggleOptions) => HTMLButtonElement;
|
|
680
|
-
};
|
|
681
|
-
import { Signal as Signal25 } from "@vertz/ui";
|
|
682
|
-
interface ToggleGroupOptions extends ElementAttrs {
|
|
683
|
-
type?: "single" | "multiple";
|
|
684
|
-
defaultValue?: string[];
|
|
685
|
-
orientation?: "horizontal" | "vertical";
|
|
686
|
-
disabled?: boolean;
|
|
687
|
-
onValueChange?: (value: string[]) => void;
|
|
688
|
-
}
|
|
689
|
-
interface ToggleGroupState {
|
|
690
|
-
value: Signal25<string[]>;
|
|
691
|
-
disabled: Signal25<boolean>;
|
|
692
|
-
}
|
|
693
|
-
interface ToggleGroupElements {
|
|
694
|
-
root: HTMLDivElement;
|
|
695
|
-
}
|
|
696
|
-
declare const ToggleGroup: {
|
|
697
|
-
Root: (options?: ToggleGroupOptions) => ToggleGroupElements & {
|
|
698
|
-
state: ToggleGroupState;
|
|
699
|
-
Item: (value: string) => HTMLButtonElement;
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
import { Signal as Signal26 } from "@vertz/ui";
|
|
703
|
-
interface TooltipOptions extends ElementAttrs {
|
|
704
|
-
delay?: number;
|
|
705
|
-
onOpenChange?: (open: boolean) => void;
|
|
706
|
-
positioning?: FloatingOptions;
|
|
707
|
-
}
|
|
708
|
-
interface TooltipState {
|
|
709
|
-
open: Signal26<boolean>;
|
|
710
|
-
}
|
|
711
|
-
interface TooltipElements {
|
|
712
|
-
trigger: HTMLElement;
|
|
713
|
-
content: HTMLElement;
|
|
714
|
-
}
|
|
715
|
-
declare const Tooltip: {
|
|
716
|
-
Root: (options?: TooltipOptions) => TooltipElements & {
|
|
717
|
-
state: TooltipState;
|
|
718
|
-
};
|
|
719
|
-
};
|
|
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
|
-
monthSelect?: string;
|
|
798
|
-
yearSelect?: string;
|
|
799
|
-
}
|
|
800
|
-
type CalendarClassKey = keyof CalendarClasses;
|
|
801
|
-
interface ComposedCalendarProps {
|
|
802
|
-
classes?: CalendarClasses;
|
|
803
|
-
mode?: "single" | "range" | "multiple";
|
|
804
|
-
defaultValue?: Date | Date[] | {
|
|
805
|
-
from: Date;
|
|
806
|
-
to: Date;
|
|
807
|
-
};
|
|
808
|
-
defaultMonth?: Date;
|
|
809
|
-
minDate?: Date;
|
|
810
|
-
maxDate?: Date;
|
|
811
|
-
disabled?: (date: Date) => boolean;
|
|
812
|
-
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
813
|
-
onValueChange?: (value: Date | Date[] | {
|
|
814
|
-
from: Date;
|
|
815
|
-
to: Date;
|
|
816
|
-
} | null) => void;
|
|
817
|
-
onMonthChange?: (month: Date) => void;
|
|
818
|
-
/**
|
|
819
|
-
* Controls how the calendar header navigation is rendered.
|
|
820
|
-
* - 'buttons' (default): prev/next arrow buttons only
|
|
821
|
-
* - 'dropdown': month + year <select> elements, no arrow buttons
|
|
822
|
-
* - 'dropdown-buttons': month + year <select> elements AND arrow buttons
|
|
823
|
-
*/
|
|
824
|
-
captionLayout?: "buttons" | "dropdown" | "dropdown-buttons";
|
|
825
|
-
}
|
|
826
|
-
declare const ComposedCalendar: ((props: ComposedCalendarProps) => HTMLElement) & {
|
|
827
|
-
__classKeys?: CalendarClassKey;
|
|
828
|
-
};
|
|
829
|
-
import { ChildValue as ChildValue3 } from "@vertz/ui";
|
|
830
|
-
interface CarouselClasses {
|
|
831
|
-
root?: string;
|
|
832
|
-
viewport?: string;
|
|
833
|
-
slide?: string;
|
|
834
|
-
prevButton?: string;
|
|
835
|
-
nextButton?: string;
|
|
836
|
-
}
|
|
837
|
-
interface SlideProps {
|
|
838
|
-
children?: ChildValue3;
|
|
839
|
-
className?: string;
|
|
840
|
-
class?: string;
|
|
841
|
-
}
|
|
842
|
-
interface SlotProps3 {
|
|
843
|
-
children?: ChildValue3;
|
|
844
|
-
}
|
|
845
|
-
interface ComposedCarouselProps {
|
|
846
|
-
children?: ChildValue3;
|
|
847
|
-
classes?: CarouselClasses;
|
|
848
|
-
orientation?: "horizontal" | "vertical";
|
|
849
|
-
loop?: boolean;
|
|
850
|
-
defaultIndex?: number;
|
|
851
|
-
onSlideChange?: (index: number) => void;
|
|
852
|
-
}
|
|
853
|
-
type CarouselClassKey = keyof CarouselClasses;
|
|
854
|
-
declare const ComposedCarousel: ((props: ComposedCarouselProps) => HTMLElement) & {
|
|
855
|
-
__classKeys?: CarouselClassKey;
|
|
856
|
-
Slide: (props: SlideProps) => HTMLElement;
|
|
857
|
-
Previous: (props: SlotProps3) => HTMLElement;
|
|
858
|
-
Next: (props: SlotProps3) => HTMLElement;
|
|
859
|
-
};
|
|
860
|
-
import { ChildValue as ChildValue4 } from "@vertz/ui";
|
|
861
|
-
interface CheckboxClasses {
|
|
862
|
-
root?: string;
|
|
863
|
-
indicator?: string;
|
|
864
|
-
}
|
|
865
|
-
type CheckboxClassKey = keyof CheckboxClasses;
|
|
866
|
-
interface ComposedCheckboxProps {
|
|
867
|
-
children?: ChildValue4;
|
|
868
|
-
classes?: CheckboxClasses;
|
|
869
|
-
defaultChecked?: CheckedState;
|
|
870
|
-
disabled?: boolean;
|
|
871
|
-
onCheckedChange?: (checked: CheckedState) => void;
|
|
872
|
-
}
|
|
873
|
-
declare const ComposedCheckbox: ((props: ComposedCheckboxProps) => HTMLElement) & {
|
|
874
|
-
__classKeys?: CheckboxClassKey;
|
|
875
|
-
};
|
|
876
|
-
import { ChildValue as ChildValue5 } from "@vertz/ui";
|
|
877
|
-
interface CollapsibleClasses {
|
|
878
|
-
root?: string;
|
|
879
|
-
trigger?: string;
|
|
880
|
-
content?: string;
|
|
979
|
+
interface ItemProps3 extends SlotProps13 {
|
|
980
|
+
value: string;
|
|
881
981
|
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
children?: ChildValue5;
|
|
885
|
-
className?: string;
|
|
886
|
-
/** @deprecated Use `className` instead. */
|
|
887
|
-
class?: string;
|
|
982
|
+
interface GroupProps2 extends SlotProps13 {
|
|
983
|
+
label: string;
|
|
888
984
|
}
|
|
889
|
-
interface
|
|
890
|
-
children?:
|
|
891
|
-
classes?:
|
|
892
|
-
|
|
893
|
-
disabled?: boolean;
|
|
985
|
+
interface ComposedDropdownMenuProps {
|
|
986
|
+
children?: ChildValue19;
|
|
987
|
+
classes?: DropdownMenuClasses;
|
|
988
|
+
onSelect?: (value: string) => void;
|
|
894
989
|
onOpenChange?: (open: boolean) => void;
|
|
990
|
+
positioning?: FloatingOptions;
|
|
895
991
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
992
|
+
type DropdownMenuClassKey = keyof DropdownMenuClasses;
|
|
993
|
+
declare const ComposedDropdownMenu: ((props: ComposedDropdownMenuProps) => HTMLElement) & {
|
|
994
|
+
__classKeys?: DropdownMenuClassKey;
|
|
995
|
+
Trigger: (props: SlotProps13) => HTMLElement;
|
|
996
|
+
Content: (props: SlotProps13) => HTMLElement;
|
|
997
|
+
Item: (props: ItemProps3) => HTMLElement;
|
|
998
|
+
Group: (props: GroupProps2) => HTMLElement;
|
|
999
|
+
Label: (props: SlotProps13) => HTMLElement;
|
|
1000
|
+
Separator: (props: SlotProps13) => HTMLElement;
|
|
900
1001
|
};
|
|
901
|
-
import { ChildValue as
|
|
902
|
-
interface
|
|
1002
|
+
import { ChildValue as ChildValue20 } from "@vertz/ui";
|
|
1003
|
+
interface EmptyStateClasses {
|
|
903
1004
|
root?: string;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
groupHeading?: string;
|
|
909
|
-
separator?: string;
|
|
910
|
-
empty?: string;
|
|
1005
|
+
icon?: string;
|
|
1006
|
+
title?: string;
|
|
1007
|
+
description?: string;
|
|
1008
|
+
action?: string;
|
|
911
1009
|
}
|
|
912
|
-
|
|
1010
|
+
type EmptyStateClassKey = keyof EmptyStateClasses;
|
|
1011
|
+
interface SlotProps14 {
|
|
1012
|
+
children?: ChildValue20;
|
|
913
1013
|
className?: string;
|
|
914
1014
|
/** @deprecated Use `className` instead. */
|
|
915
1015
|
class?: string;
|
|
916
1016
|
}
|
|
917
|
-
interface
|
|
918
|
-
children?:
|
|
1017
|
+
interface ComposedEmptyStateProps {
|
|
1018
|
+
children?: ChildValue20;
|
|
1019
|
+
classes?: EmptyStateClasses;
|
|
919
1020
|
className?: string;
|
|
920
1021
|
/** @deprecated Use `className` instead. */
|
|
921
1022
|
class?: string;
|
|
922
1023
|
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
1024
|
+
declare const ComposedEmptyState: ((props: ComposedEmptyStateProps) => HTMLElement) & {
|
|
1025
|
+
__classKeys?: EmptyStateClassKey;
|
|
1026
|
+
Icon: (props: SlotProps14) => HTMLElement;
|
|
1027
|
+
Title: (props: SlotProps14) => HTMLElement;
|
|
1028
|
+
Description: (props: SlotProps14) => HTMLElement;
|
|
1029
|
+
Action: (props: SlotProps14) => HTMLElement;
|
|
1030
|
+
};
|
|
1031
|
+
import { ChildValue as ChildValue21 } from "@vertz/ui";
|
|
1032
|
+
interface FormGroupClasses {
|
|
1033
|
+
base?: string;
|
|
1034
|
+
error?: string;
|
|
928
1035
|
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
children?:
|
|
932
|
-
keywords?: string[];
|
|
1036
|
+
type FormGroupClassKey = keyof FormGroupClasses;
|
|
1037
|
+
interface SlotProps15 {
|
|
1038
|
+
children?: ChildValue21;
|
|
933
1039
|
className?: string;
|
|
934
1040
|
/** @deprecated Use `className` instead. */
|
|
935
1041
|
class?: string;
|
|
936
1042
|
}
|
|
937
|
-
interface
|
|
938
|
-
|
|
939
|
-
|
|
1043
|
+
interface ComposedFormGroupProps {
|
|
1044
|
+
children?: ChildValue21;
|
|
1045
|
+
classes?: FormGroupClasses;
|
|
940
1046
|
className?: string;
|
|
941
1047
|
/** @deprecated Use `className` instead. */
|
|
942
1048
|
class?: string;
|
|
943
1049
|
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
1050
|
+
declare const ComposedFormGroup: ((props: ComposedFormGroupProps) => HTMLElement) & {
|
|
1051
|
+
__classKeys?: FormGroupClassKey;
|
|
1052
|
+
FormError: (props: SlotProps15) => HTMLElement;
|
|
1053
|
+
};
|
|
1054
|
+
import { Signal as Signal12 } from "@vertz/ui";
|
|
1055
|
+
interface HoverCardOptions extends ElementAttrs {
|
|
1056
|
+
openDelay?: number;
|
|
1057
|
+
closeDelay?: number;
|
|
1058
|
+
onOpenChange?: (open: boolean) => void;
|
|
1059
|
+
positioning?: FloatingOptions;
|
|
948
1060
|
}
|
|
949
|
-
interface
|
|
950
|
-
|
|
951
|
-
classes?: CommandClasses;
|
|
952
|
-
filter?: (value: string, search: string) => boolean;
|
|
953
|
-
onSelect?: (value: string) => void;
|
|
954
|
-
onInputChange?: (value: string) => void;
|
|
955
|
-
placeholder?: string;
|
|
1061
|
+
interface HoverCardState {
|
|
1062
|
+
open: Signal12<boolean>;
|
|
956
1063
|
}
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
Input: (props: CommandInputProps) => HTMLElement;
|
|
961
|
-
List: (props: CommandListProps) => HTMLElement;
|
|
962
|
-
Empty: (props: CommandEmptyProps) => HTMLElement;
|
|
963
|
-
Item: (props: CommandItemProps) => HTMLElement;
|
|
964
|
-
Group: (props: CommandGroupProps) => HTMLElement;
|
|
965
|
-
Separator: (props: CommandSeparatorProps) => HTMLElement;
|
|
966
|
-
};
|
|
967
|
-
import { ChildValue as ChildValue7 } from "@vertz/ui";
|
|
968
|
-
/**
|
|
969
|
-
* A composed primitive is a callable function with a `__classKeys` phantom brand
|
|
970
|
-
* that defines the valid class keys for that component.
|
|
971
|
-
*/
|
|
972
|
-
interface ComposedPrimitive<K extends string = string> {
|
|
973
|
-
(props: {
|
|
974
|
-
children?: ChildValue7;
|
|
975
|
-
classes?: Partial<Record<K, string>>;
|
|
976
|
-
[key: string]: unknown;
|
|
977
|
-
}): HTMLElement;
|
|
978
|
-
__classKeys?: K;
|
|
1064
|
+
interface HoverCardElements {
|
|
1065
|
+
trigger: HTMLElement;
|
|
1066
|
+
content: HTMLDivElement;
|
|
979
1067
|
}
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
*/
|
|
988
|
-
type StyledPrimitive<C extends ComposedPrimitive> = ((props: Omit<Parameters<C>[0], "classes">) => HTMLElement) & Omit<C, "__classKeys" | keyof CallableFunction>;
|
|
989
|
-
/**
|
|
990
|
-
* Pre-bind CSS classes onto a composed primitive.
|
|
991
|
-
* Returns a new function that accepts all props except `classes`,
|
|
992
|
-
* with all sub-component properties preserved.
|
|
993
|
-
*/
|
|
994
|
-
declare function withStyles<C extends ComposedPrimitive>(component: C, classes: ClassesOf<C>): StyledPrimitive<C>;
|
|
995
|
-
import { ChildValue as ChildValue8 } from "@vertz/ui";
|
|
996
|
-
interface ContextMenuClasses {
|
|
1068
|
+
declare const HoverCard: {
|
|
1069
|
+
Root: (options?: HoverCardOptions) => HoverCardElements & {
|
|
1070
|
+
state: HoverCardState;
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
import { ChildValue as ChildValue22 } from "@vertz/ui";
|
|
1074
|
+
interface HoverCardClasses {
|
|
997
1075
|
content?: string;
|
|
998
|
-
item?: string;
|
|
999
|
-
group?: string;
|
|
1000
|
-
label?: string;
|
|
1001
|
-
separator?: string;
|
|
1002
1076
|
}
|
|
1003
|
-
|
|
1004
|
-
|
|
1077
|
+
type HoverCardClassKey = keyof HoverCardClasses;
|
|
1078
|
+
interface SlotProps16 {
|
|
1079
|
+
children?: ChildValue22;
|
|
1005
1080
|
className?: string;
|
|
1006
1081
|
/** @deprecated Use `className` instead. */
|
|
1007
1082
|
class?: string;
|
|
1008
1083
|
}
|
|
1009
|
-
interface
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
interface ComposedContextMenuProps {
|
|
1016
|
-
children?: ChildValue8;
|
|
1017
|
-
classes?: ContextMenuClasses;
|
|
1018
|
-
onSelect?: (value: string) => void;
|
|
1084
|
+
interface ComposedHoverCardProps {
|
|
1085
|
+
children?: ChildValue22;
|
|
1086
|
+
classes?: HoverCardClasses;
|
|
1087
|
+
openDelay?: number;
|
|
1088
|
+
closeDelay?: number;
|
|
1019
1089
|
onOpenChange?: (open: boolean) => void;
|
|
1020
1090
|
positioning?: FloatingOptions;
|
|
1021
1091
|
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
Content: (props: SlotProps5) => HTMLElement;
|
|
1027
|
-
Item: (props: ItemProps2) => HTMLElement;
|
|
1028
|
-
Group: (props: GroupProps) => HTMLElement;
|
|
1029
|
-
Label: (props: SlotProps5) => HTMLElement;
|
|
1030
|
-
Separator: (props: SlotProps5) => HTMLElement;
|
|
1092
|
+
declare const ComposedHoverCard: ((props: ComposedHoverCardProps) => HTMLElement) & {
|
|
1093
|
+
__classKeys?: HoverCardClassKey;
|
|
1094
|
+
Trigger: (props: SlotProps16) => HTMLElement;
|
|
1095
|
+
Content: (props: SlotProps16) => HTMLElement;
|
|
1031
1096
|
};
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
trigger?: string;
|
|
1035
|
-
content?: string;
|
|
1036
|
-
calendar?: CalendarClasses;
|
|
1097
|
+
interface InputClasses {
|
|
1098
|
+
base?: string;
|
|
1037
1099
|
}
|
|
1038
|
-
type
|
|
1039
|
-
interface
|
|
1040
|
-
|
|
1100
|
+
type InputClassKey = keyof InputClasses;
|
|
1101
|
+
interface ComposedInputProps {
|
|
1102
|
+
classes?: InputClasses;
|
|
1041
1103
|
className?: string;
|
|
1042
1104
|
/** @deprecated Use `className` instead. */
|
|
1043
1105
|
class?: string;
|
|
1044
|
-
|
|
1045
|
-
interface ComposedDatePickerProps {
|
|
1046
|
-
children?: ChildValue9;
|
|
1047
|
-
classes?: DatePickerClasses;
|
|
1048
|
-
mode?: "single" | "range";
|
|
1049
|
-
defaultValue?: Date | {
|
|
1050
|
-
from: Date;
|
|
1051
|
-
to: Date;
|
|
1052
|
-
};
|
|
1053
|
-
defaultMonth?: Date;
|
|
1054
|
-
minDate?: Date;
|
|
1055
|
-
maxDate?: Date;
|
|
1056
|
-
disabled?: (date: Date) => boolean;
|
|
1057
|
-
formatDate?: (date: Date) => string;
|
|
1106
|
+
name?: string;
|
|
1058
1107
|
placeholder?: string;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
onOpenChange?: (open: boolean) => void;
|
|
1064
|
-
captionLayout?: ComposedCalendarProps["captionLayout"];
|
|
1108
|
+
type?: string;
|
|
1109
|
+
disabled?: boolean;
|
|
1110
|
+
value?: string;
|
|
1111
|
+
[key: string]: unknown;
|
|
1065
1112
|
}
|
|
1066
|
-
declare const
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
interface
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1113
|
+
declare const ComposedInput: ComposedPrimitive<InputClassKey, HTMLElement>;
|
|
1114
|
+
import { ChildValue as ChildValue23 } from "@vertz/ui";
|
|
1115
|
+
interface LabelClasses {
|
|
1116
|
+
base?: string;
|
|
1117
|
+
}
|
|
1118
|
+
type LabelClassKey = keyof LabelClasses;
|
|
1119
|
+
interface ComposedLabelProps {
|
|
1120
|
+
classes?: LabelClasses;
|
|
1121
|
+
className?: string;
|
|
1122
|
+
/** @deprecated Use `className` instead. */
|
|
1123
|
+
class?: string;
|
|
1124
|
+
for?: string;
|
|
1125
|
+
children?: ChildValue23;
|
|
1126
|
+
}
|
|
1127
|
+
declare const ComposedLabel: ComposedPrimitive<LabelClassKey, HTMLElement>;
|
|
1128
|
+
import { ChildValue as ChildValue24 } from "@vertz/ui";
|
|
1129
|
+
interface ListClasses {
|
|
1130
|
+
root?: string;
|
|
1131
|
+
item?: string;
|
|
1132
|
+
dragHandle?: string;
|
|
1133
|
+
}
|
|
1134
|
+
type ListClassKey = keyof ListClasses;
|
|
1135
|
+
interface AnimateConfig {
|
|
1136
|
+
duration?: number;
|
|
1137
|
+
easing?: string;
|
|
1080
1138
|
}
|
|
1081
|
-
interface
|
|
1082
|
-
children?:
|
|
1139
|
+
interface SlotProps17 {
|
|
1140
|
+
children?: ChildValue24;
|
|
1083
1141
|
className?: string;
|
|
1084
1142
|
/** @deprecated Use `className` instead. */
|
|
1085
1143
|
class?: string;
|
|
1086
1144
|
}
|
|
1087
|
-
interface
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
Header: (props: SlotProps7) => HTMLElement;
|
|
1103
|
-
Footer: (props: SlotProps7) => HTMLElement;
|
|
1104
|
-
Close: (props: SlotProps7) => HTMLElement;
|
|
1145
|
+
interface ComposedListProps {
|
|
1146
|
+
children?: ChildValue24;
|
|
1147
|
+
classes?: ListClasses;
|
|
1148
|
+
className?: string;
|
|
1149
|
+
/** @deprecated Use `className` instead. */
|
|
1150
|
+
class?: string;
|
|
1151
|
+
animate?: boolean | AnimateConfig;
|
|
1152
|
+
sortable?: boolean;
|
|
1153
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
1154
|
+
}
|
|
1155
|
+
declare const ComposedList: ((props: ComposedListProps) => HTMLElement) & {
|
|
1156
|
+
__classKeys?: ListClassKey;
|
|
1157
|
+
Item: (props: SlotProps17) => HTMLElement;
|
|
1158
|
+
DragHandle: (props: SlotProps17) => HTMLElement;
|
|
1159
|
+
reorder: <T>(arr: readonly T[], from: number, to: number) => T[];
|
|
1105
1160
|
};
|
|
1106
|
-
import { ChildValue as
|
|
1107
|
-
interface
|
|
1161
|
+
import { ChildValue as ChildValue25 } from "@vertz/ui";
|
|
1162
|
+
interface MenuClasses {
|
|
1108
1163
|
content?: string;
|
|
1109
1164
|
item?: string;
|
|
1110
1165
|
group?: string;
|
|
1111
1166
|
label?: string;
|
|
1112
1167
|
separator?: string;
|
|
1113
1168
|
}
|
|
1114
|
-
interface
|
|
1115
|
-
children?:
|
|
1169
|
+
interface SlotProps18 {
|
|
1170
|
+
children?: ChildValue25;
|
|
1116
1171
|
className?: string;
|
|
1117
1172
|
/** @deprecated Use `className` instead. */
|
|
1118
1173
|
class?: string;
|
|
1119
1174
|
}
|
|
1120
|
-
interface
|
|
1175
|
+
interface ItemProps4 extends SlotProps18 {
|
|
1121
1176
|
value: string;
|
|
1122
1177
|
}
|
|
1123
|
-
interface
|
|
1178
|
+
interface GroupProps3 extends SlotProps18 {
|
|
1124
1179
|
label: string;
|
|
1125
1180
|
}
|
|
1126
|
-
interface
|
|
1127
|
-
children?:
|
|
1128
|
-
classes?:
|
|
1181
|
+
interface ComposedMenuProps {
|
|
1182
|
+
children?: ChildValue25;
|
|
1183
|
+
classes?: MenuClasses;
|
|
1129
1184
|
onSelect?: (value: string) => void;
|
|
1130
1185
|
onOpenChange?: (open: boolean) => void;
|
|
1131
1186
|
positioning?: FloatingOptions;
|
|
1132
1187
|
}
|
|
1133
|
-
type
|
|
1134
|
-
declare const
|
|
1135
|
-
__classKeys?:
|
|
1136
|
-
Trigger: (props:
|
|
1137
|
-
Content: (props:
|
|
1138
|
-
Item: (props:
|
|
1139
|
-
Group: (props:
|
|
1140
|
-
Label: (props:
|
|
1141
|
-
Separator: (props:
|
|
1188
|
+
type MenuClassKey = keyof MenuClasses;
|
|
1189
|
+
declare const ComposedMenu: ((props: ComposedMenuProps) => HTMLElement) & {
|
|
1190
|
+
__classKeys?: MenuClassKey;
|
|
1191
|
+
Trigger: (props: SlotProps18) => HTMLElement;
|
|
1192
|
+
Content: (props: SlotProps18) => HTMLElement;
|
|
1193
|
+
Item: (props: ItemProps4) => HTMLElement;
|
|
1194
|
+
Group: (props: GroupProps3) => HTMLElement;
|
|
1195
|
+
Label: (props: SlotProps18) => HTMLElement;
|
|
1196
|
+
Separator: (props: SlotProps18) => HTMLElement;
|
|
1142
1197
|
};
|
|
1143
|
-
import {
|
|
1144
|
-
interface
|
|
1145
|
-
|
|
1198
|
+
import { Signal as Signal13 } from "@vertz/ui";
|
|
1199
|
+
interface MenubarOptions extends ElementAttrs {
|
|
1200
|
+
onSelect?: (value: string) => void;
|
|
1201
|
+
positioning?: FloatingOptions;
|
|
1146
1202
|
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
children?: ChildValue12;
|
|
1150
|
-
className?: string;
|
|
1151
|
-
/** @deprecated Use `className` instead. */
|
|
1152
|
-
class?: string;
|
|
1203
|
+
interface MenubarState {
|
|
1204
|
+
activeMenu: Signal13<string | null>;
|
|
1153
1205
|
}
|
|
1154
|
-
interface
|
|
1155
|
-
|
|
1156
|
-
classes?: HoverCardClasses;
|
|
1157
|
-
openDelay?: number;
|
|
1158
|
-
closeDelay?: number;
|
|
1159
|
-
onOpenChange?: (open: boolean) => void;
|
|
1160
|
-
positioning?: FloatingOptions;
|
|
1206
|
+
interface MenubarElements {
|
|
1207
|
+
root: HTMLDivElement;
|
|
1161
1208
|
}
|
|
1162
|
-
declare const
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1209
|
+
declare const Menubar: {
|
|
1210
|
+
Root: (options?: MenubarOptions) => MenubarElements & {
|
|
1211
|
+
state: MenubarState;
|
|
1212
|
+
Menu: (value: string, label?: string) => {
|
|
1213
|
+
trigger: HTMLButtonElement;
|
|
1214
|
+
content: HTMLDivElement;
|
|
1215
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1216
|
+
Group: (label: string) => {
|
|
1217
|
+
el: HTMLDivElement;
|
|
1218
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1219
|
+
};
|
|
1220
|
+
Separator: () => HTMLHRElement;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1166
1223
|
};
|
|
1167
|
-
import { ChildValue as
|
|
1224
|
+
import { ChildValue as ChildValue26 } from "@vertz/ui";
|
|
1168
1225
|
interface MenubarClasses {
|
|
1169
1226
|
root?: string;
|
|
1170
1227
|
trigger?: string;
|
|
@@ -1174,23 +1231,23 @@ interface MenubarClasses {
|
|
|
1174
1231
|
label?: string;
|
|
1175
1232
|
separator?: string;
|
|
1176
1233
|
}
|
|
1177
|
-
interface
|
|
1178
|
-
children?:
|
|
1234
|
+
interface SlotProps19 {
|
|
1235
|
+
children?: ChildValue26;
|
|
1179
1236
|
className?: string;
|
|
1180
1237
|
/** @deprecated Use `className` instead. */
|
|
1181
1238
|
class?: string;
|
|
1182
1239
|
}
|
|
1183
|
-
interface MenuProps extends
|
|
1240
|
+
interface MenuProps extends SlotProps19 {
|
|
1184
1241
|
value: string;
|
|
1185
1242
|
}
|
|
1186
|
-
interface
|
|
1243
|
+
interface ItemProps5 extends SlotProps19 {
|
|
1187
1244
|
value: string;
|
|
1188
1245
|
}
|
|
1189
|
-
interface
|
|
1246
|
+
interface GroupProps4 extends SlotProps19 {
|
|
1190
1247
|
label: string;
|
|
1191
1248
|
}
|
|
1192
1249
|
interface ComposedMenubarProps {
|
|
1193
|
-
children?:
|
|
1250
|
+
children?: ChildValue26;
|
|
1194
1251
|
classes?: MenubarClasses;
|
|
1195
1252
|
onSelect?: (value: string) => void;
|
|
1196
1253
|
positioning?: FloatingOptions;
|
|
@@ -1199,14 +1256,38 @@ type MenubarClassKey = keyof MenubarClasses;
|
|
|
1199
1256
|
declare const ComposedMenubar: ((props: ComposedMenubarProps) => HTMLElement) & {
|
|
1200
1257
|
__classKeys?: MenubarClassKey;
|
|
1201
1258
|
Menu: (props: MenuProps) => HTMLElement;
|
|
1202
|
-
Trigger: (props:
|
|
1203
|
-
Content: (props:
|
|
1204
|
-
Item: (props:
|
|
1205
|
-
Group: (props:
|
|
1206
|
-
Label: (props:
|
|
1207
|
-
Separator: (props:
|
|
1259
|
+
Trigger: (props: SlotProps19) => HTMLElement;
|
|
1260
|
+
Content: (props: SlotProps19) => HTMLElement;
|
|
1261
|
+
Item: (props: ItemProps5) => HTMLElement;
|
|
1262
|
+
Group: (props: GroupProps4) => HTMLElement;
|
|
1263
|
+
Label: (props: SlotProps19) => HTMLElement;
|
|
1264
|
+
Separator: (props: SlotProps19) => HTMLElement;
|
|
1208
1265
|
};
|
|
1209
|
-
import {
|
|
1266
|
+
import { Signal as Signal14 } from "@vertz/ui";
|
|
1267
|
+
interface NavigationMenuOptions extends ElementAttrs {
|
|
1268
|
+
orientation?: "horizontal" | "vertical";
|
|
1269
|
+
delayOpen?: number;
|
|
1270
|
+
delayClose?: number;
|
|
1271
|
+
}
|
|
1272
|
+
interface NavigationMenuState {
|
|
1273
|
+
activeItem: Signal14<string | null>;
|
|
1274
|
+
}
|
|
1275
|
+
interface NavigationMenuElements {
|
|
1276
|
+
root: HTMLElement;
|
|
1277
|
+
list: HTMLElement;
|
|
1278
|
+
viewport: HTMLElement;
|
|
1279
|
+
}
|
|
1280
|
+
declare const NavigationMenu: {
|
|
1281
|
+
Root: (options?: NavigationMenuOptions) => NavigationMenuElements & {
|
|
1282
|
+
state: NavigationMenuState;
|
|
1283
|
+
Item: (value: string, label?: string) => {
|
|
1284
|
+
trigger: HTMLElement;
|
|
1285
|
+
content: HTMLElement;
|
|
1286
|
+
};
|
|
1287
|
+
Link: (href: string, label: string) => HTMLElement;
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1290
|
+
import { ChildValue as ChildValue27 } from "@vertz/ui";
|
|
1210
1291
|
interface NavigationMenuClasses {
|
|
1211
1292
|
root?: string;
|
|
1212
1293
|
list?: string;
|
|
@@ -1216,27 +1297,27 @@ interface NavigationMenuClasses {
|
|
|
1216
1297
|
viewport?: string;
|
|
1217
1298
|
}
|
|
1218
1299
|
interface ListProps {
|
|
1219
|
-
children?:
|
|
1300
|
+
children?: ChildValue27;
|
|
1220
1301
|
className?: string;
|
|
1221
1302
|
class?: string;
|
|
1222
1303
|
}
|
|
1223
|
-
interface
|
|
1304
|
+
interface ItemProps6 {
|
|
1224
1305
|
value: string;
|
|
1225
|
-
children?:
|
|
1306
|
+
children?: ChildValue27;
|
|
1226
1307
|
}
|
|
1227
1308
|
interface TriggerProps {
|
|
1228
|
-
children?:
|
|
1309
|
+
children?: ChildValue27;
|
|
1229
1310
|
className?: string;
|
|
1230
1311
|
class?: string;
|
|
1231
1312
|
}
|
|
1232
1313
|
interface ContentProps {
|
|
1233
|
-
children?:
|
|
1314
|
+
children?: ChildValue27;
|
|
1234
1315
|
className?: string;
|
|
1235
1316
|
class?: string;
|
|
1236
1317
|
}
|
|
1237
1318
|
interface LinkProps {
|
|
1238
1319
|
href: string;
|
|
1239
|
-
children?:
|
|
1320
|
+
children?: ChildValue27;
|
|
1240
1321
|
className?: string;
|
|
1241
1322
|
class?: string;
|
|
1242
1323
|
}
|
|
@@ -1245,7 +1326,7 @@ interface ViewportProps {
|
|
|
1245
1326
|
class?: string;
|
|
1246
1327
|
}
|
|
1247
1328
|
interface ComposedNavigationMenuProps {
|
|
1248
|
-
children?:
|
|
1329
|
+
children?: ChildValue27;
|
|
1249
1330
|
classes?: NavigationMenuClasses;
|
|
1250
1331
|
orientation?: "horizontal" | "vertical";
|
|
1251
1332
|
delayOpen?: number;
|
|
@@ -1255,24 +1336,71 @@ type NavigationMenuClassKey = keyof NavigationMenuClasses;
|
|
|
1255
1336
|
declare const ComposedNavigationMenu: ((props: ComposedNavigationMenuProps) => HTMLElement) & {
|
|
1256
1337
|
__classKeys?: NavigationMenuClassKey;
|
|
1257
1338
|
List: (props: ListProps) => HTMLElement;
|
|
1258
|
-
Item: (props:
|
|
1339
|
+
Item: (props: ItemProps6) => HTMLElement;
|
|
1259
1340
|
Trigger: (props: TriggerProps) => HTMLElement;
|
|
1260
1341
|
Content: (props: ContentProps) => HTMLElement;
|
|
1261
1342
|
Link: (props: LinkProps) => HTMLElement;
|
|
1262
1343
|
Viewport: (props: ViewportProps) => HTMLElement;
|
|
1263
1344
|
};
|
|
1264
|
-
import { ChildValue as
|
|
1345
|
+
import { ChildValue as ChildValue28 } from "@vertz/ui";
|
|
1346
|
+
interface PaginationClasses {
|
|
1347
|
+
nav?: string;
|
|
1348
|
+
list?: string;
|
|
1349
|
+
item?: string;
|
|
1350
|
+
link?: string;
|
|
1351
|
+
linkActive?: string;
|
|
1352
|
+
navButton?: string;
|
|
1353
|
+
ellipsis?: string;
|
|
1354
|
+
}
|
|
1355
|
+
type PaginationClassKey = keyof PaginationClasses;
|
|
1356
|
+
interface ComposedPaginationProps {
|
|
1357
|
+
currentPage: number;
|
|
1358
|
+
totalPages: number;
|
|
1359
|
+
onPageChange: (page: number) => void;
|
|
1360
|
+
siblingCount?: number;
|
|
1361
|
+
classes?: PaginationClasses;
|
|
1362
|
+
className?: string;
|
|
1363
|
+
class?: string;
|
|
1364
|
+
/** Custom content for the previous button. Defaults to "Previous". */
|
|
1365
|
+
prevContent?: ChildValue28;
|
|
1366
|
+
/** Custom content for the next button. Defaults to "Next". */
|
|
1367
|
+
nextContent?: ChildValue28;
|
|
1368
|
+
/** Custom content for the ellipsis. Defaults to "...". */
|
|
1369
|
+
ellipsisContent?: ChildValue28;
|
|
1370
|
+
}
|
|
1371
|
+
declare const ComposedPagination: ((props: ComposedPaginationProps) => HTMLElement) & {
|
|
1372
|
+
__classKeys?: PaginationClassKey;
|
|
1373
|
+
};
|
|
1374
|
+
import { Signal as Signal15 } from "@vertz/ui";
|
|
1375
|
+
interface PopoverOptions extends ElementAttrs {
|
|
1376
|
+
defaultOpen?: boolean;
|
|
1377
|
+
onOpenChange?: (open: boolean) => void;
|
|
1378
|
+
positioning?: FloatingOptions;
|
|
1379
|
+
}
|
|
1380
|
+
interface PopoverState {
|
|
1381
|
+
open: Signal15<boolean>;
|
|
1382
|
+
}
|
|
1383
|
+
interface PopoverElements {
|
|
1384
|
+
trigger: HTMLButtonElement;
|
|
1385
|
+
content: HTMLDivElement;
|
|
1386
|
+
}
|
|
1387
|
+
declare const Popover: {
|
|
1388
|
+
Root: (options?: PopoverOptions) => PopoverElements & {
|
|
1389
|
+
state: PopoverState;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
import { ChildValue as ChildValue29 } from "@vertz/ui";
|
|
1265
1393
|
interface PopoverClasses {
|
|
1266
1394
|
content?: string;
|
|
1267
1395
|
}
|
|
1268
|
-
interface
|
|
1269
|
-
children?:
|
|
1396
|
+
interface SlotProps20 {
|
|
1397
|
+
children?: ChildValue29;
|
|
1270
1398
|
className?: string;
|
|
1271
1399
|
/** @deprecated Use `className` instead. */
|
|
1272
1400
|
class?: string;
|
|
1273
1401
|
}
|
|
1274
1402
|
interface ComposedPopoverProps {
|
|
1275
|
-
children?:
|
|
1403
|
+
children?: ChildValue29;
|
|
1276
1404
|
classes?: PopoverClasses;
|
|
1277
1405
|
onOpenChange?: (open: boolean) => void;
|
|
1278
1406
|
positioning?: FloatingOptions;
|
|
@@ -1280,17 +1408,36 @@ interface ComposedPopoverProps {
|
|
|
1280
1408
|
type PopoverClassKey = keyof PopoverClasses;
|
|
1281
1409
|
declare const ComposedPopover: ((props: ComposedPopoverProps) => HTMLElement) & {
|
|
1282
1410
|
__classKeys?: PopoverClassKey;
|
|
1283
|
-
Trigger: (props:
|
|
1284
|
-
Content: (props:
|
|
1411
|
+
Trigger: (props: SlotProps20) => HTMLElement;
|
|
1412
|
+
Content: (props: SlotProps20) => HTMLElement;
|
|
1285
1413
|
};
|
|
1286
|
-
import {
|
|
1414
|
+
import { Signal as Signal16 } from "@vertz/ui";
|
|
1415
|
+
interface ProgressOptions extends ElementAttrs {
|
|
1416
|
+
defaultValue?: number;
|
|
1417
|
+
min?: number;
|
|
1418
|
+
max?: number;
|
|
1419
|
+
}
|
|
1420
|
+
interface ProgressState {
|
|
1421
|
+
value: Signal16<number>;
|
|
1422
|
+
}
|
|
1423
|
+
interface ProgressElements {
|
|
1424
|
+
root: HTMLElement;
|
|
1425
|
+
indicator: HTMLElement;
|
|
1426
|
+
}
|
|
1427
|
+
declare const Progress: {
|
|
1428
|
+
Root: (options?: ProgressOptions) => ProgressElements & {
|
|
1429
|
+
state: ProgressState;
|
|
1430
|
+
setValue: (value: number) => void;
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1433
|
+
import { ChildValue as ChildValue30 } from "@vertz/ui";
|
|
1287
1434
|
interface ProgressClasses {
|
|
1288
1435
|
root?: string;
|
|
1289
1436
|
indicator?: string;
|
|
1290
1437
|
}
|
|
1291
1438
|
type ProgressClassKey = keyof ProgressClasses;
|
|
1292
1439
|
interface ComposedProgressProps {
|
|
1293
|
-
children?:
|
|
1440
|
+
children?: ChildValue30;
|
|
1294
1441
|
classes?: ProgressClasses;
|
|
1295
1442
|
defaultValue?: number;
|
|
1296
1443
|
min?: number;
|
|
@@ -1299,7 +1446,28 @@ interface ComposedProgressProps {
|
|
|
1299
1446
|
declare const ComposedProgress: ((props: ComposedProgressProps) => HTMLElement) & {
|
|
1300
1447
|
__classKeys?: ProgressClassKey;
|
|
1301
1448
|
};
|
|
1302
|
-
import {
|
|
1449
|
+
import { Signal as Signal17 } from "@vertz/ui";
|
|
1450
|
+
interface RadioOptions extends ElementAttrs {
|
|
1451
|
+
defaultValue?: string;
|
|
1452
|
+
onValueChange?: (value: string) => void;
|
|
1453
|
+
}
|
|
1454
|
+
interface RadioState {
|
|
1455
|
+
value: Signal17<string>;
|
|
1456
|
+
}
|
|
1457
|
+
interface RadioElements {
|
|
1458
|
+
root: HTMLElement;
|
|
1459
|
+
}
|
|
1460
|
+
interface RadioItemOptions {
|
|
1461
|
+
disabled?: boolean;
|
|
1462
|
+
}
|
|
1463
|
+
declare const Radio: {
|
|
1464
|
+
Root: (options?: RadioOptions) => RadioElements & {
|
|
1465
|
+
state: RadioState;
|
|
1466
|
+
Item: (value: string, label?: string, itemOptions?: RadioItemOptions) => HTMLElement;
|
|
1467
|
+
destroy: () => void;
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
import { ChildValue as ChildValue31 } from "@vertz/ui";
|
|
1303
1471
|
interface RadioGroupClasses {
|
|
1304
1472
|
root?: string;
|
|
1305
1473
|
item?: string;
|
|
@@ -1310,10 +1478,10 @@ type RadioGroupClassKey = keyof RadioGroupClasses;
|
|
|
1310
1478
|
interface RadioGroupItemProps {
|
|
1311
1479
|
value: string;
|
|
1312
1480
|
disabled?: boolean;
|
|
1313
|
-
children?:
|
|
1481
|
+
children?: ChildValue31;
|
|
1314
1482
|
}
|
|
1315
1483
|
interface ComposedRadioGroupProps {
|
|
1316
|
-
children?:
|
|
1484
|
+
children?: ChildValue31;
|
|
1317
1485
|
classes?: RadioGroupClasses;
|
|
1318
1486
|
defaultValue?: string;
|
|
1319
1487
|
onValueChange?: (value: string) => void;
|
|
@@ -1322,7 +1490,30 @@ declare const ComposedRadioGroup: ((props: ComposedRadioGroupProps) => HTMLEleme
|
|
|
1322
1490
|
__classKeys?: RadioGroupClassKey;
|
|
1323
1491
|
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
1324
1492
|
};
|
|
1325
|
-
import {
|
|
1493
|
+
import { Signal as Signal18 } from "@vertz/ui";
|
|
1494
|
+
interface ResizablePanelOptions extends ElementAttrs {
|
|
1495
|
+
orientation?: "horizontal" | "vertical";
|
|
1496
|
+
onResize?: (sizes: number[]) => void;
|
|
1497
|
+
}
|
|
1498
|
+
interface PanelOptions {
|
|
1499
|
+
defaultSize?: number;
|
|
1500
|
+
minSize?: number;
|
|
1501
|
+
maxSize?: number;
|
|
1502
|
+
}
|
|
1503
|
+
interface ResizablePanelState {
|
|
1504
|
+
sizes: Signal18<number[]>;
|
|
1505
|
+
}
|
|
1506
|
+
interface ResizablePanelElements {
|
|
1507
|
+
root: HTMLDivElement;
|
|
1508
|
+
}
|
|
1509
|
+
declare const ResizablePanel: {
|
|
1510
|
+
Root: (options?: ResizablePanelOptions) => ResizablePanelElements & {
|
|
1511
|
+
state: ResizablePanelState;
|
|
1512
|
+
Panel: (panelOptions?: PanelOptions) => HTMLDivElement;
|
|
1513
|
+
Handle: () => HTMLDivElement;
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
import { ChildValue as ChildValue32 } from "@vertz/ui";
|
|
1326
1517
|
interface ResizablePanelClasses {
|
|
1327
1518
|
root?: string;
|
|
1328
1519
|
panel?: string;
|
|
@@ -1330,7 +1521,7 @@ interface ResizablePanelClasses {
|
|
|
1330
1521
|
}
|
|
1331
1522
|
type ResizablePanelClassKey = keyof ResizablePanelClasses;
|
|
1332
1523
|
interface PanelSlotProps {
|
|
1333
|
-
children?:
|
|
1524
|
+
children?: ChildValue32;
|
|
1334
1525
|
className?: string;
|
|
1335
1526
|
/** @deprecated Use `className` instead. */
|
|
1336
1527
|
class?: string;
|
|
@@ -1344,17 +1535,41 @@ interface HandleSlotProps {
|
|
|
1344
1535
|
class?: string;
|
|
1345
1536
|
}
|
|
1346
1537
|
interface ComposedResizablePanelProps {
|
|
1347
|
-
children?:
|
|
1538
|
+
children?: ChildValue32;
|
|
1348
1539
|
classes?: ResizablePanelClasses;
|
|
1349
1540
|
orientation?: "horizontal" | "vertical";
|
|
1350
1541
|
onResize?: (sizes: number[]) => void;
|
|
1351
1542
|
}
|
|
1352
|
-
declare const ComposedResizablePanel: ((props: ComposedResizablePanelProps) => HTMLElement) & {
|
|
1353
|
-
__classKeys?: ResizablePanelClassKey;
|
|
1354
|
-
Panel: (props: PanelSlotProps) => HTMLElement;
|
|
1355
|
-
Handle: (props: HandleSlotProps) => HTMLElement;
|
|
1543
|
+
declare const ComposedResizablePanel: ((props: ComposedResizablePanelProps) => HTMLElement) & {
|
|
1544
|
+
__classKeys?: ResizablePanelClassKey;
|
|
1545
|
+
Panel: (props: PanelSlotProps) => HTMLElement;
|
|
1546
|
+
Handle: (props: HandleSlotProps) => HTMLElement;
|
|
1547
|
+
};
|
|
1548
|
+
import { Signal as Signal19 } from "@vertz/ui";
|
|
1549
|
+
interface ScrollAreaOptions extends ElementAttrs {
|
|
1550
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
1551
|
+
type?: "auto" | "always" | "hover" | "scroll";
|
|
1552
|
+
}
|
|
1553
|
+
interface ScrollAreaState {
|
|
1554
|
+
scrollTop: Signal19<number>;
|
|
1555
|
+
scrollLeft: Signal19<number>;
|
|
1556
|
+
}
|
|
1557
|
+
interface ScrollAreaElements {
|
|
1558
|
+
root: HTMLDivElement;
|
|
1559
|
+
viewport: HTMLDivElement;
|
|
1560
|
+
content: HTMLDivElement;
|
|
1561
|
+
scrollbarY: HTMLDivElement;
|
|
1562
|
+
thumbY: HTMLDivElement;
|
|
1563
|
+
scrollbarX: HTMLDivElement;
|
|
1564
|
+
thumbX: HTMLDivElement;
|
|
1565
|
+
}
|
|
1566
|
+
declare const ScrollArea: {
|
|
1567
|
+
Root: (options?: ScrollAreaOptions) => ScrollAreaElements & {
|
|
1568
|
+
state: ScrollAreaState;
|
|
1569
|
+
update: () => void;
|
|
1570
|
+
};
|
|
1356
1571
|
};
|
|
1357
|
-
import { ChildValue as
|
|
1572
|
+
import { ChildValue as ChildValue33 } from "@vertz/ui";
|
|
1358
1573
|
interface ScrollAreaClasses {
|
|
1359
1574
|
root?: string;
|
|
1360
1575
|
viewport?: string;
|
|
@@ -1363,14 +1578,41 @@ interface ScrollAreaClasses {
|
|
|
1363
1578
|
}
|
|
1364
1579
|
type ScrollAreaClassKey = keyof ScrollAreaClasses;
|
|
1365
1580
|
interface ComposedScrollAreaProps {
|
|
1366
|
-
children?:
|
|
1581
|
+
children?: ChildValue33;
|
|
1367
1582
|
classes?: ScrollAreaClasses;
|
|
1368
1583
|
orientation?: "vertical" | "horizontal" | "both";
|
|
1369
1584
|
}
|
|
1370
1585
|
declare const ComposedScrollArea: ((props: ComposedScrollAreaProps) => HTMLElement) & {
|
|
1371
1586
|
__classKeys?: ScrollAreaClassKey;
|
|
1372
1587
|
};
|
|
1373
|
-
import {
|
|
1588
|
+
import { Signal as Signal20 } from "@vertz/ui";
|
|
1589
|
+
interface SelectOptions extends ElementAttrs {
|
|
1590
|
+
defaultValue?: string;
|
|
1591
|
+
placeholder?: string;
|
|
1592
|
+
onValueChange?: (value: string) => void;
|
|
1593
|
+
positioning?: FloatingOptions;
|
|
1594
|
+
}
|
|
1595
|
+
interface SelectState {
|
|
1596
|
+
open: Signal20<boolean>;
|
|
1597
|
+
value: Signal20<string>;
|
|
1598
|
+
activeIndex: Signal20<number>;
|
|
1599
|
+
}
|
|
1600
|
+
interface SelectElements {
|
|
1601
|
+
trigger: HTMLButtonElement;
|
|
1602
|
+
content: HTMLDivElement;
|
|
1603
|
+
}
|
|
1604
|
+
declare const Select: {
|
|
1605
|
+
Root: (options?: SelectOptions) => SelectElements & {
|
|
1606
|
+
state: SelectState;
|
|
1607
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1608
|
+
Group: (label: string) => {
|
|
1609
|
+
el: HTMLDivElement;
|
|
1610
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1611
|
+
};
|
|
1612
|
+
Separator: () => HTMLHRElement;
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
import { ChildValue as ChildValue34 } from "@vertz/ui";
|
|
1374
1616
|
interface SelectClasses {
|
|
1375
1617
|
trigger?: string;
|
|
1376
1618
|
content?: string;
|
|
@@ -1380,20 +1622,20 @@ interface SelectClasses {
|
|
|
1380
1622
|
label?: string;
|
|
1381
1623
|
separator?: string;
|
|
1382
1624
|
}
|
|
1383
|
-
interface
|
|
1384
|
-
children?:
|
|
1625
|
+
interface SlotProps21 {
|
|
1626
|
+
children?: ChildValue34;
|
|
1385
1627
|
className?: string;
|
|
1386
1628
|
/** @deprecated Use `className` instead. */
|
|
1387
1629
|
class?: string;
|
|
1388
1630
|
}
|
|
1389
|
-
interface
|
|
1631
|
+
interface ItemProps7 extends SlotProps21 {
|
|
1390
1632
|
value: string;
|
|
1391
1633
|
}
|
|
1392
|
-
interface
|
|
1634
|
+
interface GroupProps5 extends SlotProps21 {
|
|
1393
1635
|
label: string;
|
|
1394
1636
|
}
|
|
1395
1637
|
interface ComposedSelectProps {
|
|
1396
|
-
children?:
|
|
1638
|
+
children?: ChildValue34;
|
|
1397
1639
|
classes?: SelectClasses;
|
|
1398
1640
|
defaultValue?: string;
|
|
1399
1641
|
placeholder?: string;
|
|
@@ -1403,13 +1645,50 @@ interface ComposedSelectProps {
|
|
|
1403
1645
|
type SelectClassKey = keyof SelectClasses;
|
|
1404
1646
|
declare const ComposedSelect: ((props: ComposedSelectProps) => HTMLElement) & {
|
|
1405
1647
|
__classKeys?: SelectClassKey;
|
|
1406
|
-
Trigger: (props:
|
|
1407
|
-
Content: (props:
|
|
1408
|
-
Item: (props:
|
|
1409
|
-
Group: (props:
|
|
1410
|
-
Separator: (props:
|
|
1648
|
+
Trigger: (props: SlotProps21) => HTMLElement;
|
|
1649
|
+
Content: (props: SlotProps21) => HTMLElement;
|
|
1650
|
+
Item: (props: ItemProps7) => HTMLElement;
|
|
1651
|
+
Group: (props: GroupProps5) => HTMLElement;
|
|
1652
|
+
Separator: (props: SlotProps21) => HTMLElement;
|
|
1411
1653
|
};
|
|
1412
|
-
|
|
1654
|
+
interface SeparatorClasses {
|
|
1655
|
+
base?: string;
|
|
1656
|
+
horizontal?: string;
|
|
1657
|
+
vertical?: string;
|
|
1658
|
+
}
|
|
1659
|
+
type SeparatorClassKey = keyof SeparatorClasses;
|
|
1660
|
+
interface ComposedSeparatorProps {
|
|
1661
|
+
classes?: SeparatorClasses;
|
|
1662
|
+
className?: string;
|
|
1663
|
+
/** @deprecated Use `className` instead. */
|
|
1664
|
+
class?: string;
|
|
1665
|
+
orientation?: "horizontal" | "vertical";
|
|
1666
|
+
}
|
|
1667
|
+
declare const ComposedSeparator: ComposedPrimitive<SeparatorClassKey, HTMLElement>;
|
|
1668
|
+
import { Signal as Signal21 } from "@vertz/ui";
|
|
1669
|
+
type SheetSide = "left" | "right" | "top" | "bottom";
|
|
1670
|
+
interface SheetOptions {
|
|
1671
|
+
side?: SheetSide;
|
|
1672
|
+
defaultOpen?: boolean;
|
|
1673
|
+
onOpenChange?: (open: boolean) => void;
|
|
1674
|
+
}
|
|
1675
|
+
interface SheetState {
|
|
1676
|
+
open: Signal21<boolean>;
|
|
1677
|
+
}
|
|
1678
|
+
interface SheetElements {
|
|
1679
|
+
trigger: HTMLButtonElement;
|
|
1680
|
+
overlay: HTMLDivElement;
|
|
1681
|
+
content: HTMLDivElement;
|
|
1682
|
+
close: HTMLButtonElement;
|
|
1683
|
+
show: () => void;
|
|
1684
|
+
hide: () => void;
|
|
1685
|
+
}
|
|
1686
|
+
declare const Sheet: {
|
|
1687
|
+
Root: (options?: SheetOptions) => SheetElements & {
|
|
1688
|
+
state: SheetState;
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
import { ChildValue as ChildValue35 } from "@vertz/ui";
|
|
1413
1692
|
interface SheetClasses {
|
|
1414
1693
|
overlay?: string;
|
|
1415
1694
|
content?: string;
|
|
@@ -1417,17 +1696,17 @@ interface SheetClasses {
|
|
|
1417
1696
|
description?: string;
|
|
1418
1697
|
close?: string;
|
|
1419
1698
|
}
|
|
1420
|
-
interface
|
|
1421
|
-
children?:
|
|
1699
|
+
interface SlotProps22 {
|
|
1700
|
+
children?: ChildValue35;
|
|
1422
1701
|
className?: string;
|
|
1423
1702
|
/** @deprecated Use `className` instead. */
|
|
1424
1703
|
class?: string;
|
|
1425
1704
|
}
|
|
1426
|
-
interface SheetContentProps extends
|
|
1705
|
+
interface SheetContentProps extends SlotProps22 {
|
|
1427
1706
|
showClose?: boolean;
|
|
1428
1707
|
}
|
|
1429
1708
|
interface ComposedSheetProps {
|
|
1430
|
-
children?:
|
|
1709
|
+
children?: ChildValue35;
|
|
1431
1710
|
classes?: SheetClasses;
|
|
1432
1711
|
side?: SheetSide;
|
|
1433
1712
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -1435,13 +1714,83 @@ interface ComposedSheetProps {
|
|
|
1435
1714
|
type SheetClassKey = keyof SheetClasses;
|
|
1436
1715
|
declare const ComposedSheet: ((props: ComposedSheetProps) => HTMLElement) & {
|
|
1437
1716
|
__classKeys?: SheetClassKey;
|
|
1438
|
-
Trigger: (props:
|
|
1717
|
+
Trigger: (props: SlotProps22) => HTMLElement;
|
|
1439
1718
|
Content: (props: SheetContentProps) => HTMLElement;
|
|
1440
|
-
Title: (props:
|
|
1441
|
-
Description: (props:
|
|
1442
|
-
Close: (props:
|
|
1719
|
+
Title: (props: SlotProps22) => HTMLElement;
|
|
1720
|
+
Description: (props: SlotProps22) => HTMLElement;
|
|
1721
|
+
Close: (props: SlotProps22) => HTMLElement;
|
|
1443
1722
|
};
|
|
1444
|
-
|
|
1723
|
+
interface SkeletonClasses {
|
|
1724
|
+
root?: string;
|
|
1725
|
+
}
|
|
1726
|
+
type SkeletonClassKey = keyof SkeletonClasses;
|
|
1727
|
+
interface ComposedSkeletonProps {
|
|
1728
|
+
classes?: SkeletonClasses;
|
|
1729
|
+
className?: string;
|
|
1730
|
+
/** @deprecated Use `className` instead. */
|
|
1731
|
+
class?: string;
|
|
1732
|
+
width?: string;
|
|
1733
|
+
height?: string;
|
|
1734
|
+
}
|
|
1735
|
+
interface SkeletonTextClasses {
|
|
1736
|
+
root?: string;
|
|
1737
|
+
line?: string;
|
|
1738
|
+
}
|
|
1739
|
+
type SkeletonTextClassKey = keyof SkeletonTextClasses;
|
|
1740
|
+
interface ComposedSkeletonTextProps {
|
|
1741
|
+
classes?: SkeletonTextClasses;
|
|
1742
|
+
className?: string;
|
|
1743
|
+
/** @deprecated Use `className` instead. */
|
|
1744
|
+
class?: string;
|
|
1745
|
+
/** Number of lines to render. Default: 3 */
|
|
1746
|
+
lines?: number;
|
|
1747
|
+
/** Width of the last line. Default: '75%' */
|
|
1748
|
+
lastLineWidth?: string;
|
|
1749
|
+
/** Height of each line. Default: '1rem' */
|
|
1750
|
+
height?: string;
|
|
1751
|
+
/** Gap between lines. Overrides the CSS class gap when provided. */
|
|
1752
|
+
gap?: string;
|
|
1753
|
+
}
|
|
1754
|
+
interface SkeletonCircleClasses {
|
|
1755
|
+
root?: string;
|
|
1756
|
+
}
|
|
1757
|
+
type SkeletonCircleClassKey = keyof SkeletonCircleClasses;
|
|
1758
|
+
interface ComposedSkeletonCircleProps {
|
|
1759
|
+
classes?: SkeletonCircleClasses;
|
|
1760
|
+
className?: string;
|
|
1761
|
+
/** @deprecated Use `className` instead. */
|
|
1762
|
+
class?: string;
|
|
1763
|
+
/** Diameter. Default: '2.5rem' */
|
|
1764
|
+
size?: string;
|
|
1765
|
+
}
|
|
1766
|
+
declare const ComposedSkeleton: ComposedPrimitive<SkeletonClassKey, HTMLElement> & {
|
|
1767
|
+
Text: ComposedPrimitive<SkeletonTextClassKey, HTMLElement>;
|
|
1768
|
+
Circle: ComposedPrimitive<SkeletonCircleClassKey, HTMLElement>;
|
|
1769
|
+
};
|
|
1770
|
+
import { Signal as Signal22 } from "@vertz/ui";
|
|
1771
|
+
interface SliderOptions extends ElementAttrs {
|
|
1772
|
+
defaultValue?: number;
|
|
1773
|
+
min?: number;
|
|
1774
|
+
max?: number;
|
|
1775
|
+
step?: number;
|
|
1776
|
+
disabled?: boolean;
|
|
1777
|
+
onValueChange?: (value: number) => void;
|
|
1778
|
+
}
|
|
1779
|
+
interface SliderState {
|
|
1780
|
+
value: Signal22<number>;
|
|
1781
|
+
disabled: Signal22<boolean>;
|
|
1782
|
+
}
|
|
1783
|
+
interface SliderElements {
|
|
1784
|
+
root: HTMLDivElement;
|
|
1785
|
+
thumb: HTMLDivElement;
|
|
1786
|
+
track: HTMLDivElement;
|
|
1787
|
+
}
|
|
1788
|
+
declare const Slider: {
|
|
1789
|
+
Root: (options?: SliderOptions) => SliderElements & {
|
|
1790
|
+
state: SliderState;
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1793
|
+
import { ChildValue as ChildValue36 } from "@vertz/ui";
|
|
1445
1794
|
interface SliderClasses {
|
|
1446
1795
|
root?: string;
|
|
1447
1796
|
track?: string;
|
|
@@ -1450,7 +1799,7 @@ interface SliderClasses {
|
|
|
1450
1799
|
}
|
|
1451
1800
|
type SliderClassKey = keyof SliderClasses;
|
|
1452
1801
|
interface ComposedSliderProps {
|
|
1453
|
-
children?:
|
|
1802
|
+
children?: ChildValue36;
|
|
1454
1803
|
classes?: SliderClasses;
|
|
1455
1804
|
defaultValue?: number;
|
|
1456
1805
|
min?: number;
|
|
@@ -1462,14 +1811,22 @@ interface ComposedSliderProps {
|
|
|
1462
1811
|
declare const ComposedSlider: ((props: ComposedSliderProps) => HTMLElement) & {
|
|
1463
1812
|
__classKeys?: SliderClassKey;
|
|
1464
1813
|
};
|
|
1465
|
-
|
|
1814
|
+
interface SwitchOptions extends ElementAttrs {
|
|
1815
|
+
defaultChecked?: boolean;
|
|
1816
|
+
disabled?: boolean;
|
|
1817
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1818
|
+
}
|
|
1819
|
+
declare const Switch: {
|
|
1820
|
+
Root: (options?: SwitchOptions) => HTMLButtonElement;
|
|
1821
|
+
};
|
|
1822
|
+
import { ChildValue as ChildValue37 } from "@vertz/ui";
|
|
1466
1823
|
interface SwitchClasses {
|
|
1467
1824
|
root?: string;
|
|
1468
1825
|
thumb?: string;
|
|
1469
1826
|
}
|
|
1470
1827
|
type SwitchClassKey = keyof SwitchClasses;
|
|
1471
1828
|
interface ComposedSwitchProps {
|
|
1472
|
-
children?:
|
|
1829
|
+
children?: ChildValue37;
|
|
1473
1830
|
classes?: SwitchClasses;
|
|
1474
1831
|
defaultChecked?: boolean;
|
|
1475
1832
|
disabled?: boolean;
|
|
@@ -1478,26 +1835,82 @@ interface ComposedSwitchProps {
|
|
|
1478
1835
|
declare const ComposedSwitch: ((props: ComposedSwitchProps) => HTMLElement) & {
|
|
1479
1836
|
__classKeys?: SwitchClassKey;
|
|
1480
1837
|
};
|
|
1481
|
-
import { ChildValue as
|
|
1838
|
+
import { ChildValue as ChildValue38 } from "@vertz/ui";
|
|
1839
|
+
interface TableClasses {
|
|
1840
|
+
root?: string;
|
|
1841
|
+
header?: string;
|
|
1842
|
+
body?: string;
|
|
1843
|
+
row?: string;
|
|
1844
|
+
head?: string;
|
|
1845
|
+
cell?: string;
|
|
1846
|
+
caption?: string;
|
|
1847
|
+
footer?: string;
|
|
1848
|
+
}
|
|
1849
|
+
type TableClassKey = keyof TableClasses;
|
|
1850
|
+
interface SlotProps23 {
|
|
1851
|
+
children?: ChildValue38;
|
|
1852
|
+
className?: string;
|
|
1853
|
+
class?: string;
|
|
1854
|
+
}
|
|
1855
|
+
interface ComposedTableProps {
|
|
1856
|
+
children?: ChildValue38;
|
|
1857
|
+
classes?: TableClasses;
|
|
1858
|
+
className?: string;
|
|
1859
|
+
class?: string;
|
|
1860
|
+
}
|
|
1861
|
+
declare const ComposedTable: ((props: ComposedTableProps) => HTMLElement) & {
|
|
1862
|
+
__classKeys?: TableClassKey;
|
|
1863
|
+
Header: (props: SlotProps23) => HTMLElement;
|
|
1864
|
+
Body: (props: SlotProps23) => HTMLElement;
|
|
1865
|
+
Row: (props: SlotProps23) => HTMLElement;
|
|
1866
|
+
Head: (props: SlotProps23) => HTMLElement;
|
|
1867
|
+
Cell: (props: SlotProps23) => HTMLElement;
|
|
1868
|
+
Caption: (props: SlotProps23) => HTMLElement;
|
|
1869
|
+
Footer: (props: SlotProps23) => HTMLElement;
|
|
1870
|
+
};
|
|
1871
|
+
import { Signal as Signal23 } from "@vertz/ui";
|
|
1872
|
+
interface TabsOptions extends ElementAttrs {
|
|
1873
|
+
defaultValue?: string;
|
|
1874
|
+
orientation?: "horizontal" | "vertical";
|
|
1875
|
+
onValueChange?: (value: string) => void;
|
|
1876
|
+
}
|
|
1877
|
+
interface TabsState {
|
|
1878
|
+
value: Signal23<string>;
|
|
1879
|
+
}
|
|
1880
|
+
interface TabsElements {
|
|
1881
|
+
root: HTMLElement;
|
|
1882
|
+
list: HTMLElement;
|
|
1883
|
+
}
|
|
1884
|
+
declare const Tabs: {
|
|
1885
|
+
Root: (options?: TabsOptions) => TabsElements & {
|
|
1886
|
+
state: TabsState;
|
|
1887
|
+
Tab: (value: string, label?: string) => {
|
|
1888
|
+
trigger: HTMLElement;
|
|
1889
|
+
panel: HTMLElement;
|
|
1890
|
+
};
|
|
1891
|
+
destroy: () => void;
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
import { ChildValue as ChildValue39 } from "@vertz/ui";
|
|
1482
1895
|
interface TabsClasses {
|
|
1483
1896
|
list?: string;
|
|
1484
1897
|
trigger?: string;
|
|
1485
1898
|
panel?: string;
|
|
1486
1899
|
}
|
|
1487
|
-
interface
|
|
1488
|
-
children?:
|
|
1900
|
+
interface SlotProps24 {
|
|
1901
|
+
children?: ChildValue39;
|
|
1489
1902
|
className?: string;
|
|
1490
1903
|
/** @deprecated Use `className` instead. */
|
|
1491
1904
|
class?: string;
|
|
1492
1905
|
}
|
|
1493
|
-
interface TriggerProps2 extends
|
|
1906
|
+
interface TriggerProps2 extends SlotProps24 {
|
|
1494
1907
|
value: string;
|
|
1495
1908
|
}
|
|
1496
|
-
interface ContentProps2 extends
|
|
1909
|
+
interface ContentProps2 extends SlotProps24 {
|
|
1497
1910
|
value: string;
|
|
1498
1911
|
}
|
|
1499
1912
|
interface ComposedTabsProps {
|
|
1500
|
-
children?:
|
|
1913
|
+
children?: ChildValue39;
|
|
1501
1914
|
classes?: TabsClasses;
|
|
1502
1915
|
defaultValue?: string;
|
|
1503
1916
|
onValueChange?: (value: string) => void;
|
|
@@ -1506,17 +1919,65 @@ interface ComposedTabsProps {
|
|
|
1506
1919
|
type TabsClassKey = keyof TabsClasses;
|
|
1507
1920
|
declare const ComposedTabs: ((props: ComposedTabsProps) => HTMLElement) & {
|
|
1508
1921
|
__classKeys?: TabsClassKey;
|
|
1509
|
-
List: (props:
|
|
1922
|
+
List: (props: SlotProps24) => HTMLElement;
|
|
1510
1923
|
Trigger: (props: TriggerProps2) => HTMLElement;
|
|
1511
1924
|
Content: (props: ContentProps2) => HTMLElement;
|
|
1512
1925
|
};
|
|
1513
|
-
|
|
1926
|
+
interface TextareaClasses {
|
|
1927
|
+
base?: string;
|
|
1928
|
+
}
|
|
1929
|
+
type TextareaClassKey = keyof TextareaClasses;
|
|
1930
|
+
interface ComposedTextareaProps {
|
|
1931
|
+
classes?: TextareaClasses;
|
|
1932
|
+
className?: string;
|
|
1933
|
+
/** @deprecated Use `className` instead. */
|
|
1934
|
+
class?: string;
|
|
1935
|
+
name?: string;
|
|
1936
|
+
placeholder?: string;
|
|
1937
|
+
disabled?: boolean;
|
|
1938
|
+
value?: string;
|
|
1939
|
+
rows?: number;
|
|
1940
|
+
[key: string]: unknown;
|
|
1941
|
+
}
|
|
1942
|
+
declare const ComposedTextarea: ComposedPrimitive<TextareaClassKey, HTMLElement>;
|
|
1943
|
+
import { Signal as Signal24 } from "@vertz/ui";
|
|
1944
|
+
interface ToastOptions extends ElementAttrs {
|
|
1945
|
+
duration?: number;
|
|
1946
|
+
politeness?: "polite" | "assertive";
|
|
1947
|
+
}
|
|
1948
|
+
interface ToastMessage {
|
|
1949
|
+
id: string;
|
|
1950
|
+
content: string;
|
|
1951
|
+
el: HTMLDivElement;
|
|
1952
|
+
}
|
|
1953
|
+
interface ToastState {
|
|
1954
|
+
messages: Signal24<ToastMessage[]>;
|
|
1955
|
+
}
|
|
1956
|
+
interface ToastElements {
|
|
1957
|
+
region: HTMLDivElement;
|
|
1958
|
+
}
|
|
1959
|
+
declare const Toast: {
|
|
1960
|
+
Root: (options?: ToastOptions) => ToastElements & {
|
|
1961
|
+
state: ToastState;
|
|
1962
|
+
announce: (content: string) => ToastMessage;
|
|
1963
|
+
dismiss: (id: string) => void;
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
interface ToggleOptions extends ElementAttrs {
|
|
1967
|
+
defaultPressed?: boolean;
|
|
1968
|
+
disabled?: boolean;
|
|
1969
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1970
|
+
}
|
|
1971
|
+
declare const Toggle: {
|
|
1972
|
+
Root: (options?: ToggleOptions) => HTMLButtonElement;
|
|
1973
|
+
};
|
|
1974
|
+
import { ChildValue as ChildValue40 } from "@vertz/ui";
|
|
1514
1975
|
interface ToggleClasses {
|
|
1515
1976
|
root?: string;
|
|
1516
1977
|
}
|
|
1517
1978
|
type ToggleClassKey = keyof ToggleClasses;
|
|
1518
1979
|
interface ComposedToggleProps {
|
|
1519
|
-
children?:
|
|
1980
|
+
children?: ChildValue40;
|
|
1520
1981
|
classes?: ToggleClasses;
|
|
1521
1982
|
defaultPressed?: boolean;
|
|
1522
1983
|
disabled?: boolean;
|
|
@@ -1525,7 +1986,28 @@ interface ComposedToggleProps {
|
|
|
1525
1986
|
declare const ComposedToggle: ((props: ComposedToggleProps) => HTMLElement) & {
|
|
1526
1987
|
__classKeys?: ToggleClassKey;
|
|
1527
1988
|
};
|
|
1528
|
-
import {
|
|
1989
|
+
import { Signal as Signal25 } from "@vertz/ui";
|
|
1990
|
+
interface ToggleGroupOptions extends ElementAttrs {
|
|
1991
|
+
type?: "single" | "multiple";
|
|
1992
|
+
defaultValue?: string[];
|
|
1993
|
+
orientation?: "horizontal" | "vertical";
|
|
1994
|
+
disabled?: boolean;
|
|
1995
|
+
onValueChange?: (value: string[]) => void;
|
|
1996
|
+
}
|
|
1997
|
+
interface ToggleGroupState {
|
|
1998
|
+
value: Signal25<string[]>;
|
|
1999
|
+
disabled: Signal25<boolean>;
|
|
2000
|
+
}
|
|
2001
|
+
interface ToggleGroupElements {
|
|
2002
|
+
root: HTMLDivElement;
|
|
2003
|
+
}
|
|
2004
|
+
declare const ToggleGroup: {
|
|
2005
|
+
Root: (options?: ToggleGroupOptions) => ToggleGroupElements & {
|
|
2006
|
+
state: ToggleGroupState;
|
|
2007
|
+
Item: (value: string) => HTMLButtonElement;
|
|
2008
|
+
};
|
|
2009
|
+
};
|
|
2010
|
+
import { ChildValue as ChildValue41 } from "@vertz/ui";
|
|
1529
2011
|
interface ToggleGroupClasses {
|
|
1530
2012
|
root?: string;
|
|
1531
2013
|
item?: string;
|
|
@@ -1533,10 +2015,10 @@ interface ToggleGroupClasses {
|
|
|
1533
2015
|
type ToggleGroupClassKey = keyof ToggleGroupClasses;
|
|
1534
2016
|
interface ToggleGroupItemProps {
|
|
1535
2017
|
value: string;
|
|
1536
|
-
children?:
|
|
2018
|
+
children?: ChildValue41;
|
|
1537
2019
|
}
|
|
1538
2020
|
interface ComposedToggleGroupProps {
|
|
1539
|
-
children?:
|
|
2021
|
+
children?: ChildValue41;
|
|
1540
2022
|
classes?: ToggleGroupClasses;
|
|
1541
2023
|
type?: "single" | "multiple";
|
|
1542
2024
|
defaultValue?: string[];
|
|
@@ -1548,18 +2030,36 @@ declare const ComposedToggleGroup: ((props: ComposedToggleGroupProps) => HTMLEle
|
|
|
1548
2030
|
__classKeys?: ToggleGroupClassKey;
|
|
1549
2031
|
Item: (props: ToggleGroupItemProps) => HTMLElement;
|
|
1550
2032
|
};
|
|
1551
|
-
import {
|
|
2033
|
+
import { Signal as Signal26 } from "@vertz/ui";
|
|
2034
|
+
interface TooltipOptions extends ElementAttrs {
|
|
2035
|
+
delay?: number;
|
|
2036
|
+
onOpenChange?: (open: boolean) => void;
|
|
2037
|
+
positioning?: FloatingOptions;
|
|
2038
|
+
}
|
|
2039
|
+
interface TooltipState {
|
|
2040
|
+
open: Signal26<boolean>;
|
|
2041
|
+
}
|
|
2042
|
+
interface TooltipElements {
|
|
2043
|
+
trigger: HTMLElement;
|
|
2044
|
+
content: HTMLElement;
|
|
2045
|
+
}
|
|
2046
|
+
declare const Tooltip: {
|
|
2047
|
+
Root: (options?: TooltipOptions) => TooltipElements & {
|
|
2048
|
+
state: TooltipState;
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2051
|
+
import { ChildValue as ChildValue42 } from "@vertz/ui";
|
|
1552
2052
|
interface TooltipClasses {
|
|
1553
2053
|
content?: string;
|
|
1554
2054
|
}
|
|
1555
|
-
interface
|
|
1556
|
-
children?:
|
|
2055
|
+
interface SlotProps25 {
|
|
2056
|
+
children?: ChildValue42;
|
|
1557
2057
|
className?: string;
|
|
1558
2058
|
/** @deprecated Use `className` instead. */
|
|
1559
2059
|
class?: string;
|
|
1560
2060
|
}
|
|
1561
2061
|
interface ComposedTooltipProps {
|
|
1562
|
-
children?:
|
|
2062
|
+
children?: ChildValue42;
|
|
1563
2063
|
classes?: TooltipClasses;
|
|
1564
2064
|
delay?: number;
|
|
1565
2065
|
positioning?: FloatingOptions;
|
|
@@ -1567,8 +2067,8 @@ interface ComposedTooltipProps {
|
|
|
1567
2067
|
type TooltipClassKey = keyof TooltipClasses;
|
|
1568
2068
|
declare const ComposedTooltip: ((props: ComposedTooltipProps) => HTMLElement) & {
|
|
1569
2069
|
__classKeys?: TooltipClassKey;
|
|
1570
|
-
Trigger: (props:
|
|
1571
|
-
Content: (props:
|
|
2070
|
+
Trigger: (props: SlotProps25) => HTMLElement;
|
|
2071
|
+
Content: (props: SlotProps25) => HTMLElement;
|
|
1572
2072
|
};
|
|
1573
2073
|
/**
|
|
1574
2074
|
* Typed event handler props for interactive themed components.
|
|
@@ -1592,4 +2092,4 @@ interface ElementEventHandlers {
|
|
|
1592
2092
|
onInput?: (event: InputEvent) => void;
|
|
1593
2093
|
onChange?: (event: Event) => void;
|
|
1594
2094
|
}
|
|
1595
|
-
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 };
|
|
2095
|
+
export { withStyles, TooltipState, TooltipOptions, TooltipElements, TooltipClasses, Tooltip, ToggleOptions, ToggleGroupState, ToggleGroupOptions, ToggleGroupElements, ToggleGroupClasses, ToggleGroup, ToggleClasses, Toggle, ToastState, ToastOptions, ToastMessage, ToastElements, Toast, TextareaClasses, TabsState, TabsOptions, TabsElements, TabsClasses, Tabs, TableClasses, TableClassKey, SwitchOptions, SwitchClasses, Switch, StyledPrimitive, StackDialogTitle, StackDialogHeader, StackDialogFooter, StackDialogDescription, StackDialogClose, StackDialogCancel, StackDialogBody, SliderState, SliderOptions, SliderElements, SliderClasses, Slider, SkeletonTextClasses, SkeletonTextClassKey, SkeletonClasses, SkeletonClassKey, SkeletonCircleClasses, SkeletonCircleClassKey, SheetState, SheetSide, SheetOptions, SheetElements, SheetClasses, Sheet, SeparatorClasses, 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, PaginationClasses, PaginationClassKey, NavigationMenuState, NavigationMenuOptions, NavigationMenuElements, NavigationMenuClasses, NavigationMenu, MenubarState, MenubarOptions, MenubarElements, MenubarClasses, Menubar, MenuState, MenuOptions, MenuElements, MenuClasses, MenuClassKey, Menu2 as Menu, ListClasses, ListClassKey, LabelClasses, InputClasses, HoverCardState, HoverCardOptions, HoverCardElements, HoverCardClasses, HoverCardClassKey, HoverCard, FormGroupClasses, FormGroupClassKey, FloatingOptions, EmptyStateClasses, EmptyStateClassKey, ElementOf, 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, ComposedTextareaProps, ComposedTextarea, ComposedTabsProps, ComposedTabs, ComposedTableProps, ComposedTable, ComposedSwitchProps, ComposedSwitch, ComposedSliderProps, ComposedSlider, ComposedSkeletonTextProps, ComposedSkeletonProps, ComposedSkeletonCircleProps, ComposedSkeleton, ComposedSheetProps, ComposedSheet, ComposedSeparatorProps, ComposedSeparator, ComposedSelectProps, ComposedSelect, ComposedScrollAreaProps, ComposedScrollArea, ComposedResizablePanelProps, ComposedResizablePanel, ComposedRadioGroupProps, ComposedRadioGroup, ComposedProgressProps, ComposedProgress, ComposedPrimitive, ComposedPopoverProps, ComposedPopover, ComposedPaginationProps, ComposedPagination, ComposedNavigationMenuProps, ComposedNavigationMenu, ComposedMenubarProps, ComposedMenubar, ComposedMenuProps, ComposedMenu, ComposedListProps, ComposedList, ComposedLabelProps, ComposedLabel, ComposedInputProps, ComposedInput, ComposedHoverCardProps, ComposedHoverCard, ComposedFormGroupProps, ComposedFormGroup, ComposedEmptyStateProps, ComposedEmptyState, ComposedDropdownMenuProps, ComposedDropdownMenu, ComposedDialogProps, ComposedDialog, ComposedDatePickerProps, ComposedDatePicker, ComposedContextMenuProps, ComposedContextMenu, ComposedCommandProps, ComposedCommand, ComposedComboboxProps, ComposedCombobox, ComposedCollapsibleProps, ComposedCollapsible, ComposedCheckboxProps, ComposedCheckbox, ComposedCarouselProps, ComposedCarousel, ComposedCardProps, ComposedCard, ComposedCalendarProps, ComposedCalendar, ComposedButtonProps, ComposedButton, ComposedBreadcrumbProps, ComposedBreadcrumb, ComposedBadgeProps, ComposedBadge, ComposedAvatarProps, ComposedAvatar, ComposedAlertProps, ComposedAlertDialogProps, ComposedAlertDialog, ComposedAlert, ComposedAccordionProps, ComposedAccordion, CommandState, CommandOptions, CommandElements, CommandClasses, Command, ComboboxState, ComboboxOptions, ComboboxElements, ComboboxClasses, ComboboxClassKey, Combobox, CollapsibleState, CollapsibleOptions, CollapsibleElements, CollapsibleClasses, CollapsibleClassKey, Collapsible, ClassesOf, CheckedState, CheckboxOptions, CheckboxClasses, Checkbox, CarouselState, CarouselOptions, CarouselElements, CarouselClasses, Carousel, CardClasses, CardClassKey, CalendarState, CalendarOptions, CalendarElements, CalendarClasses, Calendar, ButtonOptions, ButtonClasses, Button, BreadcrumbItemProps, BreadcrumbClasses, BreadcrumbClassKey, BadgeOptions, BadgeElements, BadgeClasses, Badge, AvatarClasses, AvatarClassKey, AnimateConfig, AlertDialogState, AlertDialogOptions, AlertDialogElements, AlertDialogClasses, AlertDialog, AlertClasses, AlertClassKey, AccordionState, AccordionOptions, AccordionElements, AccordionClasses, Accordion };
|