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.js CHANGED
@@ -21676,7 +21676,7 @@ const OTPInput = ({ length = 4, onChange, autoFocus = false, onResend, resendDel
21676
21676
  return (React__namespace.default.createElement("div", { className: `${'otpMainContainer'} ${className ? className : ''}` },
21677
21677
  React__namespace.default.createElement("div", { className: "otpInputDiv" }, Array(length)
21678
21678
  .fill("")
21679
- .map((_, index) => (React__namespace.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 })))),
21679
+ .map((_, index) => (React__namespace.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 })))),
21680
21680
  React__namespace.default.createElement("div", { className: "resendContainer" },
21681
21681
  error && (React__namespace.default.createElement("div", { className: "errorText" }, errorText)),
21682
21682
  !showResendButton && !error && React__namespace.default.createElement("div", { className: "errorText" }, noResendButtonText),