dhre-ui-kit 2.0.18 → 2.0.20

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/lib/index.mjs CHANGED
@@ -7255,7 +7255,7 @@ const Checkbox = ({
7255
7255
  Pressable,
7256
7256
  {
7257
7257
  testID: "Checkbox-Press",
7258
- onPress: handlePress,
7258
+ onPressIn: handlePress,
7259
7259
  disabled: disable,
7260
7260
  style: styles$w.checkboxContainer
7261
7261
  },
@@ -7267,7 +7267,7 @@ const Checkbox = ({
7267
7267
  variant: titleVariant,
7268
7268
  text: labelName,
7269
7269
  style: titleStyle,
7270
- onPress
7270
+ onPressIn: onPress
7271
7271
  }
7272
7272
  )
7273
7273
  ));
@@ -9922,7 +9922,8 @@ const styles$8 = StyleSheet.create({
9922
9922
  textAlign: "left"
9923
9923
  },
9924
9924
  dropdown: {
9925
- height: verticalScale(48),
9925
+ minHeight: verticalScale(48),
9926
+ paddingVertical: verticalScale(8),
9926
9927
  borderColor: theme.BORDER_PRIMARY["light"],
9927
9928
  borderWidth: 1,
9928
9929
  borderRadius: 0,
@@ -10798,9 +10799,11 @@ const CustomSlideButton = React.forwardRef(
10798
10799
  }).start();
10799
10800
  };
10800
10801
  const panResponder = PanResponder.create({
10802
+ onStartShouldSetPanResponder: () => true,
10801
10803
  onMoveShouldSetPanResponder: (e, gestureState) => {
10802
10804
  return gestureState.dx !== 0;
10803
10805
  },
10806
+ onPanResponderTerminationRequest: () => false,
10804
10807
  onPanResponderMove: (evt, gestureState) => {
10805
10808
  if (gestureState.dx > 0 && gestureState.dx <= value?.current - BUTTON_WIDTH - 8) {
10806
10809
  translateX.setValue(gestureState.dx);
@@ -10836,6 +10839,9 @@ const CustomSlideButton = React.forwardRef(
10836
10839
  } else {
10837
10840
  resetAll();
10838
10841
  }
10842
+ },
10843
+ onPanResponderTerminate: () => {
10844
+ resetAll();
10839
10845
  }
10840
10846
  });
10841
10847
  const textColor = color.interpolate({