@luscii-healthtech/web-ui 2.29.1 → 2.29.2

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.
@@ -3,6 +3,7 @@ export declare type FullPageModalProps = {
3
3
  children: React.ReactNode;
4
4
  isOpen?: boolean;
5
5
  title: string;
6
+ dataTestId?: string;
6
7
  onCloseClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
7
8
  };
8
9
  export declare const FullPageModal: React.FC<FullPageModalProps>;
@@ -9,6 +9,7 @@ export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
9
9
  withContentPaddingY?: boolean;
10
10
  isOpen?: boolean;
11
11
  title?: string;
12
+ dataTestId?: string;
12
13
  scrollableContent?: boolean;
13
14
  onCloseClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
14
15
  } & ModalFooterProps;
@@ -1762,6 +1762,8 @@ var ModalFooter = function ModalFooter(props) {
1762
1762
  };
1763
1763
 
1764
1764
  var ModalBase = function ModalBase(props) {
1765
+ var _props$dataTestId;
1766
+
1765
1767
  var _props$size = props.size,
1766
1768
  size = _props$size === void 0 ? "medium" : _props$size,
1767
1769
  _props$withContentPad = props.withContentPaddingY,
@@ -1777,6 +1779,9 @@ var ModalBase = function ModalBase(props) {
1777
1779
  }
1778
1780
  }, /*#__PURE__*/React__default.createElement(ReactModal, {
1779
1781
  isOpen: isOpen,
1782
+ data: {
1783
+ "test-id": (_props$dataTestId = props.dataTestId) != null ? _props$dataTestId : "react-modal"
1784
+ },
1780
1785
  contentLabel: props.title,
1781
1786
  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"),
1782
1787
  onRequestClose: props.onCloseClick,
@@ -7726,13 +7731,18 @@ var FullPageModalHeader = function FullPageModalHeader(props) {
7726
7731
  };
7727
7732
 
7728
7733
  var FullPageModal = function FullPageModal(props) {
7734
+ var _props$dataTestId;
7735
+
7729
7736
  return /*#__PURE__*/React__default.createElement(ReactModal, {
7730
7737
  isOpen: props.isOpen,
7731
7738
  contentLabel: props.title,
7732
7739
  overlayClassName: "fixed inset-0 overflow-x-hidden overflow-y-auto z-20",
7733
7740
  onRequestClose: props.onCloseClick,
7734
7741
  shouldFocusAfterRender: false,
7735
- className: "h-screen"
7742
+ className: "h-screen",
7743
+ data: {
7744
+ "test-id": (_props$dataTestId = props.dataTestId) != null ? _props$dataTestId : "react-modal"
7745
+ }
7736
7746
  }, /*#__PURE__*/React__default.createElement("div", {
7737
7747
  className: "flex flex-col h-screen"
7738
7748
  }, /*#__PURE__*/React__default.createElement(FullPageModalHeader, {