@lumx/vue 4.3.2-alpha.30 → 4.3.2-alpha.32

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/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ColorVariant as Sa, Theme as ka, AspectRatio as Pa, Size as Ta } from "@lumx/core/js/constants";
2
2
  export * from "@lumx/core/js/constants";
3
3
  export * from "@lumx/core/js/types";
4
- import { createVNode as l, mergeProps as h, defineComponent as y, useAttrs as k, isVNode as ee, inject as It, computed as T, unref as kt, provide as Vr, getCurrentScope as $a, onScopeDispose as Ca, watch as W, toValue as Et, shallowRef as _a, getCurrentInstance as Wr, onMounted as xa, ref as ie, useSlots as Lt, Fragment as G, useTemplateRef as wa, toRefs as Ia, reactive as Ea, createTextVNode as pe, onBeforeUnmount as La, nextTick as Oa, toRef as X } from "vue";
4
+ import { createVNode as c, mergeProps as h, defineComponent as y, useAttrs as k, isVNode as ee, inject as It, computed as T, unref as kt, provide as Vr, getCurrentScope as $a, onScopeDispose as Ca, watch as W, toValue as Et, shallowRef as _a, getCurrentInstance as Wr, onMounted as xa, ref as ie, useSlots as Lt, Fragment as G, useTemplateRef as wa, toRefs as Ia, reactive as Ea, createTextVNode as pe, onBeforeUnmount as La, nextTick as Oa, toRef as X } from "vue";
5
5
  import { getDisabledState as Ba } from "@lumx/core/js/utils/disabledState";
6
6
  import { mdiAlertCircle as Ur } from "@lumx/icons/esm/alert-circle.js";
7
7
  import { classNames as Z } from "@lumx/core/js/utils";
@@ -156,7 +156,7 @@ const Xa = "Badge", Jr = "lumx-badge", {
156
156
  ref: n,
157
157
  ...o
158
158
  } = e;
159
- return l("div", h({
159
+ return c("div", h({
160
160
  ref: n
161
161
  }, o, {
162
162
  className: A(r, Qa({
@@ -174,7 +174,7 @@ const S = () => (...e) => e.reduce(
174
174
  slots: t
175
175
  }) => {
176
176
  const r = k();
177
- return () => l(Ae, h(e, r, {
177
+ return () => c(Ae, h(e, r, {
178
178
  className: e.class,
179
179
  children: t.default?.()
180
180
  }), null);
@@ -194,18 +194,18 @@ const S = () => (...e) => e.reduce(
194
194
  ref: n,
195
195
  ...o
196
196
  } = e;
197
- return l("div", h({
197
+ return c("div", h({
198
198
  ref: n
199
199
  }, o, {
200
200
  className: A(a, en())
201
- }), [r, t && l("div", {
201
+ }), [r, t && c("div", {
202
202
  className: tn("badge")
203
203
  }, [t])]);
204
204
  }, hi = /* @__PURE__ */ y((e, {
205
205
  slots: t
206
206
  }) => {
207
207
  const r = k();
208
- return () => l(rn, h(e, r, {
208
+ return () => c(rn, h(e, r, {
209
209
  className: e.class,
210
210
  badge: e.badge || t.badge?.(),
211
211
  children: t.default?.()
@@ -289,11 +289,11 @@ function sn() {
289
289
  var i = r.call(s, n), u = s[n];
290
290
  try {
291
291
  s[n] = void 0;
292
- var c = !0;
292
+ var l = !0;
293
293
  } catch {
294
294
  }
295
295
  var d = a.call(s);
296
- return c && (i ? s[n] = u : delete s[n]), d;
296
+ return l && (i ? s[n] = u : delete s[n]), d;
297
297
  }
298
298
  return Re = o, Re;
299
299
  }
@@ -384,8 +384,8 @@ var Ve, ir;
384
384
  function dn() {
385
385
  if (ir) return Ve;
386
386
  ir = 1;
387
- var e = ta(), t = un(), r = jt(), a = ra(), n = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, i = Object.prototype, u = s.toString, c = i.hasOwnProperty, d = RegExp(
388
- "^" + u.call(c).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
387
+ var e = ta(), t = un(), r = jt(), a = ra(), n = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, i = Object.prototype, u = s.toString, l = i.hasOwnProperty, d = RegExp(
388
+ "^" + u.call(l).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
389
389
  );
390
390
  function f(m) {
391
391
  if (!r(m) || t(m))
@@ -454,8 +454,8 @@ var Ze, pr;
454
454
  function vn() {
455
455
  if (pr) return Ze;
456
456
  pr = 1;
457
- var e = mn(), t = hn(), r = pn(), a = bn(), n = gn(), o = le(), s = ra(), i = "[object Map]", u = "[object Object]", c = "[object Promise]", d = "[object Set]", f = "[object WeakMap]", m = "[object DataView]", p = s(e), g = s(t), b = s(r), v = s(a), C = s(n), P = o;
458
- return (e && P(new e(new ArrayBuffer(1))) != m || t && P(new t()) != i || r && P(r.resolve()) != c || a && P(new a()) != d || n && P(new n()) != f) && (P = function(_) {
457
+ var e = mn(), t = hn(), r = pn(), a = bn(), n = gn(), o = le(), s = ra(), i = "[object Map]", u = "[object Object]", l = "[object Promise]", d = "[object Set]", f = "[object WeakMap]", m = "[object DataView]", p = s(e), g = s(t), b = s(r), v = s(a), C = s(n), P = o;
458
+ return (e && P(new e(new ArrayBuffer(1))) != m || t && P(new t()) != i || r && P(r.resolve()) != l || a && P(new a()) != d || n && P(new n()) != f) && (P = function(_) {
459
459
  var O = o(_), L = O == u ? _.constructor : void 0, B = L ? s(L) : "";
460
460
  if (B)
461
461
  switch (B) {
@@ -464,7 +464,7 @@ function vn() {
464
464
  case g:
465
465
  return i;
466
466
  case b:
467
- return c;
467
+ return l;
468
468
  case v:
469
469
  return d;
470
470
  case C:
@@ -543,16 +543,16 @@ ne.exports;
543
543
  var kr;
544
544
  function kn() {
545
545
  return kr || (kr = 1, (function(e, t) {
546
- var r = F(), a = Sn(), n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, s = o && o.exports === n, i = s ? r.Buffer : void 0, u = i ? i.isBuffer : void 0, c = u || a;
547
- e.exports = c;
546
+ var r = F(), a = Sn(), n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, s = o && o.exports === n, i = s ? r.Buffer : void 0, u = i ? i.isBuffer : void 0, l = u || a;
547
+ e.exports = l;
548
548
  })(ne, ne.exports)), ne.exports;
549
549
  }
550
550
  var it, Pr;
551
551
  function Pn() {
552
552
  if (Pr) return it;
553
553
  Pr = 1;
554
- var e = le(), t = na(), r = Se(), a = "[object Arguments]", n = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", u = "[object Function]", c = "[object Map]", d = "[object Number]", f = "[object Object]", m = "[object RegExp]", p = "[object Set]", g = "[object String]", b = "[object WeakMap]", v = "[object ArrayBuffer]", C = "[object DataView]", P = "[object Float32Array]", _ = "[object Float64Array]", O = "[object Int8Array]", L = "[object Int16Array]", B = "[object Int32Array]", me = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", he = "[object Uint16Array]", te = "[object Uint32Array]", N = {};
555
- N[P] = N[_] = N[O] = N[L] = N[B] = N[me] = N[Y] = N[he] = N[te] = !0, N[a] = N[n] = N[v] = N[o] = N[C] = N[s] = N[i] = N[u] = N[c] = N[d] = N[f] = N[m] = N[p] = N[g] = N[b] = !1;
554
+ var e = le(), t = na(), r = Se(), a = "[object Arguments]", n = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", u = "[object Function]", l = "[object Map]", d = "[object Number]", f = "[object Object]", m = "[object RegExp]", p = "[object Set]", g = "[object String]", b = "[object WeakMap]", v = "[object ArrayBuffer]", C = "[object DataView]", P = "[object Float32Array]", _ = "[object Float64Array]", O = "[object Int8Array]", L = "[object Int16Array]", B = "[object Int32Array]", me = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", he = "[object Uint16Array]", te = "[object Uint32Array]", N = {};
555
+ N[P] = N[_] = N[O] = N[L] = N[B] = N[me] = N[Y] = N[he] = N[te] = !0, N[a] = N[n] = N[v] = N[o] = N[C] = N[s] = N[i] = N[u] = N[l] = N[d] = N[f] = N[m] = N[p] = N[g] = N[b] = !1;
556
556
  function J(j) {
557
557
  return r(j) && t(j.length) && !!N[e(j)];
558
558
  }
@@ -595,14 +595,14 @@ var ut, _r;
595
595
  function _n() {
596
596
  if (_r) return ut;
597
597
  _r = 1;
598
- var e = on(), t = vn(), r = Nn(), a = aa(), n = An(), o = kn(), s = Qr(), i = Cn(), u = "[object Map]", c = "[object Set]", d = Object.prototype, f = d.hasOwnProperty;
598
+ var e = on(), t = vn(), r = Nn(), a = aa(), n = An(), o = kn(), s = Qr(), i = Cn(), u = "[object Map]", l = "[object Set]", d = Object.prototype, f = d.hasOwnProperty;
599
599
  function m(p) {
600
600
  if (p == null)
601
601
  return !0;
602
602
  if (n(p) && (a(p) || typeof p == "string" || typeof p.splice == "function" || o(p) || i(p) || r(p)))
603
603
  return !p.length;
604
604
  var g = t(p);
605
- if (g == u || g == c)
605
+ if (g == u || g == l)
606
606
  return !p.size;
607
607
  if (s(p))
608
608
  return !e(p).length;
@@ -627,14 +627,14 @@ const oa = (e) => {
627
627
  "aria-disabled": o,
628
628
  as: s,
629
629
  ...i
630
- } = e, u = n || o === "true" || o === !0, c = s;
630
+ } = e, u = n || o === "true" || o === !0, l = s;
631
631
  let d;
632
- return c === "button" ? d = {
632
+ return l === "button" ? d = {
633
633
  type: i.type || "button",
634
634
  disabled: n
635
635
  } : d = {
636
636
  tabIndex: n ? "-1" : i.tabIndex
637
- }, l(c, h({
637
+ }, c(l, h({
638
638
  "aria-disabled": u || void 0
639
639
  }, i, d, {
640
640
  onClick: (f) => {
@@ -665,7 +665,7 @@ const oa = (e) => {
665
665
  ...e,
666
666
  hasBackground: !1
667
667
  };
668
- return l("div", {
668
+ return c("div", {
669
669
  className: s
670
670
  }, [ue(i)]);
671
671
  }, ue = (e) => {
@@ -678,7 +678,7 @@ const oa = (e) => {
678
678
  emphasis: s,
679
679
  hasBackground: i,
680
680
  isSelected: u,
681
- isActive: c,
681
+ isActive: l,
682
682
  isFocused: d,
683
683
  isHovered: f,
684
684
  linkAs: m,
@@ -701,7 +701,7 @@ const oa = (e) => {
701
701
  [`emphasis-${s}`]: !!s,
702
702
  "is-selected": u,
703
703
  "is-disabled": !!(e.isDisabled || e["aria-disabled"]),
704
- "is-active": c,
704
+ "is-active": l,
705
705
  "is-focused": d,
706
706
  "is-hovered": f,
707
707
  [`size-${p}`]: !!p,
@@ -768,8 +768,17 @@ function H(e) {
768
768
  }), a = T(
769
769
  () => r.value["aria-disabled"] || r.value.disabled || void 0
770
770
  ), n = T(() => {
771
- const o = typeof e == "function" ? e() : kt(e), { disabled: s, isDisabled: i, "aria-disabled": u, ariaDisabled: c, onClick: d, onChange: f, ...m } = o;
772
- return a.value || (d && (m.onClick = d), f && (m.onChange = f)), m;
771
+ const o = typeof e == "function" ? e() : kt(e), {
772
+ disabled: s,
773
+ isDisabled: i,
774
+ "aria-disabled": u,
775
+ ariaDisabled: l,
776
+ onClick: d,
777
+ onChange: f,
778
+ onKeyPress: m,
779
+ ...p
780
+ } = o;
781
+ return p;
773
782
  });
774
783
  return { disabledStateProps: r, isAnyDisabled: a, otherProps: n };
775
784
  }
@@ -790,7 +799,7 @@ const wr = y({
790
799
  size: s,
791
800
  ref: i,
792
801
  theme: u,
793
- alt: c,
802
+ alt: l,
794
803
  verticalAlign: d,
795
804
  ...f
796
805
  } = e, [m, p] = Ot(r, a);
@@ -799,7 +808,7 @@ const wr = y({
799
808
  let b = p;
800
809
  !b && n && g === x.dark && (b = "L2");
801
810
  let v = s;
802
- return s && n ? s === E.xxs || s === E.xs ? v = E.s : s === E.xxl && (v = E.xl) : n && (v = E.m), l("i", h({
811
+ return s && n ? s === E.xxs || s === E.xs ? v = E.s : s === E.xxl && (v = E.xl) : n && (v = E.m), c("i", h({
803
812
  ref: i
804
813
  }, f, {
805
814
  className: A(t, zn({
@@ -813,10 +822,10 @@ const wr = y({
813
822
  path: !0,
814
823
  "vertical-align-middle": d === "middle"
815
824
  }))
816
- }), [l("svg", {
817
- "aria-hidden": c ? void 0 : "true",
818
- role: c ? "img" : void 0,
819
- "aria-label": c,
825
+ }), [c("svg", {
826
+ "aria-hidden": l ? void 0 : "true",
827
+ role: l ? "img" : void 0,
828
+ "aria-label": l,
820
829
  height: "1em",
821
830
  preserveAspectRatio: "xMidYMid meet",
822
831
  style: {
@@ -824,7 +833,7 @@ const wr = y({
824
833
  },
825
834
  viewBox: "0 0 24 24",
826
835
  width: "1em"
827
- }, [l("path", {
836
+ }, [c("path", {
828
837
  d: o,
829
838
  fill: "currentColor"
830
839
  }, null)])]);
@@ -836,7 +845,7 @@ const Tt = /* @__PURE__ */ y((e) => {
836
845
  const t = k(), r = w({
837
846
  defaultTheme: void 0
838
847
  });
839
- return () => l(I, h(e, t, {
848
+ return () => c(I, h(e, t, {
840
849
  className: e.class,
841
850
  theme: e.theme || r.value
842
851
  }), null);
@@ -857,9 +866,9 @@ const Tt = /* @__PURE__ */ y((e) => {
857
866
  truncate: s,
858
867
  whiteSpace: i,
859
868
  style: u
860
- } = e, c = typeof s == "object" && s.lines > 1 && {
869
+ } = e, l = typeof s == "object" && s.lines > 1 && {
861
870
  "--lumx-text-truncate-lines": s.lines
862
- }, d = !!c, f = !!s, m = !n && !(f && !d) && i && {
871
+ }, d = !!l, f = !!s, m = !n && !(f && !d) && i && {
863
872
  "--lumx-text-white-space": i
864
873
  };
865
874
  return {
@@ -869,7 +878,7 @@ const Tt = /* @__PURE__ */ y((e) => {
869
878
  "no-wrap": n
870
879
  }), o && Bt(o), r && Ja(r, a)),
871
880
  style: {
872
- ...c,
881
+ ...l,
873
882
  ...m,
874
883
  ...u
875
884
  }
@@ -915,13 +924,13 @@ function Qn(e, t, r = {}) {
915
924
  }, {
916
925
  immediate: !0,
917
926
  flush: "post"
918
- }), c = () => o?.takeRecords(), d = () => {
927
+ }), l = () => o?.takeRecords(), d = () => {
919
928
  u(), i();
920
929
  };
921
930
  return la(d), {
922
931
  isSupported: s,
923
932
  stop: d,
924
- takeRecords: c
933
+ takeRecords: l
925
934
  };
926
935
  }
927
936
  function Zn(e, t, r = {}) {
@@ -940,12 +949,12 @@ function Zn(e, t, r = {}) {
940
949
  }, {
941
950
  immediate: !0,
942
951
  flush: "post"
943
- }), c = () => {
952
+ }), l = () => {
944
953
  i(), u();
945
954
  };
946
- return la(c), {
955
+ return la(l), {
947
956
  isSupported: s,
948
- stop: c
957
+ stop: l
949
958
  };
950
959
  }
951
960
  function eo(e) {
@@ -986,7 +995,7 @@ function Ct(e) {
986
995
  }
987
996
  if (typeof r.type == "string" && Array.isArray(r.children)) {
988
997
  const a = Ct(r.children), n = { ...r.props || {} };
989
- r.key != null && (n.key = r.key), r.ref != null && (n.ref = r.ref), t.push(l(r.type, n, a));
998
+ r.key != null && (n.key = r.key), r.ref != null && (n.ref = r.ref), t.push(c(r.type, n, a));
990
999
  continue;
991
1000
  }
992
1001
  t.push(r);
@@ -1007,16 +1016,16 @@ const Rt = /* @__PURE__ */ y((e, {
1007
1016
  })), i = T(() => {
1008
1017
  const {
1009
1018
  children: u,
1010
- ...c
1019
+ ...l
1011
1020
  } = r;
1012
1021
  return {
1013
- ...c,
1022
+ ...l,
1014
1023
  ...s.value
1015
1024
  };
1016
1025
  });
1017
1026
  return () => {
1018
- const u = e.as || "div", c = a() || t.default?.(), d = c ? Ct(c) : null;
1019
- return l(u, h({
1027
+ const u = e.as || "div", l = a() || t.default?.(), d = l ? Ct(l) : null;
1028
+ return c(u, h({
1020
1029
  ref: "tooltip-label"
1021
1030
  }, i.value, {
1022
1031
  class: i.value.className,
@@ -1045,21 +1054,21 @@ const Rt = /* @__PURE__ */ y((e, {
1045
1054
  ...a
1046
1055
  }))), u = (d) => {
1047
1056
  o.value || (d.stopImmediatePropagation(), t("click", d));
1048
- }, c = () => {
1057
+ }, l = () => {
1049
1058
  const d = r.default?.();
1050
- return !d || d.length === 0 ? null : d.length === 1 && d[0].type === Rt ? d[0] : l("span", null, [d]);
1059
+ return !d || d.length === 0 ? null : d.length === 1 && d[0].type === Rt ? d[0] : c("span", null, [d]);
1051
1060
  };
1052
1061
  return () => {
1053
- const d = l(G, null, [e.leftIcon && !xr(e.leftIcon) && l(wr, null, {
1054
- default: () => [l(Tt, {
1062
+ const d = c(G, null, [e.leftIcon && !xr(e.leftIcon) && c(wr, null, {
1063
+ default: () => [c(Tt, {
1055
1064
  icon: e.leftIcon
1056
1065
  }, null)]
1057
- }), c(), e.rightIcon && !xr(e.rightIcon) && l(wr, null, {
1058
- default: () => [l(Tt, {
1066
+ }), l(), e.rightIcon && !xr(e.rightIcon) && c(wr, null, {
1067
+ default: () => [c(Tt, {
1059
1068
  icon: e.rightIcon
1060
1069
  }, null)]
1061
1070
  })]);
1062
- return l(ke, h(i.value, s.value, {
1071
+ return c(ke, h(i.value, s.value, {
1063
1072
  className: e.class,
1064
1073
  theme: e.theme || n.value,
1065
1074
  onClick: u,
@@ -1083,7 +1092,7 @@ const Rt = /* @__PURE__ */ y((e, {
1083
1092
  label: n,
1084
1093
  size: o = _t.size,
1085
1094
  ...s
1086
- } = e, i = r ? l("img", {
1095
+ } = e, i = r ? c("img", {
1087
1096
  alt: "",
1088
1097
  src: r
1089
1098
  }, null) : I({
@@ -1116,7 +1125,7 @@ const so = {
1116
1125
  }))), i = (u) => {
1117
1126
  n.value || (u.stopImmediatePropagation(), t("click", u));
1118
1127
  };
1119
- return () => l(de, h(s.value, o.value, {
1128
+ return () => c(de, h(s.value, o.value, {
1120
1129
  className: e.class,
1121
1130
  theme: e.theme || a.value,
1122
1131
  title: e.label,
@@ -1135,7 +1144,7 @@ const so = {
1135
1144
  className: r,
1136
1145
  ...a
1137
1146
  } = e;
1138
- return l("div", h(a, {
1147
+ return c("div", h(a, {
1139
1148
  className: A(r, da)
1140
1149
  }), [t]);
1141
1150
  };
@@ -1146,7 +1155,7 @@ const gi = /* @__PURE__ */ y((e, {
1146
1155
  slots: t
1147
1156
  }) => {
1148
1157
  const r = k();
1149
- return () => l(Pe, h(e, r, {
1158
+ return () => c(Pe, h(e, r, {
1150
1159
  className: e.class,
1151
1160
  children: t.default?.()
1152
1161
  }), null);
@@ -1169,7 +1178,7 @@ function U(e) {
1169
1178
  ref: i,
1170
1179
  ...u
1171
1180
  } = e;
1172
- return l("label", h({
1181
+ return c("label", h({
1173
1182
  ref: i
1174
1183
  }, u, {
1175
1184
  htmlFor: a,
@@ -1203,7 +1212,7 @@ function K(e) {
1203
1212
  } = e, {
1204
1213
  color: i
1205
1214
  } = ho[a] || {};
1206
- return l("p", h({
1215
+ return c("p", h({
1207
1216
  ref: o
1208
1217
  }, s, {
1209
1218
  className: A(r, go({
@@ -1228,7 +1237,7 @@ const pa = "intermediate", vo = "lumx-checkbox", {
1228
1237
  isChecked: s = t,
1229
1238
  label: i,
1230
1239
  name: u,
1231
- ref: c,
1240
+ ref: l,
1232
1241
  onChange: d,
1233
1242
  theme: f,
1234
1243
  value: m,
@@ -1239,8 +1248,8 @@ const pa = "intermediate", vo = "lumx-checkbox", {
1239
1248
  } = e, C = s === pa, P = (_) => {
1240
1249
  d && d(!s, m, u, _);
1241
1250
  };
1242
- return l("div", h({
1243
- ref: c
1251
+ return c("div", h({
1252
+ ref: l
1244
1253
  }, v, {
1245
1254
  className: A(r, yo({
1246
1255
  // Whether state is intermediate class name will "-checked"
@@ -1249,9 +1258,9 @@ const pa = "intermediate", vo = "lumx-checkbox", {
1249
1258
  "is-unchecked": !s,
1250
1259
  [`theme-${f}`]: !!f
1251
1260
  }))
1252
- }), [l("div", {
1261
+ }), [c("div", {
1253
1262
  className: R("input-wrapper")
1254
- }, [l("input", h({
1263
+ }, [c("input", h({
1255
1264
  ref: o,
1256
1265
  type: "checkbox",
1257
1266
  id: b,
@@ -1264,15 +1273,15 @@ const pa = "intermediate", vo = "lumx-checkbox", {
1264
1273
  "aria-checked": C ? "mixed" : !!s
1265
1274
  }, p?.readOnly ? {
1266
1275
  readOnly: p.readOnly
1267
- } : {}, p), null), l("div", {
1276
+ } : {}, p), null), c("div", {
1268
1277
  className: R("input-placeholder")
1269
- }, [l("div", {
1278
+ }, [c("div", {
1270
1279
  className: R("input-background")
1271
- }, null), l("div", {
1280
+ }, null), c("div", {
1272
1281
  className: R("input-indicator")
1273
1282
  }, [I({
1274
1283
  icon: C ? Ra : ja
1275
- })])])]), l("div", {
1284
+ })])])]), c("div", {
1276
1285
  className: R("content")
1277
1286
  }, [i && U({
1278
1287
  htmlFor: b,
@@ -1298,7 +1307,7 @@ const Ao = {
1298
1307
  const r = k(), a = w(), n = Mt(), o = T(() => e.id || n), s = ie(null), {
1299
1308
  isAnyDisabled: i,
1300
1309
  disabledStateProps: u,
1301
- otherProps: c
1310
+ otherProps: l
1302
1311
  } = H(T(() => ({
1303
1312
  ...e,
1304
1313
  ...r
@@ -1311,7 +1320,7 @@ const Ao = {
1311
1320
  const f = (m, p, g, b) => {
1312
1321
  i.value || (b?.stopImmediatePropagation?.(), t("change", m, p, g, b));
1313
1322
  };
1314
- return () => l(No, h(c.value, {
1323
+ return () => c(No, h(l.value, {
1315
1324
  className: e.class,
1316
1325
  theme: e.theme || a.value,
1317
1326
  inputId: o.value,
@@ -1340,7 +1349,7 @@ const Ao = {
1340
1349
  ref: a,
1341
1350
  ...n
1342
1351
  } = e;
1343
- return l("hr", h({
1352
+ return c("hr", h({
1344
1353
  ref: a
1345
1354
  }, n, {
1346
1355
  className: A(t, ko({
@@ -1349,7 +1358,7 @@ const Ao = {
1349
1358
  }), null);
1350
1359
  }, yi = /* @__PURE__ */ y((e) => {
1351
1360
  const t = k(), r = w();
1352
- return () => l(Po, h(t, e, {
1361
+ return () => c(Po, h(t, e, {
1353
1362
  className: e.class,
1354
1363
  theme: e.theme || r.value
1355
1364
  }), null);
@@ -1375,17 +1384,17 @@ const $o = "lumx-flag", {
1375
1384
  truncate: s,
1376
1385
  Text: i,
1377
1386
  ...u
1378
- } = e, c = a || (o === ve.light ? x.dark : x.light), d = !!s;
1379
- return l("div", h(u, {
1387
+ } = e, l = a || (o === ve.light ? x.dark : x.light), d = !!s;
1388
+ return c("div", h(u, {
1380
1389
  className: A(n, Co({
1381
- [`color-${c}`]: !!c,
1390
+ [`color-${l}`]: !!l,
1382
1391
  "is-truncated": d
1383
1392
  }))
1384
1393
  }), [r && I({
1385
1394
  icon: r,
1386
1395
  size: E.xxs,
1387
1396
  className: Er("icon")
1388
- }), l(i, {
1397
+ }), c(i, {
1389
1398
  as: "span",
1390
1399
  truncate: !!s,
1391
1400
  typography: "overline",
@@ -1397,7 +1406,7 @@ const $o = "lumx-flag", {
1397
1406
  slots: t
1398
1407
  }) => {
1399
1408
  const r = k(), a = w();
1400
- return () => l(_o, h(e, r, {
1409
+ return () => c(_o, h(e, r, {
1401
1410
  className: e.class,
1402
1411
  theme: e.theme || a.value,
1403
1412
  children: t.default?.(),
@@ -1436,9 +1445,9 @@ function Oo(e) {
1436
1445
  noShrink: s,
1437
1446
  vAlign: i,
1438
1447
  wrap: u,
1439
- orientation: c,
1448
+ orientation: l,
1440
1449
  ...d
1441
- } = e, f = c ?? (u || n || i ? Va.horizontal : null);
1450
+ } = e, f = l ?? (u || n || i ? Va.horizontal : null);
1442
1451
  return {
1443
1452
  ...d,
1444
1453
  className: A(t, Lo({
@@ -1463,7 +1472,7 @@ const Ai = /* @__PURE__ */ y((e, {
1463
1472
  ...r,
1464
1473
  className: e.class
1465
1474
  });
1466
- return l(a, n, {
1475
+ return c(a, n, {
1467
1476
  default: () => [t.default?.()]
1468
1477
  });
1469
1478
  };
@@ -1510,20 +1519,20 @@ function Mo() {
1510
1519
  if (Rr) return pt;
1511
1520
  Rr = 1;
1512
1521
  var e = jo(), t = jt(), r = Ro(), a = NaN, n = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, i = parseInt;
1513
- function u(c) {
1514
- if (typeof c == "number")
1515
- return c;
1516
- if (r(c))
1522
+ function u(l) {
1523
+ if (typeof l == "number")
1524
+ return l;
1525
+ if (r(l))
1517
1526
  return a;
1518
- if (t(c)) {
1519
- var d = typeof c.valueOf == "function" ? c.valueOf() : c;
1520
- c = t(d) ? d + "" : d;
1527
+ if (t(l)) {
1528
+ var d = typeof l.valueOf == "function" ? l.valueOf() : l;
1529
+ l = t(d) ? d + "" : d;
1521
1530
  }
1522
- if (typeof c != "string")
1523
- return c === 0 ? c : +c;
1524
- c = e(c);
1525
- var f = o.test(c);
1526
- return f || s.test(c) ? i(c.slice(2), f ? 2 : 8) : n.test(c) ? a : +c;
1531
+ if (typeof l != "string")
1532
+ return l === 0 ? l : +l;
1533
+ l = e(l);
1534
+ var f = o.test(l);
1535
+ return f || s.test(l) ? i(l.slice(2), f ? 2 : 8) : n.test(l) ? a : +l;
1527
1536
  }
1528
1537
  return pt = u, pt;
1529
1538
  }
@@ -1579,9 +1588,9 @@ const Vo = "GridColumn", ba = "lumx-grid-column", Wo = {}, Te = (e) => {
1579
1588
  className: s,
1580
1589
  style: i = {},
1581
1590
  ref: u,
1582
- ...c
1591
+ ...l
1583
1592
  } = e;
1584
- return l(t, h(c, {
1593
+ return c(t, h(l, {
1585
1594
  ref: u,
1586
1595
  className: A(s, ba),
1587
1596
  style: {
@@ -1601,7 +1610,7 @@ const Si = /* @__PURE__ */ y((e, {
1601
1610
  slots: t
1602
1611
  }) => {
1603
1612
  const r = k();
1604
- return () => l(Te, h(e, r, {
1613
+ return () => c(Te, h(e, r, {
1605
1614
  className: e.class,
1606
1615
  children: t.default?.()
1607
1616
  }), null);
@@ -1641,7 +1650,7 @@ const Si = /* @__PURE__ */ y((e, {
1641
1650
  class: o
1642
1651
  };
1643
1652
  });
1644
- return () => l(Rt, n.value, {
1653
+ return () => c(Rt, n.value, {
1645
1654
  default: () => [t.default?.()]
1646
1655
  });
1647
1656
  }, {
@@ -1669,7 +1678,7 @@ const Si = /* @__PURE__ */ y((e, {
1669
1678
  slots: t
1670
1679
  }) => {
1671
1680
  const r = k(), a = w();
1672
- return () => l(K, h(e, r, {
1681
+ return () => c(K, h(e, r, {
1673
1682
  className: e.class,
1674
1683
  theme: e.theme || a.value,
1675
1684
  children: t.default?.()
@@ -1683,7 +1692,7 @@ const Si = /* @__PURE__ */ y((e, {
1683
1692
  slots: t
1684
1693
  }) => {
1685
1694
  const r = k(), a = w();
1686
- return () => l(U, h(e, r, {
1695
+ return () => c(U, h(e, r, {
1687
1696
  className: e.class,
1688
1697
  theme: e.theme || a.value,
1689
1698
  children: t.default?.()
@@ -1710,7 +1719,7 @@ const Zo = "lumx-link", {
1710
1719
  rightIcon: s,
1711
1720
  typography: i,
1712
1721
  as: u,
1713
- ref: c,
1722
+ ref: l,
1714
1723
  isDisabled: d,
1715
1724
  theme: f,
1716
1725
  href: m,
@@ -1723,22 +1732,22 @@ const Zo = "lumx-link", {
1723
1732
  [`color-${v}`]: !!v,
1724
1733
  [`color-variant-${C}`]: !!C,
1725
1734
  "has-typography": !!i
1726
- }), i && Bt(i)), L = l(G, null, [o && l(G, null, [pe(" "), I({
1735
+ }), i && Bt(i)), L = c(G, null, [o && c(G, null, [pe(" "), I({
1727
1736
  icon: o,
1728
1737
  className: yt("left-icon")
1729
- }), pe(" ")]), t && l("span", {
1738
+ }), pe(" ")]), t && c("span", {
1730
1739
  className: yt("content")
1731
- }, [t]), s && l(G, null, [pe(" "), I({
1740
+ }, [t]), s && c(G, null, [pe(" "), I({
1732
1741
  icon: s,
1733
1742
  className: yt("right-icon")
1734
1743
  }), pe(" ")])]), B = {
1735
- ref: c,
1744
+ ref: l,
1736
1745
  className: O,
1737
1746
  onClick: d ? void 0 : g,
1738
1747
  ...b,
1739
1748
  ..._
1740
1749
  };
1741
- return m && (B.href = m), p && (B.target = p), l(P, B, Qo(L) ? L : {
1750
+ return m && (B.href = m), p && (B.target = p), c(P, B, Qo(L) ? L : {
1742
1751
  default: () => [L]
1743
1752
  });
1744
1753
  }, rs = {
@@ -1752,7 +1761,7 @@ const Zo = "lumx-link", {
1752
1761
  } = e, {
1753
1762
  isAnyDisabled: i,
1754
1763
  disabledStateProps: u,
1755
- otherProps: c
1764
+ otherProps: l
1756
1765
  } = H(T(() => ({
1757
1766
  ...s,
1758
1767
  ...r
@@ -1760,8 +1769,8 @@ const Zo = "lumx-link", {
1760
1769
  i.value || (f?.stopImmediatePropagation?.(), t("click", f));
1761
1770
  };
1762
1771
  return () => {
1763
- const m = a.default?.() || c.value.label;
1764
- return l(ts, h(c.value, u.value, {
1772
+ const m = a.default?.() || l.value.label;
1773
+ return c(ts, h(l.value, u.value, {
1765
1774
  className: o,
1766
1775
  theme: e.theme || n.value,
1767
1776
  isDisabled: i.value,
@@ -1774,7 +1783,12 @@ const Zo = "lumx-link", {
1774
1783
  inheritAttrs: !1,
1775
1784
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1776
1785
  props: S()("as", "class", "color", "colorVariant", "disabled", "href", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "typography", "aria-disabled"),
1777
- emits: rs
1786
+ emits: rs,
1787
+ // Enable compatibility with @vue/compat for event listeners
1788
+ compatConfig: {
1789
+ MODE: 3
1790
+ // Use Vue 3 behavior for this component
1791
+ }
1778
1792
  }), as = "Message", ya = "lumx-message", {
1779
1793
  block: ns,
1780
1794
  element: Nt
@@ -1806,24 +1820,24 @@ const Zo = "lumx-link", {
1806
1820
  ref: i,
1807
1821
  ...u
1808
1822
  } = e, {
1809
- color: c,
1823
+ color: l,
1810
1824
  icon: d
1811
1825
  } = os[n] || {}, {
1812
1826
  onClick: f,
1813
1827
  label: m
1814
1828
  } = s || {}, p = a && n === "info" && f && m;
1815
- return l("div", h(u, {
1829
+ return c("div", h(u, {
1816
1830
  ref: i,
1817
1831
  className: A(r, ns({
1818
- [`color-${c}`]: !!c,
1832
+ [`color-${l}`]: !!l,
1819
1833
  "has-background": a
1820
1834
  }))
1821
1835
  }), [(o || d) && I({
1822
1836
  className: Nt("icon"),
1823
1837
  icon: o || d,
1824
1838
  size: E.xs,
1825
- color: c
1826
- }), l("div", {
1839
+ color: l
1840
+ }), c("div", {
1827
1841
  className: Nt("text")
1828
1842
  }, [t]), p && de({
1829
1843
  className: Nt("close-button"),
@@ -1842,7 +1856,7 @@ const _i = /* @__PURE__ */ y((e, {
1842
1856
  const a = k(), {
1843
1857
  closeButtonLabel: n
1844
1858
  } = e;
1845
- return () => l(qt, h(e, a, {
1859
+ return () => c(qt, h(e, a, {
1846
1860
  className: e.class,
1847
1861
  children: t.default?.(),
1848
1862
  closeButtonProps: n ? {
@@ -1869,7 +1883,7 @@ const _i = /* @__PURE__ */ y((e, {
1869
1883
  isChecked: s = t,
1870
1884
  label: i,
1871
1885
  name: u,
1872
- ref: c,
1886
+ ref: l,
1873
1887
  onChange: d,
1874
1888
  theme: f,
1875
1889
  value: m,
@@ -1880,8 +1894,8 @@ const _i = /* @__PURE__ */ y((e, {
1880
1894
  } = e, C = (P) => {
1881
1895
  d && d(m, u, P);
1882
1896
  };
1883
- return l("div", h({
1884
- ref: c
1897
+ return c("div", h({
1898
+ ref: l
1885
1899
  }, v, {
1886
1900
  className: A(r, is({
1887
1901
  "is-checked": s,
@@ -1889,9 +1903,9 @@ const _i = /* @__PURE__ */ y((e, {
1889
1903
  "is-unchecked": !s,
1890
1904
  [`theme-${f}`]: !!f
1891
1905
  }))
1892
- }), [l("div", {
1906
+ }), [c("div", {
1893
1907
  className: M("input-wrapper")
1894
- }, [l("input", h({
1908
+ }, [c("input", h({
1895
1909
  ref: o,
1896
1910
  className: M("input-native"),
1897
1911
  id: b,
@@ -1903,13 +1917,13 @@ const _i = /* @__PURE__ */ y((e, {
1903
1917
  "aria-describedby": a ? `${b}-helper` : void 0
1904
1918
  }, p?.readOnly ? {
1905
1919
  readOnly: p.readOnly
1906
- } : {}, p), null), l("div", {
1920
+ } : {}, p), null), c("div", {
1907
1921
  className: M("input-placeholder")
1908
- }, [l("div", {
1922
+ }, [c("div", {
1909
1923
  className: M("input-background")
1910
- }, null), l("div", {
1924
+ }, null), c("div", {
1911
1925
  className: M("input-indicator")
1912
- }, null)])]), l("div", {
1926
+ }, null)])]), c("div", {
1913
1927
  className: M("content")
1914
1928
  }, [i && U({
1915
1929
  htmlFor: b,
@@ -1934,15 +1948,15 @@ const _i = /* @__PURE__ */ y((e, {
1934
1948
  } = H(T(() => ({
1935
1949
  ...e,
1936
1950
  ...r
1937
- }))), c = (d, f, m) => {
1951
+ }))), l = (d, f, m) => {
1938
1952
  s.value || (m?.stopImmediatePropagation?.(), t("change", d, f, m));
1939
1953
  };
1940
- return () => l(ls, h(u.value, {
1954
+ return () => c(ls, h(u.value, {
1941
1955
  className: e.class,
1942
1956
  theme: e.theme || a.value,
1943
1957
  inputId: o.value,
1944
1958
  isDisabled: s.value,
1945
- onChange: c,
1959
+ onChange: l,
1946
1960
  label: e.label,
1947
1961
  inputProps: {
1948
1962
  ...e.inputProps,
@@ -1963,7 +1977,7 @@ const _i = /* @__PURE__ */ y((e, {
1963
1977
  ref: a,
1964
1978
  ...n
1965
1979
  } = e;
1966
- return l("div", h({
1980
+ return c("div", h({
1967
1981
  ref: a
1968
1982
  }, n, {
1969
1983
  className: A(r, Na)
@@ -1976,7 +1990,7 @@ const wi = /* @__PURE__ */ y((e, {
1976
1990
  slots: t
1977
1991
  }) => {
1978
1992
  const r = k();
1979
- return () => l($e, h(e, r, {
1993
+ return () => c($e, h(e, r, {
1980
1994
  className: e.class,
1981
1995
  children: t.default?.()
1982
1996
  }), null);
@@ -1995,7 +2009,7 @@ const wi = /* @__PURE__ */ y((e, {
1995
2009
  ref: o,
1996
2010
  ...s
1997
2011
  } = e;
1998
- return l("div", h({
2012
+ return c("div", h({
1999
2013
  ref: o
2000
2014
  }, s, {
2001
2015
  className: A(t, ms({
@@ -2023,11 +2037,11 @@ const wi = /* @__PURE__ */ y((e, {
2023
2037
  width: s,
2024
2038
  color: i,
2025
2039
  ref: u,
2026
- ...c
2040
+ ...l
2027
2041
  } = e;
2028
- return l("div", h({
2042
+ return c("div", h({
2029
2043
  ref: u
2030
- }, c, {
2044
+ }, l, {
2031
2045
  className: A(r, gs({
2032
2046
  [`aspect-ratio-${t}`]: !!t,
2033
2047
  [`height-${a}`]: !!(!t && a),
@@ -2036,7 +2050,7 @@ const wi = /* @__PURE__ */ y((e, {
2036
2050
  [`width-${s}`]: !!s,
2037
2051
  [`color-${i}`]: !!i
2038
2052
  }))
2039
- }), [l("div", {
2053
+ }), [c("div", {
2040
2054
  className: vs("inner")
2041
2055
  }, null)]);
2042
2056
  }, As = "lumx-skeleton-typography", {
@@ -2052,7 +2066,7 @@ const wi = /* @__PURE__ */ y((e, {
2052
2066
  ref: s,
2053
2067
  ...i
2054
2068
  } = e;
2055
- return l("div", h({
2069
+ return c("div", h({
2056
2070
  ref: s
2057
2071
  }, i, {
2058
2072
  className: A(t, Ss({
@@ -2064,12 +2078,12 @@ const wi = /* @__PURE__ */ y((e, {
2064
2078
  ...i.style,
2065
2079
  width: n
2066
2080
  }
2067
- }), [l("div", {
2081
+ }), [c("div", {
2068
2082
  className: ks("inner")
2069
2083
  }, null)]);
2070
2084
  }, Ii = /* @__PURE__ */ y((e) => {
2071
2085
  const t = k(), r = w();
2072
- return () => l(hs, h(e, t, {
2086
+ return () => c(hs, h(e, t, {
2073
2087
  className: e.class,
2074
2088
  theme: e.theme || r.value
2075
2089
  }), null);
@@ -2079,7 +2093,7 @@ const wi = /* @__PURE__ */ y((e, {
2079
2093
  props: S()("class", "size", "color", "theme")
2080
2094
  }), Ei = /* @__PURE__ */ y((e) => {
2081
2095
  const t = k(), r = w();
2082
- return () => l(Ns, h(e, t, {
2096
+ return () => c(Ns, h(e, t, {
2083
2097
  className: e.class,
2084
2098
  theme: e.theme || r.value
2085
2099
  }), null);
@@ -2089,7 +2103,7 @@ const wi = /* @__PURE__ */ y((e, {
2089
2103
  props: S()("class", "aspectRatio", "height", "variant", "width", "color", "theme")
2090
2104
  }), Li = /* @__PURE__ */ y((e) => {
2091
2105
  const t = k(), r = w();
2092
- return () => l(Ps, h(e, t, {
2106
+ return () => c(Ps, h(e, t, {
2093
2107
  className: e.class,
2094
2108
  theme: e.theme || r.value
2095
2109
  }), null);
@@ -2112,7 +2126,7 @@ const wi = /* @__PURE__ */ y((e, {
2112
2126
  isChecked: s = t,
2113
2127
  label: i,
2114
2128
  name: u,
2115
- ref: c,
2129
+ ref: l,
2116
2130
  onChange: d,
2117
2131
  theme: f,
2118
2132
  value: m,
@@ -2124,8 +2138,8 @@ const wi = /* @__PURE__ */ y((e, {
2124
2138
  } = e, P = (_) => {
2125
2139
  d && d(!s, m, u, _);
2126
2140
  };
2127
- return l("div", h({
2128
- ref: c
2141
+ return c("div", h({
2142
+ ref: l
2129
2143
  }, C, {
2130
2144
  className: A(r, $s({
2131
2145
  "is-checked": s,
@@ -2134,9 +2148,9 @@ const wi = /* @__PURE__ */ y((e, {
2134
2148
  [`position-${v}`]: !!v,
2135
2149
  [`theme-${f}`]: !!f
2136
2150
  }))
2137
- }), [l("div", {
2151
+ }), [c("div", {
2138
2152
  className: q("input-wrapper")
2139
- }, [l("input", h({
2153
+ }, [c("input", h({
2140
2154
  ref: o,
2141
2155
  type: "checkbox",
2142
2156
  role: "switch",
@@ -2150,13 +2164,13 @@ const wi = /* @__PURE__ */ y((e, {
2150
2164
  "aria-checked": !!s
2151
2165
  }, p?.readOnly ? {
2152
2166
  readOnly: p.readOnly
2153
- } : {}, p), null), l("div", {
2167
+ } : {}, p), null), c("div", {
2154
2168
  className: q("input-placeholder")
2155
- }, [l("div", {
2169
+ }, [c("div", {
2156
2170
  className: q("input-background")
2157
- }, null), l("div", {
2171
+ }, null), c("div", {
2158
2172
  className: q("input-indicator")
2159
- }, null)])]), l("div", {
2173
+ }, null)])]), c("div", {
2160
2174
  className: q("content")
2161
2175
  }, [i && U({
2162
2176
  htmlFor: b,
@@ -2178,14 +2192,14 @@ const wi = /* @__PURE__ */ y((e, {
2178
2192
  const a = k(), n = w(), o = Mt(), s = T(() => e.id || o), {
2179
2193
  isAnyDisabled: i,
2180
2194
  disabledStateProps: u,
2181
- otherProps: c
2195
+ otherProps: l
2182
2196
  } = H(T(() => ({
2183
2197
  ...e,
2184
2198
  ...a
2185
2199
  }))), d = (f, m, p, g) => {
2186
2200
  i.value || (g.stopImmediatePropagation(), t("change", f, m, p, g));
2187
2201
  };
2188
- return () => l(_s, h(c.value, {
2202
+ return () => c(_s, h(l.value, {
2189
2203
  className: e.class,
2190
2204
  theme: e.theme || n.value,
2191
2205
  inputId: s.value,
@@ -2216,7 +2230,7 @@ const wi = /* @__PURE__ */ y((e, {
2216
2230
  theme: s,
2217
2231
  ...i
2218
2232
  } = e;
2219
- return l("table", h({
2233
+ return c("table", h({
2220
2234
  ref: o
2221
2235
  }, i, {
2222
2236
  className: A(r, ws({
@@ -2229,7 +2243,7 @@ const wi = /* @__PURE__ */ y((e, {
2229
2243
  slots: t
2230
2244
  }) => {
2231
2245
  const r = k(), a = w();
2232
- return () => l(Is, h(e, r, {
2246
+ return () => c(Is, h(e, r, {
2233
2247
  className: e.class,
2234
2248
  theme: e.theme || a.value,
2235
2249
  children: t.default?.()
@@ -2245,7 +2259,7 @@ const wi = /* @__PURE__ */ y((e, {
2245
2259
  ref: a,
2246
2260
  ...n
2247
2261
  } = e;
2248
- return l("tbody", h({
2262
+ return c("tbody", h({
2249
2263
  ref: a
2250
2264
  }, n, {
2251
2265
  className: A(r, Es)
@@ -2254,7 +2268,7 @@ const wi = /* @__PURE__ */ y((e, {
2254
2268
  slots: t
2255
2269
  }) => {
2256
2270
  const r = k();
2257
- return () => l(Ls, h(e, r, {
2271
+ return () => c(Ls, h(e, r, {
2258
2272
  className: e.class,
2259
2273
  children: t.default?.()
2260
2274
  }), null);
@@ -2282,7 +2296,7 @@ const wi = /* @__PURE__ */ y((e, {
2282
2296
  ref: s,
2283
2297
  sortOrder: i,
2284
2298
  variant: u = Os.variant,
2285
- ...c
2299
+ ...l
2286
2300
  } = e;
2287
2301
  console.log({
2288
2302
  onHeaderClick: o,
@@ -2293,16 +2307,16 @@ const wi = /* @__PURE__ */ y((e, {
2293
2307
  onClick: o
2294
2308
  } : void 0;
2295
2309
  let m;
2296
- return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), l(G, null, [u === xt.head && l("th", h({
2310
+ return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), c(G, null, [u === xt.head && c("th", h({
2297
2311
  ref: s
2298
- }, c, {
2312
+ }, l, {
2299
2313
  className: A(r, Hr({
2300
2314
  "is-sortable": n,
2301
2315
  "is-sorted": n && !!i,
2302
2316
  head: !0
2303
2317
  })),
2304
2318
  "aria-sort": m
2305
- }), [l(d, h({
2319
+ }), [c(d, h({
2306
2320
  className: `${z}-wrapper`
2307
2321
  }, f), {
2308
2322
  default: () => [a && !n && I({
@@ -2317,16 +2331,16 @@ const wi = /* @__PURE__ */ y((e, {
2317
2331
  className: `${z}-icon`,
2318
2332
  icon: Ha,
2319
2333
  size: E.xxs
2320
- }), l("div", {
2334
+ }), c("div", {
2321
2335
  className: `${z}-content`
2322
2336
  }, [t])]
2323
- })]), u === xt.body && l("td", h({
2337
+ })]), u === xt.body && c("td", h({
2324
2338
  ref: s
2325
- }, c, {
2339
+ }, l, {
2326
2340
  className: A(r, Hr({
2327
2341
  body: !0
2328
2342
  }))
2329
- }), [l("div", {
2343
+ }), [c("div", {
2330
2344
  className: `${z}-content`
2331
2345
  }, [t])])]);
2332
2346
  }, wt = (e) => {
@@ -2344,11 +2358,22 @@ const wi = /* @__PURE__ */ y((e, {
2344
2358
  };
2345
2359
  return () => {
2346
2360
  const o = wt("onHeaderClick");
2347
- return console.log({
2361
+ console.log({
2348
2362
  hasClickListener: o
2349
- }), l(Bs, h(e, a, {
2350
- className: e.class,
2363
+ });
2364
+ const {
2365
+ onHeaderClick: s,
2366
+ ...i
2367
+ } = e, {
2368
+ onHeaderClick: u,
2369
+ ...l
2370
+ } = a;
2371
+ return console.log({
2351
2372
  onHeaderClick: n,
2373
+ isSortable: e.isSortable
2374
+ }), c(Bs, h(i, l, {
2375
+ className: e.class,
2376
+ onHeaderClick: o || e.isSortable ? n : void 0,
2352
2377
  children: r.default?.()
2353
2378
  }), null);
2354
2379
  };
@@ -2364,7 +2389,7 @@ const wi = /* @__PURE__ */ y((e, {
2364
2389
  ref: a,
2365
2390
  ...n
2366
2391
  } = e;
2367
- return l("thead", h({
2392
+ return c("thead", h({
2368
2393
  ref: a
2369
2394
  }, n, {
2370
2395
  className: A(r, Rs)
@@ -2373,7 +2398,7 @@ const wi = /* @__PURE__ */ y((e, {
2373
2398
  slots: t
2374
2399
  }) => {
2375
2400
  const r = k();
2376
- return () => l(Ms, h(e, r, {
2401
+ return () => c(Ms, h(e, r, {
2377
2402
  className: e.class,
2378
2403
  children: t.default?.()
2379
2404
  }), null);
@@ -2393,17 +2418,17 @@ const wi = /* @__PURE__ */ y((e, {
2393
2418
  tabIndex: s,
2394
2419
  "aria-disabled": i,
2395
2420
  ...u
2396
- } = e, c = !!i;
2397
- return l("tr", h({
2421
+ } = e, l = !!i;
2422
+ return c("tr", h({
2398
2423
  ref: o,
2399
2424
  "aria-disabled": i
2400
2425
  }, s !== void 0 ? {
2401
2426
  tabIndex: s
2402
2427
  } : {}, u, {
2403
2428
  className: A(r, Ds({
2404
- "is-clickable": a && !c,
2405
- "is-disabled": c,
2406
- "is-selected": n && !c
2429
+ "is-clickable": a && !l,
2430
+ "is-disabled": l,
2431
+ "is-selected": n && !l
2407
2432
  }))
2408
2433
  }), [t]);
2409
2434
  }, Di = /* @__PURE__ */ y((e, {
@@ -2416,7 +2441,7 @@ const wi = /* @__PURE__ */ y((e, {
2416
2441
  ...e,
2417
2442
  ...r
2418
2443
  })));
2419
- return () => l(Fs, h(n.value, {
2444
+ return () => c(Fs, h(n.value, {
2420
2445
  className: e.class,
2421
2446
  tabIndex: e.isClickable && !a.value ? 0 : -1,
2422
2447
  "aria-disabled": a.value,
@@ -2471,9 +2496,9 @@ function zs({
2471
2496
  return { visibility: "hidden" };
2472
2497
  if (!o || !n.height || !n.width)
2473
2498
  return {};
2474
- const s = n.height / o.height, i = n.width / o.width, u = Math.min(i, s), c = Math.abs((r?.y || 0) - 1) / 2, d = zr({
2499
+ const s = n.height / o.height, i = n.width / o.width, u = Math.min(i, s), l = Math.abs((r?.y || 0) - 1) / 2, d = zr({
2475
2500
  scale: u,
2476
- focusPoint: c,
2501
+ focusPoint: l,
2477
2502
  imageSize: n.height,
2478
2503
  containerSize: o.height
2479
2504
  }), f = Math.abs((r?.x || 0) + 1) / 2;
@@ -2500,7 +2525,7 @@ const Gs = "lumx-thumbnail", {
2500
2525
  crossOrigin: s,
2501
2526
  ref: i,
2502
2527
  fallback: u = Gr.fallback,
2503
- focusPointStyle: c,
2528
+ focusPointStyle: l,
2504
2529
  fillHeight: d,
2505
2530
  image: f,
2506
2531
  imgProps: m,
@@ -2542,9 +2567,9 @@ const Gs = "lumx-thumbnail", {
2542
2567
  "fill-height": d
2543
2568
  })), ae = N && C?.current?.complete && C?.current || void 0, Aa = ae ? {
2544
2569
  backgroundImage: `url(${ae.src})`
2545
- } : void 0, zt = l(G, null, [l("span", {
2570
+ } : void 0, zt = c(G, null, [c("span", {
2546
2571
  className: se("background")
2547
- }, [l("img", h({
2572
+ }, [c("img", h({
2548
2573
  width: ae?.naturalWidth,
2549
2574
  height: ae?.naturalHeight
2550
2575
  }, m, {
@@ -2553,7 +2578,7 @@ const Gs = "lumx-thumbnail", {
2553
2578
  width: N ? m?.width || ae?.naturalWidth : void 0,
2554
2579
  ...m?.style,
2555
2580
  ...Ce,
2556
- ...c,
2581
+ ...l,
2557
2582
  ...Aa
2558
2583
  },
2559
2584
  ref: p,
@@ -2565,7 +2590,7 @@ const Gs = "lumx-thumbnail", {
2565
2590
  src: f,
2566
2591
  alt: r,
2567
2592
  loading: v
2568
- }), null), !N && J && l("span", {
2593
+ }), null), !N && J && c("span", {
2569
2594
  className: se("fallback")
2570
2595
  }, [j ? I({
2571
2596
  icon: u,
@@ -2577,7 +2602,7 @@ const Gs = "lumx-thumbnail", {
2577
2602
  ...re,
2578
2603
  className: Ht,
2579
2604
  children: zt
2580
- }) : l("div", h({
2605
+ }) : c("div", h({
2581
2606
  ref: i
2582
2607
  }, re, {
2583
2608
  className: Ht
@@ -2616,11 +2641,11 @@ function Ks(e) {
2616
2641
  element: s.value,
2617
2642
  isLoaded: i.value
2618
2643
  })
2619
- ), c = ie(void 0), d = () => {
2644
+ ), l = ie(void 0), d = () => {
2620
2645
  const m = s.value?.offsetWidth, p = s.value?.offsetHeight;
2621
2646
  if (m && p) {
2622
- const g = c.value;
2623
- (g?.width !== m || g?.height !== p) && (c.value = { width: m, height: p });
2647
+ const g = l.value;
2648
+ (g?.width !== m || g?.height !== p) && (l.value = { width: m, height: p });
2624
2649
  } else u.value && requestAnimationFrame(d);
2625
2650
  };
2626
2651
  return W(
@@ -2636,7 +2661,7 @@ function Ks(e) {
2636
2661
  focusPoint: a.value,
2637
2662
  element: s.value,
2638
2663
  imageSize: u.value,
2639
- containerSize: c.value
2664
+ containerSize: l.value
2640
2665
  })
2641
2666
  );
2642
2667
  }
@@ -2649,7 +2674,7 @@ const Ys = {
2649
2674
  }) => {
2650
2675
  const a = k(), n = w(), o = ie(), s = wt("onClick"), i = wt("onKeyPress"), {
2651
2676
  isAnyDisabled: u,
2652
- disabledStateProps: c,
2677
+ disabledStateProps: l,
2653
2678
  otherProps: d
2654
2679
  } = H(T(() => ({
2655
2680
  ...e,
@@ -2669,11 +2694,11 @@ const Ys = {
2669
2694
  };
2670
2695
  return () => {
2671
2696
  const v = r.badge?.(), C = r.fallback?.();
2672
- return l(Ws, h(d.value, {
2697
+ return c(Ws, h(d.value, {
2673
2698
  className: e.class,
2674
2699
  theme: e.theme || n.value,
2675
2700
  isAnyDisabled: u.value,
2676
- disabledStateProps: c.value,
2701
+ disabledStateProps: l.value,
2677
2702
  focusPointStyle: p.value,
2678
2703
  loadingState: f.value,
2679
2704
  imgRef: o,
@@ -2719,7 +2744,7 @@ const Ys = {
2719
2744
  ref: o,
2720
2745
  ...s
2721
2746
  } = e;
2722
- return l("div", h({
2747
+ return c("div", h({
2723
2748
  ref: o
2724
2749
  }, s, {
2725
2750
  className: A(a, Xs({
@@ -2727,18 +2752,18 @@ const Ys = {
2727
2752
  "has-before": !!r,
2728
2753
  "has-label": !!n
2729
2754
  }))
2730
- }), [r && l("div", {
2755
+ }), [r && c("div", {
2731
2756
  className: St("before")
2732
- }, [r]), n && l("div", {
2757
+ }, [r]), n && c("div", {
2733
2758
  className: St("label")
2734
- }, [n]), t && l("div", {
2759
+ }, [n]), t && c("div", {
2735
2760
  className: St("after")
2736
2761
  }, [t])]);
2737
2762
  }, Vi = /* @__PURE__ */ y((e, {
2738
2763
  slots: t
2739
2764
  }) => {
2740
2765
  const r = k();
2741
- return () => l(Qs, h(e, r, {
2766
+ return () => c(Qs, h(e, r, {
2742
2767
  className: e.class,
2743
2768
  label: t.default?.(),
2744
2769
  before: t.before?.(),