@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.js CHANGED
@@ -16993,7 +16993,9 @@ var Alert = function Alert(_ref) {
16993
16993
  _ref$cancelButtonLabe = _ref.cancelButtonLabel,
16994
16994
  cancelButtonLabel = _ref$cancelButtonLabe === void 0 ? "Cancel" : _ref$cancelButtonLabe,
16995
16995
  initialFocusRef = _ref.initialFocusRef,
16996
- initialFocusElement = _ref.initialFocusElement;
16996
+ initialFocusElement = _ref.initialFocusElement,
16997
+ _ref$hideCancelButton = _ref.hideCancelButton,
16998
+ hideCancelButton = _ref$hideCancelButton === void 0 ? false : _ref$hideCancelButton;
16997
16999
  var submitButtonRef = useRef(null);
16998
17000
  var cancelButtonRef = useRef(null);
16999
17001
  var hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;
@@ -17004,10 +17006,10 @@ var Alert = function Alert(_ref) {
17004
17006
  closeButton: closeButton,
17005
17007
  closeOnEsc: closeOnEsc,
17006
17008
  closeOnOutsideClick: closeOnOutsideClick,
17007
- "data-cy": "alert-box",
17008
17009
  isOpen: isOpen,
17010
+ onClose: onClose,
17009
17011
  size: size,
17010
- onClose: onClose
17012
+ "data-cy": "alert-box"
17011
17013
  }, hasCustomFocusableElement && {
17012
17014
  initialFocusRef: initialFocusRef || initialFocusElementRef
17013
17015
  }), /*#__PURE__*/React__default.createElement(Modal.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
@@ -17027,7 +17029,7 @@ var Alert = function Alert(_ref) {
17027
17029
  ref: submitButtonRef,
17028
17030
  style: "danger",
17029
17031
  onClick: onSubmit
17030
- }), /*#__PURE__*/React__default.createElement(Button, {
17032
+ }), !hideCancelButton && /*#__PURE__*/React__default.createElement(Button, {
17031
17033
  "data-cy": "alert-cancel-button",
17032
17034
  label: cancelButtonLabel,
17033
17035
  ref: cancelButtonRef,