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.js CHANGED
@@ -4190,6 +4190,9 @@ const OTPInput = React__default["default"].forwardRef(
4190
4190
  }
4191
4191
  }));
4192
4192
  const handleChange = (index, value) => {
4193
+ if (/^\.$/.test(value) || value === "\u25CF.") {
4194
+ return;
4195
+ }
4193
4196
  const specialCharacterRegex = /[^a-zA-Z0-9 ]/;
4194
4197
  if (value === "" || value?.length > 1 || !specialCharacterRegex.test(value)) {
4195
4198
  const regex = /^\d+$/;
@@ -4250,7 +4253,7 @@ const OTPInput = React__default["default"].forwardRef(
4250
4253
  onChangeText: (text) => handleChange(index, text),
4251
4254
  value: otp[index] ? "\u25CF" : "",
4252
4255
  placeholder: "",
4253
- keyboardType: "number-pad",
4256
+ keyboardType: reactNative.Platform.OS === "ios" ? "number-pad" : "numeric",
4254
4257
  ref: (el) => refs.current[index] = el,
4255
4258
  returnKeyType: otp.length === length ? "done" : "next",
4256
4259
  importantForAutofill: "yes",