mhz-ui 1.0.40 → 1.0.42

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,57 +1,50 @@
1
1
  import "./UiBreadcrumbs.css";
2
- import { defineComponent as m, computed as u, openBlock as s, createElementBlock as a, normalizeClass as n, Fragment as d, renderList as p, createBlock as _, resolveDynamicComponent as b, withCtx as h, createElementVNode as l, toDisplayString as k, createCommentVNode as g } from "vue";
3
- import { RouterLink as y } from "vue-router";
4
- import { _ as f } from "../_plugin-vue_export-helper-hUChTQA_.js";
5
- const B = "default", C = {
6
- itemprop: "name",
7
- "data-test": "ui-breadcrumb-title"
8
- }, L = ["data-color"], $ = ["content"], v = /* @__PURE__ */ m({
2
+ import { defineComponent as m, computed as p, openBlock as s, createElementBlock as r, normalizeClass as l, Fragment as u, renderList as d, createBlock as _, resolveDynamicComponent as h, withCtx as k, createElementVNode as a, toDisplayString as g, createCommentVNode as y } from "vue";
3
+ import { RouterLink as b } from "vue-router";
4
+ import { _ as f } from "../_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const B = "default", C = { itemprop: "name" }, L = ["data-color"], $ = ["content"], v = /* @__PURE__ */ m({
9
6
  __name: "UiBreadcrumbs",
10
7
  props: {
11
8
  links: {},
12
9
  color: { default: B }
13
10
  },
14
11
  setup(i) {
15
- const t = i, c = u(() => window.IS_STORYBOOK ? "a" : y);
16
- return (o, T) => (s(), a("div", {
17
- class: n(o.$style.breadcrumbs),
12
+ const t = i, c = p(() => window.IS_STORYBOOK ? "a" : b);
13
+ return (o, T) => (s(), r("div", {
14
+ class: l(o.$style.breadcrumbs),
18
15
  itemscope: "",
19
16
  itemtype: "https://schema.org/BreadcrumbList"
20
17
  }, [
21
- (s(!0), a(d, null, p(t.links, (e, r) => (s(), a("div", {
18
+ (s(!0), r(u, null, d(t.links, (e, n) => (s(), r("div", {
22
19
  key: `${e.title}${e.url}`,
23
- class: n(o.$style.links),
20
+ class: l(o.$style.links),
24
21
  itemprop: "itemListElement",
25
22
  itemscope: "",
26
- itemtype: "https://schema.org/ListItem",
27
- "data-test": "ui-breadcrumb"
23
+ itemtype: "https://schema.org/ListItem"
28
24
  }, [
29
- (s(), _(b(r === t.links.length - 1 ? "div" : c.value), {
25
+ (s(), _(h(n === t.links.length - 1 ? "div" : c.value), {
30
26
  to: e.url,
31
- class: n(o.$style.link),
32
- "data-link": r !== t.links.length - 1,
27
+ class: l(o.$style.link),
28
+ "data-link": n !== t.links.length - 1,
33
29
  "data-color": t.color,
34
30
  itemid: e.url,
35
31
  itemtype: "https://schema.org/Thing",
36
32
  itemscope: "",
37
- itemprop: "item",
38
- "data-test": "ui-breadcrumb-link"
33
+ itemprop: "item"
39
34
  }, {
40
- default: h(() => [
41
- l("span", C, k(e.title), 1)
35
+ default: k(() => [
36
+ a("span", C, g(e.title), 1)
42
37
  ]),
43
38
  _: 2
44
39
  }, 1032, ["to", "class", "data-link", "data-color", "itemid"])),
45
- r !== t.links.length - 1 ? (s(), a("span", {
40
+ n !== t.links.length - 1 ? (s(), r("span", {
46
41
  key: 0,
47
- class: n(o.$style.slash),
48
- "data-color": t.color,
49
- "data-test": "ui-breadcrumb-slash"
50
- }, "/", 10, L)) : g("", !0),
51
- l("meta", {
42
+ class: l(o.$style.slash),
43
+ "data-color": t.color
44
+ }, "/", 10, L)) : y("", !0),
45
+ a("meta", {
52
46
  itemprop: "position",
53
- content: (r + 1).toString(),
54
- "data-test": "ui-breadcrumb-position"
47
+ content: (n + 1).toString()
55
48
  }, null, 8, $)
56
49
  ], 2))), 128))
57
50
  ], 2));
@@ -1,7 +1,7 @@
1
1
  import "./UiButton.css";
2
- import { defineComponent as s, openBlock as e, createElementBlock as a, normalizeClass as c, createBlock as l, resolveDynamicComponent as u, createCommentVNode as i, renderSlot as d } from "vue";
3
- import { _ as r } from "../_plugin-vue_export-helper-hUChTQA_.js";
4
- const p = "primary", _ = "button", y = void 0, b = ["data-layout", "disabled", "type"], m = /* @__PURE__ */ s({
2
+ import { defineComponent as s, openBlock as e, createElementBlock as a, normalizeClass as l, createBlock as c, resolveDynamicComponent as u, createCommentVNode as r, renderSlot as i } from "vue";
3
+ import { _ as d } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const p = "primary", _ = "button", y = void 0, m = ["data-layout", "disabled", "type"], b = /* @__PURE__ */ s({
5
5
  __name: "UiButton",
6
6
  props: {
7
7
  layout: { default: p },
@@ -12,24 +12,20 @@ const p = "primary", _ = "button", y = void 0, b = ["data-layout", "disabled", "
12
12
  setup(n) {
13
13
  const t = n;
14
14
  return (o, U) => (e(), a("button", {
15
- class: c(o.$style.button),
15
+ class: l(o.$style.button),
16
16
  "data-layout": t.layout,
17
17
  disabled: t.isDisabled,
18
- type: t.type,
19
- "data-test": "ui-button"
18
+ type: t.type
20
19
  }, [
21
- t.icon ? (e(), l(u(t.icon), {
22
- key: 0,
23
- "data-test": "ui-button-icon"
24
- })) : i("", !0),
25
- d(o.$slots, "default")
26
- ], 10, b));
20
+ t.icon ? (e(), c(u(t.icon), { key: 0 })) : r("", !0),
21
+ i(o.$slots, "default")
22
+ ], 10, m));
27
23
  }
28
24
  }), f = "_button_1nlbc_1", B = {
29
25
  button: f
30
26
  }, D = {
31
27
  $style: B
32
- }, T = /* @__PURE__ */ r(m, [["__cssModules", D]]);
28
+ }, T = /* @__PURE__ */ d(b, [["__cssModules", D]]);
33
29
  export {
34
30
  T as default
35
31
  };