@fluentui/web-components 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- <!-- This log was last generated on Fri, 21 Aug 2026 04:08:29 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 25 Aug 2026 04:08:20 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.1.3](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.1.3)
8
+
9
+ Tue, 25 Aug 2026 04:08:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.1.2..@fluentui/web-components_v3.1.3)
11
+
12
+ ### Patches
13
+
14
+ - fix: correct submenu sizing in WebKit ([PR #36603](https://github.com/microsoft/fluentui/pull/36603) by machi@microsoft.com)
15
+ - fix: show TextArea scrollbar for overflowing content ([PR #36621](https://github.com/microsoft/fluentui/pull/36621) by 198982749+Copilot@users.noreply.github.com)
16
+
7
17
  ## [3.1.2](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.1.2)
8
18
 
9
- Fri, 21 Aug 2026 04:08:29 GMT
19
+ Fri, 21 Aug 2026 04:08:41 GMT
10
20
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.1.1..@fluentui/web-components_v3.1.2)
11
21
 
12
22
  ### Patches
@@ -28377,7 +28377,7 @@
28377
28377
  },
28378
28378
  {
28379
28379
  "kind": "javascript-module",
28380
- "path": "src/badge/badge.definition-async.ts",
28380
+ "path": "src/avatar/avatar.definition-async.ts",
28381
28381
  "declarations": [
28382
28382
  {
28383
28383
  "kind": "variable",
@@ -28386,7 +28386,7 @@
28386
28386
  "text": "PartialFASTElementDefinition"
28387
28387
  },
28388
28388
  "default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
28389
- "description": "The async definition configuration for the `<fluent-badge>` element.",
28389
+ "description": "The async definition configuration for the `<fluent-avatar>` element.",
28390
28390
  "privacy": "public"
28391
28391
  }
28392
28392
  ],
@@ -28396,20 +28396,20 @@
28396
28396
  "name": "declarativeDefinition",
28397
28397
  "declaration": {
28398
28398
  "name": "declarativeDefinition",
28399
- "module": "src/badge/badge.definition-async.ts"
28399
+ "module": "src/avatar/avatar.definition-async.ts"
28400
28400
  }
28401
28401
  }
28402
28402
  ]
28403
28403
  },
28404
28404
  {
28405
28405
  "kind": "javascript-module",
28406
- "path": "src/badge/define-async.ts",
28406
+ "path": "src/avatar/define-async.ts",
28407
28407
  "declarations": [],
28408
28408
  "exports": []
28409
28409
  },
28410
28410
  {
28411
28411
  "kind": "javascript-module",
28412
- "path": "src/avatar/avatar.definition-async.ts",
28412
+ "path": "src/badge/badge.definition-async.ts",
28413
28413
  "declarations": [
28414
28414
  {
28415
28415
  "kind": "variable",
@@ -28418,7 +28418,7 @@
28418
28418
  "text": "PartialFASTElementDefinition"
28419
28419
  },
28420
28420
  "default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
28421
- "description": "The async definition configuration for the `<fluent-avatar>` element.",
28421
+ "description": "The async definition configuration for the `<fluent-badge>` element.",
28422
28422
  "privacy": "public"
28423
28423
  }
28424
28424
  ],
@@ -28428,14 +28428,14 @@
28428
28428
  "name": "declarativeDefinition",
28429
28429
  "declaration": {
28430
28430
  "name": "declarativeDefinition",
28431
- "module": "src/avatar/avatar.definition-async.ts"
28431
+ "module": "src/badge/badge.definition-async.ts"
28432
28432
  }
28433
28433
  }
28434
28434
  ]
28435
28435
  },
28436
28436
  {
28437
28437
  "kind": "javascript-module",
28438
- "path": "src/avatar/define-async.ts",
28438
+ "path": "src/badge/define-async.ts",
28439
28439
  "declarations": [],
28440
28440
  "exports": []
28441
28441
  },
@@ -12,8 +12,8 @@
12
12
  --_col-end-width: 0px;
13
13
  --_col-submenu-width: 0px;
14
14
 
15
- contain: content;
16
- block-size: fit-content;
15
+ contain: layout style;
16
+ block-size: auto;
17
17
  max-inline-size: 300px;
18
18
  min-inline-size: 160px;
19
19
  inline-size: auto;
@@ -37,36 +37,36 @@
37
37
  grid-column: 1 / -1;
38
38
  }
39
39
 
40
- :host(:has([role='menuitemradio'], [role='menuitemcheckbox'])) {
40
+ :host(:has(> [role='menuitemradio'], > [role='menuitemcheckbox'])) {
41
41
  --_col-indicator-width: 24px;
42
42
  }
43
43
 
44
- :host(:has([slot='start'])) {
44
+ :host(:has(> * > [slot='start'])) {
45
45
  --_col-start-width: 24px;
46
46
  }
47
47
 
48
- :host(:has([slot='end'])) {
48
+ :host(:has(> * > [slot='end'])) {
49
49
  --_col-end-width: 24px;
50
50
  }
51
51
 
52
- :host(:has([slot='submenu'])) {
52
+ :host(:has(> * > [slot='submenu'])) {
53
53
  --_col-submenu-width: 24px;
54
54
  }
55
55
 
56
56
  @scope {
57
- :scope:has([role='menuitemradio'], [role='menuitemcheckbox']) {
57
+ :scope:has(> [role='menuitemradio'], > [role='menuitemcheckbox']) {
58
58
  --_col-indicator-width: 24px;
59
59
  }
60
60
 
61
- :scope:has([slot='start']) {
61
+ :scope:has(> * > [slot='start']) {
62
62
  --_col-start-width: 24px;
63
63
  }
64
64
 
65
- :scope:has([slot='end']) {
65
+ :scope:has(> * > [slot='end']) {
66
66
  --_col-end-width: 24px;
67
67
  }
68
68
 
69
- :scope:has([slot='submenu']) {
69
+ :scope:has(> * > [slot='submenu']) {
70
70
  --_col-submenu-width: 24px;
71
71
  }
72
72
  }
@@ -14,8 +14,8 @@ export const styles = css `
14
14
  --_col-end-width: 0px;
15
15
  --_col-submenu-width: 0px;
16
16
 
17
- contain: content;
18
- block-size: fit-content;
17
+ contain: layout style;
18
+ block-size: auto;
19
19
  max-inline-size: 300px;
20
20
  min-inline-size: 160px;
21
21
  inline-size: auto;
@@ -39,36 +39,36 @@ export const styles = css `
39
39
  grid-column: 1 / -1;
40
40
  }
41
41
 
42
- :host(:has([role='menuitemradio'], [role='menuitemcheckbox'])) {
42
+ :host(:has(> [role='menuitemradio'], > [role='menuitemcheckbox'])) {
43
43
  --_col-indicator-width: 24px;
44
44
  }
45
45
 
46
- :host(:has([slot='start'])) {
46
+ :host(:has(> * > [slot='start'])) {
47
47
  --_col-start-width: 24px;
48
48
  }
49
49
 
50
- :host(:has([slot='end'])) {
50
+ :host(:has(> * > [slot='end'])) {
51
51
  --_col-end-width: 24px;
52
52
  }
53
53
 
54
- :host(:has([slot='submenu'])) {
54
+ :host(:has(> * > [slot='submenu'])) {
55
55
  --_col-submenu-width: 24px;
56
56
  }
57
57
 
58
58
  @scope {
59
- :scope:has([role='menuitemradio'], [role='menuitemcheckbox']) {
59
+ :scope:has(> [role='menuitemradio'], > [role='menuitemcheckbox']) {
60
60
  --_col-indicator-width: 24px;
61
61
  }
62
62
 
63
- :scope:has([slot='start']) {
63
+ :scope:has(> * > [slot='start']) {
64
64
  --_col-start-width: 24px;
65
65
  }
66
66
 
67
- :scope:has([slot='end']) {
67
+ :scope:has(> * > [slot='end']) {
68
68
  --_col-end-width: 24px;
69
69
  }
70
70
 
71
- :scope:has([slot='submenu']) {
71
+ :scope:has(> * > [slot='submenu']) {
72
72
  --_col-submenu-width: 24px;
73
73
  }
74
74
  }
@@ -89,7 +89,6 @@
89
89
  :host([layout='multiline']) ::slotted([slot='dismiss']) {
90
90
  align-items: start;
91
91
  height: 100%;
92
- padding-block-start: var(--spacingVerticalS);
93
92
  }
94
93
 
95
94
  ::slotted(*) {
@@ -221,6 +221,7 @@ label[hidden] {
221
221
  field-sizing: content;
222
222
  max-block-size: 100%;
223
223
  outline: 0;
224
+ overflow: auto;
224
225
  resize: none;
225
226
  text-align: inherit;
226
227
  }
@@ -226,6 +226,7 @@ export const styles = css `
226
226
  field-sizing: content;
227
227
  max-block-size: 100%;
228
228
  outline: 0;
229
+ overflow: auto;
229
230
  resize: none;
230
231
  text-align: inherit;
231
232
  }
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.styles.js","sourceRoot":"","sources":["../../../src/textarea/textarea.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,8BAA8B,EAC9B,mBAAmB,EACnB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElF;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAkB,GAAG,CAAA;IACpC,OAAO,CAAC,cAAc,CAAC;;;;mBAIR,eAAe;qBACb,iBAAiB;;;wBAGd,uBAAuB;uBACxB,qBAAqB;;;;sBAItB,eAAe;gCACL,oBAAoB;;;eAGrC,uBAAuB;0BACZ,uBAAuB;sBAC3B,mBAAmB;gCACT,4BAA4B;2BACjC,uBAAuB;+BACnB,wBAAwB;;;;;;;;;;mBAUpC,cAAc;;mBAEd,iBAAiB;;;;;;sBAMd,wBAAwB;gCACd,iCAAiC;;;;sBAI3C,0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AA0B;;;2BAGrB,8BAA8B;;;;;;;;;;qBAUpC,kBAAkB;;;;;;;;;;;;;;;;;;;;;yBAqBd,kBAAkB,IAAI,kBAAkB;;;;uBAI1C,kBAAkB;;;;wBAIjB,kBAAkB;2BACf,iBAAiB;;;;;;;2BAOjB,cAAc;wBACjB,kBAAkB;;;;UAIhC,mBAAmB;;;;;;;;yBAQJ,iBAAiB;0BAChB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAoDhC,8BAA8B;wBACnB,8BAA8B;;;;;;;;;;;;;;;;;;YAkB1C,mBAAmB;;;;;;;CAO9B,CAAC"}
@@ -9626,7 +9626,7 @@ MenuItem.define(definition$k);
9626
9626
 
9627
9627
  const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
9628
9628
 
9629
- const styles$j = css`${display("grid")} :host{--_col-indicator-width:0px;--_col-start-width:0px;--_col-content-width:1fr;--_col-end-width:0px;--_col-submenu-width:0px;contain:content;block-size:fit-content;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};grid-template-columns:10px var(--_col-indicator-width) var(--_col-start-width) var(--_col-content-width) var(--_col-end-width) var(--_col-submenu-width) 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}:host(:has([role='menuitemradio'],[role='menuitemcheckbox'])){--_col-indicator-width:24px}:host(:has([slot='start'])){--_col-start-width:24px}:host(:has([slot='end'])){--_col-end-width:24px}:host(:has([slot='submenu'])){--_col-submenu-width:24px}@scope{:scope:has([role='menuitemradio'],[role='menuitemcheckbox']){--_col-indicator-width:24px}:scope:has([slot='start']){--_col-start-width:24px}:scope:has([slot='end']){--_col-end-width:24px}:scope:has([slot='submenu']){--_col-submenu-width:24px}}`;
9629
+ const styles$j = css`${display("grid")} :host{--_col-indicator-width:0px;--_col-start-width:0px;--_col-content-width:1fr;--_col-end-width:0px;--_col-submenu-width:0px;contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};grid-template-columns:10px var(--_col-indicator-width) var(--_col-start-width) var(--_col-content-width) var(--_col-end-width) var(--_col-submenu-width) 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}:host(:has(>[role='menuitemradio'],>[role='menuitemcheckbox'])){--_col-indicator-width:24px}:host(:has(>*>[slot='start'])){--_col-start-width:24px}:host(:has(>*>[slot='end'])){--_col-end-width:24px}:host(:has(>*>[slot='submenu'])){--_col-submenu-width:24px}@scope{:scope:has(>[role='menuitemradio'],>[role='menuitemcheckbox']){--_col-indicator-width:24px}:scope:has(>*>[slot='start']){--_col-start-width:24px}:scope:has(>*>[slot='end']){--_col-end-width:24px}:scope:has(>*>[slot='submenu']){--_col-submenu-width:24px}}`;
9630
9630
 
9631
9631
  function menuTemplate$1() {
9632
9632
  return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
@@ -12945,7 +12945,7 @@ const TextAreaResize = {
12945
12945
  };
12946
12946
  const tagName$6 = `${FluentDesignSystem.prefix}-textarea`;
12947
12947
 
12948
- const styles$6 = css`${display("inline-block")} :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(${nativeDisabledState})){--resize:both}:host([resize='horizontal']:not(${nativeDisabledState})){--resize:horizontal}:host([resize='vertical']:not(${nativeDisabledState})){--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(${nativeDisabledState}){--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(${nativeDisabledState}) .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}}@media (forced-colors:active){: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(${nativeDisabledState}){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;
12948
+ const styles$6 = css`${display("inline-block")} :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(${nativeDisabledState})){--resize:both}:host([resize='horizontal']:not(${nativeDisabledState})){--resize:horizontal}:host([resize='vertical']:not(${nativeDisabledState})){--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(${nativeDisabledState}){--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(${nativeDisabledState}) .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;overflow:auto;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}@media (forced-colors:active){: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(${nativeDisabledState}){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;
12949
12949
 
12950
12950
  function textAreaTemplate() {
12951
12951
  return html`<template><label ${ref("labelEl")} for=control part=label><slot name=label ${slotted("labelSlottedNodes")}></slot></label><div class=root part=root ${ref("rootEl")}><textarea ${ref("controlEl")} id=control class=control part=control ?required=${(x) => x.required} ?disabled=${(x) => x.disabled} ?readonly=${(x) => x.readOnly} ?spellcheck=${(x) => x.spellcheck} autocomplete=${(x) => x.autocomplete} maxlength=${(x) => x.maxLength} minlength=${(x) => x.minLength} placeholder=${(x) => x.placeholder} @change=${(x) => x.handleControlChange()} @select=${(x) => x.handleControlSelect()} @input=${(x) => x.handleControlInput()}></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;