@umituz/react-native-design-system 1.5.38 → 1.5.40
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 +1 -1
- package/src/index.ts +2 -82
- package/src/presentation/organisms/AppHeader.tsx +2 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.40",
|
|
4
4
|
"description": "Universal design system for React Native apps - Domain-Driven Design architecture with Material Design 3 components",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
package/src/index.ts
CHANGED
|
@@ -1,73 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @umituz/react-native-design-system - Public API
|
|
3
|
-
*
|
|
4
|
-
* Universal UI component library for React Native apps
|
|
5
|
-
* Domain-Driven Design (DDD) Architecture
|
|
6
|
-
*
|
|
7
|
-
* This is the SINGLE SOURCE OF TRUTH for all UI components.
|
|
8
|
-
* ALL imports from the design system MUST go through this file.
|
|
9
|
-
*
|
|
10
|
-
* Architecture:
|
|
11
|
-
* - @umituz/react-native-design-system-atoms: Primitive UI components (AtomicButton, AtomicText, etc.)
|
|
12
|
-
* - @umituz/react-native-design-system-molecules: Composite components (SearchBar, ListItem, etc.)
|
|
13
|
-
* - @umituz/react-native-design-system-organisms: Complex patterns (ScreenLayout, AppHeader, FormContainer)
|
|
14
|
-
* - presentation/tokens: Design tokens (colors, typography, spacing, etc.)
|
|
15
|
-
* - presentation/utils: Utility functions and helpers
|
|
16
|
-
*
|
|
17
|
-
* Usage:
|
|
18
|
-
* import { AtomicButton, AtomicFilter, AtomicTouchable, SearchBar, STATIC_TOKENS } from '@umituz/react-native-design-system';
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
// =============================================================================
|
|
22
|
-
// ATOMS - Primitive UI Components
|
|
23
|
-
// Re-exported from @umituz/react-native-design-system-atoms
|
|
24
|
-
// =============================================================================
|
|
25
|
-
|
|
26
1
|
export * from '@umituz/react-native-design-system-atoms';
|
|
27
2
|
|
|
28
|
-
// Re-export typography types for convenience (from @umituz/react-native-design-system-typography)
|
|
29
3
|
export type {
|
|
30
4
|
TextStyleVariant,
|
|
31
5
|
ColorVariant,
|
|
32
6
|
} from '@umituz/react-native-design-system-typography';
|
|
33
7
|
|
|
34
|
-
// =============================================================================
|
|
35
|
-
// MOLECULES - Composite Components
|
|
36
|
-
// Re-exported from @umituz/react-native-design-system-molecules
|
|
37
|
-
// =============================================================================
|
|
38
|
-
|
|
39
8
|
export * from '@umituz/react-native-design-system-molecules';
|
|
40
9
|
|
|
41
|
-
// =============================================================================
|
|
42
|
-
// ORGANISMS - Complex Patterns
|
|
43
|
-
// Re-exported from @umituz/react-native-design-system-organisms
|
|
44
|
-
// =============================================================================
|
|
45
|
-
|
|
46
10
|
export * from '@umituz/react-native-design-system-organisms';
|
|
47
11
|
|
|
48
|
-
// Note: FeedbackModal moved to @domains/feedback
|
|
49
|
-
// Import from feedback domain: import { FeedbackModal } from '@domains/feedback';
|
|
50
|
-
|
|
51
|
-
// =============================================================================
|
|
52
|
-
// THEME-RELATED EXPORTS - Re-exported from @umituz/react-native-design-system-theme
|
|
53
|
-
// =============================================================================
|
|
54
|
-
// All tokens, colors, and theme utilities come from @umituz/react-native-design-system-theme
|
|
55
|
-
// Design system does NOT define any tokens - it only uses them from theme package
|
|
56
|
-
|
|
57
12
|
export {
|
|
58
|
-
// Token factory
|
|
59
13
|
createDesignTokens,
|
|
60
14
|
STATIC_DESIGN_TOKENS,
|
|
61
15
|
BASE_TOKENS,
|
|
62
16
|
STATIC_TOKENS,
|
|
63
|
-
|
|
64
|
-
// Color utilities
|
|
65
17
|
withAlpha,
|
|
66
18
|
lightColors,
|
|
67
19
|
darkColors,
|
|
68
20
|
getColorPalette,
|
|
69
|
-
|
|
70
|
-
// Type exports
|
|
71
21
|
type DesignTokens,
|
|
72
22
|
type ThemeMode,
|
|
73
23
|
type ColorPalette,
|
|
@@ -75,20 +25,14 @@ export {
|
|
|
75
25
|
type Spacing,
|
|
76
26
|
type Typography,
|
|
77
27
|
type Borders,
|
|
28
|
+
useAppDesignTokens,
|
|
29
|
+
useDesignSystemTheme,
|
|
78
30
|
} from '@umituz/react-native-design-system-theme';
|
|
79
31
|
|
|
80
|
-
// Hook for dynamic theme-aware tokens (re-exported from theme package)
|
|
81
|
-
export { useAppDesignTokens } from '@umituz/react-native-design-system-theme';
|
|
82
|
-
|
|
83
32
|
export {
|
|
84
33
|
useCommonStyles,
|
|
85
34
|
} from './presentation/tokens/commonStyles';
|
|
86
35
|
|
|
87
|
-
// =============================================================================
|
|
88
|
-
// UTILITIES - Helper Functions & Responsive Utilities
|
|
89
|
-
// Re-exported from @umituz/react-native-design-system-responsive
|
|
90
|
-
// =============================================================================
|
|
91
|
-
|
|
92
36
|
export {
|
|
93
37
|
IOS_HIG,
|
|
94
38
|
ANDROID_MATERIAL,
|
|
@@ -125,27 +69,3 @@ export {
|
|
|
125
69
|
getOnboardingDescriptionMarginTop,
|
|
126
70
|
DeviceType,
|
|
127
71
|
} from '@umituz/react-native-design-system-responsive';
|
|
128
|
-
|
|
129
|
-
// =============================================================================
|
|
130
|
-
// THEME MANAGEMENT - Global Theme Store
|
|
131
|
-
// =============================================================================
|
|
132
|
-
|
|
133
|
-
// Theme management moved to @umituz/react-native-design-system-theme
|
|
134
|
-
export {
|
|
135
|
-
useDesignSystemTheme,
|
|
136
|
-
} from '@umituz/react-native-design-system-theme';
|
|
137
|
-
|
|
138
|
-
// =============================================================================
|
|
139
|
-
// ICONS DOMAIN - Universal Icon System
|
|
140
|
-
// =============================================================================
|
|
141
|
-
// Icon components are now part of @umituz/react-native-design-system-atoms
|
|
142
|
-
// Import directly: import { AtomicIcon, IconName, IconSize, IconColor } from '@umituz/react-native-design-system-atoms';
|
|
143
|
-
|
|
144
|
-
// Re-export for backward compatibility
|
|
145
|
-
export {
|
|
146
|
-
AtomicIcon as Icon,
|
|
147
|
-
type AtomicIconProps as IconProps,
|
|
148
|
-
type AtomicIconSize as IconSize,
|
|
149
|
-
type AtomicIconColor as IconColor,
|
|
150
|
-
type AtomicIconName as IconName,
|
|
151
|
-
} from '@umituz/react-native-design-system-atoms';
|
|
@@ -12,24 +12,13 @@ import React from 'react';
|
|
|
12
12
|
import { View, ViewStyle, SafeAreaView } from 'react-native';
|
|
13
13
|
import { useAppDesignTokens } from '@umituz/react-native-design-system-theme';
|
|
14
14
|
import { AtomicText, AtomicButton, AtomicIcon } from '@umituz/react-native-design-system-atoms';
|
|
15
|
-
import type { IconName } from '@umituz/react-native-design-system-atoms';
|
|
16
15
|
|
|
17
|
-
// =============================================================================
|
|
18
|
-
// TYPE DEFINITIONS
|
|
19
|
-
// =============================================================================
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* AppHeader component props
|
|
23
|
-
*
|
|
24
|
-
* leftIcon/rightIcon: Any MaterialIcons name
|
|
25
|
-
* @see https://fonts.google.com/icons
|
|
26
|
-
*/
|
|
27
16
|
export interface AppHeaderProps {
|
|
28
17
|
title: string;
|
|
29
18
|
subtitle?: string;
|
|
30
|
-
leftIcon?:
|
|
19
|
+
leftIcon?: string;
|
|
31
20
|
onLeftPress?: () => void;
|
|
32
|
-
rightIcon?:
|
|
21
|
+
rightIcon?: string;
|
|
33
22
|
onRightPress?: () => void;
|
|
34
23
|
showShadow?: boolean;
|
|
35
24
|
backgroundColor?: string;
|