@charcoal-ui/react 3.10.1 → 3.11.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 (91) hide show
  1. package/dist/components/Checkbox/index.d.ts.map +1 -1
  2. package/dist/components/DropdownSelector/Popover/index.d.ts +1 -2
  3. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  4. package/dist/components/Modal/index.d.ts +1 -1
  5. package/dist/components/Modal/index.d.ts.map +1 -1
  6. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
  7. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  8. package/dist/components/Radio/index.d.ts +4 -4
  9. package/dist/components/Radio/index.d.ts.map +1 -1
  10. package/dist/components/TextArea/index.d.ts.map +1 -1
  11. package/dist/components/TextField/index.d.ts.map +1 -1
  12. package/dist/core/CharcoalProvider.d.ts +1 -1
  13. package/dist/core/CharcoalProvider.d.ts.map +1 -1
  14. package/dist/index.cjs.js +120 -348
  15. package/dist/index.cjs.js.map +1 -1
  16. package/dist/index.esm.js +82 -310
  17. package/dist/index.esm.js.map +1 -1
  18. package/package.json +13 -17
  19. package/src/components/Checkbox/__snapshots__/index.story.storyshot +560 -154
  20. package/src/components/Checkbox/index.story.tsx +46 -74
  21. package/src/components/Checkbox/index.tsx +1 -0
  22. package/src/components/DropdownSelector/Popover/index.tsx +1 -2
  23. package/src/components/IconButton/__snapshots__/index.story.storyshot +6 -8
  24. package/src/components/IconButton/index.story.tsx +14 -37
  25. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +139 -1
  26. package/src/components/LoadingSpinner/index.story.tsx +18 -7
  27. package/src/components/Modal/index.tsx +1 -1
  28. package/src/components/Modal/useCustomModalOverlay.tsx +5 -4
  29. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +32 -44
  30. package/src/components/MultiSelect/index.story.tsx +88 -192
  31. package/src/components/MultiSelect/index.tsx +2 -1
  32. package/src/components/Radio/__snapshots__/index.story.storyshot +1 -1
  33. package/src/components/Radio/index.story.tsx +20 -21
  34. package/src/components/Radio/index.tsx +14 -13
  35. package/src/components/Switch/__snapshots__/index.story.storyshot +8 -9
  36. package/src/components/Switch/index.story.tsx +10 -18
  37. package/src/components/TagItem/__snapshots__/index.story.storyshot +791 -665
  38. package/src/components/TagItem/index.story.tsx +44 -161
  39. package/src/components/TextArea/TextArea.story.tsx +62 -24
  40. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +1858 -472
  41. package/src/components/TextArea/index.tsx +2 -0
  42. package/src/components/TextField/TextField.story.tsx +77 -67
  43. package/src/components/TextField/__snapshots__/TextField.story.storyshot +2004 -786
  44. package/src/components/TextField/index.tsx +2 -0
  45. package/src/components/a11y.test.tsx +1 -1
  46. package/src/core/CharcoalProvider.tsx +1 -1
  47. package/dist/components/Button/index.story.d.ts +0 -14
  48. package/dist/components/Button/index.story.d.ts.map +0 -1
  49. package/dist/components/Checkbox/index.story.d.ts +0 -8
  50. package/dist/components/Checkbox/index.story.d.ts.map +0 -1
  51. package/dist/components/Clickable/index.story.d.ts +0 -6
  52. package/dist/components/Clickable/index.story.d.ts.map +0 -1
  53. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +0 -9
  54. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +0 -1
  55. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +0 -8
  56. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +0 -1
  57. package/dist/components/DropdownSelector/Popover/index.story.d.ts +0 -5
  58. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +0 -1
  59. package/dist/components/DropdownSelector/index.story.d.ts +0 -19
  60. package/dist/components/DropdownSelector/index.story.d.ts.map +0 -1
  61. package/dist/components/Icon/index.story.d.ts +0 -6
  62. package/dist/components/Icon/index.story.d.ts.map +0 -1
  63. package/dist/components/IconButton/index.story.d.ts +0 -9
  64. package/dist/components/IconButton/index.story.d.ts.map +0 -1
  65. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +0 -8
  66. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +0 -1
  67. package/dist/components/LoadingSpinner/index.story.d.ts +0 -6
  68. package/dist/components/LoadingSpinner/index.story.d.ts.map +0 -1
  69. package/dist/components/Modal/index.story.d.ts +0 -21
  70. package/dist/components/Modal/index.story.d.ts.map +0 -1
  71. package/dist/components/MultiSelect/index.story.d.ts +0 -82
  72. package/dist/components/MultiSelect/index.story.d.ts.map +0 -1
  73. package/dist/components/MultiSelect/index.test.d.ts +0 -2
  74. package/dist/components/MultiSelect/index.test.d.ts.map +0 -1
  75. package/dist/components/Radio/index.story.d.ts +0 -26
  76. package/dist/components/Radio/index.story.d.ts.map +0 -1
  77. package/dist/components/Radio/index.test.d.ts +0 -2
  78. package/dist/components/Radio/index.test.d.ts.map +0 -1
  79. package/dist/components/SegmentedControl/index.story.d.ts +0 -7
  80. package/dist/components/SegmentedControl/index.story.d.ts.map +0 -1
  81. package/dist/components/Switch/index.story.d.ts +0 -9
  82. package/dist/components/Switch/index.story.d.ts.map +0 -1
  83. package/dist/components/TagItem/index.story.d.ts +0 -16
  84. package/dist/components/TagItem/index.story.d.ts.map +0 -1
  85. package/dist/components/TextArea/TextArea.story.d.ts +0 -9
  86. package/dist/components/TextArea/TextArea.story.d.ts.map +0 -1
  87. package/dist/components/TextField/TextField.story.d.ts +0 -22
  88. package/dist/components/TextField/TextField.story.d.ts.map +0 -1
  89. package/dist/components/a11y.test.d.ts +0 -2
  90. package/dist/components/a11y.test.d.ts.map +0 -1
  91. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +0 -13
@@ -1,5 +1,477 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Storybook Tests Checkbox Checked 1`] = `
4
+ .c0 {
5
+ position: relative;
6
+ display: -webkit-box;
7
+ display: -webkit-flex;
8
+ display: -ms-flexbox;
9
+ display: flex;
10
+ cursor: pointer;
11
+ gap: 4px;
12
+ }
13
+
14
+ .c0:disabled,
15
+ .c0[aria-disabled]:not([aria-disabled='false']) {
16
+ cursor: default;
17
+ opacity: 0.32;
18
+ }
19
+
20
+ .c1 {
21
+ position: relative;
22
+ }
23
+
24
+ .c2[type='checkbox'] {
25
+ -webkit-appearance: none;
26
+ -moz-appearance: none;
27
+ appearance: none;
28
+ display: block;
29
+ cursor: pointer;
30
+ margin: 0;
31
+ width: 20px;
32
+ height: 20px;
33
+ border-radius: 4px;
34
+ -webkit-transition: 0.2s box-shadow,0.2s background-color;
35
+ transition: 0.2s box-shadow,0.2s background-color;
36
+ }
37
+
38
+ .c2[type='checkbox']:disabled {
39
+ cursor: default;
40
+ }
41
+
42
+ .c2[type='checkbox']:-moz-read-only {
43
+ cursor: default;
44
+ }
45
+
46
+ .c2[type='checkbox']:read-only {
47
+ cursor: default;
48
+ }
49
+
50
+ .c2[type='checkbox']:checked {
51
+ background-color: var(--charcoal-brand);
52
+ }
53
+
54
+ .c2[type='checkbox']:checked:not(:disabled):not([aria-disabled]):hover,
55
+ .c2[type='checkbox']:checked[aria-disabled='false']:hover {
56
+ background-color: var(--charcoal-brand-hover);
57
+ }
58
+
59
+ .c2[type='checkbox']:checked:not(:disabled):not([aria-disabled]):active,
60
+ .c2[type='checkbox']:checked[aria-disabled='false']:active {
61
+ background-color: var(--charcoal-brand-press);
62
+ }
63
+
64
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus,
65
+ .c2[type='checkbox'][aria-disabled='false']:focus {
66
+ outline: none;
67
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
68
+ }
69
+
70
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
71
+ .c2[type='checkbox'][aria-disabled='false']:focus:not(:focus-visible) {
72
+ box-shadow: none;
73
+ }
74
+
75
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus-visible,
76
+ .c2[type='checkbox'][aria-disabled='false']:focus-visible {
77
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
78
+ }
79
+
80
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
81
+ .c2[type='checkbox'][aria-disabled='false'][aria-invalid='true'] {
82
+ box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
83
+ }
84
+
85
+ .c2[type='checkbox']:not(:checked) {
86
+ border-width: 2px;
87
+ border-style: solid;
88
+ border-color: var(--charcoal-text4);
89
+ }
90
+
91
+ .c3 {
92
+ position: absolute;
93
+ top: -2px;
94
+ left: -2px;
95
+ box-sizing: border-box;
96
+ display: -webkit-box;
97
+ display: -webkit-flex;
98
+ display: -ms-flexbox;
99
+ display: flex;
100
+ -webkit-align-items: center;
101
+ -webkit-box-align: center;
102
+ -ms-flex-align: center;
103
+ align-items: center;
104
+ -webkit-box-pack: center;
105
+ -webkit-justify-content: center;
106
+ -ms-flex-pack: center;
107
+ justify-content: center;
108
+ width: 24px;
109
+ height: 24px;
110
+ color: var(--charcoal-text5);
111
+ }
112
+
113
+ <div
114
+ data-dark={false}
115
+ >
116
+ <label
117
+ aria-disabled={false}
118
+ className="c0"
119
+ >
120
+ <div
121
+ className="c1"
122
+ >
123
+ <input
124
+ aria-label="同意する"
125
+ checked={true}
126
+ className="c2"
127
+ disabled={false}
128
+ name="labelled"
129
+ onChange={[Function]}
130
+ onClick={[Function]}
131
+ onDragStart={[Function]}
132
+ onKeyDown={[Function]}
133
+ onKeyUp={[Function]}
134
+ onMouseDown={[Function]}
135
+ onMouseEnter={[Function]}
136
+ onMouseLeave={[Function]}
137
+ onMouseUp={[Function]}
138
+ onTouchCancel={[Function]}
139
+ onTouchEnd={[Function]}
140
+ onTouchMove={[Function]}
141
+ onTouchStart={[Function]}
142
+ type="checkbox"
143
+ />
144
+ <div
145
+ aria-hidden={true}
146
+ checked={true}
147
+ className="c3"
148
+ >
149
+ <pixiv-icon
150
+ name="24/Check"
151
+ unsafe-non-guideline-scale={0.6666666666666666}
152
+ />
153
+ </div>
154
+ </div>
155
+ </label>
156
+ </div>
157
+ `;
158
+
159
+ exports[`Storybook Tests Checkbox Default 1`] = `
160
+ .c0 {
161
+ position: relative;
162
+ display: -webkit-box;
163
+ display: -webkit-flex;
164
+ display: -ms-flexbox;
165
+ display: flex;
166
+ cursor: pointer;
167
+ gap: 4px;
168
+ }
169
+
170
+ .c0:disabled,
171
+ .c0[aria-disabled]:not([aria-disabled='false']) {
172
+ cursor: default;
173
+ opacity: 0.32;
174
+ }
175
+
176
+ .c1 {
177
+ position: relative;
178
+ }
179
+
180
+ .c2[type='checkbox'] {
181
+ -webkit-appearance: none;
182
+ -moz-appearance: none;
183
+ appearance: none;
184
+ display: block;
185
+ cursor: pointer;
186
+ margin: 0;
187
+ width: 20px;
188
+ height: 20px;
189
+ border-radius: 4px;
190
+ -webkit-transition: 0.2s box-shadow,0.2s background-color;
191
+ transition: 0.2s box-shadow,0.2s background-color;
192
+ }
193
+
194
+ .c2[type='checkbox']:disabled {
195
+ cursor: default;
196
+ }
197
+
198
+ .c2[type='checkbox']:-moz-read-only {
199
+ cursor: default;
200
+ }
201
+
202
+ .c2[type='checkbox']:read-only {
203
+ cursor: default;
204
+ }
205
+
206
+ .c2[type='checkbox']:checked {
207
+ background-color: var(--charcoal-brand);
208
+ }
209
+
210
+ .c2[type='checkbox']:checked:not(:disabled):not([aria-disabled]):hover,
211
+ .c2[type='checkbox']:checked[aria-disabled='false']:hover {
212
+ background-color: var(--charcoal-brand-hover);
213
+ }
214
+
215
+ .c2[type='checkbox']:checked:not(:disabled):not([aria-disabled]):active,
216
+ .c2[type='checkbox']:checked[aria-disabled='false']:active {
217
+ background-color: var(--charcoal-brand-press);
218
+ }
219
+
220
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus,
221
+ .c2[type='checkbox'][aria-disabled='false']:focus {
222
+ outline: none;
223
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
224
+ }
225
+
226
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
227
+ .c2[type='checkbox'][aria-disabled='false']:focus:not(:focus-visible) {
228
+ box-shadow: none;
229
+ }
230
+
231
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus-visible,
232
+ .c2[type='checkbox'][aria-disabled='false']:focus-visible {
233
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
234
+ }
235
+
236
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
237
+ .c2[type='checkbox'][aria-disabled='false'][aria-invalid='true'] {
238
+ box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
239
+ }
240
+
241
+ .c2[type='checkbox']:not(:checked) {
242
+ border-width: 2px;
243
+ border-style: solid;
244
+ border-color: var(--charcoal-text4);
245
+ }
246
+
247
+ .c3 {
248
+ position: absolute;
249
+ top: -2px;
250
+ left: -2px;
251
+ box-sizing: border-box;
252
+ display: -webkit-box;
253
+ display: -webkit-flex;
254
+ display: -ms-flexbox;
255
+ display: flex;
256
+ -webkit-align-items: center;
257
+ -webkit-box-align: center;
258
+ -ms-flex-align: center;
259
+ align-items: center;
260
+ -webkit-box-pack: center;
261
+ -webkit-justify-content: center;
262
+ -ms-flex-pack: center;
263
+ justify-content: center;
264
+ width: 24px;
265
+ height: 24px;
266
+ color: var(--charcoal-text5);
267
+ visibility: hidden;
268
+ }
269
+
270
+ <div
271
+ data-dark={false}
272
+ >
273
+ <label
274
+ aria-disabled={false}
275
+ className="c0"
276
+ >
277
+ <div
278
+ className="c1"
279
+ >
280
+ <input
281
+ aria-label="label"
282
+ checked={false}
283
+ className="c2"
284
+ disabled={false}
285
+ name="labelled"
286
+ onBlur={[Function]}
287
+ onChange={[Function]}
288
+ onClick={[Function]}
289
+ onDragStart={[Function]}
290
+ onFocus={[Function]}
291
+ onKeyDown={[Function]}
292
+ onKeyUp={[Function]}
293
+ onMouseDown={[Function]}
294
+ onMouseEnter={[Function]}
295
+ onMouseLeave={[Function]}
296
+ onMouseUp={[Function]}
297
+ onTouchCancel={[Function]}
298
+ onTouchEnd={[Function]}
299
+ onTouchMove={[Function]}
300
+ onTouchStart={[Function]}
301
+ type="checkbox"
302
+ />
303
+ <div
304
+ aria-hidden={true}
305
+ checked={false}
306
+ className="c3"
307
+ >
308
+ <pixiv-icon
309
+ name="24/Check"
310
+ unsafe-non-guideline-scale={0.6666666666666666}
311
+ />
312
+ </div>
313
+ </div>
314
+ </label>
315
+ </div>
316
+ `;
317
+
318
+ exports[`Storybook Tests Checkbox Disabled 1`] = `
319
+ .c0 {
320
+ position: relative;
321
+ display: -webkit-box;
322
+ display: -webkit-flex;
323
+ display: -ms-flexbox;
324
+ display: flex;
325
+ cursor: pointer;
326
+ gap: 4px;
327
+ }
328
+
329
+ .c0:disabled,
330
+ .c0[aria-disabled]:not([aria-disabled='false']) {
331
+ cursor: default;
332
+ opacity: 0.32;
333
+ }
334
+
335
+ .c1 {
336
+ position: relative;
337
+ }
338
+
339
+ .c2[type='checkbox'] {
340
+ -webkit-appearance: none;
341
+ -moz-appearance: none;
342
+ appearance: none;
343
+ display: block;
344
+ cursor: pointer;
345
+ margin: 0;
346
+ width: 20px;
347
+ height: 20px;
348
+ border-radius: 4px;
349
+ -webkit-transition: 0.2s box-shadow,0.2s background-color;
350
+ transition: 0.2s box-shadow,0.2s background-color;
351
+ }
352
+
353
+ .c2[type='checkbox']:disabled {
354
+ cursor: default;
355
+ }
356
+
357
+ .c2[type='checkbox']:-moz-read-only {
358
+ cursor: default;
359
+ }
360
+
361
+ .c2[type='checkbox']:read-only {
362
+ cursor: default;
363
+ }
364
+
365
+ .c2[type='checkbox']:checked {
366
+ background-color: var(--charcoal-brand);
367
+ }
368
+
369
+ .c2[type='checkbox']:checked:not(:disabled):not([aria-disabled]):hover,
370
+ .c2[type='checkbox']:checked[aria-disabled='false']:hover {
371
+ background-color: var(--charcoal-brand-hover);
372
+ }
373
+
374
+ .c2[type='checkbox']:checked:not(:disabled):not([aria-disabled]):active,
375
+ .c2[type='checkbox']:checked[aria-disabled='false']:active {
376
+ background-color: var(--charcoal-brand-press);
377
+ }
378
+
379
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus,
380
+ .c2[type='checkbox'][aria-disabled='false']:focus {
381
+ outline: none;
382
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
383
+ }
384
+
385
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
386
+ .c2[type='checkbox'][aria-disabled='false']:focus:not(:focus-visible) {
387
+ box-shadow: none;
388
+ }
389
+
390
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled]):focus-visible,
391
+ .c2[type='checkbox'][aria-disabled='false']:focus-visible {
392
+ box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
393
+ }
394
+
395
+ .c2[type='checkbox']:not(:disabled):not([aria-disabled])[aria-invalid='true'],
396
+ .c2[type='checkbox'][aria-disabled='false'][aria-invalid='true'] {
397
+ box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
398
+ }
399
+
400
+ .c2[type='checkbox']:not(:checked) {
401
+ border-width: 2px;
402
+ border-style: solid;
403
+ border-color: var(--charcoal-text4);
404
+ }
405
+
406
+ .c3 {
407
+ position: absolute;
408
+ top: -2px;
409
+ left: -2px;
410
+ box-sizing: border-box;
411
+ display: -webkit-box;
412
+ display: -webkit-flex;
413
+ display: -ms-flexbox;
414
+ display: flex;
415
+ -webkit-align-items: center;
416
+ -webkit-box-align: center;
417
+ -ms-flex-align: center;
418
+ align-items: center;
419
+ -webkit-box-pack: center;
420
+ -webkit-justify-content: center;
421
+ -ms-flex-pack: center;
422
+ justify-content: center;
423
+ width: 24px;
424
+ height: 24px;
425
+ color: var(--charcoal-text5);
426
+ visibility: hidden;
427
+ }
428
+
429
+ <div
430
+ data-dark={false}
431
+ >
432
+ <label
433
+ aria-disabled={true}
434
+ className="c0"
435
+ >
436
+ <div
437
+ className="c1"
438
+ >
439
+ <input
440
+ aria-label="同意する"
441
+ checked={false}
442
+ className="c2"
443
+ disabled={true}
444
+ name="labelled"
445
+ onChange={[Function]}
446
+ onClick={[Function]}
447
+ onDragStart={[Function]}
448
+ onKeyDown={[Function]}
449
+ onKeyUp={[Function]}
450
+ onMouseDown={[Function]}
451
+ onMouseEnter={[Function]}
452
+ onMouseLeave={[Function]}
453
+ onMouseUp={[Function]}
454
+ onTouchCancel={[Function]}
455
+ onTouchEnd={[Function]}
456
+ onTouchMove={[Function]}
457
+ onTouchStart={[Function]}
458
+ type="checkbox"
459
+ />
460
+ <div
461
+ aria-hidden={true}
462
+ checked={false}
463
+ className="c3"
464
+ >
465
+ <pixiv-icon
466
+ name="24/Check"
467
+ unsafe-non-guideline-scale={0.6666666666666666}
468
+ />
469
+ </div>
470
+ </div>
471
+ </label>
472
+ </div>
473
+ `;
474
+
3
475
  exports[`Storybook Tests Checkbox Invalid 1`] = `
4
476
  .c0 {
5
477
  position: relative;
@@ -133,11 +605,9 @@ exports[`Storybook Tests Checkbox Invalid 1`] = `
133
605
  className="c2"
134
606
  disabled={false}
135
607
  name="labelled"
136
- onBlur={[Function]}
137
608
  onChange={[Function]}
138
609
  onClick={[Function]}
139
610
  onDragStart={[Function]}
140
- onFocus={[Function]}
141
611
  onKeyDown={[Function]}
142
612
  onKeyUp={[Function]}
143
613
  onMouseDown={[Function]}
@@ -148,7 +618,6 @@ exports[`Storybook Tests Checkbox Invalid 1`] = `
148
618
  onTouchEnd={[Function]}
149
619
  onTouchMove={[Function]}
150
620
  onTouchStart={[Function]}
151
- readOnly={false}
152
621
  type="checkbox"
153
622
  />
154
623
  <div
@@ -171,7 +640,7 @@ exports[`Storybook Tests Checkbox Invalid 1`] = `
171
640
  </div>
172
641
  `;
173
642
 
174
- exports[`Storybook Tests Checkbox Labelled 1`] = `
643
+ exports[`Storybook Tests Checkbox Label 1`] = `
175
644
  .c0 {
176
645
  position: relative;
177
646
  display: -webkit-box;
@@ -288,128 +757,68 @@ exports[`Storybook Tests Checkbox Labelled 1`] = `
288
757
  line-height: 20px;
289
758
  }
290
759
 
760
+ .c5 {
761
+ -webkit-user-select: none;
762
+ -moz-user-select: none;
763
+ -ms-user-select: none;
764
+ user-select: none;
765
+ }
766
+
291
767
  <div
292
768
  data-dark={false}
293
769
  >
294
- <div>
770
+ <label
771
+ aria-disabled={false}
772
+ className="c0"
773
+ >
295
774
  <div
296
- style={
297
- Object {
298
- "marginBottom": "1em",
299
- }
300
- }
775
+ className="c1"
301
776
  >
302
- <label
303
- aria-disabled={false}
304
- className="c0"
777
+ <input
778
+ checked={false}
779
+ className="c2"
780
+ disabled={false}
781
+ name="labelled"
782
+ onChange={[Function]}
783
+ onClick={[Function]}
784
+ onDragStart={[Function]}
785
+ onKeyDown={[Function]}
786
+ onKeyUp={[Function]}
787
+ onMouseDown={[Function]}
788
+ onMouseEnter={[Function]}
789
+ onMouseLeave={[Function]}
790
+ onMouseUp={[Function]}
791
+ onTouchCancel={[Function]}
792
+ onTouchEnd={[Function]}
793
+ onTouchMove={[Function]}
794
+ onTouchStart={[Function]}
795
+ type="checkbox"
796
+ />
797
+ <div
798
+ aria-hidden={true}
799
+ checked={false}
800
+ className="c3"
305
801
  >
306
- <div
307
- className="c1"
308
- >
309
- <input
310
- checked={false}
311
- className="c2"
312
- disabled={false}
313
- name="labelled"
314
- onBlur={[Function]}
315
- onChange={[Function]}
316
- onClick={[Function]}
317
- onDragStart={[Function]}
318
- onFocus={[Function]}
319
- onKeyDown={[Function]}
320
- onKeyUp={[Function]}
321
- onMouseDown={[Function]}
322
- onMouseEnter={[Function]}
323
- onMouseLeave={[Function]}
324
- onMouseUp={[Function]}
325
- onTouchCancel={[Function]}
326
- onTouchEnd={[Function]}
327
- onTouchMove={[Function]}
328
- onTouchStart={[Function]}
329
- readOnly={false}
330
- type="checkbox"
331
- />
332
- <div
333
- aria-hidden={true}
334
- checked={false}
335
- className="c3"
336
- >
337
- <pixiv-icon
338
- name="24/Check"
339
- unsafe-non-guideline-scale={0.6666666666666666}
340
- />
341
- </div>
342
- </div>
343
- <div
344
- className="c4"
345
- >
346
- 同意する
347
- </div>
348
- </label>
802
+ <pixiv-icon
803
+ name="24/Check"
804
+ unsafe-non-guideline-scale={0.6666666666666666}
805
+ />
806
+ </div>
349
807
  </div>
350
- <div>
351
- <label
352
- aria-disabled={false}
353
- className="c0"
808
+ <div
809
+ className="c4"
810
+ >
811
+ <span
812
+ className="c5"
354
813
  >
355
- <div
356
- className="c1"
357
- >
358
- <input
359
- checked={false}
360
- className="c2"
361
- disabled={false}
362
- name="labelled"
363
- onBlur={[Function]}
364
- onChange={[Function]}
365
- onClick={[Function]}
366
- onDragStart={[Function]}
367
- onFocus={[Function]}
368
- onKeyDown={[Function]}
369
- onKeyUp={[Function]}
370
- onMouseDown={[Function]}
371
- onMouseEnter={[Function]}
372
- onMouseLeave={[Function]}
373
- onMouseUp={[Function]}
374
- onTouchCancel={[Function]}
375
- onTouchEnd={[Function]}
376
- onTouchMove={[Function]}
377
- onTouchStart={[Function]}
378
- readOnly={false}
379
- type="checkbox"
380
- />
381
- <div
382
- aria-hidden={true}
383
- checked={false}
384
- className="c3"
385
- >
386
- <pixiv-icon
387
- name="24/Check"
388
- unsafe-non-guideline-scale={0.6666666666666666}
389
- />
390
- </div>
391
- </div>
392
- <div
393
- className="c4"
394
- >
395
- <span
396
- style={
397
- Object {
398
- "display": "block",
399
- "width": 200,
400
- }
401
- }
402
- >
403
- 同意する同意する同意する同意する同意する同意する同意する同意する同意する同意する同意する同意する同意する
404
- </span>
405
- </div>
406
- </label>
814
+ 同意する
815
+ </span>
407
816
  </div>
408
- </div>
817
+ </label>
409
818
  </div>
410
819
  `;
411
820
 
412
- exports[`Storybook Tests Checkbox Unlabelled 1`] = `
821
+ exports[`Storybook Tests Checkbox ReadOnly 1`] = `
413
822
  .c0 {
414
823
  position: relative;
415
824
  display: -webkit-box;
@@ -523,50 +932,47 @@ exports[`Storybook Tests Checkbox Unlabelled 1`] = `
523
932
  <div
524
933
  data-dark={false}
525
934
  >
526
- <div>
527
- <label
528
- aria-disabled={false}
529
- className="c0"
935
+ <label
936
+ aria-disabled={true}
937
+ className="c0"
938
+ >
939
+ <div
940
+ className="c1"
530
941
  >
942
+ <input
943
+ aria-label="同意する"
944
+ aria-readonly={true}
945
+ checked={false}
946
+ className="c2"
947
+ disabled={false}
948
+ name="labelled"
949
+ onChange={[Function]}
950
+ onClick={[Function]}
951
+ onDragStart={[Function]}
952
+ onKeyDown={[Function]}
953
+ onKeyUp={[Function]}
954
+ onMouseDown={[Function]}
955
+ onMouseEnter={[Function]}
956
+ onMouseLeave={[Function]}
957
+ onMouseUp={[Function]}
958
+ onTouchCancel={[Function]}
959
+ onTouchEnd={[Function]}
960
+ onTouchMove={[Function]}
961
+ onTouchStart={[Function]}
962
+ readOnly={true}
963
+ type="checkbox"
964
+ />
531
965
  <div
532
- className="c1"
966
+ aria-hidden={true}
967
+ checked={false}
968
+ className="c3"
533
969
  >
534
- <input
535
- aria-label="label"
536
- checked={false}
537
- className="c2"
538
- disabled={false}
539
- name="unlabelled"
540
- onBlur={[Function]}
541
- onChange={[Function]}
542
- onClick={[Function]}
543
- onDragStart={[Function]}
544
- onFocus={[Function]}
545
- onKeyDown={[Function]}
546
- onKeyUp={[Function]}
547
- onMouseDown={[Function]}
548
- onMouseEnter={[Function]}
549
- onMouseLeave={[Function]}
550
- onMouseUp={[Function]}
551
- onTouchCancel={[Function]}
552
- onTouchEnd={[Function]}
553
- onTouchMove={[Function]}
554
- onTouchStart={[Function]}
555
- readOnly={false}
556
- type="checkbox"
970
+ <pixiv-icon
971
+ name="24/Check"
972
+ unsafe-non-guideline-scale={0.6666666666666666}
557
973
  />
558
- <div
559
- aria-hidden={true}
560
- checked={false}
561
- className="c3"
562
- >
563
- <pixiv-icon
564
- name="24/Check"
565
- unsafe-non-guideline-scale={0.6666666666666666}
566
- />
567
- </div>
568
974
  </div>
569
- </label>
570
- </div>
975
+ </div>
976
+ </label>
571
977
  </div>
572
978
  `;