dhre-ui-kit 0.0.309 → 0.0.310

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
@@ -731,6 +731,7 @@ interface IProps$1 {
731
731
  maxResendCount?: number;
732
732
  timerToResend?: number;
733
733
  timerIcon?: React.ReactElement;
734
+ errorMessageMaxReachCountProps?: string;
734
735
  }
735
736
  type OTPInputHandle = {
736
737
  reset?: () => void;
package/lib/index.js CHANGED
@@ -4089,6 +4089,7 @@ const OTPInput = React__default["default"].forwardRef(
4089
4089
  resendOTP,
4090
4090
  errorMessage,
4091
4091
  testId = "",
4092
+ errorMessageMaxReachCountProps,
4092
4093
  otpContainerStyle,
4093
4094
  otpHeaderTextStyle,
4094
4095
  textInputStyle,
@@ -4135,7 +4136,7 @@ const OTPInput = React__default["default"].forwardRef(
4135
4136
  const onClickResendOTP = () => {
4136
4137
  if (resendOTPCount > maxResendCount - 1) {
4137
4138
  setErrorMessageMaxReachCount(
4138
- "You have exceeded the maximum number of attempts."
4139
+ errorMessageMaxReachCountProps ? errorMessageMaxReachCountProps : "You have exceeded the maximum number of attempts."
4139
4140
  );
4140
4141
  }
4141
4142
  if (resendOTPCount < maxResendCount) {