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.modern.js
CHANGED
@@ -9625,10 +9625,8 @@ var WizardContext = React.createContext({});
|
|
9625
9625
|
* Wizard Provider
|
9626
9626
|
*/
|
9627
9627
|
|
9628
|
-
var WizardProvider = function WizardProvider(
|
9629
|
-
var
|
9630
|
-
|
9631
|
-
var _useState = useState(context),
|
9628
|
+
var WizardProvider = function WizardProvider(props) {
|
9629
|
+
var _useState = useState(props.form),
|
9632
9630
|
form = _useState[0],
|
9633
9631
|
setForm = _useState[1];
|
9634
9632
|
|
@@ -9637,7 +9635,7 @@ var WizardProvider = function WizardProvider(_ref) {
|
|
9637
9635
|
form: form,
|
9638
9636
|
setForm: setForm
|
9639
9637
|
}
|
9640
|
-
}, children);
|
9638
|
+
}, props.children);
|
9641
9639
|
};
|
9642
9640
|
var Wizard = function Wizard(props) {
|
9643
9641
|
var finish = function finish() {
|
@@ -9660,7 +9658,9 @@ var Wizard = function Wizard(props) {
|
|
9660
9658
|
}
|
9661
9659
|
};
|
9662
9660
|
|
9663
|
-
var _props$
|
9661
|
+
var _props$form = props.form,
|
9662
|
+
form = _props$form === void 0 ? {} : _props$form,
|
9663
|
+
_props$init = props.init,
|
9664
9664
|
init = _props$init === void 0 ? 0 : _props$init,
|
9665
9665
|
onClose = props.onClose,
|
9666
9666
|
children = props.children;
|
@@ -9682,7 +9682,9 @@ var Wizard = function Wizard(props) {
|
|
9682
9682
|
ref: stepRef
|
9683
9683
|
});
|
9684
9684
|
}, [current]);
|
9685
|
-
return /*#__PURE__*/React.createElement(WizardProvider,
|
9685
|
+
return /*#__PURE__*/React.createElement(WizardProvider, {
|
9686
|
+
form: form
|
9687
|
+
}, /*#__PURE__*/React.createElement("div", {
|
9686
9688
|
className: "wizard"
|
9687
9689
|
}, /*#__PURE__*/React.createElement("div", {
|
9688
9690
|
className: "wizard-steps"
|