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 CHANGED
@@ -4105,10 +4105,13 @@ const OTPInput = React__default["default"].forwardRef(
4105
4105
  const [activeInput, setActiveInput] = React.useState(null);
4106
4106
  const [resendOTPCount, setResendOTPCount] = React.useState(0);
4107
4107
  const [errorMessageMaxReachCount, setErrorMessageMaxReachCount] = React.useState("");
4108
- const filteredTheme = Object?.keys(theme)?.reduce((acc, key) => {
4109
- acc[key] = theme[key][mode];
4110
- return acc;
4111
- }, {});
4108
+ const filteredTheme = Object?.keys(theme)?.reduce(
4109
+ (acc, key) => {
4110
+ acc[key] = theme[key][mode];
4111
+ return acc;
4112
+ },
4113
+ {}
4114
+ );
4112
4115
  const { theme: theme$1 } = mode ? { theme: filteredTheme } : useTheme();
4113
4116
  const [timeLeft, setTimeLeft] = React.useState(60);
4114
4117
  React.useEffect(() => {
@@ -4247,7 +4250,7 @@ const OTPInput = React__default["default"].forwardRef(
4247
4250
  onChangeText: (text) => handleChange(index, text),
4248
4251
  value: otp[index] ? "\u25CF" : "",
4249
4252
  placeholder: "",
4250
- keyboardType: "numeric",
4253
+ keyboardType: "number-pad",
4251
4254
  ref: (el) => refs.current[index] = el,
4252
4255
  returnKeyType: otp.length === length ? "done" : "next",
4253
4256
  importantForAutofill: "yes",