@ds-mo/ui 6.0.0 → 7.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 +3 -3
- package/dist/.build-stamp +1 -1
- package/dist/agent.json +401 -103
- package/dist/angular/ds-button-filled.d.ts +1 -1
- package/dist/angular/ds-button-filled.js +3 -3
- package/dist/angular/ds-button-unfilled.d.ts +1 -1
- package/dist/angular/ds-button-unfilled.js +3 -3
- package/dist/angular/ds-chip.d.ts +1 -1
- package/dist/angular/ds-chip.js +3 -3
- package/dist/angular/ds-panel-sub-nav.d.ts +15 -0
- package/dist/angular/{ds-tab-group-nav.js → ds-panel-sub-nav.js} +13 -17
- package/dist/angular/ds-tab-group.d.ts +1 -1
- package/dist/angular/ds-tab-group.js +3 -3
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +1 -1
- package/dist/angular/proxies.d.ts +1 -1
- package/dist/angular/proxies.js +1 -1
- 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-setting.js.map +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-legend.js.map +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-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-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-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-tab-group-nav.d.ts → ds-panel-sub-nav.d.ts} +4 -4
- package/dist/components/ds-panel-sub-nav.js +2 -0
- package/dist/components/ds-panel-sub-nav.js.map +1 -0
- 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-select.js.map +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-switch.js +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-tab-group.js.map +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-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-BmiNX9Mc.js → p-AIFkzp4M.js} +2 -2
- package/dist/components/p-B8ERbwc9.js +2 -0
- package/dist/components/{p-DhgDNluD.js.map → p-B8ERbwc9.js.map} +1 -1
- package/dist/components/p-BQq26pt9.js.map +1 -1
- package/dist/components/{p-cgo-rgl4.js → p-C7yzdJNM.js} +2 -2
- package/dist/components/{p-9Qu1ls2y.js → p-CGovlfKQ.js} +2 -2
- package/dist/components/{p-DkIbxCpi.js → p-CeyijE0j.js} +2 -2
- package/dist/components/p-DDO5W45N.js +2 -0
- package/dist/components/p-DDO5W45N.js.map +1 -0
- package/dist/components/p-DQy_H_hL.js +2 -0
- package/dist/components/p-DQy_H_hL.js.map +1 -0
- package/dist/components/p-DYotx2VC.js +2 -0
- package/dist/components/{p-B-cWYMqs.js.map → p-DYotx2VC.js.map} +1 -1
- package/dist/components/p-Dh4BBuI3.js +2 -0
- package/dist/components/p-Dh4BBuI3.js.map +1 -0
- package/dist/components/{p-bl7d1jB2.js → p-Dt1oDMJ6.js} +2 -2
- package/dist/components/{p-_OGE_E6L.js → p-KRZefifE.js} +2 -2
- package/dist/components/{p-BeIuJQO9.js → p-Ujv0jqbw.js} +2 -2
- package/dist/components/p-drBA73M_.js.map +1 -1
- package/dist/components/{p-CWd8L7Fk.js → p-qawuX6gT.js} +2 -2
- package/dist/docs/components.json +432 -669
- package/dist/react/components.d.ts +1 -1
- package/dist/react/components.js +1 -1
- package/dist/react/ds-panel-sub-nav.d.ts +12 -0
- package/dist/react/ds-panel-sub-nav.js +12 -0
- package/dist/types/components/BarNav/BarNav.d.ts +10 -4
- package/dist/types/components/ButtonFilled/ButtonFilled.d.ts +2 -0
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +4 -9
- package/dist/types/components/ButtonUnfilled/index.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +0 -5
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/PanelSubNav/PanelSubNav.d.ts +27 -0
- package/dist/types/components/PanelSubNav/panel-sub-nav-types.d.ts +10 -0
- package/dist/types/components/PanelTools/PanelTools.d.ts +2 -0
- package/dist/types/components/TabGroup/TabGroup.d.ts +3 -4
- package/dist/types/components/TabGroup/tab-item-utils.d.ts +14 -0
- package/dist/types/components.d.ts +109 -152
- package/package.json +4 -4
- package/dist/angular/ds-tab-group-nav.d.ts +0 -20
- package/dist/components/ds-tab-group-nav.js +0 -2
- package/dist/components/ds-tab-group-nav.js.map +0 -1
- package/dist/components/p-B-cWYMqs.js +0 -2
- package/dist/components/p-CxOQaZ4f.js +0 -2
- package/dist/components/p-CxOQaZ4f.js.map +0 -1
- package/dist/components/p-D5wc8lKR.js +0 -2
- package/dist/components/p-D5wc8lKR.js.map +0 -1
- package/dist/components/p-DPxfMUfH.js +0 -2
- package/dist/components/p-DPxfMUfH.js.map +0 -1
- package/dist/components/p-DhgDNluD.js +0 -2
- package/dist/react/ds-tab-group-nav.d.ts +0 -13
- package/dist/react/ds-tab-group-nav.js +0 -15
- package/dist/types/components/BarNav/bar-nav-dom-utils.d.ts +0 -11
- package/dist/types/components/TabGroupNav/TabGroupNav.d.ts +0 -46
- /package/dist/components/{p-BmiNX9Mc.js.map → p-AIFkzp4M.js.map} +0 -0
- /package/dist/components/{p-cgo-rgl4.js.map → p-C7yzdJNM.js.map} +0 -0
- /package/dist/components/{p-9Qu1ls2y.js.map → p-CGovlfKQ.js.map} +0 -0
- /package/dist/components/{p-DkIbxCpi.js.map → p-CeyijE0j.js.map} +0 -0
- /package/dist/components/{p-bl7d1jB2.js.map → p-Dt1oDMJ6.js.map} +0 -0
- /package/dist/components/{p-_OGE_E6L.js.map → p-KRZefifE.js.map} +0 -0
- /package/dist/components/{p-BeIuJQO9.js.map → p-Ujv0jqbw.js.map} +0 -0
- /package/dist/components/{p-CWd8L7Fk.js.map → p-qawuX6gT.js.map} +0 -0
|
@@ -27,6 +27,7 @@ export { DsMenu } from "./ds-menu.js";
|
|
|
27
27
|
export { DsModal } from "./ds-modal.js";
|
|
28
28
|
export { DsPagination } from "./ds-pagination.js";
|
|
29
29
|
export { DsPanelNav } from "./ds-panel-nav.js";
|
|
30
|
+
export { DsPanelSubNav } from "./ds-panel-sub-nav.js";
|
|
30
31
|
export { DsPanelTools } from "./ds-panel-tools.js";
|
|
31
32
|
export { DsRadioGroup } from "./ds-radio-group.js";
|
|
32
33
|
export { DsSelect } from "./ds-select.js";
|
|
@@ -35,7 +36,6 @@ export { DsShellGradientSwatch } from "./ds-shell-gradient-swatch.js";
|
|
|
35
36
|
export { DsSkeleton } from "./ds-skeleton.js";
|
|
36
37
|
export { DsSlider } from "./ds-slider.js";
|
|
37
38
|
export { DsSwitch } from "./ds-switch.js";
|
|
38
|
-
export { DsTabGroupNav } from "./ds-tab-group-nav.js";
|
|
39
39
|
export { DsTabGroup } from "./ds-tab-group.js";
|
|
40
40
|
export { DsTable } from "./ds-table.js";
|
|
41
41
|
export { DsTag } from "./ds-tag.js";
|
package/dist/react/components.js
CHANGED
|
@@ -28,6 +28,7 @@ export { DsMenu } from "./ds-menu.js";
|
|
|
28
28
|
export { DsModal } from "./ds-modal.js";
|
|
29
29
|
export { DsPagination } from "./ds-pagination.js";
|
|
30
30
|
export { DsPanelNav } from "./ds-panel-nav.js";
|
|
31
|
+
export { DsPanelSubNav } from "./ds-panel-sub-nav.js";
|
|
31
32
|
export { DsPanelTools } from "./ds-panel-tools.js";
|
|
32
33
|
export { DsRadioGroup } from "./ds-radio-group.js";
|
|
33
34
|
export { DsSelect } from "./ds-select.js";
|
|
@@ -36,7 +37,6 @@ export { DsShellGradientSwatch } from "./ds-shell-gradient-swatch.js";
|
|
|
36
37
|
export { DsSkeleton } from "./ds-skeleton.js";
|
|
37
38
|
export { DsSlider } from "./ds-slider.js";
|
|
38
39
|
export { DsSwitch } from "./ds-switch.js";
|
|
39
|
-
export { DsTabGroupNav } from "./ds-tab-group-nav.js";
|
|
40
40
|
export { DsTabGroup } from "./ds-tab-group.js";
|
|
41
41
|
export { DsTable } from "./ds-table.js";
|
|
42
42
|
export { DsTag } from "./ds-tag.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type DsPanelSubNavCustomEvent } from "@ds-mo/ui";
|
|
7
|
+
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
|
+
import { DsPanelSubNav as DsPanelSubNavElement } from "@ds-mo/ui/dist/components/ds-panel-sub-nav.js";
|
|
9
|
+
export type DsPanelSubNavEvents = {
|
|
10
|
+
onDsChange: EventName<DsPanelSubNavCustomEvent<string>>;
|
|
11
|
+
};
|
|
12
|
+
export declare const DsPanelSubNav: StencilReactComponent<DsPanelSubNavElement, DsPanelSubNavEvents, Components.DsPanelSubNav>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DsPanelSubNav as DsPanelSubNavElement, defineCustomElement as defineDsPanelSubNav } from "@ds-mo/ui/dist/components/ds-panel-sub-nav.js";
|
|
5
|
+
export const DsPanelSubNav = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'ds-panel-sub-nav',
|
|
7
|
+
elementClass: DsPanelSubNavElement,
|
|
8
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
+
react: React,
|
|
10
|
+
events: { onDsChange: 'dsChange' },
|
|
11
|
+
defineCustomElement: defineDsPanelSubNav
|
|
12
|
+
});
|
|
@@ -37,6 +37,7 @@ export declare class BarNav {
|
|
|
37
37
|
private overflowTabs;
|
|
38
38
|
private menuInitialFocusVisible;
|
|
39
39
|
private overflowRovingFocused;
|
|
40
|
+
private focusedTabId;
|
|
40
41
|
private static readonly HOST_PROP_SYNC_BUDGET;
|
|
41
42
|
private static readonly INTRINSIC_WIDTH_RETRY_MAX;
|
|
42
43
|
private static readonly TAB_LAYOUT_COMMIT_MAX_FRAMES;
|
|
@@ -44,8 +45,8 @@ export declare class BarNav {
|
|
|
44
45
|
private headerEl;
|
|
45
46
|
private triggerEl;
|
|
46
47
|
private menuEl;
|
|
47
|
-
private
|
|
48
|
-
private
|
|
48
|
+
private visibleTabListEl;
|
|
49
|
+
private probeTabListEl;
|
|
49
50
|
private resizeObserver;
|
|
50
51
|
private intrinsicWidthRetryCount;
|
|
51
52
|
private tabLayoutPendingFrames;
|
|
@@ -58,7 +59,9 @@ export declare class BarNav {
|
|
|
58
59
|
/** Section waiting for URL + tabs to catch up after a cross-area navigation. */
|
|
59
60
|
private pendingSection;
|
|
60
61
|
private get effectiveValue();
|
|
62
|
+
private get renderedSelectableTabs();
|
|
61
63
|
private get hasOverflowTabs();
|
|
64
|
+
private syncFocusedTabId;
|
|
62
65
|
private digestTabsConfig;
|
|
63
66
|
private resetTabOverflowLayout;
|
|
64
67
|
onHostPropsChange(): void;
|
|
@@ -101,12 +104,15 @@ export declare class BarNav {
|
|
|
101
104
|
private selectTab;
|
|
102
105
|
/** Move focus to the selected tab in the visible tab group (after expand). */
|
|
103
106
|
private focusVisibleSelectedTab;
|
|
104
|
-
private
|
|
107
|
+
private focusVisibleTab;
|
|
108
|
+
private focusLastVisibleTab;
|
|
109
|
+
private findEnabledVisibleTab;
|
|
110
|
+
private handleTabKeyDown;
|
|
105
111
|
private toggleTabMenu;
|
|
106
|
-
private handleTabRovingExit;
|
|
107
112
|
private handleOverflowFocus;
|
|
108
113
|
private handleOverflowBlur;
|
|
109
114
|
private handleTriggerKeyDown;
|
|
115
|
+
private renderTabList;
|
|
110
116
|
render(): any;
|
|
111
117
|
}
|
|
112
118
|
//# sourceMappingURL=BarNav.d.ts.map
|
|
@@ -29,6 +29,8 @@ export declare class ButtonFilled {
|
|
|
29
29
|
contrast: ButtonFilledContrast;
|
|
30
30
|
/** Disables interaction. */
|
|
31
31
|
isInactive: boolean;
|
|
32
|
+
/** Shows an inline loader and prevents interaction without applying inactive opacity. */
|
|
33
|
+
isLoading: boolean;
|
|
32
34
|
/** Native button type. */
|
|
33
35
|
type: 'button' | 'submit' | 'reset';
|
|
34
36
|
ariaLabel: string | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { type ControlWidth } from '../../utils';
|
|
3
|
-
export type
|
|
4
|
-
export type ButtonUnfilledBackground = 'always-dark' | 'navigation';
|
|
3
|
+
export type ButtonUnfilledBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'translucent' | 'inverted' | 'media' | 'always-dark';
|
|
5
4
|
export type ButtonUnfilledVariant = 'icon' | 'label' | 'icon-label';
|
|
6
5
|
export type ButtonUnfilledSize = 'md' | 'sm' | 'xs';
|
|
7
6
|
export type ButtonUnfilledWidth = ControlWidth;
|
|
@@ -34,14 +33,11 @@ export declare class ButtonUnfilled {
|
|
|
34
33
|
dot: boolean;
|
|
35
34
|
/** Disables interaction. */
|
|
36
35
|
isInactive: boolean;
|
|
36
|
+
/** Shows an inline loader and prevents interaction without applying inactive opacity. */
|
|
37
|
+
isLoading: boolean;
|
|
37
38
|
/** Native button type. */
|
|
38
39
|
type: 'button' | 'submit' | 'reset';
|
|
39
|
-
/**
|
|
40
|
-
* Foreground and interaction tokens when the button sits on a contrasting parent
|
|
41
|
-
* background (default, medium, bold, or strong).
|
|
42
|
-
*/
|
|
43
|
-
backgroundContrast?: ButtonUnfilledOnBackgroundContrast;
|
|
44
|
-
/** Parent surface context for navigation and always-dark chrome. */
|
|
40
|
+
/** Actual parent surface context. Omit on primary and secondary surfaces. */
|
|
45
41
|
background: ButtonUnfilledBackground | undefined;
|
|
46
42
|
ariaLabel: string | null;
|
|
47
43
|
controls: string | undefined;
|
|
@@ -58,7 +54,6 @@ export declare class ButtonUnfilled {
|
|
|
58
54
|
private buttonEl;
|
|
59
55
|
setFocus(): Promise<void>;
|
|
60
56
|
private handleClick;
|
|
61
|
-
private effectiveContrast;
|
|
62
57
|
private get showIcon();
|
|
63
58
|
private get showLabel();
|
|
64
59
|
private get showDot();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ButtonUnfilledBackground,
|
|
1
|
+
export type { ButtonUnfilledBackground, ButtonUnfilledSize, ButtonUnfilledVariant, ButtonUnfilledWidth, } from './ButtonUnfilled';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,7 +8,6 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
8
8
|
*/
|
|
9
9
|
export type ChipState = 'default' | 'active' | 'error' | 'caution';
|
|
10
10
|
export type ChipSize = 'md' | 'sm' | 'xs';
|
|
11
|
-
export type ChipBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'always-dark';
|
|
12
11
|
/**
|
|
13
12
|
* Removable chip — same density recipe as Tag, but colored by semantic `state`
|
|
14
13
|
* (not intent × contrast). Not a toggle/select control; the only intentional
|
|
@@ -20,12 +19,8 @@ export declare class Chip {
|
|
|
20
19
|
state: ChipState;
|
|
21
20
|
size: ChipSize;
|
|
22
21
|
rounded: boolean;
|
|
23
|
-
/** When true (default), shows the trailing dismiss control. */
|
|
24
|
-
removable: boolean;
|
|
25
22
|
maxWidth: string | number | undefined;
|
|
26
23
|
isInactive: boolean;
|
|
27
|
-
/** Surface context for interaction-fill tokens when the chip sits on a non-default surface. */
|
|
28
|
-
background: ChipBackground | undefined;
|
|
29
24
|
/** Accessible remove action. Use `{label}` as the chip-label placeholder. */
|
|
30
25
|
removeLabel: string;
|
|
31
26
|
/** Fired when the remove button is clicked. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ChipState, ChipSize
|
|
1
|
+
export type { ChipState, ChipSize } from './Chip';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { PanelSubNavItem } from './panel-sub-nav-types';
|
|
3
|
+
export type PanelSubNavBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'translucent' | 'inverted' | 'media' | 'always-dark';
|
|
4
|
+
export declare class PanelSubNav {
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
/** Required selected item id when enabled items exist. Keep synchronized with the visible panel. */
|
|
7
|
+
value: string;
|
|
8
|
+
/**
|
|
9
|
+
* Local panel tabs. Assign this array through the JavaScript property.
|
|
10
|
+
* Replace the array reference when items change.
|
|
11
|
+
*/
|
|
12
|
+
items: PanelSubNavItem[];
|
|
13
|
+
/** Actual parent surface context. Omit on primary and secondary surfaces. */
|
|
14
|
+
background: PanelSubNavBackground | undefined;
|
|
15
|
+
ariaLabel: string | null;
|
|
16
|
+
ariaLabelledby: string | undefined;
|
|
17
|
+
dsChange: EventEmitter<string>;
|
|
18
|
+
private get enabledItems();
|
|
19
|
+
private get focusableId();
|
|
20
|
+
private selectItem;
|
|
21
|
+
private focusItem;
|
|
22
|
+
onValueChange(next: string, previous: string | undefined): void;
|
|
23
|
+
private findEnabled;
|
|
24
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=PanelSubNav.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PanelSubNavItem {
|
|
2
|
+
/** Unique tab id. Also used by the controlled panel's aria-labelledby. */
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** ID of the tabpanel controlled by this item. */
|
|
6
|
+
panelId: string;
|
|
7
|
+
/** Prevent selection and remove the item from keyboard navigation. */
|
|
8
|
+
isInactive?: boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=panel-sub-nav-types.d.ts.map
|
|
@@ -37,6 +37,8 @@ export declare class PanelTools {
|
|
|
37
37
|
private motionEnableGeneration;
|
|
38
38
|
private transitionGeneration;
|
|
39
39
|
private transitionFallbackTimer;
|
|
40
|
+
/** Ignores the old transition's terminal event when reversing direction. */
|
|
41
|
+
private ignoreReplacementTerminal;
|
|
40
42
|
private get railItems();
|
|
41
43
|
private get orderedRailItems();
|
|
42
44
|
disconnectedCallback(): void;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { type
|
|
3
|
-
export type TabBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'always-dark';
|
|
2
|
+
import { type TabGroupItem } from './tab-item-utils';
|
|
3
|
+
export type TabBackground = 'faint' | 'medium' | 'bold' | 'strong' | 'translucent' | 'inverted' | 'media' | 'always-dark';
|
|
4
4
|
export declare class TabGroup {
|
|
5
5
|
el: HTMLElement;
|
|
6
6
|
value: string;
|
|
7
|
-
tabs:
|
|
7
|
+
tabs: TabGroupItem[];
|
|
8
8
|
background: TabBackground | undefined;
|
|
9
9
|
ariaLabel: string | null;
|
|
10
10
|
ariaLabelledby: string | undefined;
|
|
11
|
-
orientation: 'horizontal' | 'vertical';
|
|
12
11
|
dsChange: EventEmitter<string>;
|
|
13
12
|
private get selectableTabs();
|
|
14
13
|
private selectTab;
|
|
@@ -12,6 +12,20 @@ export interface TabItemTab {
|
|
|
12
12
|
dot?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export type TabItem = TabItemTab | TabItemDivider;
|
|
15
|
+
export type TabGroupItemVariant = 'label' | 'icon' | 'icon-label';
|
|
16
|
+
export interface TabGroupItemLabel extends TabItemTab {
|
|
17
|
+
variant?: 'label';
|
|
18
|
+
icon?: never;
|
|
19
|
+
}
|
|
20
|
+
export interface TabGroupItemIcon extends TabItemTab {
|
|
21
|
+
variant: 'icon';
|
|
22
|
+
icon: string;
|
|
23
|
+
}
|
|
24
|
+
export interface TabGroupItemIconLabel extends TabItemTab {
|
|
25
|
+
variant: 'icon-label';
|
|
26
|
+
icon: string;
|
|
27
|
+
}
|
|
28
|
+
export type TabGroupItem = TabGroupItemLabel | TabGroupItemIcon | TabGroupItemIconLabel | TabItemDivider;
|
|
15
29
|
export declare function isTabDivider(item: TabItem): item is TabItemDivider;
|
|
16
30
|
/** Tab entries that participate in selection, keyboard nav, and URL matching. */
|
|
17
31
|
export declare function getSelectableTabs(tabs: TabItem[]): TabItemTab[];
|