@comicrelief/component-library 8.53.0 → 8.53.2

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.
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`renders correctly with data prop 1`] = `
4
- .c11 {
4
+ .c12 {
5
5
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
6
6
  font-weight: 400;
7
7
  text-transform: inherit;
@@ -13,32 +13,46 @@ exports[`renders correctly with data prop 1`] = `
13
13
  line-height: 1.25rem;
14
14
  }
15
15
 
16
- .c11 span {
16
+ .c12 span {
17
17
  font-size: inherit;
18
18
  line-height: inherit;
19
19
  }
20
20
 
21
- .c6 {
21
+ .c7 {
22
22
  display: block;
23
23
  width: 100%;
24
24
  height: 100%;
25
25
  position: relative;
26
26
  }
27
27
 
28
- .c7 {
28
+ .c8 {
29
29
  width: 100%;
30
30
  height: 100%;
31
31
  display: block;
32
32
  object-fit: cover;
33
33
  }
34
34
 
35
- .c19 {
35
+ .c3 {
36
+ position: relative;
37
+ display: inline;
38
+ color: #000000;
39
+ font-weight: normal;
40
+ }
41
+
42
+ .c3:hover,
43
+ .c3:focus {
44
+ color: #000000;
45
+ -webkit-text-decoration: none;
46
+ text-decoration: none;
47
+ }
48
+
49
+ .c20 {
36
50
  display: inline-block;
37
51
  color: #FFFFFF;
38
52
  fill: currentColor;
39
53
  }
40
54
 
41
- .c5 {
55
+ .c6 {
42
56
  width: 100%;
43
57
  overflow: hidden;
44
58
  -webkit-flex-shrink: 0;
@@ -48,14 +62,14 @@ exports[`renders correctly with data prop 1`] = `
48
62
  border-radius: 1rem 1rem 0 0;
49
63
  }
50
64
 
51
- .c5 img {
65
+ .c6 img {
52
66
  width: 100%;
53
67
  height: auto;
54
68
  object-fit: cover;
55
69
  display: block;
56
70
  }
57
71
 
58
- .c14 {
72
+ .c15 {
59
73
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
60
74
  font-weight: 400;
61
75
  text-transform: inherit;
@@ -73,7 +87,7 @@ exports[`renders correctly with data prop 1`] = `
73
87
  display: inline-block;
74
88
  }
75
89
 
76
- .c16 {
90
+ .c17 {
77
91
  height: 4px;
78
92
  width: 100%;
79
93
  position: absolute;
@@ -85,7 +99,7 @@ exports[`renders correctly with data prop 1`] = `
85
99
  pointer-events: none;
86
100
  }
87
101
 
88
- .c18 {
102
+ .c19 {
89
103
  width: 32px;
90
104
  height: 32px;
91
105
  border-radius: 50%;
@@ -107,7 +121,7 @@ exports[`renders correctly with data prop 1`] = `
107
121
  flex-shrink: 0;
108
122
  }
109
123
 
110
- .c17 {
124
+ .c18 {
111
125
  padding-left: 1rem;
112
126
  display: -webkit-box;
113
127
  display: -webkit-flex;
@@ -123,7 +137,7 @@ exports[`renders correctly with data prop 1`] = `
123
137
  justify-content: flex-end;
124
138
  }
125
139
 
126
- .c3 {
140
+ .c4 {
127
141
  display: -webkit-box;
128
142
  display: -webkit-flex;
129
143
  display: -ms-flexbox;
@@ -146,7 +160,7 @@ exports[`renders correctly with data prop 1`] = `
146
160
  box-sizing: border-box;
147
161
  }
148
162
 
149
- .c3 img {
163
+ .c4 img {
150
164
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
151
165
  -webkit-transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
152
166
  transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
@@ -171,7 +185,7 @@ exports[`renders correctly with data prop 1`] = `
171
185
  max-width: 100%;
172
186
  }
173
187
 
174
- .c8 {
188
+ .c9 {
175
189
  width: 100%;
176
190
  background: #FFFFFF;
177
191
  display: -webkit-box;
@@ -189,7 +203,7 @@ exports[`renders correctly with data prop 1`] = `
189
203
  border-radius: 0 0 1rem 1rem;
190
204
  }
191
205
 
192
- .c9 {
206
+ .c10 {
193
207
  -webkit-flex: 1;
194
208
  -ms-flex: 1;
195
209
  flex: 1;
@@ -203,13 +217,13 @@ exports[`renders correctly with data prop 1`] = `
203
217
  min-height: 0;
204
218
  }
205
219
 
206
- .c10 {
220
+ .c11 {
207
221
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
208
222
  font-size: 14px;
209
223
  color: #969598;
210
224
  }
211
225
 
212
- .c12 {
226
+ .c13 {
213
227
  width: 100%;
214
228
  display: -webkit-box;
215
229
  display: -webkit-flex;
@@ -249,21 +263,21 @@ exports[`renders correctly with data prop 1`] = `
249
263
  }
250
264
 
251
265
  @media (min-width:740px) {
252
- .c11 {
266
+ .c12 {
253
267
  font-size: 1rem;
254
268
  line-height: 1.25rem;
255
269
  }
256
270
  }
257
271
 
258
272
  @media (min-width:1024px) {
259
- .c11 {
273
+ .c12 {
260
274
  font-size: 1.125rem;
261
275
  line-height: 1.375rem;
262
276
  }
263
277
  }
264
278
 
265
279
  @media (min-width:740px) {
266
- .c5 {
280
+ .c6 {
267
281
  width: calc(100% / 3);
268
282
  min-width: 292px;
269
283
  max-width: 309px;
@@ -280,54 +294,54 @@ exports[`renders correctly with data prop 1`] = `
280
294
  }
281
295
 
282
296
  @media (min-width:1024px) {
283
- .c5 {
297
+ .c6 {
284
298
  min-width: 355px;
285
299
  max-width: 362px;
286
300
  }
287
301
  }
288
302
 
289
303
  @media (min-width:1440px) {
290
- .c5 {
304
+ .c6 {
291
305
  min-width: 363px;
292
306
  max-width: 363px;
293
307
  }
294
308
  }
295
309
 
296
310
  @media (min-width:740px) {
297
- .c5 img {
311
+ .c6 img {
298
312
  height: 100%;
299
313
  object-fit: cover;
300
314
  }
301
315
  }
302
316
 
303
317
  @media (min-width:740px) {
304
- .c14 {
318
+ .c15 {
305
319
  font-size: 1rem;
306
320
  line-height: 1.25rem;
307
321
  }
308
322
  }
309
323
 
310
324
  @media (min-width:1024px) {
311
- .c14 {
325
+ .c15 {
312
326
  font-size: 1.125rem;
313
327
  line-height: 1.375rem;
314
328
  }
315
329
  }
316
330
 
317
331
  @media (min-width:1024px) {
318
- .c14 {
332
+ .c15 {
319
333
  color: #222222;
320
334
  }
321
335
  }
322
336
 
323
337
  @media (min-width:1024px) {
324
- .c18 {
338
+ .c19 {
325
339
  background: #222222;
326
340
  }
327
341
  }
328
342
 
329
343
  @media (min-width:740px) {
330
- .c3 {
344
+ .c4 {
331
345
  -webkit-flex-direction: row;
332
346
  -ms-flex-direction: row;
333
347
  flex-direction: row;
@@ -340,13 +354,13 @@ exports[`renders correctly with data prop 1`] = `
340
354
  }
341
355
 
342
356
  @media (min-width:1024px) {
343
- .c3 {
357
+ .c4 {
344
358
  min-height: 272px;
345
359
  }
346
360
  }
347
361
 
348
362
  @media (min-width:740px) {
349
- .c3 {
363
+ .c4 {
350
364
  -webkit-transition: -webkit-transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
351
365
  -webkit-transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
352
366
  transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
@@ -358,29 +372,29 @@ exports[`renders correctly with data prop 1`] = `
358
372
  transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
359
373
  }
360
374
 
361
- .c3:hover,
362
- .c3:focus {
375
+ .c4:hover,
376
+ .c4:focus {
363
377
  -webkit-transform: translateY(-10px);
364
378
  -ms-transform: translateY(-10px);
365
379
  transform: translateY(-10px);
366
380
  }
367
381
 
368
- .c3:hover {
382
+ .c4:hover {
369
383
  box-shadow: 0 0 1.5rem rgba(0,0,0,0.25);
370
384
  }
371
385
 
372
- .c3:hover .c4 img {
386
+ .c4:hover .c5 img {
373
387
  -webkit-transform: scale(1.06);
374
388
  -ms-transform: scale(1.06);
375
389
  transform: scale(1.06);
376
390
  }
377
391
 
378
- .c3:hover .c13 {
392
+ .c4:hover .c14 {
379
393
  -webkit-text-decoration: none;
380
394
  text-decoration: none;
381
395
  }
382
396
 
383
- .c3:hover .c15 {
397
+ .c4:hover .c16 {
384
398
  opacity: 1;
385
399
  }
386
400
  }
@@ -406,7 +420,7 @@ exports[`renders correctly with data prop 1`] = `
406
420
  }
407
421
 
408
422
  @media (min-width:740px) {
409
- .c8 {
423
+ .c9 {
410
424
  width: calc(200% / 3);
411
425
  min-width: 384px;
412
426
  max-width: 650px;
@@ -418,14 +432,14 @@ exports[`renders correctly with data prop 1`] = `
418
432
  }
419
433
 
420
434
  @media (min-width:1024px) {
421
- .c8 {
435
+ .c9 {
422
436
  min-width: 541px;
423
437
  max-width: 790px;
424
438
  }
425
439
  }
426
440
 
427
441
  @media (min-width:1440px) {
428
- .c8 {
442
+ .c9 {
429
443
  width: 789px;
430
444
  }
431
445
  }
@@ -452,22 +466,24 @@ exports[`renders correctly with data prop 1`] = `
452
466
  className="c2"
453
467
  >
454
468
  <a
455
- className="c3"
469
+ className="c3 c4"
470
+ color="red"
456
471
  href="/test"
457
472
  rel={null}
458
- target="self"
473
+ target="_self"
474
+ type="standard"
459
475
  >
460
476
  <div
461
- className="c4 c5"
477
+ className="c5 c6"
462
478
  >
463
479
  <div
464
- className="c6 lazyload"
480
+ className="c7 lazyload"
465
481
  height="100%"
466
482
  width="100%"
467
483
  >
468
484
  <img
469
485
  alt="Example image"
470
- className="c7 lazyload"
486
+ className="c8 lazyload"
471
487
  data-lowsrc="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAPABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAcIBAb/xAAjEAACAgIBBAIDAAAAAAAAAAABAgMEABEGBRIhMQdBE1Fh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAgT/xAAaEQADAQADAAAAAAAAAAAAAAAAAQIDERIT/9oADAMBAAIRAxEAPwBzRcrjVY+0tonyT41nG8y+SLFTkgpQTVFpoqiRZGHc2/egf4RrMM12OHpNi3LsrAjO2vsKCcQtvkbTW570sMUt6xphJKnd+Ma9A78ZRWcS+SWNLpNMqAdQidVaSxErEA6ZgCNj9YZNPTOTpJW7+ovdlnLHyjgAD6GGPug+bP/Z"
472
488
  data-sizes="auto"
473
489
  data-src="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg"
@@ -480,18 +496,18 @@ exports[`renders correctly with data prop 1`] = `
480
496
  </div>
481
497
  </div>
482
498
  <div
483
- className="c8"
499
+ className="c9"
484
500
  >
485
501
  <div
486
- className="c9"
502
+ className="c10"
487
503
  >
488
504
  <div
489
- className="c10"
505
+ className="c11"
490
506
  >
491
507
  Example Label
492
508
  </div>
493
509
  <p
494
- className="c11"
510
+ className="c12"
495
511
  >
496
512
  <strong>
497
513
  Single Card
@@ -500,27 +516,27 @@ exports[`renders correctly with data prop 1`] = `
500
516
  </p>
501
517
  </div>
502
518
  <div
503
- className="c12"
519
+ className="c13"
504
520
  >
505
521
  <span
506
- className="c13 c14"
522
+ className="c14 c15"
507
523
  >
508
524
  Learn more
509
525
  <img
510
526
  alt=""
511
527
  aria-hidden="true"
512
- className="c15 c16"
528
+ className="c16 c17"
513
529
  src="mock.asset"
514
530
  />
515
531
  </span>
516
532
  <div
517
- className="c17"
533
+ className="c18"
518
534
  >
519
535
  <div
520
- className="c18"
536
+ className="c19"
521
537
  >
522
538
  <svg
523
- className="c19"
539
+ className="c20"
524
540
  fill="none"
525
541
  height="13"
526
542
  viewBox="0 0 15 13"
@@ -543,7 +559,7 @@ exports[`renders correctly with data prop 1`] = `
543
559
  `;
544
560
 
545
561
  exports[`renders correctly without image 1`] = `
546
- .c7 {
562
+ .c8 {
547
563
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
548
564
  font-weight: 400;
549
565
  text-transform: inherit;
@@ -555,18 +571,32 @@ exports[`renders correctly without image 1`] = `
555
571
  line-height: 1.25rem;
556
572
  }
557
573
 
558
- .c7 span {
574
+ .c8 span {
559
575
  font-size: inherit;
560
576
  line-height: inherit;
561
577
  }
562
578
 
563
- .c15 {
579
+ .c3 {
580
+ position: relative;
581
+ display: inline;
582
+ color: #000000;
583
+ font-weight: normal;
584
+ }
585
+
586
+ .c3:hover,
587
+ .c3:focus {
588
+ color: #000000;
589
+ -webkit-text-decoration: none;
590
+ text-decoration: none;
591
+ }
592
+
593
+ .c16 {
564
594
  display: inline-block;
565
595
  color: #FFFFFF;
566
596
  fill: currentColor;
567
597
  }
568
598
 
569
- .c10 {
599
+ .c11 {
570
600
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
571
601
  font-weight: 400;
572
602
  text-transform: inherit;
@@ -584,7 +614,7 @@ exports[`renders correctly without image 1`] = `
584
614
  display: inline-block;
585
615
  }
586
616
 
587
- .c12 {
617
+ .c13 {
588
618
  height: 4px;
589
619
  width: 100%;
590
620
  position: absolute;
@@ -596,7 +626,7 @@ exports[`renders correctly without image 1`] = `
596
626
  pointer-events: none;
597
627
  }
598
628
 
599
- .c14 {
629
+ .c15 {
600
630
  width: 32px;
601
631
  height: 32px;
602
632
  border-radius: 50%;
@@ -618,7 +648,7 @@ exports[`renders correctly without image 1`] = `
618
648
  flex-shrink: 0;
619
649
  }
620
650
 
621
- .c13 {
651
+ .c14 {
622
652
  padding-left: 1rem;
623
653
  display: -webkit-box;
624
654
  display: -webkit-flex;
@@ -634,7 +664,7 @@ exports[`renders correctly without image 1`] = `
634
664
  justify-content: flex-end;
635
665
  }
636
666
 
637
- .c3 {
667
+ .c4 {
638
668
  display: -webkit-box;
639
669
  display: -webkit-flex;
640
670
  display: -ms-flexbox;
@@ -657,7 +687,7 @@ exports[`renders correctly without image 1`] = `
657
687
  box-sizing: border-box;
658
688
  }
659
689
 
660
- .c3 img {
690
+ .c4 img {
661
691
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
662
692
  -webkit-transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
663
693
  transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
@@ -682,7 +712,7 @@ exports[`renders correctly without image 1`] = `
682
712
  max-width: 100%;
683
713
  }
684
714
 
685
- .c4 {
715
+ .c5 {
686
716
  width: 100%;
687
717
  background: #FFFFFF;
688
718
  display: -webkit-box;
@@ -700,7 +730,7 @@ exports[`renders correctly without image 1`] = `
700
730
  border-radius: 0 0 1rem 1rem;
701
731
  }
702
732
 
703
- .c5 {
733
+ .c6 {
704
734
  -webkit-flex: 1;
705
735
  -ms-flex: 1;
706
736
  flex: 1;
@@ -714,13 +744,13 @@ exports[`renders correctly without image 1`] = `
714
744
  min-height: 0;
715
745
  }
716
746
 
717
- .c6 {
747
+ .c7 {
718
748
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
719
749
  font-size: 14px;
720
750
  color: #969598;
721
751
  }
722
752
 
723
- .c8 {
753
+ .c9 {
724
754
  width: 100%;
725
755
  display: -webkit-box;
726
756
  display: -webkit-flex;
@@ -760,47 +790,47 @@ exports[`renders correctly without image 1`] = `
760
790
  }
761
791
 
762
792
  @media (min-width:740px) {
763
- .c7 {
793
+ .c8 {
764
794
  font-size: 1rem;
765
795
  line-height: 1.25rem;
766
796
  }
767
797
  }
768
798
 
769
799
  @media (min-width:1024px) {
770
- .c7 {
800
+ .c8 {
771
801
  font-size: 1.125rem;
772
802
  line-height: 1.375rem;
773
803
  }
774
804
  }
775
805
 
776
806
  @media (min-width:740px) {
777
- .c10 {
807
+ .c11 {
778
808
  font-size: 1rem;
779
809
  line-height: 1.25rem;
780
810
  }
781
811
  }
782
812
 
783
813
  @media (min-width:1024px) {
784
- .c10 {
814
+ .c11 {
785
815
  font-size: 1.125rem;
786
816
  line-height: 1.375rem;
787
817
  }
788
818
  }
789
819
 
790
820
  @media (min-width:1024px) {
791
- .c10 {
821
+ .c11 {
792
822
  color: #222222;
793
823
  }
794
824
  }
795
825
 
796
826
  @media (min-width:1024px) {
797
- .c14 {
827
+ .c15 {
798
828
  background: #222222;
799
829
  }
800
830
  }
801
831
 
802
832
  @media (min-width:740px) {
803
- .c3 {
833
+ .c4 {
804
834
  -webkit-flex-direction: row;
805
835
  -ms-flex-direction: row;
806
836
  flex-direction: row;
@@ -813,13 +843,13 @@ exports[`renders correctly without image 1`] = `
813
843
  }
814
844
 
815
845
  @media (min-width:1024px) {
816
- .c3 {
846
+ .c4 {
817
847
  min-height: 272px;
818
848
  }
819
849
  }
820
850
 
821
851
  @media (min-width:740px) {
822
- .c3 {
852
+ .c4 {
823
853
  -webkit-transition: -webkit-transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
824
854
  -webkit-transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
825
855
  transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
@@ -831,23 +861,23 @@ exports[`renders correctly without image 1`] = `
831
861
  transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
832
862
  }
833
863
 
834
- .c3:hover,
835
- .c3:focus {
864
+ .c4:hover,
865
+ .c4:focus {
836
866
  -webkit-transform: translateY(-10px);
837
867
  -ms-transform: translateY(-10px);
838
868
  transform: translateY(-10px);
839
869
  }
840
870
 
841
- .c3:hover {
871
+ .c4:hover {
842
872
  box-shadow: 0 0 1.5rem rgba(0,0,0,0.25);
843
873
  }
844
874
 
845
- .c3:hover .c9 {
875
+ .c4:hover .c10 {
846
876
  -webkit-text-decoration: none;
847
877
  text-decoration: none;
848
878
  }
849
879
 
850
- .c3:hover .c11 {
880
+ .c4:hover .c12 {
851
881
  opacity: 1;
852
882
  }
853
883
  }
@@ -873,7 +903,7 @@ exports[`renders correctly without image 1`] = `
873
903
  }
874
904
 
875
905
  @media (min-width:740px) {
876
- .c4 {
906
+ .c5 {
877
907
  width: calc(200% / 3);
878
908
  min-width: 384px;
879
909
  max-width: 650px;
@@ -885,14 +915,14 @@ exports[`renders correctly without image 1`] = `
885
915
  }
886
916
 
887
917
  @media (min-width:1024px) {
888
- .c4 {
918
+ .c5 {
889
919
  min-width: 541px;
890
920
  max-width: 790px;
891
921
  }
892
922
  }
893
923
 
894
924
  @media (min-width:1440px) {
895
- .c4 {
925
+ .c5 {
896
926
  width: 789px;
897
927
  }
898
928
  }
@@ -919,50 +949,52 @@ exports[`renders correctly without image 1`] = `
919
949
  className="c2"
920
950
  >
921
951
  <a
922
- className="c3"
952
+ className="c3 c4"
953
+ color="red"
923
954
  href="/test-no-image"
924
955
  rel={null}
925
- target="self"
956
+ target="_self"
957
+ type="standard"
926
958
  >
927
959
  <div
928
- className="c4"
960
+ className="c5"
929
961
  >
930
962
  <div
931
- className="c5"
963
+ className="c6"
932
964
  >
933
965
  <div
934
- className="c6"
966
+ className="c7"
935
967
  >
936
968
  Example Label
937
969
  </div>
938
970
  <p
939
- className="c7"
971
+ className="c8"
940
972
  >
941
973
  Card without image
942
974
  </p>
943
975
  </div>
944
976
  <div
945
- className="c8"
977
+ className="c9"
946
978
  >
947
979
  <span
948
- className="c9 c10"
980
+ className="c10 c11"
949
981
  >
950
982
  View card
951
983
  <img
952
984
  alt=""
953
985
  aria-hidden="true"
954
- className="c11 c12"
986
+ className="c12 c13"
955
987
  src="mock.asset"
956
988
  />
957
989
  </span>
958
990
  <div
959
- className="c13"
991
+ className="c14"
960
992
  >
961
993
  <div
962
- className="c14"
994
+ className="c15"
963
995
  >
964
996
  <svg
965
- className="c15"
997
+ className="c16"
966
998
  fill="none"
967
999
  height="13"
968
1000
  viewBox="0 0 15 13"