@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.
@@ -7645,34 +7645,43 @@ var InfoIcon = function InfoIcon(props) {
7645
7645
  }));
7646
7646
  };
7647
7647
 
7648
- var FullPageModalHeader = function FullPageModalHeader(props) {
7648
+ var FullPageModalHeader = function FullPageModalHeader(_ref) {
7649
+ var primaryButtonProps = _ref.primaryButtonProps,
7650
+ title = _ref.title;
7649
7651
  return /*#__PURE__*/React__default.createElement("div", {
7650
- className: "flex flex-row items-center h-19 bg-white pl-6"
7652
+ className: "flex flex-row items-center h-19 bg-white px-6 justify-between"
7651
7653
  }, /*#__PURE__*/React__default.createElement(Title, {
7652
- text: props.title
7653
- }));
7654
+ text: title
7655
+ }), primaryButtonProps && /*#__PURE__*/React__default.createElement(PrimaryButton, _extends({
7656
+ "data-test-id": "modal-primary-button"
7657
+ }, primaryButtonProps)));
7654
7658
  };
7655
7659
 
7656
- var FullPageModal = function FullPageModal(props) {
7657
- var _props$dataTestId;
7658
-
7660
+ var FullPageModal = function FullPageModal(_ref) {
7661
+ var children = _ref.children,
7662
+ dataTestId = _ref.dataTestId,
7663
+ isOpen = _ref.isOpen,
7664
+ onCloseClick = _ref.onCloseClick,
7665
+ primaryButtonProps = _ref.primaryButtonProps,
7666
+ title = _ref.title;
7659
7667
  return /*#__PURE__*/React__default.createElement(ReactModal, {
7660
- isOpen: props.isOpen,
7661
- contentLabel: props.title,
7668
+ isOpen: isOpen,
7669
+ contentLabel: title,
7662
7670
  overlayClassName: "fixed inset-0 overflow-x-hidden overflow-y-auto z-20",
7663
- onRequestClose: props.onCloseClick,
7671
+ onRequestClose: onCloseClick,
7664
7672
  shouldFocusAfterRender: false,
7665
7673
  className: "h-screen",
7666
7674
  data: {
7667
- "test-id": (_props$dataTestId = props.dataTestId) != null ? _props$dataTestId : "react-modal"
7675
+ "test-id": dataTestId != null ? dataTestId : "react-modal"
7668
7676
  }
7669
7677
  }, /*#__PURE__*/React__default.createElement("div", {
7670
- className: "flex flex-col h-screen"
7678
+ className: "flex flex-col h-screen bg-slate-100"
7671
7679
  }, /*#__PURE__*/React__default.createElement(FullPageModalHeader, {
7672
- title: props.title
7680
+ title: title,
7681
+ primaryButtonProps: primaryButtonProps
7673
7682
  }), /*#__PURE__*/React__default.createElement("div", {
7674
- className: "h-full bg-slate-100 flex flex-row overflow-hidden"
7675
- }, props.children)));
7683
+ className: "h-full flex flex-row overflow-hidden"
7684
+ }, children)));
7676
7685
  };
7677
7686
 
7678
7687
  export { AccordionList, AddIcon, AlertsIcon, Avatar, Badge, BellIcon, Breadcrumbs, CRUDPage, Carousel, CenteredHero, ChartIcon, ChatBoxIcon, CheckIcon, Checkbox, CheckboxList, CheckboxListModal, ChevronDoubleIcon, ConfirmationDialog, CrossIcon, Datepicker as DatePicker, DeleteIcon, Divider, DownArrowIcon, DragIcon, Dropdown, EditIcon, EmptyListMessage, EmptyStateDashboardIcon, ErrorBlock, ExclamationMarkIcon, EyeIcon, FlexColumn, FlexRow, Form, FullPageModal, GearIcon, GenericForm, GroupIcon, HamburgerIcon, HeartIcon, INPUT_TYPES, InfoBlock, InfoField, InfoIcon, Input, LeftArrowIcon, LightBulbIcon, Line, LinkIcon, List, LoadingIndicator, LockIcon, Menu, MessagesIcon, Modal, MultiSelect, NavLayout, NavMenu, NotesIcon, NotificationBanner, Page, PageHeader, PaginationMenu, PinIcon, PreviewPhone, PrimaryButton, PrintIcon, Radio, RadioGroup, RadioGroupV2, RadioV2, RightArrowIcon, SearchCancelIcon, SearchIcon, SearchInput, SecondaryButton, Section, SectionItem, SectionItemWithContent, Select, SettingsMenuButton, SmallCircleIcon, SmallDiamondIcon, SmallSquareIcon, SpaceRocketIcon, Spinner, StarIcon, Steps, Switcher, TOASTER_TYPE_OPTIONS, TabLinks, Tabbar, Table, Tag, TagGroup, TertiaryButton, Text, Textarea as TextArea, TextEditor, TextEditorV2, TextLink, Timeline, Title, Toaster, ViewItem, toast };