@sumup/react-native-checkout 0.0.0-alpha.1 → 0.0.0-alpha.2
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/lib/commonjs/components/AnimatedContainer/styles.js +1 -1
- package/lib/commonjs/components/AnimatedContainer/styles.js.map +1 -1
- package/lib/commonjs/components/ApplePayButton/styles.js +3 -2
- package/lib/commonjs/components/ApplePayButton/styles.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +9 -7
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CardInformation/styles.js +3 -3
- package/lib/commonjs/components/CardInformation/styles.js.map +1 -1
- package/lib/commonjs/components/CardSheet/styles.js +3 -3
- package/lib/commonjs/components/CardSheet/styles.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +5 -3
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/GooglePayButton/styles.js +4 -3
- package/lib/commonjs/components/GooglePayButton/styles.js.map +1 -1
- package/lib/commonjs/components/Header/styles.js +1 -1
- package/lib/commonjs/components/Header/styles.js.map +1 -1
- package/lib/commonjs/components/InputFields/BaseInputField/index.js +1 -1
- package/lib/commonjs/components/InputFields/BaseInputField/index.js.map +1 -1
- package/lib/commonjs/components/InputFields/BaseInputField/styles.js +12 -9
- package/lib/commonjs/components/InputFields/BaseInputField/styles.js.map +1 -1
- package/lib/commonjs/components/LoadingSpinner/styles.js +6 -5
- package/lib/commonjs/components/LoadingSpinner/styles.js.map +1 -1
- package/lib/commonjs/components/Modal/styles.js +1 -1
- package/lib/commonjs/components/Modal/styles.js.map +1 -1
- package/lib/commonjs/components/NoInternetConnection/styles.js +1 -1
- package/lib/commonjs/components/NoInternetConnection/styles.js.map +1 -1
- package/lib/commonjs/components/OptionMenuModal/index.js +1 -1
- package/lib/commonjs/components/OptionMenuModal/index.js.map +1 -1
- package/lib/commonjs/components/OptionMenuModal/styles.js +7 -6
- package/lib/commonjs/components/OptionMenuModal/styles.js.map +1 -1
- package/lib/commonjs/components/PayButton/styles.js +1 -1
- package/lib/commonjs/components/PayButton/styles.js.map +1 -1
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js +10 -7
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js.map +1 -1
- package/lib/commonjs/components/PaymentMethodsForm/styles.js +10 -7
- package/lib/commonjs/components/PaymentMethodsForm/styles.js.map +1 -1
- package/lib/commonjs/components/ProcessButton/styles.js +6 -5
- package/lib/commonjs/components/ProcessButton/styles.js.map +1 -1
- package/lib/commonjs/components/SaveCardButton/styles.js +1 -1
- package/lib/commonjs/components/SaveCardButton/styles.js.map +1 -1
- package/lib/commonjs/components/SavedCard/styles.js +2 -2
- package/lib/commonjs/components/SavedCard/styles.js.map +1 -1
- package/lib/commonjs/components/Switch/styles.js +7 -6
- package/lib/commonjs/components/Switch/styles.js.map +1 -1
- package/lib/commonjs/components/WebViewSheet/index.js +1 -1
- package/lib/commonjs/components/WebViewSheet/index.js.map +1 -1
- package/lib/commonjs/components/WebViewSheet/styles.js +1 -1
- package/lib/commonjs/components/WebViewSheet/styles.js.map +1 -1
- package/lib/commonjs/contexts/ThemeContext.js +5 -1
- package/lib/commonjs/contexts/ThemeContext.js.map +1 -1
- package/lib/commonjs/styles/borderWidths.js +10 -0
- package/lib/commonjs/styles/borderWidths.js.map +1 -0
- package/lib/commonjs/styles/colors.js +18 -20
- package/lib/commonjs/styles/colors.js.map +1 -1
- package/lib/commonjs/styles/designTokens.js +57 -0
- package/lib/commonjs/styles/designTokens.js.map +1 -0
- package/lib/commonjs/styles/index.js +9 -1
- package/lib/commonjs/styles/index.js.map +1 -1
- package/lib/commonjs/styles/radii.js +10 -0
- package/lib/commonjs/styles/radii.js.map +1 -0
- package/lib/commonjs/styles/spacings.js +10 -0
- package/lib/commonjs/styles/spacings.js.map +1 -0
- package/lib/module/components/AnimatedContainer/styles.js +1 -1
- package/lib/module/components/AnimatedContainer/styles.js.map +1 -1
- package/lib/module/components/ApplePayButton/styles.js +3 -2
- package/lib/module/components/ApplePayButton/styles.js.map +1 -1
- package/lib/module/components/Button/styles.js +9 -7
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CardInformation/styles.js +3 -3
- package/lib/module/components/CardInformation/styles.js.map +1 -1
- package/lib/module/components/CardSheet/styles.js +3 -3
- package/lib/module/components/CardSheet/styles.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +5 -3
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/GooglePayButton/styles.js +4 -3
- package/lib/module/components/GooglePayButton/styles.js.map +1 -1
- package/lib/module/components/Header/styles.js +1 -1
- package/lib/module/components/Header/styles.js.map +1 -1
- package/lib/module/components/InputFields/BaseInputField/index.js +1 -1
- package/lib/module/components/InputFields/BaseInputField/index.js.map +1 -1
- package/lib/module/components/InputFields/BaseInputField/styles.js +12 -9
- package/lib/module/components/InputFields/BaseInputField/styles.js.map +1 -1
- package/lib/module/components/LoadingSpinner/styles.js +6 -5
- package/lib/module/components/LoadingSpinner/styles.js.map +1 -1
- package/lib/module/components/Modal/styles.js +1 -1
- package/lib/module/components/Modal/styles.js.map +1 -1
- package/lib/module/components/NoInternetConnection/styles.js +1 -1
- package/lib/module/components/NoInternetConnection/styles.js.map +1 -1
- package/lib/module/components/OptionMenuModal/index.js +1 -1
- package/lib/module/components/OptionMenuModal/index.js.map +1 -1
- package/lib/module/components/OptionMenuModal/styles.js +7 -6
- package/lib/module/components/OptionMenuModal/styles.js.map +1 -1
- package/lib/module/components/PayButton/styles.js +1 -1
- package/lib/module/components/PayButton/styles.js.map +1 -1
- package/lib/module/components/PaymentMethodFormHeaderOption/styles.js +10 -7
- package/lib/module/components/PaymentMethodFormHeaderOption/styles.js.map +1 -1
- package/lib/module/components/PaymentMethodsForm/styles.js +10 -7
- package/lib/module/components/PaymentMethodsForm/styles.js.map +1 -1
- package/lib/module/components/ProcessButton/styles.js +6 -5
- package/lib/module/components/ProcessButton/styles.js.map +1 -1
- package/lib/module/components/SaveCardButton/styles.js +1 -1
- package/lib/module/components/SaveCardButton/styles.js.map +1 -1
- package/lib/module/components/SavedCard/styles.js +2 -2
- package/lib/module/components/SavedCard/styles.js.map +1 -1
- package/lib/module/components/Switch/styles.js +7 -6
- package/lib/module/components/Switch/styles.js.map +1 -1
- package/lib/module/components/WebViewSheet/index.js +1 -1
- package/lib/module/components/WebViewSheet/index.js.map +1 -1
- package/lib/module/components/WebViewSheet/styles.js +1 -1
- package/lib/module/components/WebViewSheet/styles.js.map +1 -1
- package/lib/module/contexts/ThemeContext.js +6 -2
- package/lib/module/contexts/ThemeContext.js.map +1 -1
- package/lib/module/styles/borderWidths.js +3 -0
- package/lib/module/styles/borderWidths.js.map +1 -0
- package/lib/module/styles/colors.js +18 -20
- package/lib/module/styles/colors.js.map +1 -1
- package/lib/module/styles/designTokens.js +48 -0
- package/lib/module/styles/designTokens.js.map +1 -0
- package/lib/module/styles/index.js +5 -1
- package/lib/module/styles/index.js.map +1 -1
- package/lib/module/styles/radii.js +3 -0
- package/lib/module/styles/radii.js.map +1 -0
- package/lib/module/styles/spacings.js +3 -0
- package/lib/module/styles/spacings.js.map +1 -0
- package/lib/typescript/components/AnimatedContainer/styles.d.ts +1 -1
- package/lib/typescript/components/ApplePayButton/styles.d.ts +2 -2
- package/lib/typescript/components/ApplePayButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +4 -4
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/CardInformation/styles.d.ts +3 -3
- package/lib/typescript/components/CardSheet/styles.d.ts +3 -3
- package/lib/typescript/components/Checkbox/styles.d.ts +3 -3
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/components/GooglePayButton/styles.d.ts +3 -3
- package/lib/typescript/components/GooglePayButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Header/styles.d.ts +1 -1
- package/lib/typescript/components/InputFields/BaseInputField/styles.d.ts +7 -7
- package/lib/typescript/components/LoadingSpinner/styles.d.ts +5 -5
- package/lib/typescript/components/LoadingSpinner/styles.d.ts.map +1 -1
- package/lib/typescript/components/Modal/styles.d.ts +1 -1
- package/lib/typescript/components/NoInternetConnection/styles.d.ts +1 -1
- package/lib/typescript/components/OptionMenuModal/index.d.ts.map +1 -1
- package/lib/typescript/components/OptionMenuModal/styles.d.ts +5 -6
- package/lib/typescript/components/OptionMenuModal/styles.d.ts.map +1 -1
- package/lib/typescript/components/PayButton/styles.d.ts +1 -1
- package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts +7 -7
- package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts.map +1 -1
- package/lib/typescript/components/PaymentMethodsForm/styles.d.ts +6 -6
- package/lib/typescript/components/PaymentMethodsForm/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProcessButton/styles.d.ts +2 -2
- package/lib/typescript/components/ProcessButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/SaveCardButton/styles.d.ts +1 -1
- package/lib/typescript/components/SavedCard/styles.d.ts +2 -2
- package/lib/typescript/components/Switch/styles.d.ts +5 -5
- package/lib/typescript/components/WebViewSheet/index.d.ts.map +1 -1
- package/lib/typescript/components/WebViewSheet/styles.d.ts +1 -1
- package/lib/typescript/contexts/ThemeContext.d.ts +82 -20
- package/lib/typescript/contexts/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/styles/borderWidths.d.ts +5 -0
- package/lib/typescript/styles/borderWidths.d.ts.map +1 -0
- package/lib/typescript/styles/colors.d.ts +17 -20
- package/lib/typescript/styles/colors.d.ts.map +1 -1
- package/lib/typescript/styles/designTokens.d.ts +87 -0
- package/lib/typescript/styles/designTokens.d.ts.map +1 -0
- package/lib/typescript/styles/index.d.ts +5 -1
- package/lib/typescript/styles/index.d.ts.map +1 -1
- package/lib/typescript/styles/radii.d.ts +8 -0
- package/lib/typescript/styles/radii.d.ts.map +1 -0
- package/lib/typescript/styles/spacings.d.ts +12 -0
- package/lib/typescript/styles/spacings.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/AnimatedContainer/styles.tsx +1 -1
- package/src/components/ApplePayButton/styles.tsx +3 -2
- package/src/components/Button/styles.tsx +9 -7
- package/src/components/CardInformation/styles.tsx +3 -3
- package/src/components/CardSheet/styles.tsx +3 -3
- package/src/components/Checkbox/styles.tsx +5 -3
- package/src/components/GooglePayButton/styles.tsx +4 -3
- package/src/components/Header/styles.tsx +1 -1
- package/src/components/InputFields/BaseInputField/index.tsx +1 -1
- package/src/components/InputFields/BaseInputField/styles.tsx +9 -9
- package/src/components/LoadingSpinner/styles.tsx +6 -5
- package/src/components/Modal/styles.tsx +1 -1
- package/src/components/NoInternetConnection/styles.tsx +1 -1
- package/src/components/OptionMenuModal/index.tsx +3 -1
- package/src/components/OptionMenuModal/styles.tsx +7 -6
- package/src/components/PayButton/styles.tsx +1 -1
- package/src/components/PaymentMethodFormHeaderOption/styles.tsx +10 -7
- package/src/components/PaymentMethodsForm/styles.tsx +10 -7
- package/src/components/ProcessButton/styles.tsx +6 -5
- package/src/components/SaveCardButton/styles.tsx +1 -1
- package/src/components/SavedCard/styles.tsx +2 -2
- package/src/components/Switch/styles.tsx +6 -6
- package/src/components/WebViewSheet/index.tsx +3 -1
- package/src/components/WebViewSheet/styles.tsx +1 -1
- package/src/contexts/ThemeContext.tsx +13 -1
- package/src/styles/borderWidths.ts +3 -0
- package/src/styles/colors.ts +19 -20
- package/src/styles/designTokens.ts +49 -0
- package/src/styles/index.ts +5 -1
- package/src/styles/radii.ts +3 -0
- package/src/styles/spacings.ts +3 -0
- package/{sumup-react-native.podspec → sumup-react-native-checkout.podspec} +5 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
import { useTheme } from '../../contexts/ThemeContext';
|
|
3
|
+
import { radii } from '../../styles/radii';
|
|
4
|
+
import { spacings } from '../../styles/spacings';
|
|
3
5
|
|
|
4
6
|
export const useStyles = () => {
|
|
5
7
|
const { colors, fonts } = useTheme();
|
|
@@ -9,10 +11,10 @@ export const useStyles = () => {
|
|
|
9
11
|
margin: 0,
|
|
10
12
|
},
|
|
11
13
|
container: {
|
|
12
|
-
borderRadius:
|
|
13
|
-
backgroundColor: colors.
|
|
14
|
+
borderRadius: radii.kilo,
|
|
15
|
+
backgroundColor: colors.bgNormal,
|
|
14
16
|
position: 'absolute',
|
|
15
|
-
shadowColor: colors.
|
|
17
|
+
shadowColor: colors.fgNormal,
|
|
16
18
|
shadowOffset: {
|
|
17
19
|
width: 0,
|
|
18
20
|
height: 3,
|
|
@@ -24,13 +26,12 @@ export const useStyles = () => {
|
|
|
24
26
|
},
|
|
25
27
|
separator: {
|
|
26
28
|
height: 1,
|
|
27
|
-
backgroundColor: colors.
|
|
28
|
-
opacity: 0.2,
|
|
29
|
+
backgroundColor: colors.borderDivider,
|
|
29
30
|
},
|
|
30
31
|
optionContainer: {
|
|
31
32
|
width: 107,
|
|
32
33
|
paddingVertical: 11,
|
|
33
|
-
paddingHorizontal:
|
|
34
|
+
paddingHorizontal: spacings.mega,
|
|
34
35
|
},
|
|
35
36
|
optionText: {
|
|
36
37
|
fontFamily: fonts.sfProTextRegular,
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
import { useTheme } from '../../contexts/ThemeContext';
|
|
3
|
+
import { borderWidths } from '../../styles/borderWidths';
|
|
4
|
+
import { radii } from '../../styles/radii';
|
|
5
|
+
import { spacings } from '../../styles/spacings';
|
|
3
6
|
|
|
4
7
|
export const useStyles = () => {
|
|
5
8
|
const { colors, fonts } = useTheme();
|
|
6
9
|
|
|
7
10
|
const styles = StyleSheet.create({
|
|
8
11
|
container: {
|
|
9
|
-
borderColor: colors.
|
|
10
|
-
borderWidth:
|
|
11
|
-
borderRadius:
|
|
12
|
-
paddingHorizontal:
|
|
12
|
+
borderColor: colors.borderDivider,
|
|
13
|
+
borderWidth: borderWidths.mega,
|
|
14
|
+
borderRadius: radii.mega,
|
|
15
|
+
paddingHorizontal: spacings.mega,
|
|
13
16
|
},
|
|
14
17
|
title: {
|
|
15
18
|
fontWeight: '700',
|
|
16
19
|
fontSize: 14,
|
|
17
20
|
lineHeight: 20,
|
|
18
|
-
color: colors.
|
|
21
|
+
color: colors.fgNormal,
|
|
19
22
|
flex: 1,
|
|
20
23
|
fontFamily: fonts.sfProTextBold,
|
|
21
24
|
},
|
|
@@ -24,10 +27,10 @@ export const useStyles = () => {
|
|
|
24
27
|
height: 24,
|
|
25
28
|
},
|
|
26
29
|
optionContainer: {
|
|
27
|
-
backgroundColor: colors.
|
|
30
|
+
backgroundColor: colors.bgNormal,
|
|
28
31
|
flexDirection: 'row',
|
|
29
32
|
alignItems: 'center',
|
|
30
|
-
paddingVertical:
|
|
33
|
+
paddingVertical: spacings.kilo,
|
|
31
34
|
},
|
|
32
35
|
});
|
|
33
36
|
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
import { useTheme } from '../../contexts/ThemeContext';
|
|
3
|
+
import { borderWidths } from '../../styles/borderWidths';
|
|
4
|
+
import { radii } from '../../styles/radii';
|
|
5
|
+
import { spacings } from '../../styles/spacings';
|
|
3
6
|
|
|
4
7
|
export const useStyles = () => {
|
|
5
8
|
const { colors } = useTheme();
|
|
6
9
|
|
|
7
10
|
const styles = StyleSheet.create({
|
|
8
11
|
container: {
|
|
9
|
-
borderColor: colors.
|
|
10
|
-
borderWidth:
|
|
11
|
-
borderRadius:
|
|
12
|
-
paddingHorizontal:
|
|
12
|
+
borderColor: colors.borderDivider,
|
|
13
|
+
borderWidth: borderWidths.mega,
|
|
14
|
+
borderRadius: radii.mega,
|
|
15
|
+
paddingHorizontal: spacings.mega,
|
|
13
16
|
},
|
|
14
17
|
separator: {
|
|
15
18
|
height: 1,
|
|
16
|
-
backgroundColor: colors.
|
|
17
|
-
marginLeft:
|
|
18
|
-
marginRight: -
|
|
19
|
+
backgroundColor: colors.borderDivider,
|
|
20
|
+
marginLeft: spacings.peta,
|
|
21
|
+
marginRight: -spacings.mega,
|
|
19
22
|
},
|
|
20
23
|
});
|
|
21
24
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
import { useTheme } from '../../contexts/ThemeContext';
|
|
3
|
+
import { radii } from '../../styles/radii';
|
|
3
4
|
|
|
4
5
|
export type ProcessButtonType =
|
|
5
6
|
| 'disabled'
|
|
@@ -11,10 +12,10 @@ export const useStyles = (type: ProcessButtonType) => {
|
|
|
11
12
|
const { colors } = useTheme();
|
|
12
13
|
|
|
13
14
|
const backgroundColor = {
|
|
14
|
-
disabled: colors.
|
|
15
|
-
active: colors.
|
|
16
|
-
processing: colors.
|
|
17
|
-
success: colors.
|
|
15
|
+
disabled: colors.bgAccentStrong,
|
|
16
|
+
active: colors.bgAccentStrong,
|
|
17
|
+
processing: colors.bgAccentStrong,
|
|
18
|
+
success: colors.bgSuccessStrong,
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
const styles = StyleSheet.create({
|
|
@@ -22,7 +23,7 @@ export const useStyles = (type: ProcessButtonType) => {
|
|
|
22
23
|
height: 48,
|
|
23
24
|
width: '100%',
|
|
24
25
|
backgroundColor: backgroundColor[type],
|
|
25
|
-
borderRadius:
|
|
26
|
+
borderRadius: radii.byte,
|
|
26
27
|
justifyContent: 'center',
|
|
27
28
|
alignItems: 'center',
|
|
28
29
|
},
|
|
@@ -16,13 +16,13 @@ export const useStyles = () => {
|
|
|
16
16
|
},
|
|
17
17
|
title: {
|
|
18
18
|
fontSize: 16,
|
|
19
|
-
color: colors.
|
|
19
|
+
color: colors.fgNormal,
|
|
20
20
|
fontFamily: fonts.sfProTextRegular,
|
|
21
21
|
},
|
|
22
22
|
text: {
|
|
23
23
|
fontSize: 14,
|
|
24
24
|
lineHeight: 20,
|
|
25
|
-
color: colors.
|
|
25
|
+
color: colors.fgSubtle,
|
|
26
26
|
fontFamily: fonts.sfProTextRegular,
|
|
27
27
|
},
|
|
28
28
|
});
|
|
@@ -5,7 +5,7 @@ const UNSELECT_MARGIN = 2;
|
|
|
5
5
|
const SELECT_MARGIN = 22;
|
|
6
6
|
|
|
7
7
|
export const useStyles = (selected: boolean) => {
|
|
8
|
-
const { colors, fonts } = useTheme();
|
|
8
|
+
const { colors, fonts, radii } = useTheme();
|
|
9
9
|
|
|
10
10
|
const styles = StyleSheet.create({
|
|
11
11
|
container: {
|
|
@@ -17,22 +17,22 @@ export const useStyles = (selected: boolean) => {
|
|
|
17
17
|
},
|
|
18
18
|
title: {
|
|
19
19
|
fontSize: 14,
|
|
20
|
-
color: colors.
|
|
20
|
+
color: colors.fgNormal,
|
|
21
21
|
fontFamily: fonts.sfProTextRegular,
|
|
22
22
|
},
|
|
23
23
|
switchContainer: {
|
|
24
24
|
width: 51,
|
|
25
25
|
height: 31,
|
|
26
|
-
backgroundColor: selected ? colors.
|
|
26
|
+
backgroundColor: selected ? colors.bgAccentStrong : colors.bgHighlight,
|
|
27
27
|
justifyContent: 'center',
|
|
28
|
-
borderRadius:
|
|
28
|
+
borderRadius: radii.pill,
|
|
29
29
|
},
|
|
30
30
|
switchCircle: {
|
|
31
31
|
width: 27,
|
|
32
32
|
height: 27,
|
|
33
|
-
backgroundColor: colors.
|
|
33
|
+
backgroundColor: colors.bgNormal,
|
|
34
34
|
borderRadius: 13.5,
|
|
35
|
-
shadowColor: colors.
|
|
35
|
+
shadowColor: colors.fgNormal,
|
|
36
36
|
shadowOffset: {
|
|
37
37
|
width: 0,
|
|
38
38
|
height: 1,
|
|
@@ -41,7 +41,9 @@ export const WebViewSheet = (props: WebViewSheetProps) => {
|
|
|
41
41
|
<View style={styles.loaderContainer}>
|
|
42
42
|
<ActivityIndicator
|
|
43
43
|
size={'large'}
|
|
44
|
-
color={
|
|
44
|
+
color={
|
|
45
|
+
Platform.OS === 'android' ? colors.bgAccentStrong : undefined
|
|
46
|
+
}
|
|
45
47
|
style={styles.activityIndicator}
|
|
46
48
|
/>
|
|
47
49
|
</View>
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Colors,
|
|
3
|
+
Images,
|
|
4
|
+
Fonts,
|
|
5
|
+
Radii,
|
|
6
|
+
BorderWidths,
|
|
7
|
+
Spacings,
|
|
8
|
+
DesignTokens,
|
|
9
|
+
} from '../styles';
|
|
2
10
|
|
|
3
11
|
const DEFAULT_THEME = {
|
|
4
12
|
colors: Colors.light,
|
|
5
13
|
images: Images.light,
|
|
6
14
|
fonts: Fonts.light,
|
|
15
|
+
radii: Radii.radii,
|
|
16
|
+
borderWidths: BorderWidths.borderWidths,
|
|
17
|
+
spacings: Spacings.spacings,
|
|
18
|
+
designTokens: DesignTokens.light,
|
|
7
19
|
};
|
|
8
20
|
|
|
9
21
|
export const useTheme = () => DEFAULT_THEME;
|
package/src/styles/colors.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
+
import { lightColors } from './designTokens';
|
|
2
|
+
|
|
1
3
|
export const light = {
|
|
2
|
-
transparent:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
alizarinCrimson: '#DE331D',
|
|
20
|
-
deepSea: '#018850',
|
|
21
|
-
valencia: '#D23F47',
|
|
4
|
+
transparent: lightColors.transparent,
|
|
5
|
+
bgNormal: lightColors.bgNormal,
|
|
6
|
+
bgSubtle: lightColors.bgSubtle,
|
|
7
|
+
bgHighlight: lightColors.bgHighlight,
|
|
8
|
+
bgStrong: lightColors.bgStrong,
|
|
9
|
+
bgAccentStrong: lightColors.bgAccentStrong,
|
|
10
|
+
bgSuccessStrong: lightColors.bgSuccessStrong,
|
|
11
|
+
fgNormal: lightColors.fgNormal,
|
|
12
|
+
fgSubtle: lightColors.fgSubtle,
|
|
13
|
+
fgPlaceholder: lightColors.fgPlaceholder,
|
|
14
|
+
fgAccent: lightColors.fgAccent,
|
|
15
|
+
fgDanger: lightColors.fgDanger,
|
|
16
|
+
fgOnStrong: lightColors.fgOnStrong,
|
|
17
|
+
borderNormal: lightColors.borderNormal,
|
|
18
|
+
borderSubtle: lightColors.borderSubtle,
|
|
19
|
+
borderDivider: lightColors.borderDivider,
|
|
20
|
+
borderDanger: lightColors.borderDanger,
|
|
22
21
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const shared = {
|
|
2
|
+
radii: {
|
|
3
|
+
bit: 4,
|
|
4
|
+
byte: 8,
|
|
5
|
+
kilo: 12,
|
|
6
|
+
mega: 16,
|
|
7
|
+
pill: 999999,
|
|
8
|
+
},
|
|
9
|
+
borderWidths: {
|
|
10
|
+
kilo: 1,
|
|
11
|
+
mega: 2,
|
|
12
|
+
},
|
|
13
|
+
spacings: {
|
|
14
|
+
bit: 4,
|
|
15
|
+
byte: 8,
|
|
16
|
+
kilo: 12,
|
|
17
|
+
mega: 16,
|
|
18
|
+
giga: 24,
|
|
19
|
+
tera: 32,
|
|
20
|
+
peta: 40,
|
|
21
|
+
exa: 48,
|
|
22
|
+
zetta: 56,
|
|
23
|
+
},
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export const lightColors = {
|
|
27
|
+
transparent: 'transparent',
|
|
28
|
+
bgNormal: '#ffffff',
|
|
29
|
+
bgSubtle: '#f0f1f5',
|
|
30
|
+
bgHighlight: '#e3e7eb',
|
|
31
|
+
bgStrong: '#000000',
|
|
32
|
+
bgAccentStrong: '#0f131a',
|
|
33
|
+
bgSuccessStrong: '#018850',
|
|
34
|
+
fgNormal: '#0f131a',
|
|
35
|
+
fgSubtle: '#6a737c',
|
|
36
|
+
fgPlaceholder: '#929396',
|
|
37
|
+
fgAccent: '#0f131a',
|
|
38
|
+
fgDanger: '#de331d',
|
|
39
|
+
fgOnStrong: '#ffffff',
|
|
40
|
+
borderNormal: '#aeb6be',
|
|
41
|
+
borderSubtle: '#e3e7ec',
|
|
42
|
+
borderDivider: '#e3e7eb',
|
|
43
|
+
borderDanger: '#de331d',
|
|
44
|
+
} as const;
|
|
45
|
+
|
|
46
|
+
export const light = {
|
|
47
|
+
colors: lightColors,
|
|
48
|
+
...shared,
|
|
49
|
+
};
|
package/src/styles/index.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as Colors from './colors';
|
|
2
2
|
import * as Images from './images';
|
|
3
3
|
import * as Fonts from './fonts';
|
|
4
|
+
import * as Radii from './radii';
|
|
5
|
+
import * as BorderWidths from './borderWidths';
|
|
6
|
+
import * as Spacings from './spacings';
|
|
7
|
+
import * as DesignTokens from './designTokens';
|
|
4
8
|
|
|
5
|
-
export { Colors, Images, Fonts };
|
|
9
|
+
export { Colors, Images, Fonts, Radii, BorderWidths, Spacings, DesignTokens };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
require "json"
|
|
2
|
+
require "rubygems"
|
|
2
3
|
|
|
3
4
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
5
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
6
|
+
pod_version = Gem::Version.new(package["version"]).release.to_s
|
|
5
7
|
|
|
6
8
|
Pod::Spec.new do |s|
|
|
7
|
-
s.name = "sumup-react-native"
|
|
8
|
-
s.version =
|
|
9
|
+
s.name = "sumup-react-native-checkout"
|
|
10
|
+
s.version = pod_version
|
|
9
11
|
s.summary = package["description"]
|
|
10
12
|
s.homepage = package["homepage"]
|
|
11
13
|
s.license = package["license"]
|
|
12
14
|
s.authors = package["author"]
|
|
13
15
|
|
|
14
16
|
s.platforms = { :ios => "11.0" }
|
|
15
|
-
s.source = { :git => "https://github.com/
|
|
17
|
+
s.source = { :git => "https://github.com/sumup/sumup-react-native-checkout-sdk.git", :tag => package["version"] }
|
|
16
18
|
|
|
17
19
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
20
|
|