@comicrelief/component-library 8.12.1 → 8.13.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/README.md +12 -0
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +50 -8
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +2 -1
- package/dist/components/Atoms/SocialIcons/Utils/Links.js +8 -4
- package/dist/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +15 -117
- package/dist/components/Molecules/Logos/Logos.js +37 -15
- package/dist/components/Molecules/ShareButton/ShareButton.js +2 -1
- package/dist/components/Molecules/ShareButton/ShareButton.test.js +2 -2
- package/dist/components/Organisms/Footer/Nav/Nav.js +3 -3
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +155 -189
- package/dist/components/Organisms/Header/Header.md +4 -0
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +163 -0
- package/dist/components/Organisms/Header/HeaderNav/HeaderNav.style.js +237 -0
- package/dist/components/Organisms/Header/HeaderNav/Menu-Group-Icon.svg +3 -0
- package/dist/components/Organisms/Header/HeaderNav/arrow-right.png +0 -0
- package/dist/components/Organisms/Header/HeaderNav/arrow.svg +6 -0
- package/dist/components/Organisms/Header/HeaderNav/chevron-down.svg +3 -0
- package/dist/components/Organisms/Header/Nav/Nav.js +3 -3
- package/dist/components/Organisms/Header/annoying.css +14 -0
- package/dist/components/Organisms/Header/assets/Post.svg +3 -0
- package/dist/components/Organisms/Header/data/data-extended.js +236 -0
- package/dist/components/Organisms/Header/data/data-live.js +126 -0
- package/dist/components/Organisms/Header2025/Burger/BurgerMenu.js +28 -0
- package/dist/components/Organisms/Header2025/Burger/BurgerMenu.style.js +76 -0
- package/dist/components/Organisms/Header2025/Header2025.js +40 -0
- package/dist/components/Organisms/Header2025/Header2025.md +554 -0
- package/dist/components/Organisms/Header2025/Header2025.style.js +72 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +175 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +308 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +79 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/Menu-Group-Icon.svg +3 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/MoreNav.js +93 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/MoreNav.style.js +108 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/arrow-right.png +0 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/arrow.svg +6 -0
- package/dist/components/Organisms/Header2025/HeaderNav2025/chevron-down.svg +3 -0
- package/dist/components/Organisms/Header2025/annoying.css +14 -0
- package/dist/components/Organisms/Header2025/assets/PayIn.svg +3 -0
- package/dist/components/Organisms/Header2025/assets/Post.svg +3 -0
- package/dist/components/Organisms/Header2025/assets/icon--mail--2023.svg +3 -0
- package/dist/components/Organisms/Header2025/assets/icon--search--2023.svg +3 -0
- package/dist/components/Organisms/Header2025/assets/icon--shop--2023.svg +3 -0
- package/dist/components/Organisms/Header2025/data/data-extended.js +236 -0
- package/dist/components/Organisms/Header2025/data/data-live.js +126 -0
- package/dist/components/Organisms/Header2025/data/data.js +156 -0
- package/dist/components/Organisms/Header2025/header2025.test.js +25 -0
- package/dist/index.js +7 -0
- package/dist/styleguide/data/data.js +19 -19
- package/dist/theme/shared/allBreakpoints.js +1 -0
- package/dist/utils/navHelper.js +24 -2
- package/package.json +1 -1
- package/playwright.config.js +13 -6
- package/src/components/Atoms/SocialIcons/Icon/Icon.js +84 -5
- package/src/components/Atoms/SocialIcons/SocialIcons.js +1 -0
- package/src/components/Atoms/SocialIcons/Utils/Links.js +8 -4
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +15 -117
- package/src/components/Molecules/Logos/Logos.js +35 -15
- package/src/components/Molecules/ShareButton/ShareButton.js +1 -0
- package/src/components/Molecules/ShareButton/ShareButton.test.js +8 -32
- package/src/components/Organisms/Footer/Nav/Nav.js +2 -2
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +155 -189
- package/src/components/Organisms/Header/Header.md +4 -0
- package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +213 -0
- package/src/components/Organisms/Header/HeaderNav/HeaderNav.style.js +391 -0
- package/src/components/Organisms/Header/HeaderNav/Menu-Group-Icon.svg +3 -0
- package/src/components/Organisms/Header/HeaderNav/arrow-right.png +0 -0
- package/src/components/Organisms/Header/HeaderNav/arrow.svg +6 -0
- package/src/components/Organisms/Header/HeaderNav/chevron-down.svg +3 -0
- package/src/components/Organisms/Header/Nav/Nav.js +1 -1
- package/src/components/Organisms/Header/annoying.css +14 -0
- package/src/components/Organisms/Header/assets/Post.svg +3 -0
- package/src/components/Organisms/Header/data/data-extended.js +280 -0
- package/src/components/Organisms/Header/data/data-live.js +149 -0
- package/src/components/Organisms/Header2025/Burger/BurgerMenu.js +28 -0
- package/src/components/Organisms/Header2025/Burger/BurgerMenu.style.js +99 -0
- package/src/components/Organisms/Header2025/Header2025.js +62 -0
- package/src/components/Organisms/Header2025/Header2025.md +554 -0
- package/src/components/Organisms/Header2025/Header2025.style.js +131 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +192 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +462 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +142 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/Menu-Group-Icon.svg +3 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/MoreNav.js +171 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/MoreNav.style.js +190 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/arrow-right.png +0 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/arrow.svg +6 -0
- package/src/components/Organisms/Header2025/HeaderNav2025/chevron-down.svg +3 -0
- package/src/components/Organisms/Header2025/annoying.css +14 -0
- package/src/components/Organisms/Header2025/assets/PayIn.svg +3 -0
- package/src/components/Organisms/Header2025/assets/Post.svg +3 -0
- package/src/components/Organisms/Header2025/assets/icon--mail--2023.svg +3 -0
- package/src/components/Organisms/Header2025/assets/icon--search--2023.svg +3 -0
- package/src/components/Organisms/Header2025/assets/icon--shop--2023.svg +3 -0
- package/src/components/Organisms/Header2025/data/data-extended.js +280 -0
- package/src/components/Organisms/Header2025/data/data-live.js +149 -0
- package/src/components/Organisms/Header2025/data/data.js +184 -0
- package/src/components/Organisms/Header2025/header2025.test.js +23 -0
- package/src/index.js +1 -0
- package/src/styleguide/data/data.js +19 -19
- package/src/theme/shared/allBreakpoints.js +1 -0
- package/src/utils/navHelper.js +24 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
title: 'Header',
|
|
9
|
+
menuGroups: [{
|
|
10
|
+
title: 'GROUP1',
|
|
11
|
+
id: 'group1',
|
|
12
|
+
links: [{
|
|
13
|
+
title: 'Sport Relief',
|
|
14
|
+
path: 'https://www.comicrelief.com/fundraising/pay-in-your-money',
|
|
15
|
+
internal: {
|
|
16
|
+
type: 'ContentfulPageLandingPage'
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
title: 'Run 30 Miles in June',
|
|
20
|
+
path: 'https://www.comicrelief.com/rednoseday',
|
|
21
|
+
internal: {
|
|
22
|
+
type: 'ContentfulPageLandingPage'
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
title: 'Be a Good Sport: Schools',
|
|
26
|
+
path: 'https://www.comicrelief.com/join',
|
|
27
|
+
internal: {
|
|
28
|
+
type: 'ContentfulPageLandingPage'
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
title: 'Win a trip to New York with Major League Baseball',
|
|
32
|
+
path: 'https://www.comicrelief.com/squads',
|
|
33
|
+
internal: {
|
|
34
|
+
type: 'ContentfulPageLandingPage'
|
|
35
|
+
}
|
|
36
|
+
}]
|
|
37
|
+
}, {
|
|
38
|
+
title: 'GROUP2',
|
|
39
|
+
id: 'group2',
|
|
40
|
+
links: [{
|
|
41
|
+
title: 'Red Nose Day',
|
|
42
|
+
path: 'https://www.comicrelief.com/rednoseday/schools',
|
|
43
|
+
internal: {
|
|
44
|
+
type: 'ContentfulPageLandingPage'
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
title: 'The New Red Nose',
|
|
48
|
+
path: 'https://www.comicrelief.com/rednoseday/schools',
|
|
49
|
+
internal: {
|
|
50
|
+
type: 'ContentfulPageLandingPage'
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
title: 'Schools',
|
|
54
|
+
path: 'https://www.comicrelief.com/rednoseday/schools',
|
|
55
|
+
internal: {
|
|
56
|
+
type: 'ContentfulPageLandingPage'
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
title: 'The Red Nose Day Nosey Awards',
|
|
60
|
+
path: 'https://www.comicrelief.com/rednoseday/schools',
|
|
61
|
+
internal: {
|
|
62
|
+
type: 'ContentfulPageLandingPage'
|
|
63
|
+
}
|
|
64
|
+
}]
|
|
65
|
+
}, {
|
|
66
|
+
title: 'GROUP3',
|
|
67
|
+
id: 'group3',
|
|
68
|
+
links: [{
|
|
69
|
+
title: 'Funding',
|
|
70
|
+
path: 'https://www.comicrelief.com/what-your-money-does',
|
|
71
|
+
internal: {
|
|
72
|
+
type: 'ContentfulPageLandingPage'
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
title: 'Our Funding Practice',
|
|
76
|
+
path: 'https://www.comicrelief.com/our-legacy',
|
|
77
|
+
internal: {
|
|
78
|
+
type: 'ContentfulPageLandingPage'
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
title: 'Funding opportunities',
|
|
82
|
+
path: 'https://www.comicrelief.com/our-legacy',
|
|
83
|
+
internal: {
|
|
84
|
+
type: 'ContentfulPageLandingPage'
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
title: 'Our Funding strategy',
|
|
88
|
+
path: 'https://www.comicrelief.com/our-legacy',
|
|
89
|
+
internal: {
|
|
90
|
+
type: 'ContentfulPageLandingPage'
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
title: 'Managing your funding',
|
|
94
|
+
path: 'https://www.comicrelief.com/our-legacy',
|
|
95
|
+
internal: {
|
|
96
|
+
type: 'ContentfulPageLandingPage'
|
|
97
|
+
}
|
|
98
|
+
}]
|
|
99
|
+
}, {
|
|
100
|
+
title: 'GROUP4',
|
|
101
|
+
id: 'group4',
|
|
102
|
+
links: [{
|
|
103
|
+
title: 'What Your Money Does',
|
|
104
|
+
path: 'https://www.comicrelief.com/rednoseday/schools/primary-schools',
|
|
105
|
+
internal: {
|
|
106
|
+
type: 'ContentfulPageLandingPage'
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
title: 'Reports & Publications',
|
|
110
|
+
path: 'https://www.comicrelief.com/rednoseday/schools/secondary-schools',
|
|
111
|
+
internal: {
|
|
112
|
+
type: 'ContentfulPageLandingPage'
|
|
113
|
+
}
|
|
114
|
+
}]
|
|
115
|
+
}, {
|
|
116
|
+
title: 'GROUP5',
|
|
117
|
+
id: 'group5',
|
|
118
|
+
links: [{
|
|
119
|
+
title: 'Get Involved',
|
|
120
|
+
url: 'https://www.comicrelief.com/working-with-us/',
|
|
121
|
+
internal: {
|
|
122
|
+
type: 'ContentfulComponentLink'
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
title: 'Do your own fundraising',
|
|
126
|
+
url: 'https://www.comicrelief.com/404/',
|
|
127
|
+
internal: {
|
|
128
|
+
type: 'ContentfulComponentLink'
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
title: 'Regular Donations',
|
|
132
|
+
url: 'https://www.comicrelief.com/404/',
|
|
133
|
+
internal: {
|
|
134
|
+
type: 'ContentfulComponentLink'
|
|
135
|
+
}
|
|
136
|
+
}, {
|
|
137
|
+
title: 'Run for Comic Relief',
|
|
138
|
+
url: 'https://www.comicrelief.com/404/',
|
|
139
|
+
internal: {
|
|
140
|
+
type: 'ContentfulComponentLink'
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
title: 'How to pay in your fundraising money',
|
|
144
|
+
url: 'https://www.comicrelief.com/404/',
|
|
145
|
+
internal: {
|
|
146
|
+
type: 'ContentfulComponentLink'
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
title: 'Partners',
|
|
150
|
+
url: 'https://www.comicrelief.com/404/',
|
|
151
|
+
internal: {
|
|
152
|
+
type: 'ContentfulComponentLink'
|
|
153
|
+
}
|
|
154
|
+
}]
|
|
155
|
+
}, {
|
|
156
|
+
title: 'GROUP6',
|
|
157
|
+
id: 'group6',
|
|
158
|
+
links: [{
|
|
159
|
+
title: 'Something Here',
|
|
160
|
+
url: 'https://www.comicrelief.com/working-with-us/',
|
|
161
|
+
internal: {
|
|
162
|
+
type: 'ContentfulComponentLink'
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
title: 'Do your own fundraising',
|
|
166
|
+
url: 'https://www.comicrelief.com/404/',
|
|
167
|
+
internal: {
|
|
168
|
+
type: 'ContentfulComponentLink'
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
title: 'Regular Donations',
|
|
172
|
+
url: 'https://www.comicrelief.com/404/',
|
|
173
|
+
internal: {
|
|
174
|
+
type: 'ContentfulComponentLink'
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
title: 'Run for Comic Relief',
|
|
178
|
+
url: 'https://www.comicrelief.com/404/',
|
|
179
|
+
internal: {
|
|
180
|
+
type: 'ContentfulComponentLink'
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
title: 'How to pay in your fundraising money',
|
|
184
|
+
url: 'https://www.comicrelief.com/404/',
|
|
185
|
+
internal: {
|
|
186
|
+
type: 'ContentfulComponentLink'
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
title: 'Partners',
|
|
190
|
+
url: 'https://www.comicrelief.com/404/',
|
|
191
|
+
internal: {
|
|
192
|
+
type: 'ContentfulComponentLink'
|
|
193
|
+
}
|
|
194
|
+
}]
|
|
195
|
+
}, {
|
|
196
|
+
title: 'GROUP7',
|
|
197
|
+
id: 'group7',
|
|
198
|
+
links: [{
|
|
199
|
+
title: 'Something Else',
|
|
200
|
+
url: 'https://www.comicrelief.com/working-with-us/',
|
|
201
|
+
internal: {
|
|
202
|
+
type: 'ContentfulComponentLink'
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
title: 'Do your own fundraising',
|
|
206
|
+
url: 'https://www.comicrelief.com/404/',
|
|
207
|
+
internal: {
|
|
208
|
+
type: 'ContentfulComponentLink'
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
title: 'Regular Donations',
|
|
212
|
+
url: 'https://www.comicrelief.com/404/',
|
|
213
|
+
internal: {
|
|
214
|
+
type: 'ContentfulComponentLink'
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
title: 'Run for Comic Relief',
|
|
218
|
+
url: 'https://www.comicrelief.com/404/',
|
|
219
|
+
internal: {
|
|
220
|
+
type: 'ContentfulComponentLink'
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
title: 'How to pay in your fundraising money',
|
|
224
|
+
url: 'https://www.comicrelief.com/404/',
|
|
225
|
+
internal: {
|
|
226
|
+
type: 'ContentfulComponentLink'
|
|
227
|
+
}
|
|
228
|
+
}, {
|
|
229
|
+
title: 'Partners',
|
|
230
|
+
url: 'https://www.comicrelief.com/404/',
|
|
231
|
+
internal: {
|
|
232
|
+
type: 'ContentfulComponentLink'
|
|
233
|
+
}
|
|
234
|
+
}]
|
|
235
|
+
}]
|
|
236
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
title: 'Header',
|
|
9
|
+
menuGroups: [{
|
|
10
|
+
title: 'GROUP1',
|
|
11
|
+
id: 'group1',
|
|
12
|
+
links: [{
|
|
13
|
+
title: 'Winter Appeal 2024',
|
|
14
|
+
path: 'https://www.comicrelief.com/winterappeal/',
|
|
15
|
+
internal: {
|
|
16
|
+
type: 'ContentfulPageLandingPage'
|
|
17
|
+
}
|
|
18
|
+
}]
|
|
19
|
+
}, {
|
|
20
|
+
title: 'GROUP2',
|
|
21
|
+
id: 'group2',
|
|
22
|
+
links: [{
|
|
23
|
+
title: 'Red Nose Day',
|
|
24
|
+
path: 'https://www.comicrelief.com/rednoseday/schools',
|
|
25
|
+
internal: {
|
|
26
|
+
type: 'ContentfulPageLandingPage'
|
|
27
|
+
}
|
|
28
|
+
}, {
|
|
29
|
+
title: 'Billy Monger: The Race is On',
|
|
30
|
+
path: 'https://www.comicrelief.com/rednoseday/challenges/billy',
|
|
31
|
+
internal: {
|
|
32
|
+
type: 'ContentfulPageLandingPage'
|
|
33
|
+
}
|
|
34
|
+
}]
|
|
35
|
+
}, {
|
|
36
|
+
title: 'GROUP3',
|
|
37
|
+
id: 'group3',
|
|
38
|
+
links: [{
|
|
39
|
+
title: 'Funding',
|
|
40
|
+
path: 'https://www.comicrelief.com/what-your-money-does',
|
|
41
|
+
internal: {
|
|
42
|
+
type: 'ContentfulPageLandingPage'
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
title: 'Our Funding Practice',
|
|
46
|
+
path: 'https://www.comicrelief.com/our-legacy-two',
|
|
47
|
+
internal: {
|
|
48
|
+
type: 'ContentfulPageLandingPage'
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
title: 'Funding opportunities',
|
|
52
|
+
path: 'https://www.comicrelief.com/our-legacy-three',
|
|
53
|
+
internal: {
|
|
54
|
+
type: 'ContentfulPageLandingPage'
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
title: 'Our Funding strategy',
|
|
58
|
+
path: 'https://www.comicrelief.com/our-legacy-four',
|
|
59
|
+
internal: {
|
|
60
|
+
type: 'ContentfulPageLandingPage'
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
title: 'Managing your funding',
|
|
64
|
+
path: 'https://www.comicrelief.com/our-legacy-five',
|
|
65
|
+
internal: {
|
|
66
|
+
type: 'ContentfulPageLandingPage'
|
|
67
|
+
}
|
|
68
|
+
}]
|
|
69
|
+
}, {
|
|
70
|
+
title: 'GROUP4',
|
|
71
|
+
id: 'group4',
|
|
72
|
+
links: [{
|
|
73
|
+
title: 'What Your Money Does',
|
|
74
|
+
path: 'https://www.comicrelief.com/rednoseday/schools/primary-schools',
|
|
75
|
+
internal: {
|
|
76
|
+
type: 'ContentfulPageLandingPage'
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
title: 'Reports & Publications',
|
|
80
|
+
path: 'https://www.comicrelief.com/rednoseday/schools/secondary-schools',
|
|
81
|
+
internal: {
|
|
82
|
+
type: 'ContentfulPageLandingPage'
|
|
83
|
+
}
|
|
84
|
+
}]
|
|
85
|
+
}, {
|
|
86
|
+
title: 'GROUP5',
|
|
87
|
+
id: 'group5',
|
|
88
|
+
links: [{
|
|
89
|
+
title: 'Get Involved',
|
|
90
|
+
url: 'https://www.comicrelief.com/working-with-us/',
|
|
91
|
+
internal: {
|
|
92
|
+
type: 'ContentfulComponentLink'
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
title: 'Do your own fundraising',
|
|
96
|
+
url: 'https://www.comicrelief.com/one/',
|
|
97
|
+
internal: {
|
|
98
|
+
type: 'ContentfulComponentLink'
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
title: 'Regular Donations',
|
|
102
|
+
url: 'https://www.comicrelief.com/two/',
|
|
103
|
+
internal: {
|
|
104
|
+
type: 'ContentfulComponentLink'
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
title: 'Run for Comic Relief',
|
|
108
|
+
url: 'https://www.comicrelief.com/three/',
|
|
109
|
+
internal: {
|
|
110
|
+
type: 'ContentfulComponentLink'
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
title: 'How to pay in your fundraising money',
|
|
114
|
+
url: 'https://www.comicrelief.com/four/',
|
|
115
|
+
internal: {
|
|
116
|
+
type: 'ContentfulComponentLink'
|
|
117
|
+
}
|
|
118
|
+
}, {
|
|
119
|
+
title: 'Partners',
|
|
120
|
+
url: 'https://www.comicrelief.com/five/',
|
|
121
|
+
internal: {
|
|
122
|
+
type: 'ContentfulComponentLink'
|
|
123
|
+
}
|
|
124
|
+
}]
|
|
125
|
+
}]
|
|
126
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _BurgerMenu = require("./BurgerMenu.style");
|
|
10
|
+
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
11
|
+
|
|
12
|
+
const BurgerMenu = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
toggle,
|
|
15
|
+
isExpandable
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_BurgerMenu.BurgerWrapper, {
|
|
18
|
+
href: "#",
|
|
19
|
+
role: "button",
|
|
20
|
+
"aria-haspopup": "true",
|
|
21
|
+
"aria-label": "Open and close Navigation Menu",
|
|
22
|
+
inline: true,
|
|
23
|
+
underline: false,
|
|
24
|
+
onClick: toggle,
|
|
25
|
+
isExpandable: isExpandable
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_BurgerMenu.BurgerHiddenText, null, "Open and close nav menu"), /*#__PURE__*/_react.default.createElement(_BurgerMenu.BurgerBar, null));
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = BurgerMenu;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.BurgerWrapper = exports.BurgerHiddenText = exports.BurgerBar = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _hideVisually = _interopRequireDefault(require("../../../../theme/shared/hideVisually"));
|
|
10
|
+
var _Link = _interopRequireDefault(require("../../../Atoms/Link/Link"));
|
|
11
|
+
var _Text = _interopRequireDefault(require("../../../Atoms/Text/Text"));
|
|
12
|
+
var _zIndex = _interopRequireDefault(require("../../../../theme/shared/zIndex"));
|
|
13
|
+
/**
|
|
14
|
+
* Burger hidden text
|
|
15
|
+
*/
|
|
16
|
+
const BurgerHiddenText = exports.BurgerHiddenText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
17
|
+
displayName: "BurgerMenustyle__BurgerHiddenText",
|
|
18
|
+
componentId: "sc-14j8u4q-0"
|
|
19
|
+
})(["", ";"], _hideVisually.default);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Burger menu bar
|
|
23
|
+
*/
|
|
24
|
+
const BurgerBar = exports.BurgerBar = _styledComponents.default.span.withConfig({
|
|
25
|
+
displayName: "BurgerMenustyle__BurgerBar",
|
|
26
|
+
componentId: "sc-14j8u4q-1"
|
|
27
|
+
})(["background-color:", ";margin:0 auto;"], _ref => {
|
|
28
|
+
let {
|
|
29
|
+
theme
|
|
30
|
+
} = _ref;
|
|
31
|
+
return theme.color('deep_violet_dark');
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Burger wrapper
|
|
36
|
+
*/
|
|
37
|
+
const BurgerWrapper = exports.BurgerWrapper = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
38
|
+
displayName: "BurgerMenustyle__BurgerWrapper",
|
|
39
|
+
componentId: "sc-14j8u4q-2"
|
|
40
|
+
})(["", ";order:50;display:flex;align-items:center;position:relative;text-indent:-9999px;background-color:transparent;height:100%;width:45px;left:5px;cursor:pointer;transition:all 0.2s;:hover{border:none;font-weight:inherit;}", "{position:relative;&,::before,::after{width:25px;height:3px;border-radius:3px;display:inline-block;}", ";::before,::after{content:'';position:absolute;left:0;background-color:currentColor;transition:all 0.2s;}::before{top:-0.5rem;", ";}::after{top:0.5rem;", ";}}:hover ", "{&,::before,::after{background-color:", ";}::before{", ";}::after{", ";}}@media ", "{display:none;}"], (0, _zIndex.default)('medium'), BurgerBar, _ref2 => {
|
|
41
|
+
let {
|
|
42
|
+
isExpandable
|
|
43
|
+
} = _ref2;
|
|
44
|
+
return isExpandable && ' background-color: transparent';
|
|
45
|
+
}, _ref3 => {
|
|
46
|
+
let {
|
|
47
|
+
isExpandable
|
|
48
|
+
} = _ref3;
|
|
49
|
+
return isExpandable && ' transform:rotate(135deg); top: 0;';
|
|
50
|
+
}, _ref4 => {
|
|
51
|
+
let {
|
|
52
|
+
isExpandable
|
|
53
|
+
} = _ref4;
|
|
54
|
+
return isExpandable && ' transform:rotate(-135deg); top: 0;';
|
|
55
|
+
}, BurgerBar, _ref5 => {
|
|
56
|
+
let {
|
|
57
|
+
theme,
|
|
58
|
+
isExpandable
|
|
59
|
+
} = _ref5;
|
|
60
|
+
return !isExpandable && theme.color('grey');
|
|
61
|
+
}, _ref6 => {
|
|
62
|
+
let {
|
|
63
|
+
isExpandable
|
|
64
|
+
} = _ref6;
|
|
65
|
+
return !isExpandable && 'top: -0.6rem;';
|
|
66
|
+
}, _ref7 => {
|
|
67
|
+
let {
|
|
68
|
+
isExpandable
|
|
69
|
+
} = _ref7;
|
|
70
|
+
return !isExpandable && 'top: 0.6rem;';
|
|
71
|
+
}, _ref8 => {
|
|
72
|
+
let {
|
|
73
|
+
theme
|
|
74
|
+
} = _ref8;
|
|
75
|
+
return theme.allBreakpoints('Nav');
|
|
76
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Logos = _interopRequireDefault(require("../../Molecules/Logos/Logos"));
|
|
10
|
+
var _HeaderNav = _interopRequireDefault(require("./HeaderNav2025/HeaderNav2025"));
|
|
11
|
+
var _Header = require("./Header2025.style");
|
|
12
|
+
const Header2025 = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
navItems = {},
|
|
15
|
+
metaIcons,
|
|
16
|
+
campaign = 'Comic Relief',
|
|
17
|
+
donateButton = null,
|
|
18
|
+
characterLimit = 60,
|
|
19
|
+
...rest
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Header.Header2025Wrapper, Object.assign({
|
|
22
|
+
navItems: true
|
|
23
|
+
}, rest), /*#__PURE__*/_react.default.createElement(_Header.InnerWrapper, null, /*#__PURE__*/_react.default.createElement(_Header.Brand, null, /*#__PURE__*/_react.default.createElement(_Logos.default, {
|
|
24
|
+
campaign: campaign,
|
|
25
|
+
sizeSm: "50px",
|
|
26
|
+
sizeMd: "55px",
|
|
27
|
+
animateRotate: true
|
|
28
|
+
})), /*#__PURE__*/_react.default.createElement(_HeaderNav.default, {
|
|
29
|
+
navItems: navItems,
|
|
30
|
+
metaIcons: metaIcons,
|
|
31
|
+
donateButton: donateButton,
|
|
32
|
+
characterLimit: characterLimit
|
|
33
|
+
}), /*#__PURE__*/_react.default.createElement(_Header.ButtonsAndIcons, null, /*#__PURE__*/_react.default.createElement(_Header.Header2025MetaIcons, {
|
|
34
|
+
isHeader: true,
|
|
35
|
+
"data-testid": "meta-icons--desktop"
|
|
36
|
+
}, metaIcons), /*#__PURE__*/_react.default.createElement(_Header.DonateButtonWrapperTop, {
|
|
37
|
+
"data-testid": "donate-button--desktop"
|
|
38
|
+
}, donateButton))));
|
|
39
|
+
};
|
|
40
|
+
var _default = exports.default = Header2025;
|