dhre-ui-kit 0.0.241 → 0.0.243

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
@@ -656,7 +656,8 @@ const BottomDrawer = ({
656
656
  titleStyle,
657
657
  titleVariant = "B2_REGULAR",
658
658
  showHeader = true,
659
- blurType = "light"
659
+ blurType = "light",
660
+ showSeparator = true
660
661
  }) => {
661
662
  const onSwipDown = (event) => {
662
663
  const { translationY } = event.nativeEvent;
@@ -685,7 +686,7 @@ const BottomDrawer = ({
685
686
  blurType,
686
687
  blurAmount
687
688
  }
688
- ) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
689
+ ) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
689
690
  width: moderateScale(24),
690
691
  height: moderateScale(24),
691
692
  style: styles$z.leftIconStyle,
@@ -4016,10 +4017,10 @@ const OTPInput = React.forwardRef(
4016
4017
  enableResendOtp();
4017
4018
  }, []);
4018
4019
  const onClickResendOTP = () => {
4019
- if (resendOTPCount >= maxResendCount - 1) {
4020
+ if (resendOTPCount > maxResendCount - 1) {
4020
4021
  setErrorMessageMaxReachCount("You have exceeded the maximum number of attempts.");
4021
4022
  }
4022
- if (resendOTPCount <= maxResendCount) {
4023
+ if (resendOTPCount < maxResendCount) {
4023
4024
  setIsResendOtpEnable(false);
4024
4025
  setResendOTPCount(resendOTPCount + 1);
4025
4026
  enableResendOtp();