@umituz/react-native-design-system 2.5.2 → 2.5.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
package/src/atoms/AtomicIcon.tsx
CHANGED
|
@@ -10,7 +10,6 @@ import { View, StyleSheet, StyleProp, ViewStyle } from "react-native";
|
|
|
10
10
|
import { Ionicons } from "@expo/vector-icons";
|
|
11
11
|
import { useAppDesignTokens } from '../theme';
|
|
12
12
|
import {
|
|
13
|
-
getIconSize,
|
|
14
13
|
type IconSize as BaseIconSize
|
|
15
14
|
} from "./AtomicIcon.types";
|
|
16
15
|
|
|
@@ -18,7 +18,7 @@ export const ListItem: React.FC<ListItemProps> = ({
|
|
|
18
18
|
<Component style={[listItemStyles.container, disabled ? listItemStyles.disabled : undefined, style]} onPress={onPress} disabled={disabled} activeOpacity={0.7}>
|
|
19
19
|
{leftIcon && (
|
|
20
20
|
<View style={listItemStyles.iconContainer}>
|
|
21
|
-
<AtomicIcon name={leftIcon} color={disabled ? 'surfaceVariant' : 'primary'} />
|
|
21
|
+
<AtomicIcon name={leftIcon} color={disabled ? 'surfaceVariant' : 'primary'} size="md" />
|
|
22
22
|
</View>
|
|
23
23
|
)}
|
|
24
24
|
<View style={listItemStyles.content}>
|
|
@@ -27,7 +27,7 @@ export const ListItem: React.FC<ListItemProps> = ({
|
|
|
27
27
|
</View>
|
|
28
28
|
{rightIcon && onPress && (
|
|
29
29
|
<View style={listItemStyles.iconContainer}>
|
|
30
|
-
<AtomicIcon name={rightIcon} color="surfaceVariant" />
|
|
30
|
+
<AtomicIcon name={rightIcon} color="surfaceVariant" size="sm" />
|
|
31
31
|
</View>
|
|
32
32
|
)}
|
|
33
33
|
</Component>
|
|
@@ -41,6 +41,9 @@ export const SearchBar = forwardRef<React.ComponentRef<typeof TextInput>, Search
|
|
|
41
41
|
{
|
|
42
42
|
backgroundColor: tokens.colors.surfaceVariant,
|
|
43
43
|
borderColor: tokens.colors.border,
|
|
44
|
+
height: 48 * tokens.spacingMultiplier,
|
|
45
|
+
paddingHorizontal: 12 * tokens.spacingMultiplier,
|
|
46
|
+
borderRadius: 24 * tokens.spacingMultiplier,
|
|
44
47
|
},
|
|
45
48
|
containerStyle,
|
|
46
49
|
]}
|
|
@@ -72,7 +75,7 @@ export const SearchBar = forwardRef<React.ComponentRef<typeof TextInput>, Search
|
|
|
72
75
|
styles.input,
|
|
73
76
|
{
|
|
74
77
|
color: tokens.colors.textPrimary,
|
|
75
|
-
fontSize:
|
|
78
|
+
fontSize: tokens.typography.bodyMedium.responsiveFontSize,
|
|
76
79
|
},
|
|
77
80
|
inputStyle,
|
|
78
81
|
]}
|
|
@@ -115,9 +118,9 @@ const styles = StyleSheet.create({
|
|
|
115
118
|
container: {
|
|
116
119
|
flexDirection: 'row',
|
|
117
120
|
alignItems: 'center',
|
|
118
|
-
paddingHorizontal: 12,
|
|
119
|
-
height: 48,
|
|
120
|
-
borderRadius: 24,
|
|
121
|
+
paddingHorizontal: 12, // Will be scaled by parent if needed, or we rely on token usage elsewhere
|
|
122
|
+
height: 48, // Should be dynamic ideally, but keeping simple for now
|
|
123
|
+
borderRadius: 24,
|
|
121
124
|
borderWidth: 1,
|
|
122
125
|
},
|
|
123
126
|
iconContainer: {
|
|
@@ -126,7 +129,7 @@ const styles = StyleSheet.create({
|
|
|
126
129
|
input: {
|
|
127
130
|
flex: 1,
|
|
128
131
|
height: '100%',
|
|
129
|
-
paddingVertical: 0,
|
|
132
|
+
paddingVertical: 0,
|
|
130
133
|
},
|
|
131
134
|
rightActions: {
|
|
132
135
|
flexDirection: 'row',
|