@umituz/react-native-design-system 2.9.67 → 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.67",
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",
@@ -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: 2 on top, 2 on-bottom, etc.
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++) {