@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.71",
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",
@@ -21,7 +21,6 @@ export interface ScreenLayoutProps {
21
21
  readonly accessibilityLabel?: string;
22
22
  readonly accessibilityHint?: string;
23
23
  readonly accessible?: boolean;
24
-
25
24
  readonly maxWidth?: number;
26
25
  readonly refreshControl?: React.ReactElement<RefreshControlProps>;
27
26
  }
@@ -109,7 +109,6 @@ export const FormField: React.FC<FormFieldProps> = ({
109
109
 
110
110
  <AtomicInput
111
111
  {...inputProps}
112
- label={label || ''}
113
112
  state={inputState}
114
113
  />
115
114
 
@@ -43,7 +43,7 @@
43
43
  * @module FormContainer
44
44
  */
45
45
 
46
- import React, { Children } from '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
- {childrenWithSpacing}
147
+ {children}
165
148
  </ScrollView>
166
149
  </View>
167
150
  </View>