@luscii-healthtech/web-ui 2.19.8 → 2.20.0
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 +1 -0
- package/dist/web-ui-tailwind.css +4 -0
- package/dist/web-ui.cjs.development.js +10 -7
- 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 +10 -7
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
|
|
|
9
9
|
withContentPaddingY?: boolean;
|
|
10
10
|
isOpen?: boolean;
|
|
11
11
|
title?: string;
|
|
12
|
+
scrollableContent?: boolean;
|
|
12
13
|
onCloseClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
|
|
13
14
|
} & ModalFooterProps;
|
|
14
15
|
export declare const ModalBase: React.FC<ModalBaseProps>;
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -1774,11 +1774,15 @@ var ModalBase = function ModalBase(props) {
|
|
|
1774
1774
|
title: props.title,
|
|
1775
1775
|
onCloseClick: props.onCloseClick
|
|
1776
1776
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1777
|
+
className: classNames({
|
|
1778
|
+
"rounded-t-lg": !props.title,
|
|
1779
|
+
"max-h-135 overflow-y-auto": props.scrollableContent
|
|
1780
|
+
})
|
|
1781
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1777
1782
|
className: classNames("px-6", {
|
|
1778
|
-
"py-6": withContentPaddingY
|
|
1779
|
-
"rounded-t-lg": !props.title
|
|
1783
|
+
"py-6": withContentPaddingY
|
|
1780
1784
|
})
|
|
1781
|
-
}, props.children), /*#__PURE__*/React__default.createElement(ModalFooter, {
|
|
1785
|
+
}, props.children)), /*#__PURE__*/React__default.createElement(ModalFooter, {
|
|
1782
1786
|
footerLeadingComponent: props.footerLeadingComponent,
|
|
1783
1787
|
footerTrailingComponents: props.footerTrailingComponents
|
|
1784
1788
|
})));
|
|
@@ -4330,9 +4334,8 @@ var CheckboxListModal = function CheckboxListModal(_ref) {
|
|
|
4330
4334
|
text: texts.cancelLabel,
|
|
4331
4335
|
onClick: handleOnCloseClick
|
|
4332
4336
|
}
|
|
4333
|
-
}
|
|
4334
|
-
|
|
4335
|
-
className: "max-h-135 overflow-y-auto"
|
|
4337
|
+
},
|
|
4338
|
+
scrollableContent: true
|
|
4336
4339
|
}, isLoadingInitialItems && /*#__PURE__*/React.createElement(LoadingIndicator, null), hasSearch && !isLoadingInitialItems && /*#__PURE__*/React.createElement(SearchInput, {
|
|
4337
4340
|
className: "w-130 mb-2",
|
|
4338
4341
|
value: search,
|
|
@@ -4343,7 +4346,7 @@ var CheckboxListModal = function CheckboxListModal(_ref) {
|
|
|
4343
4346
|
onChange: handleOnItemChange
|
|
4344
4347
|
}), !isLoadingInitialItems && (items == null ? void 0 : items.length) === 0 && /*#__PURE__*/React.createElement(Text, {
|
|
4345
4348
|
text: texts.emptyState
|
|
4346
|
-
}))
|
|
4349
|
+
}));
|
|
4347
4350
|
};
|
|
4348
4351
|
|
|
4349
4352
|
var TEXT_TYPE_OPTIONS = {
|