@comicrelief/component-library 8.44.1 → 8.44.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/Atoms/Checkbox/Checkbox.js +2 -1
- package/dist/components/Atoms/Checkbox/Checkbox.md +2 -2
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +6 -0
- package/dist/components/Atoms/RadioButton/RadioButton.js +2 -1
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +6 -0
- package/dist/components/Molecules/Accordion/Accordion.md +3 -3
- package/dist/components/Molecules/Accordion/Accordion.test.js +2 -1
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +6 -0
- package/dist/components/Molecules/Banner/Banner.test.js +2 -1
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +3 -0
- package/dist/components/Organisms/Footer/Footer.js +2 -1
- package/dist/components/Organisms/Footer/Nav/Nav.js +8 -4
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +40 -0
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -1
- package/dist/components/Organisms/Header/Nav/Nav.js +2 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
- package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +4 -2
- package/dist/components/Organisms/Membership/Form/Form.js +2 -1
- package/dist/components/Organisms/Membership/Membership.js +2 -1
- package/dist/components/Organisms/Membership/Membership.test.js +86 -48
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.js +4 -2
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.js +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.md +2 -2
- package/src/components/Atoms/Checkbox/Checkbox.test.js +6 -0
- package/src/components/Atoms/RadioButton/RadioButton.js +1 -1
- package/src/components/Atoms/RadioButton/RadioButton.test.js +6 -0
- package/src/components/Molecules/Accordion/Accordion.md +3 -3
- package/src/components/Molecules/Accordion/Accordion.test.js +1 -1
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +6 -0
- package/src/components/Molecules/Banner/Banner.test.js +1 -1
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +3 -0
- package/src/components/Organisms/Footer/Footer.js +1 -1
- package/src/components/Organisms/Footer/Nav/Nav.js +4 -4
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +40 -0
- package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +1 -1
- package/src/components/Organisms/Header/Nav/Nav.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
- package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +2 -2
- package/src/components/Organisms/Membership/Form/Form.js +1 -1
- package/src/components/Organisms/Membership/Membership.js +1 -1
- package/src/components/Organisms/Membership/Membership.test.js +86 -48
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +2 -2
|
@@ -55,6 +55,11 @@ it('renders correctly', () => {
|
|
|
55
55
|
line-height: 1.25rem;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
.c7 {
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
line-height: normal;
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
.c12 {
|
|
59
64
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
60
65
|
font-weight: 700;
|
|
@@ -67,7 +72,12 @@ it('renders correctly', () => {
|
|
|
67
72
|
line-height: 1.5rem;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
.
|
|
75
|
+
.c12 {
|
|
76
|
+
font-size: 1rem;
|
|
77
|
+
line-height: normal;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.c16 {
|
|
71
81
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
72
82
|
font-weight: 400;
|
|
73
83
|
text-transform: inherit;
|
|
@@ -79,7 +89,19 @@ it('renders correctly', () => {
|
|
|
79
89
|
line-height: 1.25rem;
|
|
80
90
|
}
|
|
81
91
|
|
|
82
|
-
.
|
|
92
|
+
.c23 {
|
|
93
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
94
|
+
font-weight: 400;
|
|
95
|
+
text-transform: inherit;
|
|
96
|
+
-webkit-letter-spacing: 0;
|
|
97
|
+
-moz-letter-spacing: 0;
|
|
98
|
+
-ms-letter-spacing: 0;
|
|
99
|
+
letter-spacing: 0;
|
|
100
|
+
font-size: 1rem;
|
|
101
|
+
line-height: 1.25rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.c23 {
|
|
83
105
|
font-size: 1rem;
|
|
84
106
|
line-height: normal;
|
|
85
107
|
font-weight: 500;
|
|
@@ -112,7 +134,7 @@ it('renders correctly', () => {
|
|
|
112
134
|
color: #000000;
|
|
113
135
|
}
|
|
114
136
|
|
|
115
|
-
.
|
|
137
|
+
.c17 {
|
|
116
138
|
margin-bottom: 0.5rem;
|
|
117
139
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
118
140
|
font-weight: 400;
|
|
@@ -125,12 +147,12 @@ it('renders correctly', () => {
|
|
|
125
147
|
line-height: 1.25rem;
|
|
126
148
|
}
|
|
127
149
|
|
|
128
|
-
.
|
|
150
|
+
.c18 {
|
|
129
151
|
position: relative;
|
|
130
152
|
font-size: 1.25rem;
|
|
131
153
|
}
|
|
132
154
|
|
|
133
|
-
.
|
|
155
|
+
.c19 {
|
|
134
156
|
position: relative;
|
|
135
157
|
width: 100%;
|
|
136
158
|
display: -webkit-box;
|
|
@@ -147,7 +169,7 @@ it('renders correctly', () => {
|
|
|
147
169
|
align-items: center;
|
|
148
170
|
}
|
|
149
171
|
|
|
150
|
-
.
|
|
172
|
+
.c20 {
|
|
151
173
|
position: relative;
|
|
152
174
|
box-sizing: border-box;
|
|
153
175
|
width: 100%;
|
|
@@ -167,7 +189,7 @@ it('renders correctly', () => {
|
|
|
167
189
|
font-family: inherit;
|
|
168
190
|
}
|
|
169
191
|
|
|
170
|
-
.
|
|
192
|
+
.c20:focus {
|
|
171
193
|
border: 1px solid #666;
|
|
172
194
|
}
|
|
173
195
|
|
|
@@ -186,11 +208,11 @@ it('renders correctly', () => {
|
|
|
186
208
|
height: auto;
|
|
187
209
|
}
|
|
188
210
|
|
|
189
|
-
.
|
|
211
|
+
.c21 {
|
|
190
212
|
display: block;
|
|
191
213
|
}
|
|
192
214
|
|
|
193
|
-
.
|
|
215
|
+
.c21 input {
|
|
194
216
|
border: 2px solid #E1E2E3;
|
|
195
217
|
font-size: 1.5rem;
|
|
196
218
|
font-weight: 700;
|
|
@@ -307,7 +329,7 @@ it('renders correctly', () => {
|
|
|
307
329
|
border-color: #E52630;
|
|
308
330
|
}
|
|
309
331
|
|
|
310
|
-
.
|
|
332
|
+
.c22 {
|
|
311
333
|
display: -webkit-box;
|
|
312
334
|
display: -webkit-flex;
|
|
313
335
|
display: -ms-flexbox;
|
|
@@ -318,11 +340,11 @@ it('renders correctly', () => {
|
|
|
318
340
|
align-items: center;
|
|
319
341
|
}
|
|
320
342
|
|
|
321
|
-
.
|
|
343
|
+
.c24 {
|
|
322
344
|
margin-right: auto;
|
|
323
345
|
}
|
|
324
346
|
|
|
325
|
-
.
|
|
347
|
+
.c25 {
|
|
326
348
|
position: relative;
|
|
327
349
|
-webkit-flex: 0 0 50%;
|
|
328
350
|
-ms-flex: 0 0 50%;
|
|
@@ -331,7 +353,7 @@ it('renders correctly', () => {
|
|
|
331
353
|
display: block;
|
|
332
354
|
}
|
|
333
355
|
|
|
334
|
-
.
|
|
356
|
+
.c25 span {
|
|
335
357
|
position: absolute;
|
|
336
358
|
padding: 0px 15px;
|
|
337
359
|
font-size: 20px;
|
|
@@ -343,21 +365,21 @@ it('renders correctly', () => {
|
|
|
343
365
|
font-weight: 500;
|
|
344
366
|
}
|
|
345
367
|
|
|
346
|
-
.
|
|
368
|
+
.c25 input {
|
|
347
369
|
border: 2px solid #E1E2E3;
|
|
348
370
|
background: transparent;
|
|
349
371
|
padding: 0.5rem 1rem 0.5rem 2rem;
|
|
350
372
|
}
|
|
351
373
|
|
|
352
|
-
.
|
|
374
|
+
.c25 input:focus {
|
|
353
375
|
border: 2px solid #E52630;
|
|
354
376
|
}
|
|
355
377
|
|
|
356
|
-
.
|
|
378
|
+
.c27 {
|
|
357
379
|
line-height: 1.5;
|
|
358
380
|
}
|
|
359
381
|
|
|
360
|
-
.
|
|
382
|
+
.c26 {
|
|
361
383
|
width: 100%;
|
|
362
384
|
color: #FFFFFF;
|
|
363
385
|
font-size: 1rem;
|
|
@@ -369,9 +391,9 @@ it('renders correctly', () => {
|
|
|
369
391
|
border-radius: 100px;
|
|
370
392
|
}
|
|
371
393
|
|
|
372
|
-
.
|
|
373
|
-
.
|
|
374
|
-
.
|
|
394
|
+
.c26:active,
|
|
395
|
+
.c26:focus,
|
|
396
|
+
.c26:hover {
|
|
375
397
|
background-color: #961D35;
|
|
376
398
|
}
|
|
377
399
|
|
|
@@ -418,28 +440,42 @@ it('renders correctly', () => {
|
|
|
418
440
|
}
|
|
419
441
|
|
|
420
442
|
@media (min-width:740px) {
|
|
421
|
-
.
|
|
443
|
+
.c16 {
|
|
422
444
|
font-size: 1rem;
|
|
423
445
|
line-height: 1.25rem;
|
|
424
446
|
}
|
|
425
447
|
}
|
|
426
448
|
|
|
427
449
|
@media (min-width:1024px) {
|
|
428
|
-
.
|
|
450
|
+
.c16 {
|
|
429
451
|
font-size: 1.125rem;
|
|
430
452
|
line-height: 1.375rem;
|
|
431
453
|
}
|
|
432
454
|
}
|
|
433
455
|
|
|
434
456
|
@media (min-width:740px) {
|
|
435
|
-
.
|
|
457
|
+
.c23 {
|
|
436
458
|
font-size: 1rem;
|
|
437
459
|
line-height: 1.25rem;
|
|
438
460
|
}
|
|
439
461
|
}
|
|
440
462
|
|
|
441
463
|
@media (min-width:1024px) {
|
|
442
|
-
.
|
|
464
|
+
.c23 {
|
|
465
|
+
font-size: 1.125rem;
|
|
466
|
+
line-height: 1.375rem;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@media (min-width:740px) {
|
|
471
|
+
.c17 {
|
|
472
|
+
font-size: 1rem;
|
|
473
|
+
line-height: 1.25rem;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@media (min-width:1024px) {
|
|
478
|
+
.c17 {
|
|
443
479
|
font-size: 1rem;
|
|
444
480
|
line-height: 1.25rem;
|
|
445
481
|
}
|
|
@@ -496,7 +532,7 @@ it('renders correctly', () => {
|
|
|
496
532
|
}
|
|
497
533
|
|
|
498
534
|
@media (min-width:1024px) {
|
|
499
|
-
.
|
|
535
|
+
.c25 {
|
|
500
536
|
-webkit-flex: 0 0 60%;
|
|
501
537
|
-ms-flex: 0 0 60%;
|
|
502
538
|
flex: 0 0 60%;
|
|
@@ -504,7 +540,7 @@ it('renders correctly', () => {
|
|
|
504
540
|
}
|
|
505
541
|
|
|
506
542
|
@media (min-width:1024px) {
|
|
507
|
-
.
|
|
543
|
+
.c26 {
|
|
508
544
|
width: auto;
|
|
509
545
|
padding: 1rem 2rem;
|
|
510
546
|
margin: 0 auto 2rem;
|
|
@@ -544,6 +580,7 @@ it('renders correctly', () => {
|
|
|
544
580
|
<p
|
|
545
581
|
className="c7"
|
|
546
582
|
color="inherit"
|
|
583
|
+
size="s"
|
|
547
584
|
>
|
|
548
585
|
Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.
|
|
549
586
|
</p>
|
|
@@ -564,6 +601,7 @@ it('renders correctly', () => {
|
|
|
564
601
|
<h3
|
|
565
602
|
className="c12"
|
|
566
603
|
color="inherit"
|
|
604
|
+
size="s"
|
|
567
605
|
>
|
|
568
606
|
Choose your monthly donation
|
|
569
607
|
</h3>
|
|
@@ -576,7 +614,7 @@ it('renders correctly', () => {
|
|
|
576
614
|
htmlFor="mship-1--moneyBuy-box1"
|
|
577
615
|
>
|
|
578
616
|
<span
|
|
579
|
-
className="
|
|
617
|
+
className="c16 c17"
|
|
580
618
|
color="inherit"
|
|
581
619
|
dangerouslySetInnerHTML={
|
|
582
620
|
Object {
|
|
@@ -585,16 +623,16 @@ it('renders correctly', () => {
|
|
|
585
623
|
}
|
|
586
624
|
/>
|
|
587
625
|
<div
|
|
588
|
-
className="
|
|
626
|
+
className="c18"
|
|
589
627
|
>
|
|
590
628
|
|
|
591
629
|
<div
|
|
592
|
-
className="
|
|
630
|
+
className="c19"
|
|
593
631
|
>
|
|
594
632
|
<input
|
|
595
633
|
aria-label="£5"
|
|
596
634
|
aria-required={false}
|
|
597
|
-
className="
|
|
635
|
+
className="c20"
|
|
598
636
|
id="mship-1--moneyBuy-box1"
|
|
599
637
|
name="mship-1--moneyBuy1"
|
|
600
638
|
onClick={[Function]}
|
|
@@ -609,11 +647,11 @@ it('renders correctly', () => {
|
|
|
609
647
|
|
|
610
648
|
</label>
|
|
611
649
|
<label
|
|
612
|
-
className="c14
|
|
650
|
+
className="c14 c21"
|
|
613
651
|
htmlFor="mship-1--moneyBuy-box2"
|
|
614
652
|
>
|
|
615
653
|
<span
|
|
616
|
-
className="
|
|
654
|
+
className="c16 c17"
|
|
617
655
|
color="inherit"
|
|
618
656
|
dangerouslySetInnerHTML={
|
|
619
657
|
Object {
|
|
@@ -622,16 +660,16 @@ it('renders correctly', () => {
|
|
|
622
660
|
}
|
|
623
661
|
/>
|
|
624
662
|
<div
|
|
625
|
-
className="
|
|
663
|
+
className="c18"
|
|
626
664
|
>
|
|
627
665
|
|
|
628
666
|
<div
|
|
629
|
-
className="
|
|
667
|
+
className="c19"
|
|
630
668
|
>
|
|
631
669
|
<input
|
|
632
670
|
aria-label="£10"
|
|
633
671
|
aria-required={false}
|
|
634
|
-
className="
|
|
672
|
+
className="c20"
|
|
635
673
|
id="mship-1--moneyBuy-box2"
|
|
636
674
|
name="mship-1--moneyBuy2"
|
|
637
675
|
onClick={[Function]}
|
|
@@ -650,7 +688,7 @@ it('renders correctly', () => {
|
|
|
650
688
|
htmlFor="mship-1--moneyBuy-box3"
|
|
651
689
|
>
|
|
652
690
|
<span
|
|
653
|
-
className="
|
|
691
|
+
className="c16 c17"
|
|
654
692
|
color="inherit"
|
|
655
693
|
dangerouslySetInnerHTML={
|
|
656
694
|
Object {
|
|
@@ -659,16 +697,16 @@ it('renders correctly', () => {
|
|
|
659
697
|
}
|
|
660
698
|
/>
|
|
661
699
|
<div
|
|
662
|
-
className="
|
|
700
|
+
className="c18"
|
|
663
701
|
>
|
|
664
702
|
|
|
665
703
|
<div
|
|
666
|
-
className="
|
|
704
|
+
className="c19"
|
|
667
705
|
>
|
|
668
706
|
<input
|
|
669
707
|
aria-label="£20"
|
|
670
708
|
aria-required={false}
|
|
671
|
-
className="
|
|
709
|
+
className="c20"
|
|
672
710
|
id="mship-1--moneyBuy-box3"
|
|
673
711
|
name="mship-1--moneyBuy3"
|
|
674
712
|
onClick={[Function]}
|
|
@@ -684,21 +722,21 @@ it('renders correctly', () => {
|
|
|
684
722
|
</label>
|
|
685
723
|
</div>
|
|
686
724
|
<div
|
|
687
|
-
className="
|
|
725
|
+
className="c22"
|
|
688
726
|
>
|
|
689
727
|
<span
|
|
690
|
-
className="
|
|
728
|
+
className="c23 c24"
|
|
691
729
|
color="inherit"
|
|
692
730
|
size="s"
|
|
693
731
|
>
|
|
694
732
|
Other amount
|
|
695
733
|
</span>
|
|
696
734
|
<label
|
|
697
|
-
className="c14
|
|
735
|
+
className="c14 c25"
|
|
698
736
|
htmlFor="mship-1--MoneyBuy-userInput"
|
|
699
737
|
>
|
|
700
738
|
<span
|
|
701
|
-
className="
|
|
739
|
+
className="c16 c17"
|
|
702
740
|
color="inherit"
|
|
703
741
|
dangerouslySetInnerHTML={
|
|
704
742
|
Object {
|
|
@@ -707,16 +745,16 @@ it('renders correctly', () => {
|
|
|
707
745
|
}
|
|
708
746
|
/>
|
|
709
747
|
<div
|
|
710
|
-
className="
|
|
748
|
+
className="c18"
|
|
711
749
|
>
|
|
712
750
|
|
|
713
751
|
<div
|
|
714
|
-
className="
|
|
752
|
+
className="c19"
|
|
715
753
|
>
|
|
716
754
|
<input
|
|
717
755
|
aria-label="Input a different amount"
|
|
718
756
|
aria-required={false}
|
|
719
|
-
className="
|
|
757
|
+
className="c20"
|
|
720
758
|
id="mship-1--MoneyBuy-userInput"
|
|
721
759
|
max="25000"
|
|
722
760
|
min="1"
|
|
@@ -738,12 +776,12 @@ it('renders correctly', () => {
|
|
|
738
776
|
</label>
|
|
739
777
|
</div>
|
|
740
778
|
<input
|
|
741
|
-
className="
|
|
779
|
+
className="c26"
|
|
742
780
|
type="submit"
|
|
743
781
|
value="Donate"
|
|
744
782
|
/>
|
|
745
783
|
<p
|
|
746
|
-
className="
|
|
784
|
+
className="c27"
|
|
747
785
|
/>
|
|
748
786
|
</fieldset>
|
|
749
787
|
</form>
|
|
@@ -111,13 +111,13 @@ const WYMDCarousel = ({ data, data: { autoPlay, contentful_id: thisID } }) => {
|
|
|
111
111
|
|
|
112
112
|
<div className="all-text-wrapper">
|
|
113
113
|
<AmountWrapper>
|
|
114
|
-
<Text tag="h1" family="Anton" uppercase weight="normal">
|
|
114
|
+
<Text tag="h1" family="Anton" uppercase weight="normal" size="s">
|
|
115
115
|
{theseItems[key].amount}
|
|
116
116
|
</Text>
|
|
117
117
|
</AmountWrapper>
|
|
118
118
|
|
|
119
119
|
<CopyWrapper>
|
|
120
|
-
<Text tag="p">
|
|
120
|
+
<Text tag="p" size="s">
|
|
121
121
|
{theseItems[key].copy}
|
|
122
122
|
</Text>
|
|
123
123
|
</CopyWrapper>
|