@umituz/react-native-design-system 1.5.59 → 1.5.61
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 +4 -2
- package/src/index.ts +36 -175
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.61",
|
|
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": "./src/index.ts",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"import": "./src/index.ts",
|
|
11
11
|
"require": "./src/index.ts",
|
|
12
12
|
"default": "./src/index.ts"
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"./src/index.ts": "./src/index.ts",
|
|
15
|
+
"./package.json": "./package.json"
|
|
14
16
|
},
|
|
15
17
|
"scripts": {
|
|
16
18
|
"typecheck": "npx --yes -p typescript tsc --noEmit --skipLibCheck",
|
package/src/index.ts
CHANGED
|
@@ -1,187 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @umituz/react-native-design-system
|
|
3
|
+
*
|
|
4
|
+
* ⚠️ DEPRECATED: This package is deprecated.
|
|
5
|
+
* Please import directly from individual packages:
|
|
6
|
+
* - @umituz/react-native-design-system-atoms
|
|
7
|
+
* - @umituz/react-native-design-system-molecules
|
|
8
|
+
* - @umituz/react-native-design-system-organisms
|
|
9
|
+
* - @umituz/react-native-design-system-theme
|
|
10
|
+
* - @umituz/react-native-design-system-responsive
|
|
11
|
+
* - @umituz/react-native-design-system-typography
|
|
12
|
+
*
|
|
13
|
+
* This package only exports its own utilities:
|
|
14
|
+
* - useCommonStyles
|
|
15
|
+
* - variants utilities
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
// =============================================================================
|
|
19
|
+
// COMMON STYLES - Own utility
|
|
1
20
|
// =============================================================================
|
|
2
|
-
// ATOMS - Atomic Design Components
|
|
3
|
-
// =============================================================================
|
|
4
|
-
export {
|
|
5
|
-
AtomicButton,
|
|
6
|
-
AtomicText,
|
|
7
|
-
AtomicCard,
|
|
8
|
-
AtomicInput,
|
|
9
|
-
AtomicTextArea,
|
|
10
|
-
AtomicPicker,
|
|
11
|
-
AtomicIcon,
|
|
12
|
-
AtomicImage,
|
|
13
|
-
AtomicSwitch,
|
|
14
|
-
AtomicBadge,
|
|
15
|
-
AtomicFormError,
|
|
16
|
-
AtomicAvatar,
|
|
17
|
-
AtomicChip,
|
|
18
|
-
AtomicDivider,
|
|
19
|
-
AtomicProgress,
|
|
20
|
-
AtomicAvatarGroup,
|
|
21
|
-
AtomicFab,
|
|
22
|
-
AtomicFilter,
|
|
23
|
-
AtomicTouchable,
|
|
24
|
-
AtomicNumberInput,
|
|
25
|
-
AtomicDatePicker,
|
|
26
|
-
AtomicSearchBar,
|
|
27
|
-
AtomicSort,
|
|
28
|
-
type AtomicButtonProps,
|
|
29
|
-
type AtomicTextProps,
|
|
30
|
-
type AtomicCardProps,
|
|
31
|
-
type AtomicInputProps,
|
|
32
|
-
type AtomicTextAreaProps,
|
|
33
|
-
type AtomicPickerProps,
|
|
34
|
-
type AtomicIconProps,
|
|
35
|
-
type AtomicImageProps,
|
|
36
|
-
type AtomicSwitchProps,
|
|
37
|
-
type AtomicBadgeProps,
|
|
38
|
-
type AtomicFormErrorProps,
|
|
39
|
-
type AtomicAvatarProps,
|
|
40
|
-
type AtomicChipProps,
|
|
41
|
-
type AtomicDividerProps,
|
|
42
|
-
type AtomicProgressProps,
|
|
43
|
-
type AtomicAvatarGroupProps,
|
|
44
|
-
type AtomicFabProps,
|
|
45
|
-
type AtomicFilterProps,
|
|
46
|
-
type AtomicTouchableProps,
|
|
47
|
-
type AtomicNumberInputProps,
|
|
48
|
-
type AtomicDatePickerProps,
|
|
49
|
-
type AtomicSearchBarProps,
|
|
50
|
-
type AtomicSortProps,
|
|
51
|
-
type IconName,
|
|
52
|
-
type IconSize,
|
|
53
|
-
type IconColor,
|
|
54
|
-
} from '@umituz/react-native-design-system-atoms';
|
|
55
|
-
|
|
56
|
-
// Icon alias
|
|
57
21
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} from '@umituz/react-native-design-system-atoms';
|
|
61
|
-
|
|
62
|
-
// =============================================================================
|
|
63
|
-
// MOLECULES - Composite Components
|
|
64
|
-
// =============================================================================
|
|
65
|
-
export {
|
|
66
|
-
FormField,
|
|
67
|
-
ListItem,
|
|
68
|
-
SearchBar,
|
|
69
|
-
SectionCard,
|
|
70
|
-
IconContainer,
|
|
71
|
-
ScreenHeader,
|
|
72
|
-
EmptyState,
|
|
73
|
-
SectionHeader,
|
|
74
|
-
SectionContainer,
|
|
75
|
-
GridContainer,
|
|
76
|
-
ConfirmationModal,
|
|
77
|
-
useConfirmationModal,
|
|
78
|
-
type FormFieldProps,
|
|
79
|
-
type ListItemProps,
|
|
80
|
-
type SearchBarProps,
|
|
81
|
-
type ScreenHeaderProps,
|
|
82
|
-
type ConfirmationModalProps,
|
|
83
|
-
type ConfirmationModalVariant,
|
|
84
|
-
} from '@umituz/react-native-design-system-molecules';
|
|
85
|
-
|
|
86
|
-
// ConfirmationModal alias
|
|
87
|
-
export {
|
|
88
|
-
ConfirmationModal as AtomicConfirmationModal,
|
|
89
|
-
type ConfirmationModalProps as AtomicConfirmationModalProps,
|
|
90
|
-
} from '@umituz/react-native-design-system-molecules';
|
|
22
|
+
useCommonStyles,
|
|
23
|
+
} from './presentation/tokens/commonStyles';
|
|
91
24
|
|
|
92
25
|
// =============================================================================
|
|
93
|
-
//
|
|
26
|
+
// VARIANTS UTILITIES - Own utilities
|
|
94
27
|
// =============================================================================
|
|
95
28
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
type ScreenLayoutProps,
|
|
101
|
-
type FormContainerProps,
|
|
102
|
-
} from '@umituz/react-native-design-system-organisms';
|
|
29
|
+
createVariants,
|
|
30
|
+
type VariantConfig,
|
|
31
|
+
type VariantProps,
|
|
32
|
+
} from './presentation/utils/variants/core';
|
|
103
33
|
|
|
104
|
-
// =============================================================================
|
|
105
|
-
// TYPOGRAPHY TYPES
|
|
106
|
-
// =============================================================================
|
|
107
|
-
export type {
|
|
108
|
-
TextStyleVariant,
|
|
109
|
-
ColorVariant,
|
|
110
|
-
} from '@umituz/react-native-design-system-typography';
|
|
111
|
-
|
|
112
|
-
// =============================================================================
|
|
113
|
-
// THEME & DESIGN TOKENS
|
|
114
|
-
// =============================================================================
|
|
115
34
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
withAlpha,
|
|
121
|
-
lightColors,
|
|
122
|
-
darkColors,
|
|
123
|
-
getColorPalette,
|
|
124
|
-
useAppDesignTokens,
|
|
125
|
-
useDesignSystemTheme,
|
|
126
|
-
useTheme,
|
|
127
|
-
lightTheme,
|
|
128
|
-
darkTheme,
|
|
129
|
-
createResponsiveValue,
|
|
130
|
-
ThemeStorage,
|
|
131
|
-
type DesignTokens,
|
|
132
|
-
type ThemeMode,
|
|
133
|
-
type ColorPalette,
|
|
134
|
-
type BaseTokens,
|
|
135
|
-
type Spacing,
|
|
136
|
-
type Typography,
|
|
137
|
-
type Borders,
|
|
138
|
-
type Theme,
|
|
139
|
-
type ExtendedColorPalette,
|
|
140
|
-
} from '@umituz/react-native-design-system-theme';
|
|
35
|
+
createAdvancedVariants,
|
|
36
|
+
type AdvancedVariantConfig,
|
|
37
|
+
type CompoundVariant,
|
|
38
|
+
} from './presentation/utils/variants/compound';
|
|
141
39
|
|
|
142
|
-
// =============================================================================
|
|
143
|
-
// COMMON STYLES
|
|
144
|
-
// =============================================================================
|
|
145
40
|
export {
|
|
146
|
-
|
|
147
|
-
} from './presentation/
|
|
41
|
+
combineStyles,
|
|
42
|
+
} from './presentation/utils/variants/helpers';
|
|
148
43
|
|
|
149
|
-
// =============================================================================
|
|
150
|
-
// RESPONSIVE UTILITIES
|
|
151
|
-
// =============================================================================
|
|
152
44
|
export {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
getMinTouchTarget,
|
|
158
|
-
useResponsive,
|
|
159
|
-
useResponsiveSizes,
|
|
160
|
-
useDeviceType,
|
|
161
|
-
getScreenDimensions,
|
|
162
|
-
isSmallPhone,
|
|
163
|
-
isTablet,
|
|
164
|
-
getResponsiveLogoSize,
|
|
165
|
-
getResponsiveInputHeight,
|
|
166
|
-
getResponsiveHorizontalPadding,
|
|
167
|
-
getResponsiveBottomPosition,
|
|
168
|
-
getResponsiveFABPosition,
|
|
169
|
-
getResponsiveModalMaxHeight,
|
|
170
|
-
getResponsiveMinModalHeight,
|
|
171
|
-
getResponsiveIconContainerSize,
|
|
172
|
-
getResponsiveGridColumns,
|
|
173
|
-
getResponsiveMaxWidth,
|
|
174
|
-
getResponsiveFontSize,
|
|
175
|
-
isLandscape,
|
|
176
|
-
getKeyboardBehavior,
|
|
177
|
-
getDeviceType,
|
|
178
|
-
getMinTouchTargetSize,
|
|
179
|
-
getSpacingMultiplier,
|
|
180
|
-
getOnboardingIconMarginTop,
|
|
181
|
-
getOnboardingIconMarginBottom,
|
|
182
|
-
getOnboardingTitleMarginBottom,
|
|
183
|
-
getOnboardingTextPadding,
|
|
184
|
-
getOnboardingDescriptionMarginTop,
|
|
185
|
-
type UseResponsiveReturn,
|
|
186
|
-
type DeviceType,
|
|
187
|
-
} from '@umituz/react-native-design-system-responsive';
|
|
45
|
+
conditionalStyle,
|
|
46
|
+
responsiveStyle,
|
|
47
|
+
combineStyles,
|
|
48
|
+
} from './presentation/utils/variants/helpers';
|