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 CHANGED
@@ -9633,10 +9633,8 @@ var WizardContext = React__default["default"].createContext({});
9633
9633
  * Wizard Provider
9634
9634
  */
9635
9635
 
9636
- var WizardProvider = function WizardProvider(_ref) {
9637
- var children = _ref.children;
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$init = props.init,
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, null, /*#__PURE__*/React__default["default"].createElement("div", {
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"