dhre-ui-kit 0.0.229 → 0.0.232
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.d.ts +1 -0
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -486,6 +486,7 @@ declare const CustomIcon: ({ icon, title, titleVariant, testId, onPress, contain
|
|
|
486
486
|
|
|
487
487
|
interface CustomLoaderProps {
|
|
488
488
|
loading: boolean;
|
|
489
|
+
loadingText?: string;
|
|
489
490
|
}
|
|
490
491
|
|
|
491
492
|
declare const _default$e: (props: CustomLoaderProps) => React$1.JSX.Element;
|
package/lib/index.js
CHANGED
|
@@ -780,7 +780,7 @@ const createStyles$3 = (theme) => {
|
|
|
780
780
|
});
|
|
781
781
|
};
|
|
782
782
|
|
|
783
|
-
const CustomLoader = ({ loading }) => {
|
|
783
|
+
const CustomLoader = ({ loading, loadingText = "Loading..." }) => {
|
|
784
784
|
const rotateAnim = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
785
785
|
const { theme, mode } = useTheme();
|
|
786
786
|
const styles = createStyles$3(theme);
|
|
@@ -832,7 +832,7 @@ const CustomLoader = ({ loading }) => {
|
|
|
832
832
|
))), /* @__PURE__ */ React__default["default"].createElement(
|
|
833
833
|
CustomText$1,
|
|
834
834
|
{
|
|
835
|
-
text:
|
|
835
|
+
text: loadingText,
|
|
836
836
|
style: styles.text,
|
|
837
837
|
variant: FontStyle.B4_REGULAR,
|
|
838
838
|
textColor: "#000000"
|
|
@@ -4433,7 +4433,7 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
4433
4433
|
});
|
|
4434
4434
|
},
|
|
4435
4435
|
onPanResponderRelease: (e, gestureState) => {
|
|
4436
|
-
if (gestureState.dx >= value.current * 0.
|
|
4436
|
+
if (gestureState.dx >= value.current * 0.8) {
|
|
4437
4437
|
onComplete?.();
|
|
4438
4438
|
reactNative.Animated.timing(translateX, {
|
|
4439
4439
|
toValue: value.current - BUTTON_WIDTH,
|