@charcoal-ui/react-sandbox 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 (41) hide show
  1. package/package.json +8 -17
  2. package/dist/components/Carousel/index.story.d.ts +0 -7
  3. package/dist/components/Carousel/index.story.d.ts.map +0 -1
  4. package/dist/components/CarouselButton/index.story.d.ts +0 -10
  5. package/dist/components/CarouselButton/index.story.d.ts.map +0 -1
  6. package/dist/components/Filter/index.story.d.ts +0 -9
  7. package/dist/components/Filter/index.story.d.ts.map +0 -1
  8. package/dist/components/HintText/index.story.d.ts +0 -12
  9. package/dist/components/HintText/index.story.d.ts.map +0 -1
  10. package/dist/components/Layout/index.story.d.ts +0 -14
  11. package/dist/components/Layout/index.story.d.ts.map +0 -1
  12. package/dist/components/MenuListItem/index.story.d.ts +0 -18
  13. package/dist/components/MenuListItem/index.story.d.ts.map +0 -1
  14. package/dist/components/Pager/index.story.d.ts +0 -39
  15. package/dist/components/Pager/index.story.d.ts.map +0 -1
  16. package/dist/components/SwitchCheckbox/index.story.d.ts +0 -10
  17. package/dist/components/SwitchCheckbox/index.story.d.ts.map +0 -1
  18. package/dist/components/TextEllipsis/index.story.d.ts +0 -9
  19. package/dist/components/TextEllipsis/index.story.d.ts.map +0 -1
  20. package/dist/components/WithIcon/index.story.d.ts +0 -15
  21. package/dist/components/WithIcon/index.story.d.ts.map +0 -1
  22. package/src/components/Carousel/__snapshots__/index.story.storyshot +0 -360
  23. package/src/components/Carousel/index.story.tsx +0 -85
  24. package/src/components/CarouselButton/__snapshots__/index.story.storyshot +0 -168
  25. package/src/components/CarouselButton/index.story.tsx +0 -43
  26. package/src/components/Filter/__snapshots__/index.story.storyshot +0 -239
  27. package/src/components/Filter/index.story.tsx +0 -82
  28. package/src/components/HintText/__snapshots__/index.story.storyshot +0 -119
  29. package/src/components/HintText/index.story.tsx +0 -18
  30. package/src/components/Layout/__snapshots__/index.story.storyshot +0 -1297
  31. package/src/components/Layout/index.story.tsx +0 -121
  32. package/src/components/MenuListItem/__snapshots__/index.story.storyshot +0 -1389
  33. package/src/components/MenuListItem/index.story.tsx +0 -142
  34. package/src/components/Pager/__snapshots__/index.story.storyshot +0 -1894
  35. package/src/components/Pager/index.story.tsx +0 -153
  36. package/src/components/SwitchCheckbox/__snapshots__/index.story.storyshot +0 -507
  37. package/src/components/SwitchCheckbox/index.story.tsx +0 -31
  38. package/src/components/TextEllipsis/__snapshots__/index.story.storyshot +0 -32
  39. package/src/components/TextEllipsis/index.story.tsx +0 -40
  40. package/src/components/WithIcon/__snapshots__/index.story.storyshot +0 -852
  41. package/src/components/WithIcon/index.story.tsx +0 -145
@@ -1,1389 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Storybook Tests Sandbox/MenuListItem Default 1`] = `
4
- .c3 {
5
- overflow: hidden;
6
- line-height: 22px;
7
- overflow-wrap: break-word;
8
- text-overflow: ellipsis;
9
- white-space: nowrap;
10
- }
11
-
12
- .c0 {
13
- display: -webkit-box;
14
- display: -webkit-flex;
15
- display: -ms-flexbox;
16
- display: flex;
17
- height: 40px;
18
- -webkit-align-items: center;
19
- -webkit-box-align: center;
20
- -ms-flex-align: center;
21
- align-items: center;
22
- -webkit-box-pack: justify;
23
- -webkit-justify-content: space-between;
24
- -ms-flex-pack: justify;
25
- justify-content: space-between;
26
- padding: 0 24px;
27
- -webkit-user-select: none;
28
- -moz-user-select: none;
29
- -ms-user-select: none;
30
- user-select: none;
31
- cursor: pointer;
32
- -webkit-transition: 0.2s background-color;
33
- transition: 0.2s background-color;
34
- }
35
-
36
- .c0:hover {
37
- background-color: rgba(0,0,0,0.04);
38
- }
39
-
40
- .c0:disabled,
41
- .c0[aria-disabled]:not([aria-disabled=false]) {
42
- opacity: 0.32;
43
- }
44
-
45
- .c0:disabled,
46
- .c0[aria-disabled]:not([aria-disabled=false]) {
47
- cursor: default;
48
- pointer-events: none;
49
- }
50
-
51
- .c0:disabled:hover,
52
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
53
- background-color: unset;
54
- }
55
-
56
- .c1 {
57
- display: -webkit-box;
58
- display: -webkit-flex;
59
- display: -ms-flexbox;
60
- display: flex;
61
- -webkit-flex-direction: column;
62
- -ms-flex-direction: column;
63
- flex-direction: column;
64
- }
65
-
66
- .c2 {
67
- color: #474747;
68
- line-height: 22px;
69
- font-size: 14px;
70
- display: grid;
71
- }
72
-
73
- <div
74
- data-dark={false}
75
- >
76
- <div
77
- aria-disabled={false}
78
- className="c0"
79
- onClick={[Function]}
80
- role="button"
81
- >
82
- <div
83
- className="c1"
84
- >
85
- <div
86
- className="c2"
87
- >
88
- <div
89
- className="c3"
90
- title="Knob to change"
91
- >
92
- Knob to change
93
- </div>
94
- </div>
95
- </div>
96
- </div>
97
- </div>
98
- `;
99
-
100
- exports[`Storybook Tests Sandbox/MenuListItem Disabled 1`] = `
101
- .c3 {
102
- overflow: hidden;
103
- line-height: 22px;
104
- overflow-wrap: break-word;
105
- text-overflow: ellipsis;
106
- white-space: nowrap;
107
- }
108
-
109
- .c0 {
110
- display: -webkit-box;
111
- display: -webkit-flex;
112
- display: -ms-flexbox;
113
- display: flex;
114
- height: 40px;
115
- -webkit-align-items: center;
116
- -webkit-box-align: center;
117
- -ms-flex-align: center;
118
- align-items: center;
119
- -webkit-box-pack: justify;
120
- -webkit-justify-content: space-between;
121
- -ms-flex-pack: justify;
122
- justify-content: space-between;
123
- padding: 0 24px;
124
- -webkit-user-select: none;
125
- -moz-user-select: none;
126
- -ms-user-select: none;
127
- user-select: none;
128
- cursor: pointer;
129
- -webkit-transition: 0.2s background-color;
130
- transition: 0.2s background-color;
131
- }
132
-
133
- .c0:hover {
134
- background-color: rgba(0,0,0,0.04);
135
- }
136
-
137
- .c0:disabled,
138
- .c0[aria-disabled]:not([aria-disabled=false]) {
139
- opacity: 0.32;
140
- }
141
-
142
- .c0:disabled,
143
- .c0[aria-disabled]:not([aria-disabled=false]) {
144
- cursor: default;
145
- pointer-events: none;
146
- }
147
-
148
- .c0:disabled:hover,
149
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
150
- background-color: unset;
151
- }
152
-
153
- .c1 {
154
- display: -webkit-box;
155
- display: -webkit-flex;
156
- display: -ms-flexbox;
157
- display: flex;
158
- -webkit-flex-direction: column;
159
- -ms-flex-direction: column;
160
- flex-direction: column;
161
- }
162
-
163
- .c2 {
164
- color: #474747;
165
- line-height: 22px;
166
- font-size: 14px;
167
- display: grid;
168
- }
169
-
170
- <div
171
- data-dark={false}
172
- >
173
- <div
174
- aria-disabled={true}
175
- className="c0"
176
- onClick={[Function]}
177
- role="button"
178
- >
179
- <div
180
- className="c1"
181
- >
182
- <div
183
- className="c2"
184
- >
185
- <div
186
- className="c3"
187
- title="Disabled item"
188
- >
189
- Disabled item
190
- </div>
191
- </div>
192
- </div>
193
- </div>
194
- </div>
195
- `;
196
-
197
- exports[`Storybook Tests Sandbox/MenuListItem HardLink 1`] = `
198
- .c4 {
199
- overflow: hidden;
200
- line-height: 22px;
201
- overflow-wrap: break-word;
202
- text-overflow: ellipsis;
203
- white-space: nowrap;
204
- }
205
-
206
- .c1 {
207
- display: -webkit-box;
208
- display: -webkit-flex;
209
- display: -ms-flexbox;
210
- display: flex;
211
- height: 40px;
212
- -webkit-align-items: center;
213
- -webkit-box-align: center;
214
- -ms-flex-align: center;
215
- align-items: center;
216
- -webkit-box-pack: justify;
217
- -webkit-justify-content: space-between;
218
- -ms-flex-pack: justify;
219
- justify-content: space-between;
220
- padding: 0 24px;
221
- -webkit-user-select: none;
222
- -moz-user-select: none;
223
- -ms-user-select: none;
224
- user-select: none;
225
- cursor: pointer;
226
- -webkit-transition: 0.2s background-color;
227
- transition: 0.2s background-color;
228
- }
229
-
230
- .c1:hover {
231
- background-color: rgba(0,0,0,0.04);
232
- }
233
-
234
- .c1:disabled,
235
- .c1[aria-disabled]:not([aria-disabled=false]) {
236
- opacity: 0.32;
237
- }
238
-
239
- .c1:disabled,
240
- .c1[aria-disabled]:not([aria-disabled=false]) {
241
- cursor: default;
242
- pointer-events: none;
243
- }
244
-
245
- .c1:disabled:hover,
246
- .c1[aria-disabled]:not([aria-disabled=false]):hover {
247
- background-color: unset;
248
- }
249
-
250
- .c2 {
251
- display: -webkit-box;
252
- display: -webkit-flex;
253
- display: -ms-flexbox;
254
- display: flex;
255
- -webkit-flex-direction: column;
256
- -ms-flex-direction: column;
257
- flex-direction: column;
258
- }
259
-
260
- .c3 {
261
- color: #474747;
262
- line-height: 22px;
263
- font-size: 14px;
264
- display: grid;
265
- }
266
-
267
- .c0 {
268
- display: block;
269
- }
270
-
271
- <div
272
- data-dark={false}
273
- >
274
- <a
275
- className="c0"
276
- href="#linkTo"
277
- onClick={[Function]}
278
- rel="noopener noreferrer"
279
- target="_blank"
280
- >
281
- <div
282
- aria-disabled={false}
283
- className="c1"
284
- onClick={[Function]}
285
- role="button"
286
- >
287
- <div
288
- className="c2"
289
- >
290
- <div
291
- className="c3"
292
- >
293
- <div
294
- className="c4"
295
- title="This is link with target \\"_blank\\""
296
- >
297
- This is link with target "_blank"
298
- </div>
299
- </div>
300
- </div>
301
- </div>
302
- </a>
303
- </div>
304
- `;
305
-
306
- exports[`Storybook Tests Sandbox/MenuListItem Icon 1`] = `
307
- .c4 {
308
- overflow: hidden;
309
- line-height: 22px;
310
- overflow-wrap: break-word;
311
- text-overflow: ellipsis;
312
- white-space: nowrap;
313
- }
314
-
315
- .c1 {
316
- display: -webkit-box;
317
- display: -webkit-flex;
318
- display: -ms-flexbox;
319
- display: flex;
320
- height: 40px;
321
- -webkit-align-items: center;
322
- -webkit-box-align: center;
323
- -ms-flex-align: center;
324
- align-items: center;
325
- -webkit-box-pack: justify;
326
- -webkit-justify-content: space-between;
327
- -ms-flex-pack: justify;
328
- justify-content: space-between;
329
- padding: 0 24px;
330
- -webkit-user-select: none;
331
- -moz-user-select: none;
332
- -ms-user-select: none;
333
- user-select: none;
334
- cursor: pointer;
335
- -webkit-transition: 0.2s background-color;
336
- transition: 0.2s background-color;
337
- }
338
-
339
- .c1:hover {
340
- background-color: rgba(0,0,0,0.04);
341
- }
342
-
343
- .c1:disabled,
344
- .c1[aria-disabled]:not([aria-disabled=false]) {
345
- opacity: 0.32;
346
- }
347
-
348
- .c1:disabled,
349
- .c1[aria-disabled]:not([aria-disabled=false]) {
350
- cursor: default;
351
- pointer-events: none;
352
- }
353
-
354
- .c1:disabled:hover,
355
- .c1[aria-disabled]:not([aria-disabled=false]):hover {
356
- background-color: unset;
357
- }
358
-
359
- .c2 {
360
- display: -webkit-box;
361
- display: -webkit-flex;
362
- display: -ms-flexbox;
363
- display: flex;
364
- -webkit-flex-direction: column;
365
- -ms-flex-direction: column;
366
- flex-direction: column;
367
- }
368
-
369
- .c3 {
370
- color: #474747;
371
- line-height: 22px;
372
- font-size: 14px;
373
- display: grid;
374
- }
375
-
376
- .c0 {
377
- display: block;
378
- }
379
-
380
- .c5 {
381
- display: grid;
382
- gap: 8px;
383
- grid-auto-flow: column;
384
- -webkit-align-items: center;
385
- -webkit-box-align: center;
386
- -ms-flex-align: center;
387
- align-items: center;
388
- }
389
-
390
- .c6 {
391
- color: #858585;
392
- display: -webkit-box;
393
- display: -webkit-flex;
394
- display: -ms-flexbox;
395
- display: flex;
396
- }
397
-
398
- .c7 {
399
- display: inline-block;
400
- width: 24px;
401
- height: 24px;
402
- background-color: currentColor;
403
- }
404
-
405
- <div
406
- data-dark={false}
407
- >
408
- <a
409
- className="c0"
410
- href="#linkTo"
411
- >
412
- <div
413
- aria-disabled={false}
414
- className="c1"
415
- onClick={[Function]}
416
- role="button"
417
- >
418
- <div
419
- className="c2"
420
- >
421
- <div
422
- className="c3"
423
- >
424
- <div
425
- className="c4"
426
- title="Link with 24px icon"
427
- >
428
- <div
429
- className="c5"
430
- >
431
- <div
432
- className="c6"
433
- >
434
- <div
435
- className="c7"
436
- />
437
- </div>
438
- Link with 24px icon
439
- </div>
440
- </div>
441
- </div>
442
- </div>
443
- </div>
444
- </a>
445
- </div>
446
- `;
447
-
448
- exports[`Storybook Tests Sandbox/MenuListItem InlineIcon 1`] = `
449
- .c3 {
450
- overflow: hidden;
451
- line-height: 22px;
452
- overflow-wrap: break-word;
453
- text-overflow: ellipsis;
454
- white-space: nowrap;
455
- }
456
-
457
- .c0 {
458
- display: -webkit-box;
459
- display: -webkit-flex;
460
- display: -ms-flexbox;
461
- display: flex;
462
- height: 40px;
463
- -webkit-align-items: center;
464
- -webkit-box-align: center;
465
- -ms-flex-align: center;
466
- align-items: center;
467
- -webkit-box-pack: justify;
468
- -webkit-justify-content: space-between;
469
- -ms-flex-pack: justify;
470
- justify-content: space-between;
471
- padding: 0 24px;
472
- -webkit-user-select: none;
473
- -moz-user-select: none;
474
- -ms-user-select: none;
475
- user-select: none;
476
- cursor: pointer;
477
- -webkit-transition: 0.2s background-color;
478
- transition: 0.2s background-color;
479
- }
480
-
481
- .c0:hover {
482
- background-color: rgba(0,0,0,0.04);
483
- }
484
-
485
- .c0:disabled,
486
- .c0[aria-disabled]:not([aria-disabled=false]) {
487
- opacity: 0.32;
488
- }
489
-
490
- .c0:disabled,
491
- .c0[aria-disabled]:not([aria-disabled=false]) {
492
- cursor: default;
493
- pointer-events: none;
494
- }
495
-
496
- .c0:disabled:hover,
497
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
498
- background-color: unset;
499
- }
500
-
501
- .c1 {
502
- display: -webkit-box;
503
- display: -webkit-flex;
504
- display: -ms-flexbox;
505
- display: flex;
506
- -webkit-flex-direction: column;
507
- -ms-flex-direction: column;
508
- flex-direction: column;
509
- }
510
-
511
- .c2 {
512
- color: #474747;
513
- line-height: 22px;
514
- font-size: 14px;
515
- display: grid;
516
- }
517
-
518
- .c4 {
519
- display: -webkit-box;
520
- display: -webkit-flex;
521
- display: -ms-flexbox;
522
- display: flex;
523
- -webkit-align-items: center;
524
- -webkit-box-align: center;
525
- -ms-flex-align: center;
526
- align-items: center;
527
- }
528
-
529
- .c5 {
530
- min-width: 0;
531
- overflow: hidden;
532
- white-space: nowrap;
533
- text-overflow: ellipsis;
534
- }
535
-
536
- .c6 {
537
- display: -webkit-box;
538
- display: -webkit-flex;
539
- display: -ms-flexbox;
540
- display: flex;
541
- -webkit-align-items: center;
542
- -webkit-box-align: center;
543
- -ms-flex-align: center;
544
- align-items: center;
545
- visibility: visible;
546
- margin-left: 4px;
547
- }
548
-
549
- .c7 {
550
- display: -webkit-inline-box;
551
- display: -webkit-inline-flex;
552
- display: -ms-inline-flexbox;
553
- display: inline-flex;
554
- }
555
-
556
- .c7 > svg {
557
- display: block;
558
- }
559
-
560
- .c8 {
561
- display: -webkit-inline-box;
562
- display: -webkit-inline-flex;
563
- display: -ms-inline-flexbox;
564
- display: inline-flex;
565
- vertical-align: top;
566
- -webkit-align-items: center;
567
- -webkit-box-align: center;
568
- -ms-flex-align: center;
569
- align-items: center;
570
- }
571
-
572
- .c8::before {
573
- content: '';
574
- display: inline-block;
575
- height: 16px;
576
- width: 16px;
577
- background-color: currentColor;
578
- }
579
-
580
- <div
581
- data-dark={false}
582
- >
583
- <div
584
- aria-disabled={false}
585
- className="c0"
586
- onClick={[Function]}
587
- role="button"
588
- >
589
- <div
590
- className="c1"
591
- >
592
- <div
593
- className="c2"
594
- >
595
- <div
596
- className="c3"
597
- title="Label with inline icon"
598
- >
599
- <div
600
- className="c4"
601
- >
602
- <div
603
- className="c5"
604
- >
605
- Label with inline icon
606
- </div>
607
- <div
608
- className="c6"
609
- >
610
- <div
611
- className="c7"
612
- >
613
- <div
614
- className="c8"
615
- />
616
- </div>
617
- </div>
618
- </div>
619
- </div>
620
- </div>
621
- </div>
622
- </div>
623
- </div>
624
- `;
625
-
626
- exports[`Storybook Tests Sandbox/MenuListItem Label 1`] = `
627
- .c4 {
628
- overflow: hidden;
629
- line-height: 22px;
630
- overflow-wrap: break-word;
631
- text-overflow: ellipsis;
632
- white-space: nowrap;
633
- }
634
-
635
- .c1 {
636
- display: -webkit-box;
637
- display: -webkit-flex;
638
- display: -ms-flexbox;
639
- display: flex;
640
- height: 40px;
641
- -webkit-align-items: center;
642
- -webkit-box-align: center;
643
- -ms-flex-align: center;
644
- align-items: center;
645
- -webkit-box-pack: justify;
646
- -webkit-justify-content: space-between;
647
- -ms-flex-pack: justify;
648
- justify-content: space-between;
649
- padding: 0 24px;
650
- -webkit-user-select: none;
651
- -moz-user-select: none;
652
- -ms-user-select: none;
653
- user-select: none;
654
- cursor: default;
655
- -webkit-transition: 0.2s background-color;
656
- transition: 0.2s background-color;
657
- }
658
-
659
- .c1:hover {
660
- background-color: rgba(0,0,0,0.04);
661
- }
662
-
663
- .c1:disabled,
664
- .c1[aria-disabled]:not([aria-disabled=false]) {
665
- opacity: 0.32;
666
- }
667
-
668
- .c1:disabled,
669
- .c1[aria-disabled]:not([aria-disabled=false]) {
670
- cursor: default;
671
- pointer-events: none;
672
- }
673
-
674
- .c1:disabled:hover,
675
- .c1[aria-disabled]:not([aria-disabled=false]):hover {
676
- background-color: unset;
677
- }
678
-
679
- .c2 {
680
- display: -webkit-box;
681
- display: -webkit-flex;
682
- display: -ms-flexbox;
683
- display: flex;
684
- -webkit-flex-direction: column;
685
- -ms-flex-direction: column;
686
- flex-direction: column;
687
- }
688
-
689
- .c3 {
690
- color: #474747;
691
- line-height: 22px;
692
- font-size: 14px;
693
- display: grid;
694
- }
695
-
696
- .c0 {
697
- padding: 0 16px;
698
- font-size: 12px;
699
- line-height: 16px;
700
- color: #858585;
701
- margin-top: -2px;
702
- margin-bottom: 6px;
703
- }
704
-
705
- <div
706
- data-dark={false}
707
- >
708
- <div
709
- className="c0"
710
- >
711
- Label
712
- </div>
713
- <div
714
- aria-disabled={false}
715
- className="c1"
716
- onClick={[Function]}
717
- >
718
- <div
719
- className="c2"
720
- >
721
- <div
722
- className="c3"
723
- >
724
- <div
725
- className="c4"
726
- title="Label grouped items"
727
- >
728
- Label grouped items
729
- </div>
730
- </div>
731
- </div>
732
- </div>
733
- </div>
734
- `;
735
-
736
- exports[`Storybook Tests Sandbox/MenuListItem Link 1`] = `
737
- .c4 {
738
- overflow: hidden;
739
- line-height: 22px;
740
- overflow-wrap: break-word;
741
- text-overflow: ellipsis;
742
- white-space: nowrap;
743
- }
744
-
745
- .c1 {
746
- display: -webkit-box;
747
- display: -webkit-flex;
748
- display: -ms-flexbox;
749
- display: flex;
750
- height: 40px;
751
- -webkit-align-items: center;
752
- -webkit-box-align: center;
753
- -ms-flex-align: center;
754
- align-items: center;
755
- -webkit-box-pack: justify;
756
- -webkit-justify-content: space-between;
757
- -ms-flex-pack: justify;
758
- justify-content: space-between;
759
- padding: 0 24px;
760
- -webkit-user-select: none;
761
- -moz-user-select: none;
762
- -ms-user-select: none;
763
- user-select: none;
764
- cursor: pointer;
765
- -webkit-transition: 0.2s background-color;
766
- transition: 0.2s background-color;
767
- }
768
-
769
- .c1:hover {
770
- background-color: rgba(0,0,0,0.04);
771
- }
772
-
773
- .c1:disabled,
774
- .c1[aria-disabled]:not([aria-disabled=false]) {
775
- opacity: 0.32;
776
- }
777
-
778
- .c1:disabled,
779
- .c1[aria-disabled]:not([aria-disabled=false]) {
780
- cursor: default;
781
- pointer-events: none;
782
- }
783
-
784
- .c1:disabled:hover,
785
- .c1[aria-disabled]:not([aria-disabled=false]):hover {
786
- background-color: unset;
787
- }
788
-
789
- .c2 {
790
- display: -webkit-box;
791
- display: -webkit-flex;
792
- display: -ms-flexbox;
793
- display: flex;
794
- -webkit-flex-direction: column;
795
- -ms-flex-direction: column;
796
- flex-direction: column;
797
- }
798
-
799
- .c3 {
800
- color: #474747;
801
- line-height: 22px;
802
- font-size: 14px;
803
- display: grid;
804
- }
805
-
806
- .c0 {
807
- display: block;
808
- }
809
-
810
- <div
811
- data-dark={false}
812
- >
813
- <a
814
- className="c0"
815
- href="#linkTo"
816
- onClick={[Function]}
817
- >
818
- <div
819
- aria-disabled={false}
820
- className="c1"
821
- onClick={[Function]}
822
- role="button"
823
- >
824
- <div
825
- className="c2"
826
- >
827
- <div
828
- className="c3"
829
- >
830
- <div
831
- className="c4"
832
- title="This is link"
833
- >
834
- This is link
835
- </div>
836
- </div>
837
- </div>
838
- </div>
839
- </a>
840
- </div>
841
- `;
842
-
843
- exports[`Storybook Tests Sandbox/MenuListItem NoHoverEffect 1`] = `
844
- .c3 {
845
- overflow: hidden;
846
- line-height: 22px;
847
- overflow-wrap: break-word;
848
- text-overflow: ellipsis;
849
- white-space: nowrap;
850
- }
851
-
852
- .c0 {
853
- display: -webkit-box;
854
- display: -webkit-flex;
855
- display: -ms-flexbox;
856
- display: flex;
857
- height: 40px;
858
- -webkit-align-items: center;
859
- -webkit-box-align: center;
860
- -ms-flex-align: center;
861
- align-items: center;
862
- -webkit-box-pack: justify;
863
- -webkit-justify-content: space-between;
864
- -ms-flex-pack: justify;
865
- justify-content: space-between;
866
- padding: 0 24px;
867
- -webkit-user-select: none;
868
- -moz-user-select: none;
869
- -ms-user-select: none;
870
- user-select: none;
871
- cursor: pointer;
872
- -webkit-transition: 0.2s background-color;
873
- transition: 0.2s background-color;
874
- }
875
-
876
- .c0:disabled,
877
- .c0[aria-disabled]:not([aria-disabled=false]) {
878
- opacity: 0.32;
879
- }
880
-
881
- .c0:disabled,
882
- .c0[aria-disabled]:not([aria-disabled=false]) {
883
- cursor: default;
884
- pointer-events: none;
885
- }
886
-
887
- .c0:disabled:hover,
888
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
889
- background-color: unset;
890
- }
891
-
892
- .c1 {
893
- display: -webkit-box;
894
- display: -webkit-flex;
895
- display: -ms-flexbox;
896
- display: flex;
897
- -webkit-flex-direction: column;
898
- -ms-flex-direction: column;
899
- flex-direction: column;
900
- }
901
-
902
- .c2 {
903
- color: #474747;
904
- line-height: 22px;
905
- font-size: 14px;
906
- display: grid;
907
- }
908
-
909
- .c4 {
910
- display: -webkit-inline-box;
911
- display: -webkit-inline-flex;
912
- display: -ms-inline-flexbox;
913
- display: inline-flex;
914
- -webkit-align-items: center;
915
- -webkit-box-align: center;
916
- -ms-flex-align: center;
917
- align-items: center;
918
- -webkit-flex-direction: row;
919
- -ms-flex-direction: row;
920
- flex-direction: row;
921
- cursor: pointer;
922
- outline: 0;
923
- }
924
-
925
- .c4[aria-disabled='true'] {
926
- cursor: auto;
927
- }
928
-
929
- .c5 {
930
- display: -webkit-inline-box;
931
- display: -webkit-inline-flex;
932
- display: -ms-inline-flexbox;
933
- display: inline-flex;
934
- position: relative;
935
- z-index: 0;
936
- }
937
-
938
- .c8 {
939
- position: relative;
940
- box-sizing: border-box;
941
- width: 28px;
942
- height: 16px;
943
- border-radius: 16px;
944
- border: 2px solid transparent;
945
- background: #adadad;
946
- -webkit-transition: box-shadow 0.2s,background-color 0.2s;
947
- transition: box-shadow 0.2s,background-color 0.2s;
948
- }
949
-
950
- .c10 {
951
- position: absolute;
952
- display: block;
953
- top: 0;
954
- left: 0;
955
- width: 12px;
956
- height: 12px;
957
- background-color: #ffffff;
958
- border-radius: 50%;
959
- -webkit-transform: translateX(0);
960
- -ms-transform: translateX(0);
961
- transform: translateX(0);
962
- -webkit-transition: -webkit-transform 0.2s;
963
- -webkit-transition: transform 0.2s;
964
- transition: transform 0.2s;
965
- }
966
-
967
- .c6 {
968
- position: absolute;
969
- z-index: 1;
970
- top: 0;
971
- left: 0;
972
- width: 100%;
973
- height: 100%;
974
- border-radius: 16px;
975
- opacity: 0;
976
- -webkit-appearance: none;
977
- -moz-appearance: none;
978
- appearance: none;
979
- outline: none;
980
- cursor: pointer;
981
- }
982
-
983
- .c6:checked ~ .c7 {
984
- background-color: #0096fa;
985
- }
986
-
987
- .c6:checked ~ .c7 .c9 {
988
- -webkit-transform: translateX(12px);
989
- -ms-transform: translateX(12px);
990
- transform: translateX(12px);
991
- }
992
-
993
- .c6:disabled {
994
- cursor: auto;
995
- }
996
-
997
- .c6:disabled ~ .c7 {
998
- opacity: 0.32;
999
- }
1000
-
1001
- .c6:not(:disabled):focus ~ .c7 {
1002
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1003
- }
1004
-
1005
- <div
1006
- data-dark={false}
1007
- >
1008
- <div
1009
- aria-disabled={false}
1010
- className="c0"
1011
- onClick={[Function]}
1012
- role="button"
1013
- >
1014
- <div
1015
- className="c1"
1016
- >
1017
- <div
1018
- className="c2"
1019
- >
1020
- <div
1021
- className="c3"
1022
- title="With toggle (no hover effect)"
1023
- >
1024
- With toggle (no hover effect)
1025
- </div>
1026
- </div>
1027
- </div>
1028
- <label
1029
- className="c4"
1030
- >
1031
- <span
1032
- className="c5"
1033
- >
1034
- <input
1035
- checked={true}
1036
- className="c6"
1037
- onChange={[Function]}
1038
- type="checkbox"
1039
- />
1040
- <div
1041
- className="c7 c8"
1042
- >
1043
- <div
1044
- className="c9 c10"
1045
- />
1046
- </div>
1047
- </span>
1048
- </label>
1049
- </div>
1050
- </div>
1051
- `;
1052
-
1053
- exports[`Storybook Tests Sandbox/MenuListItem Simple 1`] = `
1054
- .c3 {
1055
- overflow: hidden;
1056
- line-height: 22px;
1057
- overflow-wrap: break-word;
1058
- text-overflow: ellipsis;
1059
- white-space: nowrap;
1060
- }
1061
-
1062
- .c0 {
1063
- display: -webkit-box;
1064
- display: -webkit-flex;
1065
- display: -ms-flexbox;
1066
- display: flex;
1067
- height: 56px;
1068
- -webkit-align-items: center;
1069
- -webkit-box-align: center;
1070
- -ms-flex-align: center;
1071
- align-items: center;
1072
- -webkit-box-pack: justify;
1073
- -webkit-justify-content: space-between;
1074
- -ms-flex-pack: justify;
1075
- justify-content: space-between;
1076
- padding: 0 24px;
1077
- -webkit-user-select: none;
1078
- -moz-user-select: none;
1079
- -ms-user-select: none;
1080
- user-select: none;
1081
- cursor: pointer;
1082
- -webkit-transition: 0.2s background-color;
1083
- transition: 0.2s background-color;
1084
- }
1085
-
1086
- .c0:hover {
1087
- background-color: rgba(0,0,0,0.04);
1088
- }
1089
-
1090
- .c0:disabled,
1091
- .c0[aria-disabled]:not([aria-disabled=false]) {
1092
- opacity: 0.32;
1093
- }
1094
-
1095
- .c0:disabled,
1096
- .c0[aria-disabled]:not([aria-disabled=false]) {
1097
- cursor: default;
1098
- pointer-events: none;
1099
- }
1100
-
1101
- .c0:disabled:hover,
1102
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
1103
- background-color: unset;
1104
- }
1105
-
1106
- .c1 {
1107
- display: -webkit-box;
1108
- display: -webkit-flex;
1109
- display: -ms-flexbox;
1110
- display: flex;
1111
- -webkit-flex-direction: column;
1112
- -ms-flex-direction: column;
1113
- flex-direction: column;
1114
- }
1115
-
1116
- .c2 {
1117
- color: #474747;
1118
- line-height: 22px;
1119
- font-size: 14px;
1120
- display: grid;
1121
- }
1122
-
1123
- .c4 {
1124
- color: #858585;
1125
- line-height: 18px;
1126
- font-size: 10px;
1127
- }
1128
-
1129
- <div
1130
- data-dark={false}
1131
- >
1132
- <div
1133
- aria-disabled={false}
1134
- className="c0"
1135
- onClick={[Function]}
1136
- role="button"
1137
- >
1138
- <div
1139
- className="c1"
1140
- >
1141
- <div
1142
- className="c2"
1143
- >
1144
- <div
1145
- className="c3"
1146
- title="Simple item"
1147
- >
1148
- Simple item
1149
- </div>
1150
- </div>
1151
- <div
1152
- className="c4"
1153
- >
1154
- <div
1155
- className="c3"
1156
- title="with secondary"
1157
- >
1158
- with secondary
1159
- </div>
1160
- </div>
1161
- </div>
1162
- </div>
1163
- </div>
1164
- `;
1165
-
1166
- exports[`Storybook Tests Sandbox/MenuListItem Spacer 1`] = `
1167
- .c3 {
1168
- overflow: hidden;
1169
- line-height: 22px;
1170
- overflow-wrap: break-word;
1171
- text-overflow: ellipsis;
1172
- white-space: nowrap;
1173
- }
1174
-
1175
- .c0 {
1176
- display: -webkit-box;
1177
- display: -webkit-flex;
1178
- display: -ms-flexbox;
1179
- display: flex;
1180
- height: 40px;
1181
- -webkit-align-items: center;
1182
- -webkit-box-align: center;
1183
- -ms-flex-align: center;
1184
- align-items: center;
1185
- -webkit-box-pack: justify;
1186
- -webkit-justify-content: space-between;
1187
- -ms-flex-pack: justify;
1188
- justify-content: space-between;
1189
- padding: 0 24px;
1190
- -webkit-user-select: none;
1191
- -moz-user-select: none;
1192
- -ms-user-select: none;
1193
- user-select: none;
1194
- cursor: default;
1195
- -webkit-transition: 0.2s background-color;
1196
- transition: 0.2s background-color;
1197
- }
1198
-
1199
- .c0:hover {
1200
- background-color: rgba(0,0,0,0.04);
1201
- }
1202
-
1203
- .c0:disabled,
1204
- .c0[aria-disabled]:not([aria-disabled=false]) {
1205
- opacity: 0.32;
1206
- }
1207
-
1208
- .c0:disabled,
1209
- .c0[aria-disabled]:not([aria-disabled=false]) {
1210
- cursor: default;
1211
- pointer-events: none;
1212
- }
1213
-
1214
- .c0:disabled:hover,
1215
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
1216
- background-color: unset;
1217
- }
1218
-
1219
- .c1 {
1220
- display: -webkit-box;
1221
- display: -webkit-flex;
1222
- display: -ms-flexbox;
1223
- display: flex;
1224
- -webkit-flex-direction: column;
1225
- -ms-flex-direction: column;
1226
- flex-direction: column;
1227
- }
1228
-
1229
- .c2 {
1230
- color: #474747;
1231
- line-height: 22px;
1232
- font-size: 14px;
1233
- display: grid;
1234
- }
1235
-
1236
- .c4 {
1237
- height: 24px;
1238
- }
1239
-
1240
- <div
1241
- data-dark={false}
1242
- >
1243
- <div
1244
- aria-disabled={false}
1245
- className="c0"
1246
- onClick={[Function]}
1247
- >
1248
- <div
1249
- className="c1"
1250
- >
1251
- <div
1252
- className="c2"
1253
- >
1254
- <div
1255
- className="c3"
1256
- title="↓ This is spacer"
1257
- >
1258
- ↓ This is spacer
1259
- </div>
1260
- </div>
1261
- </div>
1262
- </div>
1263
- <div
1264
- className="c4"
1265
- />
1266
- <div
1267
- aria-disabled={false}
1268
- className="c0"
1269
- onClick={[Function]}
1270
- >
1271
- <div
1272
- className="c1"
1273
- >
1274
- <div
1275
- className="c2"
1276
- >
1277
- <div
1278
- className="c3"
1279
- title="↑ This is spacer"
1280
- >
1281
- ↑ This is spacer
1282
- </div>
1283
- </div>
1284
- </div>
1285
- </div>
1286
- </div>
1287
- `;
1288
-
1289
- exports[`Storybook Tests Sandbox/MenuListItem TextEllipsis 1`] = `
1290
- .c3 {
1291
- overflow: hidden;
1292
- line-height: 22px;
1293
- overflow-wrap: break-word;
1294
- text-overflow: ellipsis;
1295
- white-space: nowrap;
1296
- }
1297
-
1298
- .c0 {
1299
- display: -webkit-box;
1300
- display: -webkit-flex;
1301
- display: -ms-flexbox;
1302
- display: flex;
1303
- height: 40px;
1304
- -webkit-align-items: center;
1305
- -webkit-box-align: center;
1306
- -ms-flex-align: center;
1307
- align-items: center;
1308
- -webkit-box-pack: justify;
1309
- -webkit-justify-content: space-between;
1310
- -ms-flex-pack: justify;
1311
- justify-content: space-between;
1312
- padding: 0 24px;
1313
- -webkit-user-select: none;
1314
- -moz-user-select: none;
1315
- -ms-user-select: none;
1316
- user-select: none;
1317
- cursor: default;
1318
- -webkit-transition: 0.2s background-color;
1319
- transition: 0.2s background-color;
1320
- }
1321
-
1322
- .c0:hover {
1323
- background-color: rgba(0,0,0,0.04);
1324
- }
1325
-
1326
- .c0:disabled,
1327
- .c0[aria-disabled]:not([aria-disabled=false]) {
1328
- opacity: 0.32;
1329
- }
1330
-
1331
- .c0:disabled,
1332
- .c0[aria-disabled]:not([aria-disabled=false]) {
1333
- cursor: default;
1334
- pointer-events: none;
1335
- }
1336
-
1337
- .c0:disabled:hover,
1338
- .c0[aria-disabled]:not([aria-disabled=false]):hover {
1339
- background-color: unset;
1340
- }
1341
-
1342
- .c1 {
1343
- display: -webkit-box;
1344
- display: -webkit-flex;
1345
- display: -ms-flexbox;
1346
- display: flex;
1347
- -webkit-flex-direction: column;
1348
- -ms-flex-direction: column;
1349
- flex-direction: column;
1350
- }
1351
-
1352
- .c2 {
1353
- color: #474747;
1354
- line-height: 22px;
1355
- font-size: 14px;
1356
- display: grid;
1357
- }
1358
-
1359
- <div
1360
- data-dark={false}
1361
- >
1362
- <div
1363
- css="
1364
- width: 300px;
1365
- "
1366
- >
1367
- <div
1368
- aria-disabled={false}
1369
- className="c0"
1370
- onClick={[Function]}
1371
- >
1372
- <div
1373
- className="c1"
1374
- >
1375
- <div
1376
- className="c2"
1377
- >
1378
- <div
1379
- className="c3"
1380
- title="Loooooooooooooooooooooooooong texxxxxxxxxxxxxxxxxxxxxxxxxt"
1381
- >
1382
- Loooooooooooooooooooooooooong texxxxxxxxxxxxxxxxxxxxxxxxxt
1383
- </div>
1384
- </div>
1385
- </div>
1386
- </div>
1387
- </div>
1388
- </div>
1389
- `;