@kaushverse/pickify 1.2.4 → 1.2.6

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/dist/index.js CHANGED
@@ -745,11 +745,11 @@ var FloatingButton = class extends import_react4.default.Component {
745
745
  let translateX = 0;
746
746
  let translateY = 0;
747
747
  if (mode === "vertical") {
748
- translateY = -70 * (index + 1);
748
+ translateY = -60 * (index + 1);
749
749
  translateX = 0;
750
750
  }
751
751
  if (mode === "horizontal") {
752
- translateX = -70 * (index + 1);
752
+ translateX = -60 * (index + 1);
753
753
  translateY = 0;
754
754
  }
755
755
  if (mode === "circle") {
@@ -757,7 +757,8 @@ var FloatingButton = class extends import_react4.default.Component {
757
757
  const startAngle = -Math.PI / 3;
758
758
  const endAngle = -Math.PI * 0.8;
759
759
  const angle = startAngle + index / (totalActions - 1 || 1) * (endAngle - startAngle);
760
- const adjustedRadius = radius * 0.65;
760
+ const baseRadius = radius * 0.65;
761
+ const adjustedRadius = index === actions.length - 1 ? baseRadius * 0.8 : baseRadius;
761
762
  translateX = adjustedRadius * Math.cos(angle);
762
763
  translateY = adjustedRadius * Math.sin(angle);
763
764
  }
@@ -907,8 +908,8 @@ var defaultStyles4 = import_react_native5.StyleSheet.create({
907
908
  position: "absolute",
908
909
  width: 200,
909
910
  height: 200,
910
- right: -60,
911
- bottom: -80,
911
+ right: -70,
912
+ bottom: -70,
912
913
  alignItems: "center",
913
914
  justifyContent: "center"
914
915
  },
package/dist/index.mjs CHANGED
@@ -729,11 +729,11 @@ var FloatingButton = class extends React4.Component {
729
729
  let translateX = 0;
730
730
  let translateY = 0;
731
731
  if (mode === "vertical") {
732
- translateY = -70 * (index + 1);
732
+ translateY = -60 * (index + 1);
733
733
  translateX = 0;
734
734
  }
735
735
  if (mode === "horizontal") {
736
- translateX = -70 * (index + 1);
736
+ translateX = -60 * (index + 1);
737
737
  translateY = 0;
738
738
  }
739
739
  if (mode === "circle") {
@@ -741,7 +741,8 @@ var FloatingButton = class extends React4.Component {
741
741
  const startAngle = -Math.PI / 3;
742
742
  const endAngle = -Math.PI * 0.8;
743
743
  const angle = startAngle + index / (totalActions - 1 || 1) * (endAngle - startAngle);
744
- const adjustedRadius = radius * 0.65;
744
+ const baseRadius = radius * 0.65;
745
+ const adjustedRadius = index === actions.length - 1 ? baseRadius * 0.8 : baseRadius;
745
746
  translateX = adjustedRadius * Math.cos(angle);
746
747
  translateY = adjustedRadius * Math.sin(angle);
747
748
  }
@@ -891,8 +892,8 @@ var defaultStyles4 = StyleSheet5.create({
891
892
  position: "absolute",
892
893
  width: 200,
893
894
  height: 200,
894
- right: -60,
895
- bottom: -80,
895
+ right: -70,
896
+ bottom: -70,
896
897
  alignItems: "center",
897
898
  justifyContent: "center"
898
899
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaushverse/pickify",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "A fully customizable React Native picker with search, multi-select, grouping, and async support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",