@vertz/ui-primitives 0.2.23 → 0.2.24
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-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-4gyg71bn.js +178 -0
- package/dist/shared/chunk-4z006v1j.js +467 -0
- package/dist/shared/{chunk-b25npqer.js → chunk-585ysr70.js} +1 -1
- 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-aa3w85hn.js +321 -0
- package/dist/shared/chunk-axpbdpgx.js +177 -0
- package/dist/shared/chunk-b4zzg457.js +410 -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-4894pmy6.js → chunk-f0wy7k56.js} +0 -1
- 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-kskxxc2q.js +228 -0
- 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 +1284 -817
- package/dist/src/index.js +78 -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/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,233 @@ 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;
|
|
911
|
-
}
|
|
912
|
-
interface CommandInputProps {
|
|
913
|
-
className?: string;
|
|
914
|
-
/** @deprecated Use `className` instead. */
|
|
915
|
-
class?: string;
|
|
1005
|
+
icon?: string;
|
|
1006
|
+
title?: string;
|
|
1007
|
+
description?: string;
|
|
1008
|
+
action?: string;
|
|
916
1009
|
}
|
|
917
|
-
|
|
918
|
-
|
|
1010
|
+
type EmptyStateClassKey = keyof EmptyStateClasses;
|
|
1011
|
+
interface SlotProps14 {
|
|
1012
|
+
children?: ChildValue20;
|
|
919
1013
|
className?: string;
|
|
920
1014
|
/** @deprecated Use `className` instead. */
|
|
921
1015
|
class?: string;
|
|
922
1016
|
}
|
|
923
|
-
interface
|
|
924
|
-
children?:
|
|
1017
|
+
interface ComposedEmptyStateProps {
|
|
1018
|
+
children?: ChildValue20;
|
|
1019
|
+
classes?: EmptyStateClasses;
|
|
925
1020
|
className?: string;
|
|
926
1021
|
/** @deprecated Use `className` instead. */
|
|
927
1022
|
class?: string;
|
|
928
1023
|
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
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;
|
|
936
1035
|
}
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
children?:
|
|
1036
|
+
type FormGroupClassKey = keyof FormGroupClasses;
|
|
1037
|
+
interface SlotProps15 {
|
|
1038
|
+
children?: ChildValue21;
|
|
940
1039
|
className?: string;
|
|
941
1040
|
/** @deprecated Use `className` instead. */
|
|
942
1041
|
class?: string;
|
|
943
1042
|
}
|
|
944
|
-
interface
|
|
1043
|
+
interface ComposedFormGroupProps {
|
|
1044
|
+
children?: ChildValue21;
|
|
1045
|
+
classes?: FormGroupClasses;
|
|
945
1046
|
className?: string;
|
|
946
1047
|
/** @deprecated Use `className` instead. */
|
|
947
1048
|
class?: string;
|
|
948
1049
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
filter?: (value: string, search: string) => boolean;
|
|
953
|
-
onSelect?: (value: string) => void;
|
|
954
|
-
onInputChange?: (value: string) => void;
|
|
955
|
-
placeholder?: string;
|
|
956
|
-
}
|
|
957
|
-
type CommandClassKey = keyof CommandClasses;
|
|
958
|
-
declare const ComposedCommand: ((props: ComposedCommandProps) => HTMLElement) & {
|
|
959
|
-
__classKeys?: CommandClassKey;
|
|
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;
|
|
1050
|
+
declare const ComposedFormGroup: ((props: ComposedFormGroupProps) => HTMLElement) & {
|
|
1051
|
+
__classKeys?: FormGroupClassKey;
|
|
1052
|
+
FormError: (props: SlotProps15) => HTMLElement;
|
|
966
1053
|
};
|
|
967
|
-
import {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
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;
|
|
979
|
-
}
|
|
980
|
-
/**
|
|
981
|
-
* Extract the class keys from a composed primitive's phantom brand.
|
|
982
|
-
*/
|
|
983
|
-
type ClassesOf<C> = C extends ComposedPrimitive<infer K> ? Record<K, string> : never;
|
|
984
|
-
/**
|
|
985
|
-
* Return type of withStyles: a callable that accepts all props except `classes`,
|
|
986
|
-
* plus all sub-component properties from the original component.
|
|
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 {
|
|
997
|
-
content?: string;
|
|
998
|
-
item?: string;
|
|
999
|
-
group?: string;
|
|
1000
|
-
label?: string;
|
|
1001
|
-
separator?: string;
|
|
1002
|
-
}
|
|
1003
|
-
interface SlotProps5 {
|
|
1004
|
-
children?: ChildValue8;
|
|
1005
|
-
className?: string;
|
|
1006
|
-
/** @deprecated Use `className` instead. */
|
|
1007
|
-
class?: string;
|
|
1008
|
-
}
|
|
1009
|
-
interface ItemProps2 extends SlotProps5 {
|
|
1010
|
-
value: string;
|
|
1011
|
-
}
|
|
1012
|
-
interface GroupProps extends SlotProps5 {
|
|
1013
|
-
label: string;
|
|
1014
|
-
}
|
|
1015
|
-
interface ComposedContextMenuProps {
|
|
1016
|
-
children?: ChildValue8;
|
|
1017
|
-
classes?: ContextMenuClasses;
|
|
1018
|
-
onSelect?: (value: string) => void;
|
|
1054
|
+
import { Signal as Signal12 } from "@vertz/ui";
|
|
1055
|
+
interface HoverCardOptions extends ElementAttrs {
|
|
1056
|
+
openDelay?: number;
|
|
1057
|
+
closeDelay?: number;
|
|
1019
1058
|
onOpenChange?: (open: boolean) => void;
|
|
1020
1059
|
positioning?: FloatingOptions;
|
|
1021
1060
|
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1061
|
+
interface HoverCardState {
|
|
1062
|
+
open: Signal12<boolean>;
|
|
1063
|
+
}
|
|
1064
|
+
interface HoverCardElements {
|
|
1065
|
+
trigger: HTMLElement;
|
|
1066
|
+
content: HTMLDivElement;
|
|
1067
|
+
}
|
|
1068
|
+
declare const HoverCard: {
|
|
1069
|
+
Root: (options?: HoverCardOptions) => HoverCardElements & {
|
|
1070
|
+
state: HoverCardState;
|
|
1071
|
+
};
|
|
1031
1072
|
};
|
|
1032
|
-
import { ChildValue as
|
|
1033
|
-
interface
|
|
1034
|
-
trigger?: string;
|
|
1073
|
+
import { ChildValue as ChildValue22 } from "@vertz/ui";
|
|
1074
|
+
interface HoverCardClasses {
|
|
1035
1075
|
content?: string;
|
|
1036
|
-
calendar?: CalendarClasses;
|
|
1037
1076
|
}
|
|
1038
|
-
type
|
|
1039
|
-
interface
|
|
1040
|
-
children?:
|
|
1077
|
+
type HoverCardClassKey = keyof HoverCardClasses;
|
|
1078
|
+
interface SlotProps16 {
|
|
1079
|
+
children?: ChildValue22;
|
|
1041
1080
|
className?: string;
|
|
1042
1081
|
/** @deprecated Use `className` instead. */
|
|
1043
1082
|
class?: string;
|
|
1044
1083
|
}
|
|
1045
|
-
interface
|
|
1046
|
-
children?:
|
|
1047
|
-
classes?:
|
|
1048
|
-
|
|
1049
|
-
|
|
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;
|
|
1058
|
-
placeholder?: string;
|
|
1059
|
-
onValueChange?: (value: Date | {
|
|
1060
|
-
from: Date;
|
|
1061
|
-
to: Date;
|
|
1062
|
-
} | null) => void;
|
|
1084
|
+
interface ComposedHoverCardProps {
|
|
1085
|
+
children?: ChildValue22;
|
|
1086
|
+
classes?: HoverCardClasses;
|
|
1087
|
+
openDelay?: number;
|
|
1088
|
+
closeDelay?: number;
|
|
1063
1089
|
onOpenChange?: (open: boolean) => void;
|
|
1064
|
-
|
|
1090
|
+
positioning?: FloatingOptions;
|
|
1065
1091
|
}
|
|
1066
|
-
declare const
|
|
1067
|
-
__classKeys?:
|
|
1068
|
-
Trigger: (props:
|
|
1069
|
-
Content: (props:
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
overlay?: string;
|
|
1074
|
-
content?: string;
|
|
1075
|
-
close?: string;
|
|
1076
|
-
header?: string;
|
|
1077
|
-
title?: string;
|
|
1078
|
-
description?: string;
|
|
1079
|
-
footer?: string;
|
|
1092
|
+
declare const ComposedHoverCard: ((props: ComposedHoverCardProps) => HTMLElement) & {
|
|
1093
|
+
__classKeys?: HoverCardClassKey;
|
|
1094
|
+
Trigger: (props: SlotProps16) => HTMLElement;
|
|
1095
|
+
Content: (props: SlotProps16) => HTMLElement;
|
|
1096
|
+
};
|
|
1097
|
+
interface InputClasses {
|
|
1098
|
+
base?: string;
|
|
1080
1099
|
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1100
|
+
type InputClassKey = keyof InputClasses;
|
|
1101
|
+
interface ComposedInputProps {
|
|
1102
|
+
classes?: InputClasses;
|
|
1083
1103
|
className?: string;
|
|
1084
1104
|
/** @deprecated Use `className` instead. */
|
|
1085
1105
|
class?: string;
|
|
1106
|
+
name?: string;
|
|
1107
|
+
placeholder?: string;
|
|
1108
|
+
type?: string;
|
|
1109
|
+
disabled?: boolean;
|
|
1110
|
+
value?: string;
|
|
1111
|
+
[key: string]: unknown;
|
|
1086
1112
|
}
|
|
1087
|
-
|
|
1088
|
-
|
|
1113
|
+
declare const ComposedInput: ComposedPrimitive<InputClassKey, HTMLElement>;
|
|
1114
|
+
import { ChildValue as ChildValue23 } from "@vertz/ui";
|
|
1115
|
+
interface LabelClasses {
|
|
1116
|
+
base?: string;
|
|
1089
1117
|
}
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
classes?:
|
|
1093
|
-
|
|
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;
|
|
1094
1126
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
Trigger: (props: SlotProps7) => HTMLElement;
|
|
1099
|
-
Content: (props: DialogContentProps) => HTMLElement;
|
|
1100
|
-
Title: (props: SlotProps7) => HTMLElement;
|
|
1101
|
-
Description: (props: SlotProps7) => HTMLElement;
|
|
1102
|
-
Header: (props: SlotProps7) => HTMLElement;
|
|
1103
|
-
Footer: (props: SlotProps7) => HTMLElement;
|
|
1104
|
-
Close: (props: SlotProps7) => HTMLElement;
|
|
1105
|
-
};
|
|
1106
|
-
import { ChildValue as ChildValue11 } from "@vertz/ui";
|
|
1107
|
-
interface DropdownMenuClasses {
|
|
1127
|
+
declare const ComposedLabel: ComposedPrimitive<LabelClassKey, HTMLElement>;
|
|
1128
|
+
import { ChildValue as ChildValue24 } from "@vertz/ui";
|
|
1129
|
+
interface MenuClasses {
|
|
1108
1130
|
content?: string;
|
|
1109
1131
|
item?: string;
|
|
1110
1132
|
group?: string;
|
|
1111
1133
|
label?: string;
|
|
1112
1134
|
separator?: string;
|
|
1113
1135
|
}
|
|
1114
|
-
interface
|
|
1115
|
-
children?:
|
|
1136
|
+
interface SlotProps17 {
|
|
1137
|
+
children?: ChildValue24;
|
|
1116
1138
|
className?: string;
|
|
1117
1139
|
/** @deprecated Use `className` instead. */
|
|
1118
1140
|
class?: string;
|
|
1119
1141
|
}
|
|
1120
|
-
interface
|
|
1142
|
+
interface ItemProps4 extends SlotProps17 {
|
|
1121
1143
|
value: string;
|
|
1122
1144
|
}
|
|
1123
|
-
interface
|
|
1145
|
+
interface GroupProps3 extends SlotProps17 {
|
|
1124
1146
|
label: string;
|
|
1125
1147
|
}
|
|
1126
|
-
interface
|
|
1127
|
-
children?:
|
|
1128
|
-
classes?:
|
|
1148
|
+
interface ComposedMenuProps {
|
|
1149
|
+
children?: ChildValue24;
|
|
1150
|
+
classes?: MenuClasses;
|
|
1129
1151
|
onSelect?: (value: string) => void;
|
|
1130
1152
|
onOpenChange?: (open: boolean) => void;
|
|
1131
1153
|
positioning?: FloatingOptions;
|
|
1132
1154
|
}
|
|
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:
|
|
1155
|
+
type MenuClassKey = keyof MenuClasses;
|
|
1156
|
+
declare const ComposedMenu: ((props: ComposedMenuProps) => HTMLElement) & {
|
|
1157
|
+
__classKeys?: MenuClassKey;
|
|
1158
|
+
Trigger: (props: SlotProps17) => HTMLElement;
|
|
1159
|
+
Content: (props: SlotProps17) => HTMLElement;
|
|
1160
|
+
Item: (props: ItemProps4) => HTMLElement;
|
|
1161
|
+
Group: (props: GroupProps3) => HTMLElement;
|
|
1162
|
+
Label: (props: SlotProps17) => HTMLElement;
|
|
1163
|
+
Separator: (props: SlotProps17) => HTMLElement;
|
|
1142
1164
|
};
|
|
1143
|
-
import {
|
|
1144
|
-
interface
|
|
1145
|
-
|
|
1165
|
+
import { Signal as Signal13 } from "@vertz/ui";
|
|
1166
|
+
interface MenubarOptions extends ElementAttrs {
|
|
1167
|
+
onSelect?: (value: string) => void;
|
|
1168
|
+
positioning?: FloatingOptions;
|
|
1146
1169
|
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
children?: ChildValue12;
|
|
1150
|
-
className?: string;
|
|
1151
|
-
/** @deprecated Use `className` instead. */
|
|
1152
|
-
class?: string;
|
|
1170
|
+
interface MenubarState {
|
|
1171
|
+
activeMenu: Signal13<string | null>;
|
|
1153
1172
|
}
|
|
1154
|
-
interface
|
|
1155
|
-
|
|
1156
|
-
classes?: HoverCardClasses;
|
|
1157
|
-
openDelay?: number;
|
|
1158
|
-
closeDelay?: number;
|
|
1159
|
-
onOpenChange?: (open: boolean) => void;
|
|
1160
|
-
positioning?: FloatingOptions;
|
|
1173
|
+
interface MenubarElements {
|
|
1174
|
+
root: HTMLDivElement;
|
|
1161
1175
|
}
|
|
1162
|
-
declare const
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1176
|
+
declare const Menubar: {
|
|
1177
|
+
Root: (options?: MenubarOptions) => MenubarElements & {
|
|
1178
|
+
state: MenubarState;
|
|
1179
|
+
Menu: (value: string, label?: string) => {
|
|
1180
|
+
trigger: HTMLButtonElement;
|
|
1181
|
+
content: HTMLDivElement;
|
|
1182
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1183
|
+
Group: (label: string) => {
|
|
1184
|
+
el: HTMLDivElement;
|
|
1185
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1186
|
+
};
|
|
1187
|
+
Separator: () => HTMLHRElement;
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1166
1190
|
};
|
|
1167
|
-
import { ChildValue as
|
|
1191
|
+
import { ChildValue as ChildValue25 } from "@vertz/ui";
|
|
1168
1192
|
interface MenubarClasses {
|
|
1169
1193
|
root?: string;
|
|
1170
1194
|
trigger?: string;
|
|
@@ -1174,23 +1198,23 @@ interface MenubarClasses {
|
|
|
1174
1198
|
label?: string;
|
|
1175
1199
|
separator?: string;
|
|
1176
1200
|
}
|
|
1177
|
-
interface
|
|
1178
|
-
children?:
|
|
1201
|
+
interface SlotProps18 {
|
|
1202
|
+
children?: ChildValue25;
|
|
1179
1203
|
className?: string;
|
|
1180
1204
|
/** @deprecated Use `className` instead. */
|
|
1181
1205
|
class?: string;
|
|
1182
1206
|
}
|
|
1183
|
-
interface MenuProps extends
|
|
1207
|
+
interface MenuProps extends SlotProps18 {
|
|
1184
1208
|
value: string;
|
|
1185
1209
|
}
|
|
1186
|
-
interface
|
|
1210
|
+
interface ItemProps5 extends SlotProps18 {
|
|
1187
1211
|
value: string;
|
|
1188
1212
|
}
|
|
1189
|
-
interface
|
|
1213
|
+
interface GroupProps4 extends SlotProps18 {
|
|
1190
1214
|
label: string;
|
|
1191
1215
|
}
|
|
1192
1216
|
interface ComposedMenubarProps {
|
|
1193
|
-
children?:
|
|
1217
|
+
children?: ChildValue25;
|
|
1194
1218
|
classes?: MenubarClasses;
|
|
1195
1219
|
onSelect?: (value: string) => void;
|
|
1196
1220
|
positioning?: FloatingOptions;
|
|
@@ -1199,14 +1223,38 @@ type MenubarClassKey = keyof MenubarClasses;
|
|
|
1199
1223
|
declare const ComposedMenubar: ((props: ComposedMenubarProps) => HTMLElement) & {
|
|
1200
1224
|
__classKeys?: MenubarClassKey;
|
|
1201
1225
|
Menu: (props: MenuProps) => HTMLElement;
|
|
1202
|
-
Trigger: (props:
|
|
1203
|
-
Content: (props:
|
|
1204
|
-
Item: (props:
|
|
1205
|
-
Group: (props:
|
|
1206
|
-
Label: (props:
|
|
1207
|
-
Separator: (props:
|
|
1226
|
+
Trigger: (props: SlotProps18) => HTMLElement;
|
|
1227
|
+
Content: (props: SlotProps18) => HTMLElement;
|
|
1228
|
+
Item: (props: ItemProps5) => HTMLElement;
|
|
1229
|
+
Group: (props: GroupProps4) => HTMLElement;
|
|
1230
|
+
Label: (props: SlotProps18) => HTMLElement;
|
|
1231
|
+
Separator: (props: SlotProps18) => HTMLElement;
|
|
1208
1232
|
};
|
|
1209
|
-
import {
|
|
1233
|
+
import { Signal as Signal14 } from "@vertz/ui";
|
|
1234
|
+
interface NavigationMenuOptions extends ElementAttrs {
|
|
1235
|
+
orientation?: "horizontal" | "vertical";
|
|
1236
|
+
delayOpen?: number;
|
|
1237
|
+
delayClose?: number;
|
|
1238
|
+
}
|
|
1239
|
+
interface NavigationMenuState {
|
|
1240
|
+
activeItem: Signal14<string | null>;
|
|
1241
|
+
}
|
|
1242
|
+
interface NavigationMenuElements {
|
|
1243
|
+
root: HTMLElement;
|
|
1244
|
+
list: HTMLElement;
|
|
1245
|
+
viewport: HTMLElement;
|
|
1246
|
+
}
|
|
1247
|
+
declare const NavigationMenu: {
|
|
1248
|
+
Root: (options?: NavigationMenuOptions) => NavigationMenuElements & {
|
|
1249
|
+
state: NavigationMenuState;
|
|
1250
|
+
Item: (value: string, label?: string) => {
|
|
1251
|
+
trigger: HTMLElement;
|
|
1252
|
+
content: HTMLElement;
|
|
1253
|
+
};
|
|
1254
|
+
Link: (href: string, label: string) => HTMLElement;
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
import { ChildValue as ChildValue26 } from "@vertz/ui";
|
|
1210
1258
|
interface NavigationMenuClasses {
|
|
1211
1259
|
root?: string;
|
|
1212
1260
|
list?: string;
|
|
@@ -1216,27 +1264,27 @@ interface NavigationMenuClasses {
|
|
|
1216
1264
|
viewport?: string;
|
|
1217
1265
|
}
|
|
1218
1266
|
interface ListProps {
|
|
1219
|
-
children?:
|
|
1267
|
+
children?: ChildValue26;
|
|
1220
1268
|
className?: string;
|
|
1221
1269
|
class?: string;
|
|
1222
1270
|
}
|
|
1223
|
-
interface
|
|
1271
|
+
interface ItemProps6 {
|
|
1224
1272
|
value: string;
|
|
1225
|
-
children?:
|
|
1273
|
+
children?: ChildValue26;
|
|
1226
1274
|
}
|
|
1227
1275
|
interface TriggerProps {
|
|
1228
|
-
children?:
|
|
1276
|
+
children?: ChildValue26;
|
|
1229
1277
|
className?: string;
|
|
1230
1278
|
class?: string;
|
|
1231
1279
|
}
|
|
1232
1280
|
interface ContentProps {
|
|
1233
|
-
children?:
|
|
1281
|
+
children?: ChildValue26;
|
|
1234
1282
|
className?: string;
|
|
1235
1283
|
class?: string;
|
|
1236
1284
|
}
|
|
1237
1285
|
interface LinkProps {
|
|
1238
1286
|
href: string;
|
|
1239
|
-
children?:
|
|
1287
|
+
children?: ChildValue26;
|
|
1240
1288
|
className?: string;
|
|
1241
1289
|
class?: string;
|
|
1242
1290
|
}
|
|
@@ -1245,7 +1293,7 @@ interface ViewportProps {
|
|
|
1245
1293
|
class?: string;
|
|
1246
1294
|
}
|
|
1247
1295
|
interface ComposedNavigationMenuProps {
|
|
1248
|
-
children?:
|
|
1296
|
+
children?: ChildValue26;
|
|
1249
1297
|
classes?: NavigationMenuClasses;
|
|
1250
1298
|
orientation?: "horizontal" | "vertical";
|
|
1251
1299
|
delayOpen?: number;
|
|
@@ -1255,24 +1303,71 @@ type NavigationMenuClassKey = keyof NavigationMenuClasses;
|
|
|
1255
1303
|
declare const ComposedNavigationMenu: ((props: ComposedNavigationMenuProps) => HTMLElement) & {
|
|
1256
1304
|
__classKeys?: NavigationMenuClassKey;
|
|
1257
1305
|
List: (props: ListProps) => HTMLElement;
|
|
1258
|
-
Item: (props:
|
|
1306
|
+
Item: (props: ItemProps6) => HTMLElement;
|
|
1259
1307
|
Trigger: (props: TriggerProps) => HTMLElement;
|
|
1260
1308
|
Content: (props: ContentProps) => HTMLElement;
|
|
1261
1309
|
Link: (props: LinkProps) => HTMLElement;
|
|
1262
1310
|
Viewport: (props: ViewportProps) => HTMLElement;
|
|
1263
1311
|
};
|
|
1264
|
-
import { ChildValue as
|
|
1312
|
+
import { ChildValue as ChildValue27 } from "@vertz/ui";
|
|
1313
|
+
interface PaginationClasses {
|
|
1314
|
+
nav?: string;
|
|
1315
|
+
list?: string;
|
|
1316
|
+
item?: string;
|
|
1317
|
+
link?: string;
|
|
1318
|
+
linkActive?: string;
|
|
1319
|
+
navButton?: string;
|
|
1320
|
+
ellipsis?: string;
|
|
1321
|
+
}
|
|
1322
|
+
type PaginationClassKey = keyof PaginationClasses;
|
|
1323
|
+
interface ComposedPaginationProps {
|
|
1324
|
+
currentPage: number;
|
|
1325
|
+
totalPages: number;
|
|
1326
|
+
onPageChange: (page: number) => void;
|
|
1327
|
+
siblingCount?: number;
|
|
1328
|
+
classes?: PaginationClasses;
|
|
1329
|
+
className?: string;
|
|
1330
|
+
class?: string;
|
|
1331
|
+
/** Custom content for the previous button. Defaults to "Previous". */
|
|
1332
|
+
prevContent?: ChildValue27;
|
|
1333
|
+
/** Custom content for the next button. Defaults to "Next". */
|
|
1334
|
+
nextContent?: ChildValue27;
|
|
1335
|
+
/** Custom content for the ellipsis. Defaults to "...". */
|
|
1336
|
+
ellipsisContent?: ChildValue27;
|
|
1337
|
+
}
|
|
1338
|
+
declare const ComposedPagination: ((props: ComposedPaginationProps) => HTMLElement) & {
|
|
1339
|
+
__classKeys?: PaginationClassKey;
|
|
1340
|
+
};
|
|
1341
|
+
import { Signal as Signal15 } from "@vertz/ui";
|
|
1342
|
+
interface PopoverOptions extends ElementAttrs {
|
|
1343
|
+
defaultOpen?: boolean;
|
|
1344
|
+
onOpenChange?: (open: boolean) => void;
|
|
1345
|
+
positioning?: FloatingOptions;
|
|
1346
|
+
}
|
|
1347
|
+
interface PopoverState {
|
|
1348
|
+
open: Signal15<boolean>;
|
|
1349
|
+
}
|
|
1350
|
+
interface PopoverElements {
|
|
1351
|
+
trigger: HTMLButtonElement;
|
|
1352
|
+
content: HTMLDivElement;
|
|
1353
|
+
}
|
|
1354
|
+
declare const Popover: {
|
|
1355
|
+
Root: (options?: PopoverOptions) => PopoverElements & {
|
|
1356
|
+
state: PopoverState;
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
import { ChildValue as ChildValue28 } from "@vertz/ui";
|
|
1265
1360
|
interface PopoverClasses {
|
|
1266
1361
|
content?: string;
|
|
1267
1362
|
}
|
|
1268
|
-
interface
|
|
1269
|
-
children?:
|
|
1363
|
+
interface SlotProps19 {
|
|
1364
|
+
children?: ChildValue28;
|
|
1270
1365
|
className?: string;
|
|
1271
1366
|
/** @deprecated Use `className` instead. */
|
|
1272
1367
|
class?: string;
|
|
1273
1368
|
}
|
|
1274
1369
|
interface ComposedPopoverProps {
|
|
1275
|
-
children?:
|
|
1370
|
+
children?: ChildValue28;
|
|
1276
1371
|
classes?: PopoverClasses;
|
|
1277
1372
|
onOpenChange?: (open: boolean) => void;
|
|
1278
1373
|
positioning?: FloatingOptions;
|
|
@@ -1280,17 +1375,36 @@ interface ComposedPopoverProps {
|
|
|
1280
1375
|
type PopoverClassKey = keyof PopoverClasses;
|
|
1281
1376
|
declare const ComposedPopover: ((props: ComposedPopoverProps) => HTMLElement) & {
|
|
1282
1377
|
__classKeys?: PopoverClassKey;
|
|
1283
|
-
Trigger: (props:
|
|
1284
|
-
Content: (props:
|
|
1378
|
+
Trigger: (props: SlotProps19) => HTMLElement;
|
|
1379
|
+
Content: (props: SlotProps19) => HTMLElement;
|
|
1285
1380
|
};
|
|
1286
|
-
import {
|
|
1381
|
+
import { Signal as Signal16 } from "@vertz/ui";
|
|
1382
|
+
interface ProgressOptions extends ElementAttrs {
|
|
1383
|
+
defaultValue?: number;
|
|
1384
|
+
min?: number;
|
|
1385
|
+
max?: number;
|
|
1386
|
+
}
|
|
1387
|
+
interface ProgressState {
|
|
1388
|
+
value: Signal16<number>;
|
|
1389
|
+
}
|
|
1390
|
+
interface ProgressElements {
|
|
1391
|
+
root: HTMLElement;
|
|
1392
|
+
indicator: HTMLElement;
|
|
1393
|
+
}
|
|
1394
|
+
declare const Progress: {
|
|
1395
|
+
Root: (options?: ProgressOptions) => ProgressElements & {
|
|
1396
|
+
state: ProgressState;
|
|
1397
|
+
setValue: (value: number) => void;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
import { ChildValue as ChildValue29 } from "@vertz/ui";
|
|
1287
1401
|
interface ProgressClasses {
|
|
1288
1402
|
root?: string;
|
|
1289
1403
|
indicator?: string;
|
|
1290
1404
|
}
|
|
1291
1405
|
type ProgressClassKey = keyof ProgressClasses;
|
|
1292
1406
|
interface ComposedProgressProps {
|
|
1293
|
-
children?:
|
|
1407
|
+
children?: ChildValue29;
|
|
1294
1408
|
classes?: ProgressClasses;
|
|
1295
1409
|
defaultValue?: number;
|
|
1296
1410
|
min?: number;
|
|
@@ -1299,7 +1413,28 @@ interface ComposedProgressProps {
|
|
|
1299
1413
|
declare const ComposedProgress: ((props: ComposedProgressProps) => HTMLElement) & {
|
|
1300
1414
|
__classKeys?: ProgressClassKey;
|
|
1301
1415
|
};
|
|
1302
|
-
import {
|
|
1416
|
+
import { Signal as Signal17 } from "@vertz/ui";
|
|
1417
|
+
interface RadioOptions extends ElementAttrs {
|
|
1418
|
+
defaultValue?: string;
|
|
1419
|
+
onValueChange?: (value: string) => void;
|
|
1420
|
+
}
|
|
1421
|
+
interface RadioState {
|
|
1422
|
+
value: Signal17<string>;
|
|
1423
|
+
}
|
|
1424
|
+
interface RadioElements {
|
|
1425
|
+
root: HTMLElement;
|
|
1426
|
+
}
|
|
1427
|
+
interface RadioItemOptions {
|
|
1428
|
+
disabled?: boolean;
|
|
1429
|
+
}
|
|
1430
|
+
declare const Radio: {
|
|
1431
|
+
Root: (options?: RadioOptions) => RadioElements & {
|
|
1432
|
+
state: RadioState;
|
|
1433
|
+
Item: (value: string, label?: string, itemOptions?: RadioItemOptions) => HTMLElement;
|
|
1434
|
+
destroy: () => void;
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
import { ChildValue as ChildValue30 } from "@vertz/ui";
|
|
1303
1438
|
interface RadioGroupClasses {
|
|
1304
1439
|
root?: string;
|
|
1305
1440
|
item?: string;
|
|
@@ -1310,10 +1445,10 @@ type RadioGroupClassKey = keyof RadioGroupClasses;
|
|
|
1310
1445
|
interface RadioGroupItemProps {
|
|
1311
1446
|
value: string;
|
|
1312
1447
|
disabled?: boolean;
|
|
1313
|
-
children?:
|
|
1448
|
+
children?: ChildValue30;
|
|
1314
1449
|
}
|
|
1315
1450
|
interface ComposedRadioGroupProps {
|
|
1316
|
-
children?:
|
|
1451
|
+
children?: ChildValue30;
|
|
1317
1452
|
classes?: RadioGroupClasses;
|
|
1318
1453
|
defaultValue?: string;
|
|
1319
1454
|
onValueChange?: (value: string) => void;
|
|
@@ -1322,7 +1457,30 @@ declare const ComposedRadioGroup: ((props: ComposedRadioGroupProps) => HTMLEleme
|
|
|
1322
1457
|
__classKeys?: RadioGroupClassKey;
|
|
1323
1458
|
Item: (props: RadioGroupItemProps) => HTMLElement;
|
|
1324
1459
|
};
|
|
1325
|
-
import {
|
|
1460
|
+
import { Signal as Signal18 } from "@vertz/ui";
|
|
1461
|
+
interface ResizablePanelOptions extends ElementAttrs {
|
|
1462
|
+
orientation?: "horizontal" | "vertical";
|
|
1463
|
+
onResize?: (sizes: number[]) => void;
|
|
1464
|
+
}
|
|
1465
|
+
interface PanelOptions {
|
|
1466
|
+
defaultSize?: number;
|
|
1467
|
+
minSize?: number;
|
|
1468
|
+
maxSize?: number;
|
|
1469
|
+
}
|
|
1470
|
+
interface ResizablePanelState {
|
|
1471
|
+
sizes: Signal18<number[]>;
|
|
1472
|
+
}
|
|
1473
|
+
interface ResizablePanelElements {
|
|
1474
|
+
root: HTMLDivElement;
|
|
1475
|
+
}
|
|
1476
|
+
declare const ResizablePanel: {
|
|
1477
|
+
Root: (options?: ResizablePanelOptions) => ResizablePanelElements & {
|
|
1478
|
+
state: ResizablePanelState;
|
|
1479
|
+
Panel: (panelOptions?: PanelOptions) => HTMLDivElement;
|
|
1480
|
+
Handle: () => HTMLDivElement;
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
import { ChildValue as ChildValue31 } from "@vertz/ui";
|
|
1326
1484
|
interface ResizablePanelClasses {
|
|
1327
1485
|
root?: string;
|
|
1328
1486
|
panel?: string;
|
|
@@ -1330,7 +1488,7 @@ interface ResizablePanelClasses {
|
|
|
1330
1488
|
}
|
|
1331
1489
|
type ResizablePanelClassKey = keyof ResizablePanelClasses;
|
|
1332
1490
|
interface PanelSlotProps {
|
|
1333
|
-
children?:
|
|
1491
|
+
children?: ChildValue31;
|
|
1334
1492
|
className?: string;
|
|
1335
1493
|
/** @deprecated Use `className` instead. */
|
|
1336
1494
|
class?: string;
|
|
@@ -1344,17 +1502,41 @@ interface HandleSlotProps {
|
|
|
1344
1502
|
class?: string;
|
|
1345
1503
|
}
|
|
1346
1504
|
interface ComposedResizablePanelProps {
|
|
1347
|
-
children?:
|
|
1505
|
+
children?: ChildValue31;
|
|
1348
1506
|
classes?: ResizablePanelClasses;
|
|
1349
1507
|
orientation?: "horizontal" | "vertical";
|
|
1350
1508
|
onResize?: (sizes: number[]) => void;
|
|
1351
1509
|
}
|
|
1352
|
-
declare const ComposedResizablePanel: ((props: ComposedResizablePanelProps) => HTMLElement) & {
|
|
1353
|
-
__classKeys?: ResizablePanelClassKey;
|
|
1354
|
-
Panel: (props: PanelSlotProps) => HTMLElement;
|
|
1355
|
-
Handle: (props: HandleSlotProps) => HTMLElement;
|
|
1510
|
+
declare const ComposedResizablePanel: ((props: ComposedResizablePanelProps) => HTMLElement) & {
|
|
1511
|
+
__classKeys?: ResizablePanelClassKey;
|
|
1512
|
+
Panel: (props: PanelSlotProps) => HTMLElement;
|
|
1513
|
+
Handle: (props: HandleSlotProps) => HTMLElement;
|
|
1514
|
+
};
|
|
1515
|
+
import { Signal as Signal19 } from "@vertz/ui";
|
|
1516
|
+
interface ScrollAreaOptions extends ElementAttrs {
|
|
1517
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
1518
|
+
type?: "auto" | "always" | "hover" | "scroll";
|
|
1519
|
+
}
|
|
1520
|
+
interface ScrollAreaState {
|
|
1521
|
+
scrollTop: Signal19<number>;
|
|
1522
|
+
scrollLeft: Signal19<number>;
|
|
1523
|
+
}
|
|
1524
|
+
interface ScrollAreaElements {
|
|
1525
|
+
root: HTMLDivElement;
|
|
1526
|
+
viewport: HTMLDivElement;
|
|
1527
|
+
content: HTMLDivElement;
|
|
1528
|
+
scrollbarY: HTMLDivElement;
|
|
1529
|
+
thumbY: HTMLDivElement;
|
|
1530
|
+
scrollbarX: HTMLDivElement;
|
|
1531
|
+
thumbX: HTMLDivElement;
|
|
1532
|
+
}
|
|
1533
|
+
declare const ScrollArea: {
|
|
1534
|
+
Root: (options?: ScrollAreaOptions) => ScrollAreaElements & {
|
|
1535
|
+
state: ScrollAreaState;
|
|
1536
|
+
update: () => void;
|
|
1537
|
+
};
|
|
1356
1538
|
};
|
|
1357
|
-
import { ChildValue as
|
|
1539
|
+
import { ChildValue as ChildValue32 } from "@vertz/ui";
|
|
1358
1540
|
interface ScrollAreaClasses {
|
|
1359
1541
|
root?: string;
|
|
1360
1542
|
viewport?: string;
|
|
@@ -1363,14 +1545,41 @@ interface ScrollAreaClasses {
|
|
|
1363
1545
|
}
|
|
1364
1546
|
type ScrollAreaClassKey = keyof ScrollAreaClasses;
|
|
1365
1547
|
interface ComposedScrollAreaProps {
|
|
1366
|
-
children?:
|
|
1548
|
+
children?: ChildValue32;
|
|
1367
1549
|
classes?: ScrollAreaClasses;
|
|
1368
1550
|
orientation?: "vertical" | "horizontal" | "both";
|
|
1369
1551
|
}
|
|
1370
1552
|
declare const ComposedScrollArea: ((props: ComposedScrollAreaProps) => HTMLElement) & {
|
|
1371
1553
|
__classKeys?: ScrollAreaClassKey;
|
|
1372
1554
|
};
|
|
1373
|
-
import {
|
|
1555
|
+
import { Signal as Signal20 } from "@vertz/ui";
|
|
1556
|
+
interface SelectOptions extends ElementAttrs {
|
|
1557
|
+
defaultValue?: string;
|
|
1558
|
+
placeholder?: string;
|
|
1559
|
+
onValueChange?: (value: string) => void;
|
|
1560
|
+
positioning?: FloatingOptions;
|
|
1561
|
+
}
|
|
1562
|
+
interface SelectState {
|
|
1563
|
+
open: Signal20<boolean>;
|
|
1564
|
+
value: Signal20<string>;
|
|
1565
|
+
activeIndex: Signal20<number>;
|
|
1566
|
+
}
|
|
1567
|
+
interface SelectElements {
|
|
1568
|
+
trigger: HTMLButtonElement;
|
|
1569
|
+
content: HTMLDivElement;
|
|
1570
|
+
}
|
|
1571
|
+
declare const Select: {
|
|
1572
|
+
Root: (options?: SelectOptions) => SelectElements & {
|
|
1573
|
+
state: SelectState;
|
|
1574
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1575
|
+
Group: (label: string) => {
|
|
1576
|
+
el: HTMLDivElement;
|
|
1577
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
1578
|
+
};
|
|
1579
|
+
Separator: () => HTMLHRElement;
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
import { ChildValue as ChildValue33 } from "@vertz/ui";
|
|
1374
1583
|
interface SelectClasses {
|
|
1375
1584
|
trigger?: string;
|
|
1376
1585
|
content?: string;
|
|
@@ -1380,20 +1589,20 @@ interface SelectClasses {
|
|
|
1380
1589
|
label?: string;
|
|
1381
1590
|
separator?: string;
|
|
1382
1591
|
}
|
|
1383
|
-
interface
|
|
1384
|
-
children?:
|
|
1592
|
+
interface SlotProps20 {
|
|
1593
|
+
children?: ChildValue33;
|
|
1385
1594
|
className?: string;
|
|
1386
1595
|
/** @deprecated Use `className` instead. */
|
|
1387
1596
|
class?: string;
|
|
1388
1597
|
}
|
|
1389
|
-
interface
|
|
1598
|
+
interface ItemProps7 extends SlotProps20 {
|
|
1390
1599
|
value: string;
|
|
1391
1600
|
}
|
|
1392
|
-
interface
|
|
1601
|
+
interface GroupProps5 extends SlotProps20 {
|
|
1393
1602
|
label: string;
|
|
1394
1603
|
}
|
|
1395
1604
|
interface ComposedSelectProps {
|
|
1396
|
-
children?:
|
|
1605
|
+
children?: ChildValue33;
|
|
1397
1606
|
classes?: SelectClasses;
|
|
1398
1607
|
defaultValue?: string;
|
|
1399
1608
|
placeholder?: string;
|
|
@@ -1403,13 +1612,50 @@ interface ComposedSelectProps {
|
|
|
1403
1612
|
type SelectClassKey = keyof SelectClasses;
|
|
1404
1613
|
declare const ComposedSelect: ((props: ComposedSelectProps) => HTMLElement) & {
|
|
1405
1614
|
__classKeys?: SelectClassKey;
|
|
1406
|
-
Trigger: (props:
|
|
1407
|
-
Content: (props:
|
|
1408
|
-
Item: (props:
|
|
1409
|
-
Group: (props:
|
|
1410
|
-
Separator: (props:
|
|
1615
|
+
Trigger: (props: SlotProps20) => HTMLElement;
|
|
1616
|
+
Content: (props: SlotProps20) => HTMLElement;
|
|
1617
|
+
Item: (props: ItemProps7) => HTMLElement;
|
|
1618
|
+
Group: (props: GroupProps5) => HTMLElement;
|
|
1619
|
+
Separator: (props: SlotProps20) => HTMLElement;
|
|
1411
1620
|
};
|
|
1412
|
-
|
|
1621
|
+
interface SeparatorClasses {
|
|
1622
|
+
base?: string;
|
|
1623
|
+
horizontal?: string;
|
|
1624
|
+
vertical?: string;
|
|
1625
|
+
}
|
|
1626
|
+
type SeparatorClassKey = keyof SeparatorClasses;
|
|
1627
|
+
interface ComposedSeparatorProps {
|
|
1628
|
+
classes?: SeparatorClasses;
|
|
1629
|
+
className?: string;
|
|
1630
|
+
/** @deprecated Use `className` instead. */
|
|
1631
|
+
class?: string;
|
|
1632
|
+
orientation?: "horizontal" | "vertical";
|
|
1633
|
+
}
|
|
1634
|
+
declare const ComposedSeparator: ComposedPrimitive<SeparatorClassKey, HTMLElement>;
|
|
1635
|
+
import { Signal as Signal21 } from "@vertz/ui";
|
|
1636
|
+
type SheetSide = "left" | "right" | "top" | "bottom";
|
|
1637
|
+
interface SheetOptions {
|
|
1638
|
+
side?: SheetSide;
|
|
1639
|
+
defaultOpen?: boolean;
|
|
1640
|
+
onOpenChange?: (open: boolean) => void;
|
|
1641
|
+
}
|
|
1642
|
+
interface SheetState {
|
|
1643
|
+
open: Signal21<boolean>;
|
|
1644
|
+
}
|
|
1645
|
+
interface SheetElements {
|
|
1646
|
+
trigger: HTMLButtonElement;
|
|
1647
|
+
overlay: HTMLDivElement;
|
|
1648
|
+
content: HTMLDivElement;
|
|
1649
|
+
close: HTMLButtonElement;
|
|
1650
|
+
show: () => void;
|
|
1651
|
+
hide: () => void;
|
|
1652
|
+
}
|
|
1653
|
+
declare const Sheet: {
|
|
1654
|
+
Root: (options?: SheetOptions) => SheetElements & {
|
|
1655
|
+
state: SheetState;
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1658
|
+
import { ChildValue as ChildValue34 } from "@vertz/ui";
|
|
1413
1659
|
interface SheetClasses {
|
|
1414
1660
|
overlay?: string;
|
|
1415
1661
|
content?: string;
|
|
@@ -1417,17 +1663,17 @@ interface SheetClasses {
|
|
|
1417
1663
|
description?: string;
|
|
1418
1664
|
close?: string;
|
|
1419
1665
|
}
|
|
1420
|
-
interface
|
|
1421
|
-
children?:
|
|
1666
|
+
interface SlotProps21 {
|
|
1667
|
+
children?: ChildValue34;
|
|
1422
1668
|
className?: string;
|
|
1423
1669
|
/** @deprecated Use `className` instead. */
|
|
1424
1670
|
class?: string;
|
|
1425
1671
|
}
|
|
1426
|
-
interface SheetContentProps extends
|
|
1672
|
+
interface SheetContentProps extends SlotProps21 {
|
|
1427
1673
|
showClose?: boolean;
|
|
1428
1674
|
}
|
|
1429
1675
|
interface ComposedSheetProps {
|
|
1430
|
-
children?:
|
|
1676
|
+
children?: ChildValue34;
|
|
1431
1677
|
classes?: SheetClasses;
|
|
1432
1678
|
side?: SheetSide;
|
|
1433
1679
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -1435,13 +1681,83 @@ interface ComposedSheetProps {
|
|
|
1435
1681
|
type SheetClassKey = keyof SheetClasses;
|
|
1436
1682
|
declare const ComposedSheet: ((props: ComposedSheetProps) => HTMLElement) & {
|
|
1437
1683
|
__classKeys?: SheetClassKey;
|
|
1438
|
-
Trigger: (props:
|
|
1684
|
+
Trigger: (props: SlotProps21) => HTMLElement;
|
|
1439
1685
|
Content: (props: SheetContentProps) => HTMLElement;
|
|
1440
|
-
Title: (props:
|
|
1441
|
-
Description: (props:
|
|
1442
|
-
Close: (props:
|
|
1686
|
+
Title: (props: SlotProps21) => HTMLElement;
|
|
1687
|
+
Description: (props: SlotProps21) => HTMLElement;
|
|
1688
|
+
Close: (props: SlotProps21) => HTMLElement;
|
|
1443
1689
|
};
|
|
1444
|
-
|
|
1690
|
+
interface SkeletonClasses {
|
|
1691
|
+
root?: string;
|
|
1692
|
+
}
|
|
1693
|
+
type SkeletonClassKey = keyof SkeletonClasses;
|
|
1694
|
+
interface ComposedSkeletonProps {
|
|
1695
|
+
classes?: SkeletonClasses;
|
|
1696
|
+
className?: string;
|
|
1697
|
+
/** @deprecated Use `className` instead. */
|
|
1698
|
+
class?: string;
|
|
1699
|
+
width?: string;
|
|
1700
|
+
height?: string;
|
|
1701
|
+
}
|
|
1702
|
+
interface SkeletonTextClasses {
|
|
1703
|
+
root?: string;
|
|
1704
|
+
line?: string;
|
|
1705
|
+
}
|
|
1706
|
+
type SkeletonTextClassKey = keyof SkeletonTextClasses;
|
|
1707
|
+
interface ComposedSkeletonTextProps {
|
|
1708
|
+
classes?: SkeletonTextClasses;
|
|
1709
|
+
className?: string;
|
|
1710
|
+
/** @deprecated Use `className` instead. */
|
|
1711
|
+
class?: string;
|
|
1712
|
+
/** Number of lines to render. Default: 3 */
|
|
1713
|
+
lines?: number;
|
|
1714
|
+
/** Width of the last line. Default: '75%' */
|
|
1715
|
+
lastLineWidth?: string;
|
|
1716
|
+
/** Height of each line. Default: '1rem' */
|
|
1717
|
+
height?: string;
|
|
1718
|
+
/** Gap between lines. Overrides the CSS class gap when provided. */
|
|
1719
|
+
gap?: string;
|
|
1720
|
+
}
|
|
1721
|
+
interface SkeletonCircleClasses {
|
|
1722
|
+
root?: string;
|
|
1723
|
+
}
|
|
1724
|
+
type SkeletonCircleClassKey = keyof SkeletonCircleClasses;
|
|
1725
|
+
interface ComposedSkeletonCircleProps {
|
|
1726
|
+
classes?: SkeletonCircleClasses;
|
|
1727
|
+
className?: string;
|
|
1728
|
+
/** @deprecated Use `className` instead. */
|
|
1729
|
+
class?: string;
|
|
1730
|
+
/** Diameter. Default: '2.5rem' */
|
|
1731
|
+
size?: string;
|
|
1732
|
+
}
|
|
1733
|
+
declare const ComposedSkeleton: ComposedPrimitive<SkeletonClassKey, HTMLElement> & {
|
|
1734
|
+
Text: ComposedPrimitive<SkeletonTextClassKey, HTMLElement>;
|
|
1735
|
+
Circle: ComposedPrimitive<SkeletonCircleClassKey, HTMLElement>;
|
|
1736
|
+
};
|
|
1737
|
+
import { Signal as Signal22 } from "@vertz/ui";
|
|
1738
|
+
interface SliderOptions extends ElementAttrs {
|
|
1739
|
+
defaultValue?: number;
|
|
1740
|
+
min?: number;
|
|
1741
|
+
max?: number;
|
|
1742
|
+
step?: number;
|
|
1743
|
+
disabled?: boolean;
|
|
1744
|
+
onValueChange?: (value: number) => void;
|
|
1745
|
+
}
|
|
1746
|
+
interface SliderState {
|
|
1747
|
+
value: Signal22<number>;
|
|
1748
|
+
disabled: Signal22<boolean>;
|
|
1749
|
+
}
|
|
1750
|
+
interface SliderElements {
|
|
1751
|
+
root: HTMLDivElement;
|
|
1752
|
+
thumb: HTMLDivElement;
|
|
1753
|
+
track: HTMLDivElement;
|
|
1754
|
+
}
|
|
1755
|
+
declare const Slider: {
|
|
1756
|
+
Root: (options?: SliderOptions) => SliderElements & {
|
|
1757
|
+
state: SliderState;
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1760
|
+
import { ChildValue as ChildValue35 } from "@vertz/ui";
|
|
1445
1761
|
interface SliderClasses {
|
|
1446
1762
|
root?: string;
|
|
1447
1763
|
track?: string;
|
|
@@ -1450,7 +1766,7 @@ interface SliderClasses {
|
|
|
1450
1766
|
}
|
|
1451
1767
|
type SliderClassKey = keyof SliderClasses;
|
|
1452
1768
|
interface ComposedSliderProps {
|
|
1453
|
-
children?:
|
|
1769
|
+
children?: ChildValue35;
|
|
1454
1770
|
classes?: SliderClasses;
|
|
1455
1771
|
defaultValue?: number;
|
|
1456
1772
|
min?: number;
|
|
@@ -1462,14 +1778,22 @@ interface ComposedSliderProps {
|
|
|
1462
1778
|
declare const ComposedSlider: ((props: ComposedSliderProps) => HTMLElement) & {
|
|
1463
1779
|
__classKeys?: SliderClassKey;
|
|
1464
1780
|
};
|
|
1465
|
-
|
|
1781
|
+
interface SwitchOptions extends ElementAttrs {
|
|
1782
|
+
defaultChecked?: boolean;
|
|
1783
|
+
disabled?: boolean;
|
|
1784
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1785
|
+
}
|
|
1786
|
+
declare const Switch: {
|
|
1787
|
+
Root: (options?: SwitchOptions) => HTMLButtonElement;
|
|
1788
|
+
};
|
|
1789
|
+
import { ChildValue as ChildValue36 } from "@vertz/ui";
|
|
1466
1790
|
interface SwitchClasses {
|
|
1467
1791
|
root?: string;
|
|
1468
1792
|
thumb?: string;
|
|
1469
1793
|
}
|
|
1470
1794
|
type SwitchClassKey = keyof SwitchClasses;
|
|
1471
1795
|
interface ComposedSwitchProps {
|
|
1472
|
-
children?:
|
|
1796
|
+
children?: ChildValue36;
|
|
1473
1797
|
classes?: SwitchClasses;
|
|
1474
1798
|
defaultChecked?: boolean;
|
|
1475
1799
|
disabled?: boolean;
|
|
@@ -1478,26 +1802,82 @@ interface ComposedSwitchProps {
|
|
|
1478
1802
|
declare const ComposedSwitch: ((props: ComposedSwitchProps) => HTMLElement) & {
|
|
1479
1803
|
__classKeys?: SwitchClassKey;
|
|
1480
1804
|
};
|
|
1481
|
-
import { ChildValue as
|
|
1805
|
+
import { ChildValue as ChildValue37 } from "@vertz/ui";
|
|
1806
|
+
interface TableClasses {
|
|
1807
|
+
root?: string;
|
|
1808
|
+
header?: string;
|
|
1809
|
+
body?: string;
|
|
1810
|
+
row?: string;
|
|
1811
|
+
head?: string;
|
|
1812
|
+
cell?: string;
|
|
1813
|
+
caption?: string;
|
|
1814
|
+
footer?: string;
|
|
1815
|
+
}
|
|
1816
|
+
type TableClassKey = keyof TableClasses;
|
|
1817
|
+
interface SlotProps22 {
|
|
1818
|
+
children?: ChildValue37;
|
|
1819
|
+
className?: string;
|
|
1820
|
+
class?: string;
|
|
1821
|
+
}
|
|
1822
|
+
interface ComposedTableProps {
|
|
1823
|
+
children?: ChildValue37;
|
|
1824
|
+
classes?: TableClasses;
|
|
1825
|
+
className?: string;
|
|
1826
|
+
class?: string;
|
|
1827
|
+
}
|
|
1828
|
+
declare const ComposedTable: ((props: ComposedTableProps) => HTMLElement) & {
|
|
1829
|
+
__classKeys?: TableClassKey;
|
|
1830
|
+
Header: (props: SlotProps22) => HTMLElement;
|
|
1831
|
+
Body: (props: SlotProps22) => HTMLElement;
|
|
1832
|
+
Row: (props: SlotProps22) => HTMLElement;
|
|
1833
|
+
Head: (props: SlotProps22) => HTMLElement;
|
|
1834
|
+
Cell: (props: SlotProps22) => HTMLElement;
|
|
1835
|
+
Caption: (props: SlotProps22) => HTMLElement;
|
|
1836
|
+
Footer: (props: SlotProps22) => HTMLElement;
|
|
1837
|
+
};
|
|
1838
|
+
import { Signal as Signal23 } from "@vertz/ui";
|
|
1839
|
+
interface TabsOptions extends ElementAttrs {
|
|
1840
|
+
defaultValue?: string;
|
|
1841
|
+
orientation?: "horizontal" | "vertical";
|
|
1842
|
+
onValueChange?: (value: string) => void;
|
|
1843
|
+
}
|
|
1844
|
+
interface TabsState {
|
|
1845
|
+
value: Signal23<string>;
|
|
1846
|
+
}
|
|
1847
|
+
interface TabsElements {
|
|
1848
|
+
root: HTMLElement;
|
|
1849
|
+
list: HTMLElement;
|
|
1850
|
+
}
|
|
1851
|
+
declare const Tabs: {
|
|
1852
|
+
Root: (options?: TabsOptions) => TabsElements & {
|
|
1853
|
+
state: TabsState;
|
|
1854
|
+
Tab: (value: string, label?: string) => {
|
|
1855
|
+
trigger: HTMLElement;
|
|
1856
|
+
panel: HTMLElement;
|
|
1857
|
+
};
|
|
1858
|
+
destroy: () => void;
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
import { ChildValue as ChildValue38 } from "@vertz/ui";
|
|
1482
1862
|
interface TabsClasses {
|
|
1483
1863
|
list?: string;
|
|
1484
1864
|
trigger?: string;
|
|
1485
1865
|
panel?: string;
|
|
1486
1866
|
}
|
|
1487
|
-
interface
|
|
1488
|
-
children?:
|
|
1867
|
+
interface SlotProps23 {
|
|
1868
|
+
children?: ChildValue38;
|
|
1489
1869
|
className?: string;
|
|
1490
1870
|
/** @deprecated Use `className` instead. */
|
|
1491
1871
|
class?: string;
|
|
1492
1872
|
}
|
|
1493
|
-
interface TriggerProps2 extends
|
|
1873
|
+
interface TriggerProps2 extends SlotProps23 {
|
|
1494
1874
|
value: string;
|
|
1495
1875
|
}
|
|
1496
|
-
interface ContentProps2 extends
|
|
1876
|
+
interface ContentProps2 extends SlotProps23 {
|
|
1497
1877
|
value: string;
|
|
1498
1878
|
}
|
|
1499
1879
|
interface ComposedTabsProps {
|
|
1500
|
-
children?:
|
|
1880
|
+
children?: ChildValue38;
|
|
1501
1881
|
classes?: TabsClasses;
|
|
1502
1882
|
defaultValue?: string;
|
|
1503
1883
|
onValueChange?: (value: string) => void;
|
|
@@ -1506,17 +1886,65 @@ interface ComposedTabsProps {
|
|
|
1506
1886
|
type TabsClassKey = keyof TabsClasses;
|
|
1507
1887
|
declare const ComposedTabs: ((props: ComposedTabsProps) => HTMLElement) & {
|
|
1508
1888
|
__classKeys?: TabsClassKey;
|
|
1509
|
-
List: (props:
|
|
1889
|
+
List: (props: SlotProps23) => HTMLElement;
|
|
1510
1890
|
Trigger: (props: TriggerProps2) => HTMLElement;
|
|
1511
1891
|
Content: (props: ContentProps2) => HTMLElement;
|
|
1512
1892
|
};
|
|
1513
|
-
|
|
1893
|
+
interface TextareaClasses {
|
|
1894
|
+
base?: string;
|
|
1895
|
+
}
|
|
1896
|
+
type TextareaClassKey = keyof TextareaClasses;
|
|
1897
|
+
interface ComposedTextareaProps {
|
|
1898
|
+
classes?: TextareaClasses;
|
|
1899
|
+
className?: string;
|
|
1900
|
+
/** @deprecated Use `className` instead. */
|
|
1901
|
+
class?: string;
|
|
1902
|
+
name?: string;
|
|
1903
|
+
placeholder?: string;
|
|
1904
|
+
disabled?: boolean;
|
|
1905
|
+
value?: string;
|
|
1906
|
+
rows?: number;
|
|
1907
|
+
[key: string]: unknown;
|
|
1908
|
+
}
|
|
1909
|
+
declare const ComposedTextarea: ComposedPrimitive<TextareaClassKey, HTMLElement>;
|
|
1910
|
+
import { Signal as Signal24 } from "@vertz/ui";
|
|
1911
|
+
interface ToastOptions extends ElementAttrs {
|
|
1912
|
+
duration?: number;
|
|
1913
|
+
politeness?: "polite" | "assertive";
|
|
1914
|
+
}
|
|
1915
|
+
interface ToastMessage {
|
|
1916
|
+
id: string;
|
|
1917
|
+
content: string;
|
|
1918
|
+
el: HTMLDivElement;
|
|
1919
|
+
}
|
|
1920
|
+
interface ToastState {
|
|
1921
|
+
messages: Signal24<ToastMessage[]>;
|
|
1922
|
+
}
|
|
1923
|
+
interface ToastElements {
|
|
1924
|
+
region: HTMLDivElement;
|
|
1925
|
+
}
|
|
1926
|
+
declare const Toast: {
|
|
1927
|
+
Root: (options?: ToastOptions) => ToastElements & {
|
|
1928
|
+
state: ToastState;
|
|
1929
|
+
announce: (content: string) => ToastMessage;
|
|
1930
|
+
dismiss: (id: string) => void;
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
interface ToggleOptions extends ElementAttrs {
|
|
1934
|
+
defaultPressed?: boolean;
|
|
1935
|
+
disabled?: boolean;
|
|
1936
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
1937
|
+
}
|
|
1938
|
+
declare const Toggle: {
|
|
1939
|
+
Root: (options?: ToggleOptions) => HTMLButtonElement;
|
|
1940
|
+
};
|
|
1941
|
+
import { ChildValue as ChildValue39 } from "@vertz/ui";
|
|
1514
1942
|
interface ToggleClasses {
|
|
1515
1943
|
root?: string;
|
|
1516
1944
|
}
|
|
1517
1945
|
type ToggleClassKey = keyof ToggleClasses;
|
|
1518
1946
|
interface ComposedToggleProps {
|
|
1519
|
-
children?:
|
|
1947
|
+
children?: ChildValue39;
|
|
1520
1948
|
classes?: ToggleClasses;
|
|
1521
1949
|
defaultPressed?: boolean;
|
|
1522
1950
|
disabled?: boolean;
|
|
@@ -1525,7 +1953,28 @@ interface ComposedToggleProps {
|
|
|
1525
1953
|
declare const ComposedToggle: ((props: ComposedToggleProps) => HTMLElement) & {
|
|
1526
1954
|
__classKeys?: ToggleClassKey;
|
|
1527
1955
|
};
|
|
1528
|
-
import {
|
|
1956
|
+
import { Signal as Signal25 } from "@vertz/ui";
|
|
1957
|
+
interface ToggleGroupOptions extends ElementAttrs {
|
|
1958
|
+
type?: "single" | "multiple";
|
|
1959
|
+
defaultValue?: string[];
|
|
1960
|
+
orientation?: "horizontal" | "vertical";
|
|
1961
|
+
disabled?: boolean;
|
|
1962
|
+
onValueChange?: (value: string[]) => void;
|
|
1963
|
+
}
|
|
1964
|
+
interface ToggleGroupState {
|
|
1965
|
+
value: Signal25<string[]>;
|
|
1966
|
+
disabled: Signal25<boolean>;
|
|
1967
|
+
}
|
|
1968
|
+
interface ToggleGroupElements {
|
|
1969
|
+
root: HTMLDivElement;
|
|
1970
|
+
}
|
|
1971
|
+
declare const ToggleGroup: {
|
|
1972
|
+
Root: (options?: ToggleGroupOptions) => ToggleGroupElements & {
|
|
1973
|
+
state: ToggleGroupState;
|
|
1974
|
+
Item: (value: string) => HTMLButtonElement;
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
import { ChildValue as ChildValue40 } from "@vertz/ui";
|
|
1529
1978
|
interface ToggleGroupClasses {
|
|
1530
1979
|
root?: string;
|
|
1531
1980
|
item?: string;
|
|
@@ -1533,10 +1982,10 @@ interface ToggleGroupClasses {
|
|
|
1533
1982
|
type ToggleGroupClassKey = keyof ToggleGroupClasses;
|
|
1534
1983
|
interface ToggleGroupItemProps {
|
|
1535
1984
|
value: string;
|
|
1536
|
-
children?:
|
|
1985
|
+
children?: ChildValue40;
|
|
1537
1986
|
}
|
|
1538
1987
|
interface ComposedToggleGroupProps {
|
|
1539
|
-
children?:
|
|
1988
|
+
children?: ChildValue40;
|
|
1540
1989
|
classes?: ToggleGroupClasses;
|
|
1541
1990
|
type?: "single" | "multiple";
|
|
1542
1991
|
defaultValue?: string[];
|
|
@@ -1548,18 +1997,36 @@ declare const ComposedToggleGroup: ((props: ComposedToggleGroupProps) => HTMLEle
|
|
|
1548
1997
|
__classKeys?: ToggleGroupClassKey;
|
|
1549
1998
|
Item: (props: ToggleGroupItemProps) => HTMLElement;
|
|
1550
1999
|
};
|
|
1551
|
-
import {
|
|
2000
|
+
import { Signal as Signal26 } from "@vertz/ui";
|
|
2001
|
+
interface TooltipOptions extends ElementAttrs {
|
|
2002
|
+
delay?: number;
|
|
2003
|
+
onOpenChange?: (open: boolean) => void;
|
|
2004
|
+
positioning?: FloatingOptions;
|
|
2005
|
+
}
|
|
2006
|
+
interface TooltipState {
|
|
2007
|
+
open: Signal26<boolean>;
|
|
2008
|
+
}
|
|
2009
|
+
interface TooltipElements {
|
|
2010
|
+
trigger: HTMLElement;
|
|
2011
|
+
content: HTMLElement;
|
|
2012
|
+
}
|
|
2013
|
+
declare const Tooltip: {
|
|
2014
|
+
Root: (options?: TooltipOptions) => TooltipElements & {
|
|
2015
|
+
state: TooltipState;
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
import { ChildValue as ChildValue41 } from "@vertz/ui";
|
|
1552
2019
|
interface TooltipClasses {
|
|
1553
2020
|
content?: string;
|
|
1554
2021
|
}
|
|
1555
|
-
interface
|
|
1556
|
-
children?:
|
|
2022
|
+
interface SlotProps24 {
|
|
2023
|
+
children?: ChildValue41;
|
|
1557
2024
|
className?: string;
|
|
1558
2025
|
/** @deprecated Use `className` instead. */
|
|
1559
2026
|
class?: string;
|
|
1560
2027
|
}
|
|
1561
2028
|
interface ComposedTooltipProps {
|
|
1562
|
-
children?:
|
|
2029
|
+
children?: ChildValue41;
|
|
1563
2030
|
classes?: TooltipClasses;
|
|
1564
2031
|
delay?: number;
|
|
1565
2032
|
positioning?: FloatingOptions;
|
|
@@ -1567,8 +2034,8 @@ interface ComposedTooltipProps {
|
|
|
1567
2034
|
type TooltipClassKey = keyof TooltipClasses;
|
|
1568
2035
|
declare const ComposedTooltip: ((props: ComposedTooltipProps) => HTMLElement) & {
|
|
1569
2036
|
__classKeys?: TooltipClassKey;
|
|
1570
|
-
Trigger: (props:
|
|
1571
|
-
Content: (props:
|
|
2037
|
+
Trigger: (props: SlotProps24) => HTMLElement;
|
|
2038
|
+
Content: (props: SlotProps24) => HTMLElement;
|
|
1572
2039
|
};
|
|
1573
2040
|
/**
|
|
1574
2041
|
* Typed event handler props for interactive themed components.
|
|
@@ -1592,4 +2059,4 @@ interface ElementEventHandlers {
|
|
|
1592
2059
|
onInput?: (event: InputEvent) => void;
|
|
1593
2060
|
onChange?: (event: Event) => void;
|
|
1594
2061
|
}
|
|
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 };
|
|
2062
|
+
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, 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, 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, AlertDialogState, AlertDialogOptions, AlertDialogElements, AlertDialogClasses, AlertDialog, AlertClasses, AlertClassKey, AccordionState, AccordionOptions, AccordionElements, AccordionClasses, Accordion };
|