@umituz/react-native-design-system 4.23.44 → 4.23.45

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": "4.23.44",
3
+ "version": "4.23.45",
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, onboarding, and loading utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -52,7 +52,7 @@ interface GlobalThemeActions {
52
52
  export const useDesignSystemTheme = createStore<GlobalThemeState, GlobalThemeActions>({
53
53
  name: 'design-system-theme',
54
54
  initialState: {
55
- themeMode: 'dark',
55
+ themeMode: 'light',
56
56
  customColors: undefined,
57
57
  },
58
58
  persist: false,
@@ -52,9 +52,9 @@ let themeInitInProgress = false;
52
52
  export const useTheme = createStore<ThemeState, ThemeActions>({
53
53
  name: 'theme-store',
54
54
  initialState: {
55
- theme: darkTheme,
56
- themeMode: 'dark',
57
- isDark: true,
55
+ theme: lightTheme,
56
+ themeMode: 'light',
57
+ isDark: false,
58
58
  isInitialized: false,
59
59
  },
60
60
  persist: false,
@@ -82,16 +82,16 @@ export const useTheme = createStore<ThemeState, ThemeActions>({
82
82
  // Sync with design system global theme
83
83
  useDesignSystemTheme.getState().setThemeMode(savedMode);
84
84
  } else {
85
- // No saved mode - use default 'dark' and sync to design system store
85
+ // No saved mode - use default 'light' and sync to design system store
86
86
  set({ isInitialized: true });
87
87
  // Ensure design system store is synced even if no saved mode exists
88
- useDesignSystemTheme.getState().setThemeMode('dark');
88
+ useDesignSystemTheme.getState().setThemeMode('light');
89
89
  }
90
90
  } catch {
91
91
  // Silent failure - still mark as initialized to prevent blocking
92
92
  set({ isInitialized: true });
93
93
  // Ensure design system store is synced even on error
94
- useDesignSystemTheme.getState().setThemeMode('dark');
94
+ useDesignSystemTheme.getState().setThemeMode('light');
95
95
  } finally {
96
96
  themeInitInProgress = false;
97
97
  }