mui-dialog 1.0.31 → 1.0.33
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/mui-dialog.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode(".vi-dialog .close-icon{cursor:pointer;color:#717371}.vi-dialog .p-24{padding:24px}.vi-dialog .h-fill{height:-webkit-fill-available}.vi-dialog .safari-height-fix{height:fit-content!important}.vi-dialog .d-f{display:flex}.vi-dialog .ai-c{align-items:center}.vi-dialog .jc-sb{justify-content:space-between}.vi-dialog .flex-dir-col{flex-direction:column}.vi-dialog .gap-8{gap:8px}.vi-dialog .MuiPaper-root{border-radius:12px}.vi-dialog .divider{margin-top:28px;margin-bottom:-4px}.vi-dialog .vi-dialog-actions-wrapper{margin-top:28px;display:flex;justify-content:space-between;align-items:center}.vi-dialog .vi-dialog-actions-wrapper .tertiary-cta.destructive{color:#ed1d31;justify-self:flex-start}.vi-dialog .vi-dialog-actions-wrapper .vi-dialog-actions.medium{width:50%}.vi-dialog .vi-dialog-actions-wrapper .vi-dialog-actions.large{width:33%}.vi-dialog .vi-dialog-actions-wrapper .vi-dialog-actions.extra-large{width:25%}.vi-dialog .vi-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px}.vi-dialog .vi-dialog-actions .vi-dialog-cta{width:-webkit-fill-available}.vi-dialog .vi-dialog-actions .tertiary-cta{padding:0}.vi-dialog .vi-dialog-actions .vi-dialog-cta.destructive{background-color:#ed1d31;color:#fff}.vi-dialog .vi-dialog-actions .vi-dialog-cta.destructive:disabled{opacity:.5}.vi-dialog .vi-dialog-actions.without-tertiary{margin-top:28px}.vi-dialog .vi-dialog-actions.small{justify-content:center}.vi-dialog .vi-dialog-actions.without-tertiary.medium{max-width:50%;margin-left:50%}.vi-dialog .vi-dialog-actions.without-tertiary.large{max-width:33%;margin-left:67%}.vi-dialog .vi-dialog-actions.without-tertiary.extra-large{max-width:25%;margin-left:75%}.vi-dialog .vi-dialog-title{margin-bottom:28px}.vi-dialog .vi-dialog-title .title-wrapper{display:flex;align-items:center;justify-content:space-between}.vi-dialog .vi-dialog-title .title-wrapper .modal-title{word-break:break-word}.vi-dialog .vi-dialog-title .description{margin-top:16px!important}.vi-dialog .vi-dialog-title.small{margin-bottom:16px}.vi-dialog .divider{margin-left:-24px;margin-right:-24px}@media only screen and (max-width:
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode(".vi-dialog .close-icon{cursor:pointer;color:#717371}.vi-dialog .p-24{padding:24px}.vi-dialog .h-fill{height:-webkit-fill-available}.vi-dialog .safari-height-fix{height:fit-content!important}.vi-dialog .d-f{display:flex}.vi-dialog .ai-c{align-items:center}.vi-dialog .jc-sb{justify-content:space-between}.vi-dialog .flex-dir-col{flex-direction:column}.vi-dialog .gap-8{gap:8px}.vi-dialog .MuiPaper-root{border-radius:12px}.vi-dialog .divider{margin-top:28px;margin-bottom:-4px}.vi-dialog .vi-dialog-actions-wrapper{margin-top:28px;display:flex;justify-content:space-between;align-items:center}.vi-dialog .vi-dialog-actions-wrapper .tertiary-cta.destructive{color:#ed1d31;justify-self:flex-start}.vi-dialog .vi-dialog-actions-wrapper .vi-dialog-actions.medium{width:50%}.vi-dialog .vi-dialog-actions-wrapper .vi-dialog-actions.large{width:33%}.vi-dialog .vi-dialog-actions-wrapper .vi-dialog-actions.extra-large{width:25%}.vi-dialog .vi-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px}.vi-dialog .vi-dialog-actions .vi-dialog-cta{width:-webkit-fill-available}.vi-dialog .vi-dialog-actions .tertiary-cta{padding:0}.vi-dialog .vi-dialog-actions .vi-dialog-cta.destructive{background-color:#ed1d31;color:#fff}.vi-dialog .vi-dialog-actions .vi-dialog-cta.destructive:disabled{opacity:.5}.vi-dialog .vi-dialog-actions.without-tertiary{margin-top:28px}.vi-dialog .vi-dialog-actions.small{justify-content:center}.vi-dialog .vi-dialog-actions.without-tertiary.medium{max-width:50%;margin-left:50%}.vi-dialog .vi-dialog-actions.without-tertiary.large{max-width:33%;margin-left:67%}.vi-dialog .vi-dialog-actions.without-tertiary.extra-large{max-width:25%;margin-left:75%}.vi-dialog .vi-dialog-title{margin-bottom:28px}.vi-dialog .vi-dialog-title .title-wrapper{display:flex;align-items:center;justify-content:space-between}.vi-dialog .vi-dialog-title .title-wrapper .modal-title{word-break:break-word}.vi-dialog .vi-dialog-title .description{margin-top:16px!important}.vi-dialog .vi-dialog-title.small{margin-bottom:16px}.vi-dialog .divider{margin-left:-24px;margin-right:-24px}@media only screen and (max-width:600px){.vi-dialog .MuiPaper-root{margin:16px;width:calc(100% - 32px)}.vi-dialog .vi-dialog-actions-wrapper{flex-direction:column-reverse;gap:12px}.vi-dialog .vi-dialog-actions{flex-direction:column-reverse;width:100%!important;gap:12px}.vi-dialog .vi-dialog-actions.without-tertiary.medium,.vi-dialog .vi-dialog-actions.without-tertiary.large,.vi-dialog .vi-dialog-actions.without-tertiary.extra-large{max-width:100%;margin-left:0}.vi-dialog.medium .MuiPaper-root,.vi-dialog.large .MuiPaper-root{margin:0;width:100%;height:100%;max-height:none;border-radius:0}}")),document.head.appendChild(i)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
@@ -2470,12 +2470,12 @@ var hasRequiredIsBuffer;
|
|
|
2470
2470
|
function requireIsBuffer () {
|
|
2471
2471
|
if (hasRequiredIsBuffer) return isBuffer.exports;
|
|
2472
2472
|
hasRequiredIsBuffer = 1;
|
|
2473
|
-
(function (module, exports) {
|
|
2473
|
+
(function (module, exports$1) {
|
|
2474
2474
|
var root = require_root(),
|
|
2475
2475
|
stubFalse = requireStubFalse();
|
|
2476
2476
|
|
|
2477
2477
|
/** Detect free variable `exports`. */
|
|
2478
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
2478
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
2479
2479
|
|
|
2480
2480
|
/** Detect free variable `module`. */
|
|
2481
2481
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -2615,11 +2615,11 @@ var hasRequired_nodeUtil;
|
|
|
2615
2615
|
function require_nodeUtil () {
|
|
2616
2616
|
if (hasRequired_nodeUtil) return _nodeUtil.exports;
|
|
2617
2617
|
hasRequired_nodeUtil = 1;
|
|
2618
|
-
(function (module, exports) {
|
|
2618
|
+
(function (module, exports$1) {
|
|
2619
2619
|
var freeGlobal = require_freeGlobal();
|
|
2620
2620
|
|
|
2621
2621
|
/** Detect free variable `exports`. */
|
|
2622
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
2622
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
2623
2623
|
|
|
2624
2624
|
/** Detect free variable `module`. */
|
|
2625
2625
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -3289,6 +3289,7 @@ const MuiDialog = (props) => {
|
|
|
3289
3289
|
const subtype = props.type === MODAL_TYPES.INFORMATION ? props.subtype : props.type === MODAL_TYPES.CONFIRMATION ? props.subtype : props.type === MODAL_TYPES.INPUT ? props.subtype : "default";
|
|
3290
3290
|
const {
|
|
3291
3291
|
wrapperClassName,
|
|
3292
|
+
paperClassName,
|
|
3292
3293
|
open,
|
|
3293
3294
|
type,
|
|
3294
3295
|
size,
|
|
@@ -3348,6 +3349,7 @@ const MuiDialog = (props) => {
|
|
|
3348
3349
|
...rest,
|
|
3349
3350
|
disableEnforceFocus: true,
|
|
3350
3351
|
disableRestoreFocus: true,
|
|
3352
|
+
...paperClassName && { classes: { paper: paperClassName } },
|
|
3351
3353
|
children: /* @__PURE__ */ jsxs("div", { className: `p-24 h-fill ${IS_SAFARI ? "safari-height-fix" : ""}`, children: [
|
|
3352
3354
|
title && /* @__PURE__ */ jsxs(
|
|
3353
3355
|
"div",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/viplatform/mui-dialog/issues"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://github.com/viplatform/mui-dialog#readme",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.33",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
@@ -75,26 +75,31 @@
|
|
|
75
75
|
"lodash": ">=4.17.23",
|
|
76
76
|
"glob": "^10.5.0",
|
|
77
77
|
"js-yaml": ">=4.1.1",
|
|
78
|
-
"vite": "^6.4.1"
|
|
78
|
+
"vite": "^6.4.1",
|
|
79
|
+
"minimatch": ">=3.1.4",
|
|
80
|
+
"brace-expansion": ">=2.0.2",
|
|
81
|
+
"flatted": ">=3.4.2",
|
|
82
|
+
"immutable": ">=5.1.5",
|
|
83
|
+
"@eslint/plugin-kit": ">=0.3.4",
|
|
84
|
+
"rollup": ">=4.59.0"
|
|
79
85
|
},
|
|
80
86
|
"devDependencies": {
|
|
81
87
|
"@emotion/react": "^11.14.0",
|
|
82
88
|
"@emotion/styled": "^11.14.0",
|
|
83
89
|
"@mui/material": "^7.0.2",
|
|
84
|
-
"@storybook/addon-actions": "^8.6.
|
|
85
|
-
"@storybook/addon-essentials": "^8.6.
|
|
86
|
-
"@storybook/addon-interactions": "^8.6.
|
|
87
|
-
"@storybook/addon-links": "^8.6.
|
|
88
|
-
"@storybook/react": "^8.6.
|
|
89
|
-
"@storybook/react-vite": "^8.6.
|
|
90
|
-
"@storybook/test": "^8.6.
|
|
90
|
+
"@storybook/addon-actions": "^8.6.18",
|
|
91
|
+
"@storybook/addon-essentials": "^8.6.18",
|
|
92
|
+
"@storybook/addon-interactions": "^8.6.18",
|
|
93
|
+
"@storybook/addon-links": "^8.6.18",
|
|
94
|
+
"@storybook/react": "^8.6.18",
|
|
95
|
+
"@storybook/react-vite": "^8.6.18",
|
|
96
|
+
"@storybook/test": "^8.6.18",
|
|
91
97
|
"@testing-library/jest-dom": "^6.6.3",
|
|
92
98
|
"@testing-library/react": "^16.3.0",
|
|
93
99
|
"@testing-library/user-event": "^14.6.1",
|
|
94
100
|
"@types/lodash": "^4.17.17",
|
|
95
101
|
"@types/node": "^22.14.1",
|
|
96
102
|
"@types/react-dom": "^19.1.5",
|
|
97
|
-
"@viclafouch/eslint-config-viclafouch": "4.22.0",
|
|
98
103
|
"@vitejs/plugin-react": "^4.3.4",
|
|
99
104
|
"eslint": "^9.24.0",
|
|
100
105
|
"husky": "^9.1.7",
|
|
@@ -102,7 +107,7 @@
|
|
|
102
107
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
103
108
|
"sass-embedded": "^1.89.0",
|
|
104
109
|
"standard-version": "^9.5.0",
|
|
105
|
-
"storybook": "^8.6.
|
|
110
|
+
"storybook": "^8.6.18",
|
|
106
111
|
"terser": "^5.39.2",
|
|
107
112
|
"typescript": "^5.8.3",
|
|
108
113
|
"vite": "^6.4.1",
|