dhre-ui-kit 0.0.312 → 0.0.313

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
@@ -4182,12 +4182,6 @@ const OTPInput = React.forwardRef(
4182
4182
  onComplete?.(otp);
4183
4183
  }
4184
4184
  }, [otp]);
4185
- console.log("errorMessage ==>", errorMessage);
4186
- console.log("isInValidOtp ==>", isInValidOtp);
4187
- console.log(
4188
- "errorMessage || isInValidOtp ==>",
4189
- errorMessage || isInValidOtp
4190
- );
4191
4185
  return /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React.createElement(
4192
4186
  CustomTypography,
4193
4187
  {
@@ -4206,7 +4200,7 @@ const OTPInput = React.forwardRef(
4206
4200
  style: {
4207
4201
  ...styles$5.textInputStyle,
4208
4202
  color: theme$1.CONTENT_PRIMARY,
4209
- borderColor: errorMessage || isInValidOtp ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : activeInput === index ? theme$1.BORDER_INVERTED : theme$1.BORDER_PRIMARY,
4203
+ borderColor: errorMessage || isInValidOtp && otp?.length === length ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : activeInput === index ? theme$1.BORDER_INVERTED : theme$1.BORDER_PRIMARY,
4210
4204
  ...textInputStyle
4211
4205
  },
4212
4206
  onFocus: () => setActiveInput(index),