@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.cjs.js +7 -5
- package/formik.cjs.js.map +1 -1
- package/formik.js +8 -6
- package/formik.js.map +1 -1
- package/index.cjs.js +7 -5
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as React$3 from 'react';
|
|
|
2
2
|
import React__default, { createContext, useLayoutEffect, useEffect, useContext, useRef, useInsertionEffect as useInsertionEffect$1, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useId as useId$1, useState, cloneElement as cloneElement$1, Children, isValidElement, useSyncExternalStore, Fragment, Component, memo as memo$1 } from 'react';
|
|
3
3
|
import { isEmpty, equals, complement, toPairs, pipe as pipe$1, omit, isNil, replace as replace$2, assoc, pluck, mergeLeft, prop, flatten, move } from 'ramda';
|
|
4
4
|
import { Right, Down, Close, Info, Focus, Left, Calendar, Check, MenuHorizontal, Clock as Clock$1, CheckCircle, Warning, CloseCircle } from '@bigbinary/neeto-icons';
|
|
5
|
-
import { preprocessForSerialization,
|
|
5
|
+
import { preprocessForSerialization, _existsBy, camelToSnakeCase, modifyBy, snakeToCamelCase, dynamicArray } from '@bigbinary/neeto-cist';
|
|
6
6
|
import require$$0 from 'util';
|
|
7
7
|
import { Link, useLocation, useHistory, NavLink } from 'react-router-dom';
|
|
8
8
|
import ReactDOM, { createPortal, findDOMNode as findDOMNode$1 } from 'react-dom';
|
|
@@ -18912,7 +18912,9 @@ var Alert = function Alert(_ref) {
|
|
|
18912
18912
|
_ref$cancelButtonLabe = _ref.cancelButtonLabel,
|
|
18913
18913
|
cancelButtonLabel = _ref$cancelButtonLabe === void 0 ? "Cancel" : _ref$cancelButtonLabe,
|
|
18914
18914
|
initialFocusRef = _ref.initialFocusRef,
|
|
18915
|
-
initialFocusElement = _ref.initialFocusElement
|
|
18915
|
+
initialFocusElement = _ref.initialFocusElement,
|
|
18916
|
+
_ref$hideCancelButton = _ref.hideCancelButton,
|
|
18917
|
+
hideCancelButton = _ref$hideCancelButton === void 0 ? false : _ref$hideCancelButton;
|
|
18916
18918
|
var submitButtonRef = useRef(null);
|
|
18917
18919
|
var cancelButtonRef = useRef(null);
|
|
18918
18920
|
var hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;
|
|
@@ -18923,10 +18925,10 @@ var Alert = function Alert(_ref) {
|
|
|
18923
18925
|
closeButton: closeButton,
|
|
18924
18926
|
closeOnEsc: closeOnEsc,
|
|
18925
18927
|
closeOnOutsideClick: closeOnOutsideClick,
|
|
18926
|
-
"data-cy": "alert-box",
|
|
18927
18928
|
isOpen: isOpen,
|
|
18929
|
+
onClose: onClose,
|
|
18928
18930
|
size: size,
|
|
18929
|
-
|
|
18931
|
+
"data-cy": "alert-box"
|
|
18930
18932
|
}, hasCustomFocusableElement && {
|
|
18931
18933
|
initialFocusRef: initialFocusRef || initialFocusElementRef
|
|
18932
18934
|
}), /*#__PURE__*/React__default.createElement(Modal.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -18946,7 +18948,7 @@ var Alert = function Alert(_ref) {
|
|
|
18946
18948
|
ref: submitButtonRef,
|
|
18947
18949
|
style: "danger",
|
|
18948
18950
|
onClick: onSubmit
|
|
18949
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
18951
|
+
}), !hideCancelButton && /*#__PURE__*/React__default.createElement(Button, {
|
|
18950
18952
|
"data-cy": "alert-cancel-button",
|
|
18951
18953
|
label: cancelButtonLabel,
|
|
18952
18954
|
ref: cancelButtonRef,
|
|
@@ -29023,7 +29025,7 @@ var Select = function Select(_ref2) {
|
|
|
29023
29025
|
}
|
|
29024
29026
|
var currentOptions = options || defaultOptions;
|
|
29025
29027
|
if (Array.isArray(value)) value = value[0];
|
|
29026
|
-
var isGrouped =
|
|
29028
|
+
var isGrouped = _existsBy({
|
|
29027
29029
|
options: Array.isArray
|
|
29028
29030
|
}, currentOptions);
|
|
29029
29031
|
if (isGrouped) {
|