@mcurros2/microm 1.1.59-0 → 1.1.61-0

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
@@ -47937,7 +47937,7 @@ function $611d924da195f578$export$166f000a4c5cc84a(props) {
47937
47937
  return newStepValid;
47938
47938
  });
47939
47939
  if (activeStep < steps.length - 1) setActiveStep((current)=>current + 1);
47940
- else setActiveStep(steps.length); // Completed step
47940
+ else if (formMode === "view") setActiveStep(steps.length); // Completed step
47941
47941
  } else setStepValid((prev)=>{
47942
47942
  const newStepValid = [
47943
47943
  ...prev
@@ -47945,8 +47945,10 @@ function $611d924da195f578$export$166f000a4c5cc84a(props) {
47945
47945
  newStepValid[activeStep] = false;
47946
47946
  return newStepValid;
47947
47947
  });
47948
- } else if (activeStep < steps.length - 1) setActiveStep((current)=>current + 1);
47949
- else setActiveStep(steps.length); // Completed step
47948
+ } else {
47949
+ if (activeStep < steps.length - 1) setActiveStep((current)=>current + 1);
47950
+ else if (formMode === "view") setActiveStep(steps.length); // Completed step
47951
+ }
47950
47952
  });
47951
47953
  const prevStep = (event)=>$611d924da195f578$var$__awaiter(this, void 0, void 0, function*() {
47952
47954
  event.preventDefault();
@@ -48040,6 +48042,9 @@ function $611d924da195f578$export$166f000a4c5cc84a(props) {
48040
48042
  leftIcon: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconCircleCheck), {
48041
48043
  size: "1.125rem"
48042
48044
  }),
48045
+ onClick: ()=>$611d924da195f578$var$__awaiter(this, void 0, void 0, function*() {
48046
+ return yield formAPI.handleSubmit();
48047
+ }),
48043
48048
  children: activeStepItem.nextStepLabel || nextStepLabel
48044
48049
  }, "stepper-submit") : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Button), {
48045
48050
  loading: stepValidating,