@comicrelief/component-library 8.51.2 → 8.51.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.style.js +4 -4
- package/dist/components/Organisms/FooterNew/FooterNew.js +2 -4
- package/dist/components/Organisms/FooterNew/FooterNew.md +1 -0
- package/dist/components/Organisms/FooterNew/FooterNew.style.js +57 -62
- package/dist/components/Organisms/FooterNew/FooterNew.test.js +8 -0
- package/dist/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1673 -22
- package/package.json +1 -1
- package/src/components/Molecules/EmailSignUp/EmailSignUp.style.js +16 -5
- package/src/components/Organisms/FooterNew/FooterNew.js +2 -4
- package/src/components/Organisms/FooterNew/FooterNew.md +1 -0
- package/src/components/Organisms/FooterNew/FooterNew.style.js +15 -13
- package/src/components/Organisms/FooterNew/FooterNew.test.js +12 -0
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1673 -22
|
@@ -58,7 +58,7 @@ const FormWrapper = exports.FormWrapper = _styledComponents.default.div.withConf
|
|
|
58
58
|
const InputWrapper = exports.InputWrapper = _styledComponents.default.div.withConfig({
|
|
59
59
|
displayName: "EmailSignUpstyle__InputWrapper",
|
|
60
60
|
componentId: "sc-d38yg6-4"
|
|
61
|
-
})(["flex:1;display:flex;align-items:center;width:100%;overflow:visible;@media ", "{width:
|
|
61
|
+
})(["flex:1;display:flex;align-items:center;width:100%;overflow:visible;@media ", "{width:100%;max-width:364px;}"], _ref6 => {
|
|
62
62
|
let {
|
|
63
63
|
theme
|
|
64
64
|
} = _ref6;
|
|
@@ -76,12 +76,12 @@ const StyledEmailInput = exports.StyledEmailInput = (0, _styledComponents.defaul
|
|
|
76
76
|
let {
|
|
77
77
|
theme
|
|
78
78
|
} = _ref8;
|
|
79
|
-
return (0, _styledComponents.css)(["font-size:1rem;line-height:1.25rem;font-family:", ";background-color:", ";border-color:transparent;padding
|
|
79
|
+
return (0, _styledComponents.css)(["font-size:1rem;line-height:1.25rem;font-family:", ";background-color:", ";border-color:transparent;height:44px;padding:12px 2.4rem 12px 18px;transition:background-color 0.2s ease,text-indent 0.18s ease;border:1px solid ", ";color:", ";&::placeholder{color:", ";}&:hover,&:focus{background-color:", ";}"], theme.fontFamilies('Montserrat'), theme.color('grey_5'), theme.color('white'), theme.color('white'), theme.color('grey_2'), theme.color('grey_4_hover'));
|
|
80
80
|
});
|
|
81
81
|
const ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div.withConfig({
|
|
82
82
|
displayName: "EmailSignUpstyle__ButtonWrapper",
|
|
83
83
|
componentId: "sc-d38yg6-6"
|
|
84
|
-
})(["display:flex;align-items:center;justify-content:center;width:100%;@media ", "{width:auto;}"], _ref9 => {
|
|
84
|
+
})(["display:flex;align-items:center;justify-content:center;width:100%;@media ", "{width:100%;max-width:123px;flex:0 0 auto;}"], _ref9 => {
|
|
85
85
|
let {
|
|
86
86
|
theme
|
|
87
87
|
} = _ref9;
|
|
@@ -90,7 +90,7 @@ const ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div.with
|
|
|
90
90
|
const StyledEmailSignUpButton = exports.StyledEmailSignUpButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
91
91
|
displayName: "EmailSignUpstyle__StyledEmailSignUpButton",
|
|
92
92
|
componentId: "sc-d38yg6-7"
|
|
93
|
-
})(["margin:0;font-family:", ";padding:", ";border-radius:0.5rem;overflow:hidden
|
|
93
|
+
})(["margin:0;font-family:", ";height:44px;padding:0 ", ";border-radius:0.5rem;overflow:hidden;min-width:max-content;width:100%;@media ", "{margin:0;max-width:123px;}.emailSignUpButtonContent{display:inline-grid;grid-auto-flow:column;grid-template-columns:auto 18px;column-gap:0.5rem;align-items:center;justify-content:center;line-height:1;white-space:nowrap;}.emailSignUpButtonLabel{display:inline-block;font-size:16px;line-height:1;transform:translateX(13px);transition:transform 0.22s ease;will-change:transform;white-space:nowrap;}.emailSignUpButtonArrow{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;opacity:0;transform:translateX(-13px);transition:opacity 0.22s ease,transform 0.22s ease;will-change:transform,opacity;svg{fill:currentColor !important;}}&:hover,&:focus{background-color:", ";color:", ";.emailSignUpButtonLabel{transform:translateX(0);}.emailSignUpButtonArrow{opacity:1;transform:translateX(0);}}"], _ref10 => {
|
|
94
94
|
let {
|
|
95
95
|
theme
|
|
96
96
|
} = _ref10;
|
|
@@ -38,9 +38,7 @@ const FooterNew = _ref => {
|
|
|
38
38
|
} = _ref;
|
|
39
39
|
// Remove white space between words
|
|
40
40
|
const campaignName = campaign.replace(/\s/g, '').toLowerCase();
|
|
41
|
-
const
|
|
42
|
-
const defaultCopyrightText = `© ${currentYear} Comic Relief`;
|
|
43
|
-
const displayCopyrightText = copyrightText !== undefined ? copyrightText : defaultCopyrightText;
|
|
41
|
+
const displayCopyrightText = typeof copyrightText === 'string' ? copyrightText.trim() : '';
|
|
44
42
|
const validationSchema = yup.object({
|
|
45
43
|
email: yup.string().nullable().transform(value => value === '' ? null : value).email('Please provide a valid email address')
|
|
46
44
|
});
|
|
@@ -128,7 +126,7 @@ const FooterNew = _ref => {
|
|
|
128
126
|
showYouTubeSocialIcon: showYouTubeSocialIcon
|
|
129
127
|
})), /*#__PURE__*/_react.default.createElement(_SecondaryNav.default, Object.assign({
|
|
130
128
|
navItems: secondaryLinksList
|
|
131
|
-
}, rest)), /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyright, null, displayCopyrightText && /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyrightText, null, displayCopyrightText), legalText && /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyrightText, null, legalText)), /*#__PURE__*/_react.default.createElement(_FooterNew.LogosContainer, {
|
|
129
|
+
}, rest)), /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyright, null, displayCopyrightText.length > 0 && /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyrightText, null, displayCopyrightText), legalText && /*#__PURE__*/_react.default.createElement(_FooterNew.FooterCopyrightText, null, legalText)), /*#__PURE__*/_react.default.createElement(_FooterNew.LogosContainer, {
|
|
132
130
|
$mobileOnly: true,
|
|
133
131
|
$showFundraiserAtBottom: true
|
|
134
132
|
}, showFundraisingRegulatorLogo && /*#__PURE__*/_react.default.createElement(_FundraisingRegulatorLogo.default, {
|
|
@@ -11,6 +11,7 @@ import { primaryLinksList, secondaryLinksList } from './dev-data/data';
|
|
|
11
11
|
primaryLinksList={primaryLinksList}
|
|
12
12
|
secondaryLinksList={secondaryLinksList}
|
|
13
13
|
legalText={footerCopy.copy}
|
|
14
|
+
copyrightText="© 2026 Comic Relief"
|
|
14
15
|
campaign="Comic Relief"
|
|
15
16
|
showFundraisingRegulatorLogo
|
|
16
17
|
showFacebookSocialIcon
|
|
@@ -34,90 +34,95 @@ const FooterWrapper = exports.FooterWrapper = _styledComponents.default.footer.a
|
|
|
34
34
|
const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withConfig({
|
|
35
35
|
displayName: "FooterNewstyle__InnerWrapper",
|
|
36
36
|
componentId: "sc-17mkhu6-1"
|
|
37
|
-
})(["position:relative;display:block;width:100%;height:100%;max-width:
|
|
37
|
+
})(["position:relative;display:block;width:100%;height:100%;max-width:1424px;margin:0 auto;padding:0 ", ";@media ", "{padding:0 ", ";}@media ", "{padding:0 ", ";}"], (0, _spacing.default)('md'), _ref4 => {
|
|
38
38
|
let {
|
|
39
39
|
theme
|
|
40
40
|
} = _ref4;
|
|
41
|
+
return theme.breakpoints2026('M');
|
|
42
|
+
}, (0, _spacing.default)('l'), _ref5 => {
|
|
43
|
+
let {
|
|
44
|
+
theme
|
|
45
|
+
} = _ref5;
|
|
41
46
|
return theme.breakpoints2026('L');
|
|
42
|
-
});
|
|
47
|
+
}, (0, _spacing.default)('xl'));
|
|
43
48
|
const FooterLegalLine = exports.FooterLegalLine = (0, _styledComponents.default)(_Text.default).attrs({
|
|
44
49
|
tag: 'p'
|
|
45
50
|
}).withConfig({
|
|
46
51
|
displayName: "FooterNewstyle__FooterLegalLine",
|
|
47
52
|
componentId: "sc-17mkhu6-2"
|
|
48
|
-
})(["text-align:left;margin-top:1rem;margin-bottom:", ";line-height:1.5rem;color:", ";opacity:0.8;"], (0, _spacing.default)('md'),
|
|
53
|
+
})(["text-align:left;margin-top:1rem;margin-bottom:", ";line-height:1.5rem;color:", ";opacity:0.8;"], (0, _spacing.default)('md'), _ref6 => {
|
|
49
54
|
let {
|
|
50
55
|
theme
|
|
51
|
-
} =
|
|
56
|
+
} = _ref6;
|
|
52
57
|
return theme.color('white');
|
|
53
58
|
});
|
|
54
59
|
const TopSection = exports.TopSection = _styledComponents.default.div.withConfig({
|
|
55
60
|
displayName: "FooterNewstyle__TopSection",
|
|
56
61
|
componentId: "sc-17mkhu6-3"
|
|
57
|
-
})(["display:flex;flex-direction:column;margin-bottom:", ";gap:", ";@media ", "{flex-direction:row;justify-content:space-between;align-items:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'),
|
|
62
|
+
})(["display:flex;flex-direction:column;margin-bottom:", ";gap:", ";@media ", "{flex-direction:row;justify-content:space-between;column-gap:", ";align-items:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), _ref7 => {
|
|
58
63
|
let {
|
|
59
64
|
theme
|
|
60
|
-
} =
|
|
65
|
+
} = _ref7;
|
|
61
66
|
return theme.breakpoints2026('M');
|
|
62
|
-
},
|
|
67
|
+
}, (0, _spacing.default)('lg'), _ref8 => {
|
|
63
68
|
let {
|
|
64
69
|
$hasEmailSignup
|
|
65
|
-
} =
|
|
70
|
+
} = _ref8;
|
|
66
71
|
return $hasEmailSignup ? 'flex-start' : 'center';
|
|
67
72
|
});
|
|
68
73
|
const TopSectionLeft = exports.TopSectionLeft = _styledComponents.default.div.withConfig({
|
|
69
74
|
displayName: "FooterNewstyle__TopSectionLeft",
|
|
70
75
|
componentId: "sc-17mkhu6-4"
|
|
71
|
-
})(["display:flex;flex-direction:column;gap:", ";@media ", "{flex-direction:column;flex:
|
|
76
|
+
})(["display:flex;flex-direction:column;gap:", ";@media ", "{flex-direction:column;flex:1 1 auto;min-width:0;}"], (0, _spacing.default)('md'), _ref9 => {
|
|
72
77
|
let {
|
|
73
78
|
theme
|
|
74
|
-
} =
|
|
79
|
+
} = _ref9;
|
|
75
80
|
return theme.breakpoints2026('M');
|
|
76
81
|
});
|
|
77
82
|
const NewsletterSignUpWrapper = exports.NewsletterSignUpWrapper = _styledComponents.default.div.withConfig({
|
|
78
83
|
displayName: "FooterNewstyle__NewsletterSignUpWrapper",
|
|
79
84
|
componentId: "sc-17mkhu6-5"
|
|
80
|
-
})(["max-width:100%;@media ", "{max-width:100%;}"],
|
|
85
|
+
})(["max-width:100%;@media ", "{max-width:100%;}"], _ref10 => {
|
|
81
86
|
let {
|
|
82
87
|
theme
|
|
83
|
-
} =
|
|
88
|
+
} = _ref10;
|
|
84
89
|
return theme.breakpoints2026('M');
|
|
85
90
|
});
|
|
86
91
|
const SocialIconWrapper = exports.SocialIconWrapper = _styledComponents.default.div.withConfig({
|
|
87
92
|
displayName: "FooterNewstyle__SocialIconWrapper",
|
|
88
93
|
componentId: "sc-17mkhu6-6"
|
|
89
|
-
})(["margin-bottom:", ";box-sizing:content-box;gap:", ";display:", ";@media ", "{box-sizing:border-box;display:", ";margin-bottom:", ";align-items:center;}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'),
|
|
94
|
+
})(["margin-bottom:", ";box-sizing:content-box;gap:", ";display:", ";@media ", "{box-sizing:border-box;display:", ";margin-bottom:", ";align-items:center;}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), _ref11 => {
|
|
90
95
|
let {
|
|
91
96
|
$desktopOnly
|
|
92
|
-
} =
|
|
97
|
+
} = _ref11;
|
|
93
98
|
if ($desktopOnly) return 'none';
|
|
94
99
|
return 'block';
|
|
95
|
-
},
|
|
100
|
+
}, _ref12 => {
|
|
96
101
|
let {
|
|
97
102
|
theme
|
|
98
|
-
} =
|
|
103
|
+
} = _ref12;
|
|
99
104
|
return theme.breakpoints2026('M');
|
|
100
|
-
},
|
|
105
|
+
}, _ref13 => {
|
|
101
106
|
let {
|
|
102
107
|
$mobileOnly,
|
|
103
108
|
$inTopSection
|
|
104
|
-
} =
|
|
109
|
+
} = _ref13;
|
|
105
110
|
if ($mobileOnly) return 'none';
|
|
106
111
|
if ($inTopSection) return 'flex';
|
|
107
112
|
return 'block';
|
|
108
|
-
},
|
|
113
|
+
}, _ref14 => {
|
|
109
114
|
let {
|
|
110
115
|
$inTopSection
|
|
111
|
-
} =
|
|
116
|
+
} = _ref14;
|
|
112
117
|
return $inTopSection ? '0' : (0, _spacing.default)('md');
|
|
113
118
|
});
|
|
114
119
|
const PrimaryNav = exports.PrimaryNav = _styledComponents.default.nav.withConfig({
|
|
115
120
|
displayName: "FooterNewstyle__PrimaryNav",
|
|
116
121
|
componentId: "sc-17mkhu6-7"
|
|
117
|
-
})(["display:flex;flex-direction:column;list-style:none;padding:", " 0;margin:0 0 ", " 0;gap:", ";@media ", "{flex-direction:row;flex-wrap:wrap;gap:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), (0, _spacing.default)('l'),
|
|
122
|
+
})(["display:flex;flex-direction:column;list-style:none;padding:", " 0;margin:0 0 ", " 0;gap:", ";@media ", "{flex-direction:row;flex-wrap:wrap;gap:", ";}"], (0, _spacing.default)('md'), (0, _spacing.default)('md'), (0, _spacing.default)('l'), _ref15 => {
|
|
118
123
|
let {
|
|
119
124
|
theme
|
|
120
|
-
} =
|
|
125
|
+
} = _ref15;
|
|
121
126
|
return theme.breakpoints2026('M');
|
|
122
127
|
}, (0, _spacing.default)('m'));
|
|
123
128
|
const PrimaryNavItem = exports.PrimaryNavItem = _styledComponents.default.li.withConfig({
|
|
@@ -127,16 +132,11 @@ const PrimaryNavItem = exports.PrimaryNavItem = _styledComponents.default.li.wit
|
|
|
127
132
|
const PrimaryNavLink = exports.PrimaryNavLink = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
128
133
|
displayName: "FooterNewstyle__PrimaryNavLink",
|
|
129
134
|
componentId: "sc-17mkhu6-9"
|
|
130
|
-
})(["color:", ";text-decoration:none;font-weight:bold;font-size:
|
|
131
|
-
let {
|
|
132
|
-
theme
|
|
133
|
-
} = _ref15;
|
|
134
|
-
return theme.color('white');
|
|
135
|
-
}, _ref16 => {
|
|
135
|
+
})(["color:", ";text-decoration:none;font-weight:bold;font-size:16px;&:hover,&:focus{text-decoration:underline;text-decoration-color:", ";}"], _ref16 => {
|
|
136
136
|
let {
|
|
137
137
|
theme
|
|
138
138
|
} = _ref16;
|
|
139
|
-
return theme.
|
|
139
|
+
return theme.color('white');
|
|
140
140
|
}, _ref17 => {
|
|
141
141
|
let {
|
|
142
142
|
theme
|
|
@@ -146,7 +146,7 @@ const PrimaryNavLink = exports.PrimaryNavLink = (0, _styledComponents.default)(_
|
|
|
146
146
|
const PrimaryNavText = exports.PrimaryNavText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
147
147
|
displayName: "FooterNewstyle__PrimaryNavText",
|
|
148
148
|
componentId: "sc-17mkhu6-10"
|
|
149
|
-
})(["color:", ";font-weight:bold;"], _ref18 => {
|
|
149
|
+
})(["color:", ";font-weight:bold;font-size:16px;"], _ref18 => {
|
|
150
150
|
let {
|
|
151
151
|
theme
|
|
152
152
|
} = _ref18;
|
|
@@ -173,7 +173,7 @@ const SecondaryNavItem = exports.SecondaryNavItem = _styledComponents.default.li
|
|
|
173
173
|
const SecondaryNavLink = exports.SecondaryNavLink = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
174
174
|
displayName: "FooterNewstyle__SecondaryNavLink",
|
|
175
175
|
componentId: "sc-17mkhu6-13"
|
|
176
|
-
})(["text-decoration:none;> span{color:", ";opacity:0.8;text-decoration:
|
|
176
|
+
})(["text-decoration:none;> span{color:", ";opacity:0.8;text-decoration:none;text-decoration-color:", ";font-weight:normal;font-size:0.875rem;}&:hover,&:focus{text-decoration:underline;text-decoration-color:", ";}"], _ref21 => {
|
|
177
177
|
let {
|
|
178
178
|
theme
|
|
179
179
|
} = _ref21;
|
|
@@ -187,58 +187,53 @@ const SecondaryNavLink = exports.SecondaryNavLink = (0, _styledComponents.defaul
|
|
|
187
187
|
let {
|
|
188
188
|
theme
|
|
189
189
|
} = _ref23;
|
|
190
|
-
return theme.breakpoints2026('M');
|
|
191
|
-
}, _ref24 => {
|
|
192
|
-
let {
|
|
193
|
-
theme
|
|
194
|
-
} = _ref24;
|
|
195
190
|
return theme.color('white');
|
|
196
191
|
});
|
|
197
192
|
const SecondaryNavText = exports.SecondaryNavText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
198
193
|
displayName: "FooterNewstyle__SecondaryNavText",
|
|
199
194
|
componentId: "sc-17mkhu6-14"
|
|
200
|
-
})(["color:", ";opacity:0.8;font-weight:normal;"],
|
|
195
|
+
})(["color:", ";opacity:0.8;font-weight:normal;"], _ref24 => {
|
|
201
196
|
let {
|
|
202
197
|
theme
|
|
203
|
-
} =
|
|
198
|
+
} = _ref24;
|
|
204
199
|
return theme.color('white');
|
|
205
200
|
});
|
|
206
201
|
const LogosContainer = exports.LogosContainer = _styledComponents.default.div.withConfig({
|
|
207
202
|
displayName: "FooterNewstyle__LogosContainer",
|
|
208
203
|
componentId: "sc-17mkhu6-15"
|
|
209
|
-
})(["display:flex;flex-direction:row;align-items:center;gap:", ";justify-content:", ";
|
|
204
|
+
})(["display:flex;flex-direction:row;align-items:center;gap:", ";justify-content:", ";padding-bottom:", ";", " @media ", "{flex:0 0 auto;margin-top:0;margin-bottom:0;padding-top:", ";display:", ";justify-content:", ";}}@media ", "{display:", ";}"], (0, _spacing.default)('l'), _ref25 => {
|
|
210
205
|
let {
|
|
211
206
|
$mobileOnly
|
|
212
|
-
} =
|
|
207
|
+
} = _ref25;
|
|
213
208
|
return $mobileOnly ? 'flex-start' : 'center';
|
|
214
|
-
},
|
|
209
|
+
}, _ref26 => {
|
|
215
210
|
let {
|
|
216
211
|
$mobileOnly
|
|
217
|
-
} =
|
|
212
|
+
} = _ref26;
|
|
218
213
|
return $mobileOnly ? (0, _spacing.default)('l') : '0';
|
|
219
|
-
},
|
|
214
|
+
}, _ref27 => {
|
|
220
215
|
let {
|
|
221
216
|
$desktopOnly
|
|
222
|
-
} =
|
|
217
|
+
} = _ref27;
|
|
223
218
|
return $desktopOnly && 'display: none;';
|
|
224
|
-
},
|
|
219
|
+
}, _ref28 => {
|
|
225
220
|
let {
|
|
226
221
|
theme
|
|
227
|
-
} =
|
|
222
|
+
} = _ref28;
|
|
228
223
|
return theme.breakpoints2026('M');
|
|
229
|
-
},
|
|
224
|
+
}, _ref29 => {
|
|
230
225
|
let {
|
|
231
226
|
$desktopOnly
|
|
232
|
-
} =
|
|
227
|
+
} = _ref29;
|
|
233
228
|
return $desktopOnly ? (0, _spacing.default)('l') : '0';
|
|
234
|
-
},
|
|
229
|
+
}, _ref30 => {
|
|
235
230
|
let {
|
|
236
231
|
$desktopOnly,
|
|
237
232
|
$mobileOnly,
|
|
238
233
|
$showCRLogoOnly,
|
|
239
234
|
$showPairedLogos,
|
|
240
235
|
$showFundraiserAtBottom
|
|
241
|
-
} =
|
|
236
|
+
} = _ref30;
|
|
242
237
|
// Mobile containers
|
|
243
238
|
if ($mobileOnly && $showFundraiserAtBottom) return 'flex';
|
|
244
239
|
if ($mobileOnly) return 'none';
|
|
@@ -248,29 +243,29 @@ const LogosContainer = exports.LogosContainer = _styledComponents.default.div.wi
|
|
|
248
243
|
if ($desktopOnly && $showPairedLogos) return 'none';
|
|
249
244
|
if ($desktopOnly) return 'none';
|
|
250
245
|
return 'flex';
|
|
251
|
-
},
|
|
246
|
+
}, _ref31 => {
|
|
252
247
|
let {
|
|
253
248
|
$desktopOnly,
|
|
254
249
|
$showCRLogoOnly,
|
|
255
250
|
$showFundraiserAtBottom
|
|
256
|
-
} =
|
|
251
|
+
} = _ref31;
|
|
257
252
|
if ($showFundraiserAtBottom) return 'flex-start';
|
|
258
253
|
if ($desktopOnly && $showCRLogoOnly) return 'flex-end';
|
|
259
254
|
if ($desktopOnly) return 'flex-end';
|
|
260
255
|
return 'center';
|
|
261
|
-
},
|
|
256
|
+
}, _ref32 => {
|
|
262
257
|
let {
|
|
263
258
|
theme
|
|
264
|
-
} =
|
|
259
|
+
} = _ref32;
|
|
265
260
|
return theme.breakpoints2026('L');
|
|
266
|
-
},
|
|
261
|
+
}, _ref33 => {
|
|
267
262
|
let {
|
|
268
263
|
$desktopOnly,
|
|
269
264
|
$mobileOnly,
|
|
270
265
|
$showCRLogoOnly,
|
|
271
266
|
$showPairedLogos,
|
|
272
267
|
$showFundraiserAtBottom
|
|
273
|
-
} =
|
|
268
|
+
} = _ref33;
|
|
274
269
|
// Hide fundraiser at bottom for L+ (it's in TopSection)
|
|
275
270
|
if ($mobileOnly && $showFundraiserAtBottom) return 'none';
|
|
276
271
|
if ($mobileOnly) return 'none';
|
|
@@ -284,19 +279,19 @@ const LogosContainer = exports.LogosContainer = _styledComponents.default.div.wi
|
|
|
284
279
|
const Brand = exports.Brand = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
285
280
|
displayName: "FooterNewstyle__Brand",
|
|
286
281
|
componentId: "sc-17mkhu6-16"
|
|
287
|
-
})(["color:transparent;border:0;:hover{border:0;}", ""],
|
|
282
|
+
})(["color:transparent;border:0;:hover{border:0;}", ""], _ref34 => {
|
|
288
283
|
let {
|
|
289
284
|
animateRotate
|
|
290
|
-
} =
|
|
285
|
+
} = _ref34;
|
|
291
286
|
return (0, _animations.logoRotateAnimation)(animateRotate);
|
|
292
287
|
});
|
|
293
288
|
const FooterCopyright = exports.FooterCopyright = _styledComponents.default.div.withConfig({
|
|
294
289
|
displayName: "FooterNewstyle__FooterCopyright",
|
|
295
290
|
componentId: "sc-17mkhu6-17"
|
|
296
|
-
})(["display:block;width:100%;height:100%;text-align:left;margin-bottom:", ";@media ", "{margin-bottom:0;}"], (0, _spacing.default)('l'),
|
|
291
|
+
})(["display:block;width:100%;height:100%;text-align:left;margin-bottom:", ";@media ", "{margin-bottom:0;}"], (0, _spacing.default)('l'), _ref35 => {
|
|
297
292
|
let {
|
|
298
293
|
theme
|
|
299
|
-
} =
|
|
294
|
+
} = _ref35;
|
|
300
295
|
return theme.breakpoints2026('L');
|
|
301
296
|
});
|
|
302
297
|
const FooterCopyrightText = exports.FooterCopyrightText = (0, _styledComponents.default)(_Text.default).attrs({
|
|
@@ -304,9 +299,9 @@ const FooterCopyrightText = exports.FooterCopyrightText = (0, _styledComponents.
|
|
|
304
299
|
}).withConfig({
|
|
305
300
|
displayName: "FooterNewstyle__FooterCopyrightText",
|
|
306
301
|
componentId: "sc-17mkhu6-18"
|
|
307
|
-
})(["color:", ";opacity:0.8;font-size:0.875rem;margin-bottom:", ";"],
|
|
302
|
+
})(["color:", ";opacity:0.8;font-size:0.875rem;margin-bottom:", ";"], _ref36 => {
|
|
308
303
|
let {
|
|
309
304
|
theme
|
|
310
|
-
} =
|
|
305
|
+
} = _ref36;
|
|
311
306
|
return theme.color('white');
|
|
312
307
|
}, (0, _spacing.default)('sm'));
|
|
@@ -17,4 +17,12 @@ it('renders correctly', () => {
|
|
|
17
17
|
copyrightText: "\xA9 2026 Comic Relief"
|
|
18
18
|
})).toJSON();
|
|
19
19
|
expect(tree).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
it('does not render copyright text when not supplied', () => {
|
|
22
|
+
const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_FooterNew.default, {
|
|
23
|
+
primaryLinksList: _data.testPrimaryLinksList,
|
|
24
|
+
secondaryLinksList: _data.testSecondaryLinksList,
|
|
25
|
+
legalText: _footerCopy.default.copy
|
|
26
|
+
})).toJSON();
|
|
27
|
+
expect(tree).toMatchSnapshot();
|
|
20
28
|
});
|