@avento-space/ts-ui 1.1.1 → 1.2.2

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 (141) hide show
  1. package/README.md +123 -213
  2. package/dist/card.wc-pFLgjfwm.d.ts +1595 -0
  3. package/dist/chunk-7GJXOXOW.js +108 -0
  4. package/dist/chunk-7GJXOXOW.js.map +1 -0
  5. package/dist/chunk-ICB6OBEZ.js +2087 -0
  6. package/dist/chunk-ICB6OBEZ.js.map +1 -0
  7. package/dist/chunk-Q5RCPPCF.js +406 -0
  8. package/dist/chunk-Q5RCPPCF.js.map +1 -0
  9. package/dist/chunk-QTANS5ZS.js +81 -0
  10. package/dist/chunk-QTANS5ZS.js.map +1 -0
  11. package/dist/chunk-RATTHYIP.js +4855 -0
  12. package/dist/chunk-RATTHYIP.js.map +1 -0
  13. package/dist/chunk-RAWESWNC.js +3 -0
  14. package/dist/chunk-RAWESWNC.js.map +1 -0
  15. package/dist/chunk-RQZ7KDYP.js +5941 -0
  16. package/dist/chunk-RQZ7KDYP.js.map +1 -0
  17. package/dist/chunk-T7QLIHHU.js +3 -0
  18. package/dist/chunk-T7QLIHHU.js.map +1 -0
  19. package/dist/chunk-U4WYCYL6.js +116 -0
  20. package/dist/chunk-U4WYCYL6.js.map +1 -0
  21. package/dist/components/index.d.ts +13 -11
  22. package/dist/components/index.js +5 -5
  23. package/dist/components/index.js.map +1 -1
  24. package/dist/define.d.ts +2 -2
  25. package/dist/define.js +8 -1
  26. package/dist/define.js.map +1 -1
  27. package/dist/{core/element.d.ts → element-DHtonJNX.d.ts} +3 -2
  28. package/dist/icons/index.d.ts +33 -5
  29. package/dist/icons/index.js +5 -3
  30. package/dist/icons/index.js.map +1 -1
  31. package/dist/index.d.ts +35 -10
  32. package/dist/index.js +44 -9
  33. package/dist/index.js.map +1 -1
  34. package/dist/jsx-dev-runtime.d.ts +1 -2
  35. package/dist/jsx-dev-runtime.js +3 -1
  36. package/dist/jsx-dev-runtime.js.map +1 -1
  37. package/dist/jsx-runtime.d.ts +644 -7
  38. package/dist/jsx-runtime.js +3 -120
  39. package/dist/jsx-runtime.js.map +1 -1
  40. package/dist/plugins/index.d.ts +21 -3
  41. package/dist/plugins/index.js +85 -1
  42. package/dist/plugins/index.js.map +1 -1
  43. package/dist/react/index.d.ts +1261 -15
  44. package/dist/react/index.js +1443 -15
  45. package/dist/react/index.js.map +1 -1
  46. package/dist/{core/types.d.ts → types-DWglFa91.d.ts} +8 -7
  47. package/package.json +32 -8
  48. package/dist/components/box.wc.d.ts +0 -24
  49. package/dist/components/box.wc.d.ts.map +0 -1
  50. package/dist/components/box.wc.js +0 -52
  51. package/dist/components/box.wc.js.map +0 -1
  52. package/dist/components/button.wc.d.ts +0 -32
  53. package/dist/components/button.wc.d.ts.map +0 -1
  54. package/dist/components/button.wc.js +0 -91
  55. package/dist/components/button.wc.js.map +0 -1
  56. package/dist/components/index.d.ts.map +0 -1
  57. package/dist/components/input.wc.d.ts +0 -45
  58. package/dist/components/input.wc.d.ts.map +0 -1
  59. package/dist/components/input.wc.js +0 -130
  60. package/dist/components/input.wc.js.map +0 -1
  61. package/dist/components/list.wc.d.ts +0 -49
  62. package/dist/components/list.wc.d.ts.map +0 -1
  63. package/dist/components/list.wc.js +0 -120
  64. package/dist/components/list.wc.js.map +0 -1
  65. package/dist/components/portal.wc.d.ts +0 -18
  66. package/dist/components/portal.wc.d.ts.map +0 -1
  67. package/dist/components/portal.wc.js +0 -78
  68. package/dist/components/portal.wc.js.map +0 -1
  69. package/dist/components/styles.d.ts +0 -7
  70. package/dist/components/styles.d.ts.map +0 -1
  71. package/dist/components/styles.js +0 -134
  72. package/dist/components/styles.js.map +0 -1
  73. package/dist/core/define.d.ts +0 -5
  74. package/dist/core/define.d.ts.map +0 -1
  75. package/dist/core/define.js +0 -26
  76. package/dist/core/define.js.map +0 -1
  77. package/dist/core/element.d.ts.map +0 -1
  78. package/dist/core/element.js +0 -30
  79. package/dist/core/element.js.map +0 -1
  80. package/dist/core/index.d.ts +0 -7
  81. package/dist/core/index.d.ts.map +0 -1
  82. package/dist/core/index.js +0 -5
  83. package/dist/core/index.js.map +0 -1
  84. package/dist/core/plugin.d.ts +0 -17
  85. package/dist/core/plugin.d.ts.map +0 -1
  86. package/dist/core/plugin.js +0 -117
  87. package/dist/core/plugin.js.map +0 -1
  88. package/dist/core/reactive-context.d.ts +0 -12
  89. package/dist/core/reactive-context.d.ts.map +0 -1
  90. package/dist/core/reactive-context.js +0 -34
  91. package/dist/core/reactive-context.js.map +0 -1
  92. package/dist/core/scheduler.d.ts +0 -13
  93. package/dist/core/scheduler.d.ts.map +0 -1
  94. package/dist/core/scheduler.js +0 -80
  95. package/dist/core/scheduler.js.map +0 -1
  96. package/dist/core/signal.d.ts +0 -14
  97. package/dist/core/signal.d.ts.map +0 -1
  98. package/dist/core/signal.js +0 -391
  99. package/dist/core/signal.js.map +0 -1
  100. package/dist/core/store.d.ts +0 -6
  101. package/dist/core/store.d.ts.map +0 -1
  102. package/dist/core/store.js +0 -35
  103. package/dist/core/store.js.map +0 -1
  104. package/dist/core/types.d.ts.map +0 -1
  105. package/dist/core/types.js +0 -2
  106. package/dist/core/types.js.map +0 -1
  107. package/dist/define.d.ts.map +0 -1
  108. package/dist/icons/icon-element.d.ts +0 -25
  109. package/dist/icons/icon-element.d.ts.map +0 -1
  110. package/dist/icons/icon-element.js +0 -63
  111. package/dist/icons/icon-element.js.map +0 -1
  112. package/dist/icons/index.d.ts.map +0 -1
  113. package/dist/icons/registry.d.ts +0 -6
  114. package/dist/icons/registry.d.ts.map +0 -1
  115. package/dist/icons/registry.js +0 -4775
  116. package/dist/icons/registry.js.map +0 -1
  117. package/dist/index.d.ts.map +0 -1
  118. package/dist/jsx-dev-runtime.d.ts.map +0 -1
  119. package/dist/jsx-runtime.d.ts.map +0 -1
  120. package/dist/jsx-types.d.ts +0 -651
  121. package/dist/jsx-types.d.ts.map +0 -1
  122. package/dist/jsx-types.js +0 -3
  123. package/dist/jsx-types.js.map +0 -1
  124. package/dist/plugins/index.d.ts.map +0 -1
  125. package/dist/plugins/router.d.ts +0 -4
  126. package/dist/plugins/router.d.ts.map +0 -1
  127. package/dist/plugins/router.js +0 -90
  128. package/dist/plugins/router.js.map +0 -1
  129. package/dist/plugins/types.d.ts +0 -16
  130. package/dist/plugins/types.d.ts.map +0 -1
  131. package/dist/plugins/types.js +0 -2
  132. package/dist/plugins/types.js.map +0 -1
  133. package/dist/react/icon.d.ts +0 -8
  134. package/dist/react/icon.d.ts.map +0 -1
  135. package/dist/react/icon.js +0 -7
  136. package/dist/react/icon.js.map +0 -1
  137. package/dist/react/icons.d.ts +0 -1194
  138. package/dist/react/icons.d.ts.map +0 -1
  139. package/dist/react/icons.js +0 -1196
  140. package/dist/react/icons.js.map +0 -1
  141. package/dist/react/index.d.ts.map +0 -1
@@ -0,0 +1,1595 @@
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 _synced;
602
+ private _updateOpenState;
603
+ private _injectOverlay;
604
+ private _removeOverlay;
605
+ private _injectDismissable;
606
+ private _removeDismissable;
607
+ private _injectFocusTrap;
608
+ private _removeFocusTrap;
609
+ _mount(): void;
610
+ }
611
+
612
+ type TooltipPlacement = Placement;
613
+ interface TooltipRootProps {
614
+ content?: string;
615
+ placement?: TooltipPlacement;
616
+ delay?: number;
617
+ disabled?: boolean;
618
+ class?: string;
619
+ }
620
+ declare class UTooltipRoot extends UElement {
621
+ static get observedAttributes(): string[];
622
+ private _content;
623
+ private _placement;
624
+ private _delay;
625
+ private _disabled;
626
+ private _showTimeout;
627
+ private _hideTimeout;
628
+ constructor();
629
+ get content(): string;
630
+ set content(val: string);
631
+ get placement(): TooltipPlacement;
632
+ set placement(val: TooltipPlacement);
633
+ get delay(): number;
634
+ set delay(val: number);
635
+ connectedCallback(): void;
636
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
637
+ private _sync;
638
+ show(): void;
639
+ hide(): void;
640
+ private _position;
641
+ _mount(): void;
642
+ }
643
+
644
+ interface TextareaProps {
645
+ value?: string;
646
+ placeholder?: string;
647
+ disabled?: boolean;
648
+ readonly?: boolean;
649
+ rows?: number;
650
+ maxLength?: number;
651
+ name?: string;
652
+ class?: string;
653
+ onInput?: (value: string) => void;
654
+ }
655
+ declare class UTextarea extends UElement {
656
+ static get observedAttributes(): string[];
657
+ private _placeholder;
658
+ private _disabled;
659
+ private _readonly;
660
+ private _rows;
661
+ private _maxLength;
662
+ private _name;
663
+ constructor();
664
+ get value(): string;
665
+ set value(val: string);
666
+ get placeholder(): string;
667
+ set placeholder(val: string);
668
+ get disabled(): boolean;
669
+ set disabled(val: boolean);
670
+ get rows(): number;
671
+ set rows(val: number);
672
+ connectedCallback(): void;
673
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
674
+ private _sync;
675
+ _mount(): void;
676
+ }
677
+
678
+ interface RadioGroupProps {
679
+ value?: string;
680
+ name?: string;
681
+ disabled?: boolean;
682
+ orientation?: 'horizontal' | 'vertical';
683
+ class?: string;
684
+ onChange?: (value: string) => void;
685
+ }
686
+ declare class URadioGroup extends UElement {
687
+ static get observedAttributes(): string[];
688
+ private _value;
689
+ private _name;
690
+ private _disabled;
691
+ private _orientation;
692
+ constructor();
693
+ get value(): string;
694
+ set value(val: string);
695
+ get name(): string;
696
+ set name(val: string);
697
+ get disabled(): boolean;
698
+ set disabled(val: boolean);
699
+ connectedCallback(): void;
700
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
701
+ private _sync;
702
+ _mount(): void;
703
+ private _updateRadios;
704
+ }
705
+ interface RadioProps {
706
+ value?: string;
707
+ disabled?: boolean;
708
+ checked?: boolean;
709
+ class?: string;
710
+ }
711
+ declare class URadio extends UElement {
712
+ static get observedAttributes(): string[];
713
+ private _value;
714
+ private _disabled;
715
+ private _checked;
716
+ constructor();
717
+ get value(): string;
718
+ set value(val: string);
719
+ get checked(): boolean;
720
+ set checked(val: boolean);
721
+ get disabled(): boolean;
722
+ set disabled(val: boolean);
723
+ connectedCallback(): void;
724
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
725
+ private _sync;
726
+ _mount(): void;
727
+ }
728
+
729
+ interface SwitchProps {
730
+ checked?: boolean;
731
+ disabled?: boolean;
732
+ value?: string;
733
+ class?: string;
734
+ onChange?: (checked: boolean) => void;
735
+ }
736
+ declare class USwitch extends UElement {
737
+ static get observedAttributes(): string[];
738
+ private _checked;
739
+ private _disabled;
740
+ constructor();
741
+ get checked(): boolean;
742
+ set checked(val: boolean);
743
+ get disabled(): boolean;
744
+ set disabled(val: boolean);
745
+ connectedCallback(): void;
746
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
747
+ private _sync;
748
+ _mount(): void;
749
+ }
750
+
751
+ interface LabelProps {
752
+ for?: string;
753
+ required?: boolean;
754
+ class?: string;
755
+ }
756
+ declare class ULabel extends UElement {
757
+ static get observedAttributes(): string[];
758
+ private _for;
759
+ private _required;
760
+ constructor();
761
+ get htmlFor(): string;
762
+ set htmlFor(val: string);
763
+ get required(): boolean;
764
+ set required(val: boolean);
765
+ connectedCallback(): void;
766
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
767
+ private _sync;
768
+ _mount(): void;
769
+ }
770
+
771
+ type CollectionSelection = 'none' | 'single' | 'multiple';
772
+ interface CollectionProps {
773
+ items?: any[];
774
+ selection?: CollectionSelection;
775
+ selected?: string[];
776
+ class?: string;
777
+ onChange?: (selected: string[]) => void;
778
+ }
779
+ declare class UCollection extends UElement {
780
+ static get observedAttributes(): string[];
781
+ private _items;
782
+ private _selection;
783
+ private _selected;
784
+ constructor();
785
+ get items(): any[];
786
+ set items(val: any[]);
787
+ get selection(): CollectionSelection;
788
+ set selection(val: CollectionSelection);
789
+ get selected(): string[];
790
+ set selected(val: string[]);
791
+ select(key: string): void;
792
+ deselect(key: string): void;
793
+ toggle(key: string): void;
794
+ clearSelection(): void;
795
+ connectedCallback(): void;
796
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
797
+ private _updateItems;
798
+ private _dispatchChange;
799
+ _mount(): void;
800
+ }
801
+
802
+ interface TreeNodeData {
803
+ id: string;
804
+ label: string;
805
+ children?: TreeNodeData[];
806
+ expanded?: boolean;
807
+ icon?: string;
808
+ }
809
+ interface TreeProps {
810
+ items?: TreeNodeData[];
811
+ class?: string;
812
+ }
813
+ declare class UTree extends UElement {
814
+ static get observedAttributes(): string[];
815
+ private _items;
816
+ constructor();
817
+ get items(): TreeNodeData[];
818
+ set items(val: TreeNodeData[]);
819
+ private _render;
820
+ private _renderNode;
821
+ private _onClick;
822
+ _mount(): void;
823
+ }
824
+
825
+ interface TableColumn {
826
+ key: string;
827
+ label: string;
828
+ sortable?: boolean;
829
+ width?: string;
830
+ }
831
+ interface TableProps {
832
+ columns?: TableColumn[];
833
+ rows?: Record<string, any>[];
834
+ sortable?: boolean;
835
+ class?: string;
836
+ }
837
+ declare class UTable extends UElement {
838
+ static get observedAttributes(): string[];
839
+ private _columns;
840
+ private _rows;
841
+ private _sortable;
842
+ private _sortKey;
843
+ private _sortDir;
844
+ constructor();
845
+ get columns(): TableColumn[];
846
+ set columns(val: TableColumn[]);
847
+ get rows(): Record<string, any>[];
848
+ set rows(val: Record<string, any>[]);
849
+ connectedCallback(): void;
850
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
851
+ private _render;
852
+ private _renderHeader;
853
+ private _renderBody;
854
+ private _sortedData;
855
+ _mount(): void;
856
+ }
857
+
858
+ interface RouterViewProps {
859
+ class?: string;
860
+ }
861
+ declare class URouterView extends UElement {
862
+ constructor();
863
+ navigate(path: string): void;
864
+ _mount(): void;
865
+ }
866
+
867
+ interface BreadcrumbItem {
868
+ label: string;
869
+ href?: string;
870
+ }
871
+ interface BreadcrumbProps {
872
+ items?: BreadcrumbItem[];
873
+ separator?: string;
874
+ class?: string;
875
+ }
876
+ declare class UBreadcrumb extends UElement {
877
+ static get observedAttributes(): string[];
878
+ private _items;
879
+ private _separator;
880
+ constructor();
881
+ get items(): BreadcrumbItem[];
882
+ set items(val: BreadcrumbItem[]);
883
+ get separator(): string;
884
+ set separator(val: string);
885
+ connectedCallback(): void;
886
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
887
+ private _render;
888
+ _mount(): void;
889
+ }
890
+
891
+ interface TabsProps {
892
+ value?: string;
893
+ orientation?: 'horizontal' | 'vertical';
894
+ variant?: 'underline' | 'pills' | 'buttons';
895
+ fullWidth?: boolean;
896
+ class?: string;
897
+ onChange?: (value: string) => void;
898
+ }
899
+ declare class UTabs extends UElement {
900
+ static get observedAttributes(): string[];
901
+ private _value;
902
+ private _orientation;
903
+ private _variant;
904
+ private _fullWidth;
905
+ private _tablistEl;
906
+ private _panelsContainer;
907
+ private _indicatorEl;
908
+ private _triggers;
909
+ constructor();
910
+ get value(): string;
911
+ set value(val: string);
912
+ get variant(): string;
913
+ set variant(val: string);
914
+ get fullWidth(): boolean;
915
+ set fullWidth(val: boolean);
916
+ connectedCallback(): void;
917
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
918
+ private _sync;
919
+ private _updateIndicator;
920
+ _mount(): void;
921
+ }
922
+
923
+ interface VisuallyHiddenProps {
924
+ class?: string;
925
+ }
926
+ declare class UVisuallyHidden extends UElement {
927
+ constructor();
928
+ _mount(): void;
929
+ }
930
+
931
+ type LiveRegionPoliteness = 'off' | 'polite' | 'assertive';
932
+ interface LiveRegionProps {
933
+ politeness?: LiveRegionPoliteness;
934
+ atomic?: boolean;
935
+ class?: string;
936
+ }
937
+ declare class ULiveRegion extends UElement {
938
+ static get observedAttributes(): string[];
939
+ private _politeness;
940
+ private _atomic;
941
+ constructor();
942
+ get politeness(): LiveRegionPoliteness;
943
+ set politeness(val: LiveRegionPoliteness);
944
+ announce(message: string): void;
945
+ connectedCallback(): void;
946
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
947
+ private _sync;
948
+ _mount(): void;
949
+ }
950
+
951
+ interface FocusManagerProps {
952
+ class?: string;
953
+ }
954
+ declare class UFocusManager extends UElement {
955
+ constructor();
956
+ getFocusable(): HTMLElement[];
957
+ focusFirst(): void;
958
+ focusLast(): void;
959
+ focusNext(current?: HTMLElement): void;
960
+ focusPrevious(current?: HTMLElement): void;
961
+ _mount(): void;
962
+ }
963
+
964
+ interface KeyboardNavigationProps {
965
+ selector?: string;
966
+ orientation?: 'horizontal' | 'vertical' | 'both';
967
+ loop?: boolean;
968
+ class?: string;
969
+ }
970
+ declare class UKeyboardNavigation extends UElement {
971
+ static get observedAttributes(): string[];
972
+ private _selector;
973
+ private _orientation;
974
+ private _loop;
975
+ constructor();
976
+ get orientation(): string;
977
+ set orientation(val: string);
978
+ get loop(): boolean;
979
+ set loop(val: boolean);
980
+ connectedCallback(): void;
981
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
982
+ private _getItems;
983
+ private _onKeyDown;
984
+ _mount(): void;
985
+ }
986
+
987
+ type PresenceAnimation = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'scale' | 'none';
988
+ interface PresenceProps {
989
+ present?: boolean;
990
+ animation?: PresenceAnimation;
991
+ duration?: number;
992
+ class?: string;
993
+ }
994
+ declare class UPresence extends UElement {
995
+ static get observedAttributes(): string[];
996
+ private _present;
997
+ private _animation;
998
+ private _duration;
999
+ private _mounted;
1000
+ constructor();
1001
+ get present(): boolean;
1002
+ set present(val: boolean);
1003
+ get animation(): PresenceAnimation;
1004
+ set animation(val: PresenceAnimation);
1005
+ connectedCallback(): void;
1006
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1007
+ private _enter;
1008
+ private _leave;
1009
+ _mount(): void;
1010
+ }
1011
+
1012
+ type TransitionType = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'scale' | 'none';
1013
+ interface TransitionProps {
1014
+ in?: boolean;
1015
+ type?: TransitionType;
1016
+ duration?: number;
1017
+ delay?: number;
1018
+ class?: string;
1019
+ }
1020
+ declare class UTransition extends UElement {
1021
+ static get observedAttributes(): string[];
1022
+ private _in;
1023
+ private _type;
1024
+ private _duration;
1025
+ private _delay;
1026
+ constructor();
1027
+ get in(): boolean;
1028
+ set in(val: boolean);
1029
+ get transitionType(): TransitionType;
1030
+ set transitionType(val: TransitionType);
1031
+ get duration(): number;
1032
+ set duration(val: number);
1033
+ connectedCallback(): void;
1034
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1035
+ private _sync;
1036
+ private _cssProperty;
1037
+ enter(): void;
1038
+ exit(): void;
1039
+ _mount(): void;
1040
+ }
1041
+
1042
+ 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';
1043
+ interface AnimateProps {
1044
+ preset?: AnimatePreset;
1045
+ duration?: number;
1046
+ delay?: number;
1047
+ play?: boolean;
1048
+ class?: string;
1049
+ }
1050
+ declare class UAnimate extends UElement {
1051
+ static get observedAttributes(): string[];
1052
+ private _preset;
1053
+ private _duration;
1054
+ private _delay;
1055
+ private _played;
1056
+ constructor();
1057
+ get preset(): AnimatePreset;
1058
+ set preset(val: AnimatePreset);
1059
+ get duration(): number;
1060
+ set duration(val: number);
1061
+ connectedCallback(): void;
1062
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1063
+ play(): void;
1064
+ stop(): void;
1065
+ private _play;
1066
+ private _animationName;
1067
+ _mount(): void;
1068
+ }
1069
+
1070
+ interface ModalProps {
1071
+ open?: boolean;
1072
+ title?: string;
1073
+ closeOnEscape?: boolean;
1074
+ closeOnOverlay?: boolean;
1075
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
1076
+ class?: string;
1077
+ onClose?: () => void;
1078
+ }
1079
+ declare class UModal extends UElement {
1080
+ static get observedAttributes(): string[];
1081
+ private _open;
1082
+ private _title;
1083
+ private _size;
1084
+ private _closeOnEscape;
1085
+ private _closeOnOverlay;
1086
+ private _previousActive;
1087
+ private _unlockScroll;
1088
+ constructor();
1089
+ get open(): boolean;
1090
+ set open(val: boolean);
1091
+ get title(): string;
1092
+ set title(val: string);
1093
+ openModal(): void;
1094
+ closeModal(): void;
1095
+ connectedCallback(): void;
1096
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1097
+ private _sync;
1098
+ private _updateTitle;
1099
+ private _updateSize;
1100
+ private _updateOpenState;
1101
+ private _focusFirst;
1102
+ _mount(): void;
1103
+ private _trapTab;
1104
+ }
1105
+
1106
+ type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
1107
+ interface DrawerProps {
1108
+ open?: boolean;
1109
+ side?: DrawerSide;
1110
+ size?: string;
1111
+ closeOnEscape?: boolean;
1112
+ closeOnOverlay?: boolean;
1113
+ class?: string;
1114
+ onClose?: () => void;
1115
+ }
1116
+ declare class UDrawer extends UElement {
1117
+ static get observedAttributes(): string[];
1118
+ private _open;
1119
+ private _side;
1120
+ private _size;
1121
+ private _closeOnEscape;
1122
+ private _closeOnOverlay;
1123
+ private _previousActive;
1124
+ private _unlockScroll;
1125
+ constructor();
1126
+ get open(): boolean;
1127
+ set open(val: boolean);
1128
+ get side(): DrawerSide;
1129
+ set side(val: DrawerSide);
1130
+ openDrawer(): void;
1131
+ closeDrawer(): void;
1132
+ connectedCallback(): void;
1133
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1134
+ private _sync;
1135
+ private _applyDrawerSize;
1136
+ private _updateOpenState;
1137
+ private _focusFirst;
1138
+ _mount(): void;
1139
+ }
1140
+
1141
+ type PopoverPlacement = Placement;
1142
+ interface PopoverProps {
1143
+ open?: boolean;
1144
+ placement?: PopoverPlacement;
1145
+ offset?: number;
1146
+ closeOnEscape?: boolean;
1147
+ closeOnOutsideClick?: boolean;
1148
+ class?: string;
1149
+ onClose?: () => void;
1150
+ }
1151
+ declare class UPopover extends UElement {
1152
+ static get observedAttributes(): string[];
1153
+ private _open;
1154
+ private _placement;
1155
+ private _offset;
1156
+ private _closeOnEscape;
1157
+ private _closeOnOutsideClick;
1158
+ constructor();
1159
+ get open(): boolean;
1160
+ set open(val: boolean);
1161
+ get placement(): PopoverPlacement;
1162
+ set placement(val: PopoverPlacement);
1163
+ openPopover(): void;
1164
+ closePopover(): void;
1165
+ toggle(): void;
1166
+ connectedCallback(): void;
1167
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1168
+ private _updateOpenState;
1169
+ private _position;
1170
+ private _handleOutsideClick;
1171
+ private _handleEscape;
1172
+ _mount(): void;
1173
+ }
1174
+
1175
+ type DropdownPlacement = Placement;
1176
+ interface DropdownItem {
1177
+ label: string;
1178
+ value: string;
1179
+ disabled?: boolean;
1180
+ divider?: boolean;
1181
+ icon?: string;
1182
+ description?: string;
1183
+ shortcut?: string;
1184
+ group?: string;
1185
+ }
1186
+ interface DropdownProps {
1187
+ open?: boolean;
1188
+ placement?: DropdownPlacement;
1189
+ items?: DropdownItem[];
1190
+ value?: string;
1191
+ class?: string;
1192
+ onChange?: (value: string) => void;
1193
+ }
1194
+ declare class UDropdown extends UElement {
1195
+ static get observedAttributes(): string[];
1196
+ private _open;
1197
+ private _placement;
1198
+ private _items;
1199
+ private _value;
1200
+ private _activeIndex;
1201
+ private _menuEl;
1202
+ private _itemsContainer;
1203
+ private _triggerEl;
1204
+ private _itemElements;
1205
+ constructor();
1206
+ get open(): boolean;
1207
+ set open(val: boolean);
1208
+ get items(): DropdownItem[];
1209
+ set items(val: DropdownItem[]);
1210
+ get value(): string;
1211
+ set value(val: string);
1212
+ openDropdown(): void;
1213
+ closeDropdown(): void;
1214
+ toggle(): void;
1215
+ connectedCallback(): void;
1216
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1217
+ private _renderItems;
1218
+ private _updateSelected;
1219
+ private _updateOpenState;
1220
+ private _position;
1221
+ private _getSelectableItems;
1222
+ private _highlightItem;
1223
+ private _handleKeyDown;
1224
+ private _handleOutsideClick;
1225
+ private _handleEscape;
1226
+ _mount(): void;
1227
+ }
1228
+
1229
+ interface AccordionProps {
1230
+ value?: string[];
1231
+ collapsible?: boolean;
1232
+ multiple?: boolean;
1233
+ class?: string;
1234
+ onChange?: (value: string[]) => void;
1235
+ }
1236
+ declare class UAccordion extends UElement {
1237
+ static get observedAttributes(): string[];
1238
+ private _collapsible;
1239
+ private _multiple;
1240
+ private _value;
1241
+ constructor();
1242
+ get value(): string[];
1243
+ get collapsible(): boolean;
1244
+ set collapsible(val: boolean);
1245
+ get multiple(): boolean;
1246
+ set multiple(val: boolean);
1247
+ connectedCallback(): void;
1248
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1249
+ private _initItems;
1250
+ toggle(key: string): void;
1251
+ private _syncItems;
1252
+ _mount(): void;
1253
+ }
1254
+ interface AccordionItemProps {
1255
+ value?: string;
1256
+ open?: boolean;
1257
+ class?: string;
1258
+ }
1259
+ declare class UAccordionItem extends UElement {
1260
+ static get observedAttributes(): string[];
1261
+ private _value;
1262
+ private _open;
1263
+ constructor();
1264
+ get value(): string;
1265
+ set value(val: string);
1266
+ get open(): boolean;
1267
+ set open(val: boolean);
1268
+ connectedCallback(): void;
1269
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1270
+ _mount(): void;
1271
+ }
1272
+
1273
+ interface ComboboxOption {
1274
+ label: string;
1275
+ value: string;
1276
+ }
1277
+ interface ComboboxProps {
1278
+ value?: string;
1279
+ options?: ComboboxOption[];
1280
+ placeholder?: string;
1281
+ disabled?: boolean;
1282
+ filterable?: boolean;
1283
+ class?: string;
1284
+ onChange?: (value: string) => void;
1285
+ }
1286
+ declare class UCombobox extends UElement {
1287
+ static get observedAttributes(): string[];
1288
+ private _value;
1289
+ private _options;
1290
+ private _placeholder;
1291
+ private _disabled;
1292
+ private _filterable;
1293
+ private _open;
1294
+ private _filtered;
1295
+ constructor();
1296
+ get value(): string;
1297
+ set value(val: string);
1298
+ get options(): ComboboxOption[];
1299
+ set options(val: ComboboxOption[]);
1300
+ connectedCallback(): void;
1301
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1302
+ private _syncInput;
1303
+ openList(): void;
1304
+ closeList(): void;
1305
+ private _renderListbox;
1306
+ private _position;
1307
+ private _filterOptions;
1308
+ private _select;
1309
+ private _handleOutsideClick;
1310
+ _mount(): void;
1311
+ private _focusNext;
1312
+ private _focusPrev;
1313
+ }
1314
+
1315
+ interface CalendarProps {
1316
+ value?: string;
1317
+ min?: string;
1318
+ max?: string;
1319
+ class?: string;
1320
+ onChange?: (value: string) => void;
1321
+ }
1322
+ declare class UCalendar extends UElement {
1323
+ static get observedAttributes(): string[];
1324
+ private _value;
1325
+ private _min;
1326
+ private _max;
1327
+ private _viewYear;
1328
+ private _viewMonth;
1329
+ constructor();
1330
+ get value(): string;
1331
+ set value(val: string);
1332
+ connectedCallback(): void;
1333
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1334
+ private _renderDayNames;
1335
+ private _render;
1336
+ private _navigate;
1337
+ goToDate(year: number, month: number): void;
1338
+ _mount(): void;
1339
+ }
1340
+
1341
+ interface DataTableColumn {
1342
+ key: string;
1343
+ label: string;
1344
+ sortable?: boolean;
1345
+ filterable?: boolean;
1346
+ width?: string;
1347
+ render?: (value: any, row: any, index: number) => string;
1348
+ }
1349
+ interface DataTableProps {
1350
+ columns?: DataTableColumn[];
1351
+ rows?: Record<string, any>[];
1352
+ pageSize?: number;
1353
+ sortable?: boolean;
1354
+ selectable?: boolean;
1355
+ class?: string;
1356
+ onSort?: (key: string, dir: string) => void;
1357
+ onSelect?: (selected: string[]) => void;
1358
+ }
1359
+ declare class UDataTable extends UElement {
1360
+ static get observedAttributes(): string[];
1361
+ private _columns;
1362
+ private _rows;
1363
+ private _pageSize;
1364
+ private _sortable;
1365
+ private _selectable;
1366
+ private _sortKey;
1367
+ private _sortDir;
1368
+ private _page;
1369
+ private _selected;
1370
+ private _filterText;
1371
+ constructor();
1372
+ get columns(): DataTableColumn[];
1373
+ set columns(val: DataTableColumn[]);
1374
+ get rows(): Record<string, any>[];
1375
+ set rows(val: Record<string, any>[]);
1376
+ get pageSize(): number;
1377
+ set pageSize(val: number);
1378
+ connectedCallback(): void;
1379
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1380
+ private _getProcessedData;
1381
+ private _getPageData;
1382
+ private _render;
1383
+ private _renderHeader;
1384
+ private _renderBody;
1385
+ private _renderPagination;
1386
+ private _dispatchSelect;
1387
+ _mount(): void;
1388
+ }
1389
+
1390
+ interface CommandItem {
1391
+ id: string;
1392
+ label: string;
1393
+ description?: string;
1394
+ shortcut?: string;
1395
+ icon?: string;
1396
+ group?: string;
1397
+ }
1398
+ interface CommandPaletteProps {
1399
+ open?: boolean;
1400
+ items?: CommandItem[];
1401
+ placeholder?: string;
1402
+ shortcut?: string;
1403
+ class?: string;
1404
+ onSelect?: (id: string) => void;
1405
+ onClose?: () => void;
1406
+ }
1407
+ declare class UCommandPalette extends UElement {
1408
+ static get observedAttributes(): string[];
1409
+ private _open;
1410
+ private _items;
1411
+ private _placeholder;
1412
+ private _shortcut;
1413
+ private _filtered;
1414
+ private _selectedIndex;
1415
+ constructor();
1416
+ get open(): boolean;
1417
+ set open(val: boolean);
1418
+ get items(): CommandItem[];
1419
+ set items(val: CommandItem[]);
1420
+ openPalette(): void;
1421
+ closePalette(): void;
1422
+ connectedCallback(): void;
1423
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1424
+ private _sync;
1425
+ private _updateOpenState;
1426
+ private _positionDialog;
1427
+ private _renderResults;
1428
+ private _selectActive;
1429
+ private _select;
1430
+ private _handleOutsideClick;
1431
+ _mount(): void;
1432
+ }
1433
+
1434
+ interface ToastOptions {
1435
+ title: string;
1436
+ description?: string;
1437
+ variant?: 'info' | 'success' | 'warning' | 'error';
1438
+ duration?: number;
1439
+ action?: {
1440
+ label: string;
1441
+ onClick: () => void;
1442
+ };
1443
+ }
1444
+ interface ToastProps {
1445
+ placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
1446
+ class?: string;
1447
+ }
1448
+ declare class UToast extends UElement {
1449
+ static get observedAttributes(): string[];
1450
+ private _entries;
1451
+ private _placement;
1452
+ constructor();
1453
+ get placement(): string;
1454
+ set placement(val: string);
1455
+ connectedCallback(): void;
1456
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1457
+ private _updatePlacement;
1458
+ show(opts: ToastOptions): string;
1459
+ dismiss(id: string): void;
1460
+ dismissAll(): void;
1461
+ _mount(): void;
1462
+ }
1463
+
1464
+ interface ContextMenuItem {
1465
+ label: string;
1466
+ value: string;
1467
+ disabled?: boolean;
1468
+ divider?: boolean;
1469
+ icon?: string;
1470
+ }
1471
+ interface ContextMenuProps {
1472
+ class?: string;
1473
+ onSelect?: (value: string) => void;
1474
+ }
1475
+ declare class UContextMenu extends UElement {
1476
+ private _items;
1477
+ private _open;
1478
+ private _selectedIndex;
1479
+ constructor();
1480
+ get items(): ContextMenuItem[];
1481
+ set items(val: ContextMenuItem[]);
1482
+ connectedCallback(): void;
1483
+ private _parseSlotItems;
1484
+ private _renderItems;
1485
+ private _openMenu;
1486
+ private _closeMenu;
1487
+ private _focusFirst;
1488
+ private _handleOutsideClick;
1489
+ _mount(): void;
1490
+ }
1491
+
1492
+ interface SortableProps {
1493
+ disabled?: boolean;
1494
+ handleSelector?: string;
1495
+ class?: string;
1496
+ onReorder?: (fromIndex: number, toIndex: number) => void;
1497
+ }
1498
+ declare class USortable extends UElement {
1499
+ static get observedAttributes(): string[];
1500
+ private _disabled;
1501
+ private _handleSelector;
1502
+ private _dragging;
1503
+ private _placeholder;
1504
+ private _dragIndex;
1505
+ private _dropIndex;
1506
+ private _offsetX;
1507
+ private _offsetY;
1508
+ private _dragClone;
1509
+ constructor();
1510
+ get disabled(): boolean;
1511
+ set disabled(val: boolean);
1512
+ get handleSelector(): string;
1513
+ set handleSelector(val: string);
1514
+ private _getItems;
1515
+ private _getHandle;
1516
+ private _findItem;
1517
+ private _onPointerDown;
1518
+ private _onPointerMove;
1519
+ private _onPointerUp;
1520
+ _mount(): void;
1521
+ }
1522
+
1523
+ interface FormProps {
1524
+ class?: string;
1525
+ onSubmit?: (data: Record<string, string>) => void;
1526
+ onError?: (errors: Record<string, string>) => void;
1527
+ }
1528
+ declare class UForm extends UElement {
1529
+ private _fields;
1530
+ constructor();
1531
+ get form(): HTMLFormElement | null;
1532
+ validate(): boolean;
1533
+ getValues(): Record<string, string>;
1534
+ reset(): void;
1535
+ _mount(): void;
1536
+ }
1537
+
1538
+ type BadgeVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
1539
+ type BadgeSize = 'sm' | 'md' | 'lg';
1540
+ interface BadgeProps {
1541
+ variant?: BadgeVariant;
1542
+ size?: BadgeSize;
1543
+ dot?: boolean;
1544
+ pill?: boolean;
1545
+ class?: string;
1546
+ }
1547
+ declare class UBadge extends UElement {
1548
+ static get observedAttributes(): string[];
1549
+ private _variant;
1550
+ private _size;
1551
+ private _dot;
1552
+ private _pill;
1553
+ constructor();
1554
+ get variant(): BadgeVariant;
1555
+ set variant(val: BadgeVariant);
1556
+ get size(): BadgeSize;
1557
+ set size(val: BadgeSize);
1558
+ get dot(): boolean;
1559
+ set dot(val: boolean);
1560
+ get pill(): boolean;
1561
+ set pill(val: boolean);
1562
+ connectedCallback(): void;
1563
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1564
+ private _sync;
1565
+ _mount(): void;
1566
+ }
1567
+
1568
+ type CardVariant = 'default' | 'outlined' | 'elevated';
1569
+ type CardPadding = 'none' | 'sm' | 'md' | 'lg';
1570
+ interface CardProps {
1571
+ variant?: CardVariant;
1572
+ padding?: CardPadding;
1573
+ hoverable?: boolean;
1574
+ as?: string;
1575
+ class?: string;
1576
+ }
1577
+ declare class UCard extends UElement {
1578
+ static get observedAttributes(): string[];
1579
+ private _variant;
1580
+ private _padding;
1581
+ private _hoverable;
1582
+ constructor();
1583
+ get variant(): CardVariant;
1584
+ set variant(val: CardVariant);
1585
+ get padding(): CardPadding;
1586
+ set padding(val: CardPadding);
1587
+ get hoverable(): boolean;
1588
+ set hoverable(val: boolean);
1589
+ connectedCallback(): void;
1590
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
1591
+ private _sync;
1592
+ _mount(): void;
1593
+ }
1594
+
1595
+ export { type TreeProps as $, type AccordionProps as A, type BadgeProps as B, type CalendarProps as C, type DataTableProps as D, type RouterViewProps as E, type FieldProps as F, type GridProps as G, type HoverableProps as H, type InputProps as I, type SelectProps as J, type KeyboardNavigationProps as K, type LabelProps as L, type ModalProps as M, type SortableProps as N, type OverlayProps as O, type PopoverProps as P, type SpacerProps as Q, type RadioGroupProps as R, type StackProps as S, type SwitchProps as T, type TableProps as U, type TabsProps as V, type TextProps as W, type TextareaProps as X, type ToastProps as Y, type TooltipRootProps as Z, type TransitionProps as _, type AnimateProps as a, UModal as a$, type VirtualListProps as a0, type VisuallyHiddenProps as a1, type AccordionItemProps as a2, type AnimatePreset as a3, type BadgeSize as a4, type BadgeVariant as a5, type BoxAs as a6, type BreadcrumbItem as a7, type CardPadding as a8, type CardVariant as a9, UCalendar as aA, UCard as aB, UCheckbox as aC, UCollection as aD, UCombobox as aE, UCommandPalette as aF, UContainer as aG, UContextMenu as aH, UDataTable as aI, UDialogRoot as aJ, UDismissableLayer as aK, UDrawer as aL, UDropdown as aM, UField as aN, UFocusManager as aO, UFocusScope as aP, UFocusTrap as aQ, UForm as aR, UGrid as aS, UHStack as aT, UHoverable as aU, UInput as aV, UKeyboardNavigation as aW, ULabel as aX, ULink as aY, UList as aZ, ULiveRegion as a_, type CollectionSelection as aa, type ComboboxOption as ab, type CommandItem as ac, type ContextMenuItem as ad, type DataTableColumn as ae, type DrawerSide as af, type DropdownItem as ag, type LiveRegionPoliteness as ah, type PopperPlacement as ai, type PresenceAnimation as aj, type RadioProps as ak, type SelectOption as al, type TableColumn as am, type TextColor as an, type TextSize as ao, type TextWeight as ap, type ToastOptions as aq, type TransitionType as ar, type TreeNodeData as as, UAccordion as at, UAccordionItem as au, UAnimate as av, UBadge as aw, UBox as ax, UBreadcrumb as ay, UButton as az, type BoxProps as b, UOverlay as b0, UPopover as b1, UPopper as b2, UPortal as b3, UPresence as b4, UPressable as b5, URadio as b6, URadioGroup as b7, URouterView as b8, USelect as b9, USortable as ba, USpacer as bb, UStack as bc, USwitch as bd, UTable as be, UTabs as bf, UText as bg, UTextarea as bh, UToast as bi, UTooltipRoot as bj, UTransition as bk, UTree as bl, UVirtualList as bm, UVisuallyHidden as bn, createControlledInput as bo, setPortalRoot as bp, type BreadcrumbProps as c, type ButtonProps as d, type CardProps as e, type CheckboxProps as f, type CollectionProps as g, type ComboboxProps as h, type CommandPaletteProps as i, type ContainerProps as j, type ContextMenuProps as k, type DialogRootProps as l, type DismissableLayerProps as m, type DrawerProps as n, type DropdownProps as o, type FocusManagerProps as p, type FocusScopeProps as q, type FocusTrapProps as r, type FormProps as s, type LinkProps as t, type ListProps as u, type LiveRegionProps as v, type PopperProps as w, type PortalProps as x, type PresenceProps as y, type PressableProps as z };