@hoddy-ui/core 1.0.32 → 1.0.34
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
CHANGED
|
@@ -94,7 +94,7 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
94
94
|
disabled = false,
|
|
95
95
|
title,
|
|
96
96
|
loading,
|
|
97
|
-
size,
|
|
97
|
+
size = "normal",
|
|
98
98
|
rounded = false,
|
|
99
99
|
gutterBottom,
|
|
100
100
|
style = {},
|
|
@@ -127,7 +127,8 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
127
127
|
: colors[color].main,
|
|
128
128
|
borderRadius: rounded ? 30 : 10,
|
|
129
129
|
elevation: variant === "text" ? 0 : elevation,
|
|
130
|
-
paddingVertical:
|
|
130
|
+
paddingVertical:
|
|
131
|
+
size === "small" ? 8 : size === "large" ? "15@ms" : "13@ms",
|
|
131
132
|
paddingHorizontal: size === "small" ? "10@ms" : "18@ms",
|
|
132
133
|
borderColor: colors[color].main,
|
|
133
134
|
borderWidth: variant === "outlined" ? 1 : 0,
|
|
@@ -83,8 +83,8 @@ const FlashMessage: React.FC = () => {
|
|
|
83
83
|
{/* <MaterialIcons color="#fff" size={36} name="error-outline" /> */}
|
|
84
84
|
</View>
|
|
85
85
|
|
|
86
|
-
{message?.actions?.map((cur) => (
|
|
87
|
-
<TouchableOpacity style={styles.action} onPress={cur.onPress}>
|
|
86
|
+
{message?.actions?.map((cur, i) => (
|
|
87
|
+
<TouchableOpacity key={i} style={styles.action} onPress={cur.onPress}>
|
|
88
88
|
<Typography fontWeight={700} style={{ color: "#fff" }}>
|
|
89
89
|
{cur.title}
|
|
90
90
|
</Typography>
|
package/src/types.ts
CHANGED