@umituz/react-native-design-system 1.5.14 → 1.5.15
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": "1.5.
|
|
3
|
+
"version": "1.5.15",
|
|
4
4
|
"description": "Universal design system for React Native apps - Domain-Driven Design architecture with Material Design 3 components",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -27,16 +27,17 @@
|
|
|
27
27
|
"url": "https://github.com/umituz/react-native-design-system"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
+
"@expo/vector-icons": ">=14.0.0",
|
|
31
|
+
"@react-native-community/datetimepicker": "^8.5.0",
|
|
32
|
+
"@react-navigation/native": "^6.0.0",
|
|
33
|
+
"@umituz/react-native-icon": "*",
|
|
34
|
+
"expo-linear-gradient": "^15.0.7",
|
|
35
|
+
"lucide-react-native": ">=0.468.0",
|
|
30
36
|
"react": ">=18.2.0 || ^19.0.0",
|
|
31
37
|
"react-native": ">=0.74.0",
|
|
32
38
|
"react-native-reanimated": "~3.10.1",
|
|
33
39
|
"react-native-svg": ">=13.0.0",
|
|
34
|
-
"
|
|
35
|
-
"@expo/vector-icons": ">=14.0.0",
|
|
36
|
-
"lucide-react-native": ">=0.468.0",
|
|
37
|
-
"zustand": "^5.0.2",
|
|
38
|
-
"expo-linear-gradient": "~13.0.2",
|
|
39
|
-
"@react-navigation/native": "^6.0.0"
|
|
40
|
+
"zustand": "^5.0.2"
|
|
40
41
|
},
|
|
41
42
|
"peerDependenciesMeta": {
|
|
42
43
|
"expo-linear-gradient": {
|
|
@@ -50,20 +51,21 @@
|
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"
|
|
54
|
+
"@expo/vector-icons": ">=14.0.0",
|
|
55
|
+
"@react-native-community/datetimepicker": "^8.5.0",
|
|
56
|
+
"@react-navigation/native": "^6.0.0",
|
|
54
57
|
"@types/react": "^18.2.45",
|
|
55
58
|
"@types/react-native": "^0.73.0",
|
|
59
|
+
"@umituz/react-native-icon": "^1.0.1",
|
|
60
|
+
"expo-linear-gradient": "^15.0.7",
|
|
61
|
+
"lucide-react-native": ">=0.468.0",
|
|
56
62
|
"react": ">=18.2.0 || ^19.0.0",
|
|
57
63
|
"react-native": ">=0.74.0",
|
|
58
64
|
"react-native-reanimated": "~3.10.1",
|
|
65
|
+
"react-native-safe-area-context": "^5.6.2",
|
|
59
66
|
"react-native-svg": "^15.0.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"zustand": "^5.0.2",
|
|
63
|
-
"react-native-safe-area-context": "^4.8.0",
|
|
64
|
-
"@react-native-community/datetimepicker": "8.0.1",
|
|
65
|
-
"expo-linear-gradient": "~13.0.2",
|
|
66
|
-
"@react-navigation/native": "^6.0.0"
|
|
67
|
+
"typescript": "^5.3.3",
|
|
68
|
+
"zustand": "^5.0.2"
|
|
67
69
|
},
|
|
68
70
|
"publishConfig": {
|
|
69
71
|
"access": "public"
|
|
@@ -72,5 +74,9 @@
|
|
|
72
74
|
"src",
|
|
73
75
|
"README.md",
|
|
74
76
|
"LICENSE"
|
|
75
|
-
]
|
|
77
|
+
],
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
80
|
+
"@umituz/react-native-theme": "^1.2.4"
|
|
81
|
+
}
|
|
76
82
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View, TextInput, Pressable, StyleSheet, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import { View, TextInput, Pressable, StyleSheet, StyleProp, ViewStyle, TextStyle, Platform } from 'react-native';
|
|
3
3
|
import { useAppDesignTokens } from '@umituz/react-native-theme';
|
|
4
4
|
import { AtomicIcon } from './AtomicIcon';
|
|
5
5
|
import { AtomicText } from './AtomicText';
|
|
@@ -192,9 +192,11 @@ export const AtomicInput: React.FC<AtomicInputProps> = ({
|
|
|
192
192
|
styles.container,
|
|
193
193
|
getVariantStyle(),
|
|
194
194
|
{
|
|
195
|
-
|
|
195
|
+
paddingTop: config.paddingVertical,
|
|
196
|
+
paddingBottom: config.paddingVertical,
|
|
196
197
|
paddingHorizontal: config.paddingHorizontal,
|
|
197
198
|
minHeight: config.minHeight,
|
|
199
|
+
justifyContent: 'center',
|
|
198
200
|
opacity: isDisabled ? 0.5 : 1,
|
|
199
201
|
},
|
|
200
202
|
style,
|
|
@@ -203,8 +205,10 @@ export const AtomicInput: React.FC<AtomicInputProps> = ({
|
|
|
203
205
|
const textInputStyle: StyleProp<TextStyle> = [
|
|
204
206
|
styles.input,
|
|
205
207
|
{
|
|
206
|
-
fontSize: config.fontSize,
|
|
208
|
+
fontSize: config.fontSize || tokens.typography.bodyMedium.fontSize || 16,
|
|
209
|
+
lineHeight: (config.fontSize || tokens.typography.bodyMedium.fontSize || 16) * 1.5, // Ensure text is fully visible
|
|
207
210
|
color: getTextColor(),
|
|
211
|
+
paddingVertical: 0, // Remove vertical padding to prevent clipping
|
|
208
212
|
},
|
|
209
213
|
leadingIcon ? { paddingLeft: config.iconSize + 8 } : undefined,
|
|
210
214
|
(trailingIcon || showPasswordToggle) ? { paddingRight: config.iconSize + 8 } : undefined,
|
|
@@ -246,6 +250,8 @@ export const AtomicInput: React.FC<AtomicInputProps> = ({
|
|
|
246
250
|
autoCorrect={autoCorrect}
|
|
247
251
|
editable={!isDisabled}
|
|
248
252
|
style={textInputStyle}
|
|
253
|
+
textAlignVertical="center"
|
|
254
|
+
{...(Platform.OS === 'android' && { includeFontPadding: false })}
|
|
249
255
|
onBlur={() => {
|
|
250
256
|
setIsFocused(false);
|
|
251
257
|
onBlur?.();
|
|
@@ -320,6 +326,8 @@ const styles = StyleSheet.create({
|
|
|
320
326
|
},
|
|
321
327
|
input: {
|
|
322
328
|
flex: 1,
|
|
329
|
+
margin: 0,
|
|
330
|
+
padding: 0,
|
|
323
331
|
},
|
|
324
332
|
label: {
|
|
325
333
|
marginBottom: 4,
|