@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.
Files changed (45) hide show
  1. package/dist/components/Atoms/Checkbox/Checkbox.js +2 -1
  2. package/dist/components/Atoms/Checkbox/Checkbox.md +2 -2
  3. package/dist/components/Atoms/Checkbox/Checkbox.test.js +6 -0
  4. package/dist/components/Atoms/RadioButton/RadioButton.js +2 -1
  5. package/dist/components/Atoms/RadioButton/RadioButton.test.js +6 -0
  6. package/dist/components/Molecules/Accordion/Accordion.md +3 -3
  7. package/dist/components/Molecules/Accordion/Accordion.test.js +2 -1
  8. package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +6 -0
  9. package/dist/components/Molecules/Banner/Banner.test.js +2 -1
  10. package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +3 -0
  11. package/dist/components/Organisms/Footer/Footer.js +2 -1
  12. package/dist/components/Organisms/Footer/Nav/Nav.js +8 -4
  13. package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +40 -0
  14. package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -1
  15. package/dist/components/Organisms/Header/Nav/Nav.js +2 -1
  16. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -1
  17. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
  18. package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +4 -2
  19. package/dist/components/Organisms/Membership/Form/Form.js +2 -1
  20. package/dist/components/Organisms/Membership/Membership.js +2 -1
  21. package/dist/components/Organisms/Membership/Membership.test.js +86 -48
  22. package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.js +4 -2
  23. package/package.json +1 -1
  24. package/src/components/Atoms/Checkbox/Checkbox.js +1 -1
  25. package/src/components/Atoms/Checkbox/Checkbox.md +2 -2
  26. package/src/components/Atoms/Checkbox/Checkbox.test.js +6 -0
  27. package/src/components/Atoms/RadioButton/RadioButton.js +1 -1
  28. package/src/components/Atoms/RadioButton/RadioButton.test.js +6 -0
  29. package/src/components/Molecules/Accordion/Accordion.md +3 -3
  30. package/src/components/Molecules/Accordion/Accordion.test.js +1 -1
  31. package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +6 -0
  32. package/src/components/Molecules/Banner/Banner.test.js +1 -1
  33. package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +3 -0
  34. package/src/components/Organisms/Footer/Footer.js +1 -1
  35. package/src/components/Organisms/Footer/Nav/Nav.js +4 -4
  36. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +40 -0
  37. package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +1 -1
  38. package/src/components/Organisms/Header/Nav/Nav.js +1 -1
  39. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
  40. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +1 -1
  41. package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDSForm.js +2 -2
  42. package/src/components/Organisms/Membership/Form/Form.js +1 -1
  43. package/src/components/Organisms/Membership/Membership.js +1 -1
  44. package/src/components/Organisms/Membership/Membership.test.js +86 -48
  45. 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
- .c22 {
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
- .c22 {
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
- .c16 {
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
- .c17 {
150
+ .c18 {
129
151
  position: relative;
130
152
  font-size: 1.25rem;
131
153
  }
132
154
 
133
- .c18 {
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
- .c19 {
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
- .c19:focus {
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
- .c20 {
211
+ .c21 {
190
212
  display: block;
191
213
  }
192
214
 
193
- .c20 input {
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
- .c21 {
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
- .c23 {
343
+ .c24 {
322
344
  margin-right: auto;
323
345
  }
324
346
 
325
- .c24 {
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
- .c24 span {
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
- .c24 input {
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
- .c24 input:focus {
374
+ .c25 input:focus {
353
375
  border: 2px solid #E52630;
354
376
  }
355
377
 
356
- .c26 {
378
+ .c27 {
357
379
  line-height: 1.5;
358
380
  }
359
381
 
360
- .c25 {
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
- .c25:active,
373
- .c25:focus,
374
- .c25:hover {
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
- .c22 {
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
- .c22 {
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
- .c16 {
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
- .c16 {
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
- .c24 {
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
- .c25 {
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="c7 c16"
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="c17"
626
+ className="c18"
589
627
  >
590
628
 
591
629
  <div
592
- className="c18"
630
+ className="c19"
593
631
  >
594
632
  <input
595
633
  aria-label="£5"
596
634
  aria-required={false}
597
- className="c19"
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 c20"
650
+ className="c14 c21"
613
651
  htmlFor="mship-1--moneyBuy-box2"
614
652
  >
615
653
  <span
616
- className="c7 c16"
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="c17"
663
+ className="c18"
626
664
  >
627
665
 
628
666
  <div
629
- className="c18"
667
+ className="c19"
630
668
  >
631
669
  <input
632
670
  aria-label="£10"
633
671
  aria-required={false}
634
- className="c19"
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="c7 c16"
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="c17"
700
+ className="c18"
663
701
  >
664
702
 
665
703
  <div
666
- className="c18"
704
+ className="c19"
667
705
  >
668
706
  <input
669
707
  aria-label="£20"
670
708
  aria-required={false}
671
- className="c19"
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="c21"
725
+ className="c22"
688
726
  >
689
727
  <span
690
- className="c22 c23"
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 c24"
735
+ className="c14 c25"
698
736
  htmlFor="mship-1--MoneyBuy-userInput"
699
737
  >
700
738
  <span
701
- className="c7 c16"
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="c17"
748
+ className="c18"
711
749
  >
712
750
 
713
751
  <div
714
- className="c18"
752
+ className="c19"
715
753
  >
716
754
  <input
717
755
  aria-label="Input a different amount"
718
756
  aria-required={false}
719
- className="c19"
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="c25"
779
+ className="c26"
742
780
  type="submit"
743
781
  value="Donate"
744
782
  />
745
783
  <p
746
- className="c26"
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>