@mcurros2/microm 1.1.58-0 → 1.1.60-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();
@@ -48044,6 +48046,7 @@ function $611d924da195f578$export$166f000a4c5cc84a(props) {
48044
48046
  }, "stepper-submit") : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Button), {
48045
48047
  loading: stepValidating,
48046
48048
  onClick: nextStep,
48049
+ type: "button",
48047
48050
  children: (stepValid[activeStep] ? activeStepItem.nextStepValidLabel : activeStepItem.nextStepLabel) || nextStepLabel
48048
48051
  }, "stepper-next")
48049
48052
  ]