@comicrelief/component-library 7.35.5 → 7.35.7
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/Organisms/WYMDCarousel/WYMDCarousel.js +13 -15
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +48 -23
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +1 -1
- package/dist/components/Organisms/WYMDCarousel/_utils.js +2 -2
- package/dist/styleguide/data/data.js +85 -85
- package/package.json +1 -1
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +49 -49
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +82 -33
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +38 -28
- package/src/components/Organisms/WYMDCarousel/_utils.js +2 -2
- package/src/styleguide/data/data.js +85 -85
|
@@ -57,87 +57,87 @@ const carouselItemsComplete = {
|
|
|
57
57
|
desktopHeight: 475,
|
|
58
58
|
headerCopy: 'Over the past two years, we’ve supported',
|
|
59
59
|
peopleHelpedText: '11.7 million people',
|
|
60
|
-
autoPlay:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
autoPlay: false,
|
|
61
|
+
node1Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
62
|
+
node1Amount: '1,000',
|
|
63
|
+
node1Image: {
|
|
64
64
|
file: {
|
|
65
65
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
node2Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
69
|
+
node2Amount: '750,000',
|
|
70
|
+
node2Image: {
|
|
71
71
|
file: {
|
|
72
|
-
url: '
|
|
72
|
+
url: 'https://images.ctfassets.net/zsfivwzfgl3t/5uKnps3prnG6GpTM1EPZdC/8d7264465846de31e3bbb5b6b2c36c8f/014-helping_hand.png'
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
node3Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
76
|
+
node3Amount: '3,000',
|
|
77
|
+
node3Image: {
|
|
78
78
|
file: {
|
|
79
79
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
node4Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
83
|
+
node4Amount: '4,000',
|
|
84
|
+
node4Image: {
|
|
85
85
|
file: {
|
|
86
86
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
node5Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
90
|
+
node5Amount: '5,000',
|
|
91
|
+
node5Image: {
|
|
92
92
|
file: {
|
|
93
93
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
node6Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
97
|
+
node6Amount: '6,000',
|
|
98
|
+
node6Image: {
|
|
99
99
|
file: {
|
|
100
100
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
node7Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
104
|
+
node7Amount: '7,000',
|
|
105
|
+
node7Image: {
|
|
106
106
|
file: {
|
|
107
107
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
node8Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
111
|
+
node8Amount: '8,000',
|
|
112
|
+
node8Image: {
|
|
113
113
|
file: {
|
|
114
114
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
118
|
+
node9Amount: '9,000',
|
|
119
|
+
node9Image: {
|
|
120
120
|
file: {
|
|
121
121
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
node10Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
125
|
+
node10Amount: '10,000',
|
|
126
|
+
node10Image: {
|
|
127
127
|
file: {
|
|
128
128
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
132
|
+
node11Amount: '11,000',
|
|
133
|
+
node11Image: {
|
|
134
134
|
file: {
|
|
135
135
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
|
|
139
|
+
node12Amount: '12,000',
|
|
140
|
+
node12Image: {
|
|
141
141
|
file: {
|
|
142
142
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
143
143
|
}
|
|
@@ -153,73 +153,73 @@ const carouselItemsIncomplete = {
|
|
|
153
153
|
headerCopy: 'Over the past two years, we’ve supported',
|
|
154
154
|
peopleHelpedText: '11.7 million people',
|
|
155
155
|
autoPlay: false,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
node1Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
157
|
+
node1Amount: '1,000',
|
|
158
|
+
node1Image: {
|
|
159
159
|
file: {
|
|
160
160
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
node2Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
164
|
+
node2Amount: '750,000',
|
|
165
|
+
node2Image: {
|
|
166
166
|
file: {
|
|
167
167
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
node3Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
171
|
+
node3Amount: '3,000',
|
|
172
|
+
node3Image: {
|
|
173
173
|
file: {
|
|
174
174
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
node4Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
178
|
+
node4Amount: '4,000',
|
|
179
|
+
node4Image: {
|
|
180
180
|
file: {
|
|
181
181
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
node5Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
185
|
+
node5Image: {
|
|
186
186
|
file: {
|
|
187
187
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
190
|
+
node6Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
191
|
+
node6Amount: '6,000',
|
|
192
|
+
node6Image: null,
|
|
193
|
+
node7Copy: null,
|
|
194
|
+
node7Amount: null,
|
|
195
|
+
node7Image: null,
|
|
196
|
+
node8Copy: null,
|
|
197
|
+
node8Amount: null,
|
|
198
|
+
node8Image: {
|
|
199
199
|
file: {
|
|
200
200
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
204
|
+
node9Amount: null,
|
|
205
|
+
node9Image: null,
|
|
206
|
+
node10Copy: null,
|
|
207
|
+
node10Amount: '10,000',
|
|
208
|
+
node10Image: {
|
|
209
209
|
file: {
|
|
210
210
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
214
|
+
node11Amount: '11,000',
|
|
215
|
+
node11Image: {
|
|
216
216
|
file: {
|
|
217
217
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
|
|
221
|
+
node12Amount: null,
|
|
222
|
+
node12Image: {
|
|
223
223
|
file: {
|
|
224
224
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
225
225
|
}
|
|
@@ -235,30 +235,30 @@ const carouselItemsMinimal = {
|
|
|
235
235
|
headerCopy: 'Over the past two years, we’ve supported',
|
|
236
236
|
peopleHelpedText: '11.7 million people',
|
|
237
237
|
autoPlay: false,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
node1Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
239
|
+
node1Amount: '1,000',
|
|
240
|
+
node1Image: {
|
|
241
241
|
file: {
|
|
242
242
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
node2Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
246
|
+
node2Amount: '750,000',
|
|
247
|
+
node2Image: {
|
|
248
248
|
file: {
|
|
249
249
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
node3Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
253
|
+
node3Amount: '3,000',
|
|
254
|
+
node3Image: {
|
|
255
255
|
file: {
|
|
256
256
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
node4Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
|
|
260
|
+
node4Amount: '4,000',
|
|
261
|
+
node4Image: {
|
|
262
262
|
file: {
|
|
263
263
|
url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
|
|
264
264
|
}
|