dhre-ui-kit 0.0.329 → 0.0.331
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 +8 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -5
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4068,10 +4068,13 @@ const OTPInput = React.forwardRef(
|
|
|
4068
4068
|
const [activeInput, setActiveInput] = useState(null);
|
|
4069
4069
|
const [resendOTPCount, setResendOTPCount] = useState(0);
|
|
4070
4070
|
const [errorMessageMaxReachCount, setErrorMessageMaxReachCount] = useState("");
|
|
4071
|
-
const filteredTheme = Object?.keys(theme)?.reduce(
|
|
4072
|
-
acc
|
|
4073
|
-
|
|
4074
|
-
|
|
4071
|
+
const filteredTheme = Object?.keys(theme)?.reduce(
|
|
4072
|
+
(acc, key) => {
|
|
4073
|
+
acc[key] = theme[key][mode];
|
|
4074
|
+
return acc;
|
|
4075
|
+
},
|
|
4076
|
+
{}
|
|
4077
|
+
);
|
|
4075
4078
|
const { theme: theme$1 } = mode ? { theme: filteredTheme } : useTheme();
|
|
4076
4079
|
const [timeLeft, setTimeLeft] = useState(60);
|
|
4077
4080
|
useEffect(() => {
|
|
@@ -4210,7 +4213,7 @@ const OTPInput = React.forwardRef(
|
|
|
4210
4213
|
onChangeText: (text) => handleChange(index, text),
|
|
4211
4214
|
value: otp[index] ? "\u25CF" : "",
|
|
4212
4215
|
placeholder: "",
|
|
4213
|
-
keyboardType: "
|
|
4216
|
+
keyboardType: "number-pad",
|
|
4214
4217
|
ref: (el) => refs.current[index] = el,
|
|
4215
4218
|
returnKeyType: otp.length === length ? "done" : "next",
|
|
4216
4219
|
importantForAutofill: "yes",
|