@comicrelief/component-library 8.44.3 → 8.45.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 +0 -4
- package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +0 -2
- package/dist/components/Atoms/Input/input.test.js +0 -2
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +0 -4
- package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +0 -1
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +39 -14
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +91 -22
- package/dist/components/Atoms/SocialIcons/Utils/Icons.js +26 -7
- package/dist/components/Atoms/SocialIcons/Utils/Links.js +10 -0
- package/dist/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +63 -48
- package/{src/components/Atoms/SocialIcons/assets → dist/components/Atoms/SocialIcons/assets/circled}/facebook.svg +1 -1
- package/{src/components/Atoms/SocialIcons/assets → dist/components/Atoms/SocialIcons/assets/circled}/twitter.svg +1 -1
- package/dist/components/Atoms/SocialIcons/assets/{youtube.svg → circled/youtube.svg} +1 -1
- package/dist/components/Atoms/SocialIcons/assets/standard/facebook.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/instagram.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/tiktok.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/x.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/youtube.svg +3 -0
- package/dist/components/Atoms/Text/Text.js +28 -28
- package/dist/components/Atoms/Text/Text.md +8 -8
- package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +0 -9
- package/dist/components/Atoms/TextArea/TextArea.test.js +0 -1
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +0 -7
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +0 -4
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -10
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +0 -2
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +0 -13
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.js +38 -0
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.style.js +113 -0
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -24
- package/dist/components/Molecules/LogoLinked/LogoLinked.js +6 -6
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +0 -2
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +0 -8
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +0 -1
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +0 -1
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -18
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +0 -14
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -4
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +0 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +0 -2
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +0 -35
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +0 -8
- package/dist/components/Organisms/Footer/Footer.md +12 -11
- package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +36 -16
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +188 -241
- package/dist/components/Organisms/FooterNew/FooterNew.js +136 -0
- package/dist/components/Organisms/FooterNew/FooterNew.md +47 -0
- package/dist/components/Organisms/FooterNew/FooterNew.style.js +312 -0
- package/dist/components/Organisms/FooterNew/FooterNew.test.js +20 -0
- package/dist/components/Organisms/FooterNew/Nav/PrimaryNav.js +32 -0
- package/dist/components/Organisms/FooterNew/Nav/SecondaryNav.js +32 -0
- package/dist/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1490 -0
- package/dist/components/Organisms/FooterNew/dev-data/data.js +106 -0
- package/dist/components/Organisms/Membership/Membership.test.js +0 -12
- package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +0 -3
- package/dist/index.js +20 -0
- package/dist/theme/crTheme/colors.js +12 -7
- package/dist/theme/shared/animations.js +46 -0
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.test.js +0 -4
- package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +0 -2
- package/src/components/Atoms/Input/input.test.js +0 -2
- package/src/components/Atoms/RadioButton/RadioButton.test.js +0 -4
- package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +0 -1
- package/src/components/Atoms/SocialIcons/Icon/Icon.js +47 -11
- package/src/components/Atoms/SocialIcons/SocialIcons.js +99 -25
- package/src/components/Atoms/SocialIcons/Utils/Icons.js +29 -10
- package/src/components/Atoms/SocialIcons/Utils/Links.js +10 -0
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +63 -48
- package/{dist/components/Atoms/SocialIcons/assets → src/components/Atoms/SocialIcons/assets/circled}/facebook.svg +1 -1
- package/{dist/components/Atoms/SocialIcons/assets → src/components/Atoms/SocialIcons/assets/circled}/twitter.svg +1 -1
- package/src/components/Atoms/SocialIcons/assets/{youtube.svg → circled/youtube.svg} +1 -1
- package/src/components/Atoms/SocialIcons/assets/standard/facebook.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/instagram.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/tiktok.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/x.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/youtube.svg +3 -0
- package/src/components/Atoms/Text/Text.js +19 -19
- package/src/components/Atoms/Text/Text.md +8 -8
- package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +0 -9
- package/src/components/Atoms/TextArea/TextArea.test.js +0 -1
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +0 -7
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +0 -4
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -10
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +0 -2
- package/src/components/Molecules/Descriptor/Descriptor.test.js +0 -13
- package/src/components/Molecules/EmailSignUp/EmailSignUp.js +55 -0
- package/src/components/Molecules/EmailSignUp/EmailSignUp.style.js +107 -0
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -24
- package/src/components/Molecules/LogoLinked/LogoLinked.js +5 -14
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +0 -2
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +0 -8
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +0 -1
- package/src/components/Molecules/SearchInput/SearchInput.test.js +0 -1
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -18
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +0 -14
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -4
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +0 -1
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +0 -2
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +0 -35
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +0 -8
- package/src/components/Organisms/Footer/Footer.md +12 -11
- package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +14 -3
- package/src/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +188 -241
- package/src/components/Organisms/FooterNew/FooterNew.js +211 -0
- package/src/components/Organisms/FooterNew/FooterNew.md +47 -0
- package/src/components/Organisms/FooterNew/FooterNew.style.js +294 -0
- package/src/components/Organisms/FooterNew/FooterNew.test.js +24 -0
- package/src/components/Organisms/FooterNew/Nav/PrimaryNav.js +54 -0
- package/src/components/Organisms/FooterNew/Nav/SecondaryNav.js +54 -0
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1490 -0
- package/src/components/Organisms/FooterNew/dev-data/data.js +123 -0
- package/src/components/Organisms/Membership/Membership.test.js +0 -12
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +0 -3
- package/src/index.js +2 -0
- package/src/theme/crTheme/colors.js +13 -7
- package/src/theme/shared/animations.js +60 -0
- /package/dist/components/Atoms/SocialIcons/assets/{X-white-Subtract.svg → circled/X-white-Subtract.svg} +0 -0
- /package/dist/components/Atoms/SocialIcons/assets/{instagram.svg → circled/instagram.svg} +0 -0
- /package/src/components/Atoms/SocialIcons/assets/{X-white-Subtract.svg → circled/X-white-Subtract.svg} +0 -0
- /package/src/components/Atoms/SocialIcons/assets/{instagram.svg → circled/instagram.svg} +0 -0
|
@@ -16,7 +16,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
16
16
|
opacity: 0.6;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.c4 {
|
|
20
20
|
width: 100%;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -26,11 +26,11 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
26
26
|
display: -ms-flexbox;
|
|
27
27
|
display: flex;
|
|
28
28
|
list-style-type: none;
|
|
29
|
-
|
|
30
|
-
-webkit-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
29
|
+
-webkit-box-pack: space-around;
|
|
30
|
+
-webkit-justify-content: space-around;
|
|
31
|
+
-ms-flex-pack: space-around;
|
|
32
|
+
justify-content: space-around;
|
|
33
|
+
margin: 0 auto 0 0;
|
|
34
34
|
padding: 0;
|
|
35
35
|
-webkit-align-items: center;
|
|
36
36
|
-webkit-box-align: center;
|
|
@@ -39,22 +39,27 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.c1 {
|
|
42
|
-
width:
|
|
42
|
+
width: 48px;
|
|
43
43
|
margin-right: 1.5rem;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
.c3 {
|
|
47
|
+
width: auto;
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
@media (min-width:740px) {
|
|
47
51
|
.c0 {
|
|
48
52
|
-webkit-box-pack: start;
|
|
49
53
|
-webkit-justify-content: start;
|
|
50
54
|
-ms-flex-pack: start;
|
|
51
55
|
justify-content: start;
|
|
56
|
+
margin: 0 auto 0 0;
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
@media (min-width:740px) {
|
|
56
61
|
.c1 {
|
|
57
|
-
|
|
62
|
+
margin-right: 1.5rem;
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
65
|
|
|
@@ -65,7 +70,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
65
70
|
className="c1"
|
|
66
71
|
>
|
|
67
72
|
<a
|
|
68
|
-
className="c2"
|
|
73
|
+
className="c2 c3"
|
|
69
74
|
data-test="icon-facebook"
|
|
70
75
|
href="https://www.facebook.com/comicrelief"
|
|
71
76
|
rel="noopener noreferrer"
|
|
@@ -74,7 +79,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
74
79
|
>
|
|
75
80
|
<img
|
|
76
81
|
alt="facebook"
|
|
77
|
-
className="
|
|
82
|
+
className="c4"
|
|
78
83
|
src="mock.asset"
|
|
79
84
|
/>
|
|
80
85
|
</a>
|
|
@@ -83,7 +88,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
83
88
|
className="c1"
|
|
84
89
|
>
|
|
85
90
|
<a
|
|
86
|
-
className="c2"
|
|
91
|
+
className="c2 c3"
|
|
87
92
|
data-test="icon-instagram"
|
|
88
93
|
href="https://www.instagram.com/comicrelief"
|
|
89
94
|
rel="noopener noreferrer"
|
|
@@ -92,7 +97,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
92
97
|
>
|
|
93
98
|
<img
|
|
94
99
|
alt="instagram"
|
|
95
|
-
className="
|
|
100
|
+
className="c4"
|
|
96
101
|
src="mock.asset"
|
|
97
102
|
/>
|
|
98
103
|
</a>
|
|
@@ -101,7 +106,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
101
106
|
className="c1"
|
|
102
107
|
>
|
|
103
108
|
<a
|
|
104
|
-
className="c2"
|
|
109
|
+
className="c2 c3"
|
|
105
110
|
data-test="icon-twitter"
|
|
106
111
|
href="https://twitter.com/comicrelief"
|
|
107
112
|
rel="noopener noreferrer"
|
|
@@ -110,7 +115,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
110
115
|
>
|
|
111
116
|
<img
|
|
112
117
|
alt="twitter"
|
|
113
|
-
className="
|
|
118
|
+
className="c4"
|
|
114
119
|
src="mock.asset"
|
|
115
120
|
/>
|
|
116
121
|
</a>
|
|
@@ -119,7 +124,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
119
124
|
className="c1"
|
|
120
125
|
>
|
|
121
126
|
<a
|
|
122
|
-
className="c2"
|
|
127
|
+
className="c2 c3"
|
|
123
128
|
data-test="icon-youtube"
|
|
124
129
|
href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
|
|
125
130
|
rel="noopener noreferrer"
|
|
@@ -128,7 +133,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
128
133
|
>
|
|
129
134
|
<img
|
|
130
135
|
alt="youtube"
|
|
131
|
-
className="
|
|
136
|
+
className="c4"
|
|
132
137
|
src="mock.asset"
|
|
133
138
|
/>
|
|
134
139
|
</a>
|
|
@@ -152,7 +157,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
152
157
|
opacity: 0.6;
|
|
153
158
|
}
|
|
154
159
|
|
|
155
|
-
.
|
|
160
|
+
.c4 {
|
|
156
161
|
width: 100%;
|
|
157
162
|
}
|
|
158
163
|
|
|
@@ -162,11 +167,11 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
162
167
|
display: -ms-flexbox;
|
|
163
168
|
display: flex;
|
|
164
169
|
list-style-type: none;
|
|
165
|
-
|
|
166
|
-
-webkit-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
|
|
170
|
+
-webkit-box-pack: space-around;
|
|
171
|
+
-webkit-justify-content: space-around;
|
|
172
|
+
-ms-flex-pack: space-around;
|
|
173
|
+
justify-content: space-around;
|
|
174
|
+
margin: 0 auto 0 0;
|
|
170
175
|
padding: 0;
|
|
171
176
|
-webkit-align-items: center;
|
|
172
177
|
-webkit-box-align: center;
|
|
@@ -175,22 +180,27 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
175
180
|
}
|
|
176
181
|
|
|
177
182
|
.c1 {
|
|
178
|
-
width:
|
|
183
|
+
width: 48px;
|
|
179
184
|
margin-right: 1.5rem;
|
|
180
185
|
}
|
|
181
186
|
|
|
187
|
+
.c3 {
|
|
188
|
+
width: auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
182
191
|
@media (min-width:740px) {
|
|
183
192
|
.c0 {
|
|
184
193
|
-webkit-box-pack: start;
|
|
185
194
|
-webkit-justify-content: start;
|
|
186
195
|
-ms-flex-pack: start;
|
|
187
196
|
justify-content: start;
|
|
197
|
+
margin: 0 auto 0 0;
|
|
188
198
|
}
|
|
189
199
|
}
|
|
190
200
|
|
|
191
201
|
@media (min-width:740px) {
|
|
192
202
|
.c1 {
|
|
193
|
-
|
|
203
|
+
margin-right: 1.5rem;
|
|
194
204
|
}
|
|
195
205
|
}
|
|
196
206
|
|
|
@@ -201,7 +211,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
201
211
|
className="c1"
|
|
202
212
|
>
|
|
203
213
|
<a
|
|
204
|
-
className="c2"
|
|
214
|
+
className="c2 c3"
|
|
205
215
|
data-test="icon-facebook"
|
|
206
216
|
href="https://www.facebook.com/rednoseday"
|
|
207
217
|
rel="noopener noreferrer"
|
|
@@ -210,7 +220,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
210
220
|
>
|
|
211
221
|
<img
|
|
212
222
|
alt="facebook"
|
|
213
|
-
className="
|
|
223
|
+
className="c4"
|
|
214
224
|
src="mock.asset"
|
|
215
225
|
/>
|
|
216
226
|
</a>
|
|
@@ -219,7 +229,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
219
229
|
className="c1"
|
|
220
230
|
>
|
|
221
231
|
<a
|
|
222
|
-
className="c2"
|
|
232
|
+
className="c2 c3"
|
|
223
233
|
data-test="icon-instagram"
|
|
224
234
|
href="https://www.instagram.com/rednoseday"
|
|
225
235
|
rel="noopener noreferrer"
|
|
@@ -228,7 +238,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
228
238
|
>
|
|
229
239
|
<img
|
|
230
240
|
alt="instagram"
|
|
231
|
-
className="
|
|
241
|
+
className="c4"
|
|
232
242
|
src="mock.asset"
|
|
233
243
|
/>
|
|
234
244
|
</a>
|
|
@@ -237,7 +247,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
237
247
|
className="c1"
|
|
238
248
|
>
|
|
239
249
|
<a
|
|
240
|
-
className="c2"
|
|
250
|
+
className="c2 c3"
|
|
241
251
|
data-test="icon-twitter"
|
|
242
252
|
href="https://twitter.com/rednoseday"
|
|
243
253
|
rel="noopener noreferrer"
|
|
@@ -246,7 +256,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
246
256
|
>
|
|
247
257
|
<img
|
|
248
258
|
alt="twitter"
|
|
249
|
-
className="
|
|
259
|
+
className="c4"
|
|
250
260
|
src="mock.asset"
|
|
251
261
|
/>
|
|
252
262
|
</a>
|
|
@@ -255,7 +265,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
255
265
|
className="c1"
|
|
256
266
|
>
|
|
257
267
|
<a
|
|
258
|
-
className="c2"
|
|
268
|
+
className="c2 c3"
|
|
259
269
|
data-test="icon-youtube"
|
|
260
270
|
href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
|
|
261
271
|
rel="noopener noreferrer"
|
|
@@ -264,7 +274,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
264
274
|
>
|
|
265
275
|
<img
|
|
266
276
|
alt="youtube"
|
|
267
|
-
className="
|
|
277
|
+
className="c4"
|
|
268
278
|
src="mock.asset"
|
|
269
279
|
/>
|
|
270
280
|
</a>
|
|
@@ -288,7 +298,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
288
298
|
opacity: 0.6;
|
|
289
299
|
}
|
|
290
300
|
|
|
291
|
-
.
|
|
301
|
+
.c4 {
|
|
292
302
|
width: 100%;
|
|
293
303
|
}
|
|
294
304
|
|
|
@@ -298,11 +308,11 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
298
308
|
display: -ms-flexbox;
|
|
299
309
|
display: flex;
|
|
300
310
|
list-style-type: none;
|
|
301
|
-
|
|
302
|
-
-webkit-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
305
|
-
|
|
311
|
+
-webkit-box-pack: space-around;
|
|
312
|
+
-webkit-justify-content: space-around;
|
|
313
|
+
-ms-flex-pack: space-around;
|
|
314
|
+
justify-content: space-around;
|
|
315
|
+
margin: 0 auto 0 0;
|
|
306
316
|
padding: 0;
|
|
307
317
|
-webkit-align-items: center;
|
|
308
318
|
-webkit-box-align: center;
|
|
@@ -311,22 +321,27 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
311
321
|
}
|
|
312
322
|
|
|
313
323
|
.c1 {
|
|
314
|
-
width:
|
|
324
|
+
width: 48px;
|
|
315
325
|
margin-right: 1.5rem;
|
|
316
326
|
}
|
|
317
327
|
|
|
328
|
+
.c3 {
|
|
329
|
+
width: auto;
|
|
330
|
+
}
|
|
331
|
+
|
|
318
332
|
@media (min-width:740px) {
|
|
319
333
|
.c0 {
|
|
320
334
|
-webkit-box-pack: start;
|
|
321
335
|
-webkit-justify-content: start;
|
|
322
336
|
-ms-flex-pack: start;
|
|
323
337
|
justify-content: start;
|
|
338
|
+
margin: 0 auto 0 0;
|
|
324
339
|
}
|
|
325
340
|
}
|
|
326
341
|
|
|
327
342
|
@media (min-width:740px) {
|
|
328
343
|
.c1 {
|
|
329
|
-
|
|
344
|
+
margin-right: 1.5rem;
|
|
330
345
|
}
|
|
331
346
|
}
|
|
332
347
|
|
|
@@ -337,7 +352,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
337
352
|
className="c1"
|
|
338
353
|
>
|
|
339
354
|
<a
|
|
340
|
-
className="c2"
|
|
355
|
+
className="c2 c3"
|
|
341
356
|
data-test="icon-facebook"
|
|
342
357
|
href="https://www.facebook.com/sportrelief"
|
|
343
358
|
rel="noopener noreferrer"
|
|
@@ -346,7 +361,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
346
361
|
>
|
|
347
362
|
<img
|
|
348
363
|
alt="facebook"
|
|
349
|
-
className="
|
|
364
|
+
className="c4"
|
|
350
365
|
src="mock.asset"
|
|
351
366
|
/>
|
|
352
367
|
</a>
|
|
@@ -355,7 +370,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
355
370
|
className="c1"
|
|
356
371
|
>
|
|
357
372
|
<a
|
|
358
|
-
className="c2"
|
|
373
|
+
className="c2 c3"
|
|
359
374
|
data-test="icon-instagram"
|
|
360
375
|
href="https://www.instagram.com/sportrelief"
|
|
361
376
|
rel="noopener noreferrer"
|
|
@@ -364,7 +379,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
364
379
|
>
|
|
365
380
|
<img
|
|
366
381
|
alt="instagram"
|
|
367
|
-
className="
|
|
382
|
+
className="c4"
|
|
368
383
|
src="mock.asset"
|
|
369
384
|
/>
|
|
370
385
|
</a>
|
|
@@ -373,7 +388,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
373
388
|
className="c1"
|
|
374
389
|
>
|
|
375
390
|
<a
|
|
376
|
-
className="c2"
|
|
391
|
+
className="c2 c3"
|
|
377
392
|
data-test="icon-twitter"
|
|
378
393
|
href="https://twitter.com/sportrelief"
|
|
379
394
|
rel="noopener noreferrer"
|
|
@@ -382,7 +397,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
382
397
|
>
|
|
383
398
|
<img
|
|
384
399
|
alt="twitter"
|
|
385
|
-
className="
|
|
400
|
+
className="c4"
|
|
386
401
|
src="mock.asset"
|
|
387
402
|
/>
|
|
388
403
|
</a>
|
|
@@ -391,7 +406,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
391
406
|
className="c1"
|
|
392
407
|
>
|
|
393
408
|
<a
|
|
394
|
-
className="c2"
|
|
409
|
+
className="c2 c3"
|
|
395
410
|
data-test="icon-youtube"
|
|
396
411
|
href="https://www.youtube.com/channel/UCdF5u0ggeSETozc8fsprjcw"
|
|
397
412
|
rel="noopener noreferrer"
|
|
@@ -400,7 +415,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
400
415
|
>
|
|
401
416
|
<img
|
|
402
417
|
alt="youtube"
|
|
403
|
-
className="
|
|
418
|
+
className="c4"
|
|
404
419
|
src="mock.asset"
|
|
405
420
|
/>
|
|
406
421
|
</a>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M1024 512C1024 229.23 794.77 0 512 0S0 229.23 0 512c0 255.554 187.231 467.37 432 505.778V660H302V512h130V399.2C432 270.88 508.439 200 625.389 200 681.408 200 740 210 740 210v126h-64.563C611.835 336 592 375.467 592 415.957V512h142l-22.7 148H592v357.778C836.769 979.37 1024 767.554 1024 512z" fill="#fff"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M1024 512C1024 229.23 794.77 0 512 0S0 229.23 0 512c0 255.554 187.231 467.37 432 505.778V660H302V512h130V399.2C432 270.88 508.439 200 625.389 200 681.408 200 740 210 740 210v126h-64.563C611.835 336 592 375.467 592 415.957V512h142l-22.7 148H592v357.778C836.769 979.37 1024 767.554 1024 512z" fill="#fff"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M400 200c0 110.5-89.5 200-200 200S0 310.5 0 200 89.5 0 200 0s200 89.5 200 200zM163.4 305.5c88.7 0 137.2-73.5 137.2-137.2 0-2.1 0-4.2-.1-6.2 9.4-6.8 17.6-15.3 24.1-25-8.6 3.8-17.9 6.4-27.7 7.6 10-6 17.6-15.4 21.2-26.7-9.3 5.5-19.6 9.5-30.6 11.7-8.8-9.4-21.3-15.2-35.2-15.2-26.6 0-48.2 21.6-48.2 48.2 0 3.8.4 7.5 1.3 11-40.1-2-75.6-21.2-99.4-50.4-4.1 7.1-6.5 15.4-6.5 24.2 0 16.7 8.5 31.5 21.5 40.1-7.9-.2-15.3-2.4-21.8-6v.6c0 23.4 16.6 42.8 38.7 47.3-4 1.1-8.3 1.7-12.7 1.7-3.1 0-6.1-.3-9.1-.9 6.1 19.2 23.9 33.1 45 33.5-16.5 12.9-37.3 20.6-59.9 20.6-3.9 0-7.7-.2-11.5-.7 21.1 13.8 46.5 21.8 73.7 21.8" fill="#fff"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M400 200c0 110.5-89.5 200-200 200S0 310.5 0 200 89.5 0 200 0s200 89.5 200 200zM163.4 305.5c88.7 0 137.2-73.5 137.2-137.2 0-2.1 0-4.2-.1-6.2 9.4-6.8 17.6-15.3 24.1-25-8.6 3.8-17.9 6.4-27.7 7.6 10-6 17.6-15.4 21.2-26.7-9.3 5.5-19.6 9.5-30.6 11.7-8.8-9.4-21.3-15.2-35.2-15.2-26.6 0-48.2 21.6-48.2 48.2 0 3.8.4 7.5 1.3 11-40.1-2-75.6-21.2-99.4-50.4-4.1 7.1-6.5 15.4-6.5 24.2 0 16.7 8.5 31.5 21.5 40.1-7.9-.2-15.3-2.4-21.8-6v.6c0 23.4 16.6 42.8 38.7 47.3-4 1.1-8.3 1.7-12.7 1.7-3.1 0-6.1-.3-9.1-.9 6.1 19.2 23.9 33.1 45 33.5-16.5 12.9-37.3 20.6-59.9 20.6-3.9 0-7.7-.2-11.5-.7 21.1 13.8 46.5 21.8 73.7 21.8" fill="#fff"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><path d="M259.307 240.84L363.3 300.002 259.307 359.16V240.84zM600 300c0 165.685-134.315 300-300 300S0 465.685 0 300 134.315 0 300 0s300 134.315 300 300zm-101.056 0s0-65.16-8.314-96.391c-4.576-17.23-18.058-30.8-35.177-35.406-31.03-8.368-155.453-8.368-155.453-8.368s-124.423 0-155.452 8.368c-17.119 4.606-30.601 18.175-35.177 35.406-8.315 31.231-8.315 96.391-8.315 96.391s0 65.16 8.314 96.391c4.576 17.23 18.058 30.8 35.177 35.405 31.03 8.369 155.453 8.369 155.453 8.369s124.423 0 155.452-8.368c17.119-4.605 30.601-18.175 35.177-35.405 8.315-31.232 8.315-96.392 8.315-96.392z" fill="#fff"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><path d="M259.307 240.84L363.3 300.002 259.307 359.16V240.84zM600 300c0 165.685-134.315 300-300 300S0 465.685 0 300 134.315 0 300 0s300 134.315 300 300zm-101.056 0s0-65.16-8.314-96.391c-4.576-17.23-18.058-30.8-35.177-35.406-31.03-8.368-155.453-8.368-155.453-8.368s-124.423 0-155.452 8.368c-17.119 4.606-30.601 18.175-35.177 35.406-8.315 31.231-8.315 96.391-8.315 96.391s0 65.16 8.314 96.391c4.576 17.23 18.058 30.8 35.177 35.405 31.03 8.369 155.453 8.369 155.453 8.369s124.423 0 155.452-8.368c17.119-4.605 30.601-18.175 35.177-35.405 8.315-31.232 8.315-96.392 8.315-96.392z" fill="#fff"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M35 18.0623C35 8.67343 27.3888 1.06225 18 1.06225C8.61117 1.06225 1 8.67343 1 18.0623C1 26.0349 6.48862 32.7245 13.8932 34.5616V23.2572H10.3877V18.0623H13.8932V15.8238C13.8932 10.0375 16.5117 7.35559 22.1925 7.35559C23.2695 7.35559 25.1278 7.56673 25.8881 7.77793V12.4872C25.4868 12.445 24.7899 12.4238 23.9241 12.4238C21.1366 12.4238 20.0595 13.4797 20.0595 16.225V18.0623H25.6123L24.6584 23.2572H20.0595V34.9377C28.477 33.9211 35 26.7539 35 18.0623Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10.9594 1.11877C9.15059 1.20411 7.91536 1.49278 6.83551 1.9171C5.71792 2.35265 4.77067 2.93711 3.82818 3.883C2.88569 4.82889 2.3053 5.77682 1.87282 6.89611C1.45427 7.97834 1.17071 9.2146 1.09081 11.0244C1.01091 12.8343 0.993227 13.416 1.00207 18.0326C1.01091 22.6492 1.03131 23.2278 1.11903 25.0414C1.20539 26.8499 1.49303 28.0848 1.91736 29.165C2.35358 30.2826 2.93737 31.2295 3.8836 32.1723C4.82983 33.1151 5.77708 33.6942 6.89909 34.1273C7.9803 34.5452 9.21689 34.8301 11.0264 34.9093C12.8359 34.9886 13.4183 35.0069 18.0335 34.9981C22.6487 34.9892 23.2298 34.9688 25.043 34.8828C26.8563 34.7968 28.0847 34.5071 29.1652 34.0848C30.2828 33.6476 31.2304 33.0648 32.1726 32.1183C33.1147 31.1717 33.6948 30.2231 34.1269 29.1031C34.5458 28.0219 34.8304 26.7853 34.9089 24.9772C34.9881 23.1626 35.0068 22.5832 34.998 17.9673C34.9892 13.3514 34.9684 12.7727 34.8824 10.9598C34.7964 9.14694 34.5084 7.91578 34.0844 6.83491C33.6475 5.71732 33.0644 4.77109 32.1185 3.82758C31.1726 2.88407 30.2233 2.30437 29.1037 1.87324C28.0218 1.4547 26.7859 1.16943 24.9764 1.09123C23.1669 1.01303 22.5845 0.992972 17.9676 1.00181C13.3507 1.01065 12.7726 1.03037 10.9594 1.11877ZM11.158 31.851C9.50045 31.7789 8.60046 31.5035 8.0007 31.273C7.20645 30.967 6.64068 30.5971 6.04296 30.0051C5.44523 29.4132 5.07803 28.8454 4.76795 28.0528C4.53504 27.4531 4.25454 26.5541 4.17702 24.8966C4.0927 23.1051 4.07502 22.5672 4.06516 18.0285C4.0553 13.4898 4.07264 12.9526 4.15118 11.1604C4.2219 9.50428 4.499 8.60327 4.72919 8.00384C5.03519 7.20858 5.40375 6.64383 5.99706 6.04644C6.59036 5.44906 7.15647 5.08117 7.9497 4.77109C8.54878 4.53717 9.44775 4.25905 11.1046 4.18016C12.8974 4.09516 13.4346 4.07816 17.9727 4.0683C22.5107 4.05844 23.0493 4.07544 24.8428 4.15432C26.4989 4.2264 27.4003 4.50079 27.999 4.73233C28.7936 5.03833 29.359 5.40588 29.9564 6.0002C30.5538 6.59453 30.922 7.1586 31.2321 7.95352C31.4664 8.55091 31.7445 9.44954 31.8227 11.1074C31.908 12.9002 31.9274 13.4378 31.9356 17.9755C31.9437 22.5132 31.9278 23.0521 31.8492 24.8435C31.7768 26.5011 31.5021 27.4014 31.2712 28.0018C30.9652 28.7957 30.5963 29.3618 30.0027 29.9589C29.409 30.5559 28.8436 30.9238 28.05 31.2339C27.4516 31.4675 26.5516 31.7463 24.8961 31.8252C23.1033 31.9095 22.5661 31.9272 18.0264 31.937C13.4867 31.9469 12.9511 31.9285 11.1583 31.851M25.0169 8.91403C25.0175 9.31754 25.1378 9.71178 25.3626 10.0469C25.5873 10.382 25.9064 10.643 26.2795 10.7967C26.6525 10.9505 27.0628 10.9902 27.4584 10.9107C27.8541 10.8313 28.2172 10.6363 28.502 10.3505C28.7868 10.0646 28.9805 9.70077 29.0584 9.30487C29.1364 8.90897 29.0952 8.49883 28.9401 8.12634C28.785 7.75384 28.5229 7.43572 28.1869 7.2122C27.851 6.98868 27.4563 6.86981 27.0528 6.87061C26.5119 6.87169 25.9935 7.08757 25.6117 7.47076C25.2299 7.85396 25.0159 8.3731 25.0169 8.91403ZM9.27129 18.0169C9.28081 22.8382 13.1963 26.7377 18.0165 26.7285C22.8367 26.7193 26.739 22.8042 26.7298 17.9829C26.7206 13.1617 22.8041 9.26118 17.9832 9.2707C13.1623 9.28022 9.26211 13.1964 9.27129 18.0169ZM12.3334 18.0108C12.3311 16.89 12.6613 15.7938 13.2822 14.8606C13.903 13.9275 14.7866 13.1994 15.8212 12.7684C16.8559 12.3375 17.995 12.223 19.0947 12.4395C20.1944 12.656 21.2052 13.1937 21.9993 13.9846C22.7934 14.7756 23.3351 15.7842 23.5559 16.8831C23.7768 17.9819 23.6668 19.1215 23.2399 20.1578C22.8131 21.1942 22.0885 22.0806 21.1578 22.7052C20.2272 23.3297 19.1322 23.6642 18.0114 23.6664C17.2672 23.668 16.53 23.523 15.8419 23.2396C15.1537 22.9562 14.5281 22.54 14.0009 22.0148C13.4736 21.4896 13.0549 20.8657 12.7688 20.1787C12.4827 19.4917 12.3347 18.755 12.3334 18.0108Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M27.1735 9.01362C25.5578 7.9603 24.3908 6.27396 24.0273 4.30864C23.9487 3.88396 23.9057 3.44689 23.9057 2.99963H18.7483L18.7403 23.6698C18.6536 25.9848 16.7488 27.8423 14.4134 27.8423C13.6879 27.8423 13.0039 27.6609 12.4022 27.344C11.0225 26.6178 10.0777 25.1711 10.0777 23.5066C10.0777 21.1159 12.0227 19.171 14.4134 19.171C14.8599 19.171 15.2875 19.2445 15.6925 19.3713V14.1061C15.2737 14.0493 14.8476 14.0136 14.4134 14.0136C9.1774 14.0143 4.91895 18.2728 4.91895 23.5074C4.91895 26.719 6.52369 29.5614 8.97198 31.2798C10.5141 32.3622 12.3898 33.0004 14.4127 33.0004C19.6472 33.0004 23.9057 28.7419 23.9057 23.5074V13.0259C25.9286 14.4776 28.4067 15.3335 31.0815 15.3335V10.1762C29.6407 10.1762 28.2989 9.74788 27.1742 9.01435L27.1735 9.01362Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M20.607 15.8559L30.8073 3.99893H28.3901L19.5333 14.2942L12.4593 3.99893H4.30029L14.9975 19.5672L4.30029 32.001H6.71757L16.0707 21.1289L23.5413 32.001H31.7003L20.6064 15.8559H20.607ZM17.2962 19.7043L16.2124 18.1541L7.58854 5.81862H11.3013L18.2609 15.7737L19.3447 17.324L28.3913 30.2641H24.6785L17.2962 19.7049V19.7043Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M35.2374 9.33522C34.8161 7.78366 33.6332 6.57437 32.0553 6.15312C29.2681 5.3905 17.9868 5.3905 17.9868 5.3905C17.9868 5.3905 6.7319 5.3905 3.94472 6.15312C2.39316 6.57347 1.18296 7.78366 0.736287 9.33522C0 12.1224 0 17.9864 0 17.9864C0 17.9864 0 23.8503 0.736287 26.6648C1.18296 28.19 2.39316 29.4256 3.94472 29.8469C6.7319 30.6095 17.9868 30.6095 17.9868 30.6095C17.9868 30.6095 29.2681 30.6095 32.0553 29.8469C33.6332 29.4265 34.8161 28.19 35.2374 26.6648C36 23.8513 36 17.9864 36 17.9864C36 17.9864 36 12.1224 35.2374 9.33522ZM14.4107 23.4037V12.5954L23.7464 17.9864L14.4107 23.4037Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -21,54 +21,54 @@ const BaseText = exports.BaseText = _styledComponents.default.span.withConfig({
|
|
|
21
21
|
} = _ref;
|
|
22
22
|
return as !== undefined && (0, _styledComponents.css)(["", " &{", ";", ";", ";", ";", ";", ";color:", ";", ";", ";", ";span{font-size:inherit;line-height:inherit;}}"], (0, _fontHelper.default)(theme, as), _ref2 => {
|
|
23
23
|
let {
|
|
24
|
-
size
|
|
24
|
+
$size
|
|
25
25
|
} = _ref2;
|
|
26
|
-
return size && `font-size: ${theme.fontSize(size)}`;
|
|
26
|
+
return $size && `font-size: ${theme.fontSize($size)}`;
|
|
27
27
|
}, _ref3 => {
|
|
28
28
|
let {
|
|
29
|
-
size
|
|
29
|
+
$size
|
|
30
30
|
} = _ref3;
|
|
31
|
-
return size && 'line-height: normal';
|
|
31
|
+
return $size && 'line-height: normal';
|
|
32
32
|
}, _ref4 => {
|
|
33
33
|
let {
|
|
34
|
-
family
|
|
34
|
+
$family
|
|
35
35
|
} = _ref4;
|
|
36
|
-
return family && `font-family: ${theme.fontFamilies(family)}`;
|
|
36
|
+
return $family && `font-family: ${theme.fontFamilies($family)}`;
|
|
37
37
|
}, _ref5 => {
|
|
38
38
|
let {
|
|
39
|
-
weight
|
|
39
|
+
$weight
|
|
40
40
|
} = _ref5;
|
|
41
|
-
return weight && `font-weight: ${weight}`;
|
|
41
|
+
return $weight && `font-weight: ${$weight}`;
|
|
42
42
|
}, _ref6 => {
|
|
43
43
|
let {
|
|
44
|
-
height
|
|
44
|
+
$height
|
|
45
45
|
} = _ref6;
|
|
46
|
-
return height && `line-height: ${height}`;
|
|
46
|
+
return $height && `line-height: ${$height}`;
|
|
47
47
|
}, _ref7 => {
|
|
48
48
|
let {
|
|
49
|
-
uppercase
|
|
49
|
+
$uppercase
|
|
50
50
|
} = _ref7;
|
|
51
|
-
return uppercase && 'text-transform: uppercase';
|
|
51
|
+
return $uppercase && 'text-transform: uppercase';
|
|
52
52
|
}, _ref8 => {
|
|
53
53
|
let {
|
|
54
|
-
color
|
|
54
|
+
$color
|
|
55
55
|
} = _ref8;
|
|
56
|
-
return color ? theme.color(color) : 'inherit';
|
|
56
|
+
return $color ? theme.color($color) : 'inherit';
|
|
57
57
|
}, _ref9 => {
|
|
58
58
|
let {
|
|
59
|
-
textAlign
|
|
59
|
+
$textAlign
|
|
60
60
|
} = _ref9;
|
|
61
|
-
return textAlign && `text-align: ${textAlign}`;
|
|
61
|
+
return $textAlign && `text-align: ${$textAlign}`;
|
|
62
62
|
}, _ref10 => {
|
|
63
63
|
let {
|
|
64
|
-
size
|
|
64
|
+
$size
|
|
65
65
|
} = _ref10;
|
|
66
|
-
return size === 'super' && (0, _styledComponents.css)(["font-size:", ";line-height:3rem;@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}"], theme.fontSize('xxl'), theme.breakpoints2026('M'), theme.fontSize('big'), theme.fontSize('big'), theme.breakpoints2026('L'), theme.fontSize('super'), theme.fontSize('super'));
|
|
66
|
+
return $size === 'super' && (0, _styledComponents.css)(["font-size:", ";line-height:3rem;@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}"], theme.fontSize('xxl'), theme.breakpoints2026('M'), theme.fontSize('big'), theme.fontSize('big'), theme.breakpoints2026('L'), theme.fontSize('super'), theme.fontSize('super'));
|
|
67
67
|
}, _ref11 => {
|
|
68
68
|
let {
|
|
69
|
-
mobileColor
|
|
69
|
+
$mobileColor
|
|
70
70
|
} = _ref11;
|
|
71
|
-
return mobileColor && (0, _styledComponents.css)(["@media (max-width:", "px){color:", ";}"], _breakpoints.breakpointValues2026.L - 1, theme.color(mobileColor));
|
|
71
|
+
return $mobileColor && (0, _styledComponents.css)(["@media (max-width:", "px){color:", ";}"], _breakpoints.breakpointValues2026.L - 1, theme.color($mobileColor));
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
|
|
@@ -91,14 +91,14 @@ const Text = _ref12 => {
|
|
|
91
91
|
} = _ref12;
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement(BaseText, Object.assign({}, rest, {
|
|
93
93
|
as: tag,
|
|
94
|
-
color: color,
|
|
95
|
-
size: size,
|
|
96
|
-
uppercase: uppercase,
|
|
97
|
-
height: height,
|
|
98
|
-
weight: weight,
|
|
99
|
-
family: family,
|
|
100
|
-
mobileColor: mobileColor,
|
|
101
|
-
textAlign: textAlign
|
|
94
|
+
$color: color,
|
|
95
|
+
$size: size,
|
|
96
|
+
$uppercase: uppercase,
|
|
97
|
+
$height: height,
|
|
98
|
+
$weight: weight,
|
|
99
|
+
$family: family,
|
|
100
|
+
$mobileColor: mobileColor,
|
|
101
|
+
$textAlign: textAlign
|
|
102
102
|
}), children);
|
|
103
103
|
};
|
|
104
104
|
var _default = exports.default = Text;
|
|
@@ -8,7 +8,7 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
8
8
|
// To be phased out: tags to use the prescribed family always
|
|
9
9
|
family="Anton"
|
|
10
10
|
>
|
|
11
|
-
<span style={{ width: "55px"
|
|
11
|
+
<span style={{ width: "55px"}}>H1 </span>
|
|
12
12
|
</Text>
|
|
13
13
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
14
14
|
<b>family:</b> {fontConfig['h1'].family} -
|
|
@@ -25,7 +25,7 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
25
25
|
mobileColor="green"
|
|
26
26
|
family="Anton"
|
|
27
27
|
>
|
|
28
|
-
<span style={{ width: "55px"
|
|
28
|
+
<span style={{ width: "55px"}}>H2 </span>
|
|
29
29
|
</Text>
|
|
30
30
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
31
31
|
<b>family:</b> {fontConfig['h2'].family} -
|
|
@@ -41,7 +41,7 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
41
41
|
mobileColor="red"
|
|
42
42
|
family="Montserrat"
|
|
43
43
|
>
|
|
44
|
-
<span style={{ width: "55px"
|
|
44
|
+
<span style={{ width: "55px"}}>H3 </span>
|
|
45
45
|
</Text>
|
|
46
46
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
47
47
|
<b>family:</b> {fontConfig['h3'].family} -
|
|
@@ -58,7 +58,7 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
58
58
|
weight="normal"
|
|
59
59
|
// To be phased out: text to always be rendered as typed
|
|
60
60
|
uppercase>
|
|
61
|
-
<span style={{ width: "55px"
|
|
61
|
+
<span style={{ width: "55px"}}>H4 </span>
|
|
62
62
|
</Text>
|
|
63
63
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
64
64
|
<b>family:</b> {fontConfig['span'].family} -
|
|
@@ -70,8 +70,8 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
<Text tag="p" size="m" style={{ marginTop: "2rem"}}>
|
|
74
|
-
<span style={{ width: "55px"
|
|
73
|
+
<Text tag="p" size="m" style={{ marginTop: "2rem"}} height="100px" weight="500">
|
|
74
|
+
<span style={{ width: "55px"}}>P (body)</span>
|
|
75
75
|
</Text>
|
|
76
76
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
77
77
|
<b>family:</b> {fontConfig['p'].family} -
|
|
@@ -91,7 +91,7 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
91
91
|
uppercase
|
|
92
92
|
// To be phased-out
|
|
93
93
|
weight="normal">
|
|
94
|
-
<span style={{ width: "55px"
|
|
94
|
+
<span style={{ width: "55px"}}>H5 </span>
|
|
95
95
|
</Text>
|
|
96
96
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
97
97
|
<b>family:</b> {fontConfig['h5'].family} -
|
|
@@ -105,7 +105,7 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
105
105
|
family="Anton"
|
|
106
106
|
uppercase
|
|
107
107
|
weight="normal">
|
|
108
|
-
<span style={{ width: "55px"
|
|
108
|
+
<span style={{ width: "55px"}}>H6</span>
|
|
109
109
|
</Text>
|
|
110
110
|
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
111
111
|
<b>family:</b> {fontConfig['h6'].family}
|
|
@@ -38,7 +38,6 @@ exports[`renders heavy heading correctly 1`] = `
|
|
|
38
38
|
|
|
39
39
|
<h3
|
|
40
40
|
className="c0"
|
|
41
|
-
color="inherit"
|
|
42
41
|
>
|
|
43
42
|
Heading 3 heavy
|
|
44
43
|
</h3>
|
|
@@ -82,8 +81,6 @@ exports[`renders high heading correctly 1`] = `
|
|
|
82
81
|
|
|
83
82
|
<h3
|
|
84
83
|
className="c0"
|
|
85
|
-
color="inherit"
|
|
86
|
-
height="5"
|
|
87
84
|
>
|
|
88
85
|
Heading 3 high
|
|
89
86
|
</h3>
|
|
@@ -128,8 +125,6 @@ exports[`renders large heading correctly 1`] = `
|
|
|
128
125
|
|
|
129
126
|
<h3
|
|
130
127
|
className="c0"
|
|
131
|
-
color="inherit"
|
|
132
|
-
size="l"
|
|
133
128
|
>
|
|
134
129
|
Heading 3 large
|
|
135
130
|
</h3>
|
|
@@ -175,8 +170,6 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
|
|
|
175
170
|
|
|
176
171
|
<p
|
|
177
172
|
className="c0"
|
|
178
|
-
color="inherit"
|
|
179
|
-
size="xl"
|
|
180
173
|
>
|
|
181
174
|
My paragraph xl and font Anton
|
|
182
175
|
</p>
|
|
@@ -222,8 +215,6 @@ exports[`renders xl yellow paragraph correctly 1`] = `
|
|
|
222
215
|
|
|
223
216
|
<p
|
|
224
217
|
className="c0"
|
|
225
|
-
color="yellow"
|
|
226
|
-
size="xl"
|
|
227
218
|
>
|
|
228
219
|
My paragraph xl and yellow
|
|
229
220
|
</p>
|