@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
|
@@ -8,22 +8,22 @@ export declare const useStyles: (selected: boolean) => {
|
|
|
8
8
|
};
|
|
9
9
|
title: {
|
|
10
10
|
fontSize: number;
|
|
11
|
-
color:
|
|
11
|
+
color: "#0f131a";
|
|
12
12
|
fontFamily: string;
|
|
13
13
|
};
|
|
14
14
|
switchContainer: {
|
|
15
15
|
width: number;
|
|
16
16
|
height: number;
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: "#e3e7eb" | "#0f131a";
|
|
18
18
|
justifyContent: "center";
|
|
19
|
-
borderRadius:
|
|
19
|
+
borderRadius: 999999;
|
|
20
20
|
};
|
|
21
21
|
switchCircle: {
|
|
22
22
|
width: number;
|
|
23
23
|
height: number;
|
|
24
|
-
backgroundColor:
|
|
24
|
+
backgroundColor: "#ffffff";
|
|
25
25
|
borderRadius: number;
|
|
26
|
-
shadowColor:
|
|
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,
|
|
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"}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
export declare const useTheme: () => {
|
|
2
2
|
colors: {
|
|
3
|
-
transparent:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAC"}
|
|
@@ -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:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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":"
|
|
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
|
-
|
|
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;
|
|
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 @@
|
|
|
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,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.
|
|
13
|
-
borderRadius:
|
|
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.
|
|
10
|
-
secondary: colors.
|
|
11
|
-
tertiary: colors.
|
|
11
|
+
primary: colors.fgOnStrong,
|
|
12
|
+
secondary: colors.fgNormal,
|
|
13
|
+
tertiary: colors.fgDanger,
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
const backgroundColor = {
|
|
15
|
-
primary: colors.
|
|
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.
|
|
24
|
+
secondary: colors.borderNormal,
|
|
23
25
|
tertiary: colors.transparent,
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
const borderWidth = {
|
|
27
29
|
primary: 0,
|
|
28
|
-
secondary:
|
|
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:
|
|
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.
|
|
23
|
+
color: colors.fgSubtle,
|
|
24
24
|
marginBottom: 8,
|
|
25
25
|
},
|
|
26
26
|
privacyPolicyText: {
|
|
27
|
-
color: colors.
|
|
27
|
+
color: colors.fgSubtle,
|
|
28
28
|
},
|
|
29
29
|
privacyPolicyLink: {
|
|
30
|
-
color: colors.
|
|
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.
|
|
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.
|
|
22
|
+
color: colors.fgAccent,
|
|
23
23
|
},
|
|
24
24
|
separatorText: {
|
|
25
25
|
fontSize: 14,
|
|
26
26
|
lineHeight: 16,
|
|
27
|
-
color: colors.
|
|
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:
|
|
11
|
+
borderRadius: radii.kilo,
|
|
10
12
|
width: 24,
|
|
11
13
|
height: 24,
|
|
12
|
-
borderWidth:
|
|
13
|
-
borderColor: selected ? colors.
|
|
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.
|
|
14
|
-
borderRadius:
|
|
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.
|
|
21
|
+
color: colors.fgOnStrong,
|
|
21
22
|
},
|
|
22
23
|
image: {
|
|
23
24
|
width: 44,
|
|
@@ -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.
|
|
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:
|
|
10
|
+
paddingHorizontal: spacings.mega,
|
|
11
11
|
width: '100%',
|
|
12
|
-
color: colors.
|
|
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.
|
|
18
|
+
color: colors.fgNormal,
|
|
19
19
|
fontFamily: fonts.sfProTextRegular,
|
|
20
20
|
},
|
|
21
21
|
container: {
|
|
22
|
-
borderColor: colors.
|
|
23
|
-
borderWidth:
|
|
24
|
-
height:
|
|
22
|
+
borderColor: colors.borderNormal,
|
|
23
|
+
borderWidth: borderWidths.kilo,
|
|
24
|
+
height: 48,
|
|
25
25
|
justifyContent: 'center',
|
|
26
|
-
borderRadius:
|
|
26
|
+
borderRadius: radii.byte,
|
|
27
27
|
},
|
|
28
28
|
errorText: {
|
|
29
|
-
color: colors.
|
|
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.
|
|
16
|
+
borderTopColor: colors.fgOnStrong,
|
|
16
17
|
width: '100%',
|
|
17
18
|
height: '100%',
|
|
18
|
-
borderRadius:
|
|
19
|
-
borderLeftColor: colors.
|
|
20
|
-
borderRightColor: colors.
|
|
21
|
-
borderBottomColor: colors.
|
|
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
|
},
|
|
@@ -40,7 +40,9 @@ export const OptionMenuModal = (props: OptionMenuModalProps) => {
|
|
|
40
40
|
<Text
|
|
41
41
|
style={[
|
|
42
42
|
styles.optionText,
|
|
43
|
-
{
|
|
43
|
+
{
|
|
44
|
+
color: type === 'destructive' ? colors.fgDanger : colors.fgAccent,
|
|
45
|
+
},
|
|
44
46
|
]}
|
|
45
47
|
>
|
|
46
48
|
{text}
|