@charcoal-ui/react 4.0.0-beta.4 → 4.0.0-beta.6

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 (141) hide show
  1. package/README.md +1 -1
  2. package/dist/_lib/useClassNames.d.ts +2 -2
  3. package/dist/_lib/useClassNames.d.ts.map +1 -1
  4. package/dist/components/Checkbox/CheckboxInput/index.d.ts +11 -0
  5. package/dist/components/Checkbox/CheckboxInput/index.d.ts.map +1 -0
  6. package/dist/components/Checkbox/CheckboxWithLabel.d.ts +9 -0
  7. package/dist/components/Checkbox/CheckboxWithLabel.d.ts.map +1 -0
  8. package/dist/components/Checkbox/index.d.ts +9 -7
  9. package/dist/components/Checkbox/index.d.ts.map +1 -1
  10. package/dist/components/Clickable/index.d.ts +10 -13
  11. package/dist/components/Clickable/index.d.ts.map +1 -1
  12. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  13. package/dist/components/FieldLabel/index.d.ts +1 -0
  14. package/dist/components/FieldLabel/index.d.ts.map +1 -1
  15. package/dist/components/IconButton/index.d.ts +7 -5
  16. package/dist/components/IconButton/index.d.ts.map +1 -1
  17. package/dist/components/LoadingSpinner/index.d.ts +1 -0
  18. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  19. package/dist/components/Modal/Dialog/index.d.ts +6 -24
  20. package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
  21. package/dist/components/Modal/ModalPlumbing.d.ts +10 -3
  22. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  23. package/dist/components/Modal/index.d.ts +5 -1
  24. package/dist/components/Modal/index.d.ts.map +1 -1
  25. package/dist/components/Radio/index.d.ts +3 -5
  26. package/dist/components/Radio/index.d.ts.map +1 -1
  27. package/dist/components/SegmentedControl/index.d.ts +1 -0
  28. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  29. package/dist/components/Switch/SwitchInput/index.d.ts +9 -0
  30. package/dist/components/Switch/SwitchInput/index.d.ts.map +1 -0
  31. package/dist/components/Switch/SwitchWithLabel.d.ts +9 -0
  32. package/dist/components/Switch/SwitchWithLabel.d.ts.map +1 -0
  33. package/dist/components/Switch/index.d.ts +4 -15
  34. package/dist/components/Switch/index.d.ts.map +1 -1
  35. package/dist/components/TagItem/index.d.ts +14 -15
  36. package/dist/components/TagItem/index.d.ts.map +1 -1
  37. package/dist/components/TextArea/index.d.ts +28 -18
  38. package/dist/components/TextArea/index.d.ts.map +1 -1
  39. package/dist/components/TextField/index.d.ts +32 -19
  40. package/dist/components/TextField/index.d.ts.map +1 -1
  41. package/dist/core/SSRProvider.d.ts +3 -1
  42. package/dist/core/SSRProvider.d.ts.map +1 -1
  43. package/dist/index.cjs.js +471 -845
  44. package/dist/index.cjs.js.map +1 -1
  45. package/dist/index.css +732 -28
  46. package/dist/index.css.map +1 -1
  47. package/dist/index.d.ts +2 -3
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.esm.js +427 -800
  50. package/dist/index.esm.js.map +1 -1
  51. package/dist/styled.d.ts +4 -4
  52. package/package.json +11 -10
  53. package/src/_lib/useClassNames.ts +3 -9
  54. package/src/components/Button/__snapshots__/index.story.storyshot +9 -9
  55. package/src/components/Button/index.story.tsx +1 -1
  56. package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +77 -0
  57. package/src/components/Checkbox/CheckboxInput/index.css +111 -0
  58. package/src/components/{CheckboxInput → Checkbox/CheckboxInput}/index.story.tsx +17 -1
  59. package/src/components/Checkbox/CheckboxInput/index.tsx +47 -0
  60. package/src/components/Checkbox/CheckboxWithLabel.tsx +24 -0
  61. package/src/components/Checkbox/__snapshots__/index.story.storyshot +59 -140
  62. package/src/components/Checkbox/index.css +2 -2
  63. package/src/components/Checkbox/index.story.tsx +18 -13
  64. package/src/components/Checkbox/index.tsx +23 -15
  65. package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -80
  66. package/src/components/Clickable/index.css +41 -0
  67. package/src/components/Clickable/index.story.tsx +2 -2
  68. package/src/components/Clickable/index.tsx +25 -85
  69. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +11 -136
  70. package/src/components/DropdownSelector/ListItem/index.story.tsx +1 -1
  71. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +3 -3
  72. package/src/components/DropdownSelector/MenuList/index.story.tsx +1 -1
  73. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +1 -1
  74. package/src/components/DropdownSelector/Popover/index.story.tsx +1 -1
  75. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +184 -1435
  76. package/src/components/DropdownSelector/index.story.tsx +2 -2
  77. package/src/components/DropdownSelector/index.tsx +9 -38
  78. package/src/components/FieldLabel/index.css +35 -0
  79. package/src/components/FieldLabel/index.tsx +15 -105
  80. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  81. package/src/components/Icon/index.story.tsx +1 -1
  82. package/src/components/IconButton/__snapshots__/index.story.storyshot +15 -291
  83. package/src/components/IconButton/index.css +118 -0
  84. package/src/components/IconButton/index.story.tsx +3 -3
  85. package/src/components/IconButton/index.tsx +41 -118
  86. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +2 -17
  87. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +44 -132
  88. package/src/components/LoadingSpinner/index.css +42 -0
  89. package/src/components/LoadingSpinner/index.story.tsx +1 -1
  90. package/src/components/LoadingSpinner/index.tsx +26 -52
  91. package/src/components/Modal/Dialog/index.css +44 -0
  92. package/src/components/Modal/Dialog/index.tsx +13 -57
  93. package/src/components/Modal/ModalPlumbing.css +40 -0
  94. package/src/components/Modal/ModalPlumbing.tsx +22 -61
  95. package/src/components/Modal/__snapshots__/index.story.storyshot +479 -1893
  96. package/src/components/Modal/index.css +36 -0
  97. package/src/components/Modal/index.story.tsx +2 -2
  98. package/src/components/Modal/index.tsx +37 -72
  99. package/src/components/Radio/__snapshots__/index.story.storyshot +55 -780
  100. package/src/components/Radio/index.css +97 -0
  101. package/src/components/Radio/index.story.tsx +2 -11
  102. package/src/components/Radio/index.test.tsx +0 -1
  103. package/src/components/Radio/index.tsx +50 -161
  104. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +32 -262
  105. package/src/components/SegmentedControl/index.css +50 -0
  106. package/src/components/SegmentedControl/index.story.tsx +1 -1
  107. package/src/components/SegmentedControl/index.tsx +20 -89
  108. package/src/components/Switch/SwitchInput/index.css +82 -0
  109. package/src/components/Switch/SwitchInput/index.tsx +40 -0
  110. package/src/components/Switch/SwitchWithLabel.tsx +24 -0
  111. package/src/components/Switch/__snapshots__/index.story.storyshot +33 -536
  112. package/src/components/Switch/index.css +23 -0
  113. package/src/components/Switch/index.story.tsx +6 -1
  114. package/src/components/Switch/index.tsx +43 -140
  115. package/src/components/TagItem/__snapshots__/index.story.storyshot +161 -1138
  116. package/src/components/TagItem/index.css +140 -0
  117. package/src/components/TagItem/index.story.tsx +2 -2
  118. package/src/components/TagItem/index.tsx +76 -220
  119. package/src/components/TextArea/TextArea.story.tsx +1 -1
  120. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +214 -1368
  121. package/src/components/TextArea/index.tsx +68 -91
  122. package/src/components/TextField/TextField.story.tsx +1 -1
  123. package/src/components/TextField/__snapshots__/TextField.story.storyshot +287 -1627
  124. package/src/components/TextField/index.tsx +77 -105
  125. package/src/core/SSRProvider.tsx +12 -1
  126. package/src/index.ts +5 -8
  127. package/src/type.d.ts +6 -0
  128. package/dist/components/CheckboxInput/index.d.ts +0 -9
  129. package/dist/components/CheckboxInput/index.d.ts.map +0 -1
  130. package/dist/components/MultiSelect/context.d.ts +0 -14
  131. package/dist/components/MultiSelect/context.d.ts.map +0 -1
  132. package/dist/components/MultiSelect/index.d.ts +0 -36
  133. package/dist/components/MultiSelect/index.d.ts.map +0 -1
  134. package/src/components/CheckboxInput/__snapshots__/index.story.storyshot +0 -109
  135. package/src/components/CheckboxInput/index.css +0 -77
  136. package/src/components/CheckboxInput/index.tsx +0 -53
  137. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +0 -1054
  138. package/src/components/MultiSelect/context.ts +0 -23
  139. package/src/components/MultiSelect/index.story.tsx +0 -112
  140. package/src/components/MultiSelect/index.test.tsx +0 -263
  141. package/src/components/MultiSelect/index.tsx +0 -282
@@ -1,1227 +1,250 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Storybook Tests TagItem Active 1`] = `
4
- .c0 {
5
- isolation: isolate;
6
- position: relative;
7
- height: 40px;
8
- display: -webkit-inline-box;
9
- display: -webkit-inline-flex;
10
- display: -ms-inline-flexbox;
11
- display: inline-flex;
12
- -webkit-align-items: center;
13
- -webkit-box-align: center;
14
- -ms-flex-align: center;
15
- align-items: center;
16
- -webkit-box-pack: center;
17
- -webkit-justify-content: center;
18
- -ms-flex-pack: center;
19
- justify-content: center;
20
- -webkit-text-decoration: none;
21
- text-decoration: none;
22
- cursor: pointer;
23
- overflow: hidden;
24
- border-radius: 4px;
25
- padding-right: 8px;
26
- padding-left: 16px;
27
- color: var(--charcoal-text5);
28
- -webkit-transition: 0.2s box-shadow;
29
- transition: 0.2s box-shadow;
30
- }
31
-
32
- .c0:not(:disabled):not([aria-disabled]):focus,
33
- .c0[aria-disabled='false']:focus {
34
- outline: none;
35
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
36
- }
37
-
38
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
39
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
40
- box-shadow: none;
41
- }
42
-
43
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
44
- .c0[aria-disabled='false']:focus-visible {
45
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
46
- }
47
-
48
- .c0:disabled,
49
- .c0[aria-disabled]:not([aria-disabled='false']) {
50
- opacity: 0.32;
51
- cursor: default;
52
- }
53
-
54
- .c1 {
55
- position: absolute;
56
- z-index: 1;
57
- top: 0;
58
- left: 0;
59
- width: 100%;
60
- height: 100%;
61
- background-color: #7ACCB1;
62
- }
63
-
64
- .c2 {
65
- display: -webkit-inline-box;
66
- display: -webkit-inline-flex;
67
- display: -ms-inline-flexbox;
68
- display: inline-flex;
69
- gap: 8px;
70
- -webkit-align-items: center;
71
- -webkit-box-align: center;
72
- -ms-flex-align: center;
73
- align-items: center;
74
- z-index: 2;
75
- }
76
-
77
- .c3 {
78
- font-size: 14px;
79
- line-height: 22px;
80
- font-weight: bold;
81
- display: flow-root;
82
- }
83
-
84
- .c3::before {
85
- display: block;
86
- width: 0;
87
- height: 0;
88
- content: '';
89
- margin-top: -4px;
90
- }
91
-
92
- .c3::after {
93
- display: block;
94
- width: 0;
95
- height: 0;
96
- content: '';
97
- margin-bottom: -4px;
98
- }
99
-
100
- .c4 {
101
- max-width: 152px;
102
- overflow: hidden;
103
- text-overflow: ellipsis;
104
- white-space: nowrap;
105
- font-size: inherit;
106
- color: inherit;
107
- line-height: inherit;
108
- }
109
-
3
+ exports[`Storybook Tests react/TagItem Active 1`] = `
110
4
  <div
111
5
  data-dark={false}
112
6
  >
113
- <a
114
- className="c0"
115
- onClick={[Function]}
116
- onDragStart={[Function]}
117
- onKeyDown={[Function]}
118
- onKeyUp={[Function]}
119
- onMouseDown={[Function]}
120
- onMouseEnter={[Function]}
121
- onMouseLeave={[Function]}
122
- onMouseUp={[Function]}
123
- onTouchCancel={[Function]}
124
- onTouchEnd={[Function]}
125
- onTouchMove={[Function]}
126
- onTouchStart={[Function]}
127
- role="button"
128
- size="M"
129
- tabIndex={0}
7
+ <button
8
+ className="charcoal-tag-item charcoal-tag-item__bg"
9
+ data-bg-variant="color"
10
+ data-size="M"
11
+ data-state="active"
12
+ style={
13
+ Object {
14
+ "--charcoal-tag-item-bg": "#7ACCB1",
15
+ }
16
+ }
130
17
  >
131
18
  <div
132
- className="c1"
133
- />
134
- <div
135
- className="c2"
19
+ className="charcoal-tag-item__label"
20
+ data-has-translate={false}
136
21
  >
137
- <div
138
- className="c3"
22
+ <span
23
+ className="charcoal-tag-item__label__text"
24
+ data-has-translate={false}
139
25
  >
140
- <span
141
- className="c4"
142
- >
143
- #女の子
144
- </span>
145
- </div>
146
- <pixiv-icon
147
- name="16/Remove"
148
- />
26
+ #女の子
27
+ </span>
149
28
  </div>
150
- </a>
29
+ <pixiv-icon
30
+ name="16/Remove"
31
+ />
32
+ </button>
151
33
  </div>
152
34
  `;
153
35
 
154
- exports[`Storybook Tests TagItem BGColor 1`] = `
155
- .c0 {
156
- isolation: isolate;
157
- position: relative;
158
- height: 40px;
159
- display: -webkit-inline-box;
160
- display: -webkit-inline-flex;
161
- display: -ms-inline-flexbox;
162
- display: inline-flex;
163
- -webkit-align-items: center;
164
- -webkit-box-align: center;
165
- -ms-flex-align: center;
166
- align-items: center;
167
- -webkit-box-pack: center;
168
- -webkit-justify-content: center;
169
- -ms-flex-pack: center;
170
- justify-content: center;
171
- -webkit-text-decoration: none;
172
- text-decoration: none;
173
- cursor: pointer;
174
- overflow: hidden;
175
- border-radius: 4px;
176
- padding-right: 24px;
177
- padding-left: 24px;
178
- color: var(--charcoal-text5);
179
- -webkit-transition: 0.2s box-shadow;
180
- transition: 0.2s box-shadow;
181
- }
182
-
183
- .c0:not(:disabled):not([aria-disabled]):focus,
184
- .c0[aria-disabled='false']:focus {
185
- outline: none;
186
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
187
- }
188
-
189
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
190
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
191
- box-shadow: none;
192
- }
193
-
194
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
195
- .c0[aria-disabled='false']:focus-visible {
196
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
197
- }
198
-
199
- .c0:disabled,
200
- .c0[aria-disabled]:not([aria-disabled='false']) {
201
- opacity: 0.32;
202
- cursor: default;
203
- }
204
-
205
- .c1 {
206
- position: absolute;
207
- z-index: 1;
208
- top: 0;
209
- left: 0;
210
- width: 100%;
211
- height: 100%;
212
- background-color: var(--charcoal-brand);
213
- }
214
-
215
- .c2 {
216
- display: -webkit-inline-box;
217
- display: -webkit-inline-flex;
218
- display: -ms-inline-flexbox;
219
- display: inline-flex;
220
- gap: 8px;
221
- -webkit-align-items: center;
222
- -webkit-box-align: center;
223
- -ms-flex-align: center;
224
- align-items: center;
225
- z-index: 2;
226
- }
227
-
228
- .c3 {
229
- font-size: 14px;
230
- line-height: 22px;
231
- font-weight: bold;
232
- display: flow-root;
233
- }
234
-
235
- .c3::before {
236
- display: block;
237
- width: 0;
238
- height: 0;
239
- content: '';
240
- margin-top: -4px;
241
- }
242
-
243
- .c3::after {
244
- display: block;
245
- width: 0;
246
- height: 0;
247
- content: '';
248
- margin-bottom: -4px;
249
- }
250
-
251
- .c4 {
252
- max-width: 152px;
253
- overflow: hidden;
254
- text-overflow: ellipsis;
255
- white-space: nowrap;
256
- font-size: inherit;
257
- color: inherit;
258
- line-height: inherit;
259
- }
260
-
36
+ exports[`Storybook Tests react/TagItem BGColor 1`] = `
261
37
  <div
262
38
  data-dark={false}
263
39
  >
264
- <a
265
- className="c0"
266
- onClick={[Function]}
267
- onDragStart={[Function]}
268
- onKeyDown={[Function]}
269
- onKeyUp={[Function]}
270
- onMouseDown={[Function]}
271
- onMouseEnter={[Function]}
272
- onMouseLeave={[Function]}
273
- onMouseUp={[Function]}
274
- onTouchCancel={[Function]}
275
- onTouchEnd={[Function]}
276
- onTouchMove={[Function]}
277
- onTouchStart={[Function]}
278
- role="button"
279
- size="M"
280
- tabIndex={0}
40
+ <button
41
+ className="charcoal-tag-item charcoal-tag-item__bg"
42
+ data-bg-variant="color"
43
+ data-size="M"
44
+ data-state="default"
45
+ style={
46
+ Object {
47
+ "--charcoal-tag-item-bg": "var(--charcoal-brand)",
48
+ }
49
+ }
281
50
  >
282
51
  <div
283
- className="c1"
284
- />
285
- <div
286
- className="c2"
52
+ className="charcoal-tag-item__label"
53
+ data-has-translate={false}
287
54
  >
288
- <div
289
- className="c3"
55
+ <span
56
+ className="charcoal-tag-item__label__text"
57
+ data-has-translate={false}
290
58
  >
291
- <span
292
- className="c4"
293
- >
294
- 女の子
295
- </span>
296
- </div>
59
+ 女の子
60
+ </span>
297
61
  </div>
298
- </a>
62
+ </button>
299
63
  </div>
300
64
  `;
301
65
 
302
- exports[`Storybook Tests TagItem BGImage 1`] = `
303
- .c0 {
304
- isolation: isolate;
305
- position: relative;
306
- height: 40px;
307
- display: -webkit-inline-box;
308
- display: -webkit-inline-flex;
309
- display: -ms-inline-flexbox;
310
- display: inline-flex;
311
- -webkit-align-items: center;
312
- -webkit-box-align: center;
313
- -ms-flex-align: center;
314
- align-items: center;
315
- -webkit-box-pack: center;
316
- -webkit-justify-content: center;
317
- -ms-flex-pack: center;
318
- justify-content: center;
319
- -webkit-text-decoration: none;
320
- text-decoration: none;
321
- cursor: pointer;
322
- overflow: hidden;
323
- border-radius: 4px;
324
- padding-right: 24px;
325
- padding-left: 24px;
326
- color: var(--charcoal-text5);
327
- -webkit-transition: 0.2s box-shadow;
328
- transition: 0.2s box-shadow;
329
- }
330
-
331
- .c0:not(:disabled):not([aria-disabled]):focus,
332
- .c0[aria-disabled='false']:focus {
333
- outline: none;
334
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
335
- }
336
-
337
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
338
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
339
- box-shadow: none;
340
- }
341
-
342
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
343
- .c0[aria-disabled='false']:focus-visible {
344
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
345
- }
346
-
347
- .c0:disabled,
348
- .c0[aria-disabled]:not([aria-disabled='false']) {
349
- opacity: 0.32;
350
- cursor: default;
351
- }
352
-
353
- .c1 {
354
- position: absolute;
355
- z-index: 1;
356
- top: 0;
357
- left: 0;
358
- width: 100%;
359
- height: 100%;
360
- background-color: #7ACCB1;
361
- background-color: var(--charcoal-surface4);
362
- }
363
-
364
- .c1::before {
365
- content: '';
366
- position: absolute;
367
- top: 0;
368
- left: 0;
369
- width: 100%;
370
- height: 100%;
371
- background-position: center;
372
- background-size: cover;
373
- background-image: url(https://charcoal-web.pixiv.design/charcoal-ogp.jpg);
374
- mix-blend-mode: overlay;
375
- }
376
-
377
- .c2 {
378
- display: -webkit-inline-box;
379
- display: -webkit-inline-flex;
380
- display: -ms-inline-flexbox;
381
- display: inline-flex;
382
- gap: 8px;
383
- -webkit-align-items: center;
384
- -webkit-box-align: center;
385
- -ms-flex-align: center;
386
- align-items: center;
387
- z-index: 2;
388
- }
389
-
390
- .c3 {
391
- font-size: 14px;
392
- line-height: 22px;
393
- font-weight: bold;
394
- display: flow-root;
395
- }
396
-
397
- .c3::before {
398
- display: block;
399
- width: 0;
400
- height: 0;
401
- content: '';
402
- margin-top: -4px;
403
- }
404
-
405
- .c3::after {
406
- display: block;
407
- width: 0;
408
- height: 0;
409
- content: '';
410
- margin-bottom: -4px;
411
- }
412
-
413
- .c4 {
414
- max-width: 152px;
415
- overflow: hidden;
416
- text-overflow: ellipsis;
417
- white-space: nowrap;
418
- font-size: inherit;
419
- color: inherit;
420
- line-height: inherit;
421
- }
422
-
66
+ exports[`Storybook Tests react/TagItem BGImage 1`] = `
423
67
  <div
424
68
  data-dark={false}
425
69
  >
426
- <a
427
- className="c0"
428
- onClick={[Function]}
429
- onDragStart={[Function]}
430
- onKeyDown={[Function]}
431
- onKeyUp={[Function]}
432
- onMouseDown={[Function]}
433
- onMouseEnter={[Function]}
434
- onMouseLeave={[Function]}
435
- onMouseUp={[Function]}
436
- onTouchCancel={[Function]}
437
- onTouchEnd={[Function]}
438
- onTouchMove={[Function]}
439
- onTouchStart={[Function]}
440
- role="button"
441
- size="M"
442
- tabIndex={0}
70
+ <button
71
+ className="charcoal-tag-item charcoal-tag-item__bg"
72
+ data-bg-variant="image"
73
+ data-size="M"
74
+ data-state="default"
75
+ style={
76
+ Object {
77
+ "--charcoal-tag-item-bg": "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAoCAYAAAAFZi8EAAAAAXNSR0IArs4c6QAAE9ZJREFUaEPtmwd0VNXWx/93JgVICD2IhaAEUCB0RUSkK2AQRRD1swACFhRExApWdCkLqYp8IGLhAYIF0YeKTyyAioIamjSlPDoECKRMMuV+73fCCQmpENbD9b131po1M/eee8r+73b23teJi4tzL6xbX0euHKqkym3lhkWqa6XdmtX7PFX2uJIc2bZjxw79/PPPevzxx1WpUiU9/fTT6tatW8793D/S09PVuXNnHTt2zFwuX768fD6f+Q4EAvruu+/k8XgKfLbIiyFp5KiR+tusufIHfSpTpowZNyIiwnwYu2LFijpw4IBefvllNWnSRBdffHHOkF988YVGjhypsLAwHT16VOXKlZPf7zfPBgN+rVq1QlJQcv41UcDRgj9CGrc6qKWHKkiuK3kdxYS2aXr7WupSV4pRSNKJfWzbtk233nqrMjMzFR5dTr1736obO12p6PgEVXvjxM6cgE9lty5VheWTFLF3jZzExER3zvz5io4MUzAU0oaklfrmx9WaOGG8QqGgoqOjDTHZHAuPjIyU1+vV4cOHNXbsWN10000F0i0UCsl1XUNsfjuOYz72Nw/x/80339SyZcu0dOlSVahQwRCE8WnMRx/G4BrPQnjmhpBDhw5VvXr1dMUVV5j+9GNOPuvXr9cTTzxh1s4z/fv314033pizjs8//1yLFi3SL7/8YogGGAFXWj84SU4omLMn12EtIcnxaEwraUTDNAU95eR1ndw8mo8GjPD15jQtTYnSuGW7FQo5uuRv3QyjZGRkmL2yn4iIcB1MPiJn8eLFLpzL4hs1aqTw8HDBzWyUTQSDQdWoUcNsHik4dOiQIRacPWrUKHXv3v3UubqAJzZt2qQBAwaYxe3bt8/MwToqV65siATnci8tLc0wB1LAmtlYzZo1DVGthH3yySd64YUXlJycbNbOHgC1X79+euihh/LMfuTIESUmJpr9bN26UxsfWiMFfQXuaVIrvx5oUr7Y/bKu6xY7WrIxVenhXiNFytqj2hM6mzVCW+hct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Z9sifSln1uc5P3yrnj2VyfakK/MuzM9XuvN7bICFBg4cM0RVt2uSIPxOPnzjNJOXDI8JNHqJ8THnDaaYYLStLb08Zrw4dC5YmpARDjXqwQNj3KlDEa1f/Km9YpIJOdhbsVBqv7RJwZA4YIHdkFSCo/KCxQdQlAOAwIBHbGtymo21HKNLN0OSOZdWxakAXVcJFOPFyCWEI7BsgIFGUAREtRaoKawCxf99BVa5etcAuqekhtWlYW34nXE88+bhatbrc1FMRf1qzZo3+D5DsOb69XTjCAAAAAElFTkSuQmCC)",
78
+ }
79
+ }
443
80
  >
444
81
  <div
445
- className="c1"
446
- />
447
- <div
448
- className="c2"
82
+ className="charcoal-tag-item__label"
83
+ data-has-translate={false}
449
84
  >
450
- <div
451
- className="c3"
85
+ <span
86
+ className="charcoal-tag-item__label__text"
87
+ data-has-translate={false}
452
88
  >
453
- <span
454
- className="c4"
455
- >
456
- #女の子
457
- </span>
458
- </div>
89
+ #女の子
90
+ </span>
459
91
  </div>
460
- </a>
92
+ </button>
461
93
  </div>
462
94
  `;
463
95
 
464
- exports[`Storybook Tests TagItem Default 1`] = `
465
- .c0 {
466
- isolation: isolate;
467
- position: relative;
468
- height: 40px;
469
- display: -webkit-inline-box;
470
- display: -webkit-inline-flex;
471
- display: -ms-inline-flexbox;
472
- display: inline-flex;
473
- -webkit-align-items: center;
474
- -webkit-box-align: center;
475
- -ms-flex-align: center;
476
- align-items: center;
477
- -webkit-box-pack: center;
478
- -webkit-justify-content: center;
479
- -ms-flex-pack: center;
480
- justify-content: center;
481
- -webkit-text-decoration: none;
482
- text-decoration: none;
483
- cursor: pointer;
484
- overflow: hidden;
485
- border-radius: 4px;
486
- padding-right: 24px;
487
- padding-left: 24px;
488
- color: var(--charcoal-text5);
489
- -webkit-transition: 0.2s box-shadow;
490
- transition: 0.2s box-shadow;
491
- }
492
-
493
- .c0:not(:disabled):not([aria-disabled]):focus,
494
- .c0[aria-disabled='false']:focus {
495
- outline: none;
496
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
497
- }
498
-
499
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
500
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
501
- box-shadow: none;
502
- }
503
-
504
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
505
- .c0[aria-disabled='false']:focus-visible {
506
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
507
- }
508
-
509
- .c0:disabled,
510
- .c0[aria-disabled]:not([aria-disabled='false']) {
511
- opacity: 0.32;
512
- cursor: default;
513
- }
514
-
515
- .c1 {
516
- position: absolute;
517
- z-index: 1;
518
- top: 0;
519
- left: 0;
520
- width: 100%;
521
- height: 100%;
522
- background-color: #7ACCB1;
523
- }
524
-
525
- .c2 {
526
- display: -webkit-inline-box;
527
- display: -webkit-inline-flex;
528
- display: -ms-inline-flexbox;
529
- display: inline-flex;
530
- gap: 8px;
531
- -webkit-align-items: center;
532
- -webkit-box-align: center;
533
- -ms-flex-align: center;
534
- align-items: center;
535
- z-index: 2;
536
- }
537
-
538
- .c3 {
539
- font-size: 14px;
540
- line-height: 22px;
541
- font-weight: bold;
542
- display: flow-root;
543
- }
544
-
545
- .c3::before {
546
- display: block;
547
- width: 0;
548
- height: 0;
549
- content: '';
550
- margin-top: -4px;
551
- }
552
-
553
- .c3::after {
554
- display: block;
555
- width: 0;
556
- height: 0;
557
- content: '';
558
- margin-bottom: -4px;
559
- }
560
-
561
- .c4 {
562
- max-width: 152px;
563
- overflow: hidden;
564
- text-overflow: ellipsis;
565
- white-space: nowrap;
566
- font-size: inherit;
567
- color: inherit;
568
- line-height: inherit;
569
- }
570
-
96
+ exports[`Storybook Tests react/TagItem Default 1`] = `
571
97
  <div
572
98
  data-dark={false}
573
99
  >
574
- <a
575
- className="c0"
576
- onClick={[Function]}
577
- onDragStart={[Function]}
578
- onKeyDown={[Function]}
579
- onKeyUp={[Function]}
580
- onMouseDown={[Function]}
581
- onMouseEnter={[Function]}
582
- onMouseLeave={[Function]}
583
- onMouseUp={[Function]}
584
- onTouchCancel={[Function]}
585
- onTouchEnd={[Function]}
586
- onTouchMove={[Function]}
587
- onTouchStart={[Function]}
588
- role="button"
589
- size="M"
590
- tabIndex={0}
100
+ <button
101
+ className="charcoal-tag-item charcoal-tag-item__bg"
102
+ data-bg-variant="color"
103
+ data-size="M"
104
+ data-state="default"
105
+ style={
106
+ Object {
107
+ "--charcoal-tag-item-bg": "#7ACCB1",
108
+ }
109
+ }
591
110
  >
592
111
  <div
593
- className="c1"
594
- />
595
- <div
596
- className="c2"
112
+ className="charcoal-tag-item__label"
113
+ data-has-translate={false}
597
114
  >
598
- <div
599
- className="c3"
115
+ <span
116
+ className="charcoal-tag-item__label__text"
117
+ data-has-translate={false}
600
118
  >
601
- <span
602
- className="c4"
603
- >
604
- #女の子
605
- </span>
606
- </div>
119
+ #女の子
120
+ </span>
607
121
  </div>
608
- </a>
122
+ </button>
609
123
  </div>
610
124
  `;
611
125
 
612
- exports[`Storybook Tests TagItem Disabled 1`] = `
613
- .c0 {
614
- isolation: isolate;
615
- position: relative;
616
- height: 40px;
617
- display: -webkit-inline-box;
618
- display: -webkit-inline-flex;
619
- display: -ms-inline-flexbox;
620
- display: inline-flex;
621
- -webkit-align-items: center;
622
- -webkit-box-align: center;
623
- -ms-flex-align: center;
624
- align-items: center;
625
- -webkit-box-pack: center;
626
- -webkit-justify-content: center;
627
- -ms-flex-pack: center;
628
- justify-content: center;
629
- -webkit-text-decoration: none;
630
- text-decoration: none;
631
- cursor: pointer;
632
- overflow: hidden;
633
- border-radius: 4px;
634
- padding-right: 24px;
635
- padding-left: 24px;
636
- color: var(--charcoal-text5);
637
- -webkit-transition: 0.2s box-shadow;
638
- transition: 0.2s box-shadow;
639
- }
640
-
641
- .c0:not(:disabled):not([aria-disabled]):focus,
642
- .c0[aria-disabled='false']:focus {
643
- outline: none;
644
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
645
- }
646
-
647
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
648
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
649
- box-shadow: none;
650
- }
651
-
652
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
653
- .c0[aria-disabled='false']:focus-visible {
654
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
655
- }
656
-
657
- .c0:disabled,
658
- .c0[aria-disabled]:not([aria-disabled='false']) {
659
- opacity: 0.32;
660
- cursor: default;
661
- }
662
-
663
- .c1 {
664
- position: absolute;
665
- z-index: 1;
666
- top: 0;
667
- left: 0;
668
- width: 100%;
669
- height: 100%;
670
- background-color: #7ACCB1;
671
- }
672
-
673
- .c2 {
674
- display: -webkit-inline-box;
675
- display: -webkit-inline-flex;
676
- display: -ms-inline-flexbox;
677
- display: inline-flex;
678
- gap: 8px;
679
- -webkit-align-items: center;
680
- -webkit-box-align: center;
681
- -ms-flex-align: center;
682
- align-items: center;
683
- z-index: 2;
684
- }
685
-
686
- .c3 {
687
- font-size: 14px;
688
- line-height: 22px;
689
- font-weight: bold;
690
- display: flow-root;
691
- }
692
-
693
- .c3::before {
694
- display: block;
695
- width: 0;
696
- height: 0;
697
- content: '';
698
- margin-top: -4px;
699
- }
700
-
701
- .c3::after {
702
- display: block;
703
- width: 0;
704
- height: 0;
705
- content: '';
706
- margin-bottom: -4px;
707
- }
708
-
709
- .c4 {
710
- max-width: 152px;
711
- overflow: hidden;
712
- text-overflow: ellipsis;
713
- white-space: nowrap;
714
- font-size: inherit;
715
- color: inherit;
716
- line-height: inherit;
717
- }
718
-
126
+ exports[`Storybook Tests react/TagItem Disabled 1`] = `
719
127
  <div
720
128
  data-dark={false}
721
129
  >
722
- <a
723
- aria-disabled={true}
724
- className="c0"
725
- onClick={[Function]}
726
- onDragStart={[Function]}
727
- onKeyDown={[Function]}
728
- onKeyUp={[Function]}
729
- onMouseDown={[Function]}
730
- onMouseEnter={[Function]}
731
- onMouseLeave={[Function]}
732
- onMouseUp={[Function]}
733
- onTouchCancel={[Function]}
734
- onTouchEnd={[Function]}
735
- onTouchMove={[Function]}
736
- onTouchStart={[Function]}
737
- role="button"
738
- size="M"
130
+ <button
131
+ className="charcoal-tag-item charcoal-tag-item__bg"
132
+ data-bg-variant="color"
133
+ data-size="M"
134
+ data-state="default"
135
+ disabled={true}
136
+ style={
137
+ Object {
138
+ "--charcoal-tag-item-bg": "#7ACCB1",
139
+ }
140
+ }
739
141
  >
740
142
  <div
741
- className="c1"
742
- />
743
- <div
744
- className="c2"
143
+ className="charcoal-tag-item__label"
144
+ data-has-translate={false}
745
145
  >
746
- <div
747
- className="c3"
146
+ <span
147
+ className="charcoal-tag-item__label__text"
148
+ data-has-translate={false}
748
149
  >
749
- <span
750
- className="c4"
751
- >
752
- #女の子
753
- </span>
754
- </div>
150
+ #女の子
151
+ </span>
755
152
  </div>
756
- </a>
153
+ </button>
757
154
  </div>
758
155
  `;
759
156
 
760
- exports[`Storybook Tests TagItem InActive 1`] = `
761
- .c0 {
762
- isolation: isolate;
763
- position: relative;
764
- height: 40px;
765
- display: -webkit-inline-box;
766
- display: -webkit-inline-flex;
767
- display: -ms-inline-flexbox;
768
- display: inline-flex;
769
- -webkit-align-items: center;
770
- -webkit-box-align: center;
771
- -ms-flex-align: center;
772
- align-items: center;
773
- -webkit-box-pack: center;
774
- -webkit-justify-content: center;
775
- -ms-flex-pack: center;
776
- justify-content: center;
777
- -webkit-text-decoration: none;
778
- text-decoration: none;
779
- cursor: pointer;
780
- overflow: hidden;
781
- border-radius: 4px;
782
- padding-right: 24px;
783
- padding-left: 24px;
784
- color: var(--charcoal-text2);
785
- -webkit-transition: 0.2s box-shadow;
786
- transition: 0.2s box-shadow;
787
- }
788
-
789
- .c0:not(:disabled):not([aria-disabled]):focus,
790
- .c0[aria-disabled='false']:focus {
791
- outline: none;
792
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
793
- }
794
-
795
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
796
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
797
- box-shadow: none;
798
- }
799
-
800
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
801
- .c0[aria-disabled='false']:focus-visible {
802
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
803
- }
804
-
805
- .c0:disabled,
806
- .c0[aria-disabled]:not([aria-disabled='false']) {
807
- opacity: 0.32;
808
- cursor: default;
809
- }
810
-
811
- .c1 {
812
- position: absolute;
813
- z-index: 1;
814
- top: 0;
815
- left: 0;
816
- width: 100%;
817
- height: 100%;
818
- background-color: #7ACCB1;
819
- background-color: var(--charcoal-surface3);
820
- }
821
-
822
- .c2 {
823
- display: -webkit-inline-box;
824
- display: -webkit-inline-flex;
825
- display: -ms-inline-flexbox;
826
- display: inline-flex;
827
- gap: 8px;
828
- -webkit-align-items: center;
829
- -webkit-box-align: center;
830
- -ms-flex-align: center;
831
- align-items: center;
832
- z-index: 2;
833
- }
834
-
835
- .c3 {
836
- font-size: 14px;
837
- line-height: 22px;
838
- font-weight: bold;
839
- display: flow-root;
840
- }
841
-
842
- .c3::before {
843
- display: block;
844
- width: 0;
845
- height: 0;
846
- content: '';
847
- margin-top: -4px;
848
- }
849
-
850
- .c3::after {
851
- display: block;
852
- width: 0;
853
- height: 0;
854
- content: '';
855
- margin-bottom: -4px;
856
- }
857
-
858
- .c4 {
859
- max-width: 152px;
860
- overflow: hidden;
861
- text-overflow: ellipsis;
862
- white-space: nowrap;
863
- font-size: inherit;
864
- color: inherit;
865
- line-height: inherit;
866
- }
867
-
157
+ exports[`Storybook Tests react/TagItem InActive 1`] = `
868
158
  <div
869
159
  data-dark={false}
870
160
  >
871
- <a
872
- className="c0"
873
- onClick={[Function]}
874
- onDragStart={[Function]}
875
- onKeyDown={[Function]}
876
- onKeyUp={[Function]}
877
- onMouseDown={[Function]}
878
- onMouseEnter={[Function]}
879
- onMouseLeave={[Function]}
880
- onMouseUp={[Function]}
881
- onTouchCancel={[Function]}
882
- onTouchEnd={[Function]}
883
- onTouchMove={[Function]}
884
- onTouchStart={[Function]}
885
- role="button"
886
- size="M"
887
- tabIndex={0}
161
+ <button
162
+ className="charcoal-tag-item charcoal-tag-item__bg"
163
+ data-bg-variant="color"
164
+ data-size="M"
165
+ data-state="inactive"
166
+ style={
167
+ Object {
168
+ "--charcoal-tag-item-bg": "#7ACCB1",
169
+ }
170
+ }
888
171
  >
889
172
  <div
890
- className="c1"
891
- />
892
- <div
893
- className="c2"
173
+ className="charcoal-tag-item__label"
174
+ data-has-translate={false}
894
175
  >
895
- <div
896
- className="c3"
176
+ <span
177
+ className="charcoal-tag-item__label__text"
178
+ data-has-translate={false}
897
179
  >
898
- <span
899
- className="c4"
900
- >
901
- #女の子
902
- </span>
903
- </div>
180
+ #女の子
181
+ </span>
904
182
  </div>
905
- </a>
183
+ </button>
906
184
  </div>
907
185
  `;
908
186
 
909
- exports[`Storybook Tests TagItem Small 1`] = `
910
- .c0 {
911
- isolation: isolate;
912
- position: relative;
913
- height: 32px;
914
- display: -webkit-inline-box;
915
- display: -webkit-inline-flex;
916
- display: -ms-inline-flexbox;
917
- display: inline-flex;
918
- -webkit-align-items: center;
919
- -webkit-box-align: center;
920
- -ms-flex-align: center;
921
- align-items: center;
922
- -webkit-box-pack: center;
923
- -webkit-justify-content: center;
924
- -ms-flex-pack: center;
925
- justify-content: center;
926
- -webkit-text-decoration: none;
927
- text-decoration: none;
928
- cursor: pointer;
929
- overflow: hidden;
930
- border-radius: 4px;
931
- padding-right: 16px;
932
- padding-left: 16px;
933
- color: var(--charcoal-text5);
934
- -webkit-transition: 0.2s box-shadow;
935
- transition: 0.2s box-shadow;
936
- }
937
-
938
- .c0:not(:disabled):not([aria-disabled]):focus,
939
- .c0[aria-disabled='false']:focus {
940
- outline: none;
941
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
942
- }
943
-
944
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
945
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
946
- box-shadow: none;
947
- }
948
-
949
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
950
- .c0[aria-disabled='false']:focus-visible {
951
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
952
- }
953
-
954
- .c0:disabled,
955
- .c0[aria-disabled]:not([aria-disabled='false']) {
956
- opacity: 0.32;
957
- cursor: default;
958
- }
959
-
960
- .c1 {
961
- position: absolute;
962
- z-index: 1;
963
- top: 0;
964
- left: 0;
965
- width: 100%;
966
- height: 100%;
967
- background-color: #7ACCB1;
968
- }
969
-
970
- .c2 {
971
- display: -webkit-inline-box;
972
- display: -webkit-inline-flex;
973
- display: -ms-inline-flexbox;
974
- display: inline-flex;
975
- gap: 8px;
976
- -webkit-align-items: center;
977
- -webkit-box-align: center;
978
- -ms-flex-align: center;
979
- align-items: center;
980
- z-index: 2;
981
- }
982
-
983
- .c3 {
984
- font-size: 14px;
985
- line-height: 22px;
986
- font-weight: bold;
987
- display: flow-root;
988
- }
989
-
990
- .c3::before {
991
- display: block;
992
- width: 0;
993
- height: 0;
994
- content: '';
995
- margin-top: -4px;
996
- }
997
-
998
- .c3::after {
999
- display: block;
1000
- width: 0;
1001
- height: 0;
1002
- content: '';
1003
- margin-bottom: -4px;
1004
- }
1005
-
1006
- .c4 {
1007
- max-width: 152px;
1008
- overflow: hidden;
1009
- text-overflow: ellipsis;
1010
- white-space: nowrap;
1011
- font-size: inherit;
1012
- color: inherit;
1013
- line-height: inherit;
1014
- }
1015
-
187
+ exports[`Storybook Tests react/TagItem Small 1`] = `
1016
188
  <div
1017
189
  data-dark={false}
1018
190
  >
1019
- <a
1020
- className="c0"
1021
- onClick={[Function]}
1022
- onDragStart={[Function]}
1023
- onKeyDown={[Function]}
1024
- onKeyUp={[Function]}
1025
- onMouseDown={[Function]}
1026
- onMouseEnter={[Function]}
1027
- onMouseLeave={[Function]}
1028
- onMouseUp={[Function]}
1029
- onTouchCancel={[Function]}
1030
- onTouchEnd={[Function]}
1031
- onTouchMove={[Function]}
1032
- onTouchStart={[Function]}
1033
- role="button"
1034
- size="S"
1035
- tabIndex={0}
191
+ <button
192
+ className="charcoal-tag-item charcoal-tag-item__bg"
193
+ data-bg-variant="color"
194
+ data-size="S"
195
+ data-state="default"
196
+ style={
197
+ Object {
198
+ "--charcoal-tag-item-bg": "#7ACCB1",
199
+ }
200
+ }
1036
201
  >
1037
202
  <div
1038
- className="c1"
1039
- />
1040
- <div
1041
- className="c2"
203
+ className="charcoal-tag-item__label"
204
+ data-has-translate={false}
1042
205
  >
1043
- <div
1044
- className="c3"
206
+ <span
207
+ className="charcoal-tag-item__label__text"
208
+ data-has-translate={false}
1045
209
  >
1046
- <span
1047
- className="c4"
1048
- >
1049
- #女の子
1050
- </span>
1051
- </div>
210
+ #女の子
211
+ </span>
1052
212
  </div>
1053
- </a>
213
+ </button>
1054
214
  </div>
1055
215
  `;
1056
216
 
1057
- exports[`Storybook Tests TagItem TranslatedLabel 1`] = `
1058
- .c0 {
1059
- isolation: isolate;
1060
- position: relative;
1061
- height: 40px;
1062
- display: -webkit-inline-box;
1063
- display: -webkit-inline-flex;
1064
- display: -ms-inline-flexbox;
1065
- display: inline-flex;
1066
- -webkit-align-items: center;
1067
- -webkit-box-align: center;
1068
- -ms-flex-align: center;
1069
- align-items: center;
1070
- -webkit-box-pack: center;
1071
- -webkit-justify-content: center;
1072
- -ms-flex-pack: center;
1073
- justify-content: center;
1074
- -webkit-text-decoration: none;
1075
- text-decoration: none;
1076
- cursor: pointer;
1077
- overflow: hidden;
1078
- border-radius: 4px;
1079
- padding-right: 24px;
1080
- padding-left: 24px;
1081
- color: var(--charcoal-text5);
1082
- -webkit-transition: 0.2s box-shadow;
1083
- transition: 0.2s box-shadow;
1084
- }
1085
-
1086
- .c0:not(:disabled):not([aria-disabled]):focus,
1087
- .c0[aria-disabled='false']:focus {
1088
- outline: none;
1089
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1090
- }
1091
-
1092
- .c0:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1093
- .c0[aria-disabled='false']:focus:not(:focus-visible) {
1094
- box-shadow: none;
1095
- }
1096
-
1097
- .c0:not(:disabled):not([aria-disabled]):focus-visible,
1098
- .c0[aria-disabled='false']:focus-visible {
1099
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1100
- }
1101
-
1102
- .c0:disabled,
1103
- .c0[aria-disabled]:not([aria-disabled='false']) {
1104
- opacity: 0.32;
1105
- cursor: default;
1106
- }
1107
-
1108
- .c1 {
1109
- position: absolute;
1110
- z-index: 1;
1111
- top: 0;
1112
- left: 0;
1113
- width: 100%;
1114
- height: 100%;
1115
- background-color: #7ACCB1;
1116
- }
1117
-
1118
- .c2 {
1119
- display: -webkit-inline-box;
1120
- display: -webkit-inline-flex;
1121
- display: -ms-inline-flexbox;
1122
- display: inline-flex;
1123
- gap: 8px;
1124
- -webkit-align-items: center;
1125
- -webkit-box-align: center;
1126
- -ms-flex-align: center;
1127
- align-items: center;
1128
- z-index: 2;
1129
- }
1130
-
1131
- .c3 {
1132
- display: -webkit-box;
1133
- display: -webkit-flex;
1134
- display: -ms-flexbox;
1135
- display: flex;
1136
- -webkit-align-items: center;
1137
- -webkit-box-align: center;
1138
- -ms-flex-align: center;
1139
- align-items: center;
1140
- -webkit-flex-direction: column;
1141
- -ms-flex-direction: column;
1142
- flex-direction: column;
1143
- font-size: 10px;
1144
- }
1145
-
1146
- .c5 {
1147
- max-width: 152px;
1148
- overflow: hidden;
1149
- text-overflow: ellipsis;
1150
- white-space: nowrap;
1151
- font-size: inherit;
1152
- color: inherit;
1153
- line-height: inherit;
1154
- }
1155
-
1156
- .c4 {
1157
- font-size: 12px;
1158
- line-height: 20px;
1159
- font-weight: bold;
1160
- display: flow-root;
1161
- }
1162
-
1163
- .c4::before {
1164
- display: block;
1165
- width: 0;
1166
- height: 0;
1167
- content: '';
1168
- margin-top: -4px;
1169
- }
1170
-
1171
- .c4::after {
1172
- display: block;
1173
- width: 0;
1174
- height: 0;
1175
- content: '';
1176
- margin-bottom: -4px;
1177
- }
1178
-
217
+ exports[`Storybook Tests react/TagItem TranslatedLabel 1`] = `
1179
218
  <div
1180
219
  data-dark={false}
1181
220
  >
1182
- <a
1183
- className="c0"
1184
- onClick={[Function]}
1185
- onDragStart={[Function]}
1186
- onKeyDown={[Function]}
1187
- onKeyUp={[Function]}
1188
- onMouseDown={[Function]}
1189
- onMouseEnter={[Function]}
1190
- onMouseLeave={[Function]}
1191
- onMouseUp={[Function]}
1192
- onTouchCancel={[Function]}
1193
- onTouchEnd={[Function]}
1194
- onTouchMove={[Function]}
1195
- onTouchStart={[Function]}
1196
- role="button"
1197
- size="M"
1198
- tabIndex={0}
221
+ <button
222
+ className="charcoal-tag-item charcoal-tag-item__bg"
223
+ data-bg-variant="color"
224
+ data-size="M"
225
+ data-state="default"
226
+ style={
227
+ Object {
228
+ "--charcoal-tag-item-bg": "#7ACCB1",
229
+ }
230
+ }
1199
231
  >
1200
232
  <div
1201
- className="c1"
1202
- />
1203
- <div
1204
- className="c2"
233
+ className="charcoal-tag-item__label"
234
+ data-has-translate={true}
1205
235
  >
1206
- <div
1207
- className="c3"
236
+ <span
237
+ className="charcoal-tag-item__label__translated"
238
+ >
239
+ girl
240
+ </span>
241
+ <span
242
+ className="charcoal-tag-item__label__text"
243
+ data-has-translate={true}
1208
244
  >
1209
- <div
1210
- className="c4"
1211
- >
1212
- <span
1213
- className="c5"
1214
- >
1215
- girl
1216
- </span>
1217
- </div>
1218
- <span
1219
- className="c5"
1220
- >
1221
- #女の子
1222
- </span>
1223
- </div>
245
+ #女の子
246
+ </span>
1224
247
  </div>
1225
- </a>
248
+ </button>
1226
249
  </div>
1227
250
  `;