dce-reactkit 3.7.28 → 3.7.29
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/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Modal/ModalProps.d.ts +1 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Modal/ModalProps.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Modal/ModalProps.ts +2 -0
- package/src/components/Modal/index.tsx +6 -0
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()
|