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.js CHANGED
@@ -4219,12 +4219,6 @@ const OTPInput = React__default["default"].forwardRef(
4219
4219
  onComplete?.(otp);
4220
4220
  }
4221
4221
  }, [otp]);
4222
- console.log("errorMessage ==>", errorMessage);
4223
- console.log("isInValidOtp ==>", isInValidOtp);
4224
- console.log(
4225
- "errorMessage || isInValidOtp ==>",
4226
- errorMessage || isInValidOtp
4227
- );
4228
4222
  return /* @__PURE__ */ React__default["default"].createElement(ThemeProvider, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React__default["default"].createElement(
4229
4223
  CustomTypography,
4230
4224
  {
@@ -4243,7 +4237,7 @@ const OTPInput = React__default["default"].forwardRef(
4243
4237
  style: {
4244
4238
  ...styles$5.textInputStyle,
4245
4239
  color: theme$1.CONTENT_PRIMARY,
4246
- borderColor: errorMessage || isInValidOtp ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : activeInput === index ? theme$1.BORDER_INVERTED : theme$1.BORDER_PRIMARY,
4240
+ 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,
4247
4241
  ...textInputStyle
4248
4242
  },
4249
4243
  onFocus: () => setActiveInput(index),