adverich-kun-ui 0.1.350 → 0.1.351

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,4 +1,4 @@
1
- import { mergeModels as g, ref as w, useModel as x, provide as p, computed as B, createElementBlock as M, openBlock as S, mergeProps as I, withModifiers as E, renderSlot as L } from "vue";
1
+ import { mergeModels as g, ref as w, useModel as D, provide as p, computed as B, createElementBlock as M, openBlock as S, mergeProps as I, withModifiers as E, renderSlot as L } from "vue";
2
2
  const R = {
3
3
  __name: "KunList",
4
4
  props: /* @__PURE__ */ g({
@@ -21,8 +21,8 @@ const R = {
21
21
  selectedModifiers: {}
22
22
  }),
23
23
  emits: /* @__PURE__ */ g(["keyDown", "click:select", "update:selected"], ["update:selected"]),
24
- setup(o, { expose: y, emit: b }) {
25
- const u = o, a = b, f = w(null), c = w([]), s = x(o, "selected");
24
+ setup(o, { expose: b, emit: y }) {
25
+ const u = o, a = y, f = w(null), c = w([]), s = D(o, "selected");
26
26
  p("registerListItemRef", (e) => {
27
27
  e && !c.value.includes(e) && c.value.push(e);
28
28
  });
@@ -55,7 +55,7 @@ const R = {
55
55
  }
56
56
  if (t === "ArrowUp" || t === "ArrowDown") {
57
57
  e.preventDefault();
58
- const l = n.findIndex((D) => D === document.activeElement);
58
+ const l = n.findIndex((x) => x === document.activeElement);
59
59
  let d = -1;
60
60
  l === -1 ? d = t === "ArrowDown" ? 0 : n.length - 1 : t === "ArrowDown" ? d = (l + 1) % n.length : t === "ArrowUp" && (d = (l - 1 + n.length) % n.length);
61
61
  const i = n[d];
@@ -71,7 +71,7 @@ const R = {
71
71
  const n = e === "ArrowDown" ? 0 : t.length - 1, r = t[n];
72
72
  (l = r == null ? void 0 : r.focus) == null || l.call(r);
73
73
  }
74
- return y({ focusWithKey: h, focus: () => {
74
+ return b({ focusWithKey: h, focus: () => {
75
75
  var e, t;
76
76
  return (t = (e = f.value) == null ? void 0 : e.focus) == null ? void 0 : t.call(e);
77
77
  } }), (e, t) => (S(), M("ul", I({
@@ -88,6 +88,7 @@ const R = {
88
88
  "p-2 rounded-md": o.nav
89
89
  }
90
90
  ]],
91
+ tabindex: "-1",
91
92
  onKeydown: E(A, ["prevent"]),
92
93
  onSelect: t[0] || (t[0] = (n) => a("click:select", n.detail))
93
94
  }, e.$attrs), [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.350",
3
+ "version": "0.1.351",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",