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.
@@ -1 +1 @@
1
- ._container_15v9t_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_15v9t_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--313d4130);max-width:calc(100% - 32px);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_15v9t_28{display:flex;justify-content:flex-end}._buttons_15v9t_33{display:flex;gap:16px}
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}
@@ -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 E, withCtx as f, createTextVNode as p, toDisplayString as _, unref as y } from "vue";
3
- import v from "../UiButton/UiButton.js";
4
- import N from "../UiClose/UiClose.js";
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 U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
7
- const x = /* @__PURE__ */ b({
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: h }) {
16
+ setup(V, { emit: v }) {
17
17
  k((o) => ({
18
- "313d4130": w.value
18
+ "6a00259e": h.value
19
19
  }));
20
- const e = V, n = h, w = $(() => `${e.width}px`), r = document.querySelector("body"), t = S(!1);
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(N, { onClick: s })
49
+ d(E, { onClick: s })
50
50
  ], 2),
51
51
  a("div", null, [
52
- E(o.$slots, "default")
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(v, { onClick: M }, {
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(v, {
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
- }), T = "_container_15v9t_1", q = "_modal_15v9t_13", z = "_header_15v9t_28", A = "_buttons_15v9t_33", D = {
78
- container: T,
79
- modal: q,
80
- header: z,
81
- buttons: A
82
- }, G = {
83
- $style: D
84
- }, K = /* @__PURE__ */ U(x, [["__cssModules", G]]);
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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-ui",
3
3
  "description": "Mhz ui kit",
4
- "version": "1.2.21",
4
+ "version": "1.2.22",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",