ikualo-ui-kit-mobile 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.expo/settings.json +8 -0
- package/.expo/web/cache/production/images/favicon/favicon-9e11320f3d3af515878f87550423f7b216058e76e72dba33dc2c5fbbdf7d9d12-contain-transparent/favicon-48.png +0 -0
- package/App.tsx +13 -1
- package/assets/styles/elements/alert.ts +10 -10
- package/assets/styles/elements/buttons.ts +48 -49
- package/assets/styles/elements/cards.ts +28 -34
- package/assets/styles/elements/checkbox.ts +2 -3
- package/assets/styles/elements/dialog.ts +10 -10
- package/assets/styles/elements/dropdown.ts +5 -6
- package/assets/styles/elements/header.ts +3 -3
- package/assets/styles/elements/inputs.ts +41 -42
- package/assets/styles/elements/pages.ts +2 -3
- package/assets/styles/elements/progressBar.ts +5 -6
- package/assets/styles/elements/select.ts +9 -9
- package/assets/styles/elements/tab.ts +7 -8
- package/assets/styles/modules/listGroup.ts +21 -22
- package/assets/styles/modules/register.ts +11 -12
- package/package.json +22 -21
- package/src/config/paper.config.ts +119 -48
- package/src/elements/buttons/BtnCircle.tsx +4 -2
- package/src/elements/buttons/BtnContained.tsx +1 -0
- package/src/elements/buttons/BtnIcon.tsx +4 -3
- package/src/elements/buttons/BtnLightSmall.tsx +3 -1
- package/src/elements/cards/CardInteractive.tsx +15 -15
- package/src/elements/dialogs/DialogDown.tsx +3 -1
- package/src/elements/dialogs/DialogGeneral.tsx +3 -1
- package/src/elements/dropdown/Dropdown.tsx +4 -1
- package/src/elements/headers/HeaderPage.tsx +3 -1
- package/src/elements/inputs/Input.tsx +4 -1
- package/src/elements/inputs/InputEmail.tsx +2 -3
- package/src/elements/inputs/InputOtp.tsx +3 -1
- package/src/elements/inputs/InputPassword.tsx +3 -2
- package/src/elements/list/ListGroup.tsx +3 -1
- package/src/elements/pages/PageTouchable.tsx +3 -1
- package/src/elements/progressBar/ProgressBarSteps.tsx +1 -0
- package/src/elements/select/Select.tsx +2 -2
- package/src/elements/select/SelectList.tsx +3 -1
- package/assets/styles/modules/cards.ts +0 -310
- package/assets/styles/modules/home.ts +0 -289
- package/assets/styles/modules/identityValidation.ts +0 -88
- package/assets/styles/modules/legalInfo.ts +0 -23
- package/assets/styles/modules/login.ts +0 -159
- package/assets/styles/modules/newDevice.ts +0 -22
- package/assets/styles/modules/otp.ts +0 -114
- package/assets/styles/modules/recoveryPassword.ts +0 -114
|
Binary file
|
package/App.tsx
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { PaperProvider, Text } from 'react-native-paper';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { setGlobalTheme, getGlobalTheme } from './src/config/paper.config';
|
|
4
4
|
import { useFonts } from 'expo-font';
|
|
5
|
+
import React, { useEffect } from 'react';
|
|
6
|
+
import { Appearance } from 'react-native';
|
|
5
7
|
|
|
6
8
|
export default function App() {
|
|
9
|
+
const theme = getGlobalTheme();
|
|
7
10
|
const [fontsLoaded] = useFonts({
|
|
8
11
|
MontserratLight: require('./assets/fonts/MontserratLight.ttf'), //300
|
|
9
12
|
MontserratRegular: require('./assets/fonts/MontserratRegular.ttf'), //400
|
|
@@ -11,6 +14,15 @@ export default function App() {
|
|
|
11
14
|
MontserratBold: require('./assets/fonts/MontserratBold.ttf'), //700
|
|
12
15
|
MontserratExtraBold: require('./assets/fonts/MontserratExtraBold.ttf'), //900
|
|
13
16
|
});
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
// vexo(process.env.EXPO_PUBLIC_API_KEY_VEXO ?? "");
|
|
19
|
+
const listener = Appearance.addChangeListener(({ colorScheme }) => {
|
|
20
|
+
if (colorScheme) {
|
|
21
|
+
setGlobalTheme(colorScheme);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return () => listener.remove();
|
|
25
|
+
}, []);
|
|
14
26
|
return (
|
|
15
27
|
<>
|
|
16
28
|
{fontsLoaded && (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
3
3
|
|
|
4
4
|
const styleAlerts = StyleSheet.create({
|
|
5
5
|
alert: {
|
|
@@ -14,23 +14,23 @@ const styleAlerts = StyleSheet.create({
|
|
|
14
14
|
padding: 16,
|
|
15
15
|
},
|
|
16
16
|
'alert--info': {
|
|
17
|
-
backgroundColor:
|
|
18
|
-
borderLeftColor:
|
|
17
|
+
backgroundColor: getGlobalTheme().colors.lightInfo,
|
|
18
|
+
borderLeftColor: getGlobalTheme().colors.darkInfo,
|
|
19
19
|
},
|
|
20
20
|
'alert--warning': {
|
|
21
|
-
backgroundColor:
|
|
22
|
-
borderLeftColor:
|
|
21
|
+
backgroundColor: getGlobalTheme().colors.lightWarning,
|
|
22
|
+
borderLeftColor: getGlobalTheme().colors.darkWarning,
|
|
23
23
|
},
|
|
24
24
|
'alert--success': {
|
|
25
|
-
backgroundColor:
|
|
26
|
-
borderLeftColor:
|
|
25
|
+
backgroundColor: getGlobalTheme().colors.lightSuccess,
|
|
26
|
+
borderLeftColor: getGlobalTheme().colors.darkSuccess,
|
|
27
27
|
},
|
|
28
28
|
'alert--error': {
|
|
29
|
-
backgroundColor:
|
|
30
|
-
borderLeftColor:
|
|
29
|
+
backgroundColor: getGlobalTheme().colors.lightRed,
|
|
30
|
+
borderLeftColor: getGlobalTheme().colors.darkRed,
|
|
31
31
|
},
|
|
32
32
|
'alert-container-text': { flexDirection: 'row', gap: 8 },
|
|
33
|
-
'alert-container-title': { fontSize: 14, fontFamily: 'MontserratBold', color:
|
|
33
|
+
'alert-container-title': { fontSize: 14, fontFamily: 'MontserratBold', color: getGlobalTheme().colors.text, alignSelf: 'center' },
|
|
34
34
|
'alert-body': { marginTop: 8 },
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Appearance, StyleSheet } from 'react-native';
|
|
2
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
4
3
|
const stylesButtonContained = StyleSheet.create({
|
|
5
4
|
'btn-contained': {
|
|
6
5
|
borderRadius: 8,
|
|
@@ -8,40 +7,40 @@ const stylesButtonContained = StyleSheet.create({
|
|
|
8
7
|
height: 56,
|
|
9
8
|
},
|
|
10
9
|
'btn-contained-text': {
|
|
11
|
-
fontFamily: '
|
|
10
|
+
fontFamily: 'MontserratSemiBold',
|
|
12
11
|
textAlign: 'center',
|
|
13
12
|
fontSize: 16
|
|
14
13
|
|
|
15
14
|
},
|
|
16
15
|
'btn-contained--primary': {
|
|
17
|
-
backgroundColor:
|
|
18
|
-
color:
|
|
16
|
+
backgroundColor: Appearance.getColorScheme() === 'dark' ? getGlobalTheme().colors.primary : getGlobalTheme().colors.darkNavy,
|
|
17
|
+
color: getGlobalTheme().colors.white,
|
|
19
18
|
},
|
|
20
19
|
'btn-contained--error': {
|
|
21
|
-
backgroundColor:
|
|
22
|
-
color:
|
|
20
|
+
backgroundColor: getGlobalTheme().colors.darkRed,
|
|
21
|
+
color: getGlobalTheme().colors.white,
|
|
23
22
|
},
|
|
24
23
|
'btn-contained--lightPrimary': {
|
|
25
|
-
backgroundColor:
|
|
26
|
-
color:
|
|
27
|
-
borderColor:
|
|
24
|
+
backgroundColor: getGlobalTheme().colors.lightPrimary,
|
|
25
|
+
color: getGlobalTheme().colors.boldBlack,
|
|
26
|
+
borderColor: getGlobalTheme().colors.primary,
|
|
28
27
|
},
|
|
29
28
|
|
|
30
29
|
'btn-contained--secondary': {
|
|
31
|
-
backgroundColor:
|
|
32
|
-
color:
|
|
30
|
+
backgroundColor: getGlobalTheme().colors.secondary,
|
|
31
|
+
color: getGlobalTheme().colors.black,
|
|
33
32
|
},
|
|
34
33
|
'btn-contained--dark': {
|
|
35
|
-
backgroundColor:
|
|
36
|
-
color:
|
|
34
|
+
backgroundColor: getGlobalTheme().colors.dark,
|
|
35
|
+
color: getGlobalTheme().colors.white,
|
|
37
36
|
},
|
|
38
37
|
'btn-contained--light': {
|
|
39
|
-
backgroundColor:
|
|
40
|
-
color:
|
|
38
|
+
backgroundColor: getGlobalTheme().colors.light,
|
|
39
|
+
color: getGlobalTheme().colors.black,
|
|
41
40
|
},
|
|
42
41
|
'btn-contained--disabled': {
|
|
43
|
-
backgroundColor:
|
|
44
|
-
color:
|
|
42
|
+
backgroundColor: getGlobalTheme().colors.disabled,
|
|
43
|
+
color: getGlobalTheme().colors.darkGray,
|
|
45
44
|
},
|
|
46
45
|
|
|
47
46
|
'btn-contained--sm': {
|
|
@@ -60,7 +59,7 @@ const stylesButtonContained = StyleSheet.create({
|
|
|
60
59
|
|
|
61
60
|
const stylesButtonOutlined = StyleSheet.create({
|
|
62
61
|
'btn-outlined-text': {
|
|
63
|
-
fontFamily: '
|
|
62
|
+
fontFamily: 'MontserratSemiBold',
|
|
64
63
|
textAlign: 'center',
|
|
65
64
|
fontSize: 16
|
|
66
65
|
},
|
|
@@ -71,28 +70,28 @@ const stylesButtonOutlined = StyleSheet.create({
|
|
|
71
70
|
height: 56,
|
|
72
71
|
},
|
|
73
72
|
'btn-outlined--primary': {
|
|
74
|
-
borderColor:
|
|
75
|
-
color:
|
|
73
|
+
borderColor: Appearance.getColorScheme() === 'dark' ? getGlobalTheme().colors.primary : getGlobalTheme().colors.darkNavy,
|
|
74
|
+
color: Appearance.getColorScheme() === 'dark' ? getGlobalTheme().colors.primary : getGlobalTheme().colors.darkNavy,
|
|
76
75
|
},
|
|
77
76
|
'btn-outlined--error': {
|
|
78
|
-
borderColor:
|
|
79
|
-
color:
|
|
77
|
+
borderColor: getGlobalTheme().colors.darkRed,
|
|
78
|
+
color: getGlobalTheme().colors.darkRed,
|
|
80
79
|
},
|
|
81
80
|
'btn-outlined--secondary': {
|
|
82
|
-
borderColor:
|
|
83
|
-
color:
|
|
81
|
+
borderColor: getGlobalTheme().colors.secondary,
|
|
82
|
+
color: getGlobalTheme().colors.secondary,
|
|
84
83
|
},
|
|
85
84
|
'btn-outlined--dark': {
|
|
86
|
-
borderColor:
|
|
87
|
-
color:
|
|
85
|
+
borderColor: getGlobalTheme().colors.dark,
|
|
86
|
+
color: getGlobalTheme().colors.dark,
|
|
88
87
|
},
|
|
89
88
|
'btn-outlined--light': {
|
|
90
|
-
borderColor:
|
|
91
|
-
color:
|
|
89
|
+
borderColor: getGlobalTheme().colors.light,
|
|
90
|
+
color: getGlobalTheme().colors.light,
|
|
92
91
|
},
|
|
93
92
|
'btn-outlined--disabled': {
|
|
94
|
-
borderColor:
|
|
95
|
-
color:
|
|
93
|
+
borderColor: getGlobalTheme().colors.disabled,
|
|
94
|
+
color: getGlobalTheme().colors.disabled,
|
|
96
95
|
},
|
|
97
96
|
'btn-outlined--sm': {
|
|
98
97
|
paddingVertical: 3,
|
|
@@ -114,27 +113,27 @@ const stylesButtonText = StyleSheet.create({
|
|
|
114
113
|
fontFamily: 'MontserratSemiBold',
|
|
115
114
|
},
|
|
116
115
|
'btn-text--primary': {
|
|
117
|
-
color:
|
|
116
|
+
color: getGlobalTheme().colors.primary,
|
|
118
117
|
fontFamily: 'MontserratSemiBold',
|
|
119
118
|
},
|
|
120
119
|
'btn-text--secondary': {
|
|
121
|
-
color:
|
|
120
|
+
color: getGlobalTheme().colors.secondary,
|
|
122
121
|
fontFamily: 'MontserratSemiBold',
|
|
123
122
|
},
|
|
124
123
|
'btn-text--dark': {
|
|
125
|
-
color:
|
|
124
|
+
color: getGlobalTheme().colors.dark,
|
|
126
125
|
fontFamily: 'MontserratSemiBold',
|
|
127
126
|
},
|
|
128
127
|
'btn-text--light': {
|
|
129
|
-
color:
|
|
128
|
+
color: getGlobalTheme().colors.light,
|
|
130
129
|
fontFamily: 'MontserratSemiBold',
|
|
131
130
|
},
|
|
132
131
|
'btn-text--disabled': {
|
|
133
|
-
color:
|
|
132
|
+
color: getGlobalTheme().colors.disabled,
|
|
134
133
|
fontFamily: 'MontserratSemiBold',
|
|
135
134
|
},
|
|
136
135
|
'btn-text--generic': {
|
|
137
|
-
color:
|
|
136
|
+
color: getGlobalTheme().colors.text,
|
|
138
137
|
fontFamily: 'MontserratSemiBold',
|
|
139
138
|
},
|
|
140
139
|
'btn-text--sm': {
|
|
@@ -156,8 +155,8 @@ const stylesButtonText = StyleSheet.create({
|
|
|
156
155
|
});
|
|
157
156
|
const stylesBtnLightSmall = StyleSheet.create({
|
|
158
157
|
'btn-light-small': {
|
|
159
|
-
backgroundColor:
|
|
160
|
-
borderColor:
|
|
158
|
+
backgroundColor: getGlobalTheme().colors.lightPurpleBorder,
|
|
159
|
+
borderColor: getGlobalTheme().colors.primary,
|
|
161
160
|
borderWidth: 1,
|
|
162
161
|
borderRadius: 8,
|
|
163
162
|
maxWidth: 48,
|
|
@@ -182,8 +181,8 @@ const stylesBtnLightSmall = StyleSheet.create({
|
|
|
182
181
|
fontSize: 24,
|
|
183
182
|
},
|
|
184
183
|
'btn-light-small--disabled': {
|
|
185
|
-
backgroundColor:
|
|
186
|
-
borderColor:
|
|
184
|
+
backgroundColor: getGlobalTheme().colors.disabledButtonBackground,
|
|
185
|
+
borderColor: getGlobalTheme().colors.disabledButtonBorder,
|
|
187
186
|
borderRadius: 8,
|
|
188
187
|
borderWidth: 1,
|
|
189
188
|
maxWidth: 48,
|
|
@@ -194,8 +193,8 @@ const stylesBtnLightSmall = StyleSheet.create({
|
|
|
194
193
|
height: 48,
|
|
195
194
|
},
|
|
196
195
|
'btn-light-small--active': {
|
|
197
|
-
backgroundColor:
|
|
198
|
-
borderColor:
|
|
196
|
+
backgroundColor: getGlobalTheme().colors.secondaryLight,
|
|
197
|
+
borderColor: getGlobalTheme().colors.secondary,
|
|
199
198
|
borderRadius: 8,
|
|
200
199
|
borderWidth: 1,
|
|
201
200
|
maxWidth: 48,
|
|
@@ -206,22 +205,22 @@ const stylesBtnLightSmall = StyleSheet.create({
|
|
|
206
205
|
height: 48,
|
|
207
206
|
},
|
|
208
207
|
'btn-light-small-label--disabled': {
|
|
209
|
-
color:
|
|
208
|
+
color: getGlobalTheme().colors.disabledButtonBorder,
|
|
210
209
|
},
|
|
211
210
|
'btn-light-small-label--active': {
|
|
212
|
-
color:
|
|
211
|
+
color: getGlobalTheme().colors.secondary,
|
|
213
212
|
},
|
|
214
213
|
|
|
215
214
|
});
|
|
216
215
|
const stylesButtonCircle = StyleSheet.create({
|
|
217
216
|
'btn-circle': {
|
|
218
217
|
borderRadius: 19,
|
|
219
|
-
backgroundColor:
|
|
218
|
+
backgroundColor: getGlobalTheme().colors.lightPurpleBorder,
|
|
220
219
|
paddingHorizontal: 8,
|
|
221
220
|
},
|
|
222
221
|
'btn-circle__icon': {
|
|
223
222
|
fontSize: 14,
|
|
224
|
-
color:
|
|
223
|
+
color: getGlobalTheme().colors.primary,
|
|
225
224
|
},
|
|
226
225
|
'btn-circle__image': {
|
|
227
226
|
width: 24,
|
|
@@ -236,7 +235,7 @@ const stylesButtonCircle = StyleSheet.create({
|
|
|
236
235
|
|
|
237
236
|
'btn-circle__text': {
|
|
238
237
|
fontSize: 14,
|
|
239
|
-
color:
|
|
238
|
+
color: getGlobalTheme().colors.primary,
|
|
240
239
|
fontFamily: 'MontserratSemiBold',
|
|
241
240
|
},
|
|
242
241
|
});
|
|
@@ -1,67 +1,61 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
4
3
|
export const stylesCards = StyleSheet.create({
|
|
5
4
|
card: {
|
|
6
5
|
borderRadius: 4,
|
|
7
|
-
backgroundColor:
|
|
6
|
+
backgroundColor: getGlobalTheme().colors.white,
|
|
8
7
|
padding: 16,
|
|
9
8
|
borderWidth: 0.5,
|
|
10
|
-
borderColor:
|
|
11
|
-
shadowColor:
|
|
9
|
+
borderColor: getGlobalTheme().colors.lightPrimary,
|
|
10
|
+
shadowColor: getGlobalTheme().colors.transparent,
|
|
12
11
|
},
|
|
13
12
|
|
|
14
13
|
'card-title': {
|
|
15
14
|
fontFamily: 'MontserratSemiBold',
|
|
16
15
|
fontSize: 14,
|
|
17
16
|
lineHeight: 21,
|
|
18
|
-
color:
|
|
17
|
+
color: getGlobalTheme().colors.blackText,
|
|
19
18
|
},
|
|
20
19
|
'card-text': {
|
|
21
20
|
fontFamily: 'MontserratRegular',
|
|
22
21
|
fontSize: 14,
|
|
23
22
|
lineHeight: 21,
|
|
24
|
-
color:
|
|
23
|
+
color: getGlobalTheme().colors.lightBlack,
|
|
25
24
|
textAlign: 'justify',
|
|
26
25
|
},
|
|
27
26
|
'card-text--bold': {
|
|
28
27
|
fontFamily: 'MontserratSemiBold',
|
|
29
|
-
color:
|
|
28
|
+
color: getGlobalTheme().colors.primary,
|
|
30
29
|
},
|
|
31
30
|
'card-interactive': {
|
|
32
31
|
flexDirection: 'row',
|
|
33
32
|
justifyContent: 'space-between',
|
|
34
|
-
backgroundColor:
|
|
35
|
-
|
|
33
|
+
backgroundColor: getGlobalTheme().colors.white,
|
|
34
|
+
borderColor: getGlobalTheme().colors.lavender,
|
|
35
|
+
paddingHorizontal: 16,
|
|
36
36
|
borderRadius: 4,
|
|
37
|
-
|
|
38
|
-
borderTopWidth: 1,
|
|
39
|
-
borderTopColor: theme.colors.lightGray,
|
|
37
|
+
borderWidth: 0.5,
|
|
40
38
|
marginVertical: 4,
|
|
39
|
+
height: 40
|
|
41
40
|
},
|
|
42
41
|
'card-interactive-icon': {
|
|
43
42
|
marginRight: 16,
|
|
44
43
|
},
|
|
45
|
-
'card-interactive-info': {
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
justifyContent: 'space-between',
|
|
48
|
-
width: '100%',
|
|
49
|
-
},
|
|
50
44
|
'card-interactive-text': {
|
|
51
|
-
color:
|
|
45
|
+
color: getGlobalTheme().colors.text,
|
|
52
46
|
fontSize: 14,
|
|
53
|
-
fontFamily: '
|
|
47
|
+
fontFamily: 'MontserratMedium',
|
|
54
48
|
},
|
|
55
49
|
'card-interactive-description': {
|
|
56
50
|
flexDirection: 'row',
|
|
57
51
|
},
|
|
58
52
|
'card-interactive-subtext': {
|
|
59
|
-
color:
|
|
53
|
+
color: getGlobalTheme().colors.text,
|
|
60
54
|
fontSize: 14,
|
|
61
55
|
fontFamily: 'MontserratRegular',
|
|
62
56
|
},
|
|
63
57
|
'card-interactive-highlighted': {
|
|
64
|
-
color:
|
|
58
|
+
color: getGlobalTheme().colors.primary,
|
|
65
59
|
fontSize: 14,
|
|
66
60
|
fontFamily: 'MontserratSemiBold',
|
|
67
61
|
},
|
|
@@ -77,22 +71,22 @@ export const stylesCards = StyleSheet.create({
|
|
|
77
71
|
'card-list': {
|
|
78
72
|
borderWidth: 0.5,
|
|
79
73
|
padding: 16,
|
|
80
|
-
backgroundColor:
|
|
74
|
+
backgroundColor: getGlobalTheme().colors.white,
|
|
81
75
|
borderRadius: 4,
|
|
82
|
-
borderColor:
|
|
83
|
-
shadowColor:
|
|
76
|
+
borderColor: getGlobalTheme().colors.transparent,
|
|
77
|
+
shadowColor: getGlobalTheme().colors.transparent,
|
|
84
78
|
},
|
|
85
79
|
'card-list-selected': {
|
|
86
|
-
backgroundColor:
|
|
87
|
-
borderColor:
|
|
88
|
-
shadowColor:
|
|
80
|
+
backgroundColor: getGlobalTheme().colors.lightPurpleBorder,
|
|
81
|
+
borderColor: getGlobalTheme().colors.purple,
|
|
82
|
+
shadowColor: getGlobalTheme().colors.lightPurpleShadow,
|
|
89
83
|
shadowOffset: { width: 0, height: -1 },
|
|
90
84
|
shadowOpacity: 0.7,
|
|
91
85
|
shadowRadius: 5.4,
|
|
92
86
|
borderWidth: 2,
|
|
93
87
|
},
|
|
94
88
|
'card-list-txt': {
|
|
95
|
-
color:
|
|
89
|
+
color: getGlobalTheme().colors.blackText,
|
|
96
90
|
fontFamily: 'MontserratSemiBold',
|
|
97
91
|
fontSize: 16,
|
|
98
92
|
lineHeight: 24,
|
|
@@ -104,7 +98,7 @@ export const stylesCards = StyleSheet.create({
|
|
|
104
98
|
});
|
|
105
99
|
export const styleCardAbout = StyleSheet.create({
|
|
106
100
|
'card-about': {
|
|
107
|
-
backgroundColor:
|
|
101
|
+
backgroundColor: getGlobalTheme().colors.white,
|
|
108
102
|
borderTopStartRadius: 8,
|
|
109
103
|
borderBottomLeftRadius: 8,
|
|
110
104
|
},
|
|
@@ -114,17 +108,17 @@ export const styleCardAbout = StyleSheet.create({
|
|
|
114
108
|
borderTopRightRadius: 8,
|
|
115
109
|
height: '100%',
|
|
116
110
|
objectFit: 'contain',
|
|
117
|
-
backgroundColor:
|
|
111
|
+
backgroundColor: getGlobalTheme().colors.lightPurpleBorder,
|
|
118
112
|
},
|
|
119
113
|
'card-about__title': {
|
|
120
114
|
fontFamily: 'MontserratSemiBold',
|
|
121
115
|
fontSize: 14,
|
|
122
116
|
lineHeight: 21,
|
|
123
|
-
color:
|
|
117
|
+
color: getGlobalTheme().colors.cardDsc,
|
|
124
118
|
},
|
|
125
119
|
'card-about__vertical-line': {
|
|
126
120
|
width: 8,
|
|
127
|
-
backgroundColor:
|
|
121
|
+
backgroundColor: getGlobalTheme().colors.mediumPurple,
|
|
128
122
|
borderTopStartRadius: 8,
|
|
129
123
|
borderBottomStartRadius: 30,
|
|
130
124
|
borderBottomEndRadius: 8,
|
|
@@ -145,4 +139,4 @@ export const styleCardAbout = StyleSheet.create({
|
|
|
145
139
|
'card-about__full-width': {
|
|
146
140
|
paddingRight: 16,
|
|
147
141
|
},
|
|
148
|
-
});
|
|
142
|
+
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
4
3
|
const styleCheck = StyleSheet.create({
|
|
5
4
|
checkbox: {
|
|
6
5
|
borderWidth: 2,
|
|
7
|
-
borderColor:
|
|
6
|
+
borderColor: getGlobalTheme().colors.primary,
|
|
8
7
|
borderRadius: 4,
|
|
9
8
|
width: 20,
|
|
10
9
|
height: 20,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { theme } from '../../../src/config/paper.config';
|
|
3
2
|
import { Animated } from 'react-native';
|
|
3
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
4
4
|
export const stylesDialog = StyleSheet.create({
|
|
5
5
|
modalBackground: {
|
|
6
6
|
flex: 1,
|
|
@@ -28,14 +28,14 @@ export const stylesDialog = StyleSheet.create({
|
|
|
28
28
|
position: 'relative'
|
|
29
29
|
},
|
|
30
30
|
'dialog-bottom': { position: 'absolute', bottom: -5, width: '100%' },
|
|
31
|
-
'dialog-icon': { borderRadius: 100, backgroundColor:
|
|
32
|
-
'dialog-icon--error': { backgroundColor:
|
|
33
|
-
'dialog-icon--warning': { backgroundColor:
|
|
34
|
-
'dialog-icon--info': { backgroundColor:
|
|
35
|
-
'dialog-icon--success': { backgroundColor:
|
|
31
|
+
'dialog-icon': { borderRadius: 100, backgroundColor: getGlobalTheme().colors.lightRed, width: 40, height: 40, alignItems: 'center', justifyContent: 'center' },
|
|
32
|
+
'dialog-icon--error': { backgroundColor: getGlobalTheme().colors.lightRed },
|
|
33
|
+
'dialog-icon--warning': { backgroundColor: getGlobalTheme().colors.lightWarning },
|
|
34
|
+
'dialog-icon--info': { backgroundColor: getGlobalTheme().colors.lightInfo },
|
|
35
|
+
'dialog-icon--success': { backgroundColor: getGlobalTheme().colors.lightSuccess },
|
|
36
36
|
'dialog-title': {
|
|
37
37
|
fontSize: 16,
|
|
38
|
-
color:
|
|
38
|
+
color: getGlobalTheme().colors.text,
|
|
39
39
|
textAlign: 'center',
|
|
40
40
|
lineHeight: 24,
|
|
41
41
|
fontFamily: 'MontserratSemiBold',
|
|
@@ -44,7 +44,7 @@ export const stylesDialog = StyleSheet.create({
|
|
|
44
44
|
'dialog-only-title': { marginBottom: 0, marginTop: 16 },
|
|
45
45
|
'dialog-select-title': {
|
|
46
46
|
fontSize: 14,
|
|
47
|
-
color:
|
|
47
|
+
color: getGlobalTheme().colors.text,
|
|
48
48
|
textAlign: 'center',
|
|
49
49
|
fontFamily: 'MontserratSemiBold',
|
|
50
50
|
marginTop: -5,
|
|
@@ -52,7 +52,7 @@ export const stylesDialog = StyleSheet.create({
|
|
|
52
52
|
'dialog-container-icon': { flexDirection: 'row', justifyContent: 'center', marginBottom: 16 },
|
|
53
53
|
'dialog-text': {
|
|
54
54
|
fontSize: 14,
|
|
55
|
-
color:
|
|
55
|
+
color: getGlobalTheme().colors.text,
|
|
56
56
|
textAlign: 'center',
|
|
57
57
|
fontFamily: 'MontserratRegular',
|
|
58
58
|
},
|
|
@@ -84,7 +84,7 @@ export const stylesDialog = StyleSheet.create({
|
|
|
84
84
|
},
|
|
85
85
|
'dialog-down-close-icon': {
|
|
86
86
|
width: 24,
|
|
87
|
-
color:
|
|
87
|
+
color: getGlobalTheme().colors.text,
|
|
88
88
|
},
|
|
89
89
|
'dialog-content': {
|
|
90
90
|
marginBottom: 32,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
4
3
|
const styleDropdown = StyleSheet.create({
|
|
5
4
|
'dropdown-container': {
|
|
6
5
|
width: 'auto',
|
|
@@ -11,7 +10,7 @@ const styleDropdown = StyleSheet.create({
|
|
|
11
10
|
'dropdown-content': { backgroundColor: 'white', borderRadius: 16, padding: 16 },
|
|
12
11
|
'dropdown-label': {
|
|
13
12
|
fontSize: 16,
|
|
14
|
-
color:
|
|
13
|
+
color: getGlobalTheme().colors.primary,
|
|
15
14
|
textAlign: 'center',
|
|
16
15
|
fontFamily: 'MontserratSemiBold',
|
|
17
16
|
lineHeight: 24,
|
|
@@ -29,13 +28,13 @@ const styleDropdown = StyleSheet.create({
|
|
|
29
28
|
'dropdown-menu-item': {
|
|
30
29
|
fontFamily: 'MontserratSemiBold',
|
|
31
30
|
fontSize: 14,
|
|
32
|
-
color:
|
|
31
|
+
color: getGlobalTheme().colors.boldBlack,
|
|
33
32
|
},
|
|
34
33
|
'dropdown-color--primary': {
|
|
35
|
-
color:
|
|
34
|
+
color: getGlobalTheme().colors.primary,
|
|
36
35
|
},
|
|
37
36
|
'dropdown-highlight-color': {
|
|
38
|
-
color:
|
|
37
|
+
color: getGlobalTheme().colors.lightPrimary,
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { getGlobalTheme } from '../../../src/config/paper.config';
|
|
3
3
|
export const stylesHeader = StyleSheet.create({
|
|
4
4
|
header: {
|
|
5
5
|
flex: 0,
|
|
@@ -12,7 +12,7 @@ export const stylesHeader = StyleSheet.create({
|
|
|
12
12
|
borderRadius: 100,
|
|
13
13
|
justifyContent: 'center',
|
|
14
14
|
alignItems: 'center',
|
|
15
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: getGlobalTheme().colors.boldBlack,
|
|
16
16
|
width: 32,
|
|
17
17
|
height: 32,
|
|
18
18
|
},
|
|
@@ -24,6 +24,6 @@ export const stylesHeader = StyleSheet.create({
|
|
|
24
24
|
fontFamily: 'MontserratSemiBold',
|
|
25
25
|
},
|
|
26
26
|
'header-logo': { height: 32, width: 32, resizeMode: 'contain' },
|
|
27
|
-
'header-icon-back': { borderRadius: 100, backgroundColor:
|
|
27
|
+
'header-icon-back': { borderRadius: 100, backgroundColor: getGlobalTheme().colors.lightPrimary, width: 32, height: 32, alignItems: 'center', justifyContent: 'center' },
|
|
28
28
|
|
|
29
29
|
});
|