dce-reactkit 3.7.28 → 3.7.30

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.
@@ -12,6 +12,7 @@ type ModalProps = {
12
12
  type?: ModalType;
13
13
  size?: ModalSize;
14
14
  title?: React.ReactNode;
15
+ largeTitle?: boolean;
15
16
  children?: React.ReactNode;
16
17
  onClose?: (type: ModalButtonType) => void;
17
18
  dontAllowBackdropExit?: boolean;
package/dist/esm/index.js CHANGED
@@ -482,7 +482,7 @@ const Modal = (props) => {
482
482
  /*------------------------------------------------------------------------*/
483
483
  var _a;
484
484
  /* -------------- Props ------------- */
485
- const { type = ModalType$1.NoButtons, size = ModalSize$1.Large, title, children, onClose, dontAllowBackdropExit, dontShowXButton, onTopOfOtherModals, } = props;
485
+ const { type = ModalType$1.NoButtons, size = ModalSize$1.Large, title, largeTitle, children, onClose, dontAllowBackdropExit, dontShowXButton, onTopOfOtherModals, } = props;
486
486
  /* -------------- State ------------- */
487
487
  // True if animation is in use
488
488
  const [animatingIn, setAnimatingIn] = useState(true);
@@ -633,6 +633,9 @@ const Modal = (props) => {
633
633
  } },
634
634
  React__default.createElement("h5", { className: "modal-title", style: {
635
635
  fontWeight: 'bold',
636
+ fontSize: (largeTitle
637
+ ? '1.6rem'
638
+ : undefined),
636
639
  } }, title),
637
640
  (onClose && !dontShowXButton) && (React__default.createElement("button", { type: "button", className: "Modal-x-button btn-close", "aria-label": "Close", style: {
638
641
  backgroundColor: (isDarkModeOn()