adverich-kun-ui 0.1.396 → 0.1.397

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,14 +1,14 @@
1
- import { computed as k, resolveComponent as w, createBlock as u, openBlock as o, withCtx as s, resolveDynamicComponent as c, mergeProps as y, withKeys as S, withModifiers as _, createElementBlock as r, createCommentVNode as n, createVNode as i, renderSlot as a } from "vue";
1
+ import { computed as k, resolveComponent as w, createBlock as u, openBlock as l, withCtx as s, resolveDynamicComponent as c, mergeProps as y, withKeys as S, withModifiers as _, createElementBlock as r, createCommentVNode as n, createVNode as i, renderSlot as a } from "vue";
2
2
  import { kunCardProps as z } from "../composables/kunCardProps.js";
3
3
  import d from "../../../KunCardItem/src/components/KunCardItem.vue.js";
4
4
  import $ from "../../../KunCardTitle/src/components/KunCardTitle.vue.js";
5
5
  import h from "../../../KunCardText/src/components/KunCardText.vue.js";
6
- import b from "../../../KunCardActions/src/components/KunCardActions.vue.js";
7
- const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key: 1 }, P = { key: 2 }, T = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
6
+ import v from "../../../KunCardActions/src/components/KunCardActions.vue.js";
7
+ const B = { key: 0 }, g = { key: 1 }, D = { key: 2 }, L = { key: 0 }, j = { key: 1 }, N = { key: 2 }, T = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
8
8
  __name: "KunCard",
9
9
  props: z,
10
- setup(v) {
11
- const t = v, f = k(() => !!(t.to || t.href)), m = k(() => [
10
+ setup(b) {
11
+ const t = b, f = k(() => !!(t.to || t.href)), m = k(() => [
12
12
  "w-full",
13
13
  t.bgColor,
14
14
  t.textColor || "text-black",
@@ -17,9 +17,9 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
17
17
  t.flat ? "shadow-none" : `shadow-${t.elevation}`,
18
18
  f.value ? "cursor-pointer" : ""
19
19
  ].filter(Boolean).join(" "));
20
- return (e, R) => {
20
+ return (e, P) => {
21
21
  const C = w("RouterLink");
22
- return f.value ? (o(), u(C, {
22
+ return f.value ? (l(), u(C, {
23
23
  key: 0,
24
24
  to: t.to,
25
25
  replace: t.replace,
@@ -28,19 +28,19 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
28
28
  tabindex: "0"
29
29
  }, {
30
30
  default: s(({ href: K, navigate: p }) => [
31
- (o(), u(c("a"), y({
31
+ (l(), u(c("a"), y({
32
32
  href: K,
33
33
  class: m.value
34
34
  }, e.$attrs, {
35
- onClick: (l) => {
36
- l.ctrlKey || l.metaKey || l.button === 1 || p(l);
35
+ onClick: (o) => {
36
+ o.ctrlKey || o.metaKey || o.button === 1 || (o.preventDefault(), p(o));
37
37
  },
38
- onKeydown: S(_((l) => {
39
- l.ctrlKey || l.metaKey || l.button === 1 || p(l);
38
+ onKeydown: S(_((o) => {
39
+ o.ctrlKey || o.metaKey || o.button === 1 || (o.preventDefault(), p(o));
40
40
  }, ["prevent"]), ["enter"])
41
41
  }), {
42
42
  default: s(() => [
43
- e.$slots.title || e.title || e.subtitle ? (o(), r("div", B, [
43
+ e.$slots.title || e.title || e.subtitle ? (l(), r("div", B, [
44
44
  i(d, { dense: "" }, {
45
45
  default: s(() => [
46
46
  i($, {
@@ -52,16 +52,16 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
52
52
  _: 1
53
53
  })
54
54
  ])) : n("", !0),
55
- e.$slots.default || e.text ? (o(), r("div", g, [
56
- e.text ? (o(), u(d, { key: 0 }, {
55
+ e.$slots.default || e.text ? (l(), r("div", g, [
56
+ e.text ? (l(), u(d, { key: 0 }, {
57
57
  default: s(() => [
58
58
  i(h, { text: e.text }, null, 8, ["text"])
59
59
  ]),
60
60
  _: 1
61
61
  })) : a(e.$slots, "default", { key: 1 })
62
62
  ])) : n("", !0),
63
- e.$slots.actions ? (o(), r("div", L, [
64
- i(b, null, {
63
+ e.$slots.actions ? (l(), r("div", D, [
64
+ i(v, null, {
65
65
  default: s(() => [
66
66
  a(e.$slots, "actions")
67
67
  ]),
@@ -73,12 +73,12 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
73
73
  }, 1040, ["href", "class", "onClick", "onKeydown"]))
74
74
  ]),
75
75
  _: 3
76
- }, 8, ["to", "replace"])) : (o(), u(c("div"), y({
76
+ }, 8, ["to", "replace"])) : (l(), u(c("div"), y({
77
77
  key: 1,
78
78
  class: m.value
79
79
  }, e.$attrs), {
80
80
  default: s(() => [
81
- e.$slots.title || e.title || e.subtitle ? (o(), r("div", j, [
81
+ e.$slots.title || e.title || e.subtitle ? (l(), r("div", L, [
82
82
  i(d, { dense: "" }, {
83
83
  default: s(() => [
84
84
  i($, {
@@ -90,16 +90,16 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
90
90
  _: 1
91
91
  })
92
92
  ])) : n("", !0),
93
- e.$slots.default || e.text ? (o(), r("div", N, [
94
- e.text ? (o(), u(d, { key: 0 }, {
93
+ e.$slots.default || e.text ? (l(), r("div", j, [
94
+ e.text ? (l(), u(d, { key: 0 }, {
95
95
  default: s(() => [
96
96
  i(h, { text: e.text }, null, 8, ["text"])
97
97
  ]),
98
98
  _: 1
99
99
  })) : a(e.$slots, "default", { key: 1 })
100
100
  ])) : n("", !0),
101
- e.$slots.actions ? (o(), r("div", P, [
102
- i(b, null, {
101
+ e.$slots.actions ? (l(), r("div", N, [
102
+ i(v, null, {
103
103
  default: s(() => [
104
104
  a(e.$slots, "actions")
105
105
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.396",
3
+ "version": "0.1.397",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",