ikualo-ui-kit-mobile 1.8.5 → 1.8.8
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/app.json
CHANGED
|
@@ -24,18 +24,22 @@ export const getStyleAlerts = (theme: ITheme) =>
|
|
|
24
24
|
'alert--info': {
|
|
25
25
|
backgroundColor: theme.colors.background_info,
|
|
26
26
|
borderLeftColor: theme.colors.info,
|
|
27
|
+
borderRadius: 16,
|
|
27
28
|
},
|
|
28
29
|
'alert--warning': {
|
|
29
30
|
backgroundColor: theme.colors.background_warning,
|
|
30
31
|
borderLeftColor: theme.colors.warning,
|
|
32
|
+
borderRadius: 16,
|
|
31
33
|
},
|
|
32
34
|
'alert--success': {
|
|
33
35
|
backgroundColor: theme.colors.background_success,
|
|
34
36
|
borderLeftColor: theme.colors.success,
|
|
37
|
+
borderRadius: 16,
|
|
35
38
|
},
|
|
36
39
|
'alert--error': {
|
|
37
40
|
backgroundColor: theme.colors.background_error,
|
|
38
41
|
borderLeftColor: theme.colors.error,
|
|
42
|
+
borderRadius: 16,
|
|
39
43
|
},
|
|
40
44
|
'alert-container-text': {
|
|
41
45
|
flexDirection: 'row',
|
package/package.json
CHANGED
|
@@ -133,6 +133,7 @@ const light = {
|
|
|
133
133
|
background_info: '#EEF4FF',
|
|
134
134
|
background_success: '#DAEEDF',
|
|
135
135
|
background_warning: '#FFFAEB',
|
|
136
|
+
background_alert: '#120B25C2',
|
|
136
137
|
|
|
137
138
|
text_h: colors.gray_800,
|
|
138
139
|
text_p: colors.gray_700,
|
|
@@ -178,6 +179,7 @@ const dark = {
|
|
|
178
179
|
background_info: '#2F3C53',
|
|
179
180
|
background_success: '#314A3B',
|
|
180
181
|
background_warning: '#27251C',
|
|
182
|
+
background_alert: '#7B7BFF80',
|
|
181
183
|
|
|
182
184
|
text_h: colors.gray_300,
|
|
183
185
|
text_p: colors.gray_200,
|
|
@@ -11,7 +11,7 @@ import MaterialIcons from '@expo/vector-icons/MaterialIcons';
|
|
|
11
11
|
export const Alert = (props: IFAlertInfo) => {
|
|
12
12
|
const { text, title, type, onClose, miliSeconds, customStyles, position = 'absolute' } = props;
|
|
13
13
|
const styleAlerts = getStyleAlerts(useStore().theme);
|
|
14
|
-
const theme = useStore().theme
|
|
14
|
+
const theme = useStore().theme;
|
|
15
15
|
|
|
16
16
|
const icons = [
|
|
17
17
|
{ name: 'error', icon: <MaterialIcons name="error" size={24} color={theme?.colors.error} /> },
|
|
@@ -40,7 +40,7 @@ export const Alert = (props: IFAlertInfo) => {
|
|
|
40
40
|
>
|
|
41
41
|
<View style={styleAlerts['alert-container-text']}>
|
|
42
42
|
{icons.find((icon) => icon.name === type)?.icon}
|
|
43
|
-
<Text fontWeight={'MontserratBold700'} fontSize={14}>
|
|
43
|
+
<Text fontWeight={'MontserratBold700'} fontSize={14} color={theme.colors.text_p}>
|
|
44
44
|
{title}
|
|
45
45
|
</Text>
|
|
46
46
|
</View>
|
|
@@ -58,7 +58,7 @@ export const Alert = (props: IFAlertInfo) => {
|
|
|
58
58
|
>
|
|
59
59
|
<View style={styleAlerts['alert-container-text']}>
|
|
60
60
|
{icons.find((icon) => icon.name === type)?.icon}
|
|
61
|
-
<Text fontWeight={'MontserratBold700'} fontSize={14}>
|
|
61
|
+
<Text fontWeight={'MontserratBold700'} fontSize={14} color={theme.colors.text_p}>
|
|
62
62
|
{title}
|
|
63
63
|
</Text>
|
|
64
64
|
</View>
|
|
@@ -67,4 +67,4 @@ export const Alert = (props: IFAlertInfo) => {
|
|
|
67
67
|
)}
|
|
68
68
|
</>
|
|
69
69
|
);
|
|
70
|
-
};
|
|
70
|
+
};
|