mhz-ui 1.2.21 → 1.2.22
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/UiModal/UiModal.css +1 -1
- package/dist/UiModal/UiModal.js +20 -20
- package/package.json +1 -1
package/dist/UiModal/UiModal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_wj2t5_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;background-color:var(--color-gray-transparent)}._modal_wj2t5_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--6a00259e);max-width:100%;height:auto;padding:24px;outline:none;background-color:var(--color-white);border-radius:16px;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._header_wj2t5_28{display:flex;justify-content:flex-end}._buttons_wj2t5_33{display:flex;gap:16px}
|
package/dist/UiModal/UiModal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./UiModal.css";
|
|
2
|
-
import { defineComponent as b, useCssVars as k, computed as $, ref as S, watch as B, createElementBlock as u, createCommentVNode as c, openBlock as m, normalizeClass as l, createElementVNode as a, withModifiers as g, createVNode as d, renderSlot as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { defineComponent as b, useCssVars as k, computed as $, ref as S, watch as B, createElementBlock as u, createCommentVNode as c, openBlock as m, normalizeClass as l, createElementVNode as a, withModifiers as g, createVNode as d, renderSlot as j, withCtx as f, createTextVNode as p, toDisplayString as _, unref as y } from "vue";
|
|
3
|
+
import w from "../UiButton/UiButton.js";
|
|
4
|
+
import E from "../UiClose/UiClose.js";
|
|
5
5
|
import { M as C } from "../index-DajWja1y.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
6
|
+
import { _ as N } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const U = /* @__PURE__ */ b({
|
|
8
8
|
__name: "UiModal",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Boolean },
|
|
@@ -13,11 +13,11 @@ const x = /* @__PURE__ */ b({
|
|
|
13
13
|
lang: { default: "ru" }
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue", "confirm"],
|
|
16
|
-
setup(V, { emit:
|
|
16
|
+
setup(V, { emit: v }) {
|
|
17
17
|
k((o) => ({
|
|
18
|
-
"
|
|
18
|
+
"6a00259e": h.value
|
|
19
19
|
}));
|
|
20
|
-
const e = V, n =
|
|
20
|
+
const e = V, n = v, h = $(() => `${e.width}px`), r = document.querySelector("body"), t = S(!1);
|
|
21
21
|
B(
|
|
22
22
|
() => e.modelValue,
|
|
23
23
|
() => {
|
|
@@ -46,22 +46,22 @@ const x = /* @__PURE__ */ b({
|
|
|
46
46
|
a("div", {
|
|
47
47
|
class: l(o.$style.header)
|
|
48
48
|
}, [
|
|
49
|
-
d(
|
|
49
|
+
d(E, { onClick: s })
|
|
50
50
|
], 2),
|
|
51
51
|
a("div", null, [
|
|
52
|
-
|
|
52
|
+
j(o.$slots, "default")
|
|
53
53
|
]),
|
|
54
54
|
e.isConfirm ? (m(), u("div", {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: l(o.$style.buttons)
|
|
57
57
|
}, [
|
|
58
|
-
d(
|
|
58
|
+
d(w, { onClick: M }, {
|
|
59
59
|
default: f(() => [
|
|
60
60
|
p(_(y(C)[e.lang].confirm), 1)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}),
|
|
64
|
-
d(
|
|
64
|
+
d(w, {
|
|
65
65
|
layout: "secondary",
|
|
66
66
|
onClick: s
|
|
67
67
|
}, {
|
|
@@ -74,14 +74,14 @@ const x = /* @__PURE__ */ b({
|
|
|
74
74
|
], 34)
|
|
75
75
|
], 34)) : c("", !0);
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
78
|
-
container:
|
|
79
|
-
modal:
|
|
80
|
-
header:
|
|
81
|
-
buttons:
|
|
82
|
-
},
|
|
83
|
-
$style:
|
|
84
|
-
}, K = /* @__PURE__ */ U
|
|
77
|
+
}), x = "_container_wj2t5_1", T = "_modal_wj2t5_13", q = "_header_wj2t5_28", z = "_buttons_wj2t5_33", A = {
|
|
78
|
+
container: x,
|
|
79
|
+
modal: T,
|
|
80
|
+
header: q,
|
|
81
|
+
buttons: z
|
|
82
|
+
}, D = {
|
|
83
|
+
$style: A
|
|
84
|
+
}, K = /* @__PURE__ */ N(U, [["__cssModules", D]]);
|
|
85
85
|
export {
|
|
86
86
|
K as default
|
|
87
87
|
};
|