@umituz/react-native-design-system 2.6.71 → 2.6.73
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.6.
|
|
3
|
+
"version": "2.6.73",
|
|
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",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* @module FormContainer
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
|
-
import React
|
|
46
|
+
import React from 'react';
|
|
47
47
|
import {
|
|
48
48
|
ScrollView,
|
|
49
49
|
View,
|
|
@@ -129,25 +129,8 @@ export const FormContainer: React.FC<FormContainerProps> = ({
|
|
|
129
129
|
maxWidth: formContentWidth,
|
|
130
130
|
alignSelf: 'center',
|
|
131
131
|
width: '100%',
|
|
132
|
+
gap: formElementSpacing,
|
|
132
133
|
},
|
|
133
|
-
formElementWrapper: {
|
|
134
|
-
marginBottom: formElementSpacing,
|
|
135
|
-
},
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
// Wrap each child with spacing View (universal gap replacement)
|
|
139
|
-
// Children.map() handles arrays, fragments, single elements correctly
|
|
140
|
-
const childrenWithSpacing = Children.map(children, (child, index) => {
|
|
141
|
-
const childArray = Children.toArray(children);
|
|
142
|
-
const childKey = (child as React.ReactElement)?.key || `child-${index}`;
|
|
143
|
-
return (
|
|
144
|
-
<View
|
|
145
|
-
key={childKey}
|
|
146
|
-
style={index < childArray.length - 1 ? styles.formElementWrapper : undefined}
|
|
147
|
-
>
|
|
148
|
-
{child}
|
|
149
|
-
</View>
|
|
150
|
-
);
|
|
151
134
|
});
|
|
152
135
|
|
|
153
136
|
return (
|
|
@@ -161,7 +144,7 @@ export const FormContainer: React.FC<FormContainerProps> = ({
|
|
|
161
144
|
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
|
|
162
145
|
testID={testID ? `${testID}-scroll` : undefined}
|
|
163
146
|
>
|
|
164
|
-
{
|
|
147
|
+
{children}
|
|
165
148
|
</ScrollView>
|
|
166
149
|
</View>
|
|
167
150
|
</View>
|