ywana-core8 0.0.659 → 0.0.660
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 +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/wizard.js +5 -5
- package/src/incubator/wizard.test.js +16 -2
package/dist/index.cjs
CHANGED
@@ -9633,10 +9633,8 @@ var WizardContext = React__default["default"].createContext({});
|
|
9633
9633
|
* Wizard Provider
|
9634
9634
|
*/
|
9635
9635
|
|
9636
|
-
var WizardProvider = function WizardProvider(
|
9637
|
-
var
|
9638
|
-
|
9639
|
-
var _useState = React.useState(context),
|
9636
|
+
var WizardProvider = function WizardProvider(props) {
|
9637
|
+
var _useState = React.useState(props.form),
|
9640
9638
|
form = _useState[0],
|
9641
9639
|
setForm = _useState[1];
|
9642
9640
|
|
@@ -9645,7 +9643,7 @@ var WizardProvider = function WizardProvider(_ref) {
|
|
9645
9643
|
form: form,
|
9646
9644
|
setForm: setForm
|
9647
9645
|
}
|
9648
|
-
}, children);
|
9646
|
+
}, props.children);
|
9649
9647
|
};
|
9650
9648
|
var Wizard = function Wizard(props) {
|
9651
9649
|
var finish = function finish() {
|
@@ -9668,7 +9666,9 @@ var Wizard = function Wizard(props) {
|
|
9668
9666
|
}
|
9669
9667
|
};
|
9670
9668
|
|
9671
|
-
var _props$
|
9669
|
+
var _props$form = props.form,
|
9670
|
+
form = _props$form === void 0 ? {} : _props$form,
|
9671
|
+
_props$init = props.init,
|
9672
9672
|
init = _props$init === void 0 ? 0 : _props$init,
|
9673
9673
|
onClose = props.onClose,
|
9674
9674
|
children = props.children;
|
@@ -9690,7 +9690,9 @@ var Wizard = function Wizard(props) {
|
|
9690
9690
|
ref: stepRef
|
9691
9691
|
});
|
9692
9692
|
}, [current]);
|
9693
|
-
return /*#__PURE__*/React__default["default"].createElement(WizardProvider,
|
9693
|
+
return /*#__PURE__*/React__default["default"].createElement(WizardProvider, {
|
9694
|
+
form: form
|
9695
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
9694
9696
|
className: "wizard"
|
9695
9697
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
9696
9698
|
className: "wizard-steps"
|