dhre-component-lib 0.7.7 → 0.7.9

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/dist/index.esm.js CHANGED
@@ -21653,7 +21653,7 @@ const OTPInput = ({ length = 4, onChange, autoFocus = false, onResend, resendDel
21653
21653
  return (React__default.createElement("div", { className: `${'otpMainContainer'} ${className ? className : ''}` },
21654
21654
  React__default.createElement("div", { className: "otpInputDiv" }, Array(length)
21655
21655
  .fill("")
21656
- .map((_, index) => (React__default.createElement("input", { key: index, type: "text", id: `otp-input-${index}`, value: otp[index], "data-testid": `otp-input-${index}`, onChange: (e) => handleChange(e.target.value, index), onKeyDown: (e) => handleKeyDown(e, index), maxLength: 1, style: { border: `1px solid ${getReadableStatus()}` }, className: `${'otpInput'} ${inputClassName ? inputClassName : ''}`, autoFocus: autoFocus && index === 0 })))),
21656
+ .map((_, index) => (React__default.createElement("input", { key: index, type: "number", id: `otp-input-${index}`, value: otp[index], "data-testid": `otp-input-${index}`, onChange: (e) => handleChange(e.target.value, index), onKeyDown: (e) => handleKeyDown(e, index), maxLength: 1, style: { border: `1px solid ${getReadableStatus()}` }, className: `${'otpInput'} ${inputClassName ? inputClassName : ''}`, autoFocus: autoFocus && index === 0 })))),
21657
21657
  React__default.createElement("div", { className: "resendContainer" },
21658
21658
  error && (React__default.createElement("div", { className: "errorText" }, errorText)),
21659
21659
  !showResendButton && !error && React__default.createElement("div", { className: "errorText" }, noResendButtonText),