@charcoal-ui/react-sandbox 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,852 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Storyshots Sandbox/WithIcon Collapse 1`] = `
4
+ .c0 {
5
+ display: -webkit-box;
6
+ display: -webkit-flex;
7
+ display: -ms-flexbox;
8
+ display: flex;
9
+ -webkit-align-items: center;
10
+ -webkit-box-align: center;
11
+ -ms-flex-align: center;
12
+ align-items: center;
13
+ }
14
+
15
+ .c4 {
16
+ min-width: 0;
17
+ overflow: hidden;
18
+ white-space: nowrap;
19
+ text-overflow: ellipsis;
20
+ }
21
+
22
+ .c1 {
23
+ display: -webkit-box;
24
+ display: -webkit-flex;
25
+ display: -ms-flexbox;
26
+ display: flex;
27
+ -webkit-align-items: center;
28
+ -webkit-box-align: center;
29
+ -ms-flex-align: center;
30
+ align-items: center;
31
+ display: none;
32
+ margin-right: 4px;
33
+ }
34
+
35
+ .c2 {
36
+ display: -webkit-inline-box;
37
+ display: -webkit-inline-flex;
38
+ display: -ms-inline-flexbox;
39
+ display: inline-flex;
40
+ }
41
+
42
+ .c2 > svg {
43
+ display: block;
44
+ }
45
+
46
+ .c3 {
47
+ display: inline-block;
48
+ width: 16px;
49
+ height: 16px;
50
+ background-color: currentColor;
51
+ }
52
+
53
+ <div
54
+ data-dark={false}
55
+ >
56
+ <div
57
+ css={
58
+ Array [
59
+ "
60
+ ",
61
+ [Function],
62
+ "
63
+ display: flex;
64
+ ",
65
+ ]
66
+ }
67
+ >
68
+ <div
69
+ css={
70
+ Array [
71
+ "
72
+ background-color: ",
73
+ [Function],
74
+ ";
75
+ ",
76
+ ]
77
+ }
78
+ >
79
+ <div
80
+ className="c0"
81
+ >
82
+ <div
83
+ className="c1"
84
+ >
85
+ <div
86
+ className="c2"
87
+ >
88
+ <div
89
+ className="c3"
90
+ />
91
+ </div>
92
+ </div>
93
+ <div
94
+ className="c4"
95
+ >
96
+ Selection
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ `;
103
+
104
+ exports[`Storyshots Sandbox/WithIcon Default 1`] = `
105
+ .c0 {
106
+ display: -webkit-box;
107
+ display: -webkit-flex;
108
+ display: -ms-flexbox;
109
+ display: flex;
110
+ -webkit-align-items: center;
111
+ -webkit-box-align: center;
112
+ -ms-flex-align: center;
113
+ align-items: center;
114
+ }
115
+
116
+ .c1 {
117
+ min-width: 0;
118
+ overflow: hidden;
119
+ white-space: nowrap;
120
+ text-overflow: ellipsis;
121
+ }
122
+
123
+ .c2 {
124
+ display: -webkit-box;
125
+ display: -webkit-flex;
126
+ display: -ms-flexbox;
127
+ display: flex;
128
+ position: relative;
129
+ height: 0;
130
+ width: 0px;
131
+ visibility: visible;
132
+ margin-left: 4px;
133
+ }
134
+
135
+ .c3 {
136
+ display: -webkit-inline-box;
137
+ display: -webkit-inline-flex;
138
+ display: -ms-inline-flexbox;
139
+ display: inline-flex;
140
+ position: absolute;
141
+ -webkit-transform: translateY(-50%);
142
+ -ms-transform: translateY(-50%);
143
+ transform: translateY(-50%);
144
+ }
145
+
146
+ .c3 > svg {
147
+ display: block;
148
+ }
149
+
150
+ .c4 {
151
+ display: -webkit-inline-box;
152
+ display: -webkit-inline-flex;
153
+ display: -ms-inline-flexbox;
154
+ display: inline-flex;
155
+ vertical-align: top;
156
+ -webkit-align-items: center;
157
+ -webkit-box-align: center;
158
+ -ms-flex-align: center;
159
+ align-items: center;
160
+ line-height: 22px;
161
+ height: 22px;
162
+ }
163
+
164
+ .c4::before {
165
+ content: '';
166
+ display: inline-block;
167
+ height: 16px;
168
+ width: 16px;
169
+ background-color: currentColor;
170
+ }
171
+
172
+ <div
173
+ data-dark={false}
174
+ >
175
+ <div
176
+ css={
177
+ Array [
178
+ "
179
+ ",
180
+ [Function],
181
+ "
182
+ display: flex;
183
+ ",
184
+ ]
185
+ }
186
+ >
187
+ <div
188
+ css={
189
+ Array [
190
+ "
191
+ background-color: ",
192
+ [Function],
193
+ ";
194
+ ",
195
+ ]
196
+ }
197
+ >
198
+ <div
199
+ className="c0"
200
+ >
201
+ <div
202
+ className="c1"
203
+ >
204
+ Menu
205
+ </div>
206
+ <div
207
+ className="c2"
208
+ width={0}
209
+ >
210
+ <div
211
+ className="c3"
212
+ >
213
+ <div
214
+ className="c4"
215
+ />
216
+ </div>
217
+ </div>
218
+ </div>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ `;
223
+
224
+ exports[`Storyshots Sandbox/WithIcon Hide 1`] = `
225
+ .c0 {
226
+ display: -webkit-box;
227
+ display: -webkit-flex;
228
+ display: -ms-flexbox;
229
+ display: flex;
230
+ -webkit-align-items: center;
231
+ -webkit-box-align: center;
232
+ -ms-flex-align: center;
233
+ align-items: center;
234
+ }
235
+
236
+ .c4 {
237
+ min-width: 0;
238
+ overflow: hidden;
239
+ white-space: nowrap;
240
+ text-overflow: ellipsis;
241
+ }
242
+
243
+ .c1 {
244
+ display: -webkit-box;
245
+ display: -webkit-flex;
246
+ display: -ms-flexbox;
247
+ display: flex;
248
+ -webkit-align-items: center;
249
+ -webkit-box-align: center;
250
+ -ms-flex-align: center;
251
+ align-items: center;
252
+ visibility: hidden;
253
+ margin-right: 4px;
254
+ }
255
+
256
+ .c2 {
257
+ display: -webkit-inline-box;
258
+ display: -webkit-inline-flex;
259
+ display: -ms-inline-flexbox;
260
+ display: inline-flex;
261
+ }
262
+
263
+ .c2 > svg {
264
+ display: block;
265
+ }
266
+
267
+ .c3 {
268
+ display: inline-block;
269
+ width: 16px;
270
+ height: 16px;
271
+ background-color: currentColor;
272
+ }
273
+
274
+ <div
275
+ data-dark={false}
276
+ >
277
+ <div
278
+ css={
279
+ Array [
280
+ "
281
+ ",
282
+ [Function],
283
+ "
284
+ display: flex;
285
+ ",
286
+ ]
287
+ }
288
+ >
289
+ <div
290
+ css={
291
+ Array [
292
+ "
293
+ background-color: ",
294
+ [Function],
295
+ ";
296
+ ",
297
+ ]
298
+ }
299
+ >
300
+ <div
301
+ className="c0"
302
+ >
303
+ <div
304
+ className="c1"
305
+ >
306
+ <div
307
+ className="c2"
308
+ >
309
+ <div
310
+ className="c3"
311
+ />
312
+ </div>
313
+ </div>
314
+ <div
315
+ className="c4"
316
+ >
317
+ Selection
318
+ </div>
319
+ </div>
320
+ </div>
321
+ </div>
322
+ </div>
323
+ `;
324
+
325
+ exports[`Storyshots Sandbox/WithIcon Long Text 1`] = `
326
+ .c0 {
327
+ display: -webkit-box;
328
+ display: -webkit-flex;
329
+ display: -ms-flexbox;
330
+ display: flex;
331
+ -webkit-align-items: center;
332
+ -webkit-box-align: center;
333
+ -ms-flex-align: center;
334
+ align-items: center;
335
+ }
336
+
337
+ .c1 {
338
+ min-width: 0;
339
+ overflow: hidden;
340
+ white-space: nowrap;
341
+ text-overflow: ellipsis;
342
+ }
343
+
344
+ .c2 {
345
+ display: -webkit-box;
346
+ display: -webkit-flex;
347
+ display: -ms-flexbox;
348
+ display: flex;
349
+ -webkit-align-items: center;
350
+ -webkit-box-align: center;
351
+ -ms-flex-align: center;
352
+ align-items: center;
353
+ visibility: visible;
354
+ margin-left: 4px;
355
+ }
356
+
357
+ .c3 {
358
+ display: -webkit-inline-box;
359
+ display: -webkit-inline-flex;
360
+ display: -ms-inline-flexbox;
361
+ display: inline-flex;
362
+ }
363
+
364
+ .c3 > svg {
365
+ display: block;
366
+ }
367
+
368
+ .c4 {
369
+ display: inline-block;
370
+ width: 16px;
371
+ height: 16px;
372
+ background-color: currentColor;
373
+ }
374
+
375
+ <div
376
+ data-dark={false}
377
+ >
378
+ <div
379
+ css={
380
+ Array [
381
+ "
382
+ ",
383
+ [Function],
384
+ "
385
+ display: flex;
386
+ ",
387
+ ]
388
+ }
389
+ >
390
+ <div
391
+ css="
392
+ width: 200px;
393
+ "
394
+ >
395
+ <div
396
+ className="c0"
397
+ >
398
+ <div
399
+ className="c1"
400
+ >
401
+ Long Long Long Long Long Long Long Long Long Long Text
402
+ </div>
403
+ <div
404
+ className="c2"
405
+ >
406
+ <div
407
+ className="c3"
408
+ >
409
+ <div
410
+ className="c4"
411
+ />
412
+ </div>
413
+ </div>
414
+ </div>
415
+ </div>
416
+ </div>
417
+ </div>
418
+ `;
419
+
420
+ exports[`Storyshots Sandbox/WithIcon Long Text Overflow 1`] = `
421
+ .c0 {
422
+ display: -webkit-box;
423
+ display: -webkit-flex;
424
+ display: -ms-flexbox;
425
+ display: flex;
426
+ -webkit-align-items: center;
427
+ -webkit-box-align: center;
428
+ -ms-flex-align: center;
429
+ align-items: center;
430
+ }
431
+
432
+ .c1 {
433
+ white-space: nowrap;
434
+ text-overflow: ellipsis;
435
+ }
436
+
437
+ .c2 {
438
+ display: -webkit-box;
439
+ display: -webkit-flex;
440
+ display: -ms-flexbox;
441
+ display: flex;
442
+ -webkit-align-items: center;
443
+ -webkit-box-align: center;
444
+ -ms-flex-align: center;
445
+ align-items: center;
446
+ visibility: visible;
447
+ margin-left: 4px;
448
+ }
449
+
450
+ .c3 {
451
+ display: -webkit-inline-box;
452
+ display: -webkit-inline-flex;
453
+ display: -ms-inline-flexbox;
454
+ display: inline-flex;
455
+ }
456
+
457
+ .c3 > svg {
458
+ display: block;
459
+ }
460
+
461
+ .c4 {
462
+ display: inline-block;
463
+ width: 16px;
464
+ height: 16px;
465
+ background-color: currentColor;
466
+ }
467
+
468
+ <div
469
+ data-dark={false}
470
+ >
471
+ <div
472
+ css={
473
+ Array [
474
+ "
475
+ ",
476
+ [Function],
477
+ "
478
+ display: flex;
479
+ ",
480
+ ]
481
+ }
482
+ >
483
+ <div
484
+ css="
485
+ width: 200px;
486
+ "
487
+ >
488
+ <div
489
+ className="c0"
490
+ >
491
+ <div
492
+ className="c1"
493
+ >
494
+ Long Long Long Long Long Long Long Long Long Long Text
495
+ </div>
496
+ <div
497
+ className="c2"
498
+ >
499
+ <div
500
+ className="c3"
501
+ >
502
+ <div
503
+ className="c4"
504
+ />
505
+ </div>
506
+ </div>
507
+ </div>
508
+ </div>
509
+ </div>
510
+ </div>
511
+ `;
512
+
513
+ exports[`Storyshots Sandbox/WithIcon Naive 1`] = `
514
+ .c0 {
515
+ display: -webkit-box;
516
+ display: -webkit-flex;
517
+ display: -ms-flexbox;
518
+ display: flex;
519
+ -webkit-align-items: center;
520
+ -webkit-box-align: center;
521
+ -ms-flex-align: center;
522
+ align-items: center;
523
+ }
524
+
525
+ .c1 {
526
+ min-width: 0;
527
+ overflow: hidden;
528
+ white-space: nowrap;
529
+ text-overflow: ellipsis;
530
+ }
531
+
532
+ .c2 {
533
+ display: -webkit-box;
534
+ display: -webkit-flex;
535
+ display: -ms-flexbox;
536
+ display: flex;
537
+ -webkit-align-items: center;
538
+ -webkit-box-align: center;
539
+ -ms-flex-align: center;
540
+ align-items: center;
541
+ visibility: visible;
542
+ margin-left: 4px;
543
+ }
544
+
545
+ .c3 {
546
+ display: -webkit-inline-box;
547
+ display: -webkit-inline-flex;
548
+ display: -ms-inline-flexbox;
549
+ display: inline-flex;
550
+ }
551
+
552
+ .c3 > svg {
553
+ display: block;
554
+ }
555
+
556
+ .c4 {
557
+ display: -webkit-inline-box;
558
+ display: -webkit-inline-flex;
559
+ display: -ms-inline-flexbox;
560
+ display: inline-flex;
561
+ vertical-align: top;
562
+ -webkit-align-items: center;
563
+ -webkit-box-align: center;
564
+ -ms-flex-align: center;
565
+ align-items: center;
566
+ line-height: 22px;
567
+ height: 22px;
568
+ }
569
+
570
+ .c4::before {
571
+ content: '';
572
+ display: inline-block;
573
+ height: 16px;
574
+ width: 16px;
575
+ background-color: currentColor;
576
+ }
577
+
578
+ <div
579
+ data-dark={false}
580
+ >
581
+ <div
582
+ css={
583
+ Array [
584
+ "
585
+ ",
586
+ [Function],
587
+ "
588
+ display: flex;
589
+ ",
590
+ ]
591
+ }
592
+ >
593
+ <div
594
+ css={
595
+ Array [
596
+ "
597
+ background-color: ",
598
+ [Function],
599
+ ";
600
+ ",
601
+ ]
602
+ }
603
+ >
604
+ <div
605
+ className="c0"
606
+ >
607
+ <div
608
+ className="c1"
609
+ >
610
+ Menu
611
+ </div>
612
+ <div
613
+ className="c2"
614
+ >
615
+ <div
616
+ className="c3"
617
+ >
618
+ <div
619
+ className="c4"
620
+ />
621
+ </div>
622
+ </div>
623
+ </div>
624
+ </div>
625
+ </div>
626
+ </div>
627
+ `;
628
+
629
+ exports[`Storyshots Sandbox/WithIcon Performance 1`] = `
630
+ .c0 {
631
+ display: -webkit-box;
632
+ display: -webkit-flex;
633
+ display: -ms-flexbox;
634
+ display: flex;
635
+ -webkit-align-items: center;
636
+ -webkit-box-align: center;
637
+ -ms-flex-align: center;
638
+ align-items: center;
639
+ }
640
+
641
+ .c1 {
642
+ min-width: 0;
643
+ overflow: hidden;
644
+ white-space: nowrap;
645
+ text-overflow: ellipsis;
646
+ }
647
+
648
+ .c2 {
649
+ display: -webkit-box;
650
+ display: -webkit-flex;
651
+ display: -ms-flexbox;
652
+ display: flex;
653
+ position: relative;
654
+ height: 0;
655
+ width: 16px;
656
+ visibility: visible;
657
+ margin-left: 4px;
658
+ }
659
+
660
+ .c3 {
661
+ display: -webkit-inline-box;
662
+ display: -webkit-inline-flex;
663
+ display: -ms-inline-flexbox;
664
+ display: inline-flex;
665
+ position: absolute;
666
+ -webkit-transform: translateY(-50%);
667
+ -ms-transform: translateY(-50%);
668
+ transform: translateY(-50%);
669
+ }
670
+
671
+ .c3 > svg {
672
+ display: block;
673
+ }
674
+
675
+ .c4 {
676
+ display: -webkit-inline-box;
677
+ display: -webkit-inline-flex;
678
+ display: -ms-inline-flexbox;
679
+ display: inline-flex;
680
+ vertical-align: top;
681
+ -webkit-align-items: center;
682
+ -webkit-box-align: center;
683
+ -ms-flex-align: center;
684
+ align-items: center;
685
+ line-height: 22px;
686
+ height: 22px;
687
+ }
688
+
689
+ .c4::before {
690
+ content: '';
691
+ display: inline-block;
692
+ height: 16px;
693
+ width: 16px;
694
+ background-color: currentColor;
695
+ }
696
+
697
+ <div
698
+ data-dark={false}
699
+ >
700
+ <div
701
+ css={
702
+ Array [
703
+ "
704
+ ",
705
+ [Function],
706
+ "
707
+ display: flex;
708
+ ",
709
+ ]
710
+ }
711
+ >
712
+ <div
713
+ css={
714
+ Array [
715
+ "
716
+ background-color: ",
717
+ [Function],
718
+ ";
719
+ ",
720
+ ]
721
+ }
722
+ >
723
+ <div
724
+ className="c0"
725
+ >
726
+ <div
727
+ className="c1"
728
+ >
729
+ Menu
730
+ </div>
731
+ <div
732
+ className="c2"
733
+ width={16}
734
+ >
735
+ <div
736
+ className="c3"
737
+ >
738
+ <div
739
+ className="c4"
740
+ />
741
+ </div>
742
+ </div>
743
+ </div>
744
+ </div>
745
+ </div>
746
+ </div>
747
+ `;
748
+
749
+ exports[`Storyshots Sandbox/WithIcon Prefix 1`] = `
750
+ .c0 {
751
+ display: -webkit-box;
752
+ display: -webkit-flex;
753
+ display: -ms-flexbox;
754
+ display: flex;
755
+ -webkit-align-items: center;
756
+ -webkit-box-align: center;
757
+ -ms-flex-align: center;
758
+ align-items: center;
759
+ }
760
+
761
+ .c4 {
762
+ min-width: 0;
763
+ overflow: hidden;
764
+ white-space: nowrap;
765
+ text-overflow: ellipsis;
766
+ }
767
+
768
+ .c1 {
769
+ display: -webkit-box;
770
+ display: -webkit-flex;
771
+ display: -ms-flexbox;
772
+ display: flex;
773
+ position: relative;
774
+ height: 0;
775
+ width: 0px;
776
+ visibility: visible;
777
+ margin-right: 4px;
778
+ }
779
+
780
+ .c2 {
781
+ display: -webkit-inline-box;
782
+ display: -webkit-inline-flex;
783
+ display: -ms-inline-flexbox;
784
+ display: inline-flex;
785
+ position: absolute;
786
+ -webkit-transform: translateY(-50%);
787
+ -ms-transform: translateY(-50%);
788
+ transform: translateY(-50%);
789
+ }
790
+
791
+ .c2 > svg {
792
+ display: block;
793
+ }
794
+
795
+ .c3 {
796
+ display: inline-block;
797
+ width: 16px;
798
+ height: 16px;
799
+ background-color: currentColor;
800
+ }
801
+
802
+ <div
803
+ data-dark={false}
804
+ >
805
+ <div
806
+ css={
807
+ Array [
808
+ "
809
+ ",
810
+ [Function],
811
+ "
812
+ display: flex;
813
+ ",
814
+ ]
815
+ }
816
+ >
817
+ <div
818
+ css={
819
+ Array [
820
+ "
821
+ background-color: ",
822
+ [Function],
823
+ ";
824
+ ",
825
+ ]
826
+ }
827
+ >
828
+ <div
829
+ className="c0"
830
+ >
831
+ <div
832
+ className="c1"
833
+ width={0}
834
+ >
835
+ <div
836
+ className="c2"
837
+ >
838
+ <div
839
+ className="c3"
840
+ />
841
+ </div>
842
+ </div>
843
+ <div
844
+ className="c4"
845
+ >
846
+ Selection
847
+ </div>
848
+ </div>
849
+ </div>
850
+ </div>
851
+ </div>
852
+ `;