@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/formik.cjs.js CHANGED
@@ -17023,7 +17023,9 @@ var Alert = function Alert(_ref) {
17023
17023
  _ref$cancelButtonLabe = _ref.cancelButtonLabel,
17024
17024
  cancelButtonLabel = _ref$cancelButtonLabe === void 0 ? "Cancel" : _ref$cancelButtonLabe,
17025
17025
  initialFocusRef = _ref.initialFocusRef,
17026
- initialFocusElement = _ref.initialFocusElement;
17026
+ initialFocusElement = _ref.initialFocusElement,
17027
+ _ref$hideCancelButton = _ref.hideCancelButton,
17028
+ hideCancelButton = _ref$hideCancelButton === void 0 ? false : _ref$hideCancelButton;
17027
17029
  var submitButtonRef = React.useRef(null);
17028
17030
  var cancelButtonRef = React.useRef(null);
17029
17031
  var hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;
@@ -17034,10 +17036,10 @@ var Alert = function Alert(_ref) {
17034
17036
  closeButton: closeButton,
17035
17037
  closeOnEsc: closeOnEsc,
17036
17038
  closeOnOutsideClick: closeOnOutsideClick,
17037
- "data-cy": "alert-box",
17038
17039
  isOpen: isOpen,
17040
+ onClose: onClose,
17039
17041
  size: size,
17040
- onClose: onClose
17042
+ "data-cy": "alert-box"
17041
17043
  }, hasCustomFocusableElement && {
17042
17044
  initialFocusRef: initialFocusRef || initialFocusElementRef
17043
17045
  }), /*#__PURE__*/React__default["default"].createElement(Modal.Header, null, /*#__PURE__*/React__default["default"].createElement(Typography, {
@@ -17057,7 +17059,7 @@ var Alert = function Alert(_ref) {
17057
17059
  ref: submitButtonRef,
17058
17060
  style: "danger",
17059
17061
  onClick: onSubmit
17060
- }), /*#__PURE__*/React__default["default"].createElement(Button, {
17062
+ }), !hideCancelButton && /*#__PURE__*/React__default["default"].createElement(Button, {
17061
17063
  "data-cy": "alert-cancel-button",
17062
17064
  label: cancelButtonLabel,
17063
17065
  ref: cancelButtonRef,