@umituz/react-native-design-system 2.9.33 → 2.9.35
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.9.
|
|
3
|
+
"version": "2.9.35",
|
|
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",
|
|
@@ -68,17 +68,17 @@ export const CircularMenu: React.FC<CircularMenuProps> = ({
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
// Bottom row (left/right)
|
|
71
|
-
if (bottomCount > 0) {
|
|
71
|
+
if (bottomCount > 0 && actions[2]) {
|
|
72
72
|
mapped.push({
|
|
73
73
|
...actions[2],
|
|
74
74
|
position: getBottomRowPosition("left")
|
|
75
|
-
})
|
|
75
|
+
});
|
|
76
76
|
}
|
|
77
|
-
if (bottomCount > 1) {
|
|
77
|
+
if (bottomCount > 1 && actions[3]) {
|
|
78
78
|
mapped.push({
|
|
79
79
|
...actions[3],
|
|
80
80
|
position: getBottomRowPosition("right")
|
|
81
|
-
})
|
|
81
|
+
});
|
|
82
82
|
}
|
|
83
83
|
return mapped;
|
|
84
84
|
}
|
|
@@ -106,15 +106,18 @@ export const CircularMenu: React.FC<CircularMenuProps> = ({
|
|
|
106
106
|
<CircularMenuBackground />
|
|
107
107
|
|
|
108
108
|
<View style={styles.itemsContainer}>
|
|
109
|
-
{layoutItems.map((item) =>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
{layoutItems.map((item) => {
|
|
110
|
+
if (!item.icon || !item.label || !item.onPress) return null;
|
|
111
|
+
return (
|
|
112
|
+
<View key={item.id} style={item.position as ViewStyle}>
|
|
113
|
+
<CircularMenuItem
|
|
114
|
+
icon={item.icon}
|
|
115
|
+
label={item.label}
|
|
116
|
+
onPress={item.onPress}
|
|
117
|
+
/>
|
|
118
|
+
</View>
|
|
119
|
+
);
|
|
120
|
+
})}
|
|
118
121
|
|
|
119
122
|
<View style={styles.closeButton}>
|
|
120
123
|
<CircularMenuCloseButton onPress={onClose} />
|