@popp0102/nova 0.6.4 → 0.6.5

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.
@@ -55,53 +55,52 @@ export default function Button({
55
55
  const verticalIconSize = sizes.fontSize * 2.5;
56
56
 
57
57
  return (
58
- <View style={[style]}>
59
- <Pressable
60
- onPress={onPress}
61
- style={({ pressed }) => [
62
- styles.button,
63
- {
64
- backgroundColor: buttonColors.background,
65
- padding: sizes.padding,
66
- },
67
- pressed && styles.pressed,
68
- ]}
69
- >
70
- <View style={[
71
- styles.buttonContent,
72
- isVerticalLayout && styles.verticalContent
73
- ]}>
74
- {isVerticalLayout ? (
75
- <>
76
- {icon && (
77
- <MaterialIcons name={icon} size={verticalIconSize} color={finalIconColor} />
78
- )}
79
- <Text
80
- style={[styles.text, { color: buttonColors.text, fontSize: sizes.fontSize }]}
81
- numberOfLines={1}
82
- >
83
- {children}
84
- </Text>
85
- </>
86
- ) : (
87
- <>
88
- {icon && iconPosition === 'left' && (
89
- <MaterialIcons name={icon} size={iconSize} color={finalIconColor} />
90
- )}
91
- <Text
92
- style={[styles.text, { color: buttonColors.text, fontSize: sizes.fontSize }]}
93
- numberOfLines={1}
94
- >
95
- {children}
96
- </Text>
97
- {icon && iconPosition === 'right' && (
98
- <MaterialIcons name={icon} size={iconSize} color={finalIconColor} />
99
- )}
100
- </>
101
- )}
102
- </View>
103
- </Pressable>
104
- </View>
58
+ <Pressable
59
+ onPress={onPress}
60
+ style={({ pressed }) => [
61
+ styles.button,
62
+ {
63
+ backgroundColor: buttonColors.background,
64
+ padding: sizes.padding,
65
+ },
66
+ pressed && styles.pressed,
67
+ style,
68
+ ]}
69
+ >
70
+ <View style={[
71
+ styles.buttonContent,
72
+ isVerticalLayout && styles.verticalContent
73
+ ]}>
74
+ {isVerticalLayout ? (
75
+ <>
76
+ {icon && (
77
+ <MaterialIcons name={icon} size={verticalIconSize} color={finalIconColor} />
78
+ )}
79
+ <Text
80
+ style={[styles.text, { color: buttonColors.text, fontSize: sizes.fontSize }]}
81
+ numberOfLines={1}
82
+ >
83
+ {children}
84
+ </Text>
85
+ </>
86
+ ) : (
87
+ <>
88
+ {icon && iconPosition === 'left' && (
89
+ <MaterialIcons name={icon} size={iconSize} color={finalIconColor} />
90
+ )}
91
+ <Text
92
+ style={[styles.text, { color: buttonColors.text, fontSize: sizes.fontSize }]}
93
+ numberOfLines={1}
94
+ >
95
+ {children}
96
+ </Text>
97
+ {icon && iconPosition === 'right' && (
98
+ <MaterialIcons name={icon} size={iconSize} color={finalIconColor} />
99
+ )}
100
+ </>
101
+ )}
102
+ </View>
103
+ </Pressable>
105
104
  );
106
105
  }
107
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popp0102/nova",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "React Native component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",