@data-driven-forms/carbon-component-mapper
Advanced tools
Comparing version 3.5.1 to 3.6.0
@@ -132,3 +132,4 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
WizardBodyProps = _ref5.WizardBodyProps, | ||
props = _objectWithoutProperties(_ref5, ["stepsInfo", "buttonLabels", "ButtonSetProps", "BackButtonProps", "NextButtonProps", "SubmitButtonProps", "ProgressIndicatorProps", "vertical", "WizardBodyProps"]); | ||
conditionalSubmitFlag = _ref5.conditionalSubmitFlag, | ||
props = _objectWithoutProperties(_ref5, ["stepsInfo", "buttonLabels", "ButtonSetProps", "BackButtonProps", "NextButtonProps", "SubmitButtonProps", "ProgressIndicatorProps", "vertical", "WizardBodyProps", "conditionalSubmitFlag"]); | ||
@@ -170,7 +171,9 @@ var _useContext = useContext(WizardContext), | ||
submitting = _ref6.submitting; | ||
var nextResult = currentStep.nextStep ? selectNext(currentStep.nextStep, formOptions.getState) : currentStep.nextStep; | ||
var progressNext = nextResult !== conditionalSubmitFlag && currentStep.nextStep; | ||
return /*#__PURE__*/React.createElement("div", _extends({}, ButtonSetProps, { | ||
className: clsx(buttonSet, ButtonSetProps.className) | ||
}), currentStep.nextStep ? /*#__PURE__*/React.createElement(Button, _extends({ | ||
}), progressNext ? /*#__PURE__*/React.createElement(Button, _extends({ | ||
onClick: function onClick() { | ||
return handleNext(selectNext(currentStep.nextStep, formOptions.getState)); | ||
return handleNext(nextResult); | ||
}, | ||
@@ -206,3 +209,4 @@ disabled: !formOptions.valid || invalid || validating || submitting | ||
vertical: PropTypes.bool, | ||
WizardBodyProps: PropTypes.object | ||
WizardBodyProps: PropTypes.object, | ||
conditionalSubmitFlag: PropTypes.string.isRequired | ||
}; | ||
@@ -209,0 +213,0 @@ WizardInternal.defaultProps = { |
{ | ||
"name": "@data-driven-forms/carbon-component-mapper", | ||
"version": "3.5.1", | ||
"version": "3.6.0", | ||
"description": "carbon-component-mapper for data-driven-forms.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -155,3 +155,4 @@ "use strict"; | ||
WizardBodyProps = _ref5.WizardBodyProps, | ||
props = (0, _objectWithoutProperties2["default"])(_ref5, ["stepsInfo", "buttonLabels", "ButtonSetProps", "BackButtonProps", "NextButtonProps", "SubmitButtonProps", "ProgressIndicatorProps", "vertical", "WizardBodyProps"]); | ||
conditionalSubmitFlag = _ref5.conditionalSubmitFlag, | ||
props = (0, _objectWithoutProperties2["default"])(_ref5, ["stepsInfo", "buttonLabels", "ButtonSetProps", "BackButtonProps", "NextButtonProps", "SubmitButtonProps", "ProgressIndicatorProps", "vertical", "WizardBodyProps", "conditionalSubmitFlag"]); | ||
@@ -194,7 +195,9 @@ var _useContext = (0, _react.useContext)(_wizardContext["default"]), | ||
submitting = _ref6.submitting; | ||
var nextResult = currentStep.nextStep ? selectNext(currentStep.nextStep, formOptions.getState) : currentStep.nextStep; | ||
var progressNext = nextResult !== conditionalSubmitFlag && currentStep.nextStep; | ||
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, ButtonSetProps, { | ||
className: (0, _clsx["default"])(buttonSet, ButtonSetProps.className) | ||
}), currentStep.nextStep ? /*#__PURE__*/_react["default"].createElement(_Button["default"], (0, _extends2["default"])({ | ||
}), progressNext ? /*#__PURE__*/_react["default"].createElement(_Button["default"], (0, _extends2["default"])({ | ||
onClick: function onClick() { | ||
return handleNext(selectNext(currentStep.nextStep, formOptions.getState)); | ||
return handleNext(nextResult); | ||
}, | ||
@@ -230,3 +233,4 @@ disabled: !formOptions.valid || invalid || validating || submitting | ||
vertical: _propTypes["default"].bool, | ||
WizardBodyProps: _propTypes["default"].object | ||
WizardBodyProps: _propTypes["default"].object, | ||
conditionalSubmitFlag: _propTypes["default"].string.isRequired | ||
}; | ||
@@ -233,0 +237,0 @@ WizardInternal.defaultProps = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235966
5130