ywana-core8 0.0.664 → 0.0.666

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.umd.js CHANGED
@@ -7569,7 +7569,8 @@
7569
7569
  editorFilter = _props$editorFilter === void 0 ? false : _props$editorFilter,
7570
7570
  tabbedBy = props.tabbedBy,
7571
7571
  tableClassName = props.tableClassName,
7572
- children = props.children;
7572
+ children = props.children,
7573
+ onSelect = props.onSelect;
7573
7574
 
7574
7575
  var _useContext = React.useContext(PageContext),
7575
7576
  pageContext = _useContext[0],
@@ -7602,6 +7603,7 @@
7602
7603
  }, []);
7603
7604
  React.useEffect(function () {
7604
7605
  setForm(selected);
7606
+ if (onSelect) onSelect(selected);
7605
7607
  }, [selected]);
7606
7608
  React.useEffect(function () {
7607
7609
  if (autosave) {
@@ -9672,7 +9674,7 @@
9672
9674
  current = _useState2$ === void 0 ? 0 : _useState2$,
9673
9675
  setCurrent = _useState2[1];
9674
9676
 
9675
- var _useState3 = React.useState(true),
9677
+ var _useState3 = React.useState(false),
9676
9678
  valid = _useState3[0],
9677
9679
  setValid = _useState3[1];
9678
9680
 
@@ -9692,13 +9694,14 @@
9692
9694
  onChange: validate
9693
9695
  });
9694
9696
  var nextButton = current < steps.length - 1 ? /*#__PURE__*/React__default["default"].createElement(Button, {
9695
- label: "Siguiented",
9697
+ label: "Siguiente",
9696
9698
  action: next,
9697
9699
  raised: true,
9698
9700
  disabled: !valid
9699
9701
  }) : /*#__PURE__*/React__default["default"].createElement(Button, {
9700
9702
  label: "Finish",
9701
- action: finish
9703
+ action: finish,
9704
+ disabled: !valid
9702
9705
  });
9703
9706
  var prevButton = current > 0 ? /*#__PURE__*/React__default["default"].createElement(Button, {
9704
9707
  label: "Atr\xE1s",