dhre-ui-kit 0.0.398 → 0.0.400

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.mjs CHANGED
@@ -735,19 +735,17 @@ const BottomDrawer = ({
735
735
  text: title,
736
736
  style: { ...styles$z.title, ...titleStyle }
737
737
  }
738
- )), /* @__PURE__ */ React.createElement(View, { style: rightTitle?.length ? styles$z.rightSideStyle : {} }, rightTitle?.length ? /* @__PURE__ */ React.createElement(Pressable, { onPress: handleRightTitlePress }, /* @__PURE__ */ React.createElement(
738
+ )), /* @__PURE__ */ React.createElement(View, { style: rightTitle && rightTitle?.length > 0 ? styles$z.rightSideStyle : {} }, rightTitle && rightTitle?.length > 0 ? /* @__PURE__ */ React.createElement(Pressable, { onPress: handleRightTitlePress }, /* @__PURE__ */ React.createElement(
739
739
  CustomTypography,
740
740
  {
741
741
  variant: rightTitleVariant,
742
742
  text: rightTitle,
743
743
  style: { ...styles$z.rightTitle, ...rightTitleStyle }
744
744
  }
745
- )) : null, showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
745
+ )) : null, showRightIcon && rightIcon ? /* @__PURE__ */ React.createElement(Pressable, { onPress: toggleModal, style: styles$z.rightIconStyle }, React.cloneElement(rightIcon, {
746
746
  width: moderateScale(24),
747
- height: moderateScale(24),
748
- style: styles$z.rightIconStyle,
749
- onPress: toggleModal
750
- }) : null))), children))
747
+ height: moderateScale(24)
748
+ })) : null))), children))
751
749
  ),
752
750
  footer ? /* @__PURE__ */ React.createElement(React.Fragment, null, footer) : null
753
751
  );
@@ -3971,12 +3969,11 @@ const CustomHeader = ({
3971
3969
  },
3972
3970
  testID: testId
3973
3971
  },
3974
- /* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
3972
+ /* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? /* @__PURE__ */ React.createElement(Pressable, { onPress: onLeftPress }, React.cloneElement(leftIcon, {
3975
3973
  width: moderateScale(24),
3976
3974
  height: moderateScale(24),
3977
- onPress: onLeftPress,
3978
3975
  style: styles$j.leftIconStyle
3979
- }) : null, /* @__PURE__ */ React.createElement(
3976
+ })) : null, /* @__PURE__ */ React.createElement(
3980
3977
  CustomTypography,
3981
3978
  {
3982
3979
  variant: "B2_REGULAR",
@@ -3984,12 +3981,11 @@ const CustomHeader = ({
3984
3981
  style: { color: theme.CONTENT_PRIMARY }
3985
3982
  }
3986
3983
  )),
3987
- showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
3984
+ showRightIcon && rightIcon ? /* @__PURE__ */ React.createElement(Pressable, { onPress: onRightPress }, React.cloneElement(rightIcon, {
3988
3985
  width: moderateScale(24),
3989
3986
  height: moderateScale(24),
3990
- onPress: onRightPress,
3991
3987
  style: styles$j.rightIconStyle
3992
- }) : null
3988
+ })) : null
3993
3989
  );
3994
3990
  };
3995
3991
  var CustomHeader$1 = withThemeProvider(CustomHeader);