@xelto.npm/xc2-lib 0.1.1 → 0.1.2
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.cjs.js +5 -11
- package/dist/index.esm.js +5 -11
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -97903,14 +97903,8 @@ var CustomStepper = function CustomStepper(_ref4) {
|
|
|
97903
97903
|
console.log(currentStep + _typeof$I(currentStep));
|
|
97904
97904
|
var currentStepIndex = steps.indexOf(currentStep);
|
|
97905
97905
|
console.log('currentStepIndex ' + currentStepIndex);
|
|
97906
|
-
var _useState = React.useState(currentStepIndex),
|
|
97907
|
-
_useState2 = _slicedToArray$a(_useState, 2),
|
|
97908
|
-
activeStepIndex = _useState2[0];
|
|
97909
|
-
_useState2[1];
|
|
97910
|
-
// const [completed, setCompleted] = useState({});
|
|
97911
97906
|
var totalSteps = steps.length;
|
|
97912
|
-
|
|
97913
|
-
var allStepsCompleted = activeStepIndex + 1 === totalSteps;
|
|
97907
|
+
var allStepsCompleted = currentStepIndex + 1 === totalSteps;
|
|
97914
97908
|
return /*#__PURE__*/React.createElement(StyledStepperContainer, null, /*#__PURE__*/React.createElement(Box$1, {
|
|
97915
97909
|
sx: {
|
|
97916
97910
|
width: '100%'
|
|
@@ -97918,17 +97912,17 @@ var CustomStepper = function CustomStepper(_ref4) {
|
|
|
97918
97912
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, allStepsCompleted ? /*#__PURE__*/React.createElement(StyledLabelAndIconWrapper, null, /*#__PURE__*/React.createElement(StepLabel$1, null, label, " (", steps.length, "/", steps.length, ")"), withIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
97919
97913
|
iconName: 'icon_wf_no_barcodrinter',
|
|
97920
97914
|
size: 'responsive'
|
|
97921
|
-
})) : /*#__PURE__*/React.createElement(StyledLabelAndIconWrapper, null, /*#__PURE__*/React.createElement(StepLabel$1, null, label, " (",
|
|
97915
|
+
})) : /*#__PURE__*/React.createElement(StyledLabelAndIconWrapper, null, /*#__PURE__*/React.createElement(StepLabel$1, null, label, " (", currentStepIndex + 1, "/", steps.length, ")"), withIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
97922
97916
|
iconName: 'icon_wf_no_barcode_printer',
|
|
97923
97917
|
size: 'responsive'
|
|
97924
97918
|
}))), /*#__PURE__*/React.createElement(StyledStepper, {
|
|
97925
|
-
activeStep:
|
|
97919
|
+
activeStep: currentStepIndex,
|
|
97926
97920
|
numberOfSteps: steps.length
|
|
97927
97921
|
}, steps.map(function (step, index) {
|
|
97928
97922
|
return /*#__PURE__*/React.createElement(StyledStep, {
|
|
97929
97923
|
key: step,
|
|
97930
|
-
completed: index <
|
|
97931
|
-
className:
|
|
97924
|
+
completed: index < currentStepIndex,
|
|
97925
|
+
className: currentStepIndex === index ? 'active' : ''
|
|
97932
97926
|
});
|
|
97933
97927
|
}))));
|
|
97934
97928
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -97883,14 +97883,8 @@ var CustomStepper = function CustomStepper(_ref4) {
|
|
|
97883
97883
|
console.log(currentStep + _typeof$I(currentStep));
|
|
97884
97884
|
var currentStepIndex = steps.indexOf(currentStep);
|
|
97885
97885
|
console.log('currentStepIndex ' + currentStepIndex);
|
|
97886
|
-
var _useState = useState(currentStepIndex),
|
|
97887
|
-
_useState2 = _slicedToArray$a(_useState, 2),
|
|
97888
|
-
activeStepIndex = _useState2[0];
|
|
97889
|
-
_useState2[1];
|
|
97890
|
-
// const [completed, setCompleted] = useState({});
|
|
97891
97886
|
var totalSteps = steps.length;
|
|
97892
|
-
|
|
97893
|
-
var allStepsCompleted = activeStepIndex + 1 === totalSteps;
|
|
97887
|
+
var allStepsCompleted = currentStepIndex + 1 === totalSteps;
|
|
97894
97888
|
return /*#__PURE__*/React__default.createElement(StyledStepperContainer, null, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
97895
97889
|
sx: {
|
|
97896
97890
|
width: '100%'
|
|
@@ -97898,17 +97892,17 @@ var CustomStepper = function CustomStepper(_ref4) {
|
|
|
97898
97892
|
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, allStepsCompleted ? /*#__PURE__*/React__default.createElement(StyledLabelAndIconWrapper, null, /*#__PURE__*/React__default.createElement(StepLabel$1, null, label, " (", steps.length, "/", steps.length, ")"), withIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
97899
97893
|
iconName: 'icon_wf_no_barcodrinter',
|
|
97900
97894
|
size: 'responsive'
|
|
97901
|
-
})) : /*#__PURE__*/React__default.createElement(StyledLabelAndIconWrapper, null, /*#__PURE__*/React__default.createElement(StepLabel$1, null, label, " (",
|
|
97895
|
+
})) : /*#__PURE__*/React__default.createElement(StyledLabelAndIconWrapper, null, /*#__PURE__*/React__default.createElement(StepLabel$1, null, label, " (", currentStepIndex + 1, "/", steps.length, ")"), withIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
97902
97896
|
iconName: 'icon_wf_no_barcode_printer',
|
|
97903
97897
|
size: 'responsive'
|
|
97904
97898
|
}))), /*#__PURE__*/React__default.createElement(StyledStepper, {
|
|
97905
|
-
activeStep:
|
|
97899
|
+
activeStep: currentStepIndex,
|
|
97906
97900
|
numberOfSteps: steps.length
|
|
97907
97901
|
}, steps.map(function (step, index) {
|
|
97908
97902
|
return /*#__PURE__*/React__default.createElement(StyledStep, {
|
|
97909
97903
|
key: step,
|
|
97910
|
-
completed: index <
|
|
97911
|
-
className:
|
|
97904
|
+
completed: index < currentStepIndex,
|
|
97905
|
+
className: currentStepIndex === index ? 'active' : ''
|
|
97912
97906
|
});
|
|
97913
97907
|
}))));
|
|
97914
97908
|
};
|