dhre-ui-kit 0.0.279 → 0.0.280
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 +22 -25
- package/lib/index.js +16 -19
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +16 -20
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -1
package/lib/index.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import { Dimensions, StyleSheet, Text, Pressable, View,
|
|
4
|
-
import { PanGestureHandler, GestureHandlerRootView, Swipeable } from 'react-native-gesture-handler';
|
|
3
|
+
import { Dimensions, StyleSheet, Text, Pressable, View, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, TouchableOpacity, Modal as Modal$1, Alert, Linking, PanResponder } from 'react-native';
|
|
5
4
|
import { BlurView } from '@react-native-community/blur';
|
|
5
|
+
import Modal from 'react-native-modal';
|
|
6
|
+
import { moderateScale as moderateScale$1 } from 'src/utils/stylehelper';
|
|
6
7
|
import LottieView from 'lottie-react-native';
|
|
7
8
|
import Tooltip from 'react-native-walkthrough-tooltip';
|
|
8
9
|
import Pdf from 'react-native-pdf';
|
|
9
10
|
import * as Progress from 'react-native-progress';
|
|
11
|
+
import { GestureHandlerRootView, Swipeable } from 'react-native-gesture-handler';
|
|
10
12
|
import DeviceInfo from 'react-native-device-info';
|
|
11
13
|
import { Calendar } from 'react-native-calendars';
|
|
12
14
|
import CountryPicker from 'react-native-country-picker-modal';
|
|
@@ -656,24 +658,18 @@ const BottomDrawer = ({
|
|
|
656
658
|
titleStyle,
|
|
657
659
|
titleVariant = "B2_REGULAR",
|
|
658
660
|
showHeader = true,
|
|
659
|
-
blurType
|
|
661
|
+
blurType,
|
|
660
662
|
showSeparator = true
|
|
661
663
|
}) => {
|
|
662
|
-
const onSwipDown = (event) => {
|
|
663
|
-
const { translationY } = event.nativeEvent;
|
|
664
|
-
if (translationY > 50) {
|
|
665
|
-
toggleModal();
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
664
|
return /* @__PURE__ */ React.createElement(
|
|
669
665
|
Modal,
|
|
670
666
|
{
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
667
|
+
isVisible: isModalVisible,
|
|
668
|
+
swipeDirection: "down",
|
|
669
|
+
onSwipeComplete: toggleModal,
|
|
670
|
+
style: { margin: 0 }
|
|
675
671
|
},
|
|
676
|
-
/* @__PURE__ */ React.createElement(
|
|
672
|
+
/* @__PURE__ */ React.createElement(
|
|
677
673
|
KeyboardAvoidingView,
|
|
678
674
|
{
|
|
679
675
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
@@ -687,8 +683,8 @@ const BottomDrawer = ({
|
|
|
687
683
|
blurAmount
|
|
688
684
|
}
|
|
689
685
|
) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
690
|
-
width: moderateScale(24),
|
|
691
|
-
height: moderateScale(24),
|
|
686
|
+
width: moderateScale$1(24),
|
|
687
|
+
height: moderateScale$1(24),
|
|
692
688
|
style: styles$z.leftIconStyle,
|
|
693
689
|
onPress: onLeftIconPress
|
|
694
690
|
}) : null, /* @__PURE__ */ React.createElement(
|
|
@@ -699,12 +695,12 @@ const BottomDrawer = ({
|
|
|
699
695
|
style: { ...styles$z.title, ...titleStyle }
|
|
700
696
|
}
|
|
701
697
|
), showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
702
|
-
width: moderateScale(24),
|
|
703
|
-
height: moderateScale(24),
|
|
698
|
+
width: moderateScale$1(24),
|
|
699
|
+
height: moderateScale$1(24),
|
|
704
700
|
style: styles$z.rightIconStyle,
|
|
705
701
|
onPress: toggleModal
|
|
706
702
|
}) : null)), children))
|
|
707
|
-
)
|
|
703
|
+
)
|
|
708
704
|
);
|
|
709
705
|
};
|
|
710
706
|
|
|
@@ -2724,7 +2720,7 @@ const ContactModal = ({
|
|
|
2724
2720
|
}
|
|
2725
2721
|
)));
|
|
2726
2722
|
return /* @__PURE__ */ React.createElement(View, { style: styles$e.container }, /* @__PURE__ */ React.createElement(
|
|
2727
|
-
Modal,
|
|
2723
|
+
Modal$1,
|
|
2728
2724
|
{
|
|
2729
2725
|
animationType: "slide",
|
|
2730
2726
|
transparent: true,
|