adverich-kun-ui 0.1.321 → 0.1.323

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.
Files changed (38) hide show
  1. package/dist/adverich-kun-ui.css +1 -1
  2. package/dist/components/KunBadge/examples/Default.vue.js +23 -0
  3. package/dist/components/KunCardActions/exaples/Default.vue.js +58 -0
  4. package/dist/components/KunCardItem/exaples/Default.vue.js +37 -0
  5. package/dist/components/KunCardSubtitle/exaples/Default.vue.js +26 -0
  6. package/dist/components/KunCardText/exaples/Default.vue.js +26 -0
  7. package/dist/components/KunCardTitle/exaples/Default.vue.js +41 -0
  8. package/dist/components/KunCheckbox/src/components/KunCheckbox.vue.js +154 -0
  9. package/dist/components/KunCheckbox/src/composables/useCheckboxModel.js +21 -0
  10. package/dist/components/KunCheckbox/src/composables/useValidation.js +31 -0
  11. package/dist/components/KunDialog/src/components/KunDialog.vue.js +2 -112
  12. package/dist/components/KunDialog/src/components/KunDialog.vue2.js +112 -2
  13. package/dist/components/KunDialog/src/components/KunDialogOverlay.vue.js +2 -18
  14. package/dist/components/KunDialog/src/components/KunDialogOverlay.vue2.js +18 -2
  15. package/dist/components/KunInfiniteScroll/examples/Default.vue.js +52 -0
  16. package/dist/components/KunList/examples/Default.vue.js +46 -0
  17. package/dist/components/KunList/examples/WhiteGroups.vue.js +72 -0
  18. package/dist/components/KunListGroup/examples/Default.vue.js +67 -0
  19. package/dist/components/KunListImg/examples/Default.vue.js +31 -0
  20. package/dist/components/KunListItem/examples/Default.vue.js +39 -0
  21. package/dist/components/KunListItem/examples/WithAction.vue.js +104 -0
  22. package/dist/components/KunListItem/examples/WithAvatar.vue.js +71 -0
  23. package/dist/components/KunListSubheader/examples/Default.vue.js +49 -0
  24. package/dist/components/KunRadio/src/components/KunRadio.vue.js +65 -0
  25. package/dist/components/KunRadioGroup/src/components/KunRadioGroup.vue.js +47 -0
  26. package/dist/components/KunSlider/examples/ExampleBasic.vue.js +18 -0
  27. package/dist/components/KunSlider/examples/ExampleCustomThumb.vue.js +24 -0
  28. package/dist/components/KunSlider/examples/ExampleRange.vue.js +20 -0
  29. package/dist/components/KunSlider/examples/ExampleVertical.vue.js +23 -0
  30. package/dist/components/KunTable/src/components/KunTableFilter.vue.js +1 -1
  31. package/dist/components/KunTable/src/components/KunTableVirtual.vue.js +9 -0
  32. package/dist/components/KunTabs/src/components/KunTabWindow.vue.js +82 -0
  33. package/dist/components/KunToolbar/src/components/KunToolbarItems.vue.js +42 -0
  34. package/dist/components/KunTooltip/examples/Default.vue.js +59 -0
  35. package/dist/components/KunVirtualScroller/examples/Default.vue.js +29 -0
  36. package/dist/directives/ripple.js +15 -0
  37. package/dist/index.js +262 -155
  38. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { ref as f, watch as d } from "vue";
2
+ function h(t, o) {
3
+ const i = f(!0), u = f([]);
4
+ function c(e) {
5
+ const a = t.rules || [], n = [];
6
+ for (const s of a)
7
+ if (typeof s == "function") {
8
+ const l = s(e);
9
+ typeof l == "string" ? n.push(l) : l === !1 && n.push("Campo inválido");
10
+ } else typeof s == "string" ? n.push(s) : s === !1 && n.push("Campo inválido");
11
+ return n;
12
+ }
13
+ const r = () => {
14
+ const e = t.validationValue !== void 0 ? t.validationValue : o.value, a = c(e);
15
+ return u.value = a, i.value = a.length === 0, i.value;
16
+ }, v = () => {
17
+ u.value = [], i.value = !0;
18
+ };
19
+ return d(o, () => {
20
+ var e;
21
+ (t.validateOn === "input" || (e = t.validateOn) != null && e.includes("input")) && r();
22
+ }), {
23
+ errorMessages: u,
24
+ isValid: i,
25
+ validate: r,
26
+ resetValidation: v
27
+ };
28
+ }
29
+ export {
30
+ h as useValidation
31
+ };
@@ -1,114 +1,4 @@
1
- import { defineComponent as x, watch as C, onMounted as f, onBeforeUnmount as S, onUnmounted as k, createBlock as m, openBlock as a, Teleport as P, createVNode as o, Transition as u, withCtx as n, createElementBlock as B, createCommentVNode as h, mergeProps as V, renderSlot as E } from "vue";
2
- import H from "./KunDialogOverlay.vue.js";
3
- import W from "./KunDialogContent.vue.js";
4
- const $ = "fixed inset-0 z-250 flex", T = /* @__PURE__ */ x({
5
- __name: "KunDialog",
6
- props: {
7
- modelValue: Boolean,
8
- overlay: { type: Boolean, default: !0 },
9
- fullscreen: { type: Boolean, default: !1 },
10
- scrollable: { type: Boolean, default: !1 },
11
- persistent: { type: Boolean, default: !1 },
12
- dialogClass: { type: String, default: "" },
13
- xPosition: {
14
- type: String,
15
- default: "center",
16
- // 'start' | 'center' | 'end'
17
- validator: (e) => ["start", "center", "end"].includes(e)
18
- },
19
- yPosition: {
20
- type: String,
21
- default: "center",
22
- // 'start' | 'center' | 'end'
23
- validator: (e) => ["top", "center", "bottom"].includes(e)
24
- },
25
- contentClass: { type: String, default: "" },
26
- bgColor: { type: String, default: "bg-slate-100 dark:bg-slate-900" },
27
- minHeight: { type: String, default: "h-fit" },
28
- height: { type: String, default: "h-fit" },
29
- maxHeight: { type: String, default: "max-h-[100vh]" },
30
- minWidth: { type: String, default: "min-w-1/3" },
31
- width: { type: String, default: "w-full" },
32
- maxWidth: { type: String, default: "max-w-full" }
33
- },
34
- emits: ["update:modelValue"],
35
- setup(e, { emit: y }) {
36
- const t = e, i = y, g = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", b = [$, t.dialogClass, g, p, w], s = () => {
37
- t.persistent || i("update:modelValue", !1);
38
- }, v = () => {
39
- s();
40
- }, r = () => {
41
- document.body.style.overflow = "hidden";
42
- }, d = () => {
43
- document.body.style.overflow = "";
44
- };
45
- C(() => t.modelValue, (l) => {
46
- l && !t.fullscreen ? r() : d();
47
- }), f(() => {
48
- t.modelValue && !t.fullscreen && r();
49
- }), S(() => {
50
- d();
51
- });
52
- function c(l) {
53
- l.stopPropagation(), l.key === "Escape" && (t.persistent || i("update:modelValue", !1));
54
- }
55
- return f(() => {
56
- window.addEventListener("keydown", c);
57
- }), k(() => {
58
- window.removeEventListener("keydown", c);
59
- }), (l, D) => (a(), m(P, { to: "body" }, [
60
- o(u, {
61
- name: "fade",
62
- appear: ""
63
- }, {
64
- default: n(() => [
65
- e.modelValue ? (a(), B("div", V({
66
- key: 0,
67
- class: b
68
- }, l.$attrs), [
69
- e.overlay ? (a(), m(H, {
70
- key: 0,
71
- persistent: e.persistent,
72
- onClick: v
73
- }, null, 8, ["persistent"])) : h("", !0),
74
- o(u, {
75
- name: "scale",
76
- "enter-active-class": "transition transform ease-out duration-300",
77
- "enter-from-class": "opacity-0 scale-95",
78
- "enter-to-class": "opacity-100 scale-100",
79
- "leave-active-class": "transition transform ease-in duration-200",
80
- "leave-from-class": "opacity-100 scale-100",
81
- "leave-to-class": "opacity-0 scale-95"
82
- }, {
83
- default: n(() => [
84
- o(W, {
85
- fullscreen: e.fullscreen,
86
- scrollable: e.scrollable,
87
- "min-width": e.minWidth,
88
- width: e.width,
89
- "max-width": e.maxWidth,
90
- "min-height": e.minHeight,
91
- height: e.height,
92
- "max-height": e.maxHeight,
93
- "bg-color": e.bgColor,
94
- "content-class": e.contentClass,
95
- onClose: s
96
- }, {
97
- default: n(() => [
98
- E(l.$slots, "default")
99
- ]),
100
- _: 3
101
- }, 8, ["fullscreen", "scrollable", "min-width", "width", "max-width", "min-height", "height", "max-height", "bg-color", "content-class"])
102
- ]),
103
- _: 3
104
- })
105
- ], 16)) : h("", !0)
106
- ]),
107
- _: 3
108
- })
109
- ]));
110
- }
111
- });
1
+ import f from "./KunDialog.vue2.js";
112
2
  export {
113
- T as default
3
+ f as default
114
4
  };
@@ -1,4 +1,114 @@
1
- import f from "./KunDialog.vue.js";
1
+ import { defineComponent as x, watch as C, onMounted as f, onBeforeUnmount as S, onUnmounted as k, createBlock as m, openBlock as a, Teleport as P, createVNode as o, Transition as u, withCtx as n, createElementBlock as B, createCommentVNode as h, mergeProps as V, renderSlot as E } from "vue";
2
+ import H from "./KunDialogOverlay.vue2.js";
3
+ import W from "./KunDialogContent.vue.js";
4
+ const $ = "fixed inset-0 z-250 flex", T = /* @__PURE__ */ x({
5
+ __name: "KunDialog",
6
+ props: {
7
+ modelValue: Boolean,
8
+ overlay: { type: Boolean, default: !0 },
9
+ fullscreen: { type: Boolean, default: !1 },
10
+ scrollable: { type: Boolean, default: !1 },
11
+ persistent: { type: Boolean, default: !1 },
12
+ dialogClass: { type: String, default: "" },
13
+ xPosition: {
14
+ type: String,
15
+ default: "center",
16
+ // 'start' | 'center' | 'end'
17
+ validator: (e) => ["start", "center", "end"].includes(e)
18
+ },
19
+ yPosition: {
20
+ type: String,
21
+ default: "center",
22
+ // 'start' | 'center' | 'end'
23
+ validator: (e) => ["top", "center", "bottom"].includes(e)
24
+ },
25
+ contentClass: { type: String, default: "" },
26
+ bgColor: { type: String, default: "bg-slate-100 dark:bg-slate-900" },
27
+ minHeight: { type: String, default: "h-fit" },
28
+ height: { type: String, default: "h-fit" },
29
+ maxHeight: { type: String, default: "max-h-[100vh]" },
30
+ minWidth: { type: String, default: "min-w-1/3" },
31
+ width: { type: String, default: "w-full" },
32
+ maxWidth: { type: String, default: "max-w-full" }
33
+ },
34
+ emits: ["update:modelValue"],
35
+ setup(e, { emit: y }) {
36
+ const t = e, i = y, g = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", b = [$, t.dialogClass, g, p, w], s = () => {
37
+ t.persistent || i("update:modelValue", !1);
38
+ }, v = () => {
39
+ s();
40
+ }, r = () => {
41
+ document.body.style.overflow = "hidden";
42
+ }, d = () => {
43
+ document.body.style.overflow = "";
44
+ };
45
+ C(() => t.modelValue, (l) => {
46
+ l && !t.fullscreen ? r() : d();
47
+ }), f(() => {
48
+ t.modelValue && !t.fullscreen && r();
49
+ }), S(() => {
50
+ d();
51
+ });
52
+ function c(l) {
53
+ l.stopPropagation(), l.key === "Escape" && (t.persistent || i("update:modelValue", !1));
54
+ }
55
+ return f(() => {
56
+ window.addEventListener("keydown", c);
57
+ }), k(() => {
58
+ window.removeEventListener("keydown", c);
59
+ }), (l, D) => (a(), m(P, { to: "body" }, [
60
+ o(u, {
61
+ name: "fade",
62
+ appear: ""
63
+ }, {
64
+ default: n(() => [
65
+ e.modelValue ? (a(), B("div", V({
66
+ key: 0,
67
+ class: b
68
+ }, l.$attrs), [
69
+ e.overlay ? (a(), m(H, {
70
+ key: 0,
71
+ persistent: e.persistent,
72
+ onClick: v
73
+ }, null, 8, ["persistent"])) : h("", !0),
74
+ o(u, {
75
+ name: "scale",
76
+ "enter-active-class": "transition transform ease-out duration-300",
77
+ "enter-from-class": "opacity-0 scale-95",
78
+ "enter-to-class": "opacity-100 scale-100",
79
+ "leave-active-class": "transition transform ease-in duration-200",
80
+ "leave-from-class": "opacity-100 scale-100",
81
+ "leave-to-class": "opacity-0 scale-95"
82
+ }, {
83
+ default: n(() => [
84
+ o(W, {
85
+ fullscreen: e.fullscreen,
86
+ scrollable: e.scrollable,
87
+ "min-width": e.minWidth,
88
+ width: e.width,
89
+ "max-width": e.maxWidth,
90
+ "min-height": e.minHeight,
91
+ height: e.height,
92
+ "max-height": e.maxHeight,
93
+ "bg-color": e.bgColor,
94
+ "content-class": e.contentClass,
95
+ onClose: s
96
+ }, {
97
+ default: n(() => [
98
+ E(l.$slots, "default")
99
+ ]),
100
+ _: 3
101
+ }, 8, ["fullscreen", "scrollable", "min-width", "width", "max-width", "min-height", "height", "max-height", "bg-color", "content-class"])
102
+ ]),
103
+ _: 3
104
+ })
105
+ ], 16)) : h("", !0)
106
+ ]),
107
+ _: 3
108
+ })
109
+ ]));
110
+ }
111
+ });
2
112
  export {
3
- f as default
113
+ T as default
4
114
  };
@@ -1,20 +1,4 @@
1
- import { defineComponent as c, createElementBlock as s, openBlock as r } from "vue";
2
- const m = /* @__PURE__ */ c({
3
- __name: "KunDialogOverlay",
4
- props: {
5
- persistent: Boolean
6
- },
7
- emits: ["click"],
8
- setup(e, { emit: t }) {
9
- const n = e, o = t, i = () => {
10
- n.persistent || o("click");
11
- };
12
- return (a, l) => (r(), s("div", {
13
- class: "fixed inset-0 bg-black/50 transition-opacity duration-300",
14
- onClick: i
15
- }));
16
- }
17
- });
1
+ import f from "./KunDialogOverlay.vue2.js";
18
2
  export {
19
- m as default
3
+ f as default
20
4
  };
@@ -1,4 +1,20 @@
1
- import f from "./KunDialogOverlay.vue.js";
1
+ import { defineComponent as c, createElementBlock as s, openBlock as r } from "vue";
2
+ const m = /* @__PURE__ */ c({
3
+ __name: "KunDialogOverlay",
4
+ props: {
5
+ persistent: Boolean
6
+ },
7
+ emits: ["click"],
8
+ setup(e, { emit: t }) {
9
+ const n = e, o = t, i = () => {
10
+ n.persistent || o("click");
11
+ };
12
+ return (a, l) => (r(), s("div", {
13
+ class: "fixed inset-0 bg-black/50 transition-opacity duration-300",
14
+ onClick: i
15
+ }));
16
+ }
17
+ });
2
18
  export {
3
- f as default
19
+ m as default
4
20
  };
@@ -0,0 +1,52 @@
1
+ import { ref as l, createElementBlock as m, openBlock as v, createElementVNode as r, createVNode as b, toDisplayString as n, withCtx as g, normalizeStyle as x, createTextVNode as f } from "vue";
2
+ import y from "../src/components/KunInfiniteScroll.vue.js";
3
+ const h = { class: "p-4 space-y-6" }, _ = { class: "flex items-center gap-4" }, I = {
4
+ __name: "Default",
5
+ setup(k) {
6
+ const u = l(""), o = l(!0), a = l(null), c = l([]), p = l(
7
+ Array.from({ length: 200 }, (s, e) => ({
8
+ id: e,
9
+ label: `Elemento ${e}`
10
+ }))
11
+ );
12
+ function d(s) {
13
+ a.value = s;
14
+ }
15
+ return (s, e) => (v(), m("div", h, [
16
+ r("div", _, [
17
+ r("button", {
18
+ class: "px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700",
19
+ onClick: e[0] || (e[0] = (t) => o.value = !o.value)
20
+ }, " Toggle Virtual Scroll (" + n(o.value ? "ON" : "OFF") + ") ", 1),
21
+ r("button", {
22
+ class: "px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",
23
+ onClick: e[1] || (e[1] = (t) => d(50))
24
+ }, " Scroll to Item #50 ")
25
+ ]),
26
+ b(y, {
27
+ items: p.value,
28
+ search: u.value,
29
+ "searchable-keys": ["label"],
30
+ "items-per-intersection": 20,
31
+ enabled: !0,
32
+ virtual: o.value,
33
+ "scroll-to-index": a.value,
34
+ "onUpdate:items": e[2] || (e[2] = (t) => c.value = t)
35
+ }, {
36
+ default: g(({ item: t, index: i }) => [
37
+ r("div", {
38
+ class: "border-b border-gray-200 py-2 px-4",
39
+ style: x({ height: i % 2 === 0 ? "40px" : "60px" })
40
+ }, [
41
+ r("strong", null, "#" + n(i), 1),
42
+ f(" — " + n(t.label), 1)
43
+ ], 4)
44
+ ]),
45
+ _: 1
46
+ }, 8, ["items", "search", "virtual", "scroll-to-index"])
47
+ ]));
48
+ }
49
+ };
50
+ export {
51
+ I as default
52
+ };
@@ -0,0 +1,46 @@
1
+ import { ref as n, createElementBlock as r, openBlock as u, createVNode as t, createElementVNode as _, withCtx as l, createTextVNode as s, toDisplayString as d } from "vue";
2
+ import f from "../src/components/KunList.vue.js";
3
+ import a from "../../KunListItem/src/components/KunListItem.vue.js";
4
+ const i = { class: "p-4 max-w-md" }, p = { class: "mt-4" }, N = {
5
+ __name: "Default",
6
+ setup(v) {
7
+ const o = n([]);
8
+ return (c, e) => (u(), r("div", i, [
9
+ t(f, {
10
+ "selected-values": o.value,
11
+ "onUpdate:selectedValues": e[0] || (e[0] = (m) => o.value = m),
12
+ selectable: "multiple",
13
+ nav: ""
14
+ }, {
15
+ default: l(() => [
16
+ t(a, { value: "1" }, {
17
+ default: l(() => e[1] || (e[1] = [
18
+ s("Elemento 1")
19
+ ])),
20
+ _: 1,
21
+ __: [1]
22
+ }),
23
+ t(a, { value: "2" }, {
24
+ default: l(() => e[2] || (e[2] = [
25
+ s("Elemento 2")
26
+ ])),
27
+ _: 1,
28
+ __: [2]
29
+ }),
30
+ t(a, { value: "3" }, {
31
+ default: l(() => e[3] || (e[3] = [
32
+ s("Elemento 3")
33
+ ])),
34
+ _: 1,
35
+ __: [3]
36
+ })
37
+ ]),
38
+ _: 1
39
+ }, 8, ["selected-values"]),
40
+ _("pre", p, d(o.value), 1)
41
+ ]));
42
+ }
43
+ };
44
+ export {
45
+ N as default
46
+ };
@@ -0,0 +1,72 @@
1
+ import { createBlock as a, openBlock as u, withCtx as e, createVNode as l, createTextVNode as r, createElementVNode as s } from "vue";
2
+ import n from "../src/components/KunList.vue.js";
3
+ import i from "../../KunListGroup/src/components/KunListGroup.vue.js";
4
+ import o from "../../KunListItem/src/components/KunListItem.vue.js";
5
+ const c = {
6
+ __name: "WhiteGroups",
7
+ setup(f) {
8
+ return (m, t) => (u(), a(n, { selectable: "multiple" }, {
9
+ default: e(() => [
10
+ l(i, { title: "Usuarios" }, {
11
+ activator: e(() => t[0] || (t[0] = [
12
+ s("span", { class: "flex items-center gap-2" }, [
13
+ s("svg", null, "👥"),
14
+ r(" Usuarios del sistema ")
15
+ ], -1)
16
+ ])),
17
+ default: e(() => [
18
+ l(o, { value: "admin" }, {
19
+ default: e(() => t[1] || (t[1] = [
20
+ r("Administrador")
21
+ ])),
22
+ _: 1,
23
+ __: [1]
24
+ }),
25
+ l(o, { value: "editor" }, {
26
+ default: e(() => t[2] || (t[2] = [
27
+ r("Editor")
28
+ ])),
29
+ _: 1,
30
+ __: [2]
31
+ })
32
+ ]),
33
+ _: 1
34
+ }),
35
+ l(i, {
36
+ title: "Preferencias",
37
+ open: ""
38
+ }, {
39
+ default: e(() => [
40
+ l(o, null, {
41
+ default: e(() => [
42
+ l(o, null, {
43
+ default: e(() => t[3] || (t[3] = [
44
+ r("Modo oscuro")
45
+ ])),
46
+ _: 1,
47
+ __: [3]
48
+ }),
49
+ l(o, null, {
50
+ default: e(() => t[4] || (t[4] = [
51
+ s("input", {
52
+ type: "checkbox",
53
+ class: "form-switch"
54
+ }, null, -1)
55
+ ])),
56
+ _: 1,
57
+ __: [4]
58
+ })
59
+ ]),
60
+ _: 1
61
+ })
62
+ ]),
63
+ _: 1
64
+ })
65
+ ]),
66
+ _: 1
67
+ }));
68
+ }
69
+ };
70
+ export {
71
+ c as default
72
+ };
@@ -0,0 +1,67 @@
1
+ import { createElementBlock as r, openBlock as u, createElementVNode as i, createVNode as e, withCtx as l, createTextVNode as o } from "vue";
2
+ import n from "../src/components/KunListGroup.vue.js";
3
+ import s from "../../KunListItem/src/components/KunListItem.vue.js";
4
+ const d = { class: "p-4 max-w-md" }, a = { class: "space-y-2" }, N = {
5
+ __name: "Default",
6
+ setup(f) {
7
+ return (_, t) => (u(), r("div", d, [
8
+ t[6] || (t[6] = i("h2", { class: "text-lg font-semibold mb-2" }, "Grupos de Lista:", -1)),
9
+ i("ul", a, [
10
+ e(n, { title: "Usuarios" }, {
11
+ activator: l(() => t[0] || (t[0] = [
12
+ i("span", null, "Usuarios del sistema", -1)
13
+ ])),
14
+ default: l(() => [
15
+ e(s, null, {
16
+ default: l(() => t[1] || (t[1] = [
17
+ o("Admin")
18
+ ])),
19
+ _: 1,
20
+ __: [1]
21
+ }),
22
+ e(s, null, {
23
+ default: l(() => t[2] || (t[2] = [
24
+ o("Editor")
25
+ ])),
26
+ _: 1,
27
+ __: [2]
28
+ }),
29
+ e(s, null, {
30
+ default: l(() => t[3] || (t[3] = [
31
+ o("Lector")
32
+ ])),
33
+ _: 1,
34
+ __: [3]
35
+ })
36
+ ]),
37
+ _: 1
38
+ }),
39
+ e(n, {
40
+ title: "Configuración",
41
+ open: ""
42
+ }, {
43
+ default: l(() => [
44
+ e(s, null, {
45
+ default: l(() => t[4] || (t[4] = [
46
+ o("Perfil")
47
+ ])),
48
+ _: 1,
49
+ __: [4]
50
+ }),
51
+ e(s, null, {
52
+ default: l(() => t[5] || (t[5] = [
53
+ o("Notificaciones")
54
+ ])),
55
+ _: 1,
56
+ __: [5]
57
+ })
58
+ ]),
59
+ _: 1
60
+ })
61
+ ])
62
+ ]));
63
+ }
64
+ };
65
+ export {
66
+ N as default
67
+ };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock as o, openBlock as n, createElementVNode as t, createVNode as e } from "vue";
2
+ import l from "../src/components/KunListImg.vue.js";
3
+ const a = { class: "p-4 max-w-md" }, i = { class: "space-y-2" }, r = { class: "flex items-center gap-3" }, m = { class: "flex items-center gap-3" }, _ = {
4
+ __name: "Default",
5
+ setup(p) {
6
+ return (c, s) => (n(), o("div", a, [
7
+ s[2] || (s[2] = t("h2", { class: "text-lg font-semibold mb-2" }, "Imágenes en lista:", -1)),
8
+ t("ul", i, [
9
+ t("li", r, [
10
+ e(l, {
11
+ src: "https://picsum.photos/id/1025/200/200 ",
12
+ alt: "Usuario 1",
13
+ class: "w-8 h-8 rounded-full"
14
+ }),
15
+ s[0] || (s[0] = t("span", null, "Juan Pérez", -1))
16
+ ]),
17
+ t("li", m, [
18
+ e(l, {
19
+ src: "https://picsum.photos/id/1062/200/200 ",
20
+ alt: "Usuario 2",
21
+ class: "w-8 h-8"
22
+ }),
23
+ s[1] || (s[1] = t("span", null, "Ana Gómez", -1))
24
+ ])
25
+ ])
26
+ ]));
27
+ }
28
+ };
29
+ export {
30
+ _ as default
31
+ };
@@ -0,0 +1,39 @@
1
+ import { createElementBlock as n, openBlock as i, createElementVNode as a, createVNode as t, withCtx as o, createTextVNode as s } from "vue";
2
+ import l from "../src/components/KunListItem.vue.js";
3
+ const d = { class: "p-4 max-w-md" }, m = { class: "space-y-1" }, p = {
4
+ __name: "Default",
5
+ setup(r) {
6
+ return (_, e) => (i(), n("div", d, [
7
+ e[3] || (e[3] = a("h2", { class: "text-lg font-semibold mb-2" }, "Lista básica:", -1)),
8
+ a("ul", m, [
9
+ t(l, null, {
10
+ default: o(() => e[0] || (e[0] = [
11
+ s("Elemento 1")
12
+ ])),
13
+ _: 1,
14
+ __: [0]
15
+ }),
16
+ t(l, {
17
+ active: "",
18
+ "active-class": "bg-green-100 text-green-600"
19
+ }, {
20
+ default: o(() => e[1] || (e[1] = [
21
+ s("Elemento activo")
22
+ ])),
23
+ _: 1,
24
+ __: [1]
25
+ }),
26
+ t(l, { disabled: "" }, {
27
+ default: o(() => e[2] || (e[2] = [
28
+ s("Elemento deshabilitado")
29
+ ])),
30
+ _: 1,
31
+ __: [2]
32
+ })
33
+ ])
34
+ ]));
35
+ }
36
+ };
37
+ export {
38
+ p as default
39
+ };