@bigbinary/neetoui 5.2.35 → 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
@@ -5,7 +5,7 @@ import { isEmpty, equals, is, replace as replace$1, assoc, pluck, mergeLeft, pro
5
5
  import { Link, useHistory } from 'react-router-dom';
6
6
  import ReactDOM, { createPortal } from 'react-dom';
7
7
  import { Close, Info, Down, Check } from '@bigbinary/neeto-icons';
8
- import { existsBy } from '@bigbinary/neeto-cist';
8
+ import { _existsBy } from '@bigbinary/neeto-cist';
9
9
  import _ConfigProvider from 'antd/lib/config-provider';
10
10
  import _Slider from 'antd/lib/slider';
11
11
  import _TreeSelect from 'antd/lib/tree-select';
@@ -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,
@@ -25379,7 +25381,7 @@ var Select = function Select(_ref2) {
25379
25381
  }
25380
25382
  var currentOptions = options || defaultOptions;
25381
25383
  if (Array.isArray(value)) value = value[0];
25382
- var isGrouped = existsBy({
25384
+ var isGrouped = _existsBy({
25383
25385
  options: Array.isArray
25384
25386
  }, currentOptions);
25385
25387
  if (isGrouped) {