@ds-mo/ui 7.0.0 → 8.0.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 +1 -1
- package/dist/.build-stamp +1 -1
- package/dist/agent.json +572 -39
- package/dist/angular/ds-divider.d.ts +1 -1
- package/dist/angular/ds-divider.js +3 -3
- package/dist/angular/ds-icon.d.ts +1 -1
- package/dist/angular/ds-icon.js +3 -3
- package/dist/angular/ds-skeleton.d.ts +1 -1
- package/dist/angular/ds-skeleton.js +3 -3
- package/dist/angular/ds-tag.d.ts +8 -2
- package/dist/angular/ds-tag.js +9 -5
- package/dist/components/ds-app-shell.js +1 -1
- package/dist/components/ds-app-shell.js.map +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-banner.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-button-filled.js +1 -1
- package/dist/components/ds-button-unfilled.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js.map +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-card.js +1 -1
- package/dist/components/ds-chart-bar.js +1 -1
- package/dist/components/ds-chart-donut.js +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-line.js +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-chip.js.map +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-field.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-menu.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-pagination.js +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-nav.js.map +1 -1
- package/dist/components/ds-panel-sub-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-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-skeleton.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-slider.js.map +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-tag.js.map +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-tooltip-data-viz.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/{p-AIFkzp4M.js → p-3bRWSqaN.js} +2 -2
- package/dist/components/p-BKhG2xrW.js.map +1 -1
- package/dist/components/{p-Dt1oDMJ6.js → p-CPD_mML6.js} +2 -2
- package/dist/components/p-Ca1H1HPf.js +2 -0
- package/dist/components/p-Ca1H1HPf.js.map +1 -0
- package/dist/components/p-CpX87AQy.js +2 -0
- package/dist/components/{p-DQy_H_hL.js.map → p-CpX87AQy.js.map} +1 -1
- package/dist/components/{p-DYotx2VC.js → p-CyMmsNCF.js} +2 -2
- package/dist/components/p-CyMmsNCF.js.map +1 -0
- package/dist/components/p-D0B9uDTP.js.map +1 -1
- package/dist/components/{p-KRZefifE.js → p-DavEAOUa.js} +2 -2
- package/dist/components/{p-KRZefifE.js.map → p-DavEAOUa.js.map} +1 -1
- package/dist/components/{p-CGovlfKQ.js → p-DoZU8RH0.js} +2 -2
- package/dist/components/p-DoZU8RH0.js.map +1 -0
- package/dist/components/p-DsiueSMI.js +2 -0
- package/dist/components/p-DsiueSMI.js.map +1 -0
- package/dist/components/{p-qawuX6gT.js → p-Dt0XnMxc.js} +2 -2
- package/dist/components/p-Dt0XnMxc.js.map +1 -0
- package/dist/components/{p-Dh4BBuI3.js → p-Mx6VFEQc.js} +2 -2
- package/dist/components/{p-Dh4BBuI3.js.map → p-Mx6VFEQc.js.map} +1 -1
- package/dist/components/{p-CeyijE0j.js → p-clDpFcdU.js} +2 -2
- package/dist/components/p-wxw8arTd.js +2 -0
- package/dist/components/p-wxw8arTd.js.map +1 -0
- package/dist/docs/components.json +406 -232
- package/dist/lib/components/Icon/icon-cache.d.ts +2 -2
- package/dist/lib/components/Text/text-types.d.ts +1 -1
- package/dist/lib/{nav → shell}/index.js +7 -7
- package/dist/lib/{nav → shell}/index.js.map +2 -2
- package/dist/lib/utils/index.js +1 -1
- package/dist/lib/utils/index.js.map +2 -2
- package/dist/react/ds-tag.d.ts +5 -2
- package/dist/react/ds-tag.js +1 -1
- package/dist/types/components/AppShell/AppShell.d.ts +2 -2
- package/dist/types/components/Badge/Badge.d.ts +4 -4
- package/dist/types/components/BarNav/BarNav.d.ts +1 -1
- package/dist/types/components/BarNav/index.d.ts +1 -1
- package/dist/types/components/ButtonFilled/ButtonFilled.d.ts +1 -0
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +1 -0
- package/dist/types/components/Divider/Divider.d.ts +3 -3
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +2 -4
- package/dist/types/components/Icon/icon-cache.d.ts +2 -2
- package/dist/types/components/Loader/Loader.d.ts +1 -1
- package/dist/types/components/Menu/Menu.d.ts +1 -1
- package/dist/types/components/Menu/menu-types.d.ts +1 -1
- package/dist/types/components/PanelNav/PanelNav.d.ts +2 -2
- package/dist/types/components/PanelNav/index.d.ts +1 -1
- package/dist/types/components/PanelNav/panel-nav-types.d.ts +1 -2
- package/dist/types/components/PanelNav/panel-nav-utils.d.ts +2 -2
- package/dist/types/components/PanelTools/PanelTools.d.ts +1 -1
- package/dist/types/components/ShellGradientSwatch/shell-gradient-swatch-types.d.ts +2 -2
- package/dist/types/components/Skeleton/Skeleton.d.ts +3 -3
- package/dist/types/components/Skeleton/index.d.ts +1 -1
- package/dist/types/components/Tag/Tag.d.ts +14 -0
- package/dist/types/components/Text/Text.d.ts +1 -1
- package/dist/types/components/Text/text-types.d.ts +1 -1
- package/dist/types/components.d.ts +133 -62
- package/package.json +4 -4
- package/dist/components/p-C7yzdJNM.js +0 -2
- package/dist/components/p-C7yzdJNM.js.map +0 -1
- package/dist/components/p-CGovlfKQ.js.map +0 -1
- package/dist/components/p-DDO5W45N.js +0 -2
- package/dist/components/p-DDO5W45N.js.map +0 -1
- package/dist/components/p-DQy_H_hL.js +0 -2
- package/dist/components/p-DYotx2VC.js.map +0 -1
- package/dist/components/p-Ujv0jqbw.js +0 -2
- package/dist/components/p-Ujv0jqbw.js.map +0 -1
- package/dist/components/p-qawuX6gT.js.map +0 -1
- /package/dist/components/{p-AIFkzp4M.js.map → p-3bRWSqaN.js.map} +0 -0
- /package/dist/components/{p-Dt1oDMJ6.js.map → p-CPD_mML6.js.map} +0 -0
- /package/dist/components/{p-CeyijE0j.js.map → p-clDpFcdU.js.map} +0 -0
- /package/dist/lib/{nav → shell}/badge-gradient-ring.d.ts +0 -0
- /package/dist/lib/{nav → shell}/chrome-transition.d.ts +0 -0
- /package/dist/lib/{nav → shell}/index.d.ts +0 -0
- /package/dist/lib/{nav → shell}/nav-chrome.d.ts +0 -0
- /package/dist/lib/{nav → shell}/shell-chrome-metrics.d.ts +0 -0
- /package/dist/lib/{nav → shell}/shell-gradient-presets.d.ts +0 -0
- /package/dist/lib/{nav → shell}/shell-gradient.d.ts +0 -0
- /package/dist/lib/{nav → shell}/shell-view-transition.d.ts +0 -0
- /package/dist/types/{nav → shell}/badge-gradient-ring.d.ts +0 -0
- /package/dist/types/{nav → shell}/chrome-transition.d.ts +0 -0
- /package/dist/types/{nav → shell}/index.d.ts +0 -0
- /package/dist/types/{nav → shell}/nav-chrome.d.ts +0 -0
- /package/dist/types/{nav → shell}/shell-chrome-metrics.d.ts +0 -0
- /package/dist/types/{nav → shell}/shell-gradient-presets.d.ts +0 -0
- /package/dist/types/{nav → shell}/shell-gradient.d.ts +0 -0
- /package/dist/types/{nav → shell}/shell-shortcuts.d.ts +0 -0
- /package/dist/types/{nav → shell}/shell-view-transition.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MenuPlacement } from '../Menu/menu-placement';
|
|
2
2
|
import { PANEL_NAV_USER_MENU_PLACEMENT } from '../Menu/menu-placement';
|
|
3
|
-
import type { NavChromeStyle } from '../../
|
|
3
|
+
import type { NavChromeStyle } from '../../shell/nav-chrome';
|
|
4
4
|
export type { NavChromeStyle };
|
|
5
5
|
export type PanelNavRouterMode = 'anchor' | 'event';
|
|
6
6
|
export interface PanelNavItem {
|
|
@@ -9,7 +9,6 @@ export interface PanelNavItem {
|
|
|
9
9
|
label: string;
|
|
10
10
|
/** Show a notification dot badge on the item */
|
|
11
11
|
dot?: boolean;
|
|
12
|
-
flag?: boolean;
|
|
13
12
|
/** Route path used for `currentUrl` matching. In `anchor` mode also sets `<a href>`.
|
|
14
13
|
* In `event` mode navigation is delegated to the host via `dsNavSelect`. */
|
|
15
14
|
href?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PanelNavGroup, PanelNavItem } from './panel-nav-types';
|
|
2
|
-
import { NAV_STYLE_HINT_ATTR, clearNavStyleHint, readNavStyleAttr, resolveNavChromeStyle, setNavStyleHint, shouldResyncNavChromeStyle } from '../../
|
|
3
|
-
export type { NavChromeStyle } from '../../
|
|
2
|
+
import { NAV_STYLE_HINT_ATTR, clearNavStyleHint, readNavStyleAttr, resolveNavChromeStyle, setNavStyleHint, shouldResyncNavChromeStyle } from '../../shell/nav-chrome';
|
|
3
|
+
export type { NavChromeStyle } from '../../shell/nav-chrome';
|
|
4
4
|
export { NAV_STYLE_HINT_ATTR, readNavStyleAttr, setNavStyleHint, clearNavStyleHint, resolveNavChromeStyle as resolvePanelNavStyle, shouldResyncNavChromeStyle as shouldResyncPanelNavStyle, };
|
|
5
5
|
/** Whether `path` matches `href` at a segment boundary (exact or child path). */
|
|
6
6
|
export declare function hrefMatchesPath(path: string, href: string): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import type { ChromeTransitionDetail } from '../../
|
|
2
|
+
import type { ChromeTransitionDetail } from '../../shell/chrome-transition';
|
|
3
3
|
import { type PanelToolsItem, type PanelToolsToolId } from './panel-tools-types';
|
|
4
4
|
export declare class PanelTools {
|
|
5
5
|
el: HTMLElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShellGradientPreset } from '../../
|
|
1
|
+
import type { ShellGradientPreset } from '../../shell/shell-gradient-presets';
|
|
2
2
|
export type { ShellGradientPreset };
|
|
3
|
-
export { DEFAULT_SHELL_GRADIENT_PRESET, SHELL_GRADIENT_PRESETS, SHELL_GRADIENT_WASH_PRESETS, SHELL_GRADIENT_PRESET_LABELS, buildShellRadialGradientForPreset, buildShellRadialGradientFromStops, isShellGradientPreset, normalizeShellGradientPreset, shellGradientPresetOpacity, shellGradientPresetRecipe, shellGradientPresetStopToken, } from '../../
|
|
3
|
+
export { DEFAULT_SHELL_GRADIENT_PRESET, SHELL_GRADIENT_PRESETS, SHELL_GRADIENT_WASH_PRESETS, SHELL_GRADIENT_PRESET_LABELS, buildShellRadialGradientForPreset, buildShellRadialGradientFromStops, isShellGradientPreset, normalizeShellGradientPreset, shellGradientPresetOpacity, shellGradientPresetRecipe, shellGradientPresetStopToken, } from '../../shell/shell-gradient-presets';
|
|
4
4
|
//# sourceMappingURL=shell-gradient-swatch-types.d.ts.map
|
|
@@ -2,7 +2,7 @@ import type { IconSize } from '../Icon/Icon';
|
|
|
2
2
|
import type { TextVariant } from '../Text/text-types';
|
|
3
3
|
import type { ControlSize } from '../../utils/control-text';
|
|
4
4
|
export type SkeletonVariant = 'text' | 'icon' | 'control';
|
|
5
|
-
export type
|
|
5
|
+
export type SkeletonBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'translucent' | 'inverted' | 'media' | 'navigation' | 'always-dark';
|
|
6
6
|
export declare class Skeleton {
|
|
7
7
|
variant: SkeletonVariant;
|
|
8
8
|
/** Text metric recipe whose line-height defines the text canvas. */
|
|
@@ -17,8 +17,8 @@ export declare class Skeleton {
|
|
|
17
17
|
rounded: boolean;
|
|
18
18
|
/** Whether to show the shimmer animation. */
|
|
19
19
|
shimmer: boolean;
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/** Actual parent surface context. Omit on primary and secondary surfaces. */
|
|
21
|
+
background: SkeletonBackground | undefined;
|
|
22
22
|
private get widthCss();
|
|
23
23
|
render(): any;
|
|
24
24
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { SkeletonBackground, SkeletonVariant } from './Skeleton';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
export type TagIntent = 'neutral' | 'brand' | 'ai' | 'negative' | 'warning' | 'caution' | 'positive';
|
|
2
3
|
export type TagContrast = 'strong' | 'bold' | 'medium' | 'faint';
|
|
3
4
|
export type TagSize = 'md' | 'sm' | 'xs';
|
|
4
5
|
export declare class Tag {
|
|
5
6
|
label: string;
|
|
7
|
+
/** Canonical icon name rendered before the visible label. */
|
|
8
|
+
icon: string;
|
|
6
9
|
intent: TagIntent;
|
|
7
10
|
contrast: TagContrast;
|
|
8
11
|
size: TagSize;
|
|
9
12
|
rounded: boolean;
|
|
10
13
|
maxWidth: string | number | undefined;
|
|
14
|
+
/** Render a menu-trigger button with a fixed ChevronUpDown suffix. */
|
|
15
|
+
interactive: boolean;
|
|
16
|
+
/** Controlled open state for the menu triggered by an interactive Tag. */
|
|
17
|
+
expanded: boolean;
|
|
18
|
+
/** ID of the menu controlled by an interactive Tag. */
|
|
19
|
+
ariaControls: string | undefined;
|
|
20
|
+
/** Disable an interactive Tag and apply the shared inactive treatment. */
|
|
21
|
+
isInactive: boolean;
|
|
22
|
+
/** Fired when the interactive Tag button is activated. */
|
|
23
|
+
dsClick: EventEmitter<MouseEvent>;
|
|
24
|
+
private handleClick;
|
|
11
25
|
render(): any;
|
|
12
26
|
}
|
|
13
27
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -8,7 +8,7 @@ export declare class Text {
|
|
|
8
8
|
* `true`: display bold, title/caption semibold, body medium.
|
|
9
9
|
*/
|
|
10
10
|
emphasis: boolean;
|
|
11
|
-
color: TextColor
|
|
11
|
+
color: TextColor;
|
|
12
12
|
decoration: TextDecoration | undefined;
|
|
13
13
|
italic: boolean;
|
|
14
14
|
/** Animate the visible glyphs with the shared loading shimmer treatment. */
|
|
@@ -3,7 +3,7 @@ export type TextColorToken = 'primary' | 'secondary' | 'tertiary' | 'brand' | 'n
|
|
|
3
3
|
export type TextColor = TextColorToken | `var(--${string})`;
|
|
4
4
|
export type TextDecoration = 'none' | 'underline' | 'dotted-underline';
|
|
5
5
|
export type TextAlign = 'left' | 'center' | 'right';
|
|
6
|
-
export type LineTruncation = 1 | 2 | 3 | 4 | 5 | 'none';
|
|
6
|
+
export type LineTruncation = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | 'none';
|
|
7
7
|
export type TextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
8
8
|
export type TextElement = 'p' | 'span' | 'div' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
9
9
|
export type TextFontFeature = 'normal' | 'tabular-nums';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { NavChromeStyle } from "./
|
|
9
|
-
import { ShellGradientPreset } from "./
|
|
8
|
+
import { NavChromeStyle } from "./shell/nav-chrome";
|
|
9
|
+
import { ShellGradientPreset } from "./shell/shell-gradient-presets";
|
|
10
10
|
import { BadgeSurface, BadgeVariant } from "./components/Badge/Badge";
|
|
11
11
|
import { BannerContrast, BannerIntent } from "./components/Banner/Banner";
|
|
12
12
|
import { BarNavTab } from "./components/BarNav/bar-nav-types";
|
|
@@ -18,7 +18,7 @@ import { CardSettingWidth } from "./components/CardSetting/CardSetting";
|
|
|
18
18
|
import { ChartDatum, ChartLegendItem, ChartSeries } from "./utils/chart-types";
|
|
19
19
|
import { ChartLegendDirection } from "./components/ChartLegend/ChartLegend";
|
|
20
20
|
import { ChipSize, ChipState } from "./components/Chip/Chip";
|
|
21
|
-
import { DividerInset, DividerLength, DividerOrientation
|
|
21
|
+
import { DividerBackground, DividerInset, DividerLength, DividerOrientation } from "./components/Divider/Divider";
|
|
22
22
|
import { EmptyStateType } from "./components/EmptyState/EmptyState";
|
|
23
23
|
import { IconColor, IconSize } from "./components/Icon/Icon";
|
|
24
24
|
import { InputType } from "./components/Input/Input";
|
|
@@ -27,14 +27,14 @@ import { MenuItemData, MenuSection } from "./components/Menu/menu-types";
|
|
|
27
27
|
import { MenuAlign, MenuSide } from "./components/Menu/menu-position";
|
|
28
28
|
import { ModalWidth } from "./components/Modal/Modal";
|
|
29
29
|
import { PanelNavGroup, PanelNavRouterMode, PanelNavUserActionDetail } from "./components/PanelNav/panel-nav-types";
|
|
30
|
-
import { ChromeTransitionDetail } from "./
|
|
30
|
+
import { ChromeTransitionDetail } from "./shell/chrome-transition";
|
|
31
31
|
import { PanelSubNavItem } from "./components/PanelSubNav/panel-sub-nav-types";
|
|
32
32
|
import { PanelSubNavBackground } from "./components/PanelSubNav/PanelSubNav";
|
|
33
33
|
import { PanelToolsItem, PanelToolsToolId } from "./components/PanelTools/panel-tools-types";
|
|
34
34
|
import { RadioOption } from "./components/RadioGroup/RadioGroup";
|
|
35
35
|
import { SelectOption, SelectSize, SelectWidth } from "./components/Select/Select";
|
|
36
36
|
import { ShellGradientPreset as ShellGradientPreset1 } from "./components/ShellGradientSwatch/shell-gradient-swatch-types";
|
|
37
|
-
import {
|
|
37
|
+
import { SkeletonBackground, SkeletonVariant } from "./components/Skeleton/Skeleton";
|
|
38
38
|
import { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextFontFeature, TextVariant, TextWrap } from "./components/Text/text-types";
|
|
39
39
|
import { IconSize as IconSize1 } from "./components/Icon/Icon";
|
|
40
40
|
import { ControlSize } from "./utils/control-text";
|
|
@@ -44,8 +44,8 @@ import { TabBackground } from "./components/TabGroup/TabGroup";
|
|
|
44
44
|
import { SortState, TableColumn } from "./components/Table/Table";
|
|
45
45
|
import { TagContrast, TagIntent, TagSize } from "./components/Tag/Tag";
|
|
46
46
|
import { TooltipAlign, TooltipSide, TooltipSize } from "./components/Tooltip/Tooltip";
|
|
47
|
-
export { NavChromeStyle } from "./
|
|
48
|
-
export { ShellGradientPreset } from "./
|
|
47
|
+
export { NavChromeStyle } from "./shell/nav-chrome";
|
|
48
|
+
export { ShellGradientPreset } from "./shell/shell-gradient-presets";
|
|
49
49
|
export { BadgeSurface, BadgeVariant } from "./components/Badge/Badge";
|
|
50
50
|
export { BannerContrast, BannerIntent } from "./components/Banner/Banner";
|
|
51
51
|
export { BarNavTab } from "./components/BarNav/bar-nav-types";
|
|
@@ -57,7 +57,7 @@ export { CardSettingWidth } from "./components/CardSetting/CardSetting";
|
|
|
57
57
|
export { ChartDatum, ChartLegendItem, ChartSeries } from "./utils/chart-types";
|
|
58
58
|
export { ChartLegendDirection } from "./components/ChartLegend/ChartLegend";
|
|
59
59
|
export { ChipSize, ChipState } from "./components/Chip/Chip";
|
|
60
|
-
export { DividerInset, DividerLength, DividerOrientation
|
|
60
|
+
export { DividerBackground, DividerInset, DividerLength, DividerOrientation } from "./components/Divider/Divider";
|
|
61
61
|
export { EmptyStateType } from "./components/EmptyState/EmptyState";
|
|
62
62
|
export { IconColor, IconSize } from "./components/Icon/Icon";
|
|
63
63
|
export { InputType } from "./components/Input/Input";
|
|
@@ -66,14 +66,14 @@ export { MenuItemData, MenuSection } from "./components/Menu/menu-types";
|
|
|
66
66
|
export { MenuAlign, MenuSide } from "./components/Menu/menu-position";
|
|
67
67
|
export { ModalWidth } from "./components/Modal/Modal";
|
|
68
68
|
export { PanelNavGroup, PanelNavRouterMode, PanelNavUserActionDetail } from "./components/PanelNav/panel-nav-types";
|
|
69
|
-
export { ChromeTransitionDetail } from "./
|
|
69
|
+
export { ChromeTransitionDetail } from "./shell/chrome-transition";
|
|
70
70
|
export { PanelSubNavItem } from "./components/PanelSubNav/panel-sub-nav-types";
|
|
71
71
|
export { PanelSubNavBackground } from "./components/PanelSubNav/PanelSubNav";
|
|
72
72
|
export { PanelToolsItem, PanelToolsToolId } from "./components/PanelTools/panel-tools-types";
|
|
73
73
|
export { RadioOption } from "./components/RadioGroup/RadioGroup";
|
|
74
74
|
export { SelectOption, SelectSize, SelectWidth } from "./components/Select/Select";
|
|
75
75
|
export { ShellGradientPreset as ShellGradientPreset1 } from "./components/ShellGradientSwatch/shell-gradient-swatch-types";
|
|
76
|
-
export {
|
|
76
|
+
export { SkeletonBackground, SkeletonVariant } from "./components/Skeleton/Skeleton";
|
|
77
77
|
export { LineTruncation, TextAlign, TextColor, TextDecoration, TextElement, TextFontFeature, TextVariant, TextWrap } from "./components/Text/text-types";
|
|
78
78
|
export { IconSize as IconSize1 } from "./components/Icon/Icon";
|
|
79
79
|
export { ControlSize } from "./utils/control-text";
|
|
@@ -117,17 +117,17 @@ export namespace Components {
|
|
|
117
117
|
*/
|
|
118
118
|
"gradientBackground": boolean;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Contextual supplemental text. Omit when the owner hides the badge from assistive technology.
|
|
121
121
|
*/
|
|
122
122
|
"label": string | undefined;
|
|
123
123
|
/**
|
|
124
|
-
* Highest count shown before compacting to "+".
|
|
124
|
+
* Highest count shown before compacting to "{max}+".
|
|
125
125
|
* @default 9
|
|
126
126
|
*/
|
|
127
127
|
"max": number;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
* @default '
|
|
129
|
+
* Immediate backing surface matched by the ring around either variant.
|
|
130
|
+
* @default 'primary'
|
|
131
131
|
*/
|
|
132
132
|
"surface": BadgeSurface;
|
|
133
133
|
/**
|
|
@@ -210,6 +210,7 @@ export namespace Components {
|
|
|
210
210
|
}
|
|
211
211
|
interface DsButtonFilled {
|
|
212
212
|
/**
|
|
213
|
+
* Accessible name override. Required for icon-only buttons.
|
|
213
214
|
* @default null
|
|
214
215
|
*/
|
|
215
216
|
"ariaLabel": string | null;
|
|
@@ -272,6 +273,7 @@ export namespace Components {
|
|
|
272
273
|
*/
|
|
273
274
|
"activeFill": boolean;
|
|
274
275
|
/**
|
|
276
|
+
* Accessible name override. Required for icon-only buttons.
|
|
275
277
|
* @default null
|
|
276
278
|
*/
|
|
277
279
|
"ariaLabel": string | null;
|
|
@@ -587,6 +589,10 @@ export namespace Components {
|
|
|
587
589
|
"state": ChipState;
|
|
588
590
|
}
|
|
589
591
|
interface DsDivider {
|
|
592
|
+
/**
|
|
593
|
+
* Actual parent surface context. Omit on primary and secondary surfaces.
|
|
594
|
+
*/
|
|
595
|
+
"background": DividerBackground | undefined;
|
|
590
596
|
/**
|
|
591
597
|
* Insets the divider from its start/end edges. Accepts spacing token names or any CSS length.
|
|
592
598
|
* @default 'none'
|
|
@@ -607,11 +613,6 @@ export namespace Components {
|
|
|
607
613
|
* @default false
|
|
608
614
|
*/
|
|
609
615
|
"semantic": boolean;
|
|
610
|
-
/**
|
|
611
|
-
* Surface context so the divider uses the right TokoMo divider token.
|
|
612
|
-
* @default 'default'
|
|
613
|
-
*/
|
|
614
|
-
"surface": DividerSurface;
|
|
615
616
|
}
|
|
616
617
|
interface DsEmptyState {
|
|
617
618
|
"message": string | undefined;
|
|
@@ -635,19 +636,15 @@ export namespace Components {
|
|
|
635
636
|
interface DsIcon {
|
|
636
637
|
/**
|
|
637
638
|
* Semantic foreground color token, or a raw CSS var reference.
|
|
639
|
+
* @default 'inherit'
|
|
638
640
|
*/
|
|
639
|
-
"color": IconColor
|
|
640
|
-
/**
|
|
641
|
-
* Set `true` to look up from the flag icon set instead of the system icon set.
|
|
642
|
-
* @default false
|
|
643
|
-
*/
|
|
644
|
-
"flag": boolean;
|
|
641
|
+
"color": IconColor;
|
|
645
642
|
/**
|
|
646
643
|
* Accessible label. Sets `role="img"` and `aria-label`. Omit for decorative icons.
|
|
647
644
|
*/
|
|
648
645
|
"label": string | undefined;
|
|
649
646
|
/**
|
|
650
|
-
*
|
|
647
|
+
* Exact canonical IcoMo export name, including the `Flag` prefix for flags.
|
|
651
648
|
* @default ''
|
|
652
649
|
*/
|
|
653
650
|
"name": string;
|
|
@@ -712,8 +709,9 @@ export namespace Components {
|
|
|
712
709
|
interface DsLoader {
|
|
713
710
|
/**
|
|
714
711
|
* Semantic foreground color token, or a raw CSS var reference. Same tokens as `ds-icon`.
|
|
712
|
+
* @default 'inherit'
|
|
715
713
|
*/
|
|
716
|
-
"color": LoaderColor
|
|
714
|
+
"color": LoaderColor;
|
|
717
715
|
/**
|
|
718
716
|
* 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.
|
|
719
717
|
*/
|
|
@@ -1104,6 +1102,10 @@ export namespace Components {
|
|
|
1104
1102
|
"selected": boolean;
|
|
1105
1103
|
}
|
|
1106
1104
|
interface DsSkeleton {
|
|
1105
|
+
/**
|
|
1106
|
+
* Actual parent surface context. Omit on primary and secondary surfaces.
|
|
1107
|
+
*/
|
|
1108
|
+
"background": SkeletonBackground | undefined;
|
|
1107
1109
|
/**
|
|
1108
1110
|
* Shared control-density size whose height defines the control canvas.
|
|
1109
1111
|
* @default 'md'
|
|
@@ -1124,11 +1126,6 @@ export namespace Components {
|
|
|
1124
1126
|
* @default true
|
|
1125
1127
|
*/
|
|
1126
1128
|
"shimmer": boolean;
|
|
1127
|
-
/**
|
|
1128
|
-
* Surface context used to select the matching foreground base and shimmer tokens.
|
|
1129
|
-
* @default 'default'
|
|
1130
|
-
*/
|
|
1131
|
-
"surface": SkeletonSurface;
|
|
1132
1129
|
/**
|
|
1133
1130
|
* Text metric recipe whose line-height defines the text canvas.
|
|
1134
1131
|
* @default 'text-body-medium'
|
|
@@ -1288,14 +1285,38 @@ export namespace Components {
|
|
|
1288
1285
|
"sortState": SortState | undefined;
|
|
1289
1286
|
}
|
|
1290
1287
|
interface DsTag {
|
|
1288
|
+
/**
|
|
1289
|
+
* ID of the menu controlled by an interactive Tag.
|
|
1290
|
+
*/
|
|
1291
|
+
"ariaControls": string | undefined;
|
|
1291
1292
|
/**
|
|
1292
1293
|
* @default 'faint'
|
|
1293
1294
|
*/
|
|
1294
1295
|
"contrast": TagContrast;
|
|
1296
|
+
/**
|
|
1297
|
+
* Controlled open state for the menu triggered by an interactive Tag.
|
|
1298
|
+
* @default false
|
|
1299
|
+
*/
|
|
1300
|
+
"expanded": boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* Canonical icon name rendered before the visible label.
|
|
1303
|
+
* @default ''
|
|
1304
|
+
*/
|
|
1305
|
+
"icon": string;
|
|
1295
1306
|
/**
|
|
1296
1307
|
* @default 'neutral'
|
|
1297
1308
|
*/
|
|
1298
1309
|
"intent": TagIntent;
|
|
1310
|
+
/**
|
|
1311
|
+
* Render a menu-trigger button with a fixed ChevronUpDown suffix.
|
|
1312
|
+
* @default false
|
|
1313
|
+
*/
|
|
1314
|
+
"interactive": boolean;
|
|
1315
|
+
/**
|
|
1316
|
+
* Disable an interactive Tag and apply the shared inactive treatment.
|
|
1317
|
+
* @default false
|
|
1318
|
+
*/
|
|
1319
|
+
"isInactive": boolean;
|
|
1299
1320
|
"label": string;
|
|
1300
1321
|
"maxWidth": string | number | undefined;
|
|
1301
1322
|
/**
|
|
@@ -1313,7 +1334,10 @@ export namespace Components {
|
|
|
1313
1334
|
* @default 'p'
|
|
1314
1335
|
*/
|
|
1315
1336
|
"as": TextElement;
|
|
1316
|
-
|
|
1337
|
+
/**
|
|
1338
|
+
* @default 'inherit'
|
|
1339
|
+
*/
|
|
1340
|
+
"color": TextColor;
|
|
1317
1341
|
"decoration": TextDecoration | undefined;
|
|
1318
1342
|
/**
|
|
1319
1343
|
* Heavier weight + tighter letter-spacing for the variant. `false` (default): one step below emphasis (display semibold, title/body medium, caption medium). `true`: display bold, title/caption semibold, body medium.
|
|
@@ -1534,6 +1558,10 @@ export interface DsTableCustomEvent<T> extends CustomEvent<T> {
|
|
|
1534
1558
|
detail: T;
|
|
1535
1559
|
target: HTMLDsTableElement;
|
|
1536
1560
|
}
|
|
1561
|
+
export interface DsTagCustomEvent<T> extends CustomEvent<T> {
|
|
1562
|
+
detail: T;
|
|
1563
|
+
target: HTMLDsTagElement;
|
|
1564
|
+
}
|
|
1537
1565
|
declare global {
|
|
1538
1566
|
interface HTMLDsAppShellElement extends Components.DsAppShell, HTMLStencilElement {
|
|
1539
1567
|
}
|
|
@@ -2067,7 +2095,18 @@ declare global {
|
|
|
2067
2095
|
prototype: HTMLDsTableElement;
|
|
2068
2096
|
new (): HTMLDsTableElement;
|
|
2069
2097
|
};
|
|
2098
|
+
interface HTMLDsTagElementEventMap {
|
|
2099
|
+
"dsClick": MouseEvent;
|
|
2100
|
+
}
|
|
2070
2101
|
interface HTMLDsTagElement extends Components.DsTag, HTMLStencilElement {
|
|
2102
|
+
addEventListener<K extends keyof HTMLDsTagElementEventMap>(type: K, listener: (this: HTMLDsTagElement, ev: DsTagCustomEvent<HTMLDsTagElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2103
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2104
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2105
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2106
|
+
removeEventListener<K extends keyof HTMLDsTagElementEventMap>(type: K, listener: (this: HTMLDsTagElement, ev: DsTagCustomEvent<HTMLDsTagElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2107
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2108
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2109
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2071
2110
|
}
|
|
2072
2111
|
var HTMLDsTagElement: {
|
|
2073
2112
|
prototype: HTMLDsTagElement;
|
|
@@ -2189,17 +2228,17 @@ declare namespace LocalJSX {
|
|
|
2189
2228
|
*/
|
|
2190
2229
|
"gradientBackground"?: boolean;
|
|
2191
2230
|
/**
|
|
2192
|
-
*
|
|
2231
|
+
* Contextual supplemental text. Omit when the owner hides the badge from assistive technology.
|
|
2193
2232
|
*/
|
|
2194
2233
|
"label"?: string | undefined;
|
|
2195
2234
|
/**
|
|
2196
|
-
* Highest count shown before compacting to "+".
|
|
2235
|
+
* Highest count shown before compacting to "{max}+".
|
|
2197
2236
|
* @default 9
|
|
2198
2237
|
*/
|
|
2199
2238
|
"max"?: number;
|
|
2200
2239
|
/**
|
|
2201
|
-
*
|
|
2202
|
-
* @default '
|
|
2240
|
+
* Immediate backing surface matched by the ring around either variant.
|
|
2241
|
+
* @default 'primary'
|
|
2203
2242
|
*/
|
|
2204
2243
|
"surface"?: BadgeSurface;
|
|
2205
2244
|
/**
|
|
@@ -2287,6 +2326,7 @@ declare namespace LocalJSX {
|
|
|
2287
2326
|
}
|
|
2288
2327
|
interface DsButtonFilled {
|
|
2289
2328
|
/**
|
|
2329
|
+
* Accessible name override. Required for icon-only buttons.
|
|
2290
2330
|
* @default null
|
|
2291
2331
|
*/
|
|
2292
2332
|
"ariaLabel"?: string | null;
|
|
@@ -2349,6 +2389,7 @@ declare namespace LocalJSX {
|
|
|
2349
2389
|
*/
|
|
2350
2390
|
"activeFill"?: boolean;
|
|
2351
2391
|
/**
|
|
2392
|
+
* Accessible name override. Required for icon-only buttons.
|
|
2352
2393
|
* @default null
|
|
2353
2394
|
*/
|
|
2354
2395
|
"ariaLabel"?: string | null;
|
|
@@ -2694,6 +2735,10 @@ declare namespace LocalJSX {
|
|
|
2694
2735
|
"state"?: ChipState;
|
|
2695
2736
|
}
|
|
2696
2737
|
interface DsDivider {
|
|
2738
|
+
/**
|
|
2739
|
+
* Actual parent surface context. Omit on primary and secondary surfaces.
|
|
2740
|
+
*/
|
|
2741
|
+
"background"?: DividerBackground | undefined;
|
|
2697
2742
|
/**
|
|
2698
2743
|
* Insets the divider from its start/end edges. Accepts spacing token names or any CSS length.
|
|
2699
2744
|
* @default 'none'
|
|
@@ -2714,11 +2759,6 @@ declare namespace LocalJSX {
|
|
|
2714
2759
|
* @default false
|
|
2715
2760
|
*/
|
|
2716
2761
|
"semantic"?: boolean;
|
|
2717
|
-
/**
|
|
2718
|
-
* Surface context so the divider uses the right TokoMo divider token.
|
|
2719
|
-
* @default 'default'
|
|
2720
|
-
*/
|
|
2721
|
-
"surface"?: DividerSurface;
|
|
2722
2762
|
}
|
|
2723
2763
|
interface DsEmptyState {
|
|
2724
2764
|
"message"?: string | undefined;
|
|
@@ -2742,19 +2782,15 @@ declare namespace LocalJSX {
|
|
|
2742
2782
|
interface DsIcon {
|
|
2743
2783
|
/**
|
|
2744
2784
|
* Semantic foreground color token, or a raw CSS var reference.
|
|
2785
|
+
* @default 'inherit'
|
|
2745
2786
|
*/
|
|
2746
|
-
"color"?: IconColor
|
|
2747
|
-
/**
|
|
2748
|
-
* Set `true` to look up from the flag icon set instead of the system icon set.
|
|
2749
|
-
* @default false
|
|
2750
|
-
*/
|
|
2751
|
-
"flag"?: boolean;
|
|
2787
|
+
"color"?: IconColor;
|
|
2752
2788
|
/**
|
|
2753
2789
|
* Accessible label. Sets `role="img"` and `aria-label`. Omit for decorative icons.
|
|
2754
2790
|
*/
|
|
2755
2791
|
"label"?: string | undefined;
|
|
2756
2792
|
/**
|
|
2757
|
-
*
|
|
2793
|
+
* Exact canonical IcoMo export name, including the `Flag` prefix for flags.
|
|
2758
2794
|
* @default ''
|
|
2759
2795
|
*/
|
|
2760
2796
|
"name"?: string;
|
|
@@ -2824,8 +2860,9 @@ declare namespace LocalJSX {
|
|
|
2824
2860
|
interface DsLoader {
|
|
2825
2861
|
/**
|
|
2826
2862
|
* Semantic foreground color token, or a raw CSS var reference. Same tokens as `ds-icon`.
|
|
2863
|
+
* @default 'inherit'
|
|
2827
2864
|
*/
|
|
2828
|
-
"color"?: LoaderColor
|
|
2865
|
+
"color"?: LoaderColor;
|
|
2829
2866
|
/**
|
|
2830
2867
|
* 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.
|
|
2831
2868
|
*/
|
|
@@ -3261,6 +3298,10 @@ declare namespace LocalJSX {
|
|
|
3261
3298
|
"selected"?: boolean;
|
|
3262
3299
|
}
|
|
3263
3300
|
interface DsSkeleton {
|
|
3301
|
+
/**
|
|
3302
|
+
* Actual parent surface context. Omit on primary and secondary surfaces.
|
|
3303
|
+
*/
|
|
3304
|
+
"background"?: SkeletonBackground | undefined;
|
|
3264
3305
|
/**
|
|
3265
3306
|
* Shared control-density size whose height defines the control canvas.
|
|
3266
3307
|
* @default 'md'
|
|
@@ -3281,11 +3322,6 @@ declare namespace LocalJSX {
|
|
|
3281
3322
|
* @default true
|
|
3282
3323
|
*/
|
|
3283
3324
|
"shimmer"?: boolean;
|
|
3284
|
-
/**
|
|
3285
|
-
* Surface context used to select the matching foreground base and shimmer tokens.
|
|
3286
|
-
* @default 'default'
|
|
3287
|
-
*/
|
|
3288
|
-
"surface"?: SkeletonSurface;
|
|
3289
3325
|
/**
|
|
3290
3326
|
* Text metric recipe whose line-height defines the text canvas.
|
|
3291
3327
|
* @default 'text-body-medium'
|
|
@@ -3451,16 +3487,44 @@ declare namespace LocalJSX {
|
|
|
3451
3487
|
"sortState"?: SortState | undefined;
|
|
3452
3488
|
}
|
|
3453
3489
|
interface DsTag {
|
|
3490
|
+
/**
|
|
3491
|
+
* ID of the menu controlled by an interactive Tag.
|
|
3492
|
+
*/
|
|
3493
|
+
"ariaControls"?: string | undefined;
|
|
3454
3494
|
/**
|
|
3455
3495
|
* @default 'faint'
|
|
3456
3496
|
*/
|
|
3457
3497
|
"contrast"?: TagContrast;
|
|
3498
|
+
/**
|
|
3499
|
+
* Controlled open state for the menu triggered by an interactive Tag.
|
|
3500
|
+
* @default false
|
|
3501
|
+
*/
|
|
3502
|
+
"expanded"?: boolean;
|
|
3503
|
+
/**
|
|
3504
|
+
* Canonical icon name rendered before the visible label.
|
|
3505
|
+
* @default ''
|
|
3506
|
+
*/
|
|
3507
|
+
"icon"?: string;
|
|
3458
3508
|
/**
|
|
3459
3509
|
* @default 'neutral'
|
|
3460
3510
|
*/
|
|
3461
3511
|
"intent"?: TagIntent;
|
|
3512
|
+
/**
|
|
3513
|
+
* Render a menu-trigger button with a fixed ChevronUpDown suffix.
|
|
3514
|
+
* @default false
|
|
3515
|
+
*/
|
|
3516
|
+
"interactive"?: boolean;
|
|
3517
|
+
/**
|
|
3518
|
+
* Disable an interactive Tag and apply the shared inactive treatment.
|
|
3519
|
+
* @default false
|
|
3520
|
+
*/
|
|
3521
|
+
"isInactive"?: boolean;
|
|
3462
3522
|
"label": string;
|
|
3463
3523
|
"maxWidth"?: string | number | undefined;
|
|
3524
|
+
/**
|
|
3525
|
+
* Fired when the interactive Tag button is activated.
|
|
3526
|
+
*/
|
|
3527
|
+
"onDsClick"?: (event: DsTagCustomEvent<MouseEvent>) => void;
|
|
3464
3528
|
/**
|
|
3465
3529
|
* @default false
|
|
3466
3530
|
*/
|
|
@@ -3476,7 +3540,10 @@ declare namespace LocalJSX {
|
|
|
3476
3540
|
* @default 'p'
|
|
3477
3541
|
*/
|
|
3478
3542
|
"as"?: TextElement;
|
|
3479
|
-
|
|
3543
|
+
/**
|
|
3544
|
+
* @default 'inherit'
|
|
3545
|
+
*/
|
|
3546
|
+
"color"?: TextColor;
|
|
3480
3547
|
"decoration"?: TextDecoration | undefined;
|
|
3481
3548
|
/**
|
|
3482
3549
|
* Heavier weight + tighter letter-spacing for the variant. `false` (default): one step below emphasis (display semibold, title/body medium, caption medium). `true`: display bold, title/caption semibold, body medium.
|
|
@@ -3729,7 +3796,7 @@ declare namespace LocalJSX {
|
|
|
3729
3796
|
}
|
|
3730
3797
|
interface DsDividerAttributes {
|
|
3731
3798
|
"orientation": DividerOrientation;
|
|
3732
|
-
"
|
|
3799
|
+
"background": DividerBackground | undefined;
|
|
3733
3800
|
"inset": DividerInset;
|
|
3734
3801
|
"length": DividerLength;
|
|
3735
3802
|
"semantic": boolean;
|
|
@@ -3745,9 +3812,8 @@ declare namespace LocalJSX {
|
|
|
3745
3812
|
interface DsIconAttributes {
|
|
3746
3813
|
"name": string;
|
|
3747
3814
|
"size": IconSize;
|
|
3748
|
-
"color": IconColor
|
|
3815
|
+
"color": IconColor;
|
|
3749
3816
|
"label": string | undefined;
|
|
3750
|
-
"flag": boolean;
|
|
3751
3817
|
}
|
|
3752
3818
|
interface DsInputAttributes {
|
|
3753
3819
|
"value": string;
|
|
@@ -3769,7 +3835,7 @@ declare namespace LocalJSX {
|
|
|
3769
3835
|
}
|
|
3770
3836
|
interface DsLoaderAttributes {
|
|
3771
3837
|
"size": LoaderSize;
|
|
3772
|
-
"color": LoaderColor
|
|
3838
|
+
"color": LoaderColor;
|
|
3773
3839
|
"label": string | undefined;
|
|
3774
3840
|
}
|
|
3775
3841
|
interface DsMenuAttributes {
|
|
@@ -3877,7 +3943,7 @@ declare namespace LocalJSX {
|
|
|
3877
3943
|
"width": string;
|
|
3878
3944
|
"rounded": boolean;
|
|
3879
3945
|
"shimmer": boolean;
|
|
3880
|
-
"
|
|
3946
|
+
"background": SkeletonBackground | undefined;
|
|
3881
3947
|
}
|
|
3882
3948
|
interface DsSliderAttributes {
|
|
3883
3949
|
"value": number;
|
|
@@ -3923,16 +3989,21 @@ declare namespace LocalJSX {
|
|
|
3923
3989
|
}
|
|
3924
3990
|
interface DsTagAttributes {
|
|
3925
3991
|
"label": string;
|
|
3992
|
+
"icon": string;
|
|
3926
3993
|
"intent": TagIntent;
|
|
3927
3994
|
"contrast": TagContrast;
|
|
3928
3995
|
"size": TagSize;
|
|
3929
3996
|
"rounded": boolean;
|
|
3930
3997
|
"maxWidth": string;
|
|
3998
|
+
"interactive": boolean;
|
|
3999
|
+
"expanded": boolean;
|
|
4000
|
+
"ariaControls": string | undefined;
|
|
4001
|
+
"isInactive": boolean;
|
|
3931
4002
|
}
|
|
3932
4003
|
interface DsTextAttributes {
|
|
3933
4004
|
"variant": TextVariant;
|
|
3934
4005
|
"emphasis": boolean;
|
|
3935
|
-
"color": TextColor
|
|
4006
|
+
"color": TextColor;
|
|
3936
4007
|
"decoration": TextDecoration | undefined;
|
|
3937
4008
|
"italic": boolean;
|
|
3938
4009
|
"shimmer": boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-mo/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "CompoMo — composable web components styled with TokoMo design tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"types": "./dist/types/components.d.ts",
|
|
50
50
|
"import": "./dist/components/index.js"
|
|
51
51
|
},
|
|
52
|
-
"./
|
|
53
|
-
"types": "./dist/lib/
|
|
54
|
-
"import": "./dist/lib/
|
|
52
|
+
"./shell": {
|
|
53
|
+
"types": "./dist/lib/shell/index.d.ts",
|
|
54
|
+
"import": "./dist/lib/shell/index.js"
|
|
55
55
|
},
|
|
56
56
|
"./utils": {
|
|
57
57
|
"types": "./dist/lib/utils/index.d.ts",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as a,h as n,a as i,t as r}from"./index.js";import{d as t}from"./p-qawuX6gT.js";const d="--_badge-gradient-position";function s(e){const a=e.closest("ds-app-shell");return a!==null&&a.getAttribute("gradient-preset")!=="none"}const o=()=>`.sc-ds-badge-h{display:inline-flex;align-items:center;justify-content:center;pointer-events:none;vertical-align:middle;--_badge-bg:var(--color-background-bold-brand);--_badge-fg:var(--color-foreground-on-bold-background-primary);--_badge-ring:var(--color-background-secondary);--_badge-ring-width:var(--dimension-stroke-width-018)}.badge__mark.sc-ds-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;color:var(--_badge-fg);background:var(--_badge-bg);box-shadow:0 0 0 var(--_badge-ring-width) var(--_badge-ring);white-space:nowrap}.badge--dot.sc-ds-badge-h .badge__mark.sc-ds-badge{width:var(--dimension-size-075);height:var(--dimension-size-075);border-radius:var(--dimension-radius-half)}.badge--counter.sc-ds-badge-h .badge__mark.sc-ds-badge{width:var(--dimension-size-150);height:var(--dimension-size-150);padding:0;border-radius:var(--dimension-radius-half)}.badge--on-gradient-background.sc-ds-badge-h .badge__mark.sc-ds-badge{position:relative;z-index:0;box-shadow:none;isolation:isolate}.badge--on-gradient-background.sc-ds-badge-h .badge__mark.sc-ds-badge::before,.badge--on-gradient-background.sc-ds-badge-h .badge__mark.sc-ds-badge::after{content:'';position:absolute;inset:calc(-1 * var(--_badge-ring-width));border-radius:inherit;box-sizing:border-box;padding:var(--_badge-ring-width);pointer-events:none;-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask-composite:exclude}.badge--on-gradient-background.sc-ds-badge-h .badge__mark.sc-ds-badge::before{z-index:-2;background-color:var(--_badge-ring)}.badge--on-gradient-background.sc-ds-badge-h .badge__mark.sc-ds-badge::after{z-index:-1;background-image:var(--ds-shell-gradient-image, none);background-size:var(--ds-shell-gradient-size, auto);background-position:0 0;background-repeat:no-repeat;background-attachment:fixed;opacity:var(--ds-shell-gradient-opacity, 1)}`;const g={default:"var(--color-background-secondary)",primary:"var(--color-background-primary)",secondary:"var(--color-background-secondary)",medium:"var(--color-background-medium-neutral)",bold:"var(--color-background-bold-neutral)",strong:"var(--color-background-strong-neutral)",navigation:"var(--color-navigation-background)","always-dark":"var(--color-always-dark-background)"};const c=e(class e extends a{constructor(e){super();if(e!==false){this.__registerHost()}this.variant="counter";this.count=0;this.max=9;this.surface="default";this.gradientBackground=false;this.gradientLayoutVersion=0;this.gradientObserver=null;this.gradientWindowListener=null}componentDidLoad(){this.enableShellGradientRingIfNeeded()}disconnectedCallback(){this.unbindGradientRingSync()}gradientBackgroundChanged(){this.bindGradientRingSync()}enableShellGradientRingIfNeeded(){if(!this.gradientBackground&&s(this.el)){this.gradientBackground=true}if(this.gradientBackground){this.bindGradientRingSync()}}bindGradientRingSync(){this.unbindGradientRingSync();if(!this.gradientBackground)return;const e=()=>{this.gradientLayoutVersion+=1};e();this.gradientWindowListener=e;window.addEventListener("resize",e);if(typeof ResizeObserver!=="undefined"){this.gradientObserver=new ResizeObserver(e);this.gradientObserver.observe(this.el);const a=this.el.closest("ds-app-shell");if(a)this.gradientObserver.observe(a);const n=this.el.closest("ds-bar-nav");if(n)this.gradientObserver.observe(n);const i=this.el.closest("ds-panel-nav");if(i)this.gradientObserver.observe(i)}}unbindGradientRingSync(){if(this.gradientWindowListener){window.removeEventListener("resize",this.gradientWindowListener);this.gradientWindowListener=null}this.gradientObserver?.disconnect();this.gradientObserver=null}ringHostStyle(e){const a={"--_badge-ring":e};if(!this.gradientBackground||!s(this.el))return a;a[d]="0 0";return a}render(){const e=this.variant==="dot";if(!e&&this.count===0)return n(i,{style:{display:"none"}});const a=this.count>this.max?"+":String(this.count);const r=this.label??(e?"Notification":String(this.count));const t=this.background??g[this.surface];return n(i,{class:{badge:true,"badge--counter":!e,"badge--dot":e,"badge--on-gradient-background":this.gradientBackground},"aria-label":r,style:this.ringHostStyle(t)},n("span",{class:"badge__mark","aria-hidden":"true"},!e&&n("ds-text",{as:"span",variant:"text-caption",emphasis:true,color:"inherit"},a)))}get el(){return this}static get watchers(){return{gradientBackground:[{gradientBackgroundChanged:0}]}}static get style(){return o()}},[2,"ds-badge",{variant:[1],count:[2],max:[2],surface:[1],background:[1],gradientBackground:[516,"gradient-background"],label:[1],gradientLayoutVersion:[32]},undefined,{gradientBackground:[{gradientBackgroundChanged:0}]}]);function b(){if(typeof customElements==="undefined"){return}const e=["ds-badge","ds-text"];e.forEach((e=>{switch(e){case"ds-badge":if(!customElements.get(r(e))){customElements.define(r(e),c)}break;case"ds-text":if(!customElements.get(r(e))){t()}break}}))}b();export{c as B,b as d};
|
|
2
|
-
//# sourceMappingURL=p-C7yzdJNM.js.map
|