@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -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: size === "small" ? 8 : "13@ms",
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
@@ -91,7 +91,7 @@ export interface ButtonProps {
91
91
  disabled?: boolean;
92
92
  title?: string;
93
93
  loading?: boolean;
94
- size?: "large" | "small";
94
+ size?: "large" | "normal" | "small";
95
95
  rounded?: boolean;
96
96
  style?: ViewStyle;
97
97
  fullWidth?: boolean;