dhre-ui-kit 0.0.291 → 0.0.293
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 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +7 -6
- 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,
|
|
@@ -3003,14 +3004,14 @@ const styles$b = StyleSheet.create({
|
|
|
3003
3004
|
},
|
|
3004
3005
|
badge: {
|
|
3005
3006
|
position: "absolute",
|
|
3006
|
-
top: -5,
|
|
3007
3007
|
right: -5,
|
|
3008
3008
|
minWidth: 20,
|
|
3009
3009
|
height: 20,
|
|
3010
3010
|
borderRadius: 10,
|
|
3011
3011
|
justifyContent: "center",
|
|
3012
3012
|
alignItems: "center",
|
|
3013
|
-
backgroundColor: "#F5524A"
|
|
3013
|
+
backgroundColor: "#F5524A",
|
|
3014
|
+
top: -4
|
|
3014
3015
|
},
|
|
3015
3016
|
badgeText: {
|
|
3016
3017
|
...FONT_STYLES.L3_BOLD,
|