@massimo-cassandro/minimo 1.31.2 → 1.31.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.31.2",
3
+ "version": "1.31.4",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -100,6 +100,7 @@ function getDomBuilderContentProps(value) {
100
100
  * @param {string | number | null} [params.dialogHeight=null] - optional dialog height value - if set, overrides main css custom prop (default: null)
101
101
  * @param {string | number | null} [params.dialogMinHeight=null] - optional dialog min-height value - if set, overrides main css custom prop (default: null)
102
102
  * @param {string | number | null} [params.dialogMaxHeight=null] - optional dialog max-height value - if set, overrides main css custom prop (default: null)
103
+ * @param {string | number | null} [params.dialogContentPadding=null] - optional dialog content padding value - if set, overrides main css custom prop (default: null)
103
104
  * @param {string | null} [params.iframeUrl=null] - URL to load in an iframe. (default: null)
104
105
  * @param {string | null} [params.ajaxUrl=null] - URL for Ajax content loading. (default: null)
105
106
  * @param {((el: HTMLDialogElement) => void) | null} [params.openCallback=null] - Called with the dialog element after opening, receives the dialog element (`openCallback(dialogEl)`). (default: null)
@@ -119,13 +120,14 @@ export function modalPopup({
119
120
  /** extra classname added to dialogInner */
120
121
  contentExtraClassName = null,
121
122
 
122
- /** optional values for maon custom props overriding */
123
+ /** optional values for main custom props overriding */
123
124
  dialogWidth = null,
124
125
  dialogMinWidth = null,
125
126
  dialogMaxWidth = null,
126
127
  dialogHeight = null,
127
128
  dialogMinHeight = null,
128
129
  dialogMaxHeight = null,
130
+ dialogContentPadding = null,
129
131
 
130
132
  addFocus = true,
131
133
 
@@ -198,15 +200,17 @@ export function modalPopup({
198
200
  dialogHeight,
199
201
  dialogMinHeight,
200
202
  dialogMaxHeight,
203
+ dialogContentPadding,
201
204
  };
202
205
  /** @type {Record<string, string>} */
203
206
  const cpropsMap = {
204
- dialogWidth : '--mpopup-width',
205
- dialogMinWidth : '--mpopup-min-width',
206
- dialogMaxWidth : '--mpopup-max-width',
207
- dialogHeight : '--mpopup-height',
208
- dialogMinHeight : '--mpopup-min-height',
209
- dialogMaxHeight : '--mpopup-max-height'
207
+ dialogWidth : '--mpopup-width',
208
+ dialogMinWidth : '--mpopup-min-width',
209
+ dialogMaxWidth : '--mpopup-max-width',
210
+ dialogHeight : '--mpopup-height',
211
+ dialogMinHeight : '--mpopup-min-height',
212
+ dialogMaxHeight : '--mpopup-max-height',
213
+ dialogContentPadding : '--mpopup-content-padding'
210
214
  };
211
215
  /** @type {string[]} */
212
216
  let dialogStyle = [];