@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
@@ -8,22 +8,22 @@ export declare const useStyles: (selected: boolean) => {
8
8
  };
9
9
  title: {
10
10
  fontSize: number;
11
- color: string;
11
+ color: "#0f131a";
12
12
  fontFamily: string;
13
13
  };
14
14
  switchContainer: {
15
15
  width: number;
16
16
  height: number;
17
- backgroundColor: string;
17
+ backgroundColor: "#e3e7eb" | "#0f131a";
18
18
  justifyContent: "center";
19
- borderRadius: number;
19
+ borderRadius: 999999;
20
20
  };
21
21
  switchCircle: {
22
22
  width: number;
23
23
  height: number;
24
- backgroundColor: string;
24
+ backgroundColor: "#ffffff";
25
25
  borderRadius: number;
26
- shadowColor: string;
26
+ shadowColor: "#0f131a";
27
27
  shadowOffset: {
28
28
  width: number;
29
29
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/WebViewSheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAgB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAM7D,UAAU,iBAAkB,SAAQ,IAAI,CACtC,YAAY,EACZ,WAAW,GAAG,8BAA8B,GAAG,QAAQ,CACxD;IACC,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAmCpD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/WebViewSheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAgB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAM7D,UAAU,iBAAkB,SAAQ,IAAI,CACtC,YAAY,EACZ,WAAW,GAAG,8BAA8B,GAAG,QAAQ,CACxD;IACC,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAqCpD,CAAC"}
@@ -6,7 +6,7 @@ export declare const useStyles: () => {
6
6
  borderTopLeftRadius: number;
7
7
  borderTopRightRadius: number;
8
8
  overflow: "hidden";
9
- backgroundColor: string;
9
+ backgroundColor: "#ffffff";
10
10
  };
11
11
  headerContainer: {
12
12
  paddingHorizontal: number;
@@ -1,25 +1,22 @@
1
1
  export declare const useTheme: () => {
2
2
  colors: {
3
- transparent: string;
4
- black: string;
5
- white: string;
6
- grayNickel: string;
7
- silver: string;
8
- codGray: string;
9
- regentGray: string;
10
- dustyGray: string;
11
- dodgerBlue: string;
12
- mantis: string;
13
- paleSky: string;
14
- guardsmanRed: string;
15
- cinnabar: string;
16
- athensGray: string;
17
- royalBlue: string;
18
- mercury: string;
19
- doveGray: string;
20
- alizarinCrimson: string;
21
- deepSea: string;
22
- valencia: string;
3
+ transparent: "transparent";
4
+ bgNormal: "#ffffff";
5
+ bgSubtle: "#f0f1f5";
6
+ bgHighlight: "#e3e7eb";
7
+ bgStrong: "#000000";
8
+ bgAccentStrong: "#0f131a";
9
+ bgSuccessStrong: "#018850";
10
+ fgNormal: "#0f131a";
11
+ fgSubtle: "#6a737c";
12
+ fgPlaceholder: "#929396";
13
+ fgAccent: "#0f131a";
14
+ fgDanger: "#de331d";
15
+ fgOnStrong: "#ffffff";
16
+ borderNormal: "#aeb6be";
17
+ borderSubtle: "#e3e7ec";
18
+ borderDivider: "#e3e7eb";
19
+ borderDanger: "#de331d";
23
20
  };
24
21
  images: {
25
22
  applePay: any;
@@ -41,5 +38,70 @@ export declare const useTheme: () => {
41
38
  sfProTextRegular: string;
42
39
  sfProTextBold: string;
43
40
  };
41
+ radii: {
42
+ readonly bit: 4;
43
+ readonly byte: 8;
44
+ readonly kilo: 12;
45
+ readonly mega: 16;
46
+ readonly pill: 999999;
47
+ };
48
+ borderWidths: {
49
+ readonly kilo: 1;
50
+ readonly mega: 2;
51
+ };
52
+ spacings: {
53
+ readonly bit: 4;
54
+ readonly byte: 8;
55
+ readonly kilo: 12;
56
+ readonly mega: 16;
57
+ readonly giga: 24;
58
+ readonly tera: 32;
59
+ readonly peta: 40;
60
+ readonly exa: 48;
61
+ readonly zetta: 56;
62
+ };
63
+ designTokens: {
64
+ radii: {
65
+ readonly bit: 4;
66
+ readonly byte: 8;
67
+ readonly kilo: 12;
68
+ readonly mega: 16;
69
+ readonly pill: 999999;
70
+ };
71
+ borderWidths: {
72
+ readonly kilo: 1;
73
+ readonly mega: 2;
74
+ };
75
+ spacings: {
76
+ readonly bit: 4;
77
+ readonly byte: 8;
78
+ readonly kilo: 12;
79
+ readonly mega: 16;
80
+ readonly giga: 24;
81
+ readonly tera: 32;
82
+ readonly peta: 40;
83
+ readonly exa: 48;
84
+ readonly zetta: 56;
85
+ };
86
+ colors: {
87
+ readonly transparent: "transparent";
88
+ readonly bgNormal: "#ffffff";
89
+ readonly bgSubtle: "#f0f1f5";
90
+ readonly bgHighlight: "#e3e7eb";
91
+ readonly bgStrong: "#000000";
92
+ readonly bgAccentStrong: "#0f131a";
93
+ readonly bgSuccessStrong: "#018850";
94
+ readonly fgNormal: "#0f131a";
95
+ readonly fgSubtle: "#6a737c";
96
+ readonly fgPlaceholder: "#929396";
97
+ readonly fgAccent: "#0f131a";
98
+ readonly fgDanger: "#de331d";
99
+ readonly fgOnStrong: "#ffffff";
100
+ readonly borderNormal: "#aeb6be";
101
+ readonly borderSubtle: "#e3e7ec";
102
+ readonly borderDivider: "#e3e7eb";
103
+ readonly borderDanger: "#de331d";
104
+ };
105
+ };
44
106
  };
45
107
  //# sourceMappingURL=ThemeContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAC"}
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const borderWidths: {
2
+ readonly kilo: 1;
3
+ readonly mega: 2;
4
+ };
5
+ //# sourceMappingURL=borderWidths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"borderWidths.d.ts","sourceRoot":"","sources":["../../../src/styles/borderWidths.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;CAAsB,CAAC"}
@@ -1,23 +1,20 @@
1
1
  export declare const light: {
2
- transparent: string;
3
- black: string;
4
- white: string;
5
- grayNickel: string;
6
- silver: string;
7
- codGray: string;
8
- regentGray: string;
9
- dustyGray: string;
10
- dodgerBlue: string;
11
- mantis: string;
12
- paleSky: string;
13
- guardsmanRed: string;
14
- cinnabar: string;
15
- athensGray: string;
16
- royalBlue: string;
17
- mercury: string;
18
- doveGray: string;
19
- alizarinCrimson: string;
20
- deepSea: string;
21
- valencia: string;
2
+ transparent: "transparent";
3
+ bgNormal: "#ffffff";
4
+ bgSubtle: "#f0f1f5";
5
+ bgHighlight: "#e3e7eb";
6
+ bgStrong: "#000000";
7
+ bgAccentStrong: "#0f131a";
8
+ bgSuccessStrong: "#018850";
9
+ fgNormal: "#0f131a";
10
+ fgSubtle: "#6a737c";
11
+ fgPlaceholder: "#929396";
12
+ fgAccent: "#0f131a";
13
+ fgDanger: "#de331d";
14
+ fgOnStrong: "#ffffff";
15
+ borderNormal: "#aeb6be";
16
+ borderSubtle: "#e3e7ec";
17
+ borderDivider: "#e3e7eb";
18
+ borderDanger: "#de331d";
22
19
  };
23
20
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/styles/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;CAqBjB,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/styles/colors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;CAkBjB,CAAC"}
@@ -0,0 +1,87 @@
1
+ export declare const shared: {
2
+ readonly radii: {
3
+ readonly bit: 4;
4
+ readonly byte: 8;
5
+ readonly kilo: 12;
6
+ readonly mega: 16;
7
+ readonly pill: 999999;
8
+ };
9
+ readonly borderWidths: {
10
+ readonly kilo: 1;
11
+ readonly mega: 2;
12
+ };
13
+ readonly spacings: {
14
+ readonly bit: 4;
15
+ readonly byte: 8;
16
+ readonly kilo: 12;
17
+ readonly mega: 16;
18
+ readonly giga: 24;
19
+ readonly tera: 32;
20
+ readonly peta: 40;
21
+ readonly exa: 48;
22
+ readonly zetta: 56;
23
+ };
24
+ };
25
+ export declare const lightColors: {
26
+ readonly transparent: "transparent";
27
+ readonly bgNormal: "#ffffff";
28
+ readonly bgSubtle: "#f0f1f5";
29
+ readonly bgHighlight: "#e3e7eb";
30
+ readonly bgStrong: "#000000";
31
+ readonly bgAccentStrong: "#0f131a";
32
+ readonly bgSuccessStrong: "#018850";
33
+ readonly fgNormal: "#0f131a";
34
+ readonly fgSubtle: "#6a737c";
35
+ readonly fgPlaceholder: "#929396";
36
+ readonly fgAccent: "#0f131a";
37
+ readonly fgDanger: "#de331d";
38
+ readonly fgOnStrong: "#ffffff";
39
+ readonly borderNormal: "#aeb6be";
40
+ readonly borderSubtle: "#e3e7ec";
41
+ readonly borderDivider: "#e3e7eb";
42
+ readonly borderDanger: "#de331d";
43
+ };
44
+ export declare const light: {
45
+ radii: {
46
+ readonly bit: 4;
47
+ readonly byte: 8;
48
+ readonly kilo: 12;
49
+ readonly mega: 16;
50
+ readonly pill: 999999;
51
+ };
52
+ borderWidths: {
53
+ readonly kilo: 1;
54
+ readonly mega: 2;
55
+ };
56
+ spacings: {
57
+ readonly bit: 4;
58
+ readonly byte: 8;
59
+ readonly kilo: 12;
60
+ readonly mega: 16;
61
+ readonly giga: 24;
62
+ readonly tera: 32;
63
+ readonly peta: 40;
64
+ readonly exa: 48;
65
+ readonly zetta: 56;
66
+ };
67
+ colors: {
68
+ readonly transparent: "transparent";
69
+ readonly bgNormal: "#ffffff";
70
+ readonly bgSubtle: "#f0f1f5";
71
+ readonly bgHighlight: "#e3e7eb";
72
+ readonly bgStrong: "#000000";
73
+ readonly bgAccentStrong: "#0f131a";
74
+ readonly bgSuccessStrong: "#018850";
75
+ readonly fgNormal: "#0f131a";
76
+ readonly fgSubtle: "#6a737c";
77
+ readonly fgPlaceholder: "#929396";
78
+ readonly fgAccent: "#0f131a";
79
+ readonly fgDanger: "#de331d";
80
+ readonly fgOnStrong: "#ffffff";
81
+ readonly borderNormal: "#aeb6be";
82
+ readonly borderSubtle: "#e3e7ec";
83
+ readonly borderDivider: "#e3e7eb";
84
+ readonly borderDanger: "#de331d";
85
+ };
86
+ };
87
+ //# sourceMappingURL=designTokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"designTokens.d.ts","sourceRoot":"","sources":["../../../src/styles/designTokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBT,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;CAkBd,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAC"}
@@ -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
- export { Colors, Images, 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';
8
+ export { Colors, Images, Fonts, Radii, BorderWidths, Spacings, DesignTokens };
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const radii: {
2
+ readonly bit: 4;
3
+ readonly byte: 8;
4
+ readonly kilo: 12;
5
+ readonly mega: 16;
6
+ readonly pill: 999999;
7
+ };
8
+ //# sourceMappingURL=radii.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radii.d.ts","sourceRoot":"","sources":["../../../src/styles/radii.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;CAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const spacings: {
2
+ readonly bit: 4;
3
+ readonly byte: 8;
4
+ readonly kilo: 12;
5
+ readonly mega: 16;
6
+ readonly giga: 24;
7
+ readonly tera: 32;
8
+ readonly peta: 40;
9
+ readonly exa: 48;
10
+ readonly zetta: 56;
11
+ };
12
+ //# sourceMappingURL=spacings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacings.d.ts","sourceRoot":"","sources":["../../../src/styles/spacings.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;CAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumup/react-native-checkout",
3
- "version": "0.0.0-alpha.1",
3
+ "version": "0.0.0-alpha.2",
4
4
  "description": "Official SumUp React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -15,7 +15,7 @@ export const useStyles = (height?: number) => {
15
15
  right: 0,
16
16
  },
17
17
  content: {
18
- backgroundColor: colors.white,
18
+ backgroundColor: colors.bgNormal,
19
19
  width: width,
20
20
  height,
21
21
  borderTopLeftRadius: 8,
@@ -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 const useStyles = (disabled?: boolean) => {
5
6
  const { colors } = useTheme();
@@ -9,8 +10,8 @@ export const useStyles = (disabled?: boolean) => {
9
10
  opacity: disabled ? 0.6 : 1,
10
11
  height: 48,
11
12
  width: '100%',
12
- backgroundColor: colors.black,
13
- borderRadius: 8,
13
+ backgroundColor: colors.bgStrong,
14
+ borderRadius: radii.byte,
14
15
  justifyContent: 'center',
15
16
  alignItems: 'center',
16
17
  },
@@ -1,38 +1,40 @@
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';
3
5
  import { ButtonType } from '.';
4
6
 
5
7
  export const useStyles = (type: ButtonType) => {
6
8
  const { colors, fonts } = useTheme();
7
9
 
8
10
  const textColor = {
9
- primary: colors.white,
10
- secondary: colors.codGray,
11
- tertiary: colors.alizarinCrimson,
11
+ primary: colors.fgOnStrong,
12
+ secondary: colors.fgNormal,
13
+ tertiary: colors.fgDanger,
12
14
  };
13
15
 
14
16
  const backgroundColor = {
15
- primary: colors.royalBlue,
17
+ primary: colors.bgAccentStrong,
16
18
  secondary: colors.transparent,
17
19
  tertiary: colors.transparent,
18
20
  };
19
21
 
20
22
  const borderColor = {
21
23
  primary: colors.transparent,
22
- secondary: colors.silver,
24
+ secondary: colors.borderNormal,
23
25
  tertiary: colors.transparent,
24
26
  };
25
27
 
26
28
  const borderWidth = {
27
29
  primary: 0,
28
- secondary: 1,
30
+ secondary: borderWidths.kilo,
29
31
  tertiary: 0,
30
32
  };
31
33
 
32
34
  const styles = StyleSheet.create({
33
35
  container: {
34
36
  height: 48,
35
- borderRadius: 100,
37
+ borderRadius: radii.byte,
36
38
  width: '100%',
37
39
  justifyContent: 'center',
38
40
  alignItems: 'center',
@@ -20,14 +20,14 @@ export const useStyles = () => {
20
20
  title: {
21
21
  fontWeight: '600',
22
22
  fontSize: 14,
23
- color: colors.paleSky,
23
+ color: colors.fgSubtle,
24
24
  marginBottom: 8,
25
25
  },
26
26
  privacyPolicyText: {
27
- color: colors.doveGray,
27
+ color: colors.fgSubtle,
28
28
  },
29
29
  privacyPolicyLink: {
30
- color: colors.royalBlue,
30
+ color: colors.bgAccentStrong,
31
31
  },
32
32
  });
33
33
 
@@ -11,7 +11,7 @@ export const useStyles = () => {
11
11
 
12
12
  const styles = StyleSheet.create({
13
13
  container: {
14
- backgroundColor: colors.white,
14
+ backgroundColor: colors.bgNormal,
15
15
  maxHeight: height - insets.top,
16
16
  paddingBottom: insets.bottom + 16,
17
17
  },
@@ -19,12 +19,12 @@ export const useStyles = () => {
19
19
  fontWeight: 'bold',
20
20
  fontSize: 20,
21
21
  marginBottom: 30,
22
- color: colors.black,
22
+ color: colors.fgAccent,
23
23
  },
24
24
  separatorText: {
25
25
  fontSize: 14,
26
26
  lineHeight: 16,
27
- color: colors.black,
27
+ color: colors.fgAccent,
28
28
  width: '100%',
29
29
  textAlign: 'center',
30
30
  },
@@ -1,16 +1,18 @@
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';
3
5
 
4
6
  export const useStyles = (selected: boolean) => {
5
7
  const { colors } = useTheme();
6
8
 
7
9
  const styles = StyleSheet.create({
8
10
  container: {
9
- borderRadius: 12,
11
+ borderRadius: radii.kilo,
10
12
  width: 24,
11
13
  height: 24,
12
- borderWidth: 2,
13
- borderColor: selected ? colors.royalBlue : colors.doveGray,
14
+ borderWidth: borderWidths.mega,
15
+ borderColor: selected ? colors.bgAccentStrong : colors.fgSubtle,
14
16
  },
15
17
  image: {
16
18
  width: 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 const useStyles = (disabled?: boolean) => {
5
6
  const { colors } = useTheme();
@@ -10,14 +11,14 @@ export const useStyles = (disabled?: boolean) => {
10
11
  opacity: disabled ? 0.6 : 1,
11
12
  height: 48,
12
13
  width: '100%',
13
- backgroundColor: colors.black,
14
- borderRadius: 8,
14
+ backgroundColor: colors.bgStrong,
15
+ borderRadius: radii.byte,
15
16
  justifyContent: 'center',
16
17
  alignItems: 'center',
17
18
  },
18
19
  text: {
19
20
  fontSize: 14,
20
- color: colors.white,
21
+ color: colors.fgOnStrong,
21
22
  },
22
23
  image: {
23
24
  width: 44,
@@ -13,7 +13,7 @@ export const useStyles = () => {
13
13
  marginBottom: 16,
14
14
  },
15
15
  title: {
16
- color: colors.codGray,
16
+ color: colors.fgNormal,
17
17
  fontWeight: '700',
18
18
  fontSize: 18,
19
19
  textAlign: 'center',
@@ -42,7 +42,7 @@ export const BaseInputField = (props: BaseInputFieldProps) => {
42
42
  <View style={[styles.container]}>
43
43
  <TextInput
44
44
  placeholder={props.placeholder}
45
- placeholderTextColor={theme.colors.dustyGray}
45
+ placeholderTextColor={theme.colors.fgPlaceholder}
46
46
  autoCorrect={false}
47
47
  spellCheck={false}
48
48
  keyboardType={props.keyboardType}
@@ -2,31 +2,31 @@ import { StyleSheet } from 'react-native';
2
2
  import { useTheme } from '../../../contexts/ThemeContext';
3
3
 
4
4
  export const useStyles = () => {
5
- const { colors, fonts } = useTheme();
5
+ const { colors, fonts, borderWidths, radii, spacings } = useTheme();
6
6
 
7
7
  const styles = StyleSheet.create({
8
8
  input: {
9
9
  fontSize: 16,
10
- paddingHorizontal: 16,
10
+ paddingHorizontal: spacings.mega,
11
11
  width: '100%',
12
- color: colors.codGray,
12
+ color: colors.fgNormal,
13
13
  fontFamily: fonts.sfProTextRegular,
14
14
  },
15
15
  title: {
16
16
  fontSize: 14,
17
17
  lineHeight: 20,
18
- color: colors.codGray,
18
+ color: colors.fgNormal,
19
19
  fontFamily: fonts.sfProTextRegular,
20
20
  },
21
21
  container: {
22
- borderColor: colors.silver,
23
- borderWidth: 1,
24
- height: 56,
22
+ borderColor: colors.borderNormal,
23
+ borderWidth: borderWidths.kilo,
24
+ height: 48,
25
25
  justifyContent: 'center',
26
- borderRadius: 8,
26
+ borderRadius: radii.byte,
27
27
  },
28
28
  errorText: {
29
- color: colors.guardsmanRed,
29
+ color: colors.fgDanger,
30
30
  fontSize: 12,
31
31
  marginVertical: 6,
32
32
  fontFamily: fonts.sfProTextRegular,
@@ -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 const useStyles = () => {
5
6
  const { colors } = useTheme();
@@ -12,13 +13,13 @@ export const useStyles = () => {
12
13
  alignItems: 'center',
13
14
  },
14
15
  progress: {
15
- borderTopColor: colors.white,
16
+ borderTopColor: colors.fgOnStrong,
16
17
  width: '100%',
17
18
  height: '100%',
18
- borderRadius: 16,
19
- borderLeftColor: colors.white,
20
- borderRightColor: colors.white,
21
- borderBottomColor: colors.royalBlue,
19
+ borderRadius: radii.mega,
20
+ borderLeftColor: colors.fgOnStrong,
21
+ borderRightColor: colors.fgOnStrong,
22
+ borderBottomColor: colors.bgAccentStrong,
22
23
  borderWidth: 3,
23
24
  position: 'absolute',
24
25
  },
@@ -14,7 +14,7 @@ export const useStyles = () => {
14
14
  bottomColorContainer: {
15
15
  width: '100%',
16
16
  height: 100,
17
- backgroundColor: colors.white,
17
+ backgroundColor: colors.bgNormal,
18
18
  position: 'absolute',
19
19
  bottom: -100,
20
20
  },
@@ -6,7 +6,7 @@ export const useStyles = () => {
6
6
 
7
7
  const styles = StyleSheet.create({
8
8
  text: {
9
- color: colors.cinnabar,
9
+ color: colors.fgDanger,
10
10
  },
11
11
  });
12
12
 
@@ -40,7 +40,9 @@ export const OptionMenuModal = (props: OptionMenuModalProps) => {
40
40
  <Text
41
41
  style={[
42
42
  styles.optionText,
43
- { color: type === 'destructive' ? colors.valencia : colors.black },
43
+ {
44
+ color: type === 'destructive' ? colors.fgDanger : colors.fgAccent,
45
+ },
44
46
  ]}
45
47
  >
46
48
  {text}