@fluentui/react-textarea 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.0

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,21 +1,21 @@
1
1
  # Change Log - @fluentui/react-textarea
2
2
 
3
- <!-- This log was last generated on Tue, 03 Nov 2026 14:18:14 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Fri, 13 Nov 2026 20:37:02 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-textarea_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
7
+ ## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-textarea_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
8
8
 
9
- Tue, 03 Nov 2026 14:18:14 GMT
9
+ Fri, 13 Nov 2026 20:37:02 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Release 9.75.1-experimental.positioning-engine.20261103-19efe125d1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
- - Bump @fluentui/react-field to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-shared-contexts to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
13
+ - Release 9.75.2-experimental.css-modules.20261113-ba13c87438 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
+ - Bump @fluentui/react-field to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
+ - Bump @fluentui/react-jsx-runtime to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
19
 
20
20
  ## [9.7.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-textarea_v9.7.8)
21
21
 
package/README.md CHANGED
@@ -18,3 +18,9 @@ import { Textarea } from '@fluentui/react-textarea';
18
18
  <Textarea placeholder="Enter text here..." />
19
19
  <Textarea defaultValue="Lorem ipsum dolor" />
20
20
  ```
21
+
22
+ ## Opt-in CSS Modules styles
23
+
24
+ CSS Modules alternatives are available for `Textarea`. The default exports and component imports continue to use Griffel.
25
+
26
+ To opt in, configure your bundler to replace each `use<Component>Styles.styles.js` module with its adjacent `use<Component>Styles.styles.css.js` alternative (or `.styles.ts` with `.styles.css.ts` for source builds). Apply the replacement consistently to client and server bundles. The CSS loader must provide a default class-name map and retain the adjacent `.module.css` asset, including CSS from dependencies. Component rules are unlayered, like Griffel's, and use the theme custom properties supplied by `FluentProvider`.
@@ -0,0 +1,208 @@
1
+ .root {
2
+ display: inline-flex;
3
+ box-sizing: border-box;
4
+ position: relative;
5
+ padding: 0 0 var(--strokeWidthThick) 0;
6
+ margin: 0;
7
+ border-radius: var(--borderRadiusMedium);
8
+ vertical-align: top;
9
+ }
10
+
11
+ .disabled {
12
+ background-color: var(--colorTransparentBackground);
13
+ border: var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);
14
+ }
15
+
16
+ .filled:where(:not(.disabled)):hover,
17
+ .filled:where(:not(.disabled)):focus-within {
18
+ border-top-color: var(--colorTransparentStrokeInteractive);
19
+ border-inline-end-color: var(--colorTransparentStrokeInteractive);
20
+ border-bottom-color: var(--colorTransparentStrokeInteractive);
21
+ border-inline-start-color: var(--colorTransparentStrokeInteractive);
22
+ }
23
+
24
+ .filled:where(:not(.disabled)) {
25
+ border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
26
+ }
27
+
28
+ .filled-darker:where(:not(.disabled)) {
29
+ background-color: var(--colorNeutralBackground3);
30
+ }
31
+
32
+ .filled-lighter:where(:not(.disabled)) {
33
+ background-color: var(--colorNeutralBackground1);
34
+ }
35
+
36
+ .filled-darker-shadow:where(:not(.disabled)) {
37
+ background-color: var(--colorNeutralBackground3);
38
+ border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
39
+ box-shadow: var(--shadow2);
40
+ }
41
+
42
+ .filled-lighter-shadow:where(:not(.disabled)) {
43
+ background-color: var(--colorNeutralBackground1);
44
+ border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
45
+ box-shadow: var(--shadow2);
46
+ }
47
+
48
+ .outline:where(:not(.disabled)) {
49
+ background-color: var(--colorNeutralBackground1);
50
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
51
+ border-bottom-color: var(--colorNeutralStrokeAccessible);
52
+ }
53
+
54
+ .root:where(:not(.disabled))::after {
55
+ box-sizing: border-box;
56
+ content: '';
57
+ position: absolute;
58
+ inset-inline-start: calc(var(--strokeWidthThin) * -1);
59
+ bottom: calc(var(--strokeWidthThin) * -1);
60
+ inset-inline-end: calc(var(--strokeWidthThin) * -1);
61
+ height: max(var(--strokeWidthThick), var(--borderRadiusMedium));
62
+ border-end-start-radius: var(--borderRadiusMedium);
63
+ border-end-end-radius: var(--borderRadiusMedium);
64
+ border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
65
+ clip-path: inset(calc(100% - var(--strokeWidthThick)) 0 0 0);
66
+ transform: scaleX(0);
67
+ transition-property: transform;
68
+ transition-duration: var(--durationUltraFast);
69
+ transition-delay: var(--curveAccelerateMid);
70
+ }
71
+
72
+ .root:where(:not(.disabled)):focus-within::after {
73
+ transform: scaleX(1);
74
+ transition-property: transform;
75
+ transition-duration: var(--durationNormal);
76
+ transition-delay: var(--curveDecelerateMid);
77
+ }
78
+
79
+ .root:where(:not(.disabled)):focus-within:active::after {
80
+ border-bottom-color: var(--colorCompoundBrandStrokePressed);
81
+ }
82
+
83
+ .root:where(:not(.disabled)):focus-within {
84
+ outline-width: var(--strokeWidthThick);
85
+ outline-style: solid;
86
+ outline-color: transparent;
87
+ }
88
+
89
+ .outline:where(:not(.disabled)):focus-within {
90
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
91
+ border-bottom-color: var(--colorCompoundBrandStroke);
92
+ }
93
+
94
+ .outline:where(:not(.disabled)):hover {
95
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);
96
+ border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
97
+ }
98
+
99
+ .outline:where(:not(.disabled)):active {
100
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
101
+ border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
102
+ }
103
+
104
+ .invalid:where(:not(.disabled)):not(:focus-within),
105
+ .invalid:where(:not(.disabled)):hover:not(:focus-within) {
106
+ border-top-color: var(--colorPaletteRedBorder2);
107
+ border-inline-end-color: var(--colorPaletteRedBorder2);
108
+ border-bottom-color: var(--colorPaletteRedBorder2);
109
+ border-inline-start-color: var(--colorPaletteRedBorder2);
110
+ }
111
+
112
+ .textarea::placeholder {
113
+ color: var(--colorNeutralForeground4);
114
+ opacity: 1;
115
+ }
116
+
117
+ .textarea {
118
+ border-top-style: none;
119
+ border-inline-end-style: none;
120
+ border-bottom-style: none;
121
+ border-inline-start-style: none;
122
+ margin: 0;
123
+ background-color: transparent;
124
+ box-sizing: border-box;
125
+ color: var(--colorNeutralForeground1);
126
+ flex-grow: 1;
127
+ font-family: var(--fontFamilyBase);
128
+ height: 100%;
129
+ outline-style: none;
130
+ }
131
+
132
+ :where(.small) > .textarea {
133
+ min-height: calc(var(--spacingHorizontalXS) * 10);
134
+ padding: var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));
135
+ max-height: calc(var(--spacingHorizontalXS) * 50);
136
+ font-family: var(--fontFamilyBase);
137
+ font-size: var(--fontSizeBase200);
138
+ font-weight: var(--fontWeightRegular);
139
+ line-height: var(--lineHeightBase200);
140
+ }
141
+
142
+ :where(.medium) > .textarea {
143
+ min-height: calc(var(--spacingHorizontalXS) * 13);
144
+ padding: var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));
145
+ max-height: calc(var(--spacingHorizontalXS) * 65);
146
+ font-family: var(--fontFamilyBase);
147
+ font-size: var(--fontSizeBase300);
148
+ font-weight: var(--fontWeightRegular);
149
+ line-height: var(--lineHeightBase300);
150
+ }
151
+
152
+ :where(.large) > .textarea {
153
+ min-height: calc(var(--spacingHorizontalXS) * 16);
154
+ padding: var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));
155
+ max-height: calc(var(--spacingHorizontalXS) * 80);
156
+ font-family: var(--fontFamilyBase);
157
+ font-size: var(--fontSizeBase400);
158
+ font-weight: var(--fontWeightRegular);
159
+ line-height: var(--lineHeightBase400);
160
+ }
161
+
162
+ :where(.none) > .textarea {
163
+ resize: none;
164
+ }
165
+
166
+ :where(.both) > .textarea {
167
+ resize: both;
168
+ }
169
+
170
+ :where(.horizontal) > .textarea {
171
+ resize: horizontal;
172
+ }
173
+
174
+ :where(.vertical) > .textarea {
175
+ resize: vertical;
176
+ }
177
+
178
+ :where(.disabled) > .textarea::placeholder {
179
+ color: var(--colorNeutralForegroundDisabled);
180
+ }
181
+
182
+ :where(.disabled) > .textarea {
183
+ color: var(--colorNeutralForegroundDisabled);
184
+ cursor: not-allowed;
185
+ }
186
+
187
+ @media (forced-colors: active) {
188
+ .disabled {
189
+ border-top-color: GrayText;
190
+ border-inline-end-color: GrayText;
191
+ border-bottom-color: GrayText;
192
+ border-inline-start-color: GrayText;
193
+ }
194
+ }
195
+
196
+ @media screen and (prefers-reduced-motion: reduce) {
197
+ .root:where(:not(.disabled))::after {
198
+ transition-duration: 0.01ms;
199
+ transition-delay: 0.01ms;
200
+ }
201
+ }
202
+
203
+ @media screen and (prefers-reduced-motion: reduce) {
204
+ .root:where(:not(.disabled)):focus-within::after {
205
+ transition-duration: 0.01ms;
206
+ transition-delay: 0.01ms;
207
+ }
208
+ }
@@ -0,0 +1,11 @@
1
+ import { clsx } from "clsx";
2
+ import styles from "./Textarea.module.css";
3
+ export const textareaClassNames = {
4
+ root: 'fui-Textarea',
5
+ textarea: 'fui-Textarea__textarea'
6
+ };
7
+ export const useTextareaStyles_unstable = (state)=>{
8
+ state.root.className = clsx(textareaClassNames.root, styles.root, styles[state.size], styles[state.appearance], styles[state.resize], state.appearance.startsWith('filled') && styles.filled, state.textarea.disabled && styles.disabled, String(state.textarea['aria-invalid']) === 'true' && styles.invalid, state.root.className);
9
+ state.textarea.className = clsx(textareaClassNames.textarea, styles.textarea, state.textarea.className);
10
+ return state;
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Textarea/useTextareaStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextareaState, TextareaSlots } from './Textarea.types';\nimport styles from './Textarea.module.css';\n\nexport const textareaClassNames: SlotClassNames<TextareaSlots> = {\n root: 'fui-Textarea',\n textarea: 'fui-Textarea__textarea',\n};\n\nexport const useTextareaStyles_unstable = (state: TextareaState): TextareaState => {\n state.root.className = clsx(\n textareaClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n styles[state.resize],\n state.appearance.startsWith('filled') && styles.filled,\n state.textarea.disabled && styles.disabled,\n String(state.textarea['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.textarea.className = clsx(textareaClassNames.textarea, styles.textarea, state.textarea.className);\n return state;\n};\n"],"names":["clsx","styles","textareaClassNames","root","textarea","useTextareaStyles_unstable","state","className","size","appearance","resize","startsWith","filled","disabled","String","invalid"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF,OAAO,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,GAAGP,KACrBE,mBAAmBC,IAAI,EACvBF,OAAOE,IAAI,EACXF,MAAM,CAACK,MAAME,IAAI,CAAC,EAClBP,MAAM,CAACK,MAAMG,UAAU,CAAC,EACxBR,MAAM,CAACK,MAAMI,MAAM,CAAC,EACpBJ,MAAMG,UAAU,CAACE,UAAU,CAAC,aAAaV,OAAOW,MAAM,EACtDN,MAAMF,QAAQ,CAACS,QAAQ,IAAIZ,OAAOY,QAAQ,EAC1CC,OAAOR,MAAMF,QAAQ,CAAC,eAAe,MAAM,UAAUH,OAAOc,OAAO,EACnET,MAAMH,IAAI,CAACI,SAAS;IAEtBD,MAAMF,QAAQ,CAACG,SAAS,GAAGP,KAAKE,mBAAmBE,QAAQ,EAAEH,OAAOG,QAAQ,EAAEE,MAAMF,QAAQ,CAACG,SAAS;IACtG,OAAOD;AACT,EAAE"}
@@ -0,0 +1,11 @@
1
+ import { clsx } from "clsx";
2
+ import styles from "./Textarea.module.css";
3
+ export const textareaClassNames = {
4
+ root: 'fui-Textarea',
5
+ textarea: 'fui-Textarea__textarea'
6
+ };
7
+ export const useTextareaStyles_unstable = (state)=>{
8
+ state.root.className = clsx(textareaClassNames.root, styles.root, styles[state.size], styles[state.appearance], styles[state.resize], state.appearance.startsWith('filled') && styles.filled, state.textarea.disabled && styles.disabled, String(state.textarea['aria-invalid']) === 'true' && styles.invalid, state.root.className);
9
+ state.textarea.className = clsx(textareaClassNames.textarea, styles.textarea, state.textarea.className);
10
+ return state;
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Textarea/useTextareaStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextareaState, TextareaSlots } from './Textarea.types';\nimport styles from './Textarea.module.css';\n\nexport const textareaClassNames: SlotClassNames<TextareaSlots> = {\n root: 'fui-Textarea',\n textarea: 'fui-Textarea__textarea',\n};\n\nexport const useTextareaStyles_unstable = (state: TextareaState): TextareaState => {\n state.root.className = clsx(\n textareaClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n styles[state.resize],\n state.appearance.startsWith('filled') && styles.filled,\n state.textarea.disabled && styles.disabled,\n String(state.textarea['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.textarea.className = clsx(textareaClassNames.textarea, styles.textarea, state.textarea.className);\n return state;\n};\n"],"names":["clsx","styles","textareaClassNames","root","textarea","useTextareaStyles_unstable","state","className","size","appearance","resize","startsWith","filled","disabled","String","invalid"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF,OAAO,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,GAAGP,KACrBE,mBAAmBC,IAAI,EACvBF,OAAOE,IAAI,EACXF,MAAM,CAACK,MAAME,IAAI,CAAC,EAClBP,MAAM,CAACK,MAAMG,UAAU,CAAC,EACxBR,MAAM,CAACK,MAAMI,MAAM,CAAC,EACpBJ,MAAMG,UAAU,CAACE,UAAU,CAAC,aAAaV,OAAOW,MAAM,EACtDN,MAAMF,QAAQ,CAACS,QAAQ,IAAIZ,OAAOY,QAAQ,EAC1CC,OAAOR,MAAMF,QAAQ,CAAC,eAAe,MAAM,UAAUH,OAAOc,OAAO,EACnET,MAAMH,IAAI,CAACI,SAAS;IAEtBD,MAAMF,QAAQ,CAACG,SAAS,GAAGP,KAAKE,mBAAmBE,QAAQ,EAAEH,OAAOG,QAAQ,EAAEE,MAAMF,QAAQ,CAACG,SAAS;IACtG,OAAOD;AACT,EAAE"}
@@ -0,0 +1,208 @@
1
+ .root {
2
+ display: inline-flex;
3
+ box-sizing: border-box;
4
+ position: relative;
5
+ padding: 0 0 var(--strokeWidthThick) 0;
6
+ margin: 0;
7
+ border-radius: var(--borderRadiusMedium);
8
+ vertical-align: top;
9
+ }
10
+
11
+ .disabled {
12
+ background-color: var(--colorTransparentBackground);
13
+ border: var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);
14
+ }
15
+
16
+ .filled:where(:not(.disabled)):hover,
17
+ .filled:where(:not(.disabled)):focus-within {
18
+ border-top-color: var(--colorTransparentStrokeInteractive);
19
+ border-inline-end-color: var(--colorTransparentStrokeInteractive);
20
+ border-bottom-color: var(--colorTransparentStrokeInteractive);
21
+ border-inline-start-color: var(--colorTransparentStrokeInteractive);
22
+ }
23
+
24
+ .filled:where(:not(.disabled)) {
25
+ border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
26
+ }
27
+
28
+ .filled-darker:where(:not(.disabled)) {
29
+ background-color: var(--colorNeutralBackground3);
30
+ }
31
+
32
+ .filled-lighter:where(:not(.disabled)) {
33
+ background-color: var(--colorNeutralBackground1);
34
+ }
35
+
36
+ .filled-darker-shadow:where(:not(.disabled)) {
37
+ background-color: var(--colorNeutralBackground3);
38
+ border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
39
+ box-shadow: var(--shadow2);
40
+ }
41
+
42
+ .filled-lighter-shadow:where(:not(.disabled)) {
43
+ background-color: var(--colorNeutralBackground1);
44
+ border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
45
+ box-shadow: var(--shadow2);
46
+ }
47
+
48
+ .outline:where(:not(.disabled)) {
49
+ background-color: var(--colorNeutralBackground1);
50
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
51
+ border-bottom-color: var(--colorNeutralStrokeAccessible);
52
+ }
53
+
54
+ .root:where(:not(.disabled))::after {
55
+ box-sizing: border-box;
56
+ content: '';
57
+ position: absolute;
58
+ inset-inline-start: calc(var(--strokeWidthThin) * -1);
59
+ bottom: calc(var(--strokeWidthThin) * -1);
60
+ inset-inline-end: calc(var(--strokeWidthThin) * -1);
61
+ height: max(var(--strokeWidthThick), var(--borderRadiusMedium));
62
+ border-end-start-radius: var(--borderRadiusMedium);
63
+ border-end-end-radius: var(--borderRadiusMedium);
64
+ border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
65
+ clip-path: inset(calc(100% - var(--strokeWidthThick)) 0 0 0);
66
+ transform: scaleX(0);
67
+ transition-property: transform;
68
+ transition-duration: var(--durationUltraFast);
69
+ transition-delay: var(--curveAccelerateMid);
70
+ }
71
+
72
+ .root:where(:not(.disabled)):focus-within::after {
73
+ transform: scaleX(1);
74
+ transition-property: transform;
75
+ transition-duration: var(--durationNormal);
76
+ transition-delay: var(--curveDecelerateMid);
77
+ }
78
+
79
+ .root:where(:not(.disabled)):focus-within:active::after {
80
+ border-bottom-color: var(--colorCompoundBrandStrokePressed);
81
+ }
82
+
83
+ .root:where(:not(.disabled)):focus-within {
84
+ outline-width: var(--strokeWidthThick);
85
+ outline-style: solid;
86
+ outline-color: transparent;
87
+ }
88
+
89
+ .outline:where(:not(.disabled)):focus-within {
90
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
91
+ border-bottom-color: var(--colorCompoundBrandStroke);
92
+ }
93
+
94
+ .outline:where(:not(.disabled)):hover {
95
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);
96
+ border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
97
+ }
98
+
99
+ .outline:where(:not(.disabled)):active {
100
+ border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
101
+ border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
102
+ }
103
+
104
+ .invalid:where(:not(.disabled)):not(:focus-within),
105
+ .invalid:where(:not(.disabled)):hover:not(:focus-within) {
106
+ border-top-color: var(--colorPaletteRedBorder2);
107
+ border-inline-end-color: var(--colorPaletteRedBorder2);
108
+ border-bottom-color: var(--colorPaletteRedBorder2);
109
+ border-inline-start-color: var(--colorPaletteRedBorder2);
110
+ }
111
+
112
+ .textarea::placeholder {
113
+ color: var(--colorNeutralForeground4);
114
+ opacity: 1;
115
+ }
116
+
117
+ .textarea {
118
+ border-top-style: none;
119
+ border-inline-end-style: none;
120
+ border-bottom-style: none;
121
+ border-inline-start-style: none;
122
+ margin: 0;
123
+ background-color: transparent;
124
+ box-sizing: border-box;
125
+ color: var(--colorNeutralForeground1);
126
+ flex-grow: 1;
127
+ font-family: var(--fontFamilyBase);
128
+ height: 100%;
129
+ outline-style: none;
130
+ }
131
+
132
+ :where(.small) > .textarea {
133
+ min-height: calc(var(--spacingHorizontalXS) * 10);
134
+ padding: var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));
135
+ max-height: calc(var(--spacingHorizontalXS) * 50);
136
+ font-family: var(--fontFamilyBase);
137
+ font-size: var(--fontSizeBase200);
138
+ font-weight: var(--fontWeightRegular);
139
+ line-height: var(--lineHeightBase200);
140
+ }
141
+
142
+ :where(.medium) > .textarea {
143
+ min-height: calc(var(--spacingHorizontalXS) * 13);
144
+ padding: var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));
145
+ max-height: calc(var(--spacingHorizontalXS) * 65);
146
+ font-family: var(--fontFamilyBase);
147
+ font-size: var(--fontSizeBase300);
148
+ font-weight: var(--fontWeightRegular);
149
+ line-height: var(--lineHeightBase300);
150
+ }
151
+
152
+ :where(.large) > .textarea {
153
+ min-height: calc(var(--spacingHorizontalXS) * 16);
154
+ padding: var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));
155
+ max-height: calc(var(--spacingHorizontalXS) * 80);
156
+ font-family: var(--fontFamilyBase);
157
+ font-size: var(--fontSizeBase400);
158
+ font-weight: var(--fontWeightRegular);
159
+ line-height: var(--lineHeightBase400);
160
+ }
161
+
162
+ :where(.none) > .textarea {
163
+ resize: none;
164
+ }
165
+
166
+ :where(.both) > .textarea {
167
+ resize: both;
168
+ }
169
+
170
+ :where(.horizontal) > .textarea {
171
+ resize: horizontal;
172
+ }
173
+
174
+ :where(.vertical) > .textarea {
175
+ resize: vertical;
176
+ }
177
+
178
+ :where(.disabled) > .textarea::placeholder {
179
+ color: var(--colorNeutralForegroundDisabled);
180
+ }
181
+
182
+ :where(.disabled) > .textarea {
183
+ color: var(--colorNeutralForegroundDisabled);
184
+ cursor: not-allowed;
185
+ }
186
+
187
+ @media (forced-colors: active) {
188
+ .disabled {
189
+ border-top-color: GrayText;
190
+ border-inline-end-color: GrayText;
191
+ border-bottom-color: GrayText;
192
+ border-inline-start-color: GrayText;
193
+ }
194
+ }
195
+
196
+ @media screen and (prefers-reduced-motion: reduce) {
197
+ .root:where(:not(.disabled))::after {
198
+ transition-duration: 0.01ms;
199
+ transition-delay: 0.01ms;
200
+ }
201
+ }
202
+
203
+ @media screen and (prefers-reduced-motion: reduce) {
204
+ .root:where(:not(.disabled)):focus-within::after {
205
+ transition-duration: 0.01ms;
206
+ transition-delay: 0.01ms;
207
+ }
208
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get textareaClassNames () {
13
+ return textareaClassNames;
14
+ },
15
+ get useTextareaStyles_unstable () {
16
+ return useTextareaStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _Textareamodulecss = /*#__PURE__*/ _interop_require_default._(require("./Textarea.module.css"));
22
+ const textareaClassNames = {
23
+ root: 'fui-Textarea',
24
+ textarea: 'fui-Textarea__textarea'
25
+ };
26
+ const useTextareaStyles_unstable = (state)=>{
27
+ state.root.className = (0, _clsx.clsx)(textareaClassNames.root, _Textareamodulecss.default.root, _Textareamodulecss.default[state.size], _Textareamodulecss.default[state.appearance], _Textareamodulecss.default[state.resize], state.appearance.startsWith('filled') && _Textareamodulecss.default.filled, state.textarea.disabled && _Textareamodulecss.default.disabled, String(state.textarea['aria-invalid']) === 'true' && _Textareamodulecss.default.invalid, state.root.className);
28
+ state.textarea.className = (0, _clsx.clsx)(textareaClassNames.textarea, _Textareamodulecss.default.textarea, state.textarea.className);
29
+ return state;
30
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Textarea/useTextareaStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextareaState, TextareaSlots } from './Textarea.types';\nimport styles from './Textarea.module.css';\n\nexport const textareaClassNames: SlotClassNames<TextareaSlots> = {\n root: 'fui-Textarea',\n textarea: 'fui-Textarea__textarea',\n};\n\nexport const useTextareaStyles_unstable = (state: TextareaState): TextareaState => {\n state.root.className = clsx(\n textareaClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n styles[state.resize],\n state.appearance.startsWith('filled') && styles.filled,\n state.textarea.disabled && styles.disabled,\n String(state.textarea['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.textarea.className = clsx(textareaClassNames.textarea, styles.textarea, state.textarea.className);\n return state;\n};\n"],"names":["clsx","styles","textareaClassNames","root","textarea","useTextareaStyles_unstable","state","className","size","appearance","resize","startsWith","filled","disabled","String","invalid"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;4EAGT,wBAAwB;AAEpC,2BAA0D;IAC/DC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEK,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,OAAGP,UAAAA,EACrBE,mBAAmBC,IAAI,EACvBF,0BAAAA,CAAOE,IAAI,EACXF,0BAAM,CAACK,MAAME,IAAI,CAAC,EAClBP,0BAAM,CAACK,MAAMG,UAAU,CAAC,EACxBR,0BAAM,CAACK,MAAMI,MAAM,CAAC,EACpBJ,MAAMG,UAAU,CAACE,UAAU,CAAC,aAAaV,0BAAAA,CAAOW,MAAM,EACtDN,MAAMF,QAAQ,CAACS,QAAQ,IAAIZ,0BAAAA,CAAOY,QAAQ,EAC1CC,OAAOR,MAAMF,QAAQ,CAAC,eAAe,MAAM,UAAUH,0BAAAA,CAAOc,OAAO,EACnET,MAAMH,IAAI,CAACI,SAAS;IAEtBD,MAAMF,QAAQ,CAACG,SAAS,OAAGP,UAAAA,EAAKE,mBAAmBE,QAAQ,EAAEH,0BAAAA,CAAOG,QAAQ,EAAEE,MAAMF,QAAQ,CAACG,SAAS;IACtG,OAAOD;AACT,EAAE"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get textareaClassNames () {
13
+ return textareaClassNames;
14
+ },
15
+ get useTextareaStyles_unstable () {
16
+ return useTextareaStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _Textareamodulecss = /*#__PURE__*/ _interop_require_default._(require("./Textarea.module.css"));
22
+ const textareaClassNames = {
23
+ root: 'fui-Textarea',
24
+ textarea: 'fui-Textarea__textarea'
25
+ };
26
+ const useTextareaStyles_unstable = (state)=>{
27
+ state.root.className = (0, _clsx.clsx)(textareaClassNames.root, _Textareamodulecss.default.root, _Textareamodulecss.default[state.size], _Textareamodulecss.default[state.appearance], _Textareamodulecss.default[state.resize], state.appearance.startsWith('filled') && _Textareamodulecss.default.filled, state.textarea.disabled && _Textareamodulecss.default.disabled, String(state.textarea['aria-invalid']) === 'true' && _Textareamodulecss.default.invalid, state.root.className);
28
+ state.textarea.className = (0, _clsx.clsx)(textareaClassNames.textarea, _Textareamodulecss.default.textarea, state.textarea.className);
29
+ return state;
30
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Textarea/useTextareaStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextareaState, TextareaSlots } from './Textarea.types';\nimport styles from './Textarea.module.css';\n\nexport const textareaClassNames: SlotClassNames<TextareaSlots> = {\n root: 'fui-Textarea',\n textarea: 'fui-Textarea__textarea',\n};\n\nexport const useTextareaStyles_unstable = (state: TextareaState): TextareaState => {\n state.root.className = clsx(\n textareaClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n styles[state.resize],\n state.appearance.startsWith('filled') && styles.filled,\n state.textarea.disabled && styles.disabled,\n String(state.textarea['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.textarea.className = clsx(textareaClassNames.textarea, styles.textarea, state.textarea.className);\n return state;\n};\n"],"names":["clsx","styles","textareaClassNames","root","textarea","useTextareaStyles_unstable","state","className","size","appearance","resize","startsWith","filled","disabled","String","invalid"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;4EAGT,wBAAwB;AAEpC,2BAA0D;IAC/DC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEK,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,OAAGP,UAAAA,EACrBE,mBAAmBC,IAAI,EACvBF,0BAAAA,CAAOE,IAAI,EACXF,0BAAM,CAACK,MAAME,IAAI,CAAC,EAClBP,0BAAM,CAACK,MAAMG,UAAU,CAAC,EACxBR,0BAAM,CAACK,MAAMI,MAAM,CAAC,EACpBJ,MAAMG,UAAU,CAACE,UAAU,CAAC,aAAaV,0BAAAA,CAAOW,MAAM,EACtDN,MAAMF,QAAQ,CAACS,QAAQ,IAAIZ,0BAAAA,CAAOY,QAAQ,EAC1CC,OAAOR,MAAMF,QAAQ,CAAC,eAAe,MAAM,UAAUH,0BAAAA,CAAOc,OAAO,EACnET,MAAMH,IAAI,CAACI,SAAS;IAEtBD,MAAMF,QAAQ,CAACG,SAAS,OAAGP,UAAAA,EAAKE,mBAAmBE,QAAQ,EAAEH,0BAAAA,CAAOG,QAAQ,EAAEE,MAAMF,QAAQ,CAACG,SAAS;IACtG,OAAOD;AACT,EAAE"}
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@fluentui/react-textarea",
3
- "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
3
+ "version": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
4
4
  "description": "Fluent UI TextArea component",
5
5
  "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
- "sideEffects": false,
8
+ "sideEffects": [
9
+ "**/*.css"
10
+ ],
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "https://github.com/microsoft/fluentui"
12
14
  },
13
15
  "license": "MIT",
14
16
  "dependencies": {
15
- "@fluentui/react-field": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
16
- "@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
- "@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
18
- "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
19
- "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
+ "@fluentui/react-field": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
18
+ "@fluentui/react-jsx-runtime": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
19
+ "@fluentui/react-shared-contexts": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
20
+ "@fluentui/react-theme": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
21
+ "@fluentui/react-utilities": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
20
22
  "@griffel/react": "^1.5.32",
21
- "@swc/helpers": "^0.5.1"
23
+ "@swc/helpers": "^0.5.1",
24
+ "clsx": "^2.1.1"
22
25
  },
23
26
  "peerDependencies": {
24
27
  "@types/react": ">=16.14.0 <20.0.0",