mhz-ui 1.0.97 → 1.0.99

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_1ug92_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100vh;background-color:var(--color-gray-transparent)}._modal_1ug92_13{position:relative;display:flex;flex-direction:column;gap:16px;min-width:50%;max-width:calc(100% - 32px);height:auto;padding:32px;background-color:var(--color-white);border-radius:16px;outline:none;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._header_1ug92_28{display:flex;justify-content:flex-end}._close_1ug92_33{display:flex;flex-grow:0;align-items:center;justify-content:center;width:32px;height:32px;font-size:1.25rem;color:var(--color-white);cursor:pointer;background-color:var(--color-gray-dark);border:none;border-radius:50%}._close_1ug92_33:hover{background-color:var(--color-gray-dark-extra)}._buttons_1ug92_51{display:flex;gap:16px}
1
+ ._container_z2dz7_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100vh;background-color:var(--color-gray-transparent)}._modal_z2dz7_13{position:relative;display:flex;flex-direction:column;gap:16px;width:var(--06409511);min-width:var(--21a082e3);max-width:calc(100% - 32px);height:auto;padding:32px;background-color:var(--color-white);border-radius:16px;outline:none;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._header_z2dz7_29{display:flex;justify-content:flex-end}._close_z2dz7_34{display:flex;flex-grow:0;align-items:center;justify-content:center;width:32px;height:32px;font-size:1.25rem;color:var(--color-white);cursor:pointer;background-color:var(--color-gray-dark);border:none;border-radius:50%}._close_z2dz7_34:hover{background-color:var(--color-gray-dark-extra)}._buttons_z2dz7_52{display:flex;gap:16px}
@@ -1,6 +1,7 @@
1
1
  interface IProps {
2
2
  modelValue: boolean;
3
3
  isConfirm?: boolean;
4
+ width?: string;
4
5
  lang?: 'ru';
5
6
  }
6
7
  declare function __VLS_template(): {
@@ -1,65 +1,70 @@
1
1
  import "./UiModal.css";
2
- import { defineComponent as b, computed as u, watch as k, openBlock as r, createElementBlock as i, normalizeClass as n, createElementVNode as s, withModifiers as w, renderSlot as M, createVNode as m, withCtx as c, createTextVNode as f, toDisplayString as p, createCommentVNode as y } from "vue";
2
+ import { defineComponent as b, useCssVars as k, computed as s, watch as M, openBlock as i, createElementBlock as r, normalizeClass as n, createElementVNode as d, withModifiers as B, renderSlot as g, createVNode as m, withCtx as c, createTextVNode as p, toDisplayString as f, createCommentVNode as y } from "vue";
3
3
  import _ from "../UiButton/UiButton.js";
4
- import { _ as B } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { _ as x } from "../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const N = /* @__PURE__ */ b({
6
6
  __name: "UiModal",
7
7
  props: {
8
8
  modelValue: { type: Boolean },
9
9
  isConfirm: { type: Boolean },
10
+ width: {},
10
11
  lang: {}
11
12
  },
12
13
  emits: ["update:modelValue", "confirm"],
13
- setup(V, { emit: v }) {
14
- const t = V, l = v, C = u(() => t.lang === "ru" ? "Отмена" : "Cancel"), $ = u(() => t.lang === "ru" ? "Подтвердить" : "onfirm"), a = document.querySelector("body");
15
- k(
16
- () => t.modelValue,
14
+ setup(v, { emit: C }) {
15
+ k((o) => ({
16
+ "06409511": $.value,
17
+ "21a082e3": z.value
18
+ }));
19
+ const e = v, l = C, V = s(() => e.lang === "ru" ? "Отмена" : "Cancel"), w = s(() => e.lang === "ru" ? "Подтвердить" : "onfirm"), $ = s(() => e.width ? `${e.width}px` : "auto"), z = s(() => e.width ? `${e.width}px` : "50%"), a = document.querySelector("body");
20
+ M(
21
+ () => e.modelValue,
17
22
  () => {
18
- const e = t.modelValue ? "hidden" : "auto";
19
- a && (a.style.overflow = e);
23
+ const o = e.modelValue ? "hidden" : "auto";
24
+ a && (a.style.overflow = o);
20
25
  }
21
26
  );
22
- function g() {
27
+ function h() {
23
28
  l("confirm"), l("update:modelValue", !1);
24
29
  }
25
- return (e, o) => t.modelValue ? (r(), i("div", {
30
+ return (o, t) => e.modelValue ? (i(), r("div", {
26
31
  key: 0,
27
- onMousedown: o[3] || (o[3] = (d) => l("update:modelValue", !1)),
28
- class: n(e.$style.container)
32
+ onMousedown: t[3] || (t[3] = (u) => l("update:modelValue", !1)),
33
+ class: n(o.$style.container)
29
34
  }, [
30
- s("div", {
31
- onMousedown: o[2] || (o[2] = w(() => {
35
+ d("div", {
36
+ onMousedown: t[2] || (t[2] = B(() => {
32
37
  }, ["stop"])),
33
- class: n(e.$style.modal)
38
+ class: n(o.$style.modal)
34
39
  }, [
35
- s("div", {
36
- class: n(e.$style.header)
40
+ d("div", {
41
+ class: n(o.$style.header)
37
42
  }, [
38
- s("button", {
39
- onClick: o[0] || (o[0] = (d) => l("update:modelValue", !1)),
40
- class: n(e.$style.close),
43
+ d("button", {
44
+ onClick: t[0] || (t[0] = (u) => l("update:modelValue", !1)),
45
+ class: n(o.$style.close),
41
46
  type: "button"
42
47
  }, " × ", 2)
43
48
  ], 2),
44
- s("div", null, [
45
- M(e.$slots, "default")
49
+ d("div", null, [
50
+ g(o.$slots, "default")
46
51
  ]),
47
- t.isConfirm ? (r(), i("div", {
52
+ e.isConfirm ? (i(), r("div", {
48
53
  key: 0,
49
- class: n(e.$style.buttons)
54
+ class: n(o.$style.buttons)
50
55
  }, [
51
- m(_, { onClick: g }, {
56
+ m(_, { onClick: h }, {
52
57
  default: c(() => [
53
- f(p($.value), 1)
58
+ p(f(w.value), 1)
54
59
  ]),
55
60
  _: 1
56
61
  }),
57
62
  m(_, {
58
63
  layout: "secondary",
59
- onClick: o[1] || (o[1] = (d) => l("update:modelValue", !1))
64
+ onClick: t[1] || (t[1] = (u) => l("update:modelValue", !1))
60
65
  }, {
61
66
  default: c(() => [
62
- f(p(C.value), 1)
67
+ p(f(V.value), 1)
63
68
  ]),
64
69
  _: 1
65
70
  })
@@ -67,15 +72,15 @@ const N = /* @__PURE__ */ b({
67
72
  ], 34)
68
73
  ], 34)) : y("", !0);
69
74
  }
70
- }), S = "_container_1ug92_1", T = "_modal_1ug92_13", U = "_header_1ug92_28", h = "_close_1ug92_33", E = "_buttons_1ug92_51", q = {
75
+ }), S = "_container_z2dz7_1", T = "_modal_z2dz7_13", U = "_header_z2dz7_29", E = "_close_z2dz7_34", q = "_buttons_z2dz7_52", D = {
71
76
  container: S,
72
77
  modal: T,
73
78
  header: U,
74
- close: h,
75
- buttons: E
76
- }, x = {
77
- $style: q
78
- }, A = /* @__PURE__ */ B(N, [["__cssModules", x]]);
79
+ close: E,
80
+ buttons: q
81
+ }, W = {
82
+ $style: D
83
+ }, G = /* @__PURE__ */ x(N, [["__cssModules", W]]);
79
84
  export {
80
- A as default
85
+ G as default
81
86
  };
@@ -1 +1 @@
1
- ._container_4qhlu_1{display:flex;flex-direction:column;width:100%}._titleBlock_4qhlu_7{display:flex;gap:8px;align-items:center;padding:0;background-color:var(--color-gray-light-extra);border:0}._titleBlock_4qhlu_7:hover{background-color:var(--color-gray-light)}._title_4qhlu_7{position:relative;z-index:1;display:flex;flex-grow:1;gap:8px;align-items:center;height:48px;padding:0 12px;font-size:1rem;color:var(--color-text);text-align:left;cursor:pointer;background:none;border:none}._titleText_4qhlu_36{display:-webkit-box;overflow:hidden;line-height:1.2;-webkit-line-clamp:2;-webkit-box-orient:vertical}._icon_4qhlu_44{display:flex;flex-shrink:0;align-items:center;transform:rotate(-90deg)}._icon_4qhlu_44[data-expanded=true]{transform:rotate(0)}._spoiler_4qhlu_54{padding:8px 0}
1
+ ._container_1oqut_1{display:flex;flex-direction:column;width:100%}._titleBlock_1oqut_7{display:flex;gap:8px;align-items:center;padding:0;background-color:var(--color-gray-light-extra);border:0}._titleBlock_1oqut_7:hover{background-color:var(--color-gray-light)}._title_1oqut_7{position:relative;z-index:1;display:flex;flex-grow:1;gap:8px;align-items:center;height:40px;padding:0 12px;font-size:1rem;color:var(--color-text);text-align:left;cursor:pointer;background:none;border:none}._titleText_1oqut_36{display:-webkit-box;overflow:hidden;line-height:1.2;-webkit-line-clamp:2;-webkit-box-orient:vertical}._icon_1oqut_44{display:flex;flex-shrink:0;align-items:center;transform:rotate(-90deg)}._icon_1oqut_44[data-expanded=true]{transform:rotate(0)}._spoiler_1oqut_54{padding:8px 0}
@@ -1,15 +1,15 @@
1
1
  import "./UiSpoiler.css";
2
- import { openBlock as r, createElementBlock as a, createElementVNode as l, defineComponent as d, normalizeClass as t, createVNode as u, unref as p, toDisplayString as _, withDirectives as m, renderSlot as h, vShow as y } from "vue";
3
- import { _ as f } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const k = {
2
+ import { openBlock as r, createElementBlock as a, createElementVNode as o, defineComponent as d, normalizeClass as e, createVNode as u, unref as p, toDisplayString as _, withDirectives as m, renderSlot as y, vShow as f } from "vue";
3
+ import { _ as k } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const h = {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  width: "16",
7
7
  height: "16",
8
8
  fill: "none"
9
9
  };
10
- function w(n, o) {
11
- return r(), a("svg", k, o[0] || (o[0] = [
12
- l("path", {
10
+ function w(n, l) {
11
+ return r(), a("svg", h, l[0] || (l[0] = [
12
+ o("path", {
13
13
  stroke: "currentColor",
14
14
  "stroke-linecap": "round",
15
15
  "stroke-linejoin": "round",
@@ -24,40 +24,40 @@ const $ = { render: w }, v = /* @__PURE__ */ d({
24
24
  title: {}
25
25
  },
26
26
  emits: ["update:modelValue"],
27
- setup(n, { emit: o }) {
28
- const s = n, c = o;
29
- return (e, i) => (r(), a("div", {
30
- class: t(e.$style.container)
27
+ setup(n, { emit: l }) {
28
+ const s = n, c = l;
29
+ return (t, i) => (r(), a("div", {
30
+ class: e(t.$style.container)
31
31
  }, [
32
- l("button", {
32
+ o("button", {
33
33
  onClick: i[0] || (i[0] = (b) => c("update:modelValue", !s.modelValue)),
34
- class: t(e.$style.titleBlock),
34
+ class: e(t.$style.titleBlock),
35
35
  type: "button"
36
36
  }, [
37
- l("div", {
38
- class: t(e.$style.title)
37
+ o("div", {
38
+ class: e(t.$style.title)
39
39
  }, [
40
40
  u(p($), {
41
41
  "data-expanded": s.modelValue,
42
- class: t(e.$style.icon),
42
+ class: e(t.$style.icon),
43
43
  width: "16",
44
44
  height: "16"
45
45
  }, null, 8, ["data-expanded", "class"]),
46
- l("span", {
47
- class: t(e.$style.titleText)
46
+ o("span", {
47
+ class: e(t.$style.titleText)
48
48
  }, _(s.title), 3)
49
49
  ], 2)
50
50
  ], 2),
51
- m(l("div", {
52
- class: t(e.$style.spoiler)
51
+ m(o("div", {
52
+ class: e(t.$style.spoiler)
53
53
  }, [
54
- h(e.$slots, "default")
54
+ y(t.$slots, "default")
55
55
  ], 2), [
56
- [y, s.modelValue]
56
+ [f, s.modelValue]
57
57
  ])
58
58
  ], 2));
59
59
  }
60
- }), V = "_container_4qhlu_1", B = "_titleBlock_4qhlu_7", g = "_title_4qhlu_7", q = "_titleText_4qhlu_36", S = "_icon_4qhlu_44", x = "_spoiler_4qhlu_54", C = {
60
+ }), V = "_container_1oqut_1", B = "_titleBlock_1oqut_7", g = "_title_1oqut_7", q = "_titleText_1oqut_36", S = "_icon_1oqut_44", x = "_spoiler_1oqut_54", C = {
61
61
  container: V,
62
62
  titleBlock: B,
63
63
  title: g,
@@ -66,7 +66,7 @@ const $ = { render: w }, v = /* @__PURE__ */ d({
66
66
  spoiler: x
67
67
  }, T = {
68
68
  $style: C
69
- }, M = /* @__PURE__ */ f(v, [["__cssModules", T]]);
69
+ }, M = /* @__PURE__ */ k(v, [["__cssModules", T]]);
70
70
  export {
71
71
  M as default
72
72
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-ui",
3
3
  "description": "9000 Mhz ui kit",
4
- "version": "1.0.97",
4
+ "version": "1.0.99",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",