@dronico/droni-kit 1.12.3 → 1.12.5

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,20 +1,20 @@
1
- import { getCurrentInstance as I, defineComponent as j, computed as c, createBlock as V, openBlock as d, resolveDynamicComponent as D, mergeProps as C, withCtx as T, renderSlot as _, createElementBlock as t, createCommentVNode as m, toDisplayString as z, Fragment as $, renderList as B, ref as q, normalizeClass as h, createElementVNode as p, withDirectives as R, createTextVNode as S, vShow as A, reactive as E } from "vue";
2
- function F() {
1
+ import { getCurrentInstance as X, defineComponent as P, computed as c, createBlock as V, openBlock as d, resolveDynamicComponent as B, mergeProps as C, withCtx as D, renderSlot as j, createElementBlock as t, createCommentVNode as m, toDisplayString as w, Fragment as _, renderList as T, ref as E, normalizeClass as f, createElementVNode as h, withDirectives as W, createTextVNode as $, vShow as q, reactive as Y } from "vue";
2
+ function Z() {
3
3
  try {
4
- const r = I(), e = r == null ? void 0 : r.appContext.app;
4
+ const r = X(), e = r == null ? void 0 : r.appContext.app;
5
5
  return e ? !!(e.config.globalProperties.$router || e.config.globalProperties.$route || e.component("RouterLink")) : typeof window < "u" ? !!window.VueRouter : !1;
6
6
  } catch {
7
7
  return !1;
8
8
  }
9
9
  }
10
- function O(r, e = !1) {
11
- return r ? e ? "NuxtLink" : F() ? "RouterLink" : "a" : "button";
10
+ function L(r, e = !1) {
11
+ return r ? e ? "NuxtLink" : Z() ? "RouterLink" : "a" : "button";
12
12
  }
13
- function W(r, e, o = {}) {
14
- const a = { ...o };
15
- return e === "a" ? (a.href = typeof r == "string" ? r : "#", a.role = "button") : e !== "button" && e !== "span" && (a.to = r), a;
13
+ function R(r, e, k = {}) {
14
+ const n = { ...k };
15
+ return e === "a" ? (n.href = typeof r == "string" ? r : "#", n.role = "button") : e !== "button" && e !== "span" && (n.to = r), n;
16
16
  }
17
- const H = { key: 1 }, G = `
17
+ const ee = { key: 1 }, de = `
18
18
  dk:transition
19
19
  dk:text-center
20
20
  dk:disabled:opacity-50
@@ -25,7 +25,7 @@ const H = { key: 1 }, G = `
25
25
  dk:text-ellipsis
26
26
  dk:whitespace-nowrap
27
27
  dk:active:scale-95
28
- dk:max-w-full`, $e = /* @__PURE__ */ j({
28
+ dk:max-w-full`, Ie = /* @__PURE__ */ P({
29
29
  __name: "DuiButton",
30
30
  props: {
31
31
  variant: { default: "solid" },
@@ -41,21 +41,21 @@ const H = { key: 1 }, G = `
41
41
  nuxt: { type: Boolean, default: !1 }
42
42
  },
43
43
  setup(r) {
44
- const e = r, o = c(() => O(e.to, e.nuxt)), a = c(() => {
45
- const n = {};
46
- return o.value === "button" && (n.type = e.type), W(e.to, o.value, n);
44
+ const e = r, k = c(() => L(e.to, e.nuxt)), n = c(() => {
45
+ const i = {};
46
+ return k.value === "button" && (i.type = e.type), R(e.to, k.value, i);
47
47
  }), l = {
48
48
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
49
49
  md: "dk:text-base dk:px-4 dk:py-2",
50
50
  lg: "dk:text-lg dk:px-5 dk:py-3"
51
- }, g = {
51
+ }, u = {
52
52
  all: "dk:rounded",
53
53
  top: "dk:rounded-t",
54
54
  bottom: "dk:rounded-b",
55
55
  left: "dk:rounded-l",
56
56
  right: "dk:rounded-r",
57
57
  none: "dk:rounded-none"
58
- }, b = {
58
+ }, p = {
59
59
  solid: {
60
60
  base: "dk:border-b",
61
61
  neutral: `
@@ -227,23 +227,23 @@ const H = { key: 1 }, G = `
227
227
  dk:dark:text-amber-100
228
228
  dk:dark:hover:bg-amber-800`
229
229
  }
230
- }, y = c(() => {
231
- var f;
232
- const n = (((f = b[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + b[e.variant].base, v = l[e.size] || "", s = e.block ? "dk:w-full" : "", u = g[e.rounded] || "";
233
- return [G, n, v, s, u].join(" ");
230
+ }, x = c(() => {
231
+ var z;
232
+ const i = (((z = p[e.variant]) == null ? void 0 : z[e.color]) || "") + " " + p[e.variant].base, v = l[e.size] || "", a = e.block ? "dk:w-full" : "", b = u[e.rounded] || "";
233
+ return [de, i, v, a, b].join(" ");
234
234
  });
235
- return (n, v) => (d(), V(D(o.value), C(a.value, {
236
- class: y.value,
235
+ return (i, v) => (d(), V(B(k.value), C(n.value, {
236
+ class: x.value,
237
237
  title: e.title,
238
238
  disabled: e.disabled || e.loading
239
239
  }), {
240
- default: T(() => [
241
- e.loading ? (d(), t("span", H, "Cargando...")) : _(n.$slots, "default", { key: 0 })
240
+ default: D(() => [
241
+ e.loading ? (d(), t("span", ee, "Cargando...")) : j(i.$slots, "default", { key: 0 })
242
242
  ]),
243
243
  _: 3
244
244
  }, 16, ["class", "title", "disabled"]));
245
245
  }
246
- }), J = ["value"], K = `
246
+ }), re = ["value"], te = `
247
247
  dk:border-b
248
248
  dk:border-zinc-300
249
249
  dk:bg-zinc-50
@@ -255,7 +255,7 @@ const H = { key: 1 }, G = `
255
255
  dk:dark:bg-zinc-800
256
256
  dk:dark:text-zinc-100
257
257
  dk:dark:focus:bg-zinc-700
258
- dk:dark:[color-scheme:dark]`, _e = /* @__PURE__ */ j({
258
+ dk:dark:[color-scheme:dark]`, Ne = /* @__PURE__ */ P({
259
259
  inheritAttrs: !1,
260
260
  __name: "DuiInput",
261
261
  props: {
@@ -278,32 +278,32 @@ const H = { key: 1 }, G = `
278
278
  },
279
279
  emits: ["update:modelValue"],
280
280
  setup(r, { emit: e }) {
281
- const o = r, a = e;
282
- function l(n) {
283
- const v = n.target;
284
- a("update:modelValue", v.value);
281
+ const k = r, n = e;
282
+ function l(i) {
283
+ const v = i.target;
284
+ n("update:modelValue", v.value);
285
285
  }
286
- const g = {
286
+ const u = {
287
287
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
288
288
  md: "dk:text-base dk:px-4 dk:py-2",
289
289
  lg: "dk:text-lg dk:px-5 dk:py-3"
290
- }, b = {
290
+ }, p = {
291
291
  all: "dk:rounded",
292
292
  top: "dk:rounded-t",
293
293
  bottom: "dk:rounded-b",
294
294
  left: "dk:rounded-l",
295
295
  right: "dk:rounded-r",
296
296
  none: "dk:rounded-none"
297
- }, y = c(() => {
298
- const n = g[o.size] || "", v = o.block ? "dk:w-full" : "", s = b[o.rounded] || "";
299
- return [K, n, v, s].join(" ");
297
+ }, x = c(() => {
298
+ const i = u[k.size] || "", v = k.block ? "dk:w-full" : "", a = p[k.rounded] || "";
299
+ return [te, i, v, a].join(" ");
300
300
  });
301
- return (n, v) => (d(), t("input", C({
302
- class: y.value,
301
+ return (i, v) => (d(), t("input", C({
302
+ class: x.value,
303
303
  value: r.modelValue
304
- }, n.$attrs, { onInput: l }), null, 16, J));
304
+ }, i.$attrs, { onInput: l }), null, 16, re));
305
305
  }
306
- }), Q = ["value"], U = `
306
+ }), ke = ["value"], oe = `
307
307
  dk:border-b
308
308
  dk:border-zinc-300
309
309
  dk:bg-zinc-50
@@ -315,7 +315,7 @@ const H = { key: 1 }, G = `
315
315
  dk:dark:bg-zinc-800
316
316
  dk:dark:text-zinc-100
317
317
  dk:dark:focus:bg-zinc-700
318
- dk:dark:[color-scheme:dark]`, je = /* @__PURE__ */ j({
318
+ dk:dark:[color-scheme:dark]`, Re = /* @__PURE__ */ P({
319
319
  inheritAttrs: !1,
320
320
  __name: "DuiTextarea",
321
321
  props: {
@@ -346,45 +346,45 @@ const H = { key: 1 }, G = `
346
346
  },
347
347
  emits: ["update:modelValue"],
348
348
  setup(r, { emit: e }) {
349
- const o = r, a = e;
350
- function l(s) {
351
- const u = s.target;
352
- o.autoheight && v(u), a("update:modelValue", u.value);
349
+ const k = r, n = e;
350
+ function l(a) {
351
+ const b = a.target;
352
+ k.autoheight && v(b), n("update:modelValue", b.value);
353
353
  }
354
- const g = {
354
+ const u = {
355
355
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
356
356
  md: "dk:text-base dk:px-3 dk:py-2",
357
357
  lg: "dk:text-lg dk:px-5 dk:py-3"
358
- }, b = {
358
+ }, p = {
359
359
  all: "dk:rounded",
360
360
  top: "dk:rounded-t",
361
361
  bottom: "dk:rounded-b",
362
362
  left: "dk:rounded-l",
363
363
  right: "dk:rounded-r",
364
364
  none: "dk:rounded-none"
365
- }, y = {
365
+ }, x = {
366
366
  none: "dk:resize-none",
367
367
  both: "dk:resize",
368
368
  horizontal: "dk:resize-x",
369
369
  vertical: "dk:resize-y"
370
- }, n = c(() => {
371
- const s = g[o.size] || "", u = o.block ? "dk:w-full" : "", f = b[o.rounded] || "", N = y[o.resize] || "";
372
- return [U, s, u, f, N].join(" ");
373
- }), v = (s) => {
374
- s.style.height = "auto", s.style.height = `${s.scrollHeight + 5}px`;
370
+ }, i = c(() => {
371
+ const a = u[k.size] || "", b = k.block ? "dk:w-full" : "", z = p[k.rounded] || "", A = x[k.resize] || "";
372
+ return [oe, a, b, z, A].join(" ");
373
+ }), v = (a) => {
374
+ a.style.height = "auto", a.style.height = `${a.scrollHeight + 5}px`;
375
375
  };
376
- return (s, u) => (d(), t("textarea", C(s.$attrs, {
377
- class: n.value,
376
+ return (a, b) => (d(), t("textarea", C(a.$attrs, {
377
+ class: i.value,
378
378
  value: r.modelValue,
379
379
  onInput: l
380
- }), null, 16, Q));
380
+ }), null, 16, ke));
381
381
  }
382
- }), X = {
382
+ }), ae = {
383
383
  key: 0,
384
384
  disabled: "",
385
385
  selected: "",
386
386
  hidden: ""
387
- }, Y = ["value", "selected"], Z = `
387
+ }, se = ["value", "selected"], ne = `
388
388
  dk:border-b
389
389
  dk:border-zinc-300
390
390
  dk:bg-zinc-50
@@ -397,7 +397,7 @@ const H = { key: 1 }, G = `
397
397
  dk:dark:text-zinc-100
398
398
  dk:dark:focus:bg-zinc-700
399
399
  dk:dark:[color-scheme:dark]
400
- `, Ve = /* @__PURE__ */ j({
400
+ `, We = /* @__PURE__ */ P({
401
401
  inheritAttrs: !1,
402
402
  __name: "DuiSelect",
403
403
  props: {
@@ -436,42 +436,42 @@ const H = { key: 1 }, G = `
436
436
  },
437
437
  emits: ["update:modelValue"],
438
438
  setup(r, { emit: e }) {
439
- const o = r, a = e;
440
- function l(n) {
441
- const s = n.target.value, u = Number(s);
442
- !isNaN(u) && s !== "" ? a("update:modelValue", u) : a("update:modelValue", s);
439
+ const k = r, n = e;
440
+ function l(i) {
441
+ const a = i.target.value, b = Number(a);
442
+ !isNaN(b) && a !== "" ? n("update:modelValue", b) : n("update:modelValue", a);
443
443
  }
444
- const g = {
444
+ const u = {
445
445
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
446
446
  md: "dk:text-base dk:px-4 dk:py-2",
447
447
  lg: "dk:text-lg dk:px-5 dk:py-3"
448
- }, b = {
448
+ }, p = {
449
449
  all: "dk:rounded",
450
450
  top: "dk:rounded-t",
451
451
  bottom: "dk:rounded-b",
452
452
  left: "dk:rounded-l",
453
453
  right: "dk:rounded-r",
454
454
  none: "dk:rounded-none"
455
- }, y = c(() => {
456
- const n = g[o.size] || "", v = o.block ? "dk:w-full" : "", s = b[o.rounded] || "";
457
- return [Z, n, v, s].join(" ");
455
+ }, x = c(() => {
456
+ const i = u[k.size] || "", v = k.block ? "dk:w-full" : "", a = p[k.rounded] || "";
457
+ return [ne, i, v, a].join(" ");
458
458
  });
459
- return (n, v) => (d(), t("select", C(n.$attrs, {
460
- class: y.value,
459
+ return (i, v) => (d(), t("select", C(i.$attrs, {
460
+ class: x.value,
461
461
  onChange: l
462
462
  }), [
463
- r.placeholder ? (d(), t("option", X, z(r.placeholder), 1)) : m("", !0),
464
- (d(!0), t($, null, B(r.options, (s, u) => (d(), t("option", {
465
- key: u,
466
- value: s[r.itemValue] ?? "",
467
- selected: s[r.itemValue] == r.modelValue
468
- }, z(s[r.itemLabel] ?? ""), 9, Y))), 128))
463
+ r.placeholder ? (d(), t("option", ae, w(r.placeholder), 1)) : m("", !0),
464
+ (d(!0), t(_, null, T(r.options, (a, b) => (d(), t("option", {
465
+ key: b,
466
+ value: a[r.itemValue] ?? "",
467
+ selected: a[r.itemValue] == r.modelValue
468
+ }, w(a[r.itemLabel] ?? ""), 9, se))), 128))
469
469
  ], 16));
470
470
  }
471
- }), ee = {
471
+ }), le = {
472
472
  key: 1,
473
473
  class: "dk:text-rose-500 dk:ml-1"
474
- }, de = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, re = "dk:space-y-1", te = /* @__PURE__ */ j({
474
+ }, ie = { class: "tooltip-container tooltip-above dk:z-50 dk:text-xs dk:rounded dk:py-2 dk:px-3 dk:transition-all dk:duration-200 dk:min-w-[250px] dk:max-w-xs dk:shadow-lg dk:pointer-events-none" }, ue = "dk:space-y-1", be = /* @__PURE__ */ P({
475
475
  __name: "DuiLabel",
476
476
  props: {
477
477
  title: {
@@ -500,7 +500,7 @@ const H = { key: 1 }, G = `
500
500
  }
501
501
  },
502
502
  setup(r) {
503
- const e = q(!1), o = r, a = {
503
+ const e = E(!1), k = r, n = {
504
504
  s: "dk:text-sm",
505
505
  m: "dk:text-base",
506
506
  l: "dk:text-lg"
@@ -508,66 +508,66 @@ const H = { key: 1 }, G = `
508
508
  s: "dk:mt-1",
509
509
  m: "dk:mt-1.5",
510
510
  l: "dk:mt-2"
511
- }, g = {
511
+ }, u = {
512
512
  s: "dk:text-xs",
513
513
  m: "dk:text-sm",
514
514
  l: "dk:text-base"
515
- }, b = c(() => [re].join(" ")), y = c(() => {
516
- const s = a[o.size] || a.m, u = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", f = o.helpText ? "dk:cursor-help" : "";
517
- return [u, s, f].join(" ");
518
- }), n = c(() => [l[o.size] || l.m].join(" ")), v = c(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", g[o.size] || g.m].join(" "));
519
- return (s, u) => (d(), t("label", {
520
- class: h(b.value)
515
+ }, p = c(() => [ue].join(" ")), x = c(() => {
516
+ const a = n[k.size] || n.m, b = "dk:block dk:font-medium dk:text-zinc-700 dk:dark:text-zinc-200 dk:flex dk:items-center", z = k.helpText ? "dk:cursor-help" : "";
517
+ return [b, a, z].join(" ");
518
+ }), i = c(() => [l[k.size] || l.m].join(" ")), v = c(() => ["dk:text-rose-600 dk:dark:text-rose-400 dk:flex dk:items-center dk:mt-1", u[k.size] || u.m].join(" "));
519
+ return (a, b) => (d(), t("label", {
520
+ class: f(p.value)
521
521
  }, [
522
522
  r.title ? (d(), t("div", {
523
523
  key: 0,
524
524
  class: "dk:relative",
525
- onMouseenter: u[0] || (u[0] = (f) => e.value = !!r.helpText),
526
- onMouseleave: u[1] || (u[1] = (f) => e.value = !1)
525
+ onMouseenter: b[0] || (b[0] = (z) => e.value = !!r.helpText),
526
+ onMouseleave: b[1] || (b[1] = (z) => e.value = !1)
527
527
  }, [
528
- p("div", {
529
- class: h(y.value)
528
+ h("div", {
529
+ class: f(x.value)
530
530
  }, [
531
531
  r.icon ? (d(), t("i", {
532
532
  key: 0,
533
- class: h([r.icon, "dk:mr-2"])
533
+ class: f([r.icon, "dk:mr-2"])
534
534
  }, null, 2)) : m("", !0),
535
- S(" " + z(r.title) + " ", 1),
536
- r.required ? (d(), t("span", ee, "*")) : m("", !0)
535
+ $(" " + w(r.title) + " ", 1),
536
+ r.required ? (d(), t("span", le, "*")) : m("", !0)
537
537
  ], 2),
538
- R(p("div", de, [
539
- S(z(r.helpText) + " ", 1),
540
- u[2] || (u[2] = p("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
538
+ W(h("div", ie, [
539
+ $(w(r.helpText) + " ", 1),
540
+ b[2] || (b[2] = h("div", { class: "tooltip-arrow tooltip-arrow-down" }, null, -1))
541
541
  ], 512), [
542
- [A, e.value && r.helpText]
542
+ [q, e.value && r.helpText]
543
543
  ])
544
544
  ], 32)) : m("", !0),
545
- p("div", {
546
- class: h(n.value)
545
+ h("div", {
546
+ class: f(i.value)
547
547
  }, [
548
- _(s.$slots, "default", {}, void 0, !0)
548
+ j(a.$slots, "default", {}, void 0, !0)
549
549
  ], 2),
550
550
  r.error ? (d(), t("div", {
551
551
  key: 1,
552
- class: h(v.value)
552
+ class: f(v.value)
553
553
  }, [
554
- u[3] || (u[3] = p("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
555
- S(" " + z(r.error), 1)
554
+ b[3] || (b[3] = h("span", { class: "dk:inline-flex dk:items-center dk:justify-center dk:w-4 dk:h-4 dk:text-xs dk:bg-rose-500 dk:text-white dk:rounded-full dk:mr-2 dk:flex-shrink-0" }, " ! ", -1)),
555
+ $(" " + w(r.error), 1)
556
556
  ], 2)) : m("", !0)
557
557
  ], 2));
558
558
  }
559
- }), oe = (r, e) => {
560
- const o = r.__vccOpts || r;
561
- for (const [a, l] of e)
562
- o[a] = l;
563
- return o;
564
- }, De = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-aa6b6cdc"]]), ke = `
559
+ }), ce = (r, e) => {
560
+ const k = r.__vccOpts || r;
561
+ for (const [n, l] of e)
562
+ k[n] = l;
563
+ return k;
564
+ }, qe = /* @__PURE__ */ ce(be, [["__scopeId", "data-v-aa6b6cdc"]]), ge = `
565
565
  dk:px-4
566
566
  dk:py-3
567
567
  dk:text-sm
568
568
  dk:leading-relaxed
569
569
  dk:max-w-full
570
- `, Te = /* @__PURE__ */ j({
570
+ `, Ee = /* @__PURE__ */ P({
571
571
  __name: "DuiAlert",
572
572
  props: {
573
573
  variant: {
@@ -584,14 +584,14 @@ const H = { key: 1 }, G = `
584
584
  }
585
585
  },
586
586
  setup(r) {
587
- const e = r, o = {
587
+ const e = r, k = {
588
588
  all: "dk:rounded",
589
589
  top: "dk:rounded-t",
590
590
  bottom: "dk:rounded-b",
591
591
  left: "dk:rounded-l",
592
592
  right: "dk:rounded-r",
593
593
  none: "dk:rounded-none"
594
- }, a = {
594
+ }, n = {
595
595
  solid: {
596
596
  base: "",
597
597
  neutral: "dk:bg-zinc-200 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",
@@ -620,18 +620,18 @@ const H = { key: 1 }, G = `
620
620
  danger: "dk:text-rose-700 dk:dark:text-rose-200 dk:bg-rose-50 dk:dark:bg-rose-800"
621
621
  }
622
622
  }, l = c(() => {
623
- var n;
624
- const g = ((n = a[e.variant]) == null ? void 0 : n[e.color]) || "", b = a[e.variant].base || "", y = o[e.rounded] || "";
625
- return [ke, b, g, y].join(" ");
623
+ var i;
624
+ const u = ((i = n[e.variant]) == null ? void 0 : i[e.color]) || "", p = n[e.variant].base || "", x = k[e.rounded] || "";
625
+ return [ge, p, u, x].join(" ");
626
626
  });
627
- return (g, b) => (d(), t("div", {
628
- class: h(l.value),
627
+ return (u, p) => (d(), t("div", {
628
+ class: f(l.value),
629
629
  role: "alert"
630
630
  }, [
631
- _(g.$slots, "default")
631
+ j(u.$slots, "default")
632
632
  ], 2));
633
633
  }
634
- }), ae = { 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" }, ne = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, Be = /* @__PURE__ */ j({
634
+ }), pe = { class: "dk:relative dk:overflow-x-auto dk:shadow-md dk:sm:rounded-lg" }, he = { class: "dk:w-full dk:text-sm dk:text-left dk:text-gray-700 dk:dark:text-gray-300" }, fe = { class: "dk:text-xs dk:uppercase dk:bg-gray-100 dk:dark:bg-gray-700 dk:dark:text-gray-200" }, Oe = /* @__PURE__ */ P({
635
635
  __name: "DuiTable",
636
636
  props: {
637
637
  columns: {
@@ -645,27 +645,27 @@ const H = { key: 1 }, G = `
645
645
  },
646
646
  setup(r) {
647
647
  const e = r;
648
- return (o, a) => (d(), t("div", ae, [
649
- p("table", se, [
650
- p("thead", ne, [
651
- p("tr", null, [
652
- (d(!0), t($, null, B(e.columns, (l) => (d(), t("th", {
648
+ return (k, n) => (d(), t("div", pe, [
649
+ h("table", he, [
650
+ h("thead", fe, [
651
+ h("tr", null, [
652
+ (d(!0), t(_, null, T(e.columns, (l) => (d(), t("th", {
653
653
  key: l.name,
654
- class: h(["dk:px-6 dk:py-3", l.classes])
655
- }, z(l.label), 3))), 128))
654
+ class: f(["dk:px-6 dk:py-3", l.classes])
655
+ }, w(l.label), 3))), 128))
656
656
  ])
657
657
  ]),
658
- p("tbody", null, [
659
- (d(!0), t($, null, B(e.rows, (l, g) => (d(), t("tr", {
660
- key: g,
658
+ h("tbody", null, [
659
+ (d(!0), t(_, null, T(e.rows, (l, u) => (d(), t("tr", {
660
+ key: u,
661
661
  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"
662
662
  }, [
663
- (d(!0), t($, null, B(e.columns, (b) => (d(), t("td", {
664
- key: b.name,
663
+ (d(!0), t(_, null, T(e.columns, (p) => (d(), t("td", {
664
+ key: p.name,
665
665
  class: "dk:px-6 dk:py-4 dk:text-gray-900 dk:dark:text-gray-100"
666
666
  }, [
667
- _(o.$slots, b.name, C({ ref_for: !0 }, l), () => [
668
- S(z(l[b.name]), 1)
667
+ j(k.$slots, p.name, C({ ref_for: !0 }, l), () => [
668
+ $(w(l[p.name]), 1)
669
669
  ])
670
670
  ]))), 128))
671
671
  ]))), 128))
@@ -673,7 +673,7 @@ const H = { key: 1 }, G = `
673
673
  ])
674
674
  ]));
675
675
  }
676
- }), le = { key: 1 }, ie = `
676
+ }), ve = { key: 1 }, me = `
677
677
  dk:transition
678
678
  dk:text-center
679
679
  dk:disabled:opacity-50
@@ -684,7 +684,7 @@ const H = { key: 1 }, G = `
684
684
  dk:text-ellipsis
685
685
  dk:whitespace-nowrap
686
686
  dk:active:scale-95
687
- dk:max-w-full`, Le = /* @__PURE__ */ j({
687
+ dk:max-w-full`, Fe = /* @__PURE__ */ P({
688
688
  __name: "DuiAction",
689
689
  props: {
690
690
  variant: { default: "solid" },
@@ -698,18 +698,18 @@ const H = { key: 1 }, G = `
698
698
  nuxt: { type: Boolean, default: !1 }
699
699
  },
700
700
  setup(r) {
701
- const e = r, o = c(() => e.to ? O(e.to, e.nuxt) : "span"), a = c(() => W(e.to, o.value)), l = {
701
+ const e = r, k = c(() => e.to ? L(e.to, e.nuxt) : "span"), n = c(() => R(e.to, k.value)), l = {
702
702
  sm: "dk:text-sm dk:px-3 dk:py-1.5",
703
703
  md: "dk:text-base dk:px-4 dk:py-2",
704
704
  lg: "dk:text-lg dk:px-5 dk:py-3"
705
- }, g = {
705
+ }, u = {
706
706
  all: "dk:rounded",
707
707
  top: "dk:rounded-t",
708
708
  bottom: "dk:rounded-b",
709
709
  left: "dk:rounded-l",
710
710
  right: "dk:rounded-r",
711
711
  none: "dk:rounded-none"
712
- }, b = {
712
+ }, p = {
713
713
  solid: {
714
714
  base: "dk:border-b",
715
715
  neutral: `
@@ -881,52 +881,39 @@ const H = { key: 1 }, G = `
881
881
  dk:dark:text-amber-100
882
882
  dk:dark:hover:bg-amber-800`
883
883
  }
884
- }, y = c(() => {
885
- var f;
886
- const n = (((f = b[e.variant]) == null ? void 0 : f[e.color]) || "") + " " + b[e.variant].base, v = l[e.size] || "", s = e.block ? "dk:block" : "dk:inline-block", u = g[e.rounded] || "";
887
- return [ie, n, v, s, u].join(" ");
884
+ }, x = c(() => {
885
+ var z;
886
+ const i = (((z = p[e.variant]) == null ? void 0 : z[e.color]) || "") + " " + p[e.variant].base, v = l[e.size] || "", a = e.block ? "dk:block" : "dk:inline-block", b = u[e.rounded] || "";
887
+ return [me, i, v, a, b].join(" ");
888
888
  });
889
- return (n, v) => (d(), V(D(o.value), C(a.value, {
890
- class: y.value,
889
+ return (i, v) => (d(), V(B(k.value), C(n.value, {
890
+ class: x.value,
891
891
  title: e.title
892
892
  }), {
893
- default: T(() => [
894
- e.loading ? (d(), t("span", le, "Cargando...")) : _(n.$slots, "default", { key: 0 })
893
+ default: D(() => [
894
+ e.loading ? (d(), t("span", ve, "Cargando...")) : j(i.$slots, "default", { key: 0 })
895
895
  ]),
896
896
  _: 3
897
897
  }, 16, ["class", "title"]));
898
898
  }
899
- }), ue = {
899
+ }), xe = {
900
900
  key: 0,
901
901
  class: "dk:relative dk:overflow-hidden dk:rounded-t-lg"
902
- }, ce = ["src", "alt"], Ne = /* @__PURE__ */ j({
902
+ }, ye = ["src", "alt"], He = /* @__PURE__ */ P({
903
903
  __name: "DuiCard",
904
904
  props: {
905
905
  size: { default: "m" },
906
906
  image: { default: void 0 },
907
907
  title: { default: void 0 },
908
908
  subtitle: { default: void 0 },
909
- to: { default: void 0 }
909
+ to: { default: void 0 },
910
+ nuxt: { type: Boolean, default: !1 }
910
911
  },
911
912
  setup(r) {
912
- const e = r, o = I(), a = o == null ? void 0 : o.appContext.app, l = c(() => {
913
- try {
914
- return !!(a != null && a.config.globalProperties.$router || a != null && a.config.globalProperties.$route || globalThis.VueRouter || a != null && a.component("RouterLink"));
915
- } catch {
916
- return !1;
917
- }
918
- }), g = c(() => {
919
- try {
920
- return !!(globalThis.$nuxt || globalThis.useNuxtApp || globalThis.navigateTo || typeof window < "u" && window.$nuxt || a != null && a.component("NuxtLink"));
921
- } catch {
922
- return !1;
923
- }
924
- }), b = () => e.to ? g.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "div", y = () => e.to ? g.value ? "NuxtLink" : l.value ? "RouterLink" : "a" : "h3", n = () => {
925
- const k = {};
926
- if (!e.to) return k;
927
- const L = b();
928
- return L === "a" ? k.href = typeof e.to == "string" ? e.to : "#" : (L === "RouterLink" || L === "NuxtLink") && (k.to = e.to), k;
929
- }, v = {
913
+ const e = r, k = () => e.to ? L(e.to, e.nuxt) : "div", n = () => e.to ? L(e.to, e.nuxt) : "h3", l = () => {
914
+ const g = k();
915
+ return R(e.to, g);
916
+ }, u = {
930
917
  s: {
931
918
  padding: "dk:p-3",
932
919
  spacing: "dk:space-y-2",
@@ -948,131 +935,162 @@ const H = { key: 1 }, G = `
948
935
  subtitleSize: "dk:text-lg",
949
936
  contentSize: "dk:text-lg"
950
937
  }
951
- }, s = c(() => [
952
- // Base card styles
953
- "dk:bg-white dk:rounded-lg dk:shadow-md dk:border dk:border-gray-200",
954
- "dk:dark:bg-gray-800 dk:dark:border-gray-700 dk:dark:shadow-gray-900/20",
955
- "dk:transition-all dk:duration-200",
956
- "dk:hover:shadow-lg dk:dark:hover:shadow-gray-900/40",
957
- "dk:overflow-hidden"
958
- ].join(" ")), u = c(() => [
959
- "dk:w-full dk:h-48 dk:object-cover"
960
- ].join(" ")), f = c(() => {
961
- const k = v[e.size];
938
+ }, p = c(() => [
939
+ // Glassmorphism card styles (Windows Vista inspired)
940
+ "dk:relative dk:bg-gradient-to-br dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
941
+ "dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60",
942
+ "dk:backdrop-blur-md dk:backdrop-brightness-110",
943
+ "dk:rounded-xl dk:border dk:border-white/40 dk:dark:border-white/10",
944
+ "dk:shadow-xl dk:shadow-black/10 dk:dark:shadow-black/30",
945
+ "dk:transition-all dk:duration-300",
946
+ "dk:hover:shadow-2xl dk:hover:shadow-black/15 dk:dark:hover:shadow-black/40",
947
+ "dk:hover:border-white/50 dk:dark:hover:border-white/20",
948
+ "dk:hover:backdrop-brightness-125 dk:dark:hover:backdrop-brightness-110",
949
+ "dk:overflow-hidden",
950
+ // Borde superior iluminado (highlight Vista)
951
+ "dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5",
952
+ "dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
953
+ "dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"
954
+ ].join(" ")), x = c(() => [
955
+ "dk:w-full dk:h-48 dk:object-cover",
956
+ "dk:relative dk:z-10"
957
+ ].join(" ")), i = c(() => {
958
+ const g = u[e.size];
962
959
  return [
963
- k.padding,
964
- k.spacing
960
+ g.padding,
961
+ g.spacing,
962
+ // Glass effect for content wrapper
963
+ "dk:relative dk:z-10"
965
964
  ].join(" ");
966
- }), N = c(() => [
967
- v[e.size].spacing
968
- ].join(" ")), P = c(() => {
969
- const L = [
970
- v[e.size].titleSize,
965
+ }), v = c(() => [
966
+ u[e.size].spacing
967
+ ].join(" ")), a = c(() => {
968
+ const M = [
969
+ u[e.size].titleSize,
971
970
  "dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100",
972
971
  "dk:line-clamp-2"
973
972
  ];
974
- return e.to && L.push(
973
+ return e.to && M.push(
975
974
  "dk:no-underline dk:hover:underline dk:transition-colors",
976
975
  "dk:hover:text-blue-600 dk:dark:hover:text-blue-400"
977
- ), L.join(" ");
978
- }), M = c(() => {
979
- const k = [
976
+ ), M.join(" ");
977
+ }), b = c(() => {
978
+ const g = [
980
979
  "dk:block",
981
- "dk:transition-transform dk:duration-200",
982
- "dk:hover:scale-105"
980
+ "dk:transition-transform dk:duration-300",
981
+ "dk:hover:scale-105",
982
+ "dk:relative dk:z-10"
983
983
  ];
984
- return e.to && k.push("dk:no-underline"), k.join(" ");
985
- }), x = c(() => [
986
- v[e.size].subtitleSize,
984
+ return e.to && g.push("dk:no-underline"), g.join(" ");
985
+ }), z = c(() => [
986
+ u[e.size].subtitleSize,
987
987
  "dk:text-gray-600 dk:dark:text-gray-400",
988
988
  "dk:line-clamp-3"
989
- ].join(" ")), w = c(() => [
990
- v[e.size].contentSize,
989
+ ].join(" ")), A = c(() => [
990
+ u[e.size].contentSize,
991
991
  "dk:text-gray-700 dk:dark:text-gray-300"
992
- ].join(" ")), i = c(() => [
993
- "dk:border-t dk:border-gray-200 dk:dark:border-gray-700",
994
- "dk:pt-3 dk:mt-3"
992
+ ].join(" ")), I = c(() => [
993
+ "dk:border-t dk:border-gray-300/40 dk:dark:border-white/10",
994
+ "dk:pt-3 dk:mt-3",
995
+ "dk:relative dk:z-10"
995
996
  ].join(" "));
996
- return (k, L) => (d(), t("div", {
997
- class: h(s.value)
997
+ return (g, M) => (d(), t("div", {
998
+ class: f(p.value)
998
999
  }, [
999
- k.image ? (d(), t("div", ue, [
1000
- (d(), V(D(b()), C(n(), { class: M.value }), {
1001
- default: T(() => [
1002
- p("img", {
1003
- src: k.image,
1004
- alt: k.title || "Card image",
1005
- class: h(u.value)
1006
- }, null, 10, ce)
1000
+ g.image ? (d(), t("div", xe, [
1001
+ (d(), V(B(k()), C(l(), { class: b.value }), {
1002
+ default: D(() => [
1003
+ h("img", {
1004
+ src: g.image,
1005
+ alt: g.title || "Card image",
1006
+ class: f(x.value)
1007
+ }, null, 10, ye)
1007
1008
  ]),
1008
1009
  _: 1
1009
1010
  }, 16, ["class"]))
1010
1011
  ])) : m("", !0),
1011
- p("div", {
1012
- class: h(f.value)
1012
+ h("div", {
1013
+ class: f(i.value)
1013
1014
  }, [
1014
- k.title || k.subtitle ? (d(), t("div", {
1015
+ g.title || g.subtitle ? (d(), t("div", {
1015
1016
  key: 0,
1016
- class: h(N.value)
1017
+ class: f(v.value)
1017
1018
  }, [
1018
- k.title ? (d(), V(D(y()), C({ key: 0 }, n(), { class: P.value }), {
1019
- default: T(() => [
1020
- S(z(k.title), 1)
1019
+ g.title ? (d(), V(B(n()), C({ key: 0 }, l(), { class: a.value }), {
1020
+ default: D(() => [
1021
+ $(w(g.title), 1)
1021
1022
  ]),
1022
1023
  _: 1
1023
1024
  }, 16, ["class"])) : m("", !0),
1024
- k.subtitle ? (d(), t("p", {
1025
+ g.subtitle ? (d(), t("p", {
1025
1026
  key: 1,
1026
- class: h(x.value)
1027
- }, z(k.subtitle), 3)) : m("", !0)
1027
+ class: f(z.value)
1028
+ }, w(g.subtitle), 3)) : m("", !0)
1028
1029
  ], 2)) : m("", !0),
1029
- k.$slots.default ? (d(), t("div", {
1030
+ g.$slots.default ? (d(), t("div", {
1030
1031
  key: 1,
1031
- class: h(w.value)
1032
+ class: f(A.value)
1032
1033
  }, [
1033
- _(k.$slots, "default")
1034
+ j(g.$slots, "default")
1034
1035
  ], 2)) : m("", !0),
1035
- k.$slots.footer ? (d(), t("div", {
1036
+ g.$slots.footer ? (d(), t("div", {
1036
1037
  key: 2,
1037
- class: h(i.value)
1038
+ class: f(I.value)
1038
1039
  }, [
1039
- _(k.$slots, "footer")
1040
+ j(g.$slots, "footer")
1040
1041
  ], 2)) : m("", !0)
1041
1042
  ], 2)
1042
1043
  ], 2));
1043
1044
  }
1044
- }), be = {
1045
+ }), ze = {
1045
1046
  key: 0,
1046
- class: "dk:flex dk:items-center dk:gap-4"
1047
- }, ge = { class: "dk:hidden dk:md:flex dk:items-center dk:space-x-1" }, pe = {
1047
+ class: "dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"
1048
+ }, we = { class: "dk:hidden dk:md:flex dk:items-center dk:flex-1" }, Ce = {
1048
1049
  key: 0,
1049
1050
  class: "dk:relative dk:group"
1050
- }, ve = { 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 = {
1051
- key: 2,
1052
- class: "dk:hidden dk:md:flex dk:items-center dk:gap-2"
1053
- }, 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" }, me = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, ye = { key: 0 }, fe = ["onClick"], ze = { class: "dk:flex dk:items-center dk:flex-1" }, we = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, Ce = {
1051
+ }, Se = { class: "dk:absolute dk:left-0 dk:top-full dk:min-w-48 dk:py-2 dk:mt-1 dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:rounded-lg dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-white/10 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50" }, $e = {
1052
+ key: 1,
1053
+ class: "dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"
1054
+ }, _e = {
1055
+ class: "dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",
1056
+ fill: "none",
1057
+ viewBox: "0 0 24 24"
1058
+ }, je = ["d"], Pe = { class: "dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:border-t dk:border-white/40 dk:dark:border-white/10 dk:shadow-lg dk:dark:shadow-black/30 dk:z-40" }, Ve = { class: "dk:px-4 dk:py-3 dk:space-y-2" }, Be = { key: 0 }, De = ["onClick"], Te = { class: "dk:flex dk:items-center" }, Me = { class: "dk:ml-4 dk:mt-2 dk:space-y-1" }, Ae = {
1054
1059
  key: 0,
1055
- class: "dk:pt-3 dk:border-t dk:border-gray-200 dk:dark:border-gray-700"
1056
- }, Pe = /* @__PURE__ */ j({
1060
+ class: "dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"
1061
+ }, Ue = /* @__PURE__ */ P({
1057
1062
  __name: "DuiNavbar",
1058
1063
  props: {
1059
1064
  items: { default: () => [] },
1060
1065
  size: { default: "m" },
1061
- nuxt: { type: Boolean, default: !1 }
1066
+ nuxt: { type: Boolean, default: !1 },
1067
+ itemsAlignment: { default: "left" },
1068
+ underlineColor: { default: "primary" }
1062
1069
  },
1063
1070
  setup(r) {
1064
- const e = r, o = I(), a = q(!1), l = E({}), g = (x) => O(x.to, e.nuxt), b = (x) => {
1065
- const w = g(x);
1066
- return W(x.to, w);
1067
- }, y = () => {
1068
- a.value = !a.value;
1069
- }, n = () => {
1070
- a.value = !1, Object.keys(l).forEach((x) => {
1071
- l[x] = !1;
1071
+ const e = r, k = E(!1), n = Y({}), l = (s) => L(s.to, e.nuxt), u = (s) => {
1072
+ const S = l(s);
1073
+ return R(s.to, S);
1074
+ }, p = () => {
1075
+ k.value = !k.value;
1076
+ }, x = () => {
1077
+ k.value = !1, Object.keys(n).forEach((s) => {
1078
+ n[s] = !1;
1072
1079
  });
1073
- }, v = (x) => {
1074
- l[x] = !l[x];
1075
- }, s = {
1080
+ }, i = (s) => {
1081
+ n[s] = !n[s];
1082
+ }, v = (s) => {
1083
+ if (!s.to) return !1;
1084
+ const S = typeof s.to == "string" ? s.to : s.to.path || "";
1085
+ try {
1086
+ if (typeof window < "u") {
1087
+ const o = window.location.pathname;
1088
+ return o === S || o.startsWith(S + "/");
1089
+ }
1090
+ } catch {
1091
+ }
1092
+ return !1;
1093
+ }, a = {
1076
1094
  s: {
1077
1095
  height: "dk:h-12",
1078
1096
  padding: "dk:px-3",
@@ -1091,239 +1109,258 @@ const H = { key: 1 }, G = `
1091
1109
  text: "dk:text-lg",
1092
1110
  itemPadding: "dk:px-4 dk:py-3"
1093
1111
  }
1094
- }, u = c(() => {
1095
- const x = s[e.size];
1112
+ }, b = c(() => {
1113
+ const s = a[e.size];
1096
1114
  return [
1097
- // Base classes
1098
- "dk:relative dk:bg-white dk:border-b dk:border-gray-200 dk:shadow-sm",
1099
- "dk:dark:bg-gray-800 dk:dark:border-gray-700",
1100
- "dk:flex dk:items-center dk:w-full",
1101
- // Conditional justify based on slots
1102
- !!(o != null && o.slots.brand || o != null && o.slots.actions) ? "dk:justify-between" : "dk:justify-center dk:md:justify-start",
1103
- x.height,
1104
- x.padding,
1105
- x.text
1115
+ // Glassmorphism navbar styles (Windows Vista inspired)
1116
+ "dk:relative dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80",
1117
+ "dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60",
1118
+ "dk:backdrop-blur-md dk:backdrop-brightness-110",
1119
+ "dk:border-b dk:border-white/40 dk:dark:border-white/10",
1120
+ "dk:shadow-lg dk:shadow-black/10 dk:dark:shadow-black/30",
1121
+ // Borde superior iluminado (highlight Vista)
1122
+ "dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5",
1123
+ "dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent",
1124
+ "dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent",
1125
+ "dk:flex dk:items-center dk:w-full dk:gap-4",
1126
+ s.height,
1127
+ s.padding,
1128
+ s.text
1106
1129
  ].join(" ");
1107
- }), f = c(() => [
1108
- // Base styles
1109
- "dk:flex dk:items-center dk:rounded-lg dk:transition-all dk:duration-200",
1110
- "dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-gray-100",
1111
- "dk:dark:text-gray-300 dk:dark:hover:text-gray-100 dk:dark:hover:bg-gray-700",
1112
- "dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-gray-200 dk:dark:focus:ring-gray-600",
1113
- "dk:no-underline",
1114
- s[e.size].itemPadding
1115
- ].join(" ")), N = c(() => [
1130
+ }), z = c(() => [
1131
+ "dk:flex dk:items-center dk:space-x-1 dk:flex-1",
1132
+ {
1133
+ left: "dk:justify-start",
1134
+ center: "dk:justify-center",
1135
+ right: "dk:justify-end"
1136
+ }[e.itemsAlignment]
1137
+ ].join(" ")), A = () => {
1138
+ const s = {
1139
+ neutral: "dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",
1140
+ primary: "dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",
1141
+ secondary: "dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",
1142
+ success: "dk:before:from-emerald-500 dk:before:to-emerald-600 dk:dark:before:from-emerald-400 dk:dark:before:to-emerald-500",
1143
+ danger: "dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",
1144
+ warning: "dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"
1145
+ };
1146
+ return s[e.underlineColor] || s.primary;
1147
+ }, I = c(() => {
1148
+ const s = a[e.size], S = A();
1149
+ return (o, y = !0) => {
1150
+ const F = v(o), H = y ? "dk:pl-3" : "dk:pl-2", U = "dk:pr-3", G = y ? "dk:pl-2" : "dk:pl-1", J = "dk:pr-2", K = y ? "dk:pl-4" : "dk:pl-3", Q = "dk:pr-4";
1151
+ let N = "";
1152
+ return s.itemPadding.includes("px-2") ? N = `${G} ${J} dk:py-1.5` : s.itemPadding.includes("px-4") ? N = `${K} ${Q} dk:py-3` : N = `${H} ${U} dk:py-2`, [
1153
+ // Block style with animated underline
1154
+ "dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300",
1155
+ "dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
1156
+ "dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-blue-400 dk:focus:ring-opacity-50 dk:dark:focus:ring-blue-300",
1157
+ "dk:no-underline",
1158
+ // Animated underline effect
1159
+ "dk:before:absolute dk:before:bottom-0 dk:before:left-0 dk:before:h-0.5",
1160
+ "dk:before:bg-gradient-to-r",
1161
+ S,
1162
+ "dk:before:transition-all dk:before:duration-300",
1163
+ F ? "dk:before:w-full dk:text-gray-900 dk:dark:text-gray-100" : "dk:before:w-0 dk:hover:before:w-full",
1164
+ N
1165
+ ].join(" ");
1166
+ };
1167
+ }), g = c(() => [
1116
1168
  "dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm",
1117
- "dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900",
1118
- "dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
1119
- "dk:transition-colors dk:duration-200 dk:no-underline"
1120
- ].join(" ")), P = c(() => [
1121
- "dk:flex dk:items-center dk:justify-between dk:w-full dk:text-left dk:px-3 dk:py-2",
1122
- "dk:text-gray-700 dk:hover:bg-gray-100 dk:hover:text-gray-900 dk:rounded-lg",
1123
- "dk:dark:text-gray-300 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-100",
1124
- "dk:transition-colors dk:duration-200 dk:no-underline"
1169
+ "dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-white/50 dk:dark:hover:bg-white/10",
1170
+ "dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
1171
+ "dk:transition-all dk:duration-200 dk:no-underline",
1172
+ "dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"
1125
1173
  ].join(" ")), M = c(() => [
1174
+ "dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2",
1175
+ "dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg",
1176
+ "dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15",
1177
+ "dk:dark:text-gray-300 dk:dark:hover:text-gray-100",
1178
+ "dk:border dk:border-white/20 dk:dark:border-white/10 dk:hover:border-white/40 dk:dark:hover:border-white/20",
1179
+ "dk:transition-all dk:duration-200 dk:no-underline"
1180
+ ].join(" ")), O = c(() => [
1126
1181
  "dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg",
1127
- "dk:text-gray-600 dk:hover:bg-gray-100 dk:hover:text-gray-800",
1128
- "dk:dark:text-gray-400 dk:dark:hover:bg-gray-700 dk:dark:hover:text-gray-200",
1129
- "dk:transition-colors dk:duration-200 dk:no-underline"
1182
+ "dk:text-gray-600 dk:hover:text-gray-800 dk:hover:bg-white/30 dk:dark:hover:bg-white/10",
1183
+ "dk:dark:text-gray-400 dk:dark:hover:text-gray-200",
1184
+ "dk:border-l-2 dk:border-transparent dk:hover:border-blue-500",
1185
+ "dk:transition-all dk:duration-200 dk:no-underline"
1130
1186
  ].join(" "));
1131
- return (x, w) => (d(), t("nav", {
1132
- class: h(u.value)
1187
+ return (s, S) => (d(), t("nav", {
1188
+ class: f(b.value)
1133
1189
  }, [
1134
- x.$slots.brand ? (d(), t("div", be, [
1135
- _(x.$slots, "brand"),
1136
- p("button", {
1137
- type: "button",
1138
- 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: y
1140
- }, w[0] || (w[0] = [
1141
- p("span", { class: "dk:sr-only" }, "Open main menu", -1),
1142
- p("svg", {
1143
- class: "dk:w-5 dk:h-5",
1144
- fill: "none",
1145
- stroke: "currentColor",
1146
- viewBox: "0 0 24 24"
1147
- }, [
1148
- p("path", {
1149
- "stroke-linecap": "round",
1150
- "stroke-linejoin": "round",
1151
- "stroke-width": "2",
1152
- d: "M4 6h16M4 12h16M4 18h16"
1153
- })
1154
- ], -1)
1155
- ]))
1190
+ s.$slots.brand ? (d(), t("div", ze, [
1191
+ j(s.$slots, "brand")
1156
1192
  ])) : m("", !0),
1157
- x.$slots.brand ? m("", !0) : (d(), t("button", {
1158
- key: 1,
1159
- type: "button",
1160
- 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",
1161
- onClick: y
1162
- }, w[1] || (w[1] = [
1163
- p("span", { class: "dk:sr-only" }, "Open main menu", -1),
1164
- p("svg", {
1165
- class: "dk:w-5 dk:h-5",
1166
- fill: "none",
1167
- stroke: "currentColor",
1168
- viewBox: "0 0 24 24"
1169
- }, [
1170
- p("path", {
1171
- "stroke-linecap": "round",
1172
- "stroke-linejoin": "round",
1173
- "stroke-width": "2",
1174
- d: "M4 6h16M4 12h16M4 18h16"
1175
- })
1176
- ], -1)
1177
- ]))),
1178
- p("div", ge, [
1179
- (d(!0), t($, null, B(x.items, (i) => (d(), t($, {
1180
- key: i.label
1193
+ h("div", we, [
1194
+ h("div", {
1195
+ class: f(z.value)
1181
1196
  }, [
1182
- i.children && i.children.length > 0 ? (d(), t("div", pe, [
1183
- (d(), V(D(g(i)), C({ ref_for: !0 }, b(i), { class: f.value }), {
1184
- default: T(() => [
1185
- i.icon ? (d(), t("i", {
1186
- key: 0,
1187
- class: h([i.icon, "dk:mr-2"])
1188
- }, null, 2)) : m("", !0),
1189
- S(" " + z(i.label) + " ", 1),
1190
- w[2] || (w[2] = p("svg", {
1191
- class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
1192
- fill: "none",
1193
- stroke: "currentColor",
1194
- viewBox: "0 0 24 24"
1195
- }, [
1196
- p("path", {
1197
- "stroke-linecap": "round",
1198
- "stroke-linejoin": "round",
1199
- "stroke-width": "2",
1200
- d: "M19 9l-7 7-7-7"
1201
- })
1202
- ], -1))
1203
- ]),
1204
- _: 2
1205
- }, 1040, ["class"])),
1206
- p("div", ve, [
1207
- (d(!0), t($, null, B(i.children, (k) => (d(), V(D(g(k)), C({
1208
- key: k.label,
1209
- ref_for: !0
1210
- }, b(k), { class: N.value }), {
1211
- default: T(() => [
1212
- k.icon ? (d(), t("i", {
1197
+ (d(!0), t(_, null, T(s.items, (o) => (d(), t(_, {
1198
+ key: o.label
1199
+ }, [
1200
+ o.children && o.children.length > 0 ? (d(), t("div", Ce, [
1201
+ (d(), V(B(l(o)), C({ ref_for: !0 }, u(o), {
1202
+ class: I.value(o, !0)
1203
+ }), {
1204
+ default: D(() => [
1205
+ o.icon ? (d(), t("i", {
1213
1206
  key: 0,
1214
- class: h([k.icon, "dk:mr-2"])
1207
+ class: f([o.icon, "dk:mr-2"])
1215
1208
  }, null, 2)) : m("", !0),
1216
- S(" " + z(k.label), 1)
1209
+ $(" " + w(o.label) + " ", 1),
1210
+ S[0] || (S[0] = h("svg", {
1211
+ class: "dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",
1212
+ fill: "none",
1213
+ stroke: "currentColor",
1214
+ viewBox: "0 0 24 24"
1215
+ }, [
1216
+ h("path", {
1217
+ "stroke-linecap": "round",
1218
+ "stroke-linejoin": "round",
1219
+ "stroke-width": "2",
1220
+ d: "M19 9l-7 7-7-7"
1221
+ })
1222
+ ], -1))
1217
1223
  ]),
1218
1224
  _: 2
1219
- }, 1040, ["class"]))), 128))
1220
- ])
1221
- ])) : (d(), V(D(g(i)), C({
1222
- key: 1,
1223
- ref_for: !0
1224
- }, b(i), { class: f.value }), {
1225
- default: T(() => [
1226
- i.icon ? (d(), t("i", {
1227
- key: 0,
1228
- class: h([i.icon, "dk:mr-2"])
1229
- }, null, 2)) : m("", !0),
1230
- S(" " + z(i.label), 1)
1231
- ]),
1232
- _: 2
1233
- }, 1040, ["class"]))
1234
- ], 64))), 128))
1225
+ }, 1040, ["class"])),
1226
+ h("div", Se, [
1227
+ (d(!0), t(_, null, T(o.children, (y) => (d(), V(B(l(y)), C({
1228
+ key: y.label,
1229
+ ref_for: !0
1230
+ }, u(y), { class: g.value }), {
1231
+ default: D(() => [
1232
+ y.icon ? (d(), t("i", {
1233
+ key: 0,
1234
+ class: f([y.icon, "dk:mr-2"])
1235
+ }, null, 2)) : m("", !0),
1236
+ $(" " + w(y.label), 1)
1237
+ ]),
1238
+ _: 2
1239
+ }, 1040, ["class"]))), 128))
1240
+ ])
1241
+ ])) : (d(), V(B(l(o)), C({
1242
+ key: 1,
1243
+ ref_for: !0
1244
+ }, u(o), {
1245
+ class: I.value(o, !1)
1246
+ }), {
1247
+ default: D(() => [
1248
+ o.icon ? (d(), t("i", {
1249
+ key: 0,
1250
+ class: f([o.icon, "dk:mr-2"])
1251
+ }, null, 2)) : m("", !0),
1252
+ $(" " + w(o.label), 1)
1253
+ ]),
1254
+ _: 2
1255
+ }, 1040, ["class"]))
1256
+ ], 64))), 128))
1257
+ ], 2)
1235
1258
  ]),
1236
- x.$slots.actions ? (d(), t("div", xe, [
1237
- _(x.$slots, "actions")
1259
+ s.$slots.actions ? (d(), t("div", $e, [
1260
+ j(s.$slots, "actions")
1238
1261
  ])) : m("", !0),
1239
- R(p("div", he, [
1240
- p("div", me, [
1241
- (d(!0), t($, null, B(x.items, (i) => (d(), t($, {
1242
- key: i.label
1262
+ h("button", {
1263
+ type: "button",
1264
+ onClick: p,
1265
+ class: "dk:md:hidden dk:ml-auto dk:flex-shrink-0 dk:p-2 dk:rounded-md dk:hover:bg-gray-100 dk:dark:hover:bg-gray-700 dk:transition-colors"
1266
+ }, [
1267
+ (d(), t("svg", _e, [
1268
+ h("path", {
1269
+ "stroke-linecap": "round",
1270
+ "stroke-linejoin": "round",
1271
+ "stroke-width": "2",
1272
+ d: k.value ? "M6 18L18 6M6 6l12 12" : "M4 6h16M4 12h16M4 18h16"
1273
+ }, null, 8, je)
1274
+ ]))
1275
+ ]),
1276
+ W(h("div", Pe, [
1277
+ h("div", Ve, [
1278
+ (d(!0), t(_, null, T(s.items, (o) => (d(), t(_, {
1279
+ key: o.label
1243
1280
  }, [
1244
- i.children && i.children.length > 0 ? (d(), t("div", ye, [
1245
- p("button", {
1281
+ o.children && o.children.length > 0 ? (d(), t("div", Be, [
1282
+ h("button", {
1246
1283
  type: "button",
1247
- onClick: (k) => v(i.label),
1248
- class: h(P.value)
1284
+ onClick: (y) => i(o.label),
1285
+ class: f([M.value, "dk:justify-between"])
1249
1286
  }, [
1250
- p("div", ze, [
1251
- i.icon ? (d(), t("i", {
1287
+ h("div", Te, [
1288
+ o.icon ? (d(), t("i", {
1252
1289
  key: 0,
1253
- class: h([i.icon, "dk:mr-2"])
1290
+ class: f([o.icon, "dk:mr-2"])
1254
1291
  }, null, 2)) : m("", !0),
1255
- S(" " + z(i.label), 1)
1292
+ $(" " + w(o.label), 1)
1256
1293
  ]),
1257
1294
  (d(), t("svg", {
1258
- class: h(["dk:w-4 dk:h-4 dk:transform dk:transition-transform", l[i.label] ? "dk:rotate-180" : ""]),
1295
+ class: f(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0", n[o.label] ? "dk:rotate-180" : ""]),
1259
1296
  fill: "none",
1260
1297
  stroke: "currentColor",
1261
1298
  viewBox: "0 0 24 24"
1262
- }, w[3] || (w[3] = [
1263
- p("path", {
1299
+ }, S[1] || (S[1] = [
1300
+ h("path", {
1264
1301
  "stroke-linecap": "round",
1265
1302
  "stroke-linejoin": "round",
1266
1303
  "stroke-width": "2",
1267
1304
  d: "M19 9l-7 7-7-7"
1268
1305
  }, null, -1)
1269
1306
  ]), 2))
1270
- ], 10, fe),
1271
- R(p("div", we, [
1272
- (d(!0), t($, null, B(i.children, (k) => (d(), V(D(g(k)), C({
1273
- key: k.label,
1307
+ ], 10, De),
1308
+ W(h("div", Me, [
1309
+ (d(!0), t(_, null, T(o.children, (y) => (d(), V(B(l(y)), C({
1310
+ key: y.label,
1274
1311
  ref_for: !0
1275
- }, b(k), {
1276
- class: M.value,
1277
- onClick: n
1312
+ }, u(y), {
1313
+ class: O.value,
1314
+ onClick: x
1278
1315
  }), {
1279
- default: T(() => [
1280
- k.icon ? (d(), t("i", {
1316
+ default: D(() => [
1317
+ y.icon ? (d(), t("i", {
1281
1318
  key: 0,
1282
- class: h([k.icon, "dk:mr-2"])
1319
+ class: f([y.icon, "dk:mr-2"])
1283
1320
  }, null, 2)) : m("", !0),
1284
- S(" " + z(k.label), 1)
1321
+ $(" " + w(y.label), 1)
1285
1322
  ]),
1286
1323
  _: 2
1287
1324
  }, 1040, ["class"]))), 128))
1288
1325
  ], 512), [
1289
- [A, l[i.label]]
1326
+ [q, n[o.label]]
1290
1327
  ])
1291
- ])) : (d(), V(D(g(i)), C({
1328
+ ])) : (d(), V(B(l(o)), C({
1292
1329
  key: 1,
1293
1330
  ref_for: !0
1294
- }, b(i), {
1295
- class: P.value,
1296
- onClick: n
1331
+ }, u(o), {
1332
+ class: M.value,
1333
+ onClick: x
1297
1334
  }), {
1298
- default: T(() => [
1299
- i.icon ? (d(), t("i", {
1335
+ default: D(() => [
1336
+ o.icon ? (d(), t("i", {
1300
1337
  key: 0,
1301
- class: h([i.icon, "dk:mr-2"])
1338
+ class: f([o.icon, "dk:mr-2"])
1302
1339
  }, null, 2)) : m("", !0),
1303
- S(" " + z(i.label), 1)
1340
+ $(" " + w(o.label), 1)
1304
1341
  ]),
1305
1342
  _: 2
1306
1343
  }, 1040, ["class"]))
1307
1344
  ], 64))), 128)),
1308
- x.$slots.actions ? (d(), t("div", Ce, [
1309
- _(x.$slots, "actions")
1345
+ s.$slots.actions ? (d(), t("div", Ae, [
1346
+ j(s.$slots, "actions")
1310
1347
  ])) : m("", !0)
1311
1348
  ])
1312
1349
  ], 512), [
1313
- [A, a.value]
1350
+ [q, k.value]
1314
1351
  ])
1315
1352
  ], 2));
1316
1353
  }
1317
1354
  });
1318
1355
  export {
1319
- Le as DuiAction,
1320
- Te as DuiAlert,
1321
- $e as DuiButton,
1322
- Ne as DuiCard,
1323
- _e as DuiInput,
1324
- De as DuiLabel,
1325
- Pe as DuiNavbar,
1326
- Ve as DuiSelect,
1327
- Be as DuiTable,
1328
- je as DuiTextarea
1356
+ Fe as DuiAction,
1357
+ Ee as DuiAlert,
1358
+ Ie as DuiButton,
1359
+ He as DuiCard,
1360
+ Ne as DuiInput,
1361
+ qe as DuiLabel,
1362
+ Ue as DuiNavbar,
1363
+ We as DuiSelect,
1364
+ Oe as DuiTable,
1365
+ Re as DuiTextarea
1329
1366
  };