@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.
- package/dist/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +48 -24
- package/dist/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +128 -96
- package/dist/components/Molecules/CTA/shared/CTACard.js +2 -1
- package/dist/components/Molecules/HeroBanner/HeroBanner.md +1 -1
- package/dist/components/Molecules/HeroBanner/HeroBanner.style.js +4 -4
- package/dist/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +6 -0
- package/package.json +1 -1
- package/src/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +48 -24
- package/src/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +128 -96
- package/src/components/Molecules/CTA/shared/CTACard.js +2 -1
- package/src/components/Molecules/HeroBanner/HeroBanner.md +1 -1
- package/src/components/Molecules/HeroBanner/HeroBanner.style.js +15 -2
- package/src/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +6 -0
|
@@ -17,10 +17,12 @@ exports[`handles data structure correctly 1`] = `
|
|
|
17
17
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 iSFtcX"
|
|
18
18
|
>
|
|
19
19
|
<a
|
|
20
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
20
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
21
|
+
color="red"
|
|
21
22
|
href="/test"
|
|
22
23
|
rel={null}
|
|
23
|
-
target="
|
|
24
|
+
target="_self"
|
|
25
|
+
type="standard"
|
|
24
26
|
>
|
|
25
27
|
<div
|
|
26
28
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -148,10 +150,12 @@ exports[`handles data structure correctly 1`] = `
|
|
|
148
150
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 iSFtcX"
|
|
149
151
|
>
|
|
150
152
|
<a
|
|
151
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
153
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
154
|
+
color="red"
|
|
152
155
|
href="/test"
|
|
153
156
|
rel={null}
|
|
154
|
-
target="
|
|
157
|
+
target="_self"
|
|
158
|
+
type="standard"
|
|
155
159
|
>
|
|
156
160
|
<div
|
|
157
161
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -233,10 +237,12 @@ exports[`handles data structure correctly 1`] = `
|
|
|
233
237
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 iSFtcX"
|
|
234
238
|
>
|
|
235
239
|
<a
|
|
236
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
240
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
241
|
+
color="red"
|
|
237
242
|
href="/test-no-image"
|
|
238
243
|
rel={null}
|
|
239
|
-
target="
|
|
244
|
+
target="_self"
|
|
245
|
+
type="standard"
|
|
240
246
|
>
|
|
241
247
|
<div
|
|
242
248
|
className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
|
|
@@ -312,10 +318,12 @@ exports[`renders 2 columns layout correctly 1`] = `
|
|
|
312
318
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 gBbrVV"
|
|
313
319
|
>
|
|
314
320
|
<a
|
|
315
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
321
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
322
|
+
color="red"
|
|
316
323
|
href="/test"
|
|
317
324
|
rel={null}
|
|
318
|
-
target="
|
|
325
|
+
target="_self"
|
|
326
|
+
type="standard"
|
|
319
327
|
>
|
|
320
328
|
<div
|
|
321
329
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -443,10 +451,12 @@ exports[`renders 2 columns layout correctly 1`] = `
|
|
|
443
451
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 gBbrVV"
|
|
444
452
|
>
|
|
445
453
|
<a
|
|
446
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
454
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
455
|
+
color="red"
|
|
447
456
|
href="/test"
|
|
448
457
|
rel={null}
|
|
449
|
-
target="
|
|
458
|
+
target="_self"
|
|
459
|
+
type="standard"
|
|
450
460
|
>
|
|
451
461
|
<div
|
|
452
462
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -528,10 +538,12 @@ exports[`renders 2 columns layout correctly 1`] = `
|
|
|
528
538
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 gBbrVV"
|
|
529
539
|
>
|
|
530
540
|
<a
|
|
531
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
541
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
542
|
+
color="red"
|
|
532
543
|
href="/test-no-image"
|
|
533
544
|
rel={null}
|
|
534
|
-
target="
|
|
545
|
+
target="_self"
|
|
546
|
+
type="standard"
|
|
535
547
|
>
|
|
536
548
|
<div
|
|
537
549
|
className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
|
|
@@ -607,10 +619,12 @@ exports[`renders carousel mode correctly 1`] = `
|
|
|
607
619
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
|
|
608
620
|
>
|
|
609
621
|
<a
|
|
610
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
622
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
623
|
+
color="red"
|
|
611
624
|
href="/test"
|
|
612
625
|
rel={null}
|
|
613
|
-
target="
|
|
626
|
+
target="_self"
|
|
627
|
+
type="standard"
|
|
614
628
|
>
|
|
615
629
|
<div
|
|
616
630
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -738,10 +752,12 @@ exports[`renders carousel mode correctly 1`] = `
|
|
|
738
752
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
|
|
739
753
|
>
|
|
740
754
|
<a
|
|
741
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
755
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
756
|
+
color="red"
|
|
742
757
|
href="/test"
|
|
743
758
|
rel={null}
|
|
744
|
-
target="
|
|
759
|
+
target="_self"
|
|
760
|
+
type="standard"
|
|
745
761
|
>
|
|
746
762
|
<div
|
|
747
763
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -823,10 +839,12 @@ exports[`renders carousel mode correctly 1`] = `
|
|
|
823
839
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
|
|
824
840
|
>
|
|
825
841
|
<a
|
|
826
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
842
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
843
|
+
color="red"
|
|
827
844
|
href="/test-no-image"
|
|
828
845
|
rel={null}
|
|
829
|
-
target="
|
|
846
|
+
target="_self"
|
|
847
|
+
type="standard"
|
|
830
848
|
>
|
|
831
849
|
<div
|
|
832
850
|
className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
|
|
@@ -902,10 +920,12 @@ exports[`renders correctly with data prop 1`] = `
|
|
|
902
920
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
|
|
903
921
|
>
|
|
904
922
|
<a
|
|
905
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
923
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
924
|
+
color="red"
|
|
906
925
|
href="/test"
|
|
907
926
|
rel={null}
|
|
908
|
-
target="
|
|
927
|
+
target="_self"
|
|
928
|
+
type="standard"
|
|
909
929
|
>
|
|
910
930
|
<div
|
|
911
931
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -1033,10 +1053,12 @@ exports[`renders correctly with data prop 1`] = `
|
|
|
1033
1053
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
|
|
1034
1054
|
>
|
|
1035
1055
|
<a
|
|
1036
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
1056
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
1057
|
+
color="red"
|
|
1037
1058
|
href="/test"
|
|
1038
1059
|
rel={null}
|
|
1039
|
-
target="
|
|
1060
|
+
target="_self"
|
|
1061
|
+
type="standard"
|
|
1040
1062
|
>
|
|
1041
1063
|
<div
|
|
1042
1064
|
className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
|
|
@@ -1118,10 +1140,12 @@ exports[`renders correctly with data prop 1`] = `
|
|
|
1118
1140
|
className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
|
|
1119
1141
|
>
|
|
1120
1142
|
<a
|
|
1121
|
-
className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
1143
|
+
className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
|
|
1144
|
+
color="red"
|
|
1122
1145
|
href="/test-no-image"
|
|
1123
1146
|
rel={null}
|
|
1124
|
-
target="
|
|
1147
|
+
target="_self"
|
|
1148
|
+
type="standard"
|
|
1125
1149
|
>
|
|
1126
1150
|
<div
|
|
1127
1151
|
className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
|