dhre-ui-kit 0.0.399 → 0.0.401

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
@@ -2611,7 +2611,8 @@ const Checkbox = ({
2611
2611
  titleVariant = "L1_REGULAR",
2612
2612
  titleStyle,
2613
2613
  containerStyle,
2614
- onPress
2614
+ onPress,
2615
+ hideCheckbox = false
2615
2616
  }) => {
2616
2617
  const [checked, setChecked] = useState(isChecked || false);
2617
2618
  useEffect(() => {
@@ -2626,7 +2627,7 @@ const Checkbox = ({
2626
2627
  {
2627
2628
  style: styles$w.directionStyle
2628
2629
  },
2629
- /* @__PURE__ */ React.createElement(
2630
+ hideCheckbox ? null : /* @__PURE__ */ React.createElement(
2630
2631
  Pressable,
2631
2632
  {
2632
2633
  testID: "Checkbox-Press",
@@ -3969,12 +3970,11 @@ const CustomHeader = ({
3969
3970
  },
3970
3971
  testID: testId
3971
3972
  },
3972
- /* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
3973
+ /* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? /* @__PURE__ */ React.createElement(Pressable, { onPress: onLeftPress }, React.cloneElement(leftIcon, {
3973
3974
  width: moderateScale(24),
3974
3975
  height: moderateScale(24),
3975
- onPress: onLeftPress,
3976
3976
  style: styles$j.leftIconStyle
3977
- }) : null, /* @__PURE__ */ React.createElement(
3977
+ })) : null, /* @__PURE__ */ React.createElement(
3978
3978
  CustomTypography,
3979
3979
  {
3980
3980
  variant: "B2_REGULAR",
@@ -3982,12 +3982,11 @@ const CustomHeader = ({
3982
3982
  style: { color: theme.CONTENT_PRIMARY }
3983
3983
  }
3984
3984
  )),
3985
- showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
3985
+ showRightIcon && rightIcon ? /* @__PURE__ */ React.createElement(Pressable, { onPress: onRightPress }, React.cloneElement(rightIcon, {
3986
3986
  width: moderateScale(24),
3987
3987
  height: moderateScale(24),
3988
- onPress: onRightPress,
3989
3988
  style: styles$j.rightIconStyle
3990
- }) : null
3989
+ })) : null
3991
3990
  );
3992
3991
  };
3993
3992
  var CustomHeader$1 = withThemeProvider(CustomHeader);