@luscii-healthtech/web-ui 2.19.1 → 2.19.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.
@@ -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;
@@ -1746,6 +1746,8 @@ var ModalFooter = function ModalFooter(props) {
1746
1746
  var ModalBase = function ModalBase(props) {
1747
1747
  var _props$size = props.size,
1748
1748
  size = _props$size === void 0 ? "medium" : _props$size,
1749
+ _props$withContentPad = props.withContentPaddingY,
1750
+ withContentPaddingY = _props$withContentPad === void 0 ? true : _props$withContentPad,
1749
1751
  _props$isOpen = props.isOpen,
1750
1752
  isOpen = _props$isOpen === void 0 ? false : _props$isOpen,
1751
1753
  _props$shouldCloseOnO = props.shouldCloseOnOverlayClick,
@@ -1774,7 +1776,8 @@ var ModalBase = function ModalBase(props) {
1774
1776
  title: props.title,
1775
1777
  onCloseClick: props.onCloseClick
1776
1778
  }), /*#__PURE__*/React__default.createElement("div", {
1777
- className: classNames("p-6", {
1779
+ className: classNames("px-6", {
1780
+ "py-6": withContentPaddingY,
1778
1781
  "rounded-t-lg": !props.title
1779
1782
  })
1780
1783
  }, props.children), /*#__PURE__*/React__default.createElement(ModalFooter, {