@comicrelief/component-library 7.37.0 → 7.38.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/dist/components/Atoms/Button/Button.js +1 -1
- package/dist/components/Atoms/Icons/Arrow.js +1 -1
- package/dist/components/Atoms/Icons/AtSign.js +1 -1
- package/dist/components/Atoms/Icons/Chevron.js +1 -1
- package/dist/components/Atoms/Icons/Download.js +1 -1
- package/dist/components/Atoms/Icons/External.js +1 -1
- package/dist/components/Atoms/Icons/Favourite.js +1 -1
- package/dist/components/Atoms/Icons/Internal.js +1 -1
- package/dist/components/Atoms/Input/Input.js +1 -1
- package/dist/components/Atoms/Link/Link.style.js +3 -3
- package/dist/components/Atoms/Logo/Logo.js +1 -1
- package/dist/components/Atoms/Select/Select.js +1 -1
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +2 -2
- package/dist/components/Atoms/Text/Text.js +2 -2
- package/dist/components/Molecules/Accordion/Accordion.js +3 -3
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +6 -6
- package/dist/components/Molecules/Banner/Banner.js +2 -2
- package/dist/components/Molecules/Box/Box.js +4 -4
- package/dist/components/Molecules/CardDs/CardDs.style.js +9 -9
- package/dist/components/Molecules/DoubleCopy/DoubleCopy.style.js +1 -1
- package/dist/components/Molecules/InfoBanner/InfoBanner.js +2 -2
- package/dist/components/Molecules/PartnerLink/PartnerLink.style.js +1 -1
- package/dist/components/Molecules/Promo/_PromoVideoButton.style.js +1 -1
- package/dist/components/Molecules/SearchResult/SearchResult.js +3 -3
- package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +4 -4
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.md +3 -3
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +6 -6
- package/dist/components/Organisms/CookieBanner/CookieBanner.style.js +2 -2
- package/dist/components/Organisms/EmailSignUp/EmailSignUp.style.js +2 -2
- package/dist/components/Organisms/Footer/Footer.style.js +4 -4
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/dist/components/Organisms/Header/Burger/BurgerMenu.style.js +1 -1
- package/dist/components/Organisms/Header/Header.style.js +3 -3
- package/dist/components/Organisms/Header/Nav/Nav.style.js +6 -6
- package/dist/components/Organisms/ImpactSlider/ImpactMoneybuys.style.js +6 -6
- package/dist/components/Organisms/ImpactSlider/ImpactSlider.style.js +7 -7
- package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +4 -4
- package/dist/components/Organisms/Membership/Membership.style.js +2 -2
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +10 -10
- package/dist/theme/crTheme/theme.js +2 -0
- package/dist/theme/shared/allBreakpoints.js +20 -0
- package/package.json +1 -1
- package/src/components/Atoms/Button/Button.js +1 -1
- package/src/components/Atoms/Icons/Arrow.js +1 -1
- package/src/components/Atoms/Icons/AtSign.js +1 -1
- package/src/components/Atoms/Icons/Chevron.js +1 -1
- package/src/components/Atoms/Icons/Download.js +1 -1
- package/src/components/Atoms/Icons/External.js +1 -1
- package/src/components/Atoms/Icons/Favourite.js +1 -1
- package/src/components/Atoms/Icons/Internal.js +1 -1
- package/src/components/Atoms/Input/Input.js +1 -1
- package/src/components/Atoms/Link/Link.style.js +3 -3
- package/src/components/Atoms/Logo/Logo.js +1 -1
- package/src/components/Atoms/Select/Select.js +1 -1
- package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -2
- package/src/components/Atoms/Text/Text.js +3 -3
- package/src/components/Molecules/Accordion/Accordion.js +6 -6
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +6 -6
- package/src/components/Molecules/Banner/Banner.js +2 -2
- package/src/components/Molecules/Box/Box.js +4 -4
- package/src/components/Molecules/CardDs/CardDs.style.js +9 -9
- package/src/components/Molecules/DoubleCopy/DoubleCopy.style.js +1 -1
- package/src/components/Molecules/InfoBanner/InfoBanner.js +2 -2
- package/src/components/Molecules/PartnerLink/PartnerLink.style.js +1 -1
- package/src/components/Molecules/Promo/_PromoVideoButton.style.js +1 -1
- package/src/components/Molecules/SearchResult/SearchResult.js +3 -3
- package/src/components/Molecules/SingleMessage/SingleMessage.style.js +6 -6
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.md +3 -3
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +6 -6
- package/src/components/Organisms/CookieBanner/CookieBanner.style.js +2 -2
- package/src/components/Organisms/EmailSignUp/EmailSignUp.style.js +3 -3
- package/src/components/Organisms/Footer/Footer.style.js +4 -4
- package/src/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/src/components/Organisms/Header/Burger/BurgerMenu.style.js +1 -1
- package/src/components/Organisms/Header/Header.style.js +3 -3
- package/src/components/Organisms/Header/Nav/Nav.style.js +6 -6
- package/src/components/Organisms/ImpactSlider/ImpactMoneybuys.style.js +7 -7
- package/src/components/Organisms/ImpactSlider/ImpactSlider.style.js +8 -8
- package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +4 -4
- package/src/components/Organisms/Membership/Membership.style.js +2 -2
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +21 -21
- package/src/theme/crTheme/theme.js +2 -0
- package/src/theme/shared/allBreakpoints.js +14 -0
|
@@ -28,7 +28,7 @@ const StyledButton = _styledComponents.default.button.withConfig({
|
|
|
28
28
|
let {
|
|
29
29
|
theme
|
|
30
30
|
} = _ref3;
|
|
31
|
-
return theme.
|
|
31
|
+
return theme.allBreakpoints('M');
|
|
32
32
|
}, (0, _breakpoint.default)('medium'), (0, _spacing.default)('md'), (0, _spacing.default)('l'), (0, _spacing.default)('l'));
|
|
33
33
|
const Button = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
34
34
|
let {
|
|
@@ -25,7 +25,7 @@ const InputField = _styledComponents.default.input.withConfig({
|
|
|
25
25
|
error,
|
|
26
26
|
prefixLength
|
|
27
27
|
} = _ref;
|
|
28
|
-
return (0, _styledComponents.css)(["position:relative;box-sizing:border-box;width:100%;height:48px;padding:", " ", ";", " background-color:", ";border:1px solid;border-color:", ";box-shadow:none;appearance:none;color:", ";border-radius:", ";font-size:inherit;z-index:2;font-family:", ";:focus{border:1px solid ", ";}@media ", "{max-width:290px;}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'), prefixLength > 0 ? "padding-left: ".concat(getPrefixWidth(prefixLength), ";") : '', theme.color('grey_light'), error ? theme.color('red') : theme.color('grey_medium'), theme.color('black'), (0, _spacing.default)('sm'), theme.fontFamilies(theme.font.regular), theme.color('grey_for_forms'), theme.
|
|
28
|
+
return (0, _styledComponents.css)(["position:relative;box-sizing:border-box;width:100%;height:48px;padding:", " ", ";", " background-color:", ";border:1px solid;border-color:", ";box-shadow:none;appearance:none;color:", ";border-radius:", ";font-size:inherit;z-index:2;font-family:", ";:focus{border:1px solid ", ";}@media ", "{max-width:290px;}"], (0, _spacing.default)('md'), (0, _spacing.default)('m'), prefixLength > 0 ? "padding-left: ".concat(getPrefixWidth(prefixLength), ";") : '', theme.color('grey_light'), error ? theme.color('red') : theme.color('grey_medium'), theme.color('black'), (0, _spacing.default)('sm'), theme.fontFamilies(theme.font.regular), theme.color('grey_for_forms'), theme.allBreakpoints('M'));
|
|
29
29
|
});
|
|
30
30
|
const InputWrapper = _styledComponents.default.div.withConfig({
|
|
31
31
|
displayName: "Input__InputWrapper",
|
|
@@ -30,12 +30,12 @@ const buttonStyle = () => (0, _styledComponents.css)(["display:inline-flex;posit
|
|
|
30
30
|
let {
|
|
31
31
|
theme
|
|
32
32
|
} = _ref4;
|
|
33
|
-
return theme.
|
|
33
|
+
return theme.allBreakpoints('M');
|
|
34
34
|
}, _ref5 => {
|
|
35
35
|
let {
|
|
36
36
|
theme
|
|
37
37
|
} = _ref5;
|
|
38
|
-
return theme.
|
|
38
|
+
return theme.allBreakpoints('L');
|
|
39
39
|
}, _ref6 => {
|
|
40
40
|
let {
|
|
41
41
|
color,
|
|
@@ -68,7 +68,7 @@ const IconWrapper = exports.IconWrapper = _styledComponents.default.span.withCon
|
|
|
68
68
|
let {
|
|
69
69
|
theme
|
|
70
70
|
} = _ref10;
|
|
71
|
-
return theme.
|
|
71
|
+
return theme.allBreakpoints('M');
|
|
72
72
|
}, _ref11 => {
|
|
73
73
|
let {
|
|
74
74
|
type
|
|
@@ -52,7 +52,7 @@ const StyledSelect = _styledComponents.default.select.withConfig({
|
|
|
52
52
|
let {
|
|
53
53
|
theme
|
|
54
54
|
} = _ref7;
|
|
55
|
-
return theme.
|
|
55
|
+
return theme.allBreakpoints('M');
|
|
56
56
|
});
|
|
57
57
|
const Select = /*#__PURE__*/_react.default.forwardRef((_ref8, ref) => {
|
|
58
58
|
let {
|
|
@@ -18,7 +18,7 @@ const StyledList = _styledComponents.default.ul.withConfig({
|
|
|
18
18
|
let {
|
|
19
19
|
theme
|
|
20
20
|
} = _ref;
|
|
21
|
-
return theme.
|
|
21
|
+
return theme.allBreakpoints('M');
|
|
22
22
|
});
|
|
23
23
|
const StyledItem = _styledComponents.default.li.withConfig({
|
|
24
24
|
displayName: "SocialIcons__StyledItem",
|
|
@@ -27,7 +27,7 @@ const StyledItem = _styledComponents.default.li.withConfig({
|
|
|
27
27
|
let {
|
|
28
28
|
theme
|
|
29
29
|
} = _ref2;
|
|
30
|
-
return theme.
|
|
30
|
+
return theme.allBreakpoints('M');
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
/** Social media icons with customizable style linked to campaign social media accounts */
|
|
@@ -67,7 +67,7 @@ const BaseText = exports.BaseText = _styledComponents.default.span.withConfig({
|
|
|
67
67
|
size,
|
|
68
68
|
theme
|
|
69
69
|
} = _ref10;
|
|
70
|
-
return size === 'super' ? (0, _styledComponents.css)(["font-size:", ";line-height:3rem;@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}"], theme.fontSize('xxl'), theme.
|
|
70
|
+
return size === 'super' ? (0, _styledComponents.css)(["font-size:", ";line-height:3rem;@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}"], theme.fontSize('xxl'), theme.allBreakpoints('M'), theme.fontSize('big'), theme.fontSize('big'), theme.allBreakpoints('L'), theme.fontSize('super'), theme.fontSize('super')) : null;
|
|
71
71
|
}, _ref11 => {
|
|
72
72
|
let {
|
|
73
73
|
mobileColor,
|
|
@@ -79,7 +79,7 @@ const BaseText = exports.BaseText = _styledComponents.default.span.withConfig({
|
|
|
79
79
|
size,
|
|
80
80
|
theme
|
|
81
81
|
} = _ref12;
|
|
82
|
-
return size === 'm' ? (0, _styledComponents.css)(["font-size:", ";@media ", "{font-size:", ";}"], theme.fontSize('s'), theme.
|
|
82
|
+
return size === 'm' ? (0, _styledComponents.css)(["font-size:", ";@media ", "{font-size:", ";}"], theme.fontSize('s'), theme.allBreakpoints('M'), theme.fontSize('m')) : null;
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
/** Text renders different elements based on the `tag` prop
|
|
@@ -27,7 +27,7 @@ const Button = _styledComponents.default.button.withConfig({
|
|
|
27
27
|
let {
|
|
28
28
|
theme
|
|
29
29
|
} = _ref2;
|
|
30
|
-
return theme.
|
|
30
|
+
return theme.allBreakpoints('M');
|
|
31
31
|
}, (0, _spacing.default)('l'), (0, _spacing.default)('lg'));
|
|
32
32
|
const Icon = _styledComponents.default.div.withConfig({
|
|
33
33
|
displayName: "Accordion__Icon",
|
|
@@ -40,7 +40,7 @@ const Copy = _styledComponents.default.div.withConfig({
|
|
|
40
40
|
let {
|
|
41
41
|
theme
|
|
42
42
|
} = _ref3;
|
|
43
|
-
return theme.
|
|
43
|
+
return theme.allBreakpoints('M');
|
|
44
44
|
}, (0, _spacing.default)('lg'), _ref4 => {
|
|
45
45
|
let {
|
|
46
46
|
isOpen
|
|
@@ -49,7 +49,7 @@ const Copy = _styledComponents.default.div.withConfig({
|
|
|
49
49
|
let {
|
|
50
50
|
theme
|
|
51
51
|
} = _ref5;
|
|
52
|
-
return theme.
|
|
52
|
+
return theme.allBreakpoints('M');
|
|
53
53
|
}, (0, _spacing.default)('lg'), (0, _spacing.default)('l'));
|
|
54
54
|
});
|
|
55
55
|
const Accordion = _ref6 => {
|
|
@@ -44,12 +44,12 @@ const Link = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
|
44
44
|
let {
|
|
45
45
|
theme
|
|
46
46
|
} = _ref4;
|
|
47
|
-
return theme.
|
|
47
|
+
return theme.allBreakpoints('M');
|
|
48
48
|
}, _ref5 => {
|
|
49
49
|
let {
|
|
50
50
|
theme
|
|
51
51
|
} = _ref5;
|
|
52
|
-
return theme.
|
|
52
|
+
return theme.allBreakpoints('L');
|
|
53
53
|
}, _ref6 => {
|
|
54
54
|
let {
|
|
55
55
|
category
|
|
@@ -72,12 +72,12 @@ const ImageWrapper = _styledComponents.default.div.withConfig({
|
|
|
72
72
|
let {
|
|
73
73
|
theme
|
|
74
74
|
} = _ref9;
|
|
75
|
-
return theme.
|
|
75
|
+
return theme.allBreakpoints('M');
|
|
76
76
|
}, _ref10 => {
|
|
77
77
|
let {
|
|
78
78
|
theme
|
|
79
79
|
} = _ref10;
|
|
80
|
-
return theme.
|
|
80
|
+
return theme.allBreakpoints('L');
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
const CopyWrapper = _styledComponents.default.div.withConfig({
|
|
@@ -91,13 +91,13 @@ const CopyWrapper = _styledComponents.default.div.withConfig({
|
|
|
91
91
|
let {
|
|
92
92
|
theme
|
|
93
93
|
} = _ref12;
|
|
94
|
-
return theme.
|
|
94
|
+
return theme.allBreakpoints('M');
|
|
95
95
|
});
|
|
96
96
|
}, _ref13 => {
|
|
97
97
|
let {
|
|
98
98
|
theme
|
|
99
99
|
} = _ref13;
|
|
100
|
-
return theme.
|
|
100
|
+
return theme.allBreakpoints('L');
|
|
101
101
|
});
|
|
102
102
|
const Title = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
103
103
|
displayName: "ArticleTeaser__Title",
|
|
@@ -26,12 +26,12 @@ const Container = _styledComponents.default.div.withConfig({
|
|
|
26
26
|
let {
|
|
27
27
|
theme
|
|
28
28
|
} = _ref2;
|
|
29
|
-
return theme.
|
|
29
|
+
return theme.allBreakpoints('M');
|
|
30
30
|
}, (0, _spacing.default)('xl'), (0, _spacing.default)('l'), _ref3 => {
|
|
31
31
|
let {
|
|
32
32
|
theme
|
|
33
33
|
} = _ref3;
|
|
34
|
-
return theme.
|
|
34
|
+
return theme.allBreakpoints('XL');
|
|
35
35
|
}, (0, _spacing.default)('xl'), (0, _spacing.default)('xl'));
|
|
36
36
|
const Banner = _ref4 => {
|
|
37
37
|
let {
|
|
@@ -16,12 +16,12 @@ const Container = _styledComponents.default.div.withConfig({
|
|
|
16
16
|
let {
|
|
17
17
|
theme
|
|
18
18
|
} = _ref;
|
|
19
|
-
return theme.
|
|
19
|
+
return theme.allBreakpoints('M');
|
|
20
20
|
}, _ref2 => {
|
|
21
21
|
let {
|
|
22
22
|
theme
|
|
23
23
|
} = _ref2;
|
|
24
|
-
return theme.
|
|
24
|
+
return theme.allBreakpoints('XL');
|
|
25
25
|
});
|
|
26
26
|
const Image = _styledComponents.default.div.withConfig({
|
|
27
27
|
displayName: "Box__Image",
|
|
@@ -34,12 +34,12 @@ const Copy = _styledComponents.default.div.withConfig({
|
|
|
34
34
|
let {
|
|
35
35
|
theme
|
|
36
36
|
} = _ref3;
|
|
37
|
-
return theme.
|
|
37
|
+
return theme.allBreakpoints('M');
|
|
38
38
|
}, _ref4 => {
|
|
39
39
|
let {
|
|
40
40
|
theme
|
|
41
41
|
} = _ref4;
|
|
42
|
-
return theme.
|
|
42
|
+
return theme.allBreakpoints('XL');
|
|
43
43
|
});
|
|
44
44
|
const Box = _ref5 => {
|
|
45
45
|
let {
|
|
@@ -22,12 +22,12 @@ const Container = exports.Container = _styledComponents.default.div.withConfig({
|
|
|
22
22
|
let {
|
|
23
23
|
theme
|
|
24
24
|
} = _ref2;
|
|
25
|
-
return theme.
|
|
25
|
+
return theme.allBreakpoints('M');
|
|
26
26
|
}, _ref3 => {
|
|
27
27
|
let {
|
|
28
28
|
theme
|
|
29
29
|
} = _ref3;
|
|
30
|
-
return theme.
|
|
30
|
+
return theme.allBreakpoints('XL');
|
|
31
31
|
});
|
|
32
32
|
const Image = exports.Image = _styledComponents.default.div.withConfig({
|
|
33
33
|
displayName: "CardDsstyle__Image",
|
|
@@ -36,7 +36,7 @@ const Image = exports.Image = _styledComponents.default.div.withConfig({
|
|
|
36
36
|
let {
|
|
37
37
|
theme
|
|
38
38
|
} = _ref4;
|
|
39
|
-
return theme.
|
|
39
|
+
return theme.allBreakpoints('M');
|
|
40
40
|
}, (0, _spacing.default)('m'), (0, _spacing.default)('m'), (0, _spacing.default)('md'), (0, _spacing.default)('md'));
|
|
41
41
|
const MediaLink = exports.MediaLink = _styledComponents.default.a.withConfig({
|
|
42
42
|
displayName: "CardDsstyle__MediaLink",
|
|
@@ -45,12 +45,12 @@ const MediaLink = exports.MediaLink = _styledComponents.default.a.withConfig({
|
|
|
45
45
|
let {
|
|
46
46
|
theme
|
|
47
47
|
} = _ref5;
|
|
48
|
-
return theme.
|
|
48
|
+
return theme.allBreakpoints('M');
|
|
49
49
|
}, _ref6 => {
|
|
50
50
|
let {
|
|
51
51
|
theme
|
|
52
52
|
} = _ref6;
|
|
53
|
-
return theme.
|
|
53
|
+
return theme.allBreakpoints('XL');
|
|
54
54
|
});
|
|
55
55
|
const Copy = exports.Copy = _styledComponents.default.div.withConfig({
|
|
56
56
|
displayName: "CardDsstyle__Copy",
|
|
@@ -70,7 +70,7 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
|
|
|
70
70
|
let {
|
|
71
71
|
theme
|
|
72
72
|
} = _ref9;
|
|
73
|
-
return theme.
|
|
73
|
+
return theme.allBreakpoints('XL');
|
|
74
74
|
}, (0, _zIndex.default)('low'), _ref10 => {
|
|
75
75
|
let {
|
|
76
76
|
hasImage
|
|
@@ -79,12 +79,12 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
|
|
|
79
79
|
let {
|
|
80
80
|
theme
|
|
81
81
|
} = _ref11;
|
|
82
|
-
return theme.
|
|
82
|
+
return theme.allBreakpoints('M');
|
|
83
83
|
}, (0, _spacing.default)('m'), (0, _spacing.default)('m'), (0, _spacing.default)('m'), _ref12 => {
|
|
84
84
|
let {
|
|
85
85
|
theme
|
|
86
86
|
} = _ref12;
|
|
87
|
-
return theme.
|
|
87
|
+
return theme.allBreakpoints('XL');
|
|
88
88
|
}, (0, _spacing.default)('m'), (0, _spacing.default)('m'));
|
|
89
89
|
});
|
|
90
90
|
const CTA = exports.CTA = _styledComponents.default.div.withConfig({
|
|
@@ -94,7 +94,7 @@ const CTA = exports.CTA = _styledComponents.default.div.withConfig({
|
|
|
94
94
|
let {
|
|
95
95
|
theme
|
|
96
96
|
} = _ref13;
|
|
97
|
-
return theme.
|
|
97
|
+
return theme.allBreakpoints('M');
|
|
98
98
|
}, (0, _spacing.default)('l'), (0, _spacing.default)('md'), _ref14 => {
|
|
99
99
|
let {
|
|
100
100
|
hasImage
|
|
@@ -14,7 +14,7 @@ const Section = exports.Section = _styledComponents.default.section.withConfig({
|
|
|
14
14
|
let {
|
|
15
15
|
theme
|
|
16
16
|
} = _ref;
|
|
17
|
-
return theme.
|
|
17
|
+
return theme.allBreakpoints('M');
|
|
18
18
|
});
|
|
19
19
|
const CopyWrapper = exports.CopyWrapper = _styledComponents.default.div.withConfig({
|
|
20
20
|
displayName: "DoubleCopystyle__CopyWrapper",
|
|
@@ -18,7 +18,7 @@ const Container = _styledComponents.default.section.withConfig({
|
|
|
18
18
|
let {
|
|
19
19
|
theme
|
|
20
20
|
} = _ref;
|
|
21
|
-
return theme.
|
|
21
|
+
return theme.allBreakpoints('M');
|
|
22
22
|
});
|
|
23
23
|
const Info = _styledComponents.default.div.withConfig({
|
|
24
24
|
displayName: "InfoBanner__Info",
|
|
@@ -27,7 +27,7 @@ const Info = _styledComponents.default.div.withConfig({
|
|
|
27
27
|
let {
|
|
28
28
|
theme
|
|
29
29
|
} = _ref2;
|
|
30
|
-
return theme.
|
|
30
|
+
return theme.allBreakpoints('M');
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -30,7 +30,7 @@ const Item = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
|
30
30
|
let {
|
|
31
31
|
theme
|
|
32
32
|
} = _ref2;
|
|
33
|
-
return theme.
|
|
33
|
+
return theme.allBreakpoints('M');
|
|
34
34
|
});
|
|
35
35
|
const ImageWrapper = _styledComponents.default.div.withConfig({
|
|
36
36
|
displayName: "SearchResult__ImageWrapper",
|
|
@@ -39,7 +39,7 @@ const ImageWrapper = _styledComponents.default.div.withConfig({
|
|
|
39
39
|
let {
|
|
40
40
|
theme
|
|
41
41
|
} = _ref3;
|
|
42
|
-
return theme.
|
|
42
|
+
return theme.allBreakpoints('M');
|
|
43
43
|
}, _ref4 => {
|
|
44
44
|
let {
|
|
45
45
|
smallImageWidth
|
|
@@ -49,7 +49,7 @@ const ImageWrapper = _styledComponents.default.div.withConfig({
|
|
|
49
49
|
let {
|
|
50
50
|
theme
|
|
51
51
|
} = _ref5;
|
|
52
|
-
return theme.
|
|
52
|
+
return theme.allBreakpoints('XL');
|
|
53
53
|
}, _ref6 => {
|
|
54
54
|
let {
|
|
55
55
|
largeImageWidth
|
|
@@ -71,12 +71,12 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
|
|
|
71
71
|
let {
|
|
72
72
|
theme
|
|
73
73
|
} = _ref9;
|
|
74
|
-
return theme.
|
|
74
|
+
return theme.allBreakpoints('M');
|
|
75
75
|
}) : (0, _styledComponents.css)(["@media ", "{width:100%;max-width ", ";padding:", ";}margin:auto;padding:", ";"], _ref10 => {
|
|
76
76
|
let {
|
|
77
77
|
theme
|
|
78
78
|
} = _ref10;
|
|
79
|
-
return theme.
|
|
79
|
+
return theme.allBreakpoints('M');
|
|
80
80
|
}, _size.container.small, (0, _spacing.default)('xl'), (0, _spacing.default)('md')), (0, _size.media)('medium'), _ref11 => {
|
|
81
81
|
let {
|
|
82
82
|
paddingOption
|
|
@@ -95,7 +95,7 @@ const Media = exports.Media = _styledComponents.default.div.withConfig({
|
|
|
95
95
|
let {
|
|
96
96
|
theme
|
|
97
97
|
} = _ref13;
|
|
98
|
-
return theme.
|
|
98
|
+
return theme.allBreakpoints('M');
|
|
99
99
|
}, _ref14 => {
|
|
100
100
|
let {
|
|
101
101
|
fullImage
|
|
@@ -160,7 +160,7 @@ const Image = exports.Image = _styledComponents.default.div.withConfig({
|
|
|
160
160
|
let {
|
|
161
161
|
theme
|
|
162
162
|
} = _ref24;
|
|
163
|
-
return theme.
|
|
163
|
+
return theme.allBreakpoints('M');
|
|
164
164
|
}, _ref25 => {
|
|
165
165
|
let {
|
|
166
166
|
fullImage,
|
|
@@ -12,7 +12,7 @@ const Title = styled(Text)`
|
|
|
12
12
|
letter-spacing: 0.03em;
|
|
13
13
|
text-transform: uppercase;
|
|
14
14
|
margin: ${spacing('md')} 0;
|
|
15
|
-
@media ${({ theme }) => theme.
|
|
15
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
16
16
|
margin-bottom: ${spacing('m')};
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
@@ -57,7 +57,7 @@ import spacing from '../../../theme/shared/spacing';
|
|
|
57
57
|
|
|
58
58
|
const Title = styled(Text)`
|
|
59
59
|
margin: ${spacing('md')} 0;
|
|
60
|
-
@media ${({ theme }) => theme.
|
|
60
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
61
61
|
margin-bottom: ${spacing('m')};
|
|
62
62
|
}
|
|
63
63
|
`;
|
|
@@ -103,7 +103,7 @@ import spacing from '../../../theme/shared/spacing';
|
|
|
103
103
|
|
|
104
104
|
const Title = styled(Text)`
|
|
105
105
|
margin: ${spacing('md')} 0;
|
|
106
|
-
@media ${({ theme }) => theme.
|
|
106
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
107
107
|
margin-bottom: ${spacing('m')};
|
|
108
108
|
}
|
|
109
109
|
`;
|
|
@@ -23,7 +23,7 @@ const Container = exports.Container = _styledComponents.default.div.withConfig({
|
|
|
23
23
|
let {
|
|
24
24
|
theme
|
|
25
25
|
} = _ref2;
|
|
26
|
-
return theme.
|
|
26
|
+
return theme.allBreakpoints('M');
|
|
27
27
|
}, _ref3 => {
|
|
28
28
|
let {
|
|
29
29
|
imageLeft
|
|
@@ -41,7 +41,7 @@ const Image = exports.Image = _styledComponents.default.div.withConfig({
|
|
|
41
41
|
let {
|
|
42
42
|
theme
|
|
43
43
|
} = _ref4;
|
|
44
|
-
return theme.
|
|
44
|
+
return theme.allBreakpoints('M');
|
|
45
45
|
}, boxShadow);
|
|
46
46
|
const MediaLink = exports.MediaLink = _styledComponents.default.a.withConfig({
|
|
47
47
|
displayName: "SingleMessageDsstyle__MediaLink",
|
|
@@ -55,7 +55,7 @@ const MediaLink = exports.MediaLink = _styledComponents.default.a.withConfig({
|
|
|
55
55
|
let {
|
|
56
56
|
theme
|
|
57
57
|
} = _ref6;
|
|
58
|
-
return theme.
|
|
58
|
+
return theme.allBreakpoints('M');
|
|
59
59
|
});
|
|
60
60
|
const PlayHolder = exports.PlayHolder = _styledComponents.default.div.withConfig({
|
|
61
61
|
displayName: "SingleMessageDsstyle__PlayHolder",
|
|
@@ -81,7 +81,7 @@ const CTA = exports.CTA = _styledComponents.default.div.withConfig({
|
|
|
81
81
|
let {
|
|
82
82
|
theme
|
|
83
83
|
} = _ref8;
|
|
84
|
-
return theme.
|
|
84
|
+
return theme.allBreakpoints('M');
|
|
85
85
|
}, _ref9 => {
|
|
86
86
|
let {
|
|
87
87
|
hasImage
|
|
@@ -111,7 +111,7 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
|
|
|
111
111
|
let {
|
|
112
112
|
theme
|
|
113
113
|
} = _ref13;
|
|
114
|
-
return theme.
|
|
114
|
+
return theme.allBreakpoints('M');
|
|
115
115
|
}, (0, _spacing.default)('l'), _ref14 => {
|
|
116
116
|
let {
|
|
117
117
|
hasLink
|
|
@@ -126,7 +126,7 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
|
|
|
126
126
|
let {
|
|
127
127
|
theme
|
|
128
128
|
} = _ref16;
|
|
129
|
-
return theme.
|
|
129
|
+
return theme.allBreakpoints('XL');
|
|
130
130
|
}, (0, _spacing.default)('m'), _ref17 => {
|
|
131
131
|
let {
|
|
132
132
|
hasLink
|
|
@@ -26,7 +26,7 @@ const CookieText = exports.CookieText = (0, _styledComponents.default)(_Text.def
|
|
|
26
26
|
let {
|
|
27
27
|
theme
|
|
28
28
|
} = _ref2;
|
|
29
|
-
return theme.
|
|
29
|
+
return theme.allBreakpoints('M');
|
|
30
30
|
}, (0, _spacing.default)('none'), (0, _spacing.default)('md'));
|
|
31
31
|
const AcceptCookieBtn = exports.AcceptCookieBtn = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
32
32
|
displayName: "CookieBannerstyle__AcceptCookieBtn",
|
|
@@ -35,7 +35,7 @@ const AcceptCookieBtn = exports.AcceptCookieBtn = (0, _styledComponents.default)
|
|
|
35
35
|
let {
|
|
36
36
|
theme
|
|
37
37
|
} = _ref3;
|
|
38
|
-
return theme.
|
|
38
|
+
return theme.allBreakpoints('M');
|
|
39
39
|
}, (0, _spacing.default)('xsm'));
|
|
40
40
|
const LinkStyle = exports.LinkStyle = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
41
41
|
displayName: "CookieBannerstyle__LinkStyle",
|
|
@@ -78,7 +78,7 @@ const NameWrapper = exports.NameWrapper = _styledComponents.default.div.withConf
|
|
|
78
78
|
let {
|
|
79
79
|
theme
|
|
80
80
|
} = _ref9;
|
|
81
|
-
return theme.
|
|
81
|
+
return theme.allBreakpoints('L');
|
|
82
82
|
}, _ref10 => {
|
|
83
83
|
let {
|
|
84
84
|
columnLayout
|
|
@@ -102,7 +102,7 @@ const InputField = exports.InputField = (0, _styledComponents.default)(_TextInpu
|
|
|
102
102
|
let {
|
|
103
103
|
theme
|
|
104
104
|
} = _ref13;
|
|
105
|
-
return theme.
|
|
105
|
+
return theme.allBreakpoints('L');
|
|
106
106
|
});
|
|
107
107
|
const Title = exports.Title = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
108
108
|
displayName: "EmailSignUpstyle__Title",
|
|
@@ -18,7 +18,7 @@ const FooterWrapper = exports.FooterWrapper = _styledComponents.default.footer.a
|
|
|
18
18
|
let {
|
|
19
19
|
theme
|
|
20
20
|
} = _ref;
|
|
21
|
-
return theme.
|
|
21
|
+
return theme.allBreakpoints('M');
|
|
22
22
|
}, (0, _spacing.default)('l'));
|
|
23
23
|
const Angle = exports.Angle = _styledComponents.default.div.withConfig({
|
|
24
24
|
displayName: "Footerstyle__Angle",
|
|
@@ -27,7 +27,7 @@ const Angle = exports.Angle = _styledComponents.default.div.withConfig({
|
|
|
27
27
|
let {
|
|
28
28
|
theme
|
|
29
29
|
} = _ref2;
|
|
30
|
-
return theme.
|
|
30
|
+
return theme.allBreakpoints('L');
|
|
31
31
|
});
|
|
32
32
|
const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withConfig({
|
|
33
33
|
displayName: "Footerstyle__InnerWrapper",
|
|
@@ -36,7 +36,7 @@ const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withCo
|
|
|
36
36
|
let {
|
|
37
37
|
theme
|
|
38
38
|
} = _ref3;
|
|
39
|
-
return theme.
|
|
39
|
+
return theme.allBreakpoints('L');
|
|
40
40
|
}, (0, _spacing.default)('md'), (0, _spacing.default)('xl'));
|
|
41
41
|
const FooterLegalLine = exports.FooterLegalLine = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
42
42
|
displayName: "Footerstyle__FooterLegalLine",
|
|
@@ -53,7 +53,7 @@ const FooterCopyright = exports.FooterCopyright = _styledComponents.default.div.
|
|
|
53
53
|
let {
|
|
54
54
|
theme
|
|
55
55
|
} = _ref4;
|
|
56
|
-
return theme.
|
|
56
|
+
return theme.allBreakpoints('L');
|
|
57
57
|
});
|
|
58
58
|
const Brand = exports.Brand = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
59
59
|
displayName: "Footerstyle__Brand",
|