@fadyshawky/react-native-magic 2.0.3 → 2.0.5
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/package.json +1 -1
- package/template/src/common/ImageResources.g.ts +33 -1
- package/template/src/common/components/Background.tsx +3 -1
- package/template/src/common/components/Container.tsx +1 -1
- package/template/src/common/components/OTPInput.tsx +3 -2
- package/template/src/common/components/PrimaryButton.tsx +23 -23
- package/template/src/common/components/PrimaryTextInput.tsx +189 -199
- package/template/src/common/components/RadioIcon.tsx +4 -4
- package/template/src/common/components/SafeText.tsx +41 -0
- package/template/src/common/components/SearchBar.tsx +19 -17
- package/template/src/common/components/TryAgain.tsx +3 -3
- package/template/src/common/localization/localization.ts +10 -0
- package/template/src/common/localization/translations/commonLocalization.ts +97 -0
- package/template/src/common/localization/translations/homeLocalization.ts +24 -0
- package/template/src/common/localization/translations/loginLocalization.ts +28 -2
- package/template/src/common/localization/translations/mainNavigationLocalization.ts +30 -0
- package/template/src/common/localization/translations/navigationLocalization.ts +48 -0
- package/template/src/common/localization/translations/otpLocalization.ts +28 -0
- package/template/src/common/localization/translations/passwordLocalization.ts +54 -0
- package/template/src/common/localization/translations/posLocalization.ts +196 -0
- package/template/src/common/utils/FeesCaalculation.tsx +37 -0
- package/template/src/common/utils/index.tsx +11 -0
- package/template/src/common/utils/printData.tsx +161 -0
- package/template/src/common/validations/errorValidations.ts +3 -2
- package/template/src/components/PrinterExample.js +226 -0
- package/template/src/core/api/serverHeaders.ts +62 -1
- package/template/src/core/store/Categories/categoryActions.ts +33 -0
- package/template/src/core/store/Categories/categorySlice.ts +75 -0
- package/template/src/core/store/Categories/categoryState.ts +41 -0
- package/template/src/core/store/Providers/providersActions.ts +102 -0
- package/template/src/core/store/Providers/providersSlice.ts +136 -0
- package/template/src/core/store/Providers/providersState.ts +37 -0
- package/template/src/core/store/Services/servicesActions.ts +191 -0
- package/template/src/core/store/Services/servicesSlice.ts +205 -0
- package/template/src/core/store/Services/servicesState.ts +466 -0
- package/template/src/core/store/app/appSlice.ts +13 -5
- package/template/src/core/store/app/appState.ts +10 -2
- package/template/src/core/store/rootReducer.ts +6 -1
- package/template/src/core/store/store.tsx +55 -2
- package/template/src/core/store/user/userActions.ts +164 -26
- package/template/src/core/store/user/userSlice.ts +193 -21
- package/template/src/core/store/user/userState.ts +148 -25
- package/template/src/core/theme/colors.ts +70 -94
- package/template/src/core/theme/commonConsts.ts +1 -1
- package/template/src/core/theme/commonSizes.ts +94 -119
- package/template/src/core/theme/commonStyles.ts +22 -22
- package/template/src/core/theme/fonts.ts +14 -13
- package/template/src/core/theme/themes.ts +75 -386
- package/template/src/core/theme/types.ts +15 -201
- package/template/src/core/utils/stringUtils.ts +114 -0
- package/template/src/modules/SunmiCard.js +212 -0
- package/template/src/modules/SunmiPrepaid.ts +122 -0
- package/template/src/navigation/AuthStack.tsx +8 -0
- package/template/src/navigation/HeaderComponents.tsx +76 -1
- package/template/src/navigation/MainNavigation.tsx +3 -1
- package/template/src/navigation/MainStack.tsx +130 -56
- package/template/src/navigation/TabBar.tsx +111 -59
- package/template/src/navigation/types.ts +24 -0
- package/template/src/screens/Categories/Categories.tsx +141 -0
- package/template/src/screens/Categories/hooks/useCategoriesData.ts +33 -0
- package/template/src/screens/Categories/types.ts +7 -0
- package/template/src/screens/Favorites/Favorites.tsx +130 -0
- package/template/src/screens/ForceChangePassword/ForceChangePasswordScreen.tsx +155 -0
- package/template/src/screens/History/History.tsx +430 -0
- package/template/src/screens/History/hooks/useHistoryData.ts +49 -0
- package/template/src/screens/History/types.ts +7 -0
- package/template/src/screens/InquiredBill/InquiredBill.tsx +443 -0
- package/template/src/screens/InquiredBill/hooks/useInquiredData.ts +91 -0
- package/template/src/screens/Login/Login.tsx +85 -85
- package/template/src/screens/OTP/OTPScreen.tsx +170 -0
- package/template/src/screens/PaymentConfirmation/PaymentConfirmation.tsx +326 -0
- package/template/src/screens/Providers/Providers.tsx +166 -0
- package/template/src/screens/Providers/hooks/useProvidersData.ts +33 -0
- package/template/src/screens/Providers/types.ts +7 -0
- package/template/src/screens/ReceiptScreen/ReceiptScreen.tsx +181 -0
- package/template/src/screens/ReceiptScreen/hooks/useReceiptData.ts +46 -0
- package/template/src/screens/ReceiptScreen/utils/utils.tsx +156 -0
- package/template/src/screens/Services/Services.tsx +144 -0
- package/template/src/screens/Services/hooks/useServicesData.ts +41 -0
- package/template/src/screens/SingleService/Components/FawryInputs.tsx +446 -0
- package/template/src/screens/SingleService/SingleService.tsx +229 -0
- package/template/src/screens/SingleService/hooks/useServiceData.ts +164 -0
- package/template/src/screens/home/Components/PayByCode.tsx +129 -0
- package/template/src/screens/home/HomeScreen.tsx +268 -77
- package/template/src/screens/home/hooks/useHomeData.ts +32 -38
- package/template/src/screens/index.tsx +24 -0
- package/template/src/screens/profile/Profile.tsx +290 -2
- package/template/src/services/SunmiPrinterInternal.js +268 -0
- package/template/src/types/sunmiPrepaid.d.ts +20 -0
- package/template/src/utils/SunmiPrinter.ts +442 -0
- package/template/src/utils/feesCalculator.ts +92 -0
- package/template/src/common/components/Stepper.tsx +0 -153
- package/template/src/common/components/Svg.tsx +0 -25
- package/template/src/common/hooks/useDebounce.ts +0 -17
- package/template/src/common/hooks/usePrevious.ts +0 -11
- package/template/src/common/localization/intlFormatter.ts +0 -37
- package/template/src/common/urls/emailUrl.ts +0 -20
- package/template/src/common/urls/mapUrl.ts +0 -22
- package/template/src/common/utils/listHandlers.ts +0 -30
- package/template/src/common/utils/serializeQueryParams.ts +0 -10
- package/template/src/common/validations/hooks/useDatesError.ts +0 -40
- package/template/src/common/validations/profileValidations.ts +0 -30
- package/template/src/core/theme/shadows.ts +0 -135
- package/template/src/navigation/TopTabBar.tsx +0 -77
- package/template/src/screens/Settings/Settings.tsx +0 -5
- package/template/src/screens/home/components/CarouselSection.tsx +0 -79
- package/template/src/screens/home/components/FeaturedCarousel.tsx +0 -128
- package/template/src/screens/main/Main.tsx +0 -5
- package/template/src/screens/registration/RegistrationScreen.tsx +0 -198
- package/template/src/screens/resetPassword/ForgotPasswordScreen.tsx +0 -129
|
@@ -1,525 +1,214 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import {SearchBar} from 'react-native-screens';
|
|
2
|
+
import {BlackColors, WhiteColors} from './colors';
|
|
3
|
+
import {FontSizes} from './commonSizes';
|
|
4
4
|
import {Fonts} from './fonts';
|
|
5
5
|
import {Theme} from './types';
|
|
6
|
-
import {
|
|
6
|
+
import {TextStyle} from 'react-native';
|
|
7
|
+
|
|
8
|
+
const spacing = {
|
|
9
|
+
xs: 4,
|
|
10
|
+
sm: 8,
|
|
11
|
+
md: 16,
|
|
12
|
+
lg: 24,
|
|
13
|
+
xl: 32,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const borderRadius = {
|
|
17
|
+
xs: 4,
|
|
18
|
+
sm: 8,
|
|
19
|
+
md: 12,
|
|
20
|
+
lg: 16,
|
|
21
|
+
xl: 24,
|
|
22
|
+
};
|
|
7
23
|
|
|
8
24
|
const commonTextStyles = {
|
|
9
|
-
// Heading styles using Almarai Bold
|
|
10
25
|
header1: {
|
|
11
|
-
fontFamily: Fonts.
|
|
12
|
-
fontSize:
|
|
13
|
-
lineHeight: CommonSizes.lineHeight.heading1,
|
|
26
|
+
fontFamily: Fonts.medium,
|
|
27
|
+
fontSize: FontSizes.header1,
|
|
14
28
|
},
|
|
15
29
|
header2: {
|
|
16
|
-
fontFamily: Fonts.
|
|
17
|
-
fontSize:
|
|
18
|
-
lineHeight: CommonSizes.lineHeight.heading2,
|
|
19
|
-
},
|
|
20
|
-
header3: {
|
|
21
|
-
fontFamily: Fonts.bold,
|
|
22
|
-
fontSize: CommonSizes.font.heading3,
|
|
23
|
-
lineHeight: CommonSizes.lineHeight.heading3,
|
|
24
|
-
},
|
|
25
|
-
header4: {
|
|
26
|
-
fontFamily: Fonts.bold,
|
|
27
|
-
fontSize: CommonSizes.font.heading4,
|
|
28
|
-
lineHeight: CommonSizes.lineHeight.heading4,
|
|
29
|
-
},
|
|
30
|
-
header6: {
|
|
31
|
-
fontFamily: Fonts.bold,
|
|
32
|
-
fontSize: CommonSizes.font.heading6,
|
|
33
|
-
lineHeight: CommonSizes.lineHeight.heading6,
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
// Body text styles with different weights
|
|
37
|
-
bodyXLargeLight: {
|
|
38
|
-
fontFamily: Fonts.light,
|
|
39
|
-
fontSize: CommonSizes.font.bodyXLarge,
|
|
40
|
-
lineHeight: CommonSizes.lineHeight.bodyXLarge,
|
|
41
|
-
},
|
|
42
|
-
bodyXLargeRegular: {
|
|
43
|
-
fontFamily: Fonts.regular,
|
|
44
|
-
fontSize: CommonSizes.font.bodyXLarge,
|
|
45
|
-
lineHeight: CommonSizes.lineHeight.bodyXLarge,
|
|
46
|
-
},
|
|
47
|
-
bodyXLargeBold: {
|
|
48
|
-
fontFamily: Fonts.bold,
|
|
49
|
-
fontSize: CommonSizes.font.bodyXLarge,
|
|
50
|
-
lineHeight: CommonSizes.lineHeight.bodyXLarge,
|
|
51
|
-
},
|
|
52
|
-
bodyXLargeExtraBold: {
|
|
53
|
-
fontFamily: Fonts.extraBold,
|
|
54
|
-
fontSize: CommonSizes.font.bodyXLarge,
|
|
55
|
-
lineHeight: CommonSizes.lineHeight.bodyXLarge,
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
bodyLargeLight: {
|
|
59
|
-
fontFamily: Fonts.light,
|
|
60
|
-
fontSize: CommonSizes.font.bodyLarge,
|
|
61
|
-
lineHeight: CommonSizes.lineHeight.bodyLarge,
|
|
62
|
-
},
|
|
63
|
-
bodyLargeRegular: {
|
|
64
|
-
fontFamily: Fonts.regular,
|
|
65
|
-
fontSize: CommonSizes.font.bodyLarge,
|
|
66
|
-
lineHeight: CommonSizes.lineHeight.bodyLarge,
|
|
67
|
-
},
|
|
68
|
-
bodyLargeBold: {
|
|
69
|
-
fontFamily: Fonts.bold,
|
|
70
|
-
fontSize: CommonSizes.font.bodyLarge,
|
|
71
|
-
lineHeight: CommonSizes.lineHeight.bodyLarge,
|
|
72
|
-
},
|
|
73
|
-
bodyLargeExtraBold: {
|
|
74
|
-
fontFamily: Fonts.extraBold,
|
|
75
|
-
fontSize: CommonSizes.font.bodyLarge,
|
|
76
|
-
lineHeight: CommonSizes.lineHeight.bodyLarge,
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
bodyMediumLight: {
|
|
80
|
-
fontFamily: Fonts.light,
|
|
81
|
-
fontSize: CommonSizes.font.bodyMedium,
|
|
82
|
-
lineHeight: CommonSizes.lineHeight.bodyMedium,
|
|
83
|
-
},
|
|
84
|
-
bodyMediumRegular: {
|
|
85
|
-
fontFamily: Fonts.regular,
|
|
86
|
-
fontSize: CommonSizes.font.bodyMedium,
|
|
87
|
-
lineHeight: CommonSizes.lineHeight.bodyMedium,
|
|
88
|
-
},
|
|
89
|
-
bodyMediumBold: {
|
|
90
|
-
fontFamily: Fonts.bold,
|
|
91
|
-
fontSize: CommonSizes.font.bodyMedium,
|
|
92
|
-
lineHeight: CommonSizes.lineHeight.bodyMedium,
|
|
30
|
+
fontFamily: Fonts.normal,
|
|
31
|
+
fontSize: FontSizes.header2,
|
|
93
32
|
},
|
|
94
|
-
bodyMediumExtraBold: {
|
|
95
|
-
fontFamily: Fonts.extraBold,
|
|
96
|
-
fontSize: CommonSizes.font.bodyMedium,
|
|
97
|
-
lineHeight: CommonSizes.lineHeight.bodyMedium,
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
bodySmallLight: {
|
|
101
|
-
fontFamily: Fonts.light,
|
|
102
|
-
fontSize: CommonSizes.font.bodySmall,
|
|
103
|
-
lineHeight: CommonSizes.lineHeight.bodySmall,
|
|
104
|
-
},
|
|
105
|
-
bodySmallRegular: {
|
|
106
|
-
fontFamily: Fonts.regular,
|
|
107
|
-
fontSize: CommonSizes.font.bodySmall,
|
|
108
|
-
lineHeight: CommonSizes.lineHeight.bodySmall,
|
|
109
|
-
},
|
|
110
|
-
bodySmallBold: {
|
|
111
|
-
fontFamily: Fonts.bold,
|
|
112
|
-
fontSize: CommonSizes.font.bodySmall,
|
|
113
|
-
lineHeight: CommonSizes.lineHeight.bodySmall,
|
|
114
|
-
},
|
|
115
|
-
bodySmallExtraBold: {
|
|
116
|
-
fontFamily: Fonts.extraBold,
|
|
117
|
-
fontSize: CommonSizes.font.bodySmall,
|
|
118
|
-
lineHeight: CommonSizes.lineHeight.bodySmall,
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
// Legacy styles for backward compatibility
|
|
122
33
|
balanceTitle: {
|
|
123
|
-
fontFamily: Fonts.
|
|
124
|
-
fontSize:
|
|
34
|
+
fontFamily: Fonts.semiBold,
|
|
35
|
+
fontSize: FontSizes.body2,
|
|
125
36
|
textAlign: 'center',
|
|
126
37
|
},
|
|
127
38
|
balanceAmount: {
|
|
128
|
-
fontFamily: Fonts.
|
|
129
|
-
fontSize:
|
|
39
|
+
fontFamily: Fonts.normal,
|
|
40
|
+
fontSize: FontSizes.header2,
|
|
130
41
|
textAlign: 'center',
|
|
131
42
|
},
|
|
132
43
|
balanceLabel: {
|
|
133
44
|
fontFamily: Fonts.light,
|
|
134
|
-
fontSize:
|
|
45
|
+
fontSize: FontSizes.balanceLabel,
|
|
135
46
|
},
|
|
136
47
|
body1: {
|
|
137
48
|
fontFamily: Fonts.light,
|
|
138
|
-
fontSize:
|
|
49
|
+
fontSize: FontSizes.body1,
|
|
139
50
|
},
|
|
140
51
|
body2: {
|
|
141
52
|
fontFamily: Fonts.regular,
|
|
142
|
-
fontSize:
|
|
53
|
+
fontSize: FontSizes.body2,
|
|
143
54
|
},
|
|
144
55
|
button: {
|
|
145
56
|
fontFamily: Fonts.regular,
|
|
146
|
-
fontSize:
|
|
57
|
+
fontSize: FontSizes.button,
|
|
147
58
|
},
|
|
148
59
|
cards: {
|
|
149
|
-
fontFamily: Fonts.
|
|
150
|
-
fontSize:
|
|
60
|
+
fontFamily: Fonts.semiBold,
|
|
61
|
+
fontSize: FontSizes.card,
|
|
151
62
|
},
|
|
152
63
|
SearchBar: {
|
|
153
64
|
fontFamily: Fonts.light,
|
|
154
|
-
fontSize:
|
|
65
|
+
fontSize: FontSizes.searchBar,
|
|
155
66
|
},
|
|
156
67
|
label: {
|
|
157
68
|
fontFamily: Fonts.light,
|
|
158
|
-
fontSize:
|
|
69
|
+
fontSize: FontSizes.label,
|
|
159
70
|
},
|
|
160
71
|
hyperlink: {
|
|
161
72
|
fontFamily: Fonts.light,
|
|
162
|
-
fontSize:
|
|
73
|
+
fontSize: FontSizes.hyperlink,
|
|
163
74
|
textDecorationStyle: 'solid',
|
|
164
75
|
textDecorationLine: 'underline',
|
|
165
|
-
textDecorationColor:
|
|
76
|
+
textDecorationColor: WhiteColors.indigoBlue,
|
|
166
77
|
} as TextStyle,
|
|
167
78
|
navBar: {
|
|
168
|
-
fontFamily: Fonts.
|
|
169
|
-
fontSize:
|
|
79
|
+
fontFamily: Fonts.normal,
|
|
80
|
+
fontSize: FontSizes.navBar,
|
|
170
81
|
},
|
|
171
82
|
};
|
|
172
83
|
|
|
173
|
-
// Light theme colors
|
|
174
|
-
const lightThemeColors = {
|
|
175
|
-
indigoBlue: PrimaryColors.PlatinateBlue_400,
|
|
176
|
-
mutedLavender: NaturalColors.naturalColor_100,
|
|
177
|
-
tintColor: PrimaryColors.PlatinateBlue_400,
|
|
178
|
-
mutedLavender30: NaturalColors.naturalColor_0,
|
|
179
|
-
balanceBackground: NaturalColors.grayScale_0,
|
|
180
|
-
white: NaturalColors.grayScale_0,
|
|
181
|
-
backgroundOpacity: 'rgba(250, 250, 250, 0.8)',
|
|
182
|
-
black: PrimaryColors.cetaceanBlue_700,
|
|
183
|
-
background: NaturalColors.grayScale_0,
|
|
184
|
-
surface: NaturalColors.grayScale_0,
|
|
185
|
-
card: NaturalColors.grayScale_0,
|
|
186
|
-
shadow: PrimaryColors.cetaceanBlue_700,
|
|
187
|
-
red: AlertColors.error_400,
|
|
188
|
-
strokeDeactive: NaturalColors.grayScale_50,
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
// Dark theme colors
|
|
192
|
-
const darkThemeColors = {
|
|
193
|
-
indigoBlue: PrimaryColors.PlatinateBlue_200,
|
|
194
|
-
mutedLavender: NaturalColors.grayScale_0,
|
|
195
|
-
tintColor: PrimaryColors.PlatinateBlue_200,
|
|
196
|
-
mutedLavender30: NaturalColors.naturalColor_700,
|
|
197
|
-
balanceBackground: NaturalColors.grayScale_700,
|
|
198
|
-
white: NaturalColors.grayScale_0,
|
|
199
|
-
backgroundOpacity: 'rgba(0, 5, 17, 0.8)',
|
|
200
|
-
black: PrimaryColors.cetaceanBlue_700,
|
|
201
|
-
background: NaturalColors.grayScale_700,
|
|
202
|
-
surface: NaturalColors.grayScale_600,
|
|
203
|
-
card: NaturalColors.grayScale_600,
|
|
204
|
-
shadow: PrimaryColors.cetaceanBlue_700,
|
|
205
|
-
red: AlertColors.error_300,
|
|
206
|
-
strokeDeactive: NaturalColors.grayScale_400,
|
|
207
|
-
};
|
|
208
|
-
|
|
209
84
|
export const lightTheme: Theme = {
|
|
210
85
|
mode: 'light',
|
|
211
86
|
colors: {
|
|
212
|
-
...
|
|
213
|
-
...NaturalColors,
|
|
214
|
-
...AlertColors,
|
|
87
|
+
...WhiteColors,
|
|
215
88
|
},
|
|
216
89
|
text: {
|
|
217
90
|
...commonTextStyles,
|
|
218
|
-
// Apply light theme colors to all text styles
|
|
219
91
|
header1: {
|
|
220
92
|
...commonTextStyles.header1,
|
|
221
|
-
color:
|
|
222
|
-
},
|
|
223
|
-
header2: {
|
|
224
|
-
...commonTextStyles.header2,
|
|
225
|
-
color: lightThemeColors.black,
|
|
226
|
-
},
|
|
227
|
-
header3: {
|
|
228
|
-
...commonTextStyles.header3,
|
|
229
|
-
color: lightThemeColors.black,
|
|
230
|
-
},
|
|
231
|
-
header4: {
|
|
232
|
-
...commonTextStyles.header4,
|
|
233
|
-
color: lightThemeColors.black,
|
|
234
|
-
},
|
|
235
|
-
header6: {
|
|
236
|
-
...commonTextStyles.header6,
|
|
237
|
-
color: lightThemeColors.black,
|
|
93
|
+
color: WhiteColors.black,
|
|
238
94
|
},
|
|
239
|
-
|
|
240
|
-
// Body text styles with light theme colors
|
|
241
|
-
bodyXLargeLight: {
|
|
242
|
-
...commonTextStyles.bodyXLargeLight,
|
|
243
|
-
color: lightThemeColors.black,
|
|
244
|
-
},
|
|
245
|
-
bodyXLargeRegular: {
|
|
246
|
-
...commonTextStyles.bodyXLargeRegular,
|
|
247
|
-
color: lightThemeColors.black,
|
|
248
|
-
},
|
|
249
|
-
bodyXLargeBold: {
|
|
250
|
-
...commonTextStyles.bodyXLargeBold,
|
|
251
|
-
color: lightThemeColors.black,
|
|
252
|
-
},
|
|
253
|
-
bodyXLargeExtraBold: {
|
|
254
|
-
...commonTextStyles.bodyXLargeExtraBold,
|
|
255
|
-
color: lightThemeColors.black,
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
bodyLargeLight: {
|
|
259
|
-
...commonTextStyles.bodyLargeLight,
|
|
260
|
-
color: lightThemeColors.black,
|
|
261
|
-
},
|
|
262
|
-
bodyLargeRegular: {
|
|
263
|
-
...commonTextStyles.bodyLargeRegular,
|
|
264
|
-
color: lightThemeColors.black,
|
|
265
|
-
},
|
|
266
|
-
bodyLargeBold: {
|
|
267
|
-
...commonTextStyles.bodyLargeBold,
|
|
268
|
-
color: lightThemeColors.black,
|
|
269
|
-
},
|
|
270
|
-
bodyLargeExtraBold: {
|
|
271
|
-
...commonTextStyles.bodyLargeExtraBold,
|
|
272
|
-
color: lightThemeColors.black,
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
bodyMediumLight: {
|
|
276
|
-
...commonTextStyles.bodyMediumLight,
|
|
277
|
-
color: lightThemeColors.black,
|
|
278
|
-
},
|
|
279
|
-
bodyMediumRegular: {
|
|
280
|
-
...commonTextStyles.bodyMediumRegular,
|
|
281
|
-
color: lightThemeColors.black,
|
|
282
|
-
},
|
|
283
|
-
bodyMediumBold: {
|
|
284
|
-
...commonTextStyles.bodyMediumBold,
|
|
285
|
-
color: lightThemeColors.black,
|
|
286
|
-
},
|
|
287
|
-
bodyMediumExtraBold: {
|
|
288
|
-
...commonTextStyles.bodyMediumExtraBold,
|
|
289
|
-
color: lightThemeColors.black,
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
bodySmallLight: {
|
|
293
|
-
...commonTextStyles.bodySmallLight,
|
|
294
|
-
color: lightThemeColors.black,
|
|
295
|
-
},
|
|
296
|
-
bodySmallRegular: {
|
|
297
|
-
...commonTextStyles.bodySmallRegular,
|
|
298
|
-
color: lightThemeColors.black,
|
|
299
|
-
},
|
|
300
|
-
bodySmallBold: {
|
|
301
|
-
...commonTextStyles.bodySmallBold,
|
|
302
|
-
color: lightThemeColors.black,
|
|
303
|
-
},
|
|
304
|
-
bodySmallExtraBold: {
|
|
305
|
-
...commonTextStyles.bodySmallExtraBold,
|
|
306
|
-
color: lightThemeColors.black,
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
// Legacy styles
|
|
310
95
|
balanceTitle: {
|
|
311
96
|
...commonTextStyles.balanceTitle,
|
|
312
|
-
color:
|
|
97
|
+
color: WhiteColors.indigoBlue,
|
|
313
98
|
textAlign: 'center',
|
|
314
99
|
},
|
|
315
100
|
balanceAmount: {
|
|
316
101
|
...commonTextStyles.balanceAmount,
|
|
317
|
-
color:
|
|
102
|
+
color: WhiteColors.indigoBlue,
|
|
318
103
|
textAlign: 'center',
|
|
319
104
|
},
|
|
320
105
|
balanceLabel: {
|
|
321
106
|
...commonTextStyles.balanceLabel,
|
|
322
|
-
color:
|
|
107
|
+
color: WhiteColors.indigoBlue,
|
|
108
|
+
},
|
|
109
|
+
header2: {
|
|
110
|
+
...commonTextStyles.header2,
|
|
111
|
+
color: WhiteColors.black,
|
|
323
112
|
},
|
|
324
113
|
body1: {
|
|
325
114
|
...commonTextStyles.body1,
|
|
326
|
-
color:
|
|
115
|
+
color: WhiteColors.black,
|
|
327
116
|
},
|
|
328
117
|
body2: {
|
|
329
118
|
...commonTextStyles.body2,
|
|
330
|
-
color:
|
|
119
|
+
color: WhiteColors.black,
|
|
331
120
|
},
|
|
332
121
|
button: {
|
|
333
122
|
...commonTextStyles.button,
|
|
334
|
-
color:
|
|
123
|
+
color: WhiteColors.white,
|
|
335
124
|
},
|
|
336
125
|
cards: {
|
|
337
126
|
...commonTextStyles.cards,
|
|
338
|
-
color:
|
|
127
|
+
color: WhiteColors.black,
|
|
339
128
|
},
|
|
340
129
|
SearchBar: {
|
|
341
130
|
...commonTextStyles.SearchBar,
|
|
342
|
-
color:
|
|
131
|
+
color: WhiteColors.black,
|
|
343
132
|
},
|
|
344
133
|
label: {
|
|
345
134
|
...commonTextStyles.label,
|
|
346
|
-
color:
|
|
135
|
+
color: WhiteColors.black,
|
|
347
136
|
},
|
|
348
137
|
hyperlink: {
|
|
349
138
|
...commonTextStyles.hyperlink,
|
|
350
|
-
color:
|
|
139
|
+
color: WhiteColors.indigoBlue,
|
|
351
140
|
},
|
|
352
141
|
navBar: {
|
|
353
142
|
...commonTextStyles.navBar,
|
|
354
|
-
color:
|
|
143
|
+
color: WhiteColors.white,
|
|
355
144
|
},
|
|
356
145
|
},
|
|
357
|
-
spacing
|
|
358
|
-
borderRadius
|
|
359
|
-
borderWidth: CommonSizes.borderWidth,
|
|
360
|
-
shadows: {
|
|
361
|
-
elevation1: Shadows[1],
|
|
362
|
-
elevation2: Shadows[2],
|
|
363
|
-
elevation3: Shadows[3],
|
|
364
|
-
elevation4: Shadows[4],
|
|
365
|
-
},
|
|
146
|
+
spacing,
|
|
147
|
+
borderRadius,
|
|
366
148
|
};
|
|
367
149
|
|
|
368
150
|
export const darkTheme: Theme = {
|
|
369
151
|
mode: 'dark',
|
|
370
152
|
colors: {
|
|
371
|
-
...
|
|
372
|
-
...NaturalColors,
|
|
373
|
-
...AlertColors,
|
|
153
|
+
...BlackColors,
|
|
374
154
|
},
|
|
375
155
|
text: {
|
|
376
156
|
...commonTextStyles,
|
|
377
|
-
// Apply dark theme colors to all text styles
|
|
378
157
|
header1: {
|
|
379
158
|
...commonTextStyles.header1,
|
|
380
|
-
color:
|
|
159
|
+
color: BlackColors.mutedLavender,
|
|
381
160
|
},
|
|
382
161
|
header2: {
|
|
383
162
|
...commonTextStyles.header2,
|
|
384
|
-
color:
|
|
163
|
+
color: BlackColors.mutedLavender,
|
|
385
164
|
},
|
|
386
|
-
header3: {
|
|
387
|
-
...commonTextStyles.header3,
|
|
388
|
-
color: darkThemeColors.mutedLavender,
|
|
389
|
-
},
|
|
390
|
-
header4: {
|
|
391
|
-
...commonTextStyles.header4,
|
|
392
|
-
color: darkThemeColors.mutedLavender,
|
|
393
|
-
},
|
|
394
|
-
header6: {
|
|
395
|
-
...commonTextStyles.header6,
|
|
396
|
-
color: darkThemeColors.mutedLavender,
|
|
397
|
-
},
|
|
398
|
-
|
|
399
|
-
// Body text styles with dark theme colors
|
|
400
|
-
bodyXLargeLight: {
|
|
401
|
-
...commonTextStyles.bodyXLargeLight,
|
|
402
|
-
color: darkThemeColors.mutedLavender,
|
|
403
|
-
},
|
|
404
|
-
bodyXLargeRegular: {
|
|
405
|
-
...commonTextStyles.bodyXLargeRegular,
|
|
406
|
-
color: darkThemeColors.mutedLavender,
|
|
407
|
-
},
|
|
408
|
-
bodyXLargeBold: {
|
|
409
|
-
...commonTextStyles.bodyXLargeBold,
|
|
410
|
-
color: darkThemeColors.mutedLavender,
|
|
411
|
-
},
|
|
412
|
-
bodyXLargeExtraBold: {
|
|
413
|
-
...commonTextStyles.bodyXLargeExtraBold,
|
|
414
|
-
color: darkThemeColors.mutedLavender,
|
|
415
|
-
},
|
|
416
|
-
|
|
417
|
-
bodyLargeLight: {
|
|
418
|
-
...commonTextStyles.bodyLargeLight,
|
|
419
|
-
color: darkThemeColors.mutedLavender,
|
|
420
|
-
},
|
|
421
|
-
bodyLargeRegular: {
|
|
422
|
-
...commonTextStyles.bodyLargeRegular,
|
|
423
|
-
color: darkThemeColors.mutedLavender,
|
|
424
|
-
},
|
|
425
|
-
bodyLargeBold: {
|
|
426
|
-
...commonTextStyles.bodyLargeBold,
|
|
427
|
-
color: darkThemeColors.mutedLavender,
|
|
428
|
-
},
|
|
429
|
-
bodyLargeExtraBold: {
|
|
430
|
-
...commonTextStyles.bodyLargeExtraBold,
|
|
431
|
-
color: darkThemeColors.mutedLavender,
|
|
432
|
-
},
|
|
433
|
-
|
|
434
|
-
bodyMediumLight: {
|
|
435
|
-
...commonTextStyles.bodyMediumLight,
|
|
436
|
-
color: darkThemeColors.mutedLavender,
|
|
437
|
-
},
|
|
438
|
-
bodyMediumRegular: {
|
|
439
|
-
...commonTextStyles.bodyMediumRegular,
|
|
440
|
-
color: darkThemeColors.mutedLavender,
|
|
441
|
-
},
|
|
442
|
-
bodyMediumBold: {
|
|
443
|
-
...commonTextStyles.bodyMediumBold,
|
|
444
|
-
color: darkThemeColors.mutedLavender,
|
|
445
|
-
},
|
|
446
|
-
bodyMediumExtraBold: {
|
|
447
|
-
...commonTextStyles.bodyMediumExtraBold,
|
|
448
|
-
color: darkThemeColors.mutedLavender,
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
bodySmallLight: {
|
|
452
|
-
...commonTextStyles.bodySmallLight,
|
|
453
|
-
color: darkThemeColors.mutedLavender,
|
|
454
|
-
},
|
|
455
|
-
bodySmallRegular: {
|
|
456
|
-
...commonTextStyles.bodySmallRegular,
|
|
457
|
-
color: darkThemeColors.mutedLavender,
|
|
458
|
-
},
|
|
459
|
-
bodySmallBold: {
|
|
460
|
-
...commonTextStyles.bodySmallBold,
|
|
461
|
-
color: darkThemeColors.mutedLavender,
|
|
462
|
-
},
|
|
463
|
-
bodySmallExtraBold: {
|
|
464
|
-
...commonTextStyles.bodySmallExtraBold,
|
|
465
|
-
color: darkThemeColors.mutedLavender,
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
// Legacy styles
|
|
469
165
|
balanceTitle: {
|
|
470
166
|
...commonTextStyles.balanceTitle,
|
|
471
|
-
color:
|
|
167
|
+
color: BlackColors.mutedLavender,
|
|
472
168
|
textAlign: 'center',
|
|
473
169
|
},
|
|
474
170
|
balanceAmount: {
|
|
475
171
|
...commonTextStyles.balanceAmount,
|
|
476
|
-
color:
|
|
172
|
+
color: BlackColors.mutedLavender,
|
|
477
173
|
textAlign: 'center',
|
|
478
174
|
},
|
|
479
175
|
balanceLabel: {
|
|
480
176
|
...commonTextStyles.balanceLabel,
|
|
481
|
-
color:
|
|
177
|
+
color: BlackColors.mutedLavender,
|
|
482
178
|
},
|
|
483
179
|
body1: {
|
|
484
180
|
...commonTextStyles.body1,
|
|
485
|
-
color:
|
|
181
|
+
color: BlackColors.mutedLavender,
|
|
486
182
|
},
|
|
487
183
|
body2: {
|
|
488
184
|
...commonTextStyles.body2,
|
|
489
|
-
color:
|
|
185
|
+
color: BlackColors.mutedLavender,
|
|
490
186
|
},
|
|
491
187
|
button: {
|
|
492
188
|
...commonTextStyles.button,
|
|
493
|
-
color:
|
|
189
|
+
color: BlackColors.white,
|
|
494
190
|
},
|
|
495
191
|
cards: {
|
|
496
192
|
...commonTextStyles.cards,
|
|
497
|
-
color:
|
|
193
|
+
color: BlackColors.white,
|
|
498
194
|
},
|
|
499
195
|
SearchBar: {
|
|
500
196
|
...commonTextStyles.SearchBar,
|
|
501
|
-
color:
|
|
197
|
+
color: BlackColors.mutedLavender,
|
|
502
198
|
},
|
|
503
199
|
label: {
|
|
504
200
|
...commonTextStyles.label,
|
|
505
|
-
color:
|
|
201
|
+
color: BlackColors.black,
|
|
506
202
|
},
|
|
507
203
|
hyperlink: {
|
|
508
204
|
...commonTextStyles.hyperlink,
|
|
509
|
-
color:
|
|
205
|
+
color: BlackColors.mutedLavender,
|
|
510
206
|
},
|
|
511
207
|
navBar: {
|
|
512
208
|
...commonTextStyles.navBar,
|
|
513
|
-
color:
|
|
209
|
+
color: BlackColors.white,
|
|
514
210
|
},
|
|
515
211
|
},
|
|
516
|
-
spacing
|
|
517
|
-
borderRadius
|
|
518
|
-
borderWidth: CommonSizes.borderWidth,
|
|
519
|
-
shadows: {
|
|
520
|
-
elevation1: Shadows[1],
|
|
521
|
-
elevation2: Shadows[2],
|
|
522
|
-
elevation3: Shadows[3],
|
|
523
|
-
elevation4: Shadows[4],
|
|
524
|
-
},
|
|
212
|
+
spacing,
|
|
213
|
+
borderRadius,
|
|
525
214
|
};
|