@fluentui/web-components 3.0.0-alpha.6 → 3.0.0-alpha.8
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.json +51 -1
- package/CHANGELOG.md +22 -2
- package/dist/dts/accordion-item/accordion-item.d.ts +2 -2
- package/dist/dts/avatar/avatar.d.ts +97 -0
- package/dist/dts/avatar/avatar.definition.d.ts +9 -0
- package/dist/dts/avatar/avatar.options.d.ts +142 -0
- package/dist/dts/avatar/avatar.styles.d.ts +4 -0
- package/dist/dts/avatar/avatar.template.d.ts +8 -0
- package/dist/dts/avatar/define.d.ts +1 -0
- package/dist/dts/avatar/index.d.ts +5 -0
- package/dist/dts/badge/badge.d.ts +2 -2
- package/dist/dts/counter-badge/counter-badge.d.ts +4 -4
- package/dist/dts/divider/define.d.ts +1 -0
- package/dist/dts/divider/divider.d.ts +31 -0
- package/dist/dts/divider/divider.definition.d.ts +9 -0
- package/dist/dts/divider/divider.options.d.ts +40 -0
- package/dist/dts/divider/divider.styles.d.ts +4 -0
- package/dist/dts/divider/divider.template.d.ts +7 -0
- package/dist/dts/divider/index.d.ts +5 -0
- package/dist/dts/image/define.d.ts +1 -0
- package/dist/dts/image/image.d.ts +48 -0
- package/dist/dts/image/image.definition.d.ts +9 -0
- package/dist/dts/image/image.options.d.ts +27 -0
- package/dist/dts/image/image.styles.d.ts +5 -0
- package/dist/dts/image/image.template.d.ts +7 -0
- package/dist/dts/image/index.d.ts +5 -0
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +2 -2
- package/dist/dts/spinner/spinner.d.ts +2 -2
- package/dist/dts/text/text.d.ts +4 -4
- package/dist/dts/theme/design-tokens.d.ts +5 -0
- package/dist/dts/utils/get-initials.d.ts +18 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/avatar/avatar.definition.js +17 -0
- package/dist/esm/avatar/avatar.definition.js.map +1 -0
- package/dist/esm/avatar/avatar.js +92 -0
- package/dist/esm/avatar/avatar.js.map +1 -0
- package/dist/esm/avatar/avatar.options.js +87 -0
- package/dist/esm/avatar/avatar.options.js.map +1 -0
- package/dist/esm/avatar/avatar.styles.js +476 -0
- package/dist/esm/avatar/avatar.styles.js.map +1 -0
- package/dist/esm/avatar/avatar.template.js +28 -0
- package/dist/esm/avatar/avatar.template.js.map +1 -0
- package/dist/esm/avatar/define.js +4 -0
- package/dist/esm/avatar/define.js.map +1 -0
- package/dist/esm/avatar/index.js +6 -0
- package/dist/esm/avatar/index.js.map +1 -0
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
- package/dist/esm/divider/define.js +4 -0
- package/dist/esm/divider/define.js.map +1 -0
- package/dist/esm/divider/divider.definition.js +17 -0
- package/dist/esm/divider/divider.definition.js.map +1 -0
- package/dist/esm/divider/divider.js +21 -0
- package/dist/esm/divider/divider.js.map +1 -0
- package/dist/esm/divider/divider.options.js +31 -0
- package/dist/esm/divider/divider.options.js.map +1 -0
- package/dist/esm/divider/divider.styles.js +111 -0
- package/dist/esm/divider/divider.styles.js.map +1 -0
- package/dist/esm/divider/divider.template.js +7 -0
- package/dist/esm/divider/divider.template.js.map +1 -0
- package/dist/esm/divider/index.js +6 -0
- package/dist/esm/divider/index.js.map +1 -0
- package/dist/esm/image/define.js +4 -0
- package/dist/esm/image/define.js.map +1 -0
- package/dist/esm/image/image.definition.js +17 -0
- package/dist/esm/image/image.definition.js.map +1 -0
- package/dist/esm/image/image.js +24 -0
- package/dist/esm/image/image.js.map +1 -0
- package/dist/esm/image/image.options.js +21 -0
- package/dist/esm/image/image.options.js.map +1 -0
- package/dist/esm/image/image.styles.js +52 -0
- package/dist/esm/image/image.styles.js.map +1 -0
- package/dist/esm/image/image.template.js +7 -0
- package/dist/esm/image/image.template.js.map +1 -0
- package/dist/esm/image/index.js +6 -0
- package/dist/esm/image/index.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +10 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +5 -0
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/utils/get-initials.js +83 -0
- package/dist/esm/utils/get-initials.js.map +1 -0
- package/dist/fluent-web-components.api.json +3550 -1863
- package/dist/web-components.d.ts +480 -16
- package/dist/web-components.js +516 -20
- package/dist/web-components.min.js +123 -118
- package/docs/api-report.md +268 -16
- package/package.json +13 -1
package/dist/web-components.js
CHANGED
|
@@ -3202,6 +3202,14 @@ function accordionItemTemplate(options = {}) {
|
|
|
3202
3202
|
return html`<div class="heading" part="heading" role="heading" aria-level="${x => x.headinglevel}"><button class="button" part="button" ${ref("expandbutton")} ?disabled="${x => x.disabled ? "true" : void 0}" aria-expanded="${x => x.expanded}" aria-controls="${x => x.id}-panel" id="${x => x.id}" @click="${(x, c) => x.clickHandler(c.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${startSlotTemplate(options)} ${endSlotTemplate(options)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${staticallyCompose(options.expandedIcon)}</slot><slot name="collapsed-icon">${staticallyCompose(options.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${x => x.id}-panel" role="region" aria-labelledby="${x => x.id}"><slot></slot></div>`;
|
|
3203
3203
|
}
|
|
3204
3204
|
|
|
3205
|
+
/**
|
|
3206
|
+
* Standard orientation values
|
|
3207
|
+
*/
|
|
3208
|
+
const Orientation = {
|
|
3209
|
+
horizontal: "horizontal",
|
|
3210
|
+
vertical: "vertical"
|
|
3211
|
+
};
|
|
3212
|
+
|
|
3205
3213
|
/**
|
|
3206
3214
|
* String values for use with KeyboardEvent.key
|
|
3207
3215
|
*/
|
|
@@ -4912,6 +4920,64 @@ FASTDesignTokenNode.defaultNode = new DesignTokenNode();
|
|
|
4912
4920
|
FASTDesignTokenNode.rootStyleSheetTarget = new RootStyleSheetTarget();
|
|
4913
4921
|
FASTDesignTokenNode.cache = new WeakMap();
|
|
4914
4922
|
|
|
4923
|
+
/**
|
|
4924
|
+
* Divider roles
|
|
4925
|
+
* @public
|
|
4926
|
+
*/
|
|
4927
|
+
const DividerRole = {
|
|
4928
|
+
/**
|
|
4929
|
+
* The divider semantically separates content
|
|
4930
|
+
*/
|
|
4931
|
+
separator: "separator",
|
|
4932
|
+
/**
|
|
4933
|
+
* The divider has no semantic value and is for visual presentation only.
|
|
4934
|
+
*/
|
|
4935
|
+
presentation: "presentation"
|
|
4936
|
+
};
|
|
4937
|
+
/**
|
|
4938
|
+
* Divider orientation
|
|
4939
|
+
* @public
|
|
4940
|
+
*/
|
|
4941
|
+
const DividerOrientation = Orientation;
|
|
4942
|
+
|
|
4943
|
+
/**
|
|
4944
|
+
* The template for the {@link @microsoft/fast-foundation#FASTDivider} component.
|
|
4945
|
+
* @public
|
|
4946
|
+
*/
|
|
4947
|
+
function dividerTemplate() {
|
|
4948
|
+
return html`<template role="${x => x.role}" aria-orientation="${x => x.orientation}"><slot></slot></template>`;
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
/**
|
|
4952
|
+
* A Divider Custom HTML Element.
|
|
4953
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#separator | ARIA separator } or {@link https://www.w3.org/TR/wai-aria-1.1/#presentation | ARIA presentation}.
|
|
4954
|
+
*
|
|
4955
|
+
* @public
|
|
4956
|
+
*/
|
|
4957
|
+
class FASTDivider extends FASTElement {
|
|
4958
|
+
constructor() {
|
|
4959
|
+
super(...arguments);
|
|
4960
|
+
/**
|
|
4961
|
+
* The role of the element.
|
|
4962
|
+
*
|
|
4963
|
+
* @public
|
|
4964
|
+
* @remarks
|
|
4965
|
+
* HTML Attribute: role
|
|
4966
|
+
*/
|
|
4967
|
+
this.role = DividerRole.separator;
|
|
4968
|
+
/**
|
|
4969
|
+
* The orientation of the divider.
|
|
4970
|
+
*
|
|
4971
|
+
* @public
|
|
4972
|
+
* @remarks
|
|
4973
|
+
* HTML Attribute: orientation
|
|
4974
|
+
*/
|
|
4975
|
+
this.orientation = DividerOrientation.horizontal;
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
__decorate([attr], FASTDivider.prototype, "role", void 0);
|
|
4979
|
+
__decorate([attr], FASTDivider.prototype, "orientation", void 0);
|
|
4980
|
+
|
|
4915
4981
|
/**
|
|
4916
4982
|
* A base class for progress components.
|
|
4917
4983
|
* @public
|
|
@@ -5122,9 +5188,9 @@ function display(displayValue) {
|
|
|
5122
5188
|
*/
|
|
5123
5189
|
class Accordion extends FASTAccordion {}
|
|
5124
5190
|
|
|
5125
|
-
const template$
|
|
5191
|
+
const template$a = accordionTemplate();
|
|
5126
5192
|
|
|
5127
|
-
const styles$
|
|
5193
|
+
const styles$a = css`
|
|
5128
5194
|
${display('flex')}
|
|
5129
5195
|
|
|
5130
5196
|
:host{flex-direction:column;width:100%}`;
|
|
@@ -5144,10 +5210,10 @@ const FluentDesignSystem = Object.freeze({
|
|
|
5144
5210
|
* @remarks
|
|
5145
5211
|
* HTML Element: \<fluent-accordion\>
|
|
5146
5212
|
*/
|
|
5147
|
-
const definition$
|
|
5213
|
+
const definition$a = Accordion.compose({
|
|
5148
5214
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
5149
|
-
template: template$
|
|
5150
|
-
styles: styles$
|
|
5215
|
+
template: template$a,
|
|
5216
|
+
styles: styles$a
|
|
5151
5217
|
});
|
|
5152
5218
|
|
|
5153
5219
|
/**
|
|
@@ -5364,6 +5430,8 @@ const colorNeutralBackgroundDisabled = create('colorNeutralBackgroundDisabled');
|
|
|
5364
5430
|
const colorNeutralBackgroundInvertedDisabled = create('colorNeutralBackgroundInvertedDisabled');
|
|
5365
5431
|
const colorNeutralStencil1 = create('colorNeutralStencil1');
|
|
5366
5432
|
const colorNeutralStencil2 = create('colorNeutralStencil2');
|
|
5433
|
+
const colorNeutralStencil1Alpha = create('colorNeutralStencil1Alpha');
|
|
5434
|
+
const colorNeutralStencil2Alpha = create('colorNeutralStencil2Alpha');
|
|
5367
5435
|
const colorBackgroundOverlay = create('colorBackgroundOverlay');
|
|
5368
5436
|
const colorScrollbarOverlay = create('colorScrollbarOverlay');
|
|
5369
5437
|
const colorBrandBackground = create('colorBrandBackground');
|
|
@@ -5561,6 +5629,9 @@ const colorPalettePlatinumBorderActive = create('colorPalettePlatinumBorderActiv
|
|
|
5561
5629
|
const colorPaletteAnchorBackground2 = create('colorPaletteAnchorBackground2');
|
|
5562
5630
|
const colorPaletteAnchorForeground2 = create('colorPaletteAnchorForeground2');
|
|
5563
5631
|
const colorPaletteAnchorBorderActive = create('colorPaletteAnchorBorderActive');
|
|
5632
|
+
const colorPaletteRedForegroundInverted = create('colorPaletteRedForegroundInverted');
|
|
5633
|
+
const colorPaletteGreenForegroundInverted = create('colorPaletteGreenForegroundInverted');
|
|
5634
|
+
const colorPaletteYellowForegroundInverted = create('colorPaletteYellowForegroundInverted');
|
|
5564
5635
|
const shadow2 = create('shadow2');
|
|
5565
5636
|
const shadow4 = create('shadow4');
|
|
5566
5637
|
const shadow8 = create('shadow8');
|
|
@@ -5746,6 +5817,8 @@ var tokens = /*#__PURE__*/Object.freeze({
|
|
|
5746
5817
|
colorNeutralBackgroundInvertedDisabled: colorNeutralBackgroundInvertedDisabled,
|
|
5747
5818
|
colorNeutralStencil1: colorNeutralStencil1,
|
|
5748
5819
|
colorNeutralStencil2: colorNeutralStencil2,
|
|
5820
|
+
colorNeutralStencil1Alpha: colorNeutralStencil1Alpha,
|
|
5821
|
+
colorNeutralStencil2Alpha: colorNeutralStencil2Alpha,
|
|
5749
5822
|
colorBackgroundOverlay: colorBackgroundOverlay,
|
|
5750
5823
|
colorScrollbarOverlay: colorScrollbarOverlay,
|
|
5751
5824
|
colorBrandBackground: colorBrandBackground,
|
|
@@ -5943,6 +6016,9 @@ var tokens = /*#__PURE__*/Object.freeze({
|
|
|
5943
6016
|
colorPaletteAnchorBackground2: colorPaletteAnchorBackground2,
|
|
5944
6017
|
colorPaletteAnchorForeground2: colorPaletteAnchorForeground2,
|
|
5945
6018
|
colorPaletteAnchorBorderActive: colorPaletteAnchorBorderActive,
|
|
6019
|
+
colorPaletteRedForegroundInverted: colorPaletteRedForegroundInverted,
|
|
6020
|
+
colorPaletteGreenForegroundInverted: colorPaletteGreenForegroundInverted,
|
|
6021
|
+
colorPaletteYellowForegroundInverted: colorPaletteYellowForegroundInverted,
|
|
5946
6022
|
shadow2: shadow2,
|
|
5947
6023
|
shadow4: shadow4,
|
|
5948
6024
|
shadow8: shadow8,
|
|
@@ -5957,7 +6033,7 @@ var tokens = /*#__PURE__*/Object.freeze({
|
|
|
5957
6033
|
shadow64Brand: shadow64Brand
|
|
5958
6034
|
});
|
|
5959
6035
|
|
|
5960
|
-
const styles$
|
|
6036
|
+
const styles$9 = css`
|
|
5961
6037
|
${display('block')}
|
|
5962
6038
|
|
|
5963
6039
|
:host{max-width:fit-content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${colorNeutralForeground1};background:${colorTransparentBackground};line-height:${lineHeightBase300};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${spacingHorizontalM}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`;
|
|
@@ -5992,7 +6068,7 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
5992
6068
|
* The template for the fluent-accordion component.
|
|
5993
6069
|
* @public
|
|
5994
6070
|
*/
|
|
5995
|
-
const template$
|
|
6071
|
+
const template$9 = accordionItemTemplate({
|
|
5996
6072
|
collapsedIcon: chevronRight20Filled,
|
|
5997
6073
|
expandedIcon: chevronDown20Filled
|
|
5998
6074
|
});
|
|
@@ -6006,10 +6082,293 @@ const template$6 = accordionItemTemplate({
|
|
|
6006
6082
|
* @remarks
|
|
6007
6083
|
* HTML Element: \<fluent-accordion-item\>
|
|
6008
6084
|
*/
|
|
6009
|
-
const definition$
|
|
6085
|
+
const definition$9 = AccordionItem.compose({
|
|
6010
6086
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
6011
|
-
template: template$
|
|
6012
|
-
styles: styles$
|
|
6087
|
+
template: template$9,
|
|
6088
|
+
styles: styles$9
|
|
6089
|
+
});
|
|
6090
|
+
|
|
6091
|
+
/* TODO: This file is a direct copy of the React Avatar utils */
|
|
6092
|
+
/**
|
|
6093
|
+
* Regular expressions matching characters to ignore when calculating the initials.
|
|
6094
|
+
*/
|
|
6095
|
+
/**
|
|
6096
|
+
* Regular expression matching characters within various types of enclosures, including the enclosures themselves
|
|
6097
|
+
* so for example, (xyz) [xyz] {xyz} all would be ignored
|
|
6098
|
+
*/
|
|
6099
|
+
const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
|
|
6100
|
+
/**
|
|
6101
|
+
* Regular expression matching special ASCII characters except space, plus some unicode special characters.
|
|
6102
|
+
* Applies after unwanted enclosures have been removed
|
|
6103
|
+
*/
|
|
6104
|
+
// eslint-disable-next-line no-control-regex
|
|
6105
|
+
const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
6106
|
+
/**
|
|
6107
|
+
* Regular expression matching phone numbers. Applied after chars matching UNWANTED_CHARS_REGEX have been removed
|
|
6108
|
+
* and number has been trimmed for whitespaces
|
|
6109
|
+
*/
|
|
6110
|
+
const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
|
|
6111
|
+
/** Regular expression matching one or more spaces. */
|
|
6112
|
+
const MULTIPLE_WHITESPACES_REGEX = /\s+/g;
|
|
6113
|
+
/**
|
|
6114
|
+
* Regular expression matching languages for which we currently don't support initials.
|
|
6115
|
+
* Arabic: Arabic, Arabic Supplement, Arabic Extended-A.
|
|
6116
|
+
* Korean: Hangul Jamo, Hangul Compatibility Jamo, Hangul Jamo Extended-A, Hangul Syllables, Hangul Jamo Extended-B.
|
|
6117
|
+
* Japanese: Hiragana, Katakana.
|
|
6118
|
+
* CJK: CJK Unified Ideographs Extension A, CJK Unified Ideographs, CJK Compatibility Ideographs,
|
|
6119
|
+
* CJK Unified Ideographs Extension B
|
|
6120
|
+
*/
|
|
6121
|
+
// eslint-disable-next-line
|
|
6122
|
+
const UNSUPPORTED_TEXT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;
|
|
6123
|
+
function getInitialsLatin(displayName, isRtl, firstInitialOnly) {
|
|
6124
|
+
let initials = '';
|
|
6125
|
+
const splits = displayName.split(' ');
|
|
6126
|
+
if (splits.length !== 0) {
|
|
6127
|
+
initials += splits[0].charAt(0).toUpperCase();
|
|
6128
|
+
}
|
|
6129
|
+
if (!firstInitialOnly) {
|
|
6130
|
+
if (splits.length === 2) {
|
|
6131
|
+
initials += splits[1].charAt(0).toUpperCase();
|
|
6132
|
+
} else if (splits.length === 3) {
|
|
6133
|
+
initials += splits[2].charAt(0).toUpperCase();
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6136
|
+
if (isRtl && initials.length > 1) {
|
|
6137
|
+
return initials.charAt(1) + initials.charAt(0);
|
|
6138
|
+
}
|
|
6139
|
+
return initials;
|
|
6140
|
+
}
|
|
6141
|
+
function cleanupDisplayName(displayName) {
|
|
6142
|
+
displayName = displayName.replace(UNWANTED_ENCLOSURES_REGEX, '');
|
|
6143
|
+
displayName = displayName.replace(UNWANTED_CHARS_REGEX, '');
|
|
6144
|
+
displayName = displayName.replace(MULTIPLE_WHITESPACES_REGEX, ' ');
|
|
6145
|
+
displayName = displayName.trim();
|
|
6146
|
+
return displayName;
|
|
6147
|
+
}
|
|
6148
|
+
/**
|
|
6149
|
+
* Get (up to 2 characters) initials based on display name of the persona.
|
|
6150
|
+
*
|
|
6151
|
+
* @param displayName - The full name of the person or entity
|
|
6152
|
+
* @param isRtl - Whether the display is in RTL
|
|
6153
|
+
* @param options - Extra options to control the behavior of getInitials
|
|
6154
|
+
*
|
|
6155
|
+
* @returns The 1 or 2 character initials based on the name. Or an empty string if no initials
|
|
6156
|
+
* could be derived from the name.
|
|
6157
|
+
*
|
|
6158
|
+
* @internal
|
|
6159
|
+
*/
|
|
6160
|
+
function getInitials(displayName, isRtl, options) {
|
|
6161
|
+
if (!displayName) {
|
|
6162
|
+
return '';
|
|
6163
|
+
}
|
|
6164
|
+
displayName = cleanupDisplayName(displayName);
|
|
6165
|
+
// For names containing CJK characters, and phone numbers, we don't display initials
|
|
6166
|
+
if (UNSUPPORTED_TEXT_REGEX.test(displayName) || !(options === null || options === void 0 ? void 0 : options.allowPhoneInitials) && PHONENUMBER_REGEX.test(displayName)) {
|
|
6167
|
+
return '';
|
|
6168
|
+
}
|
|
6169
|
+
return getInitialsLatin(displayName, isRtl, options === null || options === void 0 ? void 0 : options.firstInitialOnly);
|
|
6170
|
+
}
|
|
6171
|
+
|
|
6172
|
+
/**
|
|
6173
|
+
* The Avatar "active" state
|
|
6174
|
+
*/
|
|
6175
|
+
const AvatarActive = {
|
|
6176
|
+
active: 'active',
|
|
6177
|
+
inactive: 'inactive'
|
|
6178
|
+
};
|
|
6179
|
+
/**
|
|
6180
|
+
* The Avatar Shape
|
|
6181
|
+
*/
|
|
6182
|
+
const AvatarShape = {
|
|
6183
|
+
circular: 'circular',
|
|
6184
|
+
square: 'square'
|
|
6185
|
+
};
|
|
6186
|
+
/**
|
|
6187
|
+
* The Avatar Appearance when "active"
|
|
6188
|
+
*/
|
|
6189
|
+
const AvatarAppearance = {
|
|
6190
|
+
ring: 'ring',
|
|
6191
|
+
shadow: 'shadow',
|
|
6192
|
+
ringShadow: 'ring-shadow'
|
|
6193
|
+
};
|
|
6194
|
+
/**
|
|
6195
|
+
* A specific named color for the Avatar
|
|
6196
|
+
*/
|
|
6197
|
+
const AvatarNamedColor = {
|
|
6198
|
+
darkRed: 'dark-red',
|
|
6199
|
+
cranberry: 'cranberry',
|
|
6200
|
+
red: 'red',
|
|
6201
|
+
pumpkin: 'pumpkin',
|
|
6202
|
+
peach: 'peach',
|
|
6203
|
+
marigold: 'marigold',
|
|
6204
|
+
gold: 'gold',
|
|
6205
|
+
brass: 'brass',
|
|
6206
|
+
brown: 'brown',
|
|
6207
|
+
forest: 'forest',
|
|
6208
|
+
seafoam: 'seafoam',
|
|
6209
|
+
darkGreen: 'dark-green',
|
|
6210
|
+
lightTeal: 'light-teal',
|
|
6211
|
+
teal: 'teal',
|
|
6212
|
+
steel: 'steel',
|
|
6213
|
+
blue: 'blue',
|
|
6214
|
+
royalBlue: 'royal-blue',
|
|
6215
|
+
cornflower: 'cornflower',
|
|
6216
|
+
navy: 'navy',
|
|
6217
|
+
lavender: 'lavender',
|
|
6218
|
+
purple: 'purple',
|
|
6219
|
+
grape: 'grape',
|
|
6220
|
+
lilac: 'lilac',
|
|
6221
|
+
pink: 'pink',
|
|
6222
|
+
magenta: 'magenta',
|
|
6223
|
+
plum: 'plum',
|
|
6224
|
+
beige: 'beige',
|
|
6225
|
+
mink: 'mink',
|
|
6226
|
+
platinum: 'platinum',
|
|
6227
|
+
anchor: 'anchor'
|
|
6228
|
+
};
|
|
6229
|
+
/**
|
|
6230
|
+
* Supported Avatar colors
|
|
6231
|
+
*/
|
|
6232
|
+
const AvatarColor = {
|
|
6233
|
+
neutral: 'neutral',
|
|
6234
|
+
brand: 'brand',
|
|
6235
|
+
colorful: 'colorful',
|
|
6236
|
+
...AvatarNamedColor
|
|
6237
|
+
};
|
|
6238
|
+
/**
|
|
6239
|
+
* The Avatar Sizes
|
|
6240
|
+
* @public
|
|
6241
|
+
*/
|
|
6242
|
+
const AvatarSize = {
|
|
6243
|
+
_16: 16,
|
|
6244
|
+
_20: 20,
|
|
6245
|
+
_24: 24,
|
|
6246
|
+
_28: 28,
|
|
6247
|
+
_32: 32,
|
|
6248
|
+
_36: 36,
|
|
6249
|
+
_40: 40,
|
|
6250
|
+
_48: 48,
|
|
6251
|
+
_56: 56,
|
|
6252
|
+
_64: 64,
|
|
6253
|
+
_72: 72,
|
|
6254
|
+
_96: 96,
|
|
6255
|
+
_120: 120,
|
|
6256
|
+
_128: 128
|
|
6257
|
+
};
|
|
6258
|
+
|
|
6259
|
+
/**
|
|
6260
|
+
* The base class used for constructing a fluent-avatar custom element
|
|
6261
|
+
* @public
|
|
6262
|
+
*/
|
|
6263
|
+
class Avatar extends FASTElement {
|
|
6264
|
+
constructor() {
|
|
6265
|
+
super(...arguments);
|
|
6266
|
+
/**
|
|
6267
|
+
* The color when displaying either an icon or initials.
|
|
6268
|
+
* * neutral (default): gray
|
|
6269
|
+
* * brand: color from the brand palette
|
|
6270
|
+
* * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or colorId if provided)
|
|
6271
|
+
* * [AvatarNamedColor]: a specific color from the theme
|
|
6272
|
+
*
|
|
6273
|
+
* @public
|
|
6274
|
+
* @remarks
|
|
6275
|
+
* HTML Attribute: color
|
|
6276
|
+
*/
|
|
6277
|
+
this.color = 'neutral';
|
|
6278
|
+
}
|
|
6279
|
+
/**
|
|
6280
|
+
* Sets the data-color attribute used for the visual presentation
|
|
6281
|
+
* @internal
|
|
6282
|
+
*/
|
|
6283
|
+
generateColor() {
|
|
6284
|
+
var _a, _b;
|
|
6285
|
+
if (!this.color) {
|
|
6286
|
+
return;
|
|
6287
|
+
}
|
|
6288
|
+
return this.color === AvatarColor.colorful ? Avatar.colors[getHashCode((_b = (_a = this.colorId) !== null && _a !== void 0 ? _a : this.name) !== null && _b !== void 0 ? _b : '') % Avatar.colors.length] : this.color;
|
|
6289
|
+
}
|
|
6290
|
+
/**
|
|
6291
|
+
* Generates and sets the initials for the template
|
|
6292
|
+
* @internal
|
|
6293
|
+
*/
|
|
6294
|
+
generateInitials() {
|
|
6295
|
+
var _a, _b;
|
|
6296
|
+
if (!this.name && !this.initials) {
|
|
6297
|
+
return;
|
|
6298
|
+
}
|
|
6299
|
+
// size can be undefined since we default it in CSS only
|
|
6300
|
+
const size = (_a = this.size) !== null && _a !== void 0 ? _a : 32;
|
|
6301
|
+
return (_b = this.initials) !== null && _b !== void 0 ? _b : getInitials(this.name, window.getComputedStyle(this).direction === 'rtl', {
|
|
6302
|
+
firstInitialOnly: size <= 16
|
|
6303
|
+
});
|
|
6304
|
+
}
|
|
6305
|
+
}
|
|
6306
|
+
/**
|
|
6307
|
+
* An array of the available Avatar named colors
|
|
6308
|
+
*/
|
|
6309
|
+
Avatar.colors = Object.values(AvatarNamedColor);
|
|
6310
|
+
__decorate([attr], Avatar.prototype, "name", void 0);
|
|
6311
|
+
__decorate([attr], Avatar.prototype, "initials", void 0);
|
|
6312
|
+
__decorate([attr({
|
|
6313
|
+
converter: nullableNumberConverter
|
|
6314
|
+
})], Avatar.prototype, "size", void 0);
|
|
6315
|
+
__decorate([attr], Avatar.prototype, "shape", void 0);
|
|
6316
|
+
__decorate([attr], Avatar.prototype, "active", void 0);
|
|
6317
|
+
__decorate([attr], Avatar.prototype, "appearance", void 0);
|
|
6318
|
+
__decorate([attr], Avatar.prototype, "color", void 0);
|
|
6319
|
+
__decorate([attr({
|
|
6320
|
+
attribute: 'color-id'
|
|
6321
|
+
})], Avatar.prototype, "colorId", void 0);
|
|
6322
|
+
// copied from React avatar
|
|
6323
|
+
const getHashCode = str => {
|
|
6324
|
+
let hashCode = 0;
|
|
6325
|
+
for (let len = str.length - 1; len >= 0; len--) {
|
|
6326
|
+
const ch = str.charCodeAt(len);
|
|
6327
|
+
const shift = len % 8;
|
|
6328
|
+
hashCode ^= (ch << shift) + (ch >> 8 - shift); // eslint-disable-line no-bitwise
|
|
6329
|
+
}
|
|
6330
|
+
|
|
6331
|
+
return hashCode;
|
|
6332
|
+
};
|
|
6333
|
+
|
|
6334
|
+
const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
6335
|
+
/**
|
|
6336
|
+
* The template for the Avatar component.
|
|
6337
|
+
* @public
|
|
6338
|
+
*/
|
|
6339
|
+
function avatarTemplate() {
|
|
6340
|
+
return html`<template role="img" data-color=${x => x.generateColor()}><slot>${x => x.name || x.initials ? x.generateInitials() : defaultIconTemplate}</slot><slot name="badge"></slot></template>`;
|
|
6341
|
+
}
|
|
6342
|
+
const template$8 = avatarTemplate();
|
|
6343
|
+
|
|
6344
|
+
const animations = {
|
|
6345
|
+
fastOutSlowInMax: curveDecelerateMax,
|
|
6346
|
+
fastOutSlowInMid: curveDecelerateMid,
|
|
6347
|
+
fastOutSlowInMin: curveDecelerateMin,
|
|
6348
|
+
slowOutFastInMax: curveAccelerateMax,
|
|
6349
|
+
slowOutFastInMid: curveAccelerateMid,
|
|
6350
|
+
slowOutFastInMin: curveAccelerateMin,
|
|
6351
|
+
fastEase: curveEasyEaseMax,
|
|
6352
|
+
normalEase: curveEasyEase,
|
|
6353
|
+
nullEasing: curveLinear
|
|
6354
|
+
};
|
|
6355
|
+
/** Avatar styles
|
|
6356
|
+
* @public
|
|
6357
|
+
*/
|
|
6358
|
+
const styles$8 = css`
|
|
6359
|
+
${display('inline-flex')} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6}}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin} ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick} ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* The Fluent Avatar Element.
|
|
6363
|
+
*
|
|
6364
|
+
* @public
|
|
6365
|
+
* @remarks
|
|
6366
|
+
* HTML Element: \<fluent-badge\>
|
|
6367
|
+
*/
|
|
6368
|
+
const definition$8 = Avatar.compose({
|
|
6369
|
+
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
6370
|
+
template: template$8,
|
|
6371
|
+
styles: styles$8
|
|
6013
6372
|
});
|
|
6014
6373
|
|
|
6015
6374
|
/**
|
|
@@ -6096,7 +6455,7 @@ applyMixins(Badge, StartEnd);
|
|
|
6096
6455
|
function badgeTemplate(options = {}) {
|
|
6097
6456
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
6098
6457
|
}
|
|
6099
|
-
const template$
|
|
6458
|
+
const template$7 = badgeTemplate();
|
|
6100
6459
|
|
|
6101
6460
|
const textPadding = spacingHorizontalXXS;
|
|
6102
6461
|
const badgeBaseStyles = css.partial`
|
|
@@ -6372,7 +6731,7 @@ const badgeTintStyles = css.partial`
|
|
|
6372
6731
|
/** Badge styles
|
|
6373
6732
|
* @public
|
|
6374
6733
|
*/
|
|
6375
|
-
const styles$
|
|
6734
|
+
const styles$7 = css`
|
|
6376
6735
|
:host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6377
6736
|
${badgeFilledStyles}
|
|
6378
6737
|
${badgeGhostStyles}
|
|
@@ -6390,10 +6749,10 @@ const styles$5 = css`
|
|
|
6390
6749
|
* @remarks
|
|
6391
6750
|
* HTML Element: \<fluent-badge\>
|
|
6392
6751
|
*/
|
|
6393
|
-
const definition$
|
|
6752
|
+
const definition$7 = Badge.compose({
|
|
6394
6753
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
6395
|
-
template: template$
|
|
6396
|
-
styles: styles$
|
|
6754
|
+
template: template$7,
|
|
6755
|
+
styles: styles$7
|
|
6397
6756
|
});
|
|
6398
6757
|
|
|
6399
6758
|
/**
|
|
@@ -6529,12 +6888,12 @@ function composeTemplate(options = {}) {
|
|
|
6529
6888
|
* The template for the Counter Badge component.
|
|
6530
6889
|
* @public
|
|
6531
6890
|
*/
|
|
6532
|
-
const template$
|
|
6891
|
+
const template$6 = composeTemplate();
|
|
6533
6892
|
|
|
6534
6893
|
/** Badge styles
|
|
6535
6894
|
* @public
|
|
6536
6895
|
*/
|
|
6537
|
-
const styles$
|
|
6896
|
+
const styles$6 = css`
|
|
6538
6897
|
:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6539
6898
|
${badgeFilledStyles}
|
|
6540
6899
|
${badgeGhostStyles}
|
|
@@ -6551,8 +6910,134 @@ const styles$4 = css`
|
|
|
6551
6910
|
* @remarks
|
|
6552
6911
|
* HTML Element: \<fluent-counter-badge\>
|
|
6553
6912
|
*/
|
|
6554
|
-
const definition$
|
|
6913
|
+
const definition$6 = CounterBadge.compose({
|
|
6555
6914
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
6915
|
+
template: template$6,
|
|
6916
|
+
styles: styles$6
|
|
6917
|
+
});
|
|
6918
|
+
|
|
6919
|
+
/**
|
|
6920
|
+
* @class Divider component
|
|
6921
|
+
*
|
|
6922
|
+
* @remarks
|
|
6923
|
+
* This class extends the FASTDivider. A divider groups sections of content to create visual rhythm and hierarchy. Use dividers along with spacing and headers to organize content in your layout.
|
|
6924
|
+
*/
|
|
6925
|
+
class Divider extends FASTDivider {}
|
|
6926
|
+
__decorate([attr({
|
|
6927
|
+
attribute: 'align-content'
|
|
6928
|
+
})], Divider.prototype, "alignContent", void 0);
|
|
6929
|
+
__decorate([attr], Divider.prototype, "appearance", void 0);
|
|
6930
|
+
__decorate([attr({
|
|
6931
|
+
mode: 'boolean'
|
|
6932
|
+
})], Divider.prototype, "inset", void 0);
|
|
6933
|
+
|
|
6934
|
+
/**
|
|
6935
|
+
* Align content within divider
|
|
6936
|
+
* @public
|
|
6937
|
+
*/
|
|
6938
|
+
const DividerAlignContent = {
|
|
6939
|
+
center: 'center',
|
|
6940
|
+
start: 'start',
|
|
6941
|
+
end: 'end'
|
|
6942
|
+
};
|
|
6943
|
+
/**
|
|
6944
|
+
* DividerAppearance - divider color defined by a design token alias.
|
|
6945
|
+
* @public
|
|
6946
|
+
*/
|
|
6947
|
+
const DividerAppearance = {
|
|
6948
|
+
strong: 'strong',
|
|
6949
|
+
brand: 'brand',
|
|
6950
|
+
subtle: 'subtle',
|
|
6951
|
+
default: 'default'
|
|
6952
|
+
};
|
|
6953
|
+
|
|
6954
|
+
/**
|
|
6955
|
+
* Template for the Divider component
|
|
6956
|
+
* @public
|
|
6957
|
+
*/
|
|
6958
|
+
const template$5 = dividerTemplate();
|
|
6959
|
+
|
|
6960
|
+
/** Divider styles
|
|
6961
|
+
* @public
|
|
6962
|
+
*/
|
|
6963
|
+
const styles$5 = css`
|
|
6964
|
+
${display('flex')}
|
|
6965
|
+
|
|
6966
|
+
:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}`;
|
|
6967
|
+
|
|
6968
|
+
/**
|
|
6969
|
+
* The Fluent Divider Element
|
|
6970
|
+
*
|
|
6971
|
+
* @public
|
|
6972
|
+
* @remarks
|
|
6973
|
+
* HTML Element: \<fluent-divider\>
|
|
6974
|
+
*/
|
|
6975
|
+
const definition$5 = Divider.compose({
|
|
6976
|
+
name: `${FluentDesignSystem.prefix}-divider`,
|
|
6977
|
+
template: template$5,
|
|
6978
|
+
styles: styles$5
|
|
6979
|
+
});
|
|
6980
|
+
|
|
6981
|
+
/**
|
|
6982
|
+
* The base class used for constucting a fluent image custom element
|
|
6983
|
+
* @public
|
|
6984
|
+
*/
|
|
6985
|
+
class Image extends FASTElement {}
|
|
6986
|
+
__decorate([attr({
|
|
6987
|
+
mode: 'boolean'
|
|
6988
|
+
})], Image.prototype, "block", void 0);
|
|
6989
|
+
__decorate([attr({
|
|
6990
|
+
mode: 'boolean'
|
|
6991
|
+
})], Image.prototype, "bordered", void 0);
|
|
6992
|
+
__decorate([attr({
|
|
6993
|
+
mode: 'boolean'
|
|
6994
|
+
})], Image.prototype, "shadow", void 0);
|
|
6995
|
+
__decorate([attr], Image.prototype, "fit", void 0);
|
|
6996
|
+
__decorate([attr], Image.prototype, "shape", void 0);
|
|
6997
|
+
|
|
6998
|
+
/**
|
|
6999
|
+
* Image fit
|
|
7000
|
+
* @public
|
|
7001
|
+
*/
|
|
7002
|
+
const ImageFit = {
|
|
7003
|
+
none: 'none',
|
|
7004
|
+
center: 'center',
|
|
7005
|
+
contain: 'contain',
|
|
7006
|
+
cover: 'cover',
|
|
7007
|
+
default: 'default'
|
|
7008
|
+
};
|
|
7009
|
+
/**
|
|
7010
|
+
* Image shape
|
|
7011
|
+
* @public
|
|
7012
|
+
*/
|
|
7013
|
+
const ImageShape = {
|
|
7014
|
+
circular: 'circular',
|
|
7015
|
+
rounded: 'rounded',
|
|
7016
|
+
square: 'square'
|
|
7017
|
+
};
|
|
7018
|
+
|
|
7019
|
+
/**
|
|
7020
|
+
* Template for the Image component
|
|
7021
|
+
* @public
|
|
7022
|
+
*/
|
|
7023
|
+
const template$4 = html`<slot></slot>`;
|
|
7024
|
+
|
|
7025
|
+
/** Image styles
|
|
7026
|
+
*
|
|
7027
|
+
* @public
|
|
7028
|
+
*/
|
|
7029
|
+
const styles$4 = css`
|
|
7030
|
+
:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}`;
|
|
7031
|
+
|
|
7032
|
+
/**
|
|
7033
|
+
* The Fluent Image Element
|
|
7034
|
+
*
|
|
7035
|
+
* @public
|
|
7036
|
+
* @remarks
|
|
7037
|
+
* HTML Element: \<fluent-image\>
|
|
7038
|
+
*/
|
|
7039
|
+
const definition$4 = Image.compose({
|
|
7040
|
+
name: `${FluentDesignSystem.prefix}-image`,
|
|
6556
7041
|
template: template$4,
|
|
6557
7042
|
styles: styles$4
|
|
6558
7043
|
});
|
|
@@ -6561,7 +7046,18 @@ const definition$4 = CounterBadge.compose({
|
|
|
6561
7046
|
* The base class used for constructing a fluent-progress-bar custom element
|
|
6562
7047
|
* @public
|
|
6563
7048
|
*/
|
|
6564
|
-
class ProgressBar extends FASTProgress {
|
|
7049
|
+
class ProgressBar extends FASTProgress {
|
|
7050
|
+
constructor() {
|
|
7051
|
+
super(...arguments);
|
|
7052
|
+
/**
|
|
7053
|
+
* The validation state of the progress bar
|
|
7054
|
+
* @public
|
|
7055
|
+
* @remarks
|
|
7056
|
+
* HTML Attribute: validation-state
|
|
7057
|
+
*/
|
|
7058
|
+
this.validationState = null;
|
|
7059
|
+
}
|
|
7060
|
+
}
|
|
6565
7061
|
__decorate([attr], ProgressBar.prototype, "thickness", void 0);
|
|
6566
7062
|
__decorate([attr], ProgressBar.prototype, "shape", void 0);
|
|
6567
7063
|
__decorate([attr({
|
|
@@ -6905,4 +7401,4 @@ const setTheme = theme => {
|
|
|
6905
7401
|
}
|
|
6906
7402
|
};
|
|
6907
7403
|
|
|
6908
|
-
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Badge, BadgeAppearance, BadgeColor, definition$5 as BadgeDefinition, BadgeShape, BadgeSize, styles$5 as BadgeStyles, template$5 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$4 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$4 as CounterBadgeStyles, template$4 as CounterBadgeTemplate, ProgressBar, definition$3 as ProgressBarDefinition, ProgressBarShape, styles$3 as ProgressBarStyles, template$3 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$2 as SpinnerDefinition, SpinnerSize, styles$2 as SpinnerStyles, template$2 as SpinnerTemplate, Switch, SwitchLabelPosition, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$7 as accordionDefinition, definition$6 as accordionItemDefinition, styles$6 as accordionItemStyles, template$6 as accordionItemTemplate, styles$7 as accordionStyles, template$7 as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, definition$1 as definition, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, styles$1 as switchStyles, template$1 as switchTemplate };
|
|
7404
|
+
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$8 as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$8 as AvatarStyles, template$8 as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$7 as BadgeDefinition, BadgeShape, BadgeSize, styles$7 as BadgeStyles, template$7 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$6 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$6 as CounterBadgeStyles, template$6 as CounterBadgeTemplate, Divider, DividerAlignContent, DividerAppearance, definition$5 as DividerDefinition, DividerOrientation, DividerRole, styles$5 as DividerStyles, template$5 as DividerTemplate, Image, definition$4 as ImageDefinition, ImageFit, ImageShape, styles$4 as ImageStyles, template$4 as ImageTemplate, ProgressBar, definition$3 as ProgressBarDefinition, ProgressBarShape, styles$3 as ProgressBarStyles, template$3 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$2 as SpinnerDefinition, SpinnerSize, styles$2 as SpinnerStyles, template$2 as SpinnerTemplate, Switch, SwitchLabelPosition, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$a as accordionDefinition, definition$9 as accordionItemDefinition, styles$9 as accordionItemStyles, template$9 as accordionItemTemplate, styles$a as accordionStyles, template$a as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil1Alpha, colorNeutralStencil2, colorNeutralStencil2Alpha, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteGreenForegroundInverted, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRedForegroundInverted, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorPaletteYellowForegroundInverted, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, definition$1 as definition, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, styles$1 as switchStyles, template$1 as switchTemplate };
|