@umituz/react-native-design-system 4.23.49 → 4.23.51

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.49",
3
+ "version": "4.23.51",
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",
@@ -1,31 +1,16 @@
1
1
  import { useMemo } from 'react';
2
- import { useDesignSystemTheme } from '../infrastructure/globalThemeStore';
2
+ import { useTheme } from '../infrastructure/stores/themeStore';
3
3
  import { createDesignTokens } from '../core/TokenFactory';
4
4
  import { useResponsive } from '../../responsive/useResponsive';
5
5
  import { type DesignTokens } from '../types/ThemeTypes';
6
6
 
7
7
  /**
8
8
  * Hook to access current design tokens (colors, spacing, typography, etc.)
9
- *
10
- * Responsive by default - Scales based on device type
11
- * ✅ Theme-aware - Automatically updates on light/dark mode changes
12
- * ✅ Dynamic - Supports custom color overrides
13
- *
14
- * @returns {DesignTokens} The current responsive design tokens
15
- *
16
- * @example
17
- * ```tsx
18
- * const tokens = useAppDesignTokens();
19
- * return (
20
- * <View style={{
21
- * padding: tokens.spacing.md,
22
- * backgroundColor: tokens.colors.backgroundPrimary
23
- * }} />
24
- * );
25
- * ```
9
+ *
10
+ * Uses useTheme directly - single source of truth for theme state.
26
11
  */
27
12
  export const useAppDesignTokens = (): DesignTokens => {
28
- const { themeMode, customColors } = useDesignSystemTheme();
13
+ const { themeMode, customColors } = useTheme();
29
14
  const { spacingMultiplier, getFontSize } = useResponsive();
30
15
 
31
16
  return useMemo(