@avento-space/ts-ui 1.1.1 → 1.2.1

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.
Files changed (140) hide show
  1. package/dist/chunk-42QSY3LJ.js +4855 -0
  2. package/dist/chunk-42QSY3LJ.js.map +1 -0
  3. package/dist/chunk-7GJXOXOW.js +108 -0
  4. package/dist/chunk-7GJXOXOW.js.map +1 -0
  5. package/dist/chunk-DO3PEBDS.js +79 -0
  6. package/dist/chunk-DO3PEBDS.js.map +1 -0
  7. package/dist/chunk-MFONNOJU.js +3 -0
  8. package/dist/chunk-MFONNOJU.js.map +1 -0
  9. package/dist/chunk-NJAZMTMT.js +5645 -0
  10. package/dist/chunk-NJAZMTMT.js.map +1 -0
  11. package/dist/chunk-PRZASPFU.js +1730 -0
  12. package/dist/chunk-PRZASPFU.js.map +1 -0
  13. package/dist/chunk-Q5RCPPCF.js +406 -0
  14. package/dist/chunk-Q5RCPPCF.js.map +1 -0
  15. package/dist/chunk-RAWESWNC.js +3 -0
  16. package/dist/chunk-RAWESWNC.js.map +1 -0
  17. package/dist/chunk-U4WYCYL6.js +116 -0
  18. package/dist/chunk-U4WYCYL6.js.map +1 -0
  19. package/dist/components/index.d.ts +13 -11
  20. package/dist/components/index.js +5 -5
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/define.d.ts +2 -2
  23. package/dist/define.js +8 -1
  24. package/dist/define.js.map +1 -1
  25. package/dist/{core/element.d.ts → element-DHtonJNX.d.ts} +3 -2
  26. package/dist/form.wc-CwjVsdUu.d.ts +1518 -0
  27. package/dist/icons/index.d.ts +33 -5
  28. package/dist/icons/index.js +5 -3
  29. package/dist/icons/index.js.map +1 -1
  30. package/dist/index.d.ts +35 -10
  31. package/dist/index.js +44 -9
  32. package/dist/index.js.map +1 -1
  33. package/dist/jsx-dev-runtime.d.ts +1 -2
  34. package/dist/jsx-dev-runtime.js +3 -1
  35. package/dist/jsx-dev-runtime.js.map +1 -1
  36. package/dist/jsx-runtime.d.ts +644 -7
  37. package/dist/jsx-runtime.js +3 -120
  38. package/dist/jsx-runtime.js.map +1 -1
  39. package/dist/plugins/index.d.ts +21 -3
  40. package/dist/plugins/index.js +85 -1
  41. package/dist/plugins/index.js.map +1 -1
  42. package/dist/react/index.d.ts +1260 -15
  43. package/dist/react/index.js +1428 -15
  44. package/dist/react/index.js.map +1 -1
  45. package/dist/{core/types.d.ts → types-DWglFa91.d.ts} +8 -7
  46. package/package.json +32 -8
  47. package/dist/components/box.wc.d.ts +0 -24
  48. package/dist/components/box.wc.d.ts.map +0 -1
  49. package/dist/components/box.wc.js +0 -52
  50. package/dist/components/box.wc.js.map +0 -1
  51. package/dist/components/button.wc.d.ts +0 -32
  52. package/dist/components/button.wc.d.ts.map +0 -1
  53. package/dist/components/button.wc.js +0 -91
  54. package/dist/components/button.wc.js.map +0 -1
  55. package/dist/components/index.d.ts.map +0 -1
  56. package/dist/components/input.wc.d.ts +0 -45
  57. package/dist/components/input.wc.d.ts.map +0 -1
  58. package/dist/components/input.wc.js +0 -130
  59. package/dist/components/input.wc.js.map +0 -1
  60. package/dist/components/list.wc.d.ts +0 -49
  61. package/dist/components/list.wc.d.ts.map +0 -1
  62. package/dist/components/list.wc.js +0 -120
  63. package/dist/components/list.wc.js.map +0 -1
  64. package/dist/components/portal.wc.d.ts +0 -18
  65. package/dist/components/portal.wc.d.ts.map +0 -1
  66. package/dist/components/portal.wc.js +0 -78
  67. package/dist/components/portal.wc.js.map +0 -1
  68. package/dist/components/styles.d.ts +0 -7
  69. package/dist/components/styles.d.ts.map +0 -1
  70. package/dist/components/styles.js +0 -134
  71. package/dist/components/styles.js.map +0 -1
  72. package/dist/core/define.d.ts +0 -5
  73. package/dist/core/define.d.ts.map +0 -1
  74. package/dist/core/define.js +0 -26
  75. package/dist/core/define.js.map +0 -1
  76. package/dist/core/element.d.ts.map +0 -1
  77. package/dist/core/element.js +0 -30
  78. package/dist/core/element.js.map +0 -1
  79. package/dist/core/index.d.ts +0 -7
  80. package/dist/core/index.d.ts.map +0 -1
  81. package/dist/core/index.js +0 -5
  82. package/dist/core/index.js.map +0 -1
  83. package/dist/core/plugin.d.ts +0 -17
  84. package/dist/core/plugin.d.ts.map +0 -1
  85. package/dist/core/plugin.js +0 -117
  86. package/dist/core/plugin.js.map +0 -1
  87. package/dist/core/reactive-context.d.ts +0 -12
  88. package/dist/core/reactive-context.d.ts.map +0 -1
  89. package/dist/core/reactive-context.js +0 -34
  90. package/dist/core/reactive-context.js.map +0 -1
  91. package/dist/core/scheduler.d.ts +0 -13
  92. package/dist/core/scheduler.d.ts.map +0 -1
  93. package/dist/core/scheduler.js +0 -80
  94. package/dist/core/scheduler.js.map +0 -1
  95. package/dist/core/signal.d.ts +0 -14
  96. package/dist/core/signal.d.ts.map +0 -1
  97. package/dist/core/signal.js +0 -391
  98. package/dist/core/signal.js.map +0 -1
  99. package/dist/core/store.d.ts +0 -6
  100. package/dist/core/store.d.ts.map +0 -1
  101. package/dist/core/store.js +0 -35
  102. package/dist/core/store.js.map +0 -1
  103. package/dist/core/types.d.ts.map +0 -1
  104. package/dist/core/types.js +0 -2
  105. package/dist/core/types.js.map +0 -1
  106. package/dist/define.d.ts.map +0 -1
  107. package/dist/icons/icon-element.d.ts +0 -25
  108. package/dist/icons/icon-element.d.ts.map +0 -1
  109. package/dist/icons/icon-element.js +0 -63
  110. package/dist/icons/icon-element.js.map +0 -1
  111. package/dist/icons/index.d.ts.map +0 -1
  112. package/dist/icons/registry.d.ts +0 -6
  113. package/dist/icons/registry.d.ts.map +0 -1
  114. package/dist/icons/registry.js +0 -4775
  115. package/dist/icons/registry.js.map +0 -1
  116. package/dist/index.d.ts.map +0 -1
  117. package/dist/jsx-dev-runtime.d.ts.map +0 -1
  118. package/dist/jsx-runtime.d.ts.map +0 -1
  119. package/dist/jsx-types.d.ts +0 -651
  120. package/dist/jsx-types.d.ts.map +0 -1
  121. package/dist/jsx-types.js +0 -3
  122. package/dist/jsx-types.js.map +0 -1
  123. package/dist/plugins/index.d.ts.map +0 -1
  124. package/dist/plugins/router.d.ts +0 -4
  125. package/dist/plugins/router.d.ts.map +0 -1
  126. package/dist/plugins/router.js +0 -90
  127. package/dist/plugins/router.js.map +0 -1
  128. package/dist/plugins/types.d.ts +0 -16
  129. package/dist/plugins/types.d.ts.map +0 -1
  130. package/dist/plugins/types.js +0 -2
  131. package/dist/plugins/types.js.map +0 -1
  132. package/dist/react/icon.d.ts +0 -8
  133. package/dist/react/icon.d.ts.map +0 -1
  134. package/dist/react/icon.js +0 -7
  135. package/dist/react/icon.js.map +0 -1
  136. package/dist/react/icons.d.ts +0 -1194
  137. package/dist/react/icons.d.ts.map +0 -1
  138. package/dist/react/icons.js +0 -1196
  139. package/dist/react/icons.js.map +0 -1
  140. package/dist/react/index.d.ts.map +0 -1
@@ -0,0 +1,1518 @@
1
+ import { U as UElement } from './element-DHtonJNX.js';
2
+ import { W as WritableSignal } from './types-DWglFa91.js';
3
+
4
+ interface ButtonProps {
5
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'link';
6
+ size?: 'sm' | 'md' | 'lg';
7
+ disabled?: boolean;
8
+ type?: 'button' | 'submit' | 'reset';
9
+ class?: string;
10
+ onClick?: (e: MouseEvent) => void;
11
+ }
12
+ declare class UButton extends UElement {
13
+ static get observedAttributes(): string[];
14
+ private _variant;
15
+ private _size;
16
+ private _disabled;
17
+ private _buttonType;
18
+ constructor();
19
+ get variant(): string;
20
+ set variant(val: string);
21
+ get size(): string;
22
+ set size(val: string);
23
+ get disabled(): boolean;
24
+ set disabled(val: boolean);
25
+ get buttonType(): string;
26
+ set buttonType(val: string);
27
+ private _updateAttr;
28
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
29
+ connectedCallback(): void;
30
+ private _sync;
31
+ _mount(): void;
32
+ }
33
+
34
+ interface InputProps {
35
+ value?: string;
36
+ placeholder?: string;
37
+ disabled?: boolean;
38
+ readonly?: boolean;
39
+ type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';
40
+ name?: string;
41
+ class?: string;
42
+ onInput?: (value: string) => void;
43
+ onChange?: (value: string) => void;
44
+ onFocus?: () => void;
45
+ onBlur?: () => void;
46
+ }
47
+ declare class UInput extends UElement {
48
+ static get observedAttributes(): string[];
49
+ private _placeholder;
50
+ private _disabled;
51
+ private _readonly;
52
+ private _inputType;
53
+ private _inputName;
54
+ constructor();
55
+ get value(): string;
56
+ set value(val: string);
57
+ get placeholder(): string;
58
+ set placeholder(val: string);
59
+ get disabled(): boolean;
60
+ set disabled(val: boolean);
61
+ get readonly(): boolean;
62
+ set readonly(val: boolean);
63
+ get inputType(): string;
64
+ set inputType(val: string);
65
+ get inputName(): string;
66
+ set inputName(val: string);
67
+ connectedCallback(): void;
68
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
69
+ private _sync;
70
+ _mount(): void;
71
+ }
72
+ declare function createControlledInput(initialValue?: string): {
73
+ component: (props?: Omit<InputProps, "value" | "onInput">) => UInput;
74
+ value: WritableSignal<string>;
75
+ reset: () => void;
76
+ };
77
+
78
+ type BoxAs = 'div' | 'span' | 'section' | 'article' | 'aside' | 'main' | 'header' | 'footer' | 'nav' | 'ul' | 'ol' | 'li' | 'p' | 'a' | 'form' | 'fieldset';
79
+ interface BoxProps {
80
+ as?: BoxAs | string;
81
+ class?: string;
82
+ id?: string;
83
+ hidden?: boolean;
84
+ title?: string;
85
+ role?: string;
86
+ tabIndex?: number;
87
+ }
88
+ declare class UBox extends UElement {
89
+ static get observedAttributes(): string[];
90
+ private _as;
91
+ constructor();
92
+ get as(): string;
93
+ set as(val: string);
94
+ connectedCallback(): void;
95
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
96
+ private _rebuild;
97
+ private _sync;
98
+ _mount(): void;
99
+ }
100
+
101
+ interface ListProps {
102
+ items?: any[];
103
+ renderItem?: (item: any, index: number) => HTMLElement | string;
104
+ emptyState?: string;
105
+ }
106
+ declare class UList extends UElement {
107
+ private _items;
108
+ private _renderItem;
109
+ private _emptyText;
110
+ constructor();
111
+ get items(): any[];
112
+ set items(val: any[]);
113
+ get renderItem(): ((item: any, index: number) => HTMLElement | string) | null;
114
+ set renderItem(fn: ((item: any, index: number) => HTMLElement | string) | null);
115
+ get emptyState(): string;
116
+ set emptyState(val: string);
117
+ private _renderList;
118
+ _mount(): void;
119
+ }
120
+ interface VirtualListProps {
121
+ items: any[];
122
+ renderItem: (item: any, index: number) => HTMLElement;
123
+ itemHeight: number;
124
+ containerHeight: number;
125
+ overscan?: number;
126
+ }
127
+ declare class UVirtualList extends UElement {
128
+ static get observedAttributes(): string[];
129
+ private _items;
130
+ private _renderItem;
131
+ private _itemHeight;
132
+ private _containerHeight;
133
+ private _overscan;
134
+ constructor();
135
+ get items(): any[];
136
+ set items(val: any[]);
137
+ get renderItem(): ((item: any, index: number) => HTMLElement) | null;
138
+ set renderItem(fn: ((item: any, index: number) => HTMLElement) | null);
139
+ get itemHeight(): number;
140
+ set itemHeight(val: number);
141
+ get containerHeight(): number;
142
+ set containerHeight(val: number);
143
+ connectedCallback(): void;
144
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
145
+ private _render;
146
+ _mount(): void;
147
+ }
148
+
149
+ interface PortalProps {
150
+ target?: string | Element;
151
+ }
152
+ declare function setPortalRoot(el: Element | null): void;
153
+ declare class UPortal extends HTMLElement {
154
+ private _container;
155
+ private _observer;
156
+ constructor();
157
+ static get observedAttributes(): string[];
158
+ get target(): string | null;
159
+ set target(val: string | null);
160
+ connectedCallback(): void;
161
+ disconnectedCallback(): void;
162
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
163
+ private _open;
164
+ private _close;
165
+ }
166
+
167
+ type TextSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
168
+ type TextWeight = 'normal' | 'medium' | 'semibold' | 'bold';
169
+ type TextColor = 'default' | 'muted' | 'accent' | 'danger' | 'success';
170
+ interface TextProps {
171
+ size?: TextSize;
172
+ weight?: TextWeight;
173
+ color?: TextColor;
174
+ as?: 'span' | 'p' | 'div' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
175
+ align?: 'left' | 'center' | 'right';
176
+ truncate?: boolean;
177
+ class?: string;
178
+ }
179
+ declare class UText extends UElement {
180
+ static get observedAttributes(): string[];
181
+ private _size;
182
+ private _weight;
183
+ private _color;
184
+ private _as;
185
+ private _align;
186
+ private _truncate;
187
+ constructor();
188
+ get size(): TextSize;
189
+ set size(val: TextSize);
190
+ get weight(): TextWeight;
191
+ set weight(val: TextWeight);
192
+ get color(): TextColor;
193
+ set color(val: TextColor);
194
+ get textAs(): string;
195
+ set textAs(val: string);
196
+ connectedCallback(): void;
197
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
198
+ private _rebuild;
199
+ private _sync;
200
+ _mount(): void;
201
+ }
202
+
203
+ interface StackProps {
204
+ gap?: number;
205
+ align?: 'start' | 'center' | 'end' | 'stretch';
206
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around';
207
+ wrap?: boolean;
208
+ class?: string;
209
+ }
210
+ declare class UStack extends UElement {
211
+ static get observedAttributes(): string[];
212
+ private _gap;
213
+ private _align;
214
+ private _justify;
215
+ private _wrap;
216
+ constructor();
217
+ get gap(): number;
218
+ set gap(val: number);
219
+ get align(): string;
220
+ set align(val: string);
221
+ get justify(): string;
222
+ set justify(val: string);
223
+ connectedCallback(): void;
224
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
225
+ private _sync;
226
+ _mount(): void;
227
+ }
228
+ declare class UHStack extends UStack {
229
+ constructor();
230
+ }
231
+
232
+ interface GridProps {
233
+ columns?: number;
234
+ gap?: number;
235
+ align?: 'start' | 'center' | 'end' | 'stretch';
236
+ class?: string;
237
+ }
238
+ declare class UGrid extends UElement {
239
+ static get observedAttributes(): string[];
240
+ private _columns;
241
+ private _gap;
242
+ private _align;
243
+ constructor();
244
+ get columns(): number;
245
+ set columns(val: number);
246
+ get gap(): number;
247
+ set gap(val: number);
248
+ connectedCallback(): void;
249
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
250
+ private _sync;
251
+ _mount(): void;
252
+ }
253
+
254
+ interface PressableProps {
255
+ disabled?: boolean;
256
+ class?: string;
257
+ onPress?: (e: CustomEvent) => void;
258
+ onPressStart?: (e: CustomEvent) => void;
259
+ onPressEnd?: (e: CustomEvent) => void;
260
+ }
261
+ declare class UPressable extends UElement {
262
+ static get observedAttributes(): string[];
263
+ private _disabled;
264
+ constructor();
265
+ get disabled(): boolean;
266
+ set disabled(val: boolean);
267
+ connectedCallback(): void;
268
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
269
+ private _sync;
270
+ private _onPointerDown;
271
+ private _onPointerUp;
272
+ private _onPointerCancel;
273
+ private _onKeyDown;
274
+ private _onKeyUp;
275
+ _mount(): void;
276
+ }
277
+
278
+ interface FocusScopeProps {
279
+ class?: string;
280
+ }
281
+ declare class UFocusScope extends UElement {
282
+ private _previousFocused;
283
+ constructor();
284
+ connectedCallback(): void;
285
+ disconnectedCallback(): void;
286
+ focusFirst(): void;
287
+ focusLast(): void;
288
+ private _getFocusable;
289
+ private _onKeyDown;
290
+ private _restoreFocus;
291
+ _mount(): void;
292
+ }
293
+
294
+ interface DismissableLayerProps {
295
+ enabled?: boolean;
296
+ class?: string;
297
+ onDismiss?: () => void;
298
+ }
299
+ declare class UDismissableLayer extends UElement {
300
+ static get observedAttributes(): string[];
301
+ private _enabled;
302
+ private _handleOutsideClick;
303
+ private _handleEscape;
304
+ constructor();
305
+ get enabled(): boolean;
306
+ set enabled(val: boolean);
307
+ connectedCallback(): void;
308
+ disconnectedCallback(): void;
309
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
310
+ private _enable;
311
+ private _disable;
312
+ _mount(): void;
313
+ }
314
+
315
+ interface OverlayProps {
316
+ visible?: boolean;
317
+ opacity?: number;
318
+ blur?: boolean;
319
+ class?: string;
320
+ onClick?: (e: MouseEvent) => void;
321
+ }
322
+ declare class UOverlay extends UElement {
323
+ static get observedAttributes(): string[];
324
+ private _visible;
325
+ private _opacity;
326
+ private _blur;
327
+ constructor();
328
+ get visible(): boolean;
329
+ set visible(val: boolean);
330
+ get opacity(): number;
331
+ set opacity(val: number);
332
+ connectedCallback(): void;
333
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
334
+ private _sync;
335
+ show(): void;
336
+ hide(): void;
337
+ toggle(): void;
338
+ _mount(): void;
339
+ }
340
+
341
+ interface FieldProps {
342
+ label?: string;
343
+ error?: string;
344
+ hint?: string;
345
+ required?: boolean;
346
+ class?: string;
347
+ }
348
+ declare class UField extends UElement {
349
+ static get observedAttributes(): string[];
350
+ private _label;
351
+ private _error;
352
+ private _hint;
353
+ private _required;
354
+ constructor();
355
+ get label(): string;
356
+ set label(val: string);
357
+ get error(): string;
358
+ set error(val: string);
359
+ get hint(): string;
360
+ set hint(val: string);
361
+ get required(): boolean;
362
+ set required(val: boolean);
363
+ connectedCallback(): void;
364
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
365
+ private _sync;
366
+ _mount(): void;
367
+ }
368
+
369
+ interface CheckboxProps {
370
+ checked?: boolean;
371
+ disabled?: boolean;
372
+ value?: string;
373
+ class?: string;
374
+ onChange?: (checked: boolean) => void;
375
+ }
376
+ declare class UCheckbox extends UElement {
377
+ static get observedAttributes(): string[];
378
+ private _checked;
379
+ private _disabled;
380
+ private _value;
381
+ constructor();
382
+ get checked(): boolean;
383
+ set checked(val: boolean);
384
+ get disabled(): boolean;
385
+ set disabled(val: boolean);
386
+ get value(): string;
387
+ set value(val: string);
388
+ connectedCallback(): void;
389
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
390
+ private _sync;
391
+ _mount(): void;
392
+ }
393
+
394
+ interface SelectOption {
395
+ label: string;
396
+ value: string;
397
+ disabled?: boolean;
398
+ }
399
+ interface SelectProps {
400
+ value?: string;
401
+ placeholder?: string;
402
+ disabled?: boolean;
403
+ options?: SelectOption[];
404
+ class?: string;
405
+ onChange?: (value: string) => void;
406
+ }
407
+ declare class USelect extends UElement {
408
+ static get observedAttributes(): string[];
409
+ private _options;
410
+ private _placeholder;
411
+ private _disabled;
412
+ private _value;
413
+ constructor();
414
+ get value(): string;
415
+ set value(val: string);
416
+ get placeholder(): string;
417
+ set placeholder(val: string);
418
+ get disabled(): boolean;
419
+ set disabled(val: boolean);
420
+ get options(): SelectOption[];
421
+ set options(val: SelectOption[]);
422
+ connectedCallback(): void;
423
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
424
+ private _renderOptions;
425
+ private _sync;
426
+ _mount(): void;
427
+ }
428
+
429
+ interface LinkProps {
430
+ href?: string;
431
+ target?: string;
432
+ rel?: string;
433
+ disabled?: boolean;
434
+ variant?: 'default' | 'accent' | 'muted' | 'danger';
435
+ underline?: 'hover' | 'always' | 'none';
436
+ external?: boolean;
437
+ download?: string;
438
+ class?: string;
439
+ onClick?: (e: MouseEvent) => void;
440
+ }
441
+ declare class ULink extends UElement {
442
+ static get observedAttributes(): string[];
443
+ private _href;
444
+ private _target;
445
+ private _rel;
446
+ private _disabled;
447
+ private _variant;
448
+ private _underline;
449
+ private _external;
450
+ private _download;
451
+ constructor();
452
+ get href(): string;
453
+ set href(val: string);
454
+ get target(): string;
455
+ set target(val: string);
456
+ get disabled(): boolean;
457
+ set disabled(val: boolean);
458
+ get variant(): string;
459
+ set variant(val: string);
460
+ get underline(): string;
461
+ set underline(val: string);
462
+ get external(): boolean;
463
+ set external(val: boolean);
464
+ get download(): string;
465
+ set download(val: string);
466
+ private _updateAttr;
467
+ connectedCallback(): void;
468
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
469
+ private _sync;
470
+ _mount(): void;
471
+ }
472
+
473
+ interface SpacerProps {
474
+ size?: number;
475
+ }
476
+ declare class USpacer extends UElement {
477
+ static get observedAttributes(): string[];
478
+ private _size;
479
+ constructor();
480
+ get size(): number;
481
+ set size(val: number);
482
+ connectedCallback(): void;
483
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
484
+ private _sync;
485
+ _mount(): void;
486
+ }
487
+
488
+ interface ContainerProps {
489
+ maxWidth?: string;
490
+ padding?: string;
491
+ centered?: boolean;
492
+ class?: string;
493
+ }
494
+ declare class UContainer extends UElement {
495
+ static get observedAttributes(): string[];
496
+ private _maxWidth;
497
+ private _padding;
498
+ constructor();
499
+ get maxWidth(): string;
500
+ set maxWidth(val: string);
501
+ connectedCallback(): void;
502
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
503
+ private _sync;
504
+ _mount(): void;
505
+ }
506
+
507
+ interface HoverableProps {
508
+ disabled?: boolean;
509
+ class?: string;
510
+ onHoverStart?: () => void;
511
+ onHoverEnd?: () => void;
512
+ }
513
+ declare class UHoverable extends UElement {
514
+ static get observedAttributes(): string[];
515
+ private _disabled;
516
+ constructor();
517
+ get disabled(): boolean;
518
+ set disabled(val: boolean);
519
+ connectedCallback(): void;
520
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
521
+ _mount(): void;
522
+ }
523
+
524
+ interface FocusTrapProps {
525
+ active?: boolean;
526
+ class?: string;
527
+ }
528
+ declare class UFocusTrap extends UElement {
529
+ static get observedAttributes(): string[];
530
+ private _active;
531
+ constructor();
532
+ get active(): boolean;
533
+ set active(val: boolean);
534
+ connectedCallback(): void;
535
+ disconnectedCallback(): void;
536
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
537
+ private _trap;
538
+ private _getFocusable;
539
+ private _focusFirst;
540
+ _mount(): void;
541
+ }
542
+
543
+ type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right';
544
+
545
+ type PopperPlacement = Placement;
546
+ interface PopperProps {
547
+ target?: string | HTMLElement;
548
+ placement?: PopperPlacement;
549
+ offset?: number;
550
+ flip?: boolean;
551
+ class?: string;
552
+ }
553
+ declare class UPopper extends UElement {
554
+ static get observedAttributes(): string[];
555
+ private _target;
556
+ private _targetSelector;
557
+ private _placement;
558
+ private _offset;
559
+ private _flip;
560
+ private _resizeObserver;
561
+ constructor();
562
+ get placement(): PopperPlacement;
563
+ set placement(val: PopperPlacement);
564
+ get offset(): number;
565
+ set offset(val: number);
566
+ set target(val: string | HTMLElement | null);
567
+ connectedCallback(): void;
568
+ disconnectedCallback(): void;
569
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
570
+ update(): void;
571
+ private _onScroll;
572
+ private _onResize;
573
+ private _position;
574
+ _mount(): void;
575
+ }
576
+
577
+ interface DialogRootProps {
578
+ open?: boolean;
579
+ modal?: boolean;
580
+ class?: string;
581
+ onClose?: () => void;
582
+ }
583
+ declare class UDialogRoot extends UElement {
584
+ static get observedAttributes(): string[];
585
+ private _open;
586
+ private _modal;
587
+ private _overlay;
588
+ private _dismissable;
589
+ private _focusTrap;
590
+ constructor();
591
+ get open(): boolean;
592
+ set open(val: boolean);
593
+ get modal(): boolean;
594
+ set modal(val: boolean);
595
+ openDialog(): void;
596
+ closeDialog(): void;
597
+ toggleDialog(): void;
598
+ connectedCallback(): void;
599
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
600
+ private _sync;
601
+ private _updateOpenState;
602
+ private _injectOverlay;
603
+ private _removeOverlay;
604
+ private _injectDismissable;
605
+ private _removeDismissable;
606
+ private _injectFocusTrap;
607
+ private _removeFocusTrap;
608
+ _mount(): void;
609
+ }
610
+
611
+ type TooltipPlacement = Placement;
612
+ interface TooltipRootProps {
613
+ content?: string;
614
+ placement?: TooltipPlacement;
615
+ delay?: number;
616
+ disabled?: boolean;
617
+ class?: string;
618
+ }
619
+ declare class UTooltipRoot extends UElement {
620
+ static get observedAttributes(): string[];
621
+ private _content;
622
+ private _placement;
623
+ private _delay;
624
+ private _disabled;
625
+ private _showTimeout;
626
+ private _hideTimeout;
627
+ constructor();
628
+ get content(): string;
629
+ set content(val: string);
630
+ get placement(): TooltipPlacement;
631
+ set placement(val: TooltipPlacement);
632
+ get delay(): number;
633
+ set delay(val: number);
634
+ connectedCallback(): void;
635
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
636
+ private _sync;
637
+ show(): void;
638
+ hide(): void;
639
+ private _position;
640
+ _mount(): void;
641
+ }
642
+
643
+ interface TextareaProps {
644
+ value?: string;
645
+ placeholder?: string;
646
+ disabled?: boolean;
647
+ readonly?: boolean;
648
+ rows?: number;
649
+ maxLength?: number;
650
+ name?: string;
651
+ class?: string;
652
+ onInput?: (value: string) => void;
653
+ }
654
+ declare class UTextarea extends UElement {
655
+ static get observedAttributes(): string[];
656
+ private _placeholder;
657
+ private _disabled;
658
+ private _readonly;
659
+ private _rows;
660
+ private _maxLength;
661
+ private _name;
662
+ constructor();
663
+ get value(): string;
664
+ set value(val: string);
665
+ get placeholder(): string;
666
+ set placeholder(val: string);
667
+ get disabled(): boolean;
668
+ set disabled(val: boolean);
669
+ get rows(): number;
670
+ set rows(val: number);
671
+ connectedCallback(): void;
672
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
673
+ private _sync;
674
+ _mount(): void;
675
+ }
676
+
677
+ interface RadioGroupProps {
678
+ value?: string;
679
+ name?: string;
680
+ disabled?: boolean;
681
+ orientation?: 'horizontal' | 'vertical';
682
+ class?: string;
683
+ onChange?: (value: string) => void;
684
+ }
685
+ declare class URadioGroup extends UElement {
686
+ static get observedAttributes(): string[];
687
+ private _value;
688
+ private _name;
689
+ private _disabled;
690
+ private _orientation;
691
+ constructor();
692
+ get value(): string;
693
+ set value(val: string);
694
+ get name(): string;
695
+ set name(val: string);
696
+ get disabled(): boolean;
697
+ set disabled(val: boolean);
698
+ connectedCallback(): void;
699
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
700
+ private _sync;
701
+ _mount(): void;
702
+ private _updateRadios;
703
+ }
704
+ interface RadioProps {
705
+ value?: string;
706
+ disabled?: boolean;
707
+ checked?: boolean;
708
+ class?: string;
709
+ }
710
+ declare class URadio extends UElement {
711
+ static get observedAttributes(): string[];
712
+ private _value;
713
+ private _disabled;
714
+ private _checked;
715
+ constructor();
716
+ get value(): string;
717
+ set value(val: string);
718
+ get checked(): boolean;
719
+ set checked(val: boolean);
720
+ get disabled(): boolean;
721
+ set disabled(val: boolean);
722
+ connectedCallback(): void;
723
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
724
+ private _sync;
725
+ _mount(): void;
726
+ }
727
+
728
+ interface SwitchProps {
729
+ checked?: boolean;
730
+ disabled?: boolean;
731
+ value?: string;
732
+ class?: string;
733
+ onChange?: (checked: boolean) => void;
734
+ }
735
+ declare class USwitch extends UElement {
736
+ static get observedAttributes(): string[];
737
+ private _checked;
738
+ private _disabled;
739
+ constructor();
740
+ get checked(): boolean;
741
+ set checked(val: boolean);
742
+ get disabled(): boolean;
743
+ set disabled(val: boolean);
744
+ connectedCallback(): void;
745
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
746
+ private _sync;
747
+ _mount(): void;
748
+ }
749
+
750
+ interface LabelProps {
751
+ for?: string;
752
+ required?: boolean;
753
+ class?: string;
754
+ }
755
+ declare class ULabel extends UElement {
756
+ static get observedAttributes(): string[];
757
+ private _for;
758
+ private _required;
759
+ constructor();
760
+ get htmlFor(): string;
761
+ set htmlFor(val: string);
762
+ get required(): boolean;
763
+ set required(val: boolean);
764
+ connectedCallback(): void;
765
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
766
+ private _sync;
767
+ _mount(): void;
768
+ }
769
+
770
+ type CollectionSelection = 'none' | 'single' | 'multiple';
771
+ interface CollectionProps {
772
+ items?: any[];
773
+ selection?: CollectionSelection;
774
+ selected?: string[];
775
+ class?: string;
776
+ onChange?: (selected: string[]) => void;
777
+ }
778
+ declare class UCollection extends UElement {
779
+ static get observedAttributes(): string[];
780
+ private _items;
781
+ private _selection;
782
+ private _selected;
783
+ constructor();
784
+ get items(): any[];
785
+ set items(val: any[]);
786
+ get selection(): CollectionSelection;
787
+ set selection(val: CollectionSelection);
788
+ get selected(): string[];
789
+ set selected(val: string[]);
790
+ select(key: string): void;
791
+ deselect(key: string): void;
792
+ toggle(key: string): void;
793
+ clearSelection(): void;
794
+ connectedCallback(): void;
795
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
796
+ private _updateItems;
797
+ private _dispatchChange;
798
+ _mount(): void;
799
+ }
800
+
801
+ interface TreeNodeData {
802
+ id: string;
803
+ label: string;
804
+ children?: TreeNodeData[];
805
+ expanded?: boolean;
806
+ icon?: string;
807
+ }
808
+ interface TreeProps {
809
+ items?: TreeNodeData[];
810
+ class?: string;
811
+ }
812
+ declare class UTree extends UElement {
813
+ static get observedAttributes(): string[];
814
+ private _items;
815
+ constructor();
816
+ get items(): TreeNodeData[];
817
+ set items(val: TreeNodeData[]);
818
+ private _render;
819
+ private _renderNode;
820
+ private _onClick;
821
+ _mount(): void;
822
+ }
823
+
824
+ interface TableColumn {
825
+ key: string;
826
+ label: string;
827
+ sortable?: boolean;
828
+ width?: string;
829
+ }
830
+ interface TableProps {
831
+ columns?: TableColumn[];
832
+ rows?: Record<string, any>[];
833
+ sortable?: boolean;
834
+ class?: string;
835
+ }
836
+ declare class UTable extends UElement {
837
+ static get observedAttributes(): string[];
838
+ private _columns;
839
+ private _rows;
840
+ private _sortable;
841
+ private _sortKey;
842
+ private _sortDir;
843
+ constructor();
844
+ get columns(): TableColumn[];
845
+ set columns(val: TableColumn[]);
846
+ get rows(): Record<string, any>[];
847
+ set rows(val: Record<string, any>[]);
848
+ connectedCallback(): void;
849
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
850
+ private _render;
851
+ private _renderHeader;
852
+ private _renderBody;
853
+ private _sortedData;
854
+ _mount(): void;
855
+ }
856
+
857
+ interface RouterViewProps {
858
+ class?: string;
859
+ }
860
+ declare class URouterView extends UElement {
861
+ constructor();
862
+ navigate(path: string): void;
863
+ _mount(): void;
864
+ }
865
+
866
+ interface BreadcrumbItem {
867
+ label: string;
868
+ href?: string;
869
+ }
870
+ interface BreadcrumbProps {
871
+ items?: BreadcrumbItem[];
872
+ separator?: string;
873
+ class?: string;
874
+ }
875
+ declare class UBreadcrumb extends UElement {
876
+ static get observedAttributes(): string[];
877
+ private _items;
878
+ private _separator;
879
+ constructor();
880
+ get items(): BreadcrumbItem[];
881
+ set items(val: BreadcrumbItem[]);
882
+ get separator(): string;
883
+ set separator(val: string);
884
+ connectedCallback(): void;
885
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
886
+ private _render;
887
+ _mount(): void;
888
+ }
889
+
890
+ interface TabsProps {
891
+ value?: string;
892
+ orientation?: 'horizontal' | 'vertical';
893
+ class?: string;
894
+ onChange?: (value: string) => void;
895
+ }
896
+ declare class UTabs extends UElement {
897
+ static get observedAttributes(): string[];
898
+ private _value;
899
+ private _orientation;
900
+ constructor();
901
+ get value(): string;
902
+ set value(val: string);
903
+ connectedCallback(): void;
904
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
905
+ private _sync;
906
+ _mount(): void;
907
+ }
908
+
909
+ interface VisuallyHiddenProps {
910
+ class?: string;
911
+ }
912
+ declare class UVisuallyHidden extends UElement {
913
+ constructor();
914
+ _mount(): void;
915
+ }
916
+
917
+ type LiveRegionPoliteness = 'off' | 'polite' | 'assertive';
918
+ interface LiveRegionProps {
919
+ politeness?: LiveRegionPoliteness;
920
+ atomic?: boolean;
921
+ class?: string;
922
+ }
923
+ declare class ULiveRegion extends UElement {
924
+ static get observedAttributes(): string[];
925
+ private _politeness;
926
+ private _atomic;
927
+ constructor();
928
+ get politeness(): LiveRegionPoliteness;
929
+ set politeness(val: LiveRegionPoliteness);
930
+ announce(message: string): void;
931
+ connectedCallback(): void;
932
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
933
+ private _sync;
934
+ _mount(): void;
935
+ }
936
+
937
+ interface FocusManagerProps {
938
+ class?: string;
939
+ }
940
+ declare class UFocusManager extends UElement {
941
+ constructor();
942
+ getFocusable(): HTMLElement[];
943
+ focusFirst(): void;
944
+ focusLast(): void;
945
+ focusNext(current?: HTMLElement): void;
946
+ focusPrevious(current?: HTMLElement): void;
947
+ _mount(): void;
948
+ }
949
+
950
+ interface KeyboardNavigationProps {
951
+ selector?: string;
952
+ orientation?: 'horizontal' | 'vertical' | 'both';
953
+ loop?: boolean;
954
+ class?: string;
955
+ }
956
+ declare class UKeyboardNavigation extends UElement {
957
+ static get observedAttributes(): string[];
958
+ private _selector;
959
+ private _orientation;
960
+ private _loop;
961
+ constructor();
962
+ get orientation(): string;
963
+ set orientation(val: string);
964
+ get loop(): boolean;
965
+ set loop(val: boolean);
966
+ connectedCallback(): void;
967
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
968
+ private _getItems;
969
+ private _onKeyDown;
970
+ _mount(): void;
971
+ }
972
+
973
+ type PresenceAnimation = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'scale' | 'none';
974
+ interface PresenceProps {
975
+ present?: boolean;
976
+ animation?: PresenceAnimation;
977
+ duration?: number;
978
+ class?: string;
979
+ }
980
+ declare class UPresence extends UElement {
981
+ static get observedAttributes(): string[];
982
+ private _present;
983
+ private _animation;
984
+ private _duration;
985
+ private _mounted;
986
+ constructor();
987
+ get present(): boolean;
988
+ set present(val: boolean);
989
+ get animation(): PresenceAnimation;
990
+ set animation(val: PresenceAnimation);
991
+ connectedCallback(): void;
992
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
993
+ private _enter;
994
+ private _leave;
995
+ _mount(): void;
996
+ }
997
+
998
+ type TransitionType = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'scale' | 'none';
999
+ interface TransitionProps {
1000
+ in?: boolean;
1001
+ type?: TransitionType;
1002
+ duration?: number;
1003
+ delay?: number;
1004
+ class?: string;
1005
+ }
1006
+ declare class UTransition extends UElement {
1007
+ static get observedAttributes(): string[];
1008
+ private _in;
1009
+ private _type;
1010
+ private _duration;
1011
+ private _delay;
1012
+ constructor();
1013
+ get in(): boolean;
1014
+ set in(val: boolean);
1015
+ get transitionType(): TransitionType;
1016
+ set transitionType(val: TransitionType);
1017
+ get duration(): number;
1018
+ set duration(val: number);
1019
+ connectedCallback(): void;
1020
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1021
+ private _sync;
1022
+ private _cssProperty;
1023
+ enter(): void;
1024
+ exit(): void;
1025
+ _mount(): void;
1026
+ }
1027
+
1028
+ type AnimatePreset = 'fade-in' | 'fade-out' | 'slide-in-up' | 'slide-in-down' | 'slide-in-left' | 'slide-in-right' | 'slide-out-up' | 'slide-out-down' | 'scale-in' | 'scale-out' | 'bounce-in' | 'none';
1029
+ interface AnimateProps {
1030
+ preset?: AnimatePreset;
1031
+ duration?: number;
1032
+ delay?: number;
1033
+ play?: boolean;
1034
+ class?: string;
1035
+ }
1036
+ declare class UAnimate extends UElement {
1037
+ static get observedAttributes(): string[];
1038
+ private _preset;
1039
+ private _duration;
1040
+ private _delay;
1041
+ private _played;
1042
+ constructor();
1043
+ get preset(): AnimatePreset;
1044
+ set preset(val: AnimatePreset);
1045
+ get duration(): number;
1046
+ set duration(val: number);
1047
+ connectedCallback(): void;
1048
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1049
+ play(): void;
1050
+ stop(): void;
1051
+ private _play;
1052
+ private _animationName;
1053
+ _mount(): void;
1054
+ }
1055
+
1056
+ interface ModalProps {
1057
+ open?: boolean;
1058
+ closeOnEscape?: boolean;
1059
+ closeOnOverlay?: boolean;
1060
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
1061
+ class?: string;
1062
+ onClose?: () => void;
1063
+ }
1064
+ declare class UModal extends UElement {
1065
+ static get observedAttributes(): string[];
1066
+ private _open;
1067
+ private _size;
1068
+ private _closeOnEscape;
1069
+ private _closeOnOverlay;
1070
+ private _previousActive;
1071
+ private _unlockScroll;
1072
+ constructor();
1073
+ get open(): boolean;
1074
+ set open(val: boolean);
1075
+ openModal(): void;
1076
+ closeModal(): void;
1077
+ connectedCallback(): void;
1078
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1079
+ private _sync;
1080
+ private _updateOpenState;
1081
+ private _focusFirst;
1082
+ _mount(): void;
1083
+ private _trapTab;
1084
+ }
1085
+
1086
+ type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
1087
+ interface DrawerProps {
1088
+ open?: boolean;
1089
+ side?: DrawerSide;
1090
+ size?: string;
1091
+ closeOnEscape?: boolean;
1092
+ closeOnOverlay?: boolean;
1093
+ class?: string;
1094
+ onClose?: () => void;
1095
+ }
1096
+ declare class UDrawer extends UElement {
1097
+ static get observedAttributes(): string[];
1098
+ private _open;
1099
+ private _side;
1100
+ private _size;
1101
+ private _closeOnEscape;
1102
+ private _closeOnOverlay;
1103
+ private _previousActive;
1104
+ private _unlockScroll;
1105
+ constructor();
1106
+ get open(): boolean;
1107
+ set open(val: boolean);
1108
+ get side(): DrawerSide;
1109
+ set side(val: DrawerSide);
1110
+ openDrawer(): void;
1111
+ closeDrawer(): void;
1112
+ connectedCallback(): void;
1113
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1114
+ private _sync;
1115
+ private _applyDrawerSize;
1116
+ private _updateOpenState;
1117
+ private _focusFirst;
1118
+ _mount(): void;
1119
+ }
1120
+
1121
+ type PopoverPlacement = Placement;
1122
+ interface PopoverProps {
1123
+ open?: boolean;
1124
+ placement?: PopoverPlacement;
1125
+ offset?: number;
1126
+ closeOnEscape?: boolean;
1127
+ closeOnOutsideClick?: boolean;
1128
+ class?: string;
1129
+ onClose?: () => void;
1130
+ }
1131
+ declare class UPopover extends UElement {
1132
+ static get observedAttributes(): string[];
1133
+ private _open;
1134
+ private _placement;
1135
+ private _offset;
1136
+ private _closeOnEscape;
1137
+ private _closeOnOutsideClick;
1138
+ constructor();
1139
+ get open(): boolean;
1140
+ set open(val: boolean);
1141
+ get placement(): PopoverPlacement;
1142
+ set placement(val: PopoverPlacement);
1143
+ openPopover(): void;
1144
+ closePopover(): void;
1145
+ toggle(): void;
1146
+ connectedCallback(): void;
1147
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1148
+ private _updateOpenState;
1149
+ private _position;
1150
+ private _handleOutsideClick;
1151
+ private _handleEscape;
1152
+ _mount(): void;
1153
+ }
1154
+
1155
+ type DropdownPlacement = Placement;
1156
+ interface DropdownItem {
1157
+ label: string;
1158
+ value: string;
1159
+ disabled?: boolean;
1160
+ divider?: boolean;
1161
+ icon?: string;
1162
+ description?: string;
1163
+ shortcut?: string;
1164
+ group?: string;
1165
+ }
1166
+ interface DropdownProps {
1167
+ open?: boolean;
1168
+ placement?: DropdownPlacement;
1169
+ items?: DropdownItem[];
1170
+ value?: string;
1171
+ class?: string;
1172
+ onChange?: (value: string) => void;
1173
+ }
1174
+ declare class UDropdown extends UElement {
1175
+ static get observedAttributes(): string[];
1176
+ private _open;
1177
+ private _placement;
1178
+ private _items;
1179
+ private _value;
1180
+ private _activeIndex;
1181
+ private _menuEl;
1182
+ private _itemsContainer;
1183
+ private _triggerEl;
1184
+ private _itemElements;
1185
+ constructor();
1186
+ get open(): boolean;
1187
+ set open(val: boolean);
1188
+ get items(): DropdownItem[];
1189
+ set items(val: DropdownItem[]);
1190
+ get value(): string;
1191
+ set value(val: string);
1192
+ openDropdown(): void;
1193
+ closeDropdown(): void;
1194
+ toggle(): void;
1195
+ connectedCallback(): void;
1196
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1197
+ private _renderItems;
1198
+ private _updateSelected;
1199
+ private _updateOpenState;
1200
+ private _position;
1201
+ private _getSelectableItems;
1202
+ private _highlightItem;
1203
+ private _handleKeyDown;
1204
+ private _handleOutsideClick;
1205
+ private _handleEscape;
1206
+ _mount(): void;
1207
+ }
1208
+
1209
+ interface AccordionProps {
1210
+ value?: string[];
1211
+ collapsible?: boolean;
1212
+ multiple?: boolean;
1213
+ class?: string;
1214
+ onChange?: (value: string[]) => void;
1215
+ }
1216
+ declare class UAccordion extends UElement {
1217
+ static get observedAttributes(): string[];
1218
+ private _collapsible;
1219
+ private _multiple;
1220
+ private _value;
1221
+ constructor();
1222
+ get value(): string[];
1223
+ get collapsible(): boolean;
1224
+ set collapsible(val: boolean);
1225
+ get multiple(): boolean;
1226
+ set multiple(val: boolean);
1227
+ connectedCallback(): void;
1228
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1229
+ private _initItems;
1230
+ toggle(key: string): void;
1231
+ private _syncItems;
1232
+ _mount(): void;
1233
+ }
1234
+ interface AccordionItemProps {
1235
+ value?: string;
1236
+ open?: boolean;
1237
+ class?: string;
1238
+ }
1239
+ declare class UAccordionItem extends UElement {
1240
+ static get observedAttributes(): string[];
1241
+ private _value;
1242
+ private _open;
1243
+ constructor();
1244
+ get value(): string;
1245
+ set value(val: string);
1246
+ get open(): boolean;
1247
+ set open(val: boolean);
1248
+ connectedCallback(): void;
1249
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1250
+ _mount(): void;
1251
+ }
1252
+
1253
+ interface ComboboxOption {
1254
+ label: string;
1255
+ value: string;
1256
+ }
1257
+ interface ComboboxProps {
1258
+ value?: string;
1259
+ options?: ComboboxOption[];
1260
+ placeholder?: string;
1261
+ disabled?: boolean;
1262
+ filterable?: boolean;
1263
+ class?: string;
1264
+ onChange?: (value: string) => void;
1265
+ }
1266
+ declare class UCombobox extends UElement {
1267
+ static get observedAttributes(): string[];
1268
+ private _value;
1269
+ private _options;
1270
+ private _placeholder;
1271
+ private _disabled;
1272
+ private _filterable;
1273
+ private _open;
1274
+ private _filtered;
1275
+ constructor();
1276
+ get value(): string;
1277
+ set value(val: string);
1278
+ get options(): ComboboxOption[];
1279
+ set options(val: ComboboxOption[]);
1280
+ connectedCallback(): void;
1281
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1282
+ private _syncInput;
1283
+ openList(): void;
1284
+ closeList(): void;
1285
+ private _renderListbox;
1286
+ private _position;
1287
+ private _filterOptions;
1288
+ private _select;
1289
+ private _handleOutsideClick;
1290
+ _mount(): void;
1291
+ private _focusNext;
1292
+ private _focusPrev;
1293
+ }
1294
+
1295
+ interface CalendarProps {
1296
+ value?: string;
1297
+ min?: string;
1298
+ max?: string;
1299
+ class?: string;
1300
+ onChange?: (value: string) => void;
1301
+ }
1302
+ declare class UCalendar extends UElement {
1303
+ static get observedAttributes(): string[];
1304
+ private _value;
1305
+ private _min;
1306
+ private _max;
1307
+ private _viewYear;
1308
+ private _viewMonth;
1309
+ constructor();
1310
+ get value(): string;
1311
+ set value(val: string);
1312
+ connectedCallback(): void;
1313
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1314
+ private _renderDayNames;
1315
+ private _render;
1316
+ private _navigate;
1317
+ goToDate(year: number, month: number): void;
1318
+ _mount(): void;
1319
+ }
1320
+
1321
+ interface DataTableColumn {
1322
+ key: string;
1323
+ label: string;
1324
+ sortable?: boolean;
1325
+ filterable?: boolean;
1326
+ width?: string;
1327
+ render?: (value: any, row: any, index: number) => string;
1328
+ }
1329
+ interface DataTableProps {
1330
+ columns?: DataTableColumn[];
1331
+ rows?: Record<string, any>[];
1332
+ pageSize?: number;
1333
+ sortable?: boolean;
1334
+ selectable?: boolean;
1335
+ class?: string;
1336
+ onSort?: (key: string, dir: string) => void;
1337
+ onSelect?: (selected: string[]) => void;
1338
+ }
1339
+ declare class UDataTable extends UElement {
1340
+ static get observedAttributes(): string[];
1341
+ private _columns;
1342
+ private _rows;
1343
+ private _pageSize;
1344
+ private _sortable;
1345
+ private _selectable;
1346
+ private _sortKey;
1347
+ private _sortDir;
1348
+ private _page;
1349
+ private _selected;
1350
+ private _filterText;
1351
+ constructor();
1352
+ get columns(): DataTableColumn[];
1353
+ set columns(val: DataTableColumn[]);
1354
+ get rows(): Record<string, any>[];
1355
+ set rows(val: Record<string, any>[]);
1356
+ get pageSize(): number;
1357
+ set pageSize(val: number);
1358
+ connectedCallback(): void;
1359
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1360
+ private _getProcessedData;
1361
+ private _getPageData;
1362
+ private _render;
1363
+ private _renderHeader;
1364
+ private _renderBody;
1365
+ private _renderPagination;
1366
+ private _dispatchSelect;
1367
+ _mount(): void;
1368
+ }
1369
+
1370
+ interface CommandItem {
1371
+ id: string;
1372
+ label: string;
1373
+ description?: string;
1374
+ shortcut?: string;
1375
+ icon?: string;
1376
+ group?: string;
1377
+ }
1378
+ interface CommandPaletteProps {
1379
+ open?: boolean;
1380
+ items?: CommandItem[];
1381
+ placeholder?: string;
1382
+ shortcut?: string;
1383
+ class?: string;
1384
+ onSelect?: (id: string) => void;
1385
+ onClose?: () => void;
1386
+ }
1387
+ declare class UCommandPalette extends UElement {
1388
+ static get observedAttributes(): string[];
1389
+ private _open;
1390
+ private _items;
1391
+ private _placeholder;
1392
+ private _shortcut;
1393
+ private _filtered;
1394
+ private _selectedIndex;
1395
+ constructor();
1396
+ get open(): boolean;
1397
+ set open(val: boolean);
1398
+ get items(): CommandItem[];
1399
+ set items(val: CommandItem[]);
1400
+ openPalette(): void;
1401
+ closePalette(): void;
1402
+ connectedCallback(): void;
1403
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1404
+ private _sync;
1405
+ private _updateOpenState;
1406
+ private _positionDialog;
1407
+ private _renderResults;
1408
+ private _selectActive;
1409
+ private _select;
1410
+ private _handleOutsideClick;
1411
+ _mount(): void;
1412
+ }
1413
+
1414
+ interface ToastOptions {
1415
+ title: string;
1416
+ description?: string;
1417
+ variant?: 'info' | 'success' | 'warning' | 'error';
1418
+ duration?: number;
1419
+ action?: {
1420
+ label: string;
1421
+ onClick: () => void;
1422
+ };
1423
+ }
1424
+ interface ToastProps {
1425
+ placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
1426
+ class?: string;
1427
+ }
1428
+ declare class UToast extends UElement {
1429
+ static get observedAttributes(): string[];
1430
+ private _entries;
1431
+ private _placement;
1432
+ constructor();
1433
+ get placement(): string;
1434
+ set placement(val: string);
1435
+ connectedCallback(): void;
1436
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1437
+ private _updatePlacement;
1438
+ show(opts: ToastOptions): string;
1439
+ dismiss(id: string): void;
1440
+ dismissAll(): void;
1441
+ _mount(): void;
1442
+ }
1443
+
1444
+ interface ContextMenuItem {
1445
+ label: string;
1446
+ value: string;
1447
+ disabled?: boolean;
1448
+ divider?: boolean;
1449
+ icon?: string;
1450
+ }
1451
+ interface ContextMenuProps {
1452
+ class?: string;
1453
+ onSelect?: (value: string) => void;
1454
+ }
1455
+ declare class UContextMenu extends UElement {
1456
+ private _items;
1457
+ private _open;
1458
+ private _selectedIndex;
1459
+ constructor();
1460
+ get items(): ContextMenuItem[];
1461
+ set items(val: ContextMenuItem[]);
1462
+ connectedCallback(): void;
1463
+ private _parseSlotItems;
1464
+ private _renderItems;
1465
+ private _openMenu;
1466
+ private _closeMenu;
1467
+ private _focusFirst;
1468
+ private _handleOutsideClick;
1469
+ _mount(): void;
1470
+ }
1471
+
1472
+ interface SortableProps {
1473
+ disabled?: boolean;
1474
+ handleSelector?: string;
1475
+ class?: string;
1476
+ onReorder?: (fromIndex: number, toIndex: number) => void;
1477
+ }
1478
+ declare class USortable extends UElement {
1479
+ static get observedAttributes(): string[];
1480
+ private _disabled;
1481
+ private _handleSelector;
1482
+ private _dragging;
1483
+ private _placeholder;
1484
+ private _dragIndex;
1485
+ private _dropIndex;
1486
+ private _offsetX;
1487
+ private _offsetY;
1488
+ private _dragClone;
1489
+ constructor();
1490
+ get disabled(): boolean;
1491
+ set disabled(val: boolean);
1492
+ get handleSelector(): string;
1493
+ set handleSelector(val: string);
1494
+ private _getItems;
1495
+ private _getHandle;
1496
+ private _findItem;
1497
+ private _onPointerDown;
1498
+ private _onPointerMove;
1499
+ private _onPointerUp;
1500
+ _mount(): void;
1501
+ }
1502
+
1503
+ interface FormProps {
1504
+ class?: string;
1505
+ onSubmit?: (data: Record<string, string>) => void;
1506
+ onError?: (errors: Record<string, string>) => void;
1507
+ }
1508
+ declare class UForm extends UElement {
1509
+ private _fields;
1510
+ constructor();
1511
+ get form(): HTMLFormElement | null;
1512
+ validate(): boolean;
1513
+ getValues(): Record<string, string>;
1514
+ reset(): void;
1515
+ _mount(): void;
1516
+ }
1517
+
1518
+ export { type VisuallyHiddenProps as $, type AccordionProps as A, type BoxProps as B, type CalendarProps as C, type DataTableProps as D, type SortableProps as E, type FieldProps as F, type GridProps as G, type HoverableProps as H, type InputProps as I, type SpacerProps as J, type KeyboardNavigationProps as K, type LabelProps as L, type ModalProps as M, type SwitchProps as N, type OverlayProps as O, type PopoverProps as P, type TabsProps as Q, type RadioGroupProps as R, type StackProps as S, type TableProps as T, type TextProps as U, type TextareaProps as V, type ToastProps as W, type TooltipRootProps as X, type TransitionProps as Y, type TreeProps as Z, type VirtualListProps as _, type AnimateProps as a, URadioGroup as a$, type AccordionItemProps as a0, type AnimatePreset as a1, type BoxAs as a2, type BreadcrumbItem as a3, type CollectionSelection as a4, type ComboboxOption as a5, type CommandItem as a6, type ContextMenuItem as a7, type DataTableColumn as a8, type DrawerSide as a9, UDataTable as aA, UDialogRoot as aB, UDismissableLayer as aC, UDrawer as aD, UDropdown as aE, UField as aF, UFocusManager as aG, UFocusScope as aH, UFocusTrap as aI, UForm as aJ, UGrid as aK, UHStack as aL, UHoverable as aM, UInput as aN, UKeyboardNavigation as aO, ULabel as aP, ULink as aQ, UList as aR, ULiveRegion as aS, UModal as aT, UOverlay as aU, UPopover as aV, UPopper as aW, UPortal as aX, UPresence as aY, UPressable as aZ, URadio as a_, type DropdownItem as aa, type LiveRegionPoliteness as ab, type PopperPlacement as ac, type PresenceAnimation as ad, type RadioProps as ae, type SelectOption as af, type TableColumn as ag, type TextColor as ah, type TextSize as ai, type TextWeight as aj, type ToastOptions as ak, type TransitionType as al, type TreeNodeData as am, UAccordion as an, UAccordionItem as ao, UAnimate as ap, UBox as aq, UBreadcrumb as ar, UButton as as, UCalendar as at, UCheckbox as au, UCollection as av, UCombobox as aw, UCommandPalette as ax, UContainer as ay, UContextMenu as az, type BreadcrumbProps as b, URouterView as b0, USelect as b1, USortable as b2, USpacer as b3, UStack as b4, USwitch as b5, UTable as b6, UTabs as b7, UText as b8, UTextarea as b9, UToast as ba, UTooltipRoot as bb, UTransition as bc, UTree as bd, UVirtualList as be, UVisuallyHidden as bf, createControlledInput as bg, setPortalRoot as bh, type ButtonProps as c, type CheckboxProps as d, type CollectionProps as e, type ComboboxProps as f, type CommandPaletteProps as g, type ContainerProps as h, type ContextMenuProps as i, type DialogRootProps as j, type DismissableLayerProps as k, type DrawerProps as l, type DropdownProps as m, type FocusManagerProps as n, type FocusScopeProps as o, type FocusTrapProps as p, type FormProps as q, type LinkProps as r, type ListProps as s, type LiveRegionProps as t, type PopperProps as u, type PortalProps as v, type PresenceProps as w, type PressableProps as x, type RouterViewProps as y, type SelectProps as z };