@dronico/droni-kit 1.10.0 → 1.11.0

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,5 +1,5 @@
1
- import { defineComponent as q, getCurrentInstance as R, computed as i, createBlock as j, openBlock as r, resolveDynamicComponent as L, mergeProps as B, withCtx as D, renderSlot as P, createElementBlock as a, createCommentVNode as v, createElementVNode as s, normalizeClass as y, createTextVNode as S, toDisplayString as w, Fragment as C, renderList as V, ref as E, reactive as F, withDirectives as A, vShow as I } from "vue";
2
- const H = { key: 1 }, G = `
1
+ import { defineComponent as R, getCurrentInstance as M, computed as n, createBlock as L, openBlock as t, resolveDynamicComponent as V, mergeProps as j, withCtx as B, renderSlot as q, createElementBlock as a, createCommentVNode as x, createElementVNode as u, normalizeClass as g, createTextVNode as C, toDisplayString as w, Fragment as $, renderList as D, ref as E, reactive as F, withDirectives as I, vShow as O } from "vue";
2
+ const H = { key: 1 }, W = `
3
3
  dk:transition
4
4
  dk:text-center
5
5
  dk:disabled:opacity-50
@@ -10,7 +10,7 @@ const H = { key: 1 }, G = `
10
10
  dk:text-ellipsis
11
11
  dk:whitespace-nowrap
12
12
  dk:active:scale-95
13
- dk:max-w-full`, Se = /* @__PURE__ */ q({
13
+ dk:max-w-full`, $e = /* @__PURE__ */ R({
14
14
  __name: "DuiButton",
15
15
  props: {
16
16
  variant: { default: "solid" },
@@ -24,36 +24,36 @@ const H = { key: 1 }, G = `
24
24
  rounded: { default: "all" },
25
25
  to: { default: void 0 }
26
26
  },
27
- setup(h) {
28
- const t = h, e = R(), d = e == null ? void 0 : e.appContext.app, u = i(() => {
27
+ setup(f) {
28
+ const r = f, e = M(), d = e == null ? void 0 : e.appContext.app, l = n(() => {
29
29
  try {
30
30
  return !!(d != null && d.config.globalProperties.$router || d != null && d.config.globalProperties.$route || globalThis.VueRouter || // Check if RouterLink component is globally registered
31
31
  d != null && d.component("RouterLink"));
32
32
  } catch {
33
33
  return !1;
34
34
  }
35
- }), b = i(() => {
35
+ }), c = n(() => {
36
36
  try {
37
37
  return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || // Check if NuxtLink component is globally available
38
38
  d != null && d.component("NuxtLink"));
39
39
  } catch {
40
40
  return !1;
41
41
  }
42
- }), c = i(() => t.to ? b.value ? "NuxtLink" : u.value ? "RouterLink" : "a" : "button"), z = i(() => {
43
- const o = {};
44
- return c.value === "button" ? o.type = t.type : c.value === "a" ? (o.href = typeof t.to == "string" ? t.to : "#", o.role = "button") : o.to = t.to, o;
45
- }), x = {
42
+ }), b = n(() => r.to ? c.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "button"), z = n(() => {
43
+ const k = {};
44
+ return b.value === "button" ? k.type = r.type : b.value === "a" ? (k.href = typeof r.to == "string" ? r.to : "#", k.role = "button") : k.to = r.to, k;
45
+ }), v = {
46
46
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
47
47
  md: "dk:text-base dk:px-4 dk:py-2",
48
48
  lg: "dk:text-lg dk:px-5 dk:py-3"
49
- }, m = {
49
+ }, y = {
50
50
  all: "dk:rounded",
51
51
  top: "dk:rounded-t",
52
52
  bottom: "dk:rounded-b",
53
53
  left: "dk:rounded-l",
54
54
  right: "dk:rounded-r",
55
55
  none: "dk:rounded-none"
56
- }, l = {
56
+ }, i = {
57
57
  solid: {
58
58
  base: "dk:border-b",
59
59
  neutral: `
@@ -225,26 +225,26 @@ const H = { key: 1 }, G = `
225
225
  dk:dark:text-amber-100
226
226
  dk:dark:hover:bg-amber-800`
227
227
  }
228
- }, g = i(() => {
229
- var T;
230
- const o = (((T = l[t.variant]) == null ? void 0 : T[t.color]) || "") + " " + l[t.variant].base, p = x[t.size] || "", N = t.block ? "dk:w-full" : "", $ = m[t.rounded] || "";
231
- return [G, o, p, N, $].join(" ");
228
+ }, p = n(() => {
229
+ var N;
230
+ const k = (((N = i[r.variant]) == null ? void 0 : N[r.color]) || "") + " " + i[r.variant].base, h = v[r.size] || "", T = r.block ? "dk:w-full" : "", S = y[r.rounded] || "";
231
+ return [W, k, h, T, S].join(" ");
232
232
  });
233
- return (o, p) => (r(), j(L(c.value), B(z.value, {
234
- class: g.value,
235
- title: t.title,
236
- disabled: t.disabled || t.loading
233
+ return (k, h) => (t(), L(V(b.value), j(z.value, {
234
+ class: p.value,
235
+ title: r.title,
236
+ disabled: r.disabled || r.loading
237
237
  }), {
238
- default: D(() => [
239
- t.loading ? (r(), a("span", H, "Cargando...")) : P(o.$slots, "default", { key: 0 })
238
+ default: B(() => [
239
+ r.loading ? (t(), a("span", H, "Cargando...")) : q(k.$slots, "default", { key: 0 })
240
240
  ]),
241
241
  _: 3
242
242
  }, 16, ["class", "title", "disabled"]));
243
243
  }
244
- }), J = ["for"], K = {
244
+ }), G = ["for"], J = {
245
245
  key: 0,
246
246
  class: "dk:text-rose-500"
247
- }, Q = ["type", "value", "disabled", "placeholder", "required", "name", "id", "pattern", "readonly", "min", "max", "step", "aria-label", "aria-disabled", "aria-required"], U = `
247
+ }, K = ["type", "value", "disabled", "placeholder", "required", "name", "id", "pattern", "readonly", "min", "max", "step", "aria-label", "aria-disabled", "aria-required"], Q = `
248
248
  dk:border-b
249
249
  dk:border-zinc-300
250
250
  dk:bg-zinc-50
@@ -256,7 +256,7 @@ const H = { key: 1 }, G = `
256
256
  dk:dark:bg-zinc-800
257
257
  dk:dark:text-zinc-100
258
258
  dk:dark:focus:bg-zinc-700
259
- dk:dark:[color-scheme:dark]`, Ce = /* @__PURE__ */ q({
259
+ dk:dark:[color-scheme:dark]`, je = /* @__PURE__ */ R({
260
260
  __name: "DuiInput",
261
261
  props: {
262
262
  modelValue: {
@@ -329,17 +329,17 @@ const H = { key: 1 }, G = `
329
329
  }
330
330
  },
331
331
  emits: ["update:modelValue"],
332
- setup(h, { emit: t }) {
333
- const e = h, d = t;
334
- function u(l) {
335
- const g = l.target;
336
- d("update:modelValue", g.value);
332
+ setup(f, { emit: r }) {
333
+ const e = f, d = r;
334
+ function l(i) {
335
+ const p = i.target;
336
+ d("update:modelValue", p.value);
337
337
  }
338
- const b = {
338
+ const c = {
339
339
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
340
340
  md: "dk:text-base dk:px-4 dk:py-2",
341
341
  lg: "dk:text-lg dk:px-5 dk:py-3"
342
- }, c = {
342
+ }, b = {
343
343
  all: "dk:rounded",
344
344
  top: "dk:rounded-t",
345
345
  bottom: "dk:rounded-b",
@@ -350,26 +350,26 @@ const H = { key: 1 }, G = `
350
350
  sm: "dk:text-sm dk:pb-0.5",
351
351
  md: "dk:text-base dk:pb-1",
352
352
  lg: "dk:text-lg dk:pb-2"
353
- }, x = i(() => {
354
- const l = b[e.size] || "", g = e.block ? "dk:w-full" : "", o = c[e.rounded] || "";
355
- return [U, l, g, o].join(" ");
356
- }), m = i(() => {
357
- const l = z[e.size] || "", g = e.block ? "dk:w-full" : "";
358
- return [l, g].join(" ");
353
+ }, v = n(() => {
354
+ const i = c[e.size] || "", p = e.block ? "dk:w-full" : "", k = b[e.rounded] || "";
355
+ return [Q, i, p, k].join(" ");
356
+ }), y = n(() => {
357
+ const i = z[e.size] || "", p = e.block ? "dk:w-full" : "";
358
+ return [i, p].join(" ");
359
359
  });
360
- return (l, g) => (r(), a("div", null, [
361
- e.label ? (r(), a("label", {
360
+ return (i, p) => (t(), a("div", null, [
361
+ e.label ? (t(), a("label", {
362
362
  key: 0,
363
363
  for: e.id,
364
- class: y([m.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
364
+ class: g([y.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
365
365
  }, [
366
- S(w(e.label) + " ", 1),
367
- e.required ? (r(), a("span", K, "*")) : v("", !0)
368
- ], 10, J)) : v("", !0),
369
- s("input", {
366
+ C(w(e.label) + " ", 1),
367
+ e.required ? (t(), a("span", J, "*")) : x("", !0)
368
+ ], 10, G)) : x("", !0),
369
+ u("input", {
370
370
  type: e.type,
371
- class: y(x.value),
372
- value: h.modelValue,
371
+ class: g(v.value),
372
+ value: f.modelValue,
373
373
  disabled: e.disabled,
374
374
  placeholder: e.placeholder,
375
375
  required: e.required,
@@ -383,11 +383,11 @@ const H = { key: 1 }, G = `
383
383
  "aria-label": e.placeholder,
384
384
  "aria-disabled": e.disabled,
385
385
  "aria-required": e.required,
386
- onInput: u
387
- }, null, 42, Q)
386
+ onInput: l
387
+ }, null, 42, K)
388
388
  ]));
389
389
  }
390
- }), W = ["for"], X = {
390
+ }), U = ["for"], X = {
391
391
  key: 0,
392
392
  class: "dk:text-rose-500"
393
393
  }, Y = ["value", "disabled", "placeholder", "required", "name", "id", "readonly", "aria-label", "aria-disabled", "aria-required"], Z = `
@@ -402,7 +402,7 @@ const H = { key: 1 }, G = `
402
402
  dk:dark:bg-zinc-800
403
403
  dk:dark:text-zinc-100
404
404
  dk:dark:focus:bg-zinc-700
405
- dk:dark:[color-scheme:dark]`, $e = /* @__PURE__ */ q({
405
+ dk:dark:[color-scheme:dark]`, Te = /* @__PURE__ */ R({
406
406
  __name: "DuiTextarea",
407
407
  props: {
408
408
  modelValue: {
@@ -459,17 +459,17 @@ const H = { key: 1 }, G = `
459
459
  }
460
460
  },
461
461
  emits: ["update:modelValue"],
462
- setup(h, { emit: t }) {
463
- const e = h, d = t;
464
- function u(o) {
465
- const p = o.target;
466
- e.autoheight && g(p), d("update:modelValue", p.value);
462
+ setup(f, { emit: r }) {
463
+ const e = f, d = r;
464
+ function l(k) {
465
+ const h = k.target;
466
+ e.autoheight && p(h), d("update:modelValue", h.value);
467
467
  }
468
- const b = {
468
+ const c = {
469
469
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
470
470
  md: "dk:text-base dk:px-3 dk:py-2",
471
471
  lg: "dk:text-lg dk:px-5 dk:py-3"
472
- }, c = {
472
+ }, b = {
473
473
  all: "dk:rounded",
474
474
  top: "dk:rounded-t",
475
475
  bottom: "dk:rounded-b",
@@ -480,32 +480,32 @@ const H = { key: 1 }, G = `
480
480
  sm: "dk:text-sm dk:pb-0.5",
481
481
  md: "dk:text-base dk:pb-1",
482
482
  lg: "dk:text-lg dk:pb-2"
483
- }, x = {
483
+ }, v = {
484
484
  none: "dk:resize-none",
485
485
  both: "dk:resize",
486
486
  horizontal: "dk:resize-x",
487
487
  vertical: "dk:resize-y"
488
- }, m = i(() => {
489
- const o = b[e.size] || "", p = e.block ? "dk:w-full" : "", N = c[e.rounded] || "", $ = x[e.resize] || "";
490
- return [Z, o, p, N, $].join(" ");
491
- }), l = i(() => {
492
- const o = z[e.size] || "", p = e.block ? "dk:w-full" : "";
493
- return [o, p].join(" ");
494
- }), g = (o) => {
495
- o.style.height = "auto", o.style.height = `${o.scrollHeight + 5}px`;
488
+ }, y = n(() => {
489
+ const k = c[e.size] || "", h = e.block ? "dk:w-full" : "", T = b[e.rounded] || "", S = v[e.resize] || "";
490
+ return [Z, k, h, T, S].join(" ");
491
+ }), i = n(() => {
492
+ const k = z[e.size] || "", h = e.block ? "dk:w-full" : "";
493
+ return [k, h].join(" ");
494
+ }), p = (k) => {
495
+ k.style.height = "auto", k.style.height = `${k.scrollHeight + 5}px`;
496
496
  };
497
- return (o, p) => (r(), a("div", null, [
498
- e.label ? (r(), a("label", {
497
+ return (k, h) => (t(), a("div", null, [
498
+ e.label ? (t(), a("label", {
499
499
  key: 0,
500
500
  for: e.id,
501
- class: y([l.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
501
+ class: g([i.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
502
502
  }, [
503
- S(w(e.label) + " ", 1),
504
- e.required ? (r(), a("span", X, "*")) : v("", !0)
505
- ], 10, W)) : v("", !0),
506
- s("textarea", {
507
- class: y(m.value),
508
- value: h.modelValue,
503
+ C(w(e.label) + " ", 1),
504
+ e.required ? (t(), a("span", X, "*")) : x("", !0)
505
+ ], 10, U)) : x("", !0),
506
+ u("textarea", {
507
+ class: g(y.value),
508
+ value: f.modelValue,
509
509
  disabled: e.disabled,
510
510
  placeholder: e.placeholder,
511
511
  required: e.required,
@@ -515,7 +515,7 @@ const H = { key: 1 }, G = `
515
515
  "aria-label": e.placeholder,
516
516
  "aria-disabled": e.disabled,
517
517
  "aria-required": e.required,
518
- onInput: u
518
+ onInput: l
519
519
  }, null, 42, Y)
520
520
  ]));
521
521
  }
@@ -540,7 +540,7 @@ const H = { key: 1 }, G = `
540
540
  dk:dark:text-zinc-100
541
541
  dk:dark:focus:bg-zinc-700
542
542
  dk:dark:[color-scheme:dark]
543
- `, Be = /* @__PURE__ */ q({
543
+ `, Ne = /* @__PURE__ */ R({
544
544
  __name: "DuiSelect",
545
545
  props: {
546
546
  modelValue: {
@@ -601,17 +601,17 @@ const H = { key: 1 }, G = `
601
601
  }
602
602
  },
603
603
  emits: ["update:modelValue"],
604
- setup(h, { emit: t }) {
605
- const e = h, d = t;
606
- function u(l) {
607
- const o = l.target.value, p = Number(o);
608
- !isNaN(p) && o !== "" ? d("update:modelValue", p) : d("update:modelValue", o);
604
+ setup(f, { emit: r }) {
605
+ const e = f, d = r;
606
+ function l(i) {
607
+ const k = i.target.value, h = Number(k);
608
+ !isNaN(h) && k !== "" ? d("update:modelValue", h) : d("update:modelValue", k);
609
609
  }
610
- const b = {
610
+ const c = {
611
611
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
612
612
  md: "dk:text-base dk:px-4 dk:py-2",
613
613
  lg: "dk:text-lg dk:px-5 dk:py-3"
614
- }, c = {
614
+ }, b = {
615
615
  all: "dk:rounded",
616
616
  top: "dk:rounded-t",
617
617
  bottom: "dk:rounded-b",
@@ -622,40 +622,40 @@ const H = { key: 1 }, G = `
622
622
  sm: "dk:text-sm dk:pb-0.5",
623
623
  md: "dk:text-base dk:pb-1",
624
624
  lg: "dk:text-lg dk:pb-2"
625
- }, x = i(() => {
626
- const l = b[e.size] || "", g = e.block ? "dk:w-full" : "", o = c[e.rounded] || "";
627
- return [ae, l, g, o].join(" ");
628
- }), m = i(() => {
629
- const l = z[e.size] || "", g = e.block ? "dk:w-full" : "";
630
- return [l, g].join(" ");
625
+ }, v = n(() => {
626
+ const i = c[e.size] || "", p = e.block ? "dk:w-full" : "", k = b[e.rounded] || "";
627
+ return [ae, i, p, k].join(" ");
628
+ }), y = n(() => {
629
+ const i = z[e.size] || "", p = e.block ? "dk:w-full" : "";
630
+ return [i, p].join(" ");
631
631
  });
632
- return (l, g) => (r(), a("div", null, [
633
- e.label ? (r(), a("label", {
632
+ return (i, p) => (t(), a("div", null, [
633
+ e.label ? (t(), a("label", {
634
634
  key: 0,
635
635
  for: e.id,
636
- class: y([m.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
636
+ class: g([y.value, "dk:text-start dk:block dk:text-zinc-700 dk:dark:text-zinc-200 dk:px-0"])
637
637
  }, [
638
- S(w(e.label) + " ", 1),
639
- e.required ? (r(), a("span", de, "*")) : v("", !0)
640
- ], 10, ee)) : v("", !0),
641
- s("select", {
638
+ C(w(e.label) + " ", 1),
639
+ e.required ? (t(), a("span", de, "*")) : x("", !0)
640
+ ], 10, ee)) : x("", !0),
641
+ u("select", {
642
642
  id: e.id,
643
643
  name: e.name,
644
644
  disabled: e.disabled,
645
645
  required: e.required,
646
- class: y(x.value),
646
+ class: g(v.value),
647
647
  readonly: e.readonly,
648
648
  "aria-label": e.label || "select input",
649
649
  "aria-disabled": e.disabled,
650
650
  "aria-required": e.required,
651
- onChange: u
651
+ onChange: l
652
652
  }, [
653
- e.placeholder ? (r(), a("option", te, w(e.placeholder), 1)) : v("", !0),
654
- (r(!0), a(C, null, V(e.options, (o, p) => (r(), a("option", {
655
- key: p,
656
- value: o[e.itemValue] ?? "",
657
- selected: o[e.itemValue] == e.modelValue
658
- }, w(o[e.itemLabel] ?? ""), 9, oe))), 128))
653
+ e.placeholder ? (t(), a("option", te, w(e.placeholder), 1)) : x("", !0),
654
+ (t(!0), a($, null, D(e.options, (k, h) => (t(), a("option", {
655
+ key: h,
656
+ value: k[e.itemValue] ?? "",
657
+ selected: k[e.itemValue] == e.modelValue
658
+ }, w(k[e.itemLabel] ?? ""), 9, oe))), 128))
659
659
  ], 42, re)
660
660
  ]));
661
661
  }
@@ -665,7 +665,7 @@ const H = { key: 1 }, G = `
665
665
  dk:text-sm
666
666
  dk:leading-relaxed
667
667
  dk:max-w-full
668
- `, Ve = /* @__PURE__ */ q({
668
+ `, Le = /* @__PURE__ */ R({
669
669
  __name: "DuiAlert",
670
670
  props: {
671
671
  variant: {
@@ -681,8 +681,8 @@ const H = { key: 1 }, G = `
681
681
  default: "all"
682
682
  }
683
683
  },
684
- setup(h) {
685
- const t = h, e = {
684
+ setup(f) {
685
+ const r = f, e = {
686
686
  all: "dk:rounded",
687
687
  top: "dk:rounded-t",
688
688
  bottom: "dk:rounded-b",
@@ -717,19 +717,19 @@ const H = { key: 1 }, G = `
717
717
  warning: "dk:text-amber-700 dk:dark:text-amber-200 dk:bg-amber-50 dk:dark:bg-amber-800",
718
718
  danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
719
719
  }
720
- }, u = i(() => {
721
- var x;
722
- const b = ((x = d[t.variant]) == null ? void 0 : x[t.color]) || "", c = d[t.variant].base || "", z = e[t.rounded] || "";
723
- return [ke, c, b, z].join(" ");
720
+ }, l = n(() => {
721
+ var v;
722
+ const c = ((v = d[r.variant]) == null ? void 0 : v[r.color]) || "", b = d[r.variant].base || "", z = e[r.rounded] || "";
723
+ return [ke, b, c, z].join(" ");
724
724
  });
725
- return (b, c) => (r(), a("div", {
726
- class: y(u.value),
725
+ return (c, b) => (t(), a("div", {
726
+ class: g(l.value),
727
727
  role: "alert"
728
728
  }, [
729
- P(b.$slots, "default")
729
+ q(c.$slots, "default")
730
730
  ], 2));
731
731
  }
732
- }), ne = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, le = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, se = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, qe = /* @__PURE__ */ q({
732
+ }), ne = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, se = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, le = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, Ve = /* @__PURE__ */ R({
733
733
  __name: "DuiTable",
734
734
  props: {
735
735
  columns: {
@@ -741,29 +741,29 @@ const H = { key: 1 }, G = `
741
741
  required: !0
742
742
  }
743
743
  },
744
- setup(h) {
745
- const t = h;
746
- return (e, d) => (r(), a("div", ne, [
747
- s("table", le, [
748
- s("thead", se, [
749
- s("tr", null, [
750
- (r(!0), a(C, null, V(t.columns, (u) => (r(), a("th", {
751
- key: u.name,
752
- class: y(["dk:px-6 dk:py-3", u.classes])
753
- }, w(u.label), 3))), 128))
744
+ setup(f) {
745
+ const r = f;
746
+ return (e, d) => (t(), a("div", ne, [
747
+ u("table", se, [
748
+ u("thead", le, [
749
+ u("tr", null, [
750
+ (t(!0), a($, null, D(r.columns, (l) => (t(), a("th", {
751
+ key: l.name,
752
+ class: g(["dk:px-6 dk:py-3", l.classes])
753
+ }, w(l.label), 3))), 128))
754
754
  ])
755
755
  ]),
756
- s("tbody", null, [
757
- (r(!0), a(C, null, V(t.rows, (u, b) => (r(), a("tr", {
758
- key: b,
756
+ u("tbody", null, [
757
+ (t(!0), a($, null, D(r.rows, (l, c) => (t(), a("tr", {
758
+ key: c,
759
759
  class: "dk:bg-white dk:border-b dk:border-gray-200 dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:hover:bg-gray-50 dk:dark:hover:bg-gray-600 dk:transition-colors"
760
760
  }, [
761
- (r(!0), a(C, null, V(t.columns, (c) => (r(), a("td", {
762
- key: c.name,
761
+ (t(!0), a($, null, D(r.columns, (b) => (t(), a("td", {
762
+ key: b.name,
763
763
  class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
764
764
  }, [
765
- P(e.$slots, c.name, B({ ref_for: !0 }, u), () => [
766
- S(w(u[c.name]), 1)
765
+ q(e.$slots, b.name, j({ ref_for: !0 }, l), () => [
766
+ C(w(l[b.name]), 1)
767
767
  ])
768
768
  ]))), 128))
769
769
  ]))), 128))
@@ -782,7 +782,7 @@ const H = { key: 1 }, G = `
782
782
  dk:text-ellipsis
783
783
  dk:whitespace-nowrap
784
784
  dk:active:scale-95
785
- dk:max-w-full`, Ne = /* @__PURE__ */ q({
785
+ dk:max-w-full`, Be = /* @__PURE__ */ R({
786
786
  __name: "DuiAction",
787
787
  props: {
788
788
  variant: { default: "solid" },
@@ -794,34 +794,34 @@ const H = { key: 1 }, G = `
794
794
  rounded: { default: "all" },
795
795
  to: { default: void 0 }
796
796
  },
797
- setup(h) {
798
- const t = h, e = R(), d = e == null ? void 0 : e.appContext.app, u = i(() => {
797
+ setup(f) {
798
+ const r = f, e = M(), d = e == null ? void 0 : e.appContext.app, l = n(() => {
799
799
  try {
800
800
  return !!(d != null && d.config.globalProperties.$router || d != null && d.config.globalProperties.$route || globalThis.VueRouter || d != null && d.component("RouterLink"));
801
801
  } catch {
802
802
  return !1;
803
803
  }
804
- }), b = i(() => {
804
+ }), c = n(() => {
805
805
  try {
806
806
  return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || d != null && d.component("NuxtLink"));
807
807
  } catch {
808
808
  return !1;
809
809
  }
810
- }), c = i(() => t.to ? b.value ? "NuxtLink" : u.value ? "RouterLink" : "a" : "span"), z = i(() => {
811
- const o = {};
812
- return c.value === "a" ? (o.href = typeof t.to == "string" ? t.to : "#", o.role = "button") : c.value !== "span" && (o.to = t.to), o;
813
- }), x = {
810
+ }), b = n(() => r.to ? c.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "span"), z = n(() => {
811
+ const k = {};
812
+ return b.value === "a" ? (k.href = typeof r.to == "string" ? r.to : "#", k.role = "button") : b.value !== "span" && (k.to = r.to), k;
813
+ }), v = {
814
814
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
815
815
  md: "dk:text-base dk:px-4 dk:py-2",
816
816
  lg: "dk:text-lg dk:px-5 dk:py-3"
817
- }, m = {
817
+ }, y = {
818
818
  all: "dk:rounded",
819
819
  top: "dk:rounded-t",
820
820
  bottom: "dk:rounded-b",
821
821
  left: "dk:rounded-l",
822
822
  right: "dk:rounded-r",
823
823
  none: "dk:rounded-none"
824
- }, l = {
824
+ }, i = {
825
825
  solid: {
826
826
  base: "dk:border-b",
827
827
  neutral: `
@@ -993,64 +993,206 @@ const H = { key: 1 }, G = `
993
993
  dk:dark:text-amber-100
994
994
  dk:dark:hover:bg-amber-800`
995
995
  }
996
- }, g = i(() => {
997
- var T;
998
- const o = (((T = l[t.variant]) == null ? void 0 : T[t.color]) || "") + " " + l[t.variant].base, p = x[t.size] || "", N = t.block ? "dk:block" : "dk:inline-block", $ = m[t.rounded] || "";
999
- return [ue, o, p, N, $].join(" ");
996
+ }, p = n(() => {
997
+ var N;
998
+ const k = (((N = i[r.variant]) == null ? void 0 : N[r.color]) || "") + " " + i[r.variant].base, h = v[r.size] || "", T = r.block ? "dk:block" : "dk:inline-block", S = y[r.rounded] || "";
999
+ return [ue, k, h, T, S].join(" ");
1000
1000
  });
1001
- return (o, p) => (r(), j(L(c.value), B(z.value, {
1002
- class: g.value,
1003
- title: t.title
1001
+ return (k, h) => (t(), L(V(b.value), j(z.value, {
1002
+ class: p.value,
1003
+ title: r.title
1004
1004
  }), {
1005
- default: D(() => [
1006
- t.loading ? (r(), a("span", ie, "Cargando...")) : P(o.$slots, "default", { key: 0 })
1005
+ default: B(() => [
1006
+ r.loading ? (t(), a("span", ie, "Cargando...")) : q(k.$slots, "default", { key: 0 })
1007
1007
  ]),
1008
1008
  _: 3
1009
1009
  }, 16, ["class", "title"]));
1010
1010
  }
1011
- }), be = {
1011
+ }), ce = {
1012
+ key: 0,
1013
+ class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
1014
+ }, be = ["src", "alt"], qe = /* @__PURE__ */ R({
1015
+ __name: "DuiCard",
1016
+ props: {
1017
+ size: { default: "m" },
1018
+ image: { default: void 0 },
1019
+ title: { default: void 0 },
1020
+ subtitle: { default: void 0 },
1021
+ to: { default: void 0 }
1022
+ },
1023
+ setup(f) {
1024
+ const r = f, e = M(), d = e == null ? void 0 : e.appContext.app, l = n(() => {
1025
+ try {
1026
+ return !!(d != null && d.config.globalProperties.$router || d != null && d.config.globalProperties.$route || globalThis.VueRouter || d != null && d.component("RouterLink"));
1027
+ } catch {
1028
+ return !1;
1029
+ }
1030
+ }), c = n(() => {
1031
+ try {
1032
+ return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || d != null && d.component("NuxtLink"));
1033
+ } catch {
1034
+ return !1;
1035
+ }
1036
+ }), b = () => r.to ? c.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "div", z = () => r.to ? c.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "h3", v = () => {
1037
+ const o = {};
1038
+ if (!r.to) return o;
1039
+ const m = b();
1040
+ return m === "a" ? o.href = typeof r.to == "string" ? r.to : "#" : (m === "RouterLink" || m === "NuxtLink") && (o.to = r.to), o;
1041
+ }, y = {
1042
+ s: {
1043
+ padding: "dk:p-3",
1044
+ spacing: "dk:space-y-2",
1045
+ titleSize: "dk:text-base",
1046
+ subtitleSize: "dk:text-sm",
1047
+ contentSize: "dk:text-sm"
1048
+ },
1049
+ m: {
1050
+ padding: "dk:p-4",
1051
+ spacing: "dk:space-y-3",
1052
+ titleSize: "dk:text-lg",
1053
+ subtitleSize: "dk:text-base",
1054
+ contentSize: "dk:text-base"
1055
+ },
1056
+ l: {
1057
+ padding: "dk:p-6",
1058
+ spacing: "dk:space-y-4",
1059
+ titleSize: "dk:text-xl",
1060
+ subtitleSize: "dk:text-lg",
1061
+ contentSize: "dk:text-lg"
1062
+ }
1063
+ }, i = n(() => [
1064
+ // Base card styles
1065
+ "dk:bg-white dk:rounded-lg dk:shadow-md dk:border dk:border-gray-200",
1066
+ "dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:dark:shadow-gray-900/20",
1067
+ "dk:transition-all dk:duration-200",
1068
+ "dk:hover:shadow-lg dk:dark:hover:shadow-gray-900/40",
1069
+ "dk:overflow-hidden"
1070
+ ].join(" ")), p = n(() => [
1071
+ "dk:w-full dk:h-48 dk:object-cover"
1072
+ ].join(" ")), k = n(() => {
1073
+ const o = y[r.size];
1074
+ return [
1075
+ o.padding,
1076
+ o.spacing
1077
+ ].join(" ");
1078
+ }), h = n(() => [
1079
+ y[r.size].spacing
1080
+ ].join(" ")), T = n(() => {
1081
+ const m = [
1082
+ y[r.size].titleSize,
1083
+ "dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
1084
+ "dk:line-clamp-2"
1085
+ ];
1086
+ return r.to && m.push(
1087
+ "dk:no-underline dk:hover:underline dk:transition-colors",
1088
+ "dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
1089
+ ), m.join(" ");
1090
+ }), S = n(() => r.to ? [
1091
+ "dk:block dk:no-underline",
1092
+ "dk:transition-transform dk:duration-200",
1093
+ "dk:hover:scale-105"
1094
+ ].join(" ") : "dk:block"), N = n(() => [
1095
+ y[r.size].subtitleSize,
1096
+ "dk:text-gray-600 dk:dark:text-gray-400",
1097
+ "dk:line-clamp-3"
1098
+ ].join(" ")), P = n(() => [
1099
+ y[r.size].contentSize,
1100
+ "dk:text-gray-700 dk:dark:text-gray-300"
1101
+ ].join(" ")), A = n(() => [
1102
+ "dk:border-t dk:border-gray-200 dk:dark:border-gray-700",
1103
+ "dk:pt-3 dk:mt-3"
1104
+ ].join(" "));
1105
+ return (o, m) => (t(), a("div", {
1106
+ class: g(i.value)
1107
+ }, [
1108
+ o.image ? (t(), a("div", ce, [
1109
+ (t(), L(V(b()), j(v(), { class: S.value }), {
1110
+ default: B(() => [
1111
+ u("img", {
1112
+ src: o.image,
1113
+ alt: o.title || "Card image",
1114
+ class: g(p.value)
1115
+ }, null, 10, be)
1116
+ ]),
1117
+ _: 1
1118
+ }, 16, ["class"]))
1119
+ ])) : x("", !0),
1120
+ u("div", {
1121
+ class: g(k.value)
1122
+ }, [
1123
+ o.title || o.subtitle ? (t(), a("div", {
1124
+ key: 0,
1125
+ class: g(h.value)
1126
+ }, [
1127
+ o.title ? (t(), L(V(z()), j({ key: 0 }, v(), { class: T.value }), {
1128
+ default: B(() => [
1129
+ C(w(o.title), 1)
1130
+ ]),
1131
+ _: 1
1132
+ }, 16, ["class"])) : x("", !0),
1133
+ o.subtitle ? (t(), a("p", {
1134
+ key: 1,
1135
+ class: g(N.value)
1136
+ }, w(o.subtitle), 3)) : x("", !0)
1137
+ ], 2)) : x("", !0),
1138
+ o.$slots.default ? (t(), a("div", {
1139
+ key: 1,
1140
+ class: g(P.value)
1141
+ }, [
1142
+ q(o.$slots, "default")
1143
+ ], 2)) : x("", !0),
1144
+ o.$slots.footer ? (t(), a("div", {
1145
+ key: 2,
1146
+ class: g(A.value)
1147
+ }, [
1148
+ q(o.$slots, "footer")
1149
+ ], 2)) : x("", !0)
1150
+ ], 2)
1151
+ ], 2));
1152
+ }
1153
+ }), ge = {
1012
1154
  key: 0,
1013
1155
  class: "dk:flex dk:items-center dk:gap-4"
1014
- }, ce = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, ge = {
1156
+ }, pe = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, he = {
1015
1157
  key: 0,
1016
1158
  class: "dk:relative dk:group"
1017
- }, pe = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-48 dk:py-2 dk:mt-1 dk:bg-white dk:rounded-lg dk:shadow-lg dk:border dk:border-gray-200 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50 dk:dark:bg-gray-800 dk:dark:border-gray-700" }, xe = {
1159
+ }, xe = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-48 dk:py-2 dk:mt-1 dk:bg-white dk:rounded-lg dk:shadow-lg dk:border dk:border-gray-200 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50 dk:dark:bg-gray-800 dk:dark:border-gray-700" }, ve = {
1018
1160
  key: 2,
1019
1161
  class: "dk:hidden dk:md:flex dk:items-center dk:gap-2"
1020
- }, he = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-white dk:border-t dk:border-gray-200 dk:shadow-lg dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:z-40" }, ve = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, ye = { key: 0 }, me = ["onClick"], fe = { class: "dk:flex dk:items-center dk:flex-1" }, ze = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, _e = {
1162
+ }, ye = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-white dk:border-t dk:border-gray-200 dk:shadow-lg dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:z-40" }, me = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, fe = { key: 0 }, ze = ["onClick"], we = { class: "dk:flex dk:items-center dk:flex-1" }, _e = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, Ce = {
1021
1163
  key: 0,
1022
1164
  class: "dk:pt-3 dk:border-t dk:border-gray-200 dk:dark:border-gray-700"
1023
- }, Te = /* @__PURE__ */ q({
1165
+ }, Re = /* @__PURE__ */ R({
1024
1166
  __name: "DuiNavbar",
1025
1167
  props: {
1026
1168
  items: { default: () => [] },
1027
1169
  size: { default: "m" }
1028
1170
  },
1029
- setup(h) {
1030
- const t = h, e = R(), d = e == null ? void 0 : e.appContext.app, u = E(!1), b = F({}), c = i(() => {
1171
+ setup(f) {
1172
+ const r = f, e = M(), d = e == null ? void 0 : e.appContext.app, l = E(!1), c = F({}), b = n(() => {
1031
1173
  try {
1032
1174
  return !!(d != null && d.config.globalProperties.$router || d != null && d.config.globalProperties.$route || globalThis.VueRouter || d != null && d.component("RouterLink"));
1033
1175
  } catch {
1034
1176
  return !1;
1035
1177
  }
1036
- }), z = i(() => {
1178
+ }), z = n(() => {
1037
1179
  try {
1038
1180
  return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || d != null && d.component("NuxtLink"));
1039
1181
  } catch {
1040
1182
  return !1;
1041
1183
  }
1042
- }), x = (n) => n.to ? z.value ? "NuxtLink" : c.value ? "RouterLink" : "a" : "button", m = (n) => {
1043
- const _ = {}, k = x(n);
1044
- return k === "a" ? _.href = typeof n.to == "string" ? n.to : "#" : k !== "button" && (_.to = n.to), _;
1045
- }, l = () => {
1046
- u.value = !u.value;
1047
- }, g = () => {
1048
- u.value = !1, Object.keys(b).forEach((n) => {
1049
- b[n] = !1;
1184
+ }), v = (o) => o.to ? z.value ? "NuxtLink" : b.value ? "RouterLink" : "a" : "button", y = (o) => {
1185
+ const m = {}, s = v(o);
1186
+ return s === "a" ? m.href = typeof o.to == "string" ? o.to : "#" : s !== "button" && (m.to = o.to), m;
1187
+ }, i = () => {
1188
+ l.value = !l.value;
1189
+ }, p = () => {
1190
+ l.value = !1, Object.keys(c).forEach((o) => {
1191
+ c[o] = !1;
1050
1192
  });
1051
- }, o = (n) => {
1052
- b[n] = !b[n];
1053
- }, p = {
1193
+ }, k = (o) => {
1194
+ c[o] = !c[o];
1195
+ }, h = {
1054
1196
  s: {
1055
1197
  height: "dk:h-12",
1056
1198
  padding: "dk:px-3",
@@ -1069,8 +1211,8 @@ const H = { key: 1 }, G = `
1069
1211
  text: "dk:text-lg",
1070
1212
  itemPadding: "dk:px-4 dk:py-3"
1071
1213
  }
1072
- }, N = i(() => {
1073
- const n = p[t.size];
1214
+ }, T = n(() => {
1215
+ const o = h[r.size];
1074
1216
  return [
1075
1217
  // Base classes
1076
1218
  "dk:relative dk:bg-white dk:border-b dk:border-gray-200 dk:shadow-sm",
@@ -1078,52 +1220,52 @@ const H = { key: 1 }, G = `
1078
1220
  "dk:flex dk:items-center dk:w-full",
1079
1221
  // Conditional justify based on slots
1080
1222
  !!(e != null && e.slots.brand || e != null && e.slots.actions) ? "dk:justify-between" : "dk:justify-center dk:md:justify-start",
1081
- n.height,
1082
- n.padding,
1083
- n.text
1223
+ o.height,
1224
+ o.padding,
1225
+ o.text
1084
1226
  ].join(" ");
1085
- }), $ = i(() => [
1227
+ }), S = n(() => [
1086
1228
  // Base styles
1087
1229
  "dk:flex dk:items-center dk:rounded-lg dk:transition-all dk:duration-200",
1088
1230
  "dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-gray-100",
1089
1231
  "dk:dark:text-gray-300 dk:dark:hover:text-gray-100 dk:dark:hover:bg-gray-700",
1090
1232
  "dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:focus:ring-gray-600",
1091
1233
  "dk:no-underline",
1092
- p[t.size].itemPadding
1093
- ].join(" ")), T = i(() => [
1234
+ h[r.size].itemPadding
1235
+ ].join(" ")), N = n(() => [
1094
1236
  "dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm",
1095
1237
  "dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900",
1096
1238
  "dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
1097
1239
  "dk:transition-colors dk:duration-200 dk:no-underline"
1098
- ].join(" ")), M = i(() => [
1240
+ ].join(" ")), P = n(() => [
1099
1241
  "dk:flex dk:items-center dk:justify-between dk:w-full dk:text-left dk:px-3 dk:py-2",
1100
1242
  "dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900 dk:rounded-lg",
1101
1243
  "dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
1102
1244
  "dk:transition-colors dk:duration-200 dk:no-underline"
1103
- ].join(" ")), O = i(() => [
1245
+ ].join(" ")), A = n(() => [
1104
1246
  "dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
1105
1247
  "dk:text-gray-600 dk:hover:bg-gray-100 dk:hover:text-gray-800",
1106
1248
  "dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-200",
1107
1249
  "dk:transition-colors dk:duration-200 dk:no-underline"
1108
1250
  ].join(" "));
1109
- return (n, _) => (r(), a("nav", {
1110
- class: y(N.value)
1251
+ return (o, m) => (t(), a("nav", {
1252
+ class: g(T.value)
1111
1253
  }, [
1112
- n.$slots.brand ? (r(), a("div", be, [
1113
- P(n.$slots, "brand"),
1114
- s("button", {
1254
+ o.$slots.brand ? (t(), a("div", ge, [
1255
+ q(o.$slots, "brand"),
1256
+ u("button", {
1115
1257
  type: "button",
1116
1258
  class: "dk:md:hidden dk:p-2 dk:rounded-lg dk:text-gray-500 dk:hover:bg-gray-100 dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:focus:ring-gray-600",
1117
- onClick: l
1118
- }, _[0] || (_[0] = [
1119
- s("span", { class: "dk:sr-only" }, "Open main menu", -1),
1120
- s("svg", {
1259
+ onClick: i
1260
+ }, m[0] || (m[0] = [
1261
+ u("span", { class: "dk:sr-only" }, "Open main menu", -1),
1262
+ u("svg", {
1121
1263
  class: "dk:w-5 dk:h-5",
1122
1264
  fill: "none",
1123
1265
  stroke: "currentColor",
1124
1266
  viewBox: "0 0 24 24"
1125
1267
  }, [
1126
- s("path", {
1268
+ u("path", {
1127
1269
  "stroke-linecap": "round",
1128
1270
  "stroke-linejoin": "round",
1129
1271
  "stroke-width": "2",
@@ -1131,21 +1273,21 @@ const H = { key: 1 }, G = `
1131
1273
  })
1132
1274
  ], -1)
1133
1275
  ]))
1134
- ])) : v("", !0),
1135
- n.$slots.brand ? v("", !0) : (r(), a("button", {
1276
+ ])) : x("", !0),
1277
+ o.$slots.brand ? x("", !0) : (t(), a("button", {
1136
1278
  key: 1,
1137
1279
  type: "button",
1138
1280
  class: "dk:md:hidden dk:p-2 dk:rounded-lg dk:text-gray-500 dk:hover:bg-gray-100 dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:focus:ring-gray-600",
1139
- onClick: l
1140
- }, _[1] || (_[1] = [
1141
- s("span", { class: "dk:sr-only" }, "Open main menu", -1),
1142
- s("svg", {
1281
+ onClick: i
1282
+ }, m[1] || (m[1] = [
1283
+ u("span", { class: "dk:sr-only" }, "Open main menu", -1),
1284
+ u("svg", {
1143
1285
  class: "dk:w-5 dk:h-5",
1144
1286
  fill: "none",
1145
1287
  stroke: "currentColor",
1146
1288
  viewBox: "0 0 24 24"
1147
1289
  }, [
1148
- s("path", {
1290
+ u("path", {
1149
1291
  "stroke-linecap": "round",
1150
1292
  "stroke-linejoin": "round",
1151
1293
  "stroke-width": "2",
@@ -1153,25 +1295,25 @@ const H = { key: 1 }, G = `
1153
1295
  })
1154
1296
  ], -1)
1155
1297
  ]))),
1156
- s("div", ce, [
1157
- (r(!0), a(C, null, V(n.items, (k) => (r(), a(C, {
1158
- key: k.label
1298
+ u("div", pe, [
1299
+ (t(!0), a($, null, D(o.items, (s) => (t(), a($, {
1300
+ key: s.label
1159
1301
  }, [
1160
- k.children && k.children.length > 0 ? (r(), a("div", ge, [
1161
- (r(), j(L(x(k)), B({ ref_for: !0 }, m(k), { class: $.value }), {
1162
- default: D(() => [
1163
- k.icon ? (r(), a("i", {
1302
+ s.children && s.children.length > 0 ? (t(), a("div", he, [
1303
+ (t(), L(V(v(s)), j({ ref_for: !0 }, y(s), { class: S.value }), {
1304
+ default: B(() => [
1305
+ s.icon ? (t(), a("i", {
1164
1306
  key: 0,
1165
- class: y([k.icon, "dk:mr-2"])
1166
- }, null, 2)) : v("", !0),
1167
- S(" " + w(k.label) + " ", 1),
1168
- _[2] || (_[2] = s("svg", {
1307
+ class: g([s.icon, "dk:mr-2"])
1308
+ }, null, 2)) : x("", !0),
1309
+ C(" " + w(s.label) + " ", 1),
1310
+ m[2] || (m[2] = u("svg", {
1169
1311
  class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
1170
1312
  fill: "none",
1171
1313
  stroke: "currentColor",
1172
1314
  viewBox: "0 0 24 24"
1173
1315
  }, [
1174
- s("path", {
1316
+ u("path", {
1175
1317
  "stroke-linecap": "round",
1176
1318
  "stroke-linejoin": "round",
1177
1319
  "stroke-width": "2",
@@ -1181,125 +1323,126 @@ const H = { key: 1 }, G = `
1181
1323
  ]),
1182
1324
  _: 2
1183
1325
  }, 1040, ["class"])),
1184
- s("div", pe, [
1185
- (r(!0), a(C, null, V(k.children, (f) => (r(), j(L(x(f)), B({
1186
- key: f.label,
1326
+ u("div", xe, [
1327
+ (t(!0), a($, null, D(s.children, (_) => (t(), L(V(v(_)), j({
1328
+ key: _.label,
1187
1329
  ref_for: !0
1188
- }, m(f), { class: T.value }), {
1189
- default: D(() => [
1190
- f.icon ? (r(), a("i", {
1330
+ }, y(_), { class: N.value }), {
1331
+ default: B(() => [
1332
+ _.icon ? (t(), a("i", {
1191
1333
  key: 0,
1192
- class: y([f.icon, "dk:mr-2"])
1193
- }, null, 2)) : v("", !0),
1194
- S(" " + w(f.label), 1)
1334
+ class: g([_.icon, "dk:mr-2"])
1335
+ }, null, 2)) : x("", !0),
1336
+ C(" " + w(_.label), 1)
1195
1337
  ]),
1196
1338
  _: 2
1197
1339
  }, 1040, ["class"]))), 128))
1198
1340
  ])
1199
- ])) : (r(), j(L(x(k)), B({
1341
+ ])) : (t(), L(V(v(s)), j({
1200
1342
  key: 1,
1201
1343
  ref_for: !0
1202
- }, m(k), { class: $.value }), {
1203
- default: D(() => [
1204
- k.icon ? (r(), a("i", {
1344
+ }, y(s), { class: S.value }), {
1345
+ default: B(() => [
1346
+ s.icon ? (t(), a("i", {
1205
1347
  key: 0,
1206
- class: y([k.icon, "dk:mr-2"])
1207
- }, null, 2)) : v("", !0),
1208
- S(" " + w(k.label), 1)
1348
+ class: g([s.icon, "dk:mr-2"])
1349
+ }, null, 2)) : x("", !0),
1350
+ C(" " + w(s.label), 1)
1209
1351
  ]),
1210
1352
  _: 2
1211
1353
  }, 1040, ["class"]))
1212
1354
  ], 64))), 128))
1213
1355
  ]),
1214
- n.$slots.actions ? (r(), a("div", xe, [
1215
- P(n.$slots, "actions")
1216
- ])) : v("", !0),
1217
- A(s("div", he, [
1218
- s("div", ve, [
1219
- (r(!0), a(C, null, V(n.items, (k) => (r(), a(C, {
1220
- key: k.label
1356
+ o.$slots.actions ? (t(), a("div", ve, [
1357
+ q(o.$slots, "actions")
1358
+ ])) : x("", !0),
1359
+ I(u("div", ye, [
1360
+ u("div", me, [
1361
+ (t(!0), a($, null, D(o.items, (s) => (t(), a($, {
1362
+ key: s.label
1221
1363
  }, [
1222
- k.children && k.children.length > 0 ? (r(), a("div", ye, [
1223
- s("button", {
1364
+ s.children && s.children.length > 0 ? (t(), a("div", fe, [
1365
+ u("button", {
1224
1366
  type: "button",
1225
- onClick: (f) => o(k.label),
1226
- class: y(M.value)
1367
+ onClick: (_) => k(s.label),
1368
+ class: g(P.value)
1227
1369
  }, [
1228
- s("div", fe, [
1229
- k.icon ? (r(), a("i", {
1370
+ u("div", we, [
1371
+ s.icon ? (t(), a("i", {
1230
1372
  key: 0,
1231
- class: y([k.icon, "dk:mr-2"])
1232
- }, null, 2)) : v("", !0),
1233
- S(" " + w(k.label), 1)
1373
+ class: g([s.icon, "dk:mr-2"])
1374
+ }, null, 2)) : x("", !0),
1375
+ C(" " + w(s.label), 1)
1234
1376
  ]),
1235
- (r(), a("svg", {
1236
- class: y(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", b[k.label] ? "dk:rotate-180" : ""]),
1377
+ (t(), a("svg", {
1378
+ class: g(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", c[s.label] ? "dk:rotate-180" : ""]),
1237
1379
  fill: "none",
1238
1380
  stroke: "currentColor",
1239
1381
  viewBox: "0 0 24 24"
1240
- }, _[3] || (_[3] = [
1241
- s("path", {
1382
+ }, m[3] || (m[3] = [
1383
+ u("path", {
1242
1384
  "stroke-linecap": "round",
1243
1385
  "stroke-linejoin": "round",
1244
1386
  "stroke-width": "2",
1245
1387
  d: "M19 9l-7 7-7-7"
1246
1388
  }, null, -1)
1247
1389
  ]), 2))
1248
- ], 10, me),
1249
- A(s("div", ze, [
1250
- (r(!0), a(C, null, V(k.children, (f) => (r(), j(L(x(f)), B({
1251
- key: f.label,
1390
+ ], 10, ze),
1391
+ I(u("div", _e, [
1392
+ (t(!0), a($, null, D(s.children, (_) => (t(), L(V(v(_)), j({
1393
+ key: _.label,
1252
1394
  ref_for: !0
1253
- }, m(f), {
1254
- class: O.value,
1255
- onClick: g
1395
+ }, y(_), {
1396
+ class: A.value,
1397
+ onClick: p
1256
1398
  }), {
1257
- default: D(() => [
1258
- f.icon ? (r(), a("i", {
1399
+ default: B(() => [
1400
+ _.icon ? (t(), a("i", {
1259
1401
  key: 0,
1260
- class: y([f.icon, "dk:mr-2"])
1261
- }, null, 2)) : v("", !0),
1262
- S(" " + w(f.label), 1)
1402
+ class: g([_.icon, "dk:mr-2"])
1403
+ }, null, 2)) : x("", !0),
1404
+ C(" " + w(_.label), 1)
1263
1405
  ]),
1264
1406
  _: 2
1265
1407
  }, 1040, ["class"]))), 128))
1266
1408
  ], 512), [
1267
- [I, b[k.label]]
1409
+ [O, c[s.label]]
1268
1410
  ])
1269
- ])) : (r(), j(L(x(k)), B({
1411
+ ])) : (t(), L(V(v(s)), j({
1270
1412
  key: 1,
1271
1413
  ref_for: !0
1272
- }, m(k), {
1273
- class: M.value,
1274
- onClick: g
1414
+ }, y(s), {
1415
+ class: P.value,
1416
+ onClick: p
1275
1417
  }), {
1276
- default: D(() => [
1277
- k.icon ? (r(), a("i", {
1418
+ default: B(() => [
1419
+ s.icon ? (t(), a("i", {
1278
1420
  key: 0,
1279
- class: y([k.icon, "dk:mr-2"])
1280
- }, null, 2)) : v("", !0),
1281
- S(" " + w(k.label), 1)
1421
+ class: g([s.icon, "dk:mr-2"])
1422
+ }, null, 2)) : x("", !0),
1423
+ C(" " + w(s.label), 1)
1282
1424
  ]),
1283
1425
  _: 2
1284
1426
  }, 1040, ["class"]))
1285
1427
  ], 64))), 128)),
1286
- n.$slots.actions ? (r(), a("div", _e, [
1287
- P(n.$slots, "actions")
1288
- ])) : v("", !0)
1428
+ o.$slots.actions ? (t(), a("div", Ce, [
1429
+ q(o.$slots, "actions")
1430
+ ])) : x("", !0)
1289
1431
  ])
1290
1432
  ], 512), [
1291
- [I, u.value]
1433
+ [O, l.value]
1292
1434
  ])
1293
1435
  ], 2));
1294
1436
  }
1295
1437
  });
1296
1438
  export {
1297
- Ne as DuiAction,
1298
- Ve as DuiAlert,
1299
- Se as DuiButton,
1300
- Ce as DuiInput,
1301
- Te as DuiNavbar,
1302
- Be as DuiSelect,
1303
- qe as DuiTable,
1304
- $e as DuiTextarea
1439
+ Be as DuiAction,
1440
+ Le as DuiAlert,
1441
+ $e as DuiButton,
1442
+ qe as DuiCard,
1443
+ je as DuiInput,
1444
+ Re as DuiNavbar,
1445
+ Ne as DuiSelect,
1446
+ Ve as DuiTable,
1447
+ Te as DuiTextarea
1305
1448
  };