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 +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4200,7 +4200,7 @@ const OTPInput = React.forwardRef(
|
|
|
4200
4200
|
style: {
|
|
4201
4201
|
...styles$5.textInputStyle,
|
|
4202
4202
|
color: theme$1.CONTENT_PRIMARY,
|
|
4203
|
-
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,
|
|
4204
4204
|
...textInputStyle
|
|
4205
4205
|
},
|
|
4206
4206
|
onFocus: () => setActiveInput(index),
|