mhz-ui 1.2.34 → 1.2.35

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_1yg35_1{display:flex;flex-grow:1;flex-direction:column;gap:4px;width:100%}._options_1yg35_9{display:flex;height:40px;border:1px solid var(--color-gray);border-radius:16px}._options_1yg35_9[data-tall=true]{height:52px}._button_1yg35_19{display:flex;flex-grow:1;align-items:center;justify-content:center;font-size:1rem;cursor:pointer;background-color:var(--color-gray-light);border:none}._button_1yg35_19:first-child{border-top-left-radius:16px;border-bottom-left-radius:16px}._button_1yg35_19[data-fill=true]:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}._button_1yg35_19[data-current=true]{color:var(--color-white);background-color:var(--color-accent-dark)}._input_1yg35_42{flex-grow:1;min-width:60px;max-width:80px;font-size:1rem;text-align:center;outline:none;border:none;border-top-right-radius:16px;border-bottom-right-radius:16px}.dark ._title_1yg35_54{color:var(--color-white)}
1
+ ._container_qocjt_1{display:flex;flex-grow:1;flex-direction:column;gap:4px;width:100%}._options_qocjt_9{display:flex;height:40px;border:1px solid var(--color-gray);border-radius:16px}._options_qocjt_9[data-tall=true]{height:52px}._button_qocjt_19{display:flex;flex-grow:1;align-items:center;justify-content:center;font-size:1rem;cursor:pointer;background-color:var(--color-gray-light);border:none}._button_qocjt_19:first-child{border-top-left-radius:16px;border-bottom-left-radius:16px}._button_qocjt_19[data-fill=true]:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}._button_qocjt_19[data-current=true]{color:var(--color-white);background-color:var(--color-accent-dark)}._input_qocjt_42{flex-grow:1;min-width:60px;max-width:80px;font-size:1rem;text-align:center;outline:none;border:none;border-top-right-radius:16px;border-bottom-right-radius:16px}.dark ._button_qocjt_19{background-color:var(--color-gray-dark)}.dark ._button_qocjt_19[data-current=true]{color:var(--color-white);background-color:var(--color-accent-dark)}.dark ._title_qocjt_61{color:var(--color-white)}
@@ -1,7 +1,7 @@
1
1
  import "./UiButtongroup.css";
2
- import { defineComponent as m, createElementBlock as s, openBlock as l, normalizeClass as o, createElementVNode as u, toDisplayString as r, createCommentVNode as _, Fragment as y, renderList as g } from "vue";
3
- import { _ as b } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const f = ["data-tall"], V = ["onClick", "data-current", "data-fill"], $ = ["value"], k = /* @__PURE__ */ m({
2
+ import { defineComponent as m, createElementBlock as s, openBlock as l, normalizeClass as n, createElementVNode as u, toDisplayString as r, createCommentVNode as _, Fragment as y, renderList as b } from "vue";
3
+ import { _ as f } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const V = ["data-tall"], $ = ["onClick", "data-current", "data-fill"], g = ["value"], k = /* @__PURE__ */ m({
5
5
  __name: "UiButtongroup",
6
6
  props: {
7
7
  modelValue: {},
@@ -11,51 +11,51 @@ const f = ["data-tall"], V = ["onClick", "data-current", "data-fill"], $ = ["val
11
11
  isInput: { type: Boolean }
12
12
  },
13
13
  emits: ["update:modelValue"],
14
- setup(p, { emit: c }) {
15
- const e = p, d = c;
14
+ setup(c, { emit: p }) {
15
+ const e = c, d = p;
16
16
  function a(t) {
17
17
  d("update:modelValue", typeof t == "number" ? t : Number(t.target.value));
18
18
  }
19
19
  return (t, i) => (l(), s("div", {
20
- class: o(t.$style.container)
20
+ class: n(t.$style.container)
21
21
  }, [
22
22
  u("label", {
23
- class: o(t.$style.title)
23
+ class: n(t.$style.title)
24
24
  }, r(e.title), 3),
25
25
  u("div", {
26
- class: o(t.$style.options),
26
+ class: n(t.$style.options),
27
27
  "data-tall": e.isTall
28
28
  }, [
29
- (l(!0), s(y, null, g(e.options, (n) => (l(), s("button", {
30
- key: n,
31
- onClick: (M) => a(n),
29
+ (l(!0), s(y, null, b(e.options, (o) => (l(), s("button", {
30
+ key: o,
31
+ onClick: (N) => a(o),
32
32
  type: "button",
33
- class: o(t.$style.button),
34
- "data-current": e.modelValue === n,
33
+ class: n(t.$style.button),
34
+ "data-current": e.modelValue === o,
35
35
  "data-fill": !e.isInput
36
- }, r(n), 11, V))), 128)),
36
+ }, r(o), 11, $))), 128)),
37
37
  e.isInput ? (l(), s("input", {
38
38
  key: 0,
39
39
  type: "number",
40
- class: o(t.$style.input),
40
+ class: n(t.$style.input),
41
41
  value: e.modelValue,
42
- onChange: i[0] || (i[0] = (n) => a(n)),
42
+ onChange: i[0] || (i[0] = (o) => a(o)),
43
43
  step: "1",
44
44
  min: "1",
45
45
  max: "60"
46
- }, null, 42, $)) : _("", !0)
47
- ], 10, f)
46
+ }, null, 42, g)) : _("", !0)
47
+ ], 10, V)
48
48
  ], 2));
49
49
  }
50
- }), B = "_container_1yg35_1", C = "_options_1yg35_9", v = "_button_1yg35_19", h = "_input_1yg35_42", I = "_title_1yg35_54", N = {
50
+ }), B = "_container_qocjt_1", C = "_options_qocjt_9", j = "_button_qocjt_19", q = "_input_qocjt_42", v = "_title_qocjt_61", h = {
51
51
  container: B,
52
52
  options: C,
53
- button: v,
54
- input: h,
55
- title: I
56
- }, E = {
57
- $style: N
58
- }, z = /* @__PURE__ */ b(k, [["__cssModules", E]]);
53
+ button: j,
54
+ input: q,
55
+ title: v
56
+ }, I = {
57
+ $style: h
58
+ }, T = /* @__PURE__ */ f(k, [["__cssModules", I]]);
59
59
  export {
60
- z as default
60
+ T as default
61
61
  };
@@ -1 +1 @@
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
+ ._chip_b9hsj_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_b9hsj_1[data-type=success]{color:var(--color-success-dark)}._chip_b9hsj_1[data-type=error]{color:var(--color-error-dark)}.dark ._chip_b9hsj_1{background-color:var(--color-gray-dark);border-bottom:1px solid var(--color-gray-dark-extra)}
@@ -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 l } from "vue";
3
- import { _ as a } from "../_plugin-vue_export-helper-CHgC5LLL.js";
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";
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, u) => (p(), c("div", {
11
+ return (t, m) => (p(), c("div", {
12
12
  class: n(t.$style.chip),
13
13
  "data-type": s.type
14
14
  }, [
15
- l(t.$slots, "default")
15
+ a(t.$slots, "default")
16
16
  ], 10, i));
17
17
  }
18
- }), d = "_chip_19glz_1", f = {
18
+ }), d = "_chip_b9hsj_1", f = {
19
19
  chip: d
20
- }, m = {
20
+ }, h = {
21
21
  $style: f
22
- }, C = /* @__PURE__ */ a(_, [["__cssModules", m]]);
22
+ }, C = /* @__PURE__ */ l(_, [["__cssModules", h]]);
23
23
  export {
24
24
  C as default
25
25
  };
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.34",
4
+ "version": "1.2.35",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",