optimized-react-component-library-xyz123 2.5.11 → 2.5.12

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.d.mts CHANGED
@@ -994,7 +994,6 @@ interface StepperButtonsNoApiProps {
994
994
  globalLanguageState?: any;
995
995
  changeStepHandler: (activeStep: number) => void;
996
996
  nextStepButtonHandler?: (e: any) => void;
997
- onSubmitHandler?: (e: any) => void;
998
997
  steps?: any[];
999
998
  activeStep: number;
1000
999
  appUsesResetButton?: boolean;
@@ -1015,8 +1014,6 @@ interface StepperButtonsNoApiProps {
1015
1014
  *
1016
1015
  * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
1017
1016
  *
1018
- * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1019
- *
1020
1017
  * @param {Array} steps Lista över alla steg i formuläret.
1021
1018
  * Används för att räkna ut sista stegnumret.
1022
1019
  *
package/dist/index.d.ts CHANGED
@@ -994,7 +994,6 @@ interface StepperButtonsNoApiProps {
994
994
  globalLanguageState?: any;
995
995
  changeStepHandler: (activeStep: number) => void;
996
996
  nextStepButtonHandler?: (e: any) => void;
997
- onSubmitHandler?: (e: any) => void;
998
997
  steps?: any[];
999
998
  activeStep: number;
1000
999
  appUsesResetButton?: boolean;
@@ -1015,8 +1014,6 @@ interface StepperButtonsNoApiProps {
1015
1014
  *
1016
1015
  * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
1017
1016
  *
1018
- * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1019
- *
1020
1017
  * @param {Array} steps Lista över alla steg i formuläret.
1021
1018
  * Används för att räkna ut sista stegnumret.
1022
1019
  *
package/dist/index.js CHANGED
@@ -4268,22 +4268,14 @@ var StepperButtonsNoApi = ({
4268
4268
  globalLanguageState,
4269
4269
  changeStepHandler,
4270
4270
  nextStepButtonHandler,
4271
- onSubmitHandler,
4271
+ //onSubmitHandler,
4272
4272
  steps,
4273
4273
  activeStep,
4274
4274
  appUsesResetButton = true
4275
4275
  }) => {
4276
4276
  const totalSteps = steps ? steps.length : "";
4277
4277
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "pts-stepperButtons-container", children: [
4278
- activeStep === 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4279
- "button",
4280
- {
4281
- type: "button",
4282
- className: "pts-forwardButton",
4283
- onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
4284
- children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : ""
4285
- }
4286
- ) }),
4278
+ activeStep === 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { type: "button", className: "pts-forwardButton", onClick: nextStepButtonHandler, children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : "" }) }),
4287
4279
  activeStep !== 0 && activeStep !== totalSteps && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4288
4280
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4289
4281
  "button",
@@ -4294,15 +4286,7 @@ var StepperButtonsNoApi = ({
4294
4286
  children: globalLanguageState ? globalLanguageState.backButton : "<<"
4295
4287
  }
4296
4288
  ),
4297
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4298
- "button",
4299
- {
4300
- type: "button",
4301
- className: "pts-forwardButton",
4302
- onClick: activeStep !== totalSteps ? nextStepButtonHandler : onSubmitHandler,
4303
- children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : ""
4304
- }
4305
- )
4289
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { type: "button", className: "pts-forwardButton", onClick: nextStepButtonHandler, children: activeStep !== totalSteps && globalLanguageState ? globalLanguageState.forwardButton : "" })
4306
4290
  ] }),
4307
4291
  appUsesResetButton && activeStep === totalSteps && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { onClick: () => changeStepHandler(0), className: "pts-backButton", type: "button", children: globalLanguageState && globalLanguageState.restartButton ? globalLanguageState.restartButton : "Starta om" })
4308
4292
  ] });