adverich-kun-ui 0.1.454 → 0.1.455

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,37 +1,34 @@
1
- import { computed as f, createBlock as p, openBlock as s, unref as z, withCtx as n, createElementVNode as h, mergeProps as $, withKeys as K, withModifiers as S, renderSlot as a, createCommentVNode as l, createElementBlock as o, normalizeClass as i, createVNode as r, resolveDynamicComponent as j } from "vue";
1
+ import { computed as f, createBlock as u, openBlock as s, unref as z, withCtx as a, createElementVNode as h, mergeProps as $, withKeys as K, withModifiers as S, renderSlot as n, createCommentVNode as l, createElementBlock as o, normalizeClass as i, createVNode as r, resolveDynamicComponent as j } from "vue";
2
2
  import { RouterLink as B } from "vue-router";
3
3
  import { kunCardProps as H } from "../composables/kunCardProps.js";
4
- import u from "../../../KunCardItem/src/components/KunCardItem.vue.js";
4
+ import p from "../../../KunCardItem/src/components/KunCardItem.vue.js";
5
5
  import g from "../../../KunCardTitle/src/components/KunCardTitle.vue.js";
6
6
  import b from "../../../KunCardText/src/components/KunCardText.vue.js";
7
7
  import w from "../../../KunCardActions/src/components/KunCardActions.vue.js";
8
8
  const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
9
9
  key: 1,
10
- class: "flex items-center gap-2 px-4 py-2"
10
+ class: "flex items-center gap-2"
11
11
  }, D = ["src"], E = {
12
12
  key: 2,
13
- class: "px-4 pt-4"
13
+ class: "pt-2"
14
14
  }, L = {
15
15
  key: 4,
16
- class: "flex items-center gap-2 px-4 py-2"
16
+ class: "flex items-center gap-2"
17
17
  }, P = ["src"], M = {
18
18
  key: 5,
19
- class: "px-4 pb-4 flex justify-end gap-2"
19
+ class: "flex justify-end gap-2"
20
20
  }, O = {
21
21
  key: 6,
22
22
  class: "absolute bottom-0 left-0 w-full h-1 bg-primary animate-pulse"
23
23
  }, R = ["src"], T = {
24
24
  key: 1,
25
- class: "flex items-center gap-2 px-4 py-2"
26
- }, q = ["src"], F = {
27
- key: 2,
28
- class: "px-4 pt-4"
29
- }, G = {
25
+ class: "flex items-center gap-2"
26
+ }, q = ["src"], F = { key: 2 }, G = {
30
27
  key: 4,
31
- class: "flex items-center gap-2 px-4 py-2"
28
+ class: "flex items-center gap-2"
32
29
  }, J = ["src"], Q = {
33
30
  key: 5,
34
- class: "px-4 pb-4 flex justify-end gap-2"
31
+ class: "flex justify-end gap-2"
35
32
  }, U = {
36
33
  key: 6,
37
34
  class: "absolute bottom-0 left-0 w-full h-1 bg-primary animate-pulse"
@@ -39,17 +36,17 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
39
36
  __name: "KunCard",
40
37
  props: H,
41
38
  setup(C) {
42
- const t = C, y = f(() => !!(t.to || t.href)), A = f(() => t.tag || "div");
43
- function c(e, d) {
39
+ const t = C, c = f(() => !!(t.to || t.href)), A = f(() => t.tag || "div");
40
+ function v(e, d) {
44
41
  e.ctrlKey || e.metaKey || e.button === 1 || (e.preventDefault(), d == null || d());
45
42
  }
46
- const v = f(() => [
43
+ const y = f(() => [
47
44
  "relative",
48
45
  "overflow-hidden",
49
46
  "flex",
50
47
  "flex-col",
51
48
  "w-full",
52
- y.value ? "cursor-pointer" : "",
49
+ c.value ? "cursor-pointer" : "",
53
50
  t.scrollable ? "h-full" : "",
54
51
  t.bgColor,
55
52
  t.textColor,
@@ -71,30 +68,30 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
71
68
  t.variant === "text" ? "bg-transparent shadow-none" : "",
72
69
  (t.variant === "plain", "")
73
70
  ].filter(Boolean).join(" "));
74
- return (e, d) => y.value ? (s(), p(z(B), {
71
+ return (e, d) => c.value ? (s(), u(z(B), {
75
72
  key: 0,
76
73
  to: e.to,
77
74
  replace: e.replace,
78
75
  exact: e.exact,
79
76
  custom: ""
80
77
  }, {
81
- default: n(({ navigate: k, href: I }) => [
78
+ default: a(({ navigate: k, href: I }) => [
82
79
  h("a", $({
83
80
  href: I,
84
- class: v.value,
81
+ class: y.value,
85
82
  role: "link",
86
83
  tabindex: "0",
87
- onClick: (m) => c(m, k),
88
- onKeydown: K(S((m) => c(m, k), ["prevent"]), ["enter"])
84
+ onClick: (m) => v(m, k),
85
+ onKeydown: K(S((m) => v(m, k), ["prevent"]), ["enter"])
89
86
  }, e.$attrs), [
90
- e.image || e.$slots.image ? a(e.$slots, "image", { key: 0 }, () => [
87
+ e.image || e.$slots.image ? n(e.$slots, "image", { key: 0 }, () => [
91
88
  h("img", {
92
89
  src: e.image,
93
90
  class: "w-full h-auto object-cover"
94
91
  }, null, 8, N)
95
92
  ]) : l("", !0),
96
93
  e.prependAvatar || e.prependIcon || e.$slots.prepend ? (s(), o("div", V, [
97
- a(e.$slots, "prepend"),
94
+ n(e.$slots, "prepend"),
98
95
  e.prependAvatar ? (s(), o("img", {
99
96
  key: 0,
100
97
  src: e.prependAvatar,
@@ -106,10 +103,10 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
106
103
  }, null, 2)) : l("", !0)
107
104
  ])) : l("", !0),
108
105
  e.$slots.title || e.title || e.subtitle ? (s(), o("div", E, [
109
- r(u, {
106
+ r(p, {
110
107
  dense: e.density !== "default"
111
108
  }, {
112
- default: n(() => [
109
+ default: a(() => [
113
110
  r(g, {
114
111
  title: e.title,
115
112
  subtitle: e.subtitle,
@@ -121,17 +118,17 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
121
118
  ])) : l("", !0),
122
119
  e.$slots.default || e.text ? (s(), o("div", {
123
120
  key: 3,
124
- class: i(["px-4 py-2 text-sm", e.scrollable ? "flex-grow overflow-auto" : ""])
121
+ class: i(["text-sm", e.scrollable ? "flex-grow overflow-auto" : ""])
125
122
  }, [
126
- e.text ? (s(), p(u, { key: 0 }, {
127
- default: n(() => [
123
+ e.text ? (s(), u(p, { key: 0 }, {
124
+ default: a(() => [
128
125
  r(b, { text: e.text }, null, 8, ["text"])
129
126
  ]),
130
127
  _: 1
131
- })) : a(e.$slots, "default", { key: 1 })
128
+ })) : n(e.$slots, "default", { key: 1 })
132
129
  ], 2)) : l("", !0),
133
130
  e.appendAvatar || e.appendIcon || e.$slots.append ? (s(), o("div", L, [
134
- a(e.$slots, "append"),
131
+ n(e.$slots, "append"),
135
132
  e.appendAvatar ? (s(), o("img", {
136
133
  key: 0,
137
134
  src: e.appendAvatar,
@@ -144,8 +141,8 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
144
141
  ])) : l("", !0),
145
142
  e.$slots.actions ? (s(), o("div", M, [
146
143
  r(w, null, {
147
- default: n(() => [
148
- a(e.$slots, "actions")
144
+ default: a(() => [
145
+ n(e.$slots, "actions")
149
146
  ]),
150
147
  _: 3
151
148
  })
@@ -154,19 +151,19 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
154
151
  ], 16, W)
155
152
  ]),
156
153
  _: 3
157
- }, 8, ["to", "replace", "exact"])) : (s(), p(j(A.value), $({
154
+ }, 8, ["to", "replace", "exact"])) : (s(), u(j(A.value), $({
158
155
  key: 1,
159
- class: v.value
156
+ class: y.value
160
157
  }, e.$attrs), {
161
- default: n(() => [
162
- e.image || e.$slots.image ? a(e.$slots, "image", { key: 0 }, () => [
158
+ default: a(() => [
159
+ e.image || e.$slots.image ? n(e.$slots, "image", { key: 0 }, () => [
163
160
  h("img", {
164
161
  src: e.image,
165
162
  class: "w-full h-auto object-cover"
166
163
  }, null, 8, R)
167
164
  ]) : l("", !0),
168
165
  e.prependAvatar || e.prependIcon || e.$slots.prepend ? (s(), o("div", T, [
169
- a(e.$slots, "prepend"),
166
+ n(e.$slots, "prepend"),
170
167
  e.prependAvatar ? (s(), o("img", {
171
168
  key: 0,
172
169
  src: e.prependAvatar,
@@ -178,10 +175,10 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
178
175
  }, null, 2)) : l("", !0)
179
176
  ])) : l("", !0),
180
177
  e.$slots.title || e.title || e.subtitle ? (s(), o("div", F, [
181
- r(u, {
178
+ r(p, {
182
179
  dense: e.density !== "default"
183
180
  }, {
184
- default: n(() => [
181
+ default: a(() => [
185
182
  r(g, {
186
183
  title: e.title,
187
184
  subtitle: e.subtitle,
@@ -193,17 +190,17 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
193
190
  ])) : l("", !0),
194
191
  e.$slots.default || e.text ? (s(), o("div", {
195
192
  key: 3,
196
- class: i(["px-4 py-2 text-sm", e.scrollable ? "flex-grow overflow-auto" : ""])
193
+ class: i(["text-sm", e.scrollable ? "flex-grow overflow-auto" : ""])
197
194
  }, [
198
- e.text ? (s(), p(u, { key: 0 }, {
199
- default: n(() => [
195
+ e.text ? (s(), u(p, { key: 0 }, {
196
+ default: a(() => [
200
197
  r(b, { text: e.text }, null, 8, ["text"])
201
198
  ]),
202
199
  _: 1
203
- })) : a(e.$slots, "default", { key: 1 })
200
+ })) : n(e.$slots, "default", { key: 1 })
204
201
  ], 2)) : l("", !0),
205
202
  e.appendAvatar || e.appendIcon || e.$slots.append ? (s(), o("div", G, [
206
- a(e.$slots, "append"),
203
+ n(e.$slots, "append"),
207
204
  e.appendAvatar ? (s(), o("img", {
208
205
  key: 0,
209
206
  src: e.appendAvatar,
@@ -216,8 +213,8 @@ const W = ["href", "onClick", "onKeydown"], N = ["src"], V = {
216
213
  ])) : l("", !0),
217
214
  e.$slots.actions ? (s(), o("div", Q, [
218
215
  r(w, null, {
219
- default: n(() => [
220
- a(e.$slots, "actions")
216
+ default: a(() => [
217
+ n(e.$slots, "actions")
221
218
  ]),
222
219
  _: 3
223
220
  })
@@ -168,7 +168,7 @@ const ce = { class: "relative" }, ve = {
168
168
  onBlur: U,
169
169
  onClick: r[2] || (r[2] = (s) => e.$emit("click:control", s)),
170
170
  onMousedown: r[3] || (r[3] = (s) => e.$emit("mousedown:control", s)),
171
- class: b([X.value]),
171
+ class: b(["bg-field-background", [X.value]]),
172
172
  style: { width: "100%", "box-sizing": "border-box", "overflow-y": "hidden" }
173
173
  }, null, 42, be),
174
174
  e.clearable && n(v) ? (t(), l("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.454",
3
+ "version": "0.1.455",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",