dhre-ui-kit 0.0.327 → 0.0.328

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
@@ -4042,6 +4042,7 @@ const OTPInput = React.forwardRef(
4042
4042
  ({
4043
4043
  length = 4,
4044
4044
  onComplete,
4045
+ onChangeCallback,
4045
4046
  resendOTP,
4046
4047
  errorMessage,
4047
4048
  testId = "",
@@ -4176,6 +4177,8 @@ const OTPInput = React.forwardRef(
4176
4177
  useEffect(() => {
4177
4178
  if (otp.length === length) {
4178
4179
  onComplete?.(otp);
4180
+ } else {
4181
+ onChangeCallback && onChangeCallback?.(otp);
4179
4182
  }
4180
4183
  }, [otp]);
4181
4184
  return /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React.createElement(