@fluentui/react-textarea 9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.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 +9 -9
- package/README.md +0 -6
- package/package.json +8 -11
- package/lib/components/Textarea/Textarea.module.css +0 -210
- package/lib/components/Textarea/useTextareaStyles.styles.css.js +0 -11
- package/lib/components/Textarea/useTextareaStyles.styles.css.js.map +0 -1
- package/lib/components/Textarea/useTextareaStyles.styles.raw.css.js +0 -11
- package/lib/components/Textarea/useTextareaStyles.styles.raw.css.js.map +0 -1
- package/lib-commonjs/components/Textarea/Textarea.module.css +0 -210
- package/lib-commonjs/components/Textarea/useTextareaStyles.styles.css.cjs +0 -30
- package/lib-commonjs/components/Textarea/useTextareaStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/Textarea/useTextareaStyles.styles.raw.css.cjs +0 -30
- package/lib-commonjs/components/Textarea/useTextareaStyles.styles.raw.css.cjs.map +0 -1
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:
|
|
3
|
+
<!-- This log was last generated on Tue, 03 Nov 2026 14:18:14 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.1-experimental.
|
|
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)
|
|
8
8
|
|
|
9
|
-
Tue, 03 Nov 2026 14:
|
|
9
|
+
Tue, 03 Nov 2026 14:18:14 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Release 9.75.1-experimental.
|
|
14
|
-
- Bump @fluentui/react-field to v9.75.1-experimental.
|
|
15
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.
|
|
16
|
-
- Bump @fluentui/react-shared-contexts to v9.75.1-experimental.
|
|
17
|
-
- Bump @fluentui/react-theme to v9.75.1-experimental.
|
|
18
|
-
- Bump @fluentui/react-utilities to v9.75.1-experimental.
|
|
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)
|
|
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,9 +18,3 @@ 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. All component rules are in `@layer fluent` and use the theme custom properties supplied by `FluentProvider`.
|
package/package.json
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-textarea",
|
|
3
|
-
"version": "9.75.1-experimental.
|
|
3
|
+
"version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.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":
|
|
9
|
-
"**/*.css"
|
|
10
|
-
],
|
|
8
|
+
"sideEffects": false,
|
|
11
9
|
"repository": {
|
|
12
10
|
"type": "git",
|
|
13
11
|
"url": "https://github.com/microsoft/fluentui"
|
|
14
12
|
},
|
|
15
13
|
"license": "MIT",
|
|
16
14
|
"dependencies": {
|
|
17
|
-
"@fluentui/react-field": "9.75.1-experimental.
|
|
18
|
-
"@fluentui/react-jsx-runtime": "9.75.1-experimental.
|
|
19
|
-
"@fluentui/react-shared-contexts": "9.75.1-experimental.
|
|
20
|
-
"@fluentui/react-theme": "9.75.1-experimental.
|
|
21
|
-
"@fluentui/react-utilities": "9.75.1-experimental.
|
|
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",
|
|
22
20
|
"@griffel/react": "^1.5.32",
|
|
23
|
-
"@swc/helpers": "^0.5.1"
|
|
24
|
-
"clsx": "^2.1.1"
|
|
21
|
+
"@swc/helpers": "^0.5.1"
|
|
25
22
|
},
|
|
26
23
|
"peerDependencies": {
|
|
27
24
|
"@types/react": ">=16.14.0 <20.0.0",
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
@layer fluent {
|
|
2
|
-
.root {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
position: relative;
|
|
6
|
-
padding: 0 0 var(--strokeWidthThick) 0;
|
|
7
|
-
margin: 0;
|
|
8
|
-
border-radius: var(--borderRadiusMedium);
|
|
9
|
-
vertical-align: top;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.disabled {
|
|
13
|
-
background-color: var(--colorTransparentBackground);
|
|
14
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.filled:where(:not(.disabled)):hover,
|
|
18
|
-
.filled:where(:not(.disabled)):focus-within {
|
|
19
|
-
border-top-color: var(--colorTransparentStrokeInteractive);
|
|
20
|
-
border-inline-end-color: var(--colorTransparentStrokeInteractive);
|
|
21
|
-
border-bottom-color: var(--colorTransparentStrokeInteractive);
|
|
22
|
-
border-inline-start-color: var(--colorTransparentStrokeInteractive);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.filled:where(:not(.disabled)) {
|
|
26
|
-
border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.filled-darker:where(:not(.disabled)) {
|
|
30
|
-
background-color: var(--colorNeutralBackground3);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.filled-lighter:where(:not(.disabled)) {
|
|
34
|
-
background-color: var(--colorNeutralBackground1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.filled-darker-shadow:where(:not(.disabled)) {
|
|
38
|
-
background-color: var(--colorNeutralBackground3);
|
|
39
|
-
border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
|
|
40
|
-
box-shadow: var(--shadow2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.filled-lighter-shadow:where(:not(.disabled)) {
|
|
44
|
-
background-color: var(--colorNeutralBackground1);
|
|
45
|
-
border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
|
|
46
|
-
box-shadow: var(--shadow2);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.outline:where(:not(.disabled)) {
|
|
50
|
-
background-color: var(--colorNeutralBackground1);
|
|
51
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
|
|
52
|
-
border-bottom-color: var(--colorNeutralStrokeAccessible);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.root:where(:not(.disabled))::after {
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
content: '';
|
|
58
|
-
position: absolute;
|
|
59
|
-
inset-inline-start: calc(var(--strokeWidthThin) * -1);
|
|
60
|
-
bottom: calc(var(--strokeWidthThin) * -1);
|
|
61
|
-
inset-inline-end: calc(var(--strokeWidthThin) * -1);
|
|
62
|
-
height: max(var(--strokeWidthThick), var(--borderRadiusMedium));
|
|
63
|
-
border-end-start-radius: var(--borderRadiusMedium);
|
|
64
|
-
border-end-end-radius: var(--borderRadiusMedium);
|
|
65
|
-
border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
|
|
66
|
-
clip-path: inset(calc(100% - var(--strokeWidthThick)) 0 0 0);
|
|
67
|
-
transform: scaleX(0);
|
|
68
|
-
transition-property: transform;
|
|
69
|
-
transition-duration: var(--durationUltraFast);
|
|
70
|
-
transition-delay: var(--curveAccelerateMid);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.root:where(:not(.disabled)):focus-within::after {
|
|
74
|
-
transform: scaleX(1);
|
|
75
|
-
transition-property: transform;
|
|
76
|
-
transition-duration: var(--durationNormal);
|
|
77
|
-
transition-delay: var(--curveDecelerateMid);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.root:where(:not(.disabled)):focus-within:active::after {
|
|
81
|
-
border-bottom-color: var(--colorCompoundBrandStrokePressed);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.root:where(:not(.disabled)):focus-within {
|
|
85
|
-
outline-width: var(--strokeWidthThick);
|
|
86
|
-
outline-style: solid;
|
|
87
|
-
outline-color: transparent;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.outline:where(:not(.disabled)):focus-within {
|
|
91
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
|
|
92
|
-
border-bottom-color: var(--colorCompoundBrandStroke);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.outline:where(:not(.disabled)):hover {
|
|
96
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);
|
|
97
|
-
border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.outline:where(:not(.disabled)):active {
|
|
101
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
|
|
102
|
-
border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.invalid:where(:not(.disabled)):not(:focus-within),
|
|
106
|
-
.invalid:where(:not(.disabled)):hover:not(:focus-within) {
|
|
107
|
-
border-top-color: var(--colorPaletteRedBorder2);
|
|
108
|
-
border-inline-end-color: var(--colorPaletteRedBorder2);
|
|
109
|
-
border-bottom-color: var(--colorPaletteRedBorder2);
|
|
110
|
-
border-inline-start-color: var(--colorPaletteRedBorder2);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.textarea::placeholder {
|
|
114
|
-
color: var(--colorNeutralForeground4);
|
|
115
|
-
opacity: 1;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.textarea {
|
|
119
|
-
border-top-style: none;
|
|
120
|
-
border-inline-end-style: none;
|
|
121
|
-
border-bottom-style: none;
|
|
122
|
-
border-inline-start-style: none;
|
|
123
|
-
margin: 0;
|
|
124
|
-
background-color: transparent;
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
color: var(--colorNeutralForeground1);
|
|
127
|
-
flex-grow: 1;
|
|
128
|
-
font-family: var(--fontFamilyBase);
|
|
129
|
-
height: 100%;
|
|
130
|
-
outline-style: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:where(.small) > .textarea {
|
|
134
|
-
min-height: calc(var(--spacingHorizontalXS) * 10);
|
|
135
|
-
padding: var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));
|
|
136
|
-
max-height: calc(var(--spacingHorizontalXS) * 50);
|
|
137
|
-
font-family: var(--fontFamilyBase);
|
|
138
|
-
font-size: var(--fontSizeBase200);
|
|
139
|
-
font-weight: var(--fontWeightRegular);
|
|
140
|
-
line-height: var(--lineHeightBase200);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
:where(.medium) > .textarea {
|
|
144
|
-
min-height: calc(var(--spacingHorizontalXS) * 13);
|
|
145
|
-
padding: var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));
|
|
146
|
-
max-height: calc(var(--spacingHorizontalXS) * 65);
|
|
147
|
-
font-family: var(--fontFamilyBase);
|
|
148
|
-
font-size: var(--fontSizeBase300);
|
|
149
|
-
font-weight: var(--fontWeightRegular);
|
|
150
|
-
line-height: var(--lineHeightBase300);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:where(.large) > .textarea {
|
|
154
|
-
min-height: calc(var(--spacingHorizontalXS) * 16);
|
|
155
|
-
padding: var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));
|
|
156
|
-
max-height: calc(var(--spacingHorizontalXS) * 80);
|
|
157
|
-
font-family: var(--fontFamilyBase);
|
|
158
|
-
font-size: var(--fontSizeBase400);
|
|
159
|
-
font-weight: var(--fontWeightRegular);
|
|
160
|
-
line-height: var(--lineHeightBase400);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:where(.none) > .textarea {
|
|
164
|
-
resize: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
:where(.both) > .textarea {
|
|
168
|
-
resize: both;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
:where(.horizontal) > .textarea {
|
|
172
|
-
resize: horizontal;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:where(.vertical) > .textarea {
|
|
176
|
-
resize: vertical;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
:where(.disabled) > .textarea::placeholder {
|
|
180
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:where(.disabled) > .textarea {
|
|
184
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
185
|
-
cursor: not-allowed;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@media (forced-colors: active) {
|
|
189
|
-
.disabled {
|
|
190
|
-
border-top-color: GrayText;
|
|
191
|
-
border-inline-end-color: GrayText;
|
|
192
|
-
border-bottom-color: GrayText;
|
|
193
|
-
border-inline-start-color: GrayText;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
198
|
-
.root:where(:not(.disabled))::after {
|
|
199
|
-
transition-duration: 0.01ms;
|
|
200
|
-
transition-delay: 0.01ms;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
205
|
-
.root:where(:not(.disabled)):focus-within::after {
|
|
206
|
-
transition-duration: 0.01ms;
|
|
207
|
-
transition-delay: 0.01ms;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
@layer fluent {
|
|
2
|
-
.root {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
position: relative;
|
|
6
|
-
padding: 0 0 var(--strokeWidthThick) 0;
|
|
7
|
-
margin: 0;
|
|
8
|
-
border-radius: var(--borderRadiusMedium);
|
|
9
|
-
vertical-align: top;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.disabled {
|
|
13
|
-
background-color: var(--colorTransparentBackground);
|
|
14
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.filled:where(:not(.disabled)):hover,
|
|
18
|
-
.filled:where(:not(.disabled)):focus-within {
|
|
19
|
-
border-top-color: var(--colorTransparentStrokeInteractive);
|
|
20
|
-
border-inline-end-color: var(--colorTransparentStrokeInteractive);
|
|
21
|
-
border-bottom-color: var(--colorTransparentStrokeInteractive);
|
|
22
|
-
border-inline-start-color: var(--colorTransparentStrokeInteractive);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.filled:where(:not(.disabled)) {
|
|
26
|
-
border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.filled-darker:where(:not(.disabled)) {
|
|
30
|
-
background-color: var(--colorNeutralBackground3);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.filled-lighter:where(:not(.disabled)) {
|
|
34
|
-
background-color: var(--colorNeutralBackground1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.filled-darker-shadow:where(:not(.disabled)) {
|
|
38
|
-
background-color: var(--colorNeutralBackground3);
|
|
39
|
-
border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
|
|
40
|
-
box-shadow: var(--shadow2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.filled-lighter-shadow:where(:not(.disabled)) {
|
|
44
|
-
background-color: var(--colorNeutralBackground1);
|
|
45
|
-
border: var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);
|
|
46
|
-
box-shadow: var(--shadow2);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.outline:where(:not(.disabled)) {
|
|
50
|
-
background-color: var(--colorNeutralBackground1);
|
|
51
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
|
|
52
|
-
border-bottom-color: var(--colorNeutralStrokeAccessible);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.root:where(:not(.disabled))::after {
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
content: '';
|
|
58
|
-
position: absolute;
|
|
59
|
-
inset-inline-start: calc(var(--strokeWidthThin) * -1);
|
|
60
|
-
bottom: calc(var(--strokeWidthThin) * -1);
|
|
61
|
-
inset-inline-end: calc(var(--strokeWidthThin) * -1);
|
|
62
|
-
height: max(var(--strokeWidthThick), var(--borderRadiusMedium));
|
|
63
|
-
border-end-start-radius: var(--borderRadiusMedium);
|
|
64
|
-
border-end-end-radius: var(--borderRadiusMedium);
|
|
65
|
-
border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
|
|
66
|
-
clip-path: inset(calc(100% - var(--strokeWidthThick)) 0 0 0);
|
|
67
|
-
transform: scaleX(0);
|
|
68
|
-
transition-property: transform;
|
|
69
|
-
transition-duration: var(--durationUltraFast);
|
|
70
|
-
transition-delay: var(--curveAccelerateMid);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.root:where(:not(.disabled)):focus-within::after {
|
|
74
|
-
transform: scaleX(1);
|
|
75
|
-
transition-property: transform;
|
|
76
|
-
transition-duration: var(--durationNormal);
|
|
77
|
-
transition-delay: var(--curveDecelerateMid);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.root:where(:not(.disabled)):focus-within:active::after {
|
|
81
|
-
border-bottom-color: var(--colorCompoundBrandStrokePressed);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.root:where(:not(.disabled)):focus-within {
|
|
85
|
-
outline-width: var(--strokeWidthThick);
|
|
86
|
-
outline-style: solid;
|
|
87
|
-
outline-color: transparent;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.outline:where(:not(.disabled)):focus-within {
|
|
91
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
|
|
92
|
-
border-bottom-color: var(--colorCompoundBrandStroke);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.outline:where(:not(.disabled)):hover {
|
|
96
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);
|
|
97
|
-
border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.outline:where(:not(.disabled)):active {
|
|
101
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);
|
|
102
|
-
border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.invalid:where(:not(.disabled)):not(:focus-within),
|
|
106
|
-
.invalid:where(:not(.disabled)):hover:not(:focus-within) {
|
|
107
|
-
border-top-color: var(--colorPaletteRedBorder2);
|
|
108
|
-
border-inline-end-color: var(--colorPaletteRedBorder2);
|
|
109
|
-
border-bottom-color: var(--colorPaletteRedBorder2);
|
|
110
|
-
border-inline-start-color: var(--colorPaletteRedBorder2);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.textarea::placeholder {
|
|
114
|
-
color: var(--colorNeutralForeground4);
|
|
115
|
-
opacity: 1;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.textarea {
|
|
119
|
-
border-top-style: none;
|
|
120
|
-
border-inline-end-style: none;
|
|
121
|
-
border-bottom-style: none;
|
|
122
|
-
border-inline-start-style: none;
|
|
123
|
-
margin: 0;
|
|
124
|
-
background-color: transparent;
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
color: var(--colorNeutralForeground1);
|
|
127
|
-
flex-grow: 1;
|
|
128
|
-
font-family: var(--fontFamilyBase);
|
|
129
|
-
height: 100%;
|
|
130
|
-
outline-style: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:where(.small) > .textarea {
|
|
134
|
-
min-height: calc(var(--spacingHorizontalXS) * 10);
|
|
135
|
-
padding: var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));
|
|
136
|
-
max-height: calc(var(--spacingHorizontalXS) * 50);
|
|
137
|
-
font-family: var(--fontFamilyBase);
|
|
138
|
-
font-size: var(--fontSizeBase200);
|
|
139
|
-
font-weight: var(--fontWeightRegular);
|
|
140
|
-
line-height: var(--lineHeightBase200);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
:where(.medium) > .textarea {
|
|
144
|
-
min-height: calc(var(--spacingHorizontalXS) * 13);
|
|
145
|
-
padding: var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));
|
|
146
|
-
max-height: calc(var(--spacingHorizontalXS) * 65);
|
|
147
|
-
font-family: var(--fontFamilyBase);
|
|
148
|
-
font-size: var(--fontSizeBase300);
|
|
149
|
-
font-weight: var(--fontWeightRegular);
|
|
150
|
-
line-height: var(--lineHeightBase300);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:where(.large) > .textarea {
|
|
154
|
-
min-height: calc(var(--spacingHorizontalXS) * 16);
|
|
155
|
-
padding: var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));
|
|
156
|
-
max-height: calc(var(--spacingHorizontalXS) * 80);
|
|
157
|
-
font-family: var(--fontFamilyBase);
|
|
158
|
-
font-size: var(--fontSizeBase400);
|
|
159
|
-
font-weight: var(--fontWeightRegular);
|
|
160
|
-
line-height: var(--lineHeightBase400);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:where(.none) > .textarea {
|
|
164
|
-
resize: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
:where(.both) > .textarea {
|
|
168
|
-
resize: both;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
:where(.horizontal) > .textarea {
|
|
172
|
-
resize: horizontal;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:where(.vertical) > .textarea {
|
|
176
|
-
resize: vertical;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
:where(.disabled) > .textarea::placeholder {
|
|
180
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:where(.disabled) > .textarea {
|
|
184
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
185
|
-
cursor: not-allowed;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@media (forced-colors: active) {
|
|
189
|
-
.disabled {
|
|
190
|
-
border-top-color: GrayText;
|
|
191
|
-
border-inline-end-color: GrayText;
|
|
192
|
-
border-bottom-color: GrayText;
|
|
193
|
-
border-inline-start-color: GrayText;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
198
|
-
.root:where(:not(.disabled))::after {
|
|
199
|
-
transition-duration: 0.01ms;
|
|
200
|
-
transition-delay: 0.01ms;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
205
|
-
.root:where(:not(.disabled)):focus-within::after {
|
|
206
|
-
transition-duration: 0.01ms;
|
|
207
|
-
transition-delay: 0.01ms;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|