@fluentui/web-components 3.0.0-beta.52 → 3.0.0-beta.54
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/CHANGELOG.md +20 -2
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/tablist/define.d.ts +1 -0
- package/dist/dts/tablist/index.d.ts +5 -0
- package/dist/dts/tablist/tablist.bench.d.ts +3 -0
- package/dist/dts/tablist/tablist.d.ts +191 -0
- package/dist/dts/tablist/tablist.definition.d.ts +7 -0
- package/dist/dts/tablist/tablist.options.d.ts +44 -0
- package/dist/dts/tablist/tablist.styles.d.ts +4 -0
- package/dist/dts/tablist/tablist.template.d.ts +5 -0
- package/dist/dts/theme/set-theme.d.ts +12 -2
- package/dist/dts/utils/focusable-element.d.ts +3 -0
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tablist/define.js +4 -0
- package/dist/esm/tablist/define.js.map +1 -0
- package/dist/esm/tablist/index.js +6 -0
- package/dist/esm/tablist/index.js.map +1 -0
- package/dist/esm/tablist/tablist.bench.js +21 -0
- package/dist/esm/tablist/tablist.bench.js.map +1 -0
- package/dist/esm/tablist/tablist.definition.js +15 -0
- package/dist/esm/tablist/tablist.definition.js.map +1 -0
- package/dist/esm/tablist/tablist.js +407 -0
- package/dist/esm/tablist/tablist.js.map +1 -0
- package/dist/esm/tablist/tablist.options.js +24 -0
- package/dist/esm/tablist/tablist.options.js.map +1 -0
- package/dist/esm/tablist/tablist.styles.js +194 -0
- package/dist/esm/tablist/tablist.styles.js.map +1 -0
- package/dist/esm/tablist/tablist.template.js +10 -0
- package/dist/esm/tablist/tablist.template.js.map +1 -0
- package/dist/esm/theme/set-theme.js +23 -10
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/utils/focusable-element.js +10 -0
- package/dist/esm/utils/focusable-element.js.map +1 -0
- package/dist/web-components.d.ts +269 -2
- package/dist/web-components.js +928 -520
- package/dist/web-components.min.js +290 -287
- package/package.json +2 -1
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import * as tokens from './design-tokens.js';
|
|
2
|
-
const tokenNames = Object.keys(tokens);
|
|
3
1
|
const SUPPORTS_REGISTER_PROPERTY = 'registerProperty' in CSS;
|
|
4
2
|
const SUPPORTS_ADOPTED_STYLE_SHEETS = 'adoptedStyleSheets' in document;
|
|
5
3
|
const themeStyleSheet = new CSSStyleSheet();
|
|
6
4
|
const themeStyleTextMap = new Map();
|
|
7
5
|
/**
|
|
8
|
-
* Sets the theme tokens
|
|
9
|
-
*
|
|
6
|
+
* Sets the theme tokens as CSS Custom Properties. The Custom Properties are
|
|
7
|
+
* set in a constructed stylesheet on `document.adoptedStyleSheets` if
|
|
8
|
+
* supported, and on `document.documentElement.style` as a fallback.
|
|
9
|
+
*
|
|
10
|
+
* @param theme - Flat object of theme tokens. Each object entry must follow
|
|
11
|
+
* these rules: the key is the name of the token, usually in camel case, it
|
|
12
|
+
* must be a valid CSS Custom Property name WITHOUT the starting two dashes
|
|
13
|
+
* (`--`), the two dashes are added inside the function; the value must be
|
|
14
|
+
* a valid CSS value, e.g. it cannot contain semicolons (`;`).
|
|
15
|
+
* Note that this argument is not limited to existing theme objects (from
|
|
16
|
+
* `@fluentui/tokens`), you can pass in an arbitrary theme object as long
|
|
17
|
+
* as each entry’s value is either a string or a number.
|
|
10
18
|
* @internal
|
|
11
19
|
*/
|
|
12
20
|
export const setTheme = (theme) => {
|
|
@@ -20,18 +28,23 @@ export const setTheme = (theme) => {
|
|
|
20
28
|
}
|
|
21
29
|
if (!themeStyleTextMap.has(theme)) {
|
|
22
30
|
const tokenDeclarations = [];
|
|
23
|
-
for (const
|
|
31
|
+
for (const [tokenName, tokenValue] of Object.entries(theme)) {
|
|
32
|
+
if (typeof tokenValue !== 'string' && Number.isNaN(tokenValue)) {
|
|
33
|
+
throw new Error(`"${tokenName}" must be a string or a number.`);
|
|
34
|
+
}
|
|
35
|
+
const name = `--${tokenName}`;
|
|
36
|
+
const initialValue = tokenValue.toString();
|
|
24
37
|
if (SUPPORTS_REGISTER_PROPERTY) {
|
|
25
38
|
try {
|
|
26
39
|
CSS.registerProperty({
|
|
27
|
-
name
|
|
40
|
+
name,
|
|
41
|
+
initialValue,
|
|
28
42
|
inherits: true,
|
|
29
|
-
initialValue: theme[t],
|
|
30
43
|
});
|
|
31
44
|
}
|
|
32
45
|
catch { }
|
|
33
46
|
}
|
|
34
|
-
tokenDeclarations.push(
|
|
47
|
+
tokenDeclarations.push(`${name}:${initialValue};`);
|
|
35
48
|
}
|
|
36
49
|
themeStyleTextMap.set(theme, `html{${tokenDeclarations.join('')}}`);
|
|
37
50
|
}
|
|
@@ -46,8 +59,8 @@ export const setTheme = (theme) => {
|
|
|
46
59
|
* @internal
|
|
47
60
|
*/
|
|
48
61
|
export const setThemeFor = (element, theme) => {
|
|
49
|
-
for (const
|
|
50
|
-
element.style.setProperty(`--${
|
|
62
|
+
for (const [tokenName, tokenValue] of Object.entries(theme)) {
|
|
63
|
+
element.style.setProperty(`--${tokenName}`, tokenValue.toString());
|
|
51
64
|
}
|
|
52
65
|
};
|
|
53
66
|
//# sourceMappingURL=set-theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-theme.js","sourceRoot":"","sources":["../../../src/theme/set-theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-theme.js","sourceRoot":"","sources":["../../../src/theme/set-theme.ts"],"names":[],"mappings":"AAOA,MAAM,0BAA0B,GAAG,kBAAkB,IAAI,GAAG,CAAC;AAC7D,MAAM,6BAA6B,GAAG,oBAAoB,IAAI,QAAQ,CAAC;AACvE,MAAM,eAAe,GAAG,IAAI,aAAa,EAAE,CAAC;AAC5C,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAiB,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,4EAA4E;IAC5E,yEAAyE;IACzE,2EAA2E;IAC3E,oBAAoB;IACpB,IAAI,CAAC,6BAA6B,EAAE;QAClC,WAAW,CAAC,QAAQ,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC7C,OAAO;KACR;IAED,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACjC,MAAM,iBAAiB,GAAa,EAAE,CAAC;QAEvC,KAAK,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC3D,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;gBAC9D,MAAM,IAAI,KAAK,CAAC,IAAI,SAAS,iCAAiC,CAAC,CAAC;aACjE;YAED,MAAM,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC3C,IAAI,0BAA0B,EAAE;gBAC9B,IAAI;oBACF,GAAG,CAAC,gBAAgB,CAAC;wBACnB,IAAI;wBACJ,YAAY;wBACZ,QAAQ,EAAE,IAAI;qBACf,CAAC,CAAC;iBACJ;gBAAC,MAAM,GAAE;aACX;YACD,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,YAAY,GAAG,CAAC,CAAC;SACpD;QAED,iBAAiB,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;KACrE;IAED,8CAA8C;IAC9C,eAAe,CAAC,WAAW,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAE,CAAC,CAAC;IAE3D,gEAAgE;IAChE,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QAC1D,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KACnD;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAoB,EAAE,KAAY,EAAE,EAAE;IAChE,KAAK,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC3D,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;KACpE;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const isARIADisabledElement = (el) => {
|
|
2
|
+
return el.getAttribute('aria-disabled') === 'true';
|
|
3
|
+
};
|
|
4
|
+
export const isHiddenElement = (el) => {
|
|
5
|
+
return el.hasAttribute('hidden');
|
|
6
|
+
};
|
|
7
|
+
export const isFocusableElement = (el) => {
|
|
8
|
+
return !isARIADisabledElement(el) && !isHiddenElement(el);
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=focusable-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focusable-element.js","sourceRoot":"","sources":["../../../src/utils/focusable-element.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAW,EAAW,EAAE;IAC5D,OAAO,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC;AACrD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAW,EAAW,EAAE;IACtD,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAW,EAAW,EAAE;IACzD,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;AAC5D,CAAC,CAAC"}
|
package/dist/web-components.d.ts
CHANGED
|
@@ -1839,6 +1839,99 @@ export declare class BaseSpinner extends FASTElement {
|
|
|
1839
1839
|
constructor();
|
|
1840
1840
|
}
|
|
1841
1841
|
|
|
1842
|
+
/**
|
|
1843
|
+
* A Tablist element that wraps a collection of tab elements
|
|
1844
|
+
* @public
|
|
1845
|
+
*/
|
|
1846
|
+
export declare class BaseTablist extends FASTElement {
|
|
1847
|
+
/**
|
|
1848
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
1849
|
+
*
|
|
1850
|
+
* @internal
|
|
1851
|
+
*/
|
|
1852
|
+
elementInternals: ElementInternals;
|
|
1853
|
+
/**
|
|
1854
|
+
* Used for disabling all click and keyboard events for the tabs, child tab elements.
|
|
1855
|
+
* @public
|
|
1856
|
+
* @remarks
|
|
1857
|
+
* HTML Attribute: disabled.
|
|
1858
|
+
*/
|
|
1859
|
+
disabled: boolean;
|
|
1860
|
+
/**
|
|
1861
|
+
* Handles disabled changes
|
|
1862
|
+
* @param prev - previous value
|
|
1863
|
+
* @param next - next value
|
|
1864
|
+
*
|
|
1865
|
+
* @internal
|
|
1866
|
+
*/
|
|
1867
|
+
protected disabledChanged(prev: boolean, next: boolean): void;
|
|
1868
|
+
/**
|
|
1869
|
+
* The orientation
|
|
1870
|
+
* @public
|
|
1871
|
+
* @remarks
|
|
1872
|
+
* HTML Attribute: orientation
|
|
1873
|
+
*/
|
|
1874
|
+
orientation: TablistOrientation;
|
|
1875
|
+
/**
|
|
1876
|
+
* @internal
|
|
1877
|
+
*/
|
|
1878
|
+
protected orientationChanged(prev: TablistOrientation, next: TablistOrientation): void;
|
|
1879
|
+
/**
|
|
1880
|
+
* The id of the active tab
|
|
1881
|
+
*
|
|
1882
|
+
* @public
|
|
1883
|
+
* @remarks
|
|
1884
|
+
* HTML Attribute: activeid
|
|
1885
|
+
*/
|
|
1886
|
+
activeid: string;
|
|
1887
|
+
/**
|
|
1888
|
+
* @internal
|
|
1889
|
+
*/
|
|
1890
|
+
protected activeidChanged(oldValue: string, newValue: string): void;
|
|
1891
|
+
/**
|
|
1892
|
+
* @internal
|
|
1893
|
+
*/
|
|
1894
|
+
tabs: HTMLElement[];
|
|
1895
|
+
/**
|
|
1896
|
+
* @internal
|
|
1897
|
+
*/
|
|
1898
|
+
protected tabsChanged(): void;
|
|
1899
|
+
/**
|
|
1900
|
+
* A reference to the active tab
|
|
1901
|
+
* @public
|
|
1902
|
+
*/
|
|
1903
|
+
activetab: HTMLElement;
|
|
1904
|
+
private prevActiveTabIndex;
|
|
1905
|
+
private activeTabIndex;
|
|
1906
|
+
private tabIds;
|
|
1907
|
+
private change;
|
|
1908
|
+
private getActiveIndex;
|
|
1909
|
+
/**
|
|
1910
|
+
* Function that is invoked whenever the selected tab or the tab collection changes.
|
|
1911
|
+
*
|
|
1912
|
+
* @public
|
|
1913
|
+
*/
|
|
1914
|
+
protected setTabs(): void;
|
|
1915
|
+
private getTabIds;
|
|
1916
|
+
private setComponent;
|
|
1917
|
+
private handleTabClick;
|
|
1918
|
+
private isHorizontal;
|
|
1919
|
+
private handleTabKeyDown;
|
|
1920
|
+
/**
|
|
1921
|
+
* The adjust method for FASTTabs
|
|
1922
|
+
* @public
|
|
1923
|
+
* @remarks
|
|
1924
|
+
* This method allows the active index to be adjusted by numerical increments
|
|
1925
|
+
*/
|
|
1926
|
+
adjust(adjustment: number): void;
|
|
1927
|
+
private activateTabByIndex;
|
|
1928
|
+
private focusTab;
|
|
1929
|
+
/**
|
|
1930
|
+
* @internal
|
|
1931
|
+
*/
|
|
1932
|
+
connectedCallback(): void;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1842
1935
|
/**
|
|
1843
1936
|
* A Tabs component that wraps a collection of tab and tab panel elements.
|
|
1844
1937
|
*
|
|
@@ -7519,8 +7612,18 @@ export declare const roleForMenuItem: {
|
|
|
7519
7612
|
};
|
|
7520
7613
|
|
|
7521
7614
|
/**
|
|
7522
|
-
* Sets the theme tokens
|
|
7523
|
-
*
|
|
7615
|
+
* Sets the theme tokens as CSS Custom Properties. The Custom Properties are
|
|
7616
|
+
* set in a constructed stylesheet on `document.adoptedStyleSheets` if
|
|
7617
|
+
* supported, and on `document.documentElement.style` as a fallback.
|
|
7618
|
+
*
|
|
7619
|
+
* @param theme - Flat object of theme tokens. Each object entry must follow
|
|
7620
|
+
* these rules: the key is the name of the token, usually in camel case, it
|
|
7621
|
+
* must be a valid CSS Custom Property name WITHOUT the starting two dashes
|
|
7622
|
+
* (`--`), the two dashes are added inside the function; the value must be
|
|
7623
|
+
* a valid CSS value, e.g. it cannot contain semicolons (`;`).
|
|
7624
|
+
* Note that this argument is not limited to existing theme objects (from
|
|
7625
|
+
* `@fluentui/tokens`), you can pass in an arbitrary theme object as long
|
|
7626
|
+
* as each entry’s value is either a string or a number.
|
|
7524
7627
|
* @internal
|
|
7525
7628
|
*/
|
|
7526
7629
|
export declare const setTheme: (theme: Theme) => void;
|
|
@@ -8396,6 +8499,170 @@ export declare interface Tab extends StartEnd {
|
|
|
8396
8499
|
|
|
8397
8500
|
export declare const TabDefinition: FASTElementDefinition<typeof Tab>;
|
|
8398
8501
|
|
|
8502
|
+
/**
|
|
8503
|
+
* A BaseTablist component with extra logic for handling the styled active tab indicator.
|
|
8504
|
+
* @public
|
|
8505
|
+
*/
|
|
8506
|
+
export declare class Tablist extends BaseTablist {
|
|
8507
|
+
/**
|
|
8508
|
+
* activeTabData
|
|
8509
|
+
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
8510
|
+
*/
|
|
8511
|
+
private activeTabData;
|
|
8512
|
+
/**
|
|
8513
|
+
* previousActiveTabData
|
|
8514
|
+
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
8515
|
+
*/
|
|
8516
|
+
private previousActiveTabData;
|
|
8517
|
+
/**
|
|
8518
|
+
* activeTabOffset
|
|
8519
|
+
* Used to position the active indicator for animations of the active indicator on active tab changes.
|
|
8520
|
+
*/
|
|
8521
|
+
private activeTabOffset;
|
|
8522
|
+
/**
|
|
8523
|
+
* activeTabScale
|
|
8524
|
+
* Used to scale the tab active indicator up or down as animations of the active indicator occur.
|
|
8525
|
+
*/
|
|
8526
|
+
private activeTabScale;
|
|
8527
|
+
/**
|
|
8528
|
+
* appearance
|
|
8529
|
+
* There are two modes of appearance: transparent and subtle.
|
|
8530
|
+
*/
|
|
8531
|
+
appearance?: TablistAppearance;
|
|
8532
|
+
/**
|
|
8533
|
+
* @internal
|
|
8534
|
+
*/
|
|
8535
|
+
protected appearanceChanged(prev: TablistAppearance, next: TablistAppearance): void;
|
|
8536
|
+
/**
|
|
8537
|
+
* size
|
|
8538
|
+
* defaults to medium.
|
|
8539
|
+
* Used to set the size of all the tab controls, which effects text size and margins. Three sizes: small, medium and large.
|
|
8540
|
+
*/
|
|
8541
|
+
size?: TablistSize;
|
|
8542
|
+
/**
|
|
8543
|
+
* @internal
|
|
8544
|
+
*/
|
|
8545
|
+
protected sizeChanged(prev: TablistSize, next: TablistSize): void;
|
|
8546
|
+
/**
|
|
8547
|
+
* calculateAnimationProperties
|
|
8548
|
+
*
|
|
8549
|
+
* Recalculates the active tab offset and scale.
|
|
8550
|
+
* These values will be applied to css variables that control the tab active indicator position animations
|
|
8551
|
+
*/
|
|
8552
|
+
private calculateAnimationProperties;
|
|
8553
|
+
/**
|
|
8554
|
+
* getSelectedTabPosition - gets the x or y coordinates of the tab
|
|
8555
|
+
*/
|
|
8556
|
+
private getTabPosition;
|
|
8557
|
+
/**
|
|
8558
|
+
* getSelectedTabScale - gets the scale of the tab
|
|
8559
|
+
*/
|
|
8560
|
+
private getTabScale;
|
|
8561
|
+
/**
|
|
8562
|
+
* Calculates and applies updated values to CSS variables.
|
|
8563
|
+
*
|
|
8564
|
+
* @param tab - the tab element to apply the updated values to
|
|
8565
|
+
* @internal
|
|
8566
|
+
*/
|
|
8567
|
+
private applyUpdatedCSSValues;
|
|
8568
|
+
/**
|
|
8569
|
+
* Runs through all the operations required for setting the tab active indicator to its starting location, ending
|
|
8570
|
+
* location, and applying the animated css class to the tab.
|
|
8571
|
+
*
|
|
8572
|
+
* @param tab - the tab element to apply the updated values to
|
|
8573
|
+
* @internal
|
|
8574
|
+
*/
|
|
8575
|
+
private animationLoop;
|
|
8576
|
+
/**
|
|
8577
|
+
* Sets the data from the active tab onto the class. used for making all the animation calculations for the active
|
|
8578
|
+
* tab indicator.
|
|
8579
|
+
*
|
|
8580
|
+
* @internal
|
|
8581
|
+
*/
|
|
8582
|
+
private setTabData;
|
|
8583
|
+
/**
|
|
8584
|
+
* Sets the css variables for the active tab indicator.
|
|
8585
|
+
* @internal
|
|
8586
|
+
*/
|
|
8587
|
+
private setAnimationVars;
|
|
8588
|
+
/**
|
|
8589
|
+
* Initiates the active tab indicator animation loop when activeid changes.
|
|
8590
|
+
* @param oldValue - the previous tabId
|
|
8591
|
+
* @param newValue - the new tabId
|
|
8592
|
+
*/
|
|
8593
|
+
activeidChanged(oldValue: string, newValue: string): void;
|
|
8594
|
+
/**
|
|
8595
|
+
* Initiates the active tab indicator animation loop when tabs change.
|
|
8596
|
+
*/
|
|
8597
|
+
tabsChanged(): void;
|
|
8598
|
+
}
|
|
8599
|
+
|
|
8600
|
+
/**
|
|
8601
|
+
* The appearance of the component
|
|
8602
|
+
* @public
|
|
8603
|
+
*/
|
|
8604
|
+
export declare const TablistAppearance: {
|
|
8605
|
+
readonly subtle: "subtle";
|
|
8606
|
+
readonly transparent: "transparent";
|
|
8607
|
+
};
|
|
8608
|
+
|
|
8609
|
+
/**
|
|
8610
|
+
* The types for the Tablist appearance
|
|
8611
|
+
* @public
|
|
8612
|
+
*/
|
|
8613
|
+
export declare type TablistAppearance = ValuesOf<typeof TablistAppearance>;
|
|
8614
|
+
|
|
8615
|
+
/**
|
|
8616
|
+
* @public
|
|
8617
|
+
* @remarks
|
|
8618
|
+
* HTML Element: \<fluent-tablist\>
|
|
8619
|
+
*/
|
|
8620
|
+
export declare const TablistDefinition: FASTElementDefinition<typeof Tablist>;
|
|
8621
|
+
|
|
8622
|
+
/**
|
|
8623
|
+
* The orientation of the component
|
|
8624
|
+
* @public
|
|
8625
|
+
*/
|
|
8626
|
+
export declare const TablistOrientation: {
|
|
8627
|
+
readonly horizontal: "horizontal"; /**
|
|
8628
|
+
* The appearance of the component
|
|
8629
|
+
* @public
|
|
8630
|
+
*/
|
|
8631
|
+
readonly vertical: "vertical";
|
|
8632
|
+
};
|
|
8633
|
+
|
|
8634
|
+
/**
|
|
8635
|
+
* The types for the Tablist orientation
|
|
8636
|
+
* @public
|
|
8637
|
+
*/
|
|
8638
|
+
export declare type TablistOrientation = ValuesOf<typeof TablistOrientation>;
|
|
8639
|
+
|
|
8640
|
+
/**
|
|
8641
|
+
* The size of the component
|
|
8642
|
+
* @public
|
|
8643
|
+
*/
|
|
8644
|
+
export declare const TablistSize: {
|
|
8645
|
+
readonly small: "small";
|
|
8646
|
+
readonly medium: "medium";
|
|
8647
|
+
readonly large: "large";
|
|
8648
|
+
};
|
|
8649
|
+
|
|
8650
|
+
/**
|
|
8651
|
+
* The types for the Tablist size
|
|
8652
|
+
* @public
|
|
8653
|
+
*/
|
|
8654
|
+
export declare type TablistSize = ValuesOf<typeof TablistSize>;
|
|
8655
|
+
|
|
8656
|
+
/**
|
|
8657
|
+
* @public
|
|
8658
|
+
*/
|
|
8659
|
+
export declare const TablistStyles: ElementStyles;
|
|
8660
|
+
|
|
8661
|
+
/**
|
|
8662
|
+
* @public
|
|
8663
|
+
*/
|
|
8664
|
+
export declare const TablistTemplate: ViewTemplate<Tablist, any>;
|
|
8665
|
+
|
|
8399
8666
|
/**
|
|
8400
8667
|
* Tab configuration options
|
|
8401
8668
|
* @public
|