@kiva/kv-components 6.52.3 → 6.52.4

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,7 +1,7 @@
1
- import { getCurrentInstance as d, computed as c, resolveComponent as m, openBlock as u, createElementBlock as f, createElementVNode as w, normalizeClass as l, renderSlot as p, createVNode as v } from "vue";
1
+ import { getCurrentInstance as c, computed as d, resolveComponent as m, openBlock as u, createElementBlock as f, createElementVNode as w, normalizeClass as l, renderSlot as p, createVNode as v } from "vue";
2
2
  import h from "../KvMaterialIcon.js";
3
- import C from "../../_virtual/_plugin-vue_export-helper.js";
4
- const x = {
3
+ import x from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const C = {
5
5
  components: { KvMaterialIcon: h },
6
6
  props: {
7
7
  refName: {
@@ -37,26 +37,28 @@ const x = {
37
37
  "on-hover"
38
38
  ],
39
39
  setup(e, { emit: o }) {
40
- const { proxy: n } = d();
40
+ const { proxy: n } = c();
41
41
  return {
42
- computedClass: c(() => [
42
+ computedClass: d(() => [
43
43
  e.baseClass,
44
44
  { "tw-text-tertiary": e.openMenuItem && e.openMenuItem !== e.menuComponent }
45
45
  ]),
46
46
  handleMouseOver: () => {
47
- let s = null;
48
- if (e.sendLinkPosition) {
49
- const a = n.$refs[e.refName];
50
- if (a) {
51
- const t = a.getBoundingClientRect();
52
- s = {
53
- left: `${(t == null ? void 0 : t.left) + (t == null ? void 0 : t.width) / 2}px`,
54
- transform: "translateX(-50%)",
55
- borderRadius: "0px 0px 8px 8px"
56
- };
47
+ if (!navigator.maxTouchPoints) {
48
+ let s = null;
49
+ if (e.sendLinkPosition) {
50
+ const a = n.$refs[e.refName];
51
+ if (a) {
52
+ const t = a.getBoundingClientRect();
53
+ s = {
54
+ left: `${(t == null ? void 0 : t.left) + (t == null ? void 0 : t.width) / 2}px`,
55
+ transform: "translateX(-50%)",
56
+ borderRadius: "0px 0px 8px 8px"
57
+ };
58
+ }
57
59
  }
60
+ o("on-hover", e.refName, e.menuComponent, s);
58
61
  }
59
- o("on-hover", e.refName, e.menuComponent, s);
60
62
  }
61
63
  };
62
64
  }
@@ -80,7 +82,7 @@ function y(e, o, n, r, i, s) {
80
82
  ], 2)
81
83
  ], 40, M);
82
84
  }
83
- const O = /* @__PURE__ */ C(x, [["render", y]]);
85
+ const O = /* @__PURE__ */ x(C, [["render", y]]);
84
86
  export {
85
87
  O as default
86
88
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.52.3",
3
+ "version": "6.52.4",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -114,5 +114,5 @@
114
114
  "embla-carousel-fade",
115
115
  "popper.js"
116
116
  ],
117
- "gitHead": "5a200906413aaf12196b69e2e92a76a12b491118"
117
+ "gitHead": "e3f89452a835ee45998223392754f5954358600a"
118
118
  }