@comicrelief/component-library 7.38.0 → 7.39.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 +9 -5
- package/dist/components/Atoms/Button/Button.test.js +2 -2
- package/dist/components/Molecules/Chip/Chip.style.js +26 -22
- package/dist/components/Molecules/Chip/Chip.test.js +2 -2
- package/dist/components/Molecules/Promo/Promo.style.js +65 -20
- package/dist/components/Molecules/SearchInput/SearchInput.style.js +7 -3
- package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +89 -59
- package/dist/components/Organisms/Donate/Donate.style.js +96 -42
- package/dist/components/Organisms/Donate/Form/PopUpComponent.js +11 -7
- package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.style.js +17 -13
- package/dist/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +17 -13
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +8 -6
- package/dist/components/Organisms/Header/Header.style.js +2 -2
- package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +35 -26
- package/dist/components/Organisms/Membership/Membership.style.js +43 -24
- package/dist/index.js +7 -0
- package/dist/theme/shared/allContainers.js +12 -0
- package/package.json +1 -1
- package/src/components/Atoms/Button/Button.js +1 -2
- package/src/components/Atoms/Button/Button.test.js +12 -10
- package/src/components/Molecules/Chip/Chip.style.js +1 -2
- package/src/components/Molecules/Chip/Chip.test.js +12 -10
- package/src/components/Molecules/Promo/Promo.style.js +10 -10
- package/src/components/Molecules/SearchInput/SearchInput.style.js +1 -2
- package/src/components/Molecules/SingleMessage/SingleMessage.style.js +7 -7
- package/src/components/Organisms/Donate/Donate.style.js +11 -12
- package/src/components/Organisms/Donate/Form/PopUpComponent.js +1 -2
- package/src/components/Organisms/Donate/GivingSelector/GivingSelector.style.js +1 -2
- package/src/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +1 -2
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +8 -6
- package/src/components/Organisms/Header/Header.style.js +1 -1
- package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +2 -3
- package/src/components/Organisms/Membership/Membership.style.js +4 -5
- package/src/index.js +1 -0
- package/src/theme/shared/allContainers.js +7 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import spacing from '../../../theme/shared/spacing';
|
|
4
|
-
import { media } from '../../../theme/shared/size';
|
|
5
4
|
import checkBoxIcon from './assets/CR_Tick_black.svg';
|
|
6
5
|
import TextInput from './_TextInput';
|
|
7
6
|
|
|
@@ -9,7 +8,7 @@ const OuterWrapper = styled.div`
|
|
|
9
8
|
display: flex;
|
|
10
9
|
flex-direction: column;
|
|
11
10
|
|
|
12
|
-
${
|
|
11
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
13
12
|
flex-direction: row;
|
|
14
13
|
flex-wrap: wrap;
|
|
15
14
|
}
|
|
@@ -166,7 +165,7 @@ const ExtraInfo = styled.span`
|
|
|
166
165
|
const MPTextInput = styled(TextInput)`
|
|
167
166
|
input {
|
|
168
167
|
border: 1px solid ${({ theme }) => theme.color('black')};;
|
|
169
|
-
${
|
|
168
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
170
169
|
max-width: none;
|
|
171
170
|
}
|
|
172
171
|
}
|
|
@@ -3,7 +3,6 @@ import styled from 'styled-components';
|
|
|
3
3
|
import Input from '../../Atoms/Input/Input';
|
|
4
4
|
import Text from '../../Atoms/Text/Text';
|
|
5
5
|
import spacing from '../../../theme/shared/spacing';
|
|
6
|
-
import { media } from '../../../theme/shared/size';
|
|
7
6
|
import Picture from '../../Atoms/Picture/Picture';
|
|
8
7
|
|
|
9
8
|
const Container = styled.div`
|
|
@@ -52,7 +51,7 @@ const Wrapper = styled.div`
|
|
|
52
51
|
text-align: center;
|
|
53
52
|
margin-bottom: 50%;
|
|
54
53
|
|
|
55
|
-
${
|
|
54
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
56
55
|
margin: 0 ${spacing('xxl')};
|
|
57
56
|
max-width: 420px;
|
|
58
57
|
}
|
|
@@ -68,7 +67,7 @@ const FormWrapper = styled.div`
|
|
|
68
67
|
box-shadow: 0px ${spacing('md')} ${spacing('xl')} rgba(0, 0, 0, 0.3);
|
|
69
68
|
height: 450px;
|
|
70
69
|
|
|
71
|
-
${
|
|
70
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
72
71
|
height: 430px;
|
|
73
72
|
}
|
|
74
73
|
`;
|
|
@@ -139,7 +138,7 @@ const AmountField = styled(Input)`
|
|
|
139
138
|
font-weight: 400;
|
|
140
139
|
display: block;
|
|
141
140
|
|
|
142
|
-
${
|
|
141
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
143
142
|
flex: 0 0 60%;
|
|
144
143
|
}
|
|
145
144
|
|
|
@@ -185,7 +184,7 @@ const Button = styled.button`
|
|
|
185
184
|
background-color: ${({ theme }) => theme.color('coral_dark')};
|
|
186
185
|
}
|
|
187
186
|
|
|
188
|
-
${
|
|
187
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
189
188
|
width: auto;
|
|
190
189
|
padding: ${spacing('md')} ${spacing('l')};
|
|
191
190
|
margin: 0 auto ${spacing('l')};
|
package/src/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { default as zIndex } from './theme/shared/zIndex';
|
|
|
9
9
|
export { default as allowListed } from './utils/allowListed';
|
|
10
10
|
export { default as spacing } from './theme/shared/spacing';
|
|
11
11
|
export { default as breakpoint } from './theme/shared/breakpoint';
|
|
12
|
+
export { default as allBreakpoints } from './theme/shared/allBreakpoints';
|
|
12
13
|
export { media, screen, container } from './theme/shared/size';
|
|
13
14
|
|
|
14
15
|
/* Atoms */
|