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.
@@ -28,6 +28,7 @@ interface CustomDropdownProps {
28
28
  renderRightIcon?: (visible?: boolean) => JSX.Element | null;
29
29
  disable?: boolean;
30
30
  autoScroll?: boolean;
31
+ selectedTextProps?: import('react-native').TextProps;
31
32
  }
32
33
  declare const CustomDropdown: (props: CustomDropdownProps) => React.JSX.Element;
33
34
  export default CustomDropdown;
package/lib/index.js CHANGED
@@ -7291,7 +7291,7 @@ const Checkbox = ({
7291
7291
  reactNative.Pressable,
7292
7292
  {
7293
7293
  testID: "Checkbox-Press",
7294
- onPress: handlePress,
7294
+ onPressIn: handlePress,
7295
7295
  disabled: disable,
7296
7296
  style: styles$w.checkboxContainer
7297
7297
  },
@@ -7303,7 +7303,7 @@ const Checkbox = ({
7303
7303
  variant: titleVariant,
7304
7304
  text: labelName,
7305
7305
  style: titleStyle,
7306
- onPress
7306
+ onPressIn: onPress
7307
7307
  }
7308
7308
  )
7309
7309
  ));
@@ -9958,7 +9958,8 @@ const styles$8 = reactNative.StyleSheet.create({
9958
9958
  textAlign: "left"
9959
9959
  },
9960
9960
  dropdown: {
9961
- height: verticalScale(48),
9961
+ minHeight: verticalScale(48),
9962
+ paddingVertical: verticalScale(8),
9962
9963
  borderColor: theme.BORDER_PRIMARY["light"],
9963
9964
  borderWidth: 1,
9964
9965
  borderRadius: 0,
@@ -10834,9 +10835,11 @@ const CustomSlideButton = React__default["default"].forwardRef(
10834
10835
  }).start();
10835
10836
  };
10836
10837
  const panResponder = reactNative.PanResponder.create({
10838
+ onStartShouldSetPanResponder: () => true,
10837
10839
  onMoveShouldSetPanResponder: (e, gestureState) => {
10838
10840
  return gestureState.dx !== 0;
10839
10841
  },
10842
+ onPanResponderTerminationRequest: () => false,
10840
10843
  onPanResponderMove: (evt, gestureState) => {
10841
10844
  if (gestureState.dx > 0 && gestureState.dx <= value?.current - BUTTON_WIDTH - 8) {
10842
10845
  translateX.setValue(gestureState.dx);
@@ -10872,6 +10875,9 @@ const CustomSlideButton = React__default["default"].forwardRef(
10872
10875
  } else {
10873
10876
  resetAll();
10874
10877
  }
10878
+ },
10879
+ onPanResponderTerminate: () => {
10880
+ resetAll();
10875
10881
  }
10876
10882
  });
10877
10883
  const textColor = color.interpolate({