@luscii-healthtech/web-ui 2.19.7 → 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.
@@ -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>;
@@ -1521,6 +1521,10 @@ video {
1521
1521
  max-height: 30rem;
1522
1522
  }
1523
1523
 
1524
+ .max-h-135 {
1525
+ max-height: 33.75rem;
1526
+ }
1527
+
1524
1528
  .max-h-screen {
1525
1529
  max-height: 100vh;
1526
1530
  }
@@ -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
  })));
@@ -2471,13 +2475,14 @@ var ConfirmationDialogTitle = function ConfirmationDialogTitle(props) {
2471
2475
 
2472
2476
  return props.title ? /*#__PURE__*/React__default.createElement("div", {
2473
2477
  "data-test-id": "confirmation-dialog-title",
2474
- className: classNames("flex flex-col space-y-2", {
2478
+ className: classNames("flex flex-col space-y-2 text-center", {
2475
2479
  "items-center justify-center": (_props$title = props.title) == null ? void 0 : _props$title.icon
2476
2480
  })
2477
2481
  }, props.title.icon && /*#__PURE__*/React__default.createElement(props.title.icon, {
2478
2482
  className: "text-blue-800 dialog-header-icon h-12 w-12"
2479
2483
  }), /*#__PURE__*/React__default.createElement(Title, {
2480
- text: props.title.title
2484
+ text: props.title.title,
2485
+ type: "sm"
2481
2486
  })) : null;
2482
2487
  };
2483
2488
 
@@ -4329,9 +4334,8 @@ var CheckboxListModal = function CheckboxListModal(_ref) {
4329
4334
  text: texts.cancelLabel,
4330
4335
  onClick: handleOnCloseClick
4331
4336
  }
4332
- }
4333
- }, /*#__PURE__*/React.createElement("div", {
4334
- className: "max-h-135 overflow-y-auto"
4337
+ },
4338
+ scrollableContent: true
4335
4339
  }, isLoadingInitialItems && /*#__PURE__*/React.createElement(LoadingIndicator, null), hasSearch && !isLoadingInitialItems && /*#__PURE__*/React.createElement(SearchInput, {
4336
4340
  className: "w-130 mb-2",
4337
4341
  value: search,
@@ -4342,7 +4346,7 @@ var CheckboxListModal = function CheckboxListModal(_ref) {
4342
4346
  onChange: handleOnItemChange
4343
4347
  }), !isLoadingInitialItems && (items == null ? void 0 : items.length) === 0 && /*#__PURE__*/React.createElement(Text, {
4344
4348
  text: texts.emptyState
4345
- })));
4349
+ }));
4346
4350
  };
4347
4351
 
4348
4352
  var TEXT_TYPE_OPTIONS = {