@mailstep/design-system 0.6.60-beta.0 → 0.6.60
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/package.json +1 -1
- package/ui/Blocks/Stepper/hooks/useStepper.d.ts +1 -0
- package/ui/Blocks/Stepper/hooks/useStepper.js +2 -2
- package/ui/index.es.js +7522 -7525
- package/ui/index.umd.js +375 -375
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { useCallback, useState } from 'react';
|
|
|
2
2
|
export var useStepper = function (_a) {
|
|
3
3
|
var totalSteps = _a.totalSteps;
|
|
4
4
|
var _b = useState(0), activeStep = _b[0], setActiveStep = _b[1];
|
|
5
|
-
var _c = useState(false),
|
|
5
|
+
var _c = useState(false), isSuccess = _c[0], setSuccess = _c[1];
|
|
6
6
|
var handleGoToNextStep = useCallback(function () {
|
|
7
7
|
if (activeStep + 1 === totalSteps) {
|
|
8
8
|
setSuccess(true);
|
|
@@ -13,5 +13,5 @@ export var useStepper = function (_a) {
|
|
|
13
13
|
var handleChangeStep = useCallback(function (step) { return function () {
|
|
14
14
|
setActiveStep(step);
|
|
15
15
|
}; }, []);
|
|
16
|
-
return { activeStep: activeStep, handleChangeStep: handleChangeStep, handleGoToNextStep: handleGoToNextStep };
|
|
16
|
+
return { activeStep: activeStep, handleChangeStep: handleChangeStep, handleGoToNextStep: handleGoToNextStep, isSuccess: isSuccess };
|
|
17
17
|
};
|