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.
Files changed (45) hide show
  1. package/.expo/settings.json +8 -0
  2. package/.expo/web/cache/production/images/favicon/favicon-9e11320f3d3af515878f87550423f7b216058e76e72dba33dc2c5fbbdf7d9d12-contain-transparent/favicon-48.png +0 -0
  3. package/App.tsx +13 -1
  4. package/assets/styles/elements/alert.ts +10 -10
  5. package/assets/styles/elements/buttons.ts +48 -49
  6. package/assets/styles/elements/cards.ts +28 -34
  7. package/assets/styles/elements/checkbox.ts +2 -3
  8. package/assets/styles/elements/dialog.ts +10 -10
  9. package/assets/styles/elements/dropdown.ts +5 -6
  10. package/assets/styles/elements/header.ts +3 -3
  11. package/assets/styles/elements/inputs.ts +41 -42
  12. package/assets/styles/elements/pages.ts +2 -3
  13. package/assets/styles/elements/progressBar.ts +5 -6
  14. package/assets/styles/elements/select.ts +9 -9
  15. package/assets/styles/elements/tab.ts +7 -8
  16. package/assets/styles/modules/listGroup.ts +21 -22
  17. package/assets/styles/modules/register.ts +11 -12
  18. package/package.json +22 -21
  19. package/src/config/paper.config.ts +119 -48
  20. package/src/elements/buttons/BtnCircle.tsx +4 -2
  21. package/src/elements/buttons/BtnContained.tsx +1 -0
  22. package/src/elements/buttons/BtnIcon.tsx +4 -3
  23. package/src/elements/buttons/BtnLightSmall.tsx +3 -1
  24. package/src/elements/cards/CardInteractive.tsx +15 -15
  25. package/src/elements/dialogs/DialogDown.tsx +3 -1
  26. package/src/elements/dialogs/DialogGeneral.tsx +3 -1
  27. package/src/elements/dropdown/Dropdown.tsx +4 -1
  28. package/src/elements/headers/HeaderPage.tsx +3 -1
  29. package/src/elements/inputs/Input.tsx +4 -1
  30. package/src/elements/inputs/InputEmail.tsx +2 -3
  31. package/src/elements/inputs/InputOtp.tsx +3 -1
  32. package/src/elements/inputs/InputPassword.tsx +3 -2
  33. package/src/elements/list/ListGroup.tsx +3 -1
  34. package/src/elements/pages/PageTouchable.tsx +3 -1
  35. package/src/elements/progressBar/ProgressBarSteps.tsx +1 -0
  36. package/src/elements/select/Select.tsx +2 -2
  37. package/src/elements/select/SelectList.tsx +3 -1
  38. package/assets/styles/modules/cards.ts +0 -310
  39. package/assets/styles/modules/home.ts +0 -289
  40. package/assets/styles/modules/identityValidation.ts +0 -88
  41. package/assets/styles/modules/legalInfo.ts +0 -23
  42. package/assets/styles/modules/login.ts +0 -159
  43. package/assets/styles/modules/newDevice.ts +0 -22
  44. package/assets/styles/modules/otp.ts +0 -114
  45. package/assets/styles/modules/recoveryPassword.ts +0 -114
@@ -0,0 +1,8 @@
1
+ {
2
+ "hostType": "lan",
3
+ "lanType": "ip",
4
+ "dev": true,
5
+ "minify": false,
6
+ "urlRandomness": null,
7
+ "https": false
8
+ }
package/App.tsx CHANGED
@@ -1,9 +1,12 @@
1
1
  import { PaperProvider, Text } from 'react-native-paper';
2
2
 
3
- import { theme } from './src/config/paper.config';
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 { theme } from '../../../src/config/paper.config';
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: theme.colors.lightInfo,
18
- borderLeftColor: theme.colors.darkInfo,
17
+ backgroundColor: getGlobalTheme().colors.lightInfo,
18
+ borderLeftColor: getGlobalTheme().colors.darkInfo,
19
19
  },
20
20
  'alert--warning': {
21
- backgroundColor: theme.colors.lightWarning,
22
- borderLeftColor: theme.colors.darkWarning,
21
+ backgroundColor: getGlobalTheme().colors.lightWarning,
22
+ borderLeftColor: getGlobalTheme().colors.darkWarning,
23
23
  },
24
24
  'alert--success': {
25
- backgroundColor: theme.colors.lightSuccess,
26
- borderLeftColor: theme.colors.darkSuccess,
25
+ backgroundColor: getGlobalTheme().colors.lightSuccess,
26
+ borderLeftColor: getGlobalTheme().colors.darkSuccess,
27
27
  },
28
28
  'alert--error': {
29
- backgroundColor: theme.colors.lightRed,
30
- borderLeftColor: theme.colors.darkRed,
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: theme.colors.text , alignSelf: 'center' },
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 { theme } from '../../../src/config/paper.config';
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: 'MontserratBold',
10
+ fontFamily: 'MontserratSemiBold',
12
11
  textAlign: 'center',
13
12
  fontSize: 16
14
13
 
15
14
  },
16
15
  'btn-contained--primary': {
17
- backgroundColor: theme.colors.primary,
18
- color: theme.colors.white,
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: theme.colors.darkRed,
22
- color: theme.colors.white,
20
+ backgroundColor: getGlobalTheme().colors.darkRed,
21
+ color: getGlobalTheme().colors.white,
23
22
  },
24
23
  'btn-contained--lightPrimary': {
25
- backgroundColor: theme.colors.lightPrimary,
26
- color: theme.colors.boldBlack,
27
- borderColor: theme.colors.primary,
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: theme.colors.secondary,
32
- color: theme.colors.black,
30
+ backgroundColor: getGlobalTheme().colors.secondary,
31
+ color: getGlobalTheme().colors.black,
33
32
  },
34
33
  'btn-contained--dark': {
35
- backgroundColor: theme.colors.dark,
36
- color: theme.colors.white,
34
+ backgroundColor: getGlobalTheme().colors.dark,
35
+ color: getGlobalTheme().colors.white,
37
36
  },
38
37
  'btn-contained--light': {
39
- backgroundColor: theme.colors.light,
40
- color: theme.colors.black,
38
+ backgroundColor: getGlobalTheme().colors.light,
39
+ color: getGlobalTheme().colors.black,
41
40
  },
42
41
  'btn-contained--disabled': {
43
- backgroundColor: theme.colors.disabled,
44
- color: theme.colors.darkGray,
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: 'MontserratBold',
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: theme.colors.primary,
75
- color: theme.colors.primary,
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: theme.colors.darkRed,
79
- color: theme.colors.darkRed,
77
+ borderColor: getGlobalTheme().colors.darkRed,
78
+ color: getGlobalTheme().colors.darkRed,
80
79
  },
81
80
  'btn-outlined--secondary': {
82
- borderColor: theme.colors.secondary,
83
- color: theme.colors.secondary,
81
+ borderColor: getGlobalTheme().colors.secondary,
82
+ color: getGlobalTheme().colors.secondary,
84
83
  },
85
84
  'btn-outlined--dark': {
86
- borderColor: theme.colors.dark,
87
- color: theme.colors.dark,
85
+ borderColor: getGlobalTheme().colors.dark,
86
+ color: getGlobalTheme().colors.dark,
88
87
  },
89
88
  'btn-outlined--light': {
90
- borderColor: theme.colors.light,
91
- color: theme.colors.light,
89
+ borderColor: getGlobalTheme().colors.light,
90
+ color: getGlobalTheme().colors.light,
92
91
  },
93
92
  'btn-outlined--disabled': {
94
- borderColor: theme.colors.disabled,
95
- color: theme.colors.disabled,
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: theme.colors.primary,
116
+ color: getGlobalTheme().colors.primary,
118
117
  fontFamily: 'MontserratSemiBold',
119
118
  },
120
119
  'btn-text--secondary': {
121
- color: theme.colors.secondary,
120
+ color: getGlobalTheme().colors.secondary,
122
121
  fontFamily: 'MontserratSemiBold',
123
122
  },
124
123
  'btn-text--dark': {
125
- color: theme.colors.dark,
124
+ color: getGlobalTheme().colors.dark,
126
125
  fontFamily: 'MontserratSemiBold',
127
126
  },
128
127
  'btn-text--light': {
129
- color: theme.colors.light,
128
+ color: getGlobalTheme().colors.light,
130
129
  fontFamily: 'MontserratSemiBold',
131
130
  },
132
131
  'btn-text--disabled': {
133
- color: theme.colors.disabled,
132
+ color: getGlobalTheme().colors.disabled,
134
133
  fontFamily: 'MontserratSemiBold',
135
134
  },
136
135
  'btn-text--generic': {
137
- color: theme.colors.text,
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: theme.colors.lightPurpleBorder,
160
- borderColor: theme.colors.primary,
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: theme.colors.disabledButtonBackground,
186
- borderColor: theme.colors.disabledButtonBorder,
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: theme.colors.secondaryLight,
198
- borderColor: theme.colors.secondary,
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: theme.colors.disabledButtonBorder,
208
+ color: getGlobalTheme().colors.disabledButtonBorder,
210
209
  },
211
210
  'btn-light-small-label--active': {
212
- color: theme.colors.secondary,
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: theme.colors.lightPurpleBorder,
218
+ backgroundColor: getGlobalTheme().colors.lightPurpleBorder,
220
219
  paddingHorizontal: 8,
221
220
  },
222
221
  'btn-circle__icon': {
223
222
  fontSize: 14,
224
- color: theme.colors.primary,
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: theme.colors.primary,
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 { theme } from '../../../src/config/paper.config';
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: theme.colors.white,
6
+ backgroundColor: getGlobalTheme().colors.white,
8
7
  padding: 16,
9
8
  borderWidth: 0.5,
10
- borderColor: theme.colors.lightPrimary,
11
- shadowColor: theme.colors.transparent,
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: theme.colors.blackText,
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: theme.colors.lightBlack,
23
+ color: getGlobalTheme().colors.lightBlack,
25
24
  textAlign: 'justify',
26
25
  },
27
26
  'card-text--bold': {
28
27
  fontFamily: 'MontserratSemiBold',
29
- color: theme.colors.primary,
28
+ color: getGlobalTheme().colors.primary,
30
29
  },
31
30
  'card-interactive': {
32
31
  flexDirection: 'row',
33
32
  justifyContent: 'space-between',
34
- backgroundColor: theme.colors.white,
35
- padding: 16,
33
+ backgroundColor: getGlobalTheme().colors.white,
34
+ borderColor: getGlobalTheme().colors.lavender,
35
+ paddingHorizontal: 16,
36
36
  borderRadius: 4,
37
- shadowColor: theme.colors.primary,
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: theme.colors.text,
45
+ color: getGlobalTheme().colors.text,
52
46
  fontSize: 14,
53
- fontFamily: 'MontserratSemiBold',
47
+ fontFamily: 'MontserratMedium',
54
48
  },
55
49
  'card-interactive-description': {
56
50
  flexDirection: 'row',
57
51
  },
58
52
  'card-interactive-subtext': {
59
- color: theme.colors.text,
53
+ color: getGlobalTheme().colors.text,
60
54
  fontSize: 14,
61
55
  fontFamily: 'MontserratRegular',
62
56
  },
63
57
  'card-interactive-highlighted': {
64
- color: theme.colors.primary,
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: theme.colors.white,
74
+ backgroundColor: getGlobalTheme().colors.white,
81
75
  borderRadius: 4,
82
- borderColor: theme.colors.transparent,
83
- shadowColor: theme.colors.transparent,
76
+ borderColor: getGlobalTheme().colors.transparent,
77
+ shadowColor: getGlobalTheme().colors.transparent,
84
78
  },
85
79
  'card-list-selected': {
86
- backgroundColor: theme.colors.lightPurpleBorder,
87
- borderColor: theme.colors.purple,
88
- shadowColor: theme.colors.lightPurpleShadow,
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: theme.colors.blackText,
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: theme.colors.white,
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: theme.colors.lightPurpleBorder,
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: theme.colors.cardDsc,
117
+ color: getGlobalTheme().colors.cardDsc,
124
118
  },
125
119
  'card-about__vertical-line': {
126
120
  width: 8,
127
- backgroundColor: theme.colors.mediumPurple,
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 { theme } from '../../../src/config/paper.config';
3
-
2
+ import { getGlobalTheme } from '../../../src/config/paper.config';
4
3
  const styleCheck = StyleSheet.create({
5
4
  checkbox: {
6
5
  borderWidth: 2,
7
- borderColor: theme.colors.primary,
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: theme.colors.lightRed, width: 40, height: 40, alignItems: 'center', justifyContent: 'center' },
32
- 'dialog-icon--error': { backgroundColor: theme.colors.lightRed },
33
- 'dialog-icon--warning': { backgroundColor: theme.colors.lightWarning },
34
- 'dialog-icon--info': { backgroundColor: theme.colors.lightInfo },
35
- 'dialog-icon--success': { backgroundColor: theme.colors.lightSuccess },
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: theme.colors.text,
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: theme.colors.text,
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: theme.colors.text,
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: theme.colors.text,
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 { theme } from '../../../src/config/paper.config';
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: theme.colors.primary,
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: theme.colors.boldBlack,
31
+ color: getGlobalTheme().colors.boldBlack,
33
32
  },
34
33
  'dropdown-color--primary': {
35
- color: theme.colors.primary,
34
+ color: getGlobalTheme().colors.primary,
36
35
  },
37
36
  'dropdown-highlight-color': {
38
- color: theme.colors.lightPrimary,
37
+ color: getGlobalTheme().colors.lightPrimary,
39
38
  }
40
39
  });
41
40
 
@@ -1,5 +1,5 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import { theme } from '../../../src/config/paper.config';
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: theme.colors.boldBlack,
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: theme.colors.lightPrimary, width: 32, height: 32, alignItems: 'center', justifyContent: 'center' },
27
+ 'header-icon-back': { borderRadius: 100, backgroundColor: getGlobalTheme().colors.lightPrimary, width: 32, height: 32, alignItems: 'center', justifyContent: 'center' },
28
28
 
29
29
  });