@fluentui/web-components 3.0.0-alpha.5 → 3.0.0-alpha.6

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.
@@ -3208,7 +3208,9 @@ function accordionItemTemplate(options = {}) {
3208
3208
  const keyArrowDown = "ArrowDown";
3209
3209
  const keyArrowUp = "ArrowUp";
3210
3210
  const keyEnd = "End";
3211
+ const keyEnter = "Enter";
3211
3212
  const keyHome = "Home";
3213
+ const keySpace = " ";
3212
3214
 
3213
3215
  /**
3214
3216
  * This method keeps a given value within the bounds of a min and max value. If the value
@@ -3562,6 +3564,465 @@ function accordionTemplate() {
3562
3564
  })}></slot></template>`;
3563
3565
  }
3564
3566
 
3567
+ const proxySlotName = "form-associated-proxy";
3568
+ const ElementInternalsKey = "ElementInternals";
3569
+ /**
3570
+ * @alpha
3571
+ */
3572
+ const supportsElementInternals = ElementInternalsKey in window && "setFormValue" in window[ElementInternalsKey].prototype;
3573
+ const InternalsMap = new WeakMap();
3574
+ /**
3575
+ * Base function for providing Custom Element Form Association.
3576
+ *
3577
+ * @beta
3578
+ */
3579
+ function FormAssociated(BaseCtor) {
3580
+ const C = class extends BaseCtor {
3581
+ constructor(...args) {
3582
+ super(...args);
3583
+ /**
3584
+ * Track whether the value has been changed from the initial value
3585
+ */
3586
+ this.dirtyValue = false;
3587
+ /**
3588
+ * Sets the element's disabled state. A disabled element will not be included during form submission.
3589
+ *
3590
+ * @remarks
3591
+ * HTML Attribute: disabled
3592
+ */
3593
+ this.disabled = false;
3594
+ /**
3595
+ * These are events that are still fired by the proxy
3596
+ * element based on user / programmatic interaction.
3597
+ *
3598
+ * The proxy implementation should be transparent to
3599
+ * the app author, so block these events from emitting.
3600
+ */
3601
+ this.proxyEventsToBlock = ["change", "click"];
3602
+ this.proxyInitialized = false;
3603
+ this.required = false;
3604
+ this.initialValue = this.initialValue || "";
3605
+ if (!this.elementInternals) {
3606
+ // When elementInternals is not supported, formResetCallback is
3607
+ // bound to an event listener, so ensure the handler's `this`
3608
+ // context is correct.
3609
+ this.formResetCallback = this.formResetCallback.bind(this);
3610
+ }
3611
+ }
3612
+ /**
3613
+ * Must evaluate to true to enable elementInternals.
3614
+ * Feature detects API support and resolve respectively
3615
+ *
3616
+ * @internal
3617
+ */
3618
+ static get formAssociated() {
3619
+ return supportsElementInternals;
3620
+ }
3621
+ /**
3622
+ * Returns the validity state of the element
3623
+ *
3624
+ * @beta
3625
+ */
3626
+ get validity() {
3627
+ return this.elementInternals ? this.elementInternals.validity : this.proxy.validity;
3628
+ }
3629
+ /**
3630
+ * Retrieve a reference to the associated form.
3631
+ * Returns null if not associated to any form.
3632
+ *
3633
+ * @beta
3634
+ */
3635
+ get form() {
3636
+ return this.elementInternals ? this.elementInternals.form : this.proxy.form;
3637
+ }
3638
+ /**
3639
+ * Retrieve the localized validation message,
3640
+ * or custom validation message if set.
3641
+ *
3642
+ * @beta
3643
+ */
3644
+ get validationMessage() {
3645
+ return this.elementInternals ? this.elementInternals.validationMessage : this.proxy.validationMessage;
3646
+ }
3647
+ /**
3648
+ * Whether the element will be validated when the
3649
+ * form is submitted
3650
+ */
3651
+ get willValidate() {
3652
+ return this.elementInternals ? this.elementInternals.willValidate : this.proxy.willValidate;
3653
+ }
3654
+ /**
3655
+ * A reference to all associated label elements
3656
+ */
3657
+ get labels() {
3658
+ if (this.elementInternals) {
3659
+ return Object.freeze(Array.from(this.elementInternals.labels));
3660
+ } else if (this.proxy instanceof HTMLElement && this.proxy.ownerDocument && this.id) {
3661
+ // Labels associated by wrapping the element: <label><custom-element></custom-element></label>
3662
+ const parentLabels = this.proxy.labels;
3663
+ // Labels associated using the `for` attribute
3664
+ const forLabels = Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));
3665
+ const labels = parentLabels ? forLabels.concat(Array.from(parentLabels)) : forLabels;
3666
+ return Object.freeze(labels);
3667
+ } else {
3668
+ return emptyArray;
3669
+ }
3670
+ }
3671
+ /**
3672
+ * Invoked when the `value` property changes
3673
+ * @param previous - the previous value
3674
+ * @param next - the new value
3675
+ *
3676
+ * @remarks
3677
+ * If elements extending `FormAssociated` implement a `valueChanged` method
3678
+ * They must be sure to invoke `super.valueChanged(previous, next)` to ensure
3679
+ * proper functioning of `FormAssociated`
3680
+ */
3681
+ valueChanged(previous, next) {
3682
+ this.dirtyValue = true;
3683
+ if (this.proxy instanceof HTMLElement) {
3684
+ this.proxy.value = this.value;
3685
+ }
3686
+ this.currentValue = this.value;
3687
+ this.setFormValue(this.value);
3688
+ this.validate();
3689
+ }
3690
+ currentValueChanged() {
3691
+ this.value = this.currentValue;
3692
+ }
3693
+ /**
3694
+ * Invoked when the `initialValue` property changes
3695
+ *
3696
+ * @param previous - the previous value
3697
+ * @param next - the new value
3698
+ *
3699
+ * @remarks
3700
+ * If elements extending `FormAssociated` implement a `initialValueChanged` method
3701
+ * They must be sure to invoke `super.initialValueChanged(previous, next)` to ensure
3702
+ * proper functioning of `FormAssociated`
3703
+ */
3704
+ initialValueChanged(previous, next) {
3705
+ // If the value is clean and the component is connected to the DOM
3706
+ // then set value equal to the attribute value.
3707
+ if (!this.dirtyValue) {
3708
+ this.value = this.initialValue;
3709
+ this.dirtyValue = false;
3710
+ }
3711
+ }
3712
+ /**
3713
+ * Invoked when the `disabled` property changes
3714
+ *
3715
+ * @param previous - the previous value
3716
+ * @param next - the new value
3717
+ *
3718
+ * @remarks
3719
+ * If elements extending `FormAssociated` implement a `disabledChanged` method
3720
+ * They must be sure to invoke `super.disabledChanged(previous, next)` to ensure
3721
+ * proper functioning of `FormAssociated`
3722
+ */
3723
+ disabledChanged(previous, next) {
3724
+ if (this.proxy instanceof HTMLElement) {
3725
+ this.proxy.disabled = this.disabled;
3726
+ }
3727
+ Updates.enqueue(() => this.classList.toggle("disabled", this.disabled));
3728
+ }
3729
+ /**
3730
+ * Invoked when the `name` property changes
3731
+ *
3732
+ * @param previous - the previous value
3733
+ * @param next - the new value
3734
+ *
3735
+ * @remarks
3736
+ * If elements extending `FormAssociated` implement a `nameChanged` method
3737
+ * They must be sure to invoke `super.nameChanged(previous, next)` to ensure
3738
+ * proper functioning of `FormAssociated`
3739
+ */
3740
+ nameChanged(previous, next) {
3741
+ if (this.proxy instanceof HTMLElement) {
3742
+ this.proxy.name = this.name;
3743
+ }
3744
+ }
3745
+ /**
3746
+ * Invoked when the `required` property changes
3747
+ *
3748
+ * @param previous - the previous value
3749
+ * @param next - the new value
3750
+ *
3751
+ * @remarks
3752
+ * If elements extending `FormAssociated` implement a `requiredChanged` method
3753
+ * They must be sure to invoke `super.requiredChanged(previous, next)` to ensure
3754
+ * proper functioning of `FormAssociated`
3755
+ */
3756
+ requiredChanged(prev, next) {
3757
+ if (this.proxy instanceof HTMLElement) {
3758
+ this.proxy.required = this.required;
3759
+ }
3760
+ Updates.enqueue(() => this.classList.toggle("required", this.required));
3761
+ this.validate();
3762
+ }
3763
+ /**
3764
+ * The element internals object. Will only exist
3765
+ * in browsers supporting the attachInternals API
3766
+ */
3767
+ get elementInternals() {
3768
+ if (!supportsElementInternals) {
3769
+ return null;
3770
+ }
3771
+ let internals = InternalsMap.get(this);
3772
+ if (!internals) {
3773
+ internals = this.attachInternals();
3774
+ InternalsMap.set(this, internals);
3775
+ }
3776
+ return internals;
3777
+ }
3778
+ /**
3779
+ * @internal
3780
+ */
3781
+ connectedCallback() {
3782
+ super.connectedCallback();
3783
+ this.addEventListener("keypress", this._keypressHandler);
3784
+ if (!this.value) {
3785
+ this.value = this.initialValue;
3786
+ this.dirtyValue = false;
3787
+ }
3788
+ if (!this.elementInternals) {
3789
+ this.attachProxy();
3790
+ if (this.form) {
3791
+ this.form.addEventListener("reset", this.formResetCallback);
3792
+ }
3793
+ }
3794
+ }
3795
+ /**
3796
+ * @internal
3797
+ */
3798
+ disconnectedCallback() {
3799
+ this.proxyEventsToBlock.forEach(name => this.proxy.removeEventListener(name, this.stopPropagation));
3800
+ if (!this.elementInternals && this.form) {
3801
+ this.form.removeEventListener("reset", this.formResetCallback);
3802
+ }
3803
+ }
3804
+ /**
3805
+ * Return the current validity of the element.
3806
+ */
3807
+ checkValidity() {
3808
+ return this.elementInternals ? this.elementInternals.checkValidity() : this.proxy.checkValidity();
3809
+ }
3810
+ /**
3811
+ * Return the current validity of the element.
3812
+ * If false, fires an invalid event at the element.
3813
+ */
3814
+ reportValidity() {
3815
+ return this.elementInternals ? this.elementInternals.reportValidity() : this.proxy.reportValidity();
3816
+ }
3817
+ /**
3818
+ * Set the validity of the control. In cases when the elementInternals object is not
3819
+ * available (and the proxy element is used to report validity), this function will
3820
+ * do nothing unless a message is provided, at which point the setCustomValidity method
3821
+ * of the proxy element will be invoked with the provided message.
3822
+ * @param flags - Validity flags
3823
+ * @param message - Optional message to supply
3824
+ * @param anchor - Optional element used by UA to display an interactive validation UI
3825
+ */
3826
+ setValidity(flags, message, anchor) {
3827
+ if (this.elementInternals) {
3828
+ this.elementInternals.setValidity(flags, message, anchor);
3829
+ } else if (typeof message === "string") {
3830
+ this.proxy.setCustomValidity(message);
3831
+ }
3832
+ }
3833
+ /**
3834
+ * Invoked when a connected component's form or fieldset has its disabled
3835
+ * state changed.
3836
+ * @param disabled - the disabled value of the form / fieldset
3837
+ */
3838
+ formDisabledCallback(disabled) {
3839
+ this.disabled = disabled;
3840
+ }
3841
+ formResetCallback() {
3842
+ this.value = this.initialValue;
3843
+ this.dirtyValue = false;
3844
+ }
3845
+ /**
3846
+ * Attach the proxy element to the DOM
3847
+ */
3848
+ attachProxy() {
3849
+ var _a;
3850
+ if (!this.proxyInitialized) {
3851
+ this.proxyInitialized = true;
3852
+ this.proxy.style.display = "none";
3853
+ this.proxyEventsToBlock.forEach(name => this.proxy.addEventListener(name, this.stopPropagation));
3854
+ // These are typically mapped to the proxy during
3855
+ // property change callbacks, but during initialization
3856
+ // on the initial call of the callback, the proxy is
3857
+ // still undefined. We should find a better way to address this.
3858
+ this.proxy.disabled = this.disabled;
3859
+ this.proxy.required = this.required;
3860
+ if (typeof this.name === "string") {
3861
+ this.proxy.name = this.name;
3862
+ }
3863
+ if (typeof this.value === "string") {
3864
+ this.proxy.value = this.value;
3865
+ }
3866
+ this.proxy.setAttribute("slot", proxySlotName);
3867
+ this.proxySlot = document.createElement("slot");
3868
+ this.proxySlot.setAttribute("name", proxySlotName);
3869
+ }
3870
+ (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.appendChild(this.proxySlot);
3871
+ this.appendChild(this.proxy);
3872
+ }
3873
+ /**
3874
+ * Detach the proxy element from the DOM
3875
+ */
3876
+ detachProxy() {
3877
+ var _a;
3878
+ this.removeChild(this.proxy);
3879
+ (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeChild(this.proxySlot);
3880
+ }
3881
+ /** {@inheritDoc (FormAssociated:interface).validate} */
3882
+ validate(anchor) {
3883
+ if (this.proxy instanceof HTMLElement) {
3884
+ this.setValidity(this.proxy.validity, this.proxy.validationMessage, anchor);
3885
+ }
3886
+ }
3887
+ /**
3888
+ * Associates the provided value (and optional state) with the parent form.
3889
+ * @param value - The value to set
3890
+ * @param state - The state object provided to during session restores and when autofilling.
3891
+ */
3892
+ setFormValue(value, state) {
3893
+ if (this.elementInternals) {
3894
+ this.elementInternals.setFormValue(value, state || value);
3895
+ }
3896
+ }
3897
+ _keypressHandler(e) {
3898
+ switch (e.key) {
3899
+ case keyEnter:
3900
+ if (this.form instanceof HTMLFormElement) {
3901
+ // Implicit submission
3902
+ const defaultButton = this.form.querySelector("[type=submit]");
3903
+ defaultButton === null || defaultButton === void 0 ? void 0 : defaultButton.click();
3904
+ }
3905
+ break;
3906
+ }
3907
+ }
3908
+ /**
3909
+ * Used to stop propagation of proxy element events
3910
+ * @param e - Event object
3911
+ */
3912
+ stopPropagation(e) {
3913
+ e.stopPropagation();
3914
+ }
3915
+ };
3916
+ attr({
3917
+ mode: "boolean"
3918
+ })(C.prototype, "disabled");
3919
+ attr({
3920
+ mode: "fromView",
3921
+ attribute: "value"
3922
+ })(C.prototype, "initialValue");
3923
+ attr({
3924
+ attribute: "current-value"
3925
+ })(C.prototype, "currentValue");
3926
+ attr(C.prototype, "name");
3927
+ attr({
3928
+ mode: "boolean"
3929
+ })(C.prototype, "required");
3930
+ observable(C.prototype, "value");
3931
+ return C;
3932
+ }
3933
+ /**
3934
+ * Creates a checkable form associated component.
3935
+ * @beta
3936
+ */
3937
+ function CheckableFormAssociated(BaseCtor) {
3938
+ class C extends FormAssociated(BaseCtor) {}
3939
+ class D extends C {
3940
+ constructor(...args) {
3941
+ super(args);
3942
+ /**
3943
+ * Tracks whether the "checked" property has been changed.
3944
+ * This is necessary to provide consistent behavior with
3945
+ * normal input checkboxes
3946
+ */
3947
+ this.dirtyChecked = false;
3948
+ /**
3949
+ * Provides the default checkedness of the input element
3950
+ * Passed down to proxy
3951
+ *
3952
+ * @public
3953
+ * @remarks
3954
+ * HTML Attribute: checked
3955
+ */
3956
+ this.checkedAttribute = false;
3957
+ /**
3958
+ * The checked state of the control.
3959
+ *
3960
+ * @public
3961
+ */
3962
+ this.checked = false;
3963
+ // Re-initialize dirtyChecked because initialization of other values
3964
+ // causes it to become true
3965
+ this.dirtyChecked = false;
3966
+ }
3967
+ checkedAttributeChanged() {
3968
+ this.defaultChecked = this.checkedAttribute;
3969
+ }
3970
+ /**
3971
+ * @internal
3972
+ */
3973
+ defaultCheckedChanged() {
3974
+ if (!this.dirtyChecked) {
3975
+ // Setting this.checked will cause us to enter a dirty state,
3976
+ // but if we are clean when defaultChecked is changed, we want to stay
3977
+ // in a clean state, so reset this.dirtyChecked
3978
+ this.checked = this.defaultChecked;
3979
+ this.dirtyChecked = false;
3980
+ }
3981
+ }
3982
+ checkedChanged(prev, next) {
3983
+ if (!this.dirtyChecked) {
3984
+ this.dirtyChecked = true;
3985
+ }
3986
+ this.currentChecked = this.checked;
3987
+ this.updateForm();
3988
+ if (this.proxy instanceof HTMLInputElement) {
3989
+ this.proxy.checked = this.checked;
3990
+ }
3991
+ if (prev !== undefined) {
3992
+ this.$emit("change");
3993
+ }
3994
+ this.validate();
3995
+ }
3996
+ currentCheckedChanged(prev, next) {
3997
+ this.checked = this.currentChecked;
3998
+ }
3999
+ updateForm() {
4000
+ const value = this.checked ? this.value : null;
4001
+ this.setFormValue(value, value);
4002
+ }
4003
+ connectedCallback() {
4004
+ super.connectedCallback();
4005
+ this.updateForm();
4006
+ }
4007
+ formResetCallback() {
4008
+ super.formResetCallback();
4009
+ this.checked = !!this.checkedAttribute;
4010
+ this.dirtyChecked = false;
4011
+ }
4012
+ }
4013
+ attr({
4014
+ attribute: "checked",
4015
+ mode: "boolean"
4016
+ })(D.prototype, "checkedAttribute");
4017
+ attr({
4018
+ attribute: "current-checked",
4019
+ converter: booleanConverter
4020
+ })(D.prototype, "currentChecked");
4021
+ observable(D.prototype, "defaultChecked");
4022
+ observable(D.prototype, "checked");
4023
+ return D;
4024
+ }
4025
+
3565
4026
  class DerivedValueEvaluator {
3566
4027
  constructor(value) {
3567
4028
  this.value = value;
@@ -4547,6 +5008,99 @@ function progressTemplate(options = {}) {
4547
5008
  return html`<template role="progressbar" aria-valuenow="${x => x.value}" aria-valuemin="${x => x.min}" aria-valuemax="${x => x.max}">${when(x => typeof x.value === "number", html`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${x => x.percentComplete}%"></div></div>`)} ${when(x => typeof x.value !== "number", html`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${staticallyCompose(options.indeterminateIndicator1)} ${staticallyCompose(options.indeterminateIndicator2)}</slot></div>`)}</template>`;
4548
5009
  }
4549
5010
 
5011
+ /**
5012
+ * The template for the {@link @microsoft/fast-foundation#(FASTSwitch:class)} component.
5013
+ * @public
5014
+ */
5015
+ function switchTemplate(options = {}) {
5016
+ return html`<template role="switch" aria-checked="${x => x.checked}" aria-disabled="${x => x.disabled}" aria-readonly="${x => x.readOnly}" tabindex="${x => x.disabled ? null : 0}" @keypress="${(x, c) => x.keypressHandler(c.event)}" @click="${(x, c) => x.clickHandler(c.event)}"><label part="label" class="${x => x.defaultSlottedNodes && x.defaultSlottedNodes.length ? "label" : "label label__hidden"}"><slot ${slotted("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${staticallyCompose(options.switch)}</slot></div></template>`;
5017
+ }
5018
+
5019
+ class _Switch extends FASTElement {}
5020
+ /**
5021
+ * A form-associated base class for the {@link @microsoft/fast-foundation#(FASTSwitch:class)} component.
5022
+ *
5023
+ * @beta
5024
+ */
5025
+ class FormAssociatedSwitch extends CheckableFormAssociated(_Switch) {
5026
+ constructor() {
5027
+ super(...arguments);
5028
+ this.proxy = document.createElement("input");
5029
+ }
5030
+ }
5031
+
5032
+ /**
5033
+ * A Switch Custom HTML Element.
5034
+ * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#switch | ARIA switch }.
5035
+ *
5036
+ * @slot - The deafult slot for the label
5037
+ * @slot checked-message - The message when in a checked state
5038
+ * @slot unchecked-message - The message when in an unchecked state
5039
+ * @csspart label - The label
5040
+ * @csspart switch - The element representing the switch, which wraps the indicator
5041
+ * @csspart status-message - The wrapper for the status messages
5042
+ * @csspart checked-message - The checked message
5043
+ * @csspart unchecked-message - The unchecked message
5044
+ * @fires change - Emits a custom change event when the checked state changes
5045
+ *
5046
+ * @public
5047
+ */
5048
+ class FASTSwitch extends FormAssociatedSwitch {
5049
+ constructor() {
5050
+ super();
5051
+ /**
5052
+ * The element's value to be included in form submission when checked.
5053
+ * Default to "on" to reach parity with input[type="checkbox"]
5054
+ *
5055
+ * @internal
5056
+ */
5057
+ this.initialValue = "on";
5058
+ /**
5059
+ * @internal
5060
+ */
5061
+ this.keypressHandler = e => {
5062
+ if (this.readOnly) {
5063
+ return;
5064
+ }
5065
+ switch (e.key) {
5066
+ case keyEnter:
5067
+ case keySpace:
5068
+ this.checked = !this.checked;
5069
+ break;
5070
+ }
5071
+ };
5072
+ /**
5073
+ * @internal
5074
+ */
5075
+ this.clickHandler = e => {
5076
+ if (!this.disabled && !this.readOnly) {
5077
+ this.checked = !this.checked;
5078
+ }
5079
+ };
5080
+ this.proxy.setAttribute("type", "checkbox");
5081
+ }
5082
+ readOnlyChanged() {
5083
+ if (this.proxy instanceof HTMLInputElement) {
5084
+ this.proxy.readOnly = this.readOnly;
5085
+ }
5086
+ }
5087
+ /**
5088
+ * @internal
5089
+ */
5090
+ checkedChanged(prev, next) {
5091
+ super.checkedChanged(prev, next);
5092
+ /**
5093
+ * @deprecated - this behavior already exists in the template and should not exist in the class.
5094
+ */
5095
+ this.checked ? this.classList.add("checked") : this.classList.remove("checked");
5096
+ }
5097
+ }
5098
+ __decorate([attr({
5099
+ attribute: "readonly",
5100
+ mode: "boolean"
5101
+ })], FASTSwitch.prototype, "readOnly", void 0);
5102
+ __decorate([observable], FASTSwitch.prototype, "defaultSlottedNodes", void 0);
5103
+
4550
5104
  /**
4551
5105
  * A CSS fragment to set `display: none;` when the host is hidden using the [hidden] attribute.
4552
5106
  * @public
@@ -4568,9 +5122,9 @@ function display(displayValue) {
4568
5122
  */
4569
5123
  class Accordion extends FASTAccordion {}
4570
5124
 
4571
- const template$6 = accordionTemplate();
5125
+ const template$7 = accordionTemplate();
4572
5126
 
4573
- const styles$6 = css`
5127
+ const styles$7 = css`
4574
5128
  ${display('flex')}
4575
5129
 
4576
5130
  :host{flex-direction:column;width:100%}`;
@@ -4590,10 +5144,10 @@ const FluentDesignSystem = Object.freeze({
4590
5144
  * @remarks
4591
5145
  * HTML Element: \<fluent-accordion\>
4592
5146
  */
4593
- const definition$6 = Accordion.compose({
5147
+ const definition$7 = Accordion.compose({
4594
5148
  name: `${FluentDesignSystem.prefix}-accordion`,
4595
- template: template$6,
4596
- styles: styles$6
5149
+ template: template$7,
5150
+ styles: styles$7
4597
5151
  });
4598
5152
 
4599
5153
  /**
@@ -5403,7 +5957,7 @@ var tokens = /*#__PURE__*/Object.freeze({
5403
5957
  shadow64Brand: shadow64Brand
5404
5958
  });
5405
5959
 
5406
- const styles$5 = css`
5960
+ const styles$6 = css`
5407
5961
  ${display('block')}
5408
5962
 
5409
5963
  :host{max-width:fit-content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${colorNeutralForeground1};background:${colorTransparentBackground};line-height:${lineHeightBase300};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${spacingHorizontalM}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`;
@@ -5438,7 +5992,7 @@ const chevronDown20Filled = html.partial(`<svg
5438
5992
  * The template for the fluent-accordion component.
5439
5993
  * @public
5440
5994
  */
5441
- const template$5 = accordionItemTemplate({
5995
+ const template$6 = accordionItemTemplate({
5442
5996
  collapsedIcon: chevronRight20Filled,
5443
5997
  expandedIcon: chevronDown20Filled
5444
5998
  });
@@ -5452,10 +6006,10 @@ const template$5 = accordionItemTemplate({
5452
6006
  * @remarks
5453
6007
  * HTML Element: \<fluent-accordion-item\>
5454
6008
  */
5455
- const definition$5 = AccordionItem.compose({
6009
+ const definition$6 = AccordionItem.compose({
5456
6010
  name: `${FluentDesignSystem.prefix}-accordion-item`,
5457
- template: template$5,
5458
- styles: styles$5
6011
+ template: template$6,
6012
+ styles: styles$6
5459
6013
  });
5460
6014
 
5461
6015
  /**
@@ -5542,7 +6096,7 @@ applyMixins(Badge, StartEnd);
5542
6096
  function badgeTemplate(options = {}) {
5543
6097
  return html` ${startSlotTemplate(options)}<slot>${staticallyCompose(options.defaultContent)}</slot>${endSlotTemplate(options)} `;
5544
6098
  }
5545
- const template$4 = badgeTemplate();
6099
+ const template$5 = badgeTemplate();
5546
6100
 
5547
6101
  const textPadding = spacingHorizontalXXS;
5548
6102
  const badgeBaseStyles = css.partial`
@@ -5818,7 +6372,7 @@ const badgeTintStyles = css.partial`
5818
6372
  /** Badge styles
5819
6373
  * @public
5820
6374
  */
5821
- const styles$4 = css`
6375
+ const styles$5 = css`
5822
6376
  :host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
5823
6377
  ${badgeFilledStyles}
5824
6378
  ${badgeGhostStyles}
@@ -5836,10 +6390,10 @@ const styles$4 = css`
5836
6390
  * @remarks
5837
6391
  * HTML Element: \<fluent-badge\>
5838
6392
  */
5839
- const definition$4 = Badge.compose({
6393
+ const definition$5 = Badge.compose({
5840
6394
  name: `${FluentDesignSystem.prefix}-badge`,
5841
- template: template$4,
5842
- styles: styles$4
6395
+ template: template$5,
6396
+ styles: styles$5
5843
6397
  });
5844
6398
 
5845
6399
  /**
@@ -5975,12 +6529,12 @@ function composeTemplate(options = {}) {
5975
6529
  * The template for the Counter Badge component.
5976
6530
  * @public
5977
6531
  */
5978
- const template$3 = composeTemplate();
6532
+ const template$4 = composeTemplate();
5979
6533
 
5980
6534
  /** Badge styles
5981
6535
  * @public
5982
6536
  */
5983
- const styles$3 = css`
6537
+ const styles$4 = css`
5984
6538
  :host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
5985
6539
  ${badgeFilledStyles}
5986
6540
  ${badgeGhostStyles}
@@ -5997,10 +6551,10 @@ const styles$3 = css`
5997
6551
  * @remarks
5998
6552
  * HTML Element: \<fluent-counter-badge\>
5999
6553
  */
6000
- const definition$3 = CounterBadge.compose({
6554
+ const definition$4 = CounterBadge.compose({
6001
6555
  name: `${FluentDesignSystem.prefix}-counter-badge`,
6002
- template: template$3,
6003
- styles: styles$3
6556
+ template: template$4,
6557
+ styles: styles$4
6004
6558
  });
6005
6559
 
6006
6560
  /**
@@ -6043,7 +6597,7 @@ const ProgressBarValidationState = {
6043
6597
  /** Text styles
6044
6598
  * @public
6045
6599
  */
6046
- const styles$2 = css`
6600
+ const styles$3 = css`
6047
6601
  ${display('flex')}
6048
6602
 
6049
6603
  :host{align-items:center;height:2px;overflow-x:hidden;border-radius:${borderRadiusMedium}}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${colorPaletteRedBackground3}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
@@ -6058,7 +6612,7 @@ const styles$2 = css`
6058
6612
  to right,${colorBrandBackground2} 0%,${colorCompoundBrandBackground} 50%,${colorBrandBackground2}
6059
6613
  );border-radius:${borderRadiusMedium};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`;
6060
6614
 
6061
- const template$2 = progressTemplate({
6615
+ const template$3 = progressTemplate({
6062
6616
  indeterminateIndicator1: `<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>`,
6063
6617
  indeterminateIndicator2: `<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>`
6064
6618
  });
@@ -6071,10 +6625,10 @@ const template$2 = progressTemplate({
6071
6625
  * @remarks
6072
6626
  * HTML Element: \<fluent-progress-bar\>
6073
6627
  */
6074
- const definition$2 = ProgressBar.compose({
6628
+ const definition$3 = ProgressBar.compose({
6075
6629
  name: `${FluentDesignSystem.prefix}-progress-bar`,
6076
- template: template$2,
6077
- styles: styles$2
6630
+ template: template$3,
6631
+ styles: styles$3
6078
6632
  });
6079
6633
 
6080
6634
  /**
@@ -6107,7 +6661,7 @@ const SpinnerSize = {
6107
6661
  huge: 'huge'
6108
6662
  };
6109
6663
 
6110
- const template$1 = progressRingTemplate({
6664
+ const template$2 = progressRingTemplate({
6111
6665
  indeterminateIndicator: `
6112
6666
  <svg class="progress" part="progress" viewBox="0 0 16 16">
6113
6667
  <circle
@@ -6128,7 +6682,7 @@ const template$1 = progressRingTemplate({
6128
6682
  `
6129
6683
  });
6130
6684
 
6131
- const styles$1 = css`
6685
+ const styles$2 = css`
6132
6686
  ${display('flex')}
6133
6687
 
6134
6688
  :host{display:flex;align-items:center;height:32px;width:32px}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${colorBrandStroke2};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.determinate{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}:host([appearance='inverted']) .determinite{stroke:${colorNeutralStrokeOnBrand2}}.indeterminate-indicator-1{stroke:${colorBrandStroke1};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indeterminate-indicator-1{stroke:${colorNeutralStrokeOnBrand2}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`;
@@ -6142,8 +6696,45 @@ const styles$1 = css`
6142
6696
  * @remarks
6143
6697
  * HTML Element: \<fluent-spinner\>
6144
6698
  */
6145
- const definition$1 = Spinner.compose({
6699
+ const definition$2 = Spinner.compose({
6146
6700
  name: `${FluentDesignSystem.prefix}-spinner`,
6701
+ template: template$2,
6702
+ styles: styles$2
6703
+ });
6704
+
6705
+ class Switch extends FASTSwitch {}
6706
+ __decorate([attr({
6707
+ attribute: 'label-position'
6708
+ })], Switch.prototype, "labelPosition", void 0);
6709
+
6710
+ /**
6711
+ * SwitchLabelPosition Constants
6712
+ * @public
6713
+ */
6714
+ const SwitchLabelPosition = {
6715
+ above: 'above',
6716
+ after: 'after',
6717
+ before: 'before'
6718
+ };
6719
+
6720
+ const template$1 = switchTemplate({
6721
+ switch: `<span class="checked-indicator" part="checked-indicator"></span>`
6722
+ });
6723
+
6724
+ const styles$1 = css`
6725
+ ${display('inline-flex')}
6726
+
6727
+ :host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${colorNeutralForeground1};line-height:${lineHeightBase300};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};font-family:${fontFamilyBase};padding:${spacingVerticalXS} ${spacingHorizontalXS};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${spacingHorizontalXXS};box-sizing:border-box;width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};outline:none;cursor:pointer;margin:${spacingVerticalS} ${spacingHorizontalS}}:host(:hover) .switch{background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .switch{border-color:${colorNeutralStrokeAccessiblePressed}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${colorCompoundBrandBackground}}:host([aria-checked='true']:hover) .switch{background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host([aria-checked='true']:active) .switch{background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host([aria-checked='true'][disabled]) .switch{background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:transform}:host([aria-checked='true']) .checked-indicator{background-color:${colorNeutralForegroundInverted};transform:translateX(20px)}:host([aria-checked='true']:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host([aria-checked='true']:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${colorNeutralForegroundDisabled}}`;
6728
+
6729
+ /**
6730
+ * The Fluent Switch Element.
6731
+ *
6732
+ * @public
6733
+ * @remarks
6734
+ * HTML Element: \<fluent-switch\>
6735
+ */
6736
+ const definition$1 = Switch.compose({
6737
+ name: `${FluentDesignSystem.prefix}-switch`,
6147
6738
  template: template$1,
6148
6739
  styles: styles$1
6149
6740
  });
@@ -6314,4 +6905,4 @@ const setTheme = theme => {
6314
6905
  }
6315
6906
  };
6316
6907
 
6317
- export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Badge, BadgeAppearance, BadgeColor, definition$4 as BadgeDefinition, BadgeShape, BadgeSize, styles$4 as BadgeStyles, template$4 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$3 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$3 as CounterBadgeStyles, template$3 as CounterBadgeTemplate, ProgressBar, definition$2 as ProgressBarDefinition, ProgressBarShape, styles$2 as ProgressBarStyles, template$2 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$1 as SpinnerDefinition, SpinnerSize, styles$1 as SpinnerStyles, template$1 as SpinnerTemplate, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$6 as accordionDefinition, definition$5 as accordionItemDefinition, styles$5 as accordionItemStyles, template$5 as accordionItemTemplate, styles$6 as accordionStyles, template$6 as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin };
6908
+ export { Accordion, AccordionItem, AccordionItemExpandIconPosition, AccordionItemSize, Badge, BadgeAppearance, BadgeColor, definition$5 as BadgeDefinition, BadgeShape, BadgeSize, styles$5 as BadgeStyles, template$5 as BadgeTemplate, CounterBadge, CounterBadgeAppearance, CounterBadgeColor, definition$4 as CounterBadgeDefinition, CounterBadgeShape, CounterBadgeSize, styles$4 as CounterBadgeStyles, template$4 as CounterBadgeTemplate, ProgressBar, definition$3 as ProgressBarDefinition, ProgressBarShape, styles$3 as ProgressBarStyles, template$3 as ProgressBarTemplate, ProgressBarThickness, ProgressBarValidationState, Spinner, SpinnerAppearance, definition$2 as SpinnerDefinition, SpinnerSize, styles$2 as SpinnerStyles, template$2 as SpinnerTemplate, Switch, SwitchLabelPosition, Text, TextAlign, definition as TextDefinition, TextFont, TextSize, styles as TextStyles, template as TextTemplate, TextWeight, definition$7 as accordionDefinition, definition$6 as accordionItemDefinition, styles$6 as accordionItemStyles, template$6 as accordionItemTemplate, styles$7 as accordionStyles, template$7 as accordionTemplate, borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusNone, borderRadiusSmall, borderRadiusXLarge, colorBackgroundOverlay, colorBrandBackground, colorBrandBackground2, colorBrandBackgroundHover, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorBrandBackgroundStatic, colorBrandForeground1, colorBrandForeground2, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorBrandShadowAmbient, colorBrandShadowKey, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundDisabled, colorNeutralBackgroundInverted, colorNeutralBackgroundInvertedDisabled, colorNeutralBackgroundStatic, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground1Static, colorNeutralForeground2, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground2Hover, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground3, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralForegroundInverted2, colorNeutralForegroundInvertedDisabled, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundOnBrand, colorNeutralForegroundStaticInverted, colorNeutralShadowAmbient, colorNeutralShadowAmbientDarker, colorNeutralShadowAmbientLighter, colorNeutralShadowKey, colorNeutralShadowKeyDarker, colorNeutralShadowKeyLighter, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorPaletteAnchorBackground2, colorPaletteAnchorBorderActive, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeBorderActive, colorPaletteBeigeForeground2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteBerryBorderActive, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBlueBackground2, colorPaletteBlueBorderActive, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassBorderActive, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownBorderActive, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerBorderActive, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryBorderActive, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenBorderActive, colorPaletteDarkGreenForeground2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkRedBackground2, colorPaletteDarkRedBorderActive, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestBorderActive, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldBorderActive, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeBorderActive, colorPaletteGrapeForeground2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteGreenBorderActive, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteLavenderBackground2, colorPaletteLavenderBorderActive, colorPaletteLavenderForeground2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteLightGreenBorderActive, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightTealBackground2, colorPaletteLightTealBorderActive, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacBorderActive, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaBorderActive, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteMarigoldBorderActive, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMinkBackground2, colorPaletteMinkBorderActive, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyBorderActive, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachBorderActive, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkBorderActive, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumBorderActive, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumBorderActive, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinBorderActive, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleBorderActive, colorPalettePurpleForeground2, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteRedBorderActive, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueBorderActive, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamBorderActive, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelBorderActive, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealBorderActive, colorPaletteTealForeground2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteYellowBorderActive, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorScrollbarOverlay, colorStrokeFocus1, colorStrokeFocus2, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorTransparentStroke, colorTransparentStrokeDisabled, colorTransparentStrokeInteractive, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, definition$1 as definition, durationFast, durationFaster, durationNormal, durationSlow, durationSlower, durationUltraFast, durationUltraSlow, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, setTheme, shadow16, shadow16Brand, shadow2, shadow28, shadow28Brand, shadow2Brand, shadow4, shadow4Brand, shadow64, shadow64Brand, shadow8, shadow8Brand, spacingHorizontalL, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalNone, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXL, spacingHorizontalXS, spacingHorizontalXXL, spacingHorizontalXXS, spacingHorizontalXXXL, spacingVerticalL, spacingVerticalM, spacingVerticalMNudge, spacingVerticalNone, spacingVerticalS, spacingVerticalSNudge, spacingVerticalXL, spacingVerticalXS, spacingVerticalXXL, spacingVerticalXXS, spacingVerticalXXXL, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, styles$1 as switchStyles, template$1 as switchTemplate };