ab-ui-library 1.23.2 → 1.24.0

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.
@@ -114,22 +114,22 @@ var ModalConfirmation = function ModalConfirmation(props) {
114
114
  className: 'mt-12'
115
115
  }, subtitle) : null, buttonProps ? /*#__PURE__*/React.createElement("div", {
116
116
  className: "modal__footer mt-32 ".concat(isFooterInline ? 'modal__footer-inline' : 'modal__footer-block')
117
- }, /*#__PURE__*/React.createElement(Button, _extends({
117
+ }, buttonProps !== null && buttonProps !== void 0 && buttonProps.cancel ? /*#__PURE__*/React.createElement(Button, _extends({
118
118
  type: "secondary",
119
119
  className: "modal__footer__btn",
120
120
  onClick: onClose,
121
121
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-cancel-button") : ''
122
- }, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.cancel) || {})), buttonProps !== null && buttonProps !== void 0 && buttonProps.deactivate ? /*#__PURE__*/React.createElement(Button, _extends({
122
+ }, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.cancel) || {})) : null, buttonProps !== null && buttonProps !== void 0 && buttonProps.deactivate ? /*#__PURE__*/React.createElement(Button, _extends({
123
123
  type: "secondary",
124
124
  className: 'modal__footer__btn',
125
125
  onClick: onSubmit,
126
126
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-confirm-button") : ''
127
- }, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.deactivate)) : null, /*#__PURE__*/React.createElement(Button, _extends({
127
+ }, buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.deactivate)) : null, buttonProps !== null && buttonProps !== void 0 && buttonProps.confirm ? /*#__PURE__*/React.createElement(Button, _extends({
128
128
  type: "danger",
129
129
  className: 'modal__footer__btn',
130
130
  onClick: onSubmit,
131
131
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-confirm-button") : ''
132
- }, buttonProps.confirm))) : null))) : null);
132
+ }, buttonProps.confirm)) : null) : null))) : null);
133
133
  };
134
134
 
135
135
  export { ModalConfirmation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-ui-library",
3
- "version": "1.23.2",
3
+ "version": "1.24.0",
4
4
  "description": "UI library for AM",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",