@janiscommerce/ui-native 1.10.1 → 1.10.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.
|
@@ -11,11 +11,14 @@ const BaseCardList = ({ children, isSelected = false, style, ...props }) => {
|
|
|
11
11
|
borderRadius: 20,
|
|
12
12
|
width: '100%',
|
|
13
13
|
padding: 16,
|
|
14
|
-
elevation:
|
|
14
|
+
elevation: 2,
|
|
15
|
+
shadowColor: palette.black.main,
|
|
15
16
|
},
|
|
16
17
|
selectedContainer: {
|
|
17
18
|
borderWidth: 2,
|
|
18
19
|
borderColor: palette.primary.main,
|
|
20
|
+
elevation: 4,
|
|
21
|
+
shadowColor: palette.primary.main,
|
|
19
22
|
},
|
|
20
23
|
});
|
|
21
24
|
const activeStyles = [
|
|
@@ -59,8 +59,8 @@ const Toast = ({ type, text1, text2, style, props }) => {
|
|
|
59
59
|
flexDirection: 'row',
|
|
60
60
|
alignItems: 'center',
|
|
61
61
|
},
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
closeIconWrapper: {
|
|
63
|
+
padding: scaledForDevice(10, moderateScale),
|
|
64
64
|
},
|
|
65
65
|
actionTitle: {
|
|
66
66
|
marginRight: scaledForDevice(5, moderateScale),
|
|
@@ -70,6 +70,9 @@ const Toast = ({ type, text1, text2, style, props }) => {
|
|
|
70
70
|
lineHeight: scaledForDevice(16, moderateScale),
|
|
71
71
|
color: validColor,
|
|
72
72
|
},
|
|
73
|
+
actionWrapper: {
|
|
74
|
+
padding: scaledForDevice(10, moderateScale),
|
|
75
|
+
},
|
|
73
76
|
});
|
|
74
77
|
return (<BaseToast type={type} style={[styles.container, style]}>
|
|
75
78
|
{showIcon && (<Icon name={selectedIconName} color={validColor} size={24} style={{ ...styles.icon, ...iconStyle }}/>)}
|
|
@@ -80,11 +83,11 @@ const Toast = ({ type, text1, text2, style, props }) => {
|
|
|
80
83
|
</View>
|
|
81
84
|
|
|
82
85
|
<View style={styles.feedbackWrapper}>
|
|
83
|
-
{actionTitle && (<TouchableOpacity onPress={handleActionCb} activeOpacity={0.6}>
|
|
86
|
+
{actionTitle && (<TouchableOpacity style={styles.actionWrapper} onPress={handleActionCb} activeOpacity={0.6}>
|
|
84
87
|
<Text style={styles.actionTitle}>{actionTitle}</Text>
|
|
85
88
|
</TouchableOpacity>)}
|
|
86
|
-
{showCloseIcon && (<TouchableOpacity onPress={handleCloseCb} activeOpacity={0.6}>
|
|
87
|
-
<Icon name="cross_light" color={validColor} size={24}
|
|
89
|
+
{showCloseIcon && (<TouchableOpacity style={styles.closeIconWrapper} onPress={handleCloseCb} activeOpacity={0.6}>
|
|
90
|
+
<Icon name="cross_light" color={validColor} size={24}/>
|
|
88
91
|
</TouchableOpacity>)}
|
|
89
92
|
</View>
|
|
90
93
|
</BaseToast>);
|