@charcoal-ui/react 3.10.1 → 3.12.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/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.d.ts +1 -2
- package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +4 -4
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/core/CharcoalProvider.d.ts +1 -1
- package/dist/core/CharcoalProvider.d.ts.map +1 -1
- package/dist/index.cjs.js +123 -351
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +85 -313
- package/dist/index.esm.js.map +1 -1
- package/package.json +13 -17
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +601 -173
- package/src/components/Checkbox/index.story.tsx +57 -77
- package/src/components/Checkbox/index.tsx +7 -2
- package/src/components/DropdownSelector/Popover/index.tsx +1 -2
- package/src/components/IconButton/__snapshots__/index.story.storyshot +6 -8
- package/src/components/IconButton/index.story.tsx +14 -37
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +139 -1
- package/src/components/LoadingSpinner/index.story.tsx +18 -7
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/Modal/useCustomModalOverlay.tsx +5 -4
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +32 -44
- package/src/components/MultiSelect/index.story.tsx +88 -192
- package/src/components/MultiSelect/index.tsx +2 -1
- package/src/components/Radio/__snapshots__/index.story.storyshot +1 -1
- package/src/components/Radio/index.story.tsx +20 -21
- package/src/components/Radio/index.tsx +14 -13
- package/src/components/Switch/__snapshots__/index.story.storyshot +8 -9
- package/src/components/Switch/index.story.tsx +10 -18
- package/src/components/TagItem/__snapshots__/index.story.storyshot +791 -665
- package/src/components/TagItem/index.story.tsx +44 -161
- package/src/components/TextArea/TextArea.story.tsx +62 -24
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +1858 -472
- package/src/components/TextArea/index.tsx +2 -0
- package/src/components/TextField/TextField.story.tsx +77 -67
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +2004 -786
- package/src/components/TextField/index.tsx +2 -0
- package/src/components/a11y.test.tsx +1 -1
- package/src/core/CharcoalProvider.tsx +1 -1
- package/dist/components/Button/index.story.d.ts +0 -14
- package/dist/components/Button/index.story.d.ts.map +0 -1
- package/dist/components/Checkbox/index.story.d.ts +0 -8
- package/dist/components/Checkbox/index.story.d.ts.map +0 -1
- package/dist/components/Clickable/index.story.d.ts +0 -6
- package/dist/components/Clickable/index.story.d.ts.map +0 -1
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts +0 -9
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +0 -1
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts +0 -8
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +0 -1
- package/dist/components/DropdownSelector/Popover/index.story.d.ts +0 -5
- package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +0 -1
- package/dist/components/DropdownSelector/index.story.d.ts +0 -19
- package/dist/components/DropdownSelector/index.story.d.ts.map +0 -1
- package/dist/components/Icon/index.story.d.ts +0 -6
- package/dist/components/Icon/index.story.d.ts.map +0 -1
- package/dist/components/IconButton/index.story.d.ts +0 -9
- package/dist/components/IconButton/index.story.d.ts.map +0 -1
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +0 -8
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +0 -1
- package/dist/components/LoadingSpinner/index.story.d.ts +0 -6
- package/dist/components/LoadingSpinner/index.story.d.ts.map +0 -1
- package/dist/components/Modal/index.story.d.ts +0 -21
- package/dist/components/Modal/index.story.d.ts.map +0 -1
- package/dist/components/MultiSelect/index.story.d.ts +0 -82
- package/dist/components/MultiSelect/index.story.d.ts.map +0 -1
- package/dist/components/MultiSelect/index.test.d.ts +0 -2
- package/dist/components/MultiSelect/index.test.d.ts.map +0 -1
- package/dist/components/Radio/index.story.d.ts +0 -26
- package/dist/components/Radio/index.story.d.ts.map +0 -1
- package/dist/components/Radio/index.test.d.ts +0 -2
- package/dist/components/Radio/index.test.d.ts.map +0 -1
- package/dist/components/SegmentedControl/index.story.d.ts +0 -7
- package/dist/components/SegmentedControl/index.story.d.ts.map +0 -1
- package/dist/components/Switch/index.story.d.ts +0 -9
- package/dist/components/Switch/index.story.d.ts.map +0 -1
- package/dist/components/TagItem/index.story.d.ts +0 -16
- package/dist/components/TagItem/index.story.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.story.d.ts +0 -9
- package/dist/components/TextArea/TextArea.story.d.ts.map +0 -1
- package/dist/components/TextField/TextField.story.d.ts +0 -22
- package/dist/components/TextField/TextField.story.d.ts.map +0 -1
- package/dist/components/a11y.test.d.ts +0 -2
- package/dist/components/a11y.test.d.ts.map +0 -1
- package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +0 -13
|
@@ -1,45 +1,1582 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Storybook Tests TextArea AssistiveText 1`] = `
|
|
4
|
+
.c3 {
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
line-height: 22px;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
display: flow-root;
|
|
9
|
+
color: var(--charcoal-text1);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.c3::before {
|
|
13
|
+
display: block;
|
|
14
|
+
width: 0;
|
|
15
|
+
height: 0;
|
|
16
|
+
content: '';
|
|
17
|
+
margin-top: -4px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.c3::after {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 0;
|
|
23
|
+
height: 0;
|
|
24
|
+
content: '';
|
|
25
|
+
margin-bottom: -4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.c5 {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
line-height: 22px;
|
|
31
|
+
display: flow-root;
|
|
32
|
+
color: var(--charcoal-text3);
|
|
33
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
34
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.c5::before {
|
|
38
|
+
display: block;
|
|
39
|
+
width: 0;
|
|
40
|
+
height: 0;
|
|
41
|
+
content: '';
|
|
42
|
+
margin-top: -4px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.c5::after {
|
|
46
|
+
display: block;
|
|
47
|
+
width: 0;
|
|
48
|
+
height: 0;
|
|
49
|
+
content: '';
|
|
50
|
+
margin-bottom: -4px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
54
|
+
.c5[aria-disabled='false']:hover {
|
|
55
|
+
color: var(--charcoal-text3-hover);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
59
|
+
.c5[aria-disabled='false']:active {
|
|
60
|
+
color: var(--charcoal-text3-press);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
64
|
+
.c5[aria-disabled='false']:active,
|
|
65
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
66
|
+
.c5[aria-disabled='false']:focus,
|
|
67
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
68
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
69
|
+
outline: none;
|
|
70
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.c1 {
|
|
74
|
+
display: -webkit-inline-box;
|
|
75
|
+
display: -webkit-inline-flex;
|
|
76
|
+
display: -ms-inline-flexbox;
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
-webkit-align-items: center;
|
|
79
|
+
-webkit-box-align: center;
|
|
80
|
+
-ms-flex-align: center;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.c1 > .c4 {
|
|
85
|
+
margin-left: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.c2 {
|
|
89
|
+
margin-bottom: 8px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.c8 {
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
line-height: 22px;
|
|
95
|
+
margin-top: 4px;
|
|
96
|
+
margin-bottom: -4px;
|
|
97
|
+
color: var(--charcoal-text2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.c0 {
|
|
101
|
+
display: -webkit-box;
|
|
102
|
+
display: -webkit-flex;
|
|
103
|
+
display: -ms-flexbox;
|
|
104
|
+
display: flex;
|
|
105
|
+
-webkit-flex-direction: column;
|
|
106
|
+
-ms-flex-direction: column;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.c6 {
|
|
111
|
+
position: relative;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
color: var(--charcoal-text2);
|
|
114
|
+
background-color: var(--charcoal-surface3);
|
|
115
|
+
border-radius: 4px;
|
|
116
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
117
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
118
|
+
height: calc(22px * 4 + 18px);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.c6:not([aria-disabled]):hover,
|
|
122
|
+
.c6 [aria-disabled='false']:hover {
|
|
123
|
+
background-color: var(--charcoal-surface3-hover);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.c6:focus-within {
|
|
127
|
+
outline: none;
|
|
128
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.c7 {
|
|
132
|
+
border: none;
|
|
133
|
+
outline: none;
|
|
134
|
+
resize: none;
|
|
135
|
+
font-family: inherit;
|
|
136
|
+
color: inherit;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
-webkit-transform-origin: top left;
|
|
139
|
+
-ms-transform-origin: top left;
|
|
140
|
+
transform-origin: top left;
|
|
141
|
+
-webkit-transform: scale(0.875);
|
|
142
|
+
-ms-transform: scale(0.875);
|
|
143
|
+
transform: scale(0.875);
|
|
144
|
+
width: calc(100% / 0.875);
|
|
145
|
+
font-size: calc(14px / 0.875);
|
|
146
|
+
line-height: calc(22px / 0.875);
|
|
147
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
148
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
149
|
+
-webkit-appearance: none;
|
|
150
|
+
-moz-appearance: none;
|
|
151
|
+
appearance: none;
|
|
152
|
+
background: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.c7::-webkit-input-placeholder {
|
|
156
|
+
color: var(--charcoal-text3);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.c7::-moz-placeholder {
|
|
160
|
+
color: var(--charcoal-text3);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.c7:-ms-input-placeholder {
|
|
164
|
+
color: var(--charcoal-text3);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.c7::placeholder {
|
|
168
|
+
color: var(--charcoal-text3);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
<div
|
|
172
|
+
data-dark={false}
|
|
173
|
+
>
|
|
174
|
+
<div
|
|
175
|
+
className="c0"
|
|
176
|
+
>
|
|
177
|
+
<div
|
|
178
|
+
className="c1 c2"
|
|
179
|
+
style={
|
|
180
|
+
Object {
|
|
181
|
+
"border": 0,
|
|
182
|
+
"clip": "rect(0 0 0 0)",
|
|
183
|
+
"clipPath": "inset(50%)",
|
|
184
|
+
"height": "1px",
|
|
185
|
+
"margin": "-1px",
|
|
186
|
+
"overflow": "hidden",
|
|
187
|
+
"padding": 0,
|
|
188
|
+
"position": "absolute",
|
|
189
|
+
"whiteSpace": "nowrap",
|
|
190
|
+
"width": "1px",
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
<label
|
|
195
|
+
className="c3"
|
|
196
|
+
htmlFor="test-id"
|
|
197
|
+
id="test-id"
|
|
198
|
+
>
|
|
199
|
+
Label
|
|
200
|
+
</label>
|
|
201
|
+
<div
|
|
202
|
+
className="c4 c5"
|
|
203
|
+
>
|
|
204
|
+
<span />
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
<div
|
|
208
|
+
className="c6"
|
|
209
|
+
rows={4}
|
|
210
|
+
>
|
|
211
|
+
<textarea
|
|
212
|
+
aria-labelledby="test-id"
|
|
213
|
+
className="c7"
|
|
214
|
+
disabled={false}
|
|
215
|
+
id="test-id"
|
|
216
|
+
onChange={[Function]}
|
|
217
|
+
readOnly={false}
|
|
218
|
+
required={false}
|
|
219
|
+
rows={4}
|
|
220
|
+
value=""
|
|
221
|
+
/>
|
|
222
|
+
</div>
|
|
223
|
+
<p
|
|
224
|
+
className="c8"
|
|
225
|
+
>
|
|
226
|
+
説明が入ります
|
|
227
|
+
</p>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
`;
|
|
231
|
+
|
|
3
232
|
exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
233
|
+
.c3 {
|
|
234
|
+
font-size: 14px;
|
|
235
|
+
line-height: 22px;
|
|
236
|
+
font-weight: bold;
|
|
237
|
+
display: flow-root;
|
|
238
|
+
color: var(--charcoal-text1);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.c3::before {
|
|
242
|
+
display: block;
|
|
243
|
+
width: 0;
|
|
244
|
+
height: 0;
|
|
245
|
+
content: '';
|
|
246
|
+
margin-top: -4px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.c3::after {
|
|
250
|
+
display: block;
|
|
251
|
+
width: 0;
|
|
252
|
+
height: 0;
|
|
253
|
+
content: '';
|
|
254
|
+
margin-bottom: -4px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.c5 {
|
|
258
|
+
font-size: 14px;
|
|
259
|
+
line-height: 22px;
|
|
260
|
+
display: flow-root;
|
|
261
|
+
color: var(--charcoal-text3);
|
|
262
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
263
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.c5::before {
|
|
267
|
+
display: block;
|
|
268
|
+
width: 0;
|
|
269
|
+
height: 0;
|
|
270
|
+
content: '';
|
|
271
|
+
margin-top: -4px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.c5::after {
|
|
275
|
+
display: block;
|
|
276
|
+
width: 0;
|
|
277
|
+
height: 0;
|
|
278
|
+
content: '';
|
|
279
|
+
margin-bottom: -4px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
283
|
+
.c5[aria-disabled='false']:hover {
|
|
284
|
+
color: var(--charcoal-text3-hover);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
288
|
+
.c5[aria-disabled='false']:active {
|
|
289
|
+
color: var(--charcoal-text3-press);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
293
|
+
.c5[aria-disabled='false']:active,
|
|
294
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
295
|
+
.c5[aria-disabled='false']:focus,
|
|
296
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
297
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
298
|
+
outline: none;
|
|
299
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.c1 {
|
|
303
|
+
display: -webkit-inline-box;
|
|
304
|
+
display: -webkit-inline-flex;
|
|
305
|
+
display: -ms-inline-flexbox;
|
|
306
|
+
display: inline-flex;
|
|
307
|
+
-webkit-align-items: center;
|
|
308
|
+
-webkit-box-align: center;
|
|
309
|
+
-ms-flex-align: center;
|
|
310
|
+
align-items: center;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.c1 > .c4 {
|
|
314
|
+
margin-left: auto;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.c2 {
|
|
318
|
+
margin-bottom: 8px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.c0 {
|
|
322
|
+
display: -webkit-box;
|
|
323
|
+
display: -webkit-flex;
|
|
324
|
+
display: -ms-flexbox;
|
|
325
|
+
display: flex;
|
|
326
|
+
-webkit-flex-direction: column;
|
|
327
|
+
-ms-flex-direction: column;
|
|
328
|
+
flex-direction: column;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.c6 {
|
|
332
|
+
position: relative;
|
|
333
|
+
overflow: hidden;
|
|
334
|
+
color: var(--charcoal-text2);
|
|
335
|
+
background-color: var(--charcoal-surface3);
|
|
336
|
+
border-radius: 4px;
|
|
337
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
338
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
339
|
+
height: calc(22px * 4 + 18px);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.c6:not([aria-disabled]):hover,
|
|
343
|
+
.c6 [aria-disabled='false']:hover {
|
|
344
|
+
background-color: var(--charcoal-surface3-hover);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.c6:focus-within {
|
|
348
|
+
outline: none;
|
|
349
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.c7 {
|
|
353
|
+
border: none;
|
|
354
|
+
outline: none;
|
|
355
|
+
resize: none;
|
|
356
|
+
font-family: inherit;
|
|
357
|
+
color: inherit;
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
-webkit-transform-origin: top left;
|
|
360
|
+
-ms-transform-origin: top left;
|
|
361
|
+
transform-origin: top left;
|
|
362
|
+
-webkit-transform: scale(0.875);
|
|
363
|
+
-ms-transform: scale(0.875);
|
|
364
|
+
transform: scale(0.875);
|
|
365
|
+
width: calc(100% / 0.875);
|
|
366
|
+
font-size: calc(14px / 0.875);
|
|
367
|
+
line-height: calc(22px / 0.875);
|
|
368
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
369
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
370
|
+
-webkit-appearance: none;
|
|
371
|
+
-moz-appearance: none;
|
|
372
|
+
appearance: none;
|
|
373
|
+
background: none;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.c7::-webkit-input-placeholder {
|
|
377
|
+
color: var(--charcoal-text3);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.c7::-moz-placeholder {
|
|
381
|
+
color: var(--charcoal-text3);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.c7:-ms-input-placeholder {
|
|
385
|
+
color: var(--charcoal-text3);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.c7::placeholder {
|
|
389
|
+
color: var(--charcoal-text3);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
<div
|
|
393
|
+
data-dark={false}
|
|
394
|
+
>
|
|
395
|
+
<div
|
|
396
|
+
className="c0"
|
|
397
|
+
>
|
|
398
|
+
<div
|
|
399
|
+
className="c1 c2"
|
|
400
|
+
style={
|
|
401
|
+
Object {
|
|
402
|
+
"border": 0,
|
|
403
|
+
"clip": "rect(0 0 0 0)",
|
|
404
|
+
"clipPath": "inset(50%)",
|
|
405
|
+
"height": "1px",
|
|
406
|
+
"margin": "-1px",
|
|
407
|
+
"overflow": "hidden",
|
|
408
|
+
"padding": 0,
|
|
409
|
+
"position": "absolute",
|
|
410
|
+
"whiteSpace": "nowrap",
|
|
411
|
+
"width": "1px",
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
>
|
|
415
|
+
<label
|
|
416
|
+
className="c3"
|
|
417
|
+
htmlFor="test-id"
|
|
418
|
+
id="test-id"
|
|
419
|
+
>
|
|
420
|
+
Label
|
|
421
|
+
</label>
|
|
422
|
+
<div
|
|
423
|
+
className="c4 c5"
|
|
424
|
+
>
|
|
425
|
+
<span />
|
|
426
|
+
</div>
|
|
427
|
+
</div>
|
|
428
|
+
<div
|
|
429
|
+
className="c6"
|
|
430
|
+
rows={4}
|
|
431
|
+
>
|
|
432
|
+
<textarea
|
|
433
|
+
aria-labelledby="test-id"
|
|
434
|
+
className="c7"
|
|
435
|
+
disabled={false}
|
|
436
|
+
id="test-id"
|
|
437
|
+
onChange={[Function]}
|
|
438
|
+
readOnly={false}
|
|
439
|
+
required={false}
|
|
440
|
+
rows={4}
|
|
441
|
+
value=""
|
|
442
|
+
/>
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
</div>
|
|
446
|
+
`;
|
|
447
|
+
|
|
448
|
+
exports[`Storybook Tests TextArea Default 1`] = `
|
|
449
|
+
.c6 {
|
|
450
|
+
cursor: pointer;
|
|
451
|
+
-webkit-appearance: none;
|
|
452
|
+
-moz-appearance: none;
|
|
453
|
+
appearance: none;
|
|
454
|
+
background: transparent;
|
|
455
|
+
padding: 0;
|
|
456
|
+
border-style: none;
|
|
457
|
+
outline: none;
|
|
458
|
+
color: inherit;
|
|
459
|
+
text-rendering: inherit;
|
|
460
|
+
-webkit-letter-spacing: inherit;
|
|
461
|
+
-moz-letter-spacing: inherit;
|
|
462
|
+
-ms-letter-spacing: inherit;
|
|
463
|
+
letter-spacing: inherit;
|
|
464
|
+
word-spacing: inherit;
|
|
465
|
+
-webkit-text-decoration: none;
|
|
466
|
+
text-decoration: none;
|
|
467
|
+
font: inherit;
|
|
468
|
+
margin: 0;
|
|
469
|
+
overflow: visible;
|
|
470
|
+
text-transform: none;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.c6:disabled,
|
|
474
|
+
.c6[aria-disabled]:not([aria-disabled=false]) {
|
|
475
|
+
cursor: default;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.c6:focus {
|
|
479
|
+
outline: none;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.c6::-moz-focus-inner {
|
|
483
|
+
border-style: none;
|
|
484
|
+
padding: 0;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.c3 {
|
|
488
|
+
font-size: 14px;
|
|
489
|
+
line-height: 22px;
|
|
490
|
+
font-weight: bold;
|
|
491
|
+
display: flow-root;
|
|
492
|
+
color: var(--charcoal-text1);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.c3::before {
|
|
496
|
+
display: block;
|
|
497
|
+
width: 0;
|
|
498
|
+
height: 0;
|
|
499
|
+
content: '';
|
|
500
|
+
margin-top: -4px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.c3::after {
|
|
504
|
+
display: block;
|
|
505
|
+
width: 0;
|
|
506
|
+
height: 0;
|
|
507
|
+
content: '';
|
|
508
|
+
margin-bottom: -4px;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.c5 {
|
|
512
|
+
font-size: 14px;
|
|
513
|
+
line-height: 22px;
|
|
514
|
+
display: flow-root;
|
|
515
|
+
color: var(--charcoal-text3);
|
|
516
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
517
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.c5::before {
|
|
521
|
+
display: block;
|
|
522
|
+
width: 0;
|
|
523
|
+
height: 0;
|
|
524
|
+
content: '';
|
|
525
|
+
margin-top: -4px;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.c5::after {
|
|
529
|
+
display: block;
|
|
530
|
+
width: 0;
|
|
531
|
+
height: 0;
|
|
532
|
+
content: '';
|
|
533
|
+
margin-bottom: -4px;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
537
|
+
.c5[aria-disabled='false']:hover {
|
|
538
|
+
color: var(--charcoal-text3-hover);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
542
|
+
.c5[aria-disabled='false']:active {
|
|
543
|
+
color: var(--charcoal-text3-press);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
547
|
+
.c5[aria-disabled='false']:active,
|
|
548
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
549
|
+
.c5[aria-disabled='false']:focus,
|
|
550
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
551
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
552
|
+
outline: none;
|
|
553
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.c1 {
|
|
557
|
+
display: -webkit-inline-box;
|
|
558
|
+
display: -webkit-inline-flex;
|
|
559
|
+
display: -ms-inline-flexbox;
|
|
560
|
+
display: inline-flex;
|
|
561
|
+
-webkit-align-items: center;
|
|
562
|
+
-webkit-box-align: center;
|
|
563
|
+
-ms-flex-align: center;
|
|
564
|
+
align-items: center;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.c1 > .c4 {
|
|
568
|
+
margin-left: auto;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.c2 {
|
|
572
|
+
margin-bottom: 8px;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.c0 {
|
|
576
|
+
display: -webkit-box;
|
|
577
|
+
display: -webkit-flex;
|
|
578
|
+
display: -ms-flexbox;
|
|
579
|
+
display: flex;
|
|
580
|
+
-webkit-flex-direction: column;
|
|
581
|
+
-ms-flex-direction: column;
|
|
582
|
+
flex-direction: column;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.c7 {
|
|
586
|
+
position: relative;
|
|
587
|
+
overflow: hidden;
|
|
588
|
+
color: var(--charcoal-text2);
|
|
589
|
+
background-color: var(--charcoal-surface3);
|
|
590
|
+
border-radius: 4px;
|
|
591
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
592
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
593
|
+
height: calc(22px * 4 + 18px);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.c7:not([aria-disabled]):hover,
|
|
597
|
+
.c7 [aria-disabled='false']:hover {
|
|
598
|
+
background-color: var(--charcoal-surface3-hover);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.c7:focus-within {
|
|
602
|
+
outline: none;
|
|
603
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.c8 {
|
|
607
|
+
border: none;
|
|
608
|
+
outline: none;
|
|
609
|
+
resize: none;
|
|
610
|
+
font-family: inherit;
|
|
611
|
+
color: inherit;
|
|
612
|
+
box-sizing: border-box;
|
|
613
|
+
-webkit-transform-origin: top left;
|
|
614
|
+
-ms-transform-origin: top left;
|
|
615
|
+
transform-origin: top left;
|
|
616
|
+
-webkit-transform: scale(0.875);
|
|
617
|
+
-ms-transform: scale(0.875);
|
|
618
|
+
transform: scale(0.875);
|
|
619
|
+
width: calc(100% / 0.875);
|
|
620
|
+
font-size: calc(14px / 0.875);
|
|
621
|
+
line-height: calc(22px / 0.875);
|
|
622
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
623
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
624
|
+
-webkit-appearance: none;
|
|
625
|
+
-moz-appearance: none;
|
|
626
|
+
appearance: none;
|
|
627
|
+
background: none;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.c8::-webkit-input-placeholder {
|
|
631
|
+
color: var(--charcoal-text3);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.c8::-moz-placeholder {
|
|
635
|
+
color: var(--charcoal-text3);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.c8:-ms-input-placeholder {
|
|
639
|
+
color: var(--charcoal-text3);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.c8::placeholder {
|
|
643
|
+
color: var(--charcoal-text3);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
<div
|
|
647
|
+
data-dark={false}
|
|
648
|
+
>
|
|
649
|
+
<div
|
|
650
|
+
className="c0"
|
|
651
|
+
>
|
|
652
|
+
<div
|
|
653
|
+
className="c1 c2"
|
|
654
|
+
style={
|
|
655
|
+
Object {
|
|
656
|
+
"border": 0,
|
|
657
|
+
"clip": "rect(0 0 0 0)",
|
|
658
|
+
"clipPath": "inset(50%)",
|
|
659
|
+
"height": "1px",
|
|
660
|
+
"margin": "-1px",
|
|
661
|
+
"overflow": "hidden",
|
|
662
|
+
"padding": 0,
|
|
663
|
+
"position": "absolute",
|
|
664
|
+
"whiteSpace": "nowrap",
|
|
665
|
+
"width": "1px",
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
>
|
|
669
|
+
<label
|
|
670
|
+
className="c3"
|
|
671
|
+
htmlFor="test-id"
|
|
672
|
+
id="test-id"
|
|
673
|
+
>
|
|
674
|
+
Label
|
|
675
|
+
</label>
|
|
676
|
+
<div
|
|
677
|
+
className="c4 c5"
|
|
678
|
+
>
|
|
679
|
+
<span>
|
|
680
|
+
<button
|
|
681
|
+
className="c6"
|
|
682
|
+
onClick={[Function]}
|
|
683
|
+
>
|
|
684
|
+
Text Link
|
|
685
|
+
</button>
|
|
686
|
+
</span>
|
|
687
|
+
</div>
|
|
688
|
+
</div>
|
|
689
|
+
<div
|
|
690
|
+
className="c7"
|
|
691
|
+
rows={4}
|
|
692
|
+
>
|
|
693
|
+
<textarea
|
|
694
|
+
aria-labelledby="test-id"
|
|
695
|
+
className="c8"
|
|
696
|
+
disabled={false}
|
|
697
|
+
id="test-id"
|
|
698
|
+
onChange={[Function]}
|
|
699
|
+
placeholder="Text Area"
|
|
700
|
+
readOnly={false}
|
|
701
|
+
required={false}
|
|
702
|
+
rows={4}
|
|
703
|
+
value=""
|
|
704
|
+
/>
|
|
705
|
+
</div>
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
`;
|
|
709
|
+
|
|
710
|
+
exports[`Storybook Tests TextArea Disabled 1`] = `
|
|
711
|
+
.c3 {
|
|
712
|
+
font-size: 14px;
|
|
713
|
+
line-height: 22px;
|
|
714
|
+
font-weight: bold;
|
|
715
|
+
display: flow-root;
|
|
716
|
+
color: var(--charcoal-text1);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.c3::before {
|
|
720
|
+
display: block;
|
|
721
|
+
width: 0;
|
|
722
|
+
height: 0;
|
|
723
|
+
content: '';
|
|
724
|
+
margin-top: -4px;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.c3::after {
|
|
728
|
+
display: block;
|
|
729
|
+
width: 0;
|
|
730
|
+
height: 0;
|
|
731
|
+
content: '';
|
|
732
|
+
margin-bottom: -4px;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.c5 {
|
|
736
|
+
font-size: 14px;
|
|
737
|
+
line-height: 22px;
|
|
738
|
+
display: flow-root;
|
|
739
|
+
color: var(--charcoal-text3);
|
|
740
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
741
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.c5::before {
|
|
745
|
+
display: block;
|
|
746
|
+
width: 0;
|
|
747
|
+
height: 0;
|
|
748
|
+
content: '';
|
|
749
|
+
margin-top: -4px;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.c5::after {
|
|
753
|
+
display: block;
|
|
754
|
+
width: 0;
|
|
755
|
+
height: 0;
|
|
756
|
+
content: '';
|
|
757
|
+
margin-bottom: -4px;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
761
|
+
.c5[aria-disabled='false']:hover {
|
|
762
|
+
color: var(--charcoal-text3-hover);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
766
|
+
.c5[aria-disabled='false']:active {
|
|
767
|
+
color: var(--charcoal-text3-press);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
771
|
+
.c5[aria-disabled='false']:active,
|
|
772
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
773
|
+
.c5[aria-disabled='false']:focus,
|
|
774
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
775
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
776
|
+
outline: none;
|
|
777
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.c1 {
|
|
781
|
+
display: -webkit-inline-box;
|
|
782
|
+
display: -webkit-inline-flex;
|
|
783
|
+
display: -ms-inline-flexbox;
|
|
784
|
+
display: inline-flex;
|
|
785
|
+
-webkit-align-items: center;
|
|
786
|
+
-webkit-box-align: center;
|
|
787
|
+
-ms-flex-align: center;
|
|
788
|
+
align-items: center;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.c1 > .c4 {
|
|
792
|
+
margin-left: auto;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.c2 {
|
|
796
|
+
margin-bottom: 8px;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.c0 {
|
|
800
|
+
display: -webkit-box;
|
|
801
|
+
display: -webkit-flex;
|
|
802
|
+
display: -ms-flexbox;
|
|
803
|
+
display: flex;
|
|
804
|
+
-webkit-flex-direction: column;
|
|
805
|
+
-ms-flex-direction: column;
|
|
806
|
+
flex-direction: column;
|
|
807
|
+
opacity: 0.32;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.c6 {
|
|
811
|
+
position: relative;
|
|
812
|
+
overflow: hidden;
|
|
813
|
+
color: var(--charcoal-text2);
|
|
814
|
+
background-color: var(--charcoal-surface3);
|
|
815
|
+
border-radius: 4px;
|
|
816
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
817
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
818
|
+
height: calc(22px * 4 + 18px);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.c6:not([aria-disabled]):hover,
|
|
822
|
+
.c6 [aria-disabled='false']:hover {
|
|
823
|
+
background-color: var(--charcoal-surface3-hover);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.c6:focus-within {
|
|
827
|
+
outline: none;
|
|
828
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.c7 {
|
|
832
|
+
border: none;
|
|
833
|
+
outline: none;
|
|
834
|
+
resize: none;
|
|
835
|
+
font-family: inherit;
|
|
836
|
+
color: inherit;
|
|
837
|
+
box-sizing: border-box;
|
|
838
|
+
-webkit-transform-origin: top left;
|
|
839
|
+
-ms-transform-origin: top left;
|
|
840
|
+
transform-origin: top left;
|
|
841
|
+
-webkit-transform: scale(0.875);
|
|
842
|
+
-ms-transform: scale(0.875);
|
|
843
|
+
transform: scale(0.875);
|
|
844
|
+
width: calc(100% / 0.875);
|
|
845
|
+
font-size: calc(14px / 0.875);
|
|
846
|
+
line-height: calc(22px / 0.875);
|
|
847
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
848
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
849
|
+
-webkit-appearance: none;
|
|
850
|
+
-moz-appearance: none;
|
|
851
|
+
appearance: none;
|
|
852
|
+
background: none;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.c7::-webkit-input-placeholder {
|
|
856
|
+
color: var(--charcoal-text3);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.c7::-moz-placeholder {
|
|
860
|
+
color: var(--charcoal-text3);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.c7:-ms-input-placeholder {
|
|
864
|
+
color: var(--charcoal-text3);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.c7::placeholder {
|
|
868
|
+
color: var(--charcoal-text3);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
<div
|
|
872
|
+
data-dark={false}
|
|
873
|
+
>
|
|
874
|
+
<div
|
|
875
|
+
className="c0"
|
|
876
|
+
>
|
|
877
|
+
<div
|
|
878
|
+
className="c1 c2"
|
|
879
|
+
style={
|
|
880
|
+
Object {
|
|
881
|
+
"border": 0,
|
|
882
|
+
"clip": "rect(0 0 0 0)",
|
|
883
|
+
"clipPath": "inset(50%)",
|
|
884
|
+
"height": "1px",
|
|
885
|
+
"margin": "-1px",
|
|
886
|
+
"overflow": "hidden",
|
|
887
|
+
"padding": 0,
|
|
888
|
+
"position": "absolute",
|
|
889
|
+
"whiteSpace": "nowrap",
|
|
890
|
+
"width": "1px",
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
>
|
|
894
|
+
<label
|
|
895
|
+
className="c3"
|
|
896
|
+
htmlFor="test-id"
|
|
897
|
+
id="test-id"
|
|
898
|
+
>
|
|
899
|
+
Label
|
|
900
|
+
</label>
|
|
901
|
+
<div
|
|
902
|
+
className="c4 c5"
|
|
903
|
+
>
|
|
904
|
+
<span />
|
|
905
|
+
</div>
|
|
906
|
+
</div>
|
|
907
|
+
<div
|
|
908
|
+
aria-disabled="true"
|
|
909
|
+
className="c6"
|
|
910
|
+
rows={4}
|
|
911
|
+
>
|
|
912
|
+
<textarea
|
|
913
|
+
aria-labelledby="test-id"
|
|
914
|
+
className="c7"
|
|
915
|
+
disabled={true}
|
|
916
|
+
id="test-id"
|
|
917
|
+
onChange={[Function]}
|
|
918
|
+
readOnly={false}
|
|
919
|
+
required={false}
|
|
920
|
+
rows={4}
|
|
921
|
+
value=""
|
|
922
|
+
/>
|
|
923
|
+
</div>
|
|
924
|
+
</div>
|
|
925
|
+
</div>
|
|
926
|
+
`;
|
|
927
|
+
|
|
928
|
+
exports[`Storybook Tests TextArea Invalid 1`] = `
|
|
929
|
+
.c3 {
|
|
930
|
+
font-size: 14px;
|
|
931
|
+
line-height: 22px;
|
|
932
|
+
font-weight: bold;
|
|
933
|
+
display: flow-root;
|
|
934
|
+
color: var(--charcoal-text1);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.c3::before {
|
|
938
|
+
display: block;
|
|
939
|
+
width: 0;
|
|
940
|
+
height: 0;
|
|
941
|
+
content: '';
|
|
942
|
+
margin-top: -4px;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.c3::after {
|
|
946
|
+
display: block;
|
|
947
|
+
width: 0;
|
|
948
|
+
height: 0;
|
|
949
|
+
content: '';
|
|
950
|
+
margin-bottom: -4px;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.c5 {
|
|
954
|
+
font-size: 14px;
|
|
955
|
+
line-height: 22px;
|
|
956
|
+
display: flow-root;
|
|
957
|
+
color: var(--charcoal-text3);
|
|
958
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
959
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.c5::before {
|
|
963
|
+
display: block;
|
|
964
|
+
width: 0;
|
|
965
|
+
height: 0;
|
|
966
|
+
content: '';
|
|
967
|
+
margin-top: -4px;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.c5::after {
|
|
971
|
+
display: block;
|
|
972
|
+
width: 0;
|
|
973
|
+
height: 0;
|
|
974
|
+
content: '';
|
|
975
|
+
margin-bottom: -4px;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
979
|
+
.c5[aria-disabled='false']:hover {
|
|
980
|
+
color: var(--charcoal-text3-hover);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
984
|
+
.c5[aria-disabled='false']:active {
|
|
985
|
+
color: var(--charcoal-text3-press);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
989
|
+
.c5[aria-disabled='false']:active,
|
|
990
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
991
|
+
.c5[aria-disabled='false']:focus,
|
|
992
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
993
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
994
|
+
outline: none;
|
|
995
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.c1 {
|
|
999
|
+
display: -webkit-inline-box;
|
|
1000
|
+
display: -webkit-inline-flex;
|
|
1001
|
+
display: -ms-inline-flexbox;
|
|
1002
|
+
display: inline-flex;
|
|
1003
|
+
-webkit-align-items: center;
|
|
1004
|
+
-webkit-box-align: center;
|
|
1005
|
+
-ms-flex-align: center;
|
|
1006
|
+
align-items: center;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.c1 > .c4 {
|
|
1010
|
+
margin-left: auto;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.c2 {
|
|
1014
|
+
margin-bottom: 8px;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.c8 {
|
|
1018
|
+
font-size: 14px;
|
|
1019
|
+
line-height: 22px;
|
|
1020
|
+
margin-top: 4px;
|
|
1021
|
+
margin-bottom: -4px;
|
|
1022
|
+
color: var(--charcoal-assertive);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.c0 {
|
|
1026
|
+
display: -webkit-box;
|
|
1027
|
+
display: -webkit-flex;
|
|
1028
|
+
display: -ms-flexbox;
|
|
1029
|
+
display: flex;
|
|
1030
|
+
-webkit-flex-direction: column;
|
|
1031
|
+
-ms-flex-direction: column;
|
|
1032
|
+
flex-direction: column;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.c6 {
|
|
1036
|
+
position: relative;
|
|
1037
|
+
overflow: hidden;
|
|
1038
|
+
color: var(--charcoal-text2);
|
|
1039
|
+
background-color: var(--charcoal-surface3);
|
|
1040
|
+
border-radius: 4px;
|
|
1041
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
1042
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
1043
|
+
height: calc(22px * 4 + 18px);
|
|
1044
|
+
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.c6:not([aria-disabled]):hover,
|
|
1048
|
+
.c6 [aria-disabled='false']:hover {
|
|
1049
|
+
background-color: var(--charcoal-surface3-hover);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.c6:focus-within {
|
|
1053
|
+
outline: none;
|
|
1054
|
+
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.c7 {
|
|
1058
|
+
border: none;
|
|
1059
|
+
outline: none;
|
|
1060
|
+
resize: none;
|
|
1061
|
+
font-family: inherit;
|
|
1062
|
+
color: inherit;
|
|
1063
|
+
box-sizing: border-box;
|
|
1064
|
+
-webkit-transform-origin: top left;
|
|
1065
|
+
-ms-transform-origin: top left;
|
|
1066
|
+
transform-origin: top left;
|
|
1067
|
+
-webkit-transform: scale(0.875);
|
|
1068
|
+
-ms-transform: scale(0.875);
|
|
1069
|
+
transform: scale(0.875);
|
|
1070
|
+
width: calc(100% / 0.875);
|
|
1071
|
+
font-size: calc(14px / 0.875);
|
|
1072
|
+
line-height: calc(22px / 0.875);
|
|
1073
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
1074
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
1075
|
+
-webkit-appearance: none;
|
|
1076
|
+
-moz-appearance: none;
|
|
1077
|
+
appearance: none;
|
|
1078
|
+
background: none;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
.c7::-webkit-input-placeholder {
|
|
1082
|
+
color: var(--charcoal-text3);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.c7::-moz-placeholder {
|
|
1086
|
+
color: var(--charcoal-text3);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.c7:-ms-input-placeholder {
|
|
1090
|
+
color: var(--charcoal-text3);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.c7::placeholder {
|
|
1094
|
+
color: var(--charcoal-text3);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
<div
|
|
1098
|
+
data-dark={false}
|
|
1099
|
+
>
|
|
1100
|
+
<div
|
|
1101
|
+
className="c0"
|
|
1102
|
+
>
|
|
1103
|
+
<div
|
|
1104
|
+
className="c1 c2"
|
|
1105
|
+
style={
|
|
1106
|
+
Object {
|
|
1107
|
+
"border": 0,
|
|
1108
|
+
"clip": "rect(0 0 0 0)",
|
|
1109
|
+
"clipPath": "inset(50%)",
|
|
1110
|
+
"height": "1px",
|
|
1111
|
+
"margin": "-1px",
|
|
1112
|
+
"overflow": "hidden",
|
|
1113
|
+
"padding": 0,
|
|
1114
|
+
"position": "absolute",
|
|
1115
|
+
"whiteSpace": "nowrap",
|
|
1116
|
+
"width": "1px",
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
>
|
|
1120
|
+
<label
|
|
1121
|
+
className="c3"
|
|
1122
|
+
htmlFor="test-id"
|
|
1123
|
+
id="test-id"
|
|
1124
|
+
>
|
|
1125
|
+
Label
|
|
1126
|
+
</label>
|
|
1127
|
+
<div
|
|
1128
|
+
className="c4 c5"
|
|
1129
|
+
>
|
|
1130
|
+
<span />
|
|
1131
|
+
</div>
|
|
1132
|
+
</div>
|
|
1133
|
+
<div
|
|
1134
|
+
className="c6"
|
|
1135
|
+
rows={4}
|
|
1136
|
+
>
|
|
1137
|
+
<textarea
|
|
1138
|
+
aria-invalid={true}
|
|
1139
|
+
aria-labelledby="test-id"
|
|
1140
|
+
className="c7"
|
|
1141
|
+
disabled={false}
|
|
1142
|
+
id="test-id"
|
|
1143
|
+
onChange={[Function]}
|
|
1144
|
+
readOnly={false}
|
|
1145
|
+
required={false}
|
|
1146
|
+
rows={4}
|
|
1147
|
+
value=""
|
|
1148
|
+
/>
|
|
1149
|
+
</div>
|
|
1150
|
+
<p
|
|
1151
|
+
className="c8"
|
|
1152
|
+
>
|
|
1153
|
+
エラーメッセージ
|
|
1154
|
+
</p>
|
|
1155
|
+
</div>
|
|
1156
|
+
</div>
|
|
1157
|
+
`;
|
|
1158
|
+
|
|
1159
|
+
exports[`Storybook Tests TextArea Label 1`] = `
|
|
1160
|
+
.c3 {
|
|
1161
|
+
font-size: 14px;
|
|
1162
|
+
line-height: 22px;
|
|
1163
|
+
font-weight: bold;
|
|
1164
|
+
display: flow-root;
|
|
1165
|
+
color: var(--charcoal-text1);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.c3::before {
|
|
1169
|
+
display: block;
|
|
1170
|
+
width: 0;
|
|
1171
|
+
height: 0;
|
|
1172
|
+
content: '';
|
|
1173
|
+
margin-top: -4px;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.c3::after {
|
|
1177
|
+
display: block;
|
|
1178
|
+
width: 0;
|
|
1179
|
+
height: 0;
|
|
1180
|
+
content: '';
|
|
1181
|
+
margin-bottom: -4px;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.c5 {
|
|
1185
|
+
font-size: 14px;
|
|
1186
|
+
line-height: 22px;
|
|
1187
|
+
display: flow-root;
|
|
1188
|
+
color: var(--charcoal-text3);
|
|
1189
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
1190
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.c5::before {
|
|
1194
|
+
display: block;
|
|
1195
|
+
width: 0;
|
|
1196
|
+
height: 0;
|
|
1197
|
+
content: '';
|
|
1198
|
+
margin-top: -4px;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.c5::after {
|
|
1202
|
+
display: block;
|
|
1203
|
+
width: 0;
|
|
1204
|
+
height: 0;
|
|
1205
|
+
content: '';
|
|
1206
|
+
margin-bottom: -4px;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
1210
|
+
.c5[aria-disabled='false']:hover {
|
|
1211
|
+
color: var(--charcoal-text3-hover);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1215
|
+
.c5[aria-disabled='false']:active {
|
|
1216
|
+
color: var(--charcoal-text3-press);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1220
|
+
.c5[aria-disabled='false']:active,
|
|
1221
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1222
|
+
.c5[aria-disabled='false']:focus,
|
|
1223
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1224
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
1225
|
+
outline: none;
|
|
1226
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.c1 {
|
|
1230
|
+
display: -webkit-inline-box;
|
|
1231
|
+
display: -webkit-inline-flex;
|
|
1232
|
+
display: -ms-inline-flexbox;
|
|
1233
|
+
display: inline-flex;
|
|
1234
|
+
-webkit-align-items: center;
|
|
1235
|
+
-webkit-box-align: center;
|
|
1236
|
+
-ms-flex-align: center;
|
|
1237
|
+
align-items: center;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.c1 > .c4 {
|
|
1241
|
+
margin-left: auto;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
.c2 {
|
|
1245
|
+
margin-bottom: 8px;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.c0 {
|
|
1249
|
+
display: -webkit-box;
|
|
1250
|
+
display: -webkit-flex;
|
|
1251
|
+
display: -ms-flexbox;
|
|
1252
|
+
display: flex;
|
|
1253
|
+
-webkit-flex-direction: column;
|
|
1254
|
+
-ms-flex-direction: column;
|
|
1255
|
+
flex-direction: column;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.c6 {
|
|
1259
|
+
position: relative;
|
|
1260
|
+
overflow: hidden;
|
|
1261
|
+
color: var(--charcoal-text2);
|
|
1262
|
+
background-color: var(--charcoal-surface3);
|
|
1263
|
+
border-radius: 4px;
|
|
1264
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
1265
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
1266
|
+
height: calc(22px * 4 + 18px);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.c6:not([aria-disabled]):hover,
|
|
1270
|
+
.c6 [aria-disabled='false']:hover {
|
|
1271
|
+
background-color: var(--charcoal-surface3-hover);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.c6:focus-within {
|
|
1275
|
+
outline: none;
|
|
1276
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
4
1279
|
.c7 {
|
|
5
|
-
|
|
1280
|
+
border: none;
|
|
1281
|
+
outline: none;
|
|
1282
|
+
resize: none;
|
|
1283
|
+
font-family: inherit;
|
|
1284
|
+
color: inherit;
|
|
1285
|
+
box-sizing: border-box;
|
|
1286
|
+
-webkit-transform-origin: top left;
|
|
1287
|
+
-ms-transform-origin: top left;
|
|
1288
|
+
transform-origin: top left;
|
|
1289
|
+
-webkit-transform: scale(0.875);
|
|
1290
|
+
-ms-transform: scale(0.875);
|
|
1291
|
+
transform: scale(0.875);
|
|
1292
|
+
width: calc(100% / 0.875);
|
|
1293
|
+
font-size: calc(14px / 0.875);
|
|
1294
|
+
line-height: calc(22px / 0.875);
|
|
1295
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
1296
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
6
1297
|
-webkit-appearance: none;
|
|
7
1298
|
-moz-appearance: none;
|
|
8
1299
|
appearance: none;
|
|
9
|
-
background:
|
|
10
|
-
|
|
11
|
-
|
|
1300
|
+
background: none;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.c7::-webkit-input-placeholder {
|
|
1304
|
+
color: var(--charcoal-text3);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
.c7::-moz-placeholder {
|
|
1308
|
+
color: var(--charcoal-text3);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.c7:-ms-input-placeholder {
|
|
1312
|
+
color: var(--charcoal-text3);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.c7::placeholder {
|
|
1316
|
+
color: var(--charcoal-text3);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
<div
|
|
1320
|
+
data-dark={false}
|
|
1321
|
+
>
|
|
1322
|
+
<div
|
|
1323
|
+
className="c0"
|
|
1324
|
+
>
|
|
1325
|
+
<div
|
|
1326
|
+
className="c1 c2"
|
|
1327
|
+
>
|
|
1328
|
+
<label
|
|
1329
|
+
className="c3"
|
|
1330
|
+
htmlFor="test-id"
|
|
1331
|
+
id="test-id"
|
|
1332
|
+
>
|
|
1333
|
+
Label
|
|
1334
|
+
</label>
|
|
1335
|
+
<div
|
|
1336
|
+
className="c4 c5"
|
|
1337
|
+
>
|
|
1338
|
+
<span />
|
|
1339
|
+
</div>
|
|
1340
|
+
</div>
|
|
1341
|
+
<div
|
|
1342
|
+
className="c6"
|
|
1343
|
+
rows={4}
|
|
1344
|
+
>
|
|
1345
|
+
<textarea
|
|
1346
|
+
aria-labelledby="test-id"
|
|
1347
|
+
className="c7"
|
|
1348
|
+
disabled={false}
|
|
1349
|
+
id="test-id"
|
|
1350
|
+
onChange={[Function]}
|
|
1351
|
+
readOnly={false}
|
|
1352
|
+
required={false}
|
|
1353
|
+
rows={4}
|
|
1354
|
+
value=""
|
|
1355
|
+
/>
|
|
1356
|
+
</div>
|
|
1357
|
+
</div>
|
|
1358
|
+
</div>
|
|
1359
|
+
`;
|
|
1360
|
+
|
|
1361
|
+
exports[`Storybook Tests TextArea Placeholder 1`] = `
|
|
1362
|
+
.c3 {
|
|
1363
|
+
font-size: 14px;
|
|
1364
|
+
line-height: 22px;
|
|
1365
|
+
font-weight: bold;
|
|
1366
|
+
display: flow-root;
|
|
1367
|
+
color: var(--charcoal-text1);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.c3::before {
|
|
1371
|
+
display: block;
|
|
1372
|
+
width: 0;
|
|
1373
|
+
height: 0;
|
|
1374
|
+
content: '';
|
|
1375
|
+
margin-top: -4px;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.c3::after {
|
|
1379
|
+
display: block;
|
|
1380
|
+
width: 0;
|
|
1381
|
+
height: 0;
|
|
1382
|
+
content: '';
|
|
1383
|
+
margin-bottom: -4px;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.c5 {
|
|
1387
|
+
font-size: 14px;
|
|
1388
|
+
line-height: 22px;
|
|
1389
|
+
display: flow-root;
|
|
1390
|
+
color: var(--charcoal-text3);
|
|
1391
|
+
-webkit-transition: 0.2s color,0.2s box-shadow;
|
|
1392
|
+
transition: 0.2s color,0.2s box-shadow;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.c5::before {
|
|
1396
|
+
display: block;
|
|
1397
|
+
width: 0;
|
|
1398
|
+
height: 0;
|
|
1399
|
+
content: '';
|
|
1400
|
+
margin-top: -4px;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.c5::after {
|
|
1404
|
+
display: block;
|
|
1405
|
+
width: 0;
|
|
1406
|
+
height: 0;
|
|
1407
|
+
content: '';
|
|
1408
|
+
margin-bottom: -4px;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
1412
|
+
.c5[aria-disabled='false']:hover {
|
|
1413
|
+
color: var(--charcoal-text3-hover);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1417
|
+
.c5[aria-disabled='false']:active {
|
|
1418
|
+
color: var(--charcoal-text3-press);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1422
|
+
.c5[aria-disabled='false']:active,
|
|
1423
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1424
|
+
.c5[aria-disabled='false']:focus,
|
|
1425
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1426
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
1427
|
+
outline: none;
|
|
1428
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.c1 {
|
|
1432
|
+
display: -webkit-inline-box;
|
|
1433
|
+
display: -webkit-inline-flex;
|
|
1434
|
+
display: -ms-inline-flexbox;
|
|
1435
|
+
display: inline-flex;
|
|
1436
|
+
-webkit-align-items: center;
|
|
1437
|
+
-webkit-box-align: center;
|
|
1438
|
+
-ms-flex-align: center;
|
|
1439
|
+
align-items: center;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.c1 > .c4 {
|
|
1443
|
+
margin-left: auto;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.c2 {
|
|
1447
|
+
margin-bottom: 8px;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.c0 {
|
|
1451
|
+
display: -webkit-box;
|
|
1452
|
+
display: -webkit-flex;
|
|
1453
|
+
display: -ms-flexbox;
|
|
1454
|
+
display: flex;
|
|
1455
|
+
-webkit-flex-direction: column;
|
|
1456
|
+
-ms-flex-direction: column;
|
|
1457
|
+
flex-direction: column;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.c6 {
|
|
1461
|
+
position: relative;
|
|
1462
|
+
overflow: hidden;
|
|
1463
|
+
color: var(--charcoal-text2);
|
|
1464
|
+
background-color: var(--charcoal-surface3);
|
|
1465
|
+
border-radius: 4px;
|
|
1466
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
1467
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
1468
|
+
height: calc(22px * 4 + 18px);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.c6:not([aria-disabled]):hover,
|
|
1472
|
+
.c6 [aria-disabled='false']:hover {
|
|
1473
|
+
background-color: var(--charcoal-surface3-hover);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.c6:focus-within {
|
|
1477
|
+
outline: none;
|
|
1478
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.c7 {
|
|
1482
|
+
border: none;
|
|
12
1483
|
outline: none;
|
|
1484
|
+
resize: none;
|
|
1485
|
+
font-family: inherit;
|
|
13
1486
|
color: inherit;
|
|
14
|
-
|
|
15
|
-
-webkit-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
font:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1487
|
+
box-sizing: border-box;
|
|
1488
|
+
-webkit-transform-origin: top left;
|
|
1489
|
+
-ms-transform-origin: top left;
|
|
1490
|
+
transform-origin: top left;
|
|
1491
|
+
-webkit-transform: scale(0.875);
|
|
1492
|
+
-ms-transform: scale(0.875);
|
|
1493
|
+
transform: scale(0.875);
|
|
1494
|
+
width: calc(100% / 0.875);
|
|
1495
|
+
font-size: calc(14px / 0.875);
|
|
1496
|
+
line-height: calc(22px / 0.875);
|
|
1497
|
+
padding: calc(9px / 0.875) calc(8px / 0.875);
|
|
1498
|
+
height: calc(22px / 0.875 * 4 + 20px);
|
|
1499
|
+
-webkit-appearance: none;
|
|
1500
|
+
-moz-appearance: none;
|
|
1501
|
+
appearance: none;
|
|
1502
|
+
background: none;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.c7::-webkit-input-placeholder {
|
|
1506
|
+
color: var(--charcoal-text3);
|
|
26
1507
|
}
|
|
27
1508
|
|
|
28
|
-
.c7
|
|
29
|
-
|
|
30
|
-
cursor: default;
|
|
1509
|
+
.c7::-moz-placeholder {
|
|
1510
|
+
color: var(--charcoal-text3);
|
|
31
1511
|
}
|
|
32
1512
|
|
|
33
|
-
.c7
|
|
34
|
-
|
|
1513
|
+
.c7:-ms-input-placeholder {
|
|
1514
|
+
color: var(--charcoal-text3);
|
|
35
1515
|
}
|
|
36
1516
|
|
|
37
|
-
.c7
|
|
38
|
-
|
|
39
|
-
padding: 0;
|
|
1517
|
+
.c7::placeholder {
|
|
1518
|
+
color: var(--charcoal-text3);
|
|
40
1519
|
}
|
|
41
1520
|
|
|
42
|
-
|
|
1521
|
+
<div
|
|
1522
|
+
data-dark={false}
|
|
1523
|
+
>
|
|
1524
|
+
<div
|
|
1525
|
+
className="c0"
|
|
1526
|
+
>
|
|
1527
|
+
<div
|
|
1528
|
+
className="c1 c2"
|
|
1529
|
+
style={
|
|
1530
|
+
Object {
|
|
1531
|
+
"border": 0,
|
|
1532
|
+
"clip": "rect(0 0 0 0)",
|
|
1533
|
+
"clipPath": "inset(50%)",
|
|
1534
|
+
"height": "1px",
|
|
1535
|
+
"margin": "-1px",
|
|
1536
|
+
"overflow": "hidden",
|
|
1537
|
+
"padding": 0,
|
|
1538
|
+
"position": "absolute",
|
|
1539
|
+
"whiteSpace": "nowrap",
|
|
1540
|
+
"width": "1px",
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
>
|
|
1544
|
+
<label
|
|
1545
|
+
className="c3"
|
|
1546
|
+
htmlFor="test-id"
|
|
1547
|
+
id="test-id"
|
|
1548
|
+
>
|
|
1549
|
+
Label
|
|
1550
|
+
</label>
|
|
1551
|
+
<div
|
|
1552
|
+
className="c4 c5"
|
|
1553
|
+
>
|
|
1554
|
+
<span />
|
|
1555
|
+
</div>
|
|
1556
|
+
</div>
|
|
1557
|
+
<div
|
|
1558
|
+
className="c6"
|
|
1559
|
+
rows={4}
|
|
1560
|
+
>
|
|
1561
|
+
<textarea
|
|
1562
|
+
aria-labelledby="test-id"
|
|
1563
|
+
className="c7"
|
|
1564
|
+
disabled={false}
|
|
1565
|
+
id="test-id"
|
|
1566
|
+
onChange={[Function]}
|
|
1567
|
+
placeholder="Placeholder"
|
|
1568
|
+
readOnly={false}
|
|
1569
|
+
required={false}
|
|
1570
|
+
rows={4}
|
|
1571
|
+
value=""
|
|
1572
|
+
/>
|
|
1573
|
+
</div>
|
|
1574
|
+
</div>
|
|
1575
|
+
</div>
|
|
1576
|
+
`;
|
|
1577
|
+
|
|
1578
|
+
exports[`Storybook Tests TextArea ReadOnly 1`] = `
|
|
1579
|
+
.c3 {
|
|
43
1580
|
font-size: 14px;
|
|
44
1581
|
line-height: 22px;
|
|
45
1582
|
font-weight: bold;
|
|
@@ -47,7 +1584,7 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
47
1584
|
color: var(--charcoal-text1);
|
|
48
1585
|
}
|
|
49
1586
|
|
|
50
|
-
.
|
|
1587
|
+
.c3::before {
|
|
51
1588
|
display: block;
|
|
52
1589
|
width: 0;
|
|
53
1590
|
height: 0;
|
|
@@ -55,7 +1592,7 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
55
1592
|
margin-top: -4px;
|
|
56
1593
|
}
|
|
57
1594
|
|
|
58
|
-
.
|
|
1595
|
+
.c3::after {
|
|
59
1596
|
display: block;
|
|
60
1597
|
width: 0;
|
|
61
1598
|
height: 0;
|
|
@@ -63,7 +1600,7 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
63
1600
|
margin-bottom: -4px;
|
|
64
1601
|
}
|
|
65
1602
|
|
|
66
|
-
.
|
|
1603
|
+
.c5 {
|
|
67
1604
|
font-size: 14px;
|
|
68
1605
|
line-height: 22px;
|
|
69
1606
|
display: flow-root;
|
|
@@ -72,7 +1609,7 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
72
1609
|
transition: 0.2s color,0.2s box-shadow;
|
|
73
1610
|
}
|
|
74
1611
|
|
|
75
|
-
.
|
|
1612
|
+
.c5::before {
|
|
76
1613
|
display: block;
|
|
77
1614
|
width: 0;
|
|
78
1615
|
height: 0;
|
|
@@ -80,7 +1617,7 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
80
1617
|
margin-top: -4px;
|
|
81
1618
|
}
|
|
82
1619
|
|
|
83
|
-
.
|
|
1620
|
+
.c5::after {
|
|
84
1621
|
display: block;
|
|
85
1622
|
width: 0;
|
|
86
1623
|
height: 0;
|
|
@@ -88,27 +1625,27 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
88
1625
|
margin-bottom: -4px;
|
|
89
1626
|
}
|
|
90
1627
|
|
|
91
|
-
.
|
|
92
|
-
.
|
|
1628
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
1629
|
+
.c5[aria-disabled='false']:hover {
|
|
93
1630
|
color: var(--charcoal-text3-hover);
|
|
94
1631
|
}
|
|
95
1632
|
|
|
96
|
-
.
|
|
97
|
-
.
|
|
1633
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1634
|
+
.c5[aria-disabled='false']:active {
|
|
98
1635
|
color: var(--charcoal-text3-press);
|
|
99
1636
|
}
|
|
100
1637
|
|
|
101
|
-
.
|
|
102
|
-
.
|
|
103
|
-
.
|
|
104
|
-
.
|
|
105
|
-
.
|
|
106
|
-
.
|
|
1638
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1639
|
+
.c5[aria-disabled='false']:active,
|
|
1640
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1641
|
+
.c5[aria-disabled='false']:focus,
|
|
1642
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1643
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
107
1644
|
outline: none;
|
|
108
1645
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
109
1646
|
}
|
|
110
1647
|
|
|
111
|
-
.
|
|
1648
|
+
.c1 {
|
|
112
1649
|
display: -webkit-inline-box;
|
|
113
1650
|
display: -webkit-inline-flex;
|
|
114
1651
|
display: -ms-inline-flexbox;
|
|
@@ -119,15 +1656,15 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
119
1656
|
align-items: center;
|
|
120
1657
|
}
|
|
121
1658
|
|
|
122
|
-
.
|
|
1659
|
+
.c1 > .c4 {
|
|
123
1660
|
margin-left: auto;
|
|
124
1661
|
}
|
|
125
1662
|
|
|
126
|
-
.
|
|
1663
|
+
.c2 {
|
|
127
1664
|
margin-bottom: 8px;
|
|
128
1665
|
}
|
|
129
1666
|
|
|
130
|
-
.
|
|
1667
|
+
.c0 {
|
|
131
1668
|
display: -webkit-box;
|
|
132
1669
|
display: -webkit-flex;
|
|
133
1670
|
display: -ms-flexbox;
|
|
@@ -137,7 +1674,7 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
137
1674
|
flex-direction: column;
|
|
138
1675
|
}
|
|
139
1676
|
|
|
140
|
-
.
|
|
1677
|
+
.c6 {
|
|
141
1678
|
position: relative;
|
|
142
1679
|
overflow: hidden;
|
|
143
1680
|
color: var(--charcoal-text2);
|
|
@@ -148,17 +1685,17 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
148
1685
|
height: calc(22px * 4 + 18px);
|
|
149
1686
|
}
|
|
150
1687
|
|
|
151
|
-
.
|
|
152
|
-
.
|
|
1688
|
+
.c6:not([aria-disabled]):hover,
|
|
1689
|
+
.c6 [aria-disabled='false']:hover {
|
|
153
1690
|
background-color: var(--charcoal-surface3-hover);
|
|
154
1691
|
}
|
|
155
1692
|
|
|
156
|
-
.
|
|
1693
|
+
.c6:focus-within {
|
|
157
1694
|
outline: none;
|
|
158
1695
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
159
1696
|
}
|
|
160
1697
|
|
|
161
|
-
.
|
|
1698
|
+
.c7 {
|
|
162
1699
|
border: none;
|
|
163
1700
|
outline: none;
|
|
164
1701
|
resize: none;
|
|
@@ -182,27 +1719,22 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
182
1719
|
background: none;
|
|
183
1720
|
}
|
|
184
1721
|
|
|
185
|
-
.
|
|
1722
|
+
.c7::-webkit-input-placeholder {
|
|
186
1723
|
color: var(--charcoal-text3);
|
|
187
1724
|
}
|
|
188
1725
|
|
|
189
|
-
.
|
|
1726
|
+
.c7::-moz-placeholder {
|
|
190
1727
|
color: var(--charcoal-text3);
|
|
191
1728
|
}
|
|
192
1729
|
|
|
193
|
-
.
|
|
1730
|
+
.c7:-ms-input-placeholder {
|
|
194
1731
|
color: var(--charcoal-text3);
|
|
195
1732
|
}
|
|
196
1733
|
|
|
197
|
-
.
|
|
1734
|
+
.c7::placeholder {
|
|
198
1735
|
color: var(--charcoal-text3);
|
|
199
1736
|
}
|
|
200
1737
|
|
|
201
|
-
.c0 {
|
|
202
|
-
display: grid;
|
|
203
|
-
gap: 24px;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
1738
|
<div
|
|
207
1739
|
data-dark={false}
|
|
208
1740
|
>
|
|
@@ -210,115 +1742,88 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
|
|
|
210
1742
|
className="c0"
|
|
211
1743
|
>
|
|
212
1744
|
<div
|
|
213
|
-
className="c1"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
"position": "absolute",
|
|
227
|
-
"whiteSpace": "nowrap",
|
|
228
|
-
"width": "1px",
|
|
229
|
-
}
|
|
1745
|
+
className="c1 c2"
|
|
1746
|
+
style={
|
|
1747
|
+
Object {
|
|
1748
|
+
"border": 0,
|
|
1749
|
+
"clip": "rect(0 0 0 0)",
|
|
1750
|
+
"clipPath": "inset(50%)",
|
|
1751
|
+
"height": "1px",
|
|
1752
|
+
"margin": "-1px",
|
|
1753
|
+
"overflow": "hidden",
|
|
1754
|
+
"padding": 0,
|
|
1755
|
+
"position": "absolute",
|
|
1756
|
+
"whiteSpace": "nowrap",
|
|
1757
|
+
"width": "1px",
|
|
230
1758
|
}
|
|
1759
|
+
}
|
|
1760
|
+
>
|
|
1761
|
+
<label
|
|
1762
|
+
className="c3"
|
|
1763
|
+
htmlFor="test-id"
|
|
1764
|
+
id="test-id"
|
|
231
1765
|
>
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
htmlFor="test-id"
|
|
235
|
-
id="test-id"
|
|
236
|
-
>
|
|
237
|
-
Label
|
|
238
|
-
</label>
|
|
239
|
-
<div
|
|
240
|
-
className="c5 c6"
|
|
241
|
-
>
|
|
242
|
-
<span>
|
|
243
|
-
<button
|
|
244
|
-
className="c7"
|
|
245
|
-
onClick={[Function]}
|
|
246
|
-
>
|
|
247
|
-
Text Link
|
|
248
|
-
</button>
|
|
249
|
-
</span>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
1766
|
+
Label
|
|
1767
|
+
</label>
|
|
252
1768
|
<div
|
|
253
|
-
className="
|
|
254
|
-
rows={4}
|
|
1769
|
+
className="c4 c5"
|
|
255
1770
|
>
|
|
256
|
-
<
|
|
257
|
-
aria-labelledby="test-id"
|
|
258
|
-
className="c9"
|
|
259
|
-
disabled={false}
|
|
260
|
-
id="test-id"
|
|
261
|
-
onChange={[Function]}
|
|
262
|
-
placeholder="Text Area"
|
|
263
|
-
readOnly={false}
|
|
264
|
-
required={false}
|
|
265
|
-
rows={4}
|
|
266
|
-
value=""
|
|
267
|
-
/>
|
|
1771
|
+
<span />
|
|
268
1772
|
</div>
|
|
269
1773
|
</div>
|
|
1774
|
+
<div
|
|
1775
|
+
className="c6"
|
|
1776
|
+
rows={4}
|
|
1777
|
+
>
|
|
1778
|
+
<textarea
|
|
1779
|
+
aria-labelledby="test-id"
|
|
1780
|
+
className="c7"
|
|
1781
|
+
disabled={false}
|
|
1782
|
+
id="test-id"
|
|
1783
|
+
onChange={[Function]}
|
|
1784
|
+
readOnly={true}
|
|
1785
|
+
required={false}
|
|
1786
|
+
rows={4}
|
|
1787
|
+
value="読み取り専用"
|
|
1788
|
+
/>
|
|
1789
|
+
</div>
|
|
270
1790
|
</div>
|
|
271
1791
|
</div>
|
|
272
1792
|
`;
|
|
273
1793
|
|
|
274
|
-
exports[`Storybook Tests TextArea
|
|
275
|
-
.
|
|
276
|
-
|
|
277
|
-
-
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
padding: 0;
|
|
282
|
-
border-style: none;
|
|
283
|
-
outline: none;
|
|
284
|
-
color: inherit;
|
|
285
|
-
text-rendering: inherit;
|
|
286
|
-
-webkit-letter-spacing: inherit;
|
|
287
|
-
-moz-letter-spacing: inherit;
|
|
288
|
-
-ms-letter-spacing: inherit;
|
|
289
|
-
letter-spacing: inherit;
|
|
290
|
-
word-spacing: inherit;
|
|
291
|
-
-webkit-text-decoration: none;
|
|
292
|
-
text-decoration: none;
|
|
293
|
-
font: inherit;
|
|
294
|
-
margin: 0;
|
|
295
|
-
overflow: visible;
|
|
296
|
-
text-transform: none;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.c7:disabled,
|
|
300
|
-
.c7[aria-disabled]:not([aria-disabled=false]) {
|
|
301
|
-
cursor: default;
|
|
1794
|
+
exports[`Storybook Tests TextArea Required 1`] = `
|
|
1795
|
+
.c3 {
|
|
1796
|
+
font-size: 14px;
|
|
1797
|
+
line-height: 22px;
|
|
1798
|
+
font-weight: bold;
|
|
1799
|
+
display: flow-root;
|
|
1800
|
+
color: var(--charcoal-text1);
|
|
302
1801
|
}
|
|
303
1802
|
|
|
304
|
-
.
|
|
305
|
-
|
|
1803
|
+
.c3::before {
|
|
1804
|
+
display: block;
|
|
1805
|
+
width: 0;
|
|
1806
|
+
height: 0;
|
|
1807
|
+
content: '';
|
|
1808
|
+
margin-top: -4px;
|
|
306
1809
|
}
|
|
307
1810
|
|
|
308
|
-
.
|
|
309
|
-
|
|
310
|
-
|
|
1811
|
+
.c3::after {
|
|
1812
|
+
display: block;
|
|
1813
|
+
width: 0;
|
|
1814
|
+
height: 0;
|
|
1815
|
+
content: '';
|
|
1816
|
+
margin-bottom: -4px;
|
|
311
1817
|
}
|
|
312
1818
|
|
|
313
|
-
.
|
|
1819
|
+
.c5 {
|
|
314
1820
|
font-size: 14px;
|
|
315
1821
|
line-height: 22px;
|
|
316
|
-
font-weight: bold;
|
|
317
1822
|
display: flow-root;
|
|
318
|
-
color: var(--charcoal-
|
|
1823
|
+
color: var(--charcoal-text2);
|
|
319
1824
|
}
|
|
320
1825
|
|
|
321
|
-
.
|
|
1826
|
+
.c5::before {
|
|
322
1827
|
display: block;
|
|
323
1828
|
width: 0;
|
|
324
1829
|
height: 0;
|
|
@@ -326,7 +1831,7 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
326
1831
|
margin-top: -4px;
|
|
327
1832
|
}
|
|
328
1833
|
|
|
329
|
-
.
|
|
1834
|
+
.c5::after {
|
|
330
1835
|
display: block;
|
|
331
1836
|
width: 0;
|
|
332
1837
|
height: 0;
|
|
@@ -334,7 +1839,7 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
334
1839
|
margin-bottom: -4px;
|
|
335
1840
|
}
|
|
336
1841
|
|
|
337
|
-
.
|
|
1842
|
+
.c7 {
|
|
338
1843
|
font-size: 14px;
|
|
339
1844
|
line-height: 22px;
|
|
340
1845
|
display: flow-root;
|
|
@@ -343,7 +1848,7 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
343
1848
|
transition: 0.2s color,0.2s box-shadow;
|
|
344
1849
|
}
|
|
345
1850
|
|
|
346
|
-
.
|
|
1851
|
+
.c7::before {
|
|
347
1852
|
display: block;
|
|
348
1853
|
width: 0;
|
|
349
1854
|
height: 0;
|
|
@@ -351,7 +1856,7 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
351
1856
|
margin-top: -4px;
|
|
352
1857
|
}
|
|
353
1858
|
|
|
354
|
-
.
|
|
1859
|
+
.c7::after {
|
|
355
1860
|
display: block;
|
|
356
1861
|
width: 0;
|
|
357
1862
|
height: 0;
|
|
@@ -359,27 +1864,27 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
359
1864
|
margin-bottom: -4px;
|
|
360
1865
|
}
|
|
361
1866
|
|
|
362
|
-
.
|
|
363
|
-
.
|
|
1867
|
+
.c7:not(:disabled):not([aria-disabled]):hover,
|
|
1868
|
+
.c7[aria-disabled='false']:hover {
|
|
364
1869
|
color: var(--charcoal-text3-hover);
|
|
365
1870
|
}
|
|
366
1871
|
|
|
367
|
-
.
|
|
368
|
-
.
|
|
1872
|
+
.c7:not(:disabled):not([aria-disabled]):active,
|
|
1873
|
+
.c7[aria-disabled='false']:active {
|
|
369
1874
|
color: var(--charcoal-text3-press);
|
|
370
1875
|
}
|
|
371
1876
|
|
|
372
|
-
.
|
|
373
|
-
.
|
|
374
|
-
.
|
|
375
|
-
.
|
|
376
|
-
.
|
|
377
|
-
.
|
|
1877
|
+
.c7:not(:disabled):not([aria-disabled]):active,
|
|
1878
|
+
.c7[aria-disabled='false']:active,
|
|
1879
|
+
.c7:not(:disabled):not([aria-disabled]):focus,
|
|
1880
|
+
.c7[aria-disabled='false']:focus,
|
|
1881
|
+
.c7:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1882
|
+
.c7[aria-disabled='false']:focus-visible {
|
|
378
1883
|
outline: none;
|
|
379
1884
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
380
1885
|
}
|
|
381
1886
|
|
|
382
|
-
.
|
|
1887
|
+
.c1 {
|
|
383
1888
|
display: -webkit-inline-box;
|
|
384
1889
|
display: -webkit-inline-flex;
|
|
385
1890
|
display: -ms-inline-flexbox;
|
|
@@ -390,15 +1895,19 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
390
1895
|
align-items: center;
|
|
391
1896
|
}
|
|
392
1897
|
|
|
393
|
-
.
|
|
1898
|
+
.c1 > .c4 {
|
|
1899
|
+
margin-left: 4px;
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
.c1 > .c6 {
|
|
394
1903
|
margin-left: auto;
|
|
395
1904
|
}
|
|
396
1905
|
|
|
397
|
-
.
|
|
1906
|
+
.c2 {
|
|
398
1907
|
margin-bottom: 8px;
|
|
399
1908
|
}
|
|
400
1909
|
|
|
401
|
-
.
|
|
1910
|
+
.c0 {
|
|
402
1911
|
display: -webkit-box;
|
|
403
1912
|
display: -webkit-flex;
|
|
404
1913
|
display: -ms-flexbox;
|
|
@@ -469,11 +1978,6 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
469
1978
|
color: var(--charcoal-text3);
|
|
470
1979
|
}
|
|
471
1980
|
|
|
472
|
-
.c0 {
|
|
473
|
-
display: grid;
|
|
474
|
-
gap: 24px;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
1981
|
<div
|
|
478
1982
|
data-dark={false}
|
|
479
1983
|
>
|
|
@@ -481,107 +1985,63 @@ exports[`Storybook Tests TextArea Default 1`] = `
|
|
|
481
1985
|
className="c0"
|
|
482
1986
|
>
|
|
483
1987
|
<div
|
|
484
|
-
className="c1"
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
"position": "absolute",
|
|
498
|
-
"whiteSpace": "nowrap",
|
|
499
|
-
"width": "1px",
|
|
500
|
-
}
|
|
1988
|
+
className="c1 c2"
|
|
1989
|
+
style={
|
|
1990
|
+
Object {
|
|
1991
|
+
"border": 0,
|
|
1992
|
+
"clip": "rect(0 0 0 0)",
|
|
1993
|
+
"clipPath": "inset(50%)",
|
|
1994
|
+
"height": "1px",
|
|
1995
|
+
"margin": "-1px",
|
|
1996
|
+
"overflow": "hidden",
|
|
1997
|
+
"padding": 0,
|
|
1998
|
+
"position": "absolute",
|
|
1999
|
+
"whiteSpace": "nowrap",
|
|
2000
|
+
"width": "1px",
|
|
501
2001
|
}
|
|
2002
|
+
}
|
|
2003
|
+
>
|
|
2004
|
+
<label
|
|
2005
|
+
className="c3"
|
|
2006
|
+
htmlFor="test-id"
|
|
2007
|
+
id="test-id"
|
|
502
2008
|
>
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
<div
|
|
511
|
-
className="c5 c6"
|
|
512
|
-
>
|
|
513
|
-
<span>
|
|
514
|
-
<button
|
|
515
|
-
className="c7"
|
|
516
|
-
onClick={[Function]}
|
|
517
|
-
>
|
|
518
|
-
Text Link
|
|
519
|
-
</button>
|
|
520
|
-
</span>
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
2009
|
+
Label
|
|
2010
|
+
</label>
|
|
2011
|
+
<span
|
|
2012
|
+
className="c4 c5"
|
|
2013
|
+
>
|
|
2014
|
+
*必須
|
|
2015
|
+
</span>
|
|
523
2016
|
<div
|
|
524
|
-
className="
|
|
525
|
-
rows={4}
|
|
2017
|
+
className="c6 c7"
|
|
526
2018
|
>
|
|
527
|
-
<
|
|
528
|
-
aria-labelledby="test-id"
|
|
529
|
-
className="c9"
|
|
530
|
-
disabled={false}
|
|
531
|
-
id="test-id"
|
|
532
|
-
onChange={[Function]}
|
|
533
|
-
placeholder="Text Area"
|
|
534
|
-
readOnly={false}
|
|
535
|
-
required={false}
|
|
536
|
-
rows={4}
|
|
537
|
-
value=""
|
|
538
|
-
/>
|
|
2019
|
+
<span />
|
|
539
2020
|
</div>
|
|
540
2021
|
</div>
|
|
2022
|
+
<div
|
|
2023
|
+
className="c8"
|
|
2024
|
+
rows={4}
|
|
2025
|
+
>
|
|
2026
|
+
<textarea
|
|
2027
|
+
aria-labelledby="test-id"
|
|
2028
|
+
aria-required={true}
|
|
2029
|
+
className="c9"
|
|
2030
|
+
disabled={false}
|
|
2031
|
+
id="test-id"
|
|
2032
|
+
onChange={[Function]}
|
|
2033
|
+
readOnly={false}
|
|
2034
|
+
required={false}
|
|
2035
|
+
rows={4}
|
|
2036
|
+
value=""
|
|
2037
|
+
/>
|
|
2038
|
+
</div>
|
|
541
2039
|
</div>
|
|
542
2040
|
</div>
|
|
543
2041
|
`;
|
|
544
2042
|
|
|
545
|
-
exports[`Storybook Tests TextArea
|
|
546
|
-
.
|
|
547
|
-
cursor: pointer;
|
|
548
|
-
-webkit-appearance: none;
|
|
549
|
-
-moz-appearance: none;
|
|
550
|
-
appearance: none;
|
|
551
|
-
background: transparent;
|
|
552
|
-
padding: 0;
|
|
553
|
-
border-style: none;
|
|
554
|
-
outline: none;
|
|
555
|
-
color: inherit;
|
|
556
|
-
text-rendering: inherit;
|
|
557
|
-
-webkit-letter-spacing: inherit;
|
|
558
|
-
-moz-letter-spacing: inherit;
|
|
559
|
-
-ms-letter-spacing: inherit;
|
|
560
|
-
letter-spacing: inherit;
|
|
561
|
-
word-spacing: inherit;
|
|
562
|
-
-webkit-text-decoration: none;
|
|
563
|
-
text-decoration: none;
|
|
564
|
-
font: inherit;
|
|
565
|
-
margin: 0;
|
|
566
|
-
overflow: visible;
|
|
567
|
-
text-transform: none;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.c7:disabled,
|
|
571
|
-
.c7[aria-disabled]:not([aria-disabled=false]) {
|
|
572
|
-
cursor: default;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.c7:focus {
|
|
576
|
-
outline: none;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.c7::-moz-focus-inner {
|
|
580
|
-
border-style: none;
|
|
581
|
-
padding: 0;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
.c4 {
|
|
2043
|
+
exports[`Storybook Tests TextArea ShowCount 1`] = `
|
|
2044
|
+
.c3 {
|
|
585
2045
|
font-size: 14px;
|
|
586
2046
|
line-height: 22px;
|
|
587
2047
|
font-weight: bold;
|
|
@@ -589,7 +2049,7 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
589
2049
|
color: var(--charcoal-text1);
|
|
590
2050
|
}
|
|
591
2051
|
|
|
592
|
-
.
|
|
2052
|
+
.c3::before {
|
|
593
2053
|
display: block;
|
|
594
2054
|
width: 0;
|
|
595
2055
|
height: 0;
|
|
@@ -597,7 +2057,7 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
597
2057
|
margin-top: -4px;
|
|
598
2058
|
}
|
|
599
2059
|
|
|
600
|
-
.
|
|
2060
|
+
.c3::after {
|
|
601
2061
|
display: block;
|
|
602
2062
|
width: 0;
|
|
603
2063
|
height: 0;
|
|
@@ -605,7 +2065,7 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
605
2065
|
margin-bottom: -4px;
|
|
606
2066
|
}
|
|
607
2067
|
|
|
608
|
-
.
|
|
2068
|
+
.c5 {
|
|
609
2069
|
font-size: 14px;
|
|
610
2070
|
line-height: 22px;
|
|
611
2071
|
display: flow-root;
|
|
@@ -614,7 +2074,7 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
614
2074
|
transition: 0.2s color,0.2s box-shadow;
|
|
615
2075
|
}
|
|
616
2076
|
|
|
617
|
-
.
|
|
2077
|
+
.c5::before {
|
|
618
2078
|
display: block;
|
|
619
2079
|
width: 0;
|
|
620
2080
|
height: 0;
|
|
@@ -622,7 +2082,7 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
622
2082
|
margin-top: -4px;
|
|
623
2083
|
}
|
|
624
2084
|
|
|
625
|
-
.
|
|
2085
|
+
.c5::after {
|
|
626
2086
|
display: block;
|
|
627
2087
|
width: 0;
|
|
628
2088
|
height: 0;
|
|
@@ -630,27 +2090,27 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
630
2090
|
margin-bottom: -4px;
|
|
631
2091
|
}
|
|
632
2092
|
|
|
633
|
-
.
|
|
634
|
-
.
|
|
2093
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
2094
|
+
.c5[aria-disabled='false']:hover {
|
|
635
2095
|
color: var(--charcoal-text3-hover);
|
|
636
2096
|
}
|
|
637
2097
|
|
|
638
|
-
.
|
|
639
|
-
.
|
|
2098
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
2099
|
+
.c5[aria-disabled='false']:active {
|
|
640
2100
|
color: var(--charcoal-text3-press);
|
|
641
2101
|
}
|
|
642
2102
|
|
|
643
|
-
.
|
|
644
|
-
.
|
|
645
|
-
.
|
|
646
|
-
.
|
|
647
|
-
.
|
|
648
|
-
.
|
|
2103
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
2104
|
+
.c5[aria-disabled='false']:active,
|
|
2105
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
2106
|
+
.c5[aria-disabled='false']:focus,
|
|
2107
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
2108
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
649
2109
|
outline: none;
|
|
650
2110
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
651
2111
|
}
|
|
652
2112
|
|
|
653
|
-
.
|
|
2113
|
+
.c1 {
|
|
654
2114
|
display: -webkit-inline-box;
|
|
655
2115
|
display: -webkit-inline-flex;
|
|
656
2116
|
display: -ms-inline-flexbox;
|
|
@@ -661,15 +2121,15 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
661
2121
|
align-items: center;
|
|
662
2122
|
}
|
|
663
2123
|
|
|
664
|
-
.
|
|
2124
|
+
.c1 > .c4 {
|
|
665
2125
|
margin-left: auto;
|
|
666
2126
|
}
|
|
667
2127
|
|
|
668
|
-
.
|
|
2128
|
+
.c2 {
|
|
669
2129
|
margin-bottom: 8px;
|
|
670
2130
|
}
|
|
671
2131
|
|
|
672
|
-
.
|
|
2132
|
+
.c0 {
|
|
673
2133
|
display: -webkit-box;
|
|
674
2134
|
display: -webkit-flex;
|
|
675
2135
|
display: -ms-flexbox;
|
|
@@ -679,7 +2139,7 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
679
2139
|
flex-direction: column;
|
|
680
2140
|
}
|
|
681
2141
|
|
|
682
|
-
.
|
|
2142
|
+
.c6 {
|
|
683
2143
|
position: relative;
|
|
684
2144
|
overflow: hidden;
|
|
685
2145
|
color: var(--charcoal-text2);
|
|
@@ -690,17 +2150,17 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
690
2150
|
height: calc(22px * 5 + 18px);
|
|
691
2151
|
}
|
|
692
2152
|
|
|
693
|
-
.
|
|
694
|
-
.
|
|
2153
|
+
.c6:not([aria-disabled]):hover,
|
|
2154
|
+
.c6 [aria-disabled='false']:hover {
|
|
695
2155
|
background-color: var(--charcoal-surface3-hover);
|
|
696
2156
|
}
|
|
697
2157
|
|
|
698
|
-
.
|
|
2158
|
+
.c6:focus-within {
|
|
699
2159
|
outline: none;
|
|
700
2160
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
701
2161
|
}
|
|
702
2162
|
|
|
703
|
-
.
|
|
2163
|
+
.c7 {
|
|
704
2164
|
border: none;
|
|
705
2165
|
outline: none;
|
|
706
2166
|
resize: none;
|
|
@@ -724,23 +2184,23 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
724
2184
|
background: none;
|
|
725
2185
|
}
|
|
726
2186
|
|
|
727
|
-
.
|
|
2187
|
+
.c7::-webkit-input-placeholder {
|
|
728
2188
|
color: var(--charcoal-text3);
|
|
729
2189
|
}
|
|
730
2190
|
|
|
731
|
-
.
|
|
2191
|
+
.c7::-moz-placeholder {
|
|
732
2192
|
color: var(--charcoal-text3);
|
|
733
2193
|
}
|
|
734
2194
|
|
|
735
|
-
.
|
|
2195
|
+
.c7:-ms-input-placeholder {
|
|
736
2196
|
color: var(--charcoal-text3);
|
|
737
2197
|
}
|
|
738
2198
|
|
|
739
|
-
.
|
|
2199
|
+
.c7::placeholder {
|
|
740
2200
|
color: var(--charcoal-text3);
|
|
741
2201
|
}
|
|
742
2202
|
|
|
743
|
-
.
|
|
2203
|
+
.c8 {
|
|
744
2204
|
position: absolute;
|
|
745
2205
|
bottom: 9px;
|
|
746
2206
|
right: 8px;
|
|
@@ -749,11 +2209,6 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
749
2209
|
color: var(--charcoal-text3);
|
|
750
2210
|
}
|
|
751
2211
|
|
|
752
|
-
.c0 {
|
|
753
|
-
display: grid;
|
|
754
|
-
gap: 24px;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
2212
|
<div
|
|
758
2213
|
data-dark={false}
|
|
759
2214
|
>
|
|
@@ -761,75 +2216,63 @@ exports[`Storybook Tests TextArea HasCount 1`] = `
|
|
|
761
2216
|
className="c0"
|
|
762
2217
|
>
|
|
763
2218
|
<div
|
|
764
|
-
className="c1"
|
|
2219
|
+
className="c1 c2"
|
|
2220
|
+
style={
|
|
2221
|
+
Object {
|
|
2222
|
+
"border": 0,
|
|
2223
|
+
"clip": "rect(0 0 0 0)",
|
|
2224
|
+
"clipPath": "inset(50%)",
|
|
2225
|
+
"height": "1px",
|
|
2226
|
+
"margin": "-1px",
|
|
2227
|
+
"overflow": "hidden",
|
|
2228
|
+
"padding": 0,
|
|
2229
|
+
"position": "absolute",
|
|
2230
|
+
"whiteSpace": "nowrap",
|
|
2231
|
+
"width": "1px",
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
765
2234
|
>
|
|
2235
|
+
<label
|
|
2236
|
+
className="c3"
|
|
2237
|
+
htmlFor="test-id"
|
|
2238
|
+
id="test-id"
|
|
2239
|
+
>
|
|
2240
|
+
Label
|
|
2241
|
+
</label>
|
|
766
2242
|
<div
|
|
767
|
-
className="
|
|
768
|
-
style={
|
|
769
|
-
Object {
|
|
770
|
-
"border": 0,
|
|
771
|
-
"clip": "rect(0 0 0 0)",
|
|
772
|
-
"clipPath": "inset(50%)",
|
|
773
|
-
"height": "1px",
|
|
774
|
-
"margin": "-1px",
|
|
775
|
-
"overflow": "hidden",
|
|
776
|
-
"padding": 0,
|
|
777
|
-
"position": "absolute",
|
|
778
|
-
"whiteSpace": "nowrap",
|
|
779
|
-
"width": "1px",
|
|
780
|
-
}
|
|
781
|
-
}
|
|
2243
|
+
className="c4 c5"
|
|
782
2244
|
>
|
|
783
|
-
<
|
|
784
|
-
className="c4"
|
|
785
|
-
htmlFor="test-id"
|
|
786
|
-
id="test-id"
|
|
787
|
-
>
|
|
788
|
-
Label
|
|
789
|
-
</label>
|
|
790
|
-
<div
|
|
791
|
-
className="c5 c6"
|
|
792
|
-
>
|
|
793
|
-
<span>
|
|
794
|
-
<button
|
|
795
|
-
className="c7"
|
|
796
|
-
onClick={[Function]}
|
|
797
|
-
>
|
|
798
|
-
Text Link
|
|
799
|
-
</button>
|
|
800
|
-
</span>
|
|
801
|
-
</div>
|
|
2245
|
+
<span />
|
|
802
2246
|
</div>
|
|
803
|
-
|
|
2247
|
+
</div>
|
|
2248
|
+
<div
|
|
2249
|
+
className="c6"
|
|
2250
|
+
rows={5}
|
|
2251
|
+
>
|
|
2252
|
+
<textarea
|
|
2253
|
+
aria-labelledby="test-id"
|
|
2254
|
+
className="c7"
|
|
2255
|
+
disabled={false}
|
|
2256
|
+
id="test-id"
|
|
2257
|
+
maxLength={100}
|
|
2258
|
+
onChange={[Function]}
|
|
2259
|
+
readOnly={false}
|
|
2260
|
+
required={false}
|
|
2261
|
+
rows={4}
|
|
2262
|
+
value=""
|
|
2263
|
+
/>
|
|
2264
|
+
<span
|
|
804
2265
|
className="c8"
|
|
805
|
-
rows={5}
|
|
806
2266
|
>
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
className="c9"
|
|
810
|
-
disabled={false}
|
|
811
|
-
id="test-id"
|
|
812
|
-
maxLength={100}
|
|
813
|
-
onChange={[Function]}
|
|
814
|
-
placeholder="Text Area"
|
|
815
|
-
readOnly={false}
|
|
816
|
-
required={false}
|
|
817
|
-
rows={4}
|
|
818
|
-
value=""
|
|
819
|
-
/>
|
|
820
|
-
<span
|
|
821
|
-
className="c10"
|
|
822
|
-
>
|
|
823
|
-
0/100
|
|
824
|
-
</span>
|
|
825
|
-
</div>
|
|
2267
|
+
0/100
|
|
2268
|
+
</span>
|
|
826
2269
|
</div>
|
|
827
2270
|
</div>
|
|
828
2271
|
</div>
|
|
829
2272
|
`;
|
|
830
2273
|
|
|
831
|
-
exports[`Storybook Tests TextArea
|
|
832
|
-
.
|
|
2274
|
+
exports[`Storybook Tests TextArea SubLabel 1`] = `
|
|
2275
|
+
.c6 {
|
|
833
2276
|
cursor: pointer;
|
|
834
2277
|
-webkit-appearance: none;
|
|
835
2278
|
-moz-appearance: none;
|
|
@@ -853,21 +2296,21 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
853
2296
|
text-transform: none;
|
|
854
2297
|
}
|
|
855
2298
|
|
|
856
|
-
.
|
|
857
|
-
.
|
|
2299
|
+
.c6:disabled,
|
|
2300
|
+
.c6[aria-disabled]:not([aria-disabled=false]) {
|
|
858
2301
|
cursor: default;
|
|
859
2302
|
}
|
|
860
2303
|
|
|
861
|
-
.
|
|
2304
|
+
.c6:focus {
|
|
862
2305
|
outline: none;
|
|
863
2306
|
}
|
|
864
2307
|
|
|
865
|
-
.
|
|
2308
|
+
.c6::-moz-focus-inner {
|
|
866
2309
|
border-style: none;
|
|
867
2310
|
padding: 0;
|
|
868
2311
|
}
|
|
869
2312
|
|
|
870
|
-
.
|
|
2313
|
+
.c3 {
|
|
871
2314
|
font-size: 14px;
|
|
872
2315
|
line-height: 22px;
|
|
873
2316
|
font-weight: bold;
|
|
@@ -875,30 +2318,7 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
875
2318
|
color: var(--charcoal-text1);
|
|
876
2319
|
}
|
|
877
2320
|
|
|
878
|
-
.
|
|
879
|
-
display: block;
|
|
880
|
-
width: 0;
|
|
881
|
-
height: 0;
|
|
882
|
-
content: '';
|
|
883
|
-
margin-top: -4px;
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
.c4::after {
|
|
887
|
-
display: block;
|
|
888
|
-
width: 0;
|
|
889
|
-
height: 0;
|
|
890
|
-
content: '';
|
|
891
|
-
margin-bottom: -4px;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
.c6 {
|
|
895
|
-
font-size: 14px;
|
|
896
|
-
line-height: 22px;
|
|
897
|
-
display: flow-root;
|
|
898
|
-
color: var(--charcoal-text2);
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.c6::before {
|
|
2321
|
+
.c3::before {
|
|
902
2322
|
display: block;
|
|
903
2323
|
width: 0;
|
|
904
2324
|
height: 0;
|
|
@@ -906,7 +2326,7 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
906
2326
|
margin-top: -4px;
|
|
907
2327
|
}
|
|
908
2328
|
|
|
909
|
-
.
|
|
2329
|
+
.c3::after {
|
|
910
2330
|
display: block;
|
|
911
2331
|
width: 0;
|
|
912
2332
|
height: 0;
|
|
@@ -914,7 +2334,7 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
914
2334
|
margin-bottom: -4px;
|
|
915
2335
|
}
|
|
916
2336
|
|
|
917
|
-
.
|
|
2337
|
+
.c5 {
|
|
918
2338
|
font-size: 14px;
|
|
919
2339
|
line-height: 22px;
|
|
920
2340
|
display: flow-root;
|
|
@@ -923,7 +2343,7 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
923
2343
|
transition: 0.2s color,0.2s box-shadow;
|
|
924
2344
|
}
|
|
925
2345
|
|
|
926
|
-
.
|
|
2346
|
+
.c5::before {
|
|
927
2347
|
display: block;
|
|
928
2348
|
width: 0;
|
|
929
2349
|
height: 0;
|
|
@@ -931,7 +2351,7 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
931
2351
|
margin-top: -4px;
|
|
932
2352
|
}
|
|
933
2353
|
|
|
934
|
-
.
|
|
2354
|
+
.c5::after {
|
|
935
2355
|
display: block;
|
|
936
2356
|
width: 0;
|
|
937
2357
|
height: 0;
|
|
@@ -939,27 +2359,27 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
939
2359
|
margin-bottom: -4px;
|
|
940
2360
|
}
|
|
941
2361
|
|
|
942
|
-
.
|
|
943
|
-
.
|
|
2362
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
2363
|
+
.c5[aria-disabled='false']:hover {
|
|
944
2364
|
color: var(--charcoal-text3-hover);
|
|
945
2365
|
}
|
|
946
2366
|
|
|
947
|
-
.
|
|
948
|
-
.
|
|
2367
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
2368
|
+
.c5[aria-disabled='false']:active {
|
|
949
2369
|
color: var(--charcoal-text3-press);
|
|
950
2370
|
}
|
|
951
2371
|
|
|
952
|
-
.
|
|
953
|
-
.
|
|
954
|
-
.
|
|
955
|
-
.
|
|
956
|
-
.
|
|
957
|
-
.
|
|
2372
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
2373
|
+
.c5[aria-disabled='false']:active,
|
|
2374
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
2375
|
+
.c5[aria-disabled='false']:focus,
|
|
2376
|
+
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
2377
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
958
2378
|
outline: none;
|
|
959
2379
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
960
2380
|
}
|
|
961
2381
|
|
|
962
|
-
.
|
|
2382
|
+
.c1 {
|
|
963
2383
|
display: -webkit-inline-box;
|
|
964
2384
|
display: -webkit-inline-flex;
|
|
965
2385
|
display: -ms-inline-flexbox;
|
|
@@ -970,27 +2390,15 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
970
2390
|
align-items: center;
|
|
971
2391
|
}
|
|
972
2392
|
|
|
973
|
-
.
|
|
974
|
-
margin-left: 4px;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
.c2 > .c7 {
|
|
2393
|
+
.c1 > .c4 {
|
|
978
2394
|
margin-left: auto;
|
|
979
2395
|
}
|
|
980
2396
|
|
|
981
|
-
.
|
|
2397
|
+
.c2 {
|
|
982
2398
|
margin-bottom: 8px;
|
|
983
2399
|
}
|
|
984
2400
|
|
|
985
|
-
.
|
|
986
|
-
font-size: 14px;
|
|
987
|
-
line-height: 22px;
|
|
988
|
-
margin-top: 4px;
|
|
989
|
-
margin-bottom: -4px;
|
|
990
|
-
color: var(--charcoal-text2);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.c1 {
|
|
2401
|
+
.c0 {
|
|
994
2402
|
display: -webkit-box;
|
|
995
2403
|
display: -webkit-flex;
|
|
996
2404
|
display: -ms-flexbox;
|
|
@@ -1000,7 +2408,7 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
1000
2408
|
flex-direction: column;
|
|
1001
2409
|
}
|
|
1002
2410
|
|
|
1003
|
-
.
|
|
2411
|
+
.c7 {
|
|
1004
2412
|
position: relative;
|
|
1005
2413
|
overflow: hidden;
|
|
1006
2414
|
color: var(--charcoal-text2);
|
|
@@ -1011,17 +2419,17 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
1011
2419
|
height: calc(22px * 4 + 18px);
|
|
1012
2420
|
}
|
|
1013
2421
|
|
|
1014
|
-
.
|
|
1015
|
-
.
|
|
2422
|
+
.c7:not([aria-disabled]):hover,
|
|
2423
|
+
.c7 [aria-disabled='false']:hover {
|
|
1016
2424
|
background-color: var(--charcoal-surface3-hover);
|
|
1017
2425
|
}
|
|
1018
2426
|
|
|
1019
|
-
.
|
|
2427
|
+
.c7:focus-within {
|
|
1020
2428
|
outline: none;
|
|
1021
2429
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1022
2430
|
}
|
|
1023
2431
|
|
|
1024
|
-
.
|
|
2432
|
+
.c8 {
|
|
1025
2433
|
border: none;
|
|
1026
2434
|
outline: none;
|
|
1027
2435
|
resize: none;
|
|
@@ -1045,27 +2453,22 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
1045
2453
|
background: none;
|
|
1046
2454
|
}
|
|
1047
2455
|
|
|
1048
|
-
.
|
|
2456
|
+
.c8::-webkit-input-placeholder {
|
|
1049
2457
|
color: var(--charcoal-text3);
|
|
1050
2458
|
}
|
|
1051
2459
|
|
|
1052
|
-
.
|
|
2460
|
+
.c8::-moz-placeholder {
|
|
1053
2461
|
color: var(--charcoal-text3);
|
|
1054
2462
|
}
|
|
1055
2463
|
|
|
1056
|
-
.
|
|
2464
|
+
.c8:-ms-input-placeholder {
|
|
1057
2465
|
color: var(--charcoal-text3);
|
|
1058
2466
|
}
|
|
1059
2467
|
|
|
1060
|
-
.
|
|
2468
|
+
.c8::placeholder {
|
|
1061
2469
|
color: var(--charcoal-text3);
|
|
1062
2470
|
}
|
|
1063
2471
|
|
|
1064
|
-
.c0 {
|
|
1065
|
-
display: grid;
|
|
1066
|
-
gap: 24px;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
2472
|
<div
|
|
1070
2473
|
data-dark={false}
|
|
1071
2474
|
>
|
|
@@ -1073,59 +2476,42 @@ exports[`Storybook Tests TextArea HasLabel 1`] = `
|
|
|
1073
2476
|
className="c0"
|
|
1074
2477
|
>
|
|
1075
2478
|
<div
|
|
1076
|
-
className="c1"
|
|
2479
|
+
className="c1 c2"
|
|
1077
2480
|
>
|
|
2481
|
+
<label
|
|
2482
|
+
className="c3"
|
|
2483
|
+
htmlFor="test-id"
|
|
2484
|
+
id="test-id"
|
|
2485
|
+
>
|
|
2486
|
+
Label
|
|
2487
|
+
</label>
|
|
1078
2488
|
<div
|
|
1079
|
-
className="
|
|
2489
|
+
className="c4 c5"
|
|
1080
2490
|
>
|
|
1081
|
-
<
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
</label>
|
|
1088
|
-
<span
|
|
1089
|
-
className="c5 c6"
|
|
1090
|
-
>
|
|
1091
|
-
*必須
|
|
2491
|
+
<span>
|
|
2492
|
+
<button
|
|
2493
|
+
className="c6"
|
|
2494
|
+
>
|
|
2495
|
+
Text Link
|
|
2496
|
+
</button>
|
|
1092
2497
|
</span>
|
|
1093
|
-
<div
|
|
1094
|
-
className="c7 c8"
|
|
1095
|
-
>
|
|
1096
|
-
<span>
|
|
1097
|
-
<button
|
|
1098
|
-
className="c9"
|
|
1099
|
-
onClick={[Function]}
|
|
1100
|
-
>
|
|
1101
|
-
Text Link
|
|
1102
|
-
</button>
|
|
1103
|
-
</span>
|
|
1104
|
-
</div>
|
|
1105
2498
|
</div>
|
|
1106
|
-
|
|
1107
|
-
|
|
2499
|
+
</div>
|
|
2500
|
+
<div
|
|
2501
|
+
className="c7"
|
|
2502
|
+
rows={4}
|
|
2503
|
+
>
|
|
2504
|
+
<textarea
|
|
2505
|
+
aria-labelledby="test-id"
|
|
2506
|
+
className="c8"
|
|
2507
|
+
disabled={false}
|
|
2508
|
+
id="test-id"
|
|
2509
|
+
onChange={[Function]}
|
|
2510
|
+
readOnly={false}
|
|
2511
|
+
required={false}
|
|
1108
2512
|
rows={4}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
aria-labelledby="test-id"
|
|
1112
|
-
aria-required={true}
|
|
1113
|
-
className="c11"
|
|
1114
|
-
disabled={false}
|
|
1115
|
-
id="test-id"
|
|
1116
|
-
onChange={[Function]}
|
|
1117
|
-
placeholder="Text Area"
|
|
1118
|
-
readOnly={false}
|
|
1119
|
-
required={false}
|
|
1120
|
-
rows={4}
|
|
1121
|
-
value=""
|
|
1122
|
-
/>
|
|
1123
|
-
</div>
|
|
1124
|
-
<p
|
|
1125
|
-
className="c12"
|
|
1126
|
-
>
|
|
1127
|
-
Assistive text
|
|
1128
|
-
</p>
|
|
2513
|
+
value=""
|
|
2514
|
+
/>
|
|
1129
2515
|
</div>
|
|
1130
2516
|
</div>
|
|
1131
2517
|
</div>
|