mhz-ui 1.2.29 → 1.2.30

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
- ._chip_yhjo1_1{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:4px 8px 3px;font-size:.875rem;background-color:var(--color-gray-light);border-bottom:1px solid var(--color-gray-dark);border-radius:8px}._chip_yhjo1_1[data-type=success]{color:var(--color-success-dark)}._chip_yhjo1_1[data-type=error]{color:var(--color-error-dark)}
1
+ ._chip_19glz_1{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:4px 8px 3px;font-size:.875rem;color:var(--color-black);background-color:var(--color-gray-light);border-bottom:1px solid var(--color-gray-dark);border-radius:8px}._chip_19glz_1[data-type=success]{color:var(--color-success-dark)}._chip_19glz_1[data-type=error]{color:var(--color-error-dark)}
@@ -1,6 +1,6 @@
1
1
  import "./UiChip.css";
2
- import { defineComponent as o, createElementBlock as c, openBlock as p, normalizeClass as n, renderSlot as a } from "vue";
3
- import { _ as l } from "../_plugin-vue_export-helper-CHgC5LLL.js";
2
+ import { defineComponent as o, createElementBlock as c, openBlock as p, normalizeClass as n, renderSlot as l } from "vue";
3
+ import { _ as a } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const r = "default", i = ["data-type"], _ = /* @__PURE__ */ o({
5
5
  __name: "UiChip",
6
6
  props: {
@@ -8,18 +8,18 @@ const r = "default", i = ["data-type"], _ = /* @__PURE__ */ o({
8
8
  },
9
9
  setup(e) {
10
10
  const s = e;
11
- return (t, m) => (p(), c("div", {
11
+ return (t, u) => (p(), c("div", {
12
12
  class: n(t.$style.chip),
13
13
  "data-type": s.type
14
14
  }, [
15
- a(t.$slots, "default")
15
+ l(t.$slots, "default")
16
16
  ], 10, i));
17
17
  }
18
- }), d = "_chip_yhjo1_1", f = {
18
+ }), d = "_chip_19glz_1", f = {
19
19
  chip: d
20
- }, h = {
20
+ }, m = {
21
21
  $style: f
22
- }, C = /* @__PURE__ */ l(_, [["__cssModules", h]]);
22
+ }, C = /* @__PURE__ */ a(_, [["__cssModules", m]]);
23
23
  export {
24
24
  C as default
25
25
  };
@@ -1 +1 @@
1
- ._flex_1rw48_1{display:flex;flex-grow:var(--1effbfbd);flex-shrink:var(--01038f1a);flex-direction:var(--6e1595d6);flex-wrap:var(--3036dcf4);gap:var(--de6b7634);align-items:var(--6e09b5a5);justify-content:var(--750a0533);width:var(--18d24716)}
1
+ ._flex_si9vt_1{display:flex;flex-grow:var(--61824a30);flex-shrink:var(--c7399644);flex-direction:var(--5bfadb0b);flex-wrap:var(--3f140fc2);gap:var(--f414cf4a);align-items:var(--4416f6e0);justify-content:var(--43cd669e);width:var(--7076914b)}.dark ._flex_si9vt_1{color:var(--color-white)}
@@ -1,10 +1,10 @@
1
1
  import "./UiFlex.css";
2
2
  import { defineComponent as i, useCssVars as f, computed as t, createBlock as m, openBlock as g, resolveDynamicComponent as w, normalizeClass as _, withCtx as y, renderSlot as C } from "vue";
3
- import { _ as x } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const v = "div", h = "normal", k = "normal", A = "8", F = /* @__PURE__ */ i({
3
+ import { _ as v } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const x = "div", h = "normal", k = "normal", A = "8", F = /* @__PURE__ */ i({
5
5
  __name: "UiFlex",
6
6
  props: {
7
- tag: { default: v },
7
+ tag: { default: x },
8
8
  column: { type: Boolean },
9
9
  align: { default: h },
10
10
  justify: { default: k },
@@ -15,16 +15,16 @@ const v = "div", h = "normal", k = "normal", A = "8", F = /* @__PURE__ */ i({
15
15
  },
16
16
  setup(e) {
17
17
  f((o) => ({
18
- "1effbfbd": p.value,
19
- "01038f1a": d.value,
20
- "6e1595d6": s.value,
21
- "3036dcf4": r.value,
22
- de6b7634: u.value,
23
- "6e09b5a5": n.value,
24
- "750a0533": l.value,
25
- "18d24716": c.value
18
+ "61824a30": p.value,
19
+ c7399644: c.value,
20
+ "5bfadb0b": s.value,
21
+ "3f140fc2": r.value,
22
+ f414cf4a: u.value,
23
+ "4416f6e0": n.value,
24
+ "43cd669e": l.value,
25
+ "7076914b": d.value
26
26
  }));
27
- const a = e, s = t(() => a.column ? "column" : "row"), n = t(() => a.align), l = t(() => a.justify), r = t(() => a.wrap ? "wrap" : "nowrap"), u = t(() => a.gap ? `${a.gap}px` : "0"), d = t(() => a.shrink ? "1" : "0"), p = t(() => a.grow ? "1" : "0"), c = t(() => a.grow ? "100%" : "auto");
27
+ const a = e, s = t(() => a.column ? "column" : "row"), n = t(() => a.align), l = t(() => a.justify), r = t(() => a.wrap ? "wrap" : "nowrap"), u = t(() => a.gap ? `${a.gap}px` : "0"), c = t(() => a.shrink ? "1" : "0"), p = t(() => a.grow ? "1" : "0"), d = t(() => a.grow ? "100%" : "auto");
28
28
  return (o, D) => (g(), m(w(a.tag), {
29
29
  class: _(o.$style.flex),
30
30
  "data-column": a.column,
@@ -41,11 +41,11 @@ const v = "div", h = "normal", k = "normal", A = "8", F = /* @__PURE__ */ i({
41
41
  _: 3
42
42
  }, 8, ["class", "data-column", "data-align", "data-justify", "data-wrap", "data-gap", "data-shrink", "data-grow"]));
43
43
  }
44
- }), U = "_flex_1rw48_1", j = {
44
+ }), U = "_flex_si9vt_1", j = {
45
45
  flex: U
46
46
  }, B = {
47
47
  $style: j
48
- }, b = /* @__PURE__ */ x(F, [["__cssModules", B]]);
48
+ }, b = /* @__PURE__ */ v(F, [["__cssModules", B]]);
49
49
  export {
50
50
  b as default
51
51
  };
@@ -1 +1 @@
1
- ._container_1g1og_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_1g1og_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--069e4a9a);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)}._modal_1g1og_13[data-scrollable=true]{max-height:64dvh;overflow-y:auto}._header_1g1og_32{display:flex;justify-content:flex-end}._buttons_1g1og_37{display:flex;gap:16px}.dark ._modal_1g1og_13{background-color:var(--color-black)}.dark ._slot_1g1og_45{color:var(--color-white)}
1
+ ._container_130xv_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_130xv_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--3713408b);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)}._modal_130xv_13[data-scrollable=true]{max-height:64dvh;overflow-y:auto}._header_130xv_32{display:flex;justify-content:flex-end}._buttons_130xv_37{display:flex;gap:16px}.dark ._modal_130xv_13{background-color:var(--color-black);box-shadow:0 0 16px 0 var(--color-black-transparent)}.dark ._slot_130xv_46{color:var(--color-white)}
@@ -1,10 +1,10 @@
1
1
  import "./UiModal.css";
2
- import { defineComponent as w, useCssVars as M, computed as S, ref as $, watch as k, createElementBlock as c, createCommentVNode as u, openBlock as m, normalizeClass as t, createElementVNode as n, withModifiers as B, createVNode as d, renderSlot as E, withCtx as f, createTextVNode as p, toDisplayString as _, unref as y } from "vue";
3
- import g from "../UiButton/UiButton.js";
4
- import N from "../UiClose/UiClose.js";
5
- import { M as C } from "../index-DajWja1y.js";
6
- import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
7
- const T = ["data-scrollable"], q = /* @__PURE__ */ w({
2
+ import { defineComponent as M, useCssVars as S, computed as $, ref as k, watch as x, createElementBlock as c, createCommentVNode as u, openBlock as m, normalizeClass as t, createElementVNode as n, withModifiers as B, createVNode as d, renderSlot as g, withCtx as f, createTextVNode as p, toDisplayString as _, unref as y } from "vue";
3
+ import v from "../UiButton/UiButton.js";
4
+ import E from "../UiClose/UiClose.js";
5
+ import { M as b } from "../index-DajWja1y.js";
6
+ import { _ as N } from "../_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const U = ["data-scrollable"], T = /* @__PURE__ */ M({
8
8
  __name: "UiModal",
9
9
  props: {
10
10
  modelValue: { type: Boolean },
@@ -14,12 +14,12 @@ const T = ["data-scrollable"], q = /* @__PURE__ */ w({
14
14
  lang: { default: "ru" }
15
15
  },
16
16
  emits: ["update:modelValue", "confirm"],
17
- setup(V, { emit: b }) {
18
- M((o) => ({
19
- "069e4a9a": h.value
17
+ setup(C, { emit: V }) {
18
+ S((o) => ({
19
+ "3713408b": h.value
20
20
  }));
21
- const e = V, s = b, h = S(() => `${e.width}px`), r = document.querySelector("body"), l = $(!1);
22
- k(
21
+ const e = C, s = V, h = $(() => `${e.width}px`), r = document.querySelector("body"), l = k(!1);
22
+ x(
23
23
  () => e.modelValue,
24
24
  () => {
25
25
  const o = e.modelValue ? "hidden" : "auto";
@@ -28,7 +28,7 @@ const T = ["data-scrollable"], q = /* @__PURE__ */ w({
28
28
  }, 100));
29
29
  }
30
30
  );
31
- function v() {
31
+ function w() {
32
32
  s("confirm"), s("update:modelValue", !1);
33
33
  }
34
34
  function a() {
@@ -48,45 +48,45 @@ const T = ["data-scrollable"], q = /* @__PURE__ */ w({
48
48
  n("div", {
49
49
  class: t(o.$style.header)
50
50
  }, [
51
- d(N, { onClick: a })
51
+ d(E, { onClick: a })
52
52
  ], 2),
53
53
  n("div", {
54
54
  class: t(o.$style.slot)
55
55
  }, [
56
- E(o.$slots, "default")
56
+ g(o.$slots, "default")
57
57
  ], 2),
58
58
  e.isConfirm ? (m(), c("div", {
59
59
  key: 0,
60
60
  class: t(o.$style.buttons)
61
61
  }, [
62
- d(g, { onClick: v }, {
62
+ d(v, { onClick: w }, {
63
63
  default: f(() => [
64
- p(_(y(C)[e.lang].confirm), 1)
64
+ p(_(y(b)[e.lang].confirm), 1)
65
65
  ]),
66
66
  _: 1
67
67
  }),
68
- d(g, {
68
+ d(v, {
69
69
  layout: "secondary",
70
70
  onClick: a
71
71
  }, {
72
72
  default: f(() => [
73
- p(_(y(C)[e.lang].cancel), 1)
73
+ p(_(y(b)[e.lang].cancel), 1)
74
74
  ]),
75
75
  _: 1
76
76
  })
77
77
  ], 2)) : u("", !0)
78
- ], 42, T)
78
+ ], 42, U)
79
79
  ], 34)) : u("", !0);
80
80
  }
81
- }), x = "_container_1g1og_1", z = "_modal_1g1og_13", A = "_header_1g1og_32", D = "_buttons_1g1og_37", G = "_slot_1g1og_45", H = {
82
- container: x,
81
+ }), q = "_container_130xv_1", z = "_modal_130xv_13", A = "_header_130xv_32", D = "_buttons_130xv_37", G = "_slot_130xv_46", H = {
82
+ container: q,
83
83
  modal: z,
84
84
  header: A,
85
85
  buttons: D,
86
86
  slot: G
87
87
  }, j = {
88
88
  $style: H
89
- }, O = /* @__PURE__ */ U(q, [["__cssModules", j]]);
89
+ }, O = /* @__PURE__ */ N(T, [["__cssModules", j]]);
90
90
  export {
91
91
  O as default
92
92
  };
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.29",
4
+ "version": "1.2.30",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",