dhre-ui-kit 0.0.290 → 0.0.292
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 +7 -8
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +7 -8
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -677,18 +677,19 @@ const BottomDrawer = ({
|
|
|
677
677
|
showBlurView = true,
|
|
678
678
|
backdropColor,
|
|
679
679
|
backdropOpacity = 0.9,
|
|
680
|
-
propagateSwipe = true
|
|
680
|
+
propagateSwipe = true,
|
|
681
|
+
swipeDirection = "down"
|
|
681
682
|
}) => {
|
|
682
683
|
return /* @__PURE__ */ React.createElement(
|
|
683
684
|
Modal,
|
|
684
685
|
{
|
|
685
686
|
isVisible: isModalVisible,
|
|
686
|
-
swipeDirection
|
|
687
|
+
swipeDirection,
|
|
687
688
|
onSwipeComplete: toggleModal,
|
|
688
689
|
backdropColor: backdropColor ?? theme.SURFACE_PRIMARY.light,
|
|
689
690
|
hasBackdrop: showBlurView,
|
|
690
691
|
backdropOpacity,
|
|
691
|
-
propagateSwipe,
|
|
692
|
+
propagateSwipe: true,
|
|
692
693
|
style: { margin: 0 }
|
|
693
694
|
},
|
|
694
695
|
/* @__PURE__ */ React.createElement(
|
|
@@ -697,7 +698,7 @@ const BottomDrawer = ({
|
|
|
697
698
|
behavior: isIos() ? "padding" : "height",
|
|
698
699
|
style: { flex: 1 }
|
|
699
700
|
},
|
|
700
|
-
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(
|
|
701
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(Pressable, { onPress: () => swipeDirection === "" && toggleModal() }, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
701
702
|
width: moderateScale(24),
|
|
702
703
|
height: moderateScale(24),
|
|
703
704
|
style: styles$z.leftIconStyle,
|
|
@@ -3455,16 +3456,14 @@ const styles$9 = StyleSheet.create({
|
|
|
3455
3456
|
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE,
|
|
3456
3457
|
paddingVertical: 0,
|
|
3457
3458
|
height: verticalScale(48),
|
|
3458
|
-
justifyContent: "center"
|
|
3459
|
-
fontSize: moderateScale(16)
|
|
3459
|
+
justifyContent: "center"
|
|
3460
3460
|
},
|
|
3461
3461
|
errorInput: {
|
|
3462
3462
|
marginTop: verticalScale(12),
|
|
3463
3463
|
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE,
|
|
3464
3464
|
paddingVertical: 0,
|
|
3465
3465
|
height: verticalScale(48),
|
|
3466
|
-
justifyContent: "center"
|
|
3467
|
-
fontSize: moderateScale(16)
|
|
3466
|
+
justifyContent: "center"
|
|
3468
3467
|
},
|
|
3469
3468
|
multilineInput: {
|
|
3470
3469
|
height: verticalScale(100),
|