dhre-ui-kit 0.0.308 → 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
@@ -2138,6 +2138,11 @@ const styles$l = reactNative.StyleSheet.create({
2138
2138
  textDecorationColor: "#fff",
2139
2139
  alignSelf: "flex-start",
2140
2140
  textAlign: "left"
2141
+ },
2142
+ subButton: {
2143
+ marginLeft: 9,
2144
+ alignSelf: "flex-start",
2145
+ alignItems: "flex-start"
2141
2146
  }
2142
2147
  });
2143
2148
 
@@ -2234,7 +2239,7 @@ const Toast = React__default["default"].forwardRef(
2234
2239
  )), subjectText && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$l.subContainer }, /* @__PURE__ */ React__default["default"].createElement(
2235
2240
  reactNative.Pressable,
2236
2241
  {
2237
- style: styles$l.button,
2242
+ style: styles$l.subButton,
2238
2243
  onPress: onSubBtnPress || void 0,
2239
2244
  testID: "TOAST-BTN"
2240
2245
  },
@@ -4084,6 +4089,7 @@ const OTPInput = React__default["default"].forwardRef(
4084
4089
  resendOTP,
4085
4090
  errorMessage,
4086
4091
  testId = "",
4092
+ errorMessageMaxReachCountProps,
4087
4093
  otpContainerStyle,
4088
4094
  otpHeaderTextStyle,
4089
4095
  textInputStyle,
@@ -4130,7 +4136,7 @@ const OTPInput = React__default["default"].forwardRef(
4130
4136
  const onClickResendOTP = () => {
4131
4137
  if (resendOTPCount > maxResendCount - 1) {
4132
4138
  setErrorMessageMaxReachCount(
4133
- "You have exceeded the maximum number of attempts."
4139
+ errorMessageMaxReachCountProps ? errorMessageMaxReachCountProps : "You have exceeded the maximum number of attempts."
4134
4140
  );
4135
4141
  }
4136
4142
  if (resendOTPCount < maxResendCount) {