@massimo-cassandro/minimo 1.8.2 → 1.8.4
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/package.json
CHANGED
|
@@ -40,6 +40,8 @@ function closeDialog(el) {
|
|
|
40
40
|
* @param {Object} params
|
|
41
41
|
* @param {string | null} [params.dialogExtraClassName=null] - Extra class added to the dialog element.
|
|
42
42
|
* @param {string | null} [params.contentExtraClassName=null] - Extra class added to the content wrapper.
|
|
43
|
+
* @param {string | null} [params.headerExtraClassName=null] - Extra class added to the header wrapper.
|
|
44
|
+
* @param {string | null} [params.footerExtraClassName=null] - Extra class added to the footer wrapper.
|
|
43
45
|
* @param {string | null} [params.iframeUrl=null] - URL to load in an iframe.
|
|
44
46
|
* @param {string | any[] | null} [params.content=null] - Plain text, HTML, or a domBuilder array.
|
|
45
47
|
* @param {string | null} [params.ajaxUrl=null] - URL for Ajax content loading.
|
|
@@ -81,8 +83,15 @@ export function modalPopup({
|
|
|
81
83
|
/** header content: plain text, HTML or domBuilder array */
|
|
82
84
|
headerContent = null,
|
|
83
85
|
|
|
86
|
+
/** extra classname added to header */
|
|
87
|
+
headerExtraClassName = null,
|
|
88
|
+
|
|
84
89
|
/** footer content: plain text, HTML or domBuilder array */
|
|
85
90
|
footerContent = null,
|
|
91
|
+
|
|
92
|
+
/** extra classname added to footer */
|
|
93
|
+
footerExtraClassName = null,
|
|
94
|
+
|
|
86
95
|
}) {
|
|
87
96
|
|
|
88
97
|
|
|
@@ -129,7 +138,7 @@ export function modalPopup({
|
|
|
129
138
|
className: styles.contentWrapper,
|
|
130
139
|
children: [
|
|
131
140
|
{
|
|
132
|
-
className: styles.header,
|
|
141
|
+
className: classnames(styles.header, headerExtraClassName),
|
|
133
142
|
condition: headerContent != null,
|
|
134
143
|
content: Array.isArray(headerContent) ? null : headerContent,
|
|
135
144
|
children: Array.isArray(headerContent) ? headerContent : undefined
|
|
@@ -177,7 +186,7 @@ export function modalPopup({
|
|
|
177
186
|
},
|
|
178
187
|
},
|
|
179
188
|
{
|
|
180
|
-
className: styles.footer,
|
|
189
|
+
className: classnames(styles.footer, footerExtraClassName),
|
|
181
190
|
condition: footerContent != null,
|
|
182
191
|
content: Array.isArray(footerContent) ? null : footerContent,
|
|
183
192
|
children: Array.isArray(footerContent) ? footerContent : undefined
|
|
@@ -19,7 +19,7 @@ Same for min/max-width and min/max-height
|
|
|
19
19
|
max-width: var(--_modal-popup-max-width, 98dvw);
|
|
20
20
|
height: var(--_modal-popup-height, max-content);
|
|
21
21
|
min-height: var(--_modal-popup-min-height, 300px);
|
|
22
|
-
max-height: var(--_modal-popup-
|
|
22
|
+
max-height: var(--_modal-popup-max-height, 90dvh);
|
|
23
23
|
padding: 0;
|
|
24
24
|
margin: auto;
|
|
25
25
|
overflow: visible;
|