@leodamours/ds-components 0.2.3 → 0.2.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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as S, ref as j, watch as we, computed as k, openBlock as g, createElementBlock as p, normalizeClass as T, toDisplayString as B, createCommentVNode as D, renderSlot as N, createTextVNode as X, createBlock as I, resolveDynamicComponent as $e, normalizeStyle as he, createElementVNode as F, shallowRef as Ft, getCurrentScope as Ct, onScopeDispose as $t, shallowReadonly as be, unref as R, mergeProps as de, createVNode as _, withCtx as Re, Teleport as Oe, withModifiers as Dt, Fragment as se, renderList as re, nextTick as je, withKeys as st, onBeforeUnmount as rt, Transition as at, onMounted as Et, TransitionGroup as At } from "vue";
2
- const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
1
+ import { defineComponent as S, ref as j, watch as we, computed as k, openBlock as g, createElementBlock as v, normalizeClass as T, toDisplayString as E, createCommentVNode as D, renderSlot as N, createTextVNode as X, createBlock as I, resolveDynamicComponent as $e, normalizeStyle as he, createElementVNode as F, shallowRef as Ft, getCurrentScope as Ct, onScopeDispose as $t, shallowReadonly as be, unref as R, mergeProps as de, createVNode as _, withCtx as Re, Teleport as Le, withModifiers as Dt, Fragment as se, renderList as re, nextTick as je, withKeys as st, onBeforeUnmount as rt, Transition as at, onMounted as Et, TransitionGroup as At } from "vue";
2
+ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
3
3
  __name: "DsAvatar",
4
4
  props: {
5
5
  src: {},
@@ -39,25 +39,25 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
39
39
  neutral: "bg-neutral-soft text-neutral-on-soft"
40
40
  }[n.variant]
41
41
  ].join(" "));
42
- return (a, d) => (g(), p("span", {
42
+ return (a, d) => (g(), v("span", {
43
43
  class: T(s.value),
44
44
  role: "img",
45
45
  "aria-label": e.alt || e.name
46
46
  }, [
47
- e.src && !t.value ? (g(), p("img", {
47
+ e.src && !t.value ? (g(), v("img", {
48
48
  key: 0,
49
49
  src: e.src,
50
50
  alt: e.alt || e.name || "",
51
51
  class: "w-full h-full object-cover rounded-full",
52
52
  onError: d[0] || (d[0] = (i) => t.value = !0)
53
- }, null, 40, Tt)) : (g(), p("span", {
53
+ }, null, 40, Tt)) : (g(), v("span", {
54
54
  key: 1,
55
55
  class: T(r.value),
56
56
  "aria-hidden": "true"
57
- }, B(o.value), 3))
57
+ }, E(o.value), 3))
58
58
  ], 10, Bt));
59
59
  }
60
- }), ns = /* @__PURE__ */ S({
60
+ }), os = /* @__PURE__ */ S({
61
61
  __name: "DsBadge",
62
62
  props: {
63
63
  label: {},
@@ -99,20 +99,20 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
99
99
  };
100
100
  return ["inline-block", "rounded-full", s[n.size], r[n.variant]].join(" ");
101
101
  });
102
- return (s, r) => (g(), p("span", {
102
+ return (s, r) => (g(), v("span", {
103
103
  class: T(t.value)
104
104
  }, [
105
- e.dot ? (g(), p("span", {
105
+ e.dot ? (g(), v("span", {
106
106
  key: 0,
107
107
  class: T(o.value),
108
108
  "aria-hidden": "true"
109
109
  }, null, 2)) : D("", !0),
110
110
  e.dot ? D("", !0) : N(s.$slots, "default", { key: 1 }, () => [
111
- X(B(e.label), 1)
111
+ X(E(e.label), 1)
112
112
  ])
113
113
  ], 2));
114
114
  }
115
- }), Rt = ["type", "disabled", "aria-label", "aria-busy"], Ot = { key: 1 }, Vt = /* @__PURE__ */ S({
115
+ }), Rt = ["type", "disabled", "aria-label", "aria-busy"], Lt = { key: 1 }, Ot = /* @__PURE__ */ S({
116
116
  __name: "DsButton",
117
117
  props: {
118
118
  label: {},
@@ -209,7 +209,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
209
209
  medium: "w-4 h-4",
210
210
  large: "w-5 h-5"
211
211
  })[n.size]);
212
- return (s, r) => (g(), p("button", {
212
+ return (s, r) => (g(), v("button", {
213
213
  type: e.htmlType,
214
214
  disabled: e.disabled || e.loading,
215
215
  "aria-label": e.ariaLabel,
@@ -223,7 +223,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
223
223
  style: he(e.label || s.$slots.default ? "margin-right: 0.375rem" : ""),
224
224
  "aria-hidden": "true"
225
225
  }, null, 8, ["class", "style"])) : D("", !0),
226
- e.label ? (g(), p("span", Ot, B(e.label), 1)) : N(s.$slots, "default", { key: 2 }),
226
+ e.label ? (g(), v("span", Lt, E(e.label), 1)) : N(s.$slots, "default", { key: 2 }),
227
227
  e.iconRight ? (g(), I($e(e.iconRight), {
228
228
  key: 3,
229
229
  class: T(o.value),
@@ -232,7 +232,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
232
232
  }, null, 8, ["class", "style"])) : D("", !0)
233
233
  ], 10, Rt));
234
234
  }
235
- }), Lt = ["id", "checked", "disabled", "value"], St = {
235
+ }), Vt = ["id", "checked", "disabled", "value"], St = {
236
236
  key: 0,
237
237
  viewBox: "0 0 12 12",
238
238
  fill: "none",
@@ -241,7 +241,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
241
241
  "stroke-linecap": "round",
242
242
  "stroke-linejoin": "round",
243
243
  class: "w-full h-full"
244
- }, os = /* @__PURE__ */ S({
244
+ }, ss = /* @__PURE__ */ S({
245
245
  __name: "DsCheckbox",
246
246
  props: {
247
247
  modelValue: { type: Boolean, default: !1 },
@@ -283,7 +283,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
283
283
  const c = i.target.checked;
284
284
  o("update:modelValue", c), o("change", c, i);
285
285
  };
286
- return (i, b) => (g(), p("label", {
286
+ return (i, b) => (g(), v("label", {
287
287
  class: T([
288
288
  "inline-flex items-center gap-2",
289
289
  e.disabled ? "cursor-not-allowed" : "cursor-pointer",
@@ -298,21 +298,21 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
298
298
  value: e.value,
299
299
  class: "sr-only peer",
300
300
  onChange: d
301
- }, null, 40, Lt),
301
+ }, null, 40, Vt),
302
302
  F("span", {
303
303
  class: T(r.value),
304
304
  "aria-hidden": "true"
305
305
  }, [
306
- e.modelValue ? (g(), p("svg", St, [...b[0] || (b[0] = [
306
+ e.modelValue ? (g(), v("svg", St, [...b[0] || (b[0] = [
307
307
  F("polyline", { points: "2.5 6 5 8.5 9.5 3.5" }, null, -1)
308
308
  ])])) : D("", !0)
309
309
  ], 2),
310
- e.label || i.$slots.default ? (g(), p("span", {
310
+ e.label || i.$slots.default ? (g(), v("span", {
311
311
  key: 0,
312
312
  class: T(a.value)
313
313
  }, [
314
314
  N(i.$slots, "default", {}, () => [
315
- X(B(e.label), 1)
315
+ X(E(e.label), 1)
316
316
  ])
317
317
  ], 2)) : D("", !0)
318
318
  ], 2));
@@ -332,7 +332,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ts = /* @__PURE__ */ S({
332
332
  function Pe(e, n, t) {
333
333
  return q(e, ae(n, t));
334
334
  }
335
- function ve(e, n) {
335
+ function pe(e, n) {
336
336
  return typeof e == "function" ? e(n) : e;
337
337
  }
338
338
  function le(e) {
@@ -487,7 +487,7 @@ async function Ut(e, n) {
487
487
  elementContext: l = "floating",
488
488
  altBoundary: f = !1,
489
489
  padding: u = 0
490
- } = ve(n, e), m = it(u), y = d[f ? l === "floating" ? "reference" : "floating" : l], w = Ae(await r.getClippingRect({
490
+ } = pe(n, e), m = it(u), y = d[f ? l === "floating" ? "reference" : "floating" : l], w = Ae(await r.getClippingRect({
491
491
  element: (t = await (r.isElement == null ? void 0 : r.isElement(y))) == null || t ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(d.floating)),
492
492
  boundary: b,
493
493
  rootBoundary: c,
@@ -503,17 +503,17 @@ async function Ut(e, n) {
503
503
  } : {
504
504
  x: 1,
505
505
  y: 1
506
- }, A = Ae(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
506
+ }, B = Ae(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
507
507
  elements: d,
508
508
  rect: C,
509
509
  offsetParent: x,
510
510
  strategy: i
511
511
  }) : C);
512
512
  return {
513
- top: (w.top - A.top + m.top) / $.y,
514
- bottom: (A.bottom - w.bottom + m.bottom) / $.y,
515
- left: (w.left - A.left + m.left) / $.x,
516
- right: (A.right - w.right + m.right) / $.x
513
+ top: (w.top - B.top + m.top) / $.y,
514
+ bottom: (B.bottom - w.bottom + m.bottom) / $.y,
515
+ left: (w.left - B.left + m.left) / $.x,
516
+ right: (B.right - w.right + m.right) / $.x
517
517
  };
518
518
  }
519
519
  const Xt = async (e, n, t) => {
@@ -539,8 +539,8 @@ const Xt = async (e, n, t) => {
539
539
  } = d[y], {
540
540
  x,
541
541
  y: $,
542
- data: A,
543
- reset: V
542
+ data: B,
543
+ reset: O
544
544
  } = await C({
545
545
  x: c,
546
546
  y: l,
@@ -562,13 +562,13 @@ const Xt = async (e, n, t) => {
562
562
  ...u,
563
563
  [w]: {
564
564
  ...u[w],
565
- ...A
565
+ ...B
566
566
  }
567
- }, V && m <= 50 && (m++, typeof V == "object" && (V.placement && (f = V.placement), V.rects && (b = V.rects === !0 ? await a.getElementRects({
567
+ }, O && m <= 50 && (m++, typeof O == "object" && (O.placement && (f = O.placement), O.rects && (b = O.rects === !0 ? await a.getElementRects({
568
568
  reference: e,
569
569
  floating: n,
570
570
  strategy: s
571
- }) : V.rects), {
571
+ }) : O.rects), {
572
572
  x: c,
573
573
  y: l
574
574
  } = Ze(b, f, i)), y = -1);
@@ -595,21 +595,21 @@ const Xt = async (e, n, t) => {
595
595
  } = n, {
596
596
  element: b,
597
597
  padding: c = 0
598
- } = ve(e, n) || {};
598
+ } = pe(e, n) || {};
599
599
  if (b == null)
600
600
  return {};
601
601
  const l = it(c), f = {
602
602
  x: t,
603
603
  y: o
604
- }, u = qe(s), m = He(u), h = await a.getDimensions(b), y = u === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", $ = r.reference[m] + r.reference[u] - f[u] - r.floating[m], A = f[u] - r.reference[u], V = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(b));
605
- let E = V ? V[x] : 0;
606
- (!E || !await (a.isElement == null ? void 0 : a.isElement(V))) && (E = d.floating[x] || r.floating[m]);
607
- const z = $ / 2 - A / 2, M = E / 2 - h[m] / 2 - 1, W = ae(l[w], M), Y = ae(l[C], M), U = W, v = E - h[m] - Y, O = E / 2 - h[m] / 2 + z, L = Pe(U, O, v), P = !i.arrow && ye(s) != null && O !== L && r.reference[m] / 2 - (O < U ? W : Y) - h[m] / 2 < 0, H = P ? O < U ? O - U : O - v : 0;
604
+ }, u = qe(s), m = He(u), h = await a.getDimensions(b), y = u === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", $ = r.reference[m] + r.reference[u] - f[u] - r.floating[m], B = f[u] - r.reference[u], O = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(b));
605
+ let A = O ? O[x] : 0;
606
+ (!A || !await (a.isElement == null ? void 0 : a.isElement(O))) && (A = d.floating[x] || r.floating[m]);
607
+ const z = $ / 2 - B / 2, M = A / 2 - h[m] / 2 - 1, W = ae(l[w], M), Y = ae(l[C], M), U = W, p = A - h[m] - Y, L = A / 2 - h[m] / 2 + z, V = Pe(U, L, p), P = !i.arrow && ye(s) != null && L !== V && r.reference[m] / 2 - (L < U ? W : Y) - h[m] / 2 < 0, H = P ? L < U ? L - U : L - p : 0;
608
608
  return {
609
609
  [u]: f[u] + H,
610
610
  data: {
611
- [u]: L,
612
- centerOffset: O - L - H,
611
+ [u]: V,
612
+ centerOffset: L - V - H,
613
613
  ...P && {
614
614
  alignmentOffset: H
615
615
  }
@@ -638,49 +638,49 @@ const Xt = async (e, n, t) => {
638
638
  fallbackAxisSideDirection: m = "none",
639
639
  flipAlignment: h = !0,
640
640
  ...y
641
- } = ve(e, n);
641
+ } = pe(e, n);
642
642
  if ((t = r.arrow) != null && t.alignmentOffset)
643
643
  return {};
644
- const w = le(s), C = ne(d), x = le(d) === d, $ = await (i.isRTL == null ? void 0 : i.isRTL(b.floating)), A = f || (x || !h ? [Ee(d)] : It(d)), V = m !== "none";
645
- !f && V && A.push(...qt(d, h, m, $));
646
- const E = [d, ...A], z = await i.detectOverflow(n, y), M = [];
644
+ const w = le(s), C = ne(d), x = le(d) === d, $ = await (i.isRTL == null ? void 0 : i.isRTL(b.floating)), B = f || (x || !h ? [Ee(d)] : It(d)), O = m !== "none";
645
+ !f && O && B.push(...qt(d, h, m, $));
646
+ const A = [d, ...B], z = await i.detectOverflow(n, y), M = [];
647
647
  let W = ((o = r.flip) == null ? void 0 : o.overflows) || [];
648
648
  if (c && M.push(z[w]), l) {
649
- const O = Pt(s, a, $);
650
- M.push(z[O[0]], z[O[1]]);
649
+ const L = Pt(s, a, $);
650
+ M.push(z[L[0]], z[L[1]]);
651
651
  }
652
652
  if (W = [...W, {
653
653
  placement: s,
654
654
  overflows: M
655
- }], !M.every((O) => O <= 0)) {
655
+ }], !M.every((L) => L <= 0)) {
656
656
  var Y, U;
657
- const O = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, L = E[O];
658
- if (L && (!(l === "alignment" ? C !== ne(L) : !1) || // We leave the current main axis only if every placement on that axis
657
+ const L = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, V = A[L];
658
+ if (V && (!(l === "alignment" ? C !== ne(V) : !1) || // We leave the current main axis only if every placement on that axis
659
659
  // overflows the main axis.
660
660
  W.every((G) => ne(G.placement) === C ? G.overflows[0] > 0 : !0)))
661
661
  return {
662
662
  data: {
663
- index: O,
663
+ index: L,
664
664
  overflows: W
665
665
  },
666
666
  reset: {
667
- placement: L
667
+ placement: V
668
668
  }
669
669
  };
670
670
  let P = (U = W.filter((H) => H.overflows[0] <= 0).sort((H, G) => H.overflows[1] - G.overflows[1])[0]) == null ? void 0 : U.placement;
671
671
  if (!P)
672
672
  switch (u) {
673
673
  case "bestFit": {
674
- var v;
675
- const H = (v = W.filter((G) => {
676
- if (V) {
674
+ var p;
675
+ const H = (p = W.filter((G) => {
676
+ if (O) {
677
677
  const oe = ne(G.placement);
678
678
  return oe === C || // Create a bias to the `y` side axis due to horizontal
679
679
  // reading directions favoring greater width.
680
680
  oe === "y";
681
681
  }
682
682
  return !0;
683
- }).map((G) => [G.placement, G.overflows.filter((oe) => oe > 0).reduce((oe, kt) => oe + kt, 0)]).sort((G, oe) => G[1] - oe[1])[0]) == null ? void 0 : v[0];
683
+ }).map((G) => [G.placement, G.overflows.filter((oe) => oe > 0).reduce((oe, kt) => oe + kt, 0)]).sort((G, oe) => G[1] - oe[1])[0]) == null ? void 0 : p[0];
684
684
  H && (P = H);
685
685
  break;
686
686
  }
@@ -704,7 +704,7 @@ async function Qt(e, n) {
704
704
  placement: t,
705
705
  platform: o,
706
706
  elements: s
707
- } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a = le(t), d = ye(t), i = ne(t) === "y", b = Jt.has(a) ? -1 : 1, c = r && i ? -1 : 1, l = ve(n, e);
707
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a = le(t), d = ye(t), i = ne(t) === "y", b = Jt.has(a) ? -1 : 1, c = r && i ? -1 : 1, l = pe(n, e);
708
708
  let {
709
709
  mainAxis: f,
710
710
  crossAxis: u,
@@ -774,7 +774,7 @@ const Zt = function(e) {
774
774
  }
775
775
  },
776
776
  ...b
777
- } = ve(e, n), c = {
777
+ } = pe(e, n), c = {
778
778
  x: t,
779
779
  y: o
780
780
  }, l = await r.detectOverflow(n, b), f = ne(le(s)), u = lt(f);
@@ -820,22 +820,22 @@ const Zt = function(e) {
820
820
  apply: i = () => {
821
821
  },
822
822
  ...b
823
- } = ve(e, n), c = await a.detectOverflow(n, b), l = le(s), f = ye(s), u = ne(s) === "y", {
823
+ } = pe(e, n), c = await a.detectOverflow(n, b), l = le(s), f = ye(s), u = ne(s) === "y", {
824
824
  width: m,
825
825
  height: h
826
826
  } = r.floating;
827
827
  let y, w;
828
828
  l === "top" || l === "bottom" ? (y = l, w = f === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (w = l, y = f === "end" ? "top" : "bottom");
829
- const C = h - c.top - c.bottom, x = m - c.left - c.right, $ = ae(h - c[y], C), A = ae(m - c[w], x), V = !n.middlewareData.shift;
830
- let E = $, z = A;
831
- if ((t = n.middlewareData.shift) != null && t.enabled.x && (z = x), (o = n.middlewareData.shift) != null && o.enabled.y && (E = C), V && !f) {
832
- const W = q(c.left, 0), Y = q(c.right, 0), U = q(c.top, 0), v = q(c.bottom, 0);
833
- u ? z = m - 2 * (W !== 0 || Y !== 0 ? W + Y : q(c.left, c.right)) : E = h - 2 * (U !== 0 || v !== 0 ? U + v : q(c.top, c.bottom));
829
+ const C = h - c.top - c.bottom, x = m - c.left - c.right, $ = ae(h - c[y], C), B = ae(m - c[w], x), O = !n.middlewareData.shift;
830
+ let A = $, z = B;
831
+ if ((t = n.middlewareData.shift) != null && t.enabled.x && (z = x), (o = n.middlewareData.shift) != null && o.enabled.y && (A = C), O && !f) {
832
+ const W = q(c.left, 0), Y = q(c.right, 0), U = q(c.top, 0), p = q(c.bottom, 0);
833
+ u ? z = m - 2 * (W !== 0 || Y !== 0 ? W + Y : q(c.left, c.right)) : A = h - 2 * (U !== 0 || p !== 0 ? U + p : q(c.top, c.bottom));
834
834
  }
835
835
  await i({
836
836
  ...n,
837
837
  availableWidth: z,
838
- availableHeight: E
838
+ availableHeight: A
839
839
  });
840
840
  const M = await a.getDimensions(d.floating);
841
841
  return m !== M.width || h !== M.height ? {
@@ -846,7 +846,7 @@ const Zt = function(e) {
846
846
  }
847
847
  };
848
848
  };
849
- function Ve() {
849
+ function Oe() {
850
850
  return typeof window < "u";
851
851
  }
852
852
  function ue(e) {
@@ -861,16 +861,16 @@ function te(e) {
861
861
  return (n = (Ke(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
862
862
  }
863
863
  function Ke(e) {
864
- return Ve() ? e instanceof Node || e instanceof K(e).Node : !1;
864
+ return Oe() ? e instanceof Node || e instanceof K(e).Node : !1;
865
865
  }
866
866
  function J(e) {
867
- return Ve() ? e instanceof Element || e instanceof K(e).Element : !1;
867
+ return Oe() ? e instanceof Element || e instanceof K(e).Element : !1;
868
868
  }
869
869
  function ee(e) {
870
- return Ve() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
870
+ return Oe() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
871
871
  }
872
872
  function _e(e) {
873
- return !Ve() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
873
+ return !Oe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
874
874
  }
875
875
  const tn = /* @__PURE__ */ new Set(["inline", "contents"]);
876
876
  function Fe(e) {
@@ -887,7 +887,7 @@ function on(e) {
887
887
  return nn.has(ue(e));
888
888
  }
889
889
  const sn = [":popover-open", ":modal"];
890
- function Le(e) {
890
+ function Ve(e) {
891
891
  return sn.some((n) => {
892
892
  try {
893
893
  return e.matches(n);
@@ -903,10 +903,10 @@ function Ue(e) {
903
903
  }
904
904
  function cn(e) {
905
905
  let n = ie(e);
906
- for (; ee(n) && !pe(n); ) {
906
+ for (; ee(n) && !ve(n); ) {
907
907
  if (Ue(n))
908
908
  return n;
909
- if (Le(n))
909
+ if (Ve(n))
910
910
  return null;
911
911
  n = ie(n);
912
912
  }
@@ -916,7 +916,7 @@ function Xe() {
916
916
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
917
917
  }
918
918
  const dn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
919
- function pe(e) {
919
+ function ve(e) {
920
920
  return dn.has(ue(e));
921
921
  }
922
922
  function Q(e) {
@@ -945,7 +945,7 @@ function ie(e) {
945
945
  }
946
946
  function ct(e) {
947
947
  const n = ie(e);
948
- return pe(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ee(n) && Fe(n) ? n : ct(n);
948
+ return ve(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ee(n) && Fe(n) ? n : ct(n);
949
949
  }
950
950
  function ke(e, n, t) {
951
951
  var o;
@@ -1039,7 +1039,7 @@ function bn(e) {
1039
1039
  offsetParent: o,
1040
1040
  strategy: s
1041
1041
  } = e;
1042
- const r = s === "fixed", a = te(o), d = n ? Le(n.floating) : !1;
1042
+ const r = s === "fixed", a = te(o), d = n ? Ve(n.floating) : !1;
1043
1043
  if (o === a || d && r)
1044
1044
  return t;
1045
1045
  let i = {
@@ -1094,8 +1094,8 @@ function hn(e, n) {
1094
1094
  y: i
1095
1095
  };
1096
1096
  }
1097
- const pn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1098
- function vn(e, n) {
1097
+ const vn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1098
+ function pn(e, n) {
1099
1099
  const t = ce(e, !0, n === "fixed"), o = t.top + e.clientTop, s = t.left + e.clientLeft, r = ee(e) ? ge(e) : Z(1), a = e.clientWidth * r.x, d = e.clientHeight * r.y, i = s * r.x, b = o * r.y;
1100
1100
  return {
1101
1101
  width: a,
@@ -1111,7 +1111,7 @@ function tt(e, n, t) {
1111
1111
  else if (n === "document")
1112
1112
  o = gn(te(e));
1113
1113
  else if (J(n))
1114
- o = vn(n, t);
1114
+ o = pn(n, t);
1115
1115
  else {
1116
1116
  const s = ut(e);
1117
1117
  o = {
@@ -1125,7 +1125,7 @@ function tt(e, n, t) {
1125
1125
  }
1126
1126
  function bt(e, n) {
1127
1127
  const t = ie(e);
1128
- return t === n || !J(t) || pe(t) ? !1 : Q(t).position === "fixed" || bt(t, n);
1128
+ return t === n || !J(t) || ve(t) ? !1 : Q(t).position === "fixed" || bt(t, n);
1129
1129
  }
1130
1130
  function yn(e, n) {
1131
1131
  const t = n.get(e);
@@ -1134,9 +1134,9 @@ function yn(e, n) {
1134
1134
  let o = ke(e, [], !1).filter((d) => J(d) && ue(d) !== "body"), s = null;
1135
1135
  const r = Q(e).position === "fixed";
1136
1136
  let a = r ? ie(e) : e;
1137
- for (; J(a) && !pe(a); ) {
1137
+ for (; J(a) && !ve(a); ) {
1138
1138
  const d = Q(a), i = Ue(a);
1139
- !i && d.position === "fixed" && (s = null), (r ? !i && !s : !i && d.position === "static" && !!s && pn.has(s.position) || Fe(a) && !i && bt(e, a)) ? o = o.filter((c) => c !== a) : s = d, a = ie(a);
1139
+ !i && d.position === "fixed" && (s = null), (r ? !i && !s : !i && d.position === "static" && !!s && vn.has(s.position) || Fe(a) && !i && bt(e, a)) ? o = o.filter((c) => c !== a) : s = d, a = ie(a);
1140
1140
  }
1141
1141
  return n.set(e, o), o;
1142
1142
  }
@@ -1147,7 +1147,7 @@ function xn(e) {
1147
1147
  rootBoundary: o,
1148
1148
  strategy: s
1149
1149
  } = e;
1150
- const a = [...t === "clippingAncestors" ? Le(n) ? [] : yn(n, this._c) : [].concat(t), o], d = a[0], i = a.reduce((b, c) => {
1150
+ const a = [...t === "clippingAncestors" ? Ve(n) ? [] : yn(n, this._c) : [].concat(t), o], d = a[0], i = a.reduce((b, c) => {
1151
1151
  const l = tt(n, c, s);
1152
1152
  return b.top = q(l.top, b.top), b.right = ae(l.right, b.right), b.bottom = ae(l.bottom, b.bottom), b.left = q(l.left, b.left), b;
1153
1153
  }, tt(n, d, s));
@@ -1205,11 +1205,11 @@ function nt(e, n) {
1205
1205
  }
1206
1206
  function mt(e, n) {
1207
1207
  const t = K(e);
1208
- if (Le(e))
1208
+ if (Ve(e))
1209
1209
  return t;
1210
1210
  if (!ee(e)) {
1211
1211
  let s = ie(e);
1212
- for (; s && !pe(s); ) {
1212
+ for (; s && !ve(s); ) {
1213
1213
  if (J(s) && !Me(s))
1214
1214
  return s;
1215
1215
  s = ie(s);
@@ -1219,7 +1219,7 @@ function mt(e, n) {
1219
1219
  let o = nt(e, n);
1220
1220
  for (; o && on(o) && Me(o); )
1221
1221
  o = nt(o, n);
1222
- return o && pe(o) && Me(o) && !Ue(o) ? t : o || cn(e) || t;
1222
+ return o && ve(o) && Me(o) && !Ue(o) ? t : o || cn(e) || t;
1223
1223
  }
1224
1224
  const Fn = async function(e) {
1225
1225
  const n = this.getOffsetParent || mt, t = this.getDimensions, o = await t(e.floating);
@@ -1273,25 +1273,25 @@ function Dn(e, n) {
1273
1273
  threshold: q(0, ae(1, i)) || 1
1274
1274
  };
1275
1275
  let $ = !0;
1276
- function A(V) {
1277
- const E = V[0].intersectionRatio;
1278
- if (E !== i) {
1276
+ function B(O) {
1277
+ const A = O[0].intersectionRatio;
1278
+ if (A !== i) {
1279
1279
  if (!$)
1280
1280
  return a();
1281
- E ? a(!1, E) : o = setTimeout(() => {
1281
+ A ? a(!1, A) : o = setTimeout(() => {
1282
1282
  a(!1, 1e-7);
1283
1283
  }, 1e3);
1284
1284
  }
1285
- E === 1 && !gt(b, e.getBoundingClientRect()) && a(), $ = !1;
1285
+ A === 1 && !gt(b, e.getBoundingClientRect()) && a(), $ = !1;
1286
1286
  }
1287
1287
  try {
1288
- t = new IntersectionObserver(A, {
1288
+ t = new IntersectionObserver(B, {
1289
1289
  ...x,
1290
1290
  // Handle <iframe>s
1291
1291
  root: s.ownerDocument
1292
1292
  });
1293
1293
  } catch {
1294
- t = new IntersectionObserver(A, x);
1294
+ t = new IntersectionObserver(B, x);
1295
1295
  }
1296
1296
  t.observe(e);
1297
1297
  }
@@ -1333,7 +1333,7 @@ function En(e, n, t, o) {
1333
1333
  }), l == null || l(), (w = u) == null || w.disconnect(), u = null, i && cancelAnimationFrame(m);
1334
1334
  };
1335
1335
  }
1336
- const ht = Zt, pt = _t, vt = Gt, An = en, Bn = Yt, Tn = (e, n, t) => {
1336
+ const ht = Zt, vt = _t, pt = Gt, An = en, Bn = Yt, Tn = (e, n, t) => {
1337
1337
  const o = /* @__PURE__ */ new Map(), s = {
1338
1338
  platform: $n,
1339
1339
  ...t
@@ -1359,7 +1359,7 @@ function We(e) {
1359
1359
  function me(e) {
1360
1360
  return typeof e == "function" ? e() : R(e);
1361
1361
  }
1362
- function On(e) {
1362
+ function Ln(e) {
1363
1363
  return {
1364
1364
  name: "arrow",
1365
1365
  options: e,
@@ -1382,28 +1382,28 @@ function ot(e, n) {
1382
1382
  function xt(e, n, t) {
1383
1383
  t === void 0 && (t = {});
1384
1384
  const o = t.whileElementsMounted, s = k(() => {
1385
- var E;
1386
- return (E = me(t.open)) != null ? E : !0;
1385
+ var A;
1386
+ return (A = me(t.open)) != null ? A : !0;
1387
1387
  }), r = k(() => me(t.middleware)), a = k(() => {
1388
- var E;
1389
- return (E = me(t.placement)) != null ? E : "bottom";
1388
+ var A;
1389
+ return (A = me(t.placement)) != null ? A : "bottom";
1390
1390
  }), d = k(() => {
1391
- var E;
1392
- return (E = me(t.strategy)) != null ? E : "absolute";
1391
+ var A;
1392
+ return (A = me(t.strategy)) != null ? A : "absolute";
1393
1393
  }), i = k(() => {
1394
- var E;
1395
- return (E = me(t.transform)) != null ? E : !0;
1394
+ var A;
1395
+ return (A = me(t.transform)) != null ? A : !0;
1396
1396
  }), b = k(() => We(e.value)), c = k(() => We(n.value)), l = j(0), f = j(0), u = j(d.value), m = j(a.value), h = Ft({}), y = j(!1), w = k(() => {
1397
- const E = {
1397
+ const A = {
1398
1398
  position: u.value,
1399
1399
  left: "0",
1400
1400
  top: "0"
1401
1401
  };
1402
1402
  if (!c.value)
1403
- return E;
1403
+ return A;
1404
1404
  const z = ot(c.value, l.value), M = ot(c.value, f.value);
1405
1405
  return i.value ? {
1406
- ...E,
1406
+ ...A,
1407
1407
  transform: "translate(" + z + "px, " + M + "px)",
1408
1408
  ...yt(c.value) >= 1.5 && {
1409
1409
  willChange: "transform"
@@ -1418,19 +1418,19 @@ function xt(e, n, t) {
1418
1418
  function x() {
1419
1419
  if (b.value == null || c.value == null)
1420
1420
  return;
1421
- const E = s.value;
1421
+ const A = s.value;
1422
1422
  Tn(b.value, c.value, {
1423
1423
  middleware: r.value,
1424
1424
  placement: a.value,
1425
1425
  strategy: d.value
1426
1426
  }).then((z) => {
1427
- l.value = z.x, f.value = z.y, u.value = z.strategy, m.value = z.placement, h.value = z.middlewareData, y.value = E !== !1;
1427
+ l.value = z.x, f.value = z.y, u.value = z.strategy, m.value = z.placement, h.value = z.middlewareData, y.value = A !== !1;
1428
1428
  });
1429
1429
  }
1430
1430
  function $() {
1431
1431
  typeof C == "function" && (C(), C = void 0);
1432
1432
  }
1433
- function A() {
1433
+ function B() {
1434
1434
  if ($(), o === void 0) {
1435
1435
  x();
1436
1436
  return;
@@ -1440,14 +1440,14 @@ function xt(e, n, t) {
1440
1440
  return;
1441
1441
  }
1442
1442
  }
1443
- function V() {
1443
+ function O() {
1444
1444
  s.value || (y.value = !1);
1445
1445
  }
1446
1446
  return we([r, a, d, s], x, {
1447
1447
  flush: "sync"
1448
- }), we([b, c], A, {
1448
+ }), we([b, c], B, {
1449
1449
  flush: "sync"
1450
- }), we(s, V, {
1450
+ }), we(s, O, {
1451
1451
  flush: "sync"
1452
1452
  }), Ct() && $t($), {
1453
1453
  x: be(l),
@@ -1464,7 +1464,7 @@ const Be = /* @__PURE__ */ S({
1464
1464
  inheritAttrs: !1,
1465
1465
  __name: "DsIconX",
1466
1466
  setup(e) {
1467
- return (n, t) => (g(), p("svg", de({
1467
+ return (n, t) => (g(), v("svg", de({
1468
1468
  fill: "none",
1469
1469
  stroke: "currentColor",
1470
1470
  viewBox: "0 0 24 24"
@@ -1477,11 +1477,11 @@ const Be = /* @__PURE__ */ S({
1477
1477
  }, null, -1)
1478
1478
  ])], 16));
1479
1479
  }
1480
- }), Vn = /* @__PURE__ */ S({
1480
+ }), On = /* @__PURE__ */ S({
1481
1481
  inheritAttrs: !1,
1482
1482
  __name: "DsIconCheck",
1483
1483
  setup(e) {
1484
- return (n, t) => (g(), p("svg", de({
1484
+ return (n, t) => (g(), v("svg", de({
1485
1485
  fill: "none",
1486
1486
  stroke: "currentColor",
1487
1487
  viewBox: "0 0 24 24"
@@ -1498,7 +1498,7 @@ const Be = /* @__PURE__ */ S({
1498
1498
  inheritAttrs: !1,
1499
1499
  __name: "DsIconWarning",
1500
1500
  setup(e) {
1501
- return (n, t) => (g(), p("svg", de({
1501
+ return (n, t) => (g(), v("svg", de({
1502
1502
  fill: "none",
1503
1503
  stroke: "currentColor",
1504
1504
  viewBox: "0 0 24 24"
@@ -1511,11 +1511,11 @@ const Be = /* @__PURE__ */ S({
1511
1511
  }, null, -1)
1512
1512
  ])], 16));
1513
1513
  }
1514
- }), Ln = /* @__PURE__ */ S({
1514
+ }), Vn = /* @__PURE__ */ S({
1515
1515
  inheritAttrs: !1,
1516
1516
  __name: "DsIconInfo",
1517
1517
  setup(e) {
1518
- return (n, t) => (g(), p("svg", de({
1518
+ return (n, t) => (g(), v("svg", de({
1519
1519
  fill: "none",
1520
1520
  stroke: "currentColor",
1521
1521
  viewBox: "0 0 24 24"
@@ -1532,7 +1532,7 @@ const Be = /* @__PURE__ */ S({
1532
1532
  inheritAttrs: !1,
1533
1533
  __name: "DsIconChevronDown",
1534
1534
  setup(e) {
1535
- return (n, t) => (g(), p("svg", de({
1535
+ return (n, t) => (g(), v("svg", de({
1536
1536
  fill: "none",
1537
1537
  stroke: "currentColor",
1538
1538
  viewBox: "0 0 24 24"
@@ -1549,7 +1549,7 @@ const Be = /* @__PURE__ */ S({
1549
1549
  inheritAttrs: !1,
1550
1550
  __name: "DsIconChevronUp",
1551
1551
  setup(e) {
1552
- return (n, t) => (g(), p("svg", de({
1552
+ return (n, t) => (g(), v("svg", de({
1553
1553
  fill: "none",
1554
1554
  stroke: "currentColor",
1555
1555
  viewBox: "0 0 24 24"
@@ -1566,7 +1566,7 @@ const Be = /* @__PURE__ */ S({
1566
1566
  inheritAttrs: !1,
1567
1567
  __name: "DsIconSort",
1568
1568
  setup(e) {
1569
- return (n, t) => (g(), p("svg", de({
1569
+ return (n, t) => (g(), v("svg", de({
1570
1570
  fill: "none",
1571
1571
  stroke: "currentColor",
1572
1572
  viewBox: "0 0 24 24"
@@ -1588,7 +1588,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1588
1588
  key: 0,
1589
1589
  class: "px-3 py-2 text-sm text-fg-disabled",
1590
1590
  role: "status"
1591
- }, ss = /* @__PURE__ */ S({
1591
+ }, rs = /* @__PURE__ */ S({
1592
1592
  __name: "DsDropdownSelect",
1593
1593
  props: {
1594
1594
  modelValue: {},
@@ -1607,87 +1607,87 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1607
1607
  const t = e, o = n, s = j(), r = j(), a = j(!1), d = fe("listbox"), i = j(-1), b = k(() => {
1608
1608
  if (!(!a.value || i.value < 0))
1609
1609
  return c(i.value);
1610
- }), c = (v) => `${d}-option-${v}`, { floatingStyles: l } = xt(s, r, {
1610
+ }), c = (p) => `${d}-option-${p}`, { floatingStyles: l } = xt(s, r, {
1611
1611
  placement: "bottom-start",
1612
1612
  middleware: [
1613
1613
  ht(4),
1614
- vt(),
1615
- pt({ padding: 8 }),
1614
+ pt(),
1615
+ vt({ padding: 8 }),
1616
1616
  An({
1617
- apply({ rects: v }) {
1617
+ apply({ rects: p }) {
1618
1618
  r.value && Object.assign(r.value.style, {
1619
- minWidth: `${v.reference.width}px`
1619
+ minWidth: `${p.reference.width}px`
1620
1620
  });
1621
1621
  }
1622
1622
  })
1623
1623
  ],
1624
1624
  whileElementsMounted: En
1625
- }), f = k(() => t.modelValue), u = k(() => t.options.find((v) => h(v) === f.value)), m = k(() => u.value ? y(u.value) : ""), h = (v) => typeof v == "object" && v !== null ? v.value : v, y = (v) => typeof v == "object" && v !== null ? v.label : String(v), w = (v) => typeof v == "object" && v !== null && v.disabled || !1, C = () => {
1625
+ }), f = k(() => t.modelValue), u = k(() => t.options.find((p) => h(p) === f.value)), m = k(() => u.value ? y(u.value) : ""), h = (p) => typeof p == "object" && p !== null ? p.value : p, y = (p) => typeof p == "object" && p !== null ? p.label : String(p), w = (p) => typeof p == "object" && p !== null && p.disabled || !1, C = () => {
1626
1626
  je(() => {
1627
- const v = r.value;
1628
- if (!v || i.value < 0) return;
1629
- const O = v.querySelector(`#${c(i.value)}`);
1630
- O == null || O.scrollIntoView({ block: "nearest" });
1627
+ const p = r.value;
1628
+ if (!p || i.value < 0) return;
1629
+ const L = p.querySelector(`#${c(i.value)}`);
1630
+ L == null || L.scrollIntoView({ block: "nearest" });
1631
1631
  });
1632
- }, x = (v, O) => {
1633
- let L = v;
1634
- for (; L >= 0 && L < t.options.length; ) {
1635
- if (!w(t.options[L])) return L;
1636
- L += O;
1632
+ }, x = (p, L) => {
1633
+ let V = p;
1634
+ for (; V >= 0 && V < t.options.length; ) {
1635
+ if (!w(t.options[V])) return V;
1636
+ V += L;
1637
1637
  }
1638
1638
  return -1;
1639
1639
  }, $ = () => {
1640
- const v = x(i.value + 1, 1);
1641
- v >= 0 && (i.value = v, C());
1640
+ const p = x(i.value + 1, 1);
1641
+ p >= 0 && (i.value = p, C());
1642
+ }, B = () => {
1643
+ const p = x(i.value - 1, -1);
1644
+ p >= 0 && (i.value = p, C());
1645
+ }, O = () => {
1646
+ const p = x(0, 1);
1647
+ p >= 0 && (i.value = p, C());
1642
1648
  }, A = () => {
1643
- const v = x(i.value - 1, -1);
1644
- v >= 0 && (i.value = v, C());
1645
- }, V = () => {
1646
- const v = x(0, 1);
1647
- v >= 0 && (i.value = v, C());
1648
- }, E = () => {
1649
- const v = x(t.options.length - 1, -1);
1650
- v >= 0 && (i.value = v, C());
1649
+ const p = x(t.options.length - 1, -1);
1650
+ p >= 0 && (i.value = p, C());
1651
1651
  }, z = () => {
1652
1652
  t.disabled || t.loading || (a.value = !0, je(() => {
1653
- const v = t.options.findIndex(
1654
- (O) => h(O) === f.value
1653
+ const p = t.options.findIndex(
1654
+ (L) => h(L) === f.value
1655
1655
  );
1656
- v >= 0 && !w(t.options[v]) ? i.value = v : V(), C();
1656
+ p >= 0 && !w(t.options[p]) ? i.value = p : O(), C();
1657
1657
  }));
1658
1658
  }, M = () => {
1659
1659
  a.value = !1, i.value = -1;
1660
1660
  }, W = () => {
1661
1661
  t.disabled || t.loading || (a.value ? M() : z());
1662
- }, Y = (v) => {
1663
- if (w(v)) return;
1664
- const O = h(v);
1665
- o("update:modelValue", O), o("change", O, v), M();
1666
- }, U = (v) => {
1662
+ }, Y = (p) => {
1663
+ if (w(p)) return;
1664
+ const L = h(p);
1665
+ o("update:modelValue", L), o("change", L, p), M();
1666
+ }, U = (p) => {
1667
1667
  if (!(t.disabled || t.loading)) {
1668
1668
  if (!a.value) {
1669
- (v.key === "ArrowDown" || v.key === "ArrowUp" || v.key === "Enter" || v.key === " ") && (v.preventDefault(), z());
1669
+ (p.key === "ArrowDown" || p.key === "ArrowUp" || p.key === "Enter" || p.key === " ") && (p.preventDefault(), z());
1670
1670
  return;
1671
1671
  }
1672
- switch (v.key) {
1672
+ switch (p.key) {
1673
1673
  case "ArrowDown":
1674
- v.preventDefault(), i.value < 0 ? V() : $();
1674
+ p.preventDefault(), i.value < 0 ? O() : $();
1675
1675
  break;
1676
1676
  case "ArrowUp":
1677
- v.preventDefault(), i.value < 0 ? E() : A();
1677
+ p.preventDefault(), i.value < 0 ? A() : B();
1678
1678
  break;
1679
1679
  case "Home":
1680
- v.preventDefault(), V();
1680
+ p.preventDefault(), O();
1681
1681
  break;
1682
1682
  case "End":
1683
- v.preventDefault(), E();
1683
+ p.preventDefault(), A();
1684
1684
  break;
1685
1685
  case "Enter":
1686
1686
  case " ":
1687
- v.preventDefault(), i.value >= 0 && i.value < t.options.length && Y(t.options[i.value]);
1687
+ p.preventDefault(), i.value >= 0 && i.value < t.options.length && Y(t.options[i.value]);
1688
1688
  break;
1689
1689
  case "Escape":
1690
- v.preventDefault(), M();
1690
+ p.preventDefault(), M();
1691
1691
  break;
1692
1692
  case "Tab":
1693
1693
  M();
@@ -1695,8 +1695,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1695
1695
  }
1696
1696
  }
1697
1697
  };
1698
- return (v, O) => (g(), p("div", jn, [
1699
- _(Vt, {
1698
+ return (p, L) => (g(), v("div", jn, [
1699
+ _(Ot, {
1700
1700
  ref_key: "triggerRef",
1701
1701
  ref: s,
1702
1702
  variant: e.variant,
@@ -1715,14 +1715,14 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1715
1715
  onKeydown: U
1716
1716
  }, {
1717
1717
  default: Re(() => [
1718
- N(v.$slots, "trigger", {}, () => [
1719
- X(B(m.value || e.placeholder), 1)
1718
+ N(p.$slots, "trigger", {}, () => [
1719
+ X(E(m.value || e.placeholder), 1)
1720
1720
  ])
1721
1721
  ]),
1722
1722
  _: 3
1723
1723
  }, 8, ["variant", "disabled", "loading", "size", "iconLeft", "iconRight", "fullWidth", "aria-expanded", "aria-controls", "aria-activedescendant"]),
1724
- (g(), I(Oe, { to: "body" }, [
1725
- a.value ? (g(), p("div", {
1724
+ (g(), I(Le, { to: "body" }, [
1725
+ a.value ? (g(), v("div", {
1726
1726
  key: 0,
1727
1727
  ref_key: "floatingRef",
1728
1728
  ref: r,
@@ -1731,38 +1731,38 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1731
1731
  "aria-label": e.placeholder,
1732
1732
  style: he(R(l)),
1733
1733
  class: "z-50 min-w-32 bg-bg border border-solid border-border rounded-md shadow-default max-h-64 overflow-y-auto",
1734
- onClick: O[0] || (O[0] = Dt(() => {
1734
+ onClick: L[0] || (L[0] = Dt(() => {
1735
1735
  }, ["stop"]))
1736
1736
  }, [
1737
- (g(!0), p(se, null, re(e.options, (L, P) => (g(), p("div", {
1738
- key: h(L),
1737
+ (g(!0), v(se, null, re(e.options, (V, P) => (g(), v("div", {
1738
+ key: h(V),
1739
1739
  id: c(P),
1740
1740
  role: "option",
1741
- "aria-selected": f.value === h(L) ? "true" : "false",
1742
- "aria-disabled": w(L) ? "true" : void 0,
1741
+ "aria-selected": f.value === h(V) ? "true" : "false",
1742
+ "aria-disabled": w(V) ? "true" : void 0,
1743
1743
  class: T([
1744
1744
  "px-3 py-2 text-sm transition-colors outline-none",
1745
- w(L) ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
1746
- f.value === h(L) ? "bg-brand text-brand-on-solid" : "",
1747
- i.value === P && f.value !== h(L) ? "bg-surface-hover" : "",
1748
- (i.value !== P && f.value !== h(L), ""),
1745
+ w(V) ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
1746
+ f.value === h(V) ? "bg-brand text-brand-on-solid" : "",
1747
+ i.value === P && f.value !== h(V) ? "bg-surface-hover" : "",
1748
+ (i.value !== P && f.value !== h(V), ""),
1749
1749
  P === 0 ? "rounded-t-md" : "",
1750
1750
  P === e.options.length - 1 ? "rounded-b-md" : ""
1751
1751
  ]),
1752
- onClick: (H) => Y(L),
1752
+ onClick: (H) => Y(V),
1753
1753
  onMouseenter: (H) => i.value = P
1754
1754
  }, [
1755
- N(v.$slots, "option", {
1756
- option: L,
1755
+ N(p.$slots, "option", {
1756
+ option: V,
1757
1757
  index: P
1758
1758
  }, () => [
1759
- X(B(y(L)), 1)
1759
+ X(E(y(V)), 1)
1760
1760
  ])
1761
1761
  ], 42, In))), 128)),
1762
- e.options.length ? D("", !0) : (g(), p("div", Nn, B(e.emptyText), 1))
1762
+ e.options.length ? D("", !0) : (g(), v("div", Nn, E(e.emptyText), 1))
1763
1763
  ], 12, Pn)) : D("", !0)
1764
1764
  ])),
1765
- a.value ? (g(), p("div", {
1765
+ a.value ? (g(), v("div", {
1766
1766
  key: 0,
1767
1767
  class: "fixed inset-0 z-40",
1768
1768
  onClick: M
@@ -1781,7 +1781,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1781
1781
  key: 1,
1782
1782
  class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",
1783
1783
  "aria-hidden": "true"
1784
- }, rs = /* @__PURE__ */ S({
1784
+ }, as = /* @__PURE__ */ S({
1785
1785
  __name: "DsInput",
1786
1786
  props: {
1787
1787
  modelValue: {},
@@ -1827,18 +1827,18 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1827
1827
  "disabled:bg-surface-disabled",
1828
1828
  "disabled:text-fg-disabled",
1829
1829
  "box-border"
1830
- ], A = {
1830
+ ], B = {
1831
1831
  small: { text: "text-sm", py: "py-1", px: "px-2", pl: "pl-8", pr: "pr-8" },
1832
1832
  medium: { text: "text-base", py: "py-2", px: "px-3", pl: "pl-10", pr: "pr-10" },
1833
1833
  large: { text: "text-lg", py: "py-3", px: "px-4", pl: "pl-12", pr: "pr-12" }
1834
- }[o.size], V = o.error ? ["border-error-border", "focus:border-error", "focus:ring-error"] : ["border-border", "focus:border-border-focus", "focus:ring-brand"];
1834
+ }[o.size], O = o.error ? ["border-error-border", "focus:border-error", "focus:ring-error"] : ["border-border", "focus:border-border-focus", "focus:ring-brand"];
1835
1835
  return [
1836
1836
  ...x,
1837
- A.text,
1838
- A.py,
1839
- o.iconLeft ? A.pl : A.px,
1840
- l.value ? A.pr : A.px,
1841
- ...V
1837
+ B.text,
1838
+ B.py,
1839
+ o.iconLeft ? B.pl : B.px,
1840
+ l.value ? B.pr : B.px,
1841
+ ...O
1842
1842
  ].join(" ");
1843
1843
  }), m = k(() => {
1844
1844
  const x = { small: "w-4 h-4", medium: "w-5 h-5", large: "w-6 h-6" }, $ = o.error ? "text-error" : "text-fg-tertiary";
@@ -1847,8 +1847,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1847
1847
  function h(x) {
1848
1848
  const $ = x.target;
1849
1849
  if (o.type === "number") {
1850
- const A = Number($.value);
1851
- s("update:modelValue", Number.isNaN(A) ? $.value : A);
1850
+ const B = Number($.value);
1851
+ s("update:modelValue", Number.isNaN(B) ? $.value : B);
1852
1852
  } else
1853
1853
  s("update:modelValue", $.value);
1854
1854
  }
@@ -1864,17 +1864,17 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1864
1864
  var x;
1865
1865
  (x = r.value) == null || x.blur();
1866
1866
  }
1867
- return n({ focus: w, blur: C, inputRef: r }), (x, $) => (g(), p("div", Wn, [
1868
- e.label ? (g(), p("label", {
1867
+ return n({ focus: w, blur: C, inputRef: r }), (x, $) => (g(), v("div", Wn, [
1868
+ e.label ? (g(), v("label", {
1869
1869
  key: 0,
1870
1870
  for: R(a),
1871
1871
  class: "block text-label mb-1"
1872
1872
  }, [
1873
- X(B(e.label) + " ", 1),
1874
- e.required ? (g(), p("span", qn, "*")) : D("", !0)
1873
+ X(E(e.label) + " ", 1),
1874
+ e.required ? (g(), v("span", qn, "*")) : D("", !0)
1875
1875
  ], 8, Hn)) : D("", !0),
1876
1876
  F("div", Kn, [
1877
- e.iconLeft ? (g(), p("div", Un, [
1877
+ e.iconLeft ? (g(), v("div", Un, [
1878
1878
  (g(), I($e(e.iconLeft), {
1879
1879
  class: T(m.value)
1880
1880
  }, null, 8, ["class"]))
@@ -1898,16 +1898,16 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1898
1898
  "aria-invalid": e.error ? "true" : void 0,
1899
1899
  class: T(u.value),
1900
1900
  onInput: h,
1901
- onBlur: $[0] || ($[0] = (A) => x.$emit("blur", A)),
1902
- onFocus: $[1] || ($[1] = (A) => x.$emit("focus", A)),
1903
- onKeydown: $[2] || ($[2] = st((A) => x.$emit("enter"), ["enter"]))
1901
+ onBlur: $[0] || ($[0] = (B) => x.$emit("blur", B)),
1902
+ onFocus: $[1] || ($[1] = (B) => x.$emit("focus", B)),
1903
+ onKeydown: $[2] || ($[2] = st((B) => x.$emit("enter"), ["enter"]))
1904
1904
  }, null, 42, Xn),
1905
- e.iconRight && !c.value ? (g(), p("div", Yn, [
1905
+ e.iconRight && !c.value ? (g(), v("div", Yn, [
1906
1906
  (g(), I($e(e.iconRight), {
1907
1907
  class: T(m.value)
1908
1908
  }, null, 8, ["class"]))
1909
1909
  ])) : D("", !0),
1910
- c.value ? (g(), p("button", {
1910
+ c.value ? (g(), v("button", {
1911
1911
  key: 2,
1912
1912
  type: "button",
1913
1913
  "aria-label": "Clear input",
@@ -1917,18 +1917,18 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1917
1917
  _(R(Be), { class: "w-4 h-4" })
1918
1918
  ])) : D("", !0)
1919
1919
  ]),
1920
- e.helpText && !e.error ? (g(), p("div", {
1920
+ e.helpText && !e.error ? (g(), v("div", {
1921
1921
  key: 1,
1922
1922
  id: d,
1923
1923
  class: "mt-1 text-caption"
1924
- }, B(e.helpText), 1)) : D("", !0),
1925
- e.error ? (g(), p("div", {
1924
+ }, E(e.helpText), 1)) : D("", !0),
1925
+ e.error ? (g(), v("div", {
1926
1926
  key: 2,
1927
1927
  id: i,
1928
1928
  class: "mt-1 text-sm text-error font-sans",
1929
1929
  role: "alert",
1930
1930
  "aria-live": "polite"
1931
- }, B(e.error), 1)) : D("", !0)
1931
+ }, E(e.error), 1)) : D("", !0)
1932
1932
  ]));
1933
1933
  }
1934
1934
  }), Gn = {
@@ -1987,7 +1987,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1987
1987
  "text-fg-secondary",
1988
1988
  "font-medium"
1989
1989
  ].join(" "));
1990
- return (r, a) => (g(), p("div", {
1990
+ return (r, a) => (g(), v("div", {
1991
1991
  class: T(t.value),
1992
1992
  role: "status",
1993
1993
  "aria-live": "polite"
@@ -1996,16 +1996,16 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
1996
1996
  class: T(o.value),
1997
1997
  "aria-hidden": "true"
1998
1998
  }, null, 2),
1999
- e.text ? (g(), p("span", {
1999
+ e.text ? (g(), v("span", {
2000
2000
  key: 0,
2001
2001
  class: T(s.value)
2002
- }, B(e.text), 3)) : (g(), p("span", Gn, "Loading"))
2002
+ }, E(e.text), 3)) : (g(), v("span", Gn, "Loading"))
2003
2003
  ], 2));
2004
2004
  }
2005
2005
  }), Qn = ["aria-labelledby"], Zn = { class: "flex items-center justify-between px-6 py-4 border-b border-solid border-border" }, _n = ["id"], eo = { class: "px-6 py-4 overflow-y-auto flex-1" }, to = {
2006
2006
  key: 0,
2007
2007
  class: "px-6 py-4 border-t border-solid border-border"
2008
- }, as = /* @__PURE__ */ S({
2008
+ }, ls = /* @__PURE__ */ S({
2009
2009
  __name: "DsModal",
2010
2010
  props: {
2011
2011
  modelValue: { type: Boolean },
@@ -2055,7 +2055,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2055
2055
  }
2056
2056
  ), rt(() => {
2057
2057
  document.body.style.overflow = "", document.removeEventListener("keydown", f);
2058
- }), (u, m) => (g(), I(Oe, { to: "body" }, [
2058
+ }), (u, m) => (g(), I(Le, { to: "body" }, [
2059
2059
  _(at, {
2060
2060
  "enter-active-class": "transition-opacity duration-200",
2061
2061
  "enter-from-class": "opacity-0",
@@ -2065,7 +2065,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2065
2065
  "leave-to-class": "opacity-0"
2066
2066
  }, {
2067
2067
  default: Re(() => [
2068
- e.modelValue ? (g(), p("div", {
2068
+ e.modelValue ? (g(), v("div", {
2069
2069
  key: 0,
2070
2070
  class: "fixed inset-0 z-50 flex items-center justify-center p-4",
2071
2071
  onKeydown: st(c, ["escape"])
@@ -2089,9 +2089,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2089
2089
  F("h2", {
2090
2090
  id: R(s),
2091
2091
  class: "text-heading-lg m-0"
2092
- }, B(e.title), 9, _n)
2092
+ }, E(e.title), 9, _n)
2093
2093
  ]),
2094
- e.closable ? (g(), p("button", {
2094
+ e.closable ? (g(), v("button", {
2095
2095
  key: 0,
2096
2096
  type: "button",
2097
2097
  class: "p-1 rounded-md text-fg-tertiary hover:text-fg hover:bg-surface-hover-light transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
@@ -2104,7 +2104,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2104
2104
  F("div", eo, [
2105
2105
  N(u.$slots, "default")
2106
2106
  ]),
2107
- u.$slots.footer ? (g(), p("div", to, [
2107
+ u.$slots.footer ? (g(), v("div", to, [
2108
2108
  N(u.$slots, "footer")
2109
2109
  ])) : D("", !0)
2110
2110
  ], 10, Qn)
@@ -2114,7 +2114,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2114
2114
  })
2115
2115
  ]));
2116
2116
  }
2117
- }), no = ["id", "name", "checked", "disabled", "value"], ls = /* @__PURE__ */ S({
2117
+ }), no = ["id", "name", "checked", "disabled", "value"], is = /* @__PURE__ */ S({
2118
2118
  __name: "DsRadio",
2119
2119
  props: {
2120
2120
  modelValue: { type: [String, Number, Boolean] },
@@ -2160,7 +2160,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2160
2160
  const l = c.target, f = t.value ?? l.value;
2161
2161
  o("update:modelValue", f), o("change", f, c);
2162
2162
  };
2163
- return (c, l) => (g(), p("label", {
2163
+ return (c, l) => (g(), v("label", {
2164
2164
  class: T([
2165
2165
  "inline-flex items-center gap-2",
2166
2166
  e.disabled ? "cursor-not-allowed" : "cursor-pointer",
@@ -2181,17 +2181,17 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2181
2181
  class: T(a.value),
2182
2182
  "aria-hidden": "true"
2183
2183
  }, [
2184
- s.value ? (g(), p("span", {
2184
+ s.value ? (g(), v("span", {
2185
2185
  key: 0,
2186
2186
  class: T(d.value)
2187
2187
  }, null, 2)) : D("", !0)
2188
2188
  ], 2),
2189
- e.label || c.$slots.default ? (g(), p("span", {
2189
+ e.label || c.$slots.default ? (g(), v("span", {
2190
2190
  key: 0,
2191
2191
  class: T(i.value)
2192
2192
  }, [
2193
2193
  N(c.$slots, "default", {}, () => [
2194
- X(B(e.label), 1)
2194
+ X(E(e.label), 1)
2195
2195
  ])
2196
2196
  ], 2)) : D("", !0)
2197
2197
  ], 2));
@@ -2203,7 +2203,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2203
2203
  }, ao = { class: "relative" }, lo = ["id", "value", "disabled", "required", "aria-describedby", "aria-invalid"], io = ["selected"], co = ["value", "disabled"], uo = {
2204
2204
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",
2205
2205
  "aria-hidden": "true"
2206
- }, is = /* @__PURE__ */ S({
2206
+ }, cs = /* @__PURE__ */ S({
2207
2207
  __name: "DsSelect",
2208
2208
  props: {
2209
2209
  modelValue: {},
@@ -2251,14 +2251,14 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2251
2251
  const f = c.target.value, u = t.options.find((m) => String(m.value) === f);
2252
2252
  o("update:modelValue", u && typeof u.value == "number" ? u.value : f);
2253
2253
  };
2254
- return (c, l) => (g(), p("div", oo, [
2255
- e.label ? (g(), p("label", {
2254
+ return (c, l) => (g(), v("div", oo, [
2255
+ e.label ? (g(), v("label", {
2256
2256
  key: 0,
2257
2257
  for: R(s),
2258
2258
  class: "block text-label mb-1"
2259
2259
  }, [
2260
- X(B(e.label) + " ", 1),
2261
- e.required ? (g(), p("span", ro, "*")) : D("", !0)
2260
+ X(E(e.label) + " ", 1),
2261
+ e.required ? (g(), v("span", ro, "*")) : D("", !0)
2262
2262
  ], 8, so)) : D("", !0),
2263
2263
  F("div", ao, [
2264
2264
  F("select", {
@@ -2273,34 +2273,34 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2273
2273
  onBlur: l[0] || (l[0] = (f) => c.$emit("blur", f)),
2274
2274
  onFocus: l[1] || (l[1] = (f) => c.$emit("focus", f))
2275
2275
  }, [
2276
- e.placeholder ? (g(), p("option", {
2276
+ e.placeholder ? (g(), v("option", {
2277
2277
  key: 0,
2278
2278
  value: "",
2279
2279
  disabled: "",
2280
2280
  selected: !e.modelValue
2281
- }, B(e.placeholder), 9, io)) : D("", !0),
2282
- (g(!0), p(se, null, re(e.options, (f) => (g(), p("option", {
2281
+ }, E(e.placeholder), 9, io)) : D("", !0),
2282
+ (g(!0), v(se, null, re(e.options, (f) => (g(), v("option", {
2283
2283
  key: f.value,
2284
2284
  value: f.value,
2285
2285
  disabled: f.disabled
2286
- }, B(f.label), 9, co))), 128))
2286
+ }, E(f.label), 9, co))), 128))
2287
2287
  ], 42, lo),
2288
2288
  F("div", uo, [
2289
2289
  _(R(Ge), { class: "w-4 h-4 text-fg-tertiary" })
2290
2290
  ])
2291
2291
  ]),
2292
- e.helpText && !e.error ? (g(), p("div", {
2292
+ e.helpText && !e.error ? (g(), v("div", {
2293
2293
  key: 1,
2294
2294
  id: r,
2295
2295
  class: "mt-1 text-caption"
2296
- }, B(e.helpText), 1)) : D("", !0),
2297
- e.error ? (g(), p("div", {
2296
+ }, E(e.helpText), 1)) : D("", !0),
2297
+ e.error ? (g(), v("div", {
2298
2298
  key: 2,
2299
2299
  id: a,
2300
2300
  class: "mt-1 text-sm text-error font-sans",
2301
2301
  role: "alert",
2302
2302
  "aria-live": "polite"
2303
- }, B(e.error), 1)) : D("", !0)
2303
+ }, E(e.error), 1)) : D("", !0)
2304
2304
  ]));
2305
2305
  }
2306
2306
  }), fo = { class: "w-full overflow-x-auto" }, bo = {
@@ -2310,10 +2310,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2310
2310
  key: 0,
2311
2311
  class: "inline-flex",
2312
2312
  "aria-hidden": "true"
2313
- }, po = { key: 0 }, vo = ["colspan"], yo = { key: 1 }, xo = ["colspan"], wo = {
2313
+ }, vo = { class: "border-solid border-border" }, po = { key: 0 }, yo = ["colspan"], xo = { key: 1 }, wo = ["colspan"], ko = {
2314
2314
  key: 0,
2315
2315
  class: "flex items-center justify-between px-4 py-3 border-t border-solid border-border bg-bg-secondary text-sm"
2316
- }, ko = { class: "text-fg-secondary" }, Fo = { class: "flex gap-2" }, Co = ["disabled"], $o = ["disabled"], cs = /* @__PURE__ */ S({
2316
+ }, Fo = { class: "text-fg-secondary" }, Co = { class: "flex gap-2" }, $o = ["disabled"], Do = ["disabled"], ds = /* @__PURE__ */ S({
2317
2317
  __name: "DsTable",
2318
2318
  props: {
2319
2319
  columns: {},
@@ -2324,6 +2324,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2324
2324
  emptyText: { default: "No data available" },
2325
2325
  striped: { type: Boolean, default: !1 },
2326
2326
  stickyHeader: { type: Boolean, default: !1 },
2327
+ nextPageLabel: { default: "Next" },
2328
+ previousPageLabel: { default: "Previous" },
2329
+ ofLabel: { default: "of" },
2327
2330
  pagination: {}
2328
2331
  },
2329
2332
  emits: ["update:sortBy", "update:sortOrder", "update:page"],
@@ -2351,13 +2354,13 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2351
2354
  function l(f) {
2352
2355
  return `px-4 py-3 ${f.align === "center" ? "text-center" : f.align === "right" ? "text-right" : "text-left"}`;
2353
2356
  }
2354
- return (f, u) => (g(), p("div", fo, [
2357
+ return (f, u) => (g(), v("div", fo, [
2355
2358
  F("table", bo, [
2356
2359
  F("thead", {
2357
2360
  class: T(e.stickyHeader ? "sticky top-0 z-10" : "")
2358
2361
  }, [
2359
2362
  F("tr", mo, [
2360
- (g(!0), p(se, null, re(e.columns, (m) => (g(), p("th", {
2363
+ (g(!0), v(se, null, re(e.columns, (m) => (g(), v("th", {
2361
2364
  key: m.key,
2362
2365
  style: he(m.width ? { width: m.width } : void 0),
2363
2366
  class: T(c(m)),
@@ -2368,9 +2371,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2368
2371
  class: T(["flex items-center gap-1", b(m.align)])
2369
2372
  }, [
2370
2373
  N(f.$slots, `header-${m.key}`, { column: m }, () => [
2371
- X(B(m.label), 1)
2374
+ X(E(m.label), 1)
2372
2375
  ]),
2373
- m.sortable ? (g(), p("span", ho, [
2376
+ m.sortable ? (g(), v("span", ho, [
2374
2377
  e.sortBy === m.key && e.sortOrder === "asc" ? (g(), I(R(Sn), {
2375
2378
  key: 0,
2376
2379
  class: "w-4 h-4"
@@ -2386,8 +2389,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2386
2389
  ], 14, go))), 128))
2387
2390
  ])
2388
2391
  ], 2),
2389
- F("tbody", null, [
2390
- e.loading ? (g(), p("tr", po, [
2392
+ F("tbody", vo, [
2393
+ e.loading ? (g(), v("tr", po, [
2391
2394
  F("td", {
2392
2395
  colspan: e.columns.length,
2393
2396
  class: "text-center py-12"
@@ -2395,25 +2398,25 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2395
2398
  N(f.$slots, "loading", {}, () => [
2396
2399
  _(Jn, { centered: "" })
2397
2400
  ])
2398
- ], 8, vo)
2399
- ])) : e.rows.length === 0 ? (g(), p("tr", yo, [
2401
+ ], 8, yo)
2402
+ ])) : e.rows.length === 0 ? (g(), v("tr", xo, [
2400
2403
  F("td", {
2401
2404
  colspan: e.columns.length,
2402
2405
  class: "text-center py-12 text-fg-secondary"
2403
2406
  }, [
2404
2407
  N(f.$slots, "empty", {}, () => [
2405
- X(B(e.emptyText), 1)
2408
+ X(E(e.emptyText), 1)
2406
2409
  ])
2407
- ], 8, xo)
2410
+ ], 8, wo)
2408
2411
  ])) : D("", !0),
2409
- (g(!0), p(se, null, re(e.rows, (m, h) => (g(), p("tr", {
2412
+ (g(!0), v(se, null, re(e.rows, (m, h) => (g(), v("tr", {
2410
2413
  key: h,
2411
2414
  class: T([
2412
2415
  "border-b border-solid border-border-light transition-colors hover:bg-surface-hover-light",
2413
2416
  e.striped && h % 2 === 1 ? "bg-bg-secondary" : ""
2414
2417
  ])
2415
2418
  }, [
2416
- (g(!0), p(se, null, re(e.columns, (y) => (g(), p("td", {
2419
+ (g(!0), v(se, null, re(e.columns, (y) => (g(), v("td", {
2417
2420
  key: y.key,
2418
2421
  class: T(l(y))
2419
2422
  }, [
@@ -2422,32 +2425,32 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2422
2425
  value: m[y.key],
2423
2426
  index: h
2424
2427
  }, () => [
2425
- X(B(m[y.key]), 1)
2428
+ X(E(m[y.key]), 1)
2426
2429
  ])
2427
2430
  ], 2))), 128))
2428
2431
  ], 2))), 128))
2429
2432
  ])
2430
2433
  ]),
2431
- e.pagination ? (g(), p("div", wo, [
2432
- F("span", ko, B(r.value) + "–" + B(a.value) + " of " + B(e.pagination.total), 1),
2433
- F("div", Fo, [
2434
+ e.pagination ? (g(), v("div", ko, [
2435
+ F("span", Fo, E(r.value) + "–" + E(a.value) + " " + E(e.ofLabel) + " " + E(e.pagination.total), 1),
2436
+ F("div", Co, [
2434
2437
  F("button", {
2435
2438
  type: "button",
2436
2439
  disabled: e.pagination.page <= 1,
2437
2440
  class: "px-3 py-1 rounded-md border border-solid border-border bg-bg text-fg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-hover-light transition-colors",
2438
2441
  onClick: u[0] || (u[0] = (m) => f.$emit("update:page", e.pagination.page - 1))
2439
- }, " Previous ", 8, Co),
2442
+ }, E(e.previousPageLabel), 9, $o),
2440
2443
  F("button", {
2441
2444
  type: "button",
2442
2445
  disabled: e.pagination.page >= s.value,
2443
2446
  class: "px-3 py-1 rounded-md border border-solid border-border bg-bg text-fg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-hover-light transition-colors",
2444
2447
  onClick: u[1] || (u[1] = (m) => f.$emit("update:page", e.pagination.page + 1))
2445
- }, " Next ", 8, $o)
2448
+ }, E(e.nextPageLabel), 9, Do)
2446
2449
  ])
2447
2450
  ])) : D("", !0)
2448
2451
  ]));
2449
2452
  }
2450
- }), Do = ["aria-label"], Eo = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"], Ao = ["id", "aria-labelledby", "hidden"], ds = /* @__PURE__ */ S({
2453
+ }), Eo = ["aria-label"], Ao = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"], Bo = ["id", "aria-labelledby", "hidden"], us = /* @__PURE__ */ S({
2451
2454
  __name: "DsTabs",
2452
2455
  props: {
2453
2456
  modelValue: {},
@@ -2503,13 +2506,13 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2503
2506
  const h = document.getElementById(`${s}-tab-${m.key}`);
2504
2507
  h == null || h.focus();
2505
2508
  }
2506
- return (b, c) => (g(), p("div", null, [
2509
+ return (b, c) => (g(), v("div", null, [
2507
2510
  F("div", {
2508
2511
  class: T(r.value),
2509
2512
  role: "tablist",
2510
2513
  "aria-label": e.ariaLabel
2511
2514
  }, [
2512
- (g(!0), p(se, null, re(e.tabs, (l, f) => (g(), p("button", {
2515
+ (g(!0), v(se, null, re(e.tabs, (l, f) => (g(), v("button", {
2513
2516
  key: l.key,
2514
2517
  id: `${R(s)}-tab-${l.key}`,
2515
2518
  role: "tab",
@@ -2521,9 +2524,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2521
2524
  class: T(d(l)),
2522
2525
  onClick: (u) => a(l),
2523
2526
  onKeydown: (u) => i(u, f)
2524
- }, B(l.label), 43, Eo))), 128))
2525
- ], 10, Do),
2526
- (g(!0), p(se, null, re(e.tabs, (l) => (g(), p("div", {
2527
+ }, E(l.label), 43, Ao))), 128))
2528
+ ], 10, Eo),
2529
+ (g(!0), v(se, null, re(e.tabs, (l) => (g(), v("div", {
2527
2530
  key: l.key,
2528
2531
  id: `${R(s)}-panel-${l.key}`,
2529
2532
  role: "tabpanel",
@@ -2532,20 +2535,20 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2532
2535
  tabindex: 0
2533
2536
  }, [
2534
2537
  e.modelValue === l.key ? N(b.$slots, l.key, { key: 0 }) : D("", !0)
2535
- ], 8, Ao))), 128))
2538
+ ], 8, Bo))), 128))
2536
2539
  ]));
2537
2540
  }
2538
- }), Bo = { class: "w-full" }, To = ["for"], Ro = {
2541
+ }), To = { class: "w-full" }, Ro = ["for"], Lo = {
2539
2542
  key: 0,
2540
2543
  class: "text-error ml-1",
2541
2544
  "aria-hidden": "true"
2542
- }, Oo = { class: "relative" }, Vo = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"], Lo = {
2545
+ }, Oo = { class: "relative" }, Vo = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"], So = {
2543
2546
  key: 1,
2544
2547
  class: "flex justify-between mt-1"
2545
- }, So = {
2548
+ }, zo = {
2546
2549
  key: 2,
2547
2550
  class: "text-caption ml-auto"
2548
- }, us = /* @__PURE__ */ S({
2551
+ }, fs = /* @__PURE__ */ S({
2549
2552
  __name: "DsTextarea",
2550
2553
  props: {
2551
2554
  modelValue: {},
@@ -2603,15 +2606,15 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2603
2606
  var h;
2604
2607
  (h = r.value) == null || h.blur();
2605
2608
  }
2606
- return n({ focus: u, blur: m, textareaRef: r }), (h, y) => (g(), p("div", Bo, [
2607
- e.label ? (g(), p("label", {
2609
+ return n({ focus: u, blur: m, textareaRef: r }), (h, y) => (g(), v("div", To, [
2610
+ e.label ? (g(), v("label", {
2608
2611
  key: 0,
2609
2612
  for: R(a),
2610
2613
  class: "block text-label mb-1"
2611
2614
  }, [
2612
- X(B(e.label) + " ", 1),
2613
- e.required ? (g(), p("span", Ro, "*")) : D("", !0)
2614
- ], 8, To)) : D("", !0),
2615
+ X(E(e.label) + " ", 1),
2616
+ e.required ? (g(), v("span", Lo, "*")) : D("", !0)
2617
+ ], 8, Ro)) : D("", !0),
2615
2618
  F("div", Oo, [
2616
2619
  F("textarea", {
2617
2620
  ref_key: "textareaRef",
@@ -2632,40 +2635,40 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2632
2635
  onFocus: y[1] || (y[1] = (w) => h.$emit("focus", w))
2633
2636
  }, null, 42, Vo)
2634
2637
  ]),
2635
- e.helpText || e.error || e.maxLength ? (g(), p("div", Lo, [
2636
- e.helpText && !e.error ? (g(), p("div", {
2638
+ e.helpText || e.error || e.maxLength ? (g(), v("div", So, [
2639
+ e.helpText && !e.error ? (g(), v("div", {
2637
2640
  key: 0,
2638
2641
  id: d,
2639
2642
  class: "text-caption"
2640
- }, B(e.helpText), 1)) : D("", !0),
2641
- e.error ? (g(), p("div", {
2643
+ }, E(e.helpText), 1)) : D("", !0),
2644
+ e.error ? (g(), v("div", {
2642
2645
  key: 1,
2643
2646
  id: i,
2644
2647
  class: "text-sm text-error font-sans",
2645
2648
  role: "alert",
2646
2649
  "aria-live": "polite"
2647
- }, B(e.error), 1)) : D("", !0),
2648
- e.maxLength ? (g(), p("div", So, B(c.value) + " / " + B(e.maxLength), 1)) : D("", !0)
2650
+ }, E(e.error), 1)) : D("", !0),
2651
+ e.maxLength ? (g(), v("div", zo, E(c.value) + " / " + E(e.maxLength), 1)) : D("", !0)
2649
2652
  ])) : D("", !0)
2650
2653
  ]));
2651
2654
  }
2652
- }), zo = { class: "flex flex-col items-center justify-center h-screen gap-4px" }, Mo = { class: "text-heading-xl text-fg m-0 p-0" }, jo = { class: "text-body-lg text-fg-secondary m-0 p-0" }, fs = /* @__PURE__ */ S({
2655
+ }), Mo = { class: "flex flex-col items-center justify-center h-screen gap-4px" }, jo = { class: "text-heading-xl text-fg m-0 p-0" }, Po = { class: "text-body-lg text-fg-secondary m-0 p-0" }, bs = /* @__PURE__ */ S({
2653
2656
  __name: "DsUnderConstruction",
2654
2657
  props: {
2655
2658
  title: { default: "Under Construction" },
2656
2659
  description: { default: "This page is under construction. Please check back later." }
2657
2660
  },
2658
2661
  setup(e) {
2659
- return (n, t) => (g(), p("div", zo, [
2662
+ return (n, t) => (g(), v("div", Mo, [
2660
2663
  _(R(wt), { class: "w-10 h-10 text-fg-secondary" }),
2661
- F("h2", Mo, B(e.title), 1),
2662
- F("p", jo, B(e.description), 1)
2664
+ F("h2", jo, E(e.title), 1),
2665
+ F("p", Po, E(e.description), 1)
2663
2666
  ]));
2664
2667
  }
2665
- }), Po = ["role", "aria-live"], Io = { class: "flex items-start gap-3 flex-1 min-w-0" }, No = { class: "flex-1 min-w-0" }, Wo = {
2668
+ }), Io = ["role", "aria-live"], No = { class: "flex items-start gap-3 flex-1 min-w-0" }, Wo = { class: "flex-1 min-w-0" }, Ho = {
2666
2669
  key: 0,
2667
2670
  class: "text-label m-0"
2668
- }, Ho = /* @__PURE__ */ S({
2671
+ }, qo = /* @__PURE__ */ S({
2669
2672
  __name: "DsToast",
2670
2673
  props: {
2671
2674
  toast: {}
@@ -2706,19 +2709,19 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2706
2709
  t.toast.duration > 0 && d();
2707
2710
  }), rt(() => {
2708
2711
  s && clearTimeout(s);
2709
- }), (m, h) => (g(), p("div", {
2712
+ }), (m, h) => (g(), v("div", {
2710
2713
  class: T(l.value),
2711
2714
  role: e.toast.variant === "error" ? "alert" : "status",
2712
2715
  "aria-live": e.toast.variant === "error" ? "assertive" : "polite",
2713
2716
  onMouseenter: i,
2714
2717
  onMouseleave: b
2715
2718
  }, [
2716
- F("div", Io, [
2719
+ F("div", No, [
2717
2720
  F("span", {
2718
2721
  class: T(u.value),
2719
2722
  "aria-hidden": "true"
2720
2723
  }, [
2721
- e.toast.variant === "success" ? (g(), I(R(Vn), {
2724
+ e.toast.variant === "success" ? (g(), I(R(On), {
2722
2725
  key: 0,
2723
2726
  class: "w-5 h-5"
2724
2727
  })) : e.toast.variant === "error" ? (g(), I(R(Be), {
@@ -2727,19 +2730,19 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2727
2730
  })) : e.toast.variant === "warning" ? (g(), I(R(wt), {
2728
2731
  key: 2,
2729
2732
  class: "w-5 h-5"
2730
- })) : (g(), I(R(Ln), {
2733
+ })) : (g(), I(R(Vn), {
2731
2734
  key: 3,
2732
2735
  class: "w-5 h-5"
2733
2736
  }))
2734
2737
  ], 2),
2735
- F("div", No, [
2736
- e.toast.title ? (g(), p("p", Wo, B(e.toast.title), 1)) : D("", !0),
2738
+ F("div", Wo, [
2739
+ e.toast.title ? (g(), v("p", Ho, E(e.toast.title), 1)) : D("", !0),
2737
2740
  F("p", {
2738
2741
  class: T(["text-body-sm m-0", e.toast.title ? "mt-0.5" : ""])
2739
- }, B(e.toast.message), 3)
2742
+ }, E(e.toast.message), 3)
2740
2743
  ])
2741
2744
  ]),
2742
- e.toast.closable ? (g(), p("button", {
2745
+ e.toast.closable ? (g(), v("button", {
2743
2746
  key: 0,
2744
2747
  type: "button",
2745
2748
  class: "p-1 rounded-md text-fg-tertiary hover:text-fg transition-colors shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
@@ -2748,13 +2751,13 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
2748
2751
  }, [
2749
2752
  _(R(Be), { class: "w-4 h-4" })
2750
2753
  ])) : D("", !0)
2751
- ], 42, Po));
2754
+ ], 42, Io));
2752
2755
  }
2753
2756
  });
2754
- let qo = 0;
2757
+ let Ko = 0;
2755
2758
  const Te = j([]);
2756
2759
  function xe(e, n, t) {
2757
- const o = ++qo, s = {
2760
+ const o = ++Ko, s = {
2758
2761
  id: o,
2759
2762
  variant: e,
2760
2763
  message: n,
@@ -2764,14 +2767,14 @@ function xe(e, n, t) {
2764
2767
  };
2765
2768
  return Te.value.push(s), o;
2766
2769
  }
2767
- function Ko(e) {
2770
+ function Uo(e) {
2768
2771
  const n = Te.value.findIndex((t) => t.id === e);
2769
2772
  n !== -1 && Te.value.splice(n, 1);
2770
2773
  }
2771
- function Uo() {
2774
+ function Xo() {
2772
2775
  return {
2773
2776
  toasts: Te,
2774
- removeToast: Ko,
2777
+ removeToast: Uo,
2775
2778
  success: (e, n) => xe("success", e, n),
2776
2779
  error: (e, n) => xe("error", e, n),
2777
2780
  warning: (e, n) => xe("warning", e, n),
@@ -2779,15 +2782,15 @@ function Uo() {
2779
2782
  brand: (e, n) => xe("brand", e, n)
2780
2783
  };
2781
2784
  }
2782
- const Xo = {
2785
+ const Yo = {
2783
2786
  class: "fixed top-4 right-4 z-50 flex flex-col gap-3",
2784
2787
  "aria-label": "Notifications"
2785
- }, bs = /* @__PURE__ */ S({
2788
+ }, ms = /* @__PURE__ */ S({
2786
2789
  __name: "DsToastContainer",
2787
2790
  setup(e) {
2788
- const { toasts: n, removeToast: t } = Uo();
2789
- return (o, s) => (g(), I(Oe, { to: "body" }, [
2790
- F("div", Xo, [
2791
+ const { toasts: n, removeToast: t } = Xo();
2792
+ return (o, s) => (g(), I(Le, { to: "body" }, [
2793
+ F("div", Yo, [
2791
2794
  _(At, {
2792
2795
  "enter-active-class": "transition-all duration-300 ease-out",
2793
2796
  "enter-from-class": "opacity-0 translate-x-8",
@@ -2797,7 +2800,7 @@ const Xo = {
2797
2800
  "leave-to-class": "opacity-0 translate-x-8"
2798
2801
  }, {
2799
2802
  default: Re(() => [
2800
- (g(!0), p(se, null, re(R(n), (r) => (g(), I(Ho, {
2803
+ (g(!0), v(se, null, re(R(n), (r) => (g(), I(qo, {
2801
2804
  key: r.id,
2802
2805
  toast: r,
2803
2806
  onDismiss: R(t)
@@ -2808,7 +2811,7 @@ const Xo = {
2808
2811
  ])
2809
2812
  ]));
2810
2813
  }
2811
- }), Yo = ["aria-describedby"], Go = ["id"], ms = /* @__PURE__ */ S({
2814
+ }), Go = ["aria-describedby"], Jo = ["id"], gs = /* @__PURE__ */ S({
2812
2815
  __name: "DsTooltip",
2813
2816
  props: {
2814
2817
  content: {},
@@ -2818,7 +2821,7 @@ const Xo = {
2818
2821
  setup(e) {
2819
2822
  const n = e, t = fe("tooltip"), o = j(!1), s = j(null), r = j(null), a = j(null), { floatingStyles: d, middlewareData: i, placement: b } = xt(s, r, {
2820
2823
  placement: k(() => n.placement),
2821
- middleware: [ht(8), vt(), pt({ padding: 8 }), On({ element: a })]
2824
+ middleware: [ht(8), pt(), vt({ padding: 8 }), Ln({ element: a })]
2822
2825
  }), c = k(() => {
2823
2826
  const u = i.value.arrow;
2824
2827
  if (!u) return {};
@@ -2835,7 +2838,7 @@ const Xo = {
2835
2838
  function f() {
2836
2839
  o.value = !1;
2837
2840
  }
2838
- return (u, m) => (g(), p("div", {
2841
+ return (u, m) => (g(), v("div", {
2839
2842
  class: "inline-flex",
2840
2843
  onMouseenter: l,
2841
2844
  onMouseleave: f,
@@ -2848,8 +2851,8 @@ const Xo = {
2848
2851
  "aria-describedby": o.value ? R(t) : void 0
2849
2852
  }, [
2850
2853
  N(u.$slots, "default")
2851
- ], 8, Yo),
2852
- (g(), I(Oe, { to: "body" }, [
2854
+ ], 8, Go),
2855
+ (g(), I(Le, { to: "body" }, [
2853
2856
  _(at, {
2854
2857
  "enter-active-class": "transition-opacity duration-150",
2855
2858
  "enter-from-class": "opacity-0",
@@ -2859,7 +2862,7 @@ const Xo = {
2859
2862
  "leave-to-class": "opacity-0"
2860
2863
  }, {
2861
2864
  default: Re(() => [
2862
- o.value && !e.disabled ? (g(), p("div", {
2865
+ o.value && !e.disabled ? (g(), v("div", {
2863
2866
  key: 0,
2864
2867
  id: R(t),
2865
2868
  ref_key: "floatingRef",
@@ -2868,21 +2871,21 @@ const Xo = {
2868
2871
  style: he(R(d)),
2869
2872
  class: "z-50 px-2 py-1 text-xs font-medium bg-bg-inverse text-fg-inverse rounded-md shadow-md max-w-xs pointer-events-none"
2870
2873
  }, [
2871
- X(B(e.content) + " ", 1),
2874
+ X(E(e.content) + " ", 1),
2872
2875
  F("div", {
2873
2876
  ref_key: "arrowRef",
2874
2877
  ref: a,
2875
2878
  style: he(c.value),
2876
2879
  class: "absolute w-2 h-2 bg-bg-inverse rotate-45"
2877
2880
  }, null, 4)
2878
- ], 12, Go)) : D("", !0)
2881
+ ], 12, Jo)) : D("", !0)
2879
2882
  ]),
2880
2883
  _: 1
2881
2884
  })
2882
2885
  ]))
2883
2886
  ], 32));
2884
2887
  }
2885
- }), Jo = {
2888
+ }), Qo = {
2886
2889
  // Core UI
2887
2890
  bg: "#FFFFFF",
2888
2891
  "bg-secondary": "#F8FAFC",
@@ -2990,7 +2993,7 @@ const Xo = {
2990
2993
  "transcript-highlight": "#FEF3C7",
2991
2994
  "transcript-speaker": "#EDE9FE",
2992
2995
  "transcript-timestamp": "#F3F4F6"
2993
- }, Qo = {
2996
+ }, Zo = {
2994
2997
  "space-1": "4px",
2995
2998
  "space-2": "8px",
2996
2999
  "space-3": "12px",
@@ -2999,18 +3002,18 @@ const Xo = {
2999
3002
  "space-6": "32px",
3000
3003
  "space-7": "48px",
3001
3004
  "space-8": "64px"
3002
- }, Zo = {
3005
+ }, _o = {
3003
3006
  "radius-sm": "4px",
3004
3007
  "radius-md": "6px",
3005
3008
  "radius-lg": "8px",
3006
3009
  "radius-xl": "12px",
3007
3010
  "radius-full": "9999px"
3008
- }, _o = {
3011
+ }, es = {
3009
3012
  "shadow-sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
3010
3013
  "shadow-md": "0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1)",
3011
3014
  "shadow-lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
3012
- }, gs = { ...Jo, ...Qo, ...Zo, ..._o };
3013
- function hs(e) {
3015
+ }, hs = { ...Qo, ...Zo, ..._o, ...es };
3016
+ function vs(e) {
3014
3017
  return `--ds-${e}`;
3015
3018
  }
3016
3019
  function ps(e, n = ":root") {
@@ -3021,30 +3024,30 @@ ${t}
3021
3024
  }`;
3022
3025
  }
3023
3026
  export {
3024
- ts as DsAvatar,
3025
- ns as DsBadge,
3026
- Vt as DsButton,
3027
- os as DsCheckbox,
3028
- ss as DsDropdownSelect,
3029
- rs as DsInput,
3027
+ ns as DsAvatar,
3028
+ os as DsBadge,
3029
+ Ot as DsButton,
3030
+ ss as DsCheckbox,
3031
+ rs as DsDropdownSelect,
3032
+ as as DsInput,
3030
3033
  Jn as DsLoadingSpinner,
3031
- as as DsModal,
3032
- ls as DsRadio,
3033
- is as DsSelect,
3034
- cs as DsTable,
3035
- ds as DsTabs,
3036
- us as DsTextarea,
3037
- Ho as DsToast,
3038
- bs as DsToastContainer,
3039
- ms as DsTooltip,
3040
- fs as DsUnderConstruction,
3041
- gs as allTokens,
3042
- Jo as colorTokens,
3034
+ ls as DsModal,
3035
+ is as DsRadio,
3036
+ cs as DsSelect,
3037
+ ds as DsTable,
3038
+ us as DsTabs,
3039
+ fs as DsTextarea,
3040
+ qo as DsToast,
3041
+ ms as DsToastContainer,
3042
+ gs as DsTooltip,
3043
+ bs as DsUnderConstruction,
3044
+ hs as allTokens,
3045
+ Qo as colorTokens,
3043
3046
  ps as generateThemeCss,
3044
- Zo as radiusTokens,
3045
- _o as shadowTokens,
3046
- Qo as spacingTokens,
3047
- hs as tokenToCssVar,
3047
+ _o as radiusTokens,
3048
+ es as shadowTokens,
3049
+ Zo as spacingTokens,
3050
+ vs as tokenToCssVar,
3048
3051
  fe as useId,
3049
- Uo as useToast
3052
+ Xo as useToast
3050
3053
  };