@fluentui/web-components 3.0.0-rc.19 → 3.0.0-rc.20

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/custom-elements.json +201 -26
  3. package/dist/esm/badge/index.d.ts +3 -4
  4. package/dist/esm/badge/index.js +3 -4
  5. package/dist/esm/badge/index.js.map +1 -1
  6. package/dist/esm/counter-badge/counter-badge.base.d.ts +55 -0
  7. package/dist/esm/counter-badge/counter-badge.base.js +84 -0
  8. package/dist/esm/counter-badge/counter-badge.base.js.map +1 -0
  9. package/dist/esm/counter-badge/counter-badge.d.ts +4 -57
  10. package/dist/esm/counter-badge/counter-badge.js +6 -77
  11. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  12. package/dist/esm/counter-badge/counter-badge.options.d.ts +19 -11
  13. package/dist/esm/counter-badge/counter-badge.options.js +8 -4
  14. package/dist/esm/counter-badge/counter-badge.options.js.map +1 -1
  15. package/dist/esm/counter-badge/counter-badge.template.d.ts +9 -1
  16. package/dist/esm/counter-badge/counter-badge.template.js +15 -7
  17. package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
  18. package/dist/esm/counter-badge/index.d.ts +4 -4
  19. package/dist/esm/counter-badge/index.js +4 -4
  20. package/dist/esm/counter-badge/index.js.map +1 -1
  21. package/dist/esm/dropdown/dropdown.styles.js +1 -0
  22. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/web-components-all.js +170 -166
  27. package/dist/web-components-all.min.js +15 -15
  28. package/dist/web-components.d.ts +81 -65
  29. package/dist/web-components.js +169 -165
  30. package/dist/web-components.min.js +18 -18
  31. package/package.json +1 -1
@@ -4725,14 +4725,14 @@ function applyMixins(derivedCtor, ...baseCtors) {
4725
4725
  });
4726
4726
  }
4727
4727
 
4728
- var __defProp$O = Object.defineProperty;
4729
- var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
4730
- var __decorateClass$O = (decorators, target, key, kind) => {
4731
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
4728
+ var __defProp$P = Object.defineProperty;
4729
+ var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
4730
+ var __decorateClass$P = (decorators, target, key, kind) => {
4731
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
4732
4732
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
4733
4733
  if (decorator = decorators[i])
4734
4734
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4735
- if (kind && result) __defProp$O(target, key, result);
4735
+ if (kind && result) __defProp$P(target, key, result);
4736
4736
  return result;
4737
4737
  };
4738
4738
  class BaseAccordionItem extends FASTElement {
@@ -4749,31 +4749,31 @@ class BaseAccordionItem extends FASTElement {
4749
4749
  this.disabled = false;
4750
4750
  }
4751
4751
  }
4752
- __decorateClass$O([
4752
+ __decorateClass$P([
4753
4753
  attr({
4754
4754
  attribute: "heading-level",
4755
4755
  mode: "fromView",
4756
4756
  converter: nullableNumberConverter
4757
4757
  })
4758
4758
  ], BaseAccordionItem.prototype, "headinglevel", 2);
4759
- __decorateClass$O([
4759
+ __decorateClass$P([
4760
4760
  attr({ mode: "boolean" })
4761
4761
  ], BaseAccordionItem.prototype, "expanded", 2);
4762
- __decorateClass$O([
4762
+ __decorateClass$P([
4763
4763
  attr({ mode: "boolean" })
4764
4764
  ], BaseAccordionItem.prototype, "disabled", 2);
4765
- __decorateClass$O([
4765
+ __decorateClass$P([
4766
4766
  observable
4767
4767
  ], BaseAccordionItem.prototype, "expandbutton", 2);
4768
4768
 
4769
- var __defProp$N = Object.defineProperty;
4770
- var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
4771
- var __decorateClass$N = (decorators, target, key, kind) => {
4772
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
4769
+ var __defProp$O = Object.defineProperty;
4770
+ var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
4771
+ var __decorateClass$O = (decorators, target, key, kind) => {
4772
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
4773
4773
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
4774
4774
  if (decorator = decorators[i])
4775
4775
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4776
- if (kind && result) __defProp$N(target, key, result);
4776
+ if (kind && result) __defProp$O(target, key, result);
4777
4777
  return result;
4778
4778
  };
4779
4779
  class AccordionItem extends BaseAccordionItem {
@@ -4782,13 +4782,13 @@ class AccordionItem extends BaseAccordionItem {
4782
4782
  this.block = false;
4783
4783
  }
4784
4784
  }
4785
- __decorateClass$N([
4785
+ __decorateClass$O([
4786
4786
  attr
4787
4787
  ], AccordionItem.prototype, "size", 2);
4788
- __decorateClass$N([
4788
+ __decorateClass$O([
4789
4789
  attr({ attribute: "marker-position" })
4790
4790
  ], AccordionItem.prototype, "markerPosition", 2);
4791
- __decorateClass$N([
4791
+ __decorateClass$O([
4792
4792
  attr({ mode: "boolean" })
4793
4793
  ], AccordionItem.prototype, "block", 2);
4794
4794
  applyMixins(AccordionItem, StartEnd);
@@ -5101,14 +5101,14 @@ function waitForConnectedDescendants(target, callback, options) {
5101
5101
  scheduleCheck();
5102
5102
  }
5103
5103
 
5104
- var __defProp$M = Object.defineProperty;
5105
- var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
5106
- var __decorateClass$M = (decorators, target, key, kind) => {
5107
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
5104
+ var __defProp$N = Object.defineProperty;
5105
+ var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
5106
+ var __decorateClass$N = (decorators, target, key, kind) => {
5107
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
5108
5108
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5109
5109
  if (decorator = decorators[i])
5110
5110
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5111
- if (kind && result) __defProp$M(target, key, result);
5111
+ if (kind && result) __defProp$N(target, key, result);
5112
5112
  return result;
5113
5113
  };
5114
5114
  class Accordion extends FASTElement {
@@ -5253,10 +5253,10 @@ class Accordion extends FASTElement {
5253
5253
  this.setItems();
5254
5254
  }
5255
5255
  }
5256
- __decorateClass$M([
5256
+ __decorateClass$N([
5257
5257
  attr({ attribute: "expand-mode" })
5258
5258
  ], Accordion.prototype, "expandmode", 2);
5259
- __decorateClass$M([
5259
+ __decorateClass$N([
5260
5260
  observable
5261
5261
  ], Accordion.prototype, "slottedAccordionItems", 2);
5262
5262
 
@@ -5354,14 +5354,14 @@ function swapStates(elementInternals, prev = "", next = "", States, prefix = "")
5354
5354
  }
5355
5355
  }
5356
5356
 
5357
- var __defProp$L = Object.defineProperty;
5358
- var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
5359
- var __decorateClass$L = (decorators, target, key, kind) => {
5360
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
5357
+ var __defProp$M = Object.defineProperty;
5358
+ var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
5359
+ var __decorateClass$M = (decorators, target, key, kind) => {
5360
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
5361
5361
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5362
5362
  if (decorator = decorators[i])
5363
5363
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5364
- if (kind && result) __defProp$L(target, key, result);
5364
+ if (kind && result) __defProp$M(target, key, result);
5365
5365
  return result;
5366
5366
  };
5367
5367
  class BaseAnchor extends FASTElement {
@@ -5473,39 +5473,39 @@ class BaseAnchor extends FASTElement {
5473
5473
  return proxy;
5474
5474
  }
5475
5475
  }
5476
- __decorateClass$L([
5476
+ __decorateClass$M([
5477
5477
  attr
5478
5478
  ], BaseAnchor.prototype, "download", 2);
5479
- __decorateClass$L([
5479
+ __decorateClass$M([
5480
5480
  attr
5481
5481
  ], BaseAnchor.prototype, "href", 2);
5482
- __decorateClass$L([
5482
+ __decorateClass$M([
5483
5483
  attr
5484
5484
  ], BaseAnchor.prototype, "hreflang", 2);
5485
- __decorateClass$L([
5485
+ __decorateClass$M([
5486
5486
  attr
5487
5487
  ], BaseAnchor.prototype, "ping", 2);
5488
- __decorateClass$L([
5488
+ __decorateClass$M([
5489
5489
  attr
5490
5490
  ], BaseAnchor.prototype, "referrerpolicy", 2);
5491
- __decorateClass$L([
5491
+ __decorateClass$M([
5492
5492
  attr
5493
5493
  ], BaseAnchor.prototype, "rel", 2);
5494
- __decorateClass$L([
5494
+ __decorateClass$M([
5495
5495
  attr
5496
5496
  ], BaseAnchor.prototype, "target", 2);
5497
- __decorateClass$L([
5497
+ __decorateClass$M([
5498
5498
  attr
5499
5499
  ], BaseAnchor.prototype, "type", 2);
5500
5500
 
5501
- var __defProp$K = Object.defineProperty;
5502
- var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
5503
- var __decorateClass$K = (decorators, target, key, kind) => {
5504
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
5501
+ var __defProp$L = Object.defineProperty;
5502
+ var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
5503
+ var __decorateClass$L = (decorators, target, key, kind) => {
5504
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
5505
5505
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5506
5506
  if (decorator = decorators[i])
5507
5507
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5508
- if (kind && result) __defProp$K(target, key, result);
5508
+ if (kind && result) __defProp$L(target, key, result);
5509
5509
  return result;
5510
5510
  };
5511
5511
  class AnchorButton extends BaseAnchor {
@@ -5546,16 +5546,16 @@ class AnchorButton extends BaseAnchor {
5546
5546
  toggleState(this.elementInternals, "icon", !!next);
5547
5547
  }
5548
5548
  }
5549
- __decorateClass$K([
5549
+ __decorateClass$L([
5550
5550
  attr
5551
5551
  ], AnchorButton.prototype, "appearance", 2);
5552
- __decorateClass$K([
5552
+ __decorateClass$L([
5553
5553
  attr
5554
5554
  ], AnchorButton.prototype, "shape", 2);
5555
- __decorateClass$K([
5555
+ __decorateClass$L([
5556
5556
  attr
5557
5557
  ], AnchorButton.prototype, "size", 2);
5558
- __decorateClass$K([
5558
+ __decorateClass$L([
5559
5559
  attr({ attribute: "icon-only", mode: "boolean" })
5560
5560
  ], AnchorButton.prototype, "iconOnly", 2);
5561
5561
  applyMixins(AnchorButton, StartEnd);
@@ -5659,14 +5659,14 @@ function getInitials(displayName, isRtl, options) {
5659
5659
  return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
5660
5660
  }
5661
5661
 
5662
- var __defProp$J = Object.defineProperty;
5663
- var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
5664
- var __decorateClass$J = (decorators, target, key, kind) => {
5665
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
5662
+ var __defProp$K = Object.defineProperty;
5663
+ var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
5664
+ var __decorateClass$K = (decorators, target, key, kind) => {
5665
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
5666
5666
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5667
5667
  if (decorator = decorators[i])
5668
5668
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5669
- if (kind && result) __defProp$J(target, key, result);
5669
+ if (kind && result) __defProp$K(target, key, result);
5670
5670
  return result;
5671
5671
  };
5672
5672
  class BaseAvatar extends FASTElement {
@@ -5775,30 +5775,30 @@ class BaseAvatar extends FASTElement {
5775
5775
  }
5776
5776
  }
5777
5777
  }
5778
- __decorateClass$J([
5778
+ __decorateClass$K([
5779
5779
  observable
5780
5780
  ], BaseAvatar.prototype, "defaultSlot", 2);
5781
- __decorateClass$J([
5781
+ __decorateClass$K([
5782
5782
  observable
5783
5783
  ], BaseAvatar.prototype, "monogram", 2);
5784
- __decorateClass$J([
5784
+ __decorateClass$K([
5785
5785
  observable
5786
5786
  ], BaseAvatar.prototype, "slottedDefaults", 2);
5787
- __decorateClass$J([
5787
+ __decorateClass$K([
5788
5788
  attr
5789
5789
  ], BaseAvatar.prototype, "name", 2);
5790
- __decorateClass$J([
5790
+ __decorateClass$K([
5791
5791
  attr
5792
5792
  ], BaseAvatar.prototype, "initials", 2);
5793
5793
 
5794
- var __defProp$I = Object.defineProperty;
5795
- var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
5796
- var __decorateClass$I = (decorators, target, key, kind) => {
5797
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
5794
+ var __defProp$J = Object.defineProperty;
5795
+ var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
5796
+ var __decorateClass$J = (decorators, target, key, kind) => {
5797
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
5798
5798
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5799
5799
  if (decorator = decorators[i])
5800
5800
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5801
- if (kind && result) __defProp$I(target, key, result);
5801
+ if (kind && result) __defProp$J(target, key, result);
5802
5802
  return result;
5803
5803
  };
5804
5804
  const _Avatar = class _Avatar extends BaseAvatar {
@@ -5853,22 +5853,22 @@ const _Avatar = class _Avatar extends BaseAvatar {
5853
5853
  * An array of the available Avatar named colors
5854
5854
  */
5855
5855
  _Avatar.colors = Object.values(AvatarNamedColor);
5856
- __decorateClass$I([
5856
+ __decorateClass$J([
5857
5857
  attr
5858
5858
  ], _Avatar.prototype, "active", 2);
5859
- __decorateClass$I([
5859
+ __decorateClass$J([
5860
5860
  attr
5861
5861
  ], _Avatar.prototype, "shape", 2);
5862
- __decorateClass$I([
5862
+ __decorateClass$J([
5863
5863
  attr
5864
5864
  ], _Avatar.prototype, "appearance", 2);
5865
- __decorateClass$I([
5865
+ __decorateClass$J([
5866
5866
  attr({ converter: nullableNumberConverter })
5867
5867
  ], _Avatar.prototype, "size", 2);
5868
- __decorateClass$I([
5868
+ __decorateClass$J([
5869
5869
  attr
5870
5870
  ], _Avatar.prototype, "color", 2);
5871
- __decorateClass$I([
5871
+ __decorateClass$J([
5872
5872
  attr({ attribute: "color-id" })
5873
5873
  ], _Avatar.prototype, "colorId", 2);
5874
5874
  let Avatar = _Avatar;
@@ -5927,14 +5927,14 @@ const BadgeColor = {
5927
5927
  };
5928
5928
  const tagName$A = `${FluentDesignSystem.prefix}-badge`;
5929
5929
 
5930
- var __defProp$H = Object.defineProperty;
5931
- var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
5932
- var __decorateClass$H = (decorators, target, key, kind) => {
5933
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
5930
+ var __defProp$I = Object.defineProperty;
5931
+ var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
5932
+ var __decorateClass$I = (decorators, target, key, kind) => {
5933
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
5934
5934
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5935
5935
  if (decorator = decorators[i])
5936
5936
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5937
- if (kind && result) __defProp$H(target, key, result);
5937
+ if (kind && result) __defProp$I(target, key, result);
5938
5938
  return result;
5939
5939
  };
5940
5940
  class Badge extends FASTElement {
@@ -5944,16 +5944,16 @@ class Badge extends FASTElement {
5944
5944
  this.color = BadgeColor.brand;
5945
5945
  }
5946
5946
  }
5947
- __decorateClass$H([
5947
+ __decorateClass$I([
5948
5948
  attr
5949
5949
  ], Badge.prototype, "appearance", 2);
5950
- __decorateClass$H([
5950
+ __decorateClass$I([
5951
5951
  attr
5952
5952
  ], Badge.prototype, "color", 2);
5953
- __decorateClass$H([
5953
+ __decorateClass$I([
5954
5954
  attr
5955
5955
  ], Badge.prototype, "shape", 2);
5956
- __decorateClass$H([
5956
+ __decorateClass$I([
5957
5957
  attr
5958
5958
  ], Badge.prototype, "size", 2);
5959
5959
  applyMixins(Badge, StartEnd);
@@ -5980,14 +5980,14 @@ const definition$B = Badge.compose({
5980
5980
 
5981
5981
  definition$B.define(FluentDesignSystem.registry);
5982
5982
 
5983
- var __defProp$G = Object.defineProperty;
5984
- var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
5985
- var __decorateClass$G = (decorators, target, key, kind) => {
5986
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
5983
+ var __defProp$H = Object.defineProperty;
5984
+ var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
5985
+ var __decorateClass$H = (decorators, target, key, kind) => {
5986
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
5987
5987
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5988
5988
  if (decorator = decorators[i])
5989
5989
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5990
- if (kind && result) __defProp$G(target, key, result);
5990
+ if (kind && result) __defProp$H(target, key, result);
5991
5991
  return result;
5992
5992
  };
5993
5993
  class BaseButton extends FASTElement {
@@ -6212,54 +6212,54 @@ class BaseButton extends FASTElement {
6212
6212
  * @public
6213
6213
  */
6214
6214
  BaseButton.formAssociated = true;
6215
- __decorateClass$G([
6215
+ __decorateClass$H([
6216
6216
  attr({ mode: "boolean" })
6217
6217
  ], BaseButton.prototype, "autofocus", 2);
6218
- __decorateClass$G([
6218
+ __decorateClass$H([
6219
6219
  observable
6220
6220
  ], BaseButton.prototype, "defaultSlottedContent", 2);
6221
- __decorateClass$G([
6221
+ __decorateClass$H([
6222
6222
  attr({ mode: "boolean" })
6223
6223
  ], BaseButton.prototype, "disabled", 2);
6224
- __decorateClass$G([
6224
+ __decorateClass$H([
6225
6225
  attr({ attribute: "disabled-focusable", mode: "boolean" })
6226
6226
  ], BaseButton.prototype, "disabledFocusable", 2);
6227
- __decorateClass$G([
6227
+ __decorateClass$H([
6228
6228
  attr({ attribute: "formaction" })
6229
6229
  ], BaseButton.prototype, "formAction", 2);
6230
- __decorateClass$G([
6230
+ __decorateClass$H([
6231
6231
  attr({ attribute: "form" })
6232
6232
  ], BaseButton.prototype, "formAttribute", 2);
6233
- __decorateClass$G([
6233
+ __decorateClass$H([
6234
6234
  attr({ attribute: "formenctype" })
6235
6235
  ], BaseButton.prototype, "formEnctype", 2);
6236
- __decorateClass$G([
6236
+ __decorateClass$H([
6237
6237
  attr({ attribute: "formmethod" })
6238
6238
  ], BaseButton.prototype, "formMethod", 2);
6239
- __decorateClass$G([
6239
+ __decorateClass$H([
6240
6240
  attr({ attribute: "formnovalidate", mode: "boolean" })
6241
6241
  ], BaseButton.prototype, "formNoValidate", 2);
6242
- __decorateClass$G([
6242
+ __decorateClass$H([
6243
6243
  attr({ attribute: "formtarget" })
6244
6244
  ], BaseButton.prototype, "formTarget", 2);
6245
- __decorateClass$G([
6245
+ __decorateClass$H([
6246
6246
  attr
6247
6247
  ], BaseButton.prototype, "name", 2);
6248
- __decorateClass$G([
6248
+ __decorateClass$H([
6249
6249
  attr
6250
6250
  ], BaseButton.prototype, "type", 2);
6251
- __decorateClass$G([
6251
+ __decorateClass$H([
6252
6252
  attr
6253
6253
  ], BaseButton.prototype, "value", 2);
6254
6254
 
6255
- var __defProp$F = Object.defineProperty;
6256
- var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6257
- var __decorateClass$F = (decorators, target, key, kind) => {
6258
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
6255
+ var __defProp$G = Object.defineProperty;
6256
+ var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
6257
+ var __decorateClass$G = (decorators, target, key, kind) => {
6258
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
6259
6259
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6260
6260
  if (decorator = decorators[i])
6261
6261
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6262
- if (kind && result) __defProp$F(target, key, result);
6262
+ if (kind && result) __defProp$G(target, key, result);
6263
6263
  return result;
6264
6264
  };
6265
6265
  class Button extends BaseButton {
@@ -6268,16 +6268,16 @@ class Button extends BaseButton {
6268
6268
  this.iconOnly = false;
6269
6269
  }
6270
6270
  }
6271
- __decorateClass$F([
6271
+ __decorateClass$G([
6272
6272
  attr
6273
6273
  ], Button.prototype, "appearance", 2);
6274
- __decorateClass$F([
6274
+ __decorateClass$G([
6275
6275
  attr
6276
6276
  ], Button.prototype, "shape", 2);
6277
- __decorateClass$F([
6277
+ __decorateClass$G([
6278
6278
  attr
6279
6279
  ], Button.prototype, "size", 2);
6280
- __decorateClass$F([
6280
+ __decorateClass$G([
6281
6281
  attr({ attribute: "icon-only", mode: "boolean" })
6282
6282
  ], Button.prototype, "iconOnly", 2);
6283
6283
  applyMixins(Button, StartEnd);
@@ -6297,14 +6297,14 @@ definition$A.define(FluentDesignSystem.registry);
6297
6297
 
6298
6298
  const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
6299
6299
 
6300
- var __defProp$E = Object.defineProperty;
6301
- var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
6302
- var __decorateClass$E = (decorators, target, key, kind) => {
6303
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
6300
+ var __defProp$F = Object.defineProperty;
6301
+ var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6302
+ var __decorateClass$F = (decorators, target, key, kind) => {
6303
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
6304
6304
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6305
6305
  if (decorator = decorators[i])
6306
6306
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6307
- if (kind && result) __defProp$E(target, key, result);
6307
+ if (kind && result) __defProp$F(target, key, result);
6308
6308
  return result;
6309
6309
  };
6310
6310
  class BaseCheckbox extends FASTElement {
@@ -6654,39 +6654,39 @@ class BaseCheckbox extends FASTElement {
6654
6654
  * @public
6655
6655
  */
6656
6656
  BaseCheckbox.formAssociated = true;
6657
- __decorateClass$E([
6657
+ __decorateClass$F([
6658
6658
  attr({ mode: "boolean" })
6659
6659
  ], BaseCheckbox.prototype, "autofocus", 2);
6660
- __decorateClass$E([
6660
+ __decorateClass$F([
6661
6661
  observable
6662
6662
  ], BaseCheckbox.prototype, "disabled", 2);
6663
- __decorateClass$E([
6663
+ __decorateClass$F([
6664
6664
  attr({ attribute: "disabled", mode: "boolean" })
6665
6665
  ], BaseCheckbox.prototype, "disabledAttribute", 2);
6666
- __decorateClass$E([
6666
+ __decorateClass$F([
6667
6667
  attr({ attribute: "form" })
6668
6668
  ], BaseCheckbox.prototype, "formAttribute", 2);
6669
- __decorateClass$E([
6669
+ __decorateClass$F([
6670
6670
  attr({ attribute: "checked", mode: "boolean" })
6671
6671
  ], BaseCheckbox.prototype, "initialChecked", 2);
6672
- __decorateClass$E([
6672
+ __decorateClass$F([
6673
6673
  attr({ attribute: "value", mode: "fromView" })
6674
6674
  ], BaseCheckbox.prototype, "initialValue", 2);
6675
- __decorateClass$E([
6675
+ __decorateClass$F([
6676
6676
  attr
6677
6677
  ], BaseCheckbox.prototype, "name", 2);
6678
- __decorateClass$E([
6678
+ __decorateClass$F([
6679
6679
  attr({ mode: "boolean" })
6680
6680
  ], BaseCheckbox.prototype, "required", 2);
6681
6681
 
6682
- var __defProp$D = Object.defineProperty;
6683
- var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
6684
- var __decorateClass$D = (decorators, target, key, kind) => {
6685
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
6682
+ var __defProp$E = Object.defineProperty;
6683
+ var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
6684
+ var __decorateClass$E = (decorators, target, key, kind) => {
6685
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
6686
6686
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6687
6687
  if (decorator = decorators[i])
6688
6688
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6689
- if (kind && result) __defProp$D(target, key, result);
6689
+ if (kind && result) __defProp$E(target, key, result);
6690
6690
  return result;
6691
6691
  };
6692
6692
  class Checkbox extends BaseCheckbox {
@@ -6729,13 +6729,13 @@ class Checkbox extends BaseCheckbox {
6729
6729
  super.toggleChecked(force);
6730
6730
  }
6731
6731
  }
6732
- __decorateClass$D([
6732
+ __decorateClass$E([
6733
6733
  observable
6734
6734
  ], Checkbox.prototype, "indeterminate", 2);
6735
- __decorateClass$D([
6735
+ __decorateClass$E([
6736
6736
  attr
6737
6737
  ], Checkbox.prototype, "shape", 2);
6738
- __decorateClass$D([
6738
+ __decorateClass$E([
6739
6739
  attr
6740
6740
  ], Checkbox.prototype, "size", 2);
6741
6741
 
@@ -6816,17 +6816,17 @@ definition$y.define(FluentDesignSystem.registry);
6816
6816
 
6817
6817
  const tagName$x = `${FluentDesignSystem.prefix}-counter-badge`;
6818
6818
 
6819
- var __defProp$C = Object.defineProperty;
6820
- var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
6821
- var __decorateClass$C = (decorators, target, key, kind) => {
6822
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
6819
+ var __defProp$D = Object.defineProperty;
6820
+ var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
6821
+ var __decorateClass$D = (decorators, target, key, kind) => {
6822
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
6823
6823
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6824
6824
  if (decorator = decorators[i])
6825
6825
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6826
- if (kind && result) __defProp$C(target, key, result);
6826
+ if (kind && result) __defProp$D(target, key, result);
6827
6827
  return result;
6828
6828
  };
6829
- class CounterBadge extends FASTElement {
6829
+ class BaseCounterBadge extends FASTElement {
6830
6830
  constructor() {
6831
6831
  super(...arguments);
6832
6832
  /**
@@ -6840,27 +6840,45 @@ class CounterBadge extends FASTElement {
6840
6840
  this.showZero = false;
6841
6841
  this.dot = false;
6842
6842
  }
6843
- countChanged() {
6844
- this.setCount();
6845
- }
6846
- overflowCountChanged() {
6847
- this.setCount();
6848
- }
6849
- /**
6850
- * Function to set the count
6851
- * This is the default slotted content for the counter badge
6852
- * If children are slotted, that will override the value returned
6853
- *
6854
- * @internal
6855
- */
6856
- setCount() {
6843
+ get displayValue() {
6857
6844
  const count = this.count ?? 0;
6858
- if ((count !== 0 || this.showZero) && !this.dot) {
6859
- return count > this.overflowCount ? `${this.overflowCount}+` : `${count}`;
6845
+ if (!this.showZero && count === 0 || this.dot) {
6846
+ return "";
6860
6847
  }
6861
- return;
6848
+ if (this.overflowCount > 0 && count > this.overflowCount) {
6849
+ return `${this.overflowCount}+`;
6850
+ }
6851
+ return `${count}`;
6862
6852
  }
6863
6853
  }
6854
+ __decorateClass$D([
6855
+ attr({ converter: nullableNumberConverter })
6856
+ ], BaseCounterBadge.prototype, "count", 2);
6857
+ __decorateClass$D([
6858
+ attr({ attribute: "overflow-count", converter: nullableNumberConverter })
6859
+ ], BaseCounterBadge.prototype, "overflowCount", 2);
6860
+ __decorateClass$D([
6861
+ attr({ attribute: "show-zero", mode: "boolean" })
6862
+ ], BaseCounterBadge.prototype, "showZero", 2);
6863
+ __decorateClass$D([
6864
+ attr({ mode: "boolean" })
6865
+ ], BaseCounterBadge.prototype, "dot", 2);
6866
+ __decorateClass$D([
6867
+ volatile
6868
+ ], BaseCounterBadge.prototype, "displayValue", 1);
6869
+
6870
+ var __defProp$C = Object.defineProperty;
6871
+ var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
6872
+ var __decorateClass$C = (decorators, target, key, kind) => {
6873
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
6874
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6875
+ if (decorator = decorators[i])
6876
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6877
+ if (kind && result) __defProp$C(target, key, result);
6878
+ return result;
6879
+ };
6880
+ class CounterBadge extends BaseCounterBadge {
6881
+ }
6864
6882
  __decorateClass$C([
6865
6883
  attr
6866
6884
  ], CounterBadge.prototype, "appearance", 2);
@@ -6873,28 +6891,14 @@ __decorateClass$C([
6873
6891
  __decorateClass$C([
6874
6892
  attr
6875
6893
  ], CounterBadge.prototype, "size", 2);
6876
- __decorateClass$C([
6877
- attr({ converter: nullableNumberConverter })
6878
- ], CounterBadge.prototype, "count", 2);
6879
- __decorateClass$C([
6880
- attr({ attribute: "overflow-count", converter: nullableNumberConverter })
6881
- ], CounterBadge.prototype, "overflowCount", 2);
6882
- __decorateClass$C([
6883
- attr({ attribute: "show-zero", mode: "boolean" })
6884
- ], CounterBadge.prototype, "showZero", 2);
6885
- __decorateClass$C([
6886
- attr({ mode: "boolean" })
6887
- ], CounterBadge.prototype, "dot", 2);
6888
6894
  applyMixins(CounterBadge, StartEnd);
6889
6895
 
6890
6896
  const styles$w = css`:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeSizeStyles} ${badgeFilledStyles} ${badgeGhostStyles} ${badgeBaseStyles} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;
6891
6897
 
6892
- function composeTemplate(options = {}) {
6893
- return badgeTemplate({
6894
- defaultContent: html`${(x) => x.setCount()}`
6895
- });
6898
+ function counterBadgeTemplate(options = {}) {
6899
+ return html`${startSlotTemplate(options)} <span>${(x) => x.displayValue}</span> ${endSlotTemplate(options)}`;
6896
6900
  }
6897
- const template$x = composeTemplate();
6901
+ const template$x = counterBadgeTemplate();
6898
6902
 
6899
6903
  const definition$x = CounterBadge.compose({
6900
6904
  name: tagName$x,
@@ -8334,7 +8338,7 @@ __decorateClass$w([
8334
8338
  attr
8335
8339
  ], Dropdown.prototype, "size", 2);
8336
8340
 
8337
- const styles$q = css`${display("inline-flex")} :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`;
8341
+ const styles$q = css`${display("inline-flex")} :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}`;
8338
8342
 
8339
8343
  const definition$r = Dropdown.compose({
8340
8344
  name: tagName$r,