@umituz/react-native-design-system 2.5.36 → 2.5.38
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": "2.5.
|
|
3
|
+
"version": "2.5.38",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
package/src/atoms/AtomicIcon.tsx
CHANGED
|
@@ -129,8 +129,13 @@ export const AtomicIcon: React.FC<AtomicIconProps> = React.memo(({
|
|
|
129
129
|
? getSemanticColor(color, tokens)
|
|
130
130
|
: tokens.colors.textPrimary;
|
|
131
131
|
|
|
132
|
-
// Validate icon - use fallback
|
|
133
|
-
const
|
|
132
|
+
// Validate icon - use fallback and log warning in DEV if invalid
|
|
133
|
+
const isInvalidIcon = name && !(name in Ionicons.glyphMap);
|
|
134
|
+
const iconName = name && !isInvalidIcon ? name : FALLBACK_ICON;
|
|
135
|
+
|
|
136
|
+
if (__DEV__ && isInvalidIcon) {
|
|
137
|
+
console.warn(`[DesignSystem] Invalid icon name: "${name}". Falling back to "${FALLBACK_ICON}"`);
|
|
138
|
+
}
|
|
134
139
|
|
|
135
140
|
const iconElement = svgPath ? (
|
|
136
141
|
<Svg
|
|
@@ -197,6 +202,4 @@ const styles = StyleSheet.create({
|
|
|
197
202
|
},
|
|
198
203
|
});
|
|
199
204
|
|
|
200
|
-
// Legacy type alias for backward compatibility
|
|
201
|
-
export type IconProps = AtomicIconProps;
|
|
202
205
|
|
|
@@ -78,6 +78,7 @@ export interface UseResponsiveReturn {
|
|
|
78
78
|
modalMinHeight: number;
|
|
79
79
|
gridColumns: number;
|
|
80
80
|
spacingMultiplier: number;
|
|
81
|
+
tabBarConfig: ResponsiveTabBarConfig;
|
|
81
82
|
|
|
82
83
|
// Modal layouts (complete configurations)
|
|
83
84
|
modalLayout: ResponsiveModalLayout;
|
|
@@ -167,6 +168,7 @@ export const useResponsive = (): UseResponsiveReturn => {
|
|
|
167
168
|
modalMinHeight: getResponsiveMinModalHeight(),
|
|
168
169
|
gridColumns: getResponsiveGridColumns(),
|
|
169
170
|
spacingMultiplier: getSpacingMultiplier(),
|
|
171
|
+
tabBarConfig: getResponsiveTabBarConfig(insets),
|
|
170
172
|
|
|
171
173
|
// Modal layouts (complete configurations)
|
|
172
174
|
modalLayout: getResponsiveModalLayout(),
|