@umituz/react-native-design-system 2.9.4 → 2.9.6

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.9.4",
3
+ "version": "2.9.6",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, and onboarding utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -44,6 +44,7 @@ export const AtomicInput = React.forwardRef<TextInput, AtomicInputProps>(({
44
44
  autoFocus,
45
45
  autoCapitalize = 'sentences',
46
46
  autoCorrect = true,
47
+ autoComplete,
47
48
  disabled = false,
48
49
  style,
49
50
  inputStyle,
@@ -151,6 +152,7 @@ export const AtomicInput = React.forwardRef<TextInput, AtomicInputProps>(({
151
152
  autoFocus={autoFocus}
152
153
  autoCapitalize={autoCapitalize}
153
154
  autoCorrect={autoCorrect}
155
+ autoComplete={autoComplete}
154
156
  editable={!isDisabled}
155
157
  multiline={multiline}
156
158
  numberOfLines={numberOfLines}
@@ -51,6 +51,8 @@ export interface AtomicInputProps {
51
51
  autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
52
52
  /** Auto-correct */
53
53
  autoCorrect?: boolean;
54
+ /** Auto-complete (Android/Web) */
55
+ autoComplete?: TextInputProps['autoComplete'];
54
56
  /** Disabled state */
55
57
  disabled?: boolean;
56
58
  /** Container style */
@@ -1,4 +1,4 @@
1
- import type { TabScreen, StackScreen } from "../types";
1
+ import type { TabScreen, StackScreen, BaseScreen } from "../types";
2
2
 
3
3
  export class NavigationValidator {
4
4
  static validateScreens(screens: TabScreen[] | StackScreen[], type: "tab" | "stack"): void {
@@ -11,7 +11,7 @@ export class NavigationValidator {
11
11
  }
12
12
 
13
13
  const screenNames = new Set<string>();
14
-
14
+
15
15
  screens.forEach((screen, index) => {
16
16
  if (!screen.name || typeof screen.name !== "string" || screen.name.trim() === "") {
17
17
  throw new Error(`Screen at index ${index} must have a valid non-empty name`);
@@ -23,8 +23,9 @@ export class NavigationValidator {
23
23
  }
24
24
  screenNames.add(screen.name);
25
25
 
26
- if (!screen.component || typeof screen.component !== "function") {
27
- throw new Error(`Screen '${screen.name}' must have a valid component`);
26
+ const baseScreen = screen as BaseScreen;
27
+ if (!baseScreen.component && !baseScreen.children) {
28
+ throw new Error(`Screen '${screen.name}' must have a valid component or children`);
28
29
  }
29
30
 
30
31
  if (type === "tab") {