dhre-ui-kit 0.0.281 → 0.0.282
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 -22
- package/lib/index.js +14 -21
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -21
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 { BlurView } from '@react-native-community/blur';
|
|
3
|
+
import { Dimensions, StyleSheet, Text, Pressable, View, Platform, KeyboardAvoidingView, TextInput, ScrollView, Animated, FlatList, TouchableOpacity, Modal as Modal$1, Alert, Linking, PanResponder } from 'react-native';
|
|
5
4
|
import Modal from 'react-native-modal';
|
|
5
|
+
import Clipboard from '@react-native-clipboard/clipboard';
|
|
6
6
|
import LottieView from 'lottie-react-native';
|
|
7
7
|
import Tooltip from 'react-native-walkthrough-tooltip';
|
|
8
8
|
import Pdf from 'react-native-pdf';
|
|
@@ -16,7 +16,6 @@ import { Dropdown } from 'react-native-element-dropdown';
|
|
|
16
16
|
import DocumentPicker from 'react-native-document-picker';
|
|
17
17
|
import RNFS from 'react-native-fs';
|
|
18
18
|
import OTPVerify, { removeListener, startOtpListener } from 'react-native-otp-verify';
|
|
19
|
-
import Clipboard from '@react-native-clipboard/clipboard';
|
|
20
19
|
|
|
21
20
|
var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
|
|
22
21
|
ShapeType2["LINE"] = "line";
|
|
@@ -638,6 +637,11 @@ const styles$z = StyleSheet.create({
|
|
|
638
637
|
rightIconStyle: { marginLeft: 8 }
|
|
639
638
|
});
|
|
640
639
|
|
|
640
|
+
const isIos = () => Platform.OS === "ios" /* ios */;
|
|
641
|
+
const copyToClipboard = (textToCopy) => {
|
|
642
|
+
Clipboard.setString(textToCopy);
|
|
643
|
+
};
|
|
644
|
+
|
|
641
645
|
const BottomDrawer = ({
|
|
642
646
|
isModalVisible,
|
|
643
647
|
toggleModal,
|
|
@@ -646,9 +650,6 @@ const BottomDrawer = ({
|
|
|
646
650
|
testID = "BOTTOM-DRAWER",
|
|
647
651
|
style,
|
|
648
652
|
modalContainerStyle,
|
|
649
|
-
blurAmount = 10,
|
|
650
|
-
blurViewStyle,
|
|
651
|
-
showBlurView = true,
|
|
652
653
|
showLeftIcon = false,
|
|
653
654
|
showRightIcon = true,
|
|
654
655
|
leftIcon,
|
|
@@ -657,31 +658,27 @@ const BottomDrawer = ({
|
|
|
657
658
|
titleStyle,
|
|
658
659
|
titleVariant = "B2_REGULAR",
|
|
659
660
|
showHeader = true,
|
|
660
|
-
|
|
661
|
-
|
|
661
|
+
showSeparator = true,
|
|
662
|
+
showBlurView
|
|
662
663
|
}) => {
|
|
664
|
+
const { theme } = useTheme();
|
|
663
665
|
return /* @__PURE__ */ React.createElement(
|
|
664
666
|
Modal,
|
|
665
667
|
{
|
|
666
668
|
isVisible: isModalVisible,
|
|
667
669
|
swipeDirection: "down",
|
|
668
670
|
onSwipeComplete: toggleModal,
|
|
671
|
+
backdropColor: theme.SURFACE_PRIMARY,
|
|
672
|
+
hasBackdrop: showBlurView,
|
|
669
673
|
style: { margin: 0 }
|
|
670
674
|
},
|
|
671
675
|
/* @__PURE__ */ React.createElement(
|
|
672
676
|
KeyboardAvoidingView,
|
|
673
677
|
{
|
|
674
|
-
behavior:
|
|
678
|
+
behavior: isIos() ? "padding" : "height",
|
|
675
679
|
style: { flex: 1 }
|
|
676
680
|
},
|
|
677
|
-
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID },
|
|
678
|
-
BlurView,
|
|
679
|
-
{
|
|
680
|
-
style: [styles$z.blurView, blurViewStyle],
|
|
681
|
-
blurType,
|
|
682
|
-
blurAmount
|
|
683
|
-
}
|
|
684
|
-
) : 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, {
|
|
681
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__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, {
|
|
685
682
|
width: moderateScale(24),
|
|
686
683
|
height: moderateScale(24),
|
|
687
684
|
style: styles$z.leftIconStyle,
|
|
@@ -4539,10 +4536,6 @@ const CustomSlideButton = React.forwardRef(
|
|
|
4539
4536
|
);
|
|
4540
4537
|
var index$2 = withThemeProvider(CustomSlideButton);
|
|
4541
4538
|
|
|
4542
|
-
const copyToClipboard = (textToCopy) => {
|
|
4543
|
-
Clipboard.setString(textToCopy);
|
|
4544
|
-
};
|
|
4545
|
-
|
|
4546
4539
|
const styles$2 = StyleSheet.create({
|
|
4547
4540
|
accordionContainer: {
|
|
4548
4541
|
gap: verticalScale(8),
|