@luscii-healthtech/web-ui 2.19.4 → 2.19.6
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/dist/components/Modal/ModalBase.d.ts +0 -1
- package/dist/web-ui-tailwind.css +0 -4
- package/dist/web-ui.cjs.development.js +3 -8
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +3 -8
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
|
|
|
8
8
|
withExtraMarginTop?: boolean;
|
|
9
9
|
withContentPaddingY?: boolean;
|
|
10
10
|
isOpen?: boolean;
|
|
11
|
-
shouldCloseOnOverlayClick?: boolean;
|
|
12
11
|
title?: string;
|
|
13
12
|
onCloseClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
|
|
14
13
|
} & ModalFooterProps;
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -1749,9 +1749,7 @@ var ModalBase = function ModalBase(props) {
|
|
|
1749
1749
|
_props$withContentPad = props.withContentPaddingY,
|
|
1750
1750
|
withContentPaddingY = _props$withContentPad === void 0 ? true : _props$withContentPad,
|
|
1751
1751
|
_props$isOpen = props.isOpen,
|
|
1752
|
-
isOpen = _props$isOpen === void 0 ? false : _props$isOpen
|
|
1753
|
-
_props$shouldCloseOnO = props.shouldCloseOnOverlayClick,
|
|
1754
|
-
shouldCloseOnOverlayClick = _props$shouldCloseOnO === void 0 ? true : _props$shouldCloseOnO;
|
|
1752
|
+
isOpen = _props$isOpen === void 0 ? false : _props$isOpen;
|
|
1755
1753
|
ReactModal.setAppElement("body");
|
|
1756
1754
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1757
1755
|
"data-test-id": "clicking-propagation-preventer",
|
|
@@ -1765,7 +1763,7 @@ var ModalBase = function ModalBase(props) {
|
|
|
1765
1763
|
overlayClassName: classNames("px-2 py-15", "z-20", "fixed top-0 bottom-0 left-0 right-0", "overflow-x-hidden overflow-y-auto", "bg-overlay"),
|
|
1766
1764
|
onRequestClose: props.onCloseClick,
|
|
1767
1765
|
shouldFocusAfterRender: false,
|
|
1768
|
-
shouldCloseOnOverlayClick:
|
|
1766
|
+
shouldCloseOnOverlayClick: false,
|
|
1769
1767
|
className: classNames("my-0 mx-auto", "relative", "bg-white outline-none rounded-lg shadow-lg", {
|
|
1770
1768
|
"mt-17": props.withExtraMarginTop,
|
|
1771
1769
|
"w-80": size === "small",
|
|
@@ -2747,7 +2745,6 @@ var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
|
2747
2745
|
isOpen: props.isOpen,
|
|
2748
2746
|
withExtraMarginTop: true,
|
|
2749
2747
|
onCloseClick: handleOnCloseClick,
|
|
2750
|
-
shouldCloseOnOverlayClick: false,
|
|
2751
2748
|
footerTrailingComponents: {
|
|
2752
2749
|
primaryButtonProps: {
|
|
2753
2750
|
text: props.texts.confirmLabel,
|
|
@@ -4323,7 +4320,6 @@ var CheckboxListModal = function CheckboxListModal(_ref) {
|
|
|
4323
4320
|
isOpen: isOpen,
|
|
4324
4321
|
title: texts.title,
|
|
4325
4322
|
onCloseClick: handleOnCloseClick,
|
|
4326
|
-
shouldCloseOnOverlayClick: true,
|
|
4327
4323
|
footerTrailingComponents: {
|
|
4328
4324
|
primaryButtonProps: {
|
|
4329
4325
|
text: texts.confirmLabel,
|
|
@@ -4335,7 +4331,7 @@ var CheckboxListModal = function CheckboxListModal(_ref) {
|
|
|
4335
4331
|
}
|
|
4336
4332
|
}
|
|
4337
4333
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4338
|
-
className: "max-h-135 overflow-y-auto
|
|
4334
|
+
className: "max-h-135 overflow-y-auto"
|
|
4339
4335
|
}, isLoadingInitialItems && /*#__PURE__*/React.createElement(LoadingIndicator, null), hasSearch && !isLoadingInitialItems && /*#__PURE__*/React.createElement(SearchInput, {
|
|
4340
4336
|
className: "w-130 mb-2",
|
|
4341
4337
|
value: search,
|
|
@@ -6585,7 +6581,6 @@ var ImagePickerInner = function ImagePickerInner(_ref) {
|
|
|
6585
6581
|
}))), /*#__PURE__*/React__default.createElement(ModalBase, {
|
|
6586
6582
|
size: "wide",
|
|
6587
6583
|
onCloseClick: handleCloseModal,
|
|
6588
|
-
shouldCloseOnOverlayClick: true,
|
|
6589
6584
|
footerTrailingComponents: {
|
|
6590
6585
|
primaryButtonProps: {
|
|
6591
6586
|
onClick: handleConfirmSelection,
|