dhre-ui-kit 0.0.369 → 0.0.371
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 +16 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +16 -5
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -658,8 +658,18 @@ const styles$z = StyleSheet.create({
|
|
|
658
658
|
},
|
|
659
659
|
title: { flex: 1, color: "#fff", textAlign: "left" },
|
|
660
660
|
leftIconStyle: { marginRight: 8 },
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
rightTitle: {
|
|
662
|
+
color: "#fff",
|
|
663
|
+
textAlign: "right",
|
|
664
|
+
marginRight: moderateScale(16)
|
|
665
|
+
},
|
|
666
|
+
rightIconStyle: {
|
|
667
|
+
marginLeft: 0
|
|
668
|
+
},
|
|
669
|
+
rightSideStyle: {
|
|
670
|
+
flexDirection: "row",
|
|
671
|
+
alignItems: "center"
|
|
672
|
+
}
|
|
663
673
|
});
|
|
664
674
|
|
|
665
675
|
const isIos = () => Platform.OS === "ios" /* ios */;
|
|
@@ -692,7 +702,8 @@ const BottomDrawer = ({
|
|
|
692
702
|
swipeDirection = "down",
|
|
693
703
|
rightTitleVariant = "B2_REGULAR",
|
|
694
704
|
rightTitle,
|
|
695
|
-
rightTitleStyle
|
|
705
|
+
rightTitleStyle,
|
|
706
|
+
handleRightTitlePress
|
|
696
707
|
}) => {
|
|
697
708
|
return /* @__PURE__ */ React.createElement(
|
|
698
709
|
Modal,
|
|
@@ -724,14 +735,14 @@ const BottomDrawer = ({
|
|
|
724
735
|
text: title,
|
|
725
736
|
style: { ...styles$z.title, ...titleStyle }
|
|
726
737
|
}
|
|
727
|
-
)), /* @__PURE__ */ React.createElement(View,
|
|
738
|
+
)), /* @__PURE__ */ React.createElement(View, { style: rightTitle?.length ? styles$z.rightSideStyle : {} }, rightTitle?.length ? /* @__PURE__ */ React.createElement(Pressable, { onPress: handleRightTitlePress }, /* @__PURE__ */ React.createElement(
|
|
728
739
|
CustomTypography,
|
|
729
740
|
{
|
|
730
741
|
variant: rightTitleVariant,
|
|
731
742
|
text: rightTitle,
|
|
732
743
|
style: { ...styles$z.rightTitle, ...rightTitleStyle }
|
|
733
744
|
}
|
|
734
|
-
) : null, showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
745
|
+
)) : null, showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
735
746
|
width: moderateScale(24),
|
|
736
747
|
height: moderateScale(24),
|
|
737
748
|
style: styles$z.rightIconStyle,
|