@luscii-healthtech/web-ui 2.19.1 → 2.19.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.
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ModalBaseProps } from "./ModalBase";
3
- export declare type ModalProps = Omit<ModalBaseProps, "title"> & {
3
+ export declare type ModalProps = Omit<ModalBaseProps, "title" | "withExtraMarginTop"> & {
4
4
  title: string;
5
5
  };
6
6
  export declare const Modal: React.FC<ModalProps>;
@@ -6,6 +6,7 @@ export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
6
6
  children: React.ReactNode;
7
7
  size?: ModalSize;
8
8
  withExtraMarginTop?: boolean;
9
+ withContentPaddingY?: boolean;
9
10
  isOpen?: boolean;
10
11
  shouldCloseOnOverlayClick?: boolean;
11
12
  title?: string;
@@ -1774,7 +1774,8 @@ 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("p-6", {
1777
+ className: classNames("px-6", {
1778
+ "py-6": props.withContentPaddingY,
1778
1779
  "rounded-t-lg": !props.title
1779
1780
  })
1780
1781
  }, props.children), /*#__PURE__*/React__default.createElement(ModalFooter, {