@avento-space/ts-ui 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -14
- package/dist/{card.wc-pFLgjfwm.d.ts → card.wc-83Ws3o27.d.ts} +33 -1
- package/dist/{chunk-RQZ7KDYP.js → chunk-2JEFDU25.js} +349 -81
- package/dist/chunk-2JEFDU25.js.map +1 -0
- package/dist/chunk-6SD5UBY6.js +4983 -0
- package/dist/chunk-6SD5UBY6.js.map +1 -0
- package/dist/chunk-AOFVLHAJ.js +2254 -0
- package/dist/chunk-AOFVLHAJ.js.map +1 -0
- package/dist/{chunk-QTANS5ZS.js → chunk-GJ6NMUKU.js} +4 -4
- package/dist/{chunk-QTANS5ZS.js.map → chunk-GJ6NMUKU.js.map} +1 -1
- package/dist/chunk-YRHQNIPK.js +3 -0
- package/dist/{chunk-T7QLIHHU.js.map → chunk-YRHQNIPK.js.map} +1 -1
- package/dist/components/index.d.ts +9 -10
- package/dist/components/index.js +3 -3
- package/dist/define.js +4 -4
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +66 -8
- package/dist/react/index.js.map +1 -1
- package/dist/slot.wc-BvIJg5UJ.d.ts +11 -0
- package/package.json +7 -3
- package/dist/chunk-ICB6OBEZ.js +0 -2087
- package/dist/chunk-ICB6OBEZ.js.map +0 -1
- package/dist/chunk-RATTHYIP.js +0 -4855
- package/dist/chunk-RATTHYIP.js.map +0 -1
- package/dist/chunk-RQZ7KDYP.js.map +0 -1
- package/dist/chunk-T7QLIHHU.js +0 -3
package/README.md
CHANGED
|
@@ -129,23 +129,16 @@ function App() {
|
|
|
129
129
|
|
|
130
130
|
## Styling
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
Components use **Shadow DOM**, so global CSS (Tailwind, modules, etc.) cannot style internal elements. Use **CSS custom properties** for design tokens and **`::part()` selectors** for targeting specific internal elements.
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
/* CSS parts */
|
|
136
|
-
u-button::part(button) { font-weight: 700; }
|
|
137
|
-
u-modal::part(modal-wrapper) { border-radius: 16px; }
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Design tokens are available as CSS custom properties:
|
|
134
|
+
> 📖 **Full documentation:** [`docs/theming.md`](./docs/theming.md) — includes the complete token table, stacking/z-index guide, React patterns, migration notes, and the optional [Tailwind plugin](docs/theming.md#7-optional-tailwind-plugin) for autocomplete-friendly `--u-*` utilities.
|
|
141
135
|
|
|
142
136
|
```css
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
137
|
+
/* Token override — affects all components */
|
|
138
|
+
:root { --u-color-primary: #7c3aed; }
|
|
139
|
+
|
|
140
|
+
/* Part selector — styles the internal <button> */
|
|
141
|
+
u-button::part(button) { font-weight: 700; text-transform: uppercase; }
|
|
149
142
|
```
|
|
150
143
|
|
|
151
144
|
---
|
|
@@ -104,6 +104,7 @@ interface ListProps {
|
|
|
104
104
|
emptyState?: string;
|
|
105
105
|
}
|
|
106
106
|
declare class UList extends UElement {
|
|
107
|
+
static get observedAttributes(): string[];
|
|
107
108
|
private _items;
|
|
108
109
|
private _renderItem;
|
|
109
110
|
private _emptyText;
|
|
@@ -115,6 +116,9 @@ declare class UList extends UElement {
|
|
|
115
116
|
get emptyState(): string;
|
|
116
117
|
set emptyState(val: string);
|
|
117
118
|
private _renderList;
|
|
119
|
+
connectedCallback(): void;
|
|
120
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
121
|
+
private _sync;
|
|
118
122
|
_mount(): void;
|
|
119
123
|
}
|
|
120
124
|
interface VirtualListProps {
|
|
@@ -213,6 +217,7 @@ declare class UStack extends UElement {
|
|
|
213
217
|
private _align;
|
|
214
218
|
private _justify;
|
|
215
219
|
private _wrap;
|
|
220
|
+
protected _direction: string;
|
|
216
221
|
constructor();
|
|
217
222
|
get gap(): number;
|
|
218
223
|
set gap(val: number);
|
|
@@ -794,6 +799,7 @@ declare class UCollection extends UElement {
|
|
|
794
799
|
clearSelection(): void;
|
|
795
800
|
connectedCallback(): void;
|
|
796
801
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
802
|
+
private _sync;
|
|
797
803
|
private _updateItems;
|
|
798
804
|
private _dispatchChange;
|
|
799
805
|
_mount(): void;
|
|
@@ -814,8 +820,11 @@ declare class UTree extends UElement {
|
|
|
814
820
|
static get observedAttributes(): string[];
|
|
815
821
|
private _items;
|
|
816
822
|
constructor();
|
|
823
|
+
connectedCallback(): void;
|
|
824
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
817
825
|
get items(): TreeNodeData[];
|
|
818
826
|
set items(val: TreeNodeData[]);
|
|
827
|
+
private _sync;
|
|
819
828
|
private _render;
|
|
820
829
|
private _renderNode;
|
|
821
830
|
private _onClick;
|
|
@@ -848,6 +857,7 @@ declare class UTable extends UElement {
|
|
|
848
857
|
set rows(val: Record<string, any>[]);
|
|
849
858
|
connectedCallback(): void;
|
|
850
859
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
860
|
+
private _sync;
|
|
851
861
|
private _render;
|
|
852
862
|
private _renderHeader;
|
|
853
863
|
private _renderBody;
|
|
@@ -884,6 +894,7 @@ declare class UBreadcrumb extends UElement {
|
|
|
884
894
|
set separator(val: string);
|
|
885
895
|
connectedCallback(): void;
|
|
886
896
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
897
|
+
private _sync;
|
|
887
898
|
private _render;
|
|
888
899
|
_mount(): void;
|
|
889
900
|
}
|
|
@@ -924,7 +935,11 @@ interface VisuallyHiddenProps {
|
|
|
924
935
|
class?: string;
|
|
925
936
|
}
|
|
926
937
|
declare class UVisuallyHidden extends UElement {
|
|
938
|
+
static get observedAttributes(): string[];
|
|
927
939
|
constructor();
|
|
940
|
+
connectedCallback(): void;
|
|
941
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
942
|
+
private _sync;
|
|
928
943
|
_mount(): void;
|
|
929
944
|
}
|
|
930
945
|
|
|
@@ -1004,6 +1019,7 @@ declare class UPresence extends UElement {
|
|
|
1004
1019
|
set animation(val: PresenceAnimation);
|
|
1005
1020
|
connectedCallback(): void;
|
|
1006
1021
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1022
|
+
private _sync;
|
|
1007
1023
|
private _enter;
|
|
1008
1024
|
private _leave;
|
|
1009
1025
|
_mount(): void;
|
|
@@ -1165,6 +1181,7 @@ declare class UPopover extends UElement {
|
|
|
1165
1181
|
toggle(): void;
|
|
1166
1182
|
connectedCallback(): void;
|
|
1167
1183
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1184
|
+
private _sync;
|
|
1168
1185
|
private _updateOpenState;
|
|
1169
1186
|
private _position;
|
|
1170
1187
|
private _handleOutsideClick;
|
|
@@ -1214,6 +1231,7 @@ declare class UDropdown extends UElement {
|
|
|
1214
1231
|
toggle(): void;
|
|
1215
1232
|
connectedCallback(): void;
|
|
1216
1233
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1234
|
+
private _sync;
|
|
1217
1235
|
private _renderItems;
|
|
1218
1236
|
private _updateSelected;
|
|
1219
1237
|
private _updateOpenState;
|
|
@@ -1246,6 +1264,7 @@ declare class UAccordion extends UElement {
|
|
|
1246
1264
|
set multiple(val: boolean);
|
|
1247
1265
|
connectedCallback(): void;
|
|
1248
1266
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1267
|
+
private _sync;
|
|
1249
1268
|
private _initItems;
|
|
1250
1269
|
toggle(key: string): void;
|
|
1251
1270
|
private _syncItems;
|
|
@@ -1267,6 +1286,7 @@ declare class UAccordionItem extends UElement {
|
|
|
1267
1286
|
set open(val: boolean);
|
|
1268
1287
|
connectedCallback(): void;
|
|
1269
1288
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1289
|
+
private _sync;
|
|
1270
1290
|
_mount(): void;
|
|
1271
1291
|
}
|
|
1272
1292
|
|
|
@@ -1331,6 +1351,7 @@ declare class UCalendar extends UElement {
|
|
|
1331
1351
|
set value(val: string);
|
|
1332
1352
|
connectedCallback(): void;
|
|
1333
1353
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1354
|
+
private _sync;
|
|
1334
1355
|
private _renderDayNames;
|
|
1335
1356
|
private _render;
|
|
1336
1357
|
private _navigate;
|
|
@@ -1377,6 +1398,7 @@ declare class UDataTable extends UElement {
|
|
|
1377
1398
|
set pageSize(val: number);
|
|
1378
1399
|
connectedCallback(): void;
|
|
1379
1400
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1401
|
+
private _sync;
|
|
1380
1402
|
private _getProcessedData;
|
|
1381
1403
|
private _getPageData;
|
|
1382
1404
|
private _render;
|
|
@@ -1473,6 +1495,7 @@ interface ContextMenuProps {
|
|
|
1473
1495
|
onSelect?: (value: string) => void;
|
|
1474
1496
|
}
|
|
1475
1497
|
declare class UContextMenu extends UElement {
|
|
1498
|
+
static get observedAttributes(): string[];
|
|
1476
1499
|
private _items;
|
|
1477
1500
|
private _open;
|
|
1478
1501
|
private _selectedIndex;
|
|
@@ -1480,8 +1503,10 @@ declare class UContextMenu extends UElement {
|
|
|
1480
1503
|
get items(): ContextMenuItem[];
|
|
1481
1504
|
set items(val: ContextMenuItem[]);
|
|
1482
1505
|
connectedCallback(): void;
|
|
1506
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1483
1507
|
private _parseSlotItems;
|
|
1484
1508
|
private _renderItems;
|
|
1509
|
+
private _sync;
|
|
1485
1510
|
private _openMenu;
|
|
1486
1511
|
private _closeMenu;
|
|
1487
1512
|
private _focusFirst;
|
|
@@ -1507,6 +1532,7 @@ declare class USortable extends UElement {
|
|
|
1507
1532
|
private _offsetY;
|
|
1508
1533
|
private _dragClone;
|
|
1509
1534
|
constructor();
|
|
1535
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1510
1536
|
get disabled(): boolean;
|
|
1511
1537
|
set disabled(val: boolean);
|
|
1512
1538
|
get handleSelector(): string;
|
|
@@ -1517,6 +1543,8 @@ declare class USortable extends UElement {
|
|
|
1517
1543
|
private _onPointerDown;
|
|
1518
1544
|
private _onPointerMove;
|
|
1519
1545
|
private _onPointerUp;
|
|
1546
|
+
connectedCallback(): void;
|
|
1547
|
+
private _sync;
|
|
1520
1548
|
_mount(): void;
|
|
1521
1549
|
}
|
|
1522
1550
|
|
|
@@ -1527,8 +1555,12 @@ interface FormProps {
|
|
|
1527
1555
|
}
|
|
1528
1556
|
declare class UForm extends UElement {
|
|
1529
1557
|
private _fields;
|
|
1558
|
+
static get observedAttributes(): string[];
|
|
1530
1559
|
constructor();
|
|
1560
|
+
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
1561
|
+
connectedCallback(): void;
|
|
1531
1562
|
get form(): HTMLFormElement | null;
|
|
1563
|
+
private _sync;
|
|
1532
1564
|
validate(): boolean;
|
|
1533
1565
|
getValues(): Record<string, string>;
|
|
1534
1566
|
reset(): void;
|
|
@@ -1592,4 +1624,4 @@ declare class UCard extends UElement {
|
|
|
1592
1624
|
_mount(): void;
|
|
1593
1625
|
}
|
|
1594
1626
|
|
|
1595
|
-
export { type
|
|
1627
|
+
export { type PortalProps as $, type AccordionItemProps as A, type BadgeProps as B, type CalendarProps as C, type DataTableColumn as D, type DrawerProps as E, type DrawerSide as F, type DropdownItem as G, type DropdownProps as H, type FieldProps as I, type FocusManagerProps as J, type FocusScopeProps as K, type FocusTrapProps as L, type FormProps as M, type GridProps as N, type HoverableProps as O, type InputProps as P, type KeyboardNavigationProps as Q, type LabelProps as R, type LinkProps as S, type ListProps as T, type LiveRegionPoliteness as U, type LiveRegionProps as V, type ModalProps as W, type OverlayProps as X, type PopoverProps as Y, type PopperPlacement as Z, type PopperProps as _, type AccordionProps as a, UPopover as a$, type PresenceAnimation as a0, type PresenceProps as a1, type PressableProps as a2, type RadioGroupProps as a3, type RadioProps as a4, type RouterViewProps as a5, type SelectOption as a6, type SelectProps as a7, type SortableProps as a8, type SpacerProps as a9, UCheckbox as aA, UCollection as aB, UCombobox as aC, UCommandPalette as aD, UContainer as aE, UContextMenu as aF, UDataTable as aG, UDialogRoot as aH, UDismissableLayer as aI, UDrawer as aJ, UDropdown as aK, UField as aL, UFocusManager as aM, UFocusScope as aN, UFocusTrap as aO, UForm as aP, UGrid as aQ, UHStack as aR, UHoverable as aS, UInput as aT, UKeyboardNavigation as aU, ULabel as aV, ULink as aW, UList as aX, ULiveRegion as aY, UModal as aZ, UOverlay as a_, type StackProps as aa, type SwitchProps as ab, type TableColumn as ac, type TableProps as ad, type TabsProps as ae, type TextColor as af, type TextProps as ag, type TextSize as ah, type TextWeight as ai, type TextareaProps as aj, type ToastOptions as ak, type ToastProps as al, type TooltipRootProps as am, type TransitionProps as an, type TransitionType as ao, type TreeNodeData as ap, type TreeProps as aq, UAccordion as ar, UAccordionItem as as, UAnimate as at, UBadge as au, UBox as av, UBreadcrumb as aw, UButton as ax, UCalendar as ay, UCard as az, type AnimatePreset as b, UPopper as b0, UPortal as b1, UPresence as b2, UPressable as b3, URadio as b4, URadioGroup as b5, URouterView as b6, USelect as b7, USortable as b8, USpacer as b9, UStack as ba, USwitch as bb, UTable as bc, UTabs as bd, UText as be, UTextarea as bf, UToast as bg, UTooltipRoot as bh, UTransition as bi, UTree as bj, UVirtualList as bk, UVisuallyHidden as bl, type VirtualListProps as bm, type VisuallyHiddenProps as bn, createControlledInput as bo, setPortalRoot as bp, type AnimateProps as c, type BadgeSize as d, type BadgeVariant as e, type BoxAs as f, type BoxProps as g, type BreadcrumbItem as h, type BreadcrumbProps as i, type ButtonProps as j, type CardPadding as k, type CardProps as l, type CardVariant as m, type CheckboxProps as n, type CollectionProps as o, type CollectionSelection as p, type ComboboxOption as q, type ComboboxProps as r, type CommandItem as s, type CommandPaletteProps as t, type ContainerProps as u, type ContextMenuItem as v, type ContextMenuProps as w, type DataTableProps as x, type DialogRootProps as y, type DismissableLayerProps as z };
|