@geajs/ui 0.1.0
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/README.md +535 -0
- package/dist/index.d.mts +806 -0
- package/dist/index.mjs +3597 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tailwind-preset.d.mts +51 -0
- package/dist/tailwind-preset.mjs +50 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/dist/theme.css +215 -0
- package/package.json +99 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
import { Component } from "@geajs/core";
|
|
2
|
+
import { VanillaMachine } from "@zag-js/vanilla";
|
|
3
|
+
import { ClassValue } from "clsx";
|
|
4
|
+
import * as accordion from "@zag-js/accordion";
|
|
5
|
+
import * as avatar from "@zag-js/avatar";
|
|
6
|
+
import * as checkbox from "@zag-js/checkbox";
|
|
7
|
+
import * as clipboard from "@zag-js/clipboard";
|
|
8
|
+
import * as collapsible from "@zag-js/collapsible";
|
|
9
|
+
import * as combobox from "@zag-js/combobox";
|
|
10
|
+
import * as dialog from "@zag-js/dialog";
|
|
11
|
+
import * as fileUpload from "@zag-js/file-upload";
|
|
12
|
+
import * as hoverCard from "@zag-js/hover-card";
|
|
13
|
+
import * as menu from "@zag-js/menu";
|
|
14
|
+
import * as numberInput from "@zag-js/number-input";
|
|
15
|
+
import * as pagination from "@zag-js/pagination";
|
|
16
|
+
import * as pinInput from "@zag-js/pin-input";
|
|
17
|
+
import * as popover from "@zag-js/popover";
|
|
18
|
+
import * as progress from "@zag-js/progress";
|
|
19
|
+
import * as radioGroup from "@zag-js/radio-group";
|
|
20
|
+
import * as ratingGroup from "@zag-js/rating-group";
|
|
21
|
+
import * as select from "@zag-js/select";
|
|
22
|
+
import * as slider from "@zag-js/slider";
|
|
23
|
+
import * as switchMachine from "@zag-js/switch";
|
|
24
|
+
import * as tabs from "@zag-js/tabs";
|
|
25
|
+
import * as tagsInput from "@zag-js/tags-input";
|
|
26
|
+
import * as toast from "@zag-js/toast";
|
|
27
|
+
import * as toggleGroup from "@zag-js/toggle-group";
|
|
28
|
+
import * as tooltip from "@zag-js/tooltip";
|
|
29
|
+
import * as treeView from "@zag-js/tree-view";
|
|
30
|
+
import * as _zag_js_types0 from "@zag-js/types";
|
|
31
|
+
import * as _zag_js_collection0 from "@zag-js/collection";
|
|
32
|
+
|
|
33
|
+
//#region src/primitives/zag-component.d.ts
|
|
34
|
+
type SpreadCleanup = () => void;
|
|
35
|
+
type PropsGetter = string | ((api: any, el: Element) => Record<string, any>);
|
|
36
|
+
interface SpreadMap {
|
|
37
|
+
[selector: string]: PropsGetter;
|
|
38
|
+
}
|
|
39
|
+
declare class ZagComponent extends Component {
|
|
40
|
+
_machine: VanillaMachine<any> | null;
|
|
41
|
+
_api: any;
|
|
42
|
+
_spreadCleanups: Map<string, SpreadCleanup>;
|
|
43
|
+
_spreadScheduled: boolean;
|
|
44
|
+
createMachine(_props: any): any;
|
|
45
|
+
getMachineProps(_props: any): any;
|
|
46
|
+
connectApi(_service: any): any;
|
|
47
|
+
getSpreadMap(): SpreadMap;
|
|
48
|
+
syncState(_api: any): void;
|
|
49
|
+
created(props: any): void;
|
|
50
|
+
_syncMachineProps(): void;
|
|
51
|
+
__geaUpdateProps(nextProps: Record<string, any>): void;
|
|
52
|
+
_scheduleSpreadApplication(): void;
|
|
53
|
+
_resolveProps(getter: PropsGetter, el: Element): Record<string, any> | null;
|
|
54
|
+
_queryAllIncludingSelf(selector: string): Element[];
|
|
55
|
+
_applyAllSpreads(): void;
|
|
56
|
+
onAfterRender(): void;
|
|
57
|
+
_cacheArrayContainers(): void;
|
|
58
|
+
dispose(): void;
|
|
59
|
+
static normalizeProps: _zag_js_types0.NormalizeProps<_zag_js_types0.PropTypes<{
|
|
60
|
+
[x: string]: any;
|
|
61
|
+
}>>;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/utils/cn.d.ts
|
|
65
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/accordion.d.ts
|
|
68
|
+
declare class Accordion extends ZagComponent {
|
|
69
|
+
value: string[];
|
|
70
|
+
createMachine(_props: any): any;
|
|
71
|
+
getMachineProps(props: any): {
|
|
72
|
+
id: string;
|
|
73
|
+
value: any;
|
|
74
|
+
defaultValue: any;
|
|
75
|
+
multiple: any;
|
|
76
|
+
collapsible: any;
|
|
77
|
+
disabled: any;
|
|
78
|
+
orientation: any;
|
|
79
|
+
onValueChange: (details: accordion.ValueChangeDetails) => void;
|
|
80
|
+
};
|
|
81
|
+
connectApi(service: any): accordion.Api<_zag_js_types0.PropTypes<{
|
|
82
|
+
[x: string]: any;
|
|
83
|
+
}>>;
|
|
84
|
+
getSpreadMap(): SpreadMap;
|
|
85
|
+
syncState(api: any): void;
|
|
86
|
+
template(props: any): string;
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/avatar.d.ts
|
|
90
|
+
declare class Avatar extends ZagComponent {
|
|
91
|
+
loaded: boolean;
|
|
92
|
+
createMachine(_props: any): any;
|
|
93
|
+
getMachineProps(props: any): {
|
|
94
|
+
id: string;
|
|
95
|
+
onStatusChange: any;
|
|
96
|
+
};
|
|
97
|
+
connectApi(service: any): avatar.Api<_zag_js_types0.PropTypes<{
|
|
98
|
+
[x: string]: any;
|
|
99
|
+
}>>;
|
|
100
|
+
getSpreadMap(): SpreadMap;
|
|
101
|
+
syncState(api: any): void;
|
|
102
|
+
template(props: any): string;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/checkbox.d.ts
|
|
106
|
+
declare class Checkbox extends ZagComponent {
|
|
107
|
+
checked: boolean | 'indeterminate';
|
|
108
|
+
createMachine(_props: any): any;
|
|
109
|
+
getMachineProps(props: any): {
|
|
110
|
+
id: string;
|
|
111
|
+
checked: any;
|
|
112
|
+
defaultChecked: any;
|
|
113
|
+
disabled: any;
|
|
114
|
+
invalid: any;
|
|
115
|
+
required: any;
|
|
116
|
+
readOnly: any;
|
|
117
|
+
name: any;
|
|
118
|
+
form: any;
|
|
119
|
+
value: any;
|
|
120
|
+
onCheckedChange: (details: checkbox.CheckedChangeDetails) => void;
|
|
121
|
+
};
|
|
122
|
+
connectApi(service: any): checkbox.Api<_zag_js_types0.PropTypes<{
|
|
123
|
+
[x: string]: any;
|
|
124
|
+
}>>;
|
|
125
|
+
getSpreadMap(): SpreadMap;
|
|
126
|
+
syncState(api: any): void;
|
|
127
|
+
template(props: any): string;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/clipboard.d.ts
|
|
131
|
+
declare class Clipboard extends ZagComponent {
|
|
132
|
+
copied: boolean;
|
|
133
|
+
createMachine(_props: any): any;
|
|
134
|
+
getMachineProps(props: any): {
|
|
135
|
+
id: string;
|
|
136
|
+
value: any;
|
|
137
|
+
defaultValue: any;
|
|
138
|
+
timeout: any;
|
|
139
|
+
onStatusChange: (details: clipboard.CopyStatusDetails) => void;
|
|
140
|
+
};
|
|
141
|
+
connectApi(service: any): clipboard.Api<_zag_js_types0.PropTypes<{
|
|
142
|
+
[x: string]: any;
|
|
143
|
+
}>>;
|
|
144
|
+
getSpreadMap(): SpreadMap;
|
|
145
|
+
syncState(api: any): void;
|
|
146
|
+
template(props: any): string;
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/components/collapsible.d.ts
|
|
150
|
+
declare class Collapsible extends ZagComponent {
|
|
151
|
+
open: boolean;
|
|
152
|
+
createMachine(_props: any): any;
|
|
153
|
+
getMachineProps(props: any): {
|
|
154
|
+
id: string;
|
|
155
|
+
open: any;
|
|
156
|
+
defaultOpen: any;
|
|
157
|
+
disabled: any;
|
|
158
|
+
onOpenChange: (details: collapsible.OpenChangeDetails) => void;
|
|
159
|
+
};
|
|
160
|
+
connectApi(service: any): collapsible.Api<_zag_js_types0.PropTypes<{
|
|
161
|
+
[x: string]: any;
|
|
162
|
+
}>>;
|
|
163
|
+
getSpreadMap(): SpreadMap;
|
|
164
|
+
syncState(api: any): void;
|
|
165
|
+
template(props: any): string;
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/combobox.d.ts
|
|
169
|
+
declare class Combobox extends ZagComponent {
|
|
170
|
+
open: boolean;
|
|
171
|
+
value: string[];
|
|
172
|
+
inputValue: string;
|
|
173
|
+
filteredItems: any[];
|
|
174
|
+
_allItems: any[];
|
|
175
|
+
created(props: any): void;
|
|
176
|
+
createMachine(_props: any): any;
|
|
177
|
+
_buildCollection(items: any[]): _zag_js_collection0.ListCollection<any>;
|
|
178
|
+
_filterItems(query: string): void;
|
|
179
|
+
getMachineProps(props: any): {
|
|
180
|
+
id: string;
|
|
181
|
+
collection: any;
|
|
182
|
+
value: any;
|
|
183
|
+
defaultValue: any;
|
|
184
|
+
inputValue: any;
|
|
185
|
+
defaultInputValue: any;
|
|
186
|
+
open: any;
|
|
187
|
+
defaultOpen: any;
|
|
188
|
+
multiple: any;
|
|
189
|
+
disabled: any;
|
|
190
|
+
readOnly: any;
|
|
191
|
+
invalid: any;
|
|
192
|
+
required: any;
|
|
193
|
+
placeholder: any;
|
|
194
|
+
inputBehavior: any;
|
|
195
|
+
selectionBehavior: any;
|
|
196
|
+
closeOnSelect: any;
|
|
197
|
+
allowCustomValue: any;
|
|
198
|
+
loopFocus: any;
|
|
199
|
+
openOnClick: any;
|
|
200
|
+
name: any;
|
|
201
|
+
form: any;
|
|
202
|
+
positioning: any;
|
|
203
|
+
onValueChange: (details: combobox.ValueChangeDetails) => void;
|
|
204
|
+
onInputValueChange: (details: combobox.InputValueChangeDetails) => void;
|
|
205
|
+
onOpenChange: (details: combobox.OpenChangeDetails) => void;
|
|
206
|
+
};
|
|
207
|
+
connectApi(service: any): combobox.Api<_zag_js_types0.PropTypes<{
|
|
208
|
+
[x: string]: any;
|
|
209
|
+
}>, unknown>;
|
|
210
|
+
getSpreadMap(): SpreadMap;
|
|
211
|
+
syncState(api: any): void;
|
|
212
|
+
template(props: any): string;
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/components/dialog.d.ts
|
|
216
|
+
declare class Dialog extends ZagComponent {
|
|
217
|
+
open: boolean;
|
|
218
|
+
createMachine(_props: any): any;
|
|
219
|
+
getMachineProps(props: any): {
|
|
220
|
+
id: string;
|
|
221
|
+
open: any;
|
|
222
|
+
defaultOpen: any;
|
|
223
|
+
modal: any;
|
|
224
|
+
closeOnInteractOutside: any;
|
|
225
|
+
closeOnEscape: any;
|
|
226
|
+
trapFocus: any;
|
|
227
|
+
preventScroll: any;
|
|
228
|
+
role: any;
|
|
229
|
+
'aria-label': any;
|
|
230
|
+
onOpenChange: (details: dialog.OpenChangeDetails) => void;
|
|
231
|
+
};
|
|
232
|
+
connectApi(service: any): dialog.Api<_zag_js_types0.PropTypes<{
|
|
233
|
+
[x: string]: any;
|
|
234
|
+
}>>;
|
|
235
|
+
getSpreadMap(): SpreadMap;
|
|
236
|
+
syncState(api: any): void;
|
|
237
|
+
template(props: any): string;
|
|
238
|
+
}
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/components/file-upload.d.ts
|
|
241
|
+
declare class FileUpload extends ZagComponent {
|
|
242
|
+
acceptedFiles: File[];
|
|
243
|
+
rejectedFiles: any[];
|
|
244
|
+
createMachine(_props: any): any;
|
|
245
|
+
getMachineProps(props: any): {
|
|
246
|
+
id: string;
|
|
247
|
+
accept: any;
|
|
248
|
+
maxFiles: any;
|
|
249
|
+
maxFileSize: any;
|
|
250
|
+
minFileSize: any;
|
|
251
|
+
multiple: any;
|
|
252
|
+
disabled: any;
|
|
253
|
+
allowDrop: any;
|
|
254
|
+
name: any;
|
|
255
|
+
onFileChange: (details: fileUpload.FileChangeDetails) => void;
|
|
256
|
+
};
|
|
257
|
+
connectApi(service: any): fileUpload.Api<_zag_js_types0.PropTypes<{
|
|
258
|
+
[x: string]: any;
|
|
259
|
+
}>>;
|
|
260
|
+
getSpreadMap(): SpreadMap;
|
|
261
|
+
syncState(api: any): void;
|
|
262
|
+
template(props: any): string;
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/components/hover-card.d.ts
|
|
266
|
+
declare class HoverCard extends ZagComponent {
|
|
267
|
+
open: boolean;
|
|
268
|
+
createMachine(_props: any): any;
|
|
269
|
+
getMachineProps(props: any): {
|
|
270
|
+
id: string;
|
|
271
|
+
open: any;
|
|
272
|
+
defaultOpen: any;
|
|
273
|
+
openDelay: any;
|
|
274
|
+
closeDelay: any;
|
|
275
|
+
positioning: any;
|
|
276
|
+
onOpenChange: (details: hoverCard.OpenChangeDetails) => void;
|
|
277
|
+
};
|
|
278
|
+
connectApi(service: any): hoverCard.Api<_zag_js_types0.PropTypes<{
|
|
279
|
+
[x: string]: any;
|
|
280
|
+
}>>;
|
|
281
|
+
getSpreadMap(): SpreadMap;
|
|
282
|
+
syncState(api: any): void;
|
|
283
|
+
template(props: any): string;
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/components/menu.d.ts
|
|
287
|
+
declare class Menu extends ZagComponent {
|
|
288
|
+
open: boolean;
|
|
289
|
+
createMachine(_props: any): any;
|
|
290
|
+
getMachineProps(props: any): {
|
|
291
|
+
id: string;
|
|
292
|
+
open: any;
|
|
293
|
+
defaultOpen: any;
|
|
294
|
+
closeOnSelect: any;
|
|
295
|
+
loopFocus: any;
|
|
296
|
+
positioning: any;
|
|
297
|
+
onOpenChange: (details: menu.OpenChangeDetails) => void;
|
|
298
|
+
onSelect: any;
|
|
299
|
+
};
|
|
300
|
+
connectApi(service: any): menu.Api<_zag_js_types0.PropTypes<{
|
|
301
|
+
[x: string]: any;
|
|
302
|
+
}>>;
|
|
303
|
+
getSpreadMap(): SpreadMap;
|
|
304
|
+
syncState(api: any): void;
|
|
305
|
+
template(props: any): string;
|
|
306
|
+
}
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region src/components/number-input.d.ts
|
|
309
|
+
declare class NumberInput extends ZagComponent {
|
|
310
|
+
value: string;
|
|
311
|
+
valueAsNumber: number;
|
|
312
|
+
createMachine(_props: any): any;
|
|
313
|
+
getMachineProps(props: any): {
|
|
314
|
+
id: string;
|
|
315
|
+
value: any;
|
|
316
|
+
defaultValue: any;
|
|
317
|
+
min: any;
|
|
318
|
+
max: any;
|
|
319
|
+
step: any;
|
|
320
|
+
disabled: any;
|
|
321
|
+
readOnly: any;
|
|
322
|
+
invalid: any;
|
|
323
|
+
required: any;
|
|
324
|
+
name: any;
|
|
325
|
+
form: any;
|
|
326
|
+
allowMouseWheel: any;
|
|
327
|
+
clampValueOnBlur: any;
|
|
328
|
+
formatOptions: any;
|
|
329
|
+
locale: any;
|
|
330
|
+
onValueChange: (details: numberInput.ValueChangeDetails) => void;
|
|
331
|
+
};
|
|
332
|
+
connectApi(service: any): numberInput.Api<_zag_js_types0.PropTypes<{
|
|
333
|
+
[x: string]: any;
|
|
334
|
+
}>>;
|
|
335
|
+
getSpreadMap(): SpreadMap;
|
|
336
|
+
syncState(api: any): void;
|
|
337
|
+
template(props: any): string;
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/components/pagination.d.ts
|
|
341
|
+
declare class Pagination extends ZagComponent {
|
|
342
|
+
page: number;
|
|
343
|
+
totalPages: number;
|
|
344
|
+
createMachine(_props: any): any;
|
|
345
|
+
getMachineProps(props: any): {
|
|
346
|
+
id: string;
|
|
347
|
+
count: any;
|
|
348
|
+
page: any;
|
|
349
|
+
defaultPage: any;
|
|
350
|
+
pageSize: any;
|
|
351
|
+
defaultPageSize: any;
|
|
352
|
+
siblingCount: any;
|
|
353
|
+
type: any;
|
|
354
|
+
onPageChange: (details: pagination.PageChangeDetails) => void;
|
|
355
|
+
onPageSizeChange: any;
|
|
356
|
+
};
|
|
357
|
+
connectApi(service: any): pagination.Api<_zag_js_types0.PropTypes<{
|
|
358
|
+
[x: string]: any;
|
|
359
|
+
}>>;
|
|
360
|
+
getSpreadMap(): SpreadMap;
|
|
361
|
+
syncState(api: any): void;
|
|
362
|
+
template(props: any): string;
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/components/pin-input.d.ts
|
|
366
|
+
declare class PinInput extends ZagComponent {
|
|
367
|
+
value: string[];
|
|
368
|
+
valueAsString: string;
|
|
369
|
+
createMachine(_props: any): any;
|
|
370
|
+
getMachineProps(props: any): {
|
|
371
|
+
id: string;
|
|
372
|
+
value: any;
|
|
373
|
+
defaultValue: any;
|
|
374
|
+
count: any;
|
|
375
|
+
type: any;
|
|
376
|
+
otp: any;
|
|
377
|
+
mask: any;
|
|
378
|
+
placeholder: any;
|
|
379
|
+
disabled: any;
|
|
380
|
+
readOnly: any;
|
|
381
|
+
invalid: any;
|
|
382
|
+
name: any;
|
|
383
|
+
form: any;
|
|
384
|
+
blurOnComplete: any;
|
|
385
|
+
autoFocus: any;
|
|
386
|
+
onValueChange: (details: pinInput.ValueChangeDetails) => void;
|
|
387
|
+
onValueComplete: any;
|
|
388
|
+
onValueInvalid: any;
|
|
389
|
+
};
|
|
390
|
+
connectApi(service: any): pinInput.Api<_zag_js_types0.PropTypes<{
|
|
391
|
+
[x: string]: any;
|
|
392
|
+
}>>;
|
|
393
|
+
getSpreadMap(): SpreadMap;
|
|
394
|
+
syncState(api: any): void;
|
|
395
|
+
template(props: any): string;
|
|
396
|
+
}
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region src/components/popover.d.ts
|
|
399
|
+
declare class Popover extends ZagComponent {
|
|
400
|
+
open: boolean;
|
|
401
|
+
createMachine(_props: any): any;
|
|
402
|
+
getMachineProps(props: any): {
|
|
403
|
+
id: string;
|
|
404
|
+
open: any;
|
|
405
|
+
defaultOpen: any;
|
|
406
|
+
modal: any;
|
|
407
|
+
portalled: any;
|
|
408
|
+
autoFocus: any;
|
|
409
|
+
closeOnInteractOutside: any;
|
|
410
|
+
closeOnEscape: any;
|
|
411
|
+
positioning: any;
|
|
412
|
+
onOpenChange: (details: popover.OpenChangeDetails) => void;
|
|
413
|
+
};
|
|
414
|
+
connectApi(service: any): popover.Api<_zag_js_types0.PropTypes<{
|
|
415
|
+
[x: string]: any;
|
|
416
|
+
}>>;
|
|
417
|
+
getSpreadMap(): SpreadMap;
|
|
418
|
+
syncState(api: any): void;
|
|
419
|
+
template(props: any): string;
|
|
420
|
+
}
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/components/progress.d.ts
|
|
423
|
+
declare class Progress extends ZagComponent {
|
|
424
|
+
value: number | null;
|
|
425
|
+
percent: number;
|
|
426
|
+
createMachine(_props: any): any;
|
|
427
|
+
getMachineProps(props: any): {
|
|
428
|
+
id: string;
|
|
429
|
+
value: any;
|
|
430
|
+
defaultValue: any;
|
|
431
|
+
min: any;
|
|
432
|
+
max: any;
|
|
433
|
+
orientation: any;
|
|
434
|
+
onValueChange: any;
|
|
435
|
+
};
|
|
436
|
+
connectApi(service: any): progress.Api<_zag_js_types0.PropTypes<{
|
|
437
|
+
[x: string]: any;
|
|
438
|
+
}>>;
|
|
439
|
+
getSpreadMap(): SpreadMap;
|
|
440
|
+
syncState(api: any): void;
|
|
441
|
+
template(props: any): string;
|
|
442
|
+
}
|
|
443
|
+
//#endregion
|
|
444
|
+
//#region src/components/radio-group.d.ts
|
|
445
|
+
declare class RadioGroup extends ZagComponent {
|
|
446
|
+
value: string | null;
|
|
447
|
+
createMachine(_props: any): any;
|
|
448
|
+
getMachineProps(props: any): {
|
|
449
|
+
id: string;
|
|
450
|
+
value: any;
|
|
451
|
+
defaultValue: any;
|
|
452
|
+
name: any;
|
|
453
|
+
form: any;
|
|
454
|
+
disabled: any;
|
|
455
|
+
readOnly: any;
|
|
456
|
+
orientation: any;
|
|
457
|
+
onValueChange: (details: radioGroup.ValueChangeDetails) => void;
|
|
458
|
+
};
|
|
459
|
+
connectApi(service: any): radioGroup.Api<_zag_js_types0.PropTypes<{
|
|
460
|
+
[x: string]: any;
|
|
461
|
+
}>>;
|
|
462
|
+
getSpreadMap(): SpreadMap;
|
|
463
|
+
syncState(api: any): void;
|
|
464
|
+
template(props: any): string;
|
|
465
|
+
}
|
|
466
|
+
//#endregion
|
|
467
|
+
//#region src/components/rating-group.d.ts
|
|
468
|
+
declare class RatingGroup extends ZagComponent {
|
|
469
|
+
value: number;
|
|
470
|
+
_allowHalf: boolean;
|
|
471
|
+
createMachine(_props: any): any;
|
|
472
|
+
getMachineProps(props: any): {
|
|
473
|
+
id: string;
|
|
474
|
+
value: any;
|
|
475
|
+
defaultValue: any;
|
|
476
|
+
count: any;
|
|
477
|
+
allowHalf: boolean;
|
|
478
|
+
readOnly: any;
|
|
479
|
+
disabled: any;
|
|
480
|
+
name: any;
|
|
481
|
+
form: any;
|
|
482
|
+
onValueChange: (details: ratingGroup.ValueChangeDetails) => void;
|
|
483
|
+
};
|
|
484
|
+
connectApi(service: any): ratingGroup.Api<_zag_js_types0.PropTypes<{
|
|
485
|
+
[x: string]: any;
|
|
486
|
+
}>>;
|
|
487
|
+
getSpreadMap(): SpreadMap;
|
|
488
|
+
syncState(api: any): void;
|
|
489
|
+
_applyAllSpreads(): void;
|
|
490
|
+
template(props: any): string;
|
|
491
|
+
}
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region src/components/select.d.ts
|
|
494
|
+
declare class Select extends ZagComponent {
|
|
495
|
+
open: boolean;
|
|
496
|
+
value: string[];
|
|
497
|
+
valueAsString: string;
|
|
498
|
+
createMachine(_props: any): any;
|
|
499
|
+
getMachineProps(props: any): {
|
|
500
|
+
id: string;
|
|
501
|
+
collection: any;
|
|
502
|
+
value: any;
|
|
503
|
+
defaultValue: any;
|
|
504
|
+
open: any;
|
|
505
|
+
defaultOpen: any;
|
|
506
|
+
multiple: any;
|
|
507
|
+
disabled: any;
|
|
508
|
+
invalid: any;
|
|
509
|
+
readOnly: any;
|
|
510
|
+
required: any;
|
|
511
|
+
name: any;
|
|
512
|
+
form: any;
|
|
513
|
+
closeOnSelect: any;
|
|
514
|
+
positioning: any;
|
|
515
|
+
loopFocus: any;
|
|
516
|
+
onValueChange: (details: select.ValueChangeDetails) => void;
|
|
517
|
+
onOpenChange: (details: select.OpenChangeDetails) => void;
|
|
518
|
+
};
|
|
519
|
+
connectApi(service: any): select.Api<_zag_js_types0.PropTypes<{
|
|
520
|
+
[x: string]: any;
|
|
521
|
+
}>, any>;
|
|
522
|
+
getSpreadMap(): SpreadMap;
|
|
523
|
+
syncState(api: any): void;
|
|
524
|
+
template(props: any): string;
|
|
525
|
+
}
|
|
526
|
+
//#endregion
|
|
527
|
+
//#region src/components/slider.d.ts
|
|
528
|
+
declare class Slider extends ZagComponent {
|
|
529
|
+
value: number[];
|
|
530
|
+
createMachine(_props: any): any;
|
|
531
|
+
getMachineProps(props: any): {
|
|
532
|
+
id: string;
|
|
533
|
+
value: any;
|
|
534
|
+
defaultValue: any;
|
|
535
|
+
min: any;
|
|
536
|
+
max: any;
|
|
537
|
+
step: any;
|
|
538
|
+
orientation: any;
|
|
539
|
+
thumbAlignment: any;
|
|
540
|
+
disabled: any;
|
|
541
|
+
readOnly: any;
|
|
542
|
+
name: any;
|
|
543
|
+
'aria-label': any;
|
|
544
|
+
onValueChange: (details: slider.ValueChangeDetails) => void;
|
|
545
|
+
onValueChangeEnd: any;
|
|
546
|
+
};
|
|
547
|
+
connectApi(service: any): slider.Api<_zag_js_types0.PropTypes<{
|
|
548
|
+
[x: string]: any;
|
|
549
|
+
}>>;
|
|
550
|
+
getSpreadMap(): SpreadMap;
|
|
551
|
+
_syncThumbs(): void;
|
|
552
|
+
syncState(api: any): void;
|
|
553
|
+
_applyAllSpreads(): void;
|
|
554
|
+
template(props: any): string;
|
|
555
|
+
}
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/components/switch.d.ts
|
|
558
|
+
declare class Switch extends ZagComponent {
|
|
559
|
+
checked: boolean;
|
|
560
|
+
createMachine(_props: any): any;
|
|
561
|
+
getMachineProps(props: any): {
|
|
562
|
+
id: string;
|
|
563
|
+
checked: any;
|
|
564
|
+
defaultChecked: any;
|
|
565
|
+
disabled: any;
|
|
566
|
+
invalid: any;
|
|
567
|
+
required: any;
|
|
568
|
+
readOnly: any;
|
|
569
|
+
name: any;
|
|
570
|
+
form: any;
|
|
571
|
+
value: any;
|
|
572
|
+
onCheckedChange: (details: switchMachine.CheckedChangeDetails) => void;
|
|
573
|
+
};
|
|
574
|
+
connectApi(service: any): switchMachine.Api<_zag_js_types0.PropTypes<{
|
|
575
|
+
[x: string]: any;
|
|
576
|
+
}>>;
|
|
577
|
+
getSpreadMap(): SpreadMap;
|
|
578
|
+
syncState(api: any): void;
|
|
579
|
+
template(props: any): string;
|
|
580
|
+
}
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/components/tabs.d.ts
|
|
583
|
+
declare class Tabs extends ZagComponent {
|
|
584
|
+
value: string | null;
|
|
585
|
+
createMachine(_props: any): any;
|
|
586
|
+
getMachineProps(props: any): {
|
|
587
|
+
id: string;
|
|
588
|
+
value: any;
|
|
589
|
+
defaultValue: any;
|
|
590
|
+
orientation: any;
|
|
591
|
+
activationMode: any;
|
|
592
|
+
loopFocus: any;
|
|
593
|
+
onValueChange: (details: tabs.ValueChangeDetails) => void;
|
|
594
|
+
onFocusChange: any;
|
|
595
|
+
};
|
|
596
|
+
connectApi(service: any): tabs.Api<_zag_js_types0.PropTypes<{
|
|
597
|
+
[x: string]: any;
|
|
598
|
+
}>>;
|
|
599
|
+
_syncMachineProps(): void;
|
|
600
|
+
getSpreadMap(): SpreadMap;
|
|
601
|
+
syncState(api: any): void;
|
|
602
|
+
onAfterRender(): void;
|
|
603
|
+
template(props: any): string;
|
|
604
|
+
}
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region src/components/tags-input.d.ts
|
|
607
|
+
declare class TagsInput extends ZagComponent {
|
|
608
|
+
value: string[];
|
|
609
|
+
createMachine(_props: any): any;
|
|
610
|
+
getMachineProps(props: any): {
|
|
611
|
+
id: string;
|
|
612
|
+
value: any;
|
|
613
|
+
defaultValue: any;
|
|
614
|
+
max: any;
|
|
615
|
+
maxLength: any;
|
|
616
|
+
disabled: any;
|
|
617
|
+
readOnly: any;
|
|
618
|
+
invalid: any;
|
|
619
|
+
addOnPaste: any;
|
|
620
|
+
editable: any;
|
|
621
|
+
allowDuplicates: any;
|
|
622
|
+
name: any;
|
|
623
|
+
form: any;
|
|
624
|
+
placeholder: any;
|
|
625
|
+
blurBehavior: any;
|
|
626
|
+
delimiter: any;
|
|
627
|
+
onValueChange: (details: tagsInput.ValueChangeDetails) => void;
|
|
628
|
+
};
|
|
629
|
+
connectApi(service: any): tagsInput.Api<_zag_js_types0.PropTypes<{
|
|
630
|
+
[x: string]: any;
|
|
631
|
+
}>>;
|
|
632
|
+
getSpreadMap(): SpreadMap;
|
|
633
|
+
syncState(api: any): void;
|
|
634
|
+
template(props: any): string;
|
|
635
|
+
}
|
|
636
|
+
//#endregion
|
|
637
|
+
//#region src/components/toast.d.ts
|
|
638
|
+
declare function getStore(props?: toast.StoreProps): toast.Store<any>;
|
|
639
|
+
declare class ToastStore {
|
|
640
|
+
static getStore: typeof getStore;
|
|
641
|
+
static create(options: toast.Options): string;
|
|
642
|
+
static success(options: Omit<toast.Options, 'type'>): string;
|
|
643
|
+
static error(options: Omit<toast.Options, 'type'>): string;
|
|
644
|
+
static info(options: Omit<toast.Options, 'type'>): string;
|
|
645
|
+
static loading(options: Omit<toast.Options, 'type'>): string;
|
|
646
|
+
static dismiss(id?: string): void;
|
|
647
|
+
}
|
|
648
|
+
declare class Toaster extends Component {
|
|
649
|
+
_machine: VanillaMachine<any> | null;
|
|
650
|
+
_api: any;
|
|
651
|
+
_toastMachines: Map<string, VanillaMachine<any>>;
|
|
652
|
+
_spreadCleanups: Map<string, Array<() => void>>;
|
|
653
|
+
_currentToasts: toast.Options[];
|
|
654
|
+
created(props: any): void;
|
|
655
|
+
_createToastElement(t: any): HTMLElement;
|
|
656
|
+
_syncToastDOM(nextToasts: any[]): void;
|
|
657
|
+
_syncToastMachines(): void;
|
|
658
|
+
_applyGroupSpreads(): void;
|
|
659
|
+
onAfterRender(): void;
|
|
660
|
+
dispose(): void;
|
|
661
|
+
template(props: any): string;
|
|
662
|
+
}
|
|
663
|
+
//#endregion
|
|
664
|
+
//#region src/components/toggle-group.d.ts
|
|
665
|
+
declare class ToggleGroup extends ZagComponent {
|
|
666
|
+
value: string[];
|
|
667
|
+
createMachine(_props: any): any;
|
|
668
|
+
getMachineProps(props: any): {
|
|
669
|
+
id: string;
|
|
670
|
+
value: any;
|
|
671
|
+
defaultValue: any;
|
|
672
|
+
multiple: any;
|
|
673
|
+
disabled: any;
|
|
674
|
+
orientation: any;
|
|
675
|
+
loopFocus: any;
|
|
676
|
+
rovingFocus: any;
|
|
677
|
+
onValueChange: (details: toggleGroup.ValueChangeDetails) => void;
|
|
678
|
+
};
|
|
679
|
+
connectApi(service: any): toggleGroup.Api<_zag_js_types0.PropTypes<{
|
|
680
|
+
[x: string]: any;
|
|
681
|
+
}>>;
|
|
682
|
+
getSpreadMap(): SpreadMap;
|
|
683
|
+
syncState(api: any): void;
|
|
684
|
+
template(props: any): string;
|
|
685
|
+
}
|
|
686
|
+
//#endregion
|
|
687
|
+
//#region src/components/tooltip.d.ts
|
|
688
|
+
declare class Tooltip extends ZagComponent {
|
|
689
|
+
open: boolean;
|
|
690
|
+
createMachine(_props: any): any;
|
|
691
|
+
getMachineProps(props: any): {
|
|
692
|
+
id: string;
|
|
693
|
+
open: any;
|
|
694
|
+
defaultOpen: any;
|
|
695
|
+
openDelay: any;
|
|
696
|
+
closeDelay: any;
|
|
697
|
+
closeOnPointerDown: any;
|
|
698
|
+
closeOnEscape: any;
|
|
699
|
+
closeOnScroll: any;
|
|
700
|
+
interactive: any;
|
|
701
|
+
disabled: any;
|
|
702
|
+
positioning: any;
|
|
703
|
+
'aria-label': any;
|
|
704
|
+
onOpenChange: (details: tooltip.OpenChangeDetails) => void;
|
|
705
|
+
};
|
|
706
|
+
connectApi(service: any): tooltip.Api<_zag_js_types0.PropTypes<{
|
|
707
|
+
[x: string]: any;
|
|
708
|
+
}>>;
|
|
709
|
+
getSpreadMap(): SpreadMap;
|
|
710
|
+
syncState(api: any): void;
|
|
711
|
+
template(props: any): string;
|
|
712
|
+
}
|
|
713
|
+
//#endregion
|
|
714
|
+
//#region src/components/tree-view.d.ts
|
|
715
|
+
declare class TreeView extends ZagComponent {
|
|
716
|
+
selectedValue: string[];
|
|
717
|
+
expandedValue: string[];
|
|
718
|
+
createMachine(_props: any): any;
|
|
719
|
+
getMachineProps(props: any): {
|
|
720
|
+
id: string;
|
|
721
|
+
collection: any;
|
|
722
|
+
selectedValue: any;
|
|
723
|
+
defaultSelectedValue: any;
|
|
724
|
+
expandedValue: any;
|
|
725
|
+
defaultExpandedValue: any;
|
|
726
|
+
selectionMode: any;
|
|
727
|
+
expandOnClick: any;
|
|
728
|
+
onSelectionChange: (details: treeView.SelectionChangeDetails) => void;
|
|
729
|
+
onExpandedChange: (details: treeView.ExpandedChangeDetails) => void;
|
|
730
|
+
};
|
|
731
|
+
connectApi(service: any): treeView.Api<_zag_js_types0.PropTypes<{
|
|
732
|
+
[x: string]: any;
|
|
733
|
+
}>, any>;
|
|
734
|
+
getSpreadMap(): SpreadMap;
|
|
735
|
+
syncState(api: any): void;
|
|
736
|
+
template(props: any): string;
|
|
737
|
+
}
|
|
738
|
+
//#endregion
|
|
739
|
+
//#region src/components/button.d.ts
|
|
740
|
+
declare class Button extends Component {
|
|
741
|
+
template(props: any): string;
|
|
742
|
+
}
|
|
743
|
+
//#endregion
|
|
744
|
+
//#region src/components/card.d.ts
|
|
745
|
+
declare class Card extends Component {
|
|
746
|
+
template(props: any): string;
|
|
747
|
+
}
|
|
748
|
+
declare class CardHeader extends Component {
|
|
749
|
+
template(props: any): string;
|
|
750
|
+
}
|
|
751
|
+
declare class CardTitle extends Component {
|
|
752
|
+
template(props: any): string;
|
|
753
|
+
}
|
|
754
|
+
declare class CardDescription extends Component {
|
|
755
|
+
template(props: any): string;
|
|
756
|
+
}
|
|
757
|
+
declare class CardContent extends Component {
|
|
758
|
+
template(props: any): string;
|
|
759
|
+
}
|
|
760
|
+
declare class CardFooter extends Component {
|
|
761
|
+
template(props: any): string;
|
|
762
|
+
}
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region src/components/input.d.ts
|
|
765
|
+
declare class Input extends Component {
|
|
766
|
+
template(props: any): string;
|
|
767
|
+
}
|
|
768
|
+
//#endregion
|
|
769
|
+
//#region src/components/textarea.d.ts
|
|
770
|
+
declare class Textarea extends Component {
|
|
771
|
+
template(props: any): string;
|
|
772
|
+
}
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region src/components/label.d.ts
|
|
775
|
+
declare class Label extends Component {
|
|
776
|
+
template(props: any): string;
|
|
777
|
+
}
|
|
778
|
+
//#endregion
|
|
779
|
+
//#region src/components/badge.d.ts
|
|
780
|
+
declare class Badge extends Component {
|
|
781
|
+
template(props: any): string;
|
|
782
|
+
}
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region src/components/alert.d.ts
|
|
785
|
+
declare class Alert extends Component {
|
|
786
|
+
template(props: any): string;
|
|
787
|
+
}
|
|
788
|
+
declare class AlertTitle extends Component {
|
|
789
|
+
template(props: any): string;
|
|
790
|
+
}
|
|
791
|
+
declare class AlertDescription extends Component {
|
|
792
|
+
template(props: any): string;
|
|
793
|
+
}
|
|
794
|
+
//#endregion
|
|
795
|
+
//#region src/components/separator.d.ts
|
|
796
|
+
declare class Separator extends Component {
|
|
797
|
+
template(props: any): string;
|
|
798
|
+
}
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region src/components/skeleton.d.ts
|
|
801
|
+
declare class Skeleton extends Component {
|
|
802
|
+
template(props: any): string;
|
|
803
|
+
}
|
|
804
|
+
//#endregion
|
|
805
|
+
export { Accordion, Alert, AlertDescription, AlertTitle, Avatar, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Clipboard, Collapsible, Combobox, Dialog, FileUpload, HoverCard, Input, Label, Menu, NumberInput, Pagination, PinInput, Popover, Progress, RadioGroup, RatingGroup, Select, Separator, Skeleton, Slider, type SpreadMap, Switch, Tabs, TagsInput, Textarea, ToastStore, Toaster, ToggleGroup, Tooltip, TreeView, ZagComponent, cn };
|
|
806
|
+
//# sourceMappingURL=index.d.mts.map
|