dhre-ui-kit 0.0.280 → 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 +18 -26
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +18 -26
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -30,28 +30,28 @@ interface BadgeProps {
|
|
|
30
30
|
}
|
|
31
31
|
declare const _default$j: (props: BadgeProps) => React$1.JSX.Element;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
isModalVisible:
|
|
35
|
-
toggleModal:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
33
|
+
interface BottomDrawerProps {
|
|
34
|
+
isModalVisible: boolean;
|
|
35
|
+
toggleModal: () => void;
|
|
36
|
+
isFullScreen?: boolean;
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
title: string;
|
|
39
|
+
testID?: string;
|
|
40
|
+
style?: ViewStyle;
|
|
41
|
+
modalContainerStyle?: ViewStyle;
|
|
42
|
+
showBlurView?: boolean;
|
|
43
|
+
leftIcon?: React.ReactElement;
|
|
44
|
+
rightIcon?: React.ReactElement;
|
|
45
|
+
showLeftIcon?: boolean;
|
|
46
|
+
showRightIcon?: boolean;
|
|
47
|
+
onLeftIconPress?: () => void;
|
|
48
|
+
titleStyle?: TextStyle;
|
|
49
|
+
titleVariant?: string;
|
|
50
|
+
showHeader?: boolean;
|
|
51
|
+
showSeparator?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const BottomDrawer: React$1.FC<BottomDrawerProps>;
|
|
55
55
|
|
|
56
56
|
interface CustomButtonProps {
|
|
57
57
|
title: string;
|
package/lib/index.js
CHANGED
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactRedux = require('react-redux');
|
|
7
7
|
var reactNative = require('react-native');
|
|
8
|
-
var blur = require('@react-native-community/blur');
|
|
9
8
|
var Modal = require('react-native-modal');
|
|
10
|
-
var
|
|
9
|
+
var Clipboard = require('@react-native-clipboard/clipboard');
|
|
11
10
|
var LottieView = require('lottie-react-native');
|
|
12
11
|
var Tooltip = require('react-native-walkthrough-tooltip');
|
|
13
12
|
var Pdf = require('react-native-pdf');
|
|
@@ -21,7 +20,6 @@ var reactNativeElementDropdown = require('react-native-element-dropdown');
|
|
|
21
20
|
var DocumentPicker = require('react-native-document-picker');
|
|
22
21
|
var RNFS = require('react-native-fs');
|
|
23
22
|
var OTPVerify = require('react-native-otp-verify');
|
|
24
|
-
var Clipboard = require('@react-native-clipboard/clipboard');
|
|
25
23
|
|
|
26
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
25
|
|
|
@@ -45,6 +43,7 @@ function _interopNamespace(e) {
|
|
|
45
43
|
|
|
46
44
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
47
45
|
var Modal__default = /*#__PURE__*/_interopDefaultLegacy(Modal);
|
|
46
|
+
var Clipboard__default = /*#__PURE__*/_interopDefaultLegacy(Clipboard);
|
|
48
47
|
var LottieView__default = /*#__PURE__*/_interopDefaultLegacy(LottieView);
|
|
49
48
|
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
50
49
|
var Pdf__default = /*#__PURE__*/_interopDefaultLegacy(Pdf);
|
|
@@ -54,7 +53,6 @@ var CountryPicker__default = /*#__PURE__*/_interopDefaultLegacy(CountryPicker);
|
|
|
54
53
|
var DocumentPicker__default = /*#__PURE__*/_interopDefaultLegacy(DocumentPicker);
|
|
55
54
|
var RNFS__default = /*#__PURE__*/_interopDefaultLegacy(RNFS);
|
|
56
55
|
var OTPVerify__default = /*#__PURE__*/_interopDefaultLegacy(OTPVerify);
|
|
57
|
-
var Clipboard__default = /*#__PURE__*/_interopDefaultLegacy(Clipboard);
|
|
58
56
|
|
|
59
57
|
var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
|
|
60
58
|
ShapeType2["LINE"] = "line";
|
|
@@ -676,6 +674,11 @@ const styles$z = reactNative.StyleSheet.create({
|
|
|
676
674
|
rightIconStyle: { marginLeft: 8 }
|
|
677
675
|
});
|
|
678
676
|
|
|
677
|
+
const isIos = () => reactNative.Platform.OS === "ios" /* ios */;
|
|
678
|
+
const copyToClipboard = (textToCopy) => {
|
|
679
|
+
Clipboard__default["default"].setString(textToCopy);
|
|
680
|
+
};
|
|
681
|
+
|
|
679
682
|
const BottomDrawer = ({
|
|
680
683
|
isModalVisible,
|
|
681
684
|
toggleModal,
|
|
@@ -684,9 +687,6 @@ const BottomDrawer = ({
|
|
|
684
687
|
testID = "BOTTOM-DRAWER",
|
|
685
688
|
style,
|
|
686
689
|
modalContainerStyle,
|
|
687
|
-
blurAmount = 10,
|
|
688
|
-
blurViewStyle,
|
|
689
|
-
showBlurView = true,
|
|
690
690
|
showLeftIcon = false,
|
|
691
691
|
showRightIcon = true,
|
|
692
692
|
leftIcon,
|
|
@@ -695,33 +695,29 @@ const BottomDrawer = ({
|
|
|
695
695
|
titleStyle,
|
|
696
696
|
titleVariant = "B2_REGULAR",
|
|
697
697
|
showHeader = true,
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
showSeparator = true,
|
|
699
|
+
showBlurView
|
|
700
700
|
}) => {
|
|
701
|
+
const { theme } = useTheme();
|
|
701
702
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
702
703
|
Modal__default["default"],
|
|
703
704
|
{
|
|
704
705
|
isVisible: isModalVisible,
|
|
705
706
|
swipeDirection: "down",
|
|
706
707
|
onSwipeComplete: toggleModal,
|
|
708
|
+
backdropColor: theme.SURFACE_PRIMARY,
|
|
709
|
+
hasBackdrop: showBlurView,
|
|
707
710
|
style: { margin: 0 }
|
|
708
711
|
},
|
|
709
712
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
710
713
|
reactNative.KeyboardAvoidingView,
|
|
711
714
|
{
|
|
712
|
-
behavior:
|
|
715
|
+
behavior: isIos() ? "padding" : "height",
|
|
713
716
|
style: { flex: 1 }
|
|
714
717
|
},
|
|
715
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.mainContainer, style], testID },
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
style: [styles$z.blurView, blurViewStyle],
|
|
719
|
-
blurType,
|
|
720
|
-
blurAmount
|
|
721
|
-
}
|
|
722
|
-
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, showSeparator && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.separator }), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
|
|
723
|
-
width: stylehelper.moderateScale(24),
|
|
724
|
-
height: stylehelper.moderateScale(24),
|
|
718
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, showSeparator && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.separator }), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
|
|
719
|
+
width: moderateScale(24),
|
|
720
|
+
height: moderateScale(24),
|
|
725
721
|
style: styles$z.leftIconStyle,
|
|
726
722
|
onPress: onLeftIconPress
|
|
727
723
|
}) : null, /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -732,8 +728,8 @@ const BottomDrawer = ({
|
|
|
732
728
|
style: { ...styles$z.title, ...titleStyle }
|
|
733
729
|
}
|
|
734
730
|
), showRightIcon && rightIcon ? React__default["default"].cloneElement(rightIcon, {
|
|
735
|
-
width:
|
|
736
|
-
height:
|
|
731
|
+
width: moderateScale(24),
|
|
732
|
+
height: moderateScale(24),
|
|
737
733
|
style: styles$z.rightIconStyle,
|
|
738
734
|
onPress: toggleModal
|
|
739
735
|
}) : null)), children))
|
|
@@ -4577,10 +4573,6 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
4577
4573
|
);
|
|
4578
4574
|
var index$2 = withThemeProvider(CustomSlideButton);
|
|
4579
4575
|
|
|
4580
|
-
const copyToClipboard = (textToCopy) => {
|
|
4581
|
-
Clipboard__default["default"].setString(textToCopy);
|
|
4582
|
-
};
|
|
4583
|
-
|
|
4584
4576
|
const styles$2 = reactNative.StyleSheet.create({
|
|
4585
4577
|
accordionContainer: {
|
|
4586
4578
|
gap: verticalScale(8),
|