@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 +6 -4
- package/formik.cjs.js.map +1 -1
- package/formik.js +6 -4
- package/formik.js.map +1 -1
- package/index.cjs.js +6 -4
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +6 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -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,
|