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.d.ts CHANGED
@@ -51,6 +51,7 @@ interface BottomDrawerProps {
51
51
  titleVariant?: string;
52
52
  showHeader?: boolean;
53
53
  blurType?: 'dark' | 'light' | 'xlight';
54
+ showSeparator?: boolean;
54
55
  }
55
56
 
56
57
  declare const BottomDrawer: React$1.FC<BottomDrawerProps>;
package/lib/index.js CHANGED
@@ -692,7 +692,8 @@ const BottomDrawer = ({
692
692
  titleStyle,
693
693
  titleVariant = "B2_REGULAR",
694
694
  showHeader = true,
695
- blurType = "light"
695
+ blurType = "light",
696
+ showSeparator = true
696
697
  }) => {
697
698
  const onSwipDown = (event) => {
698
699
  const { translationY } = event.nativeEvent;
@@ -721,7 +722,7 @@ const BottomDrawer = ({
721
722
  blurType,
722
723
  blurAmount
723
724
  }
724
- ) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.separator }), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
725
+ ) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, showSeparator && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.separator }), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
725
726
  width: moderateScale(24),
726
727
  height: moderateScale(24),
727
728
  style: styles$z.leftIconStyle,
@@ -4052,10 +4053,10 @@ const OTPInput = React__default["default"].forwardRef(
4052
4053
  enableResendOtp();
4053
4054
  }, []);
4054
4055
  const onClickResendOTP = () => {
4055
- if (resendOTPCount >= maxResendCount - 1) {
4056
+ if (resendOTPCount > maxResendCount - 1) {
4056
4057
  setErrorMessageMaxReachCount("You have exceeded the maximum number of attempts.");
4057
4058
  }
4058
- if (resendOTPCount <= maxResendCount) {
4059
+ if (resendOTPCount < maxResendCount) {
4059
4060
  setIsResendOtpEnable(false);
4060
4061
  setResendOTPCount(resendOTPCount + 1);
4061
4062
  enableResendOtp();