@bigbinary/neetoui 5.2.36 → 5.2.37

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/index.cjs.js CHANGED
@@ -18946,7 +18946,9 @@ var Alert = function Alert(_ref) {
18946
18946
  _ref$cancelButtonLabe = _ref.cancelButtonLabel,
18947
18947
  cancelButtonLabel = _ref$cancelButtonLabe === void 0 ? "Cancel" : _ref$cancelButtonLabe,
18948
18948
  initialFocusRef = _ref.initialFocusRef,
18949
- initialFocusElement = _ref.initialFocusElement;
18949
+ initialFocusElement = _ref.initialFocusElement,
18950
+ _ref$hideCancelButton = _ref.hideCancelButton,
18951
+ hideCancelButton = _ref$hideCancelButton === void 0 ? false : _ref$hideCancelButton;
18950
18952
  var submitButtonRef = React$3.useRef(null);
18951
18953
  var cancelButtonRef = React$3.useRef(null);
18952
18954
  var hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;
@@ -18957,10 +18959,10 @@ var Alert = function Alert(_ref) {
18957
18959
  closeButton: closeButton,
18958
18960
  closeOnEsc: closeOnEsc,
18959
18961
  closeOnOutsideClick: closeOnOutsideClick,
18960
- "data-cy": "alert-box",
18961
18962
  isOpen: isOpen,
18963
+ onClose: onClose,
18962
18964
  size: size,
18963
- onClose: onClose
18965
+ "data-cy": "alert-box"
18964
18966
  }, hasCustomFocusableElement && {
18965
18967
  initialFocusRef: initialFocusRef || initialFocusElementRef
18966
18968
  }), /*#__PURE__*/React__default["default"].createElement(Modal.Header, null, /*#__PURE__*/React__default["default"].createElement(Typography, {
@@ -18980,7 +18982,7 @@ var Alert = function Alert(_ref) {
18980
18982
  ref: submitButtonRef,
18981
18983
  style: "danger",
18982
18984
  onClick: onSubmit
18983
- }), /*#__PURE__*/React__default["default"].createElement(Button, {
18985
+ }), !hideCancelButton && /*#__PURE__*/React__default["default"].createElement(Button, {
18984
18986
  "data-cy": "alert-cancel-button",
18985
18987
  label: cancelButtonLabel,
18986
18988
  ref: cancelButtonRef,