adverich-kun-ui 0.1.396 → 0.1.398

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