@data-driven-forms/mui-component-mapper 4.1.4 → 4.1.5
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/CHANGELOG.md +6 -0
- package/checkbox/checkbox.js +33 -58
- package/checkbox/index.js +1 -7
- package/component-mapper/component-mapper.js +3 -25
- package/component-mapper/index.js +1 -7
- package/date-picker/date-picker.js +17 -28
- package/date-picker/index.js +1 -7
- package/dual-list-select/dual-list-select.js +149 -186
- package/dual-list-select/index.js +1 -7
- package/esm/checkbox/checkbox.js +31 -38
- package/esm/component-mapper/component-mapper.js +1 -3
- package/esm/date-picker/date-picker.js +16 -18
- package/esm/dual-list-select/dual-list-select.js +148 -158
- package/esm/field-array/field-array.js +92 -116
- package/esm/form-field-grid/form-field-grid.js +2 -5
- package/esm/form-template/form-template.js +23 -40
- package/esm/multiple-choice-list/multiple-choice-list.js +40 -49
- package/esm/plain-text/plain-text.js +8 -11
- package/esm/radio/radio.js +45 -55
- package/esm/select/select.js +55 -71
- package/esm/slider/slider.js +21 -24
- package/esm/sub-form/sub-form.js +10 -14
- package/esm/switch/switch.js +30 -34
- package/esm/tabs/tabs.js +18 -24
- package/esm/text-field/text-field.js +15 -21
- package/esm/textarea/textarea.js +17 -23
- package/esm/time-picker/time-picker.js +16 -18
- package/esm/validation-error/validation-error.js +0 -1
- package/esm/wizard/step-buttons.js +25 -32
- package/esm/wizard/wizard-nav.js +6 -8
- package/esm/wizard/wizard.js +16 -25
- package/field-array/field-array.js +95 -148
- package/field-array/index.js +1 -7
- package/form-field-grid/form-field-grid.js +3 -15
- package/form-field-grid/index.js +0 -2
- package/form-template/form-template.js +25 -55
- package/form-template/index.js +1 -7
- package/index.js +1 -25
- package/multiple-choice-list/index.js +1 -7
- package/multiple-choice-list/multiple-choice-list.js +42 -70
- package/package.json +3 -3
- package/plain-text/index.js +1 -7
- package/plain-text/plain-text.js +9 -18
- package/radio/index.js +1 -7
- package/radio/radio.js +46 -72
- package/select/index.js +1 -7
- package/select/select.js +59 -97
- package/slider/index.js +1 -7
- package/slider/slider.js +22 -40
- package/sub-form/index.js +1 -7
- package/sub-form/sub-form.js +11 -26
- package/switch/index.js +1 -7
- package/switch/switch.js +32 -54
- package/tabs/index.js +1 -7
- package/tabs/tabs.js +20 -43
- package/text-field/index.js +1 -7
- package/text-field/text-field.js +16 -32
- package/textarea/index.js +1 -7
- package/textarea/textarea.js +18 -34
- package/time-picker/index.js +1 -7
- package/time-picker/time-picker.js +17 -30
- package/validation-error/index.js +1 -7
- package/validation-error/validation-error.js +2 -7
- package/wizard/index.js +1 -7
- package/wizard/step-buttons.js +26 -46
- package/wizard/wizard-nav.js +7 -20
- package/wizard/wizard.js +18 -43
- package/tsconfig.json +0 -17
|
@@ -2,33 +2,28 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["input", "isReadOnly", "isDisabled", "placeholder", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "inputProps", "FormFieldGridProps"];
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
|
-
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
7
|
import React from 'react';
|
|
11
8
|
import MuiTextField from "@mui/material/TextField";
|
|
12
9
|
import FormFieldGrid from '../form-field-grid/form-field-grid';
|
|
13
10
|
import { validationError } from '../validation-error/validation-error';
|
|
14
11
|
import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
|
|
15
|
-
|
|
16
12
|
var TextField = function TextField(props) {
|
|
17
13
|
var _useFieldApi = useFieldApi(props),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
input = _useFieldApi.input,
|
|
15
|
+
isReadOnly = _useFieldApi.isReadOnly,
|
|
16
|
+
isDisabled = _useFieldApi.isDisabled,
|
|
17
|
+
placeholder = _useFieldApi.placeholder,
|
|
18
|
+
isRequired = _useFieldApi.isRequired,
|
|
19
|
+
label = _useFieldApi.label,
|
|
20
|
+
helperText = _useFieldApi.helperText,
|
|
21
|
+
description = _useFieldApi.description,
|
|
22
|
+
validateOnMount = _useFieldApi.validateOnMount,
|
|
23
|
+
meta = _useFieldApi.meta,
|
|
24
|
+
inputProps = _useFieldApi.inputProps,
|
|
25
|
+
FormFieldGridProps = _useFieldApi.FormFieldGridProps,
|
|
26
|
+
rest = _objectWithoutProperties(_useFieldApi, _excluded);
|
|
32
27
|
var invalid = validationError(meta, validateOnMount);
|
|
33
28
|
return /*#__PURE__*/React.createElement(FormFieldGrid, FormFieldGridProps, /*#__PURE__*/React.createElement(MuiTextField, _extends({}, input, {
|
|
34
29
|
fullWidth: true,
|
|
@@ -43,5 +38,4 @@ var TextField = function TextField(props) {
|
|
|
43
38
|
}, inputProps)
|
|
44
39
|
}, rest)));
|
|
45
40
|
};
|
|
46
|
-
|
|
47
41
|
export default TextField;
|
package/esm/textarea/textarea.js
CHANGED
|
@@ -2,35 +2,30 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["input", "isReadOnly", "isDisabled", "placeholder", "isRequired", "label", "helperText", "description", "validateOnMount", "meta", "FormFieldGridProps", "inputProps"];
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
|
-
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
7
|
import React from 'react';
|
|
11
8
|
import MuiTextField from "@mui/material/TextField";
|
|
12
9
|
import FormFieldGrid from '../form-field-grid/form-field-grid';
|
|
13
10
|
import { validationError } from '../validation-error/validation-error';
|
|
14
11
|
import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
|
|
15
|
-
|
|
16
12
|
var Textarea = function Textarea(props) {
|
|
17
13
|
var _useFieldApi = useFieldApi(props),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
input = _useFieldApi.input,
|
|
15
|
+
isReadOnly = _useFieldApi.isReadOnly,
|
|
16
|
+
isDisabled = _useFieldApi.isDisabled,
|
|
17
|
+
placeholder = _useFieldApi.placeholder,
|
|
18
|
+
isRequired = _useFieldApi.isRequired,
|
|
19
|
+
label = _useFieldApi.label,
|
|
20
|
+
helperText = _useFieldApi.helperText,
|
|
21
|
+
description = _useFieldApi.description,
|
|
22
|
+
validateOnMount = _useFieldApi.validateOnMount,
|
|
23
|
+
meta = _useFieldApi.meta,
|
|
24
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
25
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
26
|
+
_useFieldApi$inputPro = _useFieldApi.inputProps,
|
|
27
|
+
inputProps = _useFieldApi$inputPro === void 0 ? {} : _useFieldApi$inputPro,
|
|
28
|
+
rest = _objectWithoutProperties(_useFieldApi, _excluded);
|
|
34
29
|
var invalid = validationError(meta, validateOnMount);
|
|
35
30
|
return /*#__PURE__*/React.createElement(FormFieldGrid, FormFieldGridProps, /*#__PURE__*/React.createElement(MuiTextField, _extends({}, input, {
|
|
36
31
|
fullWidth: true,
|
|
@@ -47,5 +42,4 @@ var Textarea = function Textarea(props) {
|
|
|
47
42
|
multiline: true
|
|
48
43
|
})));
|
|
49
44
|
};
|
|
50
|
-
|
|
51
45
|
export default Textarea;
|
|
@@ -7,24 +7,22 @@ import FormFieldGrid from '../form-field-grid/form-field-grid';
|
|
|
7
7
|
import { validationError } from '../validation-error/validation-error';
|
|
8
8
|
import useFieldApi from "@data-driven-forms/react-form-renderer/use-field-api";
|
|
9
9
|
import TextField from "@mui/material/TextField";
|
|
10
|
-
|
|
11
10
|
var TimePicker = function TimePicker(props) {
|
|
12
11
|
var _useFieldApi = useFieldApi(props),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
input = _useFieldApi.input,
|
|
13
|
+
isReadOnly = _useFieldApi.isReadOnly,
|
|
14
|
+
isDisabled = _useFieldApi.isDisabled,
|
|
15
|
+
placeholder = _useFieldApi.placeholder,
|
|
16
|
+
isRequired = _useFieldApi.isRequired,
|
|
17
|
+
label = _useFieldApi.label,
|
|
18
|
+
helperText = _useFieldApi.helperText,
|
|
19
|
+
description = _useFieldApi.description,
|
|
20
|
+
validateOnMount = _useFieldApi.validateOnMount,
|
|
21
|
+
meta = _useFieldApi.meta,
|
|
22
|
+
MuiPickersUtilsProviderProps = _useFieldApi.MuiPickersUtilsProviderProps,
|
|
23
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
24
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
25
|
+
rest = _objectWithoutProperties(_useFieldApi, _excluded);
|
|
28
26
|
var invalid = validationError(meta, validateOnMount);
|
|
29
27
|
return /*#__PURE__*/React.createElement(FormFieldGrid, FormFieldGridProps, /*#__PURE__*/React.createElement(MUITimePicker, _extends({
|
|
30
28
|
slotProps: {
|
|
@@ -39,7 +37,8 @@ var TimePicker = function TimePicker(props) {
|
|
|
39
37
|
onBlur: input.onBlur,
|
|
40
38
|
onFocus: input.onFocus
|
|
41
39
|
}
|
|
42
|
-
}
|
|
40
|
+
}
|
|
41
|
+
// legacy version
|
|
43
42
|
,
|
|
44
43
|
renderInput: function renderInput(props) {
|
|
45
44
|
return /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
|
|
@@ -58,5 +57,4 @@ var TimePicker = function TimePicker(props) {
|
|
|
58
57
|
value: input.value || null
|
|
59
58
|
}, rest)));
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
export default TimePicker;
|
|
@@ -17,30 +17,27 @@ var classes = {
|
|
|
17
17
|
buttonsContainer: "".concat(PREFIX, "-buttonsContainer")
|
|
18
18
|
};
|
|
19
19
|
var StyledGrid = styled(Grid)(function () {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return _ref = {}, _defineProperty(_ref, "& .".concat(classes.wizardBody), {
|
|
20
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "& .".concat(classes.wizardBody), {
|
|
23
21
|
padding: 24,
|
|
24
22
|
margin: 0
|
|
25
|
-
}),
|
|
23
|
+
}), "& .".concat(classes.buttons), {
|
|
26
24
|
display: 'flex',
|
|
27
25
|
justifyContent: 'flex-end'
|
|
28
|
-
}),
|
|
26
|
+
}), "& .".concat(classes.button), {
|
|
29
27
|
marginRight: 16
|
|
30
|
-
}),
|
|
28
|
+
}), "&.".concat(classes.buttonsContainer), {
|
|
31
29
|
marginTop: 36
|
|
32
|
-
})
|
|
30
|
+
});
|
|
33
31
|
});
|
|
34
|
-
|
|
35
32
|
var NextButton = function NextButton(_ref2) {
|
|
36
33
|
var nextStep = _ref2.nextStep,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
valid = _ref2.valid,
|
|
35
|
+
handleNext = _ref2.handleNext,
|
|
36
|
+
nextLabel = _ref2.nextLabel,
|
|
37
|
+
getState = _ref2.getState,
|
|
38
|
+
handleSubmit = _ref2.handleSubmit,
|
|
39
|
+
submitLabel = _ref2.submitLabel,
|
|
40
|
+
conditionalSubmitFlag = _ref2.conditionalSubmitFlag;
|
|
44
41
|
var nextResult = nextStep ? selectNext(nextStep, getState) : nextStep;
|
|
45
42
|
var progressNext = nextResult !== conditionalSubmitFlag && nextStep;
|
|
46
43
|
return /*#__PURE__*/React.createElement(Button, {
|
|
@@ -52,30 +49,27 @@ var NextButton = function NextButton(_ref2) {
|
|
|
52
49
|
}
|
|
53
50
|
}, progressNext ? nextLabel : submitLabel);
|
|
54
51
|
};
|
|
55
|
-
|
|
56
52
|
var WizardStepButtons = function WizardStepButtons(_ref3) {
|
|
57
53
|
var Buttons = _ref3.buttons,
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
60
55
|
if (Buttons) {
|
|
61
56
|
return /*#__PURE__*/React.createElement(Buttons, _extends({
|
|
62
57
|
classes: classes
|
|
63
58
|
}, props));
|
|
64
59
|
}
|
|
65
|
-
|
|
66
60
|
var disableBack = props.disableBack,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
handlePrev = props.handlePrev,
|
|
62
|
+
nextStep = props.nextStep,
|
|
63
|
+
handleNext = props.handleNext,
|
|
64
|
+
_props$buttonLabels = props.buttonLabels,
|
|
65
|
+
cancel = _props$buttonLabels.cancel,
|
|
66
|
+
submit = _props$buttonLabels.submit,
|
|
67
|
+
back = _props$buttonLabels.back,
|
|
68
|
+
next = _props$buttonLabels.next,
|
|
69
|
+
formOptions = props.formOptions,
|
|
70
|
+
_props$ButtonContaine = props.ButtonContainerProps,
|
|
71
|
+
ButtonContainerProps = _props$ButtonContaine === void 0 ? {} : _props$ButtonContaine,
|
|
72
|
+
conditionalSubmitFlag = props.conditionalSubmitFlag;
|
|
79
73
|
return /*#__PURE__*/React.createElement(StyledGrid, _extends({
|
|
80
74
|
container: true,
|
|
81
75
|
direction: "row",
|
|
@@ -114,5 +108,4 @@ var WizardStepButtons = function WizardStepButtons(_ref3) {
|
|
|
114
108
|
}))));
|
|
115
109
|
}));
|
|
116
110
|
};
|
|
117
|
-
|
|
118
111
|
export default WizardStepButtons;
|
package/esm/wizard/wizard-nav.js
CHANGED
|
@@ -15,24 +15,22 @@ var StyledStepper = styled(Stepper)(function () {
|
|
|
15
15
|
width: '100%'
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
var WizardNav = function WizardNav(_ref2) {
|
|
20
19
|
var _ref2$StepperProps = _ref2.StepperProps,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
StepperProps = _ref2$StepperProps === void 0 ? {} : _ref2$StepperProps,
|
|
21
|
+
stepsInfo = _ref2.stepsInfo,
|
|
22
|
+
activeStepIndex = _ref2.activeStepIndex;
|
|
24
23
|
return /*#__PURE__*/React.createElement(StyledStepper, _extends({}, StepperProps, {
|
|
25
24
|
className: clsx(classes.stepper, StepperProps.className),
|
|
26
25
|
activeStep: activeStepIndex
|
|
27
26
|
}), stepsInfo.map(function (_ref3, idx) {
|
|
28
27
|
var title = _ref3.title,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
label = _ref3.label,
|
|
29
|
+
StepLabelProps = _ref3.StepLabelProps,
|
|
30
|
+
StepProps = _ref3.StepProps;
|
|
32
31
|
return /*#__PURE__*/React.createElement(Step, _extends({}, StepProps, {
|
|
33
32
|
key: idx
|
|
34
33
|
}), /*#__PURE__*/React.createElement(StepLabel, StepLabelProps, title || label));
|
|
35
34
|
}));
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
export default WizardNav;
|
package/esm/wizard/wizard.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
-
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
5
|
import React, { useContext } from 'react';
|
|
9
6
|
import { styled } from '@mui/material/styles';
|
|
10
7
|
import clsx from 'clsx';
|
|
@@ -23,33 +20,29 @@ var StyledWizard = styled(Grid)(function () {
|
|
|
23
20
|
margin: 0
|
|
24
21
|
});
|
|
25
22
|
});
|
|
26
|
-
|
|
27
23
|
var WizardInternal = function WizardInternal(_ref2) {
|
|
28
24
|
var buttonLabels = _ref2.buttonLabels,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
stepsInfo = _ref2.stepsInfo,
|
|
26
|
+
ButtonContainerProps = _ref2.ButtonContainerProps,
|
|
27
|
+
StepperProps = _ref2.StepperProps,
|
|
28
|
+
_ref2$WizardBodyProps = _ref2.WizardBodyProps,
|
|
29
|
+
WizardBodyProps = _ref2$WizardBodyProps === void 0 ? {} : _ref2$WizardBodyProps,
|
|
30
|
+
WizardProps = _ref2.WizardProps,
|
|
31
|
+
conditionalSubmitFlag = _ref2.conditionalSubmitFlag;
|
|
37
32
|
var _useContext = useContext(WizardContext),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
formOptions = _useContext.formOptions,
|
|
34
|
+
currentStep = _useContext.currentStep,
|
|
35
|
+
handlePrev = _useContext.handlePrev,
|
|
36
|
+
onKeyDown = _useContext.onKeyDown,
|
|
37
|
+
handleNext = _useContext.handleNext,
|
|
38
|
+
activeStepIndex = _useContext.activeStepIndex,
|
|
39
|
+
prevSteps = _useContext.prevSteps;
|
|
46
40
|
var buttonLabelsFinal = _objectSpread({
|
|
47
41
|
next: 'Continue',
|
|
48
42
|
submit: 'Submit',
|
|
49
43
|
cancel: 'Cancel',
|
|
50
44
|
back: 'Back'
|
|
51
45
|
}, buttonLabels);
|
|
52
|
-
|
|
53
46
|
return /*#__PURE__*/React.createElement(StyledWizard, _extends({
|
|
54
47
|
container: true
|
|
55
48
|
}, WizardProps, {
|
|
@@ -75,11 +68,9 @@ var WizardInternal = function WizardInternal(_ref2) {
|
|
|
75
68
|
ButtonContainerProps: ButtonContainerProps
|
|
76
69
|
}))));
|
|
77
70
|
};
|
|
78
|
-
|
|
79
71
|
var MuiWizard = function MuiWizard(props) {
|
|
80
72
|
return /*#__PURE__*/React.createElement(Wizard, _extends({
|
|
81
73
|
Wizard: WizardInternal
|
|
82
74
|
}, props));
|
|
83
75
|
};
|
|
84
|
-
|
|
85
76
|
export default MuiWizard;
|