@umituz/react-native-design-system 4.27.10 → 4.27.11

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.
Files changed (2) hide show
  1. package/package.json +6 -1
  2. package/src/hooks/index.ts +130 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-design-system",
3
- "version": "4.27.10",
3
+ "version": "4.27.11",
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 - TanStack persistence and expo-image-manipulator now lazy loaded",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",
@@ -152,6 +152,11 @@
152
152
  "react-native": "./src/utils/logger.ts",
153
153
  "default": "./src/utils/logger.ts"
154
154
  },
155
+ "./hooks": {
156
+ "types": "./dist/hooks/index.d.ts",
157
+ "react-native": "./src/hooks/index.ts",
158
+ "default": "./src/hooks/index.ts"
159
+ },
155
160
  "./variants": {
156
161
  "types": "./dist/presentation/utils/variants.d.ts",
157
162
  "react-native": "./src/presentation/utils/variants.ts",
@@ -0,0 +1,130 @@
1
+ /**
2
+ * @umituz/react-native-design-system/hooks - Centralized Hooks Export
3
+ *
4
+ * Re-exports all commonly used hooks from the design system
5
+ *
6
+ * Usage:
7
+ * import {
8
+ * useAppDesignTokens,
9
+ * useTheme,
10
+ * useInfiniteScroll,
11
+ * useOffline,
12
+ * useResponsive,
13
+ * useSafeArea
14
+ * } from '@umituz/react-native-design-system/hooks';
15
+ */
16
+
17
+ // =============================================================================
18
+ // THEME HOOKS
19
+ // =============================================================================
20
+
21
+ export {
22
+ useAppDesignTokens,
23
+ useDesignSystemTheme,
24
+ useTheme,
25
+ useThemedStyles,
26
+ useThemedStyleSheet,
27
+ useCommonStyles,
28
+ } from '../theme/hooks/useAppDesignTokens';
29
+
30
+ export { useTheme as useThemeStore } from '../theme/infrastructure/stores/themeStore';
31
+
32
+ // =============================================================================
33
+ // RESPONSIVE HOOKS
34
+ // =============================================================================
35
+
36
+ export {
37
+ useResponsive,
38
+ useBreakpoint,
39
+ useOrientation,
40
+ type Breakpoint,
41
+ } from '../responsive';
42
+
43
+ // =============================================================================
44
+ // SAFE AREA HOOKS
45
+ // =============================================================================
46
+
47
+ export {
48
+ useSafeArea,
49
+ useSafeAreaInsets,
50
+ } from '../safe-area';
51
+
52
+ // =============================================================================
53
+ // INFINITE SCROLL HOOKS
54
+ // =============================================================================
55
+
56
+ export {
57
+ useInfiniteScroll,
58
+ type UseInfiniteScrollOptions,
59
+ type UseInfiniteScrollResult,
60
+ } from '../infinite-scroll';
61
+
62
+ // =============================================================================
63
+ // OFFLINE HOOKS
64
+ // =============================================================================
65
+
66
+ export {
67
+ useOffline,
68
+ type NetworkStatus,
69
+ } from '../offline';
70
+
71
+ // =============================================================================
72
+ // DEVICE HOOKS
73
+ // =============================================================================
74
+
75
+ export {
76
+ useDeviceContext,
77
+ useDeviceInfo,
78
+ type DeviceInfo,
79
+ } from '../device';
80
+
81
+ // =============================================================================
82
+ // STORAGE HOOKS
83
+ // =============================================================================
84
+
85
+ export {
86
+ useStorage,
87
+ useAsyncStorage,
88
+ useSecureStorage,
89
+ } from '../storage';
90
+
91
+ // =============================================================================
92
+ // MEDIA HOOKS
93
+ // =============================================================================
94
+
95
+ export {
96
+ useImagePicker,
97
+ useImageLibrary,
98
+ useCamera,
99
+ type ImagePickerResult,
100
+ } from '../media';
101
+
102
+ // =============================================================================
103
+ // TIMEZONE HOOKS
104
+ // =============================================================================
105
+
106
+ export {
107
+ useTimezone,
108
+ useLocalTime,
109
+ type TimezoneInfo,
110
+ } from '../timezone';
111
+
112
+ // =============================================================================
113
+ // HAPTICS HOOKS
114
+ // =============================================================================
115
+
116
+ export {
117
+ useHaptics,
118
+ useImpact,
119
+ useNotification,
120
+ useSelection,
121
+ } from '../haptics';
122
+
123
+ // =============================================================================
124
+ // LOADING HOOKS
125
+ // =============================================================================
126
+
127
+ export {
128
+ useLoading,
129
+ useLoadingState,
130
+ } from '../loading';