@comicrelief/component-library 7.36.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 +25 -4
- package/dist/components/Atoms/Icons/AtSign.js +32 -6
- package/dist/components/Atoms/Icons/Chevron.js +25 -3
- package/dist/components/Atoms/Icons/Download.js +31 -4
- package/dist/components/Atoms/Icons/External.js +31 -4
- package/dist/components/Atoms/Icons/Favourite.js +31 -4
- package/dist/components/Atoms/Icons/Internal.js +31 -4
- package/dist/components/Atoms/Input/Input.js +1 -1
- package/dist/components/Atoms/Link/Link.md +22 -21
- package/dist/components/Atoms/Link/Link.style.js +3 -3
- package/dist/components/Atoms/Link/Link.test.js +1 -1
- 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/Accordion/__snapshots__/Accordion.test.js.snap +7 -0
- 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/CardDs/__snapshots__/CardDs.test.js.snap +11 -0
- 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/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +11 -0
- 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/buttonColors.js +1 -1
- 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 +13 -2
- package/src/components/Atoms/Icons/AtSign.js +20 -7
- package/src/components/Atoms/Icons/Chevron.js +13 -1
- package/src/components/Atoms/Icons/Download.js +18 -4
- package/src/components/Atoms/Icons/External.js +18 -4
- package/src/components/Atoms/Icons/Favourite.js +18 -4
- package/src/components/Atoms/Icons/Internal.js +18 -4
- package/src/components/Atoms/Input/Input.js +1 -1
- package/src/components/Atoms/Link/Link.md +22 -21
- package/src/components/Atoms/Link/Link.style.js +3 -3
- package/src/components/Atoms/Link/Link.test.js +11 -0
- 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/Accordion/__snapshots__/Accordion.test.js.snap +7 -0
- 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/CardDs/__snapshots__/CardDs.test.js.snap +11 -0
- 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/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +11 -0
- 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/buttonColors.js +1 -1
- package/src/theme/crTheme/theme.js +2 -0
- package/src/theme/shared/allBreakpoints.js +14 -0
|
@@ -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 => {
|
|
@@ -20,6 +20,7 @@ exports[`renders correctly 1`] = `
|
|
|
20
20
|
-webkit-transform: rotate(180deg);
|
|
21
21
|
-ms-transform: rotate(180deg);
|
|
22
22
|
transform: rotate(180deg);
|
|
23
|
+
fill: #000000;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.c0 {
|
|
@@ -88,6 +89,12 @@ exports[`renders correctly 1`] = `
|
|
|
88
89
|
padding: 0 2rem;
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
@media (min-width:1024px) {
|
|
93
|
+
.c4 {
|
|
94
|
+
fill: #000000;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
91
98
|
@media (min-width:740px) {
|
|
92
99
|
.c1 {
|
|
93
100
|
padding: 2rem 3rem;
|
|
@@ -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
|
|
@@ -115,6 +115,10 @@ exports[`renders correctly 1`] = `
|
|
|
115
115
|
z-index: 2;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.c9 {
|
|
119
|
+
fill: #FFFFFF;
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
@media (min-width:740px) {
|
|
119
123
|
.c8 {
|
|
120
124
|
width: auto;
|
|
@@ -201,6 +205,12 @@ exports[`renders correctly 1`] = `
|
|
|
201
205
|
}
|
|
202
206
|
}
|
|
203
207
|
|
|
208
|
+
@media (min-width:1024px) {
|
|
209
|
+
.c9 {
|
|
210
|
+
fill: #FFFFFF;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
204
214
|
<div
|
|
205
215
|
className="c0"
|
|
206
216
|
>
|
|
@@ -258,6 +268,7 @@ exports[`renders correctly 1`] = `
|
|
|
258
268
|
type="button"
|
|
259
269
|
>
|
|
260
270
|
<svg
|
|
271
|
+
className="c9"
|
|
261
272
|
fill="#FFFFFF"
|
|
262
273
|
height={24}
|
|
263
274
|
viewBox="0 0 96 96"
|
|
@@ -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
|
package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap
CHANGED
|
@@ -79,6 +79,10 @@ exports[`renders correctly 1`] = `
|
|
|
79
79
|
color: #FFFFFF;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.c13 {
|
|
83
|
+
fill: #FFFFFF;
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
.c0 {
|
|
83
87
|
display: -webkit-box;
|
|
84
88
|
display: -webkit-flex;
|
|
@@ -175,6 +179,12 @@ exports[`renders correctly 1`] = `
|
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
|
|
182
|
+
@media (min-width:1024px) {
|
|
183
|
+
.c13 {
|
|
184
|
+
fill: #FFFFFF;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
178
188
|
@media (min-width:740px) {
|
|
179
189
|
.c0 {
|
|
180
190
|
-webkit-flex-direction: row;
|
|
@@ -310,6 +320,7 @@ exports[`renders correctly 1`] = `
|
|
|
310
320
|
type="button"
|
|
311
321
|
>
|
|
312
322
|
<svg
|
|
323
|
+
className="c13"
|
|
313
324
|
fill="#FFFFFF"
|
|
314
325
|
height={24}
|
|
315
326
|
viewBox="0 0 96 96"
|
|
@@ -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",
|
|
@@ -46,7 +46,7 @@ const SubNavMenu = exports.SubNavMenu = _styledComponents.default.ul.withConfig(
|
|
|
46
46
|
let {
|
|
47
47
|
theme
|
|
48
48
|
} = _ref4;
|
|
49
|
-
return theme.
|
|
49
|
+
return theme.allBreakpoints('M');
|
|
50
50
|
}, _ref5 => {
|
|
51
51
|
let {
|
|
52
52
|
column
|
|
@@ -64,7 +64,7 @@ const SubNavItem = exports.SubNavItem = _styledComponents.default.li.withConfig(
|
|
|
64
64
|
let {
|
|
65
65
|
theme
|
|
66
66
|
} = _ref6;
|
|
67
|
-
return theme.
|
|
67
|
+
return theme.allBreakpoints('M');
|
|
68
68
|
}, _ref7 => {
|
|
69
69
|
let {
|
|
70
70
|
column
|
|
@@ -74,7 +74,7 @@ const SubNavItem = exports.SubNavItem = _styledComponents.default.li.withConfig(
|
|
|
74
74
|
let {
|
|
75
75
|
theme
|
|
76
76
|
} = _ref8;
|
|
77
|
-
return theme.
|
|
77
|
+
return theme.allBreakpoints('L');
|
|
78
78
|
}, _ref9 => {
|
|
79
79
|
let {
|
|
80
80
|
column
|
|
@@ -100,7 +100,7 @@ const NavMenu = exports.NavMenu = _styledComponents.default.ul.withConfig({
|
|
|
100
100
|
let {
|
|
101
101
|
theme
|
|
102
102
|
} = _ref10;
|
|
103
|
-
return theme.
|
|
103
|
+
return theme.allBreakpoints('M');
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -121,17 +121,17 @@ const NavItem = exports.NavItem = _styledComponents.default.li.withConfig({
|
|
|
121
121
|
let {
|
|
122
122
|
theme
|
|
123
123
|
} = _ref11;
|
|
124
|
-
return theme.
|
|
124
|
+
return theme.allBreakpoints('M');
|
|
125
125
|
}, _ref12 => {
|
|
126
126
|
let {
|
|
127
127
|
theme
|
|
128
128
|
} = _ref12;
|
|
129
|
-
return theme.
|
|
129
|
+
return theme.allBreakpoints('L');
|
|
130
130
|
}, _ref13 => {
|
|
131
131
|
let {
|
|
132
132
|
theme
|
|
133
133
|
} = _ref13;
|
|
134
|
-
return theme.
|
|
134
|
+
return theme.allBreakpoints('M');
|
|
135
135
|
}, _ref14 => {
|
|
136
136
|
let {
|
|
137
137
|
theme
|
|
@@ -151,5 +151,5 @@ const NavItem = exports.NavItem = _styledComponents.default.li.withConfig({
|
|
|
151
151
|
let {
|
|
152
152
|
theme
|
|
153
153
|
} = _ref17;
|
|
154
|
-
return theme.
|
|
154
|
+
return theme.allBreakpoints('M');
|
|
155
155
|
});
|
|
@@ -23,7 +23,7 @@ const HeaderWrapper = exports.HeaderWrapper = _styledComponents.default.header.a
|
|
|
23
23
|
let {
|
|
24
24
|
theme
|
|
25
25
|
} = _ref2;
|
|
26
|
-
return theme.
|
|
26
|
+
return theme.allBreakpoints('Nav');
|
|
27
27
|
});
|
|
28
28
|
const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withConfig({
|
|
29
29
|
displayName: "Headerstyle__InnerWrapper",
|
|
@@ -32,7 +32,7 @@ const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withCo
|
|
|
32
32
|
let {
|
|
33
33
|
theme
|
|
34
34
|
} = _ref3;
|
|
35
|
-
return theme.
|
|
35
|
+
return theme.allBreakpoints('Nav');
|
|
36
36
|
});
|
|
37
37
|
const Brand = exports.Brand = _styledComponents.default.div.withConfig({
|
|
38
38
|
displayName: "Headerstyle__Brand",
|
|
@@ -45,7 +45,7 @@ const MetaIcons = exports.MetaIcons = _styledComponents.default.div.withConfig({
|
|
|
45
45
|
let {
|
|
46
46
|
theme
|
|
47
47
|
} = _ref4;
|
|
48
|
-
return theme.
|
|
48
|
+
return theme.allBreakpoints('Nav');
|
|
49
49
|
}, _ref5 => {
|
|
50
50
|
let {
|
|
51
51
|
theme
|