@comicrelief/component-library 5.3.0 → 5.6.1
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/.circleci/config.yml +1 -1
- package/dist/components/Atoms/Button/Button.js +3 -1
- package/dist/components/Atoms/Checkbox/Checkbox.js +5 -3
- package/dist/components/Atoms/ErrorText/ErrorText.js +3 -1
- package/dist/components/Atoms/Icons/Arrow.js +3 -1
- package/dist/components/Atoms/Icons/AtSign.js +2 -1
- package/dist/components/Atoms/Icons/Chevron.js +3 -1
- package/dist/components/Atoms/Icons/Download.js +3 -1
- package/dist/components/Atoms/Icons/External.js +3 -1
- package/dist/components/Atoms/Icons/Favourite.js +3 -1
- package/dist/components/Atoms/Icons/Internal.js +3 -1
- package/dist/components/Atoms/Input/Input.js +6 -4
- package/dist/components/Atoms/Label/Label.js +5 -2
- package/dist/components/Atoms/Link/Link.js +19 -5
- package/dist/components/Atoms/Link/Link.style.js +3 -3
- package/dist/components/Atoms/Pagination/Item/Item.js +3 -1
- package/dist/components/Atoms/Pagination/List/List.js +5 -3
- package/dist/components/Atoms/Pagination/Pagination.js +3 -1
- package/dist/components/Atoms/Picture/Picture.js +3 -1
- package/dist/components/Atoms/RadioButton/RadioButton.js +3 -1
- package/dist/components/Atoms/RichText/RichText.js +4 -2
- package/dist/components/Atoms/Select/Select.js +3 -1
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +6 -4
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +5 -3
- package/dist/components/Atoms/Text/Text.js +3 -1
- package/dist/components/Atoms/TextArea/TextArea.js +3 -1
- package/dist/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +5 -2
- package/dist/components/Molecules/Accordion/Accordion.js +3 -1
- package/dist/components/Molecules/Box/Box.js +3 -1
- package/dist/components/Molecules/Card/Card.js +3 -1
- package/dist/components/Molecules/CardDs/CardDs.js +8 -6
- package/dist/components/Molecules/Countdown/Countdown.style.js +2 -2
- package/dist/components/Molecules/HeroBanner/HeroBanner.js +3 -3
- package/dist/components/Molecules/PartnerLink/PartnerLink.js +3 -1
- package/dist/components/Molecules/Promo/Promo.style.js +4 -4
- package/dist/components/Molecules/SchoolLookup/SchoolLookup.js +3 -1
- package/dist/components/Molecules/SearchInput/SearchInput.js +3 -1
- package/dist/components/Molecules/SearchResult/SearchResult.js +5 -5
- package/dist/components/Molecules/ShareButton/ShareButton.js +3 -1
- package/dist/components/Molecules/SingleMessage/SingleMessage.js +1 -1
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.js +16 -4
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.md +28 -1
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +9 -9
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -1
- package/dist/components/Molecules/Typeahead/Typeahead.js +3 -1
- package/dist/components/Molecules/VideoBanner/VideoBanner.js +1 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.style.js +4 -4
- package/dist/components/Organisms/Donate/Form/Form.js +3 -1
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.js +4 -4
- package/dist/components/Organisms/Donate/MoneyBox/MoneyBox.js +3 -1
- package/dist/components/Organisms/EmailSignUp/EmailSignUp.js +3 -1
- package/dist/components/Organisms/EmailSignUp/EmailSignUp.style.js +7 -7
- package/dist/components/Organisms/Footer/Footer.js +7 -4
- package/dist/components/Organisms/Footer/Footer.md +8 -1
- package/dist/components/Organisms/Footer/Nav/Nav.js +12 -7
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +31 -6
- package/dist/components/Organisms/Header/Burger/BurgerMenu.style.js +3 -3
- package/dist/components/Organisms/Header/Header.js +3 -1
- package/dist/components/Organisms/Header/Nav/Nav.js +3 -3
- package/dist/components/Organisms/MarketingPreferencesDS/_TextInput.js +3 -1
- package/dist/components/Organisms/Membership/Form/Form.js +3 -1
- package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +3 -1
- package/dist/utils/internalLinkHelper.js +27 -5
- package/package.json +13 -13
- package/src/components/Atoms/Link/Link.js +17 -7
- package/src/components/Molecules/SingleMessage/SingleMessage.js +1 -1
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.js +19 -7
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.md +28 -1
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +0 -1
- package/src/components/Organisms/Footer/Footer.js +5 -3
- package/src/components/Organisms/Footer/Footer.md +8 -1
- package/src/components/Organisms/Footer/Nav/Nav.js +4 -3
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +31 -6
- package/src/components/Organisms/Header/Nav/Nav.js +1 -1
- package/src/utils/internalLinkHelper.js +23 -5
|
@@ -21,6 +21,9 @@ var _Text = _interopRequireDefault(require("../Text/Text"));
|
|
|
21
21
|
|
|
22
22
|
var _TextInputWithDropdown = require("./TextInputWithDropdown.style");
|
|
23
23
|
|
|
24
|
+
var _excluded = ["value", "options", "onChange", "onSelect", "id", "name", "label", "dropdownInstruction", "className"],
|
|
25
|
+
_excluded2 = ["options", "dropdownInstruction", "onSelect", "activeOption", "resetActiveOption"];
|
|
26
|
+
|
|
24
27
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
28
|
|
|
26
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -49,7 +52,7 @@ var TextInputWithDropdown = /*#__PURE__*/_react.default.forwardRef(function (_re
|
|
|
49
52
|
label = _ref.label,
|
|
50
53
|
dropdownInstruction = _ref.dropdownInstruction,
|
|
51
54
|
className = _ref.className,
|
|
52
|
-
otherInputProps = (0, _objectWithoutProperties2.default)(_ref,
|
|
55
|
+
otherInputProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
53
56
|
|
|
54
57
|
var _useState = (0, _react.useState)(-1),
|
|
55
58
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -128,7 +131,7 @@ var Options = function Options(_ref2) {
|
|
|
128
131
|
onSelect = _ref2.onSelect,
|
|
129
132
|
activeOption = _ref2.activeOption,
|
|
130
133
|
resetActiveOption = _ref2.resetActiveOption,
|
|
131
|
-
rest = (0, _objectWithoutProperties2.default)(_ref2,
|
|
134
|
+
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
132
135
|
|
|
133
136
|
// Reset 'activeOption' when the list is unfocused.
|
|
134
137
|
var onBlur = function onBlur(e) {
|
|
@@ -19,6 +19,8 @@ var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
|
19
19
|
|
|
20
20
|
var _index = require("../../Atoms/Icons/index");
|
|
21
21
|
|
|
22
|
+
var _excluded = ["children", "title"];
|
|
23
|
+
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
25
|
|
|
24
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -63,7 +65,7 @@ var Copy = _styledComponents.default.div.withConfig({
|
|
|
63
65
|
var Accordion = function Accordion(_ref6) {
|
|
64
66
|
var children = _ref6.children,
|
|
65
67
|
title = _ref6.title,
|
|
66
|
-
rest = (0, _objectWithoutProperties2.default)(_ref6,
|
|
68
|
+
rest = (0, _objectWithoutProperties2.default)(_ref6, _excluded);
|
|
67
69
|
|
|
68
70
|
var _useState = (0, _react.useState)(false),
|
|
69
71
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -17,6 +17,8 @@ var _Picture = _interopRequireDefault(require("../../Atoms/Picture/Picture"));
|
|
|
17
17
|
|
|
18
18
|
var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
19
19
|
|
|
20
|
+
var _excluded = ["imageLow", "images", "image", "imageAltText", "height", "width", "children"];
|
|
21
|
+
|
|
20
22
|
var Container = _styledComponents.default.div.withConfig({
|
|
21
23
|
displayName: "Box__Container",
|
|
22
24
|
componentId: "sc-1oa7u3c-0"
|
|
@@ -52,7 +54,7 @@ var Box = function Box(_ref5) {
|
|
|
52
54
|
height = _ref5.height,
|
|
53
55
|
width = _ref5.width,
|
|
54
56
|
children = _ref5.children,
|
|
55
|
-
rest = (0, _objectWithoutProperties2.default)(_ref5,
|
|
57
|
+
rest = (0, _objectWithoutProperties2.default)(_ref5, _excluded);
|
|
56
58
|
return /*#__PURE__*/_react.default.createElement(Container, rest, imageLow ? /*#__PURE__*/_react.default.createElement(Image, null, /*#__PURE__*/_react.default.createElement(_Picture.default, {
|
|
57
59
|
alt: imageAltText,
|
|
58
60
|
imageLow: imageLow,
|
|
@@ -17,6 +17,8 @@ var _Picture = _interopRequireDefault(require("../../Atoms/Picture/Picture"));
|
|
|
17
17
|
|
|
18
18
|
var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
19
19
|
|
|
20
|
+
var _excluded = ["backgroundColor", "imageLow", "images", "image", "imageAltText", "height", "width", "children"];
|
|
21
|
+
|
|
20
22
|
var Container = _styledComponents.default.div.withConfig({
|
|
21
23
|
displayName: "Card__Container",
|
|
22
24
|
componentId: "sc-15nltsw-0"
|
|
@@ -45,7 +47,7 @@ var Card = function Card(_ref2) {
|
|
|
45
47
|
height = _ref2.height,
|
|
46
48
|
width = _ref2.width,
|
|
47
49
|
children = _ref2.children,
|
|
48
|
-
rest = (0, _objectWithoutProperties2.default)(_ref2,
|
|
50
|
+
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
49
51
|
return /*#__PURE__*/_react.default.createElement(Container, Object.assign({
|
|
50
52
|
backgroundColor: backgroundColor
|
|
51
53
|
}, rest), imageLow ? /*#__PURE__*/_react.default.createElement(Image, null, /*#__PURE__*/_react.default.createElement(_Picture.default, {
|
|
@@ -21,13 +21,15 @@ var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
|
21
21
|
|
|
22
22
|
var _zIndex = _interopRequireDefault(require("../../../theme/shared/zIndex"));
|
|
23
23
|
|
|
24
|
+
var _excluded = ["icon", "backgroundColor", "imageLow", "images", "image", "imageAltText", "height", "width", "children", "link", "linkLabel", "target"];
|
|
25
|
+
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
27
|
|
|
26
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
29
|
|
|
28
30
|
var Container = _styledComponents.default.div.withConfig({
|
|
29
31
|
displayName: "CardDs__Container",
|
|
30
|
-
componentId: "mayd3d-0"
|
|
32
|
+
componentId: "sc-mayd3d-0"
|
|
31
33
|
})(["display:flex;position:relative;flex-direction:column;height:100%;width:calc(100% - ", ");background:", ";@media ", "{flex-direction:row;width:100%;}@media ", "{flex-direction:column;}"], (0, _spacing.default)('m'), function (_ref) {
|
|
32
34
|
var theme = _ref.theme,
|
|
33
35
|
backgroundColor = _ref.backgroundColor;
|
|
@@ -42,7 +44,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
42
44
|
|
|
43
45
|
var Image = _styledComponents.default.div.withConfig({
|
|
44
46
|
displayName: "CardDs__Image",
|
|
45
|
-
componentId: "mayd3d-1"
|
|
47
|
+
componentId: "sc-mayd3d-1"
|
|
46
48
|
})(["height:auto;margin:0 -", " 0 ", ";@media ", "{margin:0;", ";}@media ", "{margin:0 -", " 0 ", ";}img{border-radius:1rem;box-shadow:0px 0px 20px rgba(0,0,0,0.15);}"], (0, _spacing.default)('m'), (0, _spacing.default)('m'), function (_ref4) {
|
|
47
49
|
var theme = _ref4.theme;
|
|
48
50
|
return theme.breakpoint('small');
|
|
@@ -56,7 +58,7 @@ var Image = _styledComponents.default.div.withConfig({
|
|
|
56
58
|
|
|
57
59
|
var MediaLink = _styledComponents.default.a.withConfig({
|
|
58
60
|
displayName: "CardDs__MediaLink",
|
|
59
|
-
componentId: "mayd3d-2"
|
|
61
|
+
componentId: "sc-mayd3d-2"
|
|
60
62
|
})(["width:100%;@media ", "{width:calc(50% + 6rem);}@media ", "{width:100%;}"], function (_ref7) {
|
|
61
63
|
var theme = _ref7.theme;
|
|
62
64
|
return theme.breakpoint('small');
|
|
@@ -67,7 +69,7 @@ var MediaLink = _styledComponents.default.a.withConfig({
|
|
|
67
69
|
|
|
68
70
|
var Copy = _styledComponents.default.div.withConfig({
|
|
69
71
|
displayName: "CardDs__Copy",
|
|
70
|
-
componentId: "mayd3d-3"
|
|
72
|
+
componentId: "sc-mayd3d-3"
|
|
71
73
|
})(["padding:", ";", ";display:flex;flex-direction:column;border-radius:1rem;box-shadow:0px 0px 20px rgba(0,0,0,0.15);background:", ";width:100%;@media ", "{height:100%;}", ";", ";"], (0, _spacing.default)('l'), function (_ref9) {
|
|
72
74
|
var hasLink = _ref9.hasLink;
|
|
73
75
|
return hasLink && "padding-bottom: ".concat((0, _spacing.default)('xl'));
|
|
@@ -91,7 +93,7 @@ var Copy = _styledComponents.default.div.withConfig({
|
|
|
91
93
|
|
|
92
94
|
var CTA = _styledComponents.default.div.withConfig({
|
|
93
95
|
displayName: "CardDs__CTA",
|
|
94
|
-
componentId: "mayd3d-4"
|
|
96
|
+
componentId: "sc-mayd3d-4"
|
|
95
97
|
})(["position:absolute;right:", ";bottom:-", ";", ";@media ", "{bottom:calc(-1 * (", " + ", "));", ";}"], (0, _spacing.default)('m'), (0, _spacing.default)('m'), (0, _zIndex.default)('medium'), function (_ref15) {
|
|
96
98
|
var theme = _ref15.theme;
|
|
97
99
|
return theme.breakpoint('small');
|
|
@@ -113,7 +115,7 @@ var CardDs = function CardDs(_ref17) {
|
|
|
113
115
|
link = _ref17.link,
|
|
114
116
|
linkLabel = _ref17.linkLabel,
|
|
115
117
|
target = _ref17.target,
|
|
116
|
-
rest = (0, _objectWithoutProperties2.default)(_ref17,
|
|
118
|
+
rest = (0, _objectWithoutProperties2.default)(_ref17, _excluded);
|
|
117
119
|
|
|
118
120
|
var Media = /*#__PURE__*/_react.default.createElement(Image, {
|
|
119
121
|
hasLink: link
|
|
@@ -13,14 +13,14 @@ var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
|
13
13
|
|
|
14
14
|
var Wrapper = _styledComponents.default.div.withConfig({
|
|
15
15
|
displayName: "Countdownstyle__Wrapper",
|
|
16
|
-
componentId: "zj2fle-0"
|
|
16
|
+
componentId: "sc-zj2fle-0"
|
|
17
17
|
})(["display:flex;"]);
|
|
18
18
|
|
|
19
19
|
exports.Wrapper = Wrapper;
|
|
20
20
|
|
|
21
21
|
var Digits = _styledComponents.default.div.withConfig({
|
|
22
22
|
displayName: "Countdownstyle__Digits",
|
|
23
|
-
componentId: "zj2fle-1"
|
|
23
|
+
componentId: "sc-zj2fle-1"
|
|
24
24
|
})(["display:flex;flex-direction:column;align-items:center;margin:0 ", ";&:first-child{margin-left:0;}"], (0, _spacing.default)('sm'));
|
|
25
25
|
|
|
26
26
|
exports.Digits = Digits;
|
|
@@ -15,7 +15,7 @@ var _Text = _interopRequireDefault(require("../../Atoms/Text/Text"));
|
|
|
15
15
|
|
|
16
16
|
var Container = _styledComponents.default.section.withConfig({
|
|
17
17
|
displayName: "HeroBanner__Container",
|
|
18
|
-
componentId: "c6z1hi-0"
|
|
18
|
+
componentId: "sc-c6z1hi-0"
|
|
19
19
|
})(["min-height:200px;position:relative;background:", ";color:", ";"], function (props) {
|
|
20
20
|
return props.background ? props.background : 'transparent';
|
|
21
21
|
}, function (props) {
|
|
@@ -28,12 +28,12 @@ var Image = _styledComponents.default.img.attrs(function () {
|
|
|
28
28
|
};
|
|
29
29
|
}).withConfig({
|
|
30
30
|
displayName: "HeroBanner__Image",
|
|
31
|
-
componentId: "c6z1hi-1"
|
|
31
|
+
componentId: "sc-c6z1hi-1"
|
|
32
32
|
})(["object-fit:cover;width:100%;display:block;height:100%;opacity:0.5;"]);
|
|
33
33
|
|
|
34
34
|
var Title = _styledComponents.default.h1.withConfig({
|
|
35
35
|
displayName: "HeroBanner__Title",
|
|
36
|
-
componentId: "c6z1hi-2"
|
|
36
|
+
componentId: "sc-c6z1hi-2"
|
|
37
37
|
})(["position:absolute;margin:0 auto;top:50%;transform:translateY(-50%);left:0;right:0;text-align:center;"]);
|
|
38
38
|
/**
|
|
39
39
|
* Hero Banner to be used as Header of landing pages.
|
|
@@ -15,10 +15,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _PartnerLink = require("./PartnerLink.style");
|
|
17
17
|
|
|
18
|
+
var _excluded = ["children", "link"];
|
|
19
|
+
|
|
18
20
|
var PartnerLink = function PartnerLink(_ref) {
|
|
19
21
|
var children = _ref.children,
|
|
20
22
|
link = _ref.link,
|
|
21
|
-
rest = (0, _objectWithoutProperties2.default)(_ref,
|
|
23
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
24
|
|
|
23
25
|
var childrenWithProps = _react.default.Children.map(children, function (child) {
|
|
24
26
|
return /*#__PURE__*/_react.default.cloneElement(child, (0, _objectSpread2.default)({}, rest));
|
|
@@ -21,7 +21,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
21
21
|
|
|
22
22
|
var Container = _styledComponents.default.div.withConfig({
|
|
23
23
|
displayName: "Promostyle__Container",
|
|
24
|
-
componentId: "kk4nna-0"
|
|
24
|
+
componentId: "sc-kk4nna-0"
|
|
25
25
|
})(["width:100%;display:flex;position:relative;flex-direction:column;overflow:hidden;background:", ";", "{flex-direction:row;}", " ", " ", ""], function (_ref) {
|
|
26
26
|
var theme = _ref.theme,
|
|
27
27
|
backgroundColor = _ref.backgroundColor;
|
|
@@ -41,7 +41,7 @@ exports.Container = Container;
|
|
|
41
41
|
|
|
42
42
|
var Wrapper = _styledComponents.default.div.withConfig({
|
|
43
43
|
displayName: "Promostyle__Wrapper",
|
|
44
|
-
componentId: "kk4nna-1"
|
|
44
|
+
componentId: "sc-kk4nna-1"
|
|
45
45
|
})(["width:100%;max-width:", ";height:100%;left:0;right:0;margin:0 auto;display:flex;align-items:center;", ";", "{min-height:calc(100vh - 90px);}"], _size.container.medium, function (_ref5) {
|
|
46
46
|
var copyFirst = _ref5.copyFirst;
|
|
47
47
|
return !copyFirst && 'justify-content: flex-end';
|
|
@@ -51,7 +51,7 @@ exports.Wrapper = Wrapper;
|
|
|
51
51
|
|
|
52
52
|
var Copy = _styledComponents.default.div.withConfig({
|
|
53
53
|
displayName: "Promostyle__Copy",
|
|
54
|
-
componentId: "kk4nna-2"
|
|
54
|
+
componentId: "sc-kk4nna-2"
|
|
55
55
|
})(["width:100%;padding:", " ", " ", ";", ";", "{width:70%;padding:", " ", ";}", "{width:50%;padding:", " ", ";}", ""], (0, _spacing.default)('m'), (0, _spacing.default)('m'), (0, _spacing.default)('xl'), (0, _zIndex.default)('low'), (0, _size.media)('small'), (0, _spacing.default)('xl'), (0, _spacing.default)('m'), (0, _size.media)('medium'), (0, _spacing.default)('xxl'), (0, _spacing.default)('m'), function (_ref6) {
|
|
56
56
|
var position = _ref6.position;
|
|
57
57
|
return position === 'lower' && (0, _styledComponents.css)(["padding:", " ", ";", "{padding:6rem ", ";margin-top:6rem;}"], (0, _spacing.default)('xl'), (0, _spacing.default)('m'), (0, _size.media)('small'), (0, _spacing.default)('m'));
|
|
@@ -61,7 +61,7 @@ exports.Copy = Copy;
|
|
|
61
61
|
|
|
62
62
|
var Media = _styledComponents.default.div.withConfig({
|
|
63
63
|
displayName: "Promostyle__Media",
|
|
64
|
-
componentId: "kk4nna-3"
|
|
64
|
+
componentId: "sc-kk4nna-3"
|
|
65
65
|
})(["width:100%;height:auto;img{object-position:center;}", "{height:100%;position:absolute;}"], (0, _size.media)('small'));
|
|
66
66
|
|
|
67
67
|
exports.Media = Media;
|
|
@@ -21,6 +21,8 @@ var _axios = _interopRequireDefault(require("axios"));
|
|
|
21
21
|
|
|
22
22
|
var _Typeahead = _interopRequireDefault(require("../Typeahead/Typeahead"));
|
|
23
23
|
|
|
24
|
+
var _excluded = ["label", "placeholder", "notFoundMessage", "dropdownInstruction", "onSelect"];
|
|
25
|
+
|
|
24
26
|
var optionFetcher = /*#__PURE__*/function () {
|
|
25
27
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(query) {
|
|
26
28
|
var response;
|
|
@@ -63,7 +65,7 @@ var SchoolLookup = /*#__PURE__*/_react.default.forwardRef(function (_ref2, ref)
|
|
|
63
65
|
notFoundMessage = _ref2.notFoundMessage,
|
|
64
66
|
dropdownInstruction = _ref2.dropdownInstruction,
|
|
65
67
|
onSelect = _ref2.onSelect,
|
|
66
|
-
rest = (0, _objectWithoutProperties2.default)(_ref2,
|
|
68
|
+
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
67
69
|
var props = (0, _objectSpread2.default)({
|
|
68
70
|
optionFetcher: optionFetcher,
|
|
69
71
|
optionParser: optionParser,
|
|
@@ -13,11 +13,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _SearchInput = require("./SearchInput.style");
|
|
15
15
|
|
|
16
|
+
var _excluded = ["onChange", "placeholder", "value"];
|
|
17
|
+
|
|
16
18
|
var SearchInput = function SearchInput(_ref) {
|
|
17
19
|
var onChange = _ref.onChange,
|
|
18
20
|
placeholder = _ref.placeholder,
|
|
19
21
|
value = _ref.value,
|
|
20
|
-
rest = (0, _objectWithoutProperties2.default)(_ref,
|
|
22
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
21
23
|
return /*#__PURE__*/_react.default.createElement(_SearchInput.Wrapper, null, /*#__PURE__*/_react.default.createElement(_SearchInput.InnerWrapper, null, /*#__PURE__*/_react.default.createElement(_SearchInput.SearchBox, {
|
|
22
24
|
role: "search"
|
|
23
25
|
}, /*#__PURE__*/_react.default.createElement(_SearchInput.SearchWrapper, null, /*#__PURE__*/_react.default.createElement(_SearchInput.SearchField, Object.assign({
|
|
@@ -24,7 +24,7 @@ var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
|
24
24
|
*/
|
|
25
25
|
var Wrapper = _styledComponents.default.article.withConfig({
|
|
26
26
|
displayName: "SearchResult__Wrapper",
|
|
27
|
-
componentId: "wp0ln2-0"
|
|
27
|
+
componentId: "sc-wp0ln2-0"
|
|
28
28
|
})(["width:100%;height:100%;background-color:", ";"], function (_ref) {
|
|
29
29
|
var theme = _ref.theme;
|
|
30
30
|
return theme.color('white');
|
|
@@ -32,7 +32,7 @@ var Wrapper = _styledComponents.default.article.withConfig({
|
|
|
32
32
|
|
|
33
33
|
var Item = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
34
34
|
displayName: "SearchResult__Item",
|
|
35
|
-
componentId: "wp0ln2-1"
|
|
35
|
+
componentId: "sc-wp0ln2-1"
|
|
36
36
|
})(["display:flex;height:100%;border:0;flex-direction:column;text-decoration:none;color:inherit;width:100%;@media ", "{flex-direction:row;}:hover{border:0;font-weight:normal;}"], function (_ref2) {
|
|
37
37
|
var theme = _ref2.theme;
|
|
38
38
|
return theme.breakpoint('small');
|
|
@@ -40,7 +40,7 @@ var Item = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
|
40
40
|
|
|
41
41
|
var ImageWrapper = _styledComponents.default.div.withConfig({
|
|
42
42
|
displayName: "SearchResult__ImageWrapper",
|
|
43
|
-
componentId: "wp0ln2-2"
|
|
43
|
+
componentId: "sc-wp0ln2-2"
|
|
44
44
|
})(["height:auto;@media ", "{width:", ";}@media ", "{width:", ";}"], function (_ref3) {
|
|
45
45
|
var theme = _ref3.theme;
|
|
46
46
|
return theme.breakpoint('small');
|
|
@@ -57,12 +57,12 @@ var ImageWrapper = _styledComponents.default.div.withConfig({
|
|
|
57
57
|
|
|
58
58
|
var CopyWrapper = _styledComponents.default.div.withConfig({
|
|
59
59
|
displayName: "SearchResult__CopyWrapper",
|
|
60
|
-
componentId: "wp0ln2-3"
|
|
60
|
+
componentId: "sc-wp0ln2-3"
|
|
61
61
|
})(["display:flex;flex-direction:column;justify-content:center;padding:", ";width:100%;"], (0, _spacing.default)('md'));
|
|
62
62
|
|
|
63
63
|
var Title = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
64
64
|
displayName: "SearchResult__Title",
|
|
65
|
-
componentId: "wp0ln2-4"
|
|
65
|
+
componentId: "sc-wp0ln2-4"
|
|
66
66
|
})(["margin:0;"]);
|
|
67
67
|
/**
|
|
68
68
|
* Search Result component
|
|
@@ -23,6 +23,8 @@ var _ShareIcons = _interopRequireDefault(require("./assets/ShareIcons"));
|
|
|
23
23
|
|
|
24
24
|
var _ShareButton = require("./ShareButton.style");
|
|
25
25
|
|
|
26
|
+
var _excluded = ["campaign", "copy", "urlToShare"];
|
|
27
|
+
|
|
26
28
|
var handleShare = function handleShare(e, typeOfShare, urlToShare) {
|
|
27
29
|
e.preventDefault();
|
|
28
30
|
(0, _shareTracking.default)(typeOfShare.toLowerCase()); // Pass the current page's URL and the type of share to our helper function
|
|
@@ -38,7 +40,7 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
38
40
|
var campaign = _ref.campaign,
|
|
39
41
|
copy = _ref.copy,
|
|
40
42
|
urlToShare = _ref.urlToShare,
|
|
41
|
-
restProps = (0, _objectWithoutProperties2.default)(_ref,
|
|
43
|
+
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
42
44
|
var checkedUrl = '';
|
|
43
45
|
/* Window obj isn't available during server-side rendering AND we don't have
|
|
44
46
|
* access to componentDidMount etc. in functional components, so add this check first */
|
|
@@ -24,7 +24,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
26
|
var allPlayers = {};
|
|
27
|
-
|
|
27
|
+
/* Single Message is our main component usually to build landing pages */
|
|
28
28
|
|
|
29
29
|
var SingleMessage = function SingleMessage(_ref) {
|
|
30
30
|
var backgroundColor = _ref.backgroundColor,
|
|
@@ -25,6 +25,8 @@ var _SingleMessageDs = require("./SingleMessageDs.style");
|
|
|
25
25
|
|
|
26
26
|
var _play = _interopRequireDefault(require("./assets/play.png"));
|
|
27
27
|
|
|
28
|
+
var _excluded = ["backgroundColor", "imageLeft", "imageLow", "images", "image", "imageAltText", "height", "width", "subtitle", "children", "link", "linkLabel", "ctaBgColor", "target", "linkIcon", "youTubeId"];
|
|
29
|
+
|
|
28
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
31
|
|
|
30
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -46,7 +48,7 @@ var SingleMessageDs = function SingleMessageDs(_ref) {
|
|
|
46
48
|
target = _ref.target,
|
|
47
49
|
linkIcon = _ref.linkIcon,
|
|
48
50
|
youTubeId = _ref.youTubeId,
|
|
49
|
-
rest = (0, _objectWithoutProperties2.default)(_ref,
|
|
51
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
50
52
|
|
|
51
53
|
var _useState = (0, _react.useState)(false),
|
|
52
54
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -74,17 +76,27 @@ var SingleMessageDs = function SingleMessageDs(_ref) {
|
|
|
74
76
|
imageLeft: imageLeft,
|
|
75
77
|
"aria-hidden": "true",
|
|
76
78
|
tabIndex: "-1",
|
|
77
|
-
href:
|
|
79
|
+
href: link,
|
|
80
|
+
target: target
|
|
81
|
+
}, rest), Media);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (imageLow && youTubeId) {
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(_SingleMessageDs.MediaLink, Object.assign({
|
|
86
|
+
imageLeft: imageLeft,
|
|
87
|
+
"aria-hidden": "true",
|
|
88
|
+
tabIndex: "-1",
|
|
89
|
+
href: youTubeId,
|
|
78
90
|
target: target
|
|
79
91
|
}, rest, {
|
|
80
92
|
onClick: function onClick(e) {
|
|
81
93
|
setIsOpen(true);
|
|
82
94
|
e.preventDefault();
|
|
83
95
|
}
|
|
84
|
-
}),
|
|
96
|
+
}), /*#__PURE__*/_react.default.createElement(_SingleMessageDs.PlayHolder, null, /*#__PURE__*/_react.default.createElement(_SingleMessageDs.PlayImage, {
|
|
85
97
|
src: _play.default,
|
|
86
98
|
alt: ""
|
|
87
|
-
}), Media)
|
|
99
|
+
}), Media));
|
|
88
100
|
}
|
|
89
101
|
|
|
90
102
|
if (imageLow) {
|
|
@@ -156,11 +156,38 @@ import Download from '../../Atoms/Icons/Download';
|
|
|
156
156
|
linkLabel='Download this'
|
|
157
157
|
linkIcon={<Download />}
|
|
158
158
|
imageLow={data.image}
|
|
159
|
+
imageLeft={true}
|
|
159
160
|
images={data.images}
|
|
160
161
|
>
|
|
161
162
|
<Text tag='p'>
|
|
162
|
-
|
|
163
|
+
Whatever you’ve got planned, the Sport Relief shop has everything you need
|
|
164
|
+
to get you looking your best while you’re raising some cash. Also
|
|
165
|
+
available in Sainsbury’s stores and online and in selected Argos stores.
|
|
163
166
|
</Text>
|
|
164
167
|
</SingleMessageDs>
|
|
165
168
|
</div>;
|
|
166
169
|
```
|
|
170
|
+
|
|
171
|
+
## Video with no CTA
|
|
172
|
+
|
|
173
|
+
```js
|
|
174
|
+
const data = require('../../../styleguide/data/data').default;
|
|
175
|
+
import Text from '../../Atoms/Text/Text';
|
|
176
|
+
import Link from '../../Atoms/Link/Link';
|
|
177
|
+
import styled from 'styled-components';
|
|
178
|
+
import spacing from '../../../theme/shared/spacing';
|
|
179
|
+
import Download from '../../Atoms/Icons/Download';
|
|
180
|
+
|
|
181
|
+
<div>
|
|
182
|
+
<SingleMessageDs
|
|
183
|
+
imageLow={data.image}
|
|
184
|
+
images={data.images}
|
|
185
|
+
youTubeId="faz0JeBB41M"
|
|
186
|
+
imageLeft={true}
|
|
187
|
+
>
|
|
188
|
+
<Text tag='p'>
|
|
189
|
+
Some text and stuff.
|
|
190
|
+
</Text>
|
|
191
|
+
</SingleMessageDs>
|
|
192
|
+
</div>;
|
|
193
|
+
```
|
|
@@ -19,7 +19,7 @@ var boxShadow = 'box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15)';
|
|
|
19
19
|
|
|
20
20
|
var Container = _styledComponents.default.div.withConfig({
|
|
21
21
|
displayName: "SingleMessageDsstyle__Container",
|
|
22
|
-
componentId: "s8zd7s-0"
|
|
22
|
+
componentId: "sc-s8zd7s-0"
|
|
23
23
|
})(["display:flex;position:relative;flex-direction:column;justify-content:space-around;background:", ";@media ", "{flex-direction:", ";}"], function (_ref) {
|
|
24
24
|
var theme = _ref.theme,
|
|
25
25
|
backgroundColor = _ref.backgroundColor;
|
|
@@ -35,13 +35,13 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
35
35
|
exports.Container = Container;
|
|
36
36
|
var Subtitle = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
37
37
|
displayName: "SingleMessageDsstyle__Subtitle",
|
|
38
|
-
componentId: "s8zd7s-1"
|
|
38
|
+
componentId: "sc-s8zd7s-1"
|
|
39
39
|
})(["letter-spacing:0.03em;text-transform:uppercase;"]);
|
|
40
40
|
exports.Subtitle = Subtitle;
|
|
41
41
|
|
|
42
42
|
var Image = _styledComponents.default.div.withConfig({
|
|
43
43
|
displayName: "SingleMessageDsstyle__Image",
|
|
44
|
-
componentId: "s8zd7s-2"
|
|
44
|
+
componentId: "sc-s8zd7s-2"
|
|
45
45
|
})(["height:100%;@media ", "{height:448px;}img{border-radius:1rem;", ";}"], function (_ref4) {
|
|
46
46
|
var theme = _ref4.theme;
|
|
47
47
|
return theme.breakpoint('small');
|
|
@@ -51,7 +51,7 @@ exports.Image = Image;
|
|
|
51
51
|
|
|
52
52
|
var MediaLink = _styledComponents.default.a.withConfig({
|
|
53
53
|
displayName: "SingleMessageDsstyle__MediaLink",
|
|
54
|
-
componentId: "s8zd7s-3"
|
|
54
|
+
componentId: "sc-s8zd7s-3"
|
|
55
55
|
})(["", ";@media ", "{margin:0;height:448px;flex-grow:0;flex-shrink:0;flex-basis:50%;}"], function (_ref5) {
|
|
56
56
|
var imageLeft = _ref5.imageLeft;
|
|
57
57
|
return imageLeft ? "margin-right: ".concat((0, _spacing.default)('m')) : "margin-left: ".concat((0, _spacing.default)('m'));
|
|
@@ -64,28 +64,28 @@ exports.MediaLink = MediaLink;
|
|
|
64
64
|
|
|
65
65
|
var PlayHolder = _styledComponents.default.div.withConfig({
|
|
66
66
|
displayName: "SingleMessageDsstyle__PlayHolder",
|
|
67
|
-
componentId: "s8zd7s-4"
|
|
67
|
+
componentId: "sc-s8zd7s-4"
|
|
68
68
|
})(["position:relative;"]);
|
|
69
69
|
|
|
70
70
|
exports.PlayHolder = PlayHolder;
|
|
71
71
|
|
|
72
72
|
var PlayImage = _styledComponents.default.img.withConfig({
|
|
73
73
|
displayName: "SingleMessageDsstyle__PlayImage",
|
|
74
|
-
componentId: "s8zd7s-5"
|
|
74
|
+
componentId: "sc-s8zd7s-5"
|
|
75
75
|
})(["position:absolute;margin:auto;", ";top:0;right:0;bottom:0;left:0;"], (0, _zIndex.default)('medium'));
|
|
76
76
|
|
|
77
77
|
exports.PlayImage = PlayImage;
|
|
78
78
|
|
|
79
79
|
var CloseButton = _styledComponents.default.button.withConfig({
|
|
80
80
|
displayName: "SingleMessageDsstyle__CloseButton",
|
|
81
|
-
componentId: "s8zd7s-6"
|
|
81
|
+
componentId: "sc-s8zd7s-6"
|
|
82
82
|
})(["position:absolute;z-index:2;top:-45px;right:0px;display:inline-block;width:35px;height:35px;overflow:hidden;border:none;background:transparent;:before{content:'';position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#fff;border-radius:5px;margin-top:-6px;transform:rotate(45deg);}:after{content:'';position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#fff;border-radius:5px;margin-top:-6px;transform:rotate(-45deg);}"]);
|
|
83
83
|
|
|
84
84
|
exports.CloseButton = CloseButton;
|
|
85
85
|
|
|
86
86
|
var CTA = _styledComponents.default.div.withConfig({
|
|
87
87
|
displayName: "SingleMessageDsstyle__CTA",
|
|
88
|
-
componentId: "s8zd7s-7"
|
|
88
|
+
componentId: "sc-s8zd7s-7"
|
|
89
89
|
})(["position:absolute;bottom:-", ";", ";a{font-family:", ";}@media ", "{", "}"], (0, _spacing.default)('m'), (0, _zIndex.default)('medium'), function (_ref7) {
|
|
90
90
|
var theme = _ref7.theme;
|
|
91
91
|
return theme.fontFamilies('Montserrat');
|
|
@@ -101,7 +101,7 @@ exports.CTA = CTA;
|
|
|
101
101
|
|
|
102
102
|
var Copy = _styledComponents.default.div.withConfig({
|
|
103
103
|
displayName: "SingleMessageDsstyle__Copy",
|
|
104
|
-
componentId: "s8zd7s-8"
|
|
104
|
+
componentId: "sc-s8zd7s-8"
|
|
105
105
|
})(["position:relative;height:auto;padding:", ";", ";display:flex;flex-direction:column;border-radius:1rem;", ";background:", ";", ";", ";@media ", "{height:448px;width:calc(50% + 1.5rem);flex-grow:0;flex-shrink:0;flex-basis:calc(50% + 1.5rem);padding:", ";", ";", ";}@media ", "{padding:calc(", " * 2);", ";margin:", ";}"], (0, _spacing.default)('m'), (0, _zIndex.default)('low'), boxShadow, function (_ref10) {
|
|
106
106
|
var theme = _ref10.theme,
|
|
107
107
|
backgroundColor = _ref10.backgroundColor;
|
|
@@ -21,6 +21,8 @@ var _lodash = require("lodash");
|
|
|
21
21
|
|
|
22
22
|
var _TextInputWithDropdown = _interopRequireDefault(require("../../Atoms/TextInputWithDropdown/TextInputWithDropdown"));
|
|
23
23
|
|
|
24
|
+
var _excluded = ["optionFetcher", "optionParser", "onSelect", "id", "label", "name", "dropdownInstruction", "notFoundMessage", "fetchErrorHandler"];
|
|
25
|
+
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
27
|
|
|
26
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -39,7 +41,7 @@ var Typeahead = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
39
41
|
dropdownInstruction = _ref.dropdownInstruction,
|
|
40
42
|
notFoundMessage = _ref.notFoundMessage,
|
|
41
43
|
fetchErrorHandler = _ref.fetchErrorHandler,
|
|
42
|
-
rest = (0, _objectWithoutProperties2.default)(_ref,
|
|
44
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
45
|
|
|
44
46
|
var _useState = (0, _react.useState)(''),
|
|
45
47
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -24,7 +24,7 @@ var Video = _styledComponents.default.video.attrs(function () {
|
|
|
24
24
|
};
|
|
25
25
|
}).withConfig({
|
|
26
26
|
displayName: "VideoBanner__Video",
|
|
27
|
-
componentId: "wxn2ep-0"
|
|
27
|
+
componentId: "sc-wxn2ep-0"
|
|
28
28
|
})(["width:100%;height:100%;"]);
|
|
29
29
|
|
|
30
30
|
var VideoBanner = function VideoBanner(_ref) {
|
|
@@ -19,7 +19,7 @@ var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
|
19
19
|
|
|
20
20
|
var CookieWrapper = _styledComponents.default.div.withConfig({
|
|
21
21
|
displayName: "CookieBannerstyle__CookieWrapper",
|
|
22
|
-
componentId: "m69qcz-0"
|
|
22
|
+
componentId: "sc-m69qcz-0"
|
|
23
23
|
})(["display:flex;position:relative;padding:", ";background:", ";flex-direction:column;", ";"], (0, _spacing.default)('md'), function (_ref) {
|
|
24
24
|
var theme = _ref.theme;
|
|
25
25
|
return theme.color('deep_violet_dark');
|
|
@@ -28,7 +28,7 @@ var CookieWrapper = _styledComponents.default.div.withConfig({
|
|
|
28
28
|
exports.CookieWrapper = CookieWrapper;
|
|
29
29
|
var CookieText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
30
30
|
displayName: "CookieBannerstyle__CookieText",
|
|
31
|
-
componentId: "m69qcz-1"
|
|
31
|
+
componentId: "sc-m69qcz-1"
|
|
32
32
|
})(["line-height:1.5;margin:0;&:first-of-type{margin-bottom:", ";}@media ", "{width:75%;margin:", " auto;&:first-of-type{margin-bottom:", ";}}"], (0, _spacing.default)('sm'), function (_ref2) {
|
|
33
33
|
var theme = _ref2.theme;
|
|
34
34
|
return theme.breakpoint('small');
|
|
@@ -36,7 +36,7 @@ var CookieText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
|
36
36
|
exports.CookieText = CookieText;
|
|
37
37
|
var AcceptCookieBtn = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
38
38
|
displayName: "CookieBannerstyle__AcceptCookieBtn",
|
|
39
|
-
componentId: "m69qcz-2"
|
|
39
|
+
componentId: "sc-m69qcz-2"
|
|
40
40
|
})(["padding:", " ", ";display:block;margin-bottom:10px;@media ", "{margin:0 ", " 0 0;display:inline-block;}"], (0, _spacing.default)('sm'), (0, _spacing.default)('md'), function (_ref3) {
|
|
41
41
|
var theme = _ref3.theme;
|
|
42
42
|
return theme.breakpoint('small');
|
|
@@ -44,7 +44,7 @@ var AcceptCookieBtn = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
|
44
44
|
exports.AcceptCookieBtn = AcceptCookieBtn;
|
|
45
45
|
var LinkStyle = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
46
46
|
displayName: "CookieBannerstyle__LinkStyle",
|
|
47
|
-
componentId: "m69qcz-3"
|
|
47
|
+
componentId: "sc-m69qcz-3"
|
|
48
48
|
})(["color:", ";padding:0 ", " 1px;border-bottom:2px solid;"], function (_ref4) {
|
|
49
49
|
var theme = _ref4.theme;
|
|
50
50
|
return theme.color('white');
|
|
@@ -23,6 +23,8 @@ var _Donate = require("../Donate.style");
|
|
|
23
23
|
|
|
24
24
|
var _GivingSelector = _interopRequireDefault(require("../GivingSelector/GivingSelector"));
|
|
25
25
|
|
|
26
|
+
var _excluded = ["data", "donateLink", "otherDescription", "clientID", "cartID", "mbshipID", "noMoneyBuys"];
|
|
27
|
+
|
|
26
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
29
|
|
|
28
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -37,7 +39,7 @@ var Signup = function Signup(_ref) {
|
|
|
37
39
|
cartID = _ref.cartID,
|
|
38
40
|
mbshipID = _ref.mbshipID,
|
|
39
41
|
noMoneyBuys = _ref.noMoneyBuys,
|
|
40
|
-
rest = (0, _objectWithoutProperties2.default)(_ref,
|
|
42
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
43
|
|
|
42
44
|
var _useState = (0, _react.useState)('single'),
|
|
43
45
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|