ab-ui-library 1.48.5 → 1.48.6

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.
@@ -78,7 +78,9 @@ var Modal = function Modal(props) {
78
78
  dataIdPrefix = props.dataIdPrefix,
79
79
  _props$closeOnOutside = props.closeOnOutsideClick,
80
80
  closeOnOutsideClick = _props$closeOnOutside === void 0 ? true : _props$closeOnOutside,
81
- confirmBtnTooltipText = props.confirmBtnTooltipText;
81
+ confirmBtnTooltipText = props.confirmBtnTooltipText,
82
+ _props$hasCancelBtn = props.hasCancelBtn,
83
+ hasCancelBtn = _props$hasCancelBtn === void 0 ? true : _props$hasCancelBtn;
82
84
  var _useState = useState(null),
83
85
  _useState2 = _slicedToArray(_useState, 2),
84
86
  containerRef = _useState2[0],
@@ -88,7 +90,7 @@ var Modal = function Modal(props) {
88
90
  var checkbox = checkProps ? /*#__PURE__*/React.createElement(Checkbox, checkProps) : null;
89
91
  var buttons = buttonProps ? /*#__PURE__*/React.createElement("div", {
90
92
  className: "flexbox ".concat(checkProps ? '' : 'full-width justify-content--end')
91
- }, /*#__PURE__*/React.createElement(Button, _extends({
93
+ }, hasCancelBtn && /*#__PURE__*/React.createElement(Button, _extends({
92
94
  type: "tertiary",
93
95
  className: "modal__footer__btn mr-16",
94
96
  onClick: onClose,
@@ -23,6 +23,7 @@ export interface TModalPropTypes {
23
23
  children?: ReactNode;
24
24
  className?: string;
25
25
  confirmBtnTooltipText?: string;
26
+ hasCancelBtn?: boolean;
26
27
  }
27
28
  export interface TModalConfirmationPropTypes {
28
29
  dataIdPrefix?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-ui-library",
3
- "version": "1.48.5",
3
+ "version": "1.48.6",
4
4
  "description": "UI library for AM",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",