@comicrelief/component-library 8.1.1 → 8.2.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/.eslintrc +1 -0
- package/dist/components/Atoms/Button/Button.js +3 -7
- package/dist/components/Atoms/ButtonWithStates/ButtonWithStates.js +3 -8
- package/dist/components/Atoms/Checkbox/Checkbox.js +2 -6
- package/dist/components/Atoms/Confetti/Confetti.js +2 -5
- package/dist/components/Atoms/Icons/Arrow.js +4 -10
- package/dist/components/Atoms/Icons/AtSign.js +3 -8
- package/dist/components/Atoms/Icons/Chevron.js +4 -10
- package/dist/components/Atoms/Icons/Download.js +3 -8
- package/dist/components/Atoms/Icons/External.js +3 -8
- package/dist/components/Atoms/Icons/Favourite.js +3 -8
- package/dist/components/Atoms/Icons/Internal.js +3 -8
- package/dist/components/Atoms/Input/Input.js +9 -17
- package/dist/components/Atoms/Label/Label.js +3 -12
- package/dist/components/Atoms/Link/Link.js +9 -18
- package/dist/components/Atoms/Logo/Logo.js +4 -11
- package/dist/components/Atoms/Pagination/Pagination.js +39 -52
- package/dist/components/Atoms/Picture/Picture.js +10 -22
- package/dist/components/Atoms/RichText/RichText.js +2 -6
- package/dist/components/Atoms/Select/Select.js +6 -16
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +2 -3
- package/dist/components/Atoms/Text/Text.js +12 -17
- package/dist/components/Atoms/TextArea/TextArea.js +6 -11
- package/dist/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +2 -9
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +8 -18
- package/dist/components/Molecules/Banner/Banner.js +1 -4
- package/dist/components/Molecules/Box/Box.js +6 -17
- package/dist/components/Molecules/Card/Card.js +11 -24
- package/dist/components/Molecules/CardDs/CardDs.js +11 -24
- package/dist/components/Molecules/Chip/Chip.js +2 -6
- package/dist/components/Molecules/Countdown/Countdown.js +3 -8
- package/dist/components/Molecules/Logos/Logos.js +1 -4
- package/dist/components/Molecules/Lookup/Lookup.js +2 -6
- package/dist/components/Molecules/Promo/Promo.js +17 -36
- package/dist/components/Molecules/SchoolLookup/SchoolLookup.js +4 -10
- package/dist/components/Molecules/SearchInput/SearchInput.js +1 -4
- package/dist/components/Molecules/SearchResult/SearchResult.js +8 -17
- package/dist/components/Molecules/ShareButton/ShareButton.js +3 -8
- package/dist/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js +1 -4
- package/dist/components/Molecules/SingleMessage/SingleMessage.js +15 -32
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.js +13 -28
- package/dist/components/Molecules/Typeahead/Typeahead.js +3 -8
- package/dist/components/Molecules/VideoBanner/VideoBanner.js +5 -12
- package/dist/components/Organisms/Donate/Donate.js +31 -65
- package/dist/components/Organisms/Donate/Donate.md +19 -19
- package/dist/components/Organisms/Donate/Form/Form.js +6 -19
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.js +1 -4
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.style.js +3 -3
- package/dist/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +5 -10
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +10 -10
- package/dist/components/Organisms/EmailSignUp/_EmailSignUp.js +4 -9
- package/dist/components/Organisms/EmailSignUp/_TextInput.js +3 -8
- package/dist/components/Organisms/Footer/Footer.js +6 -11
- package/dist/components/Organisms/Footer/Nav/Nav.js +1 -4
- package/dist/components/Organisms/Header/Header.js +2 -6
- package/dist/components/Organisms/Header/Nav/Nav.js +1 -4
- package/dist/components/Organisms/ImpactSlider/ImpactSlider.js +3 -8
- package/dist/components/Organisms/MarketingPreferencesDS/_CheckAnswer.js +2 -6
- package/dist/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +6 -16
- package/dist/components/Organisms/MarketingPreferencesDS/_TextInput.js +3 -8
- package/dist/components/Organisms/Membership/Form/Form.js +1 -5
- package/dist/components/Organisms/Membership/Membership.js +9 -19
- package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +3 -8
- package/package.json +1 -1
- package/src/components/Atoms/Button/Button.js +3 -8
- package/src/components/Atoms/ButtonWithStates/ButtonWithStates.js +1 -7
- package/src/components/Atoms/Checkbox/Checkbox.js +1 -6
- package/src/components/Atoms/Confetti/Confetti.js +1 -5
- package/src/components/Atoms/Icons/Arrow.js +1 -8
- package/src/components/Atoms/Icons/AtSign.js +1 -7
- package/src/components/Atoms/Icons/Chevron.js +1 -8
- package/src/components/Atoms/Icons/Download.js +1 -7
- package/src/components/Atoms/Icons/External.js +1 -7
- package/src/components/Atoms/Icons/Favourite.js +1 -7
- package/src/components/Atoms/Icons/Internal.js +1 -7
- package/src/components/Atoms/Input/Input.js +9 -18
- package/src/components/Atoms/Label/Label.js +3 -13
- package/src/components/Atoms/Link/Link.js +9 -19
- package/src/components/Atoms/Logo/Logo.js +1 -8
- package/src/components/Atoms/Pagination/Pagination.js +38 -51
- package/src/components/Atoms/Picture/Picture.js +10 -23
- package/src/components/Atoms/RichText/RichText.js +1 -6
- package/src/components/Atoms/Select/Select.js +6 -17
- package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -5
- package/src/components/Atoms/Text/Text.js +4 -13
- package/src/components/Atoms/TextArea/TextArea.js +2 -9
- package/src/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +2 -11
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +8 -19
- package/src/components/Molecules/Banner/Banner.js +1 -5
- package/src/components/Molecules/Box/Box.js +6 -18
- package/src/components/Molecules/Card/Card.js +11 -25
- package/src/components/Molecules/CardDs/CardDs.js +11 -25
- package/src/components/Molecules/Chip/Chip.js +1 -6
- package/src/components/Molecules/Countdown/Countdown.js +1 -7
- package/src/components/Molecules/Logos/Logos.js +1 -5
- package/src/components/Molecules/Lookup/Lookup.js +2 -7
- package/src/components/Molecules/Promo/Promo.js +17 -37
- package/src/components/Molecules/SchoolLookup/SchoolLookup.js +4 -11
- package/src/components/Molecules/SearchInput/SearchInput.js +1 -5
- package/src/components/Molecules/SearchResult/SearchResult.js +8 -18
- package/src/components/Molecules/ShareButton/ShareButton.js +1 -7
- package/src/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js +4 -5
- package/src/components/Molecules/SingleMessage/SingleMessage.js +15 -33
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.js +13 -29
- package/src/components/Molecules/Typeahead/Typeahead.js +3 -9
- package/src/components/Molecules/VideoBanner/VideoBanner.js +7 -9
- package/src/components/Organisms/Donate/Donate.js +32 -67
- package/src/components/Organisms/Donate/Donate.md +19 -19
- package/src/components/Organisms/Donate/Form/Form.js +6 -22
- package/src/components/Organisms/Donate/GivingSelector/GivingSelector.js +1 -5
- package/src/components/Organisms/Donate/GivingSelector/GivingSelector.style.js +3 -3
- package/src/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +5 -11
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +10 -10
- package/src/components/Organisms/EmailSignUp/_EmailSignUp.js +3 -9
- package/src/components/Organisms/EmailSignUp/_TextInput.js +3 -9
- package/src/components/Organisms/Footer/Footer.js +2 -10
- package/src/components/Organisms/Footer/Nav/Nav.js +1 -5
- package/src/components/Organisms/Header/Header.js +1 -6
- package/src/components/Organisms/Header/Nav/Nav.js +1 -5
- package/src/components/Organisms/ImpactSlider/ImpactSlider.js +1 -7
- package/src/components/Organisms/MarketingPreferencesDS/_CheckAnswer.js +1 -6
- package/src/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +5 -17
- package/src/components/Organisms/MarketingPreferencesDS/_TextInput.js +1 -7
- package/src/components/Organisms/Membership/Form/Form.js +1 -5
- package/src/components/Organisms/Membership/Membership.js +9 -19
- package/src/components/Organisms/Membership/MoneyBox/MoneyBox.js +3 -9
|
@@ -15,14 +15,14 @@ const MIN_CHARS_FOR_FETCH = 2;
|
|
|
15
15
|
const Typeahead = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
16
16
|
let {
|
|
17
17
|
optionFetcher,
|
|
18
|
-
optionParser,
|
|
18
|
+
optionParser = null,
|
|
19
19
|
onSelect,
|
|
20
20
|
id,
|
|
21
21
|
label,
|
|
22
22
|
name,
|
|
23
|
-
dropdownInstruction,
|
|
23
|
+
dropdownInstruction = null,
|
|
24
24
|
notFoundMessage,
|
|
25
|
-
fetchErrorHandler,
|
|
25
|
+
fetchErrorHandler = () => 'Sorry, there was an unexpected error. Please try again',
|
|
26
26
|
...rest
|
|
27
27
|
} = _ref;
|
|
28
28
|
const [options, setOptions] = (0, _react.useState)([]);
|
|
@@ -80,9 +80,4 @@ const Typeahead = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
80
80
|
ref: ref
|
|
81
81
|
}));
|
|
82
82
|
});
|
|
83
|
-
Typeahead.defaultProps = {
|
|
84
|
-
dropdownInstruction: null,
|
|
85
|
-
optionParser: null,
|
|
86
|
-
fetchErrorHandler: () => 'Sorry, there was an unexpected error. Please try again'
|
|
87
|
-
};
|
|
88
83
|
var _default = exports.default = Typeahead;
|
|
@@ -18,11 +18,11 @@ const VideoBanner = _ref => {
|
|
|
18
18
|
let {
|
|
19
19
|
video,
|
|
20
20
|
poster,
|
|
21
|
-
controls,
|
|
22
|
-
autoPlay,
|
|
23
|
-
loop,
|
|
24
|
-
muted,
|
|
25
|
-
showPosterAfterPlaying
|
|
21
|
+
controls = false,
|
|
22
|
+
autoPlay = true,
|
|
23
|
+
loop = false,
|
|
24
|
+
muted = true,
|
|
25
|
+
showPosterAfterPlaying = true
|
|
26
26
|
} = _ref;
|
|
27
27
|
// Use the prop as our default
|
|
28
28
|
const [isMuted, setIsMuted] = (0, _react.useState)(muted);
|
|
@@ -56,11 +56,4 @@ const VideoBanner = _ref => {
|
|
|
56
56
|
muted: isMuted
|
|
57
57
|
}, "Your browser does not support video.");
|
|
58
58
|
};
|
|
59
|
-
VideoBanner.defaultProps = {
|
|
60
|
-
showPosterAfterPlaying: true,
|
|
61
|
-
controls: false,
|
|
62
|
-
autoPlay: true,
|
|
63
|
-
loop: false,
|
|
64
|
-
muted: true
|
|
65
|
-
};
|
|
66
59
|
var _default = exports.default = VideoBanner;
|
|
@@ -16,41 +16,40 @@ var _utils = require("./_utils");
|
|
|
16
16
|
var _Donate = require("./Donate.style");
|
|
17
17
|
const Donate = _ref => {
|
|
18
18
|
let {
|
|
19
|
-
alt,
|
|
19
|
+
alt = '',
|
|
20
|
+
data = {},
|
|
21
|
+
formAlignRight = true,
|
|
22
|
+
imageLow = null,
|
|
23
|
+
image = null,
|
|
24
|
+
images = null,
|
|
25
|
+
mobileImageLow = null,
|
|
26
|
+
mobileImage = null,
|
|
27
|
+
mobileImages = null,
|
|
28
|
+
mobileAlt = '',
|
|
29
|
+
desktopOverlayColor = 'transparent',
|
|
30
|
+
mobileBackgroundColor = 'blue_dark',
|
|
31
|
+
submitButtonColor = 'red',
|
|
32
|
+
textColor = 'white',
|
|
33
|
+
mbshipID = null,
|
|
34
|
+
otherAmountText = 'will help us fund amazing projects in the UK and around the world.',
|
|
35
|
+
subtitle = '',
|
|
36
|
+
noMoneyBuys = false,
|
|
37
|
+
PopUpText = 'Help us deliver long-term impact by converting your single donation into a monthly gift.',
|
|
38
|
+
chooseAmountText = '',
|
|
39
|
+
isDesktopOverride = null,
|
|
40
|
+
otherAmountValue = null,
|
|
41
|
+
title = null,
|
|
42
|
+
additionalSingleCopy = null,
|
|
43
|
+
additionalMonthlyCopy = null,
|
|
44
|
+
defaultGivingType = null,
|
|
45
|
+
monthlyTitle = '',
|
|
46
|
+
monthlySubtitle = '',
|
|
20
47
|
cartID,
|
|
21
48
|
clientID,
|
|
22
|
-
|
|
23
|
-
mobileBackgroundColor,
|
|
24
|
-
submitButtonColor,
|
|
25
|
-
textColor,
|
|
49
|
+
paddingOption = null,
|
|
26
50
|
donateLink,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
subtitle,
|
|
30
|
-
otherAmountText,
|
|
31
|
-
formAlignRight,
|
|
32
|
-
images,
|
|
33
|
-
image,
|
|
34
|
-
imageLow,
|
|
35
|
-
mobileImages,
|
|
36
|
-
mobileImage,
|
|
37
|
-
mobileImageLow,
|
|
38
|
-
mobileAlt,
|
|
39
|
-
mbshipID,
|
|
40
|
-
noMoneyBuys,
|
|
41
|
-
PopUpText,
|
|
42
|
-
chooseAmountText,
|
|
43
|
-
isDesktopOverride,
|
|
44
|
-
otherAmountValue,
|
|
45
|
-
additionalSingleCopy,
|
|
46
|
-
additionalMonthlyCopy,
|
|
47
|
-
defaultGivingType,
|
|
48
|
-
monthlyTitle,
|
|
49
|
-
monthlySubtitle,
|
|
50
|
-
paddingOption,
|
|
51
|
-
// Just to keep the function call character length under control
|
|
52
|
-
monthlyChooseAmountText: monthlyChoose,
|
|
53
|
-
monthlyOtherAmountText: monthlyOther
|
|
51
|
+
monthlyChooseAmountText: monthlyChoose = '',
|
|
52
|
+
monthlyOtherAmountText: monthlyOther = ''
|
|
54
53
|
} = _ref;
|
|
55
54
|
let isDesktop = (0, _reactResponsive.useMediaQuery)({
|
|
56
55
|
query: "(min-width: ".concat(_allBreakpoints.breakpointValues.L, "px)")
|
|
@@ -141,37 +140,4 @@ const Donate = _ref => {
|
|
|
141
140
|
changeGivingType: setGivingType
|
|
142
141
|
})));
|
|
143
142
|
};
|
|
144
|
-
Donate.defaultProps = {
|
|
145
|
-
alt: '',
|
|
146
|
-
data: {},
|
|
147
|
-
formAlignRight: true,
|
|
148
|
-
imageLow: null,
|
|
149
|
-
image: null,
|
|
150
|
-
images: null,
|
|
151
|
-
mobileImageLow: null,
|
|
152
|
-
mobileImage: null,
|
|
153
|
-
mobileImages: null,
|
|
154
|
-
mobileAlt: '',
|
|
155
|
-
desktopOverlayColor: 'transparent',
|
|
156
|
-
mobileBackgroundColor: 'blue_dark',
|
|
157
|
-
submitButtonColor: 'red',
|
|
158
|
-
textColor: 'white',
|
|
159
|
-
mbshipID: null,
|
|
160
|
-
otherAmountText: 'will help us fund amazing projects in the UK and around the world.',
|
|
161
|
-
subtitle: '',
|
|
162
|
-
noMoneyBuys: false,
|
|
163
|
-
PopUpText: 'Help us deliver long-term impact by converting your single donation into a monthly gift.',
|
|
164
|
-
chooseAmountText: '',
|
|
165
|
-
isDesktopOverride: null,
|
|
166
|
-
otherAmountValue: null,
|
|
167
|
-
title: null,
|
|
168
|
-
additionalSingleCopy: null,
|
|
169
|
-
additionalMonthlyCopy: null,
|
|
170
|
-
defaultGivingType: null,
|
|
171
|
-
monthlyTitle: '',
|
|
172
|
-
monthlySubtitle: '',
|
|
173
|
-
monthlyChooseAmountText: '',
|
|
174
|
-
monthlyOtherAmountText: '',
|
|
175
|
-
paddingOption: null
|
|
176
|
-
};
|
|
177
143
|
var _default = exports.default = Donate;
|
|
@@ -11,7 +11,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
11
11
|
alt="Background image"
|
|
12
12
|
mobileBackgroundColor="deep_violet_dark"
|
|
13
13
|
desktopOverlayColor="red"
|
|
14
|
-
submitButtonColor="
|
|
14
|
+
submitButtonColor="blue_donate"
|
|
15
15
|
formAlignRight={true}
|
|
16
16
|
imageLow={desktopPictures.imageLow}
|
|
17
17
|
images={desktopPictures.images}
|
|
@@ -36,7 +36,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
36
36
|
|
|
37
37
|
<Donate
|
|
38
38
|
mobileBackgroundColor="blue_dark"
|
|
39
|
-
submitButtonColor="
|
|
39
|
+
submitButtonColor="blue_donate"
|
|
40
40
|
desktopOverlayColor="blue_dark"
|
|
41
41
|
formAlignRight={false}
|
|
42
42
|
imageLow={desktopPictures.imageLow}
|
|
@@ -64,7 +64,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
64
64
|
|
|
65
65
|
<Donate
|
|
66
66
|
mobileBackgroundColor="blue_dark"
|
|
67
|
-
submitButtonColor="
|
|
67
|
+
submitButtonColor="blue_donate"
|
|
68
68
|
desktopOverlayColor="blue_dark"
|
|
69
69
|
formAlignRight={false}
|
|
70
70
|
imageLow={desktopPictures.imageLow}
|
|
@@ -91,7 +91,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
91
91
|
|
|
92
92
|
<Donate
|
|
93
93
|
mobileBackgroundColor="blue_dark"
|
|
94
|
-
submitButtonColor="
|
|
94
|
+
submitButtonColor="blue_donate"
|
|
95
95
|
desktopOverlayColor="blue_dark"
|
|
96
96
|
formAlignRight={false}
|
|
97
97
|
imageLow={desktopPictures.imageLow}
|
|
@@ -217,7 +217,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
217
217
|
<Donate
|
|
218
218
|
alt="Background image"
|
|
219
219
|
mobileBackgroundColor="transparent"
|
|
220
|
-
submitButtonColor="
|
|
220
|
+
submitButtonColor="blue_donate"
|
|
221
221
|
desktopOverlayColor="transparent"
|
|
222
222
|
formAlignRight={true}
|
|
223
223
|
imageLow={desktopPictures.imageLow}
|
|
@@ -247,7 +247,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
247
247
|
|
|
248
248
|
<Donate
|
|
249
249
|
mobileBackgroundColor="transparent"
|
|
250
|
-
submitButtonColor="
|
|
250
|
+
submitButtonColor="blue_donate"
|
|
251
251
|
formAlignRight={false}
|
|
252
252
|
imageLow={desktopPictures.imageLow}
|
|
253
253
|
images={desktopPictures.images}
|
|
@@ -272,7 +272,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
272
272
|
|
|
273
273
|
<Donate
|
|
274
274
|
mobileBackgroundColor="blue_dark"
|
|
275
|
-
submitButtonColor="
|
|
275
|
+
submitButtonColor="blue_donate"
|
|
276
276
|
formAlignRight={false}
|
|
277
277
|
imageLow={desktopPictures.imageLow}
|
|
278
278
|
images={desktopPictures.images}
|
|
@@ -297,7 +297,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
297
297
|
|
|
298
298
|
<Donate
|
|
299
299
|
mobileBackgroundColor="blue_dark"
|
|
300
|
-
submitButtonColor="
|
|
300
|
+
submitButtonColor="blue_donate"
|
|
301
301
|
formAlignRight={false}
|
|
302
302
|
imageLow={desktopPictures.imageLow}
|
|
303
303
|
images={desktopPictures.images}
|
|
@@ -321,7 +321,7 @@ import data from './dev-data/data-single';
|
|
|
321
321
|
|
|
322
322
|
<Donate
|
|
323
323
|
desktopOverlayColor="blue_dark"
|
|
324
|
-
submitButtonColor="
|
|
324
|
+
submitButtonColor="blue_donate"
|
|
325
325
|
mobileBackgroundColor="blue_dark"
|
|
326
326
|
formAlignRight={false}
|
|
327
327
|
data={data}
|
|
@@ -346,7 +346,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
346
346
|
<Donate
|
|
347
347
|
alt="Background image"
|
|
348
348
|
mobileBackgroundColor="red"
|
|
349
|
-
submitButtonColor="
|
|
349
|
+
submitButtonColor="blue_donate"
|
|
350
350
|
desktopOverlayColor="red"
|
|
351
351
|
formAlignRight={true}
|
|
352
352
|
imageLow={desktopPictures.imageLow}
|
|
@@ -375,7 +375,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
375
375
|
alt="Background image"
|
|
376
376
|
mobileBackgroundColor="deep_violet_dark"
|
|
377
377
|
desktopOverlayColor="red"
|
|
378
|
-
submitButtonColor="
|
|
378
|
+
submitButtonColor="blue_donate"
|
|
379
379
|
formAlignRight={true}
|
|
380
380
|
imageLow={desktopPictures.imageLow}
|
|
381
381
|
images={desktopPictures.images}
|
|
@@ -404,7 +404,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
404
404
|
alt="Background image"
|
|
405
405
|
mobileBackgroundColor="deep_violet_dark"
|
|
406
406
|
desktopOverlayColor="red"
|
|
407
|
-
submitButtonColor="
|
|
407
|
+
submitButtonColor="blue_donate"
|
|
408
408
|
formAlignRight={true}
|
|
409
409
|
imageLow={desktopPictures.imageLow}
|
|
410
410
|
images={desktopPictures.images}
|
|
@@ -432,7 +432,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
432
432
|
alt="Background image"
|
|
433
433
|
mobileBackgroundColor="deep_violet_dark"
|
|
434
434
|
desktopOverlayColor="red"
|
|
435
|
-
submitButtonColor="
|
|
435
|
+
submitButtonColor="blue_donate"
|
|
436
436
|
formAlignRight={true}
|
|
437
437
|
imageLow={desktopPictures.imageLow}
|
|
438
438
|
images={desktopPictures.images}
|
|
@@ -460,7 +460,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
460
460
|
alt="Background image"
|
|
461
461
|
mobileBackgroundColor="deep_violet_dark"
|
|
462
462
|
desktopOverlayColor="red"
|
|
463
|
-
submitButtonColor="
|
|
463
|
+
submitButtonColor="blue_donate"
|
|
464
464
|
formAlignRight={true}
|
|
465
465
|
imageLow={desktopPictures.imageLow}
|
|
466
466
|
images={desktopPictures.images}
|
|
@@ -488,7 +488,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
488
488
|
alt="Background image"
|
|
489
489
|
mobileBackgroundColor="deep_violet_dark"
|
|
490
490
|
desktopOverlayColor="red"
|
|
491
|
-
submitButtonColor="
|
|
491
|
+
submitButtonColor="blue_donate"
|
|
492
492
|
formAlignRight={true}
|
|
493
493
|
imageLow={desktopPictures.imageLow}
|
|
494
494
|
images={desktopPictures.images}
|
|
@@ -515,7 +515,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
515
515
|
alt="Background image"
|
|
516
516
|
mobileBackgroundColor="deep_violet_dark"
|
|
517
517
|
desktopOverlayColor="red"
|
|
518
|
-
submitButtonColor="
|
|
518
|
+
submitButtonColor="blue_donate"
|
|
519
519
|
formAlignRight={true}
|
|
520
520
|
imageLow={desktopPictures.imageLow}
|
|
521
521
|
images={desktopPictures.images}
|
|
@@ -543,7 +543,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
543
543
|
alt="Background image"
|
|
544
544
|
mobileBackgroundColor="deep_violet_dark"
|
|
545
545
|
desktopOverlayColor="red"
|
|
546
|
-
submitButtonColor="
|
|
546
|
+
submitButtonColor="blue_donate"
|
|
547
547
|
formAlignRight={true}
|
|
548
548
|
imageLow={desktopPictures.imageLow}
|
|
549
549
|
images={desktopPictures.images}
|
|
@@ -574,7 +574,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
574
574
|
alt="Background image"
|
|
575
575
|
mobileBackgroundColor="deep_violet_dark"
|
|
576
576
|
desktopOverlayColor="red"
|
|
577
|
-
submitButtonColor="
|
|
577
|
+
submitButtonColor="blue_donate"
|
|
578
578
|
formAlignRight={true}
|
|
579
579
|
imageLow={desktopPictures.imageLow}
|
|
580
580
|
images={desktopPictures.images}
|
|
@@ -605,7 +605,7 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
|
|
|
605
605
|
alt="Background image"
|
|
606
606
|
mobileBackgroundColor="deep_violet_dark"
|
|
607
607
|
desktopOverlayColor="red"
|
|
608
|
-
submitButtonColor="
|
|
608
|
+
submitButtonColor="blue_donate"
|
|
609
609
|
formAlignRight={true}
|
|
610
610
|
imageLow={desktopPictures.imageLow}
|
|
611
611
|
images={desktopPictures.images}
|
|
@@ -24,18 +24,16 @@ const Signup = _ref => {
|
|
|
24
24
|
clientID,
|
|
25
25
|
cartID,
|
|
26
26
|
mbshipID,
|
|
27
|
-
noMoneyBuys,
|
|
27
|
+
noMoneyBuys = false,
|
|
28
28
|
PopUpText,
|
|
29
29
|
chooseAmountText,
|
|
30
30
|
submitButtonColor,
|
|
31
|
-
otherAmountValue,
|
|
32
|
-
additionalSingleCopy,
|
|
33
|
-
additionalMonthlyCopy,
|
|
34
|
-
defaultGivingType,
|
|
35
|
-
monthlyChooseAmountCopy,
|
|
36
|
-
monthlyOtherAmountCopy,
|
|
31
|
+
otherAmountValue = null,
|
|
32
|
+
additionalSingleCopy = null,
|
|
33
|
+
additionalMonthlyCopy = null,
|
|
34
|
+
defaultGivingType = null,
|
|
37
35
|
changeGivingType,
|
|
38
|
-
givingType,
|
|
36
|
+
givingType = null,
|
|
39
37
|
...rest
|
|
40
38
|
} = _ref;
|
|
41
39
|
// const [givingType, setGivingType] = useState();
|
|
@@ -228,15 +226,4 @@ const Signup = _ref => {
|
|
|
228
226
|
ref: buttonRef
|
|
229
227
|
}, renderButtonText()))));
|
|
230
228
|
};
|
|
231
|
-
Signup.defaultProps = {
|
|
232
|
-
noMoneyBuys: false,
|
|
233
|
-
otherAmountValue: null,
|
|
234
|
-
data: {},
|
|
235
|
-
additionalSingleCopy: null,
|
|
236
|
-
additionalMonthlyCopy: null,
|
|
237
|
-
defaultGivingType: null,
|
|
238
|
-
monthlyChooseAmountCopy: null,
|
|
239
|
-
monthlyOtherAmountCopy: null,
|
|
240
|
-
givingType: null
|
|
241
|
-
};
|
|
242
229
|
var _default = exports.default = Signup;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _GivingSelector = require("./GivingSelector.style");
|
|
10
10
|
const GivingSelector = _ref => {
|
|
11
11
|
let {
|
|
12
|
-
givingType,
|
|
12
|
+
givingType = null,
|
|
13
13
|
changeGivingType,
|
|
14
14
|
setPopOpen,
|
|
15
15
|
mbshipID
|
|
@@ -47,7 +47,4 @@ const GivingSelector = _ref => {
|
|
|
47
47
|
htmlFor: "give-monthly--".concat(mbshipID)
|
|
48
48
|
}, "Monthly"), /*#__PURE__*/_react.default.createElement(_GivingSelector.Switch, null)));
|
|
49
49
|
};
|
|
50
|
-
GivingSelector.defaultProps = {
|
|
51
|
-
givingType: null
|
|
52
|
-
};
|
|
53
50
|
var _default = exports.default = GivingSelector;
|
|
@@ -16,7 +16,7 @@ const Switch = exports.Switch = _styledComponents.default.span.withConfig({
|
|
|
16
16
|
let {
|
|
17
17
|
theme
|
|
18
18
|
} = _ref;
|
|
19
|
-
return theme.color('
|
|
19
|
+
return theme.color('blue_donate');
|
|
20
20
|
});
|
|
21
21
|
const Wrapper = exports.Wrapper = _styledComponents.default.div.withConfig({
|
|
22
22
|
displayName: "GivingSelectorstyle__Wrapper",
|
|
@@ -39,7 +39,7 @@ const MoneyBox = exports.MoneyBox = _styledComponents.default.div.withConfig({
|
|
|
39
39
|
let {
|
|
40
40
|
theme
|
|
41
41
|
} = _ref4;
|
|
42
|
-
return theme.color('
|
|
42
|
+
return theme.color('blue_donate');
|
|
43
43
|
});
|
|
44
44
|
const Label = exports.Label = _styledComponents.default.label.withConfig({
|
|
45
45
|
displayName: "GivingSelectorstyle__Label",
|
|
@@ -69,5 +69,5 @@ const Label = exports.Label = _styledComponents.default.label.withConfig({
|
|
|
69
69
|
let {
|
|
70
70
|
theme
|
|
71
71
|
} = _ref9;
|
|
72
|
-
return theme.color('
|
|
72
|
+
return theme.color('blue_donate');
|
|
73
73
|
});
|
|
@@ -47,7 +47,7 @@ const MoneyBuyButton = (0, _styledComponents.default)(_Input.default).withConfig
|
|
|
47
47
|
let {
|
|
48
48
|
theme
|
|
49
49
|
} = _ref7;
|
|
50
|
-
return theme.color('
|
|
50
|
+
return theme.color('blue_donate');
|
|
51
51
|
}, _ref8 => {
|
|
52
52
|
let {
|
|
53
53
|
isSelected
|
|
@@ -56,7 +56,7 @@ const MoneyBuyButton = (0, _styledComponents.default)(_Input.default).withConfig
|
|
|
56
56
|
let {
|
|
57
57
|
theme
|
|
58
58
|
} = _ref9;
|
|
59
|
-
return theme.color('
|
|
59
|
+
return theme.color('blue_donate');
|
|
60
60
|
}, _ref10 => {
|
|
61
61
|
let {
|
|
62
62
|
theme
|
|
@@ -67,9 +67,9 @@ const MoneyBuyButton = (0, _styledComponents.default)(_Input.default).withConfig
|
|
|
67
67
|
const MoneyBuy = _ref11 => {
|
|
68
68
|
let {
|
|
69
69
|
setOtherAmount,
|
|
70
|
-
amount,
|
|
71
|
-
currency,
|
|
72
|
-
description,
|
|
70
|
+
amount = '10',
|
|
71
|
+
currency = '£',
|
|
72
|
+
description = 'description',
|
|
73
73
|
...rest
|
|
74
74
|
} = _ref11;
|
|
75
75
|
return /*#__PURE__*/_react.default.createElement(MoneyBuyButton, Object.assign({}, rest, {
|
|
@@ -81,9 +81,4 @@ const MoneyBuy = _ref11 => {
|
|
|
81
81
|
onClick: setOtherAmount
|
|
82
82
|
}));
|
|
83
83
|
};
|
|
84
|
-
MoneyBuy.defaultProps = {
|
|
85
|
-
amount: '10',
|
|
86
|
-
currency: '£',
|
|
87
|
-
description: 'description'
|
|
88
|
-
};
|
|
89
84
|
var _default = exports.default = MoneyBuy;
|
|
@@ -278,7 +278,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
278
278
|
position: absolute;
|
|
279
279
|
-webkit-transition: left 0.15s ease-out;
|
|
280
280
|
transition: left 0.15s ease-out;
|
|
281
|
-
background-color: #
|
|
281
|
+
background-color: #2042AD;
|
|
282
282
|
left: 2px;
|
|
283
283
|
box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
|
|
284
284
|
}
|
|
@@ -327,7 +327,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.c8 input:focus:not(:checked) + label {
|
|
330
|
-
box-shadow: inset 0 0 0 4px #
|
|
330
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
.c10 {
|
|
@@ -366,7 +366,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
366
366
|
.c10:focus {
|
|
367
367
|
border: none;
|
|
368
368
|
outline: none;
|
|
369
|
-
box-shadow: inset 0 0 0 4px #
|
|
369
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
.c9 {
|
|
@@ -405,7 +405,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
405
405
|
.c9:focus {
|
|
406
406
|
border: none;
|
|
407
407
|
outline: none;
|
|
408
|
-
box-shadow: inset 0 0 0 4px #
|
|
408
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
@media (min-width:740px) {
|
|
@@ -958,7 +958,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
958
958
|
position: absolute;
|
|
959
959
|
-webkit-transition: left 0.15s ease-out;
|
|
960
960
|
transition: left 0.15s ease-out;
|
|
961
|
-
background-color: #
|
|
961
|
+
background-color: #2042AD;
|
|
962
962
|
left: 2px;
|
|
963
963
|
box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
|
|
964
964
|
}
|
|
@@ -1007,7 +1007,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
1009
|
.c8 input:focus:not(:checked) + label {
|
|
1010
|
-
box-shadow: inset 0 0 0 4px #
|
|
1010
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
.c9 {
|
|
@@ -1046,7 +1046,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1046
1046
|
.c9:focus {
|
|
1047
1047
|
border: none;
|
|
1048
1048
|
outline: none;
|
|
1049
|
-
box-shadow: inset 0 0 0 4px #
|
|
1049
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
1052
|
@media (min-width:740px) {
|
|
@@ -1426,7 +1426,7 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1426
1426
|
.c13 input:focus {
|
|
1427
1427
|
border: none;
|
|
1428
1428
|
outline: none;
|
|
1429
|
-
box-shadow: inset 0 0 0 4px #
|
|
1429
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
1432
|
.c13 input:active:focus {
|
|
@@ -1447,7 +1447,7 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1447
1447
|
border-radius: 10px;
|
|
1448
1448
|
box-shadow: 0px 0px 16px rgba(0,0,0,0.15);
|
|
1449
1449
|
height: auto;
|
|
1450
|
-
background-color: #
|
|
1450
|
+
background-color: #2042AD;
|
|
1451
1451
|
box-shadow: 0px 0px 16px rgba(0,0,0,0.3);
|
|
1452
1452
|
color: #FFFFFF;
|
|
1453
1453
|
}
|
|
@@ -1455,7 +1455,7 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1455
1455
|
.c18 input:focus {
|
|
1456
1456
|
border: none;
|
|
1457
1457
|
outline: none;
|
|
1458
|
-
box-shadow: inset 0 0 0 4px #
|
|
1458
|
+
box-shadow: inset 0 0 0 4px #2042AD;
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
.c18 input:active:focus {
|
|
@@ -30,10 +30,10 @@ const EmailSignUp = _ref => {
|
|
|
30
30
|
topCopy,
|
|
31
31
|
successCopy,
|
|
32
32
|
privacyCopy,
|
|
33
|
-
backgroundColour,
|
|
34
|
-
buttonColour,
|
|
33
|
+
backgroundColour = 'deep_violet_dark',
|
|
34
|
+
buttonColour = 'red',
|
|
35
35
|
formContext,
|
|
36
|
-
columnLayout,
|
|
36
|
+
columnLayout = false,
|
|
37
37
|
...rest
|
|
38
38
|
} = _ref;
|
|
39
39
|
const {
|
|
@@ -88,9 +88,4 @@ const EmailSignUp = _ref => {
|
|
|
88
88
|
"data-test": "subscribe-button"
|
|
89
89
|
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, "Subscribe")))), isSubmitted && !isSubmitSuccessful && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, errors.formError !== undefined && /*#__PURE__*/_react.default.createElement(_ErrorText.default, null, errors.formError.message)), /*#__PURE__*/_react.default.createElement(_EmailSignUp.PrivacyCopyWrapper, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, privacyCopy)));
|
|
90
90
|
};
|
|
91
|
-
exports.EmailSignUp = EmailSignUp;
|
|
92
|
-
EmailSignUp.defaultProps = {
|
|
93
|
-
backgroundColour: 'deep_violet_dark',
|
|
94
|
-
buttonColour: 'red',
|
|
95
|
-
columnLayout: false
|
|
96
|
-
};
|
|
91
|
+
exports.EmailSignUp = EmailSignUp;
|
|
@@ -13,9 +13,9 @@ const TextInput = _ref => {
|
|
|
13
13
|
let {
|
|
14
14
|
fieldName,
|
|
15
15
|
label,
|
|
16
|
-
optional,
|
|
17
|
-
fieldType,
|
|
18
|
-
formContext,
|
|
16
|
+
optional = null,
|
|
17
|
+
fieldType = 'text',
|
|
18
|
+
formContext = null,
|
|
19
19
|
...rest
|
|
20
20
|
} = _ref;
|
|
21
21
|
const {
|
|
@@ -36,9 +36,4 @@ const TextInput = _ref => {
|
|
|
36
36
|
};
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement(_Input.default, Object.assign({}, props, register(fieldName)));
|
|
38
38
|
};
|
|
39
|
-
TextInput.defaultProps = {
|
|
40
|
-
optional: null,
|
|
41
|
-
fieldType: 'text',
|
|
42
|
-
formContext: null
|
|
43
|
-
};
|
|
44
39
|
var _default = exports.default = TextInput;
|
|
@@ -13,15 +13,17 @@ var _SocialIcons = _interopRequireDefault(require("../../Atoms/SocialIcons/Socia
|
|
|
13
13
|
var _Footer = require("./Footer.style");
|
|
14
14
|
const Footer = _ref => {
|
|
15
15
|
let {
|
|
16
|
-
navItems,
|
|
17
|
-
footerCopy,
|
|
18
|
-
campaign,
|
|
19
|
-
additionalLegalLine,
|
|
16
|
+
navItems = {},
|
|
17
|
+
footerCopy = '',
|
|
18
|
+
campaign = 'Comic Relief',
|
|
19
|
+
additionalLegalLine = '',
|
|
20
|
+
overrideallowList = false,
|
|
20
21
|
...rest
|
|
21
22
|
} = _ref;
|
|
22
23
|
// Remove white space between words
|
|
23
24
|
const campaignName = campaign.replace(/\s/g, '').toLowerCase();
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Footer.FooterWrapper, Object.assign({
|
|
26
|
+
overrideallowList: overrideallowList,
|
|
25
27
|
navItems: true
|
|
26
28
|
}, rest), /*#__PURE__*/_react.default.createElement(_Footer.InnerWrapper, null, additionalLegalLine && /*#__PURE__*/_react.default.createElement(_Footer.FooterLegalLine, {
|
|
27
29
|
tag: "p",
|
|
@@ -43,11 +45,4 @@ const Footer = _ref => {
|
|
|
43
45
|
color: "grey"
|
|
44
46
|
}, footerCopy)))));
|
|
45
47
|
};
|
|
46
|
-
Footer.defaultProps = {
|
|
47
|
-
navItems: {},
|
|
48
|
-
footerCopy: '',
|
|
49
|
-
campaign: 'Comic Relief',
|
|
50
|
-
overrideallowList: false,
|
|
51
|
-
additionalLegalLine: ''
|
|
52
|
-
};
|
|
53
48
|
var _default = exports.default = Footer;
|
|
@@ -14,7 +14,7 @@ var _internalLinkHelper = require("../../../../utils/internalLinkHelper");
|
|
|
14
14
|
var _Nav = require("./Nav.style");
|
|
15
15
|
const FooterNav = _ref => {
|
|
16
16
|
let {
|
|
17
|
-
navItems,
|
|
17
|
+
navItems = {},
|
|
18
18
|
...rest
|
|
19
19
|
} = _ref;
|
|
20
20
|
const {
|
|
@@ -99,7 +99,4 @@ const FooterNav = _ref => {
|
|
|
99
99
|
}, child.title)));
|
|
100
100
|
}))))));
|
|
101
101
|
};
|
|
102
|
-
FooterNav.defaultProps = {
|
|
103
|
-
navItems: {}
|
|
104
|
-
};
|
|
105
102
|
var _default = exports.default = FooterNav;
|
|
@@ -11,9 +11,9 @@ var _Nav = _interopRequireDefault(require("./Nav/Nav"));
|
|
|
11
11
|
var _Header = require("./Header.style");
|
|
12
12
|
const Header = _ref => {
|
|
13
13
|
let {
|
|
14
|
-
navItems,
|
|
14
|
+
navItems = {},
|
|
15
15
|
metaIcons,
|
|
16
|
-
campaign,
|
|
16
|
+
campaign = 'Comic Relief',
|
|
17
17
|
...rest
|
|
18
18
|
} = _ref;
|
|
19
19
|
return /*#__PURE__*/_react.default.createElement(_Header.HeaderWrapper, Object.assign({
|
|
@@ -24,8 +24,4 @@ const Header = _ref => {
|
|
|
24
24
|
navItems: navItems
|
|
25
25
|
}), /*#__PURE__*/_react.default.createElement(_Header.MetaIcons, null, metaIcons)));
|
|
26
26
|
};
|
|
27
|
-
Header.defaultProps = {
|
|
28
|
-
navItems: {},
|
|
29
|
-
campaign: 'Comic Relief'
|
|
30
|
-
};
|
|
31
27
|
var _default = exports.default = Header;
|
|
@@ -17,7 +17,7 @@ var _chevronDown = _interopRequireDefault(require("./chevron-down.svg"));
|
|
|
17
17
|
var _Nav = require("./Nav.style");
|
|
18
18
|
const MainNav = _ref => {
|
|
19
19
|
let {
|
|
20
|
-
navItems
|
|
20
|
+
navItems = {}
|
|
21
21
|
} = _ref;
|
|
22
22
|
const {
|
|
23
23
|
menuGroups
|
|
@@ -134,7 +134,4 @@ const MainNav = _ref => {
|
|
|
134
134
|
isExpandable: isExpandable
|
|
135
135
|
}, "Open"));
|
|
136
136
|
};
|
|
137
|
-
MainNav.defaultProps = {
|
|
138
|
-
navItems: {}
|
|
139
|
-
};
|
|
140
137
|
var _default = exports.default = MainNav;
|