@fadyshawky/react-native-magic 2.0.1 → 2.0.3
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/components/Cards.tsx +5 -5
- package/template/src/common/components/EmptyView.tsx +1 -1
- package/template/src/common/components/ImageCropPickerButton.tsx +1 -1
- package/template/src/common/components/OTPInput.tsx +5 -5
- package/template/src/common/components/PhotoTakingButton.tsx +2 -2
- package/template/src/common/components/PrimaryButton.tsx +19 -19
- package/template/src/common/components/PrimaryTextInput.tsx +195 -129
- package/template/src/common/components/RadioButton.tsx +2 -2
- package/template/src/common/components/RadioIcon.tsx +4 -4
- package/template/src/common/components/SearchBar.tsx +13 -13
- package/template/src/common/components/Separator.tsx +1 -1
- package/template/src/common/components/Stepper.tsx +153 -0
- package/template/src/common/components/TryAgain.tsx +3 -3
- package/template/src/common/helpers/defaultKeyIdExtractor.ts +1 -1
- package/template/src/common/helpers/shareHelpers.ts +47 -0
- package/template/src/common/helpers/stringsHelpers.ts +0 -4
- package/template/src/core/api/errorHandler.ts +1 -2
- package/template/src/core/store/app/appSlice.ts +5 -13
- package/template/src/core/store/app/appState.ts +2 -10
- package/template/src/core/theme/colors.ts +94 -72
- package/template/src/core/theme/commonSizes.ts +110 -43
- package/template/src/core/theme/commonStyles.ts +22 -22
- package/template/src/core/theme/fonts.ts +13 -14
- package/template/src/core/theme/shadows.ts +135 -0
- package/template/src/core/theme/themes.ts +386 -75
- package/template/src/core/theme/types.ts +145 -18
- package/template/src/navigation/HeaderComponents.tsx +1 -1
- package/template/src/navigation/MainNavigation.tsx +1 -2
- package/template/src/navigation/MainStack.tsx +1 -1
- package/template/src/navigation/TabBar.tsx +3 -3
- package/template/src/navigation/TopTabBar.tsx +5 -3
- package/template/src/screens/Login/Login.tsx +0 -14
- package/template/src/screens/home/HomeScreen.tsx +14 -14
- package/template/src/screens/home/components/CarouselSection.tsx +9 -9
- package/template/src/screens/home/components/FeaturedCarousel.tsx +10 -10
- package/template/src/screens/registration/RegistrationScreen.tsx +6 -6
- package/template/src/screens/resetPassword/ForgotPasswordScreen.tsx +6 -6
- package/template/src/types/react-native-config.d.ts +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, {FC, memo, useMemo} from 'react';
|
|
2
2
|
import {StyleSheet, View, ViewStyle} from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import {PrimaryColors} from '../../core/theme/colors';
|
|
4
4
|
|
|
5
5
|
interface IProps {
|
|
6
6
|
isSelected: boolean;
|
|
@@ -41,14 +41,14 @@ const commonInnerCircle: ViewStyle = {
|
|
|
41
41
|
const styles = StyleSheet.create({
|
|
42
42
|
outerCircle: {
|
|
43
43
|
...commonOuterCircle,
|
|
44
|
-
borderColor:
|
|
44
|
+
borderColor: PrimaryColors.PlatinateBlue_700,
|
|
45
45
|
} as ViewStyle,
|
|
46
46
|
outerCircleSelected: {
|
|
47
47
|
...commonOuterCircle,
|
|
48
|
-
borderColor:
|
|
48
|
+
borderColor: PrimaryColors.PlatinateBlue_700,
|
|
49
49
|
} as ViewStyle,
|
|
50
50
|
innerCircle: {
|
|
51
51
|
...commonInnerCircle,
|
|
52
|
-
backgroundColor:
|
|
52
|
+
backgroundColor: PrimaryColors.PlatinateBlue_700,
|
|
53
53
|
} as ViewStyle,
|
|
54
54
|
});
|
|
@@ -59,8 +59,8 @@ export const SearchBar: React.FC<SearchBarProps> = ({
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
const containerStyle: ViewStyle = {
|
|
62
|
-
backgroundColor: `${theme.colors.
|
|
63
|
-
borderColor: theme.colors.
|
|
62
|
+
backgroundColor: `${theme.colors.grayScale_0}20`,
|
|
63
|
+
borderColor: theme.colors.grayScale_25,
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// Set keyboard language specific properties
|
|
@@ -111,14 +111,14 @@ export const SearchBar: React.FC<SearchBarProps> = ({
|
|
|
111
111
|
containerStyle,
|
|
112
112
|
style as ViewStyle,
|
|
113
113
|
{
|
|
114
|
-
backgroundColor: theme.colors.
|
|
114
|
+
backgroundColor: theme.colors.grayScale_0,
|
|
115
115
|
...createThemedStyles(theme).dropShadow,
|
|
116
116
|
},
|
|
117
117
|
]}>
|
|
118
118
|
<Icon
|
|
119
119
|
name="search"
|
|
120
120
|
size={20}
|
|
121
|
-
color={theme.colors.
|
|
121
|
+
color={theme.colors.grayScale_50}
|
|
122
122
|
style={styles.searchIcon}
|
|
123
123
|
/>
|
|
124
124
|
<TextInput
|
|
@@ -133,7 +133,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({
|
|
|
133
133
|
inputStyle as TextStyle,
|
|
134
134
|
]}
|
|
135
135
|
placeholder={placeholder || t('search', 'common')}
|
|
136
|
-
placeholderTextColor={`${theme.colors.
|
|
136
|
+
placeholderTextColor={`${theme.colors.grayScale_50}80`}
|
|
137
137
|
value={value}
|
|
138
138
|
onChangeText={onChangeText}
|
|
139
139
|
autoCapitalize="none"
|
|
@@ -146,7 +146,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({
|
|
|
146
146
|
<Icon
|
|
147
147
|
name="close-circle"
|
|
148
148
|
size={20}
|
|
149
|
-
color={theme.colors.
|
|
149
|
+
color={theme.colors.grayScale_50}
|
|
150
150
|
/>
|
|
151
151
|
</TouchableOpacity>
|
|
152
152
|
)}
|
|
@@ -161,19 +161,19 @@ const styles = StyleSheet.create({
|
|
|
161
161
|
height: 48,
|
|
162
162
|
borderRadius: 16,
|
|
163
163
|
borderWidth: 1,
|
|
164
|
-
paddingHorizontal: CommonSizes.spacing.
|
|
165
|
-
marginHorizontal: CommonSizes.spacing.
|
|
166
|
-
marginBottom: CommonSizes.spacing.
|
|
164
|
+
paddingHorizontal: CommonSizes.spacing.medium,
|
|
165
|
+
marginHorizontal: CommonSizes.spacing.large,
|
|
166
|
+
marginBottom: CommonSizes.spacing.large,
|
|
167
167
|
},
|
|
168
168
|
input: {
|
|
169
169
|
flex: 1,
|
|
170
|
-
paddingVertical: CommonSizes.spacing.
|
|
171
|
-
paddingHorizontal: CommonSizes.spacing.
|
|
170
|
+
paddingVertical: CommonSizes.spacing.medium,
|
|
171
|
+
paddingHorizontal: CommonSizes.spacing.small,
|
|
172
172
|
},
|
|
173
173
|
searchIcon: {
|
|
174
|
-
marginHorizontal: CommonSizes.spacing.
|
|
174
|
+
marginHorizontal: CommonSizes.spacing.small,
|
|
175
175
|
},
|
|
176
176
|
clearButton: {
|
|
177
|
-
padding: CommonSizes.spacing.
|
|
177
|
+
padding: CommonSizes.spacing.small,
|
|
178
178
|
},
|
|
179
179
|
});
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {View, Text, StyleSheet, Image, Pressable} from 'react-native';
|
|
3
|
+
import {useTheme} from '../../core/theme/ThemeProvider';
|
|
4
|
+
import {Theme} from '../../core/theme/types';
|
|
5
|
+
import {PrimaryColors} from '../../core/theme/colors';
|
|
6
|
+
import {ImageResources} from '../ImageResources.g';
|
|
7
|
+
|
|
8
|
+
interface Step {
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface StepperProps {
|
|
13
|
+
steps: Step[];
|
|
14
|
+
currentStep: number;
|
|
15
|
+
orientation?: 'horizontal' | 'vertical';
|
|
16
|
+
onStepPress?: (index: number) => void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const STEP_SIZE = 64;
|
|
20
|
+
|
|
21
|
+
const Stepper: React.FC<StepperProps> = ({
|
|
22
|
+
steps,
|
|
23
|
+
currentStep,
|
|
24
|
+
orientation = 'horizontal',
|
|
25
|
+
onStepPress,
|
|
26
|
+
}) => {
|
|
27
|
+
const {theme} = useTheme();
|
|
28
|
+
const isDarkMode = theme.mode === 'dark';
|
|
29
|
+
const styles = createStyles(theme, orientation, isDarkMode);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<View style={styles.container}>
|
|
33
|
+
{steps.map((step, index) => {
|
|
34
|
+
const isCompleted = index < currentStep;
|
|
35
|
+
const isActive = index === currentStep;
|
|
36
|
+
const isLastStep = index === steps.length - 1;
|
|
37
|
+
|
|
38
|
+
const connectorStyle = [
|
|
39
|
+
styles.connector,
|
|
40
|
+
(isCompleted || isActive) && styles.connectorCompleted,
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<React.Fragment key={index}>
|
|
45
|
+
<Pressable
|
|
46
|
+
style={styles.stepContainer}
|
|
47
|
+
onPress={() => onStepPress?.(index)}>
|
|
48
|
+
<View
|
|
49
|
+
style={[
|
|
50
|
+
styles.circle,
|
|
51
|
+
isCompleted && styles.circleCompleted,
|
|
52
|
+
isActive && styles.circleActive,
|
|
53
|
+
]}>
|
|
54
|
+
{isCompleted ? (
|
|
55
|
+
<Image source={0} style={styles.icon} />
|
|
56
|
+
) : (
|
|
57
|
+
<Text style={styles.stepNumber}>{index + 1}</Text>
|
|
58
|
+
)}
|
|
59
|
+
</View>
|
|
60
|
+
<Text
|
|
61
|
+
style={[
|
|
62
|
+
styles.title,
|
|
63
|
+
(isCompleted || isActive) && styles.titleActive,
|
|
64
|
+
]}>
|
|
65
|
+
{step.title}
|
|
66
|
+
</Text>
|
|
67
|
+
</Pressable>
|
|
68
|
+
{!isLastStep && <View style={connectorStyle} />}
|
|
69
|
+
</React.Fragment>
|
|
70
|
+
);
|
|
71
|
+
})}
|
|
72
|
+
</View>
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const createStyles = (
|
|
77
|
+
theme: Theme,
|
|
78
|
+
orientation: 'horizontal' | 'vertical',
|
|
79
|
+
isDarkMode: boolean,
|
|
80
|
+
) =>
|
|
81
|
+
StyleSheet.create({
|
|
82
|
+
container: {
|
|
83
|
+
flexDirection: orientation === 'horizontal' ? 'row' : 'column',
|
|
84
|
+
alignItems: orientation === 'horizontal' ? 'flex-start' : 'stretch',
|
|
85
|
+
},
|
|
86
|
+
stepContainer: {
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
flex: orientation === 'horizontal' ? 1 : undefined,
|
|
89
|
+
},
|
|
90
|
+
circle: {
|
|
91
|
+
width: STEP_SIZE,
|
|
92
|
+
height: STEP_SIZE,
|
|
93
|
+
borderRadius: STEP_SIZE / 2,
|
|
94
|
+
borderWidth: 1,
|
|
95
|
+
borderColor: isDarkMode
|
|
96
|
+
? theme.colors.grayScale_400
|
|
97
|
+
: theme.colors.grayScale_50,
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
backgroundColor: 'transparent',
|
|
101
|
+
},
|
|
102
|
+
circleCompleted: {
|
|
103
|
+
backgroundColor: PrimaryColors.PlatinateBlue_400,
|
|
104
|
+
borderColor: PrimaryColors.PlatinateBlue_400,
|
|
105
|
+
},
|
|
106
|
+
circleActive: {
|
|
107
|
+
borderColor: PrimaryColors.PlatinateBlue_400,
|
|
108
|
+
},
|
|
109
|
+
icon: {
|
|
110
|
+
width: STEP_SIZE / 2,
|
|
111
|
+
height: STEP_SIZE / 2,
|
|
112
|
+
tintColor: theme.colors.grayScale_0,
|
|
113
|
+
},
|
|
114
|
+
stepNumber: {
|
|
115
|
+
...theme.text.bodyXLargeRegular,
|
|
116
|
+
color: isDarkMode
|
|
117
|
+
? theme.colors.grayScale_400
|
|
118
|
+
: theme.colors.grayScale_50,
|
|
119
|
+
},
|
|
120
|
+
title: {
|
|
121
|
+
...theme.text.bodyMediumRegular,
|
|
122
|
+
marginTop: theme.spacing.small,
|
|
123
|
+
color: isDarkMode
|
|
124
|
+
? theme.colors.grayScale_400
|
|
125
|
+
: theme.colors.grayScale_50,
|
|
126
|
+
},
|
|
127
|
+
titleActive: {
|
|
128
|
+
color: theme.colors.cetaceanBlue_700,
|
|
129
|
+
},
|
|
130
|
+
connector: {
|
|
131
|
+
backgroundColor: isDarkMode
|
|
132
|
+
? theme.colors.grayScale_400
|
|
133
|
+
: theme.colors.grayScale_50,
|
|
134
|
+
...(orientation === 'horizontal'
|
|
135
|
+
? {
|
|
136
|
+
height: 1,
|
|
137
|
+
flex: 1,
|
|
138
|
+
marginHorizontal: -STEP_SIZE / 4,
|
|
139
|
+
top: STEP_SIZE / 2,
|
|
140
|
+
}
|
|
141
|
+
: {
|
|
142
|
+
width: 1,
|
|
143
|
+
flex: 1,
|
|
144
|
+
marginVertical: -STEP_SIZE / 4,
|
|
145
|
+
left: '50%',
|
|
146
|
+
}),
|
|
147
|
+
},
|
|
148
|
+
connectorCompleted: {
|
|
149
|
+
backgroundColor: PrimaryColors.PlatinateBlue_400,
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export default Stepper;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
TouchableOpacity,
|
|
7
7
|
View,
|
|
8
8
|
} from 'react-native';
|
|
9
|
-
import {
|
|
9
|
+
import {PrimaryColors} from '../../core/theme/colors';
|
|
10
10
|
import {CommonSizes} from '../../core/theme/commonSizes';
|
|
11
11
|
import {CommonStyles} from '../../core/theme/commonStyles';
|
|
12
12
|
import {localization} from '../localization/localization';
|
|
@@ -38,11 +38,11 @@ const styles = StyleSheet.create({
|
|
|
38
38
|
title: {
|
|
39
39
|
...CommonStyles.normalText,
|
|
40
40
|
textAlign: 'center',
|
|
41
|
-
marginBottom: CommonSizes.spacing.
|
|
41
|
+
marginBottom: CommonSizes.spacing.xSmall,
|
|
42
42
|
} as TextStyle,
|
|
43
43
|
description: {
|
|
44
44
|
...CommonStyles.normalText,
|
|
45
|
-
color:
|
|
45
|
+
color: PrimaryColors.PlatinateBlue_700,
|
|
46
46
|
textAlign: 'center',
|
|
47
47
|
textDecorationLine: 'underline',
|
|
48
48
|
} as TextStyle,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {Linking} from 'react-native';
|
|
2
|
+
import Share, {ShareOptions} from 'react-native-share';
|
|
3
|
+
import {isAndroid, isIos} from '../../core/theme/commonConsts';
|
|
4
|
+
import {
|
|
5
|
+
ShareOpenResult,
|
|
6
|
+
ShareSingleOptions,
|
|
7
|
+
ShareSingleResult,
|
|
8
|
+
} from 'react-native-share/lib/typescript/src/types';
|
|
9
|
+
|
|
10
|
+
export async function showShareDialog(
|
|
11
|
+
options: ShareOptions,
|
|
12
|
+
completedCallback?: (result: ShareOpenResult) => void,
|
|
13
|
+
errorCallback?: (error: Error | unknown) => void,
|
|
14
|
+
) {
|
|
15
|
+
try {
|
|
16
|
+
const result = await Share.open(options);
|
|
17
|
+
completedCallback?.(result);
|
|
18
|
+
} catch (error: Error | unknown) {
|
|
19
|
+
errorCallback?.(error);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function showShareSocialDialog(
|
|
24
|
+
options: ShareSingleOptions,
|
|
25
|
+
completedCallback?: (result: ShareSingleResult) => void,
|
|
26
|
+
errorCallback?: (error: Error | unknown) => void,
|
|
27
|
+
) {
|
|
28
|
+
try {
|
|
29
|
+
const result = await Share.shareSingle(options);
|
|
30
|
+
completedCallback?.(result);
|
|
31
|
+
} catch (error: Error | unknown) {
|
|
32
|
+
errorCallback?.(error);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export async function isPackageInstalled(
|
|
37
|
+
androidPackageName?: string,
|
|
38
|
+
iosUrl?: string,
|
|
39
|
+
): Promise<boolean> {
|
|
40
|
+
if (isAndroid && androidPackageName) {
|
|
41
|
+
return (await Share.isPackageInstalled(androidPackageName)).isInstalled;
|
|
42
|
+
} else if (isIos && iosUrl) {
|
|
43
|
+
return Linking.canOpenURL(iosUrl);
|
|
44
|
+
} else {
|
|
45
|
+
throw new Error('No arguments were given or the platform is not supported');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -23,7 +23,3 @@ export function normalizeAndTrimWhitespace(text: string): string {
|
|
|
23
23
|
?.trimEnd() // Remove trailing whitespace
|
|
24
24
|
?.replace(/\s+/g, ' '); // Replace multiple whitespaces with single space
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
export function ensureString(text: string): string {
|
|
28
|
-
return text != null ? text : '';
|
|
29
|
-
}
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* @param error The error caught from an API request
|
|
5
5
|
* @returns A structured error object with message (as string) and details
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
import {ensureString} from '../../common/helpers/stringsHelpers';
|
|
7
|
+
import {ensureString} from '../utils/stringUtils';
|
|
9
8
|
|
|
10
9
|
export const extractServerError = (error: any) => {
|
|
11
10
|
let errorObj = {
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import {createSlice
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {appInitialState, AppInitialEntity} from './appState';
|
|
1
|
+
import {createSlice} from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
import {appInitialState} from './appState';
|
|
5
4
|
|
|
6
5
|
export const {reducer: AppReducer, actions} = createSlice({
|
|
7
6
|
name: 'app',
|
|
8
7
|
initialState: appInitialState,
|
|
9
|
-
reducers: {
|
|
10
|
-
setLanguage: (state, action: PayloadAction<Languages>) => {
|
|
11
|
-
return newState(state, {
|
|
12
|
-
language: action.payload,
|
|
13
|
-
isRTL: action.payload === Languages.ar,
|
|
14
|
-
});
|
|
15
|
-
},
|
|
16
|
-
},
|
|
8
|
+
reducers: {},
|
|
17
9
|
});
|
|
18
10
|
|
|
19
|
-
export const {
|
|
11
|
+
export const {} = actions;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export interface AppInitialEntity {}
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
language?: Languages;
|
|
5
|
-
isRTL?: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const appInitialState: AppInitialEntity = {
|
|
9
|
-
language: undefined,
|
|
10
|
-
isRTL: false,
|
|
11
|
-
};
|
|
3
|
+
export const appInitialState: AppInitialEntity = {};
|
|
@@ -1,77 +1,99 @@
|
|
|
1
|
-
export enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
export enum PrimaryColors {
|
|
2
|
+
PlatinateBlue_0 = '#E9EDFF',
|
|
3
|
+
PlatinateBlue_25 = '#D3DAFF',
|
|
4
|
+
PlatinateBlue_50 = '#BDC8FF',
|
|
5
|
+
PlatinateBlue_100 = '#A7B5FF',
|
|
6
|
+
PlatinateBlue_200 = '#7C91FF',
|
|
7
|
+
PlatinateBlue_300 = '#506CFF',
|
|
8
|
+
PlatinateBlue_400 = '#2447FF',
|
|
9
|
+
PlatinateBlue_500 = '#1D39CC',
|
|
10
|
+
PlatinateBlue_600 = '#1D39CC',
|
|
11
|
+
PlatinateBlue_700 = '#0E1C66',
|
|
12
|
+
cetaceanBlue_0 = '#4C7CEA',
|
|
13
|
+
cetaceanBlue_25 = '#436FD5',
|
|
14
|
+
cetaceanBlue_50 = '#3B63BF',
|
|
15
|
+
cetaceanBlue_100 = '#3257AA',
|
|
16
|
+
cetaceanBlue_200 = '#223E80',
|
|
17
|
+
cetaceanBlue_300 = '#112655',
|
|
18
|
+
cetaceanBlue_400 = '#000D2B',
|
|
19
|
+
cetaceanBlue_500 = '#000A22',
|
|
20
|
+
cetaceanBlue_600 = '#00081A',
|
|
21
|
+
cetaceanBlue_700 = '#000511',
|
|
22
|
+
strokeDeactive = '#D3DAFF',
|
|
15
23
|
}
|
|
16
24
|
|
|
17
|
-
export enum
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export enum NaturalColors {
|
|
26
|
+
grayScale_0 = '#FAFAFA',
|
|
27
|
+
grayScale_25 = '#A3AAAD',
|
|
28
|
+
grayScale_50 = '#949C9E',
|
|
29
|
+
grayScale_100 = '#858D8F',
|
|
30
|
+
grayScale_200 = '#686F72',
|
|
31
|
+
grayScale_300 = '#4A5254',
|
|
32
|
+
grayScale_400 = '#2D3436',
|
|
33
|
+
grayScale_500 = '#242A2B',
|
|
34
|
+
grayScale_600 = '#1B1F20',
|
|
35
|
+
grayScale_700 = '#121516',
|
|
36
|
+
naturalColor_0 = '#9C97B3',
|
|
37
|
+
naturalColor_25 = '#8E89A4',
|
|
38
|
+
naturalColor_50 = '#7F7B94',
|
|
39
|
+
naturalColor_100 = '#716D85',
|
|
40
|
+
naturalColor_200 = '#555265',
|
|
41
|
+
naturalColor_300 = '#383646',
|
|
42
|
+
naturalColor_400 = '#1C1A27',
|
|
43
|
+
naturalColor_500 = '#16151F',
|
|
44
|
+
naturalColor_600 = '#111017',
|
|
45
|
+
naturalColor_700 = '#0B0A10',
|
|
31
46
|
}
|
|
32
47
|
|
|
33
|
-
export enum
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
48
|
+
export enum AlertColors {
|
|
49
|
+
links_0 = '#E8F2FF',
|
|
50
|
+
links_25 = '#D2E4FE',
|
|
51
|
+
links_50 = '#BBD7FE',
|
|
52
|
+
links_100 = '#A5CAFE',
|
|
53
|
+
links_200 = '#77AFFD',
|
|
54
|
+
links_300 = '#4A95FD',
|
|
55
|
+
links_400 = '#1D7AFC',
|
|
56
|
+
links_500 = '#1762CA',
|
|
57
|
+
links_600 = '#114997',
|
|
58
|
+
links_700 = '#0C3165',
|
|
59
|
+
success_0 = '#C6FFE5',
|
|
60
|
+
success_25 = '#8FE6BE',
|
|
61
|
+
success_50 = '#7DDAB0',
|
|
62
|
+
success_100 = '#6CCEA1',
|
|
63
|
+
success_200 = '#48B684',
|
|
64
|
+
success_300 = '#259E67',
|
|
65
|
+
success_400 = '#02864A',
|
|
66
|
+
success_500 = '#026B3B',
|
|
67
|
+
success_600 = '#01502C',
|
|
68
|
+
success_700 = '#01361E',
|
|
69
|
+
warning_0 = '#FFF4E8',
|
|
70
|
+
warning_25 = '#FEE8D1',
|
|
71
|
+
warning_50 = '#FEDDBA',
|
|
72
|
+
warning_100 = '#FDD1A3',
|
|
73
|
+
warning_200 = '#FDBB76',
|
|
74
|
+
warning_300 = '#FCA448',
|
|
75
|
+
warning_400 = '#FB8D1A',
|
|
76
|
+
warning_500 = '#C97115',
|
|
77
|
+
warning_600 = '#975510',
|
|
78
|
+
warning_700 = '#64380A',
|
|
79
|
+
error_0 = '#FDE6EC',
|
|
80
|
+
error_25 = '#FACED8',
|
|
81
|
+
error_50 = '#F8B5C5',
|
|
82
|
+
error_100 = '#F69CB2',
|
|
83
|
+
error_200 = '#F16B8B',
|
|
84
|
+
error_300 = '#ED3965',
|
|
85
|
+
error_400 = '#E8083E',
|
|
86
|
+
error_500 = '#BA0632',
|
|
87
|
+
error_600 = '#8B0525',
|
|
88
|
+
error_700 = '#5D0319',
|
|
89
|
+
discover_0 = '#F1ECF6',
|
|
90
|
+
discover_25 = '#E4D9EC',
|
|
91
|
+
discover_50 = '#D6C5E3',
|
|
92
|
+
discover_100 = '#C8B2D9',
|
|
93
|
+
discover_200 = '#AD8CC7',
|
|
94
|
+
discover_300 = '#9165B4',
|
|
95
|
+
discover_400 = '#763FA1',
|
|
96
|
+
discover_500 = '#5E3281',
|
|
97
|
+
discover_600 = '#472661',
|
|
98
|
+
discover_700 = '#2F1940',
|
|
77
99
|
}
|