@fluentui/web-components 3.0.0-beta.89 → 3.0.0-beta.90

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 (128) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/dist/dts/accordion-item/accordion-item.base.d.ts +0 -12
  3. package/dist/dts/accordion-item/accordion-item.d.ts +0 -18
  4. package/dist/dts/avatar/avatar.base.d.ts +0 -12
  5. package/dist/dts/avatar/avatar.d.ts +13 -2
  6. package/dist/dts/badge/badge.d.ts +0 -30
  7. package/dist/dts/button/button.d.ts +0 -24
  8. package/dist/dts/checkbox/checkbox.d.ts +0 -16
  9. package/dist/dts/counter-badge/counter-badge.d.ts +0 -30
  10. package/dist/dts/divider/divider.d.ts +0 -18
  11. package/dist/dts/dropdown/dropdown.d.ts +0 -16
  12. package/dist/dts/image/image.d.ts +0 -36
  13. package/dist/dts/label/label.d.ts +0 -24
  14. package/dist/dts/link/link.d.ts +0 -12
  15. package/dist/dts/message-bar/message-bar.d.ts +0 -18
  16. package/dist/dts/progress-bar/progress-bar.d.ts +0 -12
  17. package/dist/dts/rating-display/rating-display.d.ts +0 -14
  18. package/dist/dts/slider/slider.d.ts +0 -1
  19. package/dist/dts/spinner/spinner.d.ts +0 -12
  20. package/dist/dts/styles/states/index.d.ts +0 -500
  21. package/dist/dts/tablist/tablist.d.ts +0 -8
  22. package/dist/dts/text/text.d.ts +1 -34
  23. package/dist/dts/text-input/text-input.d.ts +0 -12
  24. package/dist/dts/textarea/textarea.d.ts +0 -4
  25. package/dist/dts/tree-item/tree-item.d.ts +1 -1
  26. package/dist/esm/accordion-item/accordion-item.base.js +0 -17
  27. package/dist/esm/accordion-item/accordion-item.base.js.map +1 -1
  28. package/dist/esm/accordion-item/accordion-item.js +0 -26
  29. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  30. package/dist/esm/accordion-item/accordion-item.styles.js +19 -20
  31. package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
  32. package/dist/esm/avatar/avatar.base.js +0 -3
  33. package/dist/esm/avatar/avatar.base.js.map +1 -1
  34. package/dist/esm/avatar/avatar.js +4 -2
  35. package/dist/esm/avatar/avatar.js.map +1 -1
  36. package/dist/esm/avatar/avatar.styles.js +31 -32
  37. package/dist/esm/avatar/avatar.styles.js.map +1 -1
  38. package/dist/esm/badge/badge.js +1 -40
  39. package/dist/esm/badge/badge.js.map +1 -1
  40. package/dist/esm/badge/badge.styles.js +7 -10
  41. package/dist/esm/badge/badge.styles.js.map +1 -1
  42. package/dist/esm/button/button.js +0 -34
  43. package/dist/esm/button/button.js.map +1 -1
  44. package/dist/esm/button/button.styles.js +34 -35
  45. package/dist/esm/button/button.styles.js.map +1 -1
  46. package/dist/esm/checkbox/checkbox.js +1 -22
  47. package/dist/esm/checkbox/checkbox.js.map +1 -1
  48. package/dist/esm/checkbox/checkbox.styles.js +6 -6
  49. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  50. package/dist/esm/compound-button/compound-button.styles.js +12 -13
  51. package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
  52. package/dist/esm/counter-badge/counter-badge.js +0 -42
  53. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  54. package/dist/esm/counter-badge/counter-badge.styles.js +3 -7
  55. package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
  56. package/dist/esm/divider/divider.js +0 -26
  57. package/dist/esm/divider/divider.js.map +1 -1
  58. package/dist/esm/divider/divider.styles.js +32 -35
  59. package/dist/esm/divider/divider.styles.js.map +1 -1
  60. package/dist/esm/dropdown/dropdown.js +1 -22
  61. package/dist/esm/dropdown/dropdown.js.map +1 -1
  62. package/dist/esm/dropdown/dropdown.styles.js +18 -18
  63. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  64. package/dist/esm/image/image.js +0 -51
  65. package/dist/esm/image/image.js.map +1 -1
  66. package/dist/esm/image/image.styles.js +9 -10
  67. package/dist/esm/image/image.styles.js.map +1 -1
  68. package/dist/esm/label/label.js +0 -32
  69. package/dist/esm/label/label.js.map +1 -1
  70. package/dist/esm/label/label.styles.js +5 -6
  71. package/dist/esm/label/label.styles.js.map +1 -1
  72. package/dist/esm/link/link.js +0 -18
  73. package/dist/esm/link/link.js.map +1 -1
  74. package/dist/esm/link/link.styles.js +4 -5
  75. package/dist/esm/link/link.styles.js.map +1 -1
  76. package/dist/esm/message-bar/message-bar.js +0 -26
  77. package/dist/esm/message-bar/message-bar.js.map +1 -1
  78. package/dist/esm/message-bar/message-bar.styles.js +9 -10
  79. package/dist/esm/message-bar/message-bar.styles.js.map +1 -1
  80. package/dist/esm/progress-bar/progress-bar.js +0 -18
  81. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  82. package/dist/esm/progress-bar/progress-bar.styles.js +6 -7
  83. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  84. package/dist/esm/radio-group/radio-group.styles.js +0 -1
  85. package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
  86. package/dist/esm/rating-display/rating-display.js +0 -20
  87. package/dist/esm/rating-display/rating-display.js.map +1 -1
  88. package/dist/esm/rating-display/rating-display.styles.js +16 -19
  89. package/dist/esm/rating-display/rating-display.styles.js.map +1 -1
  90. package/dist/esm/slider/slider.js +1 -6
  91. package/dist/esm/slider/slider.js.map +1 -1
  92. package/dist/esm/slider/slider.styles.js +6 -7
  93. package/dist/esm/slider/slider.styles.js.map +1 -1
  94. package/dist/esm/spinner/spinner.js +0 -18
  95. package/dist/esm/spinner/spinner.js.map +1 -1
  96. package/dist/esm/spinner/spinner.styles.js +8 -9
  97. package/dist/esm/spinner/spinner.styles.js.map +1 -1
  98. package/dist/esm/styles/partials/badge.partials.js +42 -43
  99. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  100. package/dist/esm/styles/states/index.js +0 -500
  101. package/dist/esm/styles/states/index.js.map +1 -1
  102. package/dist/esm/tablist/tablist.js +1 -14
  103. package/dist/esm/tablist/tablist.js.map +1 -1
  104. package/dist/esm/tablist/tablist.styles.js +26 -27
  105. package/dist/esm/tablist/tablist.styles.js.map +1 -1
  106. package/dist/esm/text/text.js +1 -66
  107. package/dist/esm/text/text.js.map +1 -1
  108. package/dist/esm/text/text.styles.js +26 -27
  109. package/dist/esm/text/text.styles.js.map +1 -1
  110. package/dist/esm/text-input/text-input.js +0 -18
  111. package/dist/esm/text-input/text-input.js.map +1 -1
  112. package/dist/esm/text-input/text-input.styles.js +22 -23
  113. package/dist/esm/text-input/text-input.styles.js.map +1 -1
  114. package/dist/esm/textarea/textarea.js +1 -29
  115. package/dist/esm/textarea/textarea.js.map +1 -1
  116. package/dist/esm/textarea/textarea.styles.js +14 -14
  117. package/dist/esm/textarea/textarea.styles.js.map +1 -1
  118. package/dist/esm/toggle-button/toggle-button.styles.js +19 -20
  119. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
  120. package/dist/esm/tree-item/tree-item.js +1 -1
  121. package/dist/esm/tree-item/tree-item.js.map +1 -1
  122. package/dist/esm/tree-item/tree-item.styles.js.map +1 -1
  123. package/dist/esm/tree-item/tree-item.template.js +1 -1
  124. package/dist/esm/tree-item/tree-item.template.js.map +1 -1
  125. package/dist/web-components.d.ts +13 -363
  126. package/dist/web-components.js +178 -987
  127. package/dist/web-components.min.js +357 -354
  128. package/package.json +1 -1
@@ -4341,43 +4341,6 @@ function applyMixins(derivedCtor, ...baseCtors) {
4341
4341
  });
4342
4342
  }
4343
4343
 
4344
- const statesMap = /* @__PURE__ */new Map();
4345
- function stateSelector(state) {
4346
- return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
4347
- }
4348
- function toggleState(elementInternals, state, force) {
4349
- if (!state || !elementInternals) {
4350
- return;
4351
- }
4352
- if (!CustomStatesSetSupported) {
4353
- elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
4354
- return;
4355
- }
4356
- if (force ?? !elementInternals.states.has(state)) {
4357
- elementInternals.states.add(state);
4358
- return;
4359
- }
4360
- elementInternals.states.delete(state);
4361
- }
4362
- const matchingStateMap = /* @__PURE__ */new WeakMap();
4363
- function hasMatchingState(States, state) {
4364
- if (!States || !state) {
4365
- return false;
4366
- }
4367
- if (matchingStateMap.has(States)) {
4368
- return matchingStateMap.get(States).has(state);
4369
- }
4370
- const stateSet = new Set(Object.values(States));
4371
- matchingStateMap.set(States, stateSet);
4372
- return stateSet.has(state);
4373
- }
4374
- function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
4375
- toggleState(elementInternals, `${prefix}${prev}`, false);
4376
- if (!States || hasMatchingState(States, next)) {
4377
- toggleState(elementInternals, `${prefix}${next}`, true);
4378
- }
4379
- }
4380
-
4381
4344
  var __defProp$R = Object.defineProperty;
4382
4345
  var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
4383
4346
  var __decorateClass$R = (decorators, target, key, kind) => {
@@ -4400,22 +4363,6 @@ class BaseAccordionItem extends FASTElement {
4400
4363
  this.disabled = false;
4401
4364
  this.id = uniqueId$1("accordion-");
4402
4365
  }
4403
- /**
4404
- * Handles expanded changes
4405
- * @param prev - previous value
4406
- * @param next - next value
4407
- */
4408
- expandedChanged(prev, next) {
4409
- toggleState(this.elementInternals, "expanded", next);
4410
- }
4411
- /**
4412
- * Handles disabled changes
4413
- * @param prev - previous value
4414
- * @param next - next value
4415
- */
4416
- disabledChanged(prev, next) {
4417
- toggleState(this.elementInternals, "disabled", next);
4418
- }
4419
4366
  }
4420
4367
  __decorateClass$R([attr({
4421
4368
  attribute: "heading-level",
@@ -4430,17 +4377,6 @@ __decorateClass$R([attr({
4430
4377
  })], BaseAccordionItem.prototype, "disabled", 2);
4431
4378
  __decorateClass$R([attr], BaseAccordionItem.prototype, "id", 2);
4432
4379
 
4433
- const AccordionItemSize = {
4434
- small: "small",
4435
- medium: "medium",
4436
- large: "large",
4437
- extraLarge: "extra-large"
4438
- };
4439
- const AccordionItemMarkerPosition = {
4440
- start: "start",
4441
- end: "end"
4442
- };
4443
-
4444
4380
  var __defProp$Q = Object.defineProperty;
4445
4381
  var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
4446
4382
  var __decorateClass$Q = (decorators, target, key, kind) => {
@@ -4454,30 +4390,6 @@ class AccordionItem extends BaseAccordionItem {
4454
4390
  super(...arguments);
4455
4391
  this.block = false;
4456
4392
  }
4457
- /**
4458
- * Handles changes to size attribute
4459
- * @param prev - previous value
4460
- * @param next - next value
4461
- */
4462
- sizeChanged(prev, next) {
4463
- swapStates(this.elementInternals, prev, next, AccordionItemSize);
4464
- }
4465
- /**
4466
- * Handles changes to marker-position attribute
4467
- * @param prev - previous value
4468
- * @param next - next value
4469
- */
4470
- markerPositionChanged(prev, next) {
4471
- swapStates(this.elementInternals, prev, next, AccordionItemMarkerPosition, "align-");
4472
- }
4473
- /**
4474
- * Handles changes to block attribute
4475
- * @param prev - previous value
4476
- * @param next - next value
4477
- */
4478
- blockChanged(prev, next) {
4479
- toggleState(this.elementInternals, "block", next);
4480
- }
4481
4393
  }
4482
4394
  __decorateClass$Q([attr], AccordionItem.prototype, "size", 2);
4483
4395
  __decorateClass$Q([attr({
@@ -4488,134 +4400,6 @@ __decorateClass$Q([attr({
4488
4400
  })], AccordionItem.prototype, "block", 2);
4489
4401
  applyMixins(AccordionItem, StartEnd);
4490
4402
 
4491
- const activeState = stateSelector("active");
4492
- const alignEndState = stateSelector("align-end");
4493
- const alignStartState = stateSelector("align-start");
4494
- const anchorState = stateSelector("anchor");
4495
- const autoResizeState = stateSelector("auto-resize");
4496
- const badInputState = stateSelector("bad-input");
4497
- const beigeState = stateSelector("beige");
4498
- const blockState = stateSelector("block");
4499
- const blueState = stateSelector("blue");
4500
- const boldState = stateSelector("bold");
4501
- const borderedState = stateSelector("bordered");
4502
- const brandState = stateSelector("brand");
4503
- const brassState = stateSelector("brass");
4504
- const brownState = stateSelector("brown");
4505
- const centerState = stateSelector("center");
4506
- const checkedState = stateSelector("checked");
4507
- const circularState = stateSelector("circular");
4508
- const cornflowerState = stateSelector("cornflower");
4509
- const cranberryState = stateSelector("cranberry");
4510
- const customErrorState = stateSelector("custom-error");
4511
- const dangerState = stateSelector("danger");
4512
- const darkGreenState = stateSelector("dark-green");
4513
- const darkRedState = stateSelector("dark-red");
4514
- const descriptionState = stateSelector("description");
4515
- const disabledState = stateSelector("disabled");
4516
- const displayShadowState = stateSelector("display-shadow");
4517
- const dotState = stateSelector("dot");
4518
- const endState = stateSelector("end");
4519
- const errorState = stateSelector("error");
4520
- const expandedState = stateSelector("expanded");
4521
- const extraLargeState = stateSelector("extra-large");
4522
- const extraSmallState = stateSelector("extra-small");
4523
- const filledDarkerState = stateSelector("filled-darker");
4524
- const filledLighterState = stateSelector("filled-lighter");
4525
- const fitCenterState = stateSelector("fit-center");
4526
- const fitContainState = stateSelector("fit-contain");
4527
- const fitCoverState = stateSelector("fit-cover");
4528
- const fitNoneState = stateSelector("fit-none");
4529
- const flipBlockState = stateSelector("flip-block");
4530
- const focusVisibleState = stateSelector("focus-visible");
4531
- const forestState = stateSelector("forest");
4532
- const ghostState = stateSelector("ghost");
4533
- const goldState = stateSelector("gold");
4534
- const grapeState = stateSelector("grape");
4535
- const hasMessageState = stateSelector("has-message");
4536
- const hugeState = stateSelector("huge");
4537
- const iconOnlyState = stateSelector("icon");
4538
- const importantState = stateSelector("important");
4539
- const indeterminateState = stateSelector("indeterminate");
4540
- const informativeState = stateSelector("informative");
4541
- const inlineState = stateSelector("inline");
4542
- const insetState = stateSelector("inset");
4543
- const invertedState = stateSelector("inverted");
4544
- const italicState = stateSelector("italic");
4545
- const justifyState = stateSelector("justify");
4546
- const largeState = stateSelector("large");
4547
- const lavenderState = stateSelector("lavender");
4548
- const lightTealState = stateSelector("light-teal");
4549
- const lilacState = stateSelector("lilac");
4550
- const magentaState = stateSelector("magenta");
4551
- const marigoldState = stateSelector("marigold");
4552
- const mediumState = stateSelector("medium");
4553
- const minkState = stateSelector("mink");
4554
- const monospaceState = stateSelector("monospace");
4555
- const multiLineState = stateSelector("multiline");
4556
- const multipleState = stateSelector("multiple");
4557
- const navyState = stateSelector("navy");
4558
- const neutralState = stateSelector("neutral");
4559
- const nowrapState = stateSelector("nowrap");
4560
- const numericState = stateSelector("numeric");
4561
- const openState = stateSelector("open");
4562
- const outlineState = stateSelector("outline");
4563
- const patternMismatchState = stateSelector("pattern-mismatch");
4564
- const peachState = stateSelector("peach");
4565
- const pinkState = stateSelector("pink");
4566
- const placeholderShownState = stateSelector("placeholder-shown");
4567
- const platinumState = stateSelector("platinum");
4568
- const plumState = stateSelector("plum");
4569
- const pressedState = stateSelector("pressed");
4570
- const primaryState = stateSelector("primary");
4571
- const pumpkinState = stateSelector("pumpkin");
4572
- const purpleState = stateSelector("purple");
4573
- const rangeOverflowState = stateSelector("range-overflow");
4574
- const rangeUnderflowState = stateSelector("range-underflow");
4575
- const redState = stateSelector("red");
4576
- const resizeBothState = stateSelector("resize-both");
4577
- const resizeHorizontalState = stateSelector("resize-horizontal");
4578
- const resizeVerticalState = stateSelector("resize-vertical");
4579
- const roundedState = stateSelector("rounded");
4580
- const royalBlueState = stateSelector("royal-blue");
4581
- const seafoamState = stateSelector("seafoam");
4582
- const selectedState = stateSelector("selected");
4583
- const semiboldState = stateSelector("semibold");
4584
- const severeState = stateSelector("severe");
4585
- const shadowState = stateSelector("shadow");
4586
- const size1000State = stateSelector("size-1000");
4587
- const size100State = stateSelector("size-100");
4588
- const size200State = stateSelector("size-200");
4589
- const size400State = stateSelector("size-400");
4590
- const size500State = stateSelector("size-500");
4591
- const size600State = stateSelector("size-600");
4592
- const size700State = stateSelector("size-700");
4593
- const size800State = stateSelector("size-800");
4594
- const size900State = stateSelector("size-900");
4595
- const smallState = stateSelector("small");
4596
- const squareState = stateSelector("square");
4597
- const steelState = stateSelector("steel");
4598
- const stepMismatchState = stateSelector("step-mismatch");
4599
- const strikethroughState = stateSelector("strikethrough");
4600
- const strongState = stateSelector("strong");
4601
- const submenuState = stateSelector("submenu");
4602
- const subtleState = stateSelector("subtle");
4603
- const successState = stateSelector("success");
4604
- const tealState = stateSelector("teal");
4605
- const tintState = stateSelector("tint");
4606
- const tinyState = stateSelector("tiny");
4607
- const tooLongState = stateSelector("too-long");
4608
- const tooShortState = stateSelector("too-short");
4609
- const transparentState = stateSelector("transparent");
4610
- const truncateState = stateSelector("truncate");
4611
- const typeMismatchState = stateSelector("type-mismatch");
4612
- const underlineState = stateSelector("underline");
4613
- const userInvalidState = stateSelector("user-invalid");
4614
- const validState = stateSelector("valid");
4615
- const valueMissingState = stateSelector("value-missing");
4616
- const verticalState = stateSelector("vertical");
4617
- const warningState = stateSelector("warning");
4618
-
4619
4403
  const colorNeutralForeground1 = "var(--colorNeutralForeground1)";
4620
4404
  const colorNeutralForeground1Hover = "var(--colorNeutralForeground1Hover)";
4621
4405
  const colorNeutralForeground1Pressed = "var(--colorNeutralForeground1Pressed)";
@@ -4865,7 +4649,7 @@ const curveLinear = "var(--curveLinear)";
4865
4649
  const styles$G = css`
4866
4650
  ${display("block")}
4867
4651
 
4868
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;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}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row: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(${disabledState}) .button{color:${colorNeutralForegroundDisabled}}:host(${disabledState}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${expandedState}) .content{display:block}:host(${expandedState}) .default-marker-collapsed,:host(${expandedState}) ::slotted([slot='marker-collapsed']),:host(:not(${expandedState})) :is(.default-marker-expanded,.content),:host(:not(${expandedState})) ::slotted([slot='marker-expanded']){display:none}:host(${expandedState}) ::slotted([slot='marker-expanded']),:host(:not(${expandedState})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(${smallState}) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${extraLargeState}) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${alignEndState}) :slotted([slot='start']){grid-column:1 / span 1}:host(${alignEndState}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host(${alignEndState}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${alignEndState}) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host(${alignEndState}:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host(${blockState}${alignEndState}) .heading{grid-template-columns:auto 1fr}:host(${alignEndState}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`;
4652
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;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}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2 / span 1;grid-row: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]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){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([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`;
4869
4653
 
4870
4654
  const chevronRight20Filled = html.partial(`<svg
4871
4655
  width="20"
@@ -5086,6 +4870,43 @@ const definition$G = Accordion.compose({
5086
4870
 
5087
4871
  definition$G.define(FluentDesignSystem.registry);
5088
4872
 
4873
+ const statesMap = /* @__PURE__ */new Map();
4874
+ function stateSelector(state) {
4875
+ return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
4876
+ }
4877
+ function toggleState(elementInternals, state, force) {
4878
+ if (!state || !elementInternals) {
4879
+ return;
4880
+ }
4881
+ if (!CustomStatesSetSupported) {
4882
+ elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
4883
+ return;
4884
+ }
4885
+ if (force ?? !elementInternals.states.has(state)) {
4886
+ elementInternals.states.add(state);
4887
+ return;
4888
+ }
4889
+ elementInternals.states.delete(state);
4890
+ }
4891
+ const matchingStateMap = /* @__PURE__ */new WeakMap();
4892
+ function hasMatchingState(States, state) {
4893
+ if (!States || !state) {
4894
+ return false;
4895
+ }
4896
+ if (matchingStateMap.has(States)) {
4897
+ return matchingStateMap.get(States).has(state);
4898
+ }
4899
+ const stateSet = new Set(Object.values(States));
4900
+ matchingStateMap.set(States, stateSet);
4901
+ return stateSet.has(state);
4902
+ }
4903
+ function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
4904
+ toggleState(elementInternals, `${prefix}${prev}`, false);
4905
+ if (!States || hasMatchingState(States, next)) {
4906
+ toggleState(elementInternals, `${prefix}${next}`, true);
4907
+ }
4908
+ }
4909
+
5089
4910
  const ButtonAppearance = {
5090
4911
  primary: "primary",
5091
4912
  outline: "outline",
@@ -5302,12 +5123,12 @@ applyMixins(AnchorButton, StartEnd);
5302
5123
  const baseButtonStyles = css`
5303
5124
  ${display("inline-flex")}
5304
5125
 
5305
- :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
5126
+ :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${borderRadiusNone}}:host([appearance='primary']){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host([appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host([appearance='primary']:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host([appearance='primary']:hover:active){background-color:${colorBrandBackgroundPressed}}:host([appearance='primary']:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host([appearance='outline']){background-color:${colorTransparentBackground}}:host([appearance='outline']:hover){background-color:${colorTransparentBackgroundHover}}:host([appearance='outline']:hover:active){background-color:${colorTransparentBackgroundPressed}}:host([appearance='subtle']){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host([appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host([appearance='transparent']){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host([appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`;
5306
5127
  const styles$E = css`
5307
5128
  ${baseButtonStyles}
5308
5129
 
5309
- :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host(${primaryState}:is(:disabled,[disabled-focusable])),:host(${primaryState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${outlineState}:is(:disabled,[disabled-focusable])),:host(${outlineState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host(${subtleState}:is(:disabled,[disabled-focusable])),:host(${subtleState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host(${transparentState}:is(:disabled,[disabled-focusable])),:host(${transparentState}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
5310
- :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host(${primaryState}:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`));
5130
+ :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled};color:${colorNeutralForegroundDisabled};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${colorTransparentBackground};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${colorTransparentBackground}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
5131
+ :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`));
5311
5132
 
5312
5133
  const styles$D = css`
5313
5134
  ${baseButtonStyles}
@@ -5391,7 +5212,6 @@ class BaseAvatar extends FASTElement {
5391
5212
  }
5392
5213
  __decorateClass$M([attr], BaseAvatar.prototype, "name", 2);
5393
5214
  __decorateClass$M([attr], BaseAvatar.prototype, "initials", 2);
5394
- __decorateClass$M([attr], BaseAvatar.prototype, "active", 2);
5395
5215
 
5396
5216
  const AvatarNamedColor = {
5397
5217
  darkRed: "dark-red",
@@ -5474,9 +5294,9 @@ const _Avatar = class _Avatar extends BaseAvatar {
5474
5294
  */
5475
5295
  generateColor() {
5476
5296
  const colorful = this.color === AvatarColor.colorful;
5477
- const prev = this.currentColor;
5297
+ this.currentColor;
5478
5298
  this.currentColor = colorful && this.colorId ? this.colorId : colorful ? _Avatar.colors[getHashCode(this.name ?? "") % _Avatar.colors.length] : this.color ?? AvatarColor.neutral;
5479
- swapStates(this.elementInternals, prev, this.currentColor);
5299
+ this.setAttribute("data-color", this.currentColor);
5480
5300
  }
5481
5301
  connectedCallback() {
5482
5302
  super.connectedCallback();
@@ -5492,6 +5312,7 @@ const _Avatar = class _Avatar extends BaseAvatar {
5492
5312
  * An array of the available Avatar named colors
5493
5313
  */
5494
5314
  _Avatar.colors = Object.values(AvatarNamedColor);
5315
+ __decorateClass$L([attr], _Avatar.prototype, "active", 2);
5495
5316
  __decorateClass$L([attr], _Avatar.prototype, "shape", 2);
5496
5317
  __decorateClass$L([attr], _Avatar.prototype, "appearance", 2);
5497
5318
  __decorateClass$L([attr({
@@ -5524,7 +5345,7 @@ const animations = {
5524
5345
  nullEasing: curveLinear
5525
5346
  };
5526
5347
  const styles$C = css`
5527
- ${display("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin}) ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick}) ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host(${brandState}){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host(${darkRedState}){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host(${cranberryState}){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host(${redState}){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host(${pumpkinState}){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host(${peachState}){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host(${marigoldState}){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host(${goldState}){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host(${brassState}){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host(${brownState}){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host(${forestState}){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host(${seafoamState}){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host(${darkGreenState}){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host(${lightTealState}){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host(${tealState}){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host(${steelState}){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host(${blueState}){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host(${royalBlueState}){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host(${cornflowerState}){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host(${navyState}){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host(${lavenderState}){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host(${purpleState}){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host(${grapeState}){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host(${lilacState}){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host(${pinkState}){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host(${magentaState}){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host(${plumState}){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host(${beigeState}){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host(${minkState}){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host(${platinumState}){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host(${anchorState}){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow}),${durationSlower};transition-delay:${animations.fastEase}),${animations.nullEasing})}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
5348
+ ${display("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin}) ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick}) ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host([data-color='brand']){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host([data-color='dark-red']){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host([data-color='cranberry']){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host([data-color='red']){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host([data-color='pumpkin']){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host([data-color='peach']){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host([data-color='marigold']){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host([data-color='gold']){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host([data-color='brass']){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host([data-color='brown']){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host([data-color='forest']){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host([data-color='seafoam']){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host([data-color='dark-green']){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host([data-color='light-teal']){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host([data-color='teal']){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host([data-color='steel']){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host([data-color='blue']){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host([data-color='royal-blue']){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host([data-color='cornflower']){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host([data-color='navy']){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host([data-color='lavender']){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host([data-color='purple']){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host([data-color='grape']){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host([data-color='lilac']){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host([data-color='pink']){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host([data-color='magenta']){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host([data-color='plum']){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host([data-color='beige']){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host([data-color='mink']){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host([data-color='platinum']){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host([data-color='anchor']){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow}),${durationSlower};transition-delay:${animations.fastEase}),${animations.nullEasing})}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
5528
5349
 
5529
5350
  const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
5530
5351
  function avatarTemplate() {
@@ -5556,19 +5377,6 @@ const BadgeColor = {
5556
5377
  success: "success",
5557
5378
  warning: "warning"
5558
5379
  };
5559
- const BadgeShape = {
5560
- circular: "circular",
5561
- rounded: "rounded",
5562
- square: "square"
5563
- };
5564
- const BadgeSize = {
5565
- tiny: "tiny",
5566
- extraSmall: "extra-small",
5567
- small: "small",
5568
- medium: "medium",
5569
- large: "large",
5570
- extraLarge: "extra-large"
5571
- };
5572
5380
 
5573
5381
  var __defProp$K = Object.defineProperty;
5574
5382
  var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
@@ -5581,47 +5389,9 @@ var __decorateClass$K = (decorators, target, key, kind) => {
5581
5389
  class Badge extends FASTElement {
5582
5390
  constructor() {
5583
5391
  super(...arguments);
5584
- /**
5585
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
5586
- *
5587
- * @internal
5588
- */
5589
- this.elementInternals = this.attachInternals();
5590
5392
  this.appearance = BadgeAppearance.filled;
5591
5393
  this.color = BadgeColor.brand;
5592
5394
  }
5593
- /**
5594
- * Handles changes to appearance attribute custom states
5595
- * @param prev - the previous state
5596
- * @param next - the next state
5597
- */
5598
- appearanceChanged(prev, next) {
5599
- swapStates(this.elementInternals, prev, next, BadgeAppearance);
5600
- }
5601
- /**
5602
- * Handles changes to color attribute custom states
5603
- * @param prev - the previous state
5604
- * @param next - the next state
5605
- */
5606
- colorChanged(prev, next) {
5607
- swapStates(this.elementInternals, prev, next, BadgeColor);
5608
- }
5609
- /**
5610
- * Handles changes to shape attribute custom states
5611
- * @param prev - the previous state
5612
- * @param next - the next state
5613
- */
5614
- shapeChanged(prev, next) {
5615
- swapStates(this.elementInternals, prev, next, BadgeShape);
5616
- }
5617
- /**
5618
- * Handles changes to size attribute custom states
5619
- * @param prev - the previous state
5620
- * @param next - the next state
5621
- */
5622
- sizeChanged(prev, next) {
5623
- swapStates(this.elementInternals, prev, next, BadgeSize);
5624
- }
5625
5395
  }
5626
5396
  __decorateClass$K([attr], Badge.prototype, "appearance", 2);
5627
5397
  __decorateClass$K([attr], Badge.prototype, "color", 2);
@@ -5653,7 +5423,7 @@ const badgeBaseStyles = css.partial`
5653
5423
  font-size: 12px;
5654
5424
  }
5655
5425
 
5656
- :host(:not(${ghostState}))::after {
5426
+ :host(:not([appearance='ghost']))::after {
5657
5427
  position: absolute;
5658
5428
  content: '';
5659
5429
  top: 0;
@@ -5667,7 +5437,7 @@ const badgeBaseStyles = css.partial`
5667
5437
  }
5668
5438
  `;
5669
5439
  const badgeSizeStyles = css.partial`
5670
- :host(${tinyState}) {
5440
+ :host([size='tiny']) {
5671
5441
  width: 6px;
5672
5442
  height: 6px;
5673
5443
  font-size: 4px;
@@ -5675,10 +5445,10 @@ const badgeSizeStyles = css.partial`
5675
5445
  padding-inline: 0;
5676
5446
  min-width: unset;
5677
5447
  }
5678
- :host(${tinyState}) ::slotted(svg) {
5448
+ :host([size='tiny']) ::slotted(svg) {
5679
5449
  font-size: 6px;
5680
5450
  }
5681
- :host(${extraSmallState}) {
5451
+ :host([size='extra-small']) {
5682
5452
  width: 10px;
5683
5453
  height: 10px;
5684
5454
  font-size: 6px;
@@ -5686,191 +5456,191 @@ const badgeSizeStyles = css.partial`
5686
5456
  padding-inline: 0;
5687
5457
  min-width: unset;
5688
5458
  }
5689
- :host(${extraSmallState}) ::slotted(svg) {
5459
+ :host([size='extra-small']) ::slotted(svg) {
5690
5460
  font-size: 10px;
5691
5461
  }
5692
- :host(${smallState}) {
5462
+ :host([size='small']) {
5693
5463
  min-width: 16px;
5694
5464
  height: 16px;
5695
5465
  font-size: ${fontSizeBase100};
5696
5466
  line-height: ${lineHeightBase100};
5697
5467
  padding-inline: calc(${spacingHorizontalXXS} + ${spacingHorizontalXXS});
5698
5468
  }
5699
- :host(${smallState}) ::slotted(svg) {
5469
+ :host([size='small']) ::slotted(svg) {
5700
5470
  font-size: 12px;
5701
5471
  }
5702
- :host(${largeState}) {
5472
+ :host([size='large']) {
5703
5473
  min-width: 24px;
5704
5474
  height: 24px;
5705
5475
  font-size: ${fontSizeBase200};
5706
5476
  line-height: ${lineHeightBase200};
5707
5477
  padding-inline: calc(${spacingHorizontalXS} + ${spacingHorizontalXXS});
5708
5478
  }
5709
- :host(${largeState}) ::slotted(svg) {
5479
+ :host([size='large']) ::slotted(svg) {
5710
5480
  font-size: 16px;
5711
5481
  }
5712
- :host(${extraLargeState}) {
5482
+ :host([size='extra-large']) {
5713
5483
  min-width: 32px;
5714
5484
  height: 32px;
5715
5485
  font-size: ${fontSizeBase200};
5716
5486
  line-height: ${lineHeightBase200};
5717
5487
  padding-inline: calc(${spacingHorizontalSNudge} + ${spacingHorizontalXXS});
5718
5488
  }
5719
- :host(${extraLargeState}) ::slotted(svg) {
5489
+ :host([size='extra-large']) ::slotted(svg) {
5720
5490
  font-size: 20px;
5721
5491
  }
5722
5492
  `;
5723
5493
  const badgeFilledStyles = css.partial`
5724
- :host(${dangerState}) {
5494
+ :host([color='danger']) {
5725
5495
  background-color: ${colorPaletteRedBackground3};
5726
5496
  color: ${colorNeutralForegroundOnBrand};
5727
5497
  }
5728
5498
 
5729
- :host(${importantState}) {
5499
+ :host([color='important']) {
5730
5500
  background-color: ${colorNeutralForeground1};
5731
5501
  color: ${colorNeutralBackground1};
5732
5502
  }
5733
5503
 
5734
- :host(${informativeState}) {
5504
+ :host([color='informative']) {
5735
5505
  background-color: ${colorNeutralBackground5};
5736
5506
  color: ${colorNeutralForeground3};
5737
5507
  }
5738
5508
 
5739
- :host(${severeState}) {
5509
+ :host([color='severe']) {
5740
5510
  background-color: ${colorPaletteDarkOrangeBackground3};
5741
5511
  color: ${colorNeutralForegroundOnBrand};
5742
5512
  }
5743
5513
 
5744
- :host(${subtleState}) {
5514
+ :host([color='subtle']) {
5745
5515
  background-color: ${colorNeutralBackground1};
5746
5516
  color: ${colorNeutralForeground1};
5747
5517
  }
5748
5518
 
5749
- :host(${successState}) {
5519
+ :host([color='success']) {
5750
5520
  background-color: ${colorPaletteGreenBackground3};
5751
5521
  color: ${colorNeutralForegroundOnBrand};
5752
5522
  }
5753
5523
 
5754
- :host(${warningState}) {
5524
+ :host([color='warning']) {
5755
5525
  background-color: ${colorPaletteYellowBackground3};
5756
5526
  color: ${colorNeutralForeground1Static};
5757
5527
  }
5758
5528
  `;
5759
5529
  const badgeGhostStyles = css.partial`
5760
- :host(${ghostState}) {
5530
+ :host([appearance='ghost']) {
5761
5531
  color: ${colorBrandForeground1};
5762
5532
  background-color: initial;
5763
5533
  }
5764
5534
 
5765
- :host(${ghostState}${dangerState}) {
5535
+ :host([appearance='ghost'][color='danger']) {
5766
5536
  color: ${colorPaletteRedForeground3};
5767
5537
  }
5768
5538
 
5769
- :host(${ghostState}${importantState}) {
5539
+ :host([appearance='ghost'][color='important']) {
5770
5540
  color: ${colorNeutralForeground1};
5771
5541
  }
5772
5542
 
5773
- :host(${ghostState}${informativeState}) {
5543
+ :host([appearance='ghost'][color='informative']) {
5774
5544
  color: ${colorNeutralForeground3};
5775
5545
  }
5776
5546
 
5777
- :host(${ghostState}${severeState}) {
5547
+ :host([appearance='ghost'][color='severe']) {
5778
5548
  color: ${colorPaletteDarkOrangeForeground3};
5779
5549
  }
5780
5550
 
5781
- :host(${ghostState}${subtleState}) {
5551
+ :host([appearance='ghost'][color='subtle']) {
5782
5552
  color: ${colorNeutralForegroundInverted};
5783
5553
  }
5784
5554
 
5785
- :host(${ghostState}${successState}) {
5555
+ :host([appearance='ghost'][color='success']) {
5786
5556
  color: ${colorPaletteGreenForeground3};
5787
5557
  }
5788
5558
 
5789
- :host(${ghostState}${warningState}) {
5559
+ :host([appearance='ghost'][color='warning']) {
5790
5560
  color: ${colorPaletteYellowForeground2};
5791
5561
  }
5792
5562
  `;
5793
5563
  const badgeOutlineStyles = css.partial`
5794
- :host(${outlineState}) {
5564
+ :host([appearance='outline']) {
5795
5565
  border-color: currentColor;
5796
5566
  color: ${colorBrandForeground1};
5797
5567
  background-color: initial;
5798
5568
  }
5799
5569
 
5800
- :host(${outlineState}${dangerState}) {
5570
+ :host([appearance='outline'][color='danger']) {
5801
5571
  color: ${colorPaletteRedForeground3};
5802
5572
  }
5803
5573
 
5804
- :host(${outlineState}${importantState}) {
5574
+ :host([appearance='outline'][color='important']) {
5805
5575
  color: ${colorNeutralForeground3};
5806
5576
  border-color: ${colorNeutralStrokeAccessible};
5807
5577
  }
5808
5578
 
5809
- :host(${outlineState}${informativeState}) {
5579
+ :host([appearance='outline'][color='informative']) {
5810
5580
  color: ${colorNeutralForeground3};
5811
5581
  border-color: ${colorNeutralStroke2};
5812
5582
  }
5813
5583
 
5814
- :host(${outlineState}${severeState}) {
5584
+ :host([appearance='outline'][color='severe']) {
5815
5585
  color: ${colorPaletteDarkOrangeForeground3};
5816
5586
  }
5817
5587
 
5818
- :host(${outlineState}${subtleState}) {
5588
+ :host([appearance='outline'][color='subtle']) {
5819
5589
  color: ${colorNeutralForegroundStaticInverted};
5820
5590
  }
5821
5591
 
5822
- :host(${outlineState}${successState}) {
5592
+ :host([appearance='outline'][color='success']) {
5823
5593
  color: ${colorPaletteGreenForeground2};
5824
5594
  }
5825
5595
 
5826
- :host(${outlineState}${warningState}) {
5596
+ :host([appearance='outline'][color='warning']) {
5827
5597
  color: ${colorPaletteYellowForeground2};
5828
5598
  }
5829
5599
  `;
5830
5600
  const badgeTintStyles = css.partial`
5831
- :host(${tintState}) {
5601
+ :host([appearance='tint']) {
5832
5602
  background-color: ${colorBrandBackground2};
5833
5603
  color: ${colorBrandForeground2};
5834
5604
  border-color: ${colorBrandStroke2};
5835
5605
  }
5836
5606
 
5837
- :host(${tintState}${dangerState}) {
5607
+ :host([appearance='tint'][color='danger']) {
5838
5608
  background-color: ${colorPaletteRedBackground1};
5839
5609
  color: ${colorPaletteRedForeground1};
5840
5610
  border-color: ${colorPaletteRedBorder1};
5841
5611
  }
5842
5612
 
5843
- :host(${tintState}${importantState}) {
5613
+ :host([appearance='tint'][color='important']) {
5844
5614
  background-color: ${colorNeutralForeground3};
5845
5615
  color: ${colorNeutralBackground1};
5846
5616
  border-color: ${colorTransparentStroke};
5847
5617
  }
5848
5618
 
5849
- :host(${tintState}${informativeState}) {
5619
+ :host([appearance='tint'][color='informative']) {
5850
5620
  background-color: ${colorNeutralBackground4};
5851
5621
  color: ${colorNeutralForeground3};
5852
5622
  border-color: ${colorNeutralStroke2};
5853
5623
  }
5854
5624
 
5855
- :host(${tintState}${severeState}) {
5625
+ :host([appearance='tint'][color='severe']) {
5856
5626
  background-color: ${colorPaletteDarkOrangeBackground1};
5857
5627
  color: ${colorPaletteDarkOrangeForeground1};
5858
5628
  border-color: ${colorPaletteDarkOrangeBorder1};
5859
5629
  }
5860
5630
 
5861
- :host(${tintState}${subtleState}) {
5631
+ :host([appearance='tint'][color='subtle']) {
5862
5632
  background-color: ${colorNeutralBackground1};
5863
5633
  color: ${colorNeutralForeground3};
5864
5634
  border-color: ${colorNeutralStroke2};
5865
5635
  }
5866
5636
 
5867
- :host(${tintState}${successState}) {
5637
+ :host([appearance='tint'][color='success']) {
5868
5638
  background-color: ${colorPaletteGreenBackground1};
5869
5639
  color: ${colorPaletteGreenForeground1};
5870
5640
  border-color: ${colorPaletteGreenBorder2};
5871
5641
  }
5872
5642
 
5873
- :host(${tintState}${warningState}) {
5643
+ :host([appearance='tint'][color='warning']) {
5874
5644
  background-color: ${colorPaletteYellowBackground1};
5875
5645
  color: ${colorPaletteYellowForeground2};
5876
5646
  border-color: ${colorPaletteYellowBorder1};
@@ -5981,11 +5751,11 @@ css.partial`
5981
5751
  `;
5982
5752
 
5983
5753
  const styles$B = css`
5984
- :host(${squareState}){border-radius:${borderRadiusNone}}:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
5985
- ${badgeFilledStyles}
5986
- ${badgeGhostStyles}
5754
+ :host([shape='square']){border-radius:${borderRadiusNone}}:host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeTintStyles}
5987
5755
  ${badgeOutlineStyles}
5988
- ${badgeTintStyles}
5756
+ ${badgeGhostStyles}
5757
+ ${badgeFilledStyles}
5758
+ ${badgeSizeStyles}
5989
5759
  ${badgeBaseStyles}
5990
5760
  `.withBehaviors(forcedColorsStylesheetBehavior(css`
5991
5761
  :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));
@@ -6264,38 +6034,6 @@ class Button extends BaseButton {
6264
6034
  super(...arguments);
6265
6035
  this.iconOnly = false;
6266
6036
  }
6267
- /**
6268
- * Handles changes to appearance attribute custom states
6269
- * @param prev - the previous state
6270
- * @param next - the next state
6271
- */
6272
- appearanceChanged(prev, next) {
6273
- swapStates(this.elementInternals, prev, next, ButtonAppearance);
6274
- }
6275
- /**
6276
- * Handles changes to shape attribute custom states
6277
- * @param prev - the previous state
6278
- * @param next - the next state
6279
- */
6280
- shapeChanged(prev, next) {
6281
- swapStates(this.elementInternals, prev, next, ButtonShape);
6282
- }
6283
- /**
6284
- * Handles changes to size attribute custom states
6285
- * @param prev - the previous state
6286
- * @param next - the next state
6287
- */
6288
- sizeChanged(prev, next) {
6289
- swapStates(this.elementInternals, prev, next, ButtonSize);
6290
- }
6291
- /**
6292
- * Handles changes to icon only custom states
6293
- * @param prev - the previous state
6294
- * @param next - the next state
6295
- */
6296
- iconOnlyChanged(prev, next) {
6297
- toggleState(this.elementInternals, "icon", next);
6298
- }
6299
6037
  }
6300
6038
  __decorateClass$I([attr], Button.prototype, "appearance", 2);
6301
6039
  __decorateClass$I([attr], Button.prototype, "shape", 2);
@@ -6682,15 +6420,6 @@ __decorateClass$H([attr({
6682
6420
  mode: "boolean"
6683
6421
  })], BaseCheckbox.prototype, "required", 2);
6684
6422
 
6685
- const CheckboxShape = {
6686
- circular: "circular",
6687
- square: "square"
6688
- };
6689
- const CheckboxSize = {
6690
- medium: "medium",
6691
- large: "large"
6692
- };
6693
-
6694
6423
  var __defProp$G = Object.defineProperty;
6695
6424
  var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
6696
6425
  var __decorateClass$G = (decorators, target, key, kind) => {
@@ -6711,26 +6440,6 @@ class Checkbox extends BaseCheckbox {
6711
6440
  this.setAriaChecked();
6712
6441
  toggleState(this.elementInternals, "indeterminate", next);
6713
6442
  }
6714
- /**
6715
- * Applies shape states when the `shape` property changes.
6716
- *
6717
- * @param prev - the previous shape value
6718
- * @param next - the next shape value
6719
- * @internal
6720
- */
6721
- shapeChanged(prev, next) {
6722
- swapStates(this.elementInternals, prev, next, CheckboxShape);
6723
- }
6724
- /**
6725
- * Applies size states when the `size` property changes.
6726
- *
6727
- * @param prev - the previous state
6728
- * @param next - the next state
6729
- * @internal
6730
- */
6731
- sizeChanged(prev, next) {
6732
- swapStates(this.elementInternals, prev, next, CheckboxSize);
6733
- }
6734
6443
  constructor() {
6735
6444
  super();
6736
6445
  this.elementInternals.role = "checkbox";
@@ -6763,10 +6472,38 @@ __decorateClass$G([observable], Checkbox.prototype, "indeterminate", 2);
6763
6472
  __decorateClass$G([attr], Checkbox.prototype, "shape", 2);
6764
6473
  __decorateClass$G([attr], Checkbox.prototype, "size", 2);
6765
6474
 
6475
+ const activeState = stateSelector("active");
6476
+ const badInputState = stateSelector("bad-input");
6477
+ const checkedState = stateSelector("checked");
6478
+ const customErrorState = stateSelector("custom-error");
6479
+ const descriptionState = stateSelector("description");
6480
+ const disabledState = stateSelector("disabled");
6481
+ stateSelector("error");
6482
+ const flipBlockState = stateSelector("flip-block");
6483
+ const focusVisibleState = stateSelector("focus-visible");
6484
+ const hasMessageState = stateSelector("has-message");
6485
+ const indeterminateState = stateSelector("indeterminate");
6486
+ const multipleState = stateSelector("multiple");
6487
+ const openState = stateSelector("open");
6488
+ const patternMismatchState = stateSelector("pattern-mismatch");
6489
+ const placeholderShownState = stateSelector("placeholder-shown");
6490
+ const pressedState = stateSelector("pressed");
6491
+ const rangeOverflowState = stateSelector("range-overflow");
6492
+ const rangeUnderflowState = stateSelector("range-underflow");
6493
+ const selectedState = stateSelector("selected");
6494
+ const stepMismatchState = stateSelector("step-mismatch");
6495
+ const submenuState = stateSelector("submenu");
6496
+ const tooLongState = stateSelector("too-long");
6497
+ const tooShortState = stateSelector("too-short");
6498
+ const typeMismatchState = stateSelector("type-mismatch");
6499
+ const userInvalidState = stateSelector("user-invalid");
6500
+ const validState = stateSelector("valid");
6501
+ const valueMissingState = stateSelector("value-missing");
6502
+
6766
6503
  const styles$A = css`
6767
6504
  ${display("inline-flex")}
6768
6505
 
6769
- :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${largeState}){--size:20px}:host(${largeState}) ::slotted([slot='checked-indicator']),:host(${largeState}) .checked-indicator{width:16px}:host(${circularState}),:host(${circularState}) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
6506
+ :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
6770
6507
  :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState}) .checked-indicator{color:GrayText}`));
6771
6508
 
6772
6509
  const checkedIndicator$2 = html.partial( /* html */
@@ -6807,8 +6544,9 @@ class CompoundButton extends Button {}
6807
6544
  const styles$z = css`
6808
6545
  ${styles$E}
6809
6546
 
6810
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host(${largeState}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is(${primaryState},${primaryState}:hover,${primaryState}:active)) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is(${subtleState},${subtleState}:hover,${subtleState}:active)) ::slotted([slot='description']),:host(${transparentState}) ::slotted([slot='description']){color:${colorNeutralForeground2}}:host(${transparentState}:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
6811
- ::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host(${smallState}){padding:8px;padding-bottom:10px}:host(${iconOnlyState}){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host(${iconOnlyState}${smallState}){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host(${iconOnlyState}${largeState}){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host(${largeState}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}) ::slotted([slot='description']){font-size:${fontSizeBase300}}`;
6547
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${colorNeutralForeground2};line-height:100%;font-size:${fontSizeBase200};font-weight:${fontWeightRegular}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${colorNeutralForeground2Hover}}:host(:active) ::slotted([slot='description']){color:${colorNeutralForeground2Pressed}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${colorNeutralForegroundOnBrand}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
6548
+ ::slotted([slot='description']){color:${colorNeutralForeground2}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${colorNeutralForeground2BrandHover}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${colorNeutralForeground2BrandPressed}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
6549
+ ::slotted([slot='description']){color:${colorNeutralForegroundDisabled}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${spacingHorizontalSNudge}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${spacingHorizontalXS}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${spacingHorizontalS}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted([slot='description']){font-size:${fontSizeBase300}}`;
6812
6550
 
6813
6551
  function buttonTemplate(options = {}) {
6814
6552
  return html`<template ?disabled="${x => x.disabled}" tabindex="${x => x.disabled ? null : x.tabIndex ?? 0}">${startSlotTemplate(options)}<span class="content" part="content"><slot ${slotted("defaultSlottedContent")}></slot><slot name="description"></slot></span>${endSlotTemplate(options)}</template>`;
@@ -6823,33 +6561,6 @@ const definition$A = CompoundButton.compose({
6823
6561
 
6824
6562
  definition$A.define(FluentDesignSystem.registry);
6825
6563
 
6826
- const CounterBadgeAppearance = {
6827
- filled: "filled",
6828
- ghost: "ghost"
6829
- };
6830
- const CounterBadgeColor = {
6831
- brand: "brand",
6832
- danger: "danger",
6833
- important: "important",
6834
- informative: "informative",
6835
- severe: "severe",
6836
- subtle: "subtle",
6837
- success: "success",
6838
- warning: "warning"
6839
- };
6840
- const CounterBadgeShape = {
6841
- circular: "circular",
6842
- rounded: "rounded"
6843
- };
6844
- const CounterBadgeSize = {
6845
- tiny: "tiny",
6846
- extraSmall: "extra-small",
6847
- small: "small",
6848
- medium: "medium",
6849
- large: "large",
6850
- extraLarge: "extra-large"
6851
- };
6852
-
6853
6564
  var __defProp$F = Object.defineProperty;
6854
6565
  var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6855
6566
  var __decorateClass$F = (decorators, target, key, kind) => {
@@ -6872,52 +6583,12 @@ class CounterBadge extends FASTElement {
6872
6583
  this.showZero = false;
6873
6584
  this.dot = false;
6874
6585
  }
6875
- /**
6876
- * Handles changes to appearance attribute custom states
6877
- * @param prev - the previous state
6878
- * @param next - the next state
6879
- */
6880
- appearanceChanged(prev, next) {
6881
- swapStates(this.elementInternals, prev, next, CounterBadgeAppearance);
6882
- }
6883
- /**
6884
- * Handles changes to color attribute custom states
6885
- * @param prev - the previous state
6886
- * @param next - the next state
6887
- */
6888
- colorChanged(prev, next) {
6889
- swapStates(this.elementInternals, prev, next, CounterBadgeColor);
6890
- }
6891
- /**
6892
- * Handles changes to shape attribute custom states
6893
- * @param prev - the previous state
6894
- * @param next - the next state
6895
- */
6896
- shapeChanged(prev, next) {
6897
- swapStates(this.elementInternals, prev, next, CounterBadgeShape);
6898
- }
6899
- /**
6900
- * Handles changes to size attribute custom states
6901
- * @param prev - the previous state
6902
- * @param next - the next state
6903
- */
6904
- sizeChanged(prev, next) {
6905
- swapStates(this.elementInternals, prev, next, CounterBadgeSize);
6906
- }
6907
6586
  countChanged() {
6908
6587
  this.setCount();
6909
6588
  }
6910
6589
  overflowCountChanged() {
6911
6590
  this.setCount();
6912
6591
  }
6913
- /**
6914
- * Handles changes to dot attribute custom states
6915
- * @param prev - the previous state
6916
- * @param next - the next state
6917
- */
6918
- dotChanged(prev, next) {
6919
- toggleState(this.elementInternals, "dot", !!next);
6920
- }
6921
6592
  /**
6922
6593
  * @internal
6923
6594
  * Function to set the count
@@ -6953,12 +6624,12 @@ __decorateClass$F([attr({
6953
6624
  applyMixins(CounterBadge, StartEnd);
6954
6625
 
6955
6626
  const styles$y = css`
6956
- :host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
6627
+ :host([shape='rounded']){border-radius:${borderRadiusMedium}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
6957
6628
  ${badgeFilledStyles}
6958
6629
  ${badgeGhostStyles}
6959
6630
  ${badgeBaseStyles}
6960
6631
 
6961
- :host(${dotState}),:host(${dotState}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;
6632
+ :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;
6962
6633
 
6963
6634
  function composeTemplate(options = {}) {
6964
6635
  return badgeTemplate({
@@ -7136,16 +6807,6 @@ const DividerRole = {
7136
6807
  presentation: "presentation"
7137
6808
  };
7138
6809
  const DividerOrientation = Orientation;
7139
- const DividerAlignContent = {
7140
- center: "center",
7141
- start: "start",
7142
- end: "end"
7143
- };
7144
- const DividerAppearance = {
7145
- strong: "strong",
7146
- brand: "brand",
7147
- subtle: "subtle"
7148
- };
7149
6810
 
7150
6811
  var __defProp$C = Object.defineProperty;
7151
6812
  var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
@@ -7210,32 +6871,7 @@ var __decorateClass$B = (decorators, target, key, kind) => {
7210
6871
  if (kind && result) __defProp$B(target, key, result);
7211
6872
  return result;
7212
6873
  };
7213
- class Divider extends BaseDivider {
7214
- /**
7215
- * Handles changes to align-content attribute custom states
7216
- * @param prev - the previous state
7217
- * @param next - the next state
7218
- */
7219
- alignContentChanged(prev, next) {
7220
- swapStates(this.elementInternals, prev, next, DividerAlignContent, "align-");
7221
- }
7222
- /**
7223
- * Handles changes to appearance attribute custom states
7224
- * @param prev - the previous state
7225
- * @param next - the next state
7226
- */
7227
- appearanceChanged(prev, next) {
7228
- swapStates(this.elementInternals, prev, next, DividerAppearance);
7229
- }
7230
- /**
7231
- * Handles changes to inset custom states
7232
- * @param prev - the previous state
7233
- * @param next - the next state
7234
- */
7235
- insetChanged(prev, next) {
7236
- toggleState(this.elementInternals, "inset", next);
7237
- }
7238
- }
6874
+ class Divider extends BaseDivider {}
7239
6875
  __decorateClass$B([attr({
7240
6876
  attribute: "align-content"
7241
6877
  })], Divider.prototype, "alignContent", 2);
@@ -7252,8 +6888,8 @@ const template$w = dividerTemplate();
7252
6888
  const styles$v = css`
7253
6889
  ${display("flex")}
7254
6890
 
7255
- :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host(${insetState}){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host(${alignStartState})::before,:host(${alignEndState})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${verticalState}){height:100%;min-height:84px}:host(${verticalState}):empty{min-height:20px}:host(${verticalState}){flex-direction:column;align-items:center}:host(${verticalState}${insetState})::before{margin-top:12px}:host(${verticalState}${insetState})::after{margin-bottom:12px}:host(${verticalState}):empty::before,:host(${verticalState}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${verticalState})::before,:host(${verticalState})::after{width:${strokeWidthThin};min-height:20px;height:100%}:host(${verticalState}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${verticalState}${alignStartState})::before{min-height:8px}:host(${verticalState}${alignEndState})::after{min-height:8px}:host(${strongState})::before,:host(${strongState})::after{background:${colorNeutralStroke1}}:host(${strongState}) ::slotted(*){color:${colorNeutralForeground1}}:host(${brandState})::before,:host(${brandState})::after{background:${colorBrandStroke1}}:host(${brandState}) ::slotted(*){color:${colorBrandForeground1}}:host(${subtleState})::before,:host(${subtleState})::after{background:${colorNeutralStroke3}}:host(${subtleState}) ::slotted(*){color:${colorNeutralForeground3}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
7256
- :host(${strongState})::before,:host(${strongState})::after,:host(${brandState})::before,:host(${brandState})::after,:host(${subtleState})::before,:host(${subtleState})::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
6891
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
6892
+ :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`));
7257
6893
 
7258
6894
  const definition$w = Divider.compose({
7259
6895
  name: `${FluentDesignSystem.prefix}-divider`,
@@ -7434,11 +7070,6 @@ const DropdownAppearance = {
7434
7070
  outline: "outline",
7435
7071
  transparent: "transparent"
7436
7072
  };
7437
- const DropdownSize = {
7438
- small: "small",
7439
- medium: "medium",
7440
- large: "large"
7441
- };
7442
7073
  const DropdownType = {
7443
7074
  combobox: "combobox",
7444
7075
  dropdown: "dropdown",
@@ -8122,26 +7753,6 @@ class Dropdown extends BaseDropdown {
8122
7753
  super(...arguments);
8123
7754
  this.appearance = DropdownAppearance.outline;
8124
7755
  }
8125
- /**
8126
- * Swaps appearance states when the appearance property changes.
8127
- *
8128
- * @param prev - the previous appearance state
8129
- * @param next - the current appearance state
8130
- * @internal
8131
- */
8132
- appearanceChanged(prev, next) {
8133
- swapStates(this.elementInternals, prev, next, DropdownAppearance);
8134
- }
8135
- /**
8136
- * Swaps size states when the size property changes.
8137
- *
8138
- * @param prev - the previous size state
8139
- * @param next - the current size state
8140
- * @internal
8141
- */
8142
- sizeChanged(prev, next) {
8143
- swapStates(this.elementInternals, prev, next, DropdownSize);
8144
- }
8145
7756
  }
8146
7757
  __decorateClass$y([attr], Dropdown.prototype, "appearance", 2);
8147
7758
  __decorateClass$y([attr], Dropdown.prototype, "size", 2);
@@ -8149,7 +7760,7 @@ __decorateClass$y([attr], Dropdown.prototype, "size", 2);
8149
7760
  const styles$s = css`
8150
7761
  ${display("inline-flex")}
8151
7762
 
8152
- :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:none;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(${smallState}) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host(${largeState}) .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(${smallState}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${largeState}) :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(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where(${outlineState},${transparentState})) .control::before{background-color:${colorNeutralStrokeAccessible}}:host(${transparentState}) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host(${outlineState}) .control{--control-border-color:${colorNeutralStroke1}}:host(${outlineState}) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where(${outlineState},${transparentState})) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host(${outlineState}) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host(${outlineState}) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where(${outlineState},${transparentState})) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where(${outlineState},${transparentState})) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host(${filledDarkerState}) .control{background-color:${colorNeutralBackground3}}:host(:where(${filledLighterState},${filledDarkerState})) .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([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin});max-height:50vh}:host(${smallState}) ::slotted([popover]){margin-block-start:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host(${largeState}) ::slotted([popover]){margin-block-start:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}:host(${flipBlockState}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`;
7763
+ :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:none;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(${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([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin});max-height:50vh}:host([size='small']) ::slotted([popover]){margin-block-start:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']) ::slotted([popover]){margin-block-start:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}:host(${flipBlockState}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`;
8153
7764
 
8154
7765
  const definition$t = Dropdown.compose({
8155
7766
  name: `${FluentDesignSystem.prefix}-dropdown`,
@@ -8389,93 +8000,31 @@ const template$s = html`<template @click="${(x, c) => x.clickHandler(c.event)}"
8389
8000
  subtree: true,
8390
8001
  selector: '[slot="input"]',
8391
8002
  filter: elements()
8392
- })}><slot name="label" part="label" ${slotted("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${slotted({
8393
- property: "messageSlot",
8394
- filter: elements("[flag]")
8395
- })}></slot></template>`;
8396
-
8397
- const definition$s = Field.compose({
8398
- name: `${FluentDesignSystem.prefix}-field`,
8399
- template: template$s,
8400
- styles: styles$r,
8401
- shadowOptions: {
8402
- delegatesFocus: true
8403
- }
8404
- });
8405
-
8406
- definition$s.define(FluentDesignSystem.registry);
8407
-
8408
- const ImageFit = {
8409
- none: "none",
8410
- center: "center",
8411
- contain: "contain",
8412
- cover: "cover"
8413
- };
8414
- const ImageShape = {
8415
- circular: "circular",
8416
- rounded: "rounded",
8417
- square: "square"
8418
- };
8419
-
8420
- var __defProp$v = Object.defineProperty;
8421
- var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
8422
- var __decorateClass$v = (decorators, target, key, kind) => {
8423
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
8424
- for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8425
- if (kind && result) __defProp$v(target, key, result);
8426
- return result;
8427
- };
8428
- class Image extends FASTElement {
8429
- constructor() {
8430
- super(...arguments);
8431
- /**
8432
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
8433
- *
8434
- * @internal
8435
- */
8436
- this.elementInternals = this.attachInternals();
8437
- }
8438
- /**
8439
- * Handles changes to block custom states
8440
- * @param prev - the previous state
8441
- * @param next - the next state
8442
- */
8443
- blockChanged(prev, next) {
8444
- toggleState(this.elementInternals, "block", next);
8445
- }
8446
- /**
8447
- * Handles changes to bordered custom states
8448
- * @param prev - the previous state
8449
- * @param next - the next state
8450
- */
8451
- borderedChanged(prev, next) {
8452
- toggleState(this.elementInternals, "bordered", next);
8453
- }
8454
- /**
8455
- * Handles changes to shadow custom states
8456
- * @param prev - the previous state
8457
- * @param next - the next state
8458
- */
8459
- shadowChanged(prev, next) {
8460
- toggleState(this.elementInternals, "shadow", next);
8461
- }
8462
- /**
8463
- * Handles changes to fit attribute custom states
8464
- * @param prev - the previous state
8465
- * @param next - the next state
8466
- */
8467
- fitChanged(prev, next) {
8468
- swapStates(this.elementInternals, prev, next, ImageFit, "fit-");
8469
- }
8470
- /**
8471
- * Handles changes to shape attribute custom states
8472
- * @param prev - the previous state
8473
- * @param next - the next state
8474
- */
8475
- shapeChanged(prev, next) {
8476
- swapStates(this.elementInternals, prev, next, ImageShape);
8003
+ })}><slot name="label" part="label" ${slotted("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${slotted({
8004
+ property: "messageSlot",
8005
+ filter: elements("[flag]")
8006
+ })}></slot></template>`;
8007
+
8008
+ const definition$s = Field.compose({
8009
+ name: `${FluentDesignSystem.prefix}-field`,
8010
+ template: template$s,
8011
+ styles: styles$r,
8012
+ shadowOptions: {
8013
+ delegatesFocus: true
8477
8014
  }
8478
- }
8015
+ });
8016
+
8017
+ definition$s.define(FluentDesignSystem.registry);
8018
+
8019
+ var __defProp$v = Object.defineProperty;
8020
+ var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
8021
+ var __decorateClass$v = (decorators, target, key, kind) => {
8022
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
8023
+ for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8024
+ if (kind && result) __defProp$v(target, key, result);
8025
+ return result;
8026
+ };
8027
+ class Image extends FASTElement {}
8479
8028
  __decorateClass$v([attr({
8480
8029
  mode: "boolean"
8481
8030
  })], Image.prototype, "block", 2);
@@ -8491,7 +8040,7 @@ __decorateClass$v([attr], Image.prototype, "shape", 2);
8491
8040
  const template$r = html`<slot></slot>`;
8492
8041
 
8493
8042
  const styles$q = css`
8494
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${blockState}) ::slotted(img){width:100%;height:auto}:host(${borderedState}) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host(${fitNoneState}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${fitCenterState}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${fitContainState}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${fitCoverState}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${shadowState}) ::slotted(img){box-shadow:${shadow4}}:host(${circularState}) ::slotted(img){border-radius:${borderRadiusCircular}}:host(${roundedState}) ::slotted(img){border-radius:${borderRadiusMedium}}`;
8043
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${shadow4}}:host([shape='circular']) ::slotted(img){border-radius:${borderRadiusCircular}}:host([shape='rounded']) ::slotted(img){border-radius:${borderRadiusMedium}}`;
8495
8044
 
8496
8045
  const definition$r = Image.compose({
8497
8046
  name: `${FluentDesignSystem.prefix}-image`,
@@ -8501,16 +8050,6 @@ const definition$r = Image.compose({
8501
8050
 
8502
8051
  definition$r.define(FluentDesignSystem.registry);
8503
8052
 
8504
- const LabelSize = {
8505
- small: "small",
8506
- medium: "medium",
8507
- large: "large"
8508
- };
8509
- const LabelWeight = {
8510
- regular: "regular",
8511
- semibold: "semibold"
8512
- };
8513
-
8514
8053
  var __defProp$u = Object.defineProperty;
8515
8054
  var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
8516
8055
  var __decorateClass$u = (decorators, target, key, kind) => {
@@ -8522,39 +8061,9 @@ var __decorateClass$u = (decorators, target, key, kind) => {
8522
8061
  class Label extends FASTElement {
8523
8062
  constructor() {
8524
8063
  super(...arguments);
8525
- /**
8526
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
8527
- *
8528
- * @internal
8529
- */
8530
- this.elementInternals = this.attachInternals();
8531
8064
  this.disabled = false;
8532
8065
  this.required = false;
8533
8066
  }
8534
- /**
8535
- * Handles changes to size attribute custom states
8536
- * @param prev - the previous state
8537
- * @param next - the next state
8538
- */
8539
- sizeChanged(prev, next) {
8540
- swapStates(this.elementInternals, prev, next, LabelSize);
8541
- }
8542
- /**
8543
- * Handles changes to weight attribute custom states
8544
- * @param prev - the previous state
8545
- * @param next - the next state
8546
- */
8547
- weightChanged(prev, next) {
8548
- swapStates(this.elementInternals, prev, next, LabelWeight);
8549
- }
8550
- /**
8551
- * Handles changes to disabled attribute custom states
8552
- * @param prev - the previous state
8553
- * @param next - the next state
8554
- */
8555
- disabledChanged(prev, next) {
8556
- toggleState(this.elementInternals, "disabled", next);
8557
- }
8558
8067
  }
8559
8068
  __decorateClass$u([attr], Label.prototype, "size", 2);
8560
8069
  __decorateClass$u([attr], Label.prototype, "weight", 2);
@@ -8568,7 +8077,7 @@ __decorateClass$u([attr({
8568
8077
  const styles$p = css`
8569
8078
  ${display("inline-flex")}
8570
8079
 
8571
- :host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host(${smallState}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is(${largeState},${semiboldState})){font-weight:${fontWeightSemibold}}:host(${disabledState}),:host(${disabledState}) .asterisk{color:${colorNeutralForegroundDisabled}}`;
8080
+ :host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host([size='small']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is([size='large'],[weight='semibold'])){font-weight:${fontWeightSemibold}}:host([disabled]),:host([disabled]) .asterisk{color:${colorNeutralForegroundDisabled}}`;
8572
8081
 
8573
8082
  function labelTemplate() {
8574
8083
  return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
@@ -8583,10 +8092,6 @@ const definition$q = Label.compose({
8583
8092
 
8584
8093
  definition$q.define(FluentDesignSystem.registry);
8585
8094
 
8586
- const LinkAppearance = {
8587
- subtle: "subtle"
8588
- };
8589
-
8590
8095
  var __defProp$t = Object.defineProperty;
8591
8096
  var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
8592
8097
  var __decorateClass$t = (decorators, target, key, kind) => {
@@ -8600,22 +8105,6 @@ class Link extends BaseAnchor {
8600
8105
  super(...arguments);
8601
8106
  this.inline = false;
8602
8107
  }
8603
- /**
8604
- * Handles changes to appearance attribute custom states
8605
- * @param prev - the previous state
8606
- * @param next - the next state
8607
- */
8608
- appearanceChanged(prev, next) {
8609
- swapStates(this.elementInternals, prev, next, LinkAppearance);
8610
- }
8611
- /**
8612
- * Handles changes to inline attribute custom states
8613
- * @param prev - the previous state
8614
- * @param next - the next state
8615
- */
8616
- inlineChanged(prev, next) {
8617
- toggleState(this.elementInternals, "inline", next);
8618
- }
8619
8108
  }
8620
8109
  __decorateClass$t([attr], Link.prototype, "appearance", 2);
8621
8110
  __decorateClass$t([attr({
@@ -8625,7 +8114,7 @@ __decorateClass$t([attr({
8625
8114
  const styles$o = css`
8626
8115
  ${display("inline")}
8627
8116
 
8628
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host(${subtleState}:hover){color:${colorNeutralForeground2LinkHover}}:host(${subtleState}:active){color:${colorNeutralForeground2LinkPressed}}}:host(${subtleState}){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${inlineState}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
8117
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host([appearance='subtle']:hover){color:${colorNeutralForeground2LinkHover}}:host([appearance='subtle']:active){color:${colorNeutralForeground2LinkPressed}}}:host([appearance='subtle']){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
8629
8118
  :host{color:LinkText}`));
8630
8119
 
8631
8120
  function anchorTemplate() {
@@ -9661,21 +9150,6 @@ const definition$k = Menu.compose({
9661
9150
 
9662
9151
  definition$k.define(FluentDesignSystem.registry);
9663
9152
 
9664
- const MessageBarLayout = {
9665
- multiline: "multiline",
9666
- singleline: "singleline"
9667
- };
9668
- const MessageBarShape = {
9669
- rounded: "rounded",
9670
- square: "square"
9671
- };
9672
- const MessageBarIntent = {
9673
- success: "success",
9674
- warning: "warning",
9675
- error: "error",
9676
- info: "info"
9677
- };
9678
-
9679
9153
  var __defProp$o = Object.defineProperty;
9680
9154
  var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
9681
9155
  var __decorateClass$o = (decorators, target, key, kind) => {
@@ -9702,38 +9176,14 @@ class MessageBar extends FASTElement {
9702
9176
  };
9703
9177
  this.elementInternals.role = "status";
9704
9178
  }
9705
- /**
9706
- * Handles changes to shape attribute custom states
9707
- * @param prev - the previous state
9708
- * @param next - the next state
9709
- */
9710
- shapeChanged(prev, next) {
9711
- swapStates(this.elementInternals, prev, next, MessageBarShape);
9712
- }
9713
- /**
9714
- * Handles changes to the layout attribute custom states
9715
- * @param prev - the previous state
9716
- * @param next - the next state
9717
- */
9718
- layoutChanged(prev, next) {
9719
- swapStates(this.elementInternals, prev, next, MessageBarLayout);
9720
- }
9721
- /**
9722
- * Handles changes to the intent attribute custom states
9723
- * @param prev - the previous state
9724
- * @param next - the next state
9725
- */
9726
- intentChanged(prev, next) {
9727
- swapStates(this.elementInternals, prev, next, MessageBarIntent);
9728
- }
9729
9179
  }
9730
9180
  __decorateClass$o([attr], MessageBar.prototype, "shape", 2);
9731
9181
  __decorateClass$o([attr], MessageBar.prototype, "layout", 2);
9732
9182
  __decorateClass$o([attr], MessageBar.prototype, "intent", 2);
9733
9183
 
9734
9184
  const styles$j = css`
9735
- :host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${squareState}){border-radius:0}:host(${successState}){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host(${warningState}){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host(${errorState}){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host(${multiLineState}){grid-template-areas:'icon body dismiss'
9736
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host(${multiLineState}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host(${multiLineState}) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host(${multiLineState}) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host(${multiLineState}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
9185
+ :host{display:grid;box-sizing:border-box;font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};width:100%;background:${colorNeutralBackground3};border:1px solid ${colorNeutralStroke1};padding-inline:${spacingHorizontalM};border-radius:${borderRadiusMedium};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${colorPaletteGreenBackground1};border-color:${colorPaletteGreenBorder1}}:host([intent='warning']){background-color:${colorPaletteDarkOrangeBackground1};border-color:${colorPaletteDarkOrangeBorder1}}:host([intent='error']){background-color:${colorPaletteRedBackground1};border-color:${colorPaletteRedBorder1}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
9186
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${spacingVerticalMNudge};padding-inline:${spacingHorizontalM}}.content{grid-area:body;max-width:520px;padding-block:${spacingVerticalMNudge};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${colorNeutralForeground3};margin-inline-end:${spacingHorizontalS}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${spacingHorizontalS};gap:${spacingHorizontalS}}:host([layout='multiline']) .actions{margin-block-start:${spacingVerticalMNudge};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${spacingVerticalS}}::slotted(*){font-size:inherit}`;
9737
9187
 
9738
9188
  function messageBarTemplate() {
9739
9189
  return html`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`;
@@ -10040,14 +9490,6 @@ const definition$i = DropdownOption.compose({
10040
9490
 
10041
9491
  definition$i.define(FluentDesignSystem.registry);
10042
9492
 
10043
- const ProgressBarThickness = {
10044
- medium: "medium",
10045
- large: "large"
10046
- };
10047
- const ProgressBarShape = {
10048
- rounded: "rounded",
10049
- square: "square"
10050
- };
10051
9493
  const ProgressBarValidationState = {
10052
9494
  success: "success",
10053
9495
  warning: "warning",
@@ -10139,34 +9581,17 @@ var __decorateClass$l = (decorators, target, key, kind) => {
10139
9581
  if (kind && result) __defProp$l(target, key, result);
10140
9582
  return result;
10141
9583
  };
10142
- class ProgressBar extends BaseProgressBar {
10143
- /**
10144
- * Handles changes to thickness attribute custom states
10145
- * @param prev - the previous state
10146
- * @param next - the next state
10147
- */
10148
- thicknessChanged(prev, next) {
10149
- swapStates(this.elementInternals, prev, next, ProgressBarThickness);
10150
- }
10151
- /**
10152
- * Handles changes to shape attribute custom states
10153
- * @param prev - the previous state
10154
- * @param next - the next state
10155
- */
10156
- shapeChanged(prev, next) {
10157
- swapStates(this.elementInternals, prev, next, ProgressBarShape);
10158
- }
10159
- }
9584
+ class ProgressBar extends BaseProgressBar {}
10160
9585
  __decorateClass$l([attr], ProgressBar.prototype, "thickness", 2);
10161
9586
  __decorateClass$l([attr], ProgressBar.prototype, "shape", 2);
10162
9587
 
10163
9588
  const styles$h = css`
10164
9589
  ${display("block")}
10165
9590
 
10166
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content}:host(${largeState}){height:4px}:host(${squareState}){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
9591
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
10167
9592
  to right,${colorNeutralBackground6} 0%,${colorTransparentBackground} 50%,${colorNeutralBackground6} 100%
10168
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${errorState}) .indicator{background-color:${colorPaletteRedBackground3}}:host(${warningState}) .indicator{background-color:${colorPaletteDarkOrangeBackground3}}:host(${successState}) .indicator{background-color:${colorPaletteGreenBackground3}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
10169
- :host{background-color:CanvasText}.indicator,:host(:is(${successState},${warningState},${errorState})) .indicator{background-color:Highlight}`));
9593
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${colorPaletteRedBackground3}}:host([validation-state='warning']) .indicator{background-color:${colorPaletteDarkOrangeBackground3}}:host([validation-state='success']) .indicator{background-color:${colorPaletteGreenBackground3}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
9594
+ :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));
10170
9595
 
10171
9596
  function progressTemplate() {
10172
9597
  return html`<div class="indicator" part="indicator" style="${x => typeof x.value === "number" ? `width: ${x.percentComplete}%` : void 0}"></div>`;
@@ -10717,7 +10142,7 @@ __decorateClass$k([attr({
10717
10142
  const styles$g = css`
10718
10143
  ${display("flex")}
10719
10144
 
10720
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host(${disabledState}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}`;
10145
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${spacingVerticalL}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${colorNeutralForeground3}}::slotted(:hover){color:${colorNeutralForeground2}}::slotted(:active){color:${colorNeutralForeground1}}::slotted(${disabledState}){color:${colorNeutralForegroundDisabled}}::slotted(${checkedState}){color:${colorNeutralForeground1}}`;
10721
10146
 
10722
10147
  function radioGroupTemplate() {
10723
10148
  return html`<template @disabled="${(x, c) => x.disabledRadioHandler(c.event)}" @change="${(x, c) => x.changeHandler(c.event)}" @click="${(x, c) => x.clickHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @focusout="${(x, c) => x.focusoutHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><slot @slotchange="${(x, c) => x.slotchangeHandler(c.event)}"></slot></template>`;
@@ -10843,17 +10268,6 @@ __decorateClass$j([attr({
10843
10268
  __decorateClass$j([observable], BaseRatingDisplay.prototype, "slottedIcon", 2);
10844
10269
  __decorateClass$j([observable], BaseRatingDisplay.prototype, "customIcon", 2);
10845
10270
 
10846
- const RatingDisplayColor = {
10847
- neutral: "neutral",
10848
- brand: "brand",
10849
- marigold: "marigold"
10850
- };
10851
- const RatingDisplaySize = {
10852
- small: "small",
10853
- medium: "medium",
10854
- large: "large"
10855
- };
10856
-
10857
10271
  var __defProp$i = Object.defineProperty;
10858
10272
  var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
10859
10273
  var __decorateClass$i = (decorators, target, key, kind) => {
@@ -10867,24 +10281,6 @@ class RatingDisplay extends BaseRatingDisplay {
10867
10281
  super(...arguments);
10868
10282
  this.compact = false;
10869
10283
  }
10870
- /**
10871
- * Handles changes to the color attribute.
10872
- *
10873
- * @param prev - The previous state
10874
- * @param next - The next state
10875
- */
10876
- colorChanged(prev, next) {
10877
- swapStates(this.elementInternals, prev, next, RatingDisplayColor);
10878
- }
10879
- /**
10880
- * Handles changes to the size attribute.
10881
- *
10882
- * @param prev - The previous state
10883
- * @param next - The next state
10884
- */
10885
- sizeChanged(prev, next) {
10886
- swapStates(this.elementInternals, prev, next, RatingDisplaySize);
10887
- }
10888
10284
  /**
10889
10285
  * Overrides the selected value and returns 1 if compact is true.
10890
10286
  *
@@ -10911,7 +10307,7 @@ __decorateClass$i([attr({
10911
10307
  const styles$e = css`
10912
10308
  ${display("inline-flex")}
10913
10309
 
10914
- :host{--icon-size:16px;--icon-color-filled:${colorPaletteMarigoldBackground3};--icon-color-empty:${colorPaletteMarigoldBackground2};align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host(${smallState}){--icon-size:12px}:host(${largeState}){--icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${spacingHorizontalXXS}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${neutralState}) svg{--icon-color-filled:${colorNeutralForeground1}}:host(${brandState}) svg{--icon-color-filled:${colorBrandBackground}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host(${neutralState}:is([value^='-'],[value='0'])) svg,:host(${neutralState}:not([value])) svg,:host(${neutralState}) svg[selected] ~ svg{--icon-color-empty:${colorNeutralBackground1Pressed}}:host(${brandState}:is([value^='-'],[value='0'])) svg,:host(${brandState}:not([value])) svg,:host(${brandState}) svg[selected] ~ svg{--icon-color-empty:${colorBrandStroke2}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host(${smallState}) .value-label,:host(${smallState}) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host(${largeState}) .value-label,:host(${largeState}) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host(${smallState}) .count-label::before,:host(${smallState}) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host(${largeState}) .count-label::before,:host(${largeState}) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
10310
+ :host{--icon-size:16px;--icon-color-filled:${colorPaletteMarigoldBackground3};--icon-color-empty:${colorPaletteMarigoldBackground2};align-items:center;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase200};line-height:${lineHeightBase200};contain:layout style;user-select:none}:host([size='small']){--icon-size:12px}:host([size='large']){--icon-size:20px;font-size:${fontSizeBase300};line-height:${lineHeightBase300}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${spacingHorizontalXXS}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host([color='neutral']) svg{--icon-color-filled:${colorNeutralForeground1}}:host([color='brand']) svg{--icon-color-filled:${colorBrandBackground}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host([color='neutral']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='neutral']) svg[selected] ~ svg{--icon-color-empty:${colorNeutralBackground1Pressed}}:host([color='brand']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='brand']) svg[selected] ~ svg{--icon-color-empty:${colorBrandStroke2}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${spacingHorizontalXS};font-weight:${fontWeightSemibold}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalXXS}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${spacingHorizontalSNudge}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${spacingHorizontalXS}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalXXS}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${spacingHorizontalSNudge}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
10915
10311
  :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`));
10916
10312
 
10917
10313
  const star = html`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;
@@ -10931,10 +10327,6 @@ const definition$e = RatingDisplay.compose({
10931
10327
 
10932
10328
  definition$e.define(FluentDesignSystem.registry);
10933
10329
 
10934
- const SliderSize = {
10935
- small: "small",
10936
- medium: "medium"
10937
- };
10938
10330
  const SliderOrientation = Orientation;
10939
10331
  const SliderMode = {
10940
10332
  singleValue: "single-value"
@@ -11060,9 +10452,6 @@ class Slider extends FASTElement {
11060
10452
  get labels() {
11061
10453
  return Object.freeze(Array.from(this.elementInternals.labels));
11062
10454
  }
11063
- sizeChanged(prev, next) {
11064
- swapStates(this.elementInternals, prev, next, SliderSize);
11065
- }
11066
10455
  handleChange(_, propertyName) {
11067
10456
  switch (propertyName) {
11068
10457
  case "min":
@@ -11325,7 +10714,6 @@ class Slider extends FASTElement {
11325
10714
  }
11326
10715
  orientationChanged(prev, next) {
11327
10716
  this.elementInternals.ariaOrientation = next ?? Orientation.horizontal;
11328
- swapStates(this.elementInternals, prev, next, Orientation);
11329
10717
  if (this.$fastController.isConnected) {
11330
10718
  this.setSliderPosition();
11331
10719
  }
@@ -11510,11 +10898,11 @@ __decorateClass$h([attr], Slider.prototype, "mode", 2);
11510
10898
  const styles$d = css`
11511
10899
  ${display("inline-grid")}
11512
10900
 
11513
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${smallState}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host(${verticalState}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
10901
+ :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
11514
10902
  var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
11515
- );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${verticalState})::after,:host(${verticalState}) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host(${verticalState}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
10903
+ );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
11516
10904
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate)
11517
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${verticalState}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${borderRadiusCircular};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${colorNeutralBackground1} inset;border:calc(var(--thumb-size) * 0.05) solid ${colorNeutralStroke1};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(forcedColorsStylesheetBehavior(css`
10905
+ )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${borderRadiusCircular};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${colorNeutralBackground1} inset;border:calc(var(--thumb-size) * 0.05) solid ${colorNeutralStroke1};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(forcedColorsStylesheetBehavior(css`
11518
10906
  .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));
11519
10907
 
11520
10908
  function sliderTemplate(options = {}) {
@@ -11545,20 +10933,6 @@ class BaseSpinner extends FASTElement {
11545
10933
  }
11546
10934
  }
11547
10935
 
11548
- const SpinnerAppearance = {
11549
- primary: "primary",
11550
- inverted: "inverted"
11551
- };
11552
- const SpinnerSize = {
11553
- tiny: "tiny",
11554
- extraSmall: "extra-small",
11555
- small: "small",
11556
- medium: "medium",
11557
- large: "large",
11558
- extraLarge: "extra-large",
11559
- huge: "huge"
11560
- };
11561
-
11562
10936
  var __defProp$g = Object.defineProperty;
11563
10937
  var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
11564
10938
  var __decorateClass$g = (decorators, target, key, kind) => {
@@ -11567,31 +10941,14 @@ var __decorateClass$g = (decorators, target, key, kind) => {
11567
10941
  if (kind && result) __defProp$g(target, key, result);
11568
10942
  return result;
11569
10943
  };
11570
- class Spinner extends BaseSpinner {
11571
- /**
11572
- * Handles changes to size attribute custom states
11573
- * @param prev - the previous state
11574
- * @param next - the next state
11575
- */
11576
- sizeChanged(prev, next) {
11577
- swapStates(this.elementInternals, prev, next, SpinnerSize);
11578
- }
11579
- /**
11580
- * Handles changes to appearance attribute custom states
11581
- * @param prev - the previous state
11582
- * @param next - the next state
11583
- */
11584
- appearanceChanged(prev, next) {
11585
- swapStates(this.elementInternals, prev, next, SpinnerAppearance);
11586
- }
11587
- }
10944
+ class Spinner extends BaseSpinner {}
11588
10945
  __decorateClass$g([attr], Spinner.prototype, "size", 2);
11589
10946
  __decorateClass$g([attr], Spinner.prototype, "appearance", 2);
11590
10947
 
11591
10948
  const styles$c = css`
11592
10949
  ${display("inline-flex")}
11593
10950
 
11594
- :host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${tinyState}){--indicatorSize:${strokeWidthThick};--size:20px}:host(${extraSmallState}){--indicatorSize:${strokeWidthThick};--size:24px}:host(${smallState}){--indicatorSize:${strokeWidthThick};--size:28px}:host(${largeState}){--indicatorSize:${strokeWidthThicker};--size:36px}:host(${extraLargeState}){--indicatorSize:${strokeWidthThicker};--size:40px}:host(${hugeState}){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host(${invertedState}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host(${invertedState}) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
10951
+ :host{--duration:1.5s;--indicatorSize:${strokeWidthThicker};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${strokeWidthThick};--size:20px}:host([size='extra-small']){--indicatorSize:${strokeWidthThick};--size:24px}:host([size='small']){--indicatorSize:${strokeWidthThick};--size:28px}:host([size='large']){--indicatorSize:${strokeWidthThicker};--size:36px}:host([size='extra-large']){--indicatorSize:${strokeWidthThicker};--size:40px}:host([size='huge']){--indicatorSize:${strokeWidthThickest};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${curveEasyEase}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${colorBrandStroke2};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${colorBrandStroke1};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${colorNeutralStrokeOnBrand2}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
11595
10952
  .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`));
11596
10953
 
11597
10954
  const template$c = html`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`;
@@ -12133,11 +11490,6 @@ const TablistAppearance = {
12133
11490
  subtle: "subtle",
12134
11491
  transparent: "transparent"
12135
11492
  };
12136
- const TablistSize = {
12137
- small: "small",
12138
- medium: "medium",
12139
- large: "large"
12140
- };
12141
11493
  const TablistOrientation = Orientation;
12142
11494
 
12143
11495
  var __defProp$c = Object.defineProperty;
@@ -12409,18 +11761,6 @@ class Tablist extends BaseTablist {
12409
11761
  this.activeTabScale = 1;
12410
11762
  this.appearance = TablistAppearance.transparent;
12411
11763
  }
12412
- /**
12413
- * @internal
12414
- */
12415
- appearanceChanged(prev, next) {
12416
- swapStates(this.elementInternals, prev, next, TablistAppearance);
12417
- }
12418
- /**
12419
- * @internal
12420
- */
12421
- sizeChanged(prev, next) {
12422
- swapStates(this.elementInternals, prev, next, TablistSize);
12423
- }
12424
11764
  /**
12425
11765
  * calculateAnimationProperties
12426
11766
  *
@@ -12533,7 +11873,7 @@ const template$7 = html`<template role="tablist"><slot name="tab" ${slotted("tab
12533
11873
  const styles$7 = css`
12534
11874
  ${display("flex")}
12535
11875
 
12536
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row}:host(${verticalState}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${verticalState}) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host(${verticalState}) ::slotted([slot='tab'])::before,:host(${verticalState}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host(:where(${smallState},${largeState})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${smallState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge};font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host(${largeState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host(${smallState}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalSNudge}}:host(${largeState}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host(${verticalState}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${verticalState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host(${verticalState}${smallState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalXXS}}:host(${verticalState}${largeState}) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host(${verticalState}) ::slotted([slot='tab'])::after,:host(${verticalState}) ::slotted([slot='tab'])::before,:host(${verticalState}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${verticalState}){--tabIndicatorInsetBlock:${spacingVerticalS}}:host(${verticalState}${smallState}){--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host(${verticalState}${largeState}){--tabIndicatorInsetBlock:${spacingVerticalMNudge}}:host(${disabledState}){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='tab']:hover):before{content:unset}:host(${subtleState}) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host(${subtleState}) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}`;
11876
+ :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax}}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge};font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalSNudge}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${spacingHorizontalMNudge}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalXXS}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${spacingVerticalS}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${spacingVerticalS}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${spacingVerticalMNudge}}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}`;
12537
11877
 
12538
11878
  const definition$7 = Tablist.compose({
12539
11879
  name: `${FluentDesignSystem.prefix}-tablist`,
@@ -12543,17 +11883,11 @@ const definition$7 = Tablist.compose({
12543
11883
 
12544
11884
  definition$7.define(FluentDesignSystem.registry);
12545
11885
 
12546
- const TextAreaSize = {
12547
- small: "small",
12548
- medium: "medium",
12549
- large: "large"
12550
- };
12551
11886
  const TextAreaAppearance = {
12552
11887
  outline: "outline",
12553
11888
  filledLighter: "filled-lighter",
12554
11889
  filledDarker: "filled-darker"
12555
11890
  };
12556
- const TextAreaAppearancesForDisplayShadow = [TextAreaAppearance.filledLighter, TextAreaAppearance.filledDarker];
12557
11891
  const TextAreaResize = {
12558
11892
  none: "none",
12559
11893
  both: "both",
@@ -12999,20 +12333,6 @@ class TextArea extends BaseTextArea {
12999
12333
  node.size = this.size;
13000
12334
  });
13001
12335
  }
13002
- appearanceChanged(prev, next) {
13003
- toggleState(this.elementInternals, prev, false);
13004
- if (hasMatchingState(TextAreaAppearance, next)) {
13005
- toggleState(this.elementInternals, next, true);
13006
- } else {
13007
- this.appearance = TextAreaAppearance.outline;
13008
- }
13009
- }
13010
- blockChanged() {
13011
- toggleState(this.elementInternals, "block", this.block);
13012
- }
13013
- sizeChanged(prev, next) {
13014
- swapStates(this.elementInternals, prev, next, TextAreaSize);
13015
- }
13016
12336
  /**
13017
12337
  * @internal
13018
12338
  */
@@ -13023,10 +12343,6 @@ class TextArea extends BaseTextArea {
13023
12343
  node.size = this.size;
13024
12344
  });
13025
12345
  break;
13026
- case "appearance":
13027
- case "displayShadow":
13028
- this.maybeDisplayShadow();
13029
- break;
13030
12346
  }
13031
12347
  }
13032
12348
  /**
@@ -13034,9 +12350,6 @@ class TextArea extends BaseTextArea {
13034
12350
  */
13035
12351
  connectedCallback() {
13036
12352
  super.connectedCallback();
13037
- this.maybeDisplayShadow();
13038
- Observable.getNotifier(this).subscribe(this, "appearance");
13039
- Observable.getNotifier(this).subscribe(this, "displayShadow");
13040
12353
  Observable.getNotifier(this).subscribe(this, "size");
13041
12354
  }
13042
12355
  /**
@@ -13044,13 +12357,8 @@ class TextArea extends BaseTextArea {
13044
12357
  */
13045
12358
  disconnectedCallback() {
13046
12359
  super.disconnectedCallback();
13047
- Observable.getNotifier(this).unsubscribe(this, "appearance");
13048
- Observable.getNotifier(this).unsubscribe(this, "displayShadow");
13049
12360
  Observable.getNotifier(this).unsubscribe(this, "size");
13050
12361
  }
13051
- maybeDisplayShadow() {
13052
- toggleState(this.elementInternals, "display-shadow", this.displayShadow && TextAreaAppearancesForDisplayShadow.includes(this.appearance));
13053
- }
13054
12362
  }
13055
12363
  __decorateClass$9([attr({
13056
12364
  mode: "fromView"
@@ -13063,7 +12371,7 @@ __decorateClass$9([attr], TextArea.prototype, "size", 2);
13063
12371
  const styles$6 = css`
13064
12372
  ${display("inline-block")}
13065
12373
 
13066
- :host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host(${blockState}:not([hidden])){display:block}:host(${smallState}){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host(${largeState}){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host(${resizeBothState}:not(:disabled)){--resize:both}:host(${resizeHorizontalState}:not(:disabled)){--resize:horizontal}:host(${resizeVerticalState}:not(:disabled)){--resize:vertical}:host(${autoResizeState}){--block-size:auto;--contain-size:inline-size}:host(${filledDarkerState}){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${filledLighterState}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${filledDarkerState}${displayShadowState}),:host(${filledLighterState}${displayShadowState}){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${blockState}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${autoResizeState}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
12374
+ :host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host([size='large']){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(:disabled){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
13067
12375
  :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));
13068
12376
 
13069
12377
  function textAreaTemplate() {
@@ -13088,17 +12396,6 @@ const definition$6 = TextArea.compose({
13088
12396
 
13089
12397
  definition$6.define(FluentDesignSystem.registry);
13090
12398
 
13091
- const TextInputControlSize = {
13092
- small: "small",
13093
- medium: "medium",
13094
- large: "large"
13095
- };
13096
- const TextInputAppearance = {
13097
- outline: "outline",
13098
- underline: "underline",
13099
- filledLighter: "filled-lighter",
13100
- filledDarker: "filled-darker"
13101
- };
13102
12399
  const TextInputType = {
13103
12400
  email: "email",
13104
12401
  password: "password",
@@ -13493,24 +12790,7 @@ var __decorateClass$7 = (decorators, target, key, kind) => {
13493
12790
  if (kind && result) __defProp$7(target, key, result);
13494
12791
  return result;
13495
12792
  };
13496
- class TextInput extends BaseTextInput {
13497
- /**
13498
- * Handles changes to appearance attribute custom states
13499
- * @param prev - the previous state
13500
- * @param next - the next state
13501
- */
13502
- appearanceChanged(prev, next) {
13503
- swapStates(this.elementInternals, prev, next, TextInputAppearance);
13504
- }
13505
- /**
13506
- * Handles changes to `control-size` attribute custom states
13507
- * @param prev - the previous state
13508
- * @param next - the next state
13509
- */
13510
- controlSizeChanged(prev, next) {
13511
- swapStates(this.elementInternals, prev, next, TextInputControlSize);
13512
- }
13513
- }
12793
+ class TextInput extends BaseTextInput {}
13514
12794
  __decorateClass$7([attr], TextInput.prototype, "appearance", 2);
13515
12795
  __decorateClass$7([attr({
13516
12796
  attribute: "control-size"
@@ -13520,7 +12800,7 @@ applyMixins(TextInput, StartEnd);
13520
12800
  const styles$5 = css`
13521
12801
  ${display("block")}
13522
12802
 
13523
- :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState}) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host(${underlineState}:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(${underlineState}:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}[disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host(${filledLighterState}) .root,:host(${filledDarkerState}) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host(${filledLighterState}) .root{background:${colorNeutralBackground1}}:host(${filledDarkerState}) .root{background:${colorNeutralBackground3}}:host(${filledLighterState}:hover) .root,:host(${filledDarkerState}:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host(${filledLighterState}:active) .root,:host(${filledDarkerState}:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
12803
+ :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host([appearance='outline']:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host([control-size='small']) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host([control-size='small']) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host([control-size='large']) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host([control-size='large']) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host([appearance='underline']) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host([appearance='underline']:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='underline']:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host([appearance='filled-lighter']) .root{background:${colorNeutralBackground1}}:host([appearance='filled-darker']) .root{background:${colorNeutralBackground3}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
13524
12804
 
13525
12805
  function textInputTemplate(options = {}) {
13526
12806
  return html`<template @beforeinput="${(x, c) => x.beforeinputHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><label part="label" for="control" class="label" ${ref("controlLabel")}><slot ${slotted({
@@ -13541,36 +12821,6 @@ const definition$5 = TextInput.compose({
13541
12821
 
13542
12822
  definition$5.define(FluentDesignSystem.registry);
13543
12823
 
13544
- const TextSize = {
13545
- _100: "100",
13546
- _200: "200",
13547
- _300: "300",
13548
- _400: "400",
13549
- _500: "500",
13550
- _600: "600",
13551
- _700: "700",
13552
- _800: "800",
13553
- _900: "900",
13554
- _1000: "1000"
13555
- };
13556
- const TextFont = {
13557
- base: "base",
13558
- numeric: "numeric",
13559
- monospace: "monospace"
13560
- };
13561
- const TextWeight = {
13562
- medium: "medium",
13563
- regular: "regular",
13564
- semibold: "semibold",
13565
- bold: "bold"
13566
- };
13567
- const TextAlign = {
13568
- start: "start",
13569
- end: "end",
13570
- center: "center",
13571
- justify: "justify"
13572
- };
13573
-
13574
12824
  var __defProp$6 = Object.defineProperty;
13575
12825
  var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
13576
12826
  var __decorateClass$6 = (decorators, target, key, kind) => {
@@ -13595,67 +12845,6 @@ class Text extends FASTElement {
13595
12845
  this.strikethrough = false;
13596
12846
  this.block = false;
13597
12847
  }
13598
- /**
13599
- * Handles changes to size attribute custom states
13600
- * @param prev - the previous state
13601
- * @param next - the next state
13602
- */
13603
- sizeChanged(prev, next) {
13604
- swapStates(this.elementInternals, prev, next, TextSize, "size-");
13605
- }
13606
- /**
13607
- * Handles changes to font attribute custom states
13608
- * @param prev - the previous state
13609
- * @param next - the next state
13610
- */
13611
- fontChanged(prev, next) {
13612
- swapStates(this.elementInternals, prev, next, TextFont);
13613
- }
13614
- /**
13615
- * Handles changes to weight attribute custom states
13616
- * @param prev - the previous state
13617
- * @param next - the next state
13618
- */
13619
- weightChanged(prev, next) {
13620
- swapStates(this.elementInternals, prev, next, TextWeight);
13621
- }
13622
- /**
13623
- * Handles changes to align attribute custom states
13624
- * @param prev - the previous state
13625
- * @param next - the next state
13626
- */
13627
- alignChanged(prev, next) {
13628
- swapStates(this.elementInternals, prev, next, TextAlign);
13629
- }
13630
- connectedCallback() {
13631
- super.connectedCallback();
13632
- Observable.getNotifier(this).subscribe(this);
13633
- Object.keys(this.$fastController.definition.attributeLookup).forEach(key => {
13634
- this.handleChange(this, key);
13635
- });
13636
- }
13637
- disconnectedCallback() {
13638
- super.disconnectedCallback();
13639
- Observable.getNotifier(this).unsubscribe(this);
13640
- }
13641
- /**
13642
- * Handles changes to observable properties
13643
- * @internal
13644
- * @param source - the source of the change
13645
- * @param propertyName - the property name being changed
13646
- */
13647
- handleChange(source, propertyName) {
13648
- switch (propertyName) {
13649
- case "nowrap":
13650
- case "truncate":
13651
- case "italic":
13652
- case "underline":
13653
- case "strikethrough":
13654
- case "block":
13655
- toggleState(this.elementInternals, propertyName, !!this[propertyName]);
13656
- break;
13657
- }
13658
- }
13659
12848
  }
13660
12849
  __decorateClass$6([attr({
13661
12850
  mode: "boolean"
@@ -13683,7 +12872,7 @@ __decorateClass$6([attr], Text.prototype, "align", 2);
13683
12872
  const styles$4 = css`
13684
12873
  ${display("inline")}
13685
12874
 
13686
- :host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host(${nowrapState}),:host(${nowrapState}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${truncateState}),:host(${truncateState}) ::slotted(*){text-overflow:ellipsis}:host(${blockState}){display:block}:host(${italicState}){font-style:italic}:host(${underlineState}){text-decoration-line:underline}:host(${strikethroughState}){text-decoration-line:line-through}:host(${underlineState}${strikethroughState}){text-decoration-line:line-through underline}:host(${size100State}){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host(${size200State}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${size400State}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${size500State}){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${size600State}){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host(${size700State}){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host(${size800State}){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host(${size900State}){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host(${size1000State}){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host(${monospaceState}){font-family:${fontFamilyMonospace}}:host(${numericState}){font-family:${fontFamilyNumeric}}:host(${mediumState}){font-weight:${fontWeightMedium}}:host(${semiboldState}){font-weight:${fontWeightSemibold}}:host(${boldState}){font-weight:${fontWeightBold}}:host(${centerState}){text-align:center}:host(${endState}){text-align:end}:host(${justifyState}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
12875
+ :host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host([size='200']){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='400']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='500']){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([size='600']){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host([size='700']){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host([size='800']){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host([size='900']){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host([size='1000']){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host([font='monospace']){font-family:${fontFamilyMonospace}}:host([font='numeric']){font-family:${fontFamilyNumeric}}:host([weight='medium']){font-weight:${fontWeightMedium}}:host([weight='semibold']){font-weight:${fontWeightSemibold}}:host([weight='bold']){font-weight:${fontWeightBold}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
13687
12876
 
13688
12877
  const template$4 = html`<slot></slot>`;
13689
12878
 
@@ -13757,8 +12946,10 @@ __decorateClass$5([attr({
13757
12946
  const styles$3 = css`
13758
12947
  ${styles$E}
13759
12948
 
13760
- :host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}${primaryState}){border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}${primaryState}:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}${subtleState}){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}${subtleState}:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}${outlineState}:hover),:host(${pressedState}${transparentState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}${outlineState}:active),:host(${pressedState}${transparentState}:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}${transparentState}){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}${transparentState}:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}${transparentState}:active){color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
13761
- :host(${pressedState}),:host(${pressedState}${primaryState}),:host(${pressedState}${subtleState}),:host(${pressedState}${outlineState}),:host(${pressedState}${transparentState}){background:SelectedItem;color:SelectedItemText}`));
12949
+ :host(${pressedState}){border-color:${colorNeutralStroke1};background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground1};border-width:${strokeWidthThin}}:host(${pressedState}:hover){border-color:${colorNeutralStroke1Hover};background-color:${colorNeutralBackground1Hover}}:host(${pressedState}:active){border-color:${colorNeutralStroke1Pressed};background-color:${colorNeutralBackground1Pressed}}:host(${pressedState}[appearance='primary']){border-color:transparent;background-color:${colorBrandBackgroundSelected};color:${colorNeutralForegroundOnBrand}}:host(${pressedState}[appearance='primary']:hover){background-color:${colorBrandBackgroundHover}}:host(${pressedState}[appearance='primary']:active){background-color:${colorBrandBackgroundPressed}}:host(${pressedState}[appearance='subtle']){border-color:transparent;background-color:${colorSubtleBackgroundSelected};color:${colorNeutralForeground2Selected}}:host(${pressedState}[appearance='subtle']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover}}:host(${pressedState}[appearance='subtle']:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed}}:host(${pressedState}[appearance='outline']),:host(${pressedState}[appearance='transparent']){background-color:${colorTransparentBackgroundSelected}}:host(${pressedState}[appearance='outline']:hover),:host(${pressedState}[appearance='transparent']:hover){background-color:${colorTransparentBackgroundHover}}:host(${pressedState}[appearance='outline']:active),:host(${pressedState}[appearance='transparent']:active){background-color:${colorTransparentBackgroundPressed}}:host(${pressedState}[appearance='transparent']){border-color:transparent;color:${colorNeutralForeground2BrandSelected}}:host(${pressedState}[appearance='transparent']:hover){color:${colorNeutralForeground2BrandHover}}:host(${pressedState}[appearance='transparent']:active){color:${colorNeutralForeground2BrandPressed}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
12950
+ :host(${pressedState}),:host(
12951
+ ${pressedState}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
12952
+ ){background:SelectedItem;color:SelectedItemText}`));
13762
12953
 
13763
12954
  const template$3 = buttonTemplate$1();
13764
12955