@charcoal-ui/react 4.3.0-beta.5 → 4.4.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.
Files changed (40) hide show
  1. package/dist/components/MultiSelect/context.d.ts +14 -0
  2. package/dist/components/MultiSelect/context.d.ts.map +1 -0
  3. package/dist/components/MultiSelect/index.d.ts +38 -0
  4. package/dist/components/MultiSelect/index.d.ts.map +1 -0
  5. package/dist/index.cjs.js +318 -216
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.css +111 -0
  8. package/dist/index.css.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.esm.js +281 -181
  12. package/dist/index.esm.js.map +1 -1
  13. package/dist/layered.css +111 -0
  14. package/dist/layered.css.map +1 -1
  15. package/package.json +6 -7
  16. package/src/components/Button/__snapshots__/index.story.storyshot +89 -71
  17. package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +50 -53
  18. package/src/components/Checkbox/__snapshots__/index.story.storyshot +108 -102
  19. package/src/components/Clickable/__snapshots__/index.story.storyshot +19 -17
  20. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +45 -54
  21. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +238 -275
  22. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +28 -50
  23. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +780 -1158
  24. package/src/components/Icon/__snapshots__/index.story.storyshot +9 -7
  25. package/src/components/IconButton/__snapshots__/index.story.storyshot +43 -37
  26. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +52 -64
  27. package/src/components/Modal/__snapshots__/index.story.storyshot +568 -716
  28. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +531 -0
  29. package/src/components/MultiSelect/context.ts +23 -0
  30. package/src/components/MultiSelect/index.css +139 -0
  31. package/src/components/MultiSelect/index.story.tsx +118 -0
  32. package/src/components/MultiSelect/index.test.tsx +255 -0
  33. package/src/components/MultiSelect/index.tsx +153 -0
  34. package/src/components/Radio/__snapshots__/index.story.storyshot +313 -367
  35. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +116 -228
  36. package/src/components/Switch/__snapshots__/index.story.storyshot +74 -73
  37. package/src/components/TagItem/__snapshots__/index.story.storyshot +177 -193
  38. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +372 -533
  39. package/src/components/TextField/__snapshots__/TextField.story.storyshot +444 -583
  40. package/src/index.ts +6 -0
@@ -1,65 +1,53 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Storybook Tests > react/TextField > Affix 1`] = `
4
- <div
5
- data-dark={false}
6
- >
4
+ <div>
7
5
  <div
8
- aria-disabled={false}
9
- className="charcoal-text-field-root"
6
+ data-dark="false"
10
7
  >
11
8
  <div
12
- className="charcoal-field-label-root"
13
- style={
14
- Object {
15
- "border": 0,
16
- "clip": "rect(0 0 0 0)",
17
- "clipPath": "inset(50%)",
18
- "height": "1px",
19
- "margin": "-1px",
20
- "overflow": "hidden",
21
- "padding": 0,
22
- "position": "absolute",
23
- "whiteSpace": "nowrap",
24
- "width": "1px",
25
- }
26
- }
9
+ aria-disabled="false"
10
+ class="charcoal-text-field-root"
27
11
  >
28
- <label
29
- className="charcoal-field-label"
30
- htmlFor="test-id"
31
- id="test-id"
32
- >
33
- Label
34
- </label>
35
12
  <div
36
- className="charcoal-field-label-sub-label"
13
+ class="charcoal-field-label-root"
14
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
37
15
  >
38
- <span />
39
- </div>
40
- </div>
41
- <div
42
- className="charcoal-text-field-container"
43
- data-invalid={false}
44
- >
45
- <div
46
- className="charcoal-text-field-prefix"
47
- >
48
- /home/john/
16
+ <label
17
+ class="charcoal-field-label"
18
+ for="test-id"
19
+ id="test-id"
20
+ >
21
+ Label
22
+ </label>
23
+ <div
24
+ class="charcoal-field-label-sub-label"
25
+ >
26
+ <span />
27
+ </div>
49
28
  </div>
50
- <input
51
- aria-labelledby="test-id"
52
- className="charcoal-text-field-input"
53
- data-invalid={false}
54
- disabled={false}
55
- id="test-id"
56
- onChange={[Function]}
57
- type="text"
58
- />
59
29
  <div
60
- className="charcoal-text-field-suffix"
30
+ class="charcoal-text-field-container"
31
+ data-invalid="false"
61
32
  >
62
- .png
33
+ <div
34
+ class="charcoal-text-field-prefix"
35
+ >
36
+ /home/john/
37
+ </div>
38
+ <input
39
+ aria-labelledby="test-id"
40
+ class="charcoal-text-field-input"
41
+ data-invalid="false"
42
+ id="test-id"
43
+ type="text"
44
+ value=""
45
+ />
46
+ <div
47
+ class="charcoal-text-field-suffix"
48
+ >
49
+ .png
50
+ </div>
63
51
  </div>
64
52
  </div>
65
53
  </div>
@@ -67,649 +55,534 @@ exports[`Storybook Tests > react/TextField > Affix 1`] = `
67
55
  `;
68
56
 
69
57
  exports[`Storybook Tests > react/TextField > AssistiveText 1`] = `
70
- <div
71
- data-dark={false}
72
- >
58
+ <div>
73
59
  <div
74
- aria-disabled={false}
75
- className="charcoal-text-field-root"
60
+ data-dark="false"
76
61
  >
77
62
  <div
78
- className="charcoal-field-label-root"
79
- style={
80
- Object {
81
- "border": 0,
82
- "clip": "rect(0 0 0 0)",
83
- "clipPath": "inset(50%)",
84
- "height": "1px",
85
- "margin": "-1px",
86
- "overflow": "hidden",
87
- "padding": 0,
88
- "position": "absolute",
89
- "whiteSpace": "nowrap",
90
- "width": "1px",
91
- }
92
- }
63
+ aria-disabled="false"
64
+ class="charcoal-text-field-root"
93
65
  >
94
- <label
95
- className="charcoal-field-label"
96
- htmlFor="test-id"
97
- id="test-id"
66
+ <div
67
+ class="charcoal-field-label-root"
68
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
98
69
  >
99
- Label
100
- </label>
70
+ <label
71
+ class="charcoal-field-label"
72
+ for="test-id"
73
+ id="test-id"
74
+ >
75
+ Label
76
+ </label>
77
+ <div
78
+ class="charcoal-field-label-sub-label"
79
+ >
80
+ <span />
81
+ </div>
82
+ </div>
101
83
  <div
102
- className="charcoal-field-label-sub-label"
84
+ class="charcoal-text-field-container"
85
+ data-invalid="false"
103
86
  >
104
- <span />
87
+ <input
88
+ aria-describedby="test-id"
89
+ aria-labelledby="test-id"
90
+ class="charcoal-text-field-input"
91
+ data-invalid="false"
92
+ id="test-id"
93
+ type="text"
94
+ value=""
95
+ />
105
96
  </div>
106
- </div>
107
- <div
108
- className="charcoal-text-field-container"
109
- data-invalid={false}
110
- >
111
- <input
112
- aria-describedby="test-id"
113
- aria-labelledby="test-id"
114
- className="charcoal-text-field-input"
115
- data-invalid={false}
116
- disabled={false}
97
+ <div
98
+ class="charcoal-text-field-assistive-text"
99
+ data-invalid="false"
117
100
  id="test-id"
118
- onChange={[Function]}
119
- type="text"
120
- />
121
- </div>
122
- <div
123
- className="charcoal-text-field-assistive-text"
124
- data-invalid={false}
125
- id="test-id"
126
- >
127
- 説明が入ります
101
+ >
102
+ 説明が入ります
103
+ </div>
128
104
  </div>
129
105
  </div>
130
106
  </div>
131
107
  `;
132
108
 
133
109
  exports[`Storybook Tests > react/TextField > Default 1`] = `
134
- <div
135
- data-dark={false}
136
- >
110
+ <div>
137
111
  <div
138
- aria-disabled={false}
139
- className="charcoal-text-field-root"
112
+ data-dark="false"
140
113
  >
141
114
  <div
142
- className="charcoal-field-label-root"
143
- style={
144
- Object {
145
- "border": 0,
146
- "clip": "rect(0 0 0 0)",
147
- "clipPath": "inset(50%)",
148
- "height": "1px",
149
- "margin": "-1px",
150
- "overflow": "hidden",
151
- "padding": 0,
152
- "position": "absolute",
153
- "whiteSpace": "nowrap",
154
- "width": "1px",
155
- }
156
- }
115
+ aria-disabled="false"
116
+ class="charcoal-text-field-root"
157
117
  >
158
- <label
159
- className="charcoal-field-label"
160
- htmlFor="test-id"
161
- id="test-id"
118
+ <div
119
+ class="charcoal-field-label-root"
120
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
162
121
  >
163
- Label
164
- </label>
122
+ <label
123
+ class="charcoal-field-label"
124
+ for="test-id"
125
+ id="test-id"
126
+ >
127
+ Label
128
+ </label>
129
+ <div
130
+ class="charcoal-field-label-sub-label"
131
+ >
132
+ <span>
133
+ <button
134
+ class="charcoal-clickable"
135
+ >
136
+ Text Link
137
+ </button>
138
+ </span>
139
+ </div>
140
+ </div>
165
141
  <div
166
- className="charcoal-field-label-sub-label"
142
+ class="charcoal-text-field-container"
143
+ data-invalid="false"
167
144
  >
168
- <span>
169
- <button
170
- className="charcoal-clickable"
171
- >
172
- Text Link
173
- </button>
174
- </span>
145
+ <input
146
+ aria-invalid="false"
147
+ aria-labelledby="test-id"
148
+ class="charcoal-text-field-input"
149
+ data-invalid="false"
150
+ id="test-id"
151
+ placeholder="TextField"
152
+ type="text"
153
+ value=""
154
+ />
175
155
  </div>
176
156
  </div>
177
- <div
178
- className="charcoal-text-field-container"
179
- data-invalid={false}
180
- >
181
- <input
182
- aria-invalid={false}
183
- aria-labelledby="test-id"
184
- className="charcoal-text-field-input"
185
- data-invalid={false}
186
- disabled={false}
187
- id="test-id"
188
- onChange={[Function]}
189
- placeholder="TextField"
190
- readOnly={false}
191
- type="text"
192
- />
193
- </div>
194
157
  </div>
195
158
  </div>
196
159
  `;
197
160
 
198
161
  exports[`Storybook Tests > react/TextField > Disabled 1`] = `
199
- <div
200
- data-dark={false}
201
- >
162
+ <div>
202
163
  <div
203
- aria-disabled={true}
204
- className="charcoal-text-field-root"
164
+ data-dark="false"
205
165
  >
206
166
  <div
207
- className="charcoal-field-label-root"
208
- style={
209
- Object {
210
- "border": 0,
211
- "clip": "rect(0 0 0 0)",
212
- "clipPath": "inset(50%)",
213
- "height": "1px",
214
- "margin": "-1px",
215
- "overflow": "hidden",
216
- "padding": 0,
217
- "position": "absolute",
218
- "whiteSpace": "nowrap",
219
- "width": "1px",
220
- }
221
- }
167
+ aria-disabled="true"
168
+ class="charcoal-text-field-root"
222
169
  >
223
- <label
224
- className="charcoal-field-label"
225
- htmlFor="test-id"
226
- id="test-id"
170
+ <div
171
+ class="charcoal-field-label-root"
172
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
227
173
  >
228
- Label
229
- </label>
174
+ <label
175
+ class="charcoal-field-label"
176
+ for="test-id"
177
+ id="test-id"
178
+ >
179
+ Label
180
+ </label>
181
+ <div
182
+ class="charcoal-field-label-sub-label"
183
+ >
184
+ <span />
185
+ </div>
186
+ </div>
230
187
  <div
231
- className="charcoal-field-label-sub-label"
188
+ aria-disabled="true"
189
+ class="charcoal-text-field-container"
190
+ data-invalid="false"
232
191
  >
233
- <span />
192
+ <input
193
+ aria-labelledby="test-id"
194
+ class="charcoal-text-field-input"
195
+ data-invalid="false"
196
+ disabled=""
197
+ id="test-id"
198
+ type="text"
199
+ value=""
200
+ />
234
201
  </div>
235
202
  </div>
236
- <div
237
- aria-disabled={true}
238
- className="charcoal-text-field-container"
239
- data-invalid={false}
240
- >
241
- <input
242
- aria-labelledby="test-id"
243
- className="charcoal-text-field-input"
244
- data-invalid={false}
245
- disabled={true}
246
- id="test-id"
247
- onChange={[Function]}
248
- type="text"
249
- />
250
- </div>
251
203
  </div>
252
204
  </div>
253
205
  `;
254
206
 
255
207
  exports[`Storybook Tests > react/TextField > Invalid 1`] = `
256
- <div
257
- data-dark={false}
258
- >
208
+ <div>
259
209
  <div
260
- aria-disabled={false}
261
- className="charcoal-text-field-root"
210
+ data-dark="false"
262
211
  >
263
212
  <div
264
- className="charcoal-field-label-root"
265
- style={
266
- Object {
267
- "border": 0,
268
- "clip": "rect(0 0 0 0)",
269
- "clipPath": "inset(50%)",
270
- "height": "1px",
271
- "margin": "-1px",
272
- "overflow": "hidden",
273
- "padding": 0,
274
- "position": "absolute",
275
- "whiteSpace": "nowrap",
276
- "width": "1px",
277
- }
278
- }
213
+ aria-disabled="false"
214
+ class="charcoal-text-field-root"
279
215
  >
280
- <label
281
- className="charcoal-field-label"
282
- htmlFor="test-id"
283
- id="test-id"
216
+ <div
217
+ class="charcoal-field-label-root"
218
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
284
219
  >
285
- Label
286
- </label>
220
+ <label
221
+ class="charcoal-field-label"
222
+ for="test-id"
223
+ id="test-id"
224
+ >
225
+ Label
226
+ </label>
227
+ <div
228
+ class="charcoal-field-label-sub-label"
229
+ >
230
+ <span />
231
+ </div>
232
+ </div>
287
233
  <div
288
- className="charcoal-field-label-sub-label"
234
+ class="charcoal-text-field-container"
235
+ data-invalid="true"
289
236
  >
290
- <span />
237
+ <input
238
+ aria-describedby="test-id"
239
+ aria-invalid="true"
240
+ aria-labelledby="test-id"
241
+ class="charcoal-text-field-input"
242
+ data-invalid="true"
243
+ id="test-id"
244
+ type="text"
245
+ value=""
246
+ />
291
247
  </div>
292
- </div>
293
- <div
294
- className="charcoal-text-field-container"
295
- data-invalid={true}
296
- >
297
- <input
298
- aria-describedby="test-id"
299
- aria-invalid={true}
300
- aria-labelledby="test-id"
301
- className="charcoal-text-field-input"
302
- data-invalid={true}
303
- disabled={false}
248
+ <div
249
+ class="charcoal-text-field-assistive-text"
250
+ data-invalid="true"
304
251
  id="test-id"
305
- onChange={[Function]}
306
- type="text"
307
- />
308
- </div>
309
- <div
310
- className="charcoal-text-field-assistive-text"
311
- data-invalid={true}
312
- id="test-id"
313
- >
314
- エラーメッセージ
252
+ >
253
+ エラーメッセージ
254
+ </div>
315
255
  </div>
316
256
  </div>
317
257
  </div>
318
258
  `;
319
259
 
320
260
  exports[`Storybook Tests > react/TextField > Label 1`] = `
321
- <div
322
- data-dark={false}
323
- >
261
+ <div>
324
262
  <div
325
- aria-disabled={false}
326
- className="charcoal-text-field-root"
263
+ data-dark="false"
327
264
  >
328
265
  <div
329
- className="charcoal-field-label-root"
266
+ aria-disabled="false"
267
+ class="charcoal-text-field-root"
330
268
  >
331
- <label
332
- className="charcoal-field-label"
333
- htmlFor="test-id"
334
- id="test-id"
269
+ <div
270
+ class="charcoal-field-label-root"
335
271
  >
336
- Label
337
- </label>
272
+ <label
273
+ class="charcoal-field-label"
274
+ for="test-id"
275
+ id="test-id"
276
+ >
277
+ Label
278
+ </label>
279
+ <div
280
+ class="charcoal-field-label-sub-label"
281
+ >
282
+ <span />
283
+ </div>
284
+ </div>
338
285
  <div
339
- className="charcoal-field-label-sub-label"
286
+ class="charcoal-text-field-container"
287
+ data-invalid="false"
340
288
  >
341
- <span />
289
+ <input
290
+ aria-labelledby="test-id"
291
+ class="charcoal-text-field-input"
292
+ data-invalid="false"
293
+ id="test-id"
294
+ type="text"
295
+ value=""
296
+ />
342
297
  </div>
343
298
  </div>
344
- <div
345
- className="charcoal-text-field-container"
346
- data-invalid={false}
347
- >
348
- <input
349
- aria-labelledby="test-id"
350
- className="charcoal-text-field-input"
351
- data-invalid={false}
352
- disabled={false}
353
- id="test-id"
354
- onChange={[Function]}
355
- type="text"
356
- />
357
- </div>
358
299
  </div>
359
300
  </div>
360
301
  `;
361
302
 
362
303
  exports[`Storybook Tests > react/TextField > Number 1`] = `
363
- <div
364
- data-dark={false}
365
- >
304
+ <div>
366
305
  <div
367
- aria-disabled={false}
368
- className="charcoal-text-field-root"
306
+ data-dark="false"
369
307
  >
370
308
  <div
371
- className="charcoal-field-label-root"
372
- style={
373
- Object {
374
- "border": 0,
375
- "clip": "rect(0 0 0 0)",
376
- "clipPath": "inset(50%)",
377
- "height": "1px",
378
- "margin": "-1px",
379
- "overflow": "hidden",
380
- "padding": 0,
381
- "position": "absolute",
382
- "whiteSpace": "nowrap",
383
- "width": "1px",
384
- }
385
- }
309
+ aria-disabled="false"
310
+ class="charcoal-text-field-root"
386
311
  >
387
- <label
388
- className="charcoal-field-label"
389
- htmlFor="test-id"
390
- id="test-id"
391
- />
392
312
  <div
393
- className="charcoal-field-label-sub-label"
313
+ class="charcoal-field-label-root"
314
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
394
315
  >
395
- <span />
316
+ <label
317
+ class="charcoal-field-label"
318
+ for="test-id"
319
+ id="test-id"
320
+ />
321
+ <div
322
+ class="charcoal-field-label-sub-label"
323
+ >
324
+ <span />
325
+ </div>
326
+ </div>
327
+ <div
328
+ class="charcoal-text-field-container"
329
+ data-invalid="false"
330
+ >
331
+ <input
332
+ aria-labelledby="test-id"
333
+ class="charcoal-text-field-input"
334
+ data-invalid="false"
335
+ id="test-id"
336
+ type="number"
337
+ value="0"
338
+ />
396
339
  </div>
397
- </div>
398
- <div
399
- className="charcoal-text-field-container"
400
- data-invalid={false}
401
- >
402
- <input
403
- aria-labelledby="test-id"
404
- className="charcoal-text-field-input"
405
- data-invalid={false}
406
- disabled={false}
407
- id="test-id"
408
- onChange={[Function]}
409
- onWheel={[Function]}
410
- type="number"
411
- value="0"
412
- />
413
340
  </div>
414
341
  </div>
415
342
  </div>
416
343
  `;
417
344
 
418
345
  exports[`Storybook Tests > react/TextField > Placeholder 1`] = `
419
- <div
420
- data-dark={false}
421
- >
346
+ <div>
422
347
  <div
423
- aria-disabled={false}
424
- className="charcoal-text-field-root"
348
+ data-dark="false"
425
349
  >
426
350
  <div
427
- className="charcoal-field-label-root"
428
- style={
429
- Object {
430
- "border": 0,
431
- "clip": "rect(0 0 0 0)",
432
- "clipPath": "inset(50%)",
433
- "height": "1px",
434
- "margin": "-1px",
435
- "overflow": "hidden",
436
- "padding": 0,
437
- "position": "absolute",
438
- "whiteSpace": "nowrap",
439
- "width": "1px",
440
- }
441
- }
351
+ aria-disabled="false"
352
+ class="charcoal-text-field-root"
442
353
  >
443
- <label
444
- className="charcoal-field-label"
445
- htmlFor="test-id"
446
- id="test-id"
354
+ <div
355
+ class="charcoal-field-label-root"
356
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
447
357
  >
448
- Label
449
- </label>
358
+ <label
359
+ class="charcoal-field-label"
360
+ for="test-id"
361
+ id="test-id"
362
+ >
363
+ Label
364
+ </label>
365
+ <div
366
+ class="charcoal-field-label-sub-label"
367
+ >
368
+ <span />
369
+ </div>
370
+ </div>
450
371
  <div
451
- className="charcoal-field-label-sub-label"
372
+ class="charcoal-text-field-container"
373
+ data-invalid="false"
452
374
  >
453
- <span />
375
+ <input
376
+ aria-labelledby="test-id"
377
+ class="charcoal-text-field-input"
378
+ data-invalid="false"
379
+ id="test-id"
380
+ placeholder="Placeholder"
381
+ type="text"
382
+ value=""
383
+ />
454
384
  </div>
455
385
  </div>
456
- <div
457
- className="charcoal-text-field-container"
458
- data-invalid={false}
459
- >
460
- <input
461
- aria-labelledby="test-id"
462
- className="charcoal-text-field-input"
463
- data-invalid={false}
464
- disabled={false}
465
- id="test-id"
466
- onChange={[Function]}
467
- placeholder="Placeholder"
468
- type="text"
469
- />
470
- </div>
471
386
  </div>
472
387
  </div>
473
388
  `;
474
389
 
475
390
  exports[`Storybook Tests > react/TextField > Prefix 1`] = `
476
- <div
477
- data-dark={false}
478
- >
391
+ <div>
479
392
  <div
480
- aria-disabled={false}
481
- className="charcoal-text-field-root"
393
+ data-dark="false"
482
394
  >
483
395
  <div
484
- className="charcoal-field-label-root"
485
- style={
486
- Object {
487
- "border": 0,
488
- "clip": "rect(0 0 0 0)",
489
- "clipPath": "inset(50%)",
490
- "height": "1px",
491
- "margin": "-1px",
492
- "overflow": "hidden",
493
- "padding": 0,
494
- "position": "absolute",
495
- "whiteSpace": "nowrap",
496
- "width": "1px",
497
- }
498
- }
396
+ aria-disabled="false"
397
+ class="charcoal-text-field-root"
499
398
  >
500
- <label
501
- className="charcoal-field-label"
502
- htmlFor="test-id"
503
- id="test-id"
504
- >
505
- Label
506
- </label>
507
399
  <div
508
- className="charcoal-field-label-sub-label"
400
+ class="charcoal-field-label-root"
401
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
509
402
  >
510
- <span />
403
+ <label
404
+ class="charcoal-field-label"
405
+ for="test-id"
406
+ id="test-id"
407
+ >
408
+ Label
409
+ </label>
410
+ <div
411
+ class="charcoal-field-label-sub-label"
412
+ >
413
+ <span />
414
+ </div>
511
415
  </div>
512
- </div>
513
- <div
514
- className="charcoal-text-field-container"
515
- data-invalid={false}
516
- >
517
416
  <div
518
- className="charcoal-text-field-prefix"
417
+ class="charcoal-text-field-container"
418
+ data-invalid="false"
519
419
  >
520
420
  <div
521
- style={
522
- Object {
523
- "alignItems": "center",
524
- "color": "var(--charcoal-text3)",
525
- "display": "flex",
526
- }
527
- }
421
+ class="charcoal-text-field-prefix"
528
422
  >
529
- <pixiv-icon
530
- name="16/Search"
531
- />
423
+ <div
424
+ style="display: flex; align-items: center;"
425
+ >
426
+ <pixiv-icon
427
+ name="16/Search"
428
+ />
429
+ </div>
532
430
  </div>
431
+ <input
432
+ aria-labelledby="test-id"
433
+ class="charcoal-text-field-input"
434
+ data-invalid="false"
435
+ id="test-id"
436
+ type="text"
437
+ value=""
438
+ />
533
439
  </div>
534
- <input
535
- aria-labelledby="test-id"
536
- className="charcoal-text-field-input"
537
- data-invalid={false}
538
- disabled={false}
539
- id="test-id"
540
- onChange={[Function]}
541
- type="text"
542
- />
543
440
  </div>
544
441
  </div>
545
442
  </div>
546
443
  `;
547
444
 
548
445
  exports[`Storybook Tests > react/TextField > ReadOnly 1`] = `
549
- <div
550
- data-dark={false}
551
- >
446
+ <div>
552
447
  <div
553
- aria-disabled={false}
554
- className="charcoal-text-field-root"
448
+ data-dark="false"
555
449
  >
556
450
  <div
557
- className="charcoal-field-label-root"
558
- style={
559
- Object {
560
- "border": 0,
561
- "clip": "rect(0 0 0 0)",
562
- "clipPath": "inset(50%)",
563
- "height": "1px",
564
- "margin": "-1px",
565
- "overflow": "hidden",
566
- "padding": 0,
567
- "position": "absolute",
568
- "whiteSpace": "nowrap",
569
- "width": "1px",
570
- }
571
- }
451
+ aria-disabled="false"
452
+ class="charcoal-text-field-root"
572
453
  >
573
- <label
574
- className="charcoal-field-label"
575
- htmlFor="test-id"
576
- id="test-id"
454
+ <div
455
+ class="charcoal-field-label-root"
456
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
577
457
  >
578
- Label
579
- </label>
458
+ <label
459
+ class="charcoal-field-label"
460
+ for="test-id"
461
+ id="test-id"
462
+ >
463
+ Label
464
+ </label>
465
+ <div
466
+ class="charcoal-field-label-sub-label"
467
+ >
468
+ <span />
469
+ </div>
470
+ </div>
580
471
  <div
581
- className="charcoal-field-label-sub-label"
472
+ class="charcoal-text-field-container"
473
+ data-invalid="false"
582
474
  >
583
- <span />
475
+ <input
476
+ aria-labelledby="test-id"
477
+ class="charcoal-text-field-input"
478
+ data-invalid="false"
479
+ id="test-id"
480
+ readonly=""
481
+ type="text"
482
+ value="読み取り専用"
483
+ />
584
484
  </div>
585
485
  </div>
586
- <div
587
- className="charcoal-text-field-container"
588
- data-invalid={false}
589
- >
590
- <input
591
- aria-labelledby="test-id"
592
- className="charcoal-text-field-input"
593
- data-invalid={false}
594
- disabled={false}
595
- id="test-id"
596
- onChange={[Function]}
597
- readOnly={true}
598
- type="text"
599
- value="読み取り専用"
600
- />
601
- </div>
602
486
  </div>
603
487
  </div>
604
488
  `;
605
489
 
606
490
  exports[`Storybook Tests > react/TextField > RequiredText 1`] = `
607
- <div
608
- data-dark={false}
609
- >
491
+ <div>
610
492
  <div
611
- aria-disabled={false}
612
- className="charcoal-text-field-root"
493
+ data-dark="false"
613
494
  >
614
495
  <div
615
- className="charcoal-field-label-root"
496
+ aria-disabled="false"
497
+ class="charcoal-text-field-root"
616
498
  >
617
- <label
618
- className="charcoal-field-label"
619
- htmlFor="test-id"
620
- id="test-id"
621
- >
622
- Label
623
- </label>
624
499
  <div
625
- className="charcoal-field-label-required-text"
500
+ class="charcoal-field-label-root"
626
501
  >
627
- *必須
502
+ <label
503
+ class="charcoal-field-label"
504
+ for="test-id"
505
+ id="test-id"
506
+ >
507
+ Label
508
+ </label>
509
+ <div
510
+ class="charcoal-field-label-required-text"
511
+ >
512
+ *必須
513
+ </div>
514
+ <div
515
+ class="charcoal-field-label-sub-label"
516
+ >
517
+ <span />
518
+ </div>
628
519
  </div>
629
520
  <div
630
- className="charcoal-field-label-sub-label"
521
+ class="charcoal-text-field-container"
522
+ data-invalid="false"
631
523
  >
632
- <span />
524
+ <input
525
+ aria-labelledby="test-id"
526
+ class="charcoal-text-field-input"
527
+ data-invalid="false"
528
+ id="test-id"
529
+ type="text"
530
+ value=""
531
+ />
633
532
  </div>
634
533
  </div>
635
- <div
636
- className="charcoal-text-field-container"
637
- data-invalid={false}
638
- >
639
- <input
640
- aria-labelledby="test-id"
641
- className="charcoal-text-field-input"
642
- data-invalid={false}
643
- disabled={false}
644
- id="test-id"
645
- onChange={[Function]}
646
- type="text"
647
- />
648
- </div>
649
534
  </div>
650
535
  </div>
651
536
  `;
652
537
 
653
538
  exports[`Storybook Tests > react/TextField > ShowCount 1`] = `
654
- <div
655
- data-dark={false}
656
- >
539
+ <div>
657
540
  <div
658
- aria-disabled={false}
659
- className="charcoal-text-field-root"
541
+ data-dark="false"
660
542
  >
661
543
  <div
662
- className="charcoal-field-label-root"
663
- style={
664
- Object {
665
- "border": 0,
666
- "clip": "rect(0 0 0 0)",
667
- "clipPath": "inset(50%)",
668
- "height": "1px",
669
- "margin": "-1px",
670
- "overflow": "hidden",
671
- "padding": 0,
672
- "position": "absolute",
673
- "whiteSpace": "nowrap",
674
- "width": "1px",
675
- }
676
- }
544
+ aria-disabled="false"
545
+ class="charcoal-text-field-root"
677
546
  >
678
- <label
679
- className="charcoal-field-label"
680
- htmlFor="test-id"
681
- id="test-id"
682
- >
683
- Label
684
- </label>
685
547
  <div
686
- className="charcoal-field-label-sub-label"
548
+ class="charcoal-field-label-root"
549
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
687
550
  >
688
- <span />
551
+ <label
552
+ class="charcoal-field-label"
553
+ for="test-id"
554
+ id="test-id"
555
+ >
556
+ Label
557
+ </label>
558
+ <div
559
+ class="charcoal-field-label-sub-label"
560
+ >
561
+ <span />
562
+ </div>
689
563
  </div>
690
- </div>
691
- <div
692
- className="charcoal-text-field-container"
693
- data-invalid={false}
694
- >
695
- <input
696
- aria-labelledby="test-id"
697
- className="charcoal-text-field-input"
698
- data-invalid={false}
699
- disabled={false}
700
- id="test-id"
701
- maxLength={100}
702
- onChange={[Function]}
703
- type="text"
704
- />
705
564
  <div
706
- className="charcoal-text-field-suffix"
565
+ class="charcoal-text-field-container"
566
+ data-invalid="false"
707
567
  >
708
- <span
709
- className="charcoal-text-field-line-counter"
568
+ <input
569
+ aria-labelledby="test-id"
570
+ class="charcoal-text-field-input"
571
+ data-invalid="false"
572
+ id="test-id"
573
+ maxlength="100"
574
+ type="text"
575
+ value=""
576
+ />
577
+ <div
578
+ class="charcoal-text-field-suffix"
710
579
  >
711
- 0/100
712
- </span>
580
+ <span
581
+ class="charcoal-text-field-line-counter"
582
+ >
583
+ 0/100
584
+ </span>
585
+ </div>
713
586
  </div>
714
587
  </div>
715
588
  </div>
@@ -717,63 +590,51 @@ exports[`Storybook Tests > react/TextField > ShowCount 1`] = `
717
590
  `;
718
591
 
719
592
  exports[`Storybook Tests > react/TextField > SubLabel 1`] = `
720
- <div
721
- data-dark={false}
722
- >
593
+ <div>
723
594
  <div
724
- aria-disabled={false}
725
- className="charcoal-text-field-root"
595
+ data-dark="false"
726
596
  >
727
597
  <div
728
- className="charcoal-field-label-root"
729
- style={
730
- Object {
731
- "border": 0,
732
- "clip": "rect(0 0 0 0)",
733
- "clipPath": "inset(50%)",
734
- "height": "1px",
735
- "margin": "-1px",
736
- "overflow": "hidden",
737
- "padding": 0,
738
- "position": "absolute",
739
- "whiteSpace": "nowrap",
740
- "width": "1px",
741
- }
742
- }
598
+ aria-disabled="false"
599
+ class="charcoal-text-field-root"
743
600
  >
744
- <label
745
- className="charcoal-field-label"
746
- htmlFor="test-id"
747
- id="test-id"
601
+ <div
602
+ class="charcoal-field-label-root"
603
+ style="border: 0px; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;"
748
604
  >
749
- Label
750
- </label>
605
+ <label
606
+ class="charcoal-field-label"
607
+ for="test-id"
608
+ id="test-id"
609
+ >
610
+ Label
611
+ </label>
612
+ <div
613
+ class="charcoal-field-label-sub-label"
614
+ >
615
+ <span>
616
+ <button
617
+ class="charcoal-clickable"
618
+ >
619
+ Text Link
620
+ </button>
621
+ </span>
622
+ </div>
623
+ </div>
751
624
  <div
752
- className="charcoal-field-label-sub-label"
625
+ class="charcoal-text-field-container"
626
+ data-invalid="false"
753
627
  >
754
- <span>
755
- <button
756
- className="charcoal-clickable"
757
- >
758
- Text Link
759
- </button>
760
- </span>
628
+ <input
629
+ aria-labelledby="test-id"
630
+ class="charcoal-text-field-input"
631
+ data-invalid="false"
632
+ id="test-id"
633
+ type="text"
634
+ value=""
635
+ />
761
636
  </div>
762
637
  </div>
763
- <div
764
- className="charcoal-text-field-container"
765
- data-invalid={false}
766
- >
767
- <input
768
- aria-labelledby="test-id"
769
- className="charcoal-text-field-input"
770
- data-invalid={false}
771
- disabled={false}
772
- id="test-id"
773
- onChange={[Function]}
774
- type="text"
775
- />
776
- </div>
777
638
  </div>
778
639
  </div>
779
640
  `;