@ds-mo/ui 2.8.0 → 2.9.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 +8 -9
- package/dist/.build-stamp +1 -1
- package/dist/components/ds-app-shell.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/{ds-toggle-button.d.ts → ds-button-filled.d.ts} +4 -4
- package/dist/components/ds-button-filled.js +2 -0
- package/dist/components/ds-button-unfilled-icon.js +1 -1
- package/dist/components/{ds-button-group.d.ts → ds-card-setting.d.ts} +4 -4
- package/dist/components/ds-card-setting.js +2 -0
- package/dist/components/ds-card-setting.js.map +1 -0
- package/dist/components/ds-card.js +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-divider.js +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-field.js.map +1 -1
- package/dist/components/ds-header.js +1 -1
- package/dist/components/ds-icon.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-loader.js +1 -1
- package/dist/components/ds-loader.js.map +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-panel-tools.js.map +1 -1
- package/dist/components/ds-radio-group.js +1 -1
- package/dist/components/ds-scrollbar.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-shell-gradient-picker.js +1 -1
- package/dist/components/ds-shell-gradient-swatch.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-surface.js +1 -1
- package/dist/components/ds-tab-group-nav.js +1 -1
- package/dist/components/ds-tab-group.js +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.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/ds-tooltip.js.map +1 -1
- package/dist/components/{p-D4zKc1RW.js → p-BA6a6P0b.js} +2 -2
- package/dist/components/{p-DvBrQuie.js → p-CDNVPM2x.js} +2 -2
- package/dist/components/{p-DqBCQRRd.js → p-CF4avTQw.js} +2 -2
- package/dist/components/{p-C9za7IDu.js → p-CJubWt1F.js} +2 -2
- package/dist/components/{p-DDEAcGac.js → p-CKCBqwIw.js} +2 -2
- package/dist/components/{p-DDEAcGac.js.map → p-CKCBqwIw.js.map} +1 -1
- package/dist/components/p-C_hgdYcC.js +2 -0
- package/dist/components/p-C_hgdYcC.js.map +1 -0
- package/dist/components/p-Cv5NDZug.js +2 -0
- package/dist/components/p-Cv5NDZug.js.map +1 -0
- package/dist/components/{p-B3ua1NkM.js → p-DnGr8qtq.js} +2 -2
- package/dist/components/p-jjfqrXnP.js +2 -0
- package/dist/components/p-jjfqrXnP.js.map +1 -0
- package/dist/types/components/ButtonFilled/ButtonFilled.d.ts +26 -0
- package/dist/types/components/ButtonFilled/index.d.ts +2 -0
- package/dist/types/components/ButtonUnfilledIcon/ButtonUnfilledIcon.d.ts +9 -2
- package/dist/types/components/ButtonUnfilledIcon/index.d.ts +1 -1
- package/dist/types/components/CardSetting/CardSetting.d.ts +16 -0
- package/dist/types/components/CardSetting/index.d.ts +2 -0
- package/dist/types/components.d.ts +127 -412
- package/package.json +1 -1
- package/src/angular/index.ts +2 -4
- package/src/angular/proxies.ts +40 -105
- package/src/react/components.ts +2 -4
- package/src/react/ds-button-filled.ts +27 -0
- package/src/react/ds-card-setting.ts +27 -0
- package/src/wc/components/ButtonFilled/ButtonFilled.tsx +86 -0
- package/src/wc/components/ButtonFilled/index.ts +1 -0
- package/src/wc/components/ButtonUnfilledIcon/ButtonUnfilledIcon.tsx +19 -11
- package/src/wc/components/ButtonUnfilledIcon/index.ts +1 -1
- package/src/wc/components/CardSetting/CardSetting.tsx +96 -0
- package/src/wc/components/CardSetting/index.ts +1 -0
- package/src/wc/components.d.ts +127 -412
- package/dist/components/ds-button-group.js +0 -2
- package/dist/components/ds-button-group.js.map +0 -1
- package/dist/components/ds-button.d.ts +0 -11
- package/dist/components/ds-button.js +0 -2
- package/dist/components/ds-toggle-button-group.d.ts +0 -11
- package/dist/components/ds-toggle-button-group.js +0 -2
- package/dist/components/ds-toggle-button-group.js.map +0 -1
- package/dist/components/ds-toggle-button.js +0 -2
- package/dist/components/ds-toggle-button.js.map +0 -1
- package/dist/components/p-BPMJx63I.js +0 -2
- package/dist/components/p-BPMJx63I.js.map +0 -1
- package/dist/components/p-BTndnbR_.js +0 -2
- package/dist/components/p-BTndnbR_.js.map +0 -1
- package/dist/components/p-C0CUGiLm.js +0 -2
- package/dist/components/p-C0CUGiLm.js.map +0 -1
- package/dist/components/p-DUDppafq.js +0 -2
- package/dist/components/p-DUDppafq.js.map +0 -1
- package/dist/components/p-DgDSRPSP.js +0 -2
- package/dist/components/p-DgDSRPSP.js.map +0 -1
- package/dist/types/components/Button/Button.d.ts +0 -38
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +0 -29
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +0 -37
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -33
- package/src/react/ds-button-group.ts +0 -27
- package/src/react/ds-button.ts +0 -35
- package/src/react/ds-toggle-button-group.ts +0 -27
- package/src/react/ds-toggle-button.ts +0 -27
- package/src/wc/components/Button/Button.tsx +0 -158
- package/src/wc/components/Button/index.ts +0 -1
- package/src/wc/components/ButtonGroup/ButtonGroup.tsx +0 -110
- package/src/wc/components/ToggleButton/ToggleButton.tsx +0 -124
- package/src/wc/components/ToggleButtonGroup/ToggleButtonGroup.tsx +0 -118
- /package/dist/components/{ds-button.js.map → ds-button-filled.js.map} +0 -0
- /package/dist/components/{p-D4zKc1RW.js.map → p-BA6a6P0b.js.map} +0 -0
- /package/dist/components/{p-DvBrQuie.js.map → p-CDNVPM2x.js.map} +0 -0
- /package/dist/components/{p-DqBCQRRd.js.map → p-CF4avTQw.js.map} +0 -0
- /package/dist/components/{p-C9za7IDu.js.map → p-CJubWt1F.js.map} +0 -0
- /package/dist/components/{p-B3ua1NkM.js.map → p-DnGr8qtq.js.map} +0 -0
|
@@ -12,10 +12,10 @@ import { BadgeSurface, BadgeVariant } from "./components/Badge/Badge";
|
|
|
12
12
|
import { BannerContrast, BannerIntent } from "./components/Banner/Banner";
|
|
13
13
|
import { BarNavTab } from "./components/BarNav/bar-nav-types";
|
|
14
14
|
import { BreadcrumbItem } from "./components/Breadcrumb/Breadcrumb";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { ButtonUnfilledIconBackground } from "./components/ButtonUnfilledIcon/ButtonUnfilledIcon";
|
|
15
|
+
import { ButtonFilledContrast, ButtonFilledIntent } from "./components/ButtonFilled/ButtonFilled";
|
|
16
|
+
import { ButtonUnfilledIconBackground, ButtonUnfilledIconOnBackgroundContrast } from "./components/ButtonUnfilledIcon/ButtonUnfilledIcon";
|
|
18
17
|
import { CardElevation, CardRadius } from "./components/Card/Card";
|
|
18
|
+
import { CardSettingWidth } from "./components/CardSetting/CardSetting";
|
|
19
19
|
import { ChipBackground, ChipContrast, ChipElevation, ChipIntent, ChipSize } from "./components/Chip/Chip";
|
|
20
20
|
import { DividerInset, DividerLength, DividerOrientation, DividerSurface } from "./components/Divider/Divider";
|
|
21
21
|
import { EmptyStateType } from "./components/EmptyState/EmptyState";
|
|
@@ -42,8 +42,6 @@ import { SortState, TableColumn } from "./components/Table/Table";
|
|
|
42
42
|
import { TagContrast, TagElevation, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
43
43
|
import { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextFontFeature, TextVariant, TextWrap } from "./components/Text/Text";
|
|
44
44
|
import { ToastPosition } from "./components/Toast/Toast";
|
|
45
|
-
import { ToggleButtonBackground, ToggleButtonElevation, ToggleButtonSize } from "./components/ToggleButton/ToggleButton";
|
|
46
|
-
import { ToggleGroupBackground, ToggleGroupElevation, ToggleGroupItem, ToggleGroupSize } from "./components/ToggleButtonGroup/ToggleButtonGroup";
|
|
47
45
|
import { TooltipAlign, TooltipSide } from "./components/Tooltip/Tooltip";
|
|
48
46
|
export { AccordionItemData } from "./components/Accordion/Accordion";
|
|
49
47
|
export { NavChromeStyle } from "./nav/nav-chrome";
|
|
@@ -52,10 +50,10 @@ export { BadgeSurface, BadgeVariant } from "./components/Badge/Badge";
|
|
|
52
50
|
export { BannerContrast, BannerIntent } from "./components/Banner/Banner";
|
|
53
51
|
export { BarNavTab } from "./components/BarNav/bar-nav-types";
|
|
54
52
|
export { BreadcrumbItem } from "./components/Breadcrumb/Breadcrumb";
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export { ButtonUnfilledIconBackground } from "./components/ButtonUnfilledIcon/ButtonUnfilledIcon";
|
|
53
|
+
export { ButtonFilledContrast, ButtonFilledIntent } from "./components/ButtonFilled/ButtonFilled";
|
|
54
|
+
export { ButtonUnfilledIconBackground, ButtonUnfilledIconOnBackgroundContrast } from "./components/ButtonUnfilledIcon/ButtonUnfilledIcon";
|
|
58
55
|
export { CardElevation, CardRadius } from "./components/Card/Card";
|
|
56
|
+
export { CardSettingWidth } from "./components/CardSetting/CardSetting";
|
|
59
57
|
export { ChipBackground, ChipContrast, ChipElevation, ChipIntent, ChipSize } from "./components/Chip/Chip";
|
|
60
58
|
export { DividerInset, DividerLength, DividerOrientation, DividerSurface } from "./components/Divider/Divider";
|
|
61
59
|
export { EmptyStateType } from "./components/EmptyState/EmptyState";
|
|
@@ -82,8 +80,6 @@ export { SortState, TableColumn } from "./components/Table/Table";
|
|
|
82
80
|
export { TagContrast, TagElevation, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
83
81
|
export { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextFontFeature, TextVariant, TextWrap } from "./components/Text/Text";
|
|
84
82
|
export { ToastPosition } from "./components/Toast/Toast";
|
|
85
|
-
export { ToggleButtonBackground, ToggleButtonElevation, ToggleButtonSize } from "./components/ToggleButton/ToggleButton";
|
|
86
|
-
export { ToggleGroupBackground, ToggleGroupElevation, ToggleGroupItem, ToggleGroupSize } from "./components/ToggleButtonGroup/ToggleButtonGroup";
|
|
87
83
|
export { TooltipAlign, TooltipSide } from "./components/Tooltip/Tooltip";
|
|
88
84
|
export namespace Components {
|
|
89
85
|
interface DsAccordion {
|
|
@@ -246,79 +242,37 @@ export namespace Components {
|
|
|
246
242
|
*/
|
|
247
243
|
"separator": string;
|
|
248
244
|
}
|
|
249
|
-
interface
|
|
250
|
-
"ariaLabel": string | undefined;
|
|
251
|
-
"ariaLabelledby": string | undefined;
|
|
252
|
-
"background": ButtonBackground | undefined;
|
|
253
|
-
"badgeCount": number | undefined;
|
|
245
|
+
interface DsButtonFilled {
|
|
254
246
|
/**
|
|
255
|
-
* @default '
|
|
247
|
+
* @default 'action'
|
|
256
248
|
*/
|
|
257
|
-
"
|
|
249
|
+
"ariaLabel": string;
|
|
258
250
|
/**
|
|
259
|
-
*
|
|
251
|
+
* Background fill weight. Foreground uses the paired contrast token: bold → faint, strong → medium, medium → strong, faint → bold.
|
|
252
|
+
* @default 'bold'
|
|
260
253
|
*/
|
|
261
|
-
"
|
|
262
|
-
"elevation": ButtonElevation | undefined;
|
|
254
|
+
"contrast": ButtonFilledContrast;
|
|
263
255
|
/**
|
|
264
|
-
*
|
|
256
|
+
* Icon name passed to <ds-icon>.
|
|
257
|
+
* @default ''
|
|
265
258
|
*/
|
|
266
|
-
"
|
|
267
|
-
"href": string | undefined;
|
|
259
|
+
"icon": string;
|
|
268
260
|
/**
|
|
261
|
+
* Disables interaction.
|
|
269
262
|
* @default false
|
|
270
263
|
*/
|
|
271
264
|
"inactive": boolean;
|
|
272
265
|
/**
|
|
266
|
+
* Semantic colour intent.
|
|
273
267
|
* @default 'brand'
|
|
274
268
|
*/
|
|
275
|
-
"intent":
|
|
276
|
-
"
|
|
277
|
-
/**
|
|
278
|
-
* @default false
|
|
279
|
-
*/
|
|
280
|
-
"loading": boolean;
|
|
281
|
-
/**
|
|
282
|
-
* @default false
|
|
283
|
-
*/
|
|
284
|
-
"rounded": boolean;
|
|
285
|
-
/**
|
|
286
|
-
* @default 'md'
|
|
287
|
-
*/
|
|
288
|
-
"size": ButtonSize;
|
|
289
|
-
"target": string | undefined;
|
|
269
|
+
"intent": ButtonFilledIntent;
|
|
270
|
+
"setFocus": () => Promise<void>;
|
|
290
271
|
/**
|
|
272
|
+
* Native button type.
|
|
291
273
|
* @default 'button'
|
|
292
274
|
*/
|
|
293
275
|
"type": 'button' | 'submit' | 'reset';
|
|
294
|
-
/**
|
|
295
|
-
* @default 'primary'
|
|
296
|
-
*/
|
|
297
|
-
"variant": ButtonVariant;
|
|
298
|
-
"width": string | undefined;
|
|
299
|
-
}
|
|
300
|
-
interface DsButtonGroup {
|
|
301
|
-
/**
|
|
302
|
-
* Chrome level for the group container.
|
|
303
|
-
* @default 'flat'
|
|
304
|
-
*/
|
|
305
|
-
"elevation": ButtonGroupElevation;
|
|
306
|
-
/**
|
|
307
|
-
* Array of button descriptors. Set via JS property.
|
|
308
|
-
* @example el.items = [{ label: 'Filter', icon: 'Filter' }, { label: 'Sort' }];
|
|
309
|
-
* @default []
|
|
310
|
-
*/
|
|
311
|
-
"items": ButtonGroupItem[];
|
|
312
|
-
/**
|
|
313
|
-
* Pill shape for group + buttons.
|
|
314
|
-
* @default false
|
|
315
|
-
*/
|
|
316
|
-
"rounded": boolean;
|
|
317
|
-
/**
|
|
318
|
-
* Size passed to each ds-button.
|
|
319
|
-
* @default 'md'
|
|
320
|
-
*/
|
|
321
|
-
"size": ButtonGroupSize;
|
|
322
276
|
}
|
|
323
277
|
interface DsButtonUnfilledIcon {
|
|
324
278
|
/**
|
|
@@ -331,9 +285,13 @@ export namespace Components {
|
|
|
331
285
|
*/
|
|
332
286
|
"ariaLabel": string;
|
|
333
287
|
/**
|
|
334
|
-
* Parent surface context
|
|
288
|
+
* Parent surface context for navigation and always-dark chrome.
|
|
335
289
|
*/
|
|
336
290
|
"background": ButtonUnfilledIconBackground | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* Foreground and interaction tokens when the button sits on a contrasting parent background (default, medium, bold, or strong).
|
|
293
|
+
*/
|
|
294
|
+
"backgroundContrast"?: ButtonUnfilledIconOnBackgroundContrast;
|
|
337
295
|
"controls": string | undefined;
|
|
338
296
|
/**
|
|
339
297
|
* Show a notification dot at the top-right of the icon zone.
|
|
@@ -384,6 +342,22 @@ export namespace Components {
|
|
|
384
342
|
*/
|
|
385
343
|
"radius": CardRadius;
|
|
386
344
|
}
|
|
345
|
+
interface DsCardSetting {
|
|
346
|
+
/**
|
|
347
|
+
* Card width token.
|
|
348
|
+
* @default 'md'
|
|
349
|
+
*/
|
|
350
|
+
"cardWidth": CardSettingWidth;
|
|
351
|
+
/**
|
|
352
|
+
* Controlled edit state — parent owns single-edit orchestration.
|
|
353
|
+
* @default false
|
|
354
|
+
*/
|
|
355
|
+
"editing": boolean;
|
|
356
|
+
/**
|
|
357
|
+
* Section heading shown in the card header.
|
|
358
|
+
*/
|
|
359
|
+
"heading": string;
|
|
360
|
+
}
|
|
387
361
|
interface DsCheckbox {
|
|
388
362
|
/**
|
|
389
363
|
* @default false
|
|
@@ -1067,79 +1041,6 @@ export namespace Components {
|
|
|
1067
1041
|
*/
|
|
1068
1042
|
"inactive": boolean;
|
|
1069
1043
|
}
|
|
1070
|
-
interface DsToggleButton {
|
|
1071
|
-
"ariaLabel": string | undefined;
|
|
1072
|
-
/**
|
|
1073
|
-
* Parent surface context — adjusts hover tokens for colored backgrounds.
|
|
1074
|
-
*/
|
|
1075
|
-
"background": ToggleButtonBackground | undefined;
|
|
1076
|
-
/**
|
|
1077
|
-
* Chrome level. none — ghost (transparent, no border, no shadow) flat — border only, transparent bg elevated — bg-primary + shadow [default] floating — bg-primary + FAB-strength shadow
|
|
1078
|
-
* @default 'elevated'
|
|
1079
|
-
*/
|
|
1080
|
-
"elevation": ToggleButtonElevation;
|
|
1081
|
-
/**
|
|
1082
|
-
* Icon name for <ds-icon>. Set via JS property.
|
|
1083
|
-
* @example el.icon = 'GridView';
|
|
1084
|
-
*/
|
|
1085
|
-
"icon": string | undefined;
|
|
1086
|
-
/**
|
|
1087
|
-
* Disables interaction.
|
|
1088
|
-
* @default false
|
|
1089
|
-
*/
|
|
1090
|
-
"inactive": boolean;
|
|
1091
|
-
/**
|
|
1092
|
-
* Label text.
|
|
1093
|
-
*/
|
|
1094
|
-
"label": string | undefined;
|
|
1095
|
-
/**
|
|
1096
|
-
* Controlled pressed state.
|
|
1097
|
-
* @default false
|
|
1098
|
-
*/
|
|
1099
|
-
"pressed": boolean;
|
|
1100
|
-
/**
|
|
1101
|
-
* Pill shape.
|
|
1102
|
-
* @default false
|
|
1103
|
-
*/
|
|
1104
|
-
"rounded": boolean;
|
|
1105
|
-
/**
|
|
1106
|
-
* Size: md (32px), sm (24px), xs (16px).
|
|
1107
|
-
* @default 'md'
|
|
1108
|
-
*/
|
|
1109
|
-
"size": ToggleButtonSize;
|
|
1110
|
-
}
|
|
1111
|
-
interface DsToggleButtonGroup {
|
|
1112
|
-
/**
|
|
1113
|
-
* Parent surface context.
|
|
1114
|
-
*/
|
|
1115
|
-
"background": ToggleGroupBackground | undefined;
|
|
1116
|
-
/**
|
|
1117
|
-
* Chrome level for the group container.
|
|
1118
|
-
* @default 'elevated'
|
|
1119
|
-
*/
|
|
1120
|
-
"elevation": ToggleGroupElevation;
|
|
1121
|
-
/**
|
|
1122
|
-
* Array of item descriptors. Set via JS property.
|
|
1123
|
-
* @example el.items = [{ id: 'list', label: 'List' }, { id: 'grid', icon: 'GridView' }];
|
|
1124
|
-
* @default []
|
|
1125
|
-
*/
|
|
1126
|
-
"items": ToggleGroupItem[];
|
|
1127
|
-
/**
|
|
1128
|
-
* Pill shape for group + buttons.
|
|
1129
|
-
* @default false
|
|
1130
|
-
*/
|
|
1131
|
-
"rounded": boolean;
|
|
1132
|
-
/**
|
|
1133
|
-
* Size passed to each ds-toggle-button.
|
|
1134
|
-
* @default 'md'
|
|
1135
|
-
*/
|
|
1136
|
-
"size": ToggleGroupSize;
|
|
1137
|
-
/**
|
|
1138
|
-
* ID of the currently selected / pressed item.
|
|
1139
|
-
* @default ''
|
|
1140
|
-
*/
|
|
1141
|
-
"value": string;
|
|
1142
|
-
}
|
|
1143
1044
|
interface DsTooltip {
|
|
1144
1045
|
/**
|
|
1145
1046
|
* @default 'center'
|
|
@@ -1188,18 +1089,18 @@ export interface DsBreadcrumbCustomEvent<T> extends CustomEvent<T> {
|
|
|
1188
1089
|
detail: T;
|
|
1189
1090
|
target: HTMLDsBreadcrumbElement;
|
|
1190
1091
|
}
|
|
1191
|
-
export interface
|
|
1192
|
-
detail: T;
|
|
1193
|
-
target: HTMLDsButtonElement;
|
|
1194
|
-
}
|
|
1195
|
-
export interface DsButtonGroupCustomEvent<T> extends CustomEvent<T> {
|
|
1092
|
+
export interface DsButtonFilledCustomEvent<T> extends CustomEvent<T> {
|
|
1196
1093
|
detail: T;
|
|
1197
|
-
target:
|
|
1094
|
+
target: HTMLDsButtonFilledElement;
|
|
1198
1095
|
}
|
|
1199
1096
|
export interface DsButtonUnfilledIconCustomEvent<T> extends CustomEvent<T> {
|
|
1200
1097
|
detail: T;
|
|
1201
1098
|
target: HTMLDsButtonUnfilledIconElement;
|
|
1202
1099
|
}
|
|
1100
|
+
export interface DsCardSettingCustomEvent<T> extends CustomEvent<T> {
|
|
1101
|
+
detail: T;
|
|
1102
|
+
target: HTMLDsCardSettingElement;
|
|
1103
|
+
}
|
|
1203
1104
|
export interface DsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1204
1105
|
detail: T;
|
|
1205
1106
|
target: HTMLDsCheckboxElement;
|
|
@@ -1268,14 +1169,6 @@ export interface DsToggleCustomEvent<T> extends CustomEvent<T> {
|
|
|
1268
1169
|
detail: T;
|
|
1269
1170
|
target: HTMLDsToggleElement;
|
|
1270
1171
|
}
|
|
1271
|
-
export interface DsToggleButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1272
|
-
detail: T;
|
|
1273
|
-
target: HTMLDsToggleButtonElement;
|
|
1274
|
-
}
|
|
1275
|
-
export interface DsToggleButtonGroupCustomEvent<T> extends CustomEvent<T> {
|
|
1276
|
-
detail: T;
|
|
1277
|
-
target: HTMLDsToggleButtonGroupElement;
|
|
1278
|
-
}
|
|
1279
1172
|
declare global {
|
|
1280
1173
|
interface HTMLDsAccordionElementEventMap {
|
|
1281
1174
|
"dsExpandedChange": string[];
|
|
@@ -1357,41 +1250,22 @@ declare global {
|
|
|
1357
1250
|
prototype: HTMLDsBreadcrumbElement;
|
|
1358
1251
|
new (): HTMLDsBreadcrumbElement;
|
|
1359
1252
|
};
|
|
1360
|
-
interface
|
|
1253
|
+
interface HTMLDsButtonFilledElementEventMap {
|
|
1361
1254
|
"dsClick": MouseEvent;
|
|
1362
|
-
"dsMouseEnter": MouseEvent;
|
|
1363
|
-
"dsMouseLeave": MouseEvent;
|
|
1364
1255
|
}
|
|
1365
|
-
interface
|
|
1366
|
-
addEventListener<K extends keyof
|
|
1256
|
+
interface HTMLDsButtonFilledElement extends Components.DsButtonFilled, HTMLStencilElement {
|
|
1257
|
+
addEventListener<K extends keyof HTMLDsButtonFilledElementEventMap>(type: K, listener: (this: HTMLDsButtonFilledElement, ev: DsButtonFilledCustomEvent<HTMLDsButtonFilledElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1367
1258
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1368
1259
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1369
1260
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1370
|
-
removeEventListener<K extends keyof
|
|
1261
|
+
removeEventListener<K extends keyof HTMLDsButtonFilledElementEventMap>(type: K, listener: (this: HTMLDsButtonFilledElement, ev: DsButtonFilledCustomEvent<HTMLDsButtonFilledElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1371
1262
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1372
1263
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1373
1264
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1374
1265
|
}
|
|
1375
|
-
var
|
|
1376
|
-
prototype:
|
|
1377
|
-
new ():
|
|
1378
|
-
};
|
|
1379
|
-
interface HTMLDsButtonGroupElementEventMap {
|
|
1380
|
-
"dsClick": number;
|
|
1381
|
-
}
|
|
1382
|
-
interface HTMLDsButtonGroupElement extends Components.DsButtonGroup, HTMLStencilElement {
|
|
1383
|
-
addEventListener<K extends keyof HTMLDsButtonGroupElementEventMap>(type: K, listener: (this: HTMLDsButtonGroupElement, ev: DsButtonGroupCustomEvent<HTMLDsButtonGroupElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1384
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1385
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1386
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1387
|
-
removeEventListener<K extends keyof HTMLDsButtonGroupElementEventMap>(type: K, listener: (this: HTMLDsButtonGroupElement, ev: DsButtonGroupCustomEvent<HTMLDsButtonGroupElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1388
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1389
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1390
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1391
|
-
}
|
|
1392
|
-
var HTMLDsButtonGroupElement: {
|
|
1393
|
-
prototype: HTMLDsButtonGroupElement;
|
|
1394
|
-
new (): HTMLDsButtonGroupElement;
|
|
1266
|
+
var HTMLDsButtonFilledElement: {
|
|
1267
|
+
prototype: HTMLDsButtonFilledElement;
|
|
1268
|
+
new (): HTMLDsButtonFilledElement;
|
|
1395
1269
|
};
|
|
1396
1270
|
interface HTMLDsButtonUnfilledIconElementEventMap {
|
|
1397
1271
|
"dsClick": MouseEvent;
|
|
@@ -1417,6 +1291,23 @@ declare global {
|
|
|
1417
1291
|
prototype: HTMLDsCardElement;
|
|
1418
1292
|
new (): HTMLDsCardElement;
|
|
1419
1293
|
};
|
|
1294
|
+
interface HTMLDsCardSettingElementEventMap {
|
|
1295
|
+
"dsEditingChange": boolean;
|
|
1296
|
+
}
|
|
1297
|
+
interface HTMLDsCardSettingElement extends Components.DsCardSetting, HTMLStencilElement {
|
|
1298
|
+
addEventListener<K extends keyof HTMLDsCardSettingElementEventMap>(type: K, listener: (this: HTMLDsCardSettingElement, ev: DsCardSettingCustomEvent<HTMLDsCardSettingElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1299
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1300
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1301
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1302
|
+
removeEventListener<K extends keyof HTMLDsCardSettingElementEventMap>(type: K, listener: (this: HTMLDsCardSettingElement, ev: DsCardSettingCustomEvent<HTMLDsCardSettingElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1303
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1304
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1305
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1306
|
+
}
|
|
1307
|
+
var HTMLDsCardSettingElement: {
|
|
1308
|
+
prototype: HTMLDsCardSettingElement;
|
|
1309
|
+
new (): HTMLDsCardSettingElement;
|
|
1310
|
+
};
|
|
1420
1311
|
interface HTMLDsCheckboxElementEventMap {
|
|
1421
1312
|
"dsChange": boolean;
|
|
1422
1313
|
}
|
|
@@ -1802,40 +1693,6 @@ declare global {
|
|
|
1802
1693
|
prototype: HTMLDsToggleElement;
|
|
1803
1694
|
new (): HTMLDsToggleElement;
|
|
1804
1695
|
};
|
|
1805
|
-
interface HTMLDsToggleButtonElementEventMap {
|
|
1806
|
-
"dsChange": boolean;
|
|
1807
|
-
}
|
|
1808
|
-
interface HTMLDsToggleButtonElement extends Components.DsToggleButton, HTMLStencilElement {
|
|
1809
|
-
addEventListener<K extends keyof HTMLDsToggleButtonElementEventMap>(type: K, listener: (this: HTMLDsToggleButtonElement, ev: DsToggleButtonCustomEvent<HTMLDsToggleButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1810
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1811
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1812
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1813
|
-
removeEventListener<K extends keyof HTMLDsToggleButtonElementEventMap>(type: K, listener: (this: HTMLDsToggleButtonElement, ev: DsToggleButtonCustomEvent<HTMLDsToggleButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1814
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1815
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1816
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1817
|
-
}
|
|
1818
|
-
var HTMLDsToggleButtonElement: {
|
|
1819
|
-
prototype: HTMLDsToggleButtonElement;
|
|
1820
|
-
new (): HTMLDsToggleButtonElement;
|
|
1821
|
-
};
|
|
1822
|
-
interface HTMLDsToggleButtonGroupElementEventMap {
|
|
1823
|
-
"dsChange": string;
|
|
1824
|
-
}
|
|
1825
|
-
interface HTMLDsToggleButtonGroupElement extends Components.DsToggleButtonGroup, HTMLStencilElement {
|
|
1826
|
-
addEventListener<K extends keyof HTMLDsToggleButtonGroupElementEventMap>(type: K, listener: (this: HTMLDsToggleButtonGroupElement, ev: DsToggleButtonGroupCustomEvent<HTMLDsToggleButtonGroupElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1827
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1828
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1829
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1830
|
-
removeEventListener<K extends keyof HTMLDsToggleButtonGroupElementEventMap>(type: K, listener: (this: HTMLDsToggleButtonGroupElement, ev: DsToggleButtonGroupCustomEvent<HTMLDsToggleButtonGroupElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1831
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1832
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1833
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1834
|
-
}
|
|
1835
|
-
var HTMLDsToggleButtonGroupElement: {
|
|
1836
|
-
prototype: HTMLDsToggleButtonGroupElement;
|
|
1837
|
-
new (): HTMLDsToggleButtonGroupElement;
|
|
1838
|
-
};
|
|
1839
1696
|
interface HTMLDsTooltipElement extends Components.DsTooltip, HTMLStencilElement {
|
|
1840
1697
|
}
|
|
1841
1698
|
var HTMLDsTooltipElement: {
|
|
@@ -1849,10 +1706,10 @@ declare global {
|
|
|
1849
1706
|
"ds-banner": HTMLDsBannerElement;
|
|
1850
1707
|
"ds-bar-nav": HTMLDsBarNavElement;
|
|
1851
1708
|
"ds-breadcrumb": HTMLDsBreadcrumbElement;
|
|
1852
|
-
"ds-button":
|
|
1853
|
-
"ds-button-group": HTMLDsButtonGroupElement;
|
|
1709
|
+
"ds-button-filled": HTMLDsButtonFilledElement;
|
|
1854
1710
|
"ds-button-unfilled-icon": HTMLDsButtonUnfilledIconElement;
|
|
1855
1711
|
"ds-card": HTMLDsCardElement;
|
|
1712
|
+
"ds-card-setting": HTMLDsCardSettingElement;
|
|
1856
1713
|
"ds-checkbox": HTMLDsCheckboxElement;
|
|
1857
1714
|
"ds-chip": HTMLDsChipElement;
|
|
1858
1715
|
"ds-divider": HTMLDsDividerElement;
|
|
@@ -1883,8 +1740,6 @@ declare global {
|
|
|
1883
1740
|
"ds-text": HTMLDsTextElement;
|
|
1884
1741
|
"ds-toast-provider": HTMLDsToastProviderElement;
|
|
1885
1742
|
"ds-toggle": HTMLDsToggleElement;
|
|
1886
|
-
"ds-toggle-button": HTMLDsToggleButtonElement;
|
|
1887
|
-
"ds-toggle-button-group": HTMLDsToggleButtonGroupElement;
|
|
1888
1743
|
"ds-tooltip": HTMLDsTooltipElement;
|
|
1889
1744
|
}
|
|
1890
1745
|
}
|
|
@@ -2058,86 +1913,37 @@ declare namespace LocalJSX {
|
|
|
2058
1913
|
*/
|
|
2059
1914
|
"separator"?: string;
|
|
2060
1915
|
}
|
|
2061
|
-
interface
|
|
2062
|
-
"ariaLabel"?: string | undefined;
|
|
2063
|
-
"ariaLabelledby"?: string | undefined;
|
|
2064
|
-
"background"?: ButtonBackground | undefined;
|
|
2065
|
-
"badgeCount"?: number | undefined;
|
|
1916
|
+
interface DsButtonFilled {
|
|
2066
1917
|
/**
|
|
2067
|
-
* @default '
|
|
1918
|
+
* @default 'action'
|
|
2068
1919
|
*/
|
|
2069
|
-
"
|
|
1920
|
+
"ariaLabel"?: string;
|
|
2070
1921
|
/**
|
|
2071
|
-
*
|
|
1922
|
+
* Background fill weight. Foreground uses the paired contrast token: bold → faint, strong → medium, medium → strong, faint → bold.
|
|
1923
|
+
* @default 'bold'
|
|
2072
1924
|
*/
|
|
2073
|
-
"
|
|
2074
|
-
"elevation"?: ButtonElevation | undefined;
|
|
1925
|
+
"contrast"?: ButtonFilledContrast;
|
|
2075
1926
|
/**
|
|
2076
|
-
*
|
|
1927
|
+
* Icon name passed to <ds-icon>.
|
|
1928
|
+
* @default ''
|
|
2077
1929
|
*/
|
|
2078
|
-
"
|
|
2079
|
-
"href"?: string | undefined;
|
|
1930
|
+
"icon"?: string;
|
|
2080
1931
|
/**
|
|
1932
|
+
* Disables interaction.
|
|
2081
1933
|
* @default false
|
|
2082
1934
|
*/
|
|
2083
1935
|
"inactive"?: boolean;
|
|
2084
1936
|
/**
|
|
1937
|
+
* Semantic colour intent.
|
|
2085
1938
|
* @default 'brand'
|
|
2086
1939
|
*/
|
|
2087
|
-
"intent"?:
|
|
2088
|
-
"
|
|
2089
|
-
/**
|
|
2090
|
-
* @default false
|
|
2091
|
-
*/
|
|
2092
|
-
"loading"?: boolean;
|
|
2093
|
-
"onDsClick"?: (event: DsButtonCustomEvent<MouseEvent>) => void;
|
|
2094
|
-
"onDsMouseEnter"?: (event: DsButtonCustomEvent<MouseEvent>) => void;
|
|
2095
|
-
"onDsMouseLeave"?: (event: DsButtonCustomEvent<MouseEvent>) => void;
|
|
2096
|
-
/**
|
|
2097
|
-
* @default false
|
|
2098
|
-
*/
|
|
2099
|
-
"rounded"?: boolean;
|
|
2100
|
-
/**
|
|
2101
|
-
* @default 'md'
|
|
2102
|
-
*/
|
|
2103
|
-
"size"?: ButtonSize;
|
|
2104
|
-
"target"?: string | undefined;
|
|
1940
|
+
"intent"?: ButtonFilledIntent;
|
|
1941
|
+
"onDsClick"?: (event: DsButtonFilledCustomEvent<MouseEvent>) => void;
|
|
2105
1942
|
/**
|
|
1943
|
+
* Native button type.
|
|
2106
1944
|
* @default 'button'
|
|
2107
1945
|
*/
|
|
2108
1946
|
"type"?: 'button' | 'submit' | 'reset';
|
|
2109
|
-
/**
|
|
2110
|
-
* @default 'primary'
|
|
2111
|
-
*/
|
|
2112
|
-
"variant"?: ButtonVariant;
|
|
2113
|
-
"width"?: string | undefined;
|
|
2114
|
-
}
|
|
2115
|
-
interface DsButtonGroup {
|
|
2116
|
-
/**
|
|
2117
|
-
* Chrome level for the group container.
|
|
2118
|
-
* @default 'flat'
|
|
2119
|
-
*/
|
|
2120
|
-
"elevation"?: ButtonGroupElevation;
|
|
2121
|
-
/**
|
|
2122
|
-
* Array of button descriptors. Set via JS property.
|
|
2123
|
-
* @example el.items = [{ label: 'Filter', icon: 'Filter' }, { label: 'Sort' }];
|
|
2124
|
-
* @default []
|
|
2125
|
-
*/
|
|
2126
|
-
"items"?: ButtonGroupItem[];
|
|
2127
|
-
/**
|
|
2128
|
-
* Emits the index of the clicked item.
|
|
2129
|
-
*/
|
|
2130
|
-
"onDsClick"?: (event: DsButtonGroupCustomEvent<number>) => void;
|
|
2131
|
-
/**
|
|
2132
|
-
* Pill shape for group + buttons.
|
|
2133
|
-
* @default false
|
|
2134
|
-
*/
|
|
2135
|
-
"rounded"?: boolean;
|
|
2136
|
-
/**
|
|
2137
|
-
* Size passed to each ds-button.
|
|
2138
|
-
* @default 'md'
|
|
2139
|
-
*/
|
|
2140
|
-
"size"?: ButtonGroupSize;
|
|
2141
1947
|
}
|
|
2142
1948
|
interface DsButtonUnfilledIcon {
|
|
2143
1949
|
/**
|
|
@@ -2150,9 +1956,13 @@ declare namespace LocalJSX {
|
|
|
2150
1956
|
*/
|
|
2151
1957
|
"ariaLabel"?: string;
|
|
2152
1958
|
/**
|
|
2153
|
-
* Parent surface context
|
|
1959
|
+
* Parent surface context for navigation and always-dark chrome.
|
|
2154
1960
|
*/
|
|
2155
1961
|
"background"?: ButtonUnfilledIconBackground | undefined;
|
|
1962
|
+
/**
|
|
1963
|
+
* Foreground and interaction tokens when the button sits on a contrasting parent background (default, medium, bold, or strong).
|
|
1964
|
+
*/
|
|
1965
|
+
"backgroundContrast"?: ButtonUnfilledIconOnBackgroundContrast;
|
|
2156
1966
|
"controls"?: string | undefined;
|
|
2157
1967
|
/**
|
|
2158
1968
|
* Show a notification dot at the top-right of the icon zone.
|
|
@@ -2204,6 +2014,26 @@ declare namespace LocalJSX {
|
|
|
2204
2014
|
*/
|
|
2205
2015
|
"radius"?: CardRadius;
|
|
2206
2016
|
}
|
|
2017
|
+
interface DsCardSetting {
|
|
2018
|
+
/**
|
|
2019
|
+
* Card width token.
|
|
2020
|
+
* @default 'md'
|
|
2021
|
+
*/
|
|
2022
|
+
"cardWidth"?: CardSettingWidth;
|
|
2023
|
+
/**
|
|
2024
|
+
* Controlled edit state — parent owns single-edit orchestration.
|
|
2025
|
+
* @default false
|
|
2026
|
+
*/
|
|
2027
|
+
"editing"?: boolean;
|
|
2028
|
+
/**
|
|
2029
|
+
* Section heading shown in the card header.
|
|
2030
|
+
*/
|
|
2031
|
+
"heading": string;
|
|
2032
|
+
/**
|
|
2033
|
+
* Emits when the user enters or exits edit mode.
|
|
2034
|
+
*/
|
|
2035
|
+
"onDsEditingChange"?: (event: DsCardSettingCustomEvent<boolean>) => void;
|
|
2036
|
+
}
|
|
2207
2037
|
interface DsCheckbox {
|
|
2208
2038
|
/**
|
|
2209
2039
|
* @default false
|
|
@@ -2945,87 +2775,6 @@ declare namespace LocalJSX {
|
|
|
2945
2775
|
"inactive"?: boolean;
|
|
2946
2776
|
"onDsChange"?: (event: DsToggleCustomEvent<boolean>) => void;
|
|
2947
2777
|
}
|
|
2948
|
-
interface DsToggleButton {
|
|
2949
|
-
"ariaLabel"?: string | undefined;
|
|
2950
|
-
/**
|
|
2951
|
-
* Parent surface context — adjusts hover tokens for colored backgrounds.
|
|
2952
|
-
*/
|
|
2953
|
-
"background"?: ToggleButtonBackground | undefined;
|
|
2954
|
-
/**
|
|
2955
|
-
* Chrome level. none — ghost (transparent, no border, no shadow) flat — border only, transparent bg elevated — bg-primary + shadow [default] floating — bg-primary + FAB-strength shadow
|
|
2956
|
-
* @default 'elevated'
|
|
2957
|
-
*/
|
|
2958
|
-
"elevation"?: ToggleButtonElevation;
|
|
2959
|
-
/**
|
|
2960
|
-
* Icon name for <ds-icon>. Set via JS property.
|
|
2961
|
-
* @example el.icon = 'GridView';
|
|
2962
|
-
*/
|
|
2963
|
-
"icon"?: string | undefined;
|
|
2964
|
-
/**
|
|
2965
|
-
* Disables interaction.
|
|
2966
|
-
* @default false
|
|
2967
|
-
*/
|
|
2968
|
-
"inactive"?: boolean;
|
|
2969
|
-
/**
|
|
2970
|
-
* Label text.
|
|
2971
|
-
*/
|
|
2972
|
-
"label"?: string | undefined;
|
|
2973
|
-
/**
|
|
2974
|
-
* Emits the new pressed value (!pressed) on click.
|
|
2975
|
-
*/
|
|
2976
|
-
"onDsChange"?: (event: DsToggleButtonCustomEvent<boolean>) => void;
|
|
2977
|
-
/**
|
|
2978
|
-
* Controlled pressed state.
|
|
2979
|
-
* @default false
|
|
2980
|
-
*/
|
|
2981
|
-
"pressed"?: boolean;
|
|
2982
|
-
/**
|
|
2983
|
-
* Pill shape.
|
|
2984
|
-
* @default false
|
|
2985
|
-
*/
|
|
2986
|
-
"rounded"?: boolean;
|
|
2987
|
-
/**
|
|
2988
|
-
* Size: md (32px), sm (24px), xs (16px).
|
|
2989
|
-
* @default 'md'
|
|
2990
|
-
*/
|
|
2991
|
-
"size"?: ToggleButtonSize;
|
|
2992
|
-
}
|
|
2993
|
-
interface DsToggleButtonGroup {
|
|
2994
|
-
/**
|
|
2995
|
-
* Parent surface context.
|
|
2996
|
-
*/
|
|
2997
|
-
"background"?: ToggleGroupBackground | undefined;
|
|
2998
|
-
/**
|
|
2999
|
-
* Chrome level for the group container.
|
|
3000
|
-
* @default 'elevated'
|
|
3001
|
-
*/
|
|
3002
|
-
"elevation"?: ToggleGroupElevation;
|
|
3003
|
-
/**
|
|
3004
|
-
* Array of item descriptors. Set via JS property.
|
|
3005
|
-
* @example el.items = [{ id: 'list', label: 'List' }, { id: 'grid', icon: 'GridView' }];
|
|
3006
|
-
* @default []
|
|
3007
|
-
*/
|
|
3008
|
-
"items"?: ToggleGroupItem[];
|
|
3009
|
-
/**
|
|
3010
|
-
* Emits the id of the newly selected item.
|
|
3011
|
-
*/
|
|
3012
|
-
"onDsChange"?: (event: DsToggleButtonGroupCustomEvent<string>) => void;
|
|
3013
|
-
/**
|
|
3014
|
-
* Pill shape for group + buttons.
|
|
3015
|
-
* @default false
|
|
3016
|
-
*/
|
|
3017
|
-
"rounded"?: boolean;
|
|
3018
|
-
/**
|
|
3019
|
-
* Size passed to each ds-toggle-button.
|
|
3020
|
-
* @default 'md'
|
|
3021
|
-
*/
|
|
3022
|
-
"size"?: ToggleGroupSize;
|
|
3023
|
-
/**
|
|
3024
|
-
* ID of the currently selected / pressed item.
|
|
3025
|
-
* @default ''
|
|
3026
|
-
*/
|
|
3027
|
-
"value"?: string;
|
|
3028
|
-
}
|
|
3029
2778
|
interface DsTooltip {
|
|
3030
2779
|
/**
|
|
3031
2780
|
* @default 'center'
|
|
@@ -3099,31 +2848,13 @@ declare namespace LocalJSX {
|
|
|
3099
2848
|
interface DsBreadcrumbAttributes {
|
|
3100
2849
|
"separator": string;
|
|
3101
2850
|
}
|
|
3102
|
-
interface
|
|
3103
|
-
"
|
|
3104
|
-
"intent":
|
|
3105
|
-
"
|
|
3106
|
-
"label": string | undefined;
|
|
3107
|
-
"rounded": boolean;
|
|
3108
|
-
"fullWidth": boolean;
|
|
3109
|
-
"width": string | undefined;
|
|
3110
|
-
"contrast": ButtonContrast;
|
|
3111
|
-
"background": ButtonBackground | undefined;
|
|
3112
|
-
"dropdown": boolean;
|
|
3113
|
-
"badgeCount": number | undefined;
|
|
3114
|
-
"elevation": ButtonElevation | undefined;
|
|
3115
|
-
"loading": boolean;
|
|
2851
|
+
interface DsButtonFilledAttributes {
|
|
2852
|
+
"icon": string;
|
|
2853
|
+
"intent": ButtonFilledIntent;
|
|
2854
|
+
"contrast": ButtonFilledContrast;
|
|
3116
2855
|
"inactive": boolean;
|
|
3117
|
-
"href": string | undefined;
|
|
3118
|
-
"target": string | undefined;
|
|
3119
2856
|
"type": 'button' | 'submit' | 'reset';
|
|
3120
|
-
"ariaLabel": string
|
|
3121
|
-
"ariaLabelledby": string | undefined;
|
|
3122
|
-
}
|
|
3123
|
-
interface DsButtonGroupAttributes {
|
|
3124
|
-
"elevation": ButtonGroupElevation;
|
|
3125
|
-
"size": ButtonGroupSize;
|
|
3126
|
-
"rounded": boolean;
|
|
2857
|
+
"ariaLabel": string;
|
|
3127
2858
|
}
|
|
3128
2859
|
interface DsButtonUnfilledIconAttributes {
|
|
3129
2860
|
"icon": string;
|
|
@@ -3133,6 +2864,7 @@ declare namespace LocalJSX {
|
|
|
3133
2864
|
"dot": boolean;
|
|
3134
2865
|
"inactive": boolean;
|
|
3135
2866
|
"type": 'button' | 'submit' | 'reset';
|
|
2867
|
+
"backgroundContrast": ButtonUnfilledIconOnBackgroundContrast;
|
|
3136
2868
|
"background": ButtonUnfilledIconBackground | undefined;
|
|
3137
2869
|
"ariaLabel": string;
|
|
3138
2870
|
"controls": string | undefined;
|
|
@@ -3145,6 +2877,11 @@ declare namespace LocalJSX {
|
|
|
3145
2877
|
"elevation": CardElevation;
|
|
3146
2878
|
"radius": CardRadius;
|
|
3147
2879
|
}
|
|
2880
|
+
interface DsCardSettingAttributes {
|
|
2881
|
+
"heading": string;
|
|
2882
|
+
"cardWidth": CardSettingWidth;
|
|
2883
|
+
"editing": boolean;
|
|
2884
|
+
}
|
|
3148
2885
|
interface DsCheckboxAttributes {
|
|
3149
2886
|
"label": string;
|
|
3150
2887
|
"checked": boolean;
|
|
@@ -3363,24 +3100,6 @@ declare namespace LocalJSX {
|
|
|
3363
3100
|
"checked": boolean;
|
|
3364
3101
|
"inactive": boolean;
|
|
3365
3102
|
}
|
|
3366
|
-
interface DsToggleButtonAttributes {
|
|
3367
|
-
"elevation": ToggleButtonElevation;
|
|
3368
|
-
"label": string | undefined;
|
|
3369
|
-
"icon": string | undefined;
|
|
3370
|
-
"size": ToggleButtonSize;
|
|
3371
|
-
"rounded": boolean;
|
|
3372
|
-
"background": ToggleButtonBackground | undefined;
|
|
3373
|
-
"pressed": boolean;
|
|
3374
|
-
"inactive": boolean;
|
|
3375
|
-
"ariaLabel": string | undefined;
|
|
3376
|
-
}
|
|
3377
|
-
interface DsToggleButtonGroupAttributes {
|
|
3378
|
-
"value": string;
|
|
3379
|
-
"elevation": ToggleGroupElevation;
|
|
3380
|
-
"size": ToggleGroupSize;
|
|
3381
|
-
"rounded": boolean;
|
|
3382
|
-
"background": ToggleGroupBackground | undefined;
|
|
3383
|
-
}
|
|
3384
3103
|
interface DsTooltipAttributes {
|
|
3385
3104
|
"label": string;
|
|
3386
3105
|
"side": TooltipSide;
|
|
@@ -3399,10 +3118,10 @@ declare namespace LocalJSX {
|
|
|
3399
3118
|
"ds-banner": Omit<DsBanner, keyof DsBannerAttributes> & { [K in keyof DsBanner & keyof DsBannerAttributes]?: DsBanner[K] } & { [K in keyof DsBanner & keyof DsBannerAttributes as `attr:${K}`]?: DsBannerAttributes[K] } & { [K in keyof DsBanner & keyof DsBannerAttributes as `prop:${K}`]?: DsBanner[K] };
|
|
3400
3119
|
"ds-bar-nav": Omit<DsBarNav, keyof DsBarNavAttributes> & { [K in keyof DsBarNav & keyof DsBarNavAttributes]?: DsBarNav[K] } & { [K in keyof DsBarNav & keyof DsBarNavAttributes as `attr:${K}`]?: DsBarNavAttributes[K] } & { [K in keyof DsBarNav & keyof DsBarNavAttributes as `prop:${K}`]?: DsBarNav[K] };
|
|
3401
3120
|
"ds-breadcrumb": Omit<DsBreadcrumb, keyof DsBreadcrumbAttributes> & { [K in keyof DsBreadcrumb & keyof DsBreadcrumbAttributes]?: DsBreadcrumb[K] } & { [K in keyof DsBreadcrumb & keyof DsBreadcrumbAttributes as `attr:${K}`]?: DsBreadcrumbAttributes[K] } & { [K in keyof DsBreadcrumb & keyof DsBreadcrumbAttributes as `prop:${K}`]?: DsBreadcrumb[K] };
|
|
3402
|
-
"ds-button": Omit<
|
|
3403
|
-
"ds-button-group": Omit<DsButtonGroup, keyof DsButtonGroupAttributes> & { [K in keyof DsButtonGroup & keyof DsButtonGroupAttributes]?: DsButtonGroup[K] } & { [K in keyof DsButtonGroup & keyof DsButtonGroupAttributes as `attr:${K}`]?: DsButtonGroupAttributes[K] } & { [K in keyof DsButtonGroup & keyof DsButtonGroupAttributes as `prop:${K}`]?: DsButtonGroup[K] };
|
|
3121
|
+
"ds-button-filled": Omit<DsButtonFilled, keyof DsButtonFilledAttributes> & { [K in keyof DsButtonFilled & keyof DsButtonFilledAttributes]?: DsButtonFilled[K] } & { [K in keyof DsButtonFilled & keyof DsButtonFilledAttributes as `attr:${K}`]?: DsButtonFilledAttributes[K] } & { [K in keyof DsButtonFilled & keyof DsButtonFilledAttributes as `prop:${K}`]?: DsButtonFilled[K] };
|
|
3404
3122
|
"ds-button-unfilled-icon": Omit<DsButtonUnfilledIcon, keyof DsButtonUnfilledIconAttributes> & { [K in keyof DsButtonUnfilledIcon & keyof DsButtonUnfilledIconAttributes]?: DsButtonUnfilledIcon[K] } & { [K in keyof DsButtonUnfilledIcon & keyof DsButtonUnfilledIconAttributes as `attr:${K}`]?: DsButtonUnfilledIconAttributes[K] } & { [K in keyof DsButtonUnfilledIcon & keyof DsButtonUnfilledIconAttributes as `prop:${K}`]?: DsButtonUnfilledIcon[K] };
|
|
3405
3123
|
"ds-card": Omit<DsCard, keyof DsCardAttributes> & { [K in keyof DsCard & keyof DsCardAttributes]?: DsCard[K] } & { [K in keyof DsCard & keyof DsCardAttributes as `attr:${K}`]?: DsCardAttributes[K] } & { [K in keyof DsCard & keyof DsCardAttributes as `prop:${K}`]?: DsCard[K] };
|
|
3124
|
+
"ds-card-setting": Omit<DsCardSetting, keyof DsCardSettingAttributes> & { [K in keyof DsCardSetting & keyof DsCardSettingAttributes]?: DsCardSetting[K] } & { [K in keyof DsCardSetting & keyof DsCardSettingAttributes as `attr:${K}`]?: DsCardSettingAttributes[K] } & { [K in keyof DsCardSetting & keyof DsCardSettingAttributes as `prop:${K}`]?: DsCardSetting[K] } & OneOf<"heading", DsCardSetting["heading"], DsCardSettingAttributes["heading"]>;
|
|
3406
3125
|
"ds-checkbox": Omit<DsCheckbox, keyof DsCheckboxAttributes> & { [K in keyof DsCheckbox & keyof DsCheckboxAttributes]?: DsCheckbox[K] } & { [K in keyof DsCheckbox & keyof DsCheckboxAttributes as `attr:${K}`]?: DsCheckboxAttributes[K] } & { [K in keyof DsCheckbox & keyof DsCheckboxAttributes as `prop:${K}`]?: DsCheckbox[K] } & OneOf<"label", DsCheckbox["label"], DsCheckboxAttributes["label"]>;
|
|
3407
3126
|
"ds-chip": Omit<DsChip, keyof DsChipAttributes> & { [K in keyof DsChip & keyof DsChipAttributes]?: DsChip[K] } & { [K in keyof DsChip & keyof DsChipAttributes as `attr:${K}`]?: DsChipAttributes[K] } & { [K in keyof DsChip & keyof DsChipAttributes as `prop:${K}`]?: DsChip[K] } & OneOf<"label", DsChip["label"], DsChipAttributes["label"]>;
|
|
3408
3127
|
"ds-divider": Omit<DsDivider, keyof DsDividerAttributes> & { [K in keyof DsDivider & keyof DsDividerAttributes]?: DsDivider[K] } & { [K in keyof DsDivider & keyof DsDividerAttributes as `attr:${K}`]?: DsDividerAttributes[K] } & { [K in keyof DsDivider & keyof DsDividerAttributes as `prop:${K}`]?: DsDivider[K] };
|
|
@@ -3433,8 +3152,6 @@ declare namespace LocalJSX {
|
|
|
3433
3152
|
"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] };
|
|
3434
3153
|
"ds-toast-provider": Omit<DsToastProvider, keyof DsToastProviderAttributes> & { [K in keyof DsToastProvider & keyof DsToastProviderAttributes]?: DsToastProvider[K] } & { [K in keyof DsToastProvider & keyof DsToastProviderAttributes as `attr:${K}`]?: DsToastProviderAttributes[K] } & { [K in keyof DsToastProvider & keyof DsToastProviderAttributes as `prop:${K}`]?: DsToastProvider[K] };
|
|
3435
3154
|
"ds-toggle": Omit<DsToggle, keyof DsToggleAttributes> & { [K in keyof DsToggle & keyof DsToggleAttributes]?: DsToggle[K] } & { [K in keyof DsToggle & keyof DsToggleAttributes as `attr:${K}`]?: DsToggleAttributes[K] } & { [K in keyof DsToggle & keyof DsToggleAttributes as `prop:${K}`]?: DsToggle[K] };
|
|
3436
|
-
"ds-toggle-button": Omit<DsToggleButton, keyof DsToggleButtonAttributes> & { [K in keyof DsToggleButton & keyof DsToggleButtonAttributes]?: DsToggleButton[K] } & { [K in keyof DsToggleButton & keyof DsToggleButtonAttributes as `attr:${K}`]?: DsToggleButtonAttributes[K] } & { [K in keyof DsToggleButton & keyof DsToggleButtonAttributes as `prop:${K}`]?: DsToggleButton[K] };
|
|
3437
|
-
"ds-toggle-button-group": Omit<DsToggleButtonGroup, keyof DsToggleButtonGroupAttributes> & { [K in keyof DsToggleButtonGroup & keyof DsToggleButtonGroupAttributes]?: DsToggleButtonGroup[K] } & { [K in keyof DsToggleButtonGroup & keyof DsToggleButtonGroupAttributes as `attr:${K}`]?: DsToggleButtonGroupAttributes[K] } & { [K in keyof DsToggleButtonGroup & keyof DsToggleButtonGroupAttributes as `prop:${K}`]?: DsToggleButtonGroup[K] };
|
|
3438
3155
|
"ds-tooltip": Omit<DsTooltip, keyof DsTooltipAttributes> & { [K in keyof DsTooltip & keyof DsTooltipAttributes]?: DsTooltip[K] } & { [K in keyof DsTooltip & keyof DsTooltipAttributes as `attr:${K}`]?: DsTooltipAttributes[K] } & { [K in keyof DsTooltip & keyof DsTooltipAttributes as `prop:${K}`]?: DsTooltip[K] } & OneOf<"label", DsTooltip["label"], DsTooltipAttributes["label"]>;
|
|
3439
3156
|
}
|
|
3440
3157
|
}
|
|
@@ -3448,10 +3165,10 @@ declare module "@stencil/core" {
|
|
|
3448
3165
|
"ds-banner": LocalJSX.IntrinsicElements["ds-banner"] & JSXBase.HTMLAttributes<HTMLDsBannerElement>;
|
|
3449
3166
|
"ds-bar-nav": LocalJSX.IntrinsicElements["ds-bar-nav"] & JSXBase.HTMLAttributes<HTMLDsBarNavElement>;
|
|
3450
3167
|
"ds-breadcrumb": LocalJSX.IntrinsicElements["ds-breadcrumb"] & JSXBase.HTMLAttributes<HTMLDsBreadcrumbElement>;
|
|
3451
|
-
"ds-button": LocalJSX.IntrinsicElements["ds-button"] & JSXBase.HTMLAttributes<
|
|
3452
|
-
"ds-button-group": LocalJSX.IntrinsicElements["ds-button-group"] & JSXBase.HTMLAttributes<HTMLDsButtonGroupElement>;
|
|
3168
|
+
"ds-button-filled": LocalJSX.IntrinsicElements["ds-button-filled"] & JSXBase.HTMLAttributes<HTMLDsButtonFilledElement>;
|
|
3453
3169
|
"ds-button-unfilled-icon": LocalJSX.IntrinsicElements["ds-button-unfilled-icon"] & JSXBase.HTMLAttributes<HTMLDsButtonUnfilledIconElement>;
|
|
3454
3170
|
"ds-card": LocalJSX.IntrinsicElements["ds-card"] & JSXBase.HTMLAttributes<HTMLDsCardElement>;
|
|
3171
|
+
"ds-card-setting": LocalJSX.IntrinsicElements["ds-card-setting"] & JSXBase.HTMLAttributes<HTMLDsCardSettingElement>;
|
|
3455
3172
|
"ds-checkbox": LocalJSX.IntrinsicElements["ds-checkbox"] & JSXBase.HTMLAttributes<HTMLDsCheckboxElement>;
|
|
3456
3173
|
"ds-chip": LocalJSX.IntrinsicElements["ds-chip"] & JSXBase.HTMLAttributes<HTMLDsChipElement>;
|
|
3457
3174
|
"ds-divider": LocalJSX.IntrinsicElements["ds-divider"] & JSXBase.HTMLAttributes<HTMLDsDividerElement>;
|
|
@@ -3482,8 +3199,6 @@ declare module "@stencil/core" {
|
|
|
3482
3199
|
"ds-text": LocalJSX.IntrinsicElements["ds-text"] & JSXBase.HTMLAttributes<HTMLDsTextElement>;
|
|
3483
3200
|
"ds-toast-provider": LocalJSX.IntrinsicElements["ds-toast-provider"] & JSXBase.HTMLAttributes<HTMLDsToastProviderElement>;
|
|
3484
3201
|
"ds-toggle": LocalJSX.IntrinsicElements["ds-toggle"] & JSXBase.HTMLAttributes<HTMLDsToggleElement>;
|
|
3485
|
-
"ds-toggle-button": LocalJSX.IntrinsicElements["ds-toggle-button"] & JSXBase.HTMLAttributes<HTMLDsToggleButtonElement>;
|
|
3486
|
-
"ds-toggle-button-group": LocalJSX.IntrinsicElements["ds-toggle-button-group"] & JSXBase.HTMLAttributes<HTMLDsToggleButtonGroupElement>;
|
|
3487
3202
|
"ds-tooltip": LocalJSX.IntrinsicElements["ds-tooltip"] & JSXBase.HTMLAttributes<HTMLDsTooltipElement>;
|
|
3488
3203
|
}
|
|
3489
3204
|
}
|