@comicrelief/component-library 8.42.0 → 8.44.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.
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +50 -10
- package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +27 -4
- package/dist/components/Atoms/Input/Input.js +4 -9
- package/dist/components/Atoms/Input/input.test.js +92 -14
- package/dist/components/Atoms/Label/Label.js +14 -7
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +50 -10
- package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +45 -6
- package/dist/components/Atoms/Text/Text.js +60 -75
- package/dist/components/Atoms/Text/Text.md +84 -87
- package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +130 -21
- package/dist/components/Atoms/TextArea/TextArea.test.js +45 -6
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +138 -25
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +48 -7
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +110 -20
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +26 -6
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +85 -15
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +53 -3
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +27 -4
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +112 -28
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +46 -7
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +23 -6
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +232 -20
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +187 -30
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +50 -9
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +46 -7
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +26 -7
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +544 -101
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +75 -19
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +1 -1
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +100 -47
- package/dist/components/Organisms/Membership/Membership.test.js +122 -22
- package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
- package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +75 -19
- package/dist/theme/crTheme/fontConfig.js +217 -0
- package/dist/theme/crTheme/fontHelper.js +38 -0
- package/dist/theme/shared/breakpoints2026.js +11 -2
- package/dist/theme/shared/global.css +3 -1
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.test.js +50 -10
- package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +27 -4
- package/src/components/Atoms/Input/Input.js +2 -2
- package/src/components/Atoms/Input/input.test.js +92 -14
- package/src/components/Atoms/Label/Label.js +7 -3
- package/src/components/Atoms/RadioButton/RadioButton.test.js +50 -10
- package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +45 -6
- package/src/components/Atoms/Text/Text.js +55 -54
- package/src/components/Atoms/Text/Text.md +84 -87
- package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +130 -21
- package/src/components/Atoms/TextArea/TextArea.test.js +45 -6
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +138 -25
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +48 -7
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +110 -20
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +26 -6
- package/src/components/Molecules/Descriptor/Descriptor.test.js +85 -15
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +53 -3
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +27 -4
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +112 -28
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +46 -7
- package/src/components/Molecules/SearchInput/SearchInput.test.js +23 -6
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +232 -20
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +187 -30
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +50 -9
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +46 -7
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +26 -7
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +544 -101
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +75 -19
- package/src/components/Organisms/Footer/Nav/Nav.style.js +1 -1
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +100 -47
- package/src/components/Organisms/Membership/Membership.test.js +122 -22
- package/src/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +75 -19
- package/src/theme/crTheme/fontConfig.js +211 -0
- package/src/theme/crTheme/fontHelper.js +31 -0
- package/src/theme/shared/breakpoints2026.js +11 -2
- package/src/theme/shared/global.css +3 -1
|
@@ -24,35 +24,63 @@ it('renders correctly', () => {
|
|
|
24
24
|
})).toJSON();
|
|
25
25
|
expect(tree).toMatchInlineSnapshot(`
|
|
26
26
|
.c6 {
|
|
27
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
-webkit-letter-spacing: 0;
|
|
31
|
+
-moz-letter-spacing: 0;
|
|
32
|
+
-ms-letter-spacing: 0;
|
|
33
|
+
letter-spacing: 0;
|
|
27
34
|
font-size: 1.5rem;
|
|
28
35
|
line-height: 1.5rem;
|
|
29
|
-
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.c6 {
|
|
39
|
+
font-size: 1.5rem;
|
|
40
|
+
line-height: normal;
|
|
30
41
|
font-weight: 800;
|
|
31
|
-
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
32
42
|
}
|
|
33
43
|
|
|
34
44
|
.c7 {
|
|
35
|
-
font-size: 1rem;
|
|
36
|
-
line-height: 1rem;
|
|
37
|
-
text-transform: inherit;
|
|
38
|
-
line-height: normal;
|
|
39
45
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
text-transform: inherit;
|
|
48
|
+
-webkit-letter-spacing: 0;
|
|
49
|
+
-moz-letter-spacing: 0;
|
|
50
|
+
-ms-letter-spacing: 0;
|
|
51
|
+
letter-spacing: 0;
|
|
52
|
+
font-size: 1rem;
|
|
53
|
+
line-height: 1.25rem;
|
|
40
54
|
}
|
|
41
55
|
|
|
42
56
|
.c12 {
|
|
43
|
-
font-
|
|
44
|
-
|
|
57
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
58
|
+
font-weight: 700;
|
|
45
59
|
text-transform: inherit;
|
|
60
|
+
-webkit-letter-spacing: 0;
|
|
61
|
+
-moz-letter-spacing: 0;
|
|
62
|
+
-ms-letter-spacing: 0;
|
|
63
|
+
letter-spacing: 0;
|
|
64
|
+
font-size: 1.25rem;
|
|
65
|
+
line-height: 1.5rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.c22 {
|
|
46
69
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
text-transform: inherit;
|
|
72
|
+
-webkit-letter-spacing: 0;
|
|
73
|
+
-moz-letter-spacing: 0;
|
|
74
|
+
-ms-letter-spacing: 0;
|
|
75
|
+
letter-spacing: 0;
|
|
76
|
+
font-size: 1rem;
|
|
77
|
+
line-height: 1.25rem;
|
|
47
78
|
}
|
|
48
79
|
|
|
49
80
|
.c22 {
|
|
50
81
|
font-size: 1rem;
|
|
51
|
-
line-height: 1rem;
|
|
52
|
-
text-transform: inherit;
|
|
53
|
-
font-weight: 500;
|
|
54
82
|
line-height: normal;
|
|
55
|
-
font-
|
|
83
|
+
font-weight: 500;
|
|
56
84
|
}
|
|
57
85
|
|
|
58
86
|
.c1 {
|
|
@@ -84,7 +112,15 @@ it('renders correctly', () => {
|
|
|
84
112
|
|
|
85
113
|
.c16 {
|
|
86
114
|
margin-bottom: 0.5rem;
|
|
87
|
-
font-
|
|
115
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
116
|
+
font-weight: 400;
|
|
117
|
+
text-transform: inherit;
|
|
118
|
+
-webkit-letter-spacing: 0;
|
|
119
|
+
-moz-letter-spacing: 0;
|
|
120
|
+
-ms-letter-spacing: 0;
|
|
121
|
+
letter-spacing: 0;
|
|
122
|
+
font-size: 1rem;
|
|
123
|
+
line-height: 1.25rem;
|
|
88
124
|
}
|
|
89
125
|
|
|
90
126
|
.c17 {
|
|
@@ -126,7 +162,7 @@ it('renders correctly', () => {
|
|
|
126
162
|
border-radius: 0.5rem;
|
|
127
163
|
font-size: inherit;
|
|
128
164
|
z-index: 2;
|
|
129
|
-
font-family:
|
|
165
|
+
font-family: inherit;
|
|
130
166
|
}
|
|
131
167
|
|
|
132
168
|
.c19:focus {
|
|
@@ -140,7 +176,7 @@ it('renders correctly', () => {
|
|
|
140
176
|
.c15 input {
|
|
141
177
|
border: 2px solid #E1E2E3;
|
|
142
178
|
font-size: 1.5rem;
|
|
143
|
-
font-weight:
|
|
179
|
+
font-weight: 700;
|
|
144
180
|
-webkit-letter-spacing: -2px;
|
|
145
181
|
-moz-letter-spacing: -2px;
|
|
146
182
|
-ms-letter-spacing: -2px;
|
|
@@ -155,7 +191,7 @@ it('renders correctly', () => {
|
|
|
155
191
|
.c20 input {
|
|
156
192
|
border: 2px solid #E1E2E3;
|
|
157
193
|
font-size: 1.5rem;
|
|
158
|
-
font-weight:
|
|
194
|
+
font-weight: 700;
|
|
159
195
|
-webkit-letter-spacing: -2px;
|
|
160
196
|
-moz-letter-spacing: -2px;
|
|
161
197
|
-ms-letter-spacing: -2px;
|
|
@@ -337,6 +373,76 @@ it('renders correctly', () => {
|
|
|
337
373
|
background-color: #961D35;
|
|
338
374
|
}
|
|
339
375
|
|
|
376
|
+
@media (min-width:740px) {
|
|
377
|
+
.c6 {
|
|
378
|
+
font-size: 1.875rem;
|
|
379
|
+
line-height: 1.875rem;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@media (min-width:1024px) {
|
|
384
|
+
.c6 {
|
|
385
|
+
font-size: 2rem;
|
|
386
|
+
line-height: 2rem;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@media (min-width:740px) {
|
|
391
|
+
.c7 {
|
|
392
|
+
font-size: 1rem;
|
|
393
|
+
line-height: 1.25rem;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@media (min-width:1024px) {
|
|
398
|
+
.c7 {
|
|
399
|
+
font-size: 1.125rem;
|
|
400
|
+
line-height: 1.375rem;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@media (min-width:740px) {
|
|
405
|
+
.c12 {
|
|
406
|
+
font-size: 1.25rem;
|
|
407
|
+
line-height: 1.5rem;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@media (min-width:1024px) {
|
|
412
|
+
.c12 {
|
|
413
|
+
font-size: 1.375rem;
|
|
414
|
+
line-height: 1.625rem;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@media (min-width:740px) {
|
|
419
|
+
.c22 {
|
|
420
|
+
font-size: 1rem;
|
|
421
|
+
line-height: 1.25rem;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
@media (min-width:1024px) {
|
|
426
|
+
.c22 {
|
|
427
|
+
font-size: 1.125rem;
|
|
428
|
+
line-height: 1.375rem;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
@media (min-width:740px) {
|
|
433
|
+
.c16 {
|
|
434
|
+
font-size: 1rem;
|
|
435
|
+
line-height: 1.25rem;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@media (min-width:1024px) {
|
|
440
|
+
.c16 {
|
|
441
|
+
font-size: 1rem;
|
|
442
|
+
line-height: 1.25rem;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
340
446
|
@media (min-width:740px) {
|
|
341
447
|
|
|
342
448
|
}
|
|
@@ -436,7 +542,6 @@ it('renders correctly', () => {
|
|
|
436
542
|
<p
|
|
437
543
|
className="c7"
|
|
438
544
|
color="inherit"
|
|
439
|
-
size="s"
|
|
440
545
|
>
|
|
441
546
|
Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.
|
|
442
547
|
</p>
|
|
@@ -457,7 +562,6 @@ it('renders correctly', () => {
|
|
|
457
562
|
<h3
|
|
458
563
|
className="c12"
|
|
459
564
|
color="inherit"
|
|
460
|
-
size="s"
|
|
461
565
|
>
|
|
462
566
|
Choose your monthly donation
|
|
463
567
|
</h3>
|
|
@@ -477,7 +581,6 @@ it('renders correctly', () => {
|
|
|
477
581
|
"__html": "",
|
|
478
582
|
}
|
|
479
583
|
}
|
|
480
|
-
size="s"
|
|
481
584
|
/>
|
|
482
585
|
<div
|
|
483
586
|
className="c17"
|
|
@@ -515,7 +618,6 @@ it('renders correctly', () => {
|
|
|
515
618
|
"__html": "",
|
|
516
619
|
}
|
|
517
620
|
}
|
|
518
|
-
size="s"
|
|
519
621
|
/>
|
|
520
622
|
<div
|
|
521
623
|
className="c17"
|
|
@@ -553,7 +655,6 @@ it('renders correctly', () => {
|
|
|
553
655
|
"__html": "",
|
|
554
656
|
}
|
|
555
657
|
}
|
|
556
|
-
size="s"
|
|
557
658
|
/>
|
|
558
659
|
<div
|
|
559
660
|
className="c17"
|
|
@@ -602,7 +703,6 @@ it('renders correctly', () => {
|
|
|
602
703
|
"__html": "£",
|
|
603
704
|
}
|
|
604
705
|
}
|
|
605
|
-
size="s"
|
|
606
706
|
/>
|
|
607
707
|
<div
|
|
608
708
|
className="c17"
|
|
@@ -12,7 +12,7 @@ var _Input = _interopRequireDefault(require("../../../Atoms/Input/Input"));
|
|
|
12
12
|
const MoneyBox = (0, _styledComponents.default)(_Input.default).withConfig({
|
|
13
13
|
displayName: "MoneyBox",
|
|
14
14
|
componentId: "sc-18hf1f8-0"
|
|
15
|
-
})(["display:block;input{border:2px solid ", ";font-size:", ";font-weight:
|
|
15
|
+
})(["display:block;input{border:2px solid ", ";font-size:", ";font-weight:700;letter-spacing:-2px;height:auto;", "}"], _ref => {
|
|
16
16
|
let {
|
|
17
17
|
theme
|
|
18
18
|
} = _ref;
|
|
@@ -342,33 +342,50 @@ exports[`renders correctly:
|
|
|
342
342
|
</div>
|
|
343
343
|
1`] = `
|
|
344
344
|
.c1 {
|
|
345
|
-
font-
|
|
346
|
-
|
|
345
|
+
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
346
|
+
font-weight: 400;
|
|
347
347
|
text-transform: inherit;
|
|
348
|
+
-webkit-letter-spacing: 0;
|
|
349
|
+
-moz-letter-spacing: 0;
|
|
350
|
+
-ms-letter-spacing: 0;
|
|
351
|
+
letter-spacing: 0;
|
|
352
|
+
font-size: 1rem;
|
|
353
|
+
line-height: 1.25rem;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.c1 {
|
|
348
357
|
font-weight: bold;
|
|
349
|
-
line-height: normal;
|
|
350
|
-
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
351
358
|
}
|
|
352
359
|
|
|
353
360
|
.c3 {
|
|
354
|
-
|
|
355
|
-
font-
|
|
356
|
-
line-height: 1rem;
|
|
361
|
+
font-family: 'Anton',Impact,sans-serif;
|
|
362
|
+
font-weight: 400;
|
|
357
363
|
text-transform: uppercase;
|
|
358
|
-
|
|
364
|
+
-webkit-letter-spacing: 0;
|
|
365
|
+
-moz-letter-spacing: 0;
|
|
366
|
+
-ms-letter-spacing: 0;
|
|
367
|
+
letter-spacing: 0;
|
|
368
|
+
font-size: 2rem;
|
|
369
|
+
line-height: 2rem;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.c3 {
|
|
359
373
|
font-family: 'Anton',Impact,sans-serif;
|
|
360
|
-
-
|
|
361
|
-
-
|
|
362
|
-
|
|
363
|
-
letter-spacing: 0.03rem;
|
|
374
|
+
font-weight: normal;
|
|
375
|
+
text-transform: uppercase;
|
|
376
|
+
color: #E52630;
|
|
364
377
|
}
|
|
365
378
|
|
|
366
379
|
.c5 {
|
|
367
|
-
font-size: 1rem;
|
|
368
|
-
line-height: 1rem;
|
|
369
|
-
text-transform: inherit;
|
|
370
|
-
line-height: normal;
|
|
371
380
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
381
|
+
font-weight: 400;
|
|
382
|
+
text-transform: inherit;
|
|
383
|
+
-webkit-letter-spacing: 0;
|
|
384
|
+
-moz-letter-spacing: 0;
|
|
385
|
+
-ms-letter-spacing: 0;
|
|
386
|
+
letter-spacing: 0;
|
|
387
|
+
font-size: 1rem;
|
|
388
|
+
line-height: 1.25rem;
|
|
372
389
|
}
|
|
373
390
|
|
|
374
391
|
.c2 {
|
|
@@ -501,6 +518,48 @@ exports[`renders correctly:
|
|
|
501
518
|
flex-direction: column;
|
|
502
519
|
}
|
|
503
520
|
|
|
521
|
+
@media (min-width:740px) {
|
|
522
|
+
.c1 {
|
|
523
|
+
font-size: 1rem;
|
|
524
|
+
line-height: 1.25rem;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
@media (min-width:1024px) {
|
|
529
|
+
.c1 {
|
|
530
|
+
font-size: 1.125rem;
|
|
531
|
+
line-height: 1.375rem;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
@media (min-width:740px) {
|
|
536
|
+
.c3 {
|
|
537
|
+
font-size: 2.5rem;
|
|
538
|
+
line-height: 2.5rem;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
@media (min-width:1024px) {
|
|
543
|
+
.c3 {
|
|
544
|
+
font-size: 3rem;
|
|
545
|
+
line-height: 3rem;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
@media (min-width:740px) {
|
|
550
|
+
.c5 {
|
|
551
|
+
font-size: 1rem;
|
|
552
|
+
line-height: 1.25rem;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
@media (min-width:1024px) {
|
|
557
|
+
.c5 {
|
|
558
|
+
font-size: 1.125rem;
|
|
559
|
+
line-height: 1.375rem;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
504
563
|
@media (min-width:1024px) {
|
|
505
564
|
.c2:first-child {
|
|
506
565
|
font-size: 20px;
|
|
@@ -661,21 +720,18 @@ exports[`renders correctly:
|
|
|
661
720
|
<p
|
|
662
721
|
className="c1 c2"
|
|
663
722
|
color="inherit"
|
|
664
|
-
size="s"
|
|
665
723
|
>
|
|
666
724
|
Over the past two years, we’ve supported
|
|
667
725
|
</p>
|
|
668
726
|
<h1
|
|
669
727
|
className="c3 c4"
|
|
670
728
|
color="red"
|
|
671
|
-
size="s"
|
|
672
729
|
>
|
|
673
730
|
11.7 million people
|
|
674
731
|
</h1>
|
|
675
732
|
<p
|
|
676
733
|
className="c5 c6"
|
|
677
734
|
color="inherit"
|
|
678
|
-
size="s"
|
|
679
735
|
>
|
|
680
736
|
including...
|
|
681
737
|
</p>
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
h1: {
|
|
9
|
+
family: 'Anton',
|
|
10
|
+
weight: 400,
|
|
11
|
+
transform: 'uppercase',
|
|
12
|
+
small: {
|
|
13
|
+
fontSize: '2rem',
|
|
14
|
+
lineHeight: '2rem'
|
|
15
|
+
},
|
|
16
|
+
medium: {
|
|
17
|
+
fontSize: '2.5rem',
|
|
18
|
+
lineHeight: '2.5rem'
|
|
19
|
+
},
|
|
20
|
+
large: {
|
|
21
|
+
fontSize: '3rem',
|
|
22
|
+
lineHeight: '3rem'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
h2: {
|
|
26
|
+
family: 'Anton',
|
|
27
|
+
weight: 400,
|
|
28
|
+
transform: 'uppercase',
|
|
29
|
+
small: {
|
|
30
|
+
fontSize: '1.5rem',
|
|
31
|
+
lineHeight: '1.5rem'
|
|
32
|
+
},
|
|
33
|
+
medium: {
|
|
34
|
+
fontSize: '1.875rem',
|
|
35
|
+
lineHeight: '1.875rem'
|
|
36
|
+
},
|
|
37
|
+
large: {
|
|
38
|
+
fontSize: '2rem',
|
|
39
|
+
lineHeight: '2rem'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
h3: {
|
|
43
|
+
family: 'Montserrat',
|
|
44
|
+
weight: 700,
|
|
45
|
+
transform: 'inherit',
|
|
46
|
+
small: {
|
|
47
|
+
fontSize: '1.25rem',
|
|
48
|
+
lineHeight: '1.5rem'
|
|
49
|
+
},
|
|
50
|
+
medium: {
|
|
51
|
+
fontSize: '1.25rem',
|
|
52
|
+
lineHeight: '1.5rem'
|
|
53
|
+
},
|
|
54
|
+
large: {
|
|
55
|
+
fontSize: '1.375rem',
|
|
56
|
+
lineHeight: '1.625rem'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
h4: {
|
|
60
|
+
family: 'Montserrat',
|
|
61
|
+
weight: 700,
|
|
62
|
+
transform: 'inherit',
|
|
63
|
+
small: {
|
|
64
|
+
fontSize: '1rem',
|
|
65
|
+
lineHeight: '1.25rem'
|
|
66
|
+
},
|
|
67
|
+
medium: {
|
|
68
|
+
fontSize: '1rem',
|
|
69
|
+
lineHeight: '1.25rem'
|
|
70
|
+
},
|
|
71
|
+
large: {
|
|
72
|
+
fontSize: '1.125rem',
|
|
73
|
+
lineHeight: '1.375rem'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
// H5 and H6 to be phased out of usage, but keeping
|
|
77
|
+
// some config here to keep pre-existing usage happy:
|
|
78
|
+
h5: {
|
|
79
|
+
family: 'Montserrat',
|
|
80
|
+
weight: 700,
|
|
81
|
+
transform: 'inherit',
|
|
82
|
+
small: {
|
|
83
|
+
fontSize: '1rem',
|
|
84
|
+
lineHeight: '1.25rem'
|
|
85
|
+
},
|
|
86
|
+
medium: {
|
|
87
|
+
fontSize: '1rem',
|
|
88
|
+
lineHeight: '1.25rem'
|
|
89
|
+
},
|
|
90
|
+
large: {
|
|
91
|
+
fontSize: '1.125rem',
|
|
92
|
+
lineHeight: '1.375rem'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
h6: {
|
|
96
|
+
family: 'Montserrat',
|
|
97
|
+
weight: 700,
|
|
98
|
+
transform: 'inherit',
|
|
99
|
+
small: {
|
|
100
|
+
fontSize: '1rem',
|
|
101
|
+
lineHeight: '1.25rem'
|
|
102
|
+
},
|
|
103
|
+
medium: {
|
|
104
|
+
fontSize: '1rem',
|
|
105
|
+
lineHeight: '1.25rem'
|
|
106
|
+
},
|
|
107
|
+
large: {
|
|
108
|
+
fontSize: '1.125rem',
|
|
109
|
+
lineHeight: '1.375rem'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
p: {
|
|
113
|
+
family: 'Montserrat',
|
|
114
|
+
weight: 400,
|
|
115
|
+
transform: 'inherit',
|
|
116
|
+
small: {
|
|
117
|
+
fontSize: '1rem',
|
|
118
|
+
lineHeight: '1.25rem'
|
|
119
|
+
},
|
|
120
|
+
medium: {
|
|
121
|
+
fontSize: '1rem',
|
|
122
|
+
lineHeight: '1.25rem'
|
|
123
|
+
},
|
|
124
|
+
large: {
|
|
125
|
+
fontSize: '1.125rem',
|
|
126
|
+
lineHeight: '1.375rem'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
span: {
|
|
130
|
+
family: 'Montserrat',
|
|
131
|
+
weight: 400,
|
|
132
|
+
transform: 'inherit',
|
|
133
|
+
small: {
|
|
134
|
+
fontSize: '1rem',
|
|
135
|
+
lineHeight: '1.25rem'
|
|
136
|
+
},
|
|
137
|
+
medium: {
|
|
138
|
+
fontSize: '1rem',
|
|
139
|
+
lineHeight: '1.25rem'
|
|
140
|
+
},
|
|
141
|
+
large: {
|
|
142
|
+
fontSize: '1.125rem',
|
|
143
|
+
lineHeight: '1.375rem'
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
// To be used directly (not via fontHelper), but makes sense to keep here:
|
|
147
|
+
button: {
|
|
148
|
+
family: 'Montserrat',
|
|
149
|
+
weight: 400,
|
|
150
|
+
transform: 'inherit',
|
|
151
|
+
small: {
|
|
152
|
+
fontSize: '1rem',
|
|
153
|
+
lineHeight: '1.25rem'
|
|
154
|
+
},
|
|
155
|
+
medium: {
|
|
156
|
+
fontSize: '1rem',
|
|
157
|
+
lineHeight: '1.25rem'
|
|
158
|
+
},
|
|
159
|
+
large: {
|
|
160
|
+
fontSize: '1.125rem',
|
|
161
|
+
lineHeight: '1.375rem'
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
// Admittedly, while the same for each breakpoint, these 2
|
|
165
|
+
// config objects made sense to keep it here all the same.
|
|
166
|
+
formFieldLabel: {
|
|
167
|
+
family: 'Montserrat',
|
|
168
|
+
weight: 400,
|
|
169
|
+
transform: 'inherit',
|
|
170
|
+
small: {
|
|
171
|
+
fontSize: '1rem',
|
|
172
|
+
lineHeight: '1.25rem'
|
|
173
|
+
},
|
|
174
|
+
medium: {
|
|
175
|
+
fontSize: '1rem',
|
|
176
|
+
lineHeight: '1.25rem'
|
|
177
|
+
},
|
|
178
|
+
large: {
|
|
179
|
+
fontSize: '1rem',
|
|
180
|
+
lineHeight: '1.25rem'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
formFieldInput: {
|
|
184
|
+
family: 'Montserrat',
|
|
185
|
+
weight: 400,
|
|
186
|
+
transform: 'inherit',
|
|
187
|
+
small: {
|
|
188
|
+
fontSize: '1.25rem',
|
|
189
|
+
lineHeight: '1.25rem'
|
|
190
|
+
},
|
|
191
|
+
medium: {
|
|
192
|
+
fontSize: '1.25rem',
|
|
193
|
+
lineHeight: '1.25rem'
|
|
194
|
+
},
|
|
195
|
+
large: {
|
|
196
|
+
fontSize: '1.25rem',
|
|
197
|
+
lineHeight: '1.25rem'
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
formFieldError: {
|
|
201
|
+
family: 'Montserrat',
|
|
202
|
+
weight: 400,
|
|
203
|
+
transform: 'inherit',
|
|
204
|
+
small: {
|
|
205
|
+
fontSize: '0.875rem',
|
|
206
|
+
lineHeight: '1.063rem'
|
|
207
|
+
},
|
|
208
|
+
medium: {
|
|
209
|
+
fontSize: '0.875rem',
|
|
210
|
+
lineHeight: '1.063rem'
|
|
211
|
+
},
|
|
212
|
+
large: {
|
|
213
|
+
fontSize: '0.875rem',
|
|
214
|
+
lineHeight: '1.063rem'
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _fontConfig = _interopRequireDefault(require("./fontConfig"));
|
|
9
|
+
var _default = (theme, thisTag) => {
|
|
10
|
+
// Check we've got a match, just in case:
|
|
11
|
+
if (Object.keys(_fontConfig.default).includes(thisTag)) {
|
|
12
|
+
return `
|
|
13
|
+
// General styles:
|
|
14
|
+
font-family: ${theme.fontFamilies(_fontConfig.default[thisTag].family)};
|
|
15
|
+
font-weight: ${_fontConfig.default[thisTag].weight};
|
|
16
|
+
text-transform: ${_fontConfig.default[thisTag].transform};
|
|
17
|
+
letter-spacing: 0;
|
|
18
|
+
|
|
19
|
+
// XS and S breakpoint ("mobile")
|
|
20
|
+
font-size: ${_fontConfig.default[thisTag].small.fontSize};
|
|
21
|
+
line-height: ${_fontConfig.default[thisTag].small.lineHeight};
|
|
22
|
+
|
|
23
|
+
// Medium breakpoint ("tablet")
|
|
24
|
+
@media ${theme.breakpoints2026('M')} {
|
|
25
|
+
font-size: ${_fontConfig.default[thisTag].medium.fontSize};
|
|
26
|
+
line-height: ${_fontConfig.default[thisTag].medium.lineHeight};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// L & XL breakpoints ("desktop")
|
|
30
|
+
@media ${theme.breakpoints2026('L')} {
|
|
31
|
+
font-size: ${_fontConfig.default[thisTag].large.fontSize};
|
|
32
|
+
line-height: ${_fontConfig.default[thisTag].large.lineHeight};
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
exports.default = _default;
|
|
@@ -4,13 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.breakpointValues2026 = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Example Usage
|
|
9
|
+
|
|
10
|
+
Make height: 200px from 1024px onwards:
|
|
11
|
+
|
|
12
|
+
@media ${({ theme }) => theme.breakpoints2026('L')} {
|
|
13
|
+
height: 200px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
*/
|
|
17
|
+
|
|
7
18
|
const breakpointValues2026 = exports.breakpointValues2026 = {
|
|
8
19
|
XS: 0,
|
|
9
20
|
S: 320,
|
|
10
21
|
M: 740,
|
|
11
22
|
L: 1024,
|
|
12
|
-
Nav: 1150,
|
|
13
|
-
NavWide: 1350,
|
|
14
23
|
XL: 1440
|
|
15
24
|
};
|
|
16
25
|
var _default = size => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css?family=Anton%7CMontserrat:
|
|
1
|
+
@import url('https://fonts.googleapis.com/css?family=Anton%7CMontserrat:400,700&display=swap');
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
4
|
font-family: 'Founders-GroteskXCondensed-Bold';
|
|
@@ -66,6 +66,8 @@ button {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
h2 {
|
|
69
|
+
text-transform: uppercase;
|
|
70
|
+
font-family: 'Anton', Impact, sans-serif;
|
|
69
71
|
margin-bottom: 2rem;
|
|
70
72
|
}
|
|
71
73
|
|