@lumx/vue 4.15.0-alpha.0 → 4.15.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +163 -164
  2. package/index.js.map +1 -1
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ColorVariant as Ku, Size as Ke, VISUALLY_HIDDEN as Yu, DIALOG_TRANSITION_DURATION as Ul, AspectRatio as Gl, IS_BROWSER as qr, ColorPalette as Xu } 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 f, mergeProps as S, Fragment as te, isVNode as G, useAttrs as M, computed as C, toValue as _e, getCurrentScope as Kl, onScopeDispose as rr, toRef as ae, readonly as Zu, customRef as Ju, ref as B, shallowRef as Ie, watch as K, getCurrentInstance as Yl, onMounted as Kt, inject as Fe, defineComponent as L, toRefs as Qu, reactive as Xl, provide as qe, watchEffect as tt, isRef as Ze, onUnmounted as St, watchPostEffect as ed, onBeforeUnmount as Yt, Comment as sr, unref as bt, useSlots as nt, useTemplateRef as td, toRaw as je, Text as Zl, nextTick as nd, shallowReadonly as Ue, h as jr, cloneVNode as ad, onWatcherCleanup as od, createTextVNode as rd, withDirectives as sd, resolveDirective as id } from "vue";
4
+ import { createVNode as f, mergeProps as S, Fragment as ne, isVNode as G, useAttrs as M, computed as C, toValue as _e, getCurrentScope as Kl, onScopeDispose as rr, toRef as ae, readonly as Zu, customRef as Ju, ref as B, shallowRef as Ie, watch as K, getCurrentInstance as Yl, onMounted as Gt, inject as Fe, defineComponent as L, toRefs as Qu, reactive as Xl, provide as qe, watchEffect as tt, isRef as Ze, onUnmounted as St, watchPostEffect as ed, onBeforeUnmount as Kt, Comment as sr, unref as bt, useSlots as nt, useTemplateRef as td, toRaw as je, Text as Zl, nextTick as nd, shallowReadonly as Ue, h as jr, cloneVNode as ad, onWatcherCleanup as od, createTextVNode as rd, withDirectives as sd, resolveDirective as id } from "vue";
5
5
  import { classNames as ce } from "@lumx/core/js/utils";
6
- import { k as E, u as V, T as ir, P as Xt, C as lr, I as Jl } from "./_internal/CO3BhTbu.js";
6
+ import { k as E, u as V, T as ir, P as Yt, C as lr, I as Jl } from "./_internal/CO3BhTbu.js";
7
7
  import { getDisabledState as ld } from "@lumx/core/js/utils/disabledState";
8
8
  import { mdiAlertCircle as gt } from "@lumx/icons/esm/alert-circle.js";
9
9
  import { mdiChevronUp as Ql } from "@lumx/icons/esm/chevron-up.js";
@@ -73,7 +73,7 @@ const zr = {
73
73
  square: "square",
74
74
  /** Ratio constrained by the parent. */
75
75
  free: "free"
76
- }, ne = {
76
+ }, te = {
77
77
  info: "info",
78
78
  success: "success",
79
79
  warning: "warning",
@@ -89,7 +89,7 @@ const zr = {
89
89
  }, Vr = {
90
90
  N: "N"
91
91
  }, yd = typeof window < "u" && !window.navigator.userAgent.includes("jsdom");
92
- var Et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
92
+ var Lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
93
93
  function xe(e) {
94
94
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
95
95
  }
@@ -164,7 +164,7 @@ function Pd(e, t, n) {
164
164
  return `lumx-color-${e}-${a}-${o}`;
165
165
  }
166
166
  const rc = (e, t) => Pd("font", e, t);
167
- function Zt(e) {
167
+ function Xt(e) {
168
168
  return `lumx-typography-${e}`;
169
169
  }
170
170
  const xd = /* @__PURE__ */ new Set([Ke.tiny, Ke.regular, Ke.medium, Ke.big, Ke.huge]);
@@ -179,7 +179,7 @@ function Ur(e, t, n) {
179
179
  function Cd(e, t) {
180
180
  return sc(e) || e === null ? Ur("padding", e) : Ur("padding", e, t);
181
181
  }
182
- const wt = () => Yu;
182
+ const Zt = () => Yu;
183
183
  function Od(e, t, n, a) {
184
184
  return fr(`${e}__${t}`, n, a);
185
185
  }
@@ -220,19 +220,19 @@ function xn(e) {
220
220
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !G(e);
221
221
  }
222
222
  const Id = {
223
- [ne.error]: {
223
+ [te.error]: {
224
224
  color: W.red,
225
225
  icon: tc
226
226
  },
227
- [ne.info]: {
227
+ [te.info]: {
228
228
  color: W.blue,
229
229
  icon: nc
230
230
  },
231
- [ne.success]: {
231
+ [te.success]: {
232
232
  color: W.green,
233
233
  icon: cr
234
234
  },
235
- [ne.warning]: {
235
+ [te.warning]: {
236
236
  color: W.yellow,
237
237
  icon: gt
238
238
  }
@@ -240,7 +240,7 @@ const Id = {
240
240
  block: $d
241
241
  } = F(Ed), Gr = {
242
242
  size: H.tiny,
243
- kind: ne.info
243
+ kind: te.info
244
244
  }, Rd = (e) => {
245
245
  const {
246
246
  id: t,
@@ -307,7 +307,7 @@ const Id = {
307
307
  default: () => [u]
308
308
  }), f("footer", null, [f(g, {
309
309
  className: "lumx-spacing-margin-horizontal",
310
- after: f(te, null, [o && f(b, S(D, {
310
+ after: f(ne, null, [o && f(b, S(D, {
311
311
  ref: h,
312
312
  emphasis: he.medium,
313
313
  onClick: R
@@ -347,14 +347,14 @@ function Jt(e, t) {
347
347
  }
348
348
  const Md = typeof window < "u" && typeof document < "u";
349
349
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
350
- const lc = (e) => e != null, Ft = () => {
350
+ const lc = (e) => e != null, Bt = () => {
351
351
  };
352
352
  function Dd(...e) {
353
353
  if (e.length !== 1) return ae(...e);
354
354
  const t = e[0];
355
355
  return typeof t == "function" ? Zu(Ju(() => ({
356
356
  get: t,
357
- set: Ft
357
+ set: Bt
358
358
  }))) : B(t);
359
359
  }
360
360
  function cc(e) {
@@ -369,7 +369,7 @@ function Ye(e) {
369
369
  // @__NO_SIDE_EFFECTS__
370
370
  function Bd() {
371
371
  const e = Ie(!1), t = Yl();
372
- return t && Kt(() => {
372
+ return t && Gt(() => {
373
373
  e.value = !0;
374
374
  }, t), e;
375
375
  }
@@ -426,7 +426,7 @@ function qd(e, t, n = {}) {
426
426
  }
427
427
  function Yr(e, t, n = {}) {
428
428
  const { root: a, rootMargin: o = "0px", threshold: r = 0, window: s = hr, immediate: i = !0 } = n, l = /* @__PURE__ */ pr(() => s && "IntersectionObserver" in s), c = C(() => cc(_e(e)).map(Ye).filter(lc));
429
- let u = Ft;
429
+ let u = Bt;
430
430
  const d = Ie(i), h = l.value ? K(() => [
431
431
  c.value,
432
432
  Ye(a),
@@ -439,12 +439,12 @@ function Yr(e, t, n = {}) {
439
439
  threshold: r
440
440
  });
441
441
  v.forEach((b) => b && g.observe(b)), u = () => {
442
- g.disconnect(), u = Ft;
442
+ g.disconnect(), u = Bt;
443
443
  };
444
444
  }, {
445
445
  immediate: i,
446
446
  flush: "post"
447
- }) : Ft, m = () => {
447
+ }) : Bt, m = () => {
448
448
  u(), h(), d.value = !1;
449
449
  };
450
450
  return Jt(m), {
@@ -617,7 +617,7 @@ const zd = "lumx-dialog", {
617
617
  props: E()("level")
618
618
  }), Kd = "lumx-progress-circular", {
619
619
  block: Yd,
620
- element: jt
620
+ element: qt
621
621
  } = F(Kd), Zr = {
622
622
  size: H.m,
623
623
  display: "block"
@@ -642,9 +642,9 @@ const zd = "lumx-dialog", {
642
642
  }))
643
643
  }), {
644
644
  default: () => [f(c, {
645
- className: jt("double-bounce1")
645
+ className: qt("double-bounce1")
646
646
  }, null), f(c, {
647
- className: jt("double-bounce2")
647
+ className: qt("double-bounce2")
648
648
  }, null), f("svg", S(i, {
649
649
  viewBox: "25 25 50 50"
650
650
  }), [f("circle", S(s, {
@@ -660,11 +660,11 @@ const zd = "lumx-dialog", {
660
660
  className: a.value,
661
661
  theme: e.theme || n.value,
662
662
  circleProps: {
663
- class: jt("path"),
663
+ class: qt("path"),
664
664
  "stroke-width": "5"
665
665
  },
666
666
  svgProps: {
667
- class: jt("svg")
667
+ class: qt("svg")
668
668
  }
669
669
  }), null);
670
670
  }, {
@@ -744,7 +744,7 @@ var En, os;
744
744
  function pc() {
745
745
  if (os) return En;
746
746
  os = 1;
747
- var e = typeof Et == "object" && Et && Et.Object === Object && Et;
747
+ var e = typeof Lt == "object" && Lt && Lt.Object === Object && Lt;
748
748
  return En = e, En;
749
749
  }
750
750
  var $n, rs;
@@ -789,7 +789,7 @@ function af() {
789
789
  return Dn = n, Dn;
790
790
  }
791
791
  var Bn, cs;
792
- function Pt() {
792
+ function wt() {
793
793
  if (cs) return Bn;
794
794
  cs = 1;
795
795
  var e = Qt(), t = nf(), n = af(), a = "[object Null]", o = "[object Undefined]", r = e ? e.toStringTag : void 0;
@@ -812,7 +812,7 @@ var qn, ds;
812
812
  function vc() {
813
813
  if (ds) return qn;
814
814
  ds = 1;
815
- var e = Pt(), t = en(), n = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", r = "[object Proxy]";
815
+ var e = wt(), t = en(), n = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", r = "[object Proxy]";
816
816
  function s(i) {
817
817
  if (!t(i))
818
818
  return !1;
@@ -1197,7 +1197,7 @@ function gr(e, t, n, a, o) {
1197
1197
  i && !s && r();
1198
1198
  },
1199
1199
  { flush: "sync" }
1200
- ), Yt(() => {
1200
+ ), Kt(() => {
1201
1201
  r();
1202
1202
  });
1203
1203
  }
@@ -1221,7 +1221,7 @@ function wc(e, t, n) {
1221
1221
  let r = a.value;
1222
1222
  return K(a, (s) => {
1223
1223
  s !== r && (r = s, n?.value?.(s));
1224
- }), Yt(() => {
1224
+ }), Kt(() => {
1225
1225
  clearTimeout(o);
1226
1226
  }), C(() => e.value || a.value);
1227
1227
  }
@@ -1266,7 +1266,7 @@ const kf = {
1266
1266
  ...a,
1267
1267
  ClickAwayProvider: lr,
1268
1268
  HeadingLevelProvider: vr,
1269
- Portal: Xt,
1269
+ Portal: Yt,
1270
1270
  ThemeProvider: ir,
1271
1271
  ProgressCircular: Zd,
1272
1272
  className: o.value,
@@ -1387,7 +1387,7 @@ var ya, Vs;
1387
1387
  function Df() {
1388
1388
  if (Vs) return ya;
1389
1389
  Vs = 1;
1390
- var e = Ef(), t = Cc(), n = $f(), a = Rf(), o = Mf(), r = Pt(), s = bc(), i = "[object Map]", l = "[object Object]", c = "[object Promise]", u = "[object Set]", d = "[object WeakMap]", h = "[object DataView]", m = s(e), v = s(t), p = s(n), g = s(a), b = s(o), y = r;
1390
+ var e = Ef(), t = Cc(), n = $f(), a = Rf(), o = Mf(), r = wt(), s = bc(), i = "[object Map]", l = "[object Object]", c = "[object Promise]", u = "[object Set]", d = "[object WeakMap]", h = "[object DataView]", m = s(e), v = s(t), p = s(n), g = s(a), b = s(o), y = r;
1391
1391
  return (e && y(new e(new ArrayBuffer(1))) != h || t && y(new t()) != i || n && y(n.resolve()) != c || a && y(new a()) != u || o && y(new o()) != d) && (y = function(A) {
1392
1392
  var x = r(A), O = x == l ? A.constructor : void 0, N = O ? s(O) : "";
1393
1393
  if (N)
@@ -1419,7 +1419,7 @@ var Na, Us;
1419
1419
  function Bf() {
1420
1420
  if (Us) return Na;
1421
1421
  Us = 1;
1422
- var e = Pt(), t = nn(), n = "[object Arguments]";
1422
+ var e = wt(), t = nn(), n = "[object Arguments]";
1423
1423
  function a(o) {
1424
1424
  return t(o) && e(o) == n;
1425
1425
  }
@@ -1484,7 +1484,7 @@ var Oa, Qs;
1484
1484
  function zf() {
1485
1485
  if (Qs) return Oa;
1486
1486
  Qs = 1;
1487
- var e = Pt(), t = Ar(), n = nn(), a = "[object Arguments]", o = "[object Array]", r = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", c = "[object Map]", u = "[object Number]", d = "[object Object]", h = "[object RegExp]", m = "[object Set]", v = "[object String]", p = "[object WeakMap]", g = "[object ArrayBuffer]", b = "[object DataView]", y = "[object Float32Array]", A = "[object Float64Array]", x = "[object Int8Array]", O = "[object Int16Array]", N = "[object Int32Array]", w = "[object Uint8Array]", T = "[object Uint8ClampedArray]", k = "[object Uint16Array]", _ = "[object Uint32Array]", P = {};
1487
+ var e = wt(), t = Ar(), n = nn(), a = "[object Arguments]", o = "[object Array]", r = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", c = "[object Map]", u = "[object Number]", d = "[object Object]", h = "[object RegExp]", m = "[object Set]", v = "[object String]", p = "[object WeakMap]", g = "[object ArrayBuffer]", b = "[object DataView]", y = "[object Float32Array]", A = "[object Float64Array]", x = "[object Int8Array]", O = "[object Int16Array]", N = "[object Int32Array]", w = "[object Uint8Array]", T = "[object Uint8ClampedArray]", k = "[object Uint16Array]", _ = "[object Uint32Array]", P = {};
1488
1488
  P[y] = P[A] = P[x] = P[O] = P[N] = P[w] = P[T] = P[k] = P[_] = !0, P[a] = P[o] = P[g] = P[r] = P[b] = P[s] = P[i] = P[l] = P[c] = P[u] = P[d] = P[h] = P[m] = P[v] = P[p] = !1;
1489
1489
  function R(D) {
1490
1490
  return n(D) && t(D.length) && !!P[e(D)];
@@ -1536,7 +1536,7 @@ function Wf() {
1536
1536
  return Ta = h, Ta;
1537
1537
  }
1538
1538
  var Uf = Wf();
1539
- const zt = /* @__PURE__ */ xe(Uf);
1539
+ const jt = /* @__PURE__ */ xe(Uf);
1540
1540
  function Gf(e) {
1541
1541
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !G(e);
1542
1542
  }
@@ -1591,8 +1591,8 @@ const ot = (e) => {
1591
1591
  };
1592
1592
  return f("div", {
1593
1593
  className: s
1594
- }, [xt(i)]);
1595
- }, xt = (e) => {
1594
+ }, [Pt(i)]);
1595
+ }, Pt = (e) => {
1596
1596
  const {
1597
1597
  "aria-label": t,
1598
1598
  "aria-disabled": n,
@@ -1643,8 +1643,8 @@ const ot = (e) => {
1643
1643
  children: a
1644
1644
  });
1645
1645
  };
1646
- xt.displayName = Kf;
1647
- xt.defaultProps = {};
1646
+ Pt.displayName = Kf;
1647
+ Pt.defaultProps = {};
1648
1648
  const em = "Button", Oc = "lumx-button", {
1649
1649
  modifier: tm
1650
1650
  } = F(Oc), Go = {
@@ -1662,7 +1662,7 @@ const em = "Button", Oc = "lumx-button", {
1662
1662
  "has-left-icon": !!a,
1663
1663
  "has-right-icon": !!o
1664
1664
  }));
1665
- return xt({
1665
+ return Pt({
1666
1666
  emphasis: n,
1667
1667
  size: r,
1668
1668
  ...s,
@@ -1787,7 +1787,7 @@ const Qe = /* @__PURE__ */ L((e) => {
1787
1787
  "is-truncated": d && !u,
1788
1788
  "is-truncated-multiline": u,
1789
1789
  "no-wrap": o
1790
- }), r && Zt(r), n && rc(n, a)),
1790
+ }), r && Xt(r), n && rc(n, a)),
1791
1791
  style: {
1792
1792
  ...c,
1793
1793
  ...h,
@@ -1835,7 +1835,7 @@ function Ko(e) {
1835
1835
  t.push(" "), t.push(n), t.push(" ");
1836
1836
  continue;
1837
1837
  }
1838
- if (n.type === te && Array.isArray(n.children)) {
1838
+ if (n.type === ne && Array.isArray(n.children)) {
1839
1839
  const a = Ko(n.children);
1840
1840
  a && t.push(...a);
1841
1841
  continue;
@@ -1906,11 +1906,11 @@ const ve = /* @__PURE__ */ L((e, {
1906
1906
  return h?.length ? h.length === 1 && h[0].type === ve ? h[0] : f("span", null, [h]) : null;
1907
1907
  };
1908
1908
  return () => {
1909
- const d = f(te, null, [e.leftIcon && !zt(e.leftIcon) && f(ai, null, {
1909
+ const d = f(ne, null, [e.leftIcon && !jt(e.leftIcon) && f(ai, null, {
1910
1910
  default: () => [f(Qe, {
1911
1911
  icon: e.leftIcon
1912
1912
  }, null)]
1913
- }), u(), e.rightIcon && !zt(e.rightIcon) && f(ai, null, {
1913
+ }), u(), e.rightIcon && !jt(e.rightIcon) && f(ai, null, {
1914
1914
  default: () => [f(Qe, {
1915
1915
  icon: e.rightIcon
1916
1916
  }, null)]
@@ -2158,7 +2158,7 @@ const Cm = "lumx-thumbnail", {
2158
2158
  X && (Object.assign(me, {
2159
2159
  as: k || (T?.href ? "a" : "button")
2160
2160
  }, A), z ? Object.assign(me, T) : me["aria-label"] = R["aria-label"] || n);
2161
- const Lt = ce.join(T?.className, r, Om({
2161
+ const It = ce.join(T?.className, r, Om({
2162
2162
  [`align-${t}`]: !!t,
2163
2163
  [`aspect-ratio-${a}`]: !!a,
2164
2164
  [`size-${x}`]: !!x,
@@ -2174,7 +2174,7 @@ const Cm = "lumx-thumbnail", {
2174
2174
  "fill-height": u
2175
2175
  })), it = D && b?.current?.complete && b?.current || void 0, Gu = it ? {
2176
2176
  backgroundImage: `url(${it.src})`
2177
- } : void 0, Fr = f(te, null, [f("span", {
2177
+ } : void 0, Fr = f(ne, null, [f("span", {
2178
2178
  className: pt("background")
2179
2179
  }, [f("img", S({
2180
2180
  width: it?.naturalWidth,
@@ -2207,14 +2207,14 @@ const Cm = "lumx-thumbnail", {
2207
2207
  return X ? ot({
2208
2208
  ref: i,
2209
2209
  ...me,
2210
- className: Lt,
2210
+ className: It,
2211
2211
  children: Fr,
2212
2212
  handleClick: _,
2213
2213
  handleKeyPress: P
2214
2214
  }) : f("div", S({
2215
2215
  ref: i
2216
2216
  }, me, {
2217
- className: Lt
2217
+ className: It
2218
2218
  }), [Fr]);
2219
2219
  }, ee = (e) => Yl()?.vnode.props?.[e] !== void 0;
2220
2220
  function Tm(e, t) {
@@ -2235,7 +2235,7 @@ function Tm(e, t) {
2235
2235
  r && (r.removeEventListener("load", a), r.removeEventListener("error", a)), o && (o.addEventListener("load", a), o.addEventListener("error", a));
2236
2236
  },
2237
2237
  { immediate: !0 }
2238
- ), Yt(() => {
2238
+ ), Kt(() => {
2239
2239
  t.value && (t.value.removeEventListener("load", a), t.value.removeEventListener("error", a));
2240
2240
  }), n;
2241
2241
  }
@@ -2420,7 +2420,7 @@ const $m = "lumx-combobox-button", Rm = (e, {
2420
2420
  children: p
2421
2421
  };
2422
2422
  return f(n, {
2423
- className: g ? wt() : void 0,
2423
+ className: g ? Zt() : void 0,
2424
2424
  label: o,
2425
2425
  closeMode: "hide",
2426
2426
  ariaLinkMode: "aria-labelledby"
@@ -3236,7 +3236,7 @@ function Hm(e, t) {
3236
3236
  const Vm = "IconButton", Wm = "lumx-icon-button", Xo = {
3237
3237
  emphasis: he.high,
3238
3238
  size: H.m
3239
- }, Ct = (e) => {
3239
+ }, xt = (e) => {
3240
3240
  const {
3241
3241
  emphasis: t = Xo.emphasis,
3242
3242
  image: n,
@@ -3250,20 +3250,19 @@ const Vm = "IconButton", Wm = "lumx-icon-button", Xo = {
3250
3250
  }, null) : Z({
3251
3251
  icon: a
3252
3252
  });
3253
- return xt({
3253
+ return Pt({
3254
3254
  emphasis: t,
3255
3255
  size: r,
3256
3256
  ...s,
3257
+ "aria-label": o,
3257
3258
  variant: "icon",
3258
- children: f(te, null, [i, f("span", {
3259
- className: wt()
3260
- }, [o])])
3259
+ children: i
3261
3260
  });
3262
3261
  };
3263
- Ct.displayName = Vm;
3264
- Ct.className = Wm;
3265
- Ct.defaultProps = Xo;
3266
- const Um = ["top", "right", "bottom", "left"], di = ["start", "end"], fi = /* @__PURE__ */ Um.reduce((e, t) => e.concat(t, t + "-" + di[0], t + "-" + di[1]), []), Le = Math.min, oe = Math.max, Ht = Math.round, $t = Math.floor, pe = (e) => ({
3262
+ xt.displayName = Vm;
3263
+ xt.className = Wm;
3264
+ xt.defaultProps = Xo;
3265
+ const Um = ["top", "right", "bottom", "left"], di = ["start", "end"], fi = /* @__PURE__ */ Um.reduce((e, t) => e.concat(t, t + "-" + di[0], t + "-" + di[1]), []), Le = Math.min, oe = Math.max, zt = Math.round, Et = Math.floor, pe = (e) => ({
3267
3266
  x: e,
3268
3267
  y: e
3269
3268
  }), Gm = {
@@ -3304,13 +3303,13 @@ function Fc(e, t, n) {
3304
3303
  n === void 0 && (n = !1);
3305
3304
  const a = le(e), o = wr(e), r = Sr(o);
3306
3305
  let s = o === "x" ? a === (n ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
3307
- return t.reference[r] > t.floating[r] && (s = Wt(s)), [s, Wt(s)];
3306
+ return t.reference[r] > t.floating[r] && (s = Vt(s)), [s, Vt(s)];
3308
3307
  }
3309
3308
  function Xm(e) {
3310
- const t = Wt(e);
3311
- return [Vt(e), t, Vt(t)];
3309
+ const t = Vt(e);
3310
+ return [Ht(e), t, Ht(t)];
3312
3311
  }
3313
- function Vt(e) {
3312
+ function Ht(e) {
3314
3313
  return e.replace(/start|end/g, (t) => Km[t]);
3315
3314
  }
3316
3315
  const mi = ["left", "right"], hi = ["right", "left"], Zm = ["top", "bottom"], Jm = ["bottom", "top"];
@@ -3329,9 +3328,9 @@ function Qm(e, t, n) {
3329
3328
  function eh(e, t, n, a) {
3330
3329
  const o = le(e);
3331
3330
  let r = Qm(be(e), n === "start", a);
3332
- return o && (r = r.map((s) => s + "-" + o), t && (r = r.concat(r.map(Vt)))), r;
3331
+ return o && (r = r.map((s) => s + "-" + o), t && (r = r.concat(r.map(Ht)))), r;
3333
3332
  }
3334
- function Wt(e) {
3333
+ function Vt(e) {
3335
3334
  return e.replace(/left|right|bottom|top/g, (t) => Gm[t]);
3336
3335
  }
3337
3336
  function th(e) {
@@ -3351,7 +3350,7 @@ function qc(e) {
3351
3350
  left: e
3352
3351
  };
3353
3352
  }
3354
- function Ut(e) {
3353
+ function Wt(e) {
3355
3354
  const {
3356
3355
  x: t,
3357
3356
  y: n,
@@ -3433,7 +3432,7 @@ async function nh(e, t) {
3433
3432
  elementContext: d = "floating",
3434
3433
  altBoundary: h = !1,
3435
3434
  padding: m = 0
3436
- } = Ve(t, e), v = qc(m), g = i[h ? d === "floating" ? "reference" : "floating" : d], b = Ut(await r.getClippingRect({
3435
+ } = Ve(t, e), v = qc(m), g = i[h ? d === "floating" ? "reference" : "floating" : d], b = Wt(await r.getClippingRect({
3437
3436
  element: (n = await (r.isElement == null ? void 0 : r.isElement(g))) == null || n ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(i.floating)),
3438
3437
  boundary: c,
3439
3438
  rootBoundary: u,
@@ -3449,7 +3448,7 @@ async function nh(e, t) {
3449
3448
  } : {
3450
3449
  x: 1,
3451
3450
  y: 1
3452
- }, O = Ut(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
3451
+ }, O = Wt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
3453
3452
  elements: i,
3454
3453
  rect: y,
3455
3454
  offsetParent: A,
@@ -3565,7 +3564,7 @@ const ah = async (e, t, n) => {
3565
3564
  }
3566
3565
  });
3567
3566
  function rh(e, t, n) {
3568
- return (e ? [...n.filter((o) => le(o) === e), ...n.filter((o) => le(o) !== e)] : n.filter((o) => be(o) === o)).filter((o) => e ? le(o) === e || (t ? Vt(o) !== o : !1) : !0);
3567
+ return (e ? [...n.filter((o) => le(o) === e), ...n.filter((o) => le(o) !== e)] : n.filter((o) => be(o) === o)).filter((o) => e ? le(o) === e || (t ? Ht(o) !== o : !1) : !0);
3569
3568
  }
3570
3569
  const sh = function(e) {
3571
3570
  return e === void 0 && (e = {}), {
@@ -3659,7 +3658,7 @@ const sh = function(e) {
3659
3658
  } = Ve(e, t);
3660
3659
  if ((n = r.arrow) != null && n.alignmentOffset)
3661
3660
  return {};
3662
- const b = be(o), y = we(i), A = be(i) === i, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = h || (A || !p ? [Wt(i)] : Xm(i)), N = v !== "none";
3661
+ const b = be(o), y = we(i), A = be(i) === i, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = h || (A || !p ? [Vt(i)] : Xm(i)), N = v !== "none";
3663
3662
  !h && N && O.push(...eh(i, p, v, x));
3664
3663
  const w = [i, ...O], T = await l.detectOverflow(t, g), k = [];
3665
3664
  let _ = ((a = r.flip) == null ? void 0 : a.overflows) || [];
@@ -3891,7 +3890,7 @@ function vi(e) {
3891
3890
  return !sn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof re(e).ShadowRoot;
3892
3891
  }
3893
3892
  const mh = /* @__PURE__ */ new Set(["inline", "contents"]);
3894
- function Ot(e) {
3893
+ function Ct(e) {
3895
3894
  const {
3896
3895
  overflow: t,
3897
3896
  overflowX: n,
@@ -3963,7 +3962,7 @@ function Ee(e) {
3963
3962
  }
3964
3963
  function jc(e) {
3965
3964
  const t = Ee(e);
3966
- return et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && Ot(t) ? t : jc(t);
3965
+ return et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && Ct(t) ? t : jc(t);
3967
3966
  }
3968
3967
  function yt(e, t, n) {
3969
3968
  var a;
@@ -3971,7 +3970,7 @@ function yt(e, t, n) {
3971
3970
  const o = jc(e), r = o === ((a = e.ownerDocument) == null ? void 0 : a.body), s = re(o);
3972
3971
  if (r) {
3973
3972
  const i = Jo(s);
3974
- return t.concat(s, s.visualViewport || [], Ot(o) ? o : [], i && n ? yt(i) : []);
3973
+ return t.concat(s, s.visualViewport || [], Ct(o) ? o : [], i && n ? yt(i) : []);
3975
3974
  }
3976
3975
  return t.concat(o, yt(o, [], n));
3977
3976
  }
@@ -3981,7 +3980,7 @@ function Jo(e) {
3981
3980
  function zc(e) {
3982
3981
  const t = fe(e);
3983
3982
  let n = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
3984
- const o = ge(e), r = o ? e.offsetWidth : n, s = o ? e.offsetHeight : a, i = Ht(n) !== r || Ht(a) !== s;
3983
+ const o = ge(e), r = o ? e.offsetWidth : n, s = o ? e.offsetHeight : a, i = zt(n) !== r || zt(a) !== s;
3985
3984
  return i && (n = r, a = s), {
3986
3985
  width: n,
3987
3986
  height: a,
@@ -4000,7 +3999,7 @@ function Xe(e) {
4000
3999
  height: o,
4001
4000
  $: r
4002
4001
  } = zc(t);
4003
- let s = (r ? Ht(n.width) : n.width) / a, i = (r ? Ht(n.height) : n.height) / o;
4002
+ let s = (r ? zt(n.width) : n.width) / a, i = (r ? zt(n.height) : n.height) / o;
4004
4003
  return (!s || !Number.isFinite(s)) && (s = 1), (!i || !Number.isFinite(i)) && (i = 1), {
4005
4004
  x: s,
4006
4005
  y: i
@@ -4032,7 +4031,7 @@ function Be(e, t, n, a) {
4032
4031
  l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += A, c += x, v = re(p), p = Jo(v);
4033
4032
  }
4034
4033
  }
4035
- return Ut({
4034
+ return Wt({
4036
4035
  width: u,
4037
4036
  height: d,
4038
4037
  x: l,
@@ -4065,7 +4064,7 @@ function Ph(e) {
4065
4064
  scrollTop: 0
4066
4065
  }, c = pe(1);
4067
4066
  const u = pe(0), d = ge(a);
4068
- if ((d || !d && !r) && ((We(a) !== "body" || Ot(s)) && (l = cn(a)), ge(a))) {
4067
+ if ((d || !d && !r) && ((We(a) !== "body" || Ct(s)) && (l = cn(a)), ge(a))) {
4069
4068
  const m = Be(a);
4070
4069
  c = Xe(a), u.x = m.x + a.clientLeft, u.y = m.y + a.clientTop;
4071
4070
  }
@@ -4139,7 +4138,7 @@ function gi(e, t, n) {
4139
4138
  height: t.height
4140
4139
  };
4141
4140
  }
4142
- return Ut(a);
4141
+ return Wt(a);
4143
4142
  }
4144
4143
  function Wc(e, t) {
4145
4144
  const n = Ee(e);
@@ -4154,7 +4153,7 @@ function _h(e, t) {
4154
4153
  let s = r ? Ee(e) : e;
4155
4154
  for (; de(s) && !et(s); ) {
4156
4155
  const i = fe(s), l = xr(s);
4157
- !l && i.position === "fixed" && (o = null), (r ? !l && !o : !l && i.position === "static" && !!o && kh.has(o.position) || Ot(s) && !l && Wc(e, s)) ? a = a.filter((u) => u !== s) : o = i, s = Ee(s);
4156
+ !l && i.position === "fixed" && (o = null), (r ? !l && !o : !l && i.position === "static" && !!o && kh.has(o.position) || Ct(s) && !l && Wc(e, s)) ? a = a.filter((u) => u !== s) : o = i, s = Ee(s);
4158
4157
  }
4159
4158
  return t.set(e, a), a;
4160
4159
  }
@@ -4197,7 +4196,7 @@ function Eh(e, t, n) {
4197
4196
  l.x = un(o);
4198
4197
  }
4199
4198
  if (a || !a && !r)
4200
- if ((We(t) !== "body" || Ot(o)) && (i = cn(t)), a) {
4199
+ if ((We(t) !== "body" || Ct(o)) && (i = cn(t)), a) {
4201
4200
  const m = Be(t, !0, r, t);
4202
4201
  l.x = m.x + t.clientLeft, l.y = m.y + t.clientTop;
4203
4202
  } else o && c();
@@ -4286,7 +4285,7 @@ function Dh(e, t) {
4286
4285
  } = c;
4287
4286
  if (i || t(), !h || !m)
4288
4287
  return;
4289
- const v = $t(d), p = $t(o.clientWidth - (u + h)), g = $t(o.clientHeight - (d + m)), b = $t(u), A = {
4288
+ const v = Et(d), p = Et(o.clientWidth - (u + h)), g = Et(o.clientHeight - (d + m)), b = Et(u), A = {
4290
4289
  rootMargin: -v + "px " + -p + "px " + -g + "px " + -b + "px",
4291
4290
  threshold: oe(0, Le(1, l)) || 1
4292
4291
  };
@@ -4465,7 +4464,7 @@ function Zc(e, t, n) {
4465
4464
  update: A
4466
4465
  };
4467
4466
  }
4468
- const Wh = 8, Jc = 1e4, Rt = {
4467
+ const Wh = 8, Jc = 1e4, $t = {
4469
4468
  placement: "bottom",
4470
4469
  closeMode: "unmount",
4471
4470
  ariaLinkMode: "aria-describedby",
@@ -4493,7 +4492,7 @@ const Wh = 8, Jc = 1e4, Rt = {
4493
4492
  role: "tooltip",
4494
4493
  className: I(i, Gh({
4495
4494
  [`position-${a}`]: !!a
4496
- }), o && wt()),
4495
+ }), o && Zt()),
4497
4496
  style: {
4498
4497
  ...o ? void 0 : r,
4499
4498
  zIndex: s
@@ -4582,7 +4581,7 @@ function Zh(e, t) {
4582
4581
  }, manager: a };
4583
4582
  }
4584
4583
  function eu(e) {
4585
- return e.flatMap((t) => t.type === te ? eu(t.children) : [t]);
4584
+ return e.flatMap((t) => t.type === ne ? eu(t.children) : [t]);
4586
4585
  }
4587
4586
  function Jh(e) {
4588
4587
  const t = e.props || {};
@@ -4591,7 +4590,7 @@ function Jh(e) {
4591
4590
  function Qh(e) {
4592
4591
  const { slotContent: t, setAnchorElement: n, isMounted: a, id: o, label: r, ariaLinkMode: s } = e;
4593
4592
  if (!t || !r)
4594
- return jr(te, t);
4593
+ return jr(ne, t);
4595
4594
  const i = eu(t), l = i.find((d) => d.type !== sr), c = a ? o : void 0;
4596
4595
  if (l && i.length === 1 && l.type !== Zl && !Jh(l)) {
4597
4596
  const d = { ref: n };
@@ -4613,7 +4612,7 @@ function ep(e) {
4613
4612
  const dn = /* @__PURE__ */ L((e, {
4614
4613
  slots: t
4615
4614
  }) => {
4616
- const n = se(), a = $(() => e.class), o = B(null), r = B(null), s = C(() => e.placement || Rt.placement), i = C(() => e.closeMode || Rt.closeMode), l = C(() => e.ariaLinkMode || Rt.ariaLinkMode), c = C(() => e.zIndex || Rt.zIndex), {
4615
+ const n = se(), a = $(() => e.class), o = B(null), r = B(null), s = C(() => e.placement || $t.placement), i = C(() => e.closeMode || $t.closeMode), l = C(() => e.ariaLinkMode || $t.ariaLinkMode), c = C(() => e.zIndex || $t.zIndex), {
4617
4616
  floatingStyles: u,
4618
4617
  placement: d
4619
4618
  } = Zc(o, r, {
@@ -4637,7 +4636,7 @@ const dn = /* @__PURE__ */ L((e, {
4637
4636
  label: e.label,
4638
4637
  ariaLinkMode: l.value
4639
4638
  });
4640
- return f(te, null, [x, g.value && f(Xt, null, ep(y = kr({
4639
+ return f(ne, null, [x, g.value && f(Yt, null, ep(y = kr({
4641
4640
  ref: (O) => {
4642
4641
  const N = O?.$el || O;
4643
4642
  r.value = N, m(N);
@@ -4659,7 +4658,7 @@ const dn = /* @__PURE__ */ L((e, {
4659
4658
  props: E()("label", "placement", "delay", "forceOpen", "closeMode", "ariaLinkMode", "zIndex", "class")
4660
4659
  }), tp = {
4661
4660
  click: (e) => e instanceof MouseEvent
4662
- }, kt = /* @__PURE__ */ L((e, {
4661
+ }, Ot = /* @__PURE__ */ L((e, {
4663
4662
  emit: t,
4664
4663
  expose: n
4665
4664
  }) => {
@@ -4689,7 +4688,7 @@ const dn = /* @__PURE__ */ L((e, {
4689
4688
  return f(dn, S({
4690
4689
  label: p ? "" : e.label
4691
4690
  }, v), {
4692
- default: () => [f(Ct, S(g, {
4691
+ default: () => [f(xt, S(g, {
4693
4692
  ref: h,
4694
4693
  linkAs: je(m)
4695
4694
  }, l.value, {
@@ -4764,7 +4763,7 @@ function rt(e, t, n = { immediate: !0 }) {
4764
4763
  r(), o();
4765
4764
  };
4766
4765
  }
4767
- function Tt(e, t) {
4766
+ function kt(e, t) {
4768
4767
  const { handle: n } = Ae(), a = B(t);
4769
4768
  return rt(n, (o) => {
4770
4769
  if (o)
@@ -4775,7 +4774,7 @@ function Tt(e, t) {
4775
4774
  }
4776
4775
  function Tr() {
4777
4776
  const { handle: e } = Ae();
4778
- return { isOpen: Tt("open", !1), setIsOpen: (a) => e.value?.setIsOpen(a) };
4777
+ return { isOpen: kt("open", !1), setIsOpen: (a) => e.value?.setIsOpen(a) };
4779
4778
  }
4780
4779
  const rp = /* @__PURE__ */ L((e, {
4781
4780
  emit: t
@@ -5097,7 +5096,7 @@ function Re(e) {
5097
5096
  "is-required": o,
5098
5097
  [`theme-${r}`]: !!r,
5099
5098
  "has-custom-typography": !!i
5100
- }), i && Zt(i))
5099
+ }), i && Xt(i))
5101
5100
  }), yp(t) ? t : {
5102
5101
  default: () => [t]
5103
5102
  });
@@ -5106,13 +5105,13 @@ Re.displayName = Ap;
5106
5105
  Re.className = su;
5107
5106
  Re.defaultProps = wp;
5108
5107
  const Pp = {
5109
- [ne.error]: { color: "red" },
5110
- [ne.success]: { color: "green" },
5111
- [ne.warning]: { color: "yellow" }
5108
+ [te.error]: { color: "red" },
5109
+ [te.success]: { color: "green" },
5110
+ [te.warning]: { color: "yellow" }
5112
5111
  }, xp = "InputHelper", Cp = "lumx-input-helper", iu = Cp, {
5113
5112
  block: Op
5114
5113
  } = F(iu), lu = {
5115
- kind: ne.info
5114
+ kind: te.info
5116
5115
  };
5117
5116
  function Pe(e) {
5118
5117
  const {
@@ -5244,7 +5243,7 @@ const _p = (e) => {
5244
5243
  }, [T])]), s && o && Pe({
5245
5244
  children: o,
5246
5245
  className: ie("helper"),
5247
- kind: ne.error,
5246
+ kind: te.error,
5248
5247
  theme: N,
5249
5248
  id: x
5250
5249
  }), i && Pe({
@@ -5326,7 +5325,7 @@ const _p = (e) => {
5326
5325
  onInput: v,
5327
5326
  onFocus: p,
5328
5327
  onBlur: g
5329
- }, Lt = e.multiline ? f(gp, S({
5328
+ }, It = e.multiline ? f(gp, S({
5330
5329
  ref: d
5331
5330
  }, me, {
5332
5331
  rows: e.minimumRows
@@ -5359,9 +5358,9 @@ const _p = (e) => {
5359
5358
  labelId: N,
5360
5359
  errorId: x,
5361
5360
  isFocus: l.value,
5362
- input: Lt,
5361
+ input: It,
5363
5362
  textFieldRef: e.textFieldRef,
5364
- IconButton: kt,
5363
+ IconButton: Ot,
5365
5364
  clearButtonProps: e.clearButtonProps ? {
5366
5365
  ...e.clearButtonProps,
5367
5366
  onClick: b
@@ -5386,7 +5385,7 @@ const _p = (e) => {
5386
5385
  isOpen: l,
5387
5386
  setIsOpen: c
5388
5387
  } = Tr(), u = B(null);
5389
- Kt(() => {
5388
+ Gt(() => {
5390
5389
  const m = u.value;
5391
5390
  m && s(lp(m, {
5392
5391
  onSelect(v) {
@@ -5398,7 +5397,7 @@ const _p = (e) => {
5398
5397
  }), St(() => {
5399
5398
  i.value?.destroy(), s(null);
5400
5399
  });
5401
- const d = Tt("optionsChange", void 0), h = () => {
5400
+ const d = kt("optionsChange", void 0), h = () => {
5402
5401
  d.value?.optionsLength !== 0 && (c(!l.value), u.value?.focus());
5403
5402
  };
5404
5403
  return () => {
@@ -5438,7 +5437,7 @@ const _p = (e) => {
5438
5437
  className: a.value
5439
5438
  }, {
5440
5439
  TextField: Lp,
5441
- IconButton: kt
5440
+ IconButton: Ot
5442
5441
  });
5443
5442
  };
5444
5443
  }, {
@@ -5458,7 +5457,7 @@ const _p = (e) => {
5458
5457
  }
5459
5458
  }), $p = "List", cu = "lumx-list", {
5460
5459
  block: Rp
5461
- } = F(cu), Mp = {}, _t = (e) => {
5460
+ } = F(cu), Mp = {}, Tt = (e) => {
5462
5461
  const {
5463
5462
  children: t,
5464
5463
  className: n,
@@ -5473,9 +5472,9 @@ const _p = (e) => {
5473
5472
  ref: o
5474
5473
  }), [t]);
5475
5474
  };
5476
- _t.displayName = $p;
5477
- _t.className = cu;
5478
- _t.defaultProps = Mp;
5475
+ Tt.displayName = $p;
5476
+ Tt.className = cu;
5477
+ Tt.defaultProps = Mp;
5479
5478
  const Dp = "lumx-combobox-list", Bp = (e) => {
5480
5479
  const {
5481
5480
  "aria-label": t,
@@ -5487,7 +5486,7 @@ const Dp = "lumx-combobox-list", Bp = (e) => {
5487
5486
  ref: i,
5488
5487
  ...l
5489
5488
  } = e;
5490
- return _t({
5489
+ return Tt({
5491
5490
  ...l,
5492
5491
  className: I(o, Dp),
5493
5492
  ref: i,
@@ -5518,7 +5517,7 @@ const zp = /* @__PURE__ */ L((e, {
5518
5517
  if (!(!l || !c))
5519
5518
  return l.registerListbox(c);
5520
5519
  });
5521
- const i = Tt("loadingChange", !1);
5520
+ const i = kt("loadingChange", !1);
5522
5521
  return () => {
5523
5522
  const l = t.default?.(), c = n["aria-label"] ?? "", u = n["aria-multiselectable"];
5524
5523
  return Bp({
@@ -5541,7 +5540,7 @@ const zp = /* @__PURE__ */ L((e, {
5541
5540
  props: E()("type", "class")
5542
5541
  }), Hp = "ListItem", du = "lumx-list-item", {
5543
5542
  block: Vp,
5544
- element: Mt
5543
+ element: Rt
5545
5544
  } = F(du), fu = {
5546
5545
  size: H.regular
5547
5546
  }, st = (e) => {
@@ -5573,19 +5572,19 @@ const zp = /* @__PURE__ */ L((e, {
5573
5572
  isDisabled: i,
5574
5573
  "aria-disabled": l,
5575
5574
  ...u,
5576
- className: Mt(g ? "link" : "wrapper", {
5575
+ className: Rt(g ? "link" : "wrapper", {
5577
5576
  "is-highlighted": r,
5578
5577
  "is-selected": s,
5579
5578
  "is-disabled": i || l === "true"
5580
5579
  }),
5581
5580
  handleClick: h,
5582
5581
  ref: d,
5583
- children: f(te, null, [n && f("div", {
5584
- className: Mt("before")
5582
+ children: f(ne, null, [n && f("div", {
5583
+ className: Rt("before")
5585
5584
  }, [n]), f("div", {
5586
- className: Mt("content")
5585
+ className: Rt("content")
5587
5586
  }, [a]), t && f("div", {
5588
- className: Mt("after")
5587
+ className: Rt("after")
5589
5588
  }, [t])])
5590
5589
  })]);
5591
5590
  };
@@ -5665,7 +5664,7 @@ const Up = "lumx-combobox-option", {
5665
5664
  before: n,
5666
5665
  after: a,
5667
5666
  role: x,
5668
- children: f(te, null, [N, s && f("p", S({
5667
+ children: f(ne, null, [N, s && f("p", S({
5669
5668
  id: i
5670
5669
  }, Tc({
5671
5670
  className: wi("description"),
@@ -5811,7 +5810,7 @@ const nv = "lumx-combobox-option-more-info", {
5811
5810
  onMouseLeave: c,
5812
5811
  buttonProps: u
5813
5812
  } = e;
5814
- return f(te, null, [f(t, S({
5813
+ return f(ne, null, [f(t, S({
5815
5814
  ref: i,
5816
5815
  icon: ud,
5817
5816
  size: "s"
@@ -5860,7 +5859,7 @@ function cv(e) {
5860
5859
  const uv = "lumx-popover", {
5861
5860
  block: dv,
5862
5861
  element: fv
5863
- } = F(uv), qt = {
5862
+ } = F(uv), Ft = {
5864
5863
  closeMode: "unmount",
5865
5864
  elevation: 3,
5866
5865
  placement: sv.AUTO,
@@ -5874,8 +5873,8 @@ const uv = "lumx-popover", {
5874
5873
  as: o = "div",
5875
5874
  children: r,
5876
5875
  className: s,
5877
- closeMode: i = qt.closeMode,
5878
- elevation: l = qt.elevation,
5876
+ closeMode: i = Ft.closeMode,
5877
+ elevation: l = Ft.elevation,
5879
5878
  hasArrow: c,
5880
5879
  isOpen: u,
5881
5880
  position: d,
@@ -5885,7 +5884,7 @@ const uv = "lumx-popover", {
5885
5884
  // Framework-specific
5886
5885
  ref: p,
5887
5886
  arrowRef: g,
5888
- usePortal: b = qt.usePortal,
5887
+ usePortal: b = Ft.usePortal,
5889
5888
  clickAwayCallback: y,
5890
5889
  clickAwayRefs: A,
5891
5890
  unmountSentinel: x,
@@ -6020,7 +6019,7 @@ const Nv = {
6020
6019
  hasArrow: ae(e, "hasArrow"),
6021
6020
  fitToAnchorWidth: ae(e, "fitToAnchorWidth"),
6022
6021
  fitWithinViewportHeight: ae(e, "fitWithinViewportHeight"),
6023
- placement: C(() => e.placement || qt.placement),
6022
+ placement: C(() => e.placement || Ft.placement),
6024
6023
  style: C(() => {
6025
6024
  }),
6026
6025
  zIndex: C(() => e.zIndex ?? lv)
@@ -6054,7 +6053,7 @@ const Nv = {
6054
6053
  clickAwayCallback: e.closeOnClickAway ? h : void 0,
6055
6054
  clickAwayRefs: p
6056
6055
  }, {
6057
- Portal: Xt,
6056
+ Portal: Yt,
6058
6057
  ClickAwayProvider: lr,
6059
6058
  ThemeProvider: ir
6060
6059
  });
@@ -6072,14 +6071,14 @@ const pu = /* @__PURE__ */ L((e, {
6072
6071
  }) => {
6073
6072
  const n = $(() => e.class), a = B(null), o = C(() => a.value?.$el ?? void 0), r = B(!1), {
6074
6073
  optionId: s
6075
- } = Xp(), i = Tt("activeDescendantChange", null), l = `${s}-more-info`;
6074
+ } = Xp(), i = kt("activeDescendantChange", null), l = `${s}-more-info`;
6076
6075
  function c(d) {
6077
6076
  const {
6078
6077
  onMouseEnter: h,
6079
6078
  onMouseLeave: m,
6080
6079
  ...v
6081
6080
  } = d;
6082
- return f(kt, S({
6081
+ return f(Ot, S({
6083
6082
  ref: a
6084
6083
  }, {
6085
6084
  onMouseenter: h,
@@ -6174,7 +6173,7 @@ const pu = /* @__PURE__ */ L((e, {
6174
6173
  role: "none",
6175
6174
  ...s,
6176
6175
  className: I(a, Cv),
6177
- children: n || f(te, null, [f(Qo, {
6176
+ children: n || f(ne, null, [f(Qo, {
6178
6177
  typography: "body1",
6179
6178
  theme: "light"
6180
6179
  }, null), t && f(Qo, {
@@ -6182,7 +6181,7 @@ const pu = /* @__PURE__ */ L((e, {
6182
6181
  theme: "light"
6183
6182
  }, null)])
6184
6183
  };
6185
- return f(te, null, [Array.from({
6184
+ return f(ne, null, [Array.from({
6186
6185
  length: r
6187
6186
  }, (l, c) => f(st, S({
6188
6187
  key: c
@@ -6402,7 +6401,7 @@ const jv = "lumx-combobox-section", zv = (e, {
6402
6401
  slots: t
6403
6402
  }) => {
6404
6403
  const n = M(), a = $(() => e.class);
6405
- return () => f(_t, S(e, n, {
6404
+ return () => f(Tt, S(e, n, {
6406
6405
  className: a.value,
6407
6406
  children: t.default?.()
6408
6407
  }), null);
@@ -6618,7 +6617,7 @@ const Qv = "lumx-combobox-state", {
6618
6617
  vAlign: "center"
6619
6618
  }, A = c;
6620
6619
  return f(t, S({
6621
- className: I(!b && wt(), eb(), Cd("regular")),
6620
+ className: I(!b && Zt(), eb(), Cd("regular")),
6622
6621
  orientation: "vertical"
6623
6622
  }, y, {
6624
6623
  role: "status",
@@ -6643,7 +6642,7 @@ const Qv = "lumx-combobox-state", {
6643
6642
  color: "dark-L2"
6644
6643
  }, ut(g) ? g : {
6645
6644
  default: () => [g]
6646
- }), A && !!r && f(te, null, [f(n, {
6645
+ }), A && !!r && f(ne, null, [f(n, {
6647
6646
  as: "p",
6648
6647
  typography: "subtitle2"
6649
6648
  }, ut(r) ? r : {
@@ -6758,7 +6757,7 @@ var Da, Oi;
6758
6757
  function pn() {
6759
6758
  if (Oi) return Da;
6760
6759
  Oi = 1;
6761
- var e = Pt(), t = nn(), n = "[object Symbol]";
6760
+ var e = wt(), t = nn(), n = "[object Symbol]";
6762
6761
  function a(o) {
6763
6762
  return typeof o == "symbol" || t(o) && e(o) == n;
6764
6763
  }
@@ -7336,7 +7335,7 @@ var Gb = Ub();
7336
7335
  const Kb = /* @__PURE__ */ xe(Gb), LN = Kb(H, ["tiny", "regular", "medium", "big", "huge"]), Yb = /* @__PURE__ */ L((e) => {
7337
7336
  const {
7338
7337
  handle: t
7339
- } = Ae(), n = Tt("optionsChange", void 0), a = B(!1), o = B(!1), r = B(!1);
7338
+ } = Ae(), n = kt("optionsChange", void 0), a = B(!1), o = B(!1), r = B(!1);
7340
7339
  return rt(t, (s) => {
7341
7340
  if (s)
7342
7341
  return ab(s, {
@@ -7787,7 +7786,7 @@ const hg = "lumx-selection-chip-group", {
7787
7786
  default: () => [s]
7788
7787
  });
7789
7788
  }, gg = `.${Nt}:not([aria-disabled="true"])`, Sl = (e) => e?.closest?.(`.${Nt}`) || null, wl = (e) => e?.getAttribute("aria-disabled") === "true";
7790
- function Dt(e, t, n) {
7789
+ function Mt(e, t, n) {
7791
7790
  const a = rn(e, gg);
7792
7791
  if (n)
7793
7792
  return a.currentNode = n, (t === "next" ? a.nextNode() : a.previousNode()) || void 0;
@@ -7819,7 +7818,7 @@ function yg(e) {
7819
7818
  if (l == null || !c || wl(i))
7820
7819
  return;
7821
7820
  let u;
7822
- s.key === "Backspace" ? u = Dt(t, "previous", i) || e.getInput?.() || void 0 : u = Dt(t, "next", i) || Dt(t, "previous", i) || e.getInput?.() || void 0, u && (u.focus(), u.setAttribute("tabindex", "0")), s.preventDefault(), Pl(e, l);
7821
+ s.key === "Backspace" ? u = Mt(t, "previous", i) || e.getInput?.() || void 0 : u = Mt(t, "next", i) || Mt(t, "previous", i) || e.getInput?.() || void 0, u && (u.focus(), u.setAttribute("tabindex", "0")), s.preventDefault(), Pl(e, l);
7823
7822
  };
7824
7823
  t.addEventListener("click", n), t.addEventListener("keydown", a);
7825
7824
  const o = e.getInput?.();
@@ -7827,7 +7826,7 @@ function yg(e) {
7827
7826
  return o && (r = (s) => {
7828
7827
  const i = s.key === "Backspace", l = o.selectionStart === 0 && o.selectionEnd === 0;
7829
7828
  if (!i || !l) return;
7830
- s.stopPropagation(), s.preventDefault(), Dt(t, "previous")?.focus();
7829
+ s.stopPropagation(), s.preventDefault(), Mt(t, "previous")?.focus();
7831
7830
  }, o.addEventListener("keydown", r)), () => {
7832
7831
  t.removeEventListener("click", n), t.removeEventListener("keydown", a), o && r && o.removeEventListener("keydown", r);
7833
7832
  };
@@ -8019,8 +8018,8 @@ const Tu = (e) => (t) => G(t) && t.type === e, Ag = {
8019
8018
  ...a,
8020
8019
  ClickAwayProvider: lr,
8021
8020
  HeadingLevelProvider: vr,
8022
- IconButton: kt,
8023
- Portal: Xt,
8021
+ IconButton: Ot,
8022
+ Portal: Yt,
8024
8023
  ThemeProvider: ir,
8025
8024
  className: o.value,
8026
8025
  clickAwayRefs: d,
@@ -8132,7 +8131,7 @@ const Tu = (e) => (t) => G(t) && t.type === e, Ag = {
8132
8131
  c && P && c(_), l && !P && l(_), u && u(P, _);
8133
8132
  }, T = d === ue.dark ? W.light : W.dark, k = I(t, Eg({
8134
8133
  "has-background": a,
8135
- "has-header": !zt(m.children),
8134
+ "has-header": !jt(m.children),
8136
8135
  "has-header-divider": r,
8137
8136
  "is-close": !s,
8138
8137
  "is-draggable": !!p,
@@ -8183,7 +8182,7 @@ const Tu = (e) => (t) => G(t) && t.type === e, Ag = {
8183
8182
  immediate: !0
8184
8183
  });
8185
8184
  let c;
8186
- Kt(() => {
8185
+ Gt(() => {
8187
8186
  if (!qr || !s.value) return;
8188
8187
  const m = () => {
8189
8188
  i.value = l.value || e.closeMode === "hide";
@@ -8224,7 +8223,7 @@ const Tu = (e) => (t) => G(t) && t.type === e, Ag = {
8224
8223
  footer: n.footer?.(),
8225
8224
  wrapperRef: s,
8226
8225
  isChildrenVisible: i.value,
8227
- IconButton: kt
8226
+ IconButton: Ot
8228
8227
  }), null);
8229
8228
  };
8230
8229
  }, {
@@ -8496,7 +8495,7 @@ const jN = /* @__PURE__ */ L((e, {
8496
8495
  [`color-${d}`]: !!d,
8497
8496
  [`color-variant-${h}`]: !!h,
8498
8497
  "has-typography": !!r
8499
- }), r && Zt(r))
8498
+ }), r && Xt(r))
8500
8499
  });
8501
8500
  }, ty = {
8502
8501
  click: (e) => e instanceof MouseEvent
@@ -8638,19 +8637,19 @@ const ay = "lumx-link-preview", {
8638
8637
  block: iy,
8639
8638
  element: Fo
8640
8639
  } = F(Ru), ly = {
8641
- [ne.error]: {
8640
+ [te.error]: {
8642
8641
  color: W.red,
8643
8642
  icon: tc
8644
8643
  },
8645
- [ne.info]: {
8644
+ [te.info]: {
8646
8645
  color: W.blue,
8647
8646
  icon: nc
8648
8647
  },
8649
- [ne.success]: {
8648
+ [te.success]: {
8650
8649
  color: W.green,
8651
8650
  icon: cr
8652
8651
  },
8653
- [ne.warning]: {
8652
+ [te.warning]: {
8654
8653
  color: W.yellow,
8655
8654
  icon: gt
8656
8655
  }
@@ -8684,7 +8683,7 @@ const ay = "lumx-link-preview", {
8684
8683
  color: c
8685
8684
  }), f("div", {
8686
8685
  className: Fo("text")
8687
- }, [t]), m && Ct({
8686
+ }, [t]), m && xt({
8688
8687
  className: Fo("close-button"),
8689
8688
  icon: ur,
8690
8689
  handleClick: d,
@@ -9255,7 +9254,7 @@ const ZN = /* @__PURE__ */ L((e, {
9255
9254
  }, [a])]), c && f("input", S({
9256
9255
  type: "file",
9257
9256
  id: u,
9258
- className: I(dt("input"), wt())
9257
+ className: I(dt("input"), Zt())
9259
9258
  }, c, {
9260
9259
  onChange: m
9261
9260
  }), null)]
@@ -9530,7 +9529,7 @@ const Xy = (e) => {
9530
9529
  ref: i,
9531
9530
  className: I(t, Qy({
9532
9531
  wrap: !!s
9533
- }), n && rc(n, a), o && Zt(o)),
9532
+ }), n && rc(n, a), o && Xt(o)),
9534
9533
  role: "list"
9535
9534
  }), [r.map((c, u) => (
9536
9535
  // We need to item is set as display: contents which removes the semantic.
@@ -9561,9 +9560,9 @@ const oS = /* @__PURE__ */ L((e, {
9561
9560
  name: "LumxInlineList",
9562
9561
  inheritAttrs: !1,
9563
9562
  props: E()("color", "colorVariant", "typography", "wrap", "class")
9564
- }), It = "lumx-table", {
9563
+ }), _t = "lumx-table", {
9565
9564
  block: tA
9566
- } = F(It), nA = (e) => {
9565
+ } = F(_t), nA = (e) => {
9567
9566
  const {
9568
9567
  children: t,
9569
9568
  className: n,
@@ -9595,7 +9594,7 @@ const oS = /* @__PURE__ */ L((e, {
9595
9594
  name: "LumxTable",
9596
9595
  inheritAttrs: !1,
9597
9596
  props: E()("class", "hasBefore", "hasDividers", "theme")
9598
- }), aA = `${It}__body`, oA = (e) => {
9597
+ }), aA = `${_t}__body`, oA = (e) => {
9599
9598
  const {
9600
9599
  children: t,
9601
9600
  className: n,
@@ -9619,13 +9618,13 @@ const oS = /* @__PURE__ */ L((e, {
9619
9618
  name: "LumxTableBody",
9620
9619
  inheritAttrs: !1,
9621
9620
  props: E()("class")
9622
- }), Bt = {
9621
+ }), Dt = {
9623
9622
  asc: "asc",
9624
9623
  desc: "desc"
9625
9624
  }, er = {
9626
9625
  body: "body",
9627
9626
  head: "head"
9628
- }, De = `${It}__cell`, {
9627
+ }, De = `${_t}__cell`, {
9629
9628
  block: ql
9630
9629
  } = F(De), rA = {
9631
9630
  variant: er.body
@@ -9645,7 +9644,7 @@ const oS = /* @__PURE__ */ L((e, {
9645
9644
  onClick: r
9646
9645
  } : void 0;
9647
9646
  let h;
9648
- return o && (h = "none", i === Bt.asc && (h = "ascending"), i === Bt.desc && (h = "descending")), f(te, null, [l === er.head && f("th", S({
9647
+ return o && (h = "none", i === Dt.asc && (h = "ascending"), i === Dt.desc && (h = "descending")), f(ne, null, [l === er.head && f("th", S({
9649
9648
  ref: s
9650
9649
  }, c, {
9651
9650
  className: I(n, ql({
@@ -9661,11 +9660,11 @@ const oS = /* @__PURE__ */ L((e, {
9661
9660
  className: `${De}-icon`,
9662
9661
  icon: a,
9663
9662
  size: H.xxs
9664
- }), o && i === Bt.asc && Z({
9663
+ }), o && i === Dt.asc && Z({
9665
9664
  className: `${De}-icon`,
9666
9665
  icon: bd,
9667
9666
  size: H.xxs
9668
- }), o && i === Bt.desc && Z({
9667
+ }), o && i === Dt.desc && Z({
9669
9668
  className: `${De}-icon`,
9670
9669
  icon: vd,
9671
9670
  size: H.xxs
@@ -9701,7 +9700,7 @@ const oS = /* @__PURE__ */ L((e, {
9701
9700
  inheritAttrs: !1,
9702
9701
  props: E()("class", "icon", "isSortable", "sortOrder", "variant"),
9703
9702
  emits: iA
9704
- }), lA = `${It}__header`, cA = (e) => {
9703
+ }), lA = `${_t}__header`, cA = (e) => {
9705
9704
  const {
9706
9705
  children: t,
9707
9706
  className: n,
@@ -9725,7 +9724,7 @@ const oS = /* @__PURE__ */ L((e, {
9725
9724
  name: "LumxTableHeader",
9726
9725
  inheritAttrs: !1,
9727
9726
  props: E()("class")
9728
- }), uA = `${It}__row`, {
9727
+ }), uA = `${_t}__row`, {
9729
9728
  block: dA
9730
9729
  } = F(uA), fA = (e) => {
9731
9730
  const {
@@ -9868,9 +9867,9 @@ const hA = `${qu}__link`, {
9868
9867
  return C(() => {
9869
9868
  });
9870
9869
  const { state: a, dispatch: o } = n, r = se(), s = t || r;
9871
- return Kt(() => {
9870
+ return Gt(() => {
9872
9871
  o({ type: "register", payload: { type: e, id: s } });
9873
- }), Yt(() => {
9872
+ }), Kt(() => {
9874
9873
  o({ type: "unregister", payload: { type: e, id: s } });
9875
9874
  }), C(() => {
9876
9875
  const i = a.value.ids[e].indexOf(s);
@@ -10192,7 +10191,7 @@ const $A = {
10192
10191
  t("mouseleave");
10193
10192
  }, c = ee("onClick"), u = ee("onMouseenter"), d = ee("onMouseleave"), h = C(() => {
10194
10193
  const v = e.name || n.name?.();
10195
- if (zt(v))
10194
+ if (jt(v))
10196
10195
  return null;
10197
10196
  const p = tr({
10198
10197
  linkAs: e.linkAs,
@@ -10826,7 +10825,7 @@ function ar({ hour: e, minute: t }, n) {
10826
10825
  const a = n ? new Date(n) : /* @__PURE__ */ new Date();
10827
10826
  return a.setHours(e, t, 0, 0), a;
10828
10827
  }
10829
- function Gt(e) {
10828
+ function Ut(e) {
10830
10829
  return e.getHours() * 60 + e.getMinutes();
10831
10830
  }
10832
10831
  const or = 60, XA = 24 * or;
@@ -10834,7 +10833,7 @@ function ZA(e = {}) {
10834
10833
  const { step: t = 30, minTime: n, maxTime: a, locale: o } = e;
10835
10834
  if (!Number.isInteger(t) || t <= 0)
10836
10835
  return [];
10837
- const r = n ? Gt(n) : void 0, s = a ? Gt(a) : void 0, i = [];
10836
+ const r = n ? Ut(n) : void 0, s = a ? Ut(a) : void 0, i = [];
10838
10837
  for (let l = 0; l < XA; l += t) {
10839
10838
  const c = Math.floor(l / or), u = l % or, d = r !== void 0 && l < r || s !== void 0 && l > s || void 0, h = o ? nr(ar({ hour: c, minute: u }), o) : void 0;
10840
10839
  i.push({ hour: c, minute: u, name: h, outOfRange: d });
@@ -10859,7 +10858,7 @@ function QA(e) {
10859
10858
  }
10860
10859
  function eN(e, t, n) {
10861
10860
  const a = e.hour * 60 + e.minute;
10862
- return t && a < Gt(t) ? { hour: t.getHours(), minute: t.getMinutes() } : n && a > Gt(n) ? { hour: n.getHours(), minute: n.getMinutes() } : e;
10861
+ return t && a < Ut(t) ? { hour: t.getHours(), minute: t.getMinutes() } : n && a > Ut(n) ? { hour: n.getHours(), minute: n.getMinutes() } : e;
10863
10862
  }
10864
10863
  function tN(e, t) {
10865
10864
  return e.getHours() === t.hour && e.getMinutes() === t.minute;
@@ -10983,7 +10982,7 @@ export {
10983
10982
  zN as Heading,
10984
10983
  vr as HeadingLevelProvider,
10985
10984
  Qe as Icon,
10986
- kt as IconButton,
10985
+ Ot as IconButton,
10987
10986
  aS as ImageBlock,
10988
10987
  Gy as ImageBlockCaptionPosition,
10989
10988
  oS as InlineList,
@@ -11036,7 +11035,7 @@ export {
11036
11035
  cS as TableRow,
11037
11036
  ve as Text,
11038
11037
  Lp as TextField,
11039
- Bt as ThOrder,
11038
+ Dt as ThOrder,
11040
11039
  on as Thumbnail,
11041
11040
  kN as ThumbnailObjectFit,
11042
11041
  ON as ThumbnailVariant,