manolis-ui 0.14.0 → 0.14.2

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,8 +1,8 @@
1
- import { defineComponent as P, computed as _, createElementBlock as r, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as ue, createElementVNode as l, Fragment as j, renderList as E, toDisplayString as O, ref as k, watch as A, h as se, onMounted as K, withDirectives as ee, createVNode as G, isRef as pe, vModelCheckbox as he, unref as U, provide as ge, normalizeStyle as Z, inject as be, useId as ye, defineAsyncComponent as te, nextTick as le, onBeforeUnmount as ie, withModifiers as H, createBlock as W, resolveDynamicComponent as ne, mergeProps as ae, withKeys as re, resolveComponent as oe, withCtx as ce, vModelText as me, useSlots as we, Comment as xe, vShow as ke, onUnmounted as $e } from "vue";
1
+ import { defineComponent as P, computed as U, createElementBlock as r, openBlock as a, normalizeClass as M, createCommentVNode as T, renderSlot as V, createTextVNode as ue, createElementVNode as l, Fragment as j, renderList as E, toDisplayString as O, ref as k, watch as A, h as se, onMounted as K, withDirectives as ee, createVNode as G, isRef as pe, vModelCheckbox as he, unref as F, provide as ge, normalizeStyle as Z, inject as be, useId as ye, defineAsyncComponent as te, nextTick as le, onBeforeUnmount as ie, withModifiers as H, createBlock as W, resolveDynamicComponent as ne, mergeProps as ae, withKeys as re, resolveComponent as oe, withCtx as ce, vModelText as me, useSlots as we, Comment as xe, vShow as ke, onUnmounted as $e } from "vue";
2
2
  const Ce = ["disabled"], Se = {
3
3
  key: 0,
4
4
  class: "loading loading-spinner"
5
- }, Ll = /* @__PURE__ */ P({
5
+ }, El = /* @__PURE__ */ P({
6
6
  __name: "ButtonComponent",
7
7
  props: {
8
8
  outlined: { type: Boolean, default: !1 },
@@ -14,7 +14,7 @@ const Ce = ["disabled"], Se = {
14
14
  disabled: { type: Boolean, default: !1 }
15
15
  },
16
16
  setup(e) {
17
- const c = e, t = _(() => {
17
+ const c = e, t = U(() => {
18
18
  switch (c.size) {
19
19
  case "large":
20
20
  return "btn-lg";
@@ -29,7 +29,7 @@ const Ce = ["disabled"], Se = {
29
29
  default:
30
30
  return "";
31
31
  }
32
- }), o = _(() => {
32
+ }), o = U(() => {
33
33
  switch (c.type) {
34
34
  case "neutral":
35
35
  return "btn-neutral";
@@ -54,7 +54,7 @@ const Ce = ["disabled"], Se = {
54
54
  default:
55
55
  return "btn-neutral";
56
56
  }
57
- }), u = _(() => {
57
+ }), u = U(() => {
58
58
  switch (c.shape) {
59
59
  case "square":
60
60
  return "btn-square";
@@ -84,7 +84,7 @@ const Ce = ["disabled"], Se = {
84
84
  }), Ie = {
85
85
  tabindex: "0",
86
86
  class: "z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"
87
- }, Te = ["href"], El = /* @__PURE__ */ P({
87
+ }, Te = ["href"], Al = /* @__PURE__ */ P({
88
88
  __name: "dropdown",
89
89
  props: {
90
90
  items: {},
@@ -122,7 +122,7 @@ const Ce = ["disabled"], Se = {
122
122
  ])
123
123
  ], 2));
124
124
  }
125
- }), Me = { class: "modal-box" }, Ve = { class: "modal-action" }, Al = /* @__PURE__ */ P({
125
+ }), Me = { class: "modal-box" }, Ve = { class: "modal-action" }, Rl = /* @__PURE__ */ P({
126
126
  __name: "modal",
127
127
  props: {
128
128
  position: { default: "center" },
@@ -179,7 +179,7 @@ const Ce = ["disabled"], Se = {
179
179
  ], 2)
180
180
  ], 64));
181
181
  }
182
- }), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" }, Rl = /* @__PURE__ */ P({
182
+ }), Be = { class: "flex justify-center items-center swap-on" }, De = { class: "flex justify-center items-center swap-off" }, Nl = /* @__PURE__ */ P({
183
183
  __name: "swap",
184
184
  props: {
185
185
  effect: {}
@@ -323,7 +323,7 @@ const Ee = Q("SunIcon", [
323
323
  }), A(t, (o) => {
324
324
  typeof window < "u" && window.localStorage.setItem(e, JSON.stringify(o));
325
325
  }), t;
326
- }, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"], Nl = /* @__PURE__ */ P({
326
+ }, Re = { class: "swap-rotate swap" }, Ne = ["true-value", "false-value"], _l = /* @__PURE__ */ P({
327
327
  __name: "theme-controller",
328
328
  props: {
329
329
  lightTheme: { default: "light" },
@@ -344,13 +344,13 @@ const Ee = Q("SunIcon", [
344
344
  "true-value": c.lightTheme,
345
345
  "false-value": c.darkTheme
346
346
  }, null, 8, Ne), [
347
- [he, U(t)]
347
+ [he, F(t)]
348
348
  ]),
349
- G(U(Ee), { class: "swap-off fill-current" }),
350
- G(U(Le), { class: "swap-on fill-current" })
349
+ G(F(Ee), { class: "swap-off fill-current" }),
350
+ G(F(Le), { class: "swap-on fill-current" })
351
351
  ]));
352
352
  }
353
- }), Fe = ["name"], Ue = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, _e = { class: "collapse-content" }, qe = ["innerHTML"], Fl = /* @__PURE__ */ P({
353
+ }), _e = ["name"], Fe = { class: "collapse-title font-bold text-2xl lg:text-4xl" }, Ue = { class: "collapse-content" }, qe = ["innerHTML"], Fl = /* @__PURE__ */ P({
354
354
  __name: "accordion",
355
355
  props: {
356
356
  name: {},
@@ -368,9 +368,9 @@ const Ee = Q("SunIcon", [
368
368
  type: "radio",
369
369
  name: e.name,
370
370
  value: "true"
371
- }, null, 8, Fe),
372
- l("div", Ue, O(u.title), 1),
373
- l("div", _e, [
371
+ }, null, 8, _e),
372
+ l("div", Fe, O(u.title), 1),
373
+ l("div", Ue, [
374
374
  l("span", {
375
375
  innerHTML: u.content
376
376
  }, null, 8, qe)
@@ -411,7 +411,7 @@ const Ee = Q("SunIcon", [
411
411
  ], 2))
412
412
  ], 2));
413
413
  }
414
- }), _l = /* @__PURE__ */ P({
414
+ }), ql = /* @__PURE__ */ P({
415
415
  __name: "badge",
416
416
  props: {
417
417
  color: { default: "neutral" },
@@ -453,7 +453,7 @@ const Ee = Q("SunIcon", [
453
453
  }, Ze = { class: "flex-col flex-nowrap mt-auto card-actions" }, Qe = {
454
454
  key: 1,
455
455
  class: "card-body"
456
- }, ql = /* @__PURE__ */ P({
456
+ }, Hl = /* @__PURE__ */ P({
457
457
  __name: "card",
458
458
  props: {
459
459
  imgUrl: { default: "" },
@@ -565,7 +565,7 @@ const Ee = Q("SunIcon", [
565
565
  }
566
566
  },
567
567
  setup(e, { expose: c }) {
568
- const t = e, o = k(t.initialSlide), u = k(null), s = k(!1), i = k(0), g = _(() => ({
568
+ const t = e, o = k(t.initialSlide), u = k(null), s = k(!1), i = k(0), g = U(() => ({
569
569
  width: `calc((100% - ${t.slidesPerView > 1 ? (t.slidesPerView - 1) * t.gap : 0}px) / ${t.slidesPerView})`
570
570
  }));
571
571
  ge(ve, g);
@@ -583,7 +583,7 @@ const Ee = Q("SunIcon", [
583
583
  return;
584
584
  }
585
585
  const b = performance.now(), n = ($) => {
586
- const h = $ - b, D = Math.min(1, h / t.slideDuration), F = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = d + f * F;
586
+ const h = $ - b, D = Math.min(1, h / t.slideDuration), _ = D < 0.5 ? 4 * D * D * D : 1 - Math.pow(-2 * D + 2, 3) / 2, q = d + f * _;
587
587
  t.sliderOrientation === "vertical" ? C.scrollTop = q : C.scrollLeft = q, D < 1 ? requestAnimationFrame(n) : (t.sliderOrientation === "vertical" ? C.scrollTop = m : C.scrollLeft = m, o.value = x, s.value = !1);
588
588
  };
589
589
  requestAnimationFrame(n);
@@ -664,18 +664,18 @@ const Ee = Q("SunIcon", [
664
664
  for (const [o, u] of c)
665
665
  t[o] = u;
666
666
  return t;
667
- }, Hl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
667
+ }, Wl = /* @__PURE__ */ J(nt, [["__scopeId", "data-v-db55a6a5"]]), at = /* @__PURE__ */ P({
668
668
  __name: "carouselItem",
669
669
  setup(e) {
670
670
  const c = be(ve, k({}));
671
671
  return (t, o) => (a(), r("div", {
672
672
  class: "w-full h-full carousel-item",
673
- style: Z(U(c))
673
+ style: Z(F(c))
674
674
  }, [
675
675
  V(t.$slots, "default", {}, void 0, !0)
676
676
  ], 4));
677
677
  }
678
- }), Wl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
678
+ }), Kl = /* @__PURE__ */ J(at, [["__scopeId", "data-v-507384bc"]]), ot = { class: "flex gap-4 bg-base-100 w-full tabs tabs-boxed" }, st = ["onClick"], it = {
679
679
  key: 0,
680
680
  class: "inline-component-wrapper flex grow justify-center items-center w-full h-full"
681
681
  }, rt = {
@@ -704,7 +704,7 @@ const Ee = Q("SunIcon", [
704
704
  emits: ["search", "update:search-data"],
705
705
  setup(e, { emit: c }) {
706
706
  const t = e, o = c, u = t.id ?? `advancedSearch-${ye()}`, s = k(null), i = k(null), g = {
707
- datetime: te(() => Promise.resolve().then(() => Pt)),
707
+ datetime: te(() => Promise.resolve().then(() => jt)),
708
708
  "standard-select": te(() => import("./select-Cz4vf_YE.js")),
709
709
  // Add other components here when you create them:
710
710
  // 'custom-range': defineAsyncComponent(() => import('./CustomRange.vue')),
@@ -813,10 +813,10 @@ const Ee = Q("SunIcon", [
813
813
  else if (s.value = { ...m, displayMode: d }, await le(), ((n = s.value) == null ? void 0 : n.displayMode) === "popup") {
814
814
  const $ = v.value[m.name];
815
815
  if ($ && S.value) {
816
- const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), F = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
816
+ const h = $.getBoundingClientRect(), D = S.value.getBoundingClientRect(), _ = h.bottom - D.top, q = h.left + h.width / 2 - D.left;
817
817
  p.value = {
818
818
  left: `${q}px`,
819
- top: `${F + 8}px`,
819
+ top: `${_ + 8}px`,
820
820
  // Add a small gap
821
821
  transform: "translateX(-50%)"
822
822
  // Center horizontally
@@ -895,13 +895,13 @@ const Ee = Q("SunIcon", [
895
895
  (a(!0), r(j, null, E(((f = t.searchOptions.find(
896
896
  (n) => n.category === t.currentCategory
897
897
  )) == null ? void 0 : f.tabs) || [], (n, $) => {
898
- var h, D, F, q, de;
898
+ var h, D, _, q, de;
899
899
  return a(), r("button", {
900
900
  key: `${n.name}-${$}`,
901
901
  onClick: H((X) => B(n), ["stop"]),
902
902
  class: M([{
903
903
  "tab-active": ((h = s.value) == null ? void 0 : h.name) === n.name,
904
- "tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((F = s.value) == null ? void 0 : F.displayMode) === "inline"
904
+ "tab-active-inline": ((D = s.value) == null ? void 0 : D.name) === n.name && ((_ = s.value) == null ? void 0 : _.displayMode) === "inline"
905
905
  // Add new class
906
906
  }, "group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),
907
907
  ref_for: !0,
@@ -942,7 +942,7 @@ const Ee = Q("SunIcon", [
942
942
  class: "ml-1 btn btn-primary btn-square",
943
943
  onClick: H(w, ["stop"])
944
944
  }, [
945
- G(U(fe), {
945
+ G(F(fe), {
946
946
  size: 24,
947
947
  color: "white"
948
948
  })
@@ -954,7 +954,7 @@ const Ee = Q("SunIcon", [
954
954
  onClick: d[4] || (d[4] = () => {
955
955
  })
956
956
  }, [
957
- G(U(fe), {
957
+ G(F(fe), {
958
958
  size: 24,
959
959
  color: "white"
960
960
  })
@@ -962,7 +962,7 @@ const Ee = Q("SunIcon", [
962
962
  ])
963
963
  ], 512),
964
964
  l("dialog", {
965
- id: `advancedSearchMobile-${U(u)}`,
965
+ id: `advancedSearchMobile-${F(u)}`,
966
966
  class: "modal"
967
967
  }, [
968
968
  l("div", vt, [
@@ -977,7 +977,7 @@ const Ee = Q("SunIcon", [
977
977
  }, [
978
978
  l("input", {
979
979
  type: "radio",
980
- name: `accordion-${U(u)}`,
980
+ name: `accordion-${F(u)}`,
981
981
  checked: $ === 0
982
982
  }, null, 8, ht),
983
983
  l("div", gt, [
@@ -1006,13 +1006,16 @@ const Ee = Q("SunIcon", [
1006
1006
  ], 64);
1007
1007
  };
1008
1008
  }
1009
- }), Kl = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-577c3624"]]), kt = { class: "z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm" }, $t = { key: 0 }, Ct = ["id"], St = {
1009
+ }), Xl = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-577c3624"]]), kt = { class: "z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm" }, $t = { key: 0 }, Ct = ["id"], St = {
1010
1010
  key: 2,
1011
1011
  class: "join items-center gap-2 w-full justify-between py-2 px-4 max-md:input max-md:input-bordered rounded"
1012
- }, It = { class: "join-item" }, Tt = ["id", "disabled"], Mt = { class: "join-item" }, Vt = ["id", "disabled"], Bt = ["id", "disabled"], Dt = {
1012
+ }, It = { class: "join-item" }, Tt = ["id", "disabled"], Mt = { class: "join-item" }, Vt = ["id", "disabled"], Bt = {
1013
+ key: 3,
1014
+ class: "px-4 min-w-xs my-2"
1015
+ }, Dt = ["id", "disabled"], zt = {
1013
1016
  key: 4,
1014
1017
  class: "flex mt-4"
1015
- }, zt = /* @__PURE__ */ P({
1018
+ }, Ot = /* @__PURE__ */ P({
1016
1019
  __name: "datetimePicker",
1017
1020
  props: {
1018
1021
  mode: { default: "datetime" },
@@ -1035,7 +1038,7 @@ const Ee = Q("SunIcon", [
1035
1038
  single: null,
1036
1039
  start: null,
1037
1040
  end: null
1038
- }), y = _(() => {
1041
+ }), y = U(() => {
1039
1042
  const d = (n) => {
1040
1043
  if (!n || n.includes(":")) return n;
1041
1044
  if (/^\d{4}-\d{2}-\d{2}$/.test(n))
@@ -1134,7 +1137,7 @@ const Ee = Q("SunIcon", [
1134
1137
  ])) : T("", !0),
1135
1138
  s.value || !t.popup ? (a(), r("div", {
1136
1139
  key: 1,
1137
- class: M(["z-50 bg-base-100 rounded-md w-full", { "absolute top-full left-0 mt-2 shadow-lg": t.popup, "mt-2": !t.popup }]),
1140
+ class: M(["z-50 bg-base-100 rounded-md w-full", { "absolute top-full left-0 mt-2 shadow-lg min-w-2xs": t.popup, "mt-2": !t.popup }]),
1138
1141
  id: `date-picker-${t.id}-popup`
1139
1142
  }, [
1140
1143
  !t.range && t.mode !== "time" ? (a(), W(n, {
@@ -1286,17 +1289,18 @@ const Ee = Q("SunIcon", [
1286
1289
  }, null, 40, Vt)
1287
1290
  ])
1288
1291
  ])) : T("", !0),
1289
- !t.range && t.mode !== "date" ? (a(), r("input", {
1290
- key: 3,
1291
- class: "open:bg-primary open:rounded w-full input input-bordered my-2 justify-center px-4 min-w-xs",
1292
- type: "time",
1293
- ref_key: "timeInput",
1294
- ref: v,
1295
- id: `${t.id}-time`,
1296
- onChange: B,
1297
- disabled: t.disabled
1298
- }, null, 40, Bt)) : T("", !0),
1299
- t.popup ? (a(), r("div", Dt, [
1292
+ !t.range && t.mode !== "date" ? (a(), r("div", Bt, [
1293
+ l("input", {
1294
+ class: "open:bg-primary open:rounded w-full input input-bordered justify-center",
1295
+ type: "time",
1296
+ ref_key: "timeInput",
1297
+ ref: v,
1298
+ id: `${t.id}-time`,
1299
+ onChange: B,
1300
+ disabled: t.disabled
1301
+ }, null, 40, Dt)
1302
+ ])) : T("", !0),
1303
+ t.popup ? (a(), r("div", zt, [
1300
1304
  l("button", {
1301
1305
  class: "btn btn-primary",
1302
1306
  onClick: R
@@ -1306,10 +1310,10 @@ const Ee = Q("SunIcon", [
1306
1310
  ], 544);
1307
1311
  };
1308
1312
  }
1309
- }), Ot = /* @__PURE__ */ J(zt, [["__scopeId", "data-v-acf7c70e"]]), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1313
+ }), Pt = /* @__PURE__ */ J(Ot, [["__scopeId", "data-v-34004a87"]]), jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1310
1314
  __proto__: null,
1311
- default: Ot
1312
- }, Symbol.toStringTag, { value: "Module" })), jt = ["value", "checked", "onChange", "disabled"], Xl = /* @__PURE__ */ P({
1315
+ default: Pt
1316
+ }, Symbol.toStringTag, { value: "Module" })), Lt = ["value", "checked", "onChange", "disabled"], Gl = /* @__PURE__ */ P({
1313
1317
  __name: "rating",
1314
1318
  props: {
1315
1319
  initialRating: { default: 0 },
@@ -1372,10 +1376,10 @@ const Ee = Q("SunIcon", [
1372
1376
  marginRight: e.halfStars && i % 2 === 0 ? `${c.gap}px` : e.halfStars ? "0" : `${c.gap}px`
1373
1377
  }),
1374
1378
  disabled: !e.isInteractive
1375
- }, null, 46, jt))), 128))
1379
+ }, null, 46, Lt))), 128))
1376
1380
  ], 2));
1377
1381
  }
1378
- }), Lt = { class: "badge" }, Et = ["onClick"], At = { class: "opacity-75" }, Rt = ["placeholder"], Gl = /* @__PURE__ */ P({
1382
+ }), Et = { class: "badge" }, At = ["onClick"], Rt = { class: "opacity-75" }, Nt = ["placeholder"], Jl = /* @__PURE__ */ P({
1379
1383
  __name: "taginput",
1380
1384
  props: {
1381
1385
  modelValue: {},
@@ -1385,7 +1389,7 @@ const Ee = Q("SunIcon", [
1385
1389
  },
1386
1390
  emits: ["update:modelValue"],
1387
1391
  setup(e, { emit: c }) {
1388
- const t = e, o = c, u = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v = _(() => s < 0 || u.value.length < s), p = () => {
1392
+ const t = e, o = c, u = k([...t.modelValue]), s = t.maxTagAmount === void 0 ? -1 : t.maxTagAmount, i = k(null), g = k(""), v = U(() => s < 0 || u.value.length < s), p = () => {
1389
1393
  const y = g.value.trim();
1390
1394
  y && !u.value.includes(y) && (u.value.push(y), o("update:modelValue", u.value), g.value = "");
1391
1395
  }, S = (y) => {
@@ -1404,13 +1408,13 @@ const Ee = Q("SunIcon", [
1404
1408
  key: x,
1405
1409
  tag: x
1406
1410
  }, () => [
1407
- l("div", Lt, [
1411
+ l("div", Et, [
1408
1412
  l("button", {
1409
1413
  class: "px-1! py-0! h-fit font-bold cursor-pointer",
1410
1414
  onClick: (C) => S(x),
1411
1415
  "aria-label": "Remove tag"
1412
- }, "X", 8, Et),
1413
- l("span", At, O(x), 1)
1416
+ }, "X", 8, At),
1417
+ l("span", Rt, O(x), 1)
1414
1418
  ])
1415
1419
  ])), 128)),
1416
1420
  V(y.$slots, "input", { showInput: v.value }, () => [
@@ -1424,21 +1428,21 @@ const Ee = Q("SunIcon", [
1424
1428
  class: "h-full input input-ghost",
1425
1429
  onKeydown: z,
1426
1430
  "aria-label": "Add tags"
1427
- }, null, 40, Rt)), [
1431
+ }, null, 40, Nt)), [
1428
1432
  [me, g.value]
1429
1433
  ]) : T("", !0)
1430
1434
  ])
1431
1435
  ], 2));
1432
1436
  }
1433
- }), Nt = { class: "w-full max-w-xs form-control" }, Ft = {
1437
+ }), _t = { class: "w-full max-w-xs form-control" }, Ft = {
1434
1438
  key: 0,
1435
1439
  class: "label"
1436
- }, Ut = { class: "label-text" }, _t = ["value"], qt = {
1440
+ }, Ut = { class: "label-text" }, qt = ["value"], Ht = {
1437
1441
  key: 0,
1438
1442
  value: "",
1439
1443
  disabled: "",
1440
1444
  selected: ""
1441
- }, Ht = ["value"], Jl = /* @__PURE__ */ P({
1445
+ }, Wt = ["value"], Zl = /* @__PURE__ */ P({
1442
1446
  __name: "select",
1443
1447
  props: {
1444
1448
  options: {},
@@ -1460,7 +1464,7 @@ const Ee = Q("SunIcon", [
1460
1464
  }
1461
1465
  // You can expose other properties or methods here if needed by the parent
1462
1466
  // e.g., the current value: modelValue
1463
- }), (v, p) => (a(), r("div", Nt, [
1467
+ }), (v, p) => (a(), r("div", _t, [
1464
1468
  e.label ? (a(), r("label", Ft, [
1465
1469
  l("span", Ut, O(e.label), 1)
1466
1470
  ])) : T("", !0),
@@ -1471,21 +1475,21 @@ const Ee = Q("SunIcon", [
1471
1475
  value: e.modelValue,
1472
1476
  onChange: i
1473
1477
  }, [
1474
- e.placeholder ? (a(), r("option", qt, O(e.placeholder), 1)) : T("", !0),
1478
+ e.placeholder ? (a(), r("option", Ht, O(e.placeholder), 1)) : T("", !0),
1475
1479
  (a(!0), r(j, null, E(e.options, (S) => (a(), r("option", {
1476
1480
  key: S.value,
1477
1481
  value: S.value
1478
- }, O(S.text), 9, Ht))), 128))
1479
- ], 40, _t)
1482
+ }, O(S.text), 9, Wt))), 128))
1483
+ ], 40, qt)
1480
1484
  ]));
1481
1485
  }
1482
- }), Wt = {
1486
+ }), Kt = {
1483
1487
  key: 0,
1484
1488
  class: "label"
1485
- }, Kt = { class: "label-text" }, Xt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Gt = ["placeholder", "disabled"], Jt = {
1489
+ }, Xt = { class: "label-text" }, Gt = ["onKeydown", "aria-expanded", "aria-activedescendant"], Jt = ["placeholder", "disabled"], Zt = {
1486
1490
  class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
1487
1491
  role: "listbox"
1488
- }, Zt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Qt = ["onMousedown", "id", "aria-selected"], Zl = {
1492
+ }, Qt = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Yt = ["onMousedown", "id", "aria-selected"], Ql = {
1489
1493
  __name: "filterableSelect",
1490
1494
  props: {
1491
1495
  // Array of options: [{ value: any, text: string }, ...]
@@ -1516,7 +1520,7 @@ const Ee = Q("SunIcon", [
1516
1520
  },
1517
1521
  emits: ["update:modelValue", "select", "clear"],
1518
1522
  setup(e, { expose: c, emit: t }) {
1519
- const o = e, u = t, s = we(), i = _(() => {
1523
+ const o = e, u = t, s = we(), i = U(() => {
1520
1524
  const $ = (s.default ? s.default() : []).filter((h) => h.type !== xe);
1521
1525
  return console.log("hasDefaultSlotContent computed:", $.length > 0), $.length > 0;
1522
1526
  }), g = k(""), v = k(null), p = k(!1), S = k(null), I = k(null), z = k(null), y = k(null), w = () => {
@@ -1525,7 +1529,7 @@ const Ee = Q("SunIcon", [
1525
1529
  p.value = !1, y.value = null, i.value || (v.value && g.value !== v.value.text ? g.value = v.value.text : v.value || (g.value = ""));
1526
1530
  }, C = () => {
1527
1531
  p.value ? x() : w();
1528
- }, B = _(() => {
1532
+ }, B = U(() => {
1529
1533
  const n = g.value ? g.value.toLowerCase() : "";
1530
1534
  return n === "" && !p.value ? [] : o.options.filter(
1531
1535
  (h) => h && h.text ? h.text.toLowerCase().includes(n) : ""
@@ -1571,7 +1575,7 @@ const Ee = Q("SunIcon", [
1571
1575
  }, b = (n) => {
1572
1576
  if (!p.value || B.value.length === 0) return;
1573
1577
  const $ = B.value.findIndex(
1574
- (D, F) => "option-" + F === y.value
1578
+ (D, _) => "option-" + _ === y.value
1575
1579
  );
1576
1580
  let h = -1;
1577
1581
  if (n.key === "ArrowDown")
@@ -1581,7 +1585,7 @@ const Ee = Q("SunIcon", [
1581
1585
  else if (n.key === "Enter" && y.value) {
1582
1586
  n.preventDefault();
1583
1587
  const D = B.value.find(
1584
- (F, q) => "option-" + q === y.value
1588
+ (_, q) => "option-" + q === y.value
1585
1589
  );
1586
1590
  D && m(D);
1587
1591
  return;
@@ -1624,8 +1628,8 @@ const Ee = Q("SunIcon", [
1624
1628
  ref_key: "componentRoot",
1625
1629
  ref: I
1626
1630
  }, [
1627
- e.label ? (a(), r("label", Wt, [
1628
- l("span", Kt, O(e.label), 1)
1631
+ e.label ? (a(), r("label", Kt, [
1632
+ l("span", Xt, O(e.label), 1)
1629
1633
  ])) : T("", !0),
1630
1634
  l("div", {
1631
1635
  class: M(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !i.value, select: !i.value }]),
@@ -1660,50 +1664,50 @@ const Ee = Q("SunIcon", [
1660
1664
  onInput: f,
1661
1665
  tabindex: "-1",
1662
1666
  disabled: o.disabled
1663
- }, null, 40, Gt)), [
1667
+ }, null, 40, Jt)), [
1664
1668
  [me, g.value]
1665
1669
  ])
1666
1670
  ]),
1667
- v.value && !e.disabled ? (a(), W(U(je), {
1671
+ v.value && !e.disabled ? (a(), W(F(je), {
1668
1672
  key: 0,
1669
1673
  size: 20,
1670
1674
  class: "mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",
1671
1675
  onClick: H(N, ["stop"])
1672
1676
  })) : T("", !0),
1673
- i.value && !v.value ? (a(), W(U(Pe), {
1677
+ i.value && !v.value ? (a(), W(F(Pe), {
1674
1678
  key: 1,
1675
1679
  class: M([{ "rotate-180": p.value }, "mx-2"]),
1676
1680
  size: 20
1677
1681
  }, null, 8, ["class"])) : T("", !0)
1678
- ], 46, Xt),
1679
- ee(l("div", Jt, [
1680
- l("ul", Zt, [
1682
+ ], 46, Gt),
1683
+ ee(l("div", Zt, [
1684
+ l("ul", Qt, [
1681
1685
  (a(!0), r(j, null, E(B.value, (h, D) => (a(), r("li", {
1682
1686
  key: h.value,
1683
- onMousedown: H((F) => m(h), ["prevent"]),
1687
+ onMousedown: H((_) => m(h), ["prevent"]),
1684
1688
  class: "hover:bg-base-200 rounded-md w-full cursor-pointer",
1685
1689
  id: "option-" + D,
1686
1690
  role: "option",
1687
1691
  "aria-selected": v.value && v.value.value === h.value
1688
1692
  }, [
1689
1693
  l("a", null, O(h.text), 1)
1690
- ], 40, Qt))), 128))
1694
+ ], 40, Yt))), 128))
1691
1695
  ])
1692
1696
  ], 512), [
1693
1697
  [ke, p.value && B.value.length > 0]
1694
1698
  ])
1695
1699
  ], 512));
1696
1700
  }
1697
- }, Yt = { class: "w-full max-w-xs form-control" }, el = {
1701
+ }, el = { class: "w-full max-w-xs form-control" }, tl = {
1698
1702
  key: 0,
1699
1703
  class: "label"
1700
- }, tl = { class: "label-text" }, ll = ["type", "placeholder", "disabled", "value"], nl = {
1704
+ }, ll = { class: "label-text" }, nl = ["type", "placeholder", "disabled", "value"], al = {
1701
1705
  key: 1,
1702
1706
  class: "label"
1703
- }, al = { class: "label-text-alt text-error validator-hint" }, ol = {
1707
+ }, ol = { class: "label-text-alt text-error validator-hint" }, sl = {
1704
1708
  key: 2,
1705
1709
  class: "label"
1706
- }, sl = { class: "label-text-alt text-success validator-hint" }, Ql = /* @__PURE__ */ P({
1710
+ }, il = { class: "label-text-alt text-success validator-hint" }, Yl = /* @__PURE__ */ P({
1707
1711
  __name: "inputField",
1708
1712
  props: {
1709
1713
  modelValue: { default: "" },
@@ -1720,12 +1724,12 @@ const Ee = Q("SunIcon", [
1720
1724
  },
1721
1725
  emits: ["update:modelValue", "validate"],
1722
1726
  setup(e, { expose: c, emit: t }) {
1723
- const o = e, u = t, s = k(null), i = k(!1), g = k(""), v = _(() => {
1727
+ const o = e, u = t, s = k(null), i = k(!1), g = k(""), v = U(() => {
1724
1728
  var C, B, L, R;
1725
1729
  let y = !0, w = "";
1726
1730
  const x = o.modelValue;
1727
1731
  return (C = o.rules) != null && C.required && (x == null || x === "") && (y = !1, w = "This field is required."), y && ((B = o.rules) == null ? void 0 : B.minLength) !== void 0 && typeof x == "string" && x.length < o.rules.minLength && (y = !1, w = `Must be at least ${o.rules.minLength} characters.`), y && ((L = o.rules) == null ? void 0 : L.maxLength) !== void 0 && typeof x == "string" && x.length > o.rules.maxLength && (y = !1, w = `Cannot exceed ${o.rules.maxLength} characters.`), y && ((R = o.rules) != null && R.email) && typeof x == "string" && x && (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x) || (y = !1, w = "Please enter a valid email address.")), g.value = w, u("validate", y), y;
1728
- }), p = _(() => i.value && !v.value), S = (y) => {
1732
+ }), p = U(() => i.value && !v.value), S = (y) => {
1729
1733
  const w = y.target;
1730
1734
  u("update:modelValue", w.value), i.value && v.value;
1731
1735
  }, I = () => {
@@ -1744,9 +1748,9 @@ const Ee = Q("SunIcon", [
1744
1748
  isValid: v,
1745
1749
  isTouched: i,
1746
1750
  errorMessage: g
1747
- }), (y, w) => (a(), r("div", Yt, [
1748
- e.label ? (a(), r("label", el, [
1749
- l("span", tl, O(e.label), 1)
1751
+ }), (y, w) => (a(), r("div", el, [
1752
+ e.label ? (a(), r("label", tl, [
1753
+ l("span", ll, O(e.label), 1)
1750
1754
  ])) : T("", !0),
1751
1755
  V(y.$slots, "default"),
1752
1756
  l("input", {
@@ -1785,15 +1789,15 @@ const Ee = Q("SunIcon", [
1785
1789
  value: e.modelValue,
1786
1790
  onInput: S,
1787
1791
  onBlur: I
1788
- }, null, 42, ll),
1789
- p.value ? (a(), r("div", nl, [
1790
- l("span", al, O(g.value), 1)
1791
- ])) : v.value && i.value && e.successMessage ? (a(), r("div", ol, [
1792
- l("span", sl, O(e.successMessage), 1)
1792
+ }, null, 42, nl),
1793
+ p.value ? (a(), r("div", al, [
1794
+ l("span", ol, O(g.value), 1)
1795
+ ])) : v.value && i.value && e.successMessage ? (a(), r("div", sl, [
1796
+ l("span", il, O(e.successMessage), 1)
1793
1797
  ])) : T("", !0)
1794
1798
  ]));
1795
1799
  }
1796
- }), Yl = /* @__PURE__ */ P({
1800
+ }), en = /* @__PURE__ */ P({
1797
1801
  __name: "loader",
1798
1802
  props: {
1799
1803
  loading: { type: Boolean, default: !0 },
@@ -1835,13 +1839,13 @@ const Ee = Q("SunIcon", [
1835
1839
  ]])
1836
1840
  }, null, 2)) : T("", !0);
1837
1841
  }
1838
- }), il = { class: "footer sm:footer-horizontal container" }, rl = { class: "footer-title" }, ul = ["href"], dl = {
1842
+ }), rl = { class: "footer sm:footer-horizontal container" }, ul = { class: "footer-title" }, dl = ["href"], cl = {
1839
1843
  key: 0,
1840
1844
  class: "sm:hidden w-full"
1841
- }, cl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, fl = {
1845
+ }, fl = { class: "border-b-2 border-base-100 last:border-b-0 w-full" }, ml = {
1842
1846
  tabindex: "0",
1843
1847
  class: "collapse collapse-plus w-full"
1844
- }, ml = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, vl = { class: "collapse-content flex w-full text-sm" }, pl = { class: "flex flex-col gap-2.5" }, hl = { class: "w-full" }, gl = ["href"], bl = { class: "w-full" }, en = /* @__PURE__ */ P({
1848
+ }, vl = { class: "collapse-title font-bold text-lg collapsible-footer-title" }, pl = { class: "collapse-content flex w-full text-sm" }, hl = { class: "flex flex-col gap-2.5" }, gl = { class: "w-full" }, bl = ["href"], yl = { class: "w-full" }, tn = /* @__PURE__ */ P({
1845
1849
  __name: "footer",
1846
1850
  props: {
1847
1851
  items: {},
@@ -1854,45 +1858,45 @@ const Ee = Q("SunIcon", [
1854
1858
  return (t, o) => (a(), r("div", {
1855
1859
  class: M(["mx-auto md:px-10 py-10 text-base-content", [e.background ?? "bg-base-200", e.color ?? "text-base-content"]])
1856
1860
  }, [
1857
- l("footer", il, [
1861
+ l("footer", rl, [
1858
1862
  (a(!0), r(j, null, E(c.items, (u) => (a(), r("nav", {
1859
1863
  class: M([{ "hidden sm:grid": e.collapseOnMobile }])
1860
1864
  }, [
1861
- l("h6", rl, O(u.title), 1),
1865
+ l("h6", ul, O(u.title), 1),
1862
1866
  (a(!0), r(j, null, E(u.items, (s) => (a(), r("a", {
1863
1867
  class: "link link-hover",
1864
1868
  href: s.link
1865
- }, O(s.text), 9, ul))), 256))
1869
+ }, O(s.text), 9, dl))), 256))
1866
1870
  ], 2))), 256)),
1867
- e.collapseOnMobile ? (a(), r("nav", dl, [
1868
- (a(!0), r(j, null, E(c.items, (u) => (a(), r("ul", cl, [
1869
- l("div", fl, [
1870
- l("div", ml, O(u.title), 1),
1871
- l("div", vl, [
1872
- l("ul", pl, [
1873
- (a(!0), r(j, null, E(u.items, (s) => (a(), r("li", hl, [
1871
+ e.collapseOnMobile ? (a(), r("nav", cl, [
1872
+ (a(!0), r(j, null, E(c.items, (u) => (a(), r("ul", fl, [
1873
+ l("div", ml, [
1874
+ l("div", vl, O(u.title), 1),
1875
+ l("div", pl, [
1876
+ l("ul", hl, [
1877
+ (a(!0), r(j, null, E(u.items, (s) => (a(), r("li", gl, [
1874
1878
  l("a", {
1875
1879
  class: "w-full font-medium link link-hover",
1876
1880
  href: s.link
1877
- }, O(s.text), 9, gl)
1881
+ }, O(s.text), 9, bl)
1878
1882
  ]))), 256))
1879
1883
  ])
1880
1884
  ])
1881
1885
  ])
1882
1886
  ]))), 256))
1883
1887
  ])) : T("", !0),
1884
- l("aside", bl, [
1888
+ l("aside", yl, [
1885
1889
  V(t.$slots, "default")
1886
1890
  ])
1887
1891
  ])
1888
1892
  ], 2));
1889
1893
  }
1890
- }), yl = {}, wl = { class: "min-h-40 container hero" }, xl = { class: "px-0! text-center hero-content" }, kl = { class: "mt-9 text-4xl" };
1891
- function $l(e, c) {
1892
- return a(), r("div", wl, [
1893
- l("div", xl, [
1894
+ }), wl = {}, xl = { class: "min-h-40 container hero" }, kl = { class: "px-0! text-center hero-content" }, $l = { class: "mt-9 text-4xl" };
1895
+ function Cl(e, c) {
1896
+ return a(), r("div", xl, [
1897
+ l("div", kl, [
1894
1898
  l("div", null, [
1895
- l("h1", kl, [
1899
+ l("h1", $l, [
1896
1900
  V(e.$slots, "title", {}, () => [
1897
1901
  c[0] || (c[0] = ue("hero title", -1))
1898
1902
  ])
@@ -1907,7 +1911,7 @@ function $l(e, c) {
1907
1911
  ])
1908
1912
  ]);
1909
1913
  }
1910
- const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row place-content-center gap-4 categories" }, Sl = ["onClick"], ln = /* @__PURE__ */ P({
1914
+ const ln = /* @__PURE__ */ J(wl, [["render", Cl]]), Sl = { class: "flex flex-row place-content-center gap-4 categories" }, Il = ["onClick"], nn = /* @__PURE__ */ P({
1911
1915
  __name: "categoryNavigation",
1912
1916
  props: {
1913
1917
  searchOptions: {},
@@ -1919,18 +1923,18 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
1919
1923
  function u(s) {
1920
1924
  o("update:currentCategory", s);
1921
1925
  }
1922
- return (s, i) => (a(), r("div", Cl, [
1926
+ return (s, i) => (a(), r("div", Sl, [
1923
1927
  (a(!0), r(j, null, E(t.searchOptions, (g) => (a(), r("div", {
1924
1928
  key: g.category
1925
1929
  }, [
1926
1930
  l("button", {
1927
1931
  onClick: (v) => u(g.category),
1928
1932
  class: M(["truncate btn btn-ghost", { "font-semibold": t.currentCategory === g.category }])
1929
- }, O(g.category), 11, Sl)
1933
+ }, O(g.category), 11, Il)
1930
1934
  ]))), 128))
1931
1935
  ]));
1932
1936
  }
1933
- }), Il = { class: "md:flex hidden navbar-start" }, Tl = { class: "md:flex justify-center items-center hidden navbar-center" }, Ml = { class: "md:flex hidden navbar-end" }, Vl = { class: "navbar-bottom md:flex hidden" }, Bl = /* @__PURE__ */ P({
1937
+ }), Tl = { class: "md:flex hidden navbar-start" }, Ml = { class: "md:flex justify-center items-center hidden navbar-center" }, Vl = { class: "md:flex hidden navbar-end" }, Bl = { class: "navbar-bottom md:flex hidden" }, Dl = /* @__PURE__ */ P({
1934
1938
  __name: "navigationBar",
1935
1939
  props: {
1936
1940
  isCollapsed: { type: Boolean, default: !0 }
@@ -1940,28 +1944,28 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
1940
1944
  return (t, o) => (a(), r("nav", {
1941
1945
  class: M(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar", c.isCollapsed ? "collapsed" : ""])
1942
1946
  }, [
1943
- l("div", Il, [
1947
+ l("div", Tl, [
1944
1948
  V(t.$slots, "start", {}, void 0, !0)
1945
1949
  ]),
1946
- l("div", Tl, [
1950
+ l("div", Ml, [
1947
1951
  V(t.$slots, "center", {}, void 0, !0)
1948
1952
  ]),
1949
- l("div", Ml, [
1953
+ l("div", Vl, [
1950
1954
  V(t.$slots, "end", {}, void 0, !0)
1951
1955
  ]),
1952
- l("div", Vl, [
1956
+ l("div", Bl, [
1953
1957
  V(t.$slots, "bottom", {}, void 0, !0)
1954
1958
  ])
1955
1959
  ], 2));
1956
1960
  }
1957
- }), nn = /* @__PURE__ */ J(Bl, [["__scopeId", "data-v-8ddb2b45"]]), Dl = {
1961
+ }), an = /* @__PURE__ */ J(Dl, [["__scopeId", "data-v-8ddb2b45"]]), zl = {
1958
1962
  key: 0,
1959
1963
  class: "hidden top-4 right-0 absolute md:flex gap-4"
1960
- }, zl = ["onClick", "aria-selected"], Ol = {
1964
+ }, Ol = ["onClick", "aria-selected"], Pl = {
1961
1965
  key: 0,
1962
1966
  role: "tabpanel",
1963
1967
  class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"
1964
- }, Pl = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, an = /* @__PURE__ */ P({
1968
+ }, jl = { class: "p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full" }, on = /* @__PURE__ */ P({
1965
1969
  __name: "tab",
1966
1970
  props: {
1967
1971
  items: {},
@@ -1994,7 +1998,7 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
1994
1998
  role: "tablist",
1995
1999
  class: M(["relative tabs-bordered w-full tabs tabs-lg", { "flex-nowrap overflow-x-auto": e.buttonOnlyMode }])
1996
2000
  }, [
1997
- e.withControlls ? (a(), r("div", Dl, [
2001
+ e.withControlls ? (a(), r("div", zl, [
1998
2002
  l("button", {
1999
2003
  onClick: p[0] || (p[0] = (S) => g()),
2000
2004
  class: "cursor-pointer"
@@ -2011,13 +2015,13 @@ const tn = /* @__PURE__ */ J(yl, [["render", $l]]), Cl = { class: "flex flex-row
2011
2015
  class: M(["min-w-max tab", S === o.value ? "bg-primary text-base-100" : ""]),
2012
2016
  onClick: (I) => s(S),
2013
2017
  "aria-selected": o.value == S
2014
- }, O(S), 11, zl),
2015
- e.buttonOnlyMode ? T("", !0) : (a(), r("div", Ol, [
2018
+ }, O(S), 11, Ol),
2019
+ e.buttonOnlyMode ? T("", !0) : (a(), r("div", Pl, [
2016
2020
  V(v.$slots, `${S}-tab`)
2017
2021
  ]))
2018
2022
  ], 64))), 256))
2019
2023
  ], 2),
2020
- l("div", Pl, [
2024
+ l("div", jl, [
2021
2025
  V(v.$slots, "default")
2022
2026
  ])
2023
2027
  ], 64));
@@ -2027,27 +2031,27 @@ typeof document > "u" && (globalThis.document = {});
2027
2031
  typeof window > "u" && (globalThis.window = globalThis);
2028
2032
  export {
2029
2033
  Fl as Accordion,
2030
- Kl as AdvancedSearch,
2034
+ Xl as AdvancedSearch,
2031
2035
  Ul as Avatar,
2032
- _l as Badge,
2033
- Ll as ButtonComponent,
2034
- ql as Card,
2035
- Hl as Carousel,
2036
- Wl as CarouselItem,
2037
- ln as CategoryNavigation,
2038
- Ot as DatetimePicker,
2039
- El as Dropdown,
2040
- Zl as FilterableSelect,
2041
- en as Footer,
2042
- tn as Hero,
2043
- Ql as InputField,
2044
- Yl as Loader,
2045
- Al as Modal,
2046
- nn as NavigationBar,
2047
- Xl as Rating,
2048
- Jl as Selector,
2049
- Rl as Swap,
2050
- an as Tab,
2051
- Gl as TagInput,
2052
- Nl as ThemeController
2036
+ ql as Badge,
2037
+ El as ButtonComponent,
2038
+ Hl as Card,
2039
+ Wl as Carousel,
2040
+ Kl as CarouselItem,
2041
+ nn as CategoryNavigation,
2042
+ Pt as DatetimePicker,
2043
+ Al as Dropdown,
2044
+ Ql as FilterableSelect,
2045
+ tn as Footer,
2046
+ ln as Hero,
2047
+ Yl as InputField,
2048
+ en as Loader,
2049
+ Rl as Modal,
2050
+ an as NavigationBar,
2051
+ Gl as Rating,
2052
+ Zl as Selector,
2053
+ Nl as Swap,
2054
+ on as Tab,
2055
+ Jl as TagInput,
2056
+ _l as ThemeController
2053
2057
  };