dhre-ui-kit 0.0.311 → 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
@@ -4237,7 +4237,7 @@ const OTPInput = React__default["default"].forwardRef(
4237
4237
  style: {
4238
4238
  ...styles$5.textInputStyle,
4239
4239
  color: theme$1.CONTENT_PRIMARY,
4240
- 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,
4241
4241
  ...textInputStyle
4242
4242
  },
4243
4243
  onFocus: () => setActiveInput(index),