@ds-mo/ui 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/components/ds-bar-nav-action.js +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-nav.js.map +1 -1
- package/dist/components/ds-breadcrumb.js +1 -1
- package/dist/components/ds-button-group.js +1 -1
- package/dist/components/ds-button.js +1 -1
- package/dist/components/ds-card.js +1 -1
- package/dist/components/ds-card.js.map +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-divider.js +1 -1
- package/dist/components/ds-divider.js.map +1 -1
- package/dist/components/ds-empty-state.js +1 -1
- package/dist/components/ds-empty-state.js.map +1 -1
- package/dist/components/ds-fade.js +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-header.js +1 -1
- package/dist/components/ds-header.js.map +1 -1
- package/dist/components/ds-icon.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/{ds-label-wrap.d.ts → ds-tab-group-nav.d.ts} +4 -4
- package/dist/components/ds-tab-group-nav.js +2 -0
- package/dist/components/ds-tab-group-nav.js.map +1 -0
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-tab-group.js.map +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-toast-provider.js +1 -1
- package/dist/components/ds-toggle-button-group.js +1 -1
- package/dist/components/ds-toggle-button.js +1 -1
- package/dist/components/ds-toggle.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/p-BQq26pt9.js +2 -0
- package/dist/components/p-BQq26pt9.js.map +1 -0
- package/dist/components/{p-DouEVPmi.js → p-CE5zeV1w.js} +2 -2
- package/dist/components/{p-D3CwGoIu.js → p-COsKOwZR.js} +2 -2
- package/dist/components/p-CQQe6VNo.js +2 -0
- package/dist/components/p-CQQe6VNo.js.map +1 -0
- package/dist/components/p-Cj00JkJb.js +2 -0
- package/dist/components/p-Cj00JkJb.js.map +1 -0
- package/dist/components/p-CpbnmEu1.js +2 -0
- package/dist/components/p-CpbnmEu1.js.map +1 -0
- package/dist/components/{p-BvxKLqNx.js → p-H89PzqGU.js} +2 -2
- package/dist/components/{p-BYe8Rfdg.js → p-Vwlmhl4E.js} +2 -2
- package/dist/types/.stencil/BarNav/BarNav.d.ts +7 -2
- package/dist/types/.stencil/BarNav/bar-nav-dom-utils.d.ts +1 -2
- package/dist/types/.stencil/Divider/Divider.d.ts +14 -0
- package/dist/types/.stencil/TabGroupNav/TabGroupNav.d.ts +27 -0
- package/dist/types/.stencil/Text/Text.d.ts +2 -0
- package/dist/types/components.d.ts +125 -63
- package/package.json +37 -7
- package/src/angular/index.ts +1 -1
- package/src/angular/proxies.ts +32 -27
- package/src/react/components.ts +45 -0
- package/src/react/ds-accordion.ts +27 -0
- package/src/react/ds-badge.ts +26 -0
- package/src/react/ds-banner.ts +27 -0
- package/src/react/ds-bar-nav-action.ts +27 -0
- package/src/react/ds-bar-nav.ts +33 -0
- package/src/react/ds-breadcrumb.ts +27 -0
- package/src/react/ds-button-group.ts +27 -0
- package/src/react/ds-button.ts +35 -0
- package/src/react/ds-card.ts +26 -0
- package/src/react/ds-checkbox.ts +27 -0
- package/src/react/ds-divider.ts +26 -0
- package/src/react/ds-empty-state.ts +26 -0
- package/src/react/ds-fade.ts +26 -0
- package/src/react/ds-field.ts +26 -0
- package/src/react/ds-header.ts +26 -0
- package/src/react/ds-icon.ts +26 -0
- package/src/react/ds-input.ts +33 -0
- package/src/react/ds-loader.ts +26 -0
- package/src/react/ds-menu.ts +33 -0
- package/src/react/ds-modal.ts +27 -0
- package/src/react/ds-pagination.ts +27 -0
- package/src/react/ds-panel-nav.ts +37 -0
- package/src/react/ds-radio-group.ts +27 -0
- package/src/react/ds-scrollbar.ts +26 -0
- package/src/react/ds-select.ts +27 -0
- package/src/react/ds-sidebar.ts +33 -0
- package/src/react/ds-skeleton.ts +26 -0
- package/src/react/ds-slider.ts +27 -0
- package/src/react/ds-surface.ts +26 -0
- package/src/react/ds-tab-group-nav.ts +27 -0
- package/src/react/ds-tab-group.ts +27 -0
- package/src/react/ds-table.ts +35 -0
- package/src/react/ds-tag.ts +35 -0
- package/src/react/ds-text.ts +26 -0
- package/src/react/ds-toast-provider.ts +26 -0
- package/src/react/ds-toggle-button-group.ts +27 -0
- package/src/react/ds-toggle-button.ts +27 -0
- package/src/react/ds-toggle.ts +27 -0
- package/src/react/ds-tooltip.ts +26 -0
- package/src/wc/components/Accordion/Accordion.tsx +144 -0
- package/src/wc/components/Badge/Badge.tsx +34 -0
- package/src/wc/components/Badge/index.ts +1 -0
- package/src/wc/components/Banner/Banner.tsx +148 -0
- package/src/wc/components/BarNav/BarNav.tsx +605 -0
- package/src/wc/components/BarNav/bar-nav-dom-utils.ts +23 -0
- package/src/wc/components/BarNav/bar-nav-tabs-menu-utils.ts +59 -0
- package/src/wc/components/BarNav/bar-nav-utils.ts +76 -0
- package/src/wc/components/BarNav/index.ts +1 -0
- package/src/wc/components/BarNavAction/BarNavAction.tsx +67 -0
- package/src/wc/components/BarNavAction/index.ts +1 -0
- package/src/wc/components/Breadcrumb/Breadcrumb.tsx +61 -0
- package/src/wc/components/Button/Button.tsx +158 -0
- package/src/wc/components/Button/index.ts +1 -0
- package/src/wc/components/ButtonGroup/ButtonGroup.tsx +110 -0
- package/src/wc/components/Card/Card.tsx +26 -0
- package/src/wc/components/Checkbox/Checkbox.tsx +60 -0
- package/src/wc/components/Checkbox/index.ts +1 -0
- package/src/wc/components/Divider/Divider.tsx +107 -0
- package/src/wc/components/Divider/index.ts +2 -0
- package/src/wc/components/EmptyState/EmptyState.tsx +32 -0
- package/src/wc/components/Fade/Fade.tsx +32 -0
- package/src/wc/components/Fade/index.ts +1 -0
- package/src/wc/components/Field/Field.tsx +28 -0
- package/src/wc/components/Header/Header.tsx +33 -0
- package/src/wc/components/Icon/Icon.tsx +112 -0
- package/src/wc/components/Icon/flag-icon-catalog.ts +68 -0
- package/src/wc/components/Icon/index.ts +1 -0
- package/src/wc/components/Icon/system-icon-catalog.ts +798 -0
- package/src/wc/components/Input/Input.tsx +100 -0
- package/src/wc/components/Input/index.ts +1 -0
- package/src/wc/components/Loader/Loader.tsx +47 -0
- package/src/wc/components/Loader/index.ts +1 -0
- package/src/wc/components/Menu/Menu.tsx +340 -0
- package/src/wc/components/Modal/Modal.tsx +197 -0
- package/src/wc/components/Pagination/Pagination.tsx +97 -0
- package/src/wc/components/PanelNav/PanelNav.tsx +666 -0
- package/src/wc/components/PanelNav/index.ts +7 -0
- package/src/wc/components/PanelNav/panel-nav-utils.ts +124 -0
- package/src/wc/components/RadioGroup/RadioGroup.tsx +128 -0
- package/src/wc/components/RadioGroup/index.ts +1 -0
- package/src/wc/components/Scrollbar/Scrollbar.tsx +189 -0
- package/src/wc/components/Select/Select.tsx +195 -0
- package/src/wc/components/Sidebar/Sidebar.tsx +245 -0
- package/src/wc/components/Skeleton/Skeleton.tsx +64 -0
- package/src/wc/components/Skeleton/index.ts +1 -0
- package/src/wc/components/Slider/Slider.tsx +68 -0
- package/src/wc/components/Slider/index.ts +1 -0
- package/src/wc/components/Surface/Surface.tsx +81 -0
- package/src/wc/components/TabGroup/TabGroup.tsx +188 -0
- package/src/wc/components/TabGroup/tab-item-utils.ts +24 -0
- package/src/wc/components/TabGroupNav/TabGroupNav.tsx +188 -0
- package/src/wc/components/Table/Table.tsx +268 -0
- package/src/wc/components/Tag/Tag.tsx +135 -0
- package/src/wc/components/Tag/index.ts +1 -0
- package/src/wc/components/Text/Text.tsx +103 -0
- package/src/wc/components/Text/index.ts +1 -0
- package/src/wc/components/Toast/Toast.tsx +174 -0
- package/src/wc/components/Toast/toast-service.ts +60 -0
- package/src/wc/components/Toggle/Toggle.tsx +43 -0
- package/src/wc/components/Toggle/index.ts +1 -0
- package/src/wc/components/ToggleButton/ToggleButton.tsx +120 -0
- package/src/wc/components/ToggleButtonGroup/ToggleButtonGroup.tsx +118 -0
- package/src/wc/components/Tooltip/Tooltip.tsx +196 -0
- package/src/wc/components.d.ts +3022 -0
- package/dist/components/ds-label-wrap.js +0 -2
- package/dist/components/ds-label-wrap.js.map +0 -1
- package/dist/components/p-C4p1fG67.js +0 -2
- package/dist/components/p-C4p1fG67.js.map +0 -1
- package/dist/components/p-DV8pmt1m.js +0 -2
- package/dist/components/p-DV8pmt1m.js.map +0 -1
- package/dist/components/p-STnE_bmQ.js +0 -2
- package/dist/components/p-STnE_bmQ.js.map +0 -1
- package/dist/types/.stencil/LabelWrap/LabelWrap.d.ts +0 -15
- /package/dist/components/{p-DouEVPmi.js.map → p-CE5zeV1w.js.map} +0 -0
- /package/dist/components/{p-D3CwGoIu.js.map → p-COsKOwZR.js.map} +0 -0
- /package/dist/components/{p-BvxKLqNx.js.map → p-H89PzqGU.js.map} +0 -0
- /package/dist/components/{p-BYe8Rfdg.js.map → p-Vwlmhl4E.js.map} +0 -0
|
@@ -13,13 +13,12 @@ import { BreadcrumbItem } from "./components/Breadcrumb/Breadcrumb";
|
|
|
13
13
|
import { ButtonBackground, ButtonContrast, ButtonElevation, ButtonIntent, ButtonSize, ButtonVariant } from "./components/Button/Button";
|
|
14
14
|
import { ButtonGroupElevation, ButtonGroupItem, ButtonGroupSize } from "./components/ButtonGroup/ButtonGroup";
|
|
15
15
|
import { CardElevation, CardRadius } from "./components/Card/Card";
|
|
16
|
-
import { DividerOrientation } from "./components/Divider/Divider";
|
|
16
|
+
import { DividerInset, DividerLength, DividerOrientation, DividerSurface } from "./components/Divider/Divider";
|
|
17
17
|
import { EmptyStateType } from "./components/EmptyState/EmptyState";
|
|
18
18
|
import { FadeSide } from "./components/Fade/Fade";
|
|
19
19
|
import { HeaderBackground } from "./components/Header/Header";
|
|
20
20
|
import { IconColor, IconSize } from "./components/Icon/Icon";
|
|
21
21
|
import { InputType } from "./components/Input/Input";
|
|
22
|
-
import { LabelWrapSize } from "./components/LabelWrap/LabelWrap";
|
|
23
22
|
import { MenuAlign, MenuItemData, MenuSection, MenuSide } from "./components/Menu/Menu";
|
|
24
23
|
import { ModalWidth } from "./components/Modal/Modal";
|
|
25
24
|
import { PanelNavGroup, PanelNavRouterMode, PanelNavVariant } from "./components/PanelNav/PanelNav";
|
|
@@ -31,9 +30,10 @@ import { SkeletonVariant } from "./components/Skeleton/Skeleton";
|
|
|
31
30
|
import { SurfaceBackground, SurfaceContrast, SurfaceElement, SurfaceElevation, SurfaceIntent, SurfaceRadius } from "./components/Surface/Surface";
|
|
32
31
|
import { TabItem } from "./components/TabGroup/tab-item-utils";
|
|
33
32
|
import { TabBackground } from "./components/TabGroup/TabGroup";
|
|
33
|
+
import { TabGroupNavBackground } from "./components/TabGroupNav/TabGroupNav";
|
|
34
34
|
import { SortState, TableColumn } from "./components/Table/Table";
|
|
35
35
|
import { TagBackground, TagContrast, TagElevation, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
36
|
-
import { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextVariant, TextWrap } from "./components/Text/Text";
|
|
36
|
+
import { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextFontFeature, TextVariant, TextWrap } from "./components/Text/Text";
|
|
37
37
|
import { ToastPosition } from "./components/Toast/Toast";
|
|
38
38
|
import { ToggleButtonBackground, ToggleButtonElevation, ToggleButtonSize } from "./components/ToggleButton/ToggleButton";
|
|
39
39
|
import { ToggleGroupBackground, ToggleGroupElevation, ToggleGroupItem, ToggleGroupSize } from "./components/ToggleButtonGroup/ToggleButtonGroup";
|
|
@@ -46,13 +46,12 @@ export { BreadcrumbItem } from "./components/Breadcrumb/Breadcrumb";
|
|
|
46
46
|
export { ButtonBackground, ButtonContrast, ButtonElevation, ButtonIntent, ButtonSize, ButtonVariant } from "./components/Button/Button";
|
|
47
47
|
export { ButtonGroupElevation, ButtonGroupItem, ButtonGroupSize } from "./components/ButtonGroup/ButtonGroup";
|
|
48
48
|
export { CardElevation, CardRadius } from "./components/Card/Card";
|
|
49
|
-
export { DividerOrientation } from "./components/Divider/Divider";
|
|
49
|
+
export { DividerInset, DividerLength, DividerOrientation, DividerSurface } from "./components/Divider/Divider";
|
|
50
50
|
export { EmptyStateType } from "./components/EmptyState/EmptyState";
|
|
51
51
|
export { FadeSide } from "./components/Fade/Fade";
|
|
52
52
|
export { HeaderBackground } from "./components/Header/Header";
|
|
53
53
|
export { IconColor, IconSize } from "./components/Icon/Icon";
|
|
54
54
|
export { InputType } from "./components/Input/Input";
|
|
55
|
-
export { LabelWrapSize } from "./components/LabelWrap/LabelWrap";
|
|
56
55
|
export { MenuAlign, MenuItemData, MenuSection, MenuSide } from "./components/Menu/Menu";
|
|
57
56
|
export { ModalWidth } from "./components/Modal/Modal";
|
|
58
57
|
export { PanelNavGroup, PanelNavRouterMode, PanelNavVariant } from "./components/PanelNav/PanelNav";
|
|
@@ -64,9 +63,10 @@ export { SkeletonVariant } from "./components/Skeleton/Skeleton";
|
|
|
64
63
|
export { SurfaceBackground, SurfaceContrast, SurfaceElement, SurfaceElevation, SurfaceIntent, SurfaceRadius } from "./components/Surface/Surface";
|
|
65
64
|
export { TabItem } from "./components/TabGroup/tab-item-utils";
|
|
66
65
|
export { TabBackground } from "./components/TabGroup/TabGroup";
|
|
66
|
+
export { TabGroupNavBackground } from "./components/TabGroupNav/TabGroupNav";
|
|
67
67
|
export { SortState, TableColumn } from "./components/Table/Table";
|
|
68
68
|
export { TagBackground, TagContrast, TagElevation, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
69
|
-
export { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextVariant, TextWrap } from "./components/Text/Text";
|
|
69
|
+
export { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextFontFeature, TextVariant, TextWrap } from "./components/Text/Text";
|
|
70
70
|
export { ToastPosition } from "./components/Toast/Toast";
|
|
71
71
|
export { ToggleButtonBackground, ToggleButtonElevation, ToggleButtonSize } from "./components/ToggleButton/ToggleButton";
|
|
72
72
|
export { ToggleGroupBackground, ToggleGroupElevation, ToggleGroupItem, ToggleGroupSize } from "./components/ToggleButtonGroup/ToggleButtonGroup";
|
|
@@ -319,11 +319,31 @@ export namespace Components {
|
|
|
319
319
|
"label": string;
|
|
320
320
|
}
|
|
321
321
|
interface DsDivider {
|
|
322
|
+
/**
|
|
323
|
+
* Insets the divider from its start/end edges. Accepts spacing token names or any CSS length.
|
|
324
|
+
* @default 'none'
|
|
325
|
+
*/
|
|
326
|
+
"inset": DividerInset;
|
|
327
|
+
/**
|
|
328
|
+
* Visual line length. Defaults to filling the available axis. Accepts any CSS length.
|
|
329
|
+
* @default 'auto'
|
|
330
|
+
*/
|
|
331
|
+
"length": DividerLength;
|
|
322
332
|
/**
|
|
323
333
|
* Direction of the divider line. Defaults to 'horizontal'.
|
|
324
334
|
* @default 'horizontal'
|
|
325
335
|
*/
|
|
326
336
|
"orientation": DividerOrientation;
|
|
337
|
+
/**
|
|
338
|
+
* Expose the divider as a semantic separator. Visual-only dividers are hidden from assistive tech by default.
|
|
339
|
+
* @default false
|
|
340
|
+
*/
|
|
341
|
+
"semantic": boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Surface context so the divider uses the right TokoMo divider token.
|
|
344
|
+
* @default 'default'
|
|
345
|
+
*/
|
|
346
|
+
"surface": DividerSurface;
|
|
327
347
|
}
|
|
328
348
|
interface DsEmptyState {
|
|
329
349
|
"message": string | undefined;
|
|
@@ -415,23 +435,6 @@ export namespace Components {
|
|
|
415
435
|
*/
|
|
416
436
|
"value": string;
|
|
417
437
|
}
|
|
418
|
-
/**
|
|
419
|
-
* Internal utility wrapper that kills line-height struts and adds optical
|
|
420
|
-
* horizontal padding. Used inside interactive components (Button, Tag, etc.)
|
|
421
|
-
* Not intended as a standalone consumer-facing component — internal use only.
|
|
422
|
-
*/
|
|
423
|
-
interface DsLabelWrap {
|
|
424
|
-
/**
|
|
425
|
-
* Typography size — controls optical horizontal padding.
|
|
426
|
-
* @default 'md'
|
|
427
|
-
*/
|
|
428
|
-
"size": LabelWrapSize;
|
|
429
|
-
/**
|
|
430
|
-
* Enable truncation with ellipsis — use inside full-width containers.
|
|
431
|
-
* @default false
|
|
432
|
-
*/
|
|
433
|
-
"truncate": boolean;
|
|
434
|
-
}
|
|
435
438
|
interface DsLoader {
|
|
436
439
|
/**
|
|
437
440
|
* Accessible label for standalone usage. Wraps the spinner in a live region and renders the label visually-hidden. Omit when the host element already conveys busy state via aria-busy.
|
|
@@ -748,6 +751,23 @@ export namespace Components {
|
|
|
748
751
|
*/
|
|
749
752
|
"value": string;
|
|
750
753
|
}
|
|
754
|
+
interface DsTabGroupNav {
|
|
755
|
+
"ariaLabel": string | undefined;
|
|
756
|
+
"ariaLabelledby": string | undefined;
|
|
757
|
+
"background": TabGroupNavBackground | undefined;
|
|
758
|
+
/**
|
|
759
|
+
* @default 'horizontal'
|
|
760
|
+
*/
|
|
761
|
+
"orientation": 'horizontal' | 'vertical';
|
|
762
|
+
/**
|
|
763
|
+
* @default []
|
|
764
|
+
*/
|
|
765
|
+
"tabs": TabItem[];
|
|
766
|
+
/**
|
|
767
|
+
* @default ''
|
|
768
|
+
*/
|
|
769
|
+
"value": string;
|
|
770
|
+
}
|
|
751
771
|
interface DsTable {
|
|
752
772
|
/**
|
|
753
773
|
* @default []
|
|
@@ -830,6 +850,10 @@ export namespace Components {
|
|
|
830
850
|
"as": TextElement;
|
|
831
851
|
"color": TextColor | undefined;
|
|
832
852
|
"decoration": TextDecoration | undefined;
|
|
853
|
+
/**
|
|
854
|
+
* @default 'normal'
|
|
855
|
+
*/
|
|
856
|
+
"fontFeature": TextFontFeature;
|
|
833
857
|
/**
|
|
834
858
|
* Maps to `for` attribute on <label> elements.
|
|
835
859
|
*/
|
|
@@ -1038,6 +1062,10 @@ export interface DsTabGroupCustomEvent<T> extends CustomEvent<T> {
|
|
|
1038
1062
|
detail: T;
|
|
1039
1063
|
target: HTMLDsTabGroupElement;
|
|
1040
1064
|
}
|
|
1065
|
+
export interface DsTabGroupNavCustomEvent<T> extends CustomEvent<T> {
|
|
1066
|
+
detail: T;
|
|
1067
|
+
target: HTMLDsTabGroupNavElement;
|
|
1068
|
+
}
|
|
1041
1069
|
export interface DsTableCustomEvent<T> extends CustomEvent<T> {
|
|
1042
1070
|
detail: T;
|
|
1043
1071
|
target: HTMLDsTableElement;
|
|
@@ -1264,17 +1292,6 @@ declare global {
|
|
|
1264
1292
|
prototype: HTMLDsInputElement;
|
|
1265
1293
|
new (): HTMLDsInputElement;
|
|
1266
1294
|
};
|
|
1267
|
-
/**
|
|
1268
|
-
* Internal utility wrapper that kills line-height struts and adds optical
|
|
1269
|
-
* horizontal padding. Used inside interactive components (Button, Tag, etc.)
|
|
1270
|
-
* Not intended as a standalone consumer-facing component — internal use only.
|
|
1271
|
-
*/
|
|
1272
|
-
interface HTMLDsLabelWrapElement extends Components.DsLabelWrap, HTMLStencilElement {
|
|
1273
|
-
}
|
|
1274
|
-
var HTMLDsLabelWrapElement: {
|
|
1275
|
-
prototype: HTMLDsLabelWrapElement;
|
|
1276
|
-
new (): HTMLDsLabelWrapElement;
|
|
1277
|
-
};
|
|
1278
1295
|
interface HTMLDsLoaderElement extends Components.DsLoader, HTMLStencilElement {
|
|
1279
1296
|
}
|
|
1280
1297
|
var HTMLDsLoaderElement: {
|
|
@@ -1457,6 +1474,23 @@ declare global {
|
|
|
1457
1474
|
prototype: HTMLDsTabGroupElement;
|
|
1458
1475
|
new (): HTMLDsTabGroupElement;
|
|
1459
1476
|
};
|
|
1477
|
+
interface HTMLDsTabGroupNavElementEventMap {
|
|
1478
|
+
"dsChange": string;
|
|
1479
|
+
}
|
|
1480
|
+
interface HTMLDsTabGroupNavElement extends Components.DsTabGroupNav, HTMLStencilElement {
|
|
1481
|
+
addEventListener<K extends keyof HTMLDsTabGroupNavElementEventMap>(type: K, listener: (this: HTMLDsTabGroupNavElement, ev: DsTabGroupNavCustomEvent<HTMLDsTabGroupNavElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1482
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1483
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1484
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1485
|
+
removeEventListener<K extends keyof HTMLDsTabGroupNavElementEventMap>(type: K, listener: (this: HTMLDsTabGroupNavElement, ev: DsTabGroupNavCustomEvent<HTMLDsTabGroupNavElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1486
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1487
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1488
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1489
|
+
}
|
|
1490
|
+
var HTMLDsTabGroupNavElement: {
|
|
1491
|
+
prototype: HTMLDsTabGroupNavElement;
|
|
1492
|
+
new (): HTMLDsTabGroupNavElement;
|
|
1493
|
+
};
|
|
1460
1494
|
interface HTMLDsTableElementEventMap {
|
|
1461
1495
|
"dsSort": { columnId: string };
|
|
1462
1496
|
"dsRowClick": { row: unknown; rowIndex: number };
|
|
@@ -1582,7 +1616,6 @@ declare global {
|
|
|
1582
1616
|
"ds-header": HTMLDsHeaderElement;
|
|
1583
1617
|
"ds-icon": HTMLDsIconElement;
|
|
1584
1618
|
"ds-input": HTMLDsInputElement;
|
|
1585
|
-
"ds-label-wrap": HTMLDsLabelWrapElement;
|
|
1586
1619
|
"ds-loader": HTMLDsLoaderElement;
|
|
1587
1620
|
"ds-menu": HTMLDsMenuElement;
|
|
1588
1621
|
"ds-modal": HTMLDsModalElement;
|
|
@@ -1596,6 +1629,7 @@ declare global {
|
|
|
1596
1629
|
"ds-slider": HTMLDsSliderElement;
|
|
1597
1630
|
"ds-surface": HTMLDsSurfaceElement;
|
|
1598
1631
|
"ds-tab-group": HTMLDsTabGroupElement;
|
|
1632
|
+
"ds-tab-group-nav": HTMLDsTabGroupNavElement;
|
|
1599
1633
|
"ds-table": HTMLDsTableElement;
|
|
1600
1634
|
"ds-tag": HTMLDsTagElement;
|
|
1601
1635
|
"ds-text": HTMLDsTextElement;
|
|
@@ -1879,11 +1913,31 @@ declare namespace LocalJSX {
|
|
|
1879
1913
|
"onDsChange"?: (event: DsCheckboxCustomEvent<boolean>) => void;
|
|
1880
1914
|
}
|
|
1881
1915
|
interface DsDivider {
|
|
1916
|
+
/**
|
|
1917
|
+
* Insets the divider from its start/end edges. Accepts spacing token names or any CSS length.
|
|
1918
|
+
* @default 'none'
|
|
1919
|
+
*/
|
|
1920
|
+
"inset"?: DividerInset;
|
|
1921
|
+
/**
|
|
1922
|
+
* Visual line length. Defaults to filling the available axis. Accepts any CSS length.
|
|
1923
|
+
* @default 'auto'
|
|
1924
|
+
*/
|
|
1925
|
+
"length"?: DividerLength;
|
|
1882
1926
|
/**
|
|
1883
1927
|
* Direction of the divider line. Defaults to 'horizontal'.
|
|
1884
1928
|
* @default 'horizontal'
|
|
1885
1929
|
*/
|
|
1886
1930
|
"orientation"?: DividerOrientation;
|
|
1931
|
+
/**
|
|
1932
|
+
* Expose the divider as a semantic separator. Visual-only dividers are hidden from assistive tech by default.
|
|
1933
|
+
* @default false
|
|
1934
|
+
*/
|
|
1935
|
+
"semantic"?: boolean;
|
|
1936
|
+
/**
|
|
1937
|
+
* Surface context so the divider uses the right TokoMo divider token.
|
|
1938
|
+
* @default 'default'
|
|
1939
|
+
*/
|
|
1940
|
+
"surface"?: DividerSurface;
|
|
1887
1941
|
}
|
|
1888
1942
|
interface DsEmptyState {
|
|
1889
1943
|
"message"?: string | undefined;
|
|
@@ -1976,23 +2030,6 @@ declare namespace LocalJSX {
|
|
|
1976
2030
|
*/
|
|
1977
2031
|
"value"?: string;
|
|
1978
2032
|
}
|
|
1979
|
-
/**
|
|
1980
|
-
* Internal utility wrapper that kills line-height struts and adds optical
|
|
1981
|
-
* horizontal padding. Used inside interactive components (Button, Tag, etc.)
|
|
1982
|
-
* Not intended as a standalone consumer-facing component — internal use only.
|
|
1983
|
-
*/
|
|
1984
|
-
interface DsLabelWrap {
|
|
1985
|
-
/**
|
|
1986
|
-
* Typography size — controls optical horizontal padding.
|
|
1987
|
-
* @default 'md'
|
|
1988
|
-
*/
|
|
1989
|
-
"size"?: LabelWrapSize;
|
|
1990
|
-
/**
|
|
1991
|
-
* Enable truncation with ellipsis — use inside full-width containers.
|
|
1992
|
-
* @default false
|
|
1993
|
-
*/
|
|
1994
|
-
"truncate"?: boolean;
|
|
1995
|
-
}
|
|
1996
2033
|
interface DsLoader {
|
|
1997
2034
|
/**
|
|
1998
2035
|
* Accessible label for standalone usage. Wraps the spinner in a live region and renders the label visually-hidden. Omit when the host element already conveys busy state via aria-busy.
|
|
@@ -2338,6 +2375,24 @@ declare namespace LocalJSX {
|
|
|
2338
2375
|
*/
|
|
2339
2376
|
"value"?: string;
|
|
2340
2377
|
}
|
|
2378
|
+
interface DsTabGroupNav {
|
|
2379
|
+
"ariaLabel"?: string | undefined;
|
|
2380
|
+
"ariaLabelledby"?: string | undefined;
|
|
2381
|
+
"background"?: TabGroupNavBackground | undefined;
|
|
2382
|
+
"onDsChange"?: (event: DsTabGroupNavCustomEvent<string>) => void;
|
|
2383
|
+
/**
|
|
2384
|
+
* @default 'horizontal'
|
|
2385
|
+
*/
|
|
2386
|
+
"orientation"?: 'horizontal' | 'vertical';
|
|
2387
|
+
/**
|
|
2388
|
+
* @default []
|
|
2389
|
+
*/
|
|
2390
|
+
"tabs"?: TabItem[];
|
|
2391
|
+
/**
|
|
2392
|
+
* @default ''
|
|
2393
|
+
*/
|
|
2394
|
+
"value"?: string;
|
|
2395
|
+
}
|
|
2341
2396
|
interface DsTable {
|
|
2342
2397
|
/**
|
|
2343
2398
|
* @default []
|
|
@@ -2435,6 +2490,10 @@ declare namespace LocalJSX {
|
|
|
2435
2490
|
"as"?: TextElement;
|
|
2436
2491
|
"color"?: TextColor | undefined;
|
|
2437
2492
|
"decoration"?: TextDecoration | undefined;
|
|
2493
|
+
/**
|
|
2494
|
+
* @default 'normal'
|
|
2495
|
+
*/
|
|
2496
|
+
"fontFeature"?: TextFontFeature;
|
|
2438
2497
|
/**
|
|
2439
2498
|
* Maps to `for` attribute on <label> elements.
|
|
2440
2499
|
*/
|
|
@@ -2656,6 +2715,10 @@ declare namespace LocalJSX {
|
|
|
2656
2715
|
}
|
|
2657
2716
|
interface DsDividerAttributes {
|
|
2658
2717
|
"orientation": DividerOrientation;
|
|
2718
|
+
"surface": DividerSurface;
|
|
2719
|
+
"inset": DividerInset;
|
|
2720
|
+
"length": DividerLength;
|
|
2721
|
+
"semantic": boolean;
|
|
2659
2722
|
}
|
|
2660
2723
|
interface DsEmptyStateAttributes {
|
|
2661
2724
|
"type": EmptyStateType;
|
|
@@ -2694,10 +2757,6 @@ declare namespace LocalJSX {
|
|
|
2694
2757
|
"ariaLabelledby": string | undefined;
|
|
2695
2758
|
"ariaDescribedby": string | undefined;
|
|
2696
2759
|
}
|
|
2697
|
-
interface DsLabelWrapAttributes {
|
|
2698
|
-
"size": LabelWrapSize;
|
|
2699
|
-
"truncate": boolean;
|
|
2700
|
-
}
|
|
2701
2760
|
interface DsLoaderAttributes {
|
|
2702
2761
|
"size": number;
|
|
2703
2762
|
"label": string | undefined;
|
|
@@ -2797,6 +2856,13 @@ declare namespace LocalJSX {
|
|
|
2797
2856
|
"ariaLabelledby": string | undefined;
|
|
2798
2857
|
"orientation": 'horizontal' | 'vertical';
|
|
2799
2858
|
}
|
|
2859
|
+
interface DsTabGroupNavAttributes {
|
|
2860
|
+
"value": string;
|
|
2861
|
+
"background": TabGroupNavBackground | undefined;
|
|
2862
|
+
"ariaLabel": string | undefined;
|
|
2863
|
+
"ariaLabelledby": string | undefined;
|
|
2864
|
+
"orientation": 'horizontal' | 'vertical';
|
|
2865
|
+
}
|
|
2800
2866
|
interface DsTableAttributes {
|
|
2801
2867
|
"loading": boolean;
|
|
2802
2868
|
"emptyMessage": string;
|
|
@@ -2826,6 +2892,7 @@ declare namespace LocalJSX {
|
|
|
2826
2892
|
"align": TextAlign | undefined;
|
|
2827
2893
|
"lineTruncation": string;
|
|
2828
2894
|
"wrap": TextWrap | undefined;
|
|
2895
|
+
"fontFeature": TextFontFeature;
|
|
2829
2896
|
"as": TextElement;
|
|
2830
2897
|
"for": string | undefined;
|
|
2831
2898
|
}
|
|
@@ -2883,7 +2950,6 @@ declare namespace LocalJSX {
|
|
|
2883
2950
|
"ds-header": Omit<DsHeader, keyof DsHeaderAttributes> & { [K in keyof DsHeader & keyof DsHeaderAttributes]?: DsHeader[K] } & { [K in keyof DsHeader & keyof DsHeaderAttributes as `attr:${K}`]?: DsHeaderAttributes[K] } & { [K in keyof DsHeader & keyof DsHeaderAttributes as `prop:${K}`]?: DsHeader[K] };
|
|
2884
2951
|
"ds-icon": Omit<DsIcon, keyof DsIconAttributes> & { [K in keyof DsIcon & keyof DsIconAttributes]?: DsIcon[K] } & { [K in keyof DsIcon & keyof DsIconAttributes as `attr:${K}`]?: DsIconAttributes[K] } & { [K in keyof DsIcon & keyof DsIconAttributes as `prop:${K}`]?: DsIcon[K] };
|
|
2885
2952
|
"ds-input": Omit<DsInput, keyof DsInputAttributes> & { [K in keyof DsInput & keyof DsInputAttributes]?: DsInput[K] } & { [K in keyof DsInput & keyof DsInputAttributes as `attr:${K}`]?: DsInputAttributes[K] } & { [K in keyof DsInput & keyof DsInputAttributes as `prop:${K}`]?: DsInput[K] };
|
|
2886
|
-
"ds-label-wrap": Omit<DsLabelWrap, keyof DsLabelWrapAttributes> & { [K in keyof DsLabelWrap & keyof DsLabelWrapAttributes]?: DsLabelWrap[K] } & { [K in keyof DsLabelWrap & keyof DsLabelWrapAttributes as `attr:${K}`]?: DsLabelWrapAttributes[K] } & { [K in keyof DsLabelWrap & keyof DsLabelWrapAttributes as `prop:${K}`]?: DsLabelWrap[K] };
|
|
2887
2953
|
"ds-loader": Omit<DsLoader, keyof DsLoaderAttributes> & { [K in keyof DsLoader & keyof DsLoaderAttributes]?: DsLoader[K] } & { [K in keyof DsLoader & keyof DsLoaderAttributes as `attr:${K}`]?: DsLoaderAttributes[K] } & { [K in keyof DsLoader & keyof DsLoaderAttributes as `prop:${K}`]?: DsLoader[K] };
|
|
2888
2954
|
"ds-menu": Omit<DsMenu, keyof DsMenuAttributes> & { [K in keyof DsMenu & keyof DsMenuAttributes]?: DsMenu[K] } & { [K in keyof DsMenu & keyof DsMenuAttributes as `attr:${K}`]?: DsMenuAttributes[K] } & { [K in keyof DsMenu & keyof DsMenuAttributes as `prop:${K}`]?: DsMenu[K] };
|
|
2889
2955
|
"ds-modal": Omit<DsModal, keyof DsModalAttributes> & { [K in keyof DsModal & keyof DsModalAttributes]?: DsModal[K] } & { [K in keyof DsModal & keyof DsModalAttributes as `attr:${K}`]?: DsModalAttributes[K] } & { [K in keyof DsModal & keyof DsModalAttributes as `prop:${K}`]?: DsModal[K] } & OneOf<"heading", DsModal["heading"], DsModalAttributes["heading"]>;
|
|
@@ -2897,6 +2963,7 @@ declare namespace LocalJSX {
|
|
|
2897
2963
|
"ds-slider": Omit<DsSlider, keyof DsSliderAttributes> & { [K in keyof DsSlider & keyof DsSliderAttributes]?: DsSlider[K] } & { [K in keyof DsSlider & keyof DsSliderAttributes as `attr:${K}`]?: DsSliderAttributes[K] } & { [K in keyof DsSlider & keyof DsSliderAttributes as `prop:${K}`]?: DsSlider[K] } & OneOf<"label", DsSlider["label"], DsSliderAttributes["label"]>;
|
|
2898
2964
|
"ds-surface": Omit<DsSurface, keyof DsSurfaceAttributes> & { [K in keyof DsSurface & keyof DsSurfaceAttributes]?: DsSurface[K] } & { [K in keyof DsSurface & keyof DsSurfaceAttributes as `attr:${K}`]?: DsSurfaceAttributes[K] } & { [K in keyof DsSurface & keyof DsSurfaceAttributes as `prop:${K}`]?: DsSurface[K] };
|
|
2899
2965
|
"ds-tab-group": Omit<DsTabGroup, keyof DsTabGroupAttributes> & { [K in keyof DsTabGroup & keyof DsTabGroupAttributes]?: DsTabGroup[K] } & { [K in keyof DsTabGroup & keyof DsTabGroupAttributes as `attr:${K}`]?: DsTabGroupAttributes[K] } & { [K in keyof DsTabGroup & keyof DsTabGroupAttributes as `prop:${K}`]?: DsTabGroup[K] };
|
|
2966
|
+
"ds-tab-group-nav": Omit<DsTabGroupNav, keyof DsTabGroupNavAttributes> & { [K in keyof DsTabGroupNav & keyof DsTabGroupNavAttributes]?: DsTabGroupNav[K] } & { [K in keyof DsTabGroupNav & keyof DsTabGroupNavAttributes as `attr:${K}`]?: DsTabGroupNavAttributes[K] } & { [K in keyof DsTabGroupNav & keyof DsTabGroupNavAttributes as `prop:${K}`]?: DsTabGroupNav[K] };
|
|
2900
2967
|
"ds-table": Omit<DsTable, keyof DsTableAttributes> & { [K in keyof DsTable & keyof DsTableAttributes]?: DsTable[K] } & { [K in keyof DsTable & keyof DsTableAttributes as `attr:${K}`]?: DsTableAttributes[K] } & { [K in keyof DsTable & keyof DsTableAttributes as `prop:${K}`]?: DsTable[K] };
|
|
2901
2968
|
"ds-tag": Omit<DsTag, keyof DsTagAttributes> & { [K in keyof DsTag & keyof DsTagAttributes]?: DsTag[K] } & { [K in keyof DsTag & keyof DsTagAttributes as `attr:${K}`]?: DsTagAttributes[K] } & { [K in keyof DsTag & keyof DsTagAttributes as `prop:${K}`]?: DsTag[K] } & OneOf<"label", DsTag["label"], DsTagAttributes["label"]>;
|
|
2902
2969
|
"ds-text": Omit<DsText, keyof DsTextAttributes> & { [K in keyof DsText & keyof DsTextAttributes]?: DsText[K] } & { [K in keyof DsText & keyof DsTextAttributes as `attr:${K}`]?: DsTextAttributes[K] } & { [K in keyof DsText & keyof DsTextAttributes as `prop:${K}`]?: DsText[K] };
|
|
@@ -2928,12 +2995,6 @@ declare module "@stencil/core" {
|
|
|
2928
2995
|
"ds-header": LocalJSX.IntrinsicElements["ds-header"] & JSXBase.HTMLAttributes<HTMLDsHeaderElement>;
|
|
2929
2996
|
"ds-icon": LocalJSX.IntrinsicElements["ds-icon"] & JSXBase.HTMLAttributes<HTMLDsIconElement>;
|
|
2930
2997
|
"ds-input": LocalJSX.IntrinsicElements["ds-input"] & JSXBase.HTMLAttributes<HTMLDsInputElement>;
|
|
2931
|
-
/**
|
|
2932
|
-
* Internal utility wrapper that kills line-height struts and adds optical
|
|
2933
|
-
* horizontal padding. Used inside interactive components (Button, Tag, etc.)
|
|
2934
|
-
* Not intended as a standalone consumer-facing component — internal use only.
|
|
2935
|
-
*/
|
|
2936
|
-
"ds-label-wrap": LocalJSX.IntrinsicElements["ds-label-wrap"] & JSXBase.HTMLAttributes<HTMLDsLabelWrapElement>;
|
|
2937
2998
|
"ds-loader": LocalJSX.IntrinsicElements["ds-loader"] & JSXBase.HTMLAttributes<HTMLDsLoaderElement>;
|
|
2938
2999
|
"ds-menu": LocalJSX.IntrinsicElements["ds-menu"] & JSXBase.HTMLAttributes<HTMLDsMenuElement>;
|
|
2939
3000
|
"ds-modal": LocalJSX.IntrinsicElements["ds-modal"] & JSXBase.HTMLAttributes<HTMLDsModalElement>;
|
|
@@ -2947,6 +3008,7 @@ declare module "@stencil/core" {
|
|
|
2947
3008
|
"ds-slider": LocalJSX.IntrinsicElements["ds-slider"] & JSXBase.HTMLAttributes<HTMLDsSliderElement>;
|
|
2948
3009
|
"ds-surface": LocalJSX.IntrinsicElements["ds-surface"] & JSXBase.HTMLAttributes<HTMLDsSurfaceElement>;
|
|
2949
3010
|
"ds-tab-group": LocalJSX.IntrinsicElements["ds-tab-group"] & JSXBase.HTMLAttributes<HTMLDsTabGroupElement>;
|
|
3011
|
+
"ds-tab-group-nav": LocalJSX.IntrinsicElements["ds-tab-group-nav"] & JSXBase.HTMLAttributes<HTMLDsTabGroupNavElement>;
|
|
2950
3012
|
"ds-table": LocalJSX.IntrinsicElements["ds-table"] & JSXBase.HTMLAttributes<HTMLDsTableElement>;
|
|
2951
3013
|
"ds-tag": LocalJSX.IntrinsicElements["ds-tag"] & JSXBase.HTMLAttributes<HTMLDsTagElement>;
|
|
2952
3014
|
"ds-text": LocalJSX.IntrinsicElements["ds-text"] & JSXBase.HTMLAttributes<HTMLDsTextElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-mo/ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "CompoMo — composable web components styled with TokoMo design tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -23,20 +23,35 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
25
|
"module": "./dist/index.js",
|
|
26
|
-
"types": "./
|
|
26
|
+
"types": "./src/wc/components.d.ts",
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"types": "./src/wc/components.d.ts",
|
|
30
|
+
"import": "./dist/components/index.js"
|
|
31
31
|
},
|
|
32
32
|
"./angular": {
|
|
33
|
+
"types": "./src/angular/index.ts",
|
|
33
34
|
"import": "./src/angular/index.ts"
|
|
34
35
|
},
|
|
36
|
+
"./react": {
|
|
37
|
+
"types": "./src/react/components.ts",
|
|
38
|
+
"import": "./src/react/components.ts"
|
|
39
|
+
},
|
|
40
|
+
"./dist/components": {
|
|
41
|
+
"types": "./src/wc/components.d.ts",
|
|
42
|
+
"import": "./dist/components/index.js"
|
|
43
|
+
},
|
|
35
44
|
"./dist/components/*": "./dist/components/*"
|
|
36
45
|
},
|
|
37
46
|
"files": [
|
|
38
47
|
"dist",
|
|
39
|
-
"src/
|
|
48
|
+
"src/wc/components.d.ts",
|
|
49
|
+
"src/wc/components/**/*.ts",
|
|
50
|
+
"src/wc/components/**/*.tsx",
|
|
51
|
+
"!src/wc/components/**/*.stories.ts",
|
|
52
|
+
"!src/wc/components/**/*.stories.tsx",
|
|
53
|
+
"src/angular",
|
|
54
|
+
"src/react"
|
|
40
55
|
],
|
|
41
56
|
"scripts": {
|
|
42
57
|
"prebuild": "node scripts/generate-icon-catalog.mjs",
|
|
@@ -58,24 +73,39 @@
|
|
|
58
73
|
},
|
|
59
74
|
"peerDependencies": {
|
|
60
75
|
"@ds-mo/icons": "^6.0.0",
|
|
61
|
-
"@ds-mo/tokens": ">=2.9.0"
|
|
76
|
+
"@ds-mo/tokens": ">=2.9.0",
|
|
77
|
+
"react": "^18 || ^19",
|
|
78
|
+
"react-dom": "^18 || ^19"
|
|
79
|
+
},
|
|
80
|
+
"peerDependenciesMeta": {
|
|
81
|
+
"react": {
|
|
82
|
+
"optional": true
|
|
83
|
+
},
|
|
84
|
+
"react-dom": {
|
|
85
|
+
"optional": true
|
|
86
|
+
}
|
|
62
87
|
},
|
|
63
88
|
"devDependencies": {
|
|
64
89
|
"@ds-mo/icons": "^6.0.0",
|
|
65
|
-
"@ds-mo/tokens": "^2.9.
|
|
90
|
+
"@ds-mo/tokens": "^2.9.1",
|
|
66
91
|
"@eslint/js": "^10.0.1",
|
|
67
92
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
68
93
|
"@playwright/test": "^1.55.0",
|
|
69
94
|
"@stencil/angular-output-target": "^1.3.1",
|
|
70
95
|
"@stencil/core": "^4.43.4",
|
|
96
|
+
"@stencil/react-output-target": "^1.5.3",
|
|
71
97
|
"@storybook/addon-docs": "^10.4.2",
|
|
72
98
|
"@storybook/web-components": "^10.4.2",
|
|
73
99
|
"@storybook/web-components-vite": "^10.4.2",
|
|
100
|
+
"@types/react": "^19.2.17",
|
|
101
|
+
"@types/react-dom": "^19.2.3",
|
|
74
102
|
"concurrently": "^10.0.3",
|
|
75
103
|
"eslint": "^10.4.1",
|
|
76
104
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
77
105
|
"globals": "^17.6.0",
|
|
78
106
|
"lit": "^3.3.3",
|
|
107
|
+
"react": "^19.2.7",
|
|
108
|
+
"react-dom": "^19.2.7",
|
|
79
109
|
"storybook": "^10.4.2",
|
|
80
110
|
"tsx": "^4.20.3",
|
|
81
111
|
"typescript": "~5.8.3",
|
package/src/angular/index.ts
CHANGED
|
@@ -19,7 +19,6 @@ export const DIRECTIVES = [
|
|
|
19
19
|
d.DsHeader,
|
|
20
20
|
d.DsIcon,
|
|
21
21
|
d.DsInput,
|
|
22
|
-
d.DsLabelWrap,
|
|
23
22
|
d.DsLoader,
|
|
24
23
|
d.DsMenu,
|
|
25
24
|
d.DsModal,
|
|
@@ -33,6 +32,7 @@ export const DIRECTIVES = [
|
|
|
33
32
|
d.DsSlider,
|
|
34
33
|
d.DsSurface,
|
|
35
34
|
d.DsTabGroup,
|
|
35
|
+
d.DsTabGroupNav,
|
|
36
36
|
d.DsTable,
|
|
37
37
|
d.DsTag,
|
|
38
38
|
d.DsText,
|
package/src/angular/proxies.ts
CHANGED
|
@@ -297,14 +297,14 @@ export declare interface DsCheckbox extends Components.DsCheckbox {
|
|
|
297
297
|
|
|
298
298
|
|
|
299
299
|
@ProxyCmp({
|
|
300
|
-
inputs: ['orientation']
|
|
300
|
+
inputs: ['inset', 'length', 'orientation', 'semantic', 'surface']
|
|
301
301
|
})
|
|
302
302
|
@Component({
|
|
303
303
|
selector: 'ds-divider',
|
|
304
304
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
305
305
|
template: '<ng-content></ng-content>',
|
|
306
306
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
307
|
-
inputs: ['orientation'],
|
|
307
|
+
inputs: ['inset', 'length', 'orientation', 'semantic', 'surface'],
|
|
308
308
|
standalone: false
|
|
309
309
|
})
|
|
310
310
|
export class DsDivider {
|
|
@@ -466,29 +466,6 @@ export declare interface DsInput extends Components.DsInput {
|
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
|
|
469
|
-
@ProxyCmp({
|
|
470
|
-
inputs: ['size', 'truncate']
|
|
471
|
-
})
|
|
472
|
-
@Component({
|
|
473
|
-
selector: 'ds-label-wrap',
|
|
474
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
475
|
-
template: '<ng-content></ng-content>',
|
|
476
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
477
|
-
inputs: ['size', 'truncate'],
|
|
478
|
-
standalone: false
|
|
479
|
-
})
|
|
480
|
-
export class DsLabelWrap {
|
|
481
|
-
protected el: HTMLDsLabelWrapElement;
|
|
482
|
-
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
483
|
-
c.detach();
|
|
484
|
-
this.el = r.nativeElement;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
export declare interface DsLabelWrap extends Components.DsLabelWrap {}
|
|
490
|
-
|
|
491
|
-
|
|
492
469
|
@ProxyCmp({
|
|
493
470
|
inputs: ['label', 'size']
|
|
494
471
|
})
|
|
@@ -862,6 +839,34 @@ export declare interface DsTabGroup extends Components.DsTabGroup {
|
|
|
862
839
|
}
|
|
863
840
|
|
|
864
841
|
|
|
842
|
+
@ProxyCmp({
|
|
843
|
+
inputs: ['ariaLabel', 'ariaLabelledby', 'background', 'orientation', 'tabs', 'value']
|
|
844
|
+
})
|
|
845
|
+
@Component({
|
|
846
|
+
selector: 'ds-tab-group-nav',
|
|
847
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
848
|
+
template: '<ng-content></ng-content>',
|
|
849
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
850
|
+
inputs: ['ariaLabel', 'ariaLabelledby', 'background', 'orientation', 'tabs', 'value'],
|
|
851
|
+
outputs: ['dsChange'],
|
|
852
|
+
standalone: false
|
|
853
|
+
})
|
|
854
|
+
export class DsTabGroupNav {
|
|
855
|
+
protected el: HTMLDsTabGroupNavElement;
|
|
856
|
+
@Output() dsChange = new EventEmitter<CustomEvent<string>>();
|
|
857
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
858
|
+
c.detach();
|
|
859
|
+
this.el = r.nativeElement;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
export declare interface DsTabGroupNav extends Components.DsTabGroupNav {
|
|
865
|
+
|
|
866
|
+
dsChange: EventEmitter<CustomEvent<string>>;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
|
|
865
870
|
@ProxyCmp({
|
|
866
871
|
inputs: ['columns', 'data', 'emptyMessage', 'loading', 'pageIndex', 'pageSize', 'selectedRows', 'sortState']
|
|
867
872
|
})
|
|
@@ -937,14 +942,14 @@ export declare interface DsTag extends Components.DsTag {
|
|
|
937
942
|
|
|
938
943
|
|
|
939
944
|
@ProxyCmp({
|
|
940
|
-
inputs: ['align', 'as', 'color', 'decoration', 'for', 'italic', 'lineTruncation', 'variant', 'wrap']
|
|
945
|
+
inputs: ['align', 'as', 'color', 'decoration', 'fontFeature', 'for', 'italic', 'lineTruncation', 'variant', 'wrap']
|
|
941
946
|
})
|
|
942
947
|
@Component({
|
|
943
948
|
selector: 'ds-text',
|
|
944
949
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
945
950
|
template: '<ng-content></ng-content>',
|
|
946
951
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
947
|
-
inputs: ['align', 'as', 'color', 'decoration', 'for', 'italic', 'lineTruncation', 'variant', 'wrap'],
|
|
952
|
+
inputs: ['align', 'as', 'color', 'decoration', 'fontFeature', 'for', 'italic', 'lineTruncation', 'variant', 'wrap'],
|
|
948
953
|
standalone: false
|
|
949
954
|
})
|
|
950
955
|
export class DsText {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
export { DsAccordion } from "./ds-accordion.js";
|
|
8
|
+
export { DsBadge } from "./ds-badge.js";
|
|
9
|
+
export { DsBanner } from "./ds-banner.js";
|
|
10
|
+
export { DsBarNavAction } from "./ds-bar-nav-action.js";
|
|
11
|
+
export { DsBarNav } from "./ds-bar-nav.js";
|
|
12
|
+
export { DsBreadcrumb } from "./ds-breadcrumb.js";
|
|
13
|
+
export { DsButtonGroup } from "./ds-button-group.js";
|
|
14
|
+
export { DsButton } from "./ds-button.js";
|
|
15
|
+
export { DsCard } from "./ds-card.js";
|
|
16
|
+
export { DsCheckbox } from "./ds-checkbox.js";
|
|
17
|
+
export { DsDivider } from "./ds-divider.js";
|
|
18
|
+
export { DsEmptyState } from "./ds-empty-state.js";
|
|
19
|
+
export { DsFade } from "./ds-fade.js";
|
|
20
|
+
export { DsField } from "./ds-field.js";
|
|
21
|
+
export { DsHeader } from "./ds-header.js";
|
|
22
|
+
export { DsIcon } from "./ds-icon.js";
|
|
23
|
+
export { DsInput } from "./ds-input.js";
|
|
24
|
+
export { DsLoader } from "./ds-loader.js";
|
|
25
|
+
export { DsMenu } from "./ds-menu.js";
|
|
26
|
+
export { DsModal } from "./ds-modal.js";
|
|
27
|
+
export { DsPagination } from "./ds-pagination.js";
|
|
28
|
+
export { DsPanelNav } from "./ds-panel-nav.js";
|
|
29
|
+
export { DsRadioGroup } from "./ds-radio-group.js";
|
|
30
|
+
export { DsScrollbar } from "./ds-scrollbar.js";
|
|
31
|
+
export { DsSelect } from "./ds-select.js";
|
|
32
|
+
export { DsSidebar } from "./ds-sidebar.js";
|
|
33
|
+
export { DsSkeleton } from "./ds-skeleton.js";
|
|
34
|
+
export { DsSlider } from "./ds-slider.js";
|
|
35
|
+
export { DsSurface } from "./ds-surface.js";
|
|
36
|
+
export { DsTabGroupNav } from "./ds-tab-group-nav.js";
|
|
37
|
+
export { DsTabGroup } from "./ds-tab-group.js";
|
|
38
|
+
export { DsTable } from "./ds-table.js";
|
|
39
|
+
export { DsTag } from "./ds-tag.js";
|
|
40
|
+
export { DsText } from "./ds-text.js";
|
|
41
|
+
export { DsToastProvider } from "./ds-toast-provider.js";
|
|
42
|
+
export { DsToggleButtonGroup } from "./ds-toggle-button-group.js";
|
|
43
|
+
export { DsToggleButton } from "./ds-toggle-button.js";
|
|
44
|
+
export { DsToggle } from "./ds-toggle.js";
|
|
45
|
+
export { DsTooltip } from "./ds-tooltip.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
5
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* eslint-disable */
|
|
9
|
+
|
|
10
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
11
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
|
|
14
|
+
import { type DsAccordionCustomEvent } from "@ds-mo/ui";
|
|
15
|
+
import type { Components } from "@ds-mo/ui/dist/components";
|
|
16
|
+
import { DsAccordion as DsAccordionElement, defineCustomElement as defineDsAccordion } from "@ds-mo/ui/dist/components/ds-accordion.js";
|
|
17
|
+
|
|
18
|
+
export type DsAccordionEvents = { onDsExpandedChange: EventName<DsAccordionCustomEvent<string[]>> };
|
|
19
|
+
|
|
20
|
+
export const DsAccordion: StencilReactComponent<DsAccordionElement, DsAccordionEvents, Components.DsAccordion> = /*@__PURE__*/ createComponent<DsAccordionElement, DsAccordionEvents, Components.DsAccordion>({
|
|
21
|
+
tagName: 'ds-accordion',
|
|
22
|
+
elementClass: DsAccordionElement,
|
|
23
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
24
|
+
react: React,
|
|
25
|
+
events: { onDsExpandedChange: 'dsExpandedChange' } as DsAccordionEvents,
|
|
26
|
+
defineCustomElement: defineDsAccordion
|
|
27
|
+
});
|