dhre-ui-kit 0.0.331 → 0.0.333

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.mjs CHANGED
@@ -4153,6 +4153,9 @@ const OTPInput = React.forwardRef(
4153
4153
  }
4154
4154
  }));
4155
4155
  const handleChange = (index, value) => {
4156
+ if (/^\.$/.test(value) || value === "\u25CF.") {
4157
+ return;
4158
+ }
4156
4159
  const specialCharacterRegex = /[^a-zA-Z0-9 ]/;
4157
4160
  if (value === "" || value?.length > 1 || !specialCharacterRegex.test(value)) {
4158
4161
  const regex = /^\d+$/;
@@ -4213,7 +4216,7 @@ const OTPInput = React.forwardRef(
4213
4216
  onChangeText: (text) => handleChange(index, text),
4214
4217
  value: otp[index] ? "\u25CF" : "",
4215
4218
  placeholder: "",
4216
- keyboardType: "number-pad",
4219
+ keyboardType: Platform.OS === "ios" ? "number-pad" : "numeric",
4217
4220
  ref: (el) => refs.current[index] = el,
4218
4221
  returnKeyType: otp.length === length ? "done" : "next",
4219
4222
  importantForAutofill: "yes",