@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.
Files changed (203) hide show
  1. package/lib/commonjs/components/AnimatedContainer/styles.js +1 -1
  2. package/lib/commonjs/components/AnimatedContainer/styles.js.map +1 -1
  3. package/lib/commonjs/components/ApplePayButton/styles.js +3 -2
  4. package/lib/commonjs/components/ApplePayButton/styles.js.map +1 -1
  5. package/lib/commonjs/components/Button/styles.js +9 -7
  6. package/lib/commonjs/components/Button/styles.js.map +1 -1
  7. package/lib/commonjs/components/CardInformation/styles.js +3 -3
  8. package/lib/commonjs/components/CardInformation/styles.js.map +1 -1
  9. package/lib/commonjs/components/CardSheet/styles.js +3 -3
  10. package/lib/commonjs/components/CardSheet/styles.js.map +1 -1
  11. package/lib/commonjs/components/Checkbox/styles.js +5 -3
  12. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  13. package/lib/commonjs/components/GooglePayButton/styles.js +4 -3
  14. package/lib/commonjs/components/GooglePayButton/styles.js.map +1 -1
  15. package/lib/commonjs/components/Header/styles.js +1 -1
  16. package/lib/commonjs/components/Header/styles.js.map +1 -1
  17. package/lib/commonjs/components/InputFields/BaseInputField/index.js +1 -1
  18. package/lib/commonjs/components/InputFields/BaseInputField/index.js.map +1 -1
  19. package/lib/commonjs/components/InputFields/BaseInputField/styles.js +12 -9
  20. package/lib/commonjs/components/InputFields/BaseInputField/styles.js.map +1 -1
  21. package/lib/commonjs/components/LoadingSpinner/styles.js +6 -5
  22. package/lib/commonjs/components/LoadingSpinner/styles.js.map +1 -1
  23. package/lib/commonjs/components/Modal/styles.js +1 -1
  24. package/lib/commonjs/components/Modal/styles.js.map +1 -1
  25. package/lib/commonjs/components/NoInternetConnection/styles.js +1 -1
  26. package/lib/commonjs/components/NoInternetConnection/styles.js.map +1 -1
  27. package/lib/commonjs/components/OptionMenuModal/index.js +1 -1
  28. package/lib/commonjs/components/OptionMenuModal/index.js.map +1 -1
  29. package/lib/commonjs/components/OptionMenuModal/styles.js +7 -6
  30. package/lib/commonjs/components/OptionMenuModal/styles.js.map +1 -1
  31. package/lib/commonjs/components/PayButton/styles.js +1 -1
  32. package/lib/commonjs/components/PayButton/styles.js.map +1 -1
  33. package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js +10 -7
  34. package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js.map +1 -1
  35. package/lib/commonjs/components/PaymentMethodsForm/styles.js +10 -7
  36. package/lib/commonjs/components/PaymentMethodsForm/styles.js.map +1 -1
  37. package/lib/commonjs/components/ProcessButton/styles.js +6 -5
  38. package/lib/commonjs/components/ProcessButton/styles.js.map +1 -1
  39. package/lib/commonjs/components/SaveCardButton/styles.js +1 -1
  40. package/lib/commonjs/components/SaveCardButton/styles.js.map +1 -1
  41. package/lib/commonjs/components/SavedCard/styles.js +2 -2
  42. package/lib/commonjs/components/SavedCard/styles.js.map +1 -1
  43. package/lib/commonjs/components/Switch/styles.js +7 -6
  44. package/lib/commonjs/components/Switch/styles.js.map +1 -1
  45. package/lib/commonjs/components/WebViewSheet/index.js +1 -1
  46. package/lib/commonjs/components/WebViewSheet/index.js.map +1 -1
  47. package/lib/commonjs/components/WebViewSheet/styles.js +1 -1
  48. package/lib/commonjs/components/WebViewSheet/styles.js.map +1 -1
  49. package/lib/commonjs/contexts/ThemeContext.js +5 -1
  50. package/lib/commonjs/contexts/ThemeContext.js.map +1 -1
  51. package/lib/commonjs/styles/borderWidths.js +10 -0
  52. package/lib/commonjs/styles/borderWidths.js.map +1 -0
  53. package/lib/commonjs/styles/colors.js +18 -20
  54. package/lib/commonjs/styles/colors.js.map +1 -1
  55. package/lib/commonjs/styles/designTokens.js +57 -0
  56. package/lib/commonjs/styles/designTokens.js.map +1 -0
  57. package/lib/commonjs/styles/index.js +9 -1
  58. package/lib/commonjs/styles/index.js.map +1 -1
  59. package/lib/commonjs/styles/radii.js +10 -0
  60. package/lib/commonjs/styles/radii.js.map +1 -0
  61. package/lib/commonjs/styles/spacings.js +10 -0
  62. package/lib/commonjs/styles/spacings.js.map +1 -0
  63. package/lib/module/components/AnimatedContainer/styles.js +1 -1
  64. package/lib/module/components/AnimatedContainer/styles.js.map +1 -1
  65. package/lib/module/components/ApplePayButton/styles.js +3 -2
  66. package/lib/module/components/ApplePayButton/styles.js.map +1 -1
  67. package/lib/module/components/Button/styles.js +9 -7
  68. package/lib/module/components/Button/styles.js.map +1 -1
  69. package/lib/module/components/CardInformation/styles.js +3 -3
  70. package/lib/module/components/CardInformation/styles.js.map +1 -1
  71. package/lib/module/components/CardSheet/styles.js +3 -3
  72. package/lib/module/components/CardSheet/styles.js.map +1 -1
  73. package/lib/module/components/Checkbox/styles.js +5 -3
  74. package/lib/module/components/Checkbox/styles.js.map +1 -1
  75. package/lib/module/components/GooglePayButton/styles.js +4 -3
  76. package/lib/module/components/GooglePayButton/styles.js.map +1 -1
  77. package/lib/module/components/Header/styles.js +1 -1
  78. package/lib/module/components/Header/styles.js.map +1 -1
  79. package/lib/module/components/InputFields/BaseInputField/index.js +1 -1
  80. package/lib/module/components/InputFields/BaseInputField/index.js.map +1 -1
  81. package/lib/module/components/InputFields/BaseInputField/styles.js +12 -9
  82. package/lib/module/components/InputFields/BaseInputField/styles.js.map +1 -1
  83. package/lib/module/components/LoadingSpinner/styles.js +6 -5
  84. package/lib/module/components/LoadingSpinner/styles.js.map +1 -1
  85. package/lib/module/components/Modal/styles.js +1 -1
  86. package/lib/module/components/Modal/styles.js.map +1 -1
  87. package/lib/module/components/NoInternetConnection/styles.js +1 -1
  88. package/lib/module/components/NoInternetConnection/styles.js.map +1 -1
  89. package/lib/module/components/OptionMenuModal/index.js +1 -1
  90. package/lib/module/components/OptionMenuModal/index.js.map +1 -1
  91. package/lib/module/components/OptionMenuModal/styles.js +7 -6
  92. package/lib/module/components/OptionMenuModal/styles.js.map +1 -1
  93. package/lib/module/components/PayButton/styles.js +1 -1
  94. package/lib/module/components/PayButton/styles.js.map +1 -1
  95. package/lib/module/components/PaymentMethodFormHeaderOption/styles.js +10 -7
  96. package/lib/module/components/PaymentMethodFormHeaderOption/styles.js.map +1 -1
  97. package/lib/module/components/PaymentMethodsForm/styles.js +10 -7
  98. package/lib/module/components/PaymentMethodsForm/styles.js.map +1 -1
  99. package/lib/module/components/ProcessButton/styles.js +6 -5
  100. package/lib/module/components/ProcessButton/styles.js.map +1 -1
  101. package/lib/module/components/SaveCardButton/styles.js +1 -1
  102. package/lib/module/components/SaveCardButton/styles.js.map +1 -1
  103. package/lib/module/components/SavedCard/styles.js +2 -2
  104. package/lib/module/components/SavedCard/styles.js.map +1 -1
  105. package/lib/module/components/Switch/styles.js +7 -6
  106. package/lib/module/components/Switch/styles.js.map +1 -1
  107. package/lib/module/components/WebViewSheet/index.js +1 -1
  108. package/lib/module/components/WebViewSheet/index.js.map +1 -1
  109. package/lib/module/components/WebViewSheet/styles.js +1 -1
  110. package/lib/module/components/WebViewSheet/styles.js.map +1 -1
  111. package/lib/module/contexts/ThemeContext.js +6 -2
  112. package/lib/module/contexts/ThemeContext.js.map +1 -1
  113. package/lib/module/styles/borderWidths.js +3 -0
  114. package/lib/module/styles/borderWidths.js.map +1 -0
  115. package/lib/module/styles/colors.js +18 -20
  116. package/lib/module/styles/colors.js.map +1 -1
  117. package/lib/module/styles/designTokens.js +48 -0
  118. package/lib/module/styles/designTokens.js.map +1 -0
  119. package/lib/module/styles/index.js +5 -1
  120. package/lib/module/styles/index.js.map +1 -1
  121. package/lib/module/styles/radii.js +3 -0
  122. package/lib/module/styles/radii.js.map +1 -0
  123. package/lib/module/styles/spacings.js +3 -0
  124. package/lib/module/styles/spacings.js.map +1 -0
  125. package/lib/typescript/components/AnimatedContainer/styles.d.ts +1 -1
  126. package/lib/typescript/components/ApplePayButton/styles.d.ts +2 -2
  127. package/lib/typescript/components/ApplePayButton/styles.d.ts.map +1 -1
  128. package/lib/typescript/components/Button/styles.d.ts +4 -4
  129. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  130. package/lib/typescript/components/CardInformation/styles.d.ts +3 -3
  131. package/lib/typescript/components/CardSheet/styles.d.ts +3 -3
  132. package/lib/typescript/components/Checkbox/styles.d.ts +3 -3
  133. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  134. package/lib/typescript/components/GooglePayButton/styles.d.ts +3 -3
  135. package/lib/typescript/components/GooglePayButton/styles.d.ts.map +1 -1
  136. package/lib/typescript/components/Header/styles.d.ts +1 -1
  137. package/lib/typescript/components/InputFields/BaseInputField/styles.d.ts +7 -7
  138. package/lib/typescript/components/LoadingSpinner/styles.d.ts +5 -5
  139. package/lib/typescript/components/LoadingSpinner/styles.d.ts.map +1 -1
  140. package/lib/typescript/components/Modal/styles.d.ts +1 -1
  141. package/lib/typescript/components/NoInternetConnection/styles.d.ts +1 -1
  142. package/lib/typescript/components/OptionMenuModal/index.d.ts.map +1 -1
  143. package/lib/typescript/components/OptionMenuModal/styles.d.ts +5 -6
  144. package/lib/typescript/components/OptionMenuModal/styles.d.ts.map +1 -1
  145. package/lib/typescript/components/PayButton/styles.d.ts +1 -1
  146. package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts +7 -7
  147. package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts.map +1 -1
  148. package/lib/typescript/components/PaymentMethodsForm/styles.d.ts +6 -6
  149. package/lib/typescript/components/PaymentMethodsForm/styles.d.ts.map +1 -1
  150. package/lib/typescript/components/ProcessButton/styles.d.ts +2 -2
  151. package/lib/typescript/components/ProcessButton/styles.d.ts.map +1 -1
  152. package/lib/typescript/components/SaveCardButton/styles.d.ts +1 -1
  153. package/lib/typescript/components/SavedCard/styles.d.ts +2 -2
  154. package/lib/typescript/components/Switch/styles.d.ts +5 -5
  155. package/lib/typescript/components/WebViewSheet/index.d.ts.map +1 -1
  156. package/lib/typescript/components/WebViewSheet/styles.d.ts +1 -1
  157. package/lib/typescript/contexts/ThemeContext.d.ts +82 -20
  158. package/lib/typescript/contexts/ThemeContext.d.ts.map +1 -1
  159. package/lib/typescript/styles/borderWidths.d.ts +5 -0
  160. package/lib/typescript/styles/borderWidths.d.ts.map +1 -0
  161. package/lib/typescript/styles/colors.d.ts +17 -20
  162. package/lib/typescript/styles/colors.d.ts.map +1 -1
  163. package/lib/typescript/styles/designTokens.d.ts +87 -0
  164. package/lib/typescript/styles/designTokens.d.ts.map +1 -0
  165. package/lib/typescript/styles/index.d.ts +5 -1
  166. package/lib/typescript/styles/index.d.ts.map +1 -1
  167. package/lib/typescript/styles/radii.d.ts +8 -0
  168. package/lib/typescript/styles/radii.d.ts.map +1 -0
  169. package/lib/typescript/styles/spacings.d.ts +12 -0
  170. package/lib/typescript/styles/spacings.d.ts.map +1 -0
  171. package/package.json +1 -1
  172. package/src/components/AnimatedContainer/styles.tsx +1 -1
  173. package/src/components/ApplePayButton/styles.tsx +3 -2
  174. package/src/components/Button/styles.tsx +9 -7
  175. package/src/components/CardInformation/styles.tsx +3 -3
  176. package/src/components/CardSheet/styles.tsx +3 -3
  177. package/src/components/Checkbox/styles.tsx +5 -3
  178. package/src/components/GooglePayButton/styles.tsx +4 -3
  179. package/src/components/Header/styles.tsx +1 -1
  180. package/src/components/InputFields/BaseInputField/index.tsx +1 -1
  181. package/src/components/InputFields/BaseInputField/styles.tsx +9 -9
  182. package/src/components/LoadingSpinner/styles.tsx +6 -5
  183. package/src/components/Modal/styles.tsx +1 -1
  184. package/src/components/NoInternetConnection/styles.tsx +1 -1
  185. package/src/components/OptionMenuModal/index.tsx +3 -1
  186. package/src/components/OptionMenuModal/styles.tsx +7 -6
  187. package/src/components/PayButton/styles.tsx +1 -1
  188. package/src/components/PaymentMethodFormHeaderOption/styles.tsx +10 -7
  189. package/src/components/PaymentMethodsForm/styles.tsx +10 -7
  190. package/src/components/ProcessButton/styles.tsx +6 -5
  191. package/src/components/SaveCardButton/styles.tsx +1 -1
  192. package/src/components/SavedCard/styles.tsx +2 -2
  193. package/src/components/Switch/styles.tsx +6 -6
  194. package/src/components/WebViewSheet/index.tsx +3 -1
  195. package/src/components/WebViewSheet/styles.tsx +1 -1
  196. package/src/contexts/ThemeContext.tsx +13 -1
  197. package/src/styles/borderWidths.ts +3 -0
  198. package/src/styles/colors.ts +19 -20
  199. package/src/styles/designTokens.ts +49 -0
  200. package/src/styles/index.ts +5 -1
  201. package/src/styles/radii.ts +3 -0
  202. package/src/styles/spacings.ts +3 -0
  203. 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: 12,
13
- backgroundColor: colors.white,
14
+ borderRadius: radii.kilo,
15
+ backgroundColor: colors.bgNormal,
14
16
  position: 'absolute',
15
- shadowColor: colors.codGray,
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.black,
28
- opacity: 0.2,
29
+ backgroundColor: colors.borderDivider,
29
30
  },
30
31
  optionContainer: {
31
32
  width: 107,
32
33
  paddingVertical: 11,
33
- paddingHorizontal: 16,
34
+ paddingHorizontal: spacings.mega,
34
35
  },
35
36
  optionText: {
36
37
  fontFamily: fonts.sfProTextRegular,
@@ -8,7 +8,7 @@ export const useStyles = () => {
8
8
  text: {
9
9
  fontSize: 16,
10
10
  lineHeight: 24,
11
- color: colors.white,
11
+ color: colors.fgOnStrong,
12
12
  fontFamily: fonts.aktivGroteskBold,
13
13
  },
14
14
  lockImage: {
@@ -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.mercury,
10
- borderWidth: 2,
11
- borderRadius: 16,
12
- paddingHorizontal: 16,
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.codGray,
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.white,
30
+ backgroundColor: colors.bgNormal,
28
31
  flexDirection: 'row',
29
32
  alignItems: 'center',
30
- paddingVertical: 12,
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.mercury,
10
- borderWidth: 2,
11
- borderRadius: 16,
12
- paddingHorizontal: 16,
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.mercury,
17
- marginLeft: 40,
18
- marginRight: -16,
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.dodgerBlue,
15
- active: colors.dodgerBlue,
16
- processing: colors.dodgerBlue,
17
- success: colors.deepSea,
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: 100,
26
+ borderRadius: radii.byte,
26
27
  justifyContent: 'center',
27
28
  alignItems: 'center',
28
29
  },
@@ -8,7 +8,7 @@ export const useStyles = () => {
8
8
  text: {
9
9
  fontSize: 16,
10
10
  lineHeight: 24,
11
- color: colors.white,
11
+ color: colors.fgOnStrong,
12
12
  fontFamily: fonts.aktivGroteskBold,
13
13
  },
14
14
  lockImage: {
@@ -16,13 +16,13 @@ export const useStyles = () => {
16
16
  },
17
17
  title: {
18
18
  fontSize: 16,
19
- color: colors.codGray,
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.doveGray,
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.codGray,
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.royalBlue : colors.mercury,
26
+ backgroundColor: selected ? colors.bgAccentStrong : colors.bgHighlight,
27
27
  justifyContent: 'center',
28
- borderRadius: 20,
28
+ borderRadius: radii.pill,
29
29
  },
30
30
  switchCircle: {
31
31
  width: 27,
32
32
  height: 27,
33
- backgroundColor: colors.white,
33
+ backgroundColor: colors.bgNormal,
34
34
  borderRadius: 13.5,
35
- shadowColor: colors.codGray,
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={Platform.OS === 'android' ? colors.royalBlue : undefined}
44
+ color={
45
+ Platform.OS === 'android' ? colors.bgAccentStrong : undefined
46
+ }
45
47
  style={styles.activityIndicator}
46
48
  />
47
49
  </View>
@@ -17,7 +17,7 @@ export const useStyles = () => {
17
17
  borderTopLeftRadius: 8,
18
18
  borderTopRightRadius: 8,
19
19
  overflow: 'hidden',
20
- backgroundColor: colors.white,
20
+ backgroundColor: colors.bgNormal,
21
21
  },
22
22
  headerContainer: {
23
23
  paddingHorizontal: 16,
@@ -1,9 +1,21 @@
1
- import { Colors, Images, Fonts } from '../styles';
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;
@@ -0,0 +1,3 @@
1
+ import { shared } from './designTokens';
2
+
3
+ export const borderWidths = shared.borderWidths;
@@ -1,22 +1,21 @@
1
+ import { lightColors } from './designTokens';
2
+
1
3
  export const light = {
2
- transparent: 'transparent',
3
- black: '#000000',
4
- white: '#ffffff',
5
- grayNickel: '#C8C9C5',
6
- silver: '#CCCCCC',
7
- codGray: '#1A1A1A',
8
- regentGray: '#8792A2',
9
- dustyGray: '#999999',
10
- dodgerBlue: '#3063E9',
11
- mantis: '#91C55E',
12
- paleSky: '#697386',
13
- guardsmanRed: '#BC010B',
14
- cinnabar: '#EB4C3B',
15
- athensGray: '#E5E5E9',
16
- royalBlue: '#3064E3',
17
- mercury: '#E6E6E6',
18
- doveGray: '#666666',
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
+ };
@@ -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 };
@@ -0,0 +1,3 @@
1
+ import { shared } from './designTokens';
2
+
3
+ export const radii = shared.radii;
@@ -0,0 +1,3 @@
1
+ import { shared } from './designTokens';
2
+
3
+ export const spacings = shared.spacings;
@@ -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 = package["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/kyvinept/sumup-react-native.git", :tag => "#{s.version}" }
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