@charcoal-ui/react 3.6.0 → 3.8.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/_lib/compat.d.ts +1 -0
- package/dist/_lib/compat.d.ts.map +1 -1
- package/dist/components/Button/StyledButton.d.ts +13 -0
- package/dist/components/Button/StyledButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.story.d.ts +16 -32
- package/dist/components/Button/index.story.d.ts.map +1 -1
- package/dist/components/Button/lib/variantToBackground.d.ts +3 -0
- package/dist/components/Button/lib/variantToBackground.d.ts.map +1 -0
- package/dist/components/Button/lib/variantToFont.d.ts +3 -0
- package/dist/components/Button/lib/variantToFont.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.story.d.ts +6 -16
- package/dist/components/Checkbox/index.story.d.ts.map +1 -1
- package/dist/components/Clickable/index.story.d.ts +4 -6
- package/dist/components/Clickable/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts +7 -7
- package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts +6 -9
- package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.story.d.ts +3 -7
- package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.story.d.ts +9 -11
- package/dist/components/DropdownSelector/index.story.d.ts.map +1 -1
- package/dist/components/Icon/index.story.d.ts +4 -26
- package/dist/components/Icon/index.story.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.story.d.ts +6 -25
- package/dist/components/IconButton/index.story.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +8 -0
- package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +1 -0
- package/dist/components/LoadingSpinner/index.d.ts +2 -2
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.story.d.ts +4 -7
- package/dist/components/LoadingSpinner/index.story.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +16 -41
- package/dist/components/Modal/index.story.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.story.d.ts +12 -23
- package/dist/components/Radio/index.story.d.ts.map +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts +1 -1
- package/dist/components/SegmentedControl/RadioGroupContext.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.story.d.ts +5 -8
- package/dist/components/SegmentedControl/index.story.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.story.d.ts +7 -12
- package/dist/components/Switch/index.story.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.story.d.ts +14 -24
- package/dist/components/TagItem/index.story.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.story.d.ts +7 -25
- package/dist/components/TextArea/TextArea.story.d.ts.map +1 -1
- package/dist/components/TextField/TextField.story.d.ts +13 -20
- package/dist/components/TextField/TextField.story.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/index.cjs.js +418 -206
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +387 -175
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +17 -20
- package/src/_lib/compat.ts +8 -0
- package/src/components/Button/StyledButton.tsx +71 -0
- package/src/components/Button/__snapshots__/index.story.storyshot +314 -118
- package/src/components/Button/index.story.tsx +141 -138
- package/src/components/Button/index.tsx +15 -104
- package/src/components/Button/lib/variantToBackground.tsx +19 -0
- package/src/components/Button/lib/variantToFont.tsx +19 -0
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +12 -27
- package/src/components/Checkbox/index.story.tsx +82 -88
- package/src/components/Checkbox/index.tsx +2 -12
- package/src/components/Clickable/__snapshots__/index.story.storyshot +2 -2
- package/src/components/Clickable/index.story.tsx +12 -9
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +1 -14
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +42 -37
- package/src/components/DropdownSelector/ListItem/index.story.tsx +8 -4
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +38 -38
- package/src/components/DropdownSelector/MenuList/index.story.tsx +33 -27
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +11 -5
- package/src/components/DropdownSelector/Popover/index.story.tsx +6 -6
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +313 -151
- package/src/components/DropdownSelector/index.story.tsx +207 -171
- package/src/components/DropdownSelector/index.tsx +22 -22
- package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
- package/src/components/Icon/index.story.tsx +8 -12
- package/src/components/IconButton/__snapshots__/index.story.storyshot +130 -13
- package/src/components/IconButton/index.story.tsx +30 -23
- package/src/components/IconButton/index.tsx +32 -20
- package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +12 -0
- package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +28 -0
- package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +1 -35
- package/src/components/LoadingSpinner/index.story.tsx +11 -54
- package/src/components/LoadingSpinner/index.tsx +1 -1
- package/src/components/Modal/__snapshots__/index.story.storyshot +231 -194
- package/src/components/Modal/index.story.tsx +139 -133
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +56 -4
- package/src/components/MultiSelect/index.tsx +3 -0
- package/src/components/Radio/__snapshots__/index.story.storyshot +981 -121
- package/src/components/Radio/index.story.tsx +128 -63
- package/src/components/Radio/index.tsx +10 -16
- package/src/components/SegmentedControl/RadioGroupContext.tsx +1 -1
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +11 -11
- package/src/components/SegmentedControl/index.story.tsx +24 -29
- package/src/components/SegmentedControl/index.tsx +1 -1
- package/src/components/Switch/__snapshots__/index.story.storyshot +184 -26
- package/src/components/Switch/index.story.tsx +72 -48
- package/src/components/Switch/index.tsx +2 -7
- package/src/components/TagItem/__snapshots__/index.story.storyshot +72 -33
- package/src/components/TagItem/index.story.tsx +154 -159
- package/src/components/TagItem/index.tsx +2 -6
- package/src/components/TextArea/TextArea.story.tsx +29 -32
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +139 -83
- package/src/components/TextField/TextField.story.tsx +67 -66
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +198 -162
- package/src/components/TextField/index.tsx +0 -7
- package/dist/components/Checkbox/performance.test.d.ts +0 -4
- package/dist/components/Checkbox/performance.test.d.ts.map +0 -1
- package/dist/components/Checkbox/snapshot.test.d.ts +0 -2
- package/dist/components/Checkbox/snapshot.test.d.ts.map +0 -1
- package/src/components/Checkbox/__snapshots__/snapshot.test.tsx.snap +0 -1093
- package/src/components/Checkbox/performance.test.tsx +0 -30
- package/src/components/Checkbox/snapshot.test.tsx +0 -66
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Storybook Tests TextField Default 1`] = `
|
|
4
4
|
.c7 {
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
-webkit-appearance: none;
|
|
@@ -157,12 +157,6 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
157
157
|
background-color: var(--charcoal-surface3-hover);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.c8:not(:disabled):not([aria-disabled]):active,
|
|
161
|
-
.c8 [aria-disabled='false']:active {
|
|
162
|
-
outline: none;
|
|
163
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
160
|
.c8:focus-within {
|
|
167
161
|
outline: none;
|
|
168
162
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
@@ -230,13 +224,13 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
230
224
|
"border": 0,
|
|
231
225
|
"clip": "rect(0 0 0 0)",
|
|
232
226
|
"clipPath": "inset(50%)",
|
|
233
|
-
"height":
|
|
234
|
-
"margin": "
|
|
227
|
+
"height": "1px",
|
|
228
|
+
"margin": "-1px",
|
|
235
229
|
"overflow": "hidden",
|
|
236
230
|
"padding": 0,
|
|
237
231
|
"position": "absolute",
|
|
238
232
|
"whiteSpace": "nowrap",
|
|
239
|
-
"width":
|
|
233
|
+
"width": "1px",
|
|
240
234
|
}
|
|
241
235
|
}
|
|
242
236
|
>
|
|
@@ -244,8 +238,6 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
244
238
|
className="c4"
|
|
245
239
|
htmlFor="test-id"
|
|
246
240
|
id="test-id"
|
|
247
|
-
onBlur={null}
|
|
248
|
-
onFocus={null}
|
|
249
241
|
>
|
|
250
242
|
Label
|
|
251
243
|
</label>
|
|
@@ -272,7 +264,9 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
272
264
|
onChange={[Function]}
|
|
273
265
|
placeholder="TextField"
|
|
274
266
|
readOnly={false}
|
|
267
|
+
required={false}
|
|
275
268
|
type="text"
|
|
269
|
+
value=""
|
|
276
270
|
/>
|
|
277
271
|
</div>
|
|
278
272
|
</div>
|
|
@@ -280,8 +274,46 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
280
274
|
</div>
|
|
281
275
|
`;
|
|
282
276
|
|
|
283
|
-
exports[`
|
|
284
|
-
.
|
|
277
|
+
exports[`Storybook Tests TextField HasAffix 1`] = `
|
|
278
|
+
.c7 {
|
|
279
|
+
cursor: pointer;
|
|
280
|
+
-webkit-appearance: none;
|
|
281
|
+
-moz-appearance: none;
|
|
282
|
+
appearance: none;
|
|
283
|
+
background: transparent;
|
|
284
|
+
padding: 0;
|
|
285
|
+
border-style: none;
|
|
286
|
+
outline: none;
|
|
287
|
+
color: inherit;
|
|
288
|
+
text-rendering: inherit;
|
|
289
|
+
-webkit-letter-spacing: inherit;
|
|
290
|
+
-moz-letter-spacing: inherit;
|
|
291
|
+
-ms-letter-spacing: inherit;
|
|
292
|
+
letter-spacing: inherit;
|
|
293
|
+
word-spacing: inherit;
|
|
294
|
+
-webkit-text-decoration: none;
|
|
295
|
+
text-decoration: none;
|
|
296
|
+
font: inherit;
|
|
297
|
+
margin: 0;
|
|
298
|
+
overflow: visible;
|
|
299
|
+
text-transform: none;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.c7:disabled,
|
|
303
|
+
.c7[aria-disabled]:not([aria-disabled=false]) {
|
|
304
|
+
cursor: default;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.c7:focus {
|
|
308
|
+
outline: none;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.c7::-moz-focus-inner {
|
|
312
|
+
border-style: none;
|
|
313
|
+
padding: 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.c4 {
|
|
285
317
|
font-size: 14px;
|
|
286
318
|
line-height: 22px;
|
|
287
319
|
font-weight: bold;
|
|
@@ -289,7 +321,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
289
321
|
color: var(--charcoal-text1);
|
|
290
322
|
}
|
|
291
323
|
|
|
292
|
-
.
|
|
324
|
+
.c4::before {
|
|
293
325
|
display: block;
|
|
294
326
|
width: 0;
|
|
295
327
|
height: 0;
|
|
@@ -297,7 +329,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
297
329
|
margin-top: -4px;
|
|
298
330
|
}
|
|
299
331
|
|
|
300
|
-
.
|
|
332
|
+
.c4::after {
|
|
301
333
|
display: block;
|
|
302
334
|
width: 0;
|
|
303
335
|
height: 0;
|
|
@@ -305,7 +337,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
305
337
|
margin-bottom: -4px;
|
|
306
338
|
}
|
|
307
339
|
|
|
308
|
-
.
|
|
340
|
+
.c6 {
|
|
309
341
|
font-size: 14px;
|
|
310
342
|
line-height: 22px;
|
|
311
343
|
display: flow-root;
|
|
@@ -314,7 +346,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
314
346
|
transition: 0.2s color,0.2s box-shadow;
|
|
315
347
|
}
|
|
316
348
|
|
|
317
|
-
.
|
|
349
|
+
.c6::before {
|
|
318
350
|
display: block;
|
|
319
351
|
width: 0;
|
|
320
352
|
height: 0;
|
|
@@ -322,7 +354,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
322
354
|
margin-top: -4px;
|
|
323
355
|
}
|
|
324
356
|
|
|
325
|
-
.
|
|
357
|
+
.c6::after {
|
|
326
358
|
display: block;
|
|
327
359
|
width: 0;
|
|
328
360
|
height: 0;
|
|
@@ -330,27 +362,27 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
330
362
|
margin-bottom: -4px;
|
|
331
363
|
}
|
|
332
364
|
|
|
333
|
-
.
|
|
334
|
-
.
|
|
365
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
366
|
+
.c6[aria-disabled='false']:hover {
|
|
335
367
|
color: var(--charcoal-text3-hover);
|
|
336
368
|
}
|
|
337
369
|
|
|
338
|
-
.
|
|
339
|
-
.
|
|
370
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
371
|
+
.c6[aria-disabled='false']:active {
|
|
340
372
|
color: var(--charcoal-text3-press);
|
|
341
373
|
}
|
|
342
374
|
|
|
343
|
-
.
|
|
344
|
-
.
|
|
345
|
-
.
|
|
346
|
-
.
|
|
347
|
-
.
|
|
348
|
-
.
|
|
375
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
376
|
+
.c6[aria-disabled='false']:active,
|
|
377
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
378
|
+
.c6[aria-disabled='false']:focus,
|
|
379
|
+
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
380
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
349
381
|
outline: none;
|
|
350
382
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
351
383
|
}
|
|
352
384
|
|
|
353
|
-
.
|
|
385
|
+
.c2 {
|
|
354
386
|
display: -webkit-inline-box;
|
|
355
387
|
display: -webkit-inline-flex;
|
|
356
388
|
display: -ms-inline-flexbox;
|
|
@@ -361,11 +393,11 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
361
393
|
align-items: center;
|
|
362
394
|
}
|
|
363
395
|
|
|
364
|
-
.
|
|
396
|
+
.c2 > .c5 {
|
|
365
397
|
margin-left: auto;
|
|
366
398
|
}
|
|
367
399
|
|
|
368
|
-
.
|
|
400
|
+
.c1 {
|
|
369
401
|
display: -webkit-box;
|
|
370
402
|
display: -webkit-flex;
|
|
371
403
|
display: -ms-flexbox;
|
|
@@ -375,11 +407,11 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
375
407
|
flex-direction: column;
|
|
376
408
|
}
|
|
377
409
|
|
|
378
|
-
.
|
|
410
|
+
.c3 {
|
|
379
411
|
margin-bottom: 8px;
|
|
380
412
|
}
|
|
381
413
|
|
|
382
|
-
.
|
|
414
|
+
.c8 {
|
|
383
415
|
display: grid;
|
|
384
416
|
grid-template-columns: auto 1fr auto;
|
|
385
417
|
height: 40px;
|
|
@@ -394,23 +426,17 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
394
426
|
font-size: 14px;
|
|
395
427
|
}
|
|
396
428
|
|
|
397
|
-
.
|
|
398
|
-
.
|
|
429
|
+
.c8:not(:disabled):not([aria-disabled]):hover,
|
|
430
|
+
.c8 [aria-disabled='false']:hover {
|
|
399
431
|
background-color: var(--charcoal-surface3-hover);
|
|
400
432
|
}
|
|
401
433
|
|
|
402
|
-
.
|
|
403
|
-
.c6 [aria-disabled='false']:active {
|
|
404
|
-
outline: none;
|
|
405
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.c6:focus-within {
|
|
434
|
+
.c8:focus-within {
|
|
409
435
|
outline: none;
|
|
410
436
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
411
437
|
}
|
|
412
438
|
|
|
413
|
-
.
|
|
439
|
+
.c9 {
|
|
414
440
|
display: -webkit-box;
|
|
415
441
|
display: -webkit-flex;
|
|
416
442
|
display: -ms-flexbox;
|
|
@@ -421,7 +447,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
421
447
|
align-items: center;
|
|
422
448
|
}
|
|
423
449
|
|
|
424
|
-
.
|
|
450
|
+
.c11 {
|
|
425
451
|
display: -webkit-box;
|
|
426
452
|
display: -webkit-flex;
|
|
427
453
|
display: -ms-flexbox;
|
|
@@ -433,7 +459,7 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
433
459
|
gap: 8px;
|
|
434
460
|
}
|
|
435
461
|
|
|
436
|
-
.
|
|
462
|
+
.c10 {
|
|
437
463
|
border: none;
|
|
438
464
|
box-sizing: border-box;
|
|
439
465
|
outline: none;
|
|
@@ -458,28 +484,33 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
458
484
|
color: var(--charcoal-text2);
|
|
459
485
|
}
|
|
460
486
|
|
|
461
|
-
.
|
|
487
|
+
.c10::-webkit-input-placeholder {
|
|
462
488
|
color: var(--charcoal-text3);
|
|
463
489
|
}
|
|
464
490
|
|
|
465
|
-
.
|
|
491
|
+
.c10::-moz-placeholder {
|
|
466
492
|
color: var(--charcoal-text3);
|
|
467
493
|
}
|
|
468
494
|
|
|
469
|
-
.
|
|
495
|
+
.c10:-ms-input-placeholder {
|
|
470
496
|
color: var(--charcoal-text3);
|
|
471
497
|
}
|
|
472
498
|
|
|
473
|
-
.
|
|
499
|
+
.c10::placeholder {
|
|
474
500
|
color: var(--charcoal-text3);
|
|
475
501
|
}
|
|
476
502
|
|
|
477
|
-
.
|
|
503
|
+
.c12 {
|
|
478
504
|
line-height: 22px;
|
|
479
505
|
font-size: 14px;
|
|
480
506
|
color: var(--charcoal-text3);
|
|
481
507
|
}
|
|
482
508
|
|
|
509
|
+
.c0 {
|
|
510
|
+
display: grid;
|
|
511
|
+
gap: 24px;
|
|
512
|
+
}
|
|
513
|
+
|
|
483
514
|
<div
|
|
484
515
|
data-dark={false}
|
|
485
516
|
>
|
|
@@ -487,72 +518,82 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
487
518
|
className="c0"
|
|
488
519
|
>
|
|
489
520
|
<div
|
|
490
|
-
className="c1
|
|
491
|
-
style={
|
|
492
|
-
Object {
|
|
493
|
-
"border": 0,
|
|
494
|
-
"clip": "rect(0 0 0 0)",
|
|
495
|
-
"clipPath": "inset(50%)",
|
|
496
|
-
"height": 1,
|
|
497
|
-
"margin": "0 -1px -1px 0",
|
|
498
|
-
"overflow": "hidden",
|
|
499
|
-
"padding": 0,
|
|
500
|
-
"position": "absolute",
|
|
501
|
-
"whiteSpace": "nowrap",
|
|
502
|
-
"width": 1,
|
|
503
|
-
}
|
|
504
|
-
}
|
|
521
|
+
className="c1"
|
|
505
522
|
>
|
|
506
|
-
<label
|
|
507
|
-
className="c3"
|
|
508
|
-
htmlFor="test-id"
|
|
509
|
-
id="test-id"
|
|
510
|
-
onBlur={null}
|
|
511
|
-
onFocus={null}
|
|
512
|
-
>
|
|
513
|
-
Label
|
|
514
|
-
</label>
|
|
515
523
|
<div
|
|
516
|
-
className="
|
|
524
|
+
className="c2 c3"
|
|
525
|
+
style={
|
|
526
|
+
Object {
|
|
527
|
+
"border": 0,
|
|
528
|
+
"clip": "rect(0 0 0 0)",
|
|
529
|
+
"clipPath": "inset(50%)",
|
|
530
|
+
"height": "1px",
|
|
531
|
+
"margin": "-1px",
|
|
532
|
+
"overflow": "hidden",
|
|
533
|
+
"padding": 0,
|
|
534
|
+
"position": "absolute",
|
|
535
|
+
"whiteSpace": "nowrap",
|
|
536
|
+
"width": "1px",
|
|
537
|
+
}
|
|
538
|
+
}
|
|
517
539
|
>
|
|
518
|
-
<
|
|
540
|
+
<label
|
|
541
|
+
className="c4"
|
|
542
|
+
htmlFor="test-id"
|
|
543
|
+
id="test-id"
|
|
544
|
+
>
|
|
545
|
+
Label
|
|
546
|
+
</label>
|
|
547
|
+
<div
|
|
548
|
+
className="c5 c6"
|
|
549
|
+
>
|
|
550
|
+
<span>
|
|
551
|
+
<button
|
|
552
|
+
className="c7"
|
|
553
|
+
>
|
|
554
|
+
Text Link
|
|
555
|
+
</button>
|
|
556
|
+
</span>
|
|
557
|
+
</div>
|
|
519
558
|
</div>
|
|
520
|
-
</div>
|
|
521
|
-
<div
|
|
522
|
-
className="c6"
|
|
523
|
-
>
|
|
524
559
|
<div
|
|
525
|
-
className="c7"
|
|
526
|
-
>
|
|
527
|
-
/home/john/
|
|
528
|
-
</div>
|
|
529
|
-
<input
|
|
530
|
-
aria-labelledby="test-id"
|
|
531
560
|
className="c8"
|
|
532
|
-
disabled={false}
|
|
533
|
-
id="test-id"
|
|
534
|
-
maxLength={200}
|
|
535
|
-
onChange={[Function]}
|
|
536
|
-
placeholder="path/to/your/file"
|
|
537
|
-
readOnly={false}
|
|
538
|
-
type="text"
|
|
539
|
-
/>
|
|
540
|
-
<span
|
|
541
|
-
className="c9"
|
|
542
561
|
>
|
|
543
|
-
|
|
544
|
-
|
|
562
|
+
<div
|
|
563
|
+
className="c9"
|
|
564
|
+
>
|
|
565
|
+
/home/john/
|
|
566
|
+
</div>
|
|
567
|
+
<input
|
|
568
|
+
aria-labelledby="test-id"
|
|
545
569
|
className="c10"
|
|
570
|
+
disabled={false}
|
|
571
|
+
id="test-id"
|
|
572
|
+
maxLength={200}
|
|
573
|
+
onChange={[Function]}
|
|
574
|
+
placeholder="TextField"
|
|
575
|
+
readOnly={false}
|
|
576
|
+
required={false}
|
|
577
|
+
type="text"
|
|
578
|
+
value=""
|
|
579
|
+
/>
|
|
580
|
+
<span
|
|
581
|
+
className="c11"
|
|
546
582
|
>
|
|
547
|
-
|
|
583
|
+
.png
|
|
584
|
+
<span
|
|
585
|
+
className="c12"
|
|
586
|
+
>
|
|
587
|
+
0/200
|
|
588
|
+
</span>
|
|
548
589
|
</span>
|
|
549
|
-
</
|
|
590
|
+
</div>
|
|
550
591
|
</div>
|
|
551
592
|
</div>
|
|
552
593
|
</div>
|
|
553
594
|
`;
|
|
554
595
|
|
|
555
|
-
exports[`
|
|
596
|
+
exports[`Storybook Tests TextField HasCount 1`] = `
|
|
556
597
|
.c7 {
|
|
557
598
|
cursor: pointer;
|
|
558
599
|
-webkit-appearance: none;
|
|
@@ -709,12 +750,6 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
709
750
|
background-color: var(--charcoal-surface3-hover);
|
|
710
751
|
}
|
|
711
752
|
|
|
712
|
-
.c8:not(:disabled):not([aria-disabled]):active,
|
|
713
|
-
.c8 [aria-disabled='false']:active {
|
|
714
|
-
outline: none;
|
|
715
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
716
|
-
}
|
|
717
|
-
|
|
718
753
|
.c8:focus-within {
|
|
719
754
|
outline: none;
|
|
720
755
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
@@ -800,13 +835,13 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
800
835
|
"border": 0,
|
|
801
836
|
"clip": "rect(0 0 0 0)",
|
|
802
837
|
"clipPath": "inset(50%)",
|
|
803
|
-
"height":
|
|
804
|
-
"margin": "
|
|
838
|
+
"height": "1px",
|
|
839
|
+
"margin": "-1px",
|
|
805
840
|
"overflow": "hidden",
|
|
806
841
|
"padding": 0,
|
|
807
842
|
"position": "absolute",
|
|
808
843
|
"whiteSpace": "nowrap",
|
|
809
|
-
"width":
|
|
844
|
+
"width": "1px",
|
|
810
845
|
}
|
|
811
846
|
}
|
|
812
847
|
>
|
|
@@ -814,8 +849,6 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
814
849
|
className="c4"
|
|
815
850
|
htmlFor="test-id"
|
|
816
851
|
id="test-id"
|
|
817
|
-
onBlur={null}
|
|
818
|
-
onFocus={null}
|
|
819
852
|
>
|
|
820
853
|
Label
|
|
821
854
|
</label>
|
|
@@ -843,7 +876,9 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
843
876
|
onChange={[Function]}
|
|
844
877
|
placeholder="TextField"
|
|
845
878
|
readOnly={false}
|
|
879
|
+
required={false}
|
|
846
880
|
type="text"
|
|
881
|
+
value=""
|
|
847
882
|
/>
|
|
848
883
|
<span
|
|
849
884
|
className="c10"
|
|
@@ -860,7 +895,7 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
860
895
|
</div>
|
|
861
896
|
`;
|
|
862
897
|
|
|
863
|
-
exports[`
|
|
898
|
+
exports[`Storybook Tests TextField HasLabel 1`] = `
|
|
864
899
|
.c9 {
|
|
865
900
|
cursor: pointer;
|
|
866
901
|
-webkit-appearance: none;
|
|
@@ -1044,12 +1079,6 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1044
1079
|
background-color: var(--charcoal-surface3-hover);
|
|
1045
1080
|
}
|
|
1046
1081
|
|
|
1047
|
-
.c10:not(:disabled):not([aria-disabled]):active,
|
|
1048
|
-
.c10 [aria-disabled='false']:active {
|
|
1049
|
-
outline: none;
|
|
1050
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
1082
|
.c10:focus-within {
|
|
1054
1083
|
outline: none;
|
|
1055
1084
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
@@ -1157,7 +1186,9 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1157
1186
|
onChange={[Function]}
|
|
1158
1187
|
placeholder="TextField"
|
|
1159
1188
|
readOnly={false}
|
|
1189
|
+
required={false}
|
|
1160
1190
|
type="text"
|
|
1191
|
+
value=""
|
|
1161
1192
|
/>
|
|
1162
1193
|
</div>
|
|
1163
1194
|
<p
|
|
@@ -1170,8 +1201,8 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1170
1201
|
</div>
|
|
1171
1202
|
`;
|
|
1172
1203
|
|
|
1173
|
-
exports[`
|
|
1174
|
-
.
|
|
1204
|
+
exports[`Storybook Tests TextField PrefixIcon 1`] = `
|
|
1205
|
+
.c6 {
|
|
1175
1206
|
cursor: pointer;
|
|
1176
1207
|
-webkit-appearance: none;
|
|
1177
1208
|
-moz-appearance: none;
|
|
@@ -1195,16 +1226,16 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1195
1226
|
text-transform: none;
|
|
1196
1227
|
}
|
|
1197
1228
|
|
|
1198
|
-
.
|
|
1199
|
-
.
|
|
1229
|
+
.c6:disabled,
|
|
1230
|
+
.c6[aria-disabled]:not([aria-disabled=false]) {
|
|
1200
1231
|
cursor: default;
|
|
1201
1232
|
}
|
|
1202
1233
|
|
|
1203
|
-
.
|
|
1234
|
+
.c6:focus {
|
|
1204
1235
|
outline: none;
|
|
1205
1236
|
}
|
|
1206
1237
|
|
|
1207
|
-
.
|
|
1238
|
+
.c6::-moz-focus-inner {
|
|
1208
1239
|
border-style: none;
|
|
1209
1240
|
padding: 0;
|
|
1210
1241
|
}
|
|
@@ -1321,21 +1352,27 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1321
1352
|
|
|
1322
1353
|
.c12:not(:disabled):not([aria-disabled]):hover,
|
|
1323
1354
|
.c12[aria-disabled='false']:hover {
|
|
1324
|
-
background-color: var(
|
|
1355
|
+
background-color: var(--charcoal-surface4-hover);
|
|
1325
1356
|
}
|
|
1326
1357
|
|
|
1327
1358
|
.c12:not(:disabled):not([aria-disabled]):active,
|
|
1328
1359
|
.c12[aria-disabled='false']:active {
|
|
1329
|
-
background-color: var(
|
|
1360
|
+
background-color: var(--charcoal-surface4-press);
|
|
1330
1361
|
}
|
|
1331
1362
|
|
|
1332
1363
|
.c12:not(:disabled):not([aria-disabled]):focus,
|
|
1333
|
-
.c12[aria-disabled='false']:focus
|
|
1334
|
-
|
|
1335
|
-
|
|
1364
|
+
.c12[aria-disabled='false']:focus {
|
|
1365
|
+
outline: none;
|
|
1366
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1370
|
+
.c12[aria-disabled='false']:focus:not(:focus-visible) {
|
|
1371
|
+
box-shadow: none;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1336
1374
|
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1337
1375
|
.c12[aria-disabled='false']:focus-visible {
|
|
1338
|
-
outline: none;
|
|
1339
1376
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1340
1377
|
}
|
|
1341
1378
|
|
|
@@ -1358,7 +1395,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1358
1395
|
margin-bottom: 8px;
|
|
1359
1396
|
}
|
|
1360
1397
|
|
|
1361
|
-
.
|
|
1398
|
+
.c7 {
|
|
1362
1399
|
display: grid;
|
|
1363
1400
|
grid-template-columns: auto 1fr auto;
|
|
1364
1401
|
height: 40px;
|
|
@@ -1373,23 +1410,17 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1373
1410
|
font-size: 14px;
|
|
1374
1411
|
}
|
|
1375
1412
|
|
|
1376
|
-
.
|
|
1377
|
-
.
|
|
1413
|
+
.c7:not(:disabled):not([aria-disabled]):hover,
|
|
1414
|
+
.c7 [aria-disabled='false']:hover {
|
|
1378
1415
|
background-color: var(--charcoal-surface3-hover);
|
|
1379
1416
|
}
|
|
1380
1417
|
|
|
1381
|
-
.
|
|
1382
|
-
.c6 [aria-disabled='false']:active {
|
|
1418
|
+
.c7:focus-within {
|
|
1383
1419
|
outline: none;
|
|
1384
1420
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1385
1421
|
}
|
|
1386
1422
|
|
|
1387
|
-
.
|
|
1388
|
-
outline: none;
|
|
1389
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
.c7 {
|
|
1423
|
+
.c8 {
|
|
1393
1424
|
display: -webkit-box;
|
|
1394
1425
|
display: -webkit-flex;
|
|
1395
1426
|
display: -ms-flexbox;
|
|
@@ -1400,7 +1431,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1400
1431
|
align-items: center;
|
|
1401
1432
|
}
|
|
1402
1433
|
|
|
1403
|
-
.
|
|
1434
|
+
.c11 {
|
|
1404
1435
|
display: -webkit-box;
|
|
1405
1436
|
display: -webkit-flex;
|
|
1406
1437
|
display: -ms-flexbox;
|
|
@@ -1412,7 +1443,7 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1412
1443
|
gap: 8px;
|
|
1413
1444
|
}
|
|
1414
1445
|
|
|
1415
|
-
.
|
|
1446
|
+
.c10 {
|
|
1416
1447
|
border: none;
|
|
1417
1448
|
box-sizing: border-box;
|
|
1418
1449
|
outline: none;
|
|
@@ -1437,23 +1468,23 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1437
1468
|
color: var(--charcoal-text2);
|
|
1438
1469
|
}
|
|
1439
1470
|
|
|
1440
|
-
.
|
|
1471
|
+
.c10::-webkit-input-placeholder {
|
|
1441
1472
|
color: var(--charcoal-text3);
|
|
1442
1473
|
}
|
|
1443
1474
|
|
|
1444
|
-
.
|
|
1475
|
+
.c10::-moz-placeholder {
|
|
1445
1476
|
color: var(--charcoal-text3);
|
|
1446
1477
|
}
|
|
1447
1478
|
|
|
1448
|
-
.
|
|
1479
|
+
.c10:-ms-input-placeholder {
|
|
1449
1480
|
color: var(--charcoal-text3);
|
|
1450
1481
|
}
|
|
1451
1482
|
|
|
1452
|
-
.
|
|
1483
|
+
.c10::placeholder {
|
|
1453
1484
|
color: var(--charcoal-text3);
|
|
1454
1485
|
}
|
|
1455
1486
|
|
|
1456
|
-
.
|
|
1487
|
+
.c9 {
|
|
1457
1488
|
display: -webkit-box;
|
|
1458
1489
|
display: -webkit-flex;
|
|
1459
1490
|
display: -ms-flexbox;
|
|
@@ -1478,13 +1509,13 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1478
1509
|
"border": 0,
|
|
1479
1510
|
"clip": "rect(0 0 0 0)",
|
|
1480
1511
|
"clipPath": "inset(50%)",
|
|
1481
|
-
"height":
|
|
1482
|
-
"margin": "
|
|
1512
|
+
"height": "1px",
|
|
1513
|
+
"margin": "-1px",
|
|
1483
1514
|
"overflow": "hidden",
|
|
1484
1515
|
"padding": 0,
|
|
1485
1516
|
"position": "absolute",
|
|
1486
1517
|
"whiteSpace": "nowrap",
|
|
1487
|
-
"width":
|
|
1518
|
+
"width": "1px",
|
|
1488
1519
|
}
|
|
1489
1520
|
}
|
|
1490
1521
|
>
|
|
@@ -1492,25 +1523,29 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1492
1523
|
className="c3"
|
|
1493
1524
|
htmlFor="test-id"
|
|
1494
1525
|
id="test-id"
|
|
1495
|
-
onBlur={null}
|
|
1496
|
-
onFocus={null}
|
|
1497
1526
|
>
|
|
1498
1527
|
Label
|
|
1499
1528
|
</label>
|
|
1500
1529
|
<div
|
|
1501
1530
|
className="c4 c5"
|
|
1502
1531
|
>
|
|
1503
|
-
<span
|
|
1532
|
+
<span>
|
|
1533
|
+
<button
|
|
1534
|
+
className="c6"
|
|
1535
|
+
>
|
|
1536
|
+
Text Link
|
|
1537
|
+
</button>
|
|
1538
|
+
</span>
|
|
1504
1539
|
</div>
|
|
1505
1540
|
</div>
|
|
1506
1541
|
<div
|
|
1507
|
-
className="
|
|
1542
|
+
className="c7"
|
|
1508
1543
|
>
|
|
1509
1544
|
<div
|
|
1510
|
-
className="
|
|
1545
|
+
className="c8"
|
|
1511
1546
|
>
|
|
1512
1547
|
<div
|
|
1513
|
-
className="
|
|
1548
|
+
className="c9"
|
|
1514
1549
|
>
|
|
1515
1550
|
<pixiv-icon
|
|
1516
1551
|
name="16/Search"
|
|
@@ -1519,20 +1554,21 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1519
1554
|
</div>
|
|
1520
1555
|
<input
|
|
1521
1556
|
aria-labelledby="test-id"
|
|
1522
|
-
className="
|
|
1557
|
+
className="c10"
|
|
1523
1558
|
disabled={false}
|
|
1524
1559
|
id="test-id"
|
|
1525
1560
|
onChange={[Function]}
|
|
1526
1561
|
placeholder="作品を検索"
|
|
1527
1562
|
readOnly={false}
|
|
1563
|
+
required={false}
|
|
1528
1564
|
type="text"
|
|
1529
1565
|
value=""
|
|
1530
1566
|
/>
|
|
1531
1567
|
<span
|
|
1532
|
-
className="
|
|
1568
|
+
className="c11"
|
|
1533
1569
|
>
|
|
1534
1570
|
<button
|
|
1535
|
-
className="
|
|
1571
|
+
className="c6 c12"
|
|
1536
1572
|
onClick={[Function]}
|
|
1537
1573
|
>
|
|
1538
1574
|
<pixiv-icon
|