@comicrelief/component-library 8.48.0 → 8.48.2

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.
Files changed (41) hide show
  1. package/dist/components/Atoms/Input/Input.md +1 -0
  2. package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.js +6 -2
  3. package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.md +10 -6
  4. package/dist/components/Molecules/CTAMultiCard/CTAMultiCard.style.js +22 -21
  5. package/dist/components/Molecules/CTAMultiCard/SingleCard.js +1 -1
  6. package/dist/components/Molecules/CTAMultiCard/{ArrowIcon.js → _ArrowIcon.js} +2 -2
  7. package/dist/components/Molecules/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +64 -68
  8. package/dist/components/Molecules/Countdown/Countdown.js +12 -5
  9. package/dist/components/Molecules/Countdown/Countdown.md +1 -1
  10. package/dist/components/Organisms/Header/Nav/Nav.js +1 -1
  11. package/dist/components/Organisms/Header/data/data-extended.js +22 -22
  12. package/dist/components/Organisms/Header/data/data-live.js +1 -1
  13. package/dist/components/Organisms/Header/data/data.js +2 -2
  14. package/dist/components/Organisms/Header2025/Header2025.js +2 -2
  15. package/dist/components/Organisms/Header2025/Header2025.md +2 -2
  16. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
  17. package/dist/components/Organisms/Header2025/data/data-extended.js +23 -23
  18. package/dist/components/Organisms/Header2025/data/data-live--minimal.js +1 -1
  19. package/dist/components/Organisms/Header2025/data/data-live.js +2 -2
  20. package/dist/components/Organisms/Header2025/data/data.js +13 -13
  21. package/package.json +1 -1
  22. package/src/components/Atoms/Input/Input.md +1 -0
  23. package/src/components/Molecules/CTAMultiCard/CTAMultiCard.js +8 -2
  24. package/src/components/Molecules/CTAMultiCard/CTAMultiCard.md +10 -6
  25. package/src/components/Molecules/CTAMultiCard/CTAMultiCard.style.js +49 -43
  26. package/src/components/Molecules/CTAMultiCard/SingleCard.js +1 -1
  27. package/src/components/Molecules/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +64 -68
  28. package/src/components/Molecules/Countdown/Countdown.js +12 -5
  29. package/src/components/Molecules/Countdown/Countdown.md +1 -1
  30. package/src/components/Organisms/Header/Nav/Nav.js +2 -1
  31. package/src/components/Organisms/Header/data/data-extended.js +22 -22
  32. package/src/components/Organisms/Header/data/data-live.js +1 -1
  33. package/src/components/Organisms/Header/data/data.js +2 -2
  34. package/src/components/Organisms/Header2025/Header2025.js +5 -3
  35. package/src/components/Organisms/Header2025/Header2025.md +2 -2
  36. package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +7 -4
  37. package/src/components/Organisms/Header2025/data/data-extended.js +23 -23
  38. package/src/components/Organisms/Header2025/data/data-live--minimal.js +1 -1
  39. package/src/components/Organisms/Header2025/data/data-live.js +2 -2
  40. package/src/components/Organisms/Header2025/data/data.js +13 -13
  41. /package/src/components/Molecules/CTAMultiCard/{ArrowIcon.js → _ArrowIcon.js} +0 -0
@@ -39,25 +39,25 @@ var _default = exports.default = {
39
39
  id: 'group2',
40
40
  links: [{
41
41
  title: 'Red Nose Day',
42
- path: 'https://www.comicrelief.com/rednoseday/schools',
42
+ path: 'https://www.comicrelief.com/rednoseday/schools#1',
43
43
  internal: {
44
44
  type: 'ContentfulPageLandingPage'
45
45
  }
46
46
  }, {
47
47
  title: 'The New Red Nose',
48
- path: 'https://www.comicrelief.com/rednoseday/schools',
48
+ path: 'https://www.comicrelief.com/rednoseday/schools#2',
49
49
  internal: {
50
50
  type: 'ContentfulPageLandingPage'
51
51
  }
52
52
  }, {
53
53
  title: 'Schools',
54
- path: 'https://www.comicrelief.com/rednoseday/schools',
54
+ path: 'https://www.comicrelief.com/rednoseday/schools#3',
55
55
  internal: {
56
56
  type: 'ContentfulPageLandingPage'
57
57
  }
58
58
  }, {
59
59
  title: 'The Red Nose Day Nosey Awards',
60
- path: 'https://www.comicrelief.com/rednoseday/schools',
60
+ path: 'https://www.comicrelief.com/rednoseday/schools#4',
61
61
  internal: {
62
62
  type: 'ContentfulPageLandingPage'
63
63
  }
@@ -73,19 +73,19 @@ var _default = exports.default = {
73
73
  }
74
74
  }, {
75
75
  title: 'Our Funding Practice',
76
- path: 'https://www.comicrelief.com/our-legacy',
76
+ path: 'https://www.comicrelief.com/our-legacy#one',
77
77
  internal: {
78
78
  type: 'ContentfulPageLandingPage'
79
79
  }
80
80
  }, {
81
81
  title: 'Funding opportunities',
82
- path: 'https://www.comicrelief.com/our-legacy',
82
+ path: 'https://www.comicrelief.com/our-legacy#two',
83
83
  internal: {
84
84
  type: 'ContentfulPageLandingPage'
85
85
  }
86
86
  }, {
87
87
  title: 'Our Funding strategy',
88
- path: 'https://www.comicrelief.com/our-legacy',
88
+ path: 'https://www.comicrelief.com/our-legacy#three',
89
89
  internal: {
90
90
  type: 'ContentfulPageLandingPage'
91
91
  }
@@ -123,31 +123,31 @@ var _default = exports.default = {
123
123
  }
124
124
  }, {
125
125
  title: 'Do your own fundraising',
126
- url: 'https://www.comicrelief.com/404/',
126
+ url: 'https://www.comicrelief.com/404#4',
127
127
  internal: {
128
128
  type: 'ContentfulComponentLink'
129
129
  }
130
130
  }, {
131
131
  title: 'Regular Donations',
132
- url: 'https://www.comicrelief.com/404/',
132
+ url: 'https://www.comicrelief.com/404#5',
133
133
  internal: {
134
134
  type: 'ContentfulComponentLink'
135
135
  }
136
136
  }, {
137
137
  title: 'Run for Comic Relief',
138
- url: 'https://www.comicrelief.com/404/',
138
+ url: 'https://www.comicrelief.com/404#6',
139
139
  internal: {
140
140
  type: 'ContentfulComponentLink'
141
141
  }
142
142
  }, {
143
143
  title: 'How to pay in your fundraising money',
144
- url: 'https://www.comicrelief.com/404/',
144
+ url: 'https://www.comicrelief.com/404#2',
145
145
  internal: {
146
146
  type: 'ContentfulComponentLink'
147
147
  }
148
148
  }, {
149
149
  title: 'Partners',
150
- url: 'https://www.comicrelief.com/404/',
150
+ url: 'https://www.comicrelief.com/404#3',
151
151
  internal: {
152
152
  type: 'ContentfulComponentLink'
153
153
  }
@@ -163,31 +163,31 @@ var _default = exports.default = {
163
163
  }
164
164
  }, {
165
165
  title: 'Do your own fundraising',
166
- url: 'https://www.comicrelief.com/404/',
166
+ url: 'https://www.comicrelief.com/404#7',
167
167
  internal: {
168
168
  type: 'ContentfulComponentLink'
169
169
  }
170
170
  }, {
171
171
  title: 'Regular Donations',
172
- url: 'https://www.comicrelief.com/404/',
172
+ url: 'https://www.comicrelief.com/404#8',
173
173
  internal: {
174
174
  type: 'ContentfulComponentLink'
175
175
  }
176
176
  }, {
177
177
  title: 'Run for Comic Relief',
178
- url: 'https://www.comicrelief.com/404/',
178
+ url: 'https://www.comicrelief.com/404#9',
179
179
  internal: {
180
180
  type: 'ContentfulComponentLink'
181
181
  }
182
182
  }, {
183
183
  title: 'How to pay in your fundraising money',
184
- url: 'https://www.comicrelief.com/404/',
184
+ url: 'https://www.comicrelief.com/404#10',
185
185
  internal: {
186
186
  type: 'ContentfulComponentLink'
187
187
  }
188
188
  }, {
189
189
  title: 'Partners',
190
- url: 'https://www.comicrelief.com/404/',
190
+ url: 'https://www.comicrelief.com/404#11',
191
191
  internal: {
192
192
  type: 'ContentfulComponentLink'
193
193
  }
@@ -203,31 +203,31 @@ var _default = exports.default = {
203
203
  }
204
204
  }, {
205
205
  title: 'Do your own fundraising',
206
- url: 'https://www.comicrelief.com/404/',
206
+ url: 'https://www.comicrelief.com/404#12',
207
207
  internal: {
208
208
  type: 'ContentfulComponentLink'
209
209
  }
210
210
  }, {
211
211
  title: 'Regular Donations',
212
- url: 'https://www.comicrelief.com/404/',
212
+ url: 'https://www.comicrelief.com/404#13',
213
213
  internal: {
214
214
  type: 'ContentfulComponentLink'
215
215
  }
216
216
  }, {
217
217
  title: 'Run for Comic Relief',
218
- url: 'https://www.comicrelief.com/404/',
218
+ url: 'https://www.comicrelief.com/404#14',
219
219
  internal: {
220
220
  type: 'ContentfulComponentLink'
221
221
  }
222
222
  }, {
223
223
  title: 'How to pay in your fundraising money',
224
- url: 'https://www.comicrelief.com/404/',
224
+ url: 'https://www.comicrelief.com/404#15',
225
225
  internal: {
226
226
  type: 'ContentfulComponentLink'
227
227
  }
228
228
  }, {
229
229
  title: 'Partners',
230
- url: 'https://www.comicrelief.com/404/',
230
+ url: 'https://www.comicrelief.com/404#16',
231
231
  internal: {
232
232
  type: 'ContentfulComponentLink'
233
233
  }
@@ -21,7 +21,7 @@ var _default = exports.default = {
21
21
  id: 'group2',
22
22
  links: [{
23
23
  title: 'Red Nose Day',
24
- path: 'https://www.comicrelief.com/rednoseday/schools',
24
+ path: 'https://www.comicrelief.com/rednoseday/schools#5',
25
25
  internal: {
26
26
  type: 'ContentfulPageLandingPage'
27
27
  }
@@ -51,7 +51,7 @@ var _default = exports.default = {
51
51
  id: 'eaec51921-bbb3-5e8d-b966-c53fff34998b5',
52
52
  links: [{
53
53
  title: 'Single menu link',
54
- path: 'https://www.comicrelief.com/rednoseday/schools',
54
+ path: 'https://www.comicrelief.com/rednoseday/schools#6',
55
55
  internal: {
56
56
  type: 'ContentfulPageLandingPage'
57
57
  }
@@ -77,7 +77,7 @@ var _default = exports.default = {
77
77
  id: 'eaec5191-bbb3-5e8d-b966-c53fff34998b',
78
78
  links: [{
79
79
  title: 'Schools & youth',
80
- path: 'https://www.comicrelief.com/rednoseday/schools',
80
+ path: 'https://www.comicrelief.com/rednoseday/schools#7',
81
81
  internal: {
82
82
  type: 'ContentfulPageLandingPage'
83
83
  }
@@ -12,7 +12,7 @@ var _Header = require("./Header2025.style");
12
12
  const Header2025 = _ref => {
13
13
  let {
14
14
  navItems = {},
15
- metaIcons,
15
+ metaIcons = undefined,
16
16
  campaign = 'Comic Relief',
17
17
  donateButton = null,
18
18
  characterLimit = 60,
@@ -32,7 +32,7 @@ const Header2025 = _ref => {
32
32
  metaIcons: metaIcons,
33
33
  donateButton: donateButton,
34
34
  characterLimit: characterLimit
35
- }), /*#__PURE__*/_react.default.createElement(_Header.ButtonsAndIcons, null, /*#__PURE__*/_react.default.createElement(_Header.Header2025MetaIcons, {
35
+ }), /*#__PURE__*/_react.default.createElement(_Header.ButtonsAndIcons, null, metaIcons && /*#__PURE__*/_react.default.createElement(_Header.Header2025MetaIcons, {
36
36
  isHeader: true,
37
37
  "data-testid": "meta-icons--desktop"
38
38
  }, metaIcons), /*#__PURE__*/_react.default.createElement(_Header.DonateButtonWrapperTop, {
@@ -478,7 +478,7 @@ const [success, setSuccess] = React.useState(false);
478
478
 
479
479
  <>
480
480
  <Header2025
481
- showBoxShadow="true"
481
+ showBoxShadow
482
482
  characterLimit={50}
483
483
  navItems={data}
484
484
  rotate="true"
@@ -590,7 +590,7 @@ const [success, setSuccess] = React.useState(false);
590
590
 
591
591
  <>
592
592
  <Header2025
593
- showBoxShadow="true"
593
+ showBoxShadow
594
594
  characterLimit={50}
595
595
  navItems={data}
596
596
  rotate="true"
@@ -166,7 +166,7 @@ const HeaderNav2025 = _ref => {
166
166
  navHelper: _navHelper.NavHelper,
167
167
  allowListed: _allowListed.default,
168
168
  internalLinkHelper: _internalLinkHelper.InternalLinkHelper
169
- }) : null), /*#__PURE__*/_react.default.createElement(_HeaderNav.NavMetaIcons, {
169
+ }) : null), metaIcons && /*#__PURE__*/_react.default.createElement(_HeaderNav.NavMetaIcons, {
170
170
  isHeader: true,
171
171
  "data-testid": "meta-icons--mobile"
172
172
  }, metaIcons), /*#__PURE__*/_react.default.createElement(_HeaderNav.DonateButtonWrapperBottom, {
@@ -39,25 +39,25 @@ var _default = exports.default = {
39
39
  id: 'group2',
40
40
  links: [{
41
41
  title: 'Red Nose Day',
42
- path: 'https://www.comicrelief.com/rednoseday/schools',
42
+ path: '¢',
43
43
  internal: {
44
44
  type: 'ContentfulPageLandingPage'
45
45
  }
46
46
  }, {
47
47
  title: 'The New Red Nose',
48
- path: 'https://www.comicrelief.com/rednoseday/schools',
48
+ path: 'https://www.comicrelief.com/rednoseday/schools#8',
49
49
  internal: {
50
50
  type: 'ContentfulPageLandingPage'
51
51
  }
52
52
  }, {
53
53
  title: 'Schools',
54
- path: 'https://www.comicrelief.com/rednoseday/schools',
54
+ path: 'https://www.comicrelief.com/rednoseday/schools#9',
55
55
  internal: {
56
56
  type: 'ContentfulPageLandingPage'
57
57
  }
58
58
  }, {
59
59
  title: 'The Red Nose Day Nosey Awards',
60
- path: 'https://www.comicrelief.com/rednoseday/schools',
60
+ path: 'https://www.comicrelief.com/rednoseday/schools#10',
61
61
  internal: {
62
62
  type: 'ContentfulPageLandingPage'
63
63
  }
@@ -73,25 +73,25 @@ var _default = exports.default = {
73
73
  }
74
74
  }, {
75
75
  title: 'Our Funding Practice',
76
- path: 'https://www.comicrelief.com/our-legacy',
76
+ path: 'https://www.comicrelief.com/our-legacy#1',
77
77
  internal: {
78
78
  type: 'ContentfulPageLandingPage'
79
79
  }
80
80
  }, {
81
81
  title: 'Funding opportunities',
82
- path: 'https://www.comicrelief.com/our-legacy',
82
+ path: 'https://www.comicrelief.com/our-legacy#2',
83
83
  internal: {
84
84
  type: 'ContentfulPageLandingPage'
85
85
  }
86
86
  }, {
87
87
  title: 'Our Funding strategy',
88
- path: 'https://www.comicrelief.com/our-legacy',
88
+ path: 'https://www.comicrelief.com/our-legacy#3',
89
89
  internal: {
90
90
  type: 'ContentfulPageLandingPage'
91
91
  }
92
92
  }, {
93
93
  title: 'Managing your funding',
94
- path: 'https://www.comicrelief.com/our-legacy',
94
+ path: 'https://www.comicrelief.com/our-legacy#4',
95
95
  internal: {
96
96
  type: 'ContentfulPageLandingPage'
97
97
  }
@@ -123,31 +123,31 @@ var _default = exports.default = {
123
123
  }
124
124
  }, {
125
125
  title: 'Do your own fundraising',
126
- url: 'https://www.comicrelief.com/404/',
126
+ url: 'https://www.comicrelief.com/404#17',
127
127
  internal: {
128
128
  type: 'ContentfulComponentLink'
129
129
  }
130
130
  }, {
131
131
  title: 'Regular Donations',
132
- url: 'https://www.comicrelief.com/404/',
132
+ url: 'https://www.comicrelief.com/404#18',
133
133
  internal: {
134
134
  type: 'ContentfulComponentLink'
135
135
  }
136
136
  }, {
137
137
  title: 'Run for Comic Relief',
138
- url: 'https://www.comicrelief.com/404/',
138
+ url: 'https://www.comicrelief.com/404#19',
139
139
  internal: {
140
140
  type: 'ContentfulComponentLink'
141
141
  }
142
142
  }, {
143
143
  title: 'How to pay in your fundraising money',
144
- url: 'https://www.comicrelief.com/404/',
144
+ url: 'https://www.comicrelief.com/404#20',
145
145
  internal: {
146
146
  type: 'ContentfulComponentLink'
147
147
  }
148
148
  }, {
149
149
  title: 'Partners',
150
- url: 'https://www.comicrelief.com/404/',
150
+ url: 'https://www.comicrelief.com/404#21',
151
151
  internal: {
152
152
  type: 'ContentfulComponentLink'
153
153
  }
@@ -163,31 +163,31 @@ var _default = exports.default = {
163
163
  }
164
164
  }, {
165
165
  title: 'Do your own fundraising',
166
- url: 'https://www.comicrelief.com/404/',
166
+ url: 'https://www.comicrelief.com/404#21',
167
167
  internal: {
168
168
  type: 'ContentfulComponentLink'
169
169
  }
170
170
  }, {
171
171
  title: 'Regular Donations',
172
- url: 'https://www.comicrelief.com/404/',
172
+ url: 'https://www.comicrelief.com/404#22',
173
173
  internal: {
174
174
  type: 'ContentfulComponentLink'
175
175
  }
176
176
  }, {
177
177
  title: 'Run for Comic Relief',
178
- url: 'https://www.comicrelief.com/404/',
178
+ url: 'https://www.comicrelief.com/404#23',
179
179
  internal: {
180
180
  type: 'ContentfulComponentLink'
181
181
  }
182
182
  }, {
183
183
  title: 'How to pay in your fundraising money',
184
- url: 'https://www.comicrelief.com/404/',
184
+ url: 'https://www.comicrelief.com/404#24',
185
185
  internal: {
186
186
  type: 'ContentfulComponentLink'
187
187
  }
188
188
  }, {
189
189
  title: 'Partners',
190
- url: 'https://www.comicrelief.com/404/',
190
+ url: 'https://www.comicrelief.com/404#25',
191
191
  internal: {
192
192
  type: 'ContentfulComponentLink'
193
193
  }
@@ -203,31 +203,31 @@ var _default = exports.default = {
203
203
  }
204
204
  }, {
205
205
  title: 'Do your own fundraising',
206
- url: 'https://www.comicrelief.com/404/',
206
+ url: 'https://www.comicrelief.com/404#26',
207
207
  internal: {
208
208
  type: 'ContentfulComponentLink'
209
209
  }
210
210
  }, {
211
211
  title: 'Regular Donations',
212
- url: 'https://www.comicrelief.com/404/',
212
+ url: 'https://www.comicrelief.com/404#27',
213
213
  internal: {
214
214
  type: 'ContentfulComponentLink'
215
215
  }
216
216
  }, {
217
217
  title: 'Run for Comic Relief',
218
- url: 'https://www.comicrelief.com/404/',
218
+ url: 'https://www.comicrelief.com/404#28',
219
219
  internal: {
220
220
  type: 'ContentfulComponentLink'
221
221
  }
222
222
  }, {
223
223
  title: 'How to pay in your fundraising money',
224
- url: 'https://www.comicrelief.com/404/',
224
+ url: 'https://www.comicrelief.com/404#29',
225
225
  internal: {
226
226
  type: 'ContentfulComponentLink'
227
227
  }
228
228
  }, {
229
229
  title: 'Partners',
230
- url: 'https://www.comicrelief.com/404/',
230
+ url: 'https://www.comicrelief.com/404#30',
231
231
  internal: {
232
232
  type: 'ContentfulComponentLink'
233
233
  }
@@ -21,7 +21,7 @@ var _default = exports.default = {
21
21
  id: 'group2',
22
22
  links: [{
23
23
  title: 'Red Nose Day',
24
- path: 'https://www.comicrelief.com/rednoseday/schools',
24
+ path: 'https://www.comicrelief.com/rednoseday/schools#11',
25
25
  internal: {
26
26
  type: 'ContentfulPageLandingPage'
27
27
  }
@@ -21,7 +21,7 @@ var _default = exports.default = {
21
21
  id: 'group2',
22
22
  links: [{
23
23
  title: 'Red Nose Day',
24
- path: 'https://www.comicrelief.com/rednoseday/schools',
24
+ path: 'https://www.comicrelief.com/rednoseday/schools#12',
25
25
  internal: {
26
26
  type: 'ContentfulPageLandingPage'
27
27
  }
@@ -117,7 +117,7 @@ var _default = exports.default = {
117
117
  }
118
118
  }, {
119
119
  title: 'Partners',
120
- url: 'https://www.comicrelief.com/404/',
120
+ url: 'https://www.comicrelief.com/404#31',
121
121
  internal: {
122
122
  type: 'ContentfulComponentLink'
123
123
  }
@@ -39,25 +39,25 @@ var _default = exports.default = {
39
39
  id: 'group2',
40
40
  links: [{
41
41
  title: 'Red Nose Day',
42
- path: 'https://www.comicrelief.com/rednoseday/schools',
42
+ path: 'https://www.comicrelief.com/rednoseday/schools#13',
43
43
  internal: {
44
44
  type: 'ContentfulPageLandingPage'
45
45
  }
46
46
  }, {
47
47
  title: 'The New Red Nose',
48
- path: 'https://www.comicrelief.com/rednoseday/schools',
48
+ path: 'https://www.comicrelief.com/rednoseday/schools#14',
49
49
  internal: {
50
50
  type: 'ContentfulPageLandingPage'
51
51
  }
52
52
  }, {
53
53
  title: 'Schools',
54
- path: 'https://www.comicrelief.com/rednoseday/schools',
54
+ path: 'https://www.comicrelief.com/rednoseday/schools#15',
55
55
  internal: {
56
56
  type: 'ContentfulPageLandingPage'
57
57
  }
58
58
  }, {
59
59
  title: 'The Red Nose Day Nosey Awards',
60
- path: 'https://www.comicrelief.com/rednoseday/schools',
60
+ path: 'https://www.comicrelief.com/rednoseday/schools#16',
61
61
  internal: {
62
62
  type: 'ContentfulPageLandingPage'
63
63
  }
@@ -73,25 +73,25 @@ var _default = exports.default = {
73
73
  }
74
74
  }, {
75
75
  title: 'Our Funding Practice',
76
- path: 'https://www.comicrelief.com/our-legacy',
76
+ path: 'https://www.comicrelief.com/our-legacy#5',
77
77
  internal: {
78
78
  type: 'ContentfulPageLandingPage'
79
79
  }
80
80
  }, {
81
81
  title: 'Funding opportunities',
82
- path: 'https://www.comicrelief.com/our-legacy',
82
+ path: 'https://www.comicrelief.com/our-legacy#6',
83
83
  internal: {
84
84
  type: 'ContentfulPageLandingPage'
85
85
  }
86
86
  }, {
87
87
  title: 'Our Funding strategy',
88
- path: 'https://www.comicrelief.com/our-legacy',
88
+ path: 'https://www.comicrelief.com/our-legacy#7',
89
89
  internal: {
90
90
  type: 'ContentfulPageLandingPage'
91
91
  }
92
92
  }, {
93
93
  title: 'Managing your funding',
94
- path: 'https://www.comicrelief.com/our-legacy',
94
+ path: 'https://www.comicrelief.com/our-legacy#8',
95
95
  internal: {
96
96
  type: 'ContentfulPageLandingPage'
97
97
  }
@@ -123,31 +123,31 @@ var _default = exports.default = {
123
123
  }
124
124
  }, {
125
125
  title: 'Do your own fundraising',
126
- url: 'https://www.comicrelief.com/404/',
126
+ url: 'https://www.comicrelief.com/404#32',
127
127
  internal: {
128
128
  type: 'ContentfulComponentLink'
129
129
  }
130
130
  }, {
131
131
  title: 'Regular Donations',
132
- url: 'https://www.comicrelief.com/404/',
132
+ url: 'https://www.comicrelief.com/404#33',
133
133
  internal: {
134
134
  type: 'ContentfulComponentLink'
135
135
  }
136
136
  }, {
137
137
  title: 'Run for Comic Relief',
138
- url: 'https://www.comicrelief.com/404/',
138
+ url: 'https://www.comicrelief.com/404#34',
139
139
  internal: {
140
140
  type: 'ContentfulComponentLink'
141
141
  }
142
142
  }, {
143
143
  title: 'How to pay in your fundraising money',
144
- url: 'https://www.comicrelief.com/404/',
144
+ url: 'https://www.comicrelief.com/404#35',
145
145
  internal: {
146
146
  type: 'ContentfulComponentLink'
147
147
  }
148
148
  }, {
149
149
  title: 'Partners',
150
- url: 'https://www.comicrelief.com/404/',
150
+ url: 'https://www.comicrelief.com/404#36',
151
151
  internal: {
152
152
  type: 'ContentfulComponentLink'
153
153
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.48.0",
4
+ "version": "8.48.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -141,6 +141,7 @@ const ItalicText = styled(Text).attrs({weight: 'normal'})`
141
141
  <>
142
142
  <h4>Input with Description:</h4>
143
143
  <Input
144
+ name="input-with-description"
144
145
  placeholder="I have a description"
145
146
  type="text"
146
147
  label="My Great Input"
@@ -25,7 +25,9 @@ const CTAMultiCard = ({ data }) => {
25
25
  cards,
26
26
  backgroundColour: bgCards,
27
27
  layout,
28
- carouselOfCards
28
+ carouselOfCards,
29
+ paddingAbove,
30
+ paddingBelow
29
31
  } = data;
30
32
 
31
33
  if (!cards || !Array.isArray(cards) || cards.length === 0) {
@@ -43,6 +45,8 @@ const CTAMultiCard = ({ data }) => {
43
45
  backgroundColor={cardsBackground}
44
46
  columns={columns}
45
47
  isCarousel={carouselOfCards}
48
+ paddingAbove={paddingAbove}
49
+ paddingBelow={paddingBelow}
46
50
  >
47
51
  {cards.map(card => (
48
52
  <SingleCard
@@ -87,7 +91,9 @@ CTAMultiCard.propTypes = {
87
91
  ).isRequired,
88
92
  backgroundColour: PropTypes.string,
89
93
  layout: PropTypes.string,
90
- carouselOfCards: PropTypes.bool
94
+ carouselOfCards: PropTypes.bool,
95
+ paddingAbove: PropTypes.string,
96
+ paddingBelow: PropTypes.string
91
97
  }).isRequired
92
98
  };
93
99
 
@@ -14,7 +14,7 @@ The component expects pre-rendered content to be passed in the `body` field of e
14
14
 
15
15
  ### CTAMultiCard: Desktop Grid View (3 columns)
16
16
 
17
- **NB: In mobile view, this example displays as a carousel.**
17
+ **NB: In mobile view, this example displays as a carousel. This example also demonstrates no vertical padding via `paddingAbove` / `paddingBelow` set to `0rem`, so it will sit flush to the surrounding container.**
18
18
 
19
19
  ```js
20
20
  import CTAMultiCard from './CTAMultiCard';
@@ -43,17 +43,19 @@ const data = {
43
43
  ...exampleData,
44
44
  cards: cardsWithRenderedBody,
45
45
  carouselOfCards: true,
46
- backgroundColour: "transparent"
46
+ backgroundColour: "transparent",
47
+ paddingAbove: '0rem',
48
+ paddingBelow: '0rem'
47
49
  };
48
50
 
49
- <div style={{ padding: '2rem', background: '#E1E2E3' }}>
51
+ <div style={{ background: '#E1E2E3' }}>
50
52
  <CTAMultiCard data={data} />
51
53
  </div>;
52
54
  ```
53
55
 
54
56
  ### CTAMultiCard: Desktop Grid View (2 columns)
55
57
 
56
- **NB: One card contains a lot of lorem ipsum text to demonstrate that all cards will match the height of the tallest sibling card. In mobile view, this example displays as a vertical stack (non-carousel).**
58
+ **NB: One card contains a lot of lorem ipsum text to demonstrate that all cards will match the height of the tallest sibling card. In mobile view, this example displays as a vertical stack (non-carousel). This example also demonstrates larger vertical padding via `paddingAbove` / `paddingBelow` set to `4rem`, so it will appear with more space above and below the cards.**
57
59
 
58
60
  ```js
59
61
  import CTAMultiCard from './CTAMultiCard';
@@ -95,10 +97,12 @@ const dataWithLongText = {
95
97
  layout: "2 columns",
96
98
  carouselOfCards: false,
97
99
  backgroundColour: "Transparent",
98
- cards: cardsWithRenderedBody
100
+ cards: cardsWithRenderedBody,
101
+ paddingAbove: '4rem',
102
+ paddingBelow: '4rem'
99
103
  };
100
104
 
101
- <div style={{ padding: '2rem', background: '#E1E2E3' }}>
105
+ <div style={{ background: '#E1E2E3' }}>
102
106
  <CTAMultiCard data={dataWithLongText} />
103
107
  </div>;
104
108
  ```