@umituz/react-native-design-system 4.25.32 → 4.25.33

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.25.32",
3
+ "version": "4.25.33",
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",
@@ -146,5 +146,5 @@ export { AtomicKeyboardAvoidingView, type AtomicKeyboardAvoidingViewProps } from
146
146
  // GlassView
147
147
  export { GlassView, type GlassViewProps } from './GlassView/GlassView';
148
148
 
149
- // Image
150
- export { AtomicImage, type AtomicImageProps } from './image/AtomicImage';
149
+ // Image — available via sub-path: @umituz/react-native-design-system/image
150
+ // Requires expo-image peer dependency
package/src/index.ts CHANGED
@@ -1,148 +1,44 @@
1
1
  /**
2
2
  * @umituz/react-native-design-system
3
- * Universal design system for React Native apps
4
3
  *
5
- * Consolidated package including all modules.
6
- * Sub-path imports also available (e.g. @umituz/react-native-design-system/media)
4
+ * Sub-path imports ONLY. Barrel import is disabled to prevent
5
+ * bundling unused modules with optional peer dependencies.
6
+ *
7
+ * Usage:
8
+ * import { DesignSystemProvider, useAppDesignTokens } from "@umituz/react-native-design-system/theme";
9
+ * import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
10
+ * import { FormField } from "@umituz/react-native-design-system/molecules";
11
+ * import { generateUUID } from "@umituz/react-native-design-system/uuid";
12
+ *
13
+ * Available sub-paths:
14
+ * /atoms - AtomicText, AtomicButton, AtomicIcon, AtomicSpinner, etc.
15
+ * /molecules - FormField, AppNavigation, AlertContainer, BottomSheet, etc.
16
+ * /organisms - Complex screen-level components
17
+ * /theme - DesignSystemProvider, useAppDesignTokens, useTheme
18
+ * /typography - Typography utilities
19
+ * /responsive - useResponsive
20
+ * /layouts - ScreenLayout
21
+ * /safe-area - useSafeAreaInsets
22
+ * /exception - ErrorBoundary, ExceptionErrorState
23
+ * /infinite-scroll - useInfiniteScroll, InfiniteScrollList
24
+ * /uuid - generateUUID, isValidUUID
25
+ * /timezone - useTimezone, date utilities
26
+ * /offline - useOffline, OfflineBanner
27
+ * /storage - storageRepository, useStorageState
28
+ * /filesystem - useFilesystem, Directory
29
+ * /media - MediaPickerService
30
+ * /image - AtomicImage, ImageGallery
31
+ * /tanstack - TanstackProvider
32
+ * /loading - LoadingProvider, useGlobalLoading
33
+ * /haptics - HapticService, useHaptics
34
+ * /onboarding - OnboardingScreen
35
+ * /gallery - gallerySaveService
36
+ * /carousel - Carousel components
37
+ * /init - createAppInitializer, createEnvConfig
38
+ * /device - DeviceService, useDeviceInfo
7
39
  */
8
40
 
9
- // =============================================================================
10
- // THEME EXPORTS
11
- // =============================================================================
12
- export * from "./theme";
13
-
14
- // =============================================================================
15
- // TYPOGRAPHY EXPORTS
16
- // =============================================================================
17
- export * from "./typography";
18
-
19
- // =============================================================================
20
- // RESPONSIVE EXPORTS
21
- // =============================================================================
22
- export * from "./responsive";
23
-
24
- // =============================================================================
25
- // DEVICE EXPORTS
26
- // =============================================================================
27
- export * from "./device";
28
-
29
- // =============================================================================
30
- // ATOMS EXPORTS
31
- // =============================================================================
32
- export * from "./atoms";
33
-
34
- // =============================================================================
35
- // LAYOUTS EXPORTS
36
- // =============================================================================
37
- export * from "./layouts";
38
-
39
- // =============================================================================
40
- // MOLECULES EXPORTS
41
- // =============================================================================
42
- export * from "./molecules";
43
-
44
- // =============================================================================
45
- // ORGANISMS EXPORTS
46
- // =============================================================================
47
- export * from "./organisms";
48
-
49
- // =============================================================================
50
- // SAFE AREA EXPORTS
51
- // =============================================================================
52
- export * from "./safe-area";
53
-
54
- // =============================================================================
55
- // EXCEPTION EXPORTS
56
- // =============================================================================
57
- export * from "./exception";
58
-
59
- // =============================================================================
60
- // INFINITE SCROLL EXPORTS
61
- // =============================================================================
62
- export * from "./infinite-scroll";
63
-
64
- // =============================================================================
65
- // UUID EXPORTS
66
- // =============================================================================
67
- export * from "./uuid";
68
-
69
- // =============================================================================
70
- // TIMEZONE EXPORTS
71
- // =============================================================================
72
- export * from "./timezone";
73
-
74
- // =============================================================================
75
- // OFFLINE EXPORTS
76
- // =============================================================================
77
- export * from "./offline";
78
-
79
- // =============================================================================
80
- // IMAGE EXPORTS
81
- // =============================================================================
82
- export * from "./image";
83
-
84
- // =============================================================================
85
- // HAPTICS EXPORTS
86
- // =============================================================================
87
- export * from "./haptics";
88
-
89
- // =============================================================================
90
- // MEDIA EXPORTS
91
- // =============================================================================
92
- export * from "./media";
93
-
94
- // =============================================================================
95
- // VARIANT UTILITIES
96
- // =============================================================================
97
- export * from "./presentation/utils/variants";
98
-
99
- // =============================================================================
100
- // UTILITIES
101
- // =============================================================================
102
- export * from "./utilities";
103
-
104
- // =============================================================================
105
- // UTILS EXPORTS (Logger, formatters, validators)
106
- // =============================================================================
107
- export { logger, Logger } from "./utils/logger";
108
- export type { LoggerConfig } from "./utils/logger";
109
-
110
- // =============================================================================
111
- // STORAGE EXPORTS
112
- // =============================================================================
113
- export * from "./storage";
114
-
115
- // =============================================================================
116
- // ONBOARDING EXPORTS
117
- // =============================================================================
118
- export * from "./onboarding";
119
-
120
- // =============================================================================
121
- // FILESYSTEM EXPORTS
122
- // =============================================================================
123
- export * from "./filesystem";
124
-
125
- // =============================================================================
126
- // TANSTACK EXPORTS
127
- // =============================================================================
128
- export * from "./tanstack";
129
-
130
- // =============================================================================
131
- // LOADING EXPORTS
132
- // =============================================================================
133
- export * from "./loading";
134
-
135
- // =============================================================================
136
- // INIT EXPORTS
137
- // =============================================================================
138
- export * from "./init";
139
-
140
- // =============================================================================
141
- // GALLERY EXPORTS
142
- // =============================================================================
143
- export * from "./gallery";
144
-
145
- // =============================================================================
146
- // CAROUSEL EXPORTS
147
- // =============================================================================
148
- export * from "./carousel";
41
+ throw new Error(
42
+ '[@umituz/react-native-design-system] Barrel import is disabled. ' +
43
+ 'Use sub-path imports instead: e.g. "@umituz/react-native-design-system/theme"'
44
+ );