@umituz/react-native-design-system 4.25.31 → 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 +141 -29
- package/src/atoms/index.ts +2 -2
- package/src/index.ts +39 -143
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "4.25.
|
|
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",
|
|
@@ -12,34 +12,146 @@
|
|
|
12
12
|
"require": "./src/index.ts",
|
|
13
13
|
"default": "./src/index.ts"
|
|
14
14
|
},
|
|
15
|
-
"./atoms":
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"./
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"./
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"./
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"./
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"./
|
|
41
|
-
|
|
42
|
-
|
|
15
|
+
"./atoms": {
|
|
16
|
+
"react-native": "./src/atoms/index.ts",
|
|
17
|
+
"types": "./src/atoms/index.ts",
|
|
18
|
+
"default": "./src/atoms/index.ts"
|
|
19
|
+
},
|
|
20
|
+
"./molecules": {
|
|
21
|
+
"react-native": "./src/molecules/index.ts",
|
|
22
|
+
"types": "./src/molecules/index.ts",
|
|
23
|
+
"default": "./src/molecules/index.ts"
|
|
24
|
+
},
|
|
25
|
+
"./organisms": {
|
|
26
|
+
"react-native": "./src/organisms/index.ts",
|
|
27
|
+
"types": "./src/organisms/index.ts",
|
|
28
|
+
"default": "./src/organisms/index.ts"
|
|
29
|
+
},
|
|
30
|
+
"./theme": {
|
|
31
|
+
"react-native": "./src/theme/index.ts",
|
|
32
|
+
"types": "./src/theme/index.ts",
|
|
33
|
+
"default": "./src/theme/index.ts"
|
|
34
|
+
},
|
|
35
|
+
"./typography": {
|
|
36
|
+
"react-native": "./src/typography/index.ts",
|
|
37
|
+
"types": "./src/typography/index.ts",
|
|
38
|
+
"default": "./src/typography/index.ts"
|
|
39
|
+
},
|
|
40
|
+
"./responsive": {
|
|
41
|
+
"react-native": "./src/responsive/index.ts",
|
|
42
|
+
"types": "./src/responsive/index.ts",
|
|
43
|
+
"default": "./src/responsive/index.ts"
|
|
44
|
+
},
|
|
45
|
+
"./layouts": {
|
|
46
|
+
"react-native": "./src/layouts/index.ts",
|
|
47
|
+
"types": "./src/layouts/index.ts",
|
|
48
|
+
"default": "./src/layouts/index.ts"
|
|
49
|
+
},
|
|
50
|
+
"./safe-area": {
|
|
51
|
+
"react-native": "./src/safe-area/index.ts",
|
|
52
|
+
"types": "./src/safe-area/index.ts",
|
|
53
|
+
"default": "./src/safe-area/index.ts"
|
|
54
|
+
},
|
|
55
|
+
"./device": {
|
|
56
|
+
"react-native": "./src/device/index.ts",
|
|
57
|
+
"types": "./src/device/index.ts",
|
|
58
|
+
"default": "./src/device/index.ts"
|
|
59
|
+
},
|
|
60
|
+
"./exception": {
|
|
61
|
+
"react-native": "./src/exception/index.ts",
|
|
62
|
+
"types": "./src/exception/index.ts",
|
|
63
|
+
"default": "./src/exception/index.ts"
|
|
64
|
+
},
|
|
65
|
+
"./image": {
|
|
66
|
+
"react-native": "./src/image/index.ts",
|
|
67
|
+
"types": "./src/image/index.ts",
|
|
68
|
+
"default": "./src/image/index.ts"
|
|
69
|
+
},
|
|
70
|
+
"./timezone": {
|
|
71
|
+
"react-native": "./src/timezone/index.ts",
|
|
72
|
+
"types": "./src/timezone/index.ts",
|
|
73
|
+
"default": "./src/timezone/index.ts"
|
|
74
|
+
},
|
|
75
|
+
"./offline": {
|
|
76
|
+
"react-native": "./src/offline/index.ts",
|
|
77
|
+
"types": "./src/offline/index.ts",
|
|
78
|
+
"default": "./src/offline/index.ts"
|
|
79
|
+
},
|
|
80
|
+
"./onboarding": {
|
|
81
|
+
"react-native": "./src/onboarding/index.ts",
|
|
82
|
+
"types": "./src/onboarding/index.ts",
|
|
83
|
+
"default": "./src/onboarding/index.ts"
|
|
84
|
+
},
|
|
85
|
+
"./storage": {
|
|
86
|
+
"react-native": "./src/storage/index.ts",
|
|
87
|
+
"types": "./src/storage/index.ts",
|
|
88
|
+
"default": "./src/storage/index.ts"
|
|
89
|
+
},
|
|
90
|
+
"./filesystem": {
|
|
91
|
+
"react-native": "./src/filesystem/index.ts",
|
|
92
|
+
"types": "./src/filesystem/index.ts",
|
|
93
|
+
"default": "./src/filesystem/index.ts"
|
|
94
|
+
},
|
|
95
|
+
"./media": {
|
|
96
|
+
"react-native": "./src/media/index.ts",
|
|
97
|
+
"types": "./src/media/index.ts",
|
|
98
|
+
"default": "./src/media/index.ts"
|
|
99
|
+
},
|
|
100
|
+
"./tanstack": {
|
|
101
|
+
"react-native": "./src/tanstack/index.ts",
|
|
102
|
+
"types": "./src/tanstack/index.ts",
|
|
103
|
+
"default": "./src/tanstack/index.ts"
|
|
104
|
+
},
|
|
105
|
+
"./loading": {
|
|
106
|
+
"react-native": "./src/loading/index.ts",
|
|
107
|
+
"types": "./src/loading/index.ts",
|
|
108
|
+
"default": "./src/loading/index.ts"
|
|
109
|
+
},
|
|
110
|
+
"./haptics": {
|
|
111
|
+
"react-native": "./src/haptics/index.ts",
|
|
112
|
+
"types": "./src/haptics/index.ts",
|
|
113
|
+
"default": "./src/haptics/index.ts"
|
|
114
|
+
},
|
|
115
|
+
"./carousel": {
|
|
116
|
+
"react-native": "./src/carousel/index.ts",
|
|
117
|
+
"types": "./src/carousel/index.ts",
|
|
118
|
+
"default": "./src/carousel/index.ts"
|
|
119
|
+
},
|
|
120
|
+
"./gallery": {
|
|
121
|
+
"react-native": "./src/gallery/index.ts",
|
|
122
|
+
"types": "./src/gallery/index.ts",
|
|
123
|
+
"default": "./src/gallery/index.ts"
|
|
124
|
+
},
|
|
125
|
+
"./init": {
|
|
126
|
+
"react-native": "./src/init/index.ts",
|
|
127
|
+
"types": "./src/init/index.ts",
|
|
128
|
+
"default": "./src/init/index.ts"
|
|
129
|
+
},
|
|
130
|
+
"./uuid": {
|
|
131
|
+
"react-native": "./src/uuid/index.ts",
|
|
132
|
+
"types": "./src/uuid/index.ts",
|
|
133
|
+
"default": "./src/uuid/index.ts"
|
|
134
|
+
},
|
|
135
|
+
"./infinite-scroll": {
|
|
136
|
+
"react-native": "./src/infinite-scroll/index.ts",
|
|
137
|
+
"types": "./src/infinite-scroll/index.ts",
|
|
138
|
+
"default": "./src/infinite-scroll/index.ts"
|
|
139
|
+
},
|
|
140
|
+
"./utilities": {
|
|
141
|
+
"react-native": "./src/utilities/index.ts",
|
|
142
|
+
"types": "./src/utilities/index.ts",
|
|
143
|
+
"default": "./src/utilities/index.ts"
|
|
144
|
+
},
|
|
145
|
+
"./utils": {
|
|
146
|
+
"react-native": "./src/utils/logger.ts",
|
|
147
|
+
"types": "./src/utils/logger.ts",
|
|
148
|
+
"default": "./src/utils/logger.ts"
|
|
149
|
+
},
|
|
150
|
+
"./variants": {
|
|
151
|
+
"react-native": "./src/presentation/utils/variants.ts",
|
|
152
|
+
"types": "./src/presentation/utils/variants.ts",
|
|
153
|
+
"default": "./src/presentation/utils/variants.ts"
|
|
154
|
+
},
|
|
43
155
|
"./package.json": "./package.json"
|
|
44
156
|
},
|
|
45
157
|
"scripts": {
|
package/src/atoms/index.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
*
|
|
6
|
-
*
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
+
);
|