@luscii-healthtech/web-ui 2.36.2 → 2.36.3
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/FullPageModal.d.ts +2 -0
- package/dist/components/Modal/FullPageModalHeader.d.ts +2 -0
- package/dist/web-ui.cjs.development.js +24 -15
- 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 +24 -15
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
2
3
|
export declare type FullPageModalProps = {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
isOpen?: boolean;
|
|
5
6
|
title: string;
|
|
6
7
|
dataTestId?: string;
|
|
8
|
+
primaryButtonProps?: PrimaryButtonProps;
|
|
7
9
|
onCloseClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
|
|
8
10
|
};
|
|
9
11
|
export declare const FullPageModal: React.FC<FullPageModalProps>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
2
3
|
export declare type FullPageModalHeaderProps = {
|
|
3
4
|
title: string;
|
|
5
|
+
primaryButtonProps?: PrimaryButtonProps;
|
|
4
6
|
};
|
|
5
7
|
export declare const FullPageModalHeader: React.FC<FullPageModalHeaderProps>;
|
|
@@ -7653,34 +7653,43 @@ var InfoIcon = function InfoIcon(props) {
|
|
|
7653
7653
|
}));
|
|
7654
7654
|
};
|
|
7655
7655
|
|
|
7656
|
-
var FullPageModalHeader = function FullPageModalHeader(
|
|
7656
|
+
var FullPageModalHeader = function FullPageModalHeader(_ref) {
|
|
7657
|
+
var primaryButtonProps = _ref.primaryButtonProps,
|
|
7658
|
+
title = _ref.title;
|
|
7657
7659
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
7658
|
-
className: "flex flex-row items-center h-19 bg-white
|
|
7660
|
+
className: "flex flex-row items-center h-19 bg-white px-6 justify-between"
|
|
7659
7661
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
7660
|
-
text:
|
|
7661
|
-
})
|
|
7662
|
+
text: title
|
|
7663
|
+
}), primaryButtonProps && /*#__PURE__*/React__default.createElement(PrimaryButton, _extends({
|
|
7664
|
+
"data-test-id": "modal-primary-button"
|
|
7665
|
+
}, primaryButtonProps)));
|
|
7662
7666
|
};
|
|
7663
7667
|
|
|
7664
|
-
var FullPageModal = function FullPageModal(
|
|
7665
|
-
var
|
|
7666
|
-
|
|
7668
|
+
var FullPageModal = function FullPageModal(_ref) {
|
|
7669
|
+
var children = _ref.children,
|
|
7670
|
+
dataTestId = _ref.dataTestId,
|
|
7671
|
+
isOpen = _ref.isOpen,
|
|
7672
|
+
onCloseClick = _ref.onCloseClick,
|
|
7673
|
+
primaryButtonProps = _ref.primaryButtonProps,
|
|
7674
|
+
title = _ref.title;
|
|
7667
7675
|
return /*#__PURE__*/React__default.createElement(ReactModal, {
|
|
7668
|
-
isOpen:
|
|
7669
|
-
contentLabel:
|
|
7676
|
+
isOpen: isOpen,
|
|
7677
|
+
contentLabel: title,
|
|
7670
7678
|
overlayClassName: "fixed inset-0 overflow-x-hidden overflow-y-auto z-20",
|
|
7671
|
-
onRequestClose:
|
|
7679
|
+
onRequestClose: onCloseClick,
|
|
7672
7680
|
shouldFocusAfterRender: false,
|
|
7673
7681
|
className: "h-screen",
|
|
7674
7682
|
data: {
|
|
7675
|
-
"test-id":
|
|
7683
|
+
"test-id": dataTestId != null ? dataTestId : "react-modal"
|
|
7676
7684
|
}
|
|
7677
7685
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7678
|
-
className: "flex flex-col h-screen"
|
|
7686
|
+
className: "flex flex-col h-screen bg-slate-100"
|
|
7679
7687
|
}, /*#__PURE__*/React__default.createElement(FullPageModalHeader, {
|
|
7680
|
-
title:
|
|
7688
|
+
title: title,
|
|
7689
|
+
primaryButtonProps: primaryButtonProps
|
|
7681
7690
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7682
|
-
className: "h-full
|
|
7683
|
-
},
|
|
7691
|
+
className: "h-full flex flex-row overflow-hidden"
|
|
7692
|
+
}, children)));
|
|
7684
7693
|
};
|
|
7685
7694
|
|
|
7686
7695
|
exports.AccordionList = AccordionList;
|