dhre-ui-kit 2.0.18 → 2.0.19
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.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +7 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7291,7 +7291,7 @@ const Checkbox = ({
|
|
|
7291
7291
|
reactNative.Pressable,
|
|
7292
7292
|
{
|
|
7293
7293
|
testID: "Checkbox-Press",
|
|
7294
|
-
|
|
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
|
));
|
|
@@ -10834,9 +10834,11 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
10834
10834
|
}).start();
|
|
10835
10835
|
};
|
|
10836
10836
|
const panResponder = reactNative.PanResponder.create({
|
|
10837
|
+
onStartShouldSetPanResponder: () => true,
|
|
10837
10838
|
onMoveShouldSetPanResponder: (e, gestureState) => {
|
|
10838
10839
|
return gestureState.dx !== 0;
|
|
10839
10840
|
},
|
|
10841
|
+
onPanResponderTerminationRequest: () => false,
|
|
10840
10842
|
onPanResponderMove: (evt, gestureState) => {
|
|
10841
10843
|
if (gestureState.dx > 0 && gestureState.dx <= value?.current - BUTTON_WIDTH - 8) {
|
|
10842
10844
|
translateX.setValue(gestureState.dx);
|
|
@@ -10872,6 +10874,9 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
10872
10874
|
} else {
|
|
10873
10875
|
resetAll();
|
|
10874
10876
|
}
|
|
10877
|
+
},
|
|
10878
|
+
onPanResponderTerminate: () => {
|
|
10879
|
+
resetAll();
|
|
10875
10880
|
}
|
|
10876
10881
|
});
|
|
10877
10882
|
const textColor = color.interpolate({
|