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.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -714,18 +714,19 @@ const BottomDrawer = ({
|
|
|
714
714
|
showBlurView = true,
|
|
715
715
|
backdropColor,
|
|
716
716
|
backdropOpacity = 0.9,
|
|
717
|
-
propagateSwipe = true
|
|
717
|
+
propagateSwipe = true,
|
|
718
|
+
swipeDirection = "down"
|
|
718
719
|
}) => {
|
|
719
720
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
720
721
|
Modal__default["default"],
|
|
721
722
|
{
|
|
722
723
|
isVisible: isModalVisible,
|
|
723
|
-
swipeDirection
|
|
724
|
+
swipeDirection,
|
|
724
725
|
onSwipeComplete: toggleModal,
|
|
725
726
|
backdropColor: backdropColor ?? theme.SURFACE_PRIMARY.light,
|
|
726
727
|
hasBackdrop: showBlurView,
|
|
727
728
|
backdropOpacity,
|
|
728
|
-
propagateSwipe,
|
|
729
|
+
propagateSwipe: true,
|
|
729
730
|
style: { margin: 0 }
|
|
730
731
|
},
|
|
731
732
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -734,7 +735,7 @@ const BottomDrawer = ({
|
|
|
734
735
|
behavior: isIos() ? "padding" : "height",
|
|
735
736
|
style: { flex: 1 }
|
|
736
737
|
},
|
|
737
|
-
/* @__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(
|
|
738
|
+
/* @__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(reactNative.Pressable, { onPress: () => swipeDirection === "" && toggleModal() }, 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, {
|
|
738
739
|
width: moderateScale(24),
|
|
739
740
|
height: moderateScale(24),
|
|
740
741
|
style: styles$z.leftIconStyle,
|
|
@@ -3492,16 +3493,14 @@ const styles$9 = reactNative.StyleSheet.create({
|
|
|
3492
3493
|
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE,
|
|
3493
3494
|
paddingVertical: 0,
|
|
3494
3495
|
height: verticalScale(48),
|
|
3495
|
-
justifyContent: "center"
|
|
3496
|
-
fontSize: moderateScale(16)
|
|
3496
|
+
justifyContent: "center"
|
|
3497
3497
|
},
|
|
3498
3498
|
errorInput: {
|
|
3499
3499
|
marginTop: verticalScale(12),
|
|
3500
3500
|
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE,
|
|
3501
3501
|
paddingVertical: 0,
|
|
3502
3502
|
height: verticalScale(48),
|
|
3503
|
-
justifyContent: "center"
|
|
3504
|
-
fontSize: moderateScale(16)
|
|
3503
|
+
justifyContent: "center"
|
|
3505
3504
|
},
|
|
3506
3505
|
multilineInput: {
|
|
3507
3506
|
height: verticalScale(100),
|