@umituz/react-native-design-system 2.9.66 → 2.9.68
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.68",
|
|
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",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"expo-crypto": ">=13.0.0",
|
|
79
79
|
"expo-device": ">=5.0.0",
|
|
80
80
|
"expo-font": ">=12.0.0",
|
|
81
|
+
"expo-haptics": ">=14.0.0",
|
|
81
82
|
"expo-image": ">=3.0.0",
|
|
82
83
|
"expo-image-picker": ">=14.0.0",
|
|
83
84
|
"expo-network": ">=8.0.0",
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
"expo-device": "~7.0.2",
|
|
130
131
|
"expo-file-system": "^19.0.21",
|
|
131
132
|
"expo-font": "~14.0.9",
|
|
133
|
+
"expo-haptics": "~14.0.8",
|
|
132
134
|
"expo-image": "~3.0.11",
|
|
133
135
|
"expo-localization": "~17.0.7",
|
|
134
136
|
"expo-network": "~8.0.0",
|
|
@@ -52,13 +52,17 @@ export const CircularMenu: React.FC<CircularMenuProps> = ({
|
|
|
52
52
|
{ ...actions[0], position: getBottomRowPosition("left") }, // Text to Image (Bottom Left)
|
|
53
53
|
{ ...actions[2], position: getBottomRowPosition("right") }, // Image to Video (Bottom Right)
|
|
54
54
|
];
|
|
55
|
+
} else if (actions.length === 2) {
|
|
56
|
+
// 2 items: place on bottom left and right of close button
|
|
57
|
+
return [
|
|
58
|
+
{ ...actions[0], position: getBottomRowPosition("left") },
|
|
59
|
+
{ ...actions[1], position: getBottomRowPosition("right") },
|
|
60
|
+
];
|
|
55
61
|
} else {
|
|
56
|
-
// Default:
|
|
57
|
-
// This is a fallback if actions change.
|
|
58
|
-
// For now, implementing simple distribute:
|
|
62
|
+
// Default: distribute items - top row first, then bottom
|
|
59
63
|
const topCount = Math.min(actions.length, 2);
|
|
60
64
|
const bottomCount = Math.max(0, actions.length - 2);
|
|
61
|
-
|
|
65
|
+
|
|
62
66
|
const mapped = [];
|
|
63
67
|
// Top row
|
|
64
68
|
for (let i = 0; i < topCount; i++) {
|