@fluentui/web-components 3.0.0-beta.34 → 3.0.0-beta.36
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/drawer/define.d.ts +1 -0
- package/dist/dts/drawer/drawer.d.ts +93 -0
- package/dist/dts/drawer/drawer.definition.d.ts +8 -0
- package/dist/dts/drawer/drawer.options.d.ts +40 -0
- package/dist/dts/drawer/drawer.styles.d.ts +4 -0
- package/dist/dts/drawer/drawer.template.d.ts +8 -0
- package/dist/dts/drawer/index.d.ts +5 -0
- package/dist/dts/drawer-body/define.d.ts +1 -0
- package/dist/dts/drawer-body/drawer-body.d.ts +3 -0
- package/dist/dts/drawer-body/drawer-body.definition.d.ts +8 -0
- package/dist/dts/drawer-body/drawer-body.styles.d.ts +4 -0
- package/dist/dts/drawer-body/drawer-body.template.d.ts +8 -0
- package/dist/dts/drawer-body/index.d.ts +4 -0
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/text/text.d.ts +40 -1
- package/dist/esm/drawer/define.js +4 -0
- package/dist/esm/drawer/define.js.map +1 -0
- package/dist/esm/drawer/drawer.definition.js +16 -0
- package/dist/esm/drawer/drawer.definition.js.map +1 -0
- package/dist/esm/drawer/drawer.js +132 -0
- package/dist/esm/drawer/drawer.js.map +1 -0
- package/dist/esm/drawer/drawer.options.js +25 -0
- package/dist/esm/drawer/drawer.options.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.js +138 -0
- package/dist/esm/drawer/drawer.styles.js.map +1 -0
- package/dist/esm/drawer/drawer.template.js +28 -0
- package/dist/esm/drawer/drawer.template.js.map +1 -0
- package/dist/esm/drawer/index.js +6 -0
- package/dist/esm/drawer/index.js.map +1 -0
- package/dist/esm/drawer-body/define.js +4 -0
- package/dist/esm/drawer-body/define.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition.js +16 -0
- package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.js +4 -0
- package/dist/esm/drawer-body/drawer-body.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.js +31 -0
- package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.template.js +21 -0
- package/dist/esm/drawer-body/drawer-body.template.js.map +1 -0
- package/dist/esm/drawer-body/index.js +5 -0
- package/dist/esm/drawer-body/index.js.map +1 -0
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/text/text.js +91 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +56 -57
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/web-components.d.ts +192 -1
- package/dist/web-components.js +445 -232
- package/dist/web-components.min.js +236 -233
- package/package.json +9 -1
package/dist/web-components.js
CHANGED
|
@@ -3381,70 +3381,70 @@ function uniqueId(prefix = "") {
|
|
|
3381
3381
|
return `${prefix}${uniqueIdCounter++}`;
|
|
3382
3382
|
}
|
|
3383
3383
|
|
|
3384
|
-
var __defProp$
|
|
3385
|
-
var __getOwnPropDesc$
|
|
3386
|
-
var __decorateClass$
|
|
3387
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3384
|
+
var __defProp$t = Object.defineProperty;
|
|
3385
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
3386
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
3387
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
3388
3388
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3389
|
-
if (kind && result) __defProp$
|
|
3389
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
3390
3390
|
return result;
|
|
3391
3391
|
};
|
|
3392
3392
|
class ARIAGlobalStatesAndProperties {}
|
|
3393
|
-
__decorateClass$
|
|
3393
|
+
__decorateClass$t([attr({
|
|
3394
3394
|
attribute: "aria-atomic"
|
|
3395
3395
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
|
|
3396
|
-
__decorateClass$
|
|
3396
|
+
__decorateClass$t([attr({
|
|
3397
3397
|
attribute: "aria-busy"
|
|
3398
3398
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
|
|
3399
|
-
__decorateClass$
|
|
3399
|
+
__decorateClass$t([attr({
|
|
3400
3400
|
attribute: "aria-controls"
|
|
3401
3401
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
|
|
3402
|
-
__decorateClass$
|
|
3402
|
+
__decorateClass$t([attr({
|
|
3403
3403
|
attribute: "aria-current"
|
|
3404
3404
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
|
|
3405
|
-
__decorateClass$
|
|
3405
|
+
__decorateClass$t([attr({
|
|
3406
3406
|
attribute: "aria-describedby"
|
|
3407
3407
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
|
|
3408
|
-
__decorateClass$
|
|
3408
|
+
__decorateClass$t([attr({
|
|
3409
3409
|
attribute: "aria-details"
|
|
3410
3410
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
|
|
3411
|
-
__decorateClass$
|
|
3411
|
+
__decorateClass$t([attr({
|
|
3412
3412
|
attribute: "aria-disabled"
|
|
3413
3413
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
|
|
3414
|
-
__decorateClass$
|
|
3414
|
+
__decorateClass$t([attr({
|
|
3415
3415
|
attribute: "aria-errormessage"
|
|
3416
3416
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
|
|
3417
|
-
__decorateClass$
|
|
3417
|
+
__decorateClass$t([attr({
|
|
3418
3418
|
attribute: "aria-flowto"
|
|
3419
3419
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
|
|
3420
|
-
__decorateClass$
|
|
3420
|
+
__decorateClass$t([attr({
|
|
3421
3421
|
attribute: "aria-haspopup"
|
|
3422
3422
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
|
|
3423
|
-
__decorateClass$
|
|
3423
|
+
__decorateClass$t([attr({
|
|
3424
3424
|
attribute: "aria-hidden"
|
|
3425
3425
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
|
|
3426
|
-
__decorateClass$
|
|
3426
|
+
__decorateClass$t([attr({
|
|
3427
3427
|
attribute: "aria-invalid"
|
|
3428
3428
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
|
|
3429
|
-
__decorateClass$
|
|
3429
|
+
__decorateClass$t([attr({
|
|
3430
3430
|
attribute: "aria-keyshortcuts"
|
|
3431
3431
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
|
|
3432
|
-
__decorateClass$
|
|
3432
|
+
__decorateClass$t([attr({
|
|
3433
3433
|
attribute: "aria-label"
|
|
3434
3434
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
|
|
3435
|
-
__decorateClass$
|
|
3435
|
+
__decorateClass$t([attr({
|
|
3436
3436
|
attribute: "aria-labelledby"
|
|
3437
3437
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
|
|
3438
|
-
__decorateClass$
|
|
3438
|
+
__decorateClass$t([attr({
|
|
3439
3439
|
attribute: "aria-live"
|
|
3440
3440
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
|
|
3441
|
-
__decorateClass$
|
|
3441
|
+
__decorateClass$t([attr({
|
|
3442
3442
|
attribute: "aria-owns"
|
|
3443
3443
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
|
|
3444
|
-
__decorateClass$
|
|
3444
|
+
__decorateClass$t([attr({
|
|
3445
3445
|
attribute: "aria-relevant"
|
|
3446
3446
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
|
|
3447
|
-
__decorateClass$
|
|
3447
|
+
__decorateClass$t([attr({
|
|
3448
3448
|
attribute: "aria-roledescription"
|
|
3449
3449
|
})], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
|
|
3450
3450
|
|
|
@@ -3613,12 +3613,12 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
3613
3613
|
});
|
|
3614
3614
|
}
|
|
3615
3615
|
|
|
3616
|
-
var __defProp$
|
|
3617
|
-
var __getOwnPropDesc$
|
|
3618
|
-
var __decorateClass$
|
|
3619
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3616
|
+
var __defProp$s = Object.defineProperty;
|
|
3617
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
3618
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
3619
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
3620
3620
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3621
|
-
if (kind && result) __defProp$
|
|
3621
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
3622
3622
|
return result;
|
|
3623
3623
|
};
|
|
3624
3624
|
class AccordionItem extends FASTElement {
|
|
@@ -3640,23 +3640,23 @@ class AccordionItem extends FASTElement {
|
|
|
3640
3640
|
};
|
|
3641
3641
|
}
|
|
3642
3642
|
}
|
|
3643
|
-
__decorateClass$
|
|
3643
|
+
__decorateClass$s([attr({
|
|
3644
3644
|
attribute: "heading-level",
|
|
3645
3645
|
mode: "fromView",
|
|
3646
3646
|
converter: nullableNumberConverter
|
|
3647
3647
|
})], AccordionItem.prototype, "headinglevel", 2);
|
|
3648
|
-
__decorateClass$
|
|
3648
|
+
__decorateClass$s([attr({
|
|
3649
3649
|
mode: "boolean"
|
|
3650
3650
|
})], AccordionItem.prototype, "expanded", 2);
|
|
3651
|
-
__decorateClass$
|
|
3651
|
+
__decorateClass$s([attr({
|
|
3652
3652
|
mode: "boolean"
|
|
3653
3653
|
})], AccordionItem.prototype, "disabled", 2);
|
|
3654
|
-
__decorateClass$
|
|
3655
|
-
__decorateClass$
|
|
3656
|
-
__decorateClass$
|
|
3654
|
+
__decorateClass$s([attr], AccordionItem.prototype, "id", 2);
|
|
3655
|
+
__decorateClass$s([attr], AccordionItem.prototype, "size", 2);
|
|
3656
|
+
__decorateClass$s([attr({
|
|
3657
3657
|
mode: "boolean"
|
|
3658
3658
|
})], AccordionItem.prototype, "block", 2);
|
|
3659
|
-
__decorateClass$
|
|
3659
|
+
__decorateClass$s([attr({
|
|
3660
3660
|
attribute: "expand-icon-position"
|
|
3661
3661
|
})], AccordionItem.prototype, "expandIconPosition", 2);
|
|
3662
3662
|
applyMixins(AccordionItem, StartEnd);
|
|
@@ -3896,7 +3896,7 @@ const curveEasyEaseMax = "var(--curveEasyEaseMax)";
|
|
|
3896
3896
|
const curveEasyEase = "var(--curveEasyEase)";
|
|
3897
3897
|
const curveLinear = "var(--curveLinear)";
|
|
3898
3898
|
|
|
3899
|
-
const styles$
|
|
3899
|
+
const styles$v = css`
|
|
3900
3900
|
${display("block")}
|
|
3901
3901
|
|
|
3902
3902
|
: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}`;
|
|
@@ -3930,30 +3930,30 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
3930
3930
|
function accordionItemTemplate(options = {}) {
|
|
3931
3931
|
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>`;
|
|
3932
3932
|
}
|
|
3933
|
-
const template$
|
|
3933
|
+
const template$w = accordionItemTemplate({
|
|
3934
3934
|
collapsedIcon: chevronRight20Filled,
|
|
3935
3935
|
expandedIcon: chevronDown20Filled
|
|
3936
3936
|
});
|
|
3937
3937
|
|
|
3938
|
-
const definition$
|
|
3938
|
+
const definition$w = AccordionItem.compose({
|
|
3939
3939
|
name: `${FluentDesignSystem.prefix}-accordion-item`,
|
|
3940
|
-
template: template$
|
|
3941
|
-
styles: styles$
|
|
3940
|
+
template: template$w,
|
|
3941
|
+
styles: styles$v
|
|
3942
3942
|
});
|
|
3943
3943
|
|
|
3944
|
-
definition$
|
|
3944
|
+
definition$w.define(FluentDesignSystem.registry);
|
|
3945
3945
|
|
|
3946
3946
|
const AccordionExpandMode = {
|
|
3947
3947
|
single: "single",
|
|
3948
3948
|
multi: "multi"
|
|
3949
3949
|
};
|
|
3950
3950
|
|
|
3951
|
-
var __defProp$
|
|
3952
|
-
var __getOwnPropDesc$
|
|
3953
|
-
var __decorateClass$
|
|
3954
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3951
|
+
var __defProp$r = Object.defineProperty;
|
|
3952
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
3953
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
3954
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
3955
3955
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3956
|
-
if (kind && result) __defProp$
|
|
3956
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
3957
3957
|
return result;
|
|
3958
3958
|
};
|
|
3959
3959
|
class Accordion extends FASTElement {
|
|
@@ -4131,12 +4131,12 @@ class Accordion extends FASTElement {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
|
-
__decorateClass$
|
|
4134
|
+
__decorateClass$r([attr({
|
|
4135
4135
|
attribute: "expand-mode"
|
|
4136
4136
|
})], Accordion.prototype, "expandmode", 2);
|
|
4137
|
-
__decorateClass$
|
|
4137
|
+
__decorateClass$r([observable], Accordion.prototype, "slottedAccordionItems", 2);
|
|
4138
4138
|
|
|
4139
|
-
const styles$
|
|
4139
|
+
const styles$u = css`
|
|
4140
4140
|
${display("flex")}
|
|
4141
4141
|
|
|
4142
4142
|
:host{flex-direction:column;width:100%;contain:content}`;
|
|
@@ -4147,15 +4147,15 @@ function accordionTemplate() {
|
|
|
4147
4147
|
filter: elements()
|
|
4148
4148
|
})}></slot></template>`;
|
|
4149
4149
|
}
|
|
4150
|
-
const template$
|
|
4150
|
+
const template$v = accordionTemplate();
|
|
4151
4151
|
|
|
4152
|
-
const definition$
|
|
4152
|
+
const definition$v = Accordion.compose({
|
|
4153
4153
|
name: `${FluentDesignSystem.prefix}-accordion`,
|
|
4154
|
-
template: template$
|
|
4155
|
-
styles: styles$
|
|
4154
|
+
template: template$v,
|
|
4155
|
+
styles: styles$u
|
|
4156
4156
|
});
|
|
4157
4157
|
|
|
4158
|
-
definition$
|
|
4158
|
+
definition$v.define(FluentDesignSystem.registry);
|
|
4159
4159
|
|
|
4160
4160
|
const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
|
|
4161
4161
|
function toggleState(elementInternals, state, force) {
|
|
@@ -4188,12 +4188,12 @@ const AnchorAttributes = {
|
|
|
4188
4188
|
type: "type"
|
|
4189
4189
|
};
|
|
4190
4190
|
|
|
4191
|
-
var __defProp$
|
|
4192
|
-
var __getOwnPropDesc$
|
|
4193
|
-
var __decorateClass$
|
|
4194
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4191
|
+
var __defProp$q = Object.defineProperty;
|
|
4192
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
4193
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
4194
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
4195
4195
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4196
|
-
if (kind && result) __defProp$
|
|
4196
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
4197
4197
|
return result;
|
|
4198
4198
|
};
|
|
4199
4199
|
class BaseAnchor extends FASTElement {
|
|
@@ -4301,14 +4301,14 @@ class BaseAnchor extends FASTElement {
|
|
|
4301
4301
|
return proxy;
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
4304
|
-
__decorateClass$
|
|
4305
|
-
__decorateClass$
|
|
4306
|
-
__decorateClass$
|
|
4307
|
-
__decorateClass$
|
|
4308
|
-
__decorateClass$
|
|
4309
|
-
__decorateClass$
|
|
4310
|
-
__decorateClass$
|
|
4311
|
-
__decorateClass$
|
|
4304
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "download", 2);
|
|
4305
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "href", 2);
|
|
4306
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "hreflang", 2);
|
|
4307
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "ping", 2);
|
|
4308
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "referrerpolicy", 2);
|
|
4309
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "rel", 2);
|
|
4310
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "target", 2);
|
|
4311
|
+
__decorateClass$q([attr], BaseAnchor.prototype, "type", 2);
|
|
4312
4312
|
class AnchorButton extends BaseAnchor {
|
|
4313
4313
|
constructor() {
|
|
4314
4314
|
super(...arguments);
|
|
@@ -4362,10 +4362,10 @@ class AnchorButton extends BaseAnchor {
|
|
|
4362
4362
|
toggleState(this.elementInternals, "icon", !!next);
|
|
4363
4363
|
}
|
|
4364
4364
|
}
|
|
4365
|
-
__decorateClass$
|
|
4366
|
-
__decorateClass$
|
|
4367
|
-
__decorateClass$
|
|
4368
|
-
__decorateClass$
|
|
4365
|
+
__decorateClass$q([attr], AnchorButton.prototype, "appearance", 2);
|
|
4366
|
+
__decorateClass$q([attr], AnchorButton.prototype, "shape", 2);
|
|
4367
|
+
__decorateClass$q([attr], AnchorButton.prototype, "size", 2);
|
|
4368
|
+
__decorateClass$q([attr({
|
|
4369
4369
|
attribute: "icon-only",
|
|
4370
4370
|
mode: "boolean"
|
|
4371
4371
|
})], AnchorButton.prototype, "iconOnly", 2);
|
|
@@ -4380,7 +4380,7 @@ const outlineState = css.partial`:is([state--outline], :state(outline))`;
|
|
|
4380
4380
|
const strongState = css.partial`:is([state--strong], :state(strong))`;
|
|
4381
4381
|
const subtleState = css.partial`:is([state--subtle], :state(subtle))`;
|
|
4382
4382
|
const tintState = css.partial`:is([state--tint], :state(tint))`;
|
|
4383
|
-
const underlineState = css.partial`:is([state--underline], :state(underline))`;
|
|
4383
|
+
const underlineState$1 = css.partial`:is([state--underline], :state(underline))`;
|
|
4384
4384
|
const transparentState = css.partial`:is([state--transparent], :state(transparent))`;
|
|
4385
4385
|
const circularState = css.partial`:is([state--circular], :state(circular))`;
|
|
4386
4386
|
const roundedState = css.partial`:is([state--rounded], :state(rounded))`;
|
|
@@ -4411,13 +4411,13 @@ const baseButtonStyles = css`
|
|
|
4411
4411
|
${display("inline-flex")}
|
|
4412
4412
|
|
|
4413
4413
|
:host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align: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;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(: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}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
|
|
4414
|
-
const styles$
|
|
4414
|
+
const styles$t = css`
|
|
4415
4415
|
${baseButtonStyles}
|
|
4416
4416
|
|
|
4417
4417
|
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host(${primaryState}:is(:disabled,[disabled-focusable])),:host(${primaryState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${outlineState}:is(:disabled,[disabled-focusable])),:host(${outlineState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host(${subtleState}:is(:disabled,[disabled-focusable])),:host(${subtleState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host(${transparentState}:is(:disabled,[disabled-focusable])),:host(${transparentState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
4418
4418
|
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`));
|
|
4419
4419
|
|
|
4420
|
-
const styles$
|
|
4420
|
+
const styles$s = css`
|
|
4421
4421
|
${baseButtonStyles}
|
|
4422
4422
|
|
|
4423
4423
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -4426,15 +4426,15 @@ const styles$r = css`
|
|
|
4426
4426
|
function anchorTemplate$1(options = {}) {
|
|
4427
4427
|
return html`<template tabindex="0" @click="${(x, c) => x.clickHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot></slot></span>${endSlotTemplate(options)}</template>`;
|
|
4428
4428
|
}
|
|
4429
|
-
const template$
|
|
4429
|
+
const template$u = anchorTemplate$1();
|
|
4430
4430
|
|
|
4431
|
-
const definition$
|
|
4431
|
+
const definition$u = AnchorButton.compose({
|
|
4432
4432
|
name: `${FluentDesignSystem.prefix}-anchor-button`,
|
|
4433
|
-
template: template$
|
|
4434
|
-
styles: styles$
|
|
4433
|
+
template: template$u,
|
|
4434
|
+
styles: styles$s
|
|
4435
4435
|
});
|
|
4436
4436
|
|
|
4437
|
-
definition$
|
|
4437
|
+
definition$u.define(FluentDesignSystem.registry);
|
|
4438
4438
|
|
|
4439
4439
|
const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
|
|
4440
4440
|
const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
|
|
@@ -4516,12 +4516,12 @@ const AvatarColor = {
|
|
|
4516
4516
|
...AvatarNamedColor
|
|
4517
4517
|
};
|
|
4518
4518
|
|
|
4519
|
-
var __defProp$
|
|
4520
|
-
var __getOwnPropDesc$
|
|
4521
|
-
var __decorateClass$
|
|
4522
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4519
|
+
var __defProp$p = Object.defineProperty;
|
|
4520
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
4521
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
4522
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
4523
4523
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4524
|
-
if (kind && result) __defProp$
|
|
4524
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
4525
4525
|
return result;
|
|
4526
4526
|
};
|
|
4527
4527
|
const _Avatar = class _Avatar extends FASTElement {
|
|
@@ -4587,16 +4587,16 @@ const _Avatar = class _Avatar extends FASTElement {
|
|
|
4587
4587
|
* An array of the available Avatar named colors
|
|
4588
4588
|
*/
|
|
4589
4589
|
_Avatar.colors = Object.values(AvatarNamedColor);
|
|
4590
|
-
__decorateClass$
|
|
4591
|
-
__decorateClass$
|
|
4592
|
-
__decorateClass$
|
|
4590
|
+
__decorateClass$p([attr], _Avatar.prototype, "name", 2);
|
|
4591
|
+
__decorateClass$p([attr], _Avatar.prototype, "initials", 2);
|
|
4592
|
+
__decorateClass$p([attr({
|
|
4593
4593
|
converter: nullableNumberConverter
|
|
4594
4594
|
})], _Avatar.prototype, "size", 2);
|
|
4595
|
-
__decorateClass$
|
|
4596
|
-
__decorateClass$
|
|
4597
|
-
__decorateClass$
|
|
4598
|
-
__decorateClass$
|
|
4599
|
-
__decorateClass$
|
|
4595
|
+
__decorateClass$p([attr], _Avatar.prototype, "shape", 2);
|
|
4596
|
+
__decorateClass$p([attr], _Avatar.prototype, "active", 2);
|
|
4597
|
+
__decorateClass$p([attr], _Avatar.prototype, "appearance", 2);
|
|
4598
|
+
__decorateClass$p([attr], _Avatar.prototype, "color", 2);
|
|
4599
|
+
__decorateClass$p([attr({
|
|
4600
4600
|
attribute: "color-id"
|
|
4601
4601
|
})], _Avatar.prototype, "colorId", 2);
|
|
4602
4602
|
let Avatar = _Avatar;
|
|
@@ -4621,22 +4621,22 @@ const animations = {
|
|
|
4621
4621
|
normalEase: curveEasyEase,
|
|
4622
4622
|
nullEasing: curveLinear
|
|
4623
4623
|
};
|
|
4624
|
-
const styles$
|
|
4624
|
+
const styles$r = css`
|
|
4625
4625
|
${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(:is([state--brand],:state(brand))){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host(:is([state--dark-red],:state(dark-red))){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host(:is([state--cranberry],:state(cranberry))){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host(:is([state--red],:state(red))){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host(:is([state--pumpkin],:state(pumpkin))){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host(:is([state--peach],:state(peach))){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host(:is([state--marigold],:state(marigold))){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host(:is([state--gold],:state(gold))){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host(:is([state--brass],:state(brass))){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host(:is([state--brown],:state(brown))){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host(:is([state--forest],:state(forest))){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host(:is([state--seafoam],:state(seafoam))){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host(:is([state--dark-green],:state(dark-green))){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host(:is([state--light-teal],:state(light-teal))){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host(:is([state--teal],:state(teal))){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host(:is([state--steel],:state(steel))){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host(:is([state--blue],:state(blue))){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host(:is([state--royal-blue],:state(royal-blue))){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host(:is([state--cornflower],:state(cornflower))){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host(:is([state--navy],:state(navy))){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host(:is([state--lavender],:state(lavender))){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host(:is([state--purple],:state(purple))){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host(:is([state--grape],:state(grape))){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host(:is([state--lilac],:state(lilac))){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host(:is([state--pink],:state(pink))){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host(:is([state--magenta],:state(magenta))){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host(:is([state--plum],:state(plum))){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host(:is([state--beige],:state(beige))){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host(:is([state--mink],:state(mink))){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host(:is([state--platinum],:state(platinum))){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host(:is([state--anchor],:state(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}}`;
|
|
4626
4626
|
|
|
4627
4627
|
const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
4628
4628
|
function avatarTemplate() {
|
|
4629
4629
|
return html`<slot>${x => x.name || x.initials ? x.generateInitials() : defaultIconTemplate}</slot><slot name="badge"></slot>`;
|
|
4630
4630
|
}
|
|
4631
|
-
const template$
|
|
4631
|
+
const template$t = avatarTemplate();
|
|
4632
4632
|
|
|
4633
|
-
const definition$
|
|
4633
|
+
const definition$t = Avatar.compose({
|
|
4634
4634
|
name: `${FluentDesignSystem.prefix}-avatar`,
|
|
4635
|
-
template: template$
|
|
4636
|
-
styles: styles$
|
|
4635
|
+
template: template$t,
|
|
4636
|
+
styles: styles$r
|
|
4637
4637
|
});
|
|
4638
4638
|
|
|
4639
|
-
definition$
|
|
4639
|
+
definition$t.define(FluentDesignSystem.registry);
|
|
4640
4640
|
|
|
4641
4641
|
const BadgeAppearance = {
|
|
4642
4642
|
filled: "filled",
|
|
@@ -4655,12 +4655,12 @@ const BadgeColor = {
|
|
|
4655
4655
|
warning: "warning"
|
|
4656
4656
|
};
|
|
4657
4657
|
|
|
4658
|
-
var __defProp$
|
|
4659
|
-
var __getOwnPropDesc$
|
|
4660
|
-
var __decorateClass$
|
|
4661
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4658
|
+
var __defProp$o = Object.defineProperty;
|
|
4659
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
4660
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
4661
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
4662
4662
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4663
|
-
if (kind && result) __defProp$
|
|
4663
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
4664
4664
|
return result;
|
|
4665
4665
|
};
|
|
4666
4666
|
class Badge extends FASTElement {
|
|
@@ -4728,10 +4728,10 @@ class Badge extends FASTElement {
|
|
|
4728
4728
|
}
|
|
4729
4729
|
}
|
|
4730
4730
|
}
|
|
4731
|
-
__decorateClass$
|
|
4732
|
-
__decorateClass$
|
|
4733
|
-
__decorateClass$
|
|
4734
|
-
__decorateClass$
|
|
4731
|
+
__decorateClass$o([attr], Badge.prototype, "appearance", 2);
|
|
4732
|
+
__decorateClass$o([attr], Badge.prototype, "color", 2);
|
|
4733
|
+
__decorateClass$o([attr], Badge.prototype, "shape", 2);
|
|
4734
|
+
__decorateClass$o([attr], Badge.prototype, "size", 2);
|
|
4735
4735
|
applyMixins(Badge, StartEnd);
|
|
4736
4736
|
|
|
4737
4737
|
const textPadding = spacingHorizontalXXS;
|
|
@@ -5086,7 +5086,7 @@ css.partial`
|
|
|
5086
5086
|
font-weight: ${fontWeightSemibold};
|
|
5087
5087
|
`;
|
|
5088
5088
|
|
|
5089
|
-
const styles$
|
|
5089
|
+
const styles$q = css`
|
|
5090
5090
|
:host(${squareState}){border-radius:${borderRadiusNone}}:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5091
5091
|
${badgeFilledStyles}
|
|
5092
5092
|
${badgeGhostStyles}
|
|
@@ -5099,22 +5099,22 @@ const styles$p = css`
|
|
|
5099
5099
|
function badgeTemplate(options = {}) {
|
|
5100
5100
|
return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
|
|
5101
5101
|
}
|
|
5102
|
-
const template$
|
|
5102
|
+
const template$s = badgeTemplate();
|
|
5103
5103
|
|
|
5104
|
-
const definition$
|
|
5104
|
+
const definition$s = Badge.compose({
|
|
5105
5105
|
name: `${FluentDesignSystem.prefix}-badge`,
|
|
5106
|
-
template: template$
|
|
5107
|
-
styles: styles$
|
|
5106
|
+
template: template$s,
|
|
5107
|
+
styles: styles$q
|
|
5108
5108
|
});
|
|
5109
5109
|
|
|
5110
|
-
definition$
|
|
5110
|
+
definition$s.define(FluentDesignSystem.registry);
|
|
5111
5111
|
|
|
5112
|
-
var __defProp$
|
|
5113
|
-
var __getOwnPropDesc$
|
|
5114
|
-
var __decorateClass$
|
|
5115
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5112
|
+
var __defProp$n = Object.defineProperty;
|
|
5113
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
5114
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
5115
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
5116
5116
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5117
|
-
if (kind && result) __defProp$
|
|
5117
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
5118
5118
|
return result;
|
|
5119
5119
|
};
|
|
5120
5120
|
class Button extends FASTElement {
|
|
@@ -5365,67 +5365,67 @@ class Button extends FASTElement {
|
|
|
5365
5365
|
* @public
|
|
5366
5366
|
*/
|
|
5367
5367
|
Button.formAssociated = true;
|
|
5368
|
-
__decorateClass$
|
|
5369
|
-
__decorateClass$
|
|
5368
|
+
__decorateClass$n([attr], Button.prototype, "appearance", 2);
|
|
5369
|
+
__decorateClass$n([attr({
|
|
5370
5370
|
mode: "boolean"
|
|
5371
5371
|
})], Button.prototype, "autofocus", 2);
|
|
5372
|
-
__decorateClass$
|
|
5373
|
-
__decorateClass$
|
|
5372
|
+
__decorateClass$n([observable], Button.prototype, "defaultSlottedContent", 2);
|
|
5373
|
+
__decorateClass$n([attr({
|
|
5374
5374
|
mode: "boolean"
|
|
5375
5375
|
})], Button.prototype, "disabled", 2);
|
|
5376
|
-
__decorateClass$
|
|
5376
|
+
__decorateClass$n([attr({
|
|
5377
5377
|
attribute: "disabled-focusable",
|
|
5378
5378
|
mode: "boolean"
|
|
5379
5379
|
})], Button.prototype, "disabledFocusable", 2);
|
|
5380
|
-
__decorateClass$
|
|
5380
|
+
__decorateClass$n([attr({
|
|
5381
5381
|
attribute: "formaction"
|
|
5382
5382
|
})], Button.prototype, "formAction", 2);
|
|
5383
|
-
__decorateClass$
|
|
5383
|
+
__decorateClass$n([attr({
|
|
5384
5384
|
attribute: "form"
|
|
5385
5385
|
})], Button.prototype, "formAttribute", 2);
|
|
5386
|
-
__decorateClass$
|
|
5386
|
+
__decorateClass$n([attr({
|
|
5387
5387
|
attribute: "formenctype"
|
|
5388
5388
|
})], Button.prototype, "formEnctype", 2);
|
|
5389
|
-
__decorateClass$
|
|
5389
|
+
__decorateClass$n([attr({
|
|
5390
5390
|
attribute: "formmethod"
|
|
5391
5391
|
})], Button.prototype, "formMethod", 2);
|
|
5392
|
-
__decorateClass$
|
|
5392
|
+
__decorateClass$n([attr({
|
|
5393
5393
|
attribute: "formnovalidate",
|
|
5394
5394
|
mode: "boolean"
|
|
5395
5395
|
})], Button.prototype, "formNoValidate", 2);
|
|
5396
|
-
__decorateClass$
|
|
5396
|
+
__decorateClass$n([attr({
|
|
5397
5397
|
attribute: "formtarget"
|
|
5398
5398
|
})], Button.prototype, "formTarget", 2);
|
|
5399
|
-
__decorateClass$
|
|
5399
|
+
__decorateClass$n([attr({
|
|
5400
5400
|
attribute: "icon-only",
|
|
5401
5401
|
mode: "boolean"
|
|
5402
5402
|
})], Button.prototype, "iconOnly", 2);
|
|
5403
|
-
__decorateClass$
|
|
5404
|
-
__decorateClass$
|
|
5405
|
-
__decorateClass$
|
|
5406
|
-
__decorateClass$
|
|
5407
|
-
__decorateClass$
|
|
5403
|
+
__decorateClass$n([attr], Button.prototype, "name", 2);
|
|
5404
|
+
__decorateClass$n([attr], Button.prototype, "shape", 2);
|
|
5405
|
+
__decorateClass$n([attr], Button.prototype, "size", 2);
|
|
5406
|
+
__decorateClass$n([attr], Button.prototype, "type", 2);
|
|
5407
|
+
__decorateClass$n([attr], Button.prototype, "value", 2);
|
|
5408
5408
|
applyMixins(Button, StartEnd);
|
|
5409
5409
|
|
|
5410
5410
|
function buttonTemplate$1(options = {}) {
|
|
5411
5411
|
return html`<template tabindex="${x => x.disabled ? -1 : 0}" @click="${(x, c) => x.clickHandler(c.event)}" @keypress="${(x, c) => x.keypressHandler(c.event)}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5412
5412
|
}
|
|
5413
|
-
const template$
|
|
5413
|
+
const template$r = buttonTemplate$1();
|
|
5414
5414
|
|
|
5415
|
-
const definition$
|
|
5415
|
+
const definition$r = Button.compose({
|
|
5416
5416
|
name: `${FluentDesignSystem.prefix}-button`,
|
|
5417
|
-
template: template$
|
|
5418
|
-
styles: styles$
|
|
5417
|
+
template: template$r,
|
|
5418
|
+
styles: styles$t
|
|
5419
5419
|
});
|
|
5420
5420
|
|
|
5421
|
-
definition$
|
|
5421
|
+
definition$r.define(FluentDesignSystem.registry);
|
|
5422
5422
|
|
|
5423
|
-
var __defProp$
|
|
5424
|
-
var __getOwnPropDesc$
|
|
5425
|
-
var __decorateClass$
|
|
5426
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5423
|
+
var __defProp$m = Object.defineProperty;
|
|
5424
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
5425
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
5426
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
5427
5427
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5428
|
-
if (kind && result) __defProp$
|
|
5428
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
5429
5429
|
return result;
|
|
5430
5430
|
};
|
|
5431
5431
|
class BaseCheckbox extends FASTElement {
|
|
@@ -5752,26 +5752,26 @@ class BaseCheckbox extends FASTElement {
|
|
|
5752
5752
|
* @public
|
|
5753
5753
|
*/
|
|
5754
5754
|
BaseCheckbox.formAssociated = true;
|
|
5755
|
-
__decorateClass$
|
|
5755
|
+
__decorateClass$m([attr({
|
|
5756
5756
|
mode: "boolean"
|
|
5757
5757
|
})], BaseCheckbox.prototype, "autofocus", 2);
|
|
5758
|
-
__decorateClass$
|
|
5758
|
+
__decorateClass$m([attr({
|
|
5759
5759
|
mode: "boolean"
|
|
5760
5760
|
})], BaseCheckbox.prototype, "disabled", 2);
|
|
5761
|
-
__decorateClass$
|
|
5761
|
+
__decorateClass$m([attr({
|
|
5762
5762
|
attribute: "form"
|
|
5763
5763
|
})], BaseCheckbox.prototype, "formAttribute", 2);
|
|
5764
|
-
__decorateClass$
|
|
5765
|
-
__decorateClass$
|
|
5764
|
+
__decorateClass$m([observable], BaseCheckbox.prototype, "indeterminate", 2);
|
|
5765
|
+
__decorateClass$m([attr({
|
|
5766
5766
|
attribute: "checked",
|
|
5767
5767
|
mode: "boolean"
|
|
5768
5768
|
})], BaseCheckbox.prototype, "initialChecked", 2);
|
|
5769
|
-
__decorateClass$
|
|
5769
|
+
__decorateClass$m([attr({
|
|
5770
5770
|
attribute: "value",
|
|
5771
5771
|
mode: "fromView"
|
|
5772
5772
|
})], BaseCheckbox.prototype, "initialValue", 2);
|
|
5773
|
-
__decorateClass$
|
|
5774
|
-
__decorateClass$
|
|
5773
|
+
__decorateClass$m([attr], BaseCheckbox.prototype, "name", 2);
|
|
5774
|
+
__decorateClass$m([attr({
|
|
5775
5775
|
mode: "boolean"
|
|
5776
5776
|
})], BaseCheckbox.prototype, "required", 2);
|
|
5777
5777
|
class Checkbox extends BaseCheckbox {
|
|
@@ -5802,12 +5802,12 @@ class Checkbox extends BaseCheckbox {
|
|
|
5802
5802
|
}
|
|
5803
5803
|
}
|
|
5804
5804
|
}
|
|
5805
|
-
__decorateClass$
|
|
5806
|
-
__decorateClass$
|
|
5805
|
+
__decorateClass$m([attr], Checkbox.prototype, "shape", 2);
|
|
5806
|
+
__decorateClass$m([attr], Checkbox.prototype, "size", 2);
|
|
5807
5807
|
|
|
5808
5808
|
const checkedState$1 = css.partial`:is([state--checked], :state(checked))`;
|
|
5809
5809
|
const indeterminateState = css.partial`:is([state--indeterminate], :state(indeterminate))`;
|
|
5810
|
-
const styles$
|
|
5810
|
+
const styles$p = css`
|
|
5811
5811
|
${display("inline-flex")}
|
|
5812
5812
|
|
|
5813
5813
|
:host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState$1}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState$1}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState$1})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState$1}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState$1}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${largeState}){--size:20px}:host(${largeState}) ::slotted([slot='checked-indicator']),:host(${largeState}) .checked-indicator{width:16px}:host(${circularState}),:host(${circularState}) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState$1}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState$1}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
@@ -5833,23 +5833,23 @@ const indeterminateIndicator = html.partial( /* html */
|
|
|
5833
5833
|
function checkboxTemplate(options = {}) {
|
|
5834
5834
|
return html`<template tabindex="${x => !x.disabled ? 0 : void 0}" @click="${(x, c) => x.clickHandler(c.event)}" @input="${(x, c) => x.inputHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}" @keyup="${(x, c) => x.keyupHandler(c.event)}"><slot name="checked-indicator">${staticallyCompose(options.checkedIndicator)}</slot><slot name="indeterminate-indicator">${staticallyCompose(options.indeterminateIndicator)}</slot></template>`;
|
|
5835
5835
|
}
|
|
5836
|
-
const template$
|
|
5836
|
+
const template$q = checkboxTemplate({
|
|
5837
5837
|
checkedIndicator,
|
|
5838
5838
|
indeterminateIndicator
|
|
5839
5839
|
});
|
|
5840
5840
|
|
|
5841
|
-
const definition$
|
|
5841
|
+
const definition$q = Checkbox.compose({
|
|
5842
5842
|
name: `${FluentDesignSystem.prefix}-checkbox`,
|
|
5843
|
-
template: template$
|
|
5844
|
-
styles: styles$
|
|
5843
|
+
template: template$q,
|
|
5844
|
+
styles: styles$p
|
|
5845
5845
|
});
|
|
5846
5846
|
|
|
5847
|
-
definition$
|
|
5847
|
+
definition$q.define(FluentDesignSystem.registry);
|
|
5848
5848
|
|
|
5849
5849
|
class CompoundButton extends Button {}
|
|
5850
5850
|
|
|
5851
|
-
const styles$
|
|
5852
|
-
${styles$
|
|
5851
|
+
const styles$o = css`
|
|
5852
|
+
${styles$t}
|
|
5853
5853
|
|
|
5854
5854
|
:host,:host(:is([size])){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(${largeState}) ::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(${primaryState},${primaryState}:hover,${primaryState}:active)) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is(${subtleState},${subtleState}:hover,${subtleState}:active)) ::slotted([slot='description']),:host(${transparentState}) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host(${transparentState}:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
5855
5855
|
::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host(${smallState}){padding:8px;padding-bottom:10px}:host(${iconOnlyState}){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host(${iconOnlyState}${smallState}){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host(${iconOnlyState}${largeState}){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host(${largeState}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}) ::slotted([slot='description']){font-size:${fontSizeBase300}}`;
|
|
@@ -5857,22 +5857,22 @@ const styles$n = css`
|
|
|
5857
5857
|
function buttonTemplate(options = {}) {
|
|
5858
5858
|
return html`<template ?disabled="${x => x.disabled}" tabindex="${x => x.disabled ? -1 : 0}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot><slot name="description"></slot></span>${endSlotTemplate(options)}</template>`;
|
|
5859
5859
|
}
|
|
5860
|
-
const template$
|
|
5860
|
+
const template$p = buttonTemplate();
|
|
5861
5861
|
|
|
5862
|
-
const definition$
|
|
5862
|
+
const definition$p = CompoundButton.compose({
|
|
5863
5863
|
name: `${FluentDesignSystem.prefix}-compound-button`,
|
|
5864
|
-
template: template$
|
|
5865
|
-
styles: styles$
|
|
5864
|
+
template: template$p,
|
|
5865
|
+
styles: styles$o
|
|
5866
5866
|
});
|
|
5867
5867
|
|
|
5868
|
-
definition$
|
|
5868
|
+
definition$p.define(FluentDesignSystem.registry);
|
|
5869
5869
|
|
|
5870
|
-
var __defProp$
|
|
5871
|
-
var __getOwnPropDesc$
|
|
5872
|
-
var __decorateClass$
|
|
5873
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5870
|
+
var __defProp$l = Object.defineProperty;
|
|
5871
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
5872
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
5873
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
5874
5874
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5875
|
-
if (kind && result) __defProp$
|
|
5875
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
5876
5876
|
return result;
|
|
5877
5877
|
};
|
|
5878
5878
|
class CounterBadge extends FASTElement {
|
|
@@ -5969,28 +5969,28 @@ class CounterBadge extends FASTElement {
|
|
|
5969
5969
|
return;
|
|
5970
5970
|
}
|
|
5971
5971
|
}
|
|
5972
|
-
__decorateClass$
|
|
5973
|
-
__decorateClass$
|
|
5974
|
-
__decorateClass$
|
|
5975
|
-
__decorateClass$
|
|
5976
|
-
__decorateClass$
|
|
5972
|
+
__decorateClass$l([attr], CounterBadge.prototype, "appearance", 2);
|
|
5973
|
+
__decorateClass$l([attr], CounterBadge.prototype, "color", 2);
|
|
5974
|
+
__decorateClass$l([attr], CounterBadge.prototype, "shape", 2);
|
|
5975
|
+
__decorateClass$l([attr], CounterBadge.prototype, "size", 2);
|
|
5976
|
+
__decorateClass$l([attr({
|
|
5977
5977
|
converter: nullableNumberConverter
|
|
5978
5978
|
})], CounterBadge.prototype, "count", 2);
|
|
5979
|
-
__decorateClass$
|
|
5979
|
+
__decorateClass$l([attr({
|
|
5980
5980
|
attribute: "overflow-count",
|
|
5981
5981
|
converter: nullableNumberConverter
|
|
5982
5982
|
})], CounterBadge.prototype, "overflowCount", 2);
|
|
5983
|
-
__decorateClass$
|
|
5983
|
+
__decorateClass$l([attr({
|
|
5984
5984
|
attribute: "show-zero",
|
|
5985
5985
|
mode: "boolean"
|
|
5986
5986
|
})], CounterBadge.prototype, "showZero", 2);
|
|
5987
|
-
__decorateClass$
|
|
5987
|
+
__decorateClass$l([attr({
|
|
5988
5988
|
mode: "boolean"
|
|
5989
5989
|
})], CounterBadge.prototype, "dot", 2);
|
|
5990
5990
|
applyMixins(CounterBadge, StartEnd);
|
|
5991
5991
|
|
|
5992
5992
|
const dotState = css.partial`:is([state--dot], :state(dot))`;
|
|
5993
|
-
const styles$
|
|
5993
|
+
const styles$n = css`
|
|
5994
5994
|
:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
5995
5995
|
${badgeFilledStyles}
|
|
5996
5996
|
${badgeGhostStyles}
|
|
@@ -6003,15 +6003,15 @@ function composeTemplate(options = {}) {
|
|
|
6003
6003
|
defaultContent: html`${x => x.setCount()}`
|
|
6004
6004
|
});
|
|
6005
6005
|
}
|
|
6006
|
-
const template$
|
|
6006
|
+
const template$o = composeTemplate();
|
|
6007
6007
|
|
|
6008
|
-
const definition$
|
|
6008
|
+
const definition$o = CounterBadge.compose({
|
|
6009
6009
|
name: `${FluentDesignSystem.prefix}-counter-badge`,
|
|
6010
|
-
template: template$
|
|
6011
|
-
styles: styles$
|
|
6010
|
+
template: template$o,
|
|
6011
|
+
styles: styles$n
|
|
6012
6012
|
});
|
|
6013
6013
|
|
|
6014
|
-
definition$
|
|
6014
|
+
definition$o.define(FluentDesignSystem.registry);
|
|
6015
6015
|
|
|
6016
6016
|
const DialogType = {
|
|
6017
6017
|
modal: "modal",
|
|
@@ -6019,12 +6019,12 @@ const DialogType = {
|
|
|
6019
6019
|
alert: "alert"
|
|
6020
6020
|
};
|
|
6021
6021
|
|
|
6022
|
-
var __defProp$
|
|
6023
|
-
var __getOwnPropDesc$
|
|
6024
|
-
var __decorateClass$
|
|
6025
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6022
|
+
var __defProp$k = Object.defineProperty;
|
|
6023
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
6024
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
6025
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
6026
6026
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6027
|
-
if (kind && result) __defProp$
|
|
6027
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
6028
6028
|
return result;
|
|
6029
6029
|
};
|
|
6030
6030
|
class Dialog extends FASTElement {
|
|
@@ -6092,35 +6092,35 @@ class Dialog extends FASTElement {
|
|
|
6092
6092
|
return true;
|
|
6093
6093
|
}
|
|
6094
6094
|
}
|
|
6095
|
-
__decorateClass$
|
|
6096
|
-
__decorateClass$
|
|
6095
|
+
__decorateClass$k([observable], Dialog.prototype, "dialog", 2);
|
|
6096
|
+
__decorateClass$k([attr({
|
|
6097
6097
|
attribute: "aria-describedby"
|
|
6098
6098
|
})], Dialog.prototype, "ariaDescribedby", 2);
|
|
6099
|
-
__decorateClass$
|
|
6099
|
+
__decorateClass$k([attr({
|
|
6100
6100
|
attribute: "aria-labelledby"
|
|
6101
6101
|
})], Dialog.prototype, "ariaLabelledby", 2);
|
|
6102
|
-
__decorateClass$
|
|
6102
|
+
__decorateClass$k([attr], Dialog.prototype, "type", 2);
|
|
6103
6103
|
|
|
6104
|
-
const template$
|
|
6104
|
+
const template$n = html`<dialog role="${x => x.type === DialogType.alert ? "alertdialog" : "dialog"}" type="${x => x.type}" class="dialog" part="dialog" aria-modal="${x => x.type === DialogType.modal || x.type === DialogType.alert ? "true" : void 0}" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${(x, c) => x.type === DialogType.alert ? c.event.preventDefault() : x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
6105
6105
|
|
|
6106
|
-
const styles$
|
|
6106
|
+
const styles$m = css`
|
|
6107
6107
|
@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
6108
6108
|
@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}`));
|
|
6109
6109
|
|
|
6110
|
-
const definition$
|
|
6110
|
+
const definition$n = Dialog.compose({
|
|
6111
6111
|
name: `${FluentDesignSystem.prefix}-dialog`,
|
|
6112
|
-
template: template$
|
|
6113
|
-
styles: styles$
|
|
6112
|
+
template: template$n,
|
|
6113
|
+
styles: styles$m
|
|
6114
6114
|
});
|
|
6115
6115
|
|
|
6116
|
-
definition$
|
|
6116
|
+
definition$n.define(FluentDesignSystem.registry);
|
|
6117
6117
|
|
|
6118
|
-
var __defProp$
|
|
6119
|
-
var __getOwnPropDesc$
|
|
6120
|
-
var __decorateClass$
|
|
6121
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6118
|
+
var __defProp$j = Object.defineProperty;
|
|
6119
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
6120
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
6121
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
6122
6122
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6123
|
-
if (kind && result) __defProp$
|
|
6123
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
6124
6124
|
return result;
|
|
6125
6125
|
};
|
|
6126
6126
|
class DialogBody extends FASTElement {
|
|
@@ -6129,7 +6129,7 @@ class DialogBody extends FASTElement {
|
|
|
6129
6129
|
this.noTitleAction = false;
|
|
6130
6130
|
}
|
|
6131
6131
|
}
|
|
6132
|
-
__decorateClass$
|
|
6132
|
+
__decorateClass$j([attr({
|
|
6133
6133
|
mode: "boolean",
|
|
6134
6134
|
attribute: "no-title-action"
|
|
6135
6135
|
})], DialogBody.prototype, "noTitleAction", 2);
|
|
@@ -6148,20 +6148,20 @@ const dismissed16Regular = html.partial(`
|
|
|
6148
6148
|
fill="currentColor"
|
|
6149
6149
|
></path>
|
|
6150
6150
|
</svg>`);
|
|
6151
|
-
const template$
|
|
6151
|
+
const template$m = html`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${x => x.noTitleAction || x.parentNode?.type === DialogType.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${x => x.parentNode?.hide()} ${ref("defaultTitleAction")}>${dismissed16Regular}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`;
|
|
6152
6152
|
|
|
6153
|
-
const styles$
|
|
6153
|
+
const styles$l = css`
|
|
6154
6154
|
${display("grid")}
|
|
6155
6155
|
|
|
6156
6156
|
:host{background:${colorNeutralBackground1};box-sizing:border-box;gap:${spacingVerticalS};padding:${spacingVerticalXXL} ${spacingHorizontalXXL};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${colorNeutralBackground1};color:${colorNeutralForeground1};column-gap:8px;display:flex;font-family:${fontFamilyBase};font-size:${fontSizeBase500};font-weight:${fontWeightSemibold};inset-block-start:0;justify-content:space-between;line-height:${lineHeightBase500};margin-block-end:calc(${spacingVerticalS} * -1);margin-block-start:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalS};padding-block-start:${spacingVerticalXXL};position:sticky;z-index:1}.content{box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};min-height:32px}.actions{box-sizing:border-box;background:${colorNeutralBackground1};display:flex;flex-direction:column;gap:${spacingVerticalS};inset-block-end:0;margin-block-end:calc(${spacingVerticalXXL} * -1);padding-block-end:${spacingVerticalXXL};padding-block-start:${spacingVerticalL};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${spacingVerticalS} * -1);padding-block-start:${spacingVerticalS}}}`;
|
|
6157
6157
|
|
|
6158
|
-
const definition$
|
|
6158
|
+
const definition$m = DialogBody.compose({
|
|
6159
6159
|
name: `${FluentDesignSystem.prefix}-dialog-body`,
|
|
6160
|
-
template: template$
|
|
6161
|
-
styles: styles$
|
|
6160
|
+
template: template$m,
|
|
6161
|
+
styles: styles$l
|
|
6162
6162
|
});
|
|
6163
6163
|
|
|
6164
|
-
definition$
|
|
6164
|
+
definition$m.define(FluentDesignSystem.registry);
|
|
6165
6165
|
|
|
6166
6166
|
const DividerRole = {
|
|
6167
6167
|
/**
|
|
@@ -6175,12 +6175,12 @@ const DividerRole = {
|
|
|
6175
6175
|
};
|
|
6176
6176
|
const DividerOrientation = Orientation;
|
|
6177
6177
|
|
|
6178
|
-
var __defProp$
|
|
6179
|
-
var __getOwnPropDesc$
|
|
6180
|
-
var __decorateClass$
|
|
6181
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6178
|
+
var __defProp$i = Object.defineProperty;
|
|
6179
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
6180
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
6181
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
6182
6182
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6183
|
-
if (kind && result) __defProp$
|
|
6183
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
6184
6184
|
return result;
|
|
6185
6185
|
};
|
|
6186
6186
|
class Divider extends FASTElement {
|
|
@@ -6267,29 +6267,151 @@ class Divider extends FASTElement {
|
|
|
6267
6267
|
}
|
|
6268
6268
|
}
|
|
6269
6269
|
}
|
|
6270
|
-
__decorateClass$
|
|
6271
|
-
__decorateClass$
|
|
6272
|
-
__decorateClass$
|
|
6270
|
+
__decorateClass$i([attr], Divider.prototype, "role", 2);
|
|
6271
|
+
__decorateClass$i([attr], Divider.prototype, "orientation", 2);
|
|
6272
|
+
__decorateClass$i([attr({
|
|
6273
6273
|
attribute: "align-content"
|
|
6274
6274
|
})], Divider.prototype, "alignContent", 2);
|
|
6275
|
-
__decorateClass$
|
|
6276
|
-
__decorateClass$
|
|
6275
|
+
__decorateClass$i([attr], Divider.prototype, "appearance", 2);
|
|
6276
|
+
__decorateClass$i([attr({
|
|
6277
6277
|
mode: "boolean"
|
|
6278
6278
|
})], Divider.prototype, "inset", 2);
|
|
6279
6279
|
|
|
6280
6280
|
function dividerTemplate() {
|
|
6281
6281
|
return html`<slot></slot>`;
|
|
6282
6282
|
}
|
|
6283
|
-
const template$
|
|
6283
|
+
const template$l = dividerTemplate();
|
|
6284
6284
|
|
|
6285
|
-
const styles$
|
|
6285
|
+
const styles$k = css`
|
|
6286
6286
|
${display("flex")}
|
|
6287
6287
|
|
|
6288
6288
|
: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(${insetState}){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host(${alignStartState})::before,:host(${alignEndState})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${verticalState}){height:100%;min-height:84px}:host(${verticalState}):empty{min-height:20px}:host(${verticalState}){flex-direction:column;align-items:center}:host(${verticalState}${insetState})::before{margin-top:12px}:host(${verticalState}${insetState})::after{margin-bottom:12px}:host(${verticalState}):empty::before,:host(${verticalState}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${verticalState})::before,:host(${verticalState})::after{width:${strokeWidthThin};min-height:20px;height:100%}:host(${verticalState}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${verticalState}${alignStartState})::before{min-height:8px}:host(${verticalState}${alignEndState})::after{min-height:8px}:host(${strongState})::before,:host(${strongState})::after{background:${colorNeutralStroke1}}:host(${strongState}) ::slotted(*){color:${colorNeutralForeground1}}:host(${brandState})::before,:host(${brandState})::after{background:${colorBrandStroke1}}:host(${brandState}) ::slotted(*){color:${colorBrandForeground1}}:host(${subtleState})::before,:host(${subtleState})::after{background:${colorNeutralStroke3}}:host(${subtleState}) ::slotted(*){color:${colorNeutralForeground3}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
6289
6289
|
:host(${strongState})::before,:host(${strongState})::after,:host(${brandState})::before,:host(${brandState})::after,:host(${subtleState})::before,:host(${subtleState})::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
|
|
6290
6290
|
|
|
6291
|
-
const definition$
|
|
6291
|
+
const definition$l = Divider.compose({
|
|
6292
6292
|
name: `${FluentDesignSystem.prefix}-divider`,
|
|
6293
|
+
template: template$l,
|
|
6294
|
+
styles: styles$k
|
|
6295
|
+
});
|
|
6296
|
+
|
|
6297
|
+
definition$l.define(FluentDesignSystem.registry);
|
|
6298
|
+
|
|
6299
|
+
const DrawerPosition = {
|
|
6300
|
+
start: "start",
|
|
6301
|
+
end: "end"
|
|
6302
|
+
};
|
|
6303
|
+
const DrawerSize = {
|
|
6304
|
+
small: "small",
|
|
6305
|
+
medium: "medium",
|
|
6306
|
+
large: "large",
|
|
6307
|
+
full: "full"
|
|
6308
|
+
};
|
|
6309
|
+
const DrawerType = {
|
|
6310
|
+
nonModal: "non-modal",
|
|
6311
|
+
modal: "modal",
|
|
6312
|
+
inline: "inline"
|
|
6313
|
+
};
|
|
6314
|
+
|
|
6315
|
+
var __defProp$h = Object.defineProperty;
|
|
6316
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
6317
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
6318
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
6319
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6320
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
6321
|
+
return result;
|
|
6322
|
+
};
|
|
6323
|
+
class Drawer extends FASTElement {
|
|
6324
|
+
constructor() {
|
|
6325
|
+
super(...arguments);
|
|
6326
|
+
this.type = DrawerType.modal;
|
|
6327
|
+
this.position = DrawerPosition.start;
|
|
6328
|
+
this.size = DrawerSize.medium;
|
|
6329
|
+
/**
|
|
6330
|
+
* @public
|
|
6331
|
+
* Method to emit an event after the dialog's open state changes
|
|
6332
|
+
* HTML spec proposal: https://github.com/whatwg/html/issues/9733
|
|
6333
|
+
*/
|
|
6334
|
+
this.emitToggle = () => {
|
|
6335
|
+
this.$emit("toggle", {
|
|
6336
|
+
oldState: this.dialog.open ? "closed" : "open",
|
|
6337
|
+
newState: this.dialog.open ? "open" : "closed"
|
|
6338
|
+
});
|
|
6339
|
+
};
|
|
6340
|
+
/**
|
|
6341
|
+
* @public
|
|
6342
|
+
* Method to emit an event before the dialog's open state changes
|
|
6343
|
+
* HTML spec proposal: https://github.com/whatwg/html/issues/9733
|
|
6344
|
+
*/
|
|
6345
|
+
this.emitBeforeToggle = () => {
|
|
6346
|
+
this.$emit("beforetoggle", {
|
|
6347
|
+
oldState: this.dialog.open ? "open" : "closed",
|
|
6348
|
+
newState: this.dialog.open ? "closed" : "open"
|
|
6349
|
+
});
|
|
6350
|
+
};
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
* @public
|
|
6354
|
+
* Method to show the drawer
|
|
6355
|
+
*/
|
|
6356
|
+
show() {
|
|
6357
|
+
Updates.enqueue(() => {
|
|
6358
|
+
this.emitBeforeToggle();
|
|
6359
|
+
if (this.type === DrawerType.inline || this.type === DrawerType.nonModal) {
|
|
6360
|
+
this.dialog.show();
|
|
6361
|
+
} else {
|
|
6362
|
+
this.dialog.showModal();
|
|
6363
|
+
}
|
|
6364
|
+
this.emitToggle();
|
|
6365
|
+
});
|
|
6366
|
+
}
|
|
6367
|
+
/**
|
|
6368
|
+
* @public
|
|
6369
|
+
* Method to hide the drawer
|
|
6370
|
+
*/
|
|
6371
|
+
hide() {
|
|
6372
|
+
this.emitBeforeToggle();
|
|
6373
|
+
this.dialog.close();
|
|
6374
|
+
this.emitToggle();
|
|
6375
|
+
}
|
|
6376
|
+
/**
|
|
6377
|
+
* @public
|
|
6378
|
+
* @param event - The click event
|
|
6379
|
+
* @returns boolean - Always returns true
|
|
6380
|
+
* Handles click events on the drawer.
|
|
6381
|
+
*/
|
|
6382
|
+
clickHandler(event) {
|
|
6383
|
+
event.preventDefault();
|
|
6384
|
+
if (this.dialog.open && event.target === this.dialog) {
|
|
6385
|
+
this.hide();
|
|
6386
|
+
}
|
|
6387
|
+
return true;
|
|
6388
|
+
}
|
|
6389
|
+
}
|
|
6390
|
+
__decorateClass$h([attr], Drawer.prototype, "type", 2);
|
|
6391
|
+
__decorateClass$h([attr({
|
|
6392
|
+
attribute: "aria-labelledby"
|
|
6393
|
+
})], Drawer.prototype, "ariaLabelledby", 2);
|
|
6394
|
+
__decorateClass$h([attr({
|
|
6395
|
+
attribute: "aria-describedby"
|
|
6396
|
+
})], Drawer.prototype, "ariaDescribedby", 2);
|
|
6397
|
+
__decorateClass$h([attr], Drawer.prototype, "position", 2);
|
|
6398
|
+
__decorateClass$h([attr({
|
|
6399
|
+
attribute: "size"
|
|
6400
|
+
})], Drawer.prototype, "size", 2);
|
|
6401
|
+
__decorateClass$h([observable], Drawer.prototype, "dialog", 2);
|
|
6402
|
+
|
|
6403
|
+
const styles$j = css`
|
|
6404
|
+
${display("block")}
|
|
6405
|
+
|
|
6406
|
+
:host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};color:${colorNeutralForeground1};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${shadow64};border:${strokeWidthThin} solid ${colorTransparentStroke};background:${colorNeutralBackground1}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
|
|
6407
|
+
|
|
6408
|
+
function drawerTemplate() {
|
|
6409
|
+
return html`<dialog class="dialog" part="dialog" role="${x => x.type === "modal" ? "dialog" : x.role}" aria-modal="${x => x.type === "modal" ? "true" : void 0}" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" size="${x => x.size}" position="${x => x.position}" type="${x => x.type}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${(x, c) => x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
|
|
6410
|
+
}
|
|
6411
|
+
const template$k = drawerTemplate();
|
|
6412
|
+
|
|
6413
|
+
const definition$k = Drawer.compose({
|
|
6414
|
+
name: `${FluentDesignSystem.prefix}-drawer`,
|
|
6293
6415
|
template: template$k,
|
|
6294
6416
|
styles: styles$j
|
|
6295
6417
|
});
|
|
@@ -6737,7 +6859,7 @@ const template$f = buttonTemplate$1({
|
|
|
6737
6859
|
const definition$f = MenuButton.compose({
|
|
6738
6860
|
name: `${FluentDesignSystem.prefix}-menu-button`,
|
|
6739
6861
|
template: template$f,
|
|
6740
|
-
styles: styles$
|
|
6862
|
+
styles: styles$t
|
|
6741
6863
|
});
|
|
6742
6864
|
|
|
6743
6865
|
definition$f.define(FluentDesignSystem.registry);
|
|
@@ -9911,7 +10033,7 @@ applyMixins(TextInput, StartEnd);
|
|
|
9911
10033
|
const styles$2 = css`
|
|
9912
10034
|
${display("block")}
|
|
9913
10035
|
|
|
9914
|
-
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState}) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host(${underlineState}:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(${underlineState}:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}[disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host(${filledLighterState}) .root,:host(${filledDarkerState}) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host(${filledLighterState}) .root{background:${colorNeutralBackground1}}:host(${filledDarkerState}) .root{background:${colorNeutralBackground3}}:host(${filledLighterState}:hover) .root,:host(${filledDarkerState}:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host(${filledLighterState}:active) .root,:host(${filledDarkerState}:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
10036
|
+
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState$1}) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host(${underlineState$1}:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(${underlineState$1}:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState$1}:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState$1}[disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host(${filledLighterState}) .root,:host(${filledDarkerState}) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host(${filledLighterState}) .root{background:${colorNeutralBackground1}}:host(${filledDarkerState}) .root{background:${colorNeutralBackground3}}:host(${filledLighterState}:hover) .root,:host(${filledDarkerState}:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host(${filledLighterState}:active) .root,:host(${filledDarkerState}:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
9915
10037
|
|
|
9916
10038
|
function textInputTemplate(options = {}) {
|
|
9917
10039
|
return html`<template @beforeinput="${(x, c) => x.beforeinputHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><label part="label" for="control" class="label" ${ref("controlLabel")}><slot ${slotted({
|
|
@@ -9943,6 +10065,12 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
|
9943
10065
|
class Text extends FASTElement {
|
|
9944
10066
|
constructor() {
|
|
9945
10067
|
super(...arguments);
|
|
10068
|
+
/**
|
|
10069
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
10070
|
+
*
|
|
10071
|
+
* @internal
|
|
10072
|
+
*/
|
|
10073
|
+
this.elementInternals = this.attachInternals();
|
|
9946
10074
|
this.nowrap = false;
|
|
9947
10075
|
this.truncate = false;
|
|
9948
10076
|
this.italic = false;
|
|
@@ -9950,6 +10078,87 @@ class Text extends FASTElement {
|
|
|
9950
10078
|
this.strikethrough = false;
|
|
9951
10079
|
this.block = false;
|
|
9952
10080
|
}
|
|
10081
|
+
/**
|
|
10082
|
+
* Handles changes to size attribute custom states
|
|
10083
|
+
* @param prev - the previous state
|
|
10084
|
+
* @param next - the next state
|
|
10085
|
+
*/
|
|
10086
|
+
sizeChanged(prev, next) {
|
|
10087
|
+
if (prev) {
|
|
10088
|
+
toggleState(this.elementInternals, `size-${prev}`, false);
|
|
10089
|
+
}
|
|
10090
|
+
if (next) {
|
|
10091
|
+
toggleState(this.elementInternals, `size-${next}`, true);
|
|
10092
|
+
}
|
|
10093
|
+
}
|
|
10094
|
+
/**
|
|
10095
|
+
* Handles changes to font attribute custom states
|
|
10096
|
+
* @param prev - the previous state
|
|
10097
|
+
* @param next - the next state
|
|
10098
|
+
*/
|
|
10099
|
+
fontChanged(prev, next) {
|
|
10100
|
+
if (prev) {
|
|
10101
|
+
toggleState(this.elementInternals, prev, false);
|
|
10102
|
+
}
|
|
10103
|
+
if (next) {
|
|
10104
|
+
toggleState(this.elementInternals, next, true);
|
|
10105
|
+
}
|
|
10106
|
+
}
|
|
10107
|
+
/**
|
|
10108
|
+
* Handles changes to weight attribute custom states
|
|
10109
|
+
* @param prev - the previous state
|
|
10110
|
+
* @param next - the next state
|
|
10111
|
+
*/
|
|
10112
|
+
weightChanged(prev, next) {
|
|
10113
|
+
if (prev) {
|
|
10114
|
+
toggleState(this.elementInternals, prev, false);
|
|
10115
|
+
}
|
|
10116
|
+
if (next) {
|
|
10117
|
+
toggleState(this.elementInternals, next, true);
|
|
10118
|
+
}
|
|
10119
|
+
}
|
|
10120
|
+
/**
|
|
10121
|
+
* Handles changes to align attribute custom states
|
|
10122
|
+
* @param prev - the previous state
|
|
10123
|
+
* @param next - the next state
|
|
10124
|
+
*/
|
|
10125
|
+
alignChanged(prev, next) {
|
|
10126
|
+
if (prev) {
|
|
10127
|
+
toggleState(this.elementInternals, prev, false);
|
|
10128
|
+
}
|
|
10129
|
+
if (next) {
|
|
10130
|
+
toggleState(this.elementInternals, next, true);
|
|
10131
|
+
}
|
|
10132
|
+
}
|
|
10133
|
+
connectedCallback() {
|
|
10134
|
+
super.connectedCallback();
|
|
10135
|
+
Observable.getNotifier(this).subscribe(this);
|
|
10136
|
+
Object.keys(this.$fastController.definition.attributeLookup).forEach(key => {
|
|
10137
|
+
this.handleChange(this, key);
|
|
10138
|
+
});
|
|
10139
|
+
}
|
|
10140
|
+
disconnectedCallback() {
|
|
10141
|
+
super.disconnectedCallback();
|
|
10142
|
+
Observable.getNotifier(this).unsubscribe(this);
|
|
10143
|
+
}
|
|
10144
|
+
/**
|
|
10145
|
+
* Handles changes to observable properties
|
|
10146
|
+
* @internal
|
|
10147
|
+
* @param source - the source of the change
|
|
10148
|
+
* @param propertyName - the property name being changed
|
|
10149
|
+
*/
|
|
10150
|
+
handleChange(source, propertyName) {
|
|
10151
|
+
switch (propertyName) {
|
|
10152
|
+
case "nowrap":
|
|
10153
|
+
case "truncate":
|
|
10154
|
+
case "italic":
|
|
10155
|
+
case "underline":
|
|
10156
|
+
case "strikethrough":
|
|
10157
|
+
case "block":
|
|
10158
|
+
toggleState(this.elementInternals, propertyName, !!this[propertyName]);
|
|
10159
|
+
break;
|
|
10160
|
+
}
|
|
10161
|
+
}
|
|
9953
10162
|
}
|
|
9954
10163
|
__decorateClass$1([attr({
|
|
9955
10164
|
mode: "boolean"
|
|
@@ -9974,10 +10183,14 @@ __decorateClass$1([attr], Text.prototype, "font", 2);
|
|
|
9974
10183
|
__decorateClass$1([attr], Text.prototype, "weight", 2);
|
|
9975
10184
|
__decorateClass$1([attr], Text.prototype, "align", 2);
|
|
9976
10185
|
|
|
10186
|
+
const nowrapState = css.partial`:is([state--nowrap], :state(nowrap))`;
|
|
10187
|
+
const truncateState = css.partial`:is([state--truncate], :state(truncate))`;
|
|
10188
|
+
const underlineState = css.partial`:is([state--underline], :state(underline))`;
|
|
10189
|
+
const strikethroughState = css.partial`:is([state--strikethrough], :state(strikethrough))`;
|
|
9977
10190
|
const styles$1 = css`
|
|
9978
10191
|
${display("inline")}
|
|
9979
10192
|
|
|
9980
|
-
:host{contain:content
|
|
10193
|
+
:host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host(${nowrapState}),:host(${nowrapState}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${truncateState}),:host(${truncateState}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${underlineState}){text-decoration-line:underline}:host(${strikethroughState}){text-decoration-line:line-through}:host(${underlineState}${strikethroughState}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host(:is([state--size-200],:state(size-200))){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(:is([state--size-400],:state(size-400))){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is([state--size-500],:state(size-500))){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(:is([state--size-600],:state(size-600))){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host(:is([state--size-700],:state(size-700))){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host(:is([state--size-800],:state(size-800))){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host(:is([state--size-900],:state(size-900))){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host(:is([state--size-1000],:state(size-1000))){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host(:is([state--monospace],:state(monospace))){font-family:${fontFamilyMonospace}}:host(:is([state--numeric],:state(numeric))){font-family:${fontFamilyNumeric}}:host(:is([state--medium],:state(medium))){font-weight:${fontWeightMedium}}:host(:is([state--semibold],:state(semibold))){font-weight:${fontWeightSemibold}}:host(:is([state--bold],:state(bold))){font-weight:${fontWeightBold}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
|
|
9981
10194
|
|
|
9982
10195
|
const template$1 = html`<slot></slot>`;
|
|
9983
10196
|
|
|
@@ -10049,7 +10262,7 @@ __decorateClass([attr({
|
|
|
10049
10262
|
})], ToggleButton.prototype, "mixed", 2);
|
|
10050
10263
|
|
|
10051
10264
|
const styles = css`
|
|
10052
|
-
${styles$
|
|
10265
|
+
${styles$t}
|
|
10053
10266
|
|
|
10054
10267
|
:host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}${primaryState}){border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}${primaryState}:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}${subtleState}){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}${subtleState}:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}${outlineState}:hover),:host(${pressedState}${transparentState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}${outlineState}:active),:host(${pressedState}${transparentState}:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}${transparentState}){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}${transparentState}:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}${transparentState}:active){color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
10055
10268
|
:host(${pressedState}),:host(${pressedState}${primaryState}),:host(${pressedState}${subtleState}),:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background:SelectedItem;color:SelectedItemText}`));
|