@fluentui/web-components 3.0.0-beta.1 → 3.0.0-beta.3
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.d.ts +1 -0
- package/dist/dts/menu/define.d.ts +1 -0
- package/dist/dts/menu/index.d.ts +4 -0
- package/dist/dts/menu/menu.d.ts +194 -0
- package/dist/dts/menu/menu.definition.d.ts +9 -0
- package/dist/dts/menu/menu.styles.d.ts +4 -0
- package/dist/dts/menu/menu.template.d.ts +4 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/menu/define.js +4 -0
- package/dist/esm/menu/define.js.map +1 -0
- package/dist/esm/menu/index.js +5 -0
- package/dist/esm/menu/index.js.map +1 -0
- package/dist/esm/menu/menu.definition.js +17 -0
- package/dist/esm/menu/menu.definition.js.map +1 -0
- package/dist/esm/menu/menu.js +413 -0
- package/dist/esm/menu/menu.js.map +1 -0
- package/dist/esm/menu/menu.styles.js +17 -0
- package/dist/esm/menu/menu.styles.js.map +1 -0
- package/dist/esm/menu/menu.template.js +24 -0
- package/dist/esm/menu/menu.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +1081 -0
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js +2 -0
- package/dist/storybook/677.939f187f.iframe.bundle.js +462 -0
- package/dist/storybook/{885.6558041f.iframe.bundle.js.map → 677.939f187f.iframe.bundle.js.map} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.html +1 -1
- package/dist/storybook/{main.18c2c615e57574af12cd.manager.bundle.js → main.5d7b916dc1e37293b1d8.manager.bundle.js} +1 -1
- package/dist/storybook/main.b782e9fb.iframe.bundle.js +2 -0
- package/dist/storybook/main.b782e9fb.iframe.bundle.js.LICENSE.txt +1 -0
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/runtime~main.dbf00b470fe610082919.manager.bundle.js +1 -0
- package/dist/web-components.d.ts +209 -0
- package/dist/web-components.js +558 -222
- package/dist/web-components.min.js +67 -66
- package/docs/api-report.md +40 -0
- package/package.json +33 -29
- package/dist/storybook/761.21909e5ef44f985ae0d4.manager.bundle.js +0 -2
- package/dist/storybook/885.6558041f.iframe.bundle.js +0 -462
- package/dist/storybook/main.2c02ce39.iframe.bundle.js +0 -1
- package/dist/storybook/runtime~main.8db883e762072830487f.manager.bundle.js +0 -1
- /package/dist/storybook/{761.21909e5ef44f985ae0d4.manager.bundle.js.LICENSE.txt → 591.f5bf0d78d2f203de19f5.manager.bundle.js.LICENSE.txt} +0 -0
- /package/dist/storybook/{885.6558041f.iframe.bundle.js.LICENSE.txt → 677.939f187f.iframe.bundle.js.LICENSE.txt} +0 -0
package/dist/web-components.js
CHANGED
|
@@ -3344,6 +3344,7 @@ const keyEnter = "Enter";
|
|
|
3344
3344
|
const keyEscape = "Escape";
|
|
3345
3345
|
const keyHome = "Home";
|
|
3346
3346
|
const keySpace = " ";
|
|
3347
|
+
const keyTab = "Tab";
|
|
3347
3348
|
const ArrowKeys = {
|
|
3348
3349
|
ArrowDown: keyArrowDown,
|
|
3349
3350
|
ArrowLeft: keyArrowLeft,
|
|
@@ -3831,7 +3832,7 @@ function accordionTemplate() {
|
|
|
3831
3832
|
|
|
3832
3833
|
class Accordion extends FASTAccordion {}
|
|
3833
3834
|
|
|
3834
|
-
const template$
|
|
3835
|
+
const template$r = accordionTemplate();
|
|
3835
3836
|
|
|
3836
3837
|
/**
|
|
3837
3838
|
* Determines the current localization direction of an element.
|
|
@@ -4021,7 +4022,7 @@ const whitespaceFilter = value => {
|
|
|
4021
4022
|
return value.nodeType !== Node.TEXT_NODE || !!((_a = value.nodeValue) === null || _a === void 0 ? void 0 : _a.trim().length);
|
|
4022
4023
|
};
|
|
4023
4024
|
|
|
4024
|
-
const styles$
|
|
4025
|
+
const styles$q = css`
|
|
4025
4026
|
${display("flex")}
|
|
4026
4027
|
|
|
4027
4028
|
:host{flex-direction:column;width:100%;contain:content}`;
|
|
@@ -4032,10 +4033,10 @@ const FluentDesignSystem = Object.freeze({
|
|
|
4032
4033
|
registry: customElements
|
|
4033
4034
|
});
|
|
4034
4035
|
|
|
4035
|
-
const definition$
|
|
4036
|
+
const definition$r = Accordion.compose({
|
|
4036
4037
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
4037
|
-
template: template$
|
|
4038
|
-
styles: styles$
|
|
4038
|
+
template: template$r,
|
|
4039
|
+
styles: styles$q
|
|
4039
4040
|
});
|
|
4040
4041
|
|
|
4041
4042
|
/**
|
|
@@ -4046,12 +4047,12 @@ function accordionItemTemplate(options = {}) {
|
|
|
4046
4047
|
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>`;
|
|
4047
4048
|
}
|
|
4048
4049
|
|
|
4049
|
-
var __defProp$
|
|
4050
|
-
var __getOwnPropDesc$
|
|
4051
|
-
var __decorateClass$
|
|
4052
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4050
|
+
var __defProp$j = Object.defineProperty;
|
|
4051
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
4052
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
4053
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
4053
4054
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4054
|
-
if (kind && result) __defProp$
|
|
4055
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
4055
4056
|
return result;
|
|
4056
4057
|
};
|
|
4057
4058
|
class AccordionItem extends FASTAccordionItem {
|
|
@@ -4060,11 +4061,11 @@ class AccordionItem extends FASTAccordionItem {
|
|
|
4060
4061
|
this.block = false;
|
|
4061
4062
|
}
|
|
4062
4063
|
}
|
|
4063
|
-
__decorateClass$
|
|
4064
|
-
__decorateClass$
|
|
4064
|
+
__decorateClass$j([attr], AccordionItem.prototype, "size", 2);
|
|
4065
|
+
__decorateClass$j([attr({
|
|
4065
4066
|
mode: "boolean"
|
|
4066
4067
|
})], AccordionItem.prototype, "block", 2);
|
|
4067
|
-
__decorateClass$
|
|
4068
|
+
__decorateClass$j([attr({
|
|
4068
4069
|
attribute: "expand-icon-position"
|
|
4069
4070
|
})], AccordionItem.prototype, "expandIconPosition", 2);
|
|
4070
4071
|
|
|
@@ -5853,7 +5854,7 @@ var tokens = /*#__PURE__*/Object.freeze({
|
|
|
5853
5854
|
shadow64Brand: shadow64Brand
|
|
5854
5855
|
});
|
|
5855
5856
|
|
|
5856
|
-
const styles$
|
|
5857
|
+
const styles$p = css`
|
|
5857
5858
|
${display("block")}
|
|
5858
5859
|
|
|
5859
5860
|
:host{max-width:fit-content;contain: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}`;
|
|
@@ -5884,15 +5885,15 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
5884
5885
|
fill="currentColor"
|
|
5885
5886
|
/>
|
|
5886
5887
|
</svg>`);
|
|
5887
|
-
const template$
|
|
5888
|
+
const template$q = accordionItemTemplate({
|
|
5888
5889
|
collapsedIcon: chevronRight20Filled,
|
|
5889
5890
|
expandedIcon: chevronDown20Filled
|
|
5890
5891
|
});
|
|
5891
5892
|
|
|
5892
|
-
const definition$
|
|
5893
|
+
const definition$q = AccordionItem.compose({
|
|
5893
5894
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
5894
|
-
template: template$
|
|
5895
|
-
styles: styles$
|
|
5895
|
+
template: template$q,
|
|
5896
|
+
styles: styles$p
|
|
5896
5897
|
});
|
|
5897
5898
|
|
|
5898
5899
|
/**
|
|
@@ -5937,12 +5938,12 @@ function anchorTemplate(options = {}) {
|
|
|
5937
5938
|
return html`<a class="control" part="control" download="${x => x.download}" href="${x => x.href}" hreflang="${x => x.hreflang}" ping="${x => x.ping}" referrerpolicy="${x => x.referrerpolicy}" rel="${x => x.rel}" target="${x => x.target}" type="${x => x.type}" aria-atomic="${x => x.ariaAtomic}" aria-busy="${x => x.ariaBusy}" aria-controls="${x => x.ariaControls}" aria-current="${x => x.ariaCurrent}" aria-describedby="${x => x.ariaDescribedby}" aria-details="${x => x.ariaDetails}" aria-disabled="${x => x.ariaDisabled}" aria-errormessage="${x => x.ariaErrormessage}" aria-expanded="${x => x.ariaExpanded}" aria-flowto="${x => x.ariaFlowto}" aria-haspopup="${x => x.ariaHaspopup}" aria-hidden="${x => x.ariaHidden}" aria-invalid="${x => x.ariaInvalid}" aria-keyshortcuts="${x => x.ariaKeyshortcuts}" aria-label="${x => x.ariaLabel}" aria-labelledby="${x => x.ariaLabelledby}" aria-live="${x => x.ariaLive}" aria-owns="${x => x.ariaOwns}" aria-relevant="${x => x.ariaRelevant}" aria-roledescription="${x => x.ariaRoledescription}" ${ref("control")}>${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</a>`;
|
|
5938
5939
|
}
|
|
5939
5940
|
|
|
5940
|
-
var __defProp$
|
|
5941
|
-
var __getOwnPropDesc$
|
|
5942
|
-
var __decorateClass$
|
|
5943
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5941
|
+
var __defProp$i = Object.defineProperty;
|
|
5942
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
5943
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
5944
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
5944
5945
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5945
|
-
if (kind && result) __defProp$
|
|
5946
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
5946
5947
|
return result;
|
|
5947
5948
|
};
|
|
5948
5949
|
class AnchorButton extends FASTAnchor {
|
|
@@ -5986,17 +5987,17 @@ class AnchorButton extends FASTAnchor {
|
|
|
5986
5987
|
this.removeEventListener("click", this.handleDisabledFocusableClick);
|
|
5987
5988
|
}
|
|
5988
5989
|
}
|
|
5989
|
-
__decorateClass$
|
|
5990
|
-
__decorateClass$
|
|
5991
|
-
__decorateClass$
|
|
5992
|
-
__decorateClass$
|
|
5990
|
+
__decorateClass$i([attr], AnchorButton.prototype, "appearance", 2);
|
|
5991
|
+
__decorateClass$i([attr], AnchorButton.prototype, "shape", 2);
|
|
5992
|
+
__decorateClass$i([attr], AnchorButton.prototype, "size", 2);
|
|
5993
|
+
__decorateClass$i([attr({
|
|
5993
5994
|
attribute: "icon-only",
|
|
5994
5995
|
mode: "boolean"
|
|
5995
5996
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
5996
|
-
__decorateClass$
|
|
5997
|
+
__decorateClass$i([attr({
|
|
5997
5998
|
mode: "boolean"
|
|
5998
5999
|
})], AnchorButton.prototype, "disabled", 2);
|
|
5999
|
-
__decorateClass$
|
|
6000
|
+
__decorateClass$i([attr({
|
|
6000
6001
|
attribute: "disabled-focusable",
|
|
6001
6002
|
mode: "boolean"
|
|
6002
6003
|
})], AnchorButton.prototype, "disabledFocusable", 2);
|
|
@@ -6023,24 +6024,24 @@ const AnchorButtonAppearance = ButtonAppearance;
|
|
|
6023
6024
|
const AnchorButtonShape = ButtonShape;
|
|
6024
6025
|
const AnchorButtonSize = ButtonSize;
|
|
6025
6026
|
|
|
6026
|
-
const template$
|
|
6027
|
+
const template$p = anchorTemplate();
|
|
6027
6028
|
|
|
6028
|
-
const styles$
|
|
6029
|
+
const styles$o = css`
|
|
6029
6030
|
${display("inline-flex")}
|
|
6030
6031
|
|
|
6031
6032
|
:host{--icon-spacing:${spacingHorizontalSNudge};contain:layout style;vertical-align:middle}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer}.content{display:inherit}:host(:hover) .control{background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active) .control{background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host .control:focus-visible{border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]) .control{min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${spacingHorizontalXS}}:host([size='small']) .control{min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host([size='small'][icon-only]) .control{min-width:24px;max-width:24px}:host([size='large']) .control{min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]) .control{min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']) .control,:host([shape='circular']) .control:focus-visible{border-radius:${borderRadiusCircular}}:host([shape='square']) .control,:host([shape='square']) .control:focus-visible{border-radius:${borderRadiusNone}}:host([appearance='primary']) .control{background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover) .control{background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:hover) .control,:host([appearance='primary']:hover:active) .control{border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active) .control{background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']) .control:focus-visible{border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(is:([disabled][appearance='primary'],[disabled-focusabale][appearance="primary"])) .control,:host(is:([disabled][appearance='primary'],[disabled-focusabale][appearance="primary"]):hover) .control,:host(is:([disabled][appearance='primary'],[disabled-focusabale][appearance="primary"]):hover:active) .control{border-color:transparent}:host([appearance='outline']) .control{background-color:${colorTransparentBackground}}:host([appearance='outline']:hover) .control{background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active) .control{background-color:${colorTransparentBackgroundPressed}}:host(is:([disabled][appearance='outline'],[disabled-focusabale][appearance="outline"])) .control,:host(is:([disabled][appearance='outline'],[disabled-focusabale][appearance="outline"]):hover) .control,:host(is:([disabled][appearance='outline'],[disabled-focusabale][appearance="outline"]):hover:active) .control{background-color:${colorTransparentBackground}}:host([appearance='subtle']) .control{background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover) .control{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active) .control{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(is:([disabled][appearance='subtle'],[disabled-focusabale][appearance="subtle"])) .control,:host(is:([disabled][appearance='subtle'],[disabled-focusabale][appearance="subtle"]):hover) .control,:host(is:([disabled][appearance='subtle'],[disabled-focusabale][appearance="subtle"]):hover:active) .control{background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']) .control{background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover) .control{background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active) .control{background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']) .control,:host([appearance='transparent']:hover) .control,:host([appearance='transparent']:hover:active) .control{border-color:transparent}:host(is:([disabled][appearance='transparent'],[disabled-focusabale][appearance="transparent"])) .control,:host(is:([disabled][appearance='transparent'],[disabled-focusabale][appearance="transparent"]):hover) .control,:host(is:([disabled][appearance='transparent'],[disabled-focusabale][appearance="transparent"]):hover:active) .control{border-color:transparent;background-color:${colorTransparentBackground}}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active)
|
|
6032
6033
|
.control{background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
6033
6034
|
:host([appearance='transparent']:hover) .control{border-color:Highlight}`));
|
|
6034
6035
|
|
|
6035
|
-
const styles$
|
|
6036
|
-
${styles$
|
|
6036
|
+
const styles$n = css`
|
|
6037
|
+
${styles$o}
|
|
6037
6038
|
|
|
6038
6039
|
.content{text-align:center}`;
|
|
6039
6040
|
|
|
6040
|
-
const definition$
|
|
6041
|
+
const definition$p = AnchorButton.compose({
|
|
6041
6042
|
name: `${FluentDesignSystem.prefix}-anchor-button`,
|
|
6042
|
-
template: template$
|
|
6043
|
-
styles: styles$
|
|
6043
|
+
template: template$p,
|
|
6044
|
+
styles: styles$n,
|
|
6044
6045
|
shadowOptions: {
|
|
6045
6046
|
delegatesFocus: true
|
|
6046
6047
|
}
|
|
@@ -6155,12 +6156,12 @@ const AvatarSize = {
|
|
|
6155
6156
|
_128: 128
|
|
6156
6157
|
};
|
|
6157
6158
|
|
|
6158
|
-
var __defProp$
|
|
6159
|
-
var __getOwnPropDesc$
|
|
6160
|
-
var __decorateClass$
|
|
6161
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6159
|
+
var __defProp$h = Object.defineProperty;
|
|
6160
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
6161
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
6162
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
6162
6163
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6163
|
-
if (kind && result) __defProp$
|
|
6164
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
6164
6165
|
return result;
|
|
6165
6166
|
};
|
|
6166
6167
|
const _Avatar = class extends FASTElement {
|
|
@@ -6188,16 +6189,16 @@ const _Avatar = class extends FASTElement {
|
|
|
6188
6189
|
};
|
|
6189
6190
|
let Avatar = _Avatar;
|
|
6190
6191
|
Avatar.colors = Object.values(AvatarNamedColor);
|
|
6191
|
-
__decorateClass$
|
|
6192
|
-
__decorateClass$
|
|
6193
|
-
__decorateClass$
|
|
6192
|
+
__decorateClass$h([attr], Avatar.prototype, "name", 2);
|
|
6193
|
+
__decorateClass$h([attr], Avatar.prototype, "initials", 2);
|
|
6194
|
+
__decorateClass$h([attr({
|
|
6194
6195
|
converter: nullableNumberConverter
|
|
6195
6196
|
})], Avatar.prototype, "size", 2);
|
|
6196
|
-
__decorateClass$
|
|
6197
|
-
__decorateClass$
|
|
6198
|
-
__decorateClass$
|
|
6199
|
-
__decorateClass$
|
|
6200
|
-
__decorateClass$
|
|
6197
|
+
__decorateClass$h([attr], Avatar.prototype, "shape", 2);
|
|
6198
|
+
__decorateClass$h([attr], Avatar.prototype, "active", 2);
|
|
6199
|
+
__decorateClass$h([attr], Avatar.prototype, "appearance", 2);
|
|
6200
|
+
__decorateClass$h([attr], Avatar.prototype, "color", 2);
|
|
6201
|
+
__decorateClass$h([attr({
|
|
6201
6202
|
attribute: "color-id"
|
|
6202
6203
|
})], Avatar.prototype, "colorId", 2);
|
|
6203
6204
|
const getHashCode = str => {
|
|
@@ -6214,7 +6215,7 @@ const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 2
|
|
|
6214
6215
|
function avatarTemplate() {
|
|
6215
6216
|
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>`;
|
|
6216
6217
|
}
|
|
6217
|
-
const template$
|
|
6218
|
+
const template$o = avatarTemplate();
|
|
6218
6219
|
|
|
6219
6220
|
const animations = {
|
|
6220
6221
|
fastOutSlowInMax: curveDecelerateMax,
|
|
@@ -6227,13 +6228,13 @@ const animations = {
|
|
|
6227
6228
|
normalEase: curveEasyEase,
|
|
6228
6229
|
nullEasing: curveLinear
|
|
6229
6230
|
};
|
|
6230
|
-
const styles$
|
|
6231
|
+
const styles$m = css`
|
|
6231
6232
|
${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};contain:layout style}.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}}`;
|
|
6232
6233
|
|
|
6233
|
-
const definition$
|
|
6234
|
+
const definition$o = Avatar.compose({
|
|
6234
6235
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
6235
|
-
template: template$
|
|
6236
|
-
styles: styles$
|
|
6236
|
+
template: template$o,
|
|
6237
|
+
styles: styles$m
|
|
6237
6238
|
});
|
|
6238
6239
|
|
|
6239
6240
|
function applyMixins(derivedCtor, ...baseCtors) {
|
|
@@ -6279,12 +6280,12 @@ const BadgeSize = {
|
|
|
6279
6280
|
extraLarge: "extra-large"
|
|
6280
6281
|
};
|
|
6281
6282
|
|
|
6282
|
-
var __defProp$
|
|
6283
|
-
var __getOwnPropDesc$
|
|
6284
|
-
var __decorateClass$
|
|
6285
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6283
|
+
var __defProp$g = Object.defineProperty;
|
|
6284
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
6285
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
6286
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
6286
6287
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6287
|
-
if (kind && result) __defProp$
|
|
6288
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
6288
6289
|
return result;
|
|
6289
6290
|
};
|
|
6290
6291
|
class Badge extends FASTElement {
|
|
@@ -6294,16 +6295,16 @@ class Badge extends FASTElement {
|
|
|
6294
6295
|
this.color = BadgeColor.brand;
|
|
6295
6296
|
}
|
|
6296
6297
|
}
|
|
6297
|
-
__decorateClass$
|
|
6298
|
-
__decorateClass$
|
|
6299
|
-
__decorateClass$
|
|
6300
|
-
__decorateClass$
|
|
6298
|
+
__decorateClass$g([attr], Badge.prototype, "appearance", 2);
|
|
6299
|
+
__decorateClass$g([attr], Badge.prototype, "color", 2);
|
|
6300
|
+
__decorateClass$g([attr], Badge.prototype, "shape", 2);
|
|
6301
|
+
__decorateClass$g([attr], Badge.prototype, "size", 2);
|
|
6301
6302
|
applyMixins(Badge, StartEnd);
|
|
6302
6303
|
|
|
6303
6304
|
function badgeTemplate(options = {}) {
|
|
6304
6305
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
6305
6306
|
}
|
|
6306
|
-
const template$
|
|
6307
|
+
const template$n = badgeTemplate();
|
|
6307
6308
|
|
|
6308
6309
|
const textPadding = spacingHorizontalXXS;
|
|
6309
6310
|
const badgeBaseStyles = css.partial`
|
|
@@ -6554,7 +6555,7 @@ const badgeTintStyles = css.partial`
|
|
|
6554
6555
|
}
|
|
6555
6556
|
`;
|
|
6556
6557
|
|
|
6557
|
-
const styles$
|
|
6558
|
+
const styles$l = css`
|
|
6558
6559
|
: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}
|
|
6559
6560
|
${badgeFilledStyles}
|
|
6560
6561
|
${badgeGhostStyles}
|
|
@@ -6563,10 +6564,10 @@ const styles$k = css`
|
|
|
6563
6564
|
${badgeBaseStyles}
|
|
6564
6565
|
`;
|
|
6565
6566
|
|
|
6566
|
-
const definition$
|
|
6567
|
+
const definition$n = Badge.compose({
|
|
6567
6568
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
6568
|
-
template: template$
|
|
6569
|
-
styles: styles$
|
|
6569
|
+
template: template$n,
|
|
6570
|
+
styles: styles$l
|
|
6570
6571
|
});
|
|
6571
6572
|
|
|
6572
6573
|
const proxySlotName = "form-associated-proxy";
|
|
@@ -7177,12 +7178,12 @@ function buttonTemplate$1(options = {}) {
|
|
|
7177
7178
|
return html`<button class="control" part="control" ?autofocus="${x => x.autofocus}" ?disabled="${x => x.disabled}" form="${x => x.formId}" formaction="${x => x.formaction}" formenctype="${x => x.formenctype}" formmethod="${x => x.formmethod}" ?formnovalidate="${x => x.formnovalidate}" formtarget="${x => x.formtarget}" name="${x => x.name}" type="${x => x.type}" value="${x => x.value}" aria-atomic="${x => x.ariaAtomic}" aria-busy="${x => x.ariaBusy}" aria-controls="${x => x.ariaControls}" aria-current="${x => x.ariaCurrent}" aria-describedby="${x => x.ariaDescribedby}" aria-details="${x => x.ariaDetails}" aria-disabled="${x => x.ariaDisabled}" aria-errormessage="${x => x.ariaErrormessage}" aria-expanded="${x => x.ariaExpanded}" aria-flowto="${x => x.ariaFlowto}" aria-haspopup="${x => x.ariaHaspopup}" aria-hidden="${x => x.ariaHidden}" aria-invalid="${x => x.ariaInvalid}" aria-keyshortcuts="${x => x.ariaKeyshortcuts}" aria-label="${x => x.ariaLabel}" aria-labelledby="${x => x.ariaLabelledby}" aria-live="${x => x.ariaLive}" aria-owns="${x => x.ariaOwns}" aria-pressed="${x => x.ariaPressed}" aria-relevant="${x => x.ariaRelevant}" aria-roledescription="${x => x.ariaRoledescription}" ${ref("control")}>${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</button>`;
|
|
7178
7179
|
}
|
|
7179
7180
|
|
|
7180
|
-
var __defProp$
|
|
7181
|
-
var __getOwnPropDesc$
|
|
7182
|
-
var __decorateClass$
|
|
7183
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7181
|
+
var __defProp$f = Object.defineProperty;
|
|
7182
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
7183
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
7184
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
7184
7185
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7185
|
-
if (kind && result) __defProp$
|
|
7186
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
7186
7187
|
return result;
|
|
7187
7188
|
};
|
|
7188
7189
|
class Button extends FASTButton {
|
|
@@ -7216,24 +7217,24 @@ class Button extends FASTButton {
|
|
|
7216
7217
|
this.removeEventListener("click", this.handleDisabledFocusableClick);
|
|
7217
7218
|
}
|
|
7218
7219
|
}
|
|
7219
|
-
__decorateClass$
|
|
7220
|
-
__decorateClass$
|
|
7221
|
-
__decorateClass$
|
|
7222
|
-
__decorateClass$
|
|
7220
|
+
__decorateClass$f([attr], Button.prototype, "appearance", 2);
|
|
7221
|
+
__decorateClass$f([attr], Button.prototype, "shape", 2);
|
|
7222
|
+
__decorateClass$f([attr], Button.prototype, "size", 2);
|
|
7223
|
+
__decorateClass$f([attr({
|
|
7223
7224
|
attribute: "icon-only",
|
|
7224
7225
|
mode: "boolean"
|
|
7225
7226
|
})], Button.prototype, "iconOnly", 2);
|
|
7226
|
-
__decorateClass$
|
|
7227
|
+
__decorateClass$f([attr({
|
|
7227
7228
|
attribute: "disabled-focusable",
|
|
7228
7229
|
mode: "boolean"
|
|
7229
7230
|
})], Button.prototype, "disabledFocusable", 2);
|
|
7230
7231
|
|
|
7231
|
-
const template$
|
|
7232
|
+
const template$m = buttonTemplate$1();
|
|
7232
7233
|
|
|
7233
|
-
const definition$
|
|
7234
|
+
const definition$m = Button.compose({
|
|
7234
7235
|
name: `${FluentDesignSystem.prefix}-button`,
|
|
7235
|
-
template: template$
|
|
7236
|
-
styles: styles$
|
|
7236
|
+
template: template$m,
|
|
7237
|
+
styles: styles$o,
|
|
7237
7238
|
shadowOptions: {
|
|
7238
7239
|
delegatesFocus: true
|
|
7239
7240
|
}
|
|
@@ -7320,18 +7321,18 @@ class FASTCheckbox extends FormAssociatedCheckbox {
|
|
|
7320
7321
|
__decorate([observable], FASTCheckbox.prototype, "defaultSlottedNodes", void 0);
|
|
7321
7322
|
__decorate([observable], FASTCheckbox.prototype, "indeterminate", void 0);
|
|
7322
7323
|
|
|
7323
|
-
var __defProp$
|
|
7324
|
-
var __getOwnPropDesc$
|
|
7325
|
-
var __decorateClass$
|
|
7326
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7324
|
+
var __defProp$e = Object.defineProperty;
|
|
7325
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
7326
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
7327
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
7327
7328
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7328
|
-
if (kind && result) __defProp$
|
|
7329
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
7329
7330
|
return result;
|
|
7330
7331
|
};
|
|
7331
7332
|
class Checkbox extends FASTCheckbox {}
|
|
7332
|
-
__decorateClass$
|
|
7333
|
-
__decorateClass$
|
|
7334
|
-
__decorateClass$
|
|
7333
|
+
__decorateClass$e([attr], Checkbox.prototype, "shape", 2);
|
|
7334
|
+
__decorateClass$e([attr], Checkbox.prototype, "size", 2);
|
|
7335
|
+
__decorateClass$e([attr({
|
|
7335
7336
|
attribute: "label-position"
|
|
7336
7337
|
})], Checkbox.prototype, "labelPosition", 2);
|
|
7337
7338
|
|
|
@@ -7364,19 +7365,19 @@ const checkedIndicator = html.partial(`
|
|
|
7364
7365
|
const indeterminateIndicator = html.partial(`
|
|
7365
7366
|
<div class="indeterminate-indicator"></div>
|
|
7366
7367
|
`);
|
|
7367
|
-
const template$
|
|
7368
|
+
const template$l = checkboxTemplate({
|
|
7368
7369
|
checkedIndicator,
|
|
7369
7370
|
indeterminateIndicator
|
|
7370
7371
|
});
|
|
7371
7372
|
|
|
7372
|
-
const styles$
|
|
7373
|
+
const styles$k = css`
|
|
7373
7374
|
${display("inline-flex")}
|
|
7374
7375
|
:host{align-items:center;outline:none;user-select:none;vertical-align:middle;cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};color:${colorNeutralForeground3};position:relative}:host(:focus-visible)::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusMedium};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}.control{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;margin:${spacingVerticalS} ${spacingHorizontalS};fill:currentcolor;height:16px;width:16px;border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusSmall};outline:none}.label{align-self:center;cursor:inherit;padding-inline:${spacingHorizontalS};padding-bottom:${spacingVerticalS};padding-top:${spacingVerticalS}}.label__hidden{display:none;visibility:hidden}.checked-indicator{display:flex;align-items:center;justify-content:center;color:${colorNeutralForegroundInverted};font-size:12px;margin:auto;opacity:0}.indeterminate-indicator{position:absolute;width:8px;height:8px;border-radius:${borderRadiusSmall};background-color:${colorCompoundBrandForeground1};opacity:0}:host(:hover){color:${colorNeutralForeground2}}:host(:hover) .control{border-color:${colorNeutralStrokeAccessibleHover}}:host(:hover) .indeterminate-indicator{background-color:${colorCompoundBrandForeground1Hover}}:host(:active) .control{border-color:${colorNeutralStrokeAccessiblePressed}}:host(:active) .indeterminate-indicator{background-color:${colorCompoundBrandForeground1Pressed}}:host([aria-checked='true']),:host([aria-checked='mixed']),:host(:active){color:${colorNeutralForeground1}}:host([aria-checked='true']) .control{background-color:${colorCompoundBrandBackground}}:host([aria-checked='true']:hover) .control{border-color:${colorCompoundBrandStrokeHover};background-color:${colorCompoundBrandBackgroundHover}}:host([aria-checked='true']:active) .control{background-color:${colorCompoundBrandBackgroundPressed}}:host([aria-checked='mixed']:hover) .control{border-color:${colorCompoundBrandStrokeHover}}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='mixed']) .indeterminate-indicator{opacity:1}:host([aria-checked='true']) .control,:host([aria-checked='mixed']) .control{border-color:${colorCompoundBrandStroke}}:host([aria-checked='mixed']:active) .control,:host([aria-checked='true']:active) .control{border-color:${colorCompoundBrandStrokePressed}}:host([label-position='before']){flex-direction:row-reverse}:host([label-position='before']) .label{padding-inline:${spacingHorizontalS} ${spacingHorizontalXS};padding-top:${spacingVerticalS};padding-bottom:${spacingVerticalS}}:host([size='large']) .control{width:20px;height:20px}:host([size='large']) .checked-indicator{font-size:16px;height:20px}:host([aria-checked='mixed'][size='large']) .indeterminate-indicator{height:10px;width:10px}:host([shape='circular']) .control,:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]) .control,:host([aria-checked='mixed'][disabled]) .control,:host([aria-checked='true'][disabled]) .control{background-color:${colorTransparentBackgroundHover};border-color:${colorNeutralStrokeDisabled}}:host([aria-checked='true'][disabled]) .checked-indicator,:host([disabled]) ::slotted([slot='start']),:host([disabled]) .label,:host([aria-checked='mixed'][disabled]) .label,:host([aria-checked='true'][disabled]) .label{color:${colorNeutralForegroundDisabled}}:host([disabled]) .indeterminate-indicator{background-color:${colorNeutralForegroundDisabled}}`;
|
|
7375
7376
|
|
|
7376
|
-
const definition$
|
|
7377
|
+
const definition$l = Checkbox.compose({
|
|
7377
7378
|
name: `${FluentDesignSystem.prefix}-checkbox`,
|
|
7378
|
-
template: template$
|
|
7379
|
-
styles: styles$
|
|
7379
|
+
template: template$l,
|
|
7380
|
+
styles: styles$k
|
|
7380
7381
|
});
|
|
7381
7382
|
|
|
7382
7383
|
class CompoundButton extends Button {}
|
|
@@ -7388,31 +7389,31 @@ const CompoundButtonSize = ButtonSize;
|
|
|
7388
7389
|
function buttonTemplate(options = {}) {
|
|
7389
7390
|
return html`<button class="control" part="control" ?autofocus="${x => x.autofocus}" ?disabled="${x => x.disabled}" form="${x => x.formId}" formaction="${x => x.formaction}" formenctype="${x => x.formenctype}" formmethod="${x => x.formmethod}" ?formnovalidate="${x => x.formnovalidate}" formtarget="${x => x.formtarget}" name="${x => x.name}" type="${x => x.type}" value="${x => x.value}" aria-atomic="${x => x.ariaAtomic}" aria-busy="${x => x.ariaBusy}" aria-controls="${x => x.ariaControls}" aria-current="${x => x.ariaCurrent}" aria-describedby="${x => x.ariaDescribedby}" aria-details="${x => x.ariaDetails}" aria-disabled="${x => x.ariaDisabled}" aria-errormessage="${x => x.ariaErrormessage}" aria-expanded="${x => x.ariaExpanded}" aria-flowto="${x => x.ariaFlowto}" aria-haspopup="${x => x.ariaHaspopup}" aria-hidden="${x => x.ariaHidden}" aria-invalid="${x => x.ariaInvalid}" aria-keyshortcuts="${x => x.ariaKeyshortcuts}" aria-label="${x => x.ariaLabel}" aria-labelledby="${x => x.ariaLabelledby}" aria-live="${x => x.ariaLive}" aria-owns="${x => x.ariaOwns}" aria-pressed="${x => x.ariaPressed}" aria-relevant="${x => x.ariaRelevant}" aria-roledescription="${x => x.ariaRoledescription}" ${ref("control")}>${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot><slot name="description"></slot></span>${endSlotTemplate(options)}</button>`;
|
|
7390
7391
|
}
|
|
7391
|
-
const template$
|
|
7392
|
+
const template$k = buttonTemplate();
|
|
7392
7393
|
|
|
7393
|
-
const styles$
|
|
7394
|
-
${styles$
|
|
7394
|
+
const styles$j = css`
|
|
7395
|
+
${styles$o}
|
|
7395
7396
|
|
|
7396
7397
|
:host .control,:host(:is([size])) .control{gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
|
|
7397
7398
|
::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
|
|
7398
7399
|
::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
7399
7400
|
::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host([size='small']) .control{padding:8px;padding-bottom:10px}:host([icon-only]) .control{min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host([icon-only][size='small']) .control{min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host([icon-only][size='large']) .control{min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host([size='large']) .control{padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted([slot='description']){font-size:${fontSizeBase300}}`;
|
|
7400
7401
|
|
|
7401
|
-
const definition$
|
|
7402
|
+
const definition$k = CompoundButton.compose({
|
|
7402
7403
|
name: `${FluentDesignSystem.prefix}-compound-button`,
|
|
7403
|
-
template: template$
|
|
7404
|
-
styles: styles$
|
|
7404
|
+
template: template$k,
|
|
7405
|
+
styles: styles$j,
|
|
7405
7406
|
shadowOptions: {
|
|
7406
7407
|
delegatesFocus: true
|
|
7407
7408
|
}
|
|
7408
7409
|
});
|
|
7409
7410
|
|
|
7410
|
-
var __defProp$
|
|
7411
|
-
var __getOwnPropDesc$
|
|
7412
|
-
var __decorateClass$
|
|
7413
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7411
|
+
var __defProp$d = Object.defineProperty;
|
|
7412
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
7413
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
7414
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
7414
7415
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7415
|
-
if (kind && result) __defProp$
|
|
7416
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
7416
7417
|
return result;
|
|
7417
7418
|
};
|
|
7418
7419
|
class CounterBadge extends FASTElement {
|
|
@@ -7438,22 +7439,22 @@ class CounterBadge extends FASTElement {
|
|
|
7438
7439
|
return;
|
|
7439
7440
|
}
|
|
7440
7441
|
}
|
|
7441
|
-
__decorateClass$
|
|
7442
|
-
__decorateClass$
|
|
7443
|
-
__decorateClass$
|
|
7444
|
-
__decorateClass$
|
|
7445
|
-
__decorateClass$
|
|
7442
|
+
__decorateClass$d([attr], CounterBadge.prototype, "appearance", 2);
|
|
7443
|
+
__decorateClass$d([attr], CounterBadge.prototype, "color", 2);
|
|
7444
|
+
__decorateClass$d([attr], CounterBadge.prototype, "shape", 2);
|
|
7445
|
+
__decorateClass$d([attr], CounterBadge.prototype, "size", 2);
|
|
7446
|
+
__decorateClass$d([attr({
|
|
7446
7447
|
converter: nullableNumberConverter
|
|
7447
7448
|
})], CounterBadge.prototype, "count", 2);
|
|
7448
|
-
__decorateClass$
|
|
7449
|
+
__decorateClass$d([attr({
|
|
7449
7450
|
attribute: "overflow-count",
|
|
7450
7451
|
converter: nullableNumberConverter
|
|
7451
7452
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
7452
|
-
__decorateClass$
|
|
7453
|
+
__decorateClass$d([attr({
|
|
7453
7454
|
attribute: "show-zero",
|
|
7454
7455
|
mode: "boolean"
|
|
7455
7456
|
})], CounterBadge.prototype, "showZero", 2);
|
|
7456
|
-
__decorateClass$
|
|
7457
|
+
__decorateClass$d([attr({
|
|
7457
7458
|
mode: "boolean"
|
|
7458
7459
|
})], CounterBadge.prototype, "dot", 2);
|
|
7459
7460
|
applyMixins(CounterBadge, StartEnd);
|
|
@@ -7490,9 +7491,9 @@ function composeTemplate(options = {}) {
|
|
|
7490
7491
|
defaultContent: html`${x => x.setCount()}`
|
|
7491
7492
|
});
|
|
7492
7493
|
}
|
|
7493
|
-
const template$
|
|
7494
|
+
const template$j = composeTemplate();
|
|
7494
7495
|
|
|
7495
|
-
const styles$
|
|
7496
|
+
const styles$i = css`
|
|
7496
7497
|
: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}
|
|
7497
7498
|
${badgeFilledStyles}
|
|
7498
7499
|
${badgeGhostStyles}
|
|
@@ -7500,10 +7501,10 @@ const styles$h = css`
|
|
|
7500
7501
|
|
|
7501
7502
|
:host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;
|
|
7502
7503
|
|
|
7503
|
-
const definition$
|
|
7504
|
+
const definition$j = CounterBadge.compose({
|
|
7504
7505
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
7505
|
-
template: template$
|
|
7506
|
-
styles: styles$
|
|
7506
|
+
template: template$j,
|
|
7507
|
+
styles: styles$i
|
|
7507
7508
|
});
|
|
7508
7509
|
|
|
7509
7510
|
/**
|
|
@@ -7564,20 +7565,20 @@ class FASTDivider extends FASTElement {
|
|
|
7564
7565
|
__decorate([attr], FASTDivider.prototype, "role", void 0);
|
|
7565
7566
|
__decorate([attr], FASTDivider.prototype, "orientation", void 0);
|
|
7566
7567
|
|
|
7567
|
-
var __defProp$
|
|
7568
|
-
var __getOwnPropDesc$
|
|
7569
|
-
var __decorateClass$
|
|
7570
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7568
|
+
var __defProp$c = Object.defineProperty;
|
|
7569
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
7570
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
7571
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
7571
7572
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7572
|
-
if (kind && result) __defProp$
|
|
7573
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
7573
7574
|
return result;
|
|
7574
7575
|
};
|
|
7575
7576
|
class Divider extends FASTDivider {}
|
|
7576
|
-
__decorateClass$
|
|
7577
|
+
__decorateClass$c([attr({
|
|
7577
7578
|
attribute: "align-content"
|
|
7578
7579
|
})], Divider.prototype, "alignContent", 2);
|
|
7579
|
-
__decorateClass$
|
|
7580
|
-
__decorateClass$
|
|
7580
|
+
__decorateClass$c([attr], Divider.prototype, "appearance", 2);
|
|
7581
|
+
__decorateClass$c([attr({
|
|
7581
7582
|
mode: "boolean"
|
|
7582
7583
|
})], Divider.prototype, "inset", 2);
|
|
7583
7584
|
|
|
@@ -7593,40 +7594,40 @@ const DividerAppearance = {
|
|
|
7593
7594
|
default: "default"
|
|
7594
7595
|
};
|
|
7595
7596
|
|
|
7596
|
-
const template$
|
|
7597
|
+
const template$i = dividerTemplate();
|
|
7597
7598
|
|
|
7598
|
-
const styles$
|
|
7599
|
+
const styles$h = css`
|
|
7599
7600
|
${display("flex")}
|
|
7600
7601
|
|
|
7601
7602
|
:host{contain:content}: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}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7602
7603
|
:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
|
|
7603
7604
|
|
|
7604
|
-
const definition$
|
|
7605
|
+
const definition$i = Divider.compose({
|
|
7605
7606
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
7606
|
-
template: template$
|
|
7607
|
-
styles: styles$
|
|
7607
|
+
template: template$i,
|
|
7608
|
+
styles: styles$h
|
|
7608
7609
|
});
|
|
7609
7610
|
|
|
7610
|
-
var __defProp$
|
|
7611
|
-
var __getOwnPropDesc$
|
|
7612
|
-
var __decorateClass$
|
|
7613
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7611
|
+
var __defProp$b = Object.defineProperty;
|
|
7612
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
7613
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
7614
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
7614
7615
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7615
|
-
if (kind && result) __defProp$
|
|
7616
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
7616
7617
|
return result;
|
|
7617
7618
|
};
|
|
7618
7619
|
class Image extends FASTElement {}
|
|
7619
|
-
__decorateClass$
|
|
7620
|
+
__decorateClass$b([attr({
|
|
7620
7621
|
mode: "boolean"
|
|
7621
7622
|
})], Image.prototype, "block", 2);
|
|
7622
|
-
__decorateClass$
|
|
7623
|
+
__decorateClass$b([attr({
|
|
7623
7624
|
mode: "boolean"
|
|
7624
7625
|
})], Image.prototype, "bordered", 2);
|
|
7625
|
-
__decorateClass$
|
|
7626
|
+
__decorateClass$b([attr({
|
|
7626
7627
|
mode: "boolean"
|
|
7627
7628
|
})], Image.prototype, "shadow", 2);
|
|
7628
|
-
__decorateClass$
|
|
7629
|
-
__decorateClass$
|
|
7629
|
+
__decorateClass$b([attr], Image.prototype, "fit", 2);
|
|
7630
|
+
__decorateClass$b([attr], Image.prototype, "shape", 2);
|
|
7630
7631
|
|
|
7631
7632
|
const ImageFit = {
|
|
7632
7633
|
none: "none",
|
|
@@ -7641,23 +7642,23 @@ const ImageShape = {
|
|
|
7641
7642
|
square: "square"
|
|
7642
7643
|
};
|
|
7643
7644
|
|
|
7644
|
-
const template$
|
|
7645
|
+
const template$h = html`<slot></slot>`;
|
|
7645
7646
|
|
|
7646
|
-
const styles$
|
|
7647
|
+
const styles$g = css`
|
|
7647
7648
|
:host{contain:content}: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}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
7648
7649
|
|
|
7649
|
-
const definition$
|
|
7650
|
+
const definition$h = Image.compose({
|
|
7650
7651
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
7651
|
-
template: template$
|
|
7652
|
-
styles: styles$
|
|
7652
|
+
template: template$h,
|
|
7653
|
+
styles: styles$g
|
|
7653
7654
|
});
|
|
7654
7655
|
|
|
7655
|
-
var __defProp$
|
|
7656
|
-
var __getOwnPropDesc$
|
|
7657
|
-
var __decorateClass$
|
|
7658
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7656
|
+
var __defProp$a = Object.defineProperty;
|
|
7657
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
7658
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
7659
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
7659
7660
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7660
|
-
if (kind && result) __defProp$
|
|
7661
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
7661
7662
|
return result;
|
|
7662
7663
|
};
|
|
7663
7664
|
class Label extends FASTElement {
|
|
@@ -7667,16 +7668,16 @@ class Label extends FASTElement {
|
|
|
7667
7668
|
this.required = false;
|
|
7668
7669
|
}
|
|
7669
7670
|
}
|
|
7670
|
-
__decorateClass$
|
|
7671
|
-
__decorateClass$
|
|
7672
|
-
__decorateClass$
|
|
7671
|
+
__decorateClass$a([attr], Label.prototype, "size", 2);
|
|
7672
|
+
__decorateClass$a([attr], Label.prototype, "weight", 2);
|
|
7673
|
+
__decorateClass$a([attr({
|
|
7673
7674
|
mode: "boolean"
|
|
7674
7675
|
})], Label.prototype, "disabled", 2);
|
|
7675
|
-
__decorateClass$
|
|
7676
|
+
__decorateClass$a([attr({
|
|
7676
7677
|
mode: "boolean"
|
|
7677
7678
|
})], Label.prototype, "required", 2);
|
|
7678
7679
|
|
|
7679
|
-
const styles$
|
|
7680
|
+
const styles$f = css`
|
|
7680
7681
|
${display("flex")}
|
|
7681
7682
|
|
|
7682
7683
|
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};color:${colorNeutralForeground1}}.asterisk{color:${colorPaletteRedForeground1};margin-left:${spacingHorizontalXS}}:host([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400};font-weight:${fontWeightSemibold}}:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
@@ -7684,73 +7685,14 @@ const styles$e = css`
|
|
|
7684
7685
|
function labelTemplate() {
|
|
7685
7686
|
return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
|
|
7686
7687
|
}
|
|
7687
|
-
const template$
|
|
7688
|
+
const template$g = labelTemplate();
|
|
7688
7689
|
|
|
7689
|
-
const definition$
|
|
7690
|
+
const definition$g = Label.compose({
|
|
7690
7691
|
name: `${FluentDesignSystem.prefix}-label`,
|
|
7691
|
-
template: template$
|
|
7692
|
-
styles: styles$
|
|
7693
|
-
});
|
|
7694
|
-
|
|
7695
|
-
class MenuButton extends Button {}
|
|
7696
|
-
|
|
7697
|
-
const MenuButtonAppearance = ButtonAppearance;
|
|
7698
|
-
const MenuButtonShape = ButtonShape;
|
|
7699
|
-
const MenuButtonSize = ButtonSize;
|
|
7700
|
-
|
|
7701
|
-
const template$e = buttonTemplate$1({
|
|
7702
|
-
end: html.partial(`<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path></svg>`)
|
|
7703
|
-
});
|
|
7704
|
-
|
|
7705
|
-
const definition$e = MenuButton.compose({
|
|
7706
|
-
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
7707
|
-
template: template$e,
|
|
7708
|
-
styles: styles$n,
|
|
7709
|
-
shadowOptions: {
|
|
7710
|
-
delegatesFocus: true
|
|
7711
|
-
}
|
|
7712
|
-
});
|
|
7713
|
-
|
|
7714
|
-
/**
|
|
7715
|
-
* Menu items roles.
|
|
7716
|
-
* @public
|
|
7717
|
-
*/
|
|
7718
|
-
const MenuItemRole = {
|
|
7719
|
-
/**
|
|
7720
|
-
* The menu item has a "menuitem" role
|
|
7721
|
-
*/
|
|
7722
|
-
menuitem: "menuitem",
|
|
7723
|
-
/**
|
|
7724
|
-
* The menu item has a "menuitemcheckbox" role
|
|
7725
|
-
*/
|
|
7726
|
-
menuitemcheckbox: "menuitemcheckbox",
|
|
7727
|
-
/**
|
|
7728
|
-
* The menu item has a "menuitemradio" role
|
|
7729
|
-
*/
|
|
7730
|
-
menuitemradio: "menuitemradio"
|
|
7731
|
-
};
|
|
7732
|
-
/**
|
|
7733
|
-
* @internal
|
|
7734
|
-
*/
|
|
7735
|
-
({
|
|
7736
|
-
[MenuItemRole.menuitem]: "menuitem",
|
|
7737
|
-
[MenuItemRole.menuitemcheckbox]: "menuitemcheckbox",
|
|
7738
|
-
[MenuItemRole.menuitemradio]: "menuitemradio"
|
|
7692
|
+
template: template$g,
|
|
7693
|
+
styles: styles$f
|
|
7739
7694
|
});
|
|
7740
7695
|
|
|
7741
|
-
/**
|
|
7742
|
-
* Generates a template for the {@link @microsoft/fast-foundation#(FASTMenuItem:class)} component using
|
|
7743
|
-
* the provided prefix.
|
|
7744
|
-
*
|
|
7745
|
-
* @public
|
|
7746
|
-
*/
|
|
7747
|
-
function menuItemTemplate(options = {}) {
|
|
7748
|
-
return html`<template aria-haspopup="${x => x.hasSubmenu ? "menu" : void 0}" aria-checked="${x => x.role !== MenuItemRole.menuitem ? x.checked : void 0}" aria-disabled="${x => x.disabled}" aria-expanded="${x => x.expanded}" @keydown="${(x, c) => x.handleMenuItemKeyDown(c.event)}" @click="${(x, c) => x.handleMenuItemClick(c.event)}" @mouseover="${(x, c) => x.handleMouseOver(c.event)}" @mouseout="${(x, c) => x.handleMouseOut(c.event)}">${when(x => x.role === MenuItemRole.menuitemcheckbox, html`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${staticallyCompose(options.checkboxIndicator)}</slot></span></div>`)} ${when(x => x.role === MenuItemRole.menuitemradio, html`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${staticallyCompose(options.radioIndicator)}</slot></span></div>`)}</div>${startSlotTemplate(options)}<span class="content" part="content"><slot></slot></span>${endSlotTemplate(options)} ${when(x => x.hasSubmenu, html`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${staticallyCompose(options.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${x => !x.expanded}" class="submenu-container" part="submenu-container" ${ref("submenuContainer")}><slot name="submenu" ${slotted({
|
|
7749
|
-
property: "slottedSubmenu",
|
|
7750
|
-
filter: elements("[role='menu']")
|
|
7751
|
-
})}></slot></span></template>`;
|
|
7752
|
-
}
|
|
7753
|
-
|
|
7754
7696
|
function t(t) {
|
|
7755
7697
|
return t.split("-")[1];
|
|
7756
7698
|
}
|
|
@@ -8089,6 +8031,62 @@ const b$1 = function (e) {
|
|
|
8089
8031
|
}
|
|
8090
8032
|
};
|
|
8091
8033
|
};
|
|
8034
|
+
function R$1(t, e) {
|
|
8035
|
+
return {
|
|
8036
|
+
top: t.top - e.height,
|
|
8037
|
+
right: t.right - e.width,
|
|
8038
|
+
bottom: t.bottom - e.height,
|
|
8039
|
+
left: t.left - e.width
|
|
8040
|
+
};
|
|
8041
|
+
}
|
|
8042
|
+
function A$1(t) {
|
|
8043
|
+
return g$1.some(e => t[e] >= 0);
|
|
8044
|
+
}
|
|
8045
|
+
const P$1 = function (t) {
|
|
8046
|
+
return void 0 === t && (t = {}), {
|
|
8047
|
+
name: "hide",
|
|
8048
|
+
options: t,
|
|
8049
|
+
async fn(e) {
|
|
8050
|
+
const {
|
|
8051
|
+
strategy: n = "referenceHidden",
|
|
8052
|
+
...o
|
|
8053
|
+
} = t,
|
|
8054
|
+
{
|
|
8055
|
+
rects: r
|
|
8056
|
+
} = e;
|
|
8057
|
+
switch (n) {
|
|
8058
|
+
case "referenceHidden":
|
|
8059
|
+
{
|
|
8060
|
+
const t = R$1(await s$1(e, {
|
|
8061
|
+
...o,
|
|
8062
|
+
elementContext: "reference"
|
|
8063
|
+
}), r.reference);
|
|
8064
|
+
return {
|
|
8065
|
+
data: {
|
|
8066
|
+
referenceHiddenOffsets: t,
|
|
8067
|
+
referenceHidden: A$1(t)
|
|
8068
|
+
}
|
|
8069
|
+
};
|
|
8070
|
+
}
|
|
8071
|
+
case "escaped":
|
|
8072
|
+
{
|
|
8073
|
+
const t = R$1(await s$1(e, {
|
|
8074
|
+
...o,
|
|
8075
|
+
altBoundary: !0
|
|
8076
|
+
}), r.floating);
|
|
8077
|
+
return {
|
|
8078
|
+
data: {
|
|
8079
|
+
escapedOffsets: t,
|
|
8080
|
+
escaped: A$1(t)
|
|
8081
|
+
}
|
|
8082
|
+
};
|
|
8083
|
+
}
|
|
8084
|
+
default:
|
|
8085
|
+
return {};
|
|
8086
|
+
}
|
|
8087
|
+
}
|
|
8088
|
+
};
|
|
8089
|
+
};
|
|
8092
8090
|
function D$1(t) {
|
|
8093
8091
|
return "x" === t ? "y" : "x";
|
|
8094
8092
|
}
|
|
@@ -8610,6 +8608,344 @@ const z = (t, n, o) => {
|
|
|
8610
8608
|
});
|
|
8611
8609
|
};
|
|
8612
8610
|
|
|
8611
|
+
var __defProp$9 = Object.defineProperty;
|
|
8612
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
8613
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
8614
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
8615
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8616
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
8617
|
+
return result;
|
|
8618
|
+
};
|
|
8619
|
+
class Menu extends FASTElement {
|
|
8620
|
+
constructor() {
|
|
8621
|
+
super(...arguments);
|
|
8622
|
+
this.openOnHover = false;
|
|
8623
|
+
this.openOnContext = false;
|
|
8624
|
+
this.closeOnScroll = false;
|
|
8625
|
+
this.persistOnItemClick = false;
|
|
8626
|
+
this.open = false;
|
|
8627
|
+
this.slottedMenuList = [];
|
|
8628
|
+
this.slottedTriggers = [];
|
|
8629
|
+
this.toggleMenu = () => {
|
|
8630
|
+
if (this.open) {
|
|
8631
|
+
this.closeMenu();
|
|
8632
|
+
} else {
|
|
8633
|
+
this.openMenu();
|
|
8634
|
+
}
|
|
8635
|
+
};
|
|
8636
|
+
this.closeMenu = () => {
|
|
8637
|
+
this.open = false;
|
|
8638
|
+
if (this.closeOnScroll) {
|
|
8639
|
+
document.removeEventListener("scroll", this.closeMenu);
|
|
8640
|
+
}
|
|
8641
|
+
};
|
|
8642
|
+
this.openMenu = e => {
|
|
8643
|
+
this.open = true;
|
|
8644
|
+
if (e && this.openOnContext) {
|
|
8645
|
+
e.preventDefault();
|
|
8646
|
+
}
|
|
8647
|
+
if (this.closeOnScroll) {
|
|
8648
|
+
document.addEventListener("scroll", this.closeMenu);
|
|
8649
|
+
}
|
|
8650
|
+
};
|
|
8651
|
+
this.setPositioningTask = () => {
|
|
8652
|
+
this.setPositioning();
|
|
8653
|
+
};
|
|
8654
|
+
this.handleTriggerKeydown = e => {
|
|
8655
|
+
if (e.defaultPrevented) {
|
|
8656
|
+
return;
|
|
8657
|
+
}
|
|
8658
|
+
const key = e.key;
|
|
8659
|
+
switch (key) {
|
|
8660
|
+
case keySpace:
|
|
8661
|
+
case keyEnter:
|
|
8662
|
+
e.preventDefault();
|
|
8663
|
+
this.toggleMenu();
|
|
8664
|
+
if (this.open) {
|
|
8665
|
+
this.focusMenuList();
|
|
8666
|
+
}
|
|
8667
|
+
break;
|
|
8668
|
+
default:
|
|
8669
|
+
return true;
|
|
8670
|
+
}
|
|
8671
|
+
};
|
|
8672
|
+
this.handleDocumentClick = e => {
|
|
8673
|
+
if (e && !e.composedPath().includes(this._menuList) && !e.composedPath().includes(this._trigger)) {
|
|
8674
|
+
this.closeMenu();
|
|
8675
|
+
}
|
|
8676
|
+
};
|
|
8677
|
+
}
|
|
8678
|
+
connectedCallback() {
|
|
8679
|
+
super.connectedCallback();
|
|
8680
|
+
Updates.enqueue(() => this.setComponent());
|
|
8681
|
+
}
|
|
8682
|
+
disconnectedCallback() {
|
|
8683
|
+
var _a;
|
|
8684
|
+
super.disconnectedCallback();
|
|
8685
|
+
(_a = this.cleanup) == null ? void 0 : _a.call(this);
|
|
8686
|
+
this.removeListeners();
|
|
8687
|
+
}
|
|
8688
|
+
setComponent() {
|
|
8689
|
+
if (this.$fastController.isConnected && this.slottedMenuList.length && this.slottedTriggers.length) {
|
|
8690
|
+
this._trigger = this.slottedTriggers[0];
|
|
8691
|
+
this._menuList = this.slottedMenuList[0];
|
|
8692
|
+
this._trigger.setAttribute("aria-haspopup", "true");
|
|
8693
|
+
this._trigger.setAttribute("aria-expanded", `${this.open}`);
|
|
8694
|
+
this.addListeners();
|
|
8695
|
+
}
|
|
8696
|
+
}
|
|
8697
|
+
focusMenuList() {
|
|
8698
|
+
if (this.open && this._menuList) {
|
|
8699
|
+
Updates.enqueue(() => {
|
|
8700
|
+
this._menuList.focus();
|
|
8701
|
+
});
|
|
8702
|
+
}
|
|
8703
|
+
}
|
|
8704
|
+
focusTrigger() {
|
|
8705
|
+
if (!this.open && this._trigger) {
|
|
8706
|
+
Updates.enqueue(() => {
|
|
8707
|
+
this._trigger.focus();
|
|
8708
|
+
});
|
|
8709
|
+
}
|
|
8710
|
+
}
|
|
8711
|
+
openChanged(oldValue, newValue) {
|
|
8712
|
+
var _a;
|
|
8713
|
+
if (this.$fastController.isConnected && this._trigger instanceof HTMLElement) {
|
|
8714
|
+
this._trigger.setAttribute("aria-expanded", `${this.open}`);
|
|
8715
|
+
if (this._menuList && this.open) {
|
|
8716
|
+
Updates.enqueue(this.setPositioningTask);
|
|
8717
|
+
}
|
|
8718
|
+
}
|
|
8719
|
+
(_a = this.cleanup) == null ? void 0 : _a.call(this);
|
|
8720
|
+
this.$emit("onOpenChange", {
|
|
8721
|
+
open: newValue
|
|
8722
|
+
});
|
|
8723
|
+
}
|
|
8724
|
+
openOnHoverChanged(oldValue, newValue) {
|
|
8725
|
+
var _a, _b;
|
|
8726
|
+
if (newValue) {
|
|
8727
|
+
(_a = this._trigger) == null ? void 0 : _a.addEventListener("mouseover", this.openMenu);
|
|
8728
|
+
} else {
|
|
8729
|
+
(_b = this._trigger) == null ? void 0 : _b.removeEventListener("mouseover", this.openMenu);
|
|
8730
|
+
}
|
|
8731
|
+
}
|
|
8732
|
+
persistOnItemClickChanged(oldValue, newValue) {
|
|
8733
|
+
var _a, _b;
|
|
8734
|
+
if (!newValue) {
|
|
8735
|
+
(_a = this._menuList) == null ? void 0 : _a.addEventListener("click", this.closeMenu);
|
|
8736
|
+
} else {
|
|
8737
|
+
(_b = this._menuList) == null ? void 0 : _b.removeEventListener("click", this.closeMenu);
|
|
8738
|
+
}
|
|
8739
|
+
}
|
|
8740
|
+
openOnContextChanged(oldValue, newValue) {
|
|
8741
|
+
var _a, _b;
|
|
8742
|
+
if (newValue) {
|
|
8743
|
+
(_a = this._trigger) == null ? void 0 : _a.addEventListener("contextmenu", this.openMenu);
|
|
8744
|
+
} else {
|
|
8745
|
+
(_b = this._trigger) == null ? void 0 : _b.removeEventListener("contextmenu", this.openMenu);
|
|
8746
|
+
}
|
|
8747
|
+
}
|
|
8748
|
+
closeOnScrollChanged(oldValue, newValue) {
|
|
8749
|
+
if (newValue) {
|
|
8750
|
+
document.addEventListener("scroll", this.closeMenu);
|
|
8751
|
+
} else {
|
|
8752
|
+
document.removeEventListener("scroll", this.closeMenu);
|
|
8753
|
+
}
|
|
8754
|
+
}
|
|
8755
|
+
setPositioning() {
|
|
8756
|
+
if (this.$fastController.isConnected && this._menuList && this.open && this._trigger) {
|
|
8757
|
+
this.cleanup = P(this, this.positioningContainer, async () => {
|
|
8758
|
+
var _a, _b;
|
|
8759
|
+
const {
|
|
8760
|
+
middlewareData,
|
|
8761
|
+
x,
|
|
8762
|
+
y
|
|
8763
|
+
} = await z(this._trigger, this.positioningContainer, {
|
|
8764
|
+
placement: "bottom",
|
|
8765
|
+
strategy: "fixed",
|
|
8766
|
+
middleware: [b$1(), k({
|
|
8767
|
+
apply: ({
|
|
8768
|
+
availableHeight,
|
|
8769
|
+
rects
|
|
8770
|
+
}) => {
|
|
8771
|
+
var _a2;
|
|
8772
|
+
((_a2 = this.positioningContainer) == null ? void 0 : _a2.style) && Object.assign(this.positioningContainer.style, {
|
|
8773
|
+
maxHeight: `${availableHeight}px`,
|
|
8774
|
+
width: `${rects.reference.width}px`
|
|
8775
|
+
});
|
|
8776
|
+
}
|
|
8777
|
+
}), P$1()]
|
|
8778
|
+
});
|
|
8779
|
+
if ((_a = middlewareData.hide) == null ? void 0 : _a.referenceHidden) {
|
|
8780
|
+
this.open = false;
|
|
8781
|
+
return;
|
|
8782
|
+
}
|
|
8783
|
+
((_b = this.positioningContainer) == null ? void 0 : _b.style) && Object.assign(this.positioningContainer.style, {
|
|
8784
|
+
position: "fixed",
|
|
8785
|
+
top: "0",
|
|
8786
|
+
left: "0",
|
|
8787
|
+
transform: `translate(${x}px, ${y}px)`
|
|
8788
|
+
});
|
|
8789
|
+
});
|
|
8790
|
+
}
|
|
8791
|
+
}
|
|
8792
|
+
addListeners() {
|
|
8793
|
+
var _a, _b, _c, _d, _e;
|
|
8794
|
+
document.addEventListener("click", this.handleDocumentClick);
|
|
8795
|
+
(_a = this._trigger) == null ? void 0 : _a.addEventListener("keydown", this.handleTriggerKeydown);
|
|
8796
|
+
if (!this.persistOnItemClick) {
|
|
8797
|
+
(_b = this._menuList) == null ? void 0 : _b.addEventListener("click", this.closeMenu);
|
|
8798
|
+
}
|
|
8799
|
+
if (this.openOnHover) {
|
|
8800
|
+
(_c = this._trigger) == null ? void 0 : _c.addEventListener("mouseover", this.openMenu);
|
|
8801
|
+
} else if (this.openOnContext) {
|
|
8802
|
+
(_d = this._trigger) == null ? void 0 : _d.addEventListener("contextmenu", this.openMenu);
|
|
8803
|
+
} else {
|
|
8804
|
+
(_e = this._trigger) == null ? void 0 : _e.addEventListener("click", this.toggleMenu);
|
|
8805
|
+
}
|
|
8806
|
+
}
|
|
8807
|
+
removeListeners() {
|
|
8808
|
+
var _a, _b, _c, _d, _e;
|
|
8809
|
+
document.removeEventListener("click", this.handleDocumentClick);
|
|
8810
|
+
(_a = this._trigger) == null ? void 0 : _a.removeEventListener("keydown", this.handleTriggerKeydown);
|
|
8811
|
+
if (!this.persistOnItemClick) {
|
|
8812
|
+
(_b = this._menuList) == null ? void 0 : _b.removeEventListener("click", this.closeMenu);
|
|
8813
|
+
}
|
|
8814
|
+
if (this.openOnHover) {
|
|
8815
|
+
(_c = this._trigger) == null ? void 0 : _c.removeEventListener("mouseover", this.openMenu);
|
|
8816
|
+
}
|
|
8817
|
+
if (this.openOnContext) {
|
|
8818
|
+
(_d = this._trigger) == null ? void 0 : _d.removeEventListener("contextmenu", this.openMenu);
|
|
8819
|
+
} else {
|
|
8820
|
+
(_e = this._trigger) == null ? void 0 : _e.removeEventListener("click", this.toggleMenu);
|
|
8821
|
+
}
|
|
8822
|
+
}
|
|
8823
|
+
handleMenuKeydown(e) {
|
|
8824
|
+
if (e.defaultPrevented) {
|
|
8825
|
+
return;
|
|
8826
|
+
}
|
|
8827
|
+
const key = e.key;
|
|
8828
|
+
switch (key) {
|
|
8829
|
+
case keyEscape:
|
|
8830
|
+
e.preventDefault();
|
|
8831
|
+
if (this.open) {
|
|
8832
|
+
this.closeMenu();
|
|
8833
|
+
this.focusTrigger();
|
|
8834
|
+
}
|
|
8835
|
+
break;
|
|
8836
|
+
case keyTab:
|
|
8837
|
+
if (this.open) {
|
|
8838
|
+
this.closeMenu();
|
|
8839
|
+
}
|
|
8840
|
+
if (e.shiftKey) {
|
|
8841
|
+
this.focusTrigger();
|
|
8842
|
+
}
|
|
8843
|
+
default:
|
|
8844
|
+
return true;
|
|
8845
|
+
}
|
|
8846
|
+
}
|
|
8847
|
+
}
|
|
8848
|
+
__decorateClass$9([observable, attr({
|
|
8849
|
+
attribute: "open-on-hover",
|
|
8850
|
+
mode: "boolean"
|
|
8851
|
+
})], Menu.prototype, "openOnHover", 2);
|
|
8852
|
+
__decorateClass$9([observable, attr({
|
|
8853
|
+
attribute: "open-on-context",
|
|
8854
|
+
mode: "boolean"
|
|
8855
|
+
})], Menu.prototype, "openOnContext", 2);
|
|
8856
|
+
__decorateClass$9([observable, attr({
|
|
8857
|
+
attribute: "close-on-scroll",
|
|
8858
|
+
mode: "boolean"
|
|
8859
|
+
})], Menu.prototype, "closeOnScroll", 2);
|
|
8860
|
+
__decorateClass$9([observable, attr({
|
|
8861
|
+
attribute: "persist-on-item-click",
|
|
8862
|
+
mode: "boolean"
|
|
8863
|
+
})], Menu.prototype, "persistOnItemClick", 2);
|
|
8864
|
+
__decorateClass$9([observable, attr({
|
|
8865
|
+
mode: "boolean"
|
|
8866
|
+
})], Menu.prototype, "open", 2);
|
|
8867
|
+
__decorateClass$9([observable], Menu.prototype, "slottedMenuList", 2);
|
|
8868
|
+
__decorateClass$9([observable], Menu.prototype, "slottedTriggers", 2);
|
|
8869
|
+
|
|
8870
|
+
function menuTemplate$1() {
|
|
8871
|
+
return html`<template ?open-on-hover="${x => x.openOnHover}" ?open-on-context="${x => x.openOnContext}" ?close-on-scroll="${x => x.closeOnScroll}" ?persist-on-item-click="${x => x.persistOnItemClick}" @keydown="${(x, c) => x.handleMenuKeydown(c.event)}"><slot name="trigger" ${slotted({
|
|
8872
|
+
property: "slottedTriggers",
|
|
8873
|
+
filter: elements()
|
|
8874
|
+
})}></slot><span ${ref("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${x => !x.open}"><slot ${slotted({
|
|
8875
|
+
property: "slottedMenuList",
|
|
8876
|
+
filter: elements()
|
|
8877
|
+
})}></slot></span></template>`;
|
|
8878
|
+
}
|
|
8879
|
+
const template$f = menuTemplate$1();
|
|
8880
|
+
|
|
8881
|
+
const styles$e = css`
|
|
8882
|
+
:host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;
|
|
8883
|
+
|
|
8884
|
+
const definition$f = Menu.compose({
|
|
8885
|
+
name: `${FluentDesignSystem.prefix}-menu`,
|
|
8886
|
+
template: template$f,
|
|
8887
|
+
styles: styles$e
|
|
8888
|
+
});
|
|
8889
|
+
|
|
8890
|
+
class MenuButton extends Button {}
|
|
8891
|
+
|
|
8892
|
+
const MenuButtonAppearance = ButtonAppearance;
|
|
8893
|
+
const MenuButtonShape = ButtonShape;
|
|
8894
|
+
const MenuButtonSize = ButtonSize;
|
|
8895
|
+
|
|
8896
|
+
const template$e = buttonTemplate$1({
|
|
8897
|
+
end: html.partial(`<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path></svg>`)
|
|
8898
|
+
});
|
|
8899
|
+
|
|
8900
|
+
const definition$e = MenuButton.compose({
|
|
8901
|
+
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
8902
|
+
template: template$e,
|
|
8903
|
+
styles: styles$o,
|
|
8904
|
+
shadowOptions: {
|
|
8905
|
+
delegatesFocus: true
|
|
8906
|
+
}
|
|
8907
|
+
});
|
|
8908
|
+
|
|
8909
|
+
/**
|
|
8910
|
+
* Menu items roles.
|
|
8911
|
+
* @public
|
|
8912
|
+
*/
|
|
8913
|
+
const MenuItemRole = {
|
|
8914
|
+
/**
|
|
8915
|
+
* The menu item has a "menuitem" role
|
|
8916
|
+
*/
|
|
8917
|
+
menuitem: "menuitem",
|
|
8918
|
+
/**
|
|
8919
|
+
* The menu item has a "menuitemcheckbox" role
|
|
8920
|
+
*/
|
|
8921
|
+
menuitemcheckbox: "menuitemcheckbox",
|
|
8922
|
+
/**
|
|
8923
|
+
* The menu item has a "menuitemradio" role
|
|
8924
|
+
*/
|
|
8925
|
+
menuitemradio: "menuitemradio"
|
|
8926
|
+
};
|
|
8927
|
+
/**
|
|
8928
|
+
* @internal
|
|
8929
|
+
*/
|
|
8930
|
+
({
|
|
8931
|
+
[MenuItemRole.menuitem]: "menuitem",
|
|
8932
|
+
[MenuItemRole.menuitemcheckbox]: "menuitemcheckbox",
|
|
8933
|
+
[MenuItemRole.menuitemradio]: "menuitemradio"
|
|
8934
|
+
});
|
|
8935
|
+
|
|
8936
|
+
/**
|
|
8937
|
+
* Generates a template for the {@link @microsoft/fast-foundation#(FASTMenuItem:class)} component using
|
|
8938
|
+
* the provided prefix.
|
|
8939
|
+
*
|
|
8940
|
+
* @public
|
|
8941
|
+
*/
|
|
8942
|
+
function menuItemTemplate(options = {}) {
|
|
8943
|
+
return html`<template aria-haspopup="${x => x.hasSubmenu ? "menu" : void 0}" aria-checked="${x => x.role !== MenuItemRole.menuitem ? x.checked : void 0}" aria-disabled="${x => x.disabled}" aria-expanded="${x => x.expanded}" @keydown="${(x, c) => x.handleMenuItemKeyDown(c.event)}" @click="${(x, c) => x.handleMenuItemClick(c.event)}" @mouseover="${(x, c) => x.handleMouseOver(c.event)}" @mouseout="${(x, c) => x.handleMouseOut(c.event)}">${when(x => x.role === MenuItemRole.menuitemcheckbox, html`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${staticallyCompose(options.checkboxIndicator)}</slot></span></div>`)} ${when(x => x.role === MenuItemRole.menuitemradio, html`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${staticallyCompose(options.radioIndicator)}</slot></span></div>`)}</div>${startSlotTemplate(options)}<span class="content" part="content"><slot></slot></span>${endSlotTemplate(options)} ${when(x => x.hasSubmenu, html`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${staticallyCompose(options.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${x => !x.expanded}" class="submenu-container" part="submenu-container" ${ref("submenuContainer")}><slot name="submenu" ${slotted({
|
|
8944
|
+
property: "slottedSubmenu",
|
|
8945
|
+
filter: elements("[role='menu']")
|
|
8946
|
+
})}></slot></span></template>`;
|
|
8947
|
+
}
|
|
8948
|
+
|
|
8613
8949
|
/**
|
|
8614
8950
|
* A Switch Custom HTML Element.
|
|
8615
8951
|
* Implements {@link https://www.w3.org/TR/wai-aria-1.1/#menuitem | ARIA menuitem }, {@link https://www.w3.org/TR/wai-aria-1.1/#menuitemcheckbox | ARIA menuitemcheckbox}, or {@link https://www.w3.org/TR/wai-aria-1.1/#menuitemradio | ARIA menuitemradio }.
|
|
@@ -11448,7 +11784,7 @@ const ToggleButtonSize = ButtonSize;
|
|
|
11448
11784
|
const template = buttonTemplate$1();
|
|
11449
11785
|
|
|
11450
11786
|
const styles = css`
|
|
11451
|
-
${styles$
|
|
11787
|
+
${styles$o}
|
|
11452
11788
|
|
|
11453
11789
|
:host([aria-pressed="true"]) .control{border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host([aria-pressed='true']:hover) .control{border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host([aria-pressed='true']:active) .control{border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host([aria-pressed='true'][appearance='primary']) .control{border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host([aria-pressed='true'][appearance='primary']:hover) .control{background-color:${colorBrandBackgroundHover}}:host([aria-pressed='true'][appearance='primary']:active) .control{background-color:${colorBrandBackgroundPressed}}:host([aria-pressed='true'][appearance='subtle']) .control{border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host([aria-pressed='true'][appearance='subtle']:hover) .control{background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host([aria-pressed='true'][appearance='subtle']:active) .control{background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host([aria-pressed='true'][appearance='outline']) .control,:host([aria-pressed='true'][appearance='transparent']) .control{background-color:${colorTransparentBackgroundSelected}}:host([aria-pressed='true'][appearance='outline']:hover) .control,:host([aria-pressed='true'][appearance='transparent']:hover) .control{background-color:${colorTransparentBackgroundHover}}:host([aria-pressed='true'][appearance='outline']:active) .control,:host([aria-pressed='true'][appearance='transparent']:active) .control{background-color:${colorTransparentBackgroundPressed}}:host([aria-pressed='true'][appearance='transparent']) .control{border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host([aria-pressed='true'][appearance='transparent']:hover) .control{color:${colorNeutralForeground2BrandHover}}:host([aria-pressed='true'][appearance='transparent']:active) .control{color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
11454
11790
|
:host([aria-pressed='true']) .control,:host([aria-pressed='true'][appearance='primary']) .control,:host([aria-pressed='true'][appearance='subtle']) .control,:host([aria-pressed='true'][appearance='outline']) .control,:host([aria-pressed='true'][appearance='transparent']) .control,:host([aria-pressed='true'][appearance='transparent']) .control{background:SelectedItem;color:SelectedItemText}`));
|
|
@@ -11474,4 +11810,4 @@ const setThemeFor = (element, theme) => {
|
|
|
11474
11810
|
}
|
|
11475
11811
|
};
|
|
11476
11812
|
|
|
11477
|
-
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, AnchorButton, AnchorButtonAppearance, definition$o as AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, template$o as AnchorButtonTemplate, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$n as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$l as AvatarStyles, template$n as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$m as BadgeDefinition, BadgeShape, BadgeSize, styles$k as BadgeStyles, template$m as BadgeTemplate, Button, ButtonAppearance, definition$l as ButtonDefinition, ButtonShape, ButtonSize, styles$n as ButtonStyles, template$l as ButtonTemplate, Checkbox, definition$k as CheckboxDefinition, CheckboxLabelPosition, CheckboxShape, CheckboxSize, styles$j as CheckboxStyles, template$k as CheckboxTemplate, CompoundButton, CompoundButtonAppearance, definition$j as CompoundButtonDefinition, CompoundButtonShape, CompoundButtonSize, styles$i as CompoundButtonStyles, template$j as CompoundButtonTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$i as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$h as CounterBadgeStyles, template$i as CounterBadgeTemplate, Divider, DividerAlignContent, DividerAppearance, definition$h as DividerDefinition, DividerOrientation, DividerRole, styles$g as DividerStyles, template$h as DividerTemplate, FluentDesignSystem, Image, definition$g as ImageDefinition, ImageFit, ImageShape, styles$f as ImageStyles, template$g as ImageTemplate, Label, definition$f as LabelDefinition, styles$e as LabelStyles, template$f as LabelTemplate, MenuButton, MenuButtonAppearance, definition$e as MenuButtonDefinition, MenuButtonShape, MenuButtonSize, styles$n as MenuButtonStyles, template$e as MenuButtonTemplate, MenuItem, definition$d as MenuItemDefinition, MenuItemRole, styles$d as MenuItemStyles, template$d as MenuItemTemplate, MenuList, definition$c as MenuListDefinition, styles$c as MenuListStyles, template$c as MenuListTemplate, ProgressBar, definition$b as ProgressBarDefinition, ProgressBarShape, styles$b as ProgressBarStyles, template$b as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Radio, definition$a as RadioDefinition, RadioGroup, definition$9 as RadioGroupDefinition, RadioGroupOrientation, styles$9 as RadioGroupStyles, template$9 as RadioGroupTemplate, styles$a as RadioStyles, template$a as RadioTemplate, Slider, definition$8 as SliderDefinition, SliderOrientation, SliderSize, styles$8 as SliderStyles, template$8 as SliderTemplate, Spinner, SpinnerAppearance, definition$7 as SpinnerDefinition, SpinnerSize, styles$7 as SpinnerStyles, template$7 as SpinnerTemplate, Switch, definition$6 as SwitchDefinition, SwitchLabelPosition, styles$6 as SwitchStyles, template$6 as SwitchTemplate, Tab, definition$4 as TabDefinition, TabPanel, definition$3 as TabPanelDefinition, styles$3 as TabPanelStyles, template$3 as TabPanelTemplate, styles$4 as TabStyles, template$4 as TabTemplate, Tabs, TabsAppearance, definition$5 as TabsDefinition, TabsOrientation, TabsSize, styles$5 as TabsStyles, template$5 as TabsTemplate, Text, TextAlign, definition$2 as TextDefinition, TextFont, TextInput, TextInputAppearance, TextInputControlSize, definition$1 as TextInputDefinition, styles$1 as TextInputStyles, template$1 as TextInputTemplate, TextFieldType as TextInputType, TextSize, styles$2 as TextStyles, template$2 as TextTemplate, TextWeight, ToggleButton, ToggleButtonAppearance, definition as ToggleButtonDefinition, ToggleButtonShape, ToggleButtonSize, styles as ToggleButtonStyles, template as ToggleButtonTemplate, definition$q as accordionDefinition, definition$p as accordionItemDefinition, styles$o as accordionItemStyles, template$p as accordionItemTemplate, styles$p as accordionStyles, template$q 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, 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, setThemeFor, 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 };
|
|
11813
|
+
export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, AnchorButton, AnchorButtonAppearance, definition$p as AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, template$p as AnchorButtonTemplate, Avatar, AvatarActive, AvatarAppearance, AvatarColor, definition$o as AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, styles$m as AvatarStyles, template$o as AvatarTemplate, Badge, BadgeAppearance, BadgeColor, definition$n as BadgeDefinition, BadgeShape, BadgeSize, styles$l as BadgeStyles, template$n as BadgeTemplate, Button, ButtonAppearance, definition$m as ButtonDefinition, ButtonShape, ButtonSize, styles$o as ButtonStyles, template$m as ButtonTemplate, Checkbox, definition$l as CheckboxDefinition, CheckboxLabelPosition, CheckboxShape, CheckboxSize, styles$k as CheckboxStyles, template$l as CheckboxTemplate, CompoundButton, CompoundButtonAppearance, definition$k as CompoundButtonDefinition, CompoundButtonShape, CompoundButtonSize, styles$j as CompoundButtonStyles, template$k as CompoundButtonTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$j as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$i as CounterBadgeStyles, template$j as CounterBadgeTemplate, Divider, DividerAlignContent, DividerAppearance, definition$i as DividerDefinition, DividerOrientation, DividerRole, styles$h as DividerStyles, template$i as DividerTemplate, FluentDesignSystem, Image, definition$h as ImageDefinition, ImageFit, ImageShape, styles$g as ImageStyles, template$h as ImageTemplate, Label, definition$g as LabelDefinition, styles$f as LabelStyles, template$g as LabelTemplate, Menu, MenuButton, MenuButtonAppearance, definition$e as MenuButtonDefinition, MenuButtonShape, MenuButtonSize, styles$o as MenuButtonStyles, template$e as MenuButtonTemplate, definition$f as MenuDefinition, MenuItem, definition$d as MenuItemDefinition, MenuItemRole, styles$d as MenuItemStyles, template$d as MenuItemTemplate, MenuList, definition$c as MenuListDefinition, styles$c as MenuListStyles, template$c as MenuListTemplate, styles$e as MenuStyles, template$f as MenuTemplate, ProgressBar, definition$b as ProgressBarDefinition, ProgressBarShape, styles$b as ProgressBarStyles, template$b as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Radio, definition$a as RadioDefinition, RadioGroup, definition$9 as RadioGroupDefinition, RadioGroupOrientation, styles$9 as RadioGroupStyles, template$9 as RadioGroupTemplate, styles$a as RadioStyles, template$a as RadioTemplate, Slider, definition$8 as SliderDefinition, SliderOrientation, SliderSize, styles$8 as SliderStyles, template$8 as SliderTemplate, Spinner, SpinnerAppearance, definition$7 as SpinnerDefinition, SpinnerSize, styles$7 as SpinnerStyles, template$7 as SpinnerTemplate, Switch, definition$6 as SwitchDefinition, SwitchLabelPosition, styles$6 as SwitchStyles, template$6 as SwitchTemplate, Tab, definition$4 as TabDefinition, TabPanel, definition$3 as TabPanelDefinition, styles$3 as TabPanelStyles, template$3 as TabPanelTemplate, styles$4 as TabStyles, template$4 as TabTemplate, Tabs, TabsAppearance, definition$5 as TabsDefinition, TabsOrientation, TabsSize, styles$5 as TabsStyles, template$5 as TabsTemplate, Text, TextAlign, definition$2 as TextDefinition, TextFont, TextInput, TextInputAppearance, TextInputControlSize, definition$1 as TextInputDefinition, styles$1 as TextInputStyles, template$1 as TextInputTemplate, TextFieldType as TextInputType, TextSize, styles$2 as TextStyles, template$2 as TextTemplate, TextWeight, ToggleButton, ToggleButtonAppearance, definition as ToggleButtonDefinition, ToggleButtonShape, ToggleButtonSize, styles as ToggleButtonStyles, template as ToggleButtonTemplate, definition$r as accordionDefinition, definition$q as accordionItemDefinition, styles$p as accordionItemStyles, template$q as accordionItemTemplate, styles$q as accordionStyles, template$r 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, 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, setThemeFor, 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 };
|