@lumx/vue 4.3.2-alpha.44 → 4.3.2-alpha.46

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,20 +1,20 @@
1
- import { ColorVariant as Ca, Theme as _a, AspectRatio as xa, Size as Ea } from "@lumx/core/js/constants";
1
+ import { ColorVariant as Ta, Theme as Ca, AspectRatio as _a, Size as xa } 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 S, isVNode as Z, inject as Ot, computed as $, unref as Tt, provide as Jr, getCurrentScope as wa, onScopeDispose as Ia, watch as V, toValue as Bt, shallowRef as La, getCurrentInstance as Xr, onMounted as Oa, ref as se, useSlots as Rt, Fragment as U, useTemplateRef as Ba, toRefs as Ra, reactive as ja, createTextVNode as ge, onBeforeUnmount as Ma, nextTick as qa, toRef as J } from "vue";
5
- import { getDisabledState as Da } from "@lumx/core/js/utils/disabledState";
6
- import { mdiAlertCircle as Qr } from "@lumx/icons/esm/alert-circle.js";
7
- import { classNames as Q } from "@lumx/core/js/utils";
8
- import { mdiCheck as Fa } from "@lumx/icons/esm/check.js";
9
- import { mdiMinus as za } from "@lumx/icons/esm/minus.js";
10
- import { mdiAlert as Ga } from "@lumx/icons/esm/alert.js";
11
- import { mdiCheckCircle as Ua } from "@lumx/icons/esm/check-circle.js";
12
- import { mdiClose as Ha } from "@lumx/icons/esm/close.js";
13
- import { mdiInformation as Va } from "@lumx/icons/esm/information.js";
4
+ import { createVNode as l, mergeProps as h, defineComponent as v, useAttrs as S, isVNode as ae, inject as It, computed as P, unref as Pt, provide as Yr, getCurrentScope as Ea, onScopeDispose as wa, watch as H, toValue as Lt, shallowRef as Ia, getCurrentInstance as Jr, onMounted as La, ref as ne, useSlots as Ot, Fragment as Ae, useTemplateRef as Oa, toRefs as Ba, reactive as Ra, onBeforeUnmount as ja, nextTick as Ma, toRef as J } from "vue";
5
+ import { getDisabledState as qa } from "@lumx/core/js/utils/disabledState";
6
+ import { mdiAlertCircle as Xr } from "@lumx/icons/esm/alert-circle.js";
7
+ import { classNames as W } from "@lumx/core/js/utils";
8
+ import { mdiCheck as Da } from "@lumx/icons/esm/check.js";
9
+ import { mdiMinus as Fa } from "@lumx/icons/esm/minus.js";
10
+ import { mdiAlert as za } from "@lumx/icons/esm/alert.js";
11
+ import { mdiCheckCircle as Ga } from "@lumx/icons/esm/check-circle.js";
12
+ import { mdiClose as Ua } from "@lumx/icons/esm/close.js";
13
+ import { mdiInformation as Ha } from "@lumx/icons/esm/information.js";
14
14
  import { mdiArrowDown as Wa } from "@lumx/icons/esm/arrow-down.js";
15
- import { mdiArrowUp as Ka } from "@lumx/icons/esm/arrow-up.js";
16
- import { mdiImageBroken as Ya } from "@lumx/icons/esm/image-broken.js";
17
- const Ne = {
15
+ import { mdiArrowUp as Va } from "@lumx/icons/esm/arrow-up.js";
16
+ import { mdiImageBroken as Ka } from "@lumx/icons/esm/image-broken.js";
17
+ const ve = {
18
18
  light: "light",
19
19
  dark: "dark"
20
20
  }, w = {
@@ -24,12 +24,12 @@ const Ne = {
24
24
  m: "m",
25
25
  xl: "xl",
26
26
  xxl: "xxl"
27
- }, Ja = {
27
+ }, Ya = {
28
28
  horizontal: "horizontal"
29
- }, H = {
29
+ }, U = {
30
30
  low: "low",
31
31
  high: "high"
32
- }, Xa = {
32
+ }, Ja = {
33
33
  overline: "overline",
34
34
  caption: "caption",
35
35
  body1: "body1",
@@ -40,16 +40,16 @@ const Ne = {
40
40
  headline: "headline",
41
41
  display1: "display1"
42
42
  }, X = {
43
- ...Xa
44
- }, Zr = {
43
+ ...Ja
44
+ }, Qr = {
45
45
  /** Intrinsic content ratio. */
46
46
  original: "original"
47
- }, D = {
47
+ }, q = {
48
48
  info: "info",
49
49
  success: "success",
50
50
  warning: "warning",
51
51
  error: "error"
52
- }, E = {
52
+ }, _ = {
53
53
  primary: "primary",
54
54
  blue: "blue",
55
55
  dark: "dark",
@@ -58,13 +58,13 @@ const Ne = {
58
58
  red: "red",
59
59
  light: "light"
60
60
  };
61
- var ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
62
- function Pe(e) {
61
+ var be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
62
+ function Se(e) {
63
63
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
64
64
  }
65
- var Ie = { exports: {} };
65
+ var we = { exports: {} };
66
66
  var Wt;
67
- function Qa() {
67
+ function Xa() {
68
68
  return Wt || (Wt = 1, (function(e) {
69
69
  (function() {
70
70
  var t = {}.hasOwnProperty;
@@ -85,8 +85,8 @@ function Qa() {
85
85
  a.push(s.toString());
86
86
  continue;
87
87
  }
88
- for (var u in s)
89
- t.call(s, u) && s[u] && a.push(u);
88
+ for (var c in s)
89
+ t.call(s, c) && s[c] && a.push(c);
90
90
  }
91
91
  }
92
92
  }
@@ -94,30 +94,30 @@ function Qa() {
94
94
  }
95
95
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
96
96
  })();
97
- })(Ie)), Ie.exports;
97
+ })(we)), we.exports;
98
98
  }
99
- var Za = Qa();
100
- const N = /* @__PURE__ */ Pe(Za);
101
- function jt(e, t) {
99
+ var Qa = Xa();
100
+ const N = /* @__PURE__ */ Se(Qa);
101
+ function Bt(e, t) {
102
102
  if (!e) return [void 0, t];
103
103
  const [r, a] = e.split("-");
104
104
  return [r, t || a];
105
105
  }
106
- function en(e, t, r) {
107
- const [a, n = Ca.N] = jt(t, r);
106
+ function Za(e, t, r) {
107
+ const [a, n = Ta.N] = Bt(t, r);
108
108
  return `lumx-color-${e}-${a}-${n}`;
109
109
  }
110
- const tn = (e, t) => en("font", e, t);
111
- function Mt(e) {
110
+ const en = (e, t) => Za("font", e, t);
111
+ function Rt(e) {
112
112
  return `lumx-typography-${e}`;
113
113
  }
114
- function ea(e, t) {
114
+ function Zr(e, t) {
115
115
  const r = [];
116
116
  for (const [a, n] of Object.entries(t))
117
117
  n && r.push(`${e}--${a}`);
118
118
  return r.join(" ");
119
119
  }
120
- function Ae(e, t, r) {
120
+ function ye(e, t, r) {
121
121
  let a, n;
122
122
  return Array.isArray(t) ? n = t : (a = t, n = r), !a && !n ? e : N(
123
123
  // Additional classes
@@ -125,52 +125,52 @@ function Ae(e, t, r) {
125
125
  // Base class
126
126
  e,
127
127
  // Modifier(s)
128
- a ? ea(e, a) : null
128
+ a ? Zr(e, a) : null
129
129
  );
130
130
  }
131
- function Kt(e, t, r, a) {
132
- return Array.isArray(r) ? Ae(`${e}__${t}`, r) : Ae(`${e}__${t}`, r, a);
131
+ function Vt(e, t, r, a) {
132
+ return Array.isArray(r) ? ye(`${e}__${t}`, r) : ye(`${e}__${t}`, r, a);
133
133
  }
134
- function T(e) {
134
+ function $(e) {
135
135
  function t(a, n) {
136
- return Array.isArray(a) ? Ae(e, a) : Ae(e, a, n);
136
+ return Array.isArray(a) ? ye(e, a) : ye(e, a, n);
137
137
  }
138
138
  function r(a, n, s) {
139
- return Array.isArray(n) ? Kt(e, a, n) : Kt(e, a, n, s);
139
+ return Array.isArray(n) ? Vt(e, a, n) : Vt(e, a, n, s);
140
140
  }
141
141
  return {
142
142
  block: t,
143
143
  element: r,
144
- modifier: (a) => ea(e, a)
144
+ modifier: (a) => Zr(e, a)
145
145
  };
146
146
  }
147
- const rn = "Badge", ta = "lumx-badge", {
148
- block: an
149
- } = T(ta), ra = {
150
- color: E.primary
147
+ const tn = "Badge", ea = "lumx-badge", {
148
+ block: rn
149
+ } = $(ea), ta = {
150
+ color: _.primary
151
151
  }, ke = (e) => {
152
152
  const {
153
153
  children: t,
154
154
  className: r,
155
- color: a = ra.color,
155
+ color: a = ta.color,
156
156
  ref: n,
157
157
  ...s
158
158
  } = e;
159
159
  return l("div", h({
160
160
  ref: n
161
161
  }, s, {
162
- className: N(r, an({
162
+ className: N(r, rn({
163
163
  [`color-${a}`]: !!a
164
164
  }))
165
165
  }), [t]);
166
166
  };
167
- ke.displayName = rn;
168
- ke.className = ta;
169
- ke.defaultProps = ra;
167
+ ke.displayName = tn;
168
+ ke.className = ea;
169
+ ke.defaultProps = ta;
170
170
  const A = () => (...e) => e.reduce(
171
171
  (t, r) => (t[r] = { required: !1 }, t),
172
172
  {}
173
- ), ki = /* @__PURE__ */ y((e, {
173
+ ), Si = /* @__PURE__ */ v((e, {
174
174
  slots: t
175
175
  }) => {
176
176
  const r = S();
@@ -183,10 +183,10 @@ const A = () => (...e) => e.reduce(
183
183
  inheritAttrs: !1,
184
184
  // Redefine properties so that they come in as `props` on the `defineComponent` function
185
185
  props: A()("color", "class")
186
- }), nn = "lumx-badge-wrapper", {
187
- block: sn,
188
- element: on
189
- } = T(nn), ln = (e) => {
186
+ }), an = "lumx-badge-wrapper", {
187
+ block: nn,
188
+ element: sn
189
+ } = $(an), on = (e) => {
190
190
  const {
191
191
  badge: t,
192
192
  children: r,
@@ -197,15 +197,15 @@ const A = () => (...e) => e.reduce(
197
197
  return l("div", h({
198
198
  ref: n
199
199
  }, s, {
200
- className: N(a, sn())
200
+ className: N(a, nn())
201
201
  }), [r, t && l("div", {
202
- className: on("badge")
202
+ className: sn("badge")
203
203
  }, [t])]);
204
- }, $i = /* @__PURE__ */ y((e, {
204
+ }, ki = /* @__PURE__ */ v((e, {
205
205
  slots: t
206
206
  }) => {
207
207
  const r = S();
208
- return () => l(ln, h(e, r, {
208
+ return () => l(on, h(e, r, {
209
209
  className: e.class,
210
210
  badge: e.badge || t.badge?.(),
211
211
  children: t.default?.()
@@ -215,40 +215,40 @@ const A = () => (...e) => e.reduce(
215
215
  inheritAttrs: !1,
216
216
  props: A()("badge", "class")
217
217
  });
218
- var Le, Yt;
219
- function aa() {
220
- if (Yt) return Le;
221
- Yt = 1;
218
+ var Ie, Kt;
219
+ function ra() {
220
+ if (Kt) return Ie;
221
+ Kt = 1;
222
222
  var e = Object.prototype;
223
223
  function t(r) {
224
224
  var a = r && r.constructor, n = typeof a == "function" && a.prototype || e;
225
225
  return r === n;
226
226
  }
227
- return Le = t, Le;
227
+ return Ie = t, Ie;
228
228
  }
229
- var Oe, Jt;
230
- function cn() {
231
- if (Jt) return Oe;
232
- Jt = 1;
229
+ var Le, Yt;
230
+ function ln() {
231
+ if (Yt) return Le;
232
+ Yt = 1;
233
233
  function e(t, r) {
234
234
  return function(a) {
235
235
  return t(r(a));
236
236
  };
237
237
  }
238
- return Oe = e, Oe;
238
+ return Le = e, Le;
239
+ }
240
+ var Oe, Jt;
241
+ function cn() {
242
+ if (Jt) return Oe;
243
+ Jt = 1;
244
+ var e = ln(), t = e(Object.keys, Object);
245
+ return Oe = t, Oe;
239
246
  }
240
247
  var Be, Xt;
241
248
  function un() {
242
249
  if (Xt) return Be;
243
250
  Xt = 1;
244
- var e = cn(), t = e(Object.keys, Object);
245
- return Be = t, Be;
246
- }
247
- var Re, Qt;
248
- function dn() {
249
- if (Qt) return Re;
250
- Qt = 1;
251
- var e = aa(), t = un(), r = Object.prototype, a = r.hasOwnProperty;
251
+ var e = ra(), t = cn(), r = Object.prototype, a = r.hasOwnProperty;
252
252
  function n(s) {
253
253
  if (!e(s))
254
254
  return t(s);
@@ -257,113 +257,113 @@ function dn() {
257
257
  a.call(s, i) && i != "constructor" && o.push(i);
258
258
  return o;
259
259
  }
260
- return Re = n, Re;
260
+ return Be = n, Be;
261
+ }
262
+ var Re, Qt;
263
+ function aa() {
264
+ if (Qt) return Re;
265
+ Qt = 1;
266
+ var e = typeof be == "object" && be && be.Object === Object && be;
267
+ return Re = e, Re;
261
268
  }
262
269
  var je, Zt;
263
- function na() {
270
+ function D() {
264
271
  if (Zt) return je;
265
272
  Zt = 1;
266
- var e = typeof ve == "object" && ve && ve.Object === Object && ve;
267
- return je = e, je;
273
+ var e = aa(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
274
+ return je = r, je;
268
275
  }
269
276
  var Me, er;
270
- function F() {
277
+ function na() {
271
278
  if (er) return Me;
272
279
  er = 1;
273
- var e = na(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
274
- return Me = r, Me;
280
+ var e = D(), t = e.Symbol;
281
+ return Me = t, Me;
275
282
  }
276
283
  var qe, tr;
277
- function sa() {
284
+ function dn() {
278
285
  if (tr) return qe;
279
286
  tr = 1;
280
- var e = F(), t = e.Symbol;
281
- return qe = t, qe;
282
- }
283
- var De, rr;
284
- function fn() {
285
- if (rr) return De;
286
- rr = 1;
287
- var e = sa(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, n = e ? e.toStringTag : void 0;
287
+ var e = na(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, n = e ? e.toStringTag : void 0;
288
288
  function s(o) {
289
- var i = r.call(o, n), u = o[n];
289
+ var i = r.call(o, n), c = o[n];
290
290
  try {
291
291
  o[n] = void 0;
292
- var c = !0;
292
+ var u = !0;
293
293
  } catch {
294
294
  }
295
295
  var d = a.call(o);
296
- return c && (i ? o[n] = u : delete o[n]), d;
296
+ return u && (i ? o[n] = c : delete o[n]), d;
297
297
  }
298
- return De = s, De;
298
+ return qe = s, qe;
299
299
  }
300
- var Fe, ar;
301
- function mn() {
302
- if (ar) return Fe;
303
- ar = 1;
300
+ var De, rr;
301
+ function fn() {
302
+ if (rr) return De;
303
+ rr = 1;
304
304
  var e = Object.prototype, t = e.toString;
305
305
  function r(a) {
306
306
  return t.call(a);
307
307
  }
308
- return Fe = r, Fe;
308
+ return De = r, De;
309
309
  }
310
- var ze, nr;
311
- function oe() {
312
- if (nr) return ze;
313
- nr = 1;
314
- var e = sa(), t = fn(), r = mn(), a = "[object Null]", n = "[object Undefined]", s = e ? e.toStringTag : void 0;
310
+ var Fe, ar;
311
+ function se() {
312
+ if (ar) return Fe;
313
+ ar = 1;
314
+ var e = na(), t = dn(), r = fn(), a = "[object Null]", n = "[object Undefined]", s = e ? e.toStringTag : void 0;
315
315
  function o(i) {
316
316
  return i == null ? i === void 0 ? n : a : s && s in Object(i) ? t(i) : r(i);
317
317
  }
318
- return ze = o, ze;
318
+ return Fe = o, Fe;
319
319
  }
320
- var Ge, sr;
321
- function qt() {
322
- if (sr) return Ge;
323
- sr = 1;
320
+ var ze, nr;
321
+ function jt() {
322
+ if (nr) return ze;
323
+ nr = 1;
324
324
  function e(t) {
325
325
  var r = typeof t;
326
326
  return t != null && (r == "object" || r == "function");
327
327
  }
328
- return Ge = e, Ge;
328
+ return ze = e, ze;
329
329
  }
330
- var Ue, or;
331
- function oa() {
332
- if (or) return Ue;
333
- or = 1;
334
- var e = oe(), t = qt(), r = "[object AsyncFunction]", a = "[object Function]", n = "[object GeneratorFunction]", s = "[object Proxy]";
330
+ var Ge, sr;
331
+ function sa() {
332
+ if (sr) return Ge;
333
+ sr = 1;
334
+ var e = se(), t = jt(), r = "[object AsyncFunction]", a = "[object Function]", n = "[object GeneratorFunction]", s = "[object Proxy]";
335
335
  function o(i) {
336
336
  if (!t(i))
337
337
  return !1;
338
- var u = e(i);
339
- return u == a || u == n || u == r || u == s;
338
+ var c = e(i);
339
+ return c == a || c == n || c == r || c == s;
340
340
  }
341
- return Ue = o, Ue;
341
+ return Ge = o, Ge;
342
+ }
343
+ var Ue, or;
344
+ function mn() {
345
+ if (or) return Ue;
346
+ or = 1;
347
+ var e = D(), t = e["__core-js_shared__"];
348
+ return Ue = t, Ue;
342
349
  }
343
350
  var He, ir;
344
351
  function hn() {
345
352
  if (ir) return He;
346
353
  ir = 1;
347
- var e = F(), t = e["__core-js_shared__"];
348
- return He = t, He;
349
- }
350
- var Ve, lr;
351
- function pn() {
352
- if (lr) return Ve;
353
- lr = 1;
354
- var e = hn(), t = (function() {
354
+ var e = mn(), t = (function() {
355
355
  var a = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
356
356
  return a ? "Symbol(src)_1." + a : "";
357
357
  })();
358
358
  function r(a) {
359
359
  return !!t && t in a;
360
360
  }
361
- return Ve = r, Ve;
361
+ return He = r, He;
362
362
  }
363
- var We, cr;
364
- function ia() {
365
- if (cr) return We;
366
- cr = 1;
363
+ var We, lr;
364
+ function oa() {
365
+ if (lr) return We;
366
+ lr = 1;
367
367
  var e = Function.prototype, t = e.toString;
368
368
  function r(a) {
369
369
  if (a != null) {
@@ -380,12 +380,12 @@ function ia() {
380
380
  }
381
381
  return We = r, We;
382
382
  }
383
- var Ke, ur;
384
- function bn() {
385
- if (ur) return Ke;
386
- ur = 1;
387
- var e = oa(), t = pn(), r = qt(), a = ia(), n = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, o = Function.prototype, i = Object.prototype, u = o.toString, c = i.hasOwnProperty, d = RegExp(
388
- "^" + u.call(c).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
383
+ var Ve, cr;
384
+ function pn() {
385
+ if (cr) return Ve;
386
+ cr = 1;
387
+ var e = sa(), t = hn(), r = jt(), a = oa(), n = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, o = Function.prototype, i = Object.prototype, c = o.toString, u = i.hasOwnProperty, d = RegExp(
388
+ "^" + c.call(u).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
389
389
  );
390
390
  function f(m) {
391
391
  if (!r(m) || t(m))
@@ -393,216 +393,216 @@ function bn() {
393
393
  var p = e(m) ? d : s;
394
394
  return p.test(a(m));
395
395
  }
396
- return Ke = f, Ke;
396
+ return Ve = f, Ve;
397
397
  }
398
- var Ye, dr;
399
- function gn() {
400
- if (dr) return Ye;
401
- dr = 1;
398
+ var Ke, ur;
399
+ function bn() {
400
+ if (ur) return Ke;
401
+ ur = 1;
402
402
  function e(t, r) {
403
403
  return t?.[r];
404
404
  }
405
- return Ye = e, Ye;
405
+ return Ke = e, Ke;
406
406
  }
407
- var Je, fr;
408
- function ie() {
409
- if (fr) return Je;
410
- fr = 1;
411
- var e = bn(), t = gn();
407
+ var Ye, dr;
408
+ function oe() {
409
+ if (dr) return Ye;
410
+ dr = 1;
411
+ var e = pn(), t = bn();
412
412
  function r(a, n) {
413
413
  var s = t(a, n);
414
414
  return e(s) ? s : void 0;
415
415
  }
416
+ return Ye = r, Ye;
417
+ }
418
+ var Je, fr;
419
+ function gn() {
420
+ if (fr) return Je;
421
+ fr = 1;
422
+ var e = oe(), t = D(), r = e(t, "DataView");
416
423
  return Je = r, Je;
417
424
  }
418
425
  var Xe, mr;
419
426
  function vn() {
420
427
  if (mr) return Xe;
421
428
  mr = 1;
422
- var e = ie(), t = F(), r = e(t, "DataView");
429
+ var e = oe(), t = D(), r = e(t, "Map");
423
430
  return Xe = r, Xe;
424
431
  }
425
432
  var Qe, hr;
426
433
  function yn() {
427
434
  if (hr) return Qe;
428
435
  hr = 1;
429
- var e = ie(), t = F(), r = e(t, "Map");
436
+ var e = oe(), t = D(), r = e(t, "Promise");
430
437
  return Qe = r, Qe;
431
438
  }
432
439
  var Ze, pr;
433
440
  function Nn() {
434
441
  if (pr) return Ze;
435
442
  pr = 1;
436
- var e = ie(), t = F(), r = e(t, "Promise");
443
+ var e = oe(), t = D(), r = e(t, "Set");
437
444
  return Ze = r, Ze;
438
445
  }
439
446
  var et, br;
440
447
  function An() {
441
448
  if (br) return et;
442
449
  br = 1;
443
- var e = ie(), t = F(), r = e(t, "Set");
450
+ var e = oe(), t = D(), r = e(t, "WeakMap");
444
451
  return et = r, et;
445
452
  }
446
453
  var tt, gr;
447
454
  function Sn() {
448
455
  if (gr) return tt;
449
456
  gr = 1;
450
- var e = ie(), t = F(), r = e(t, "WeakMap");
451
- return tt = r, tt;
452
- }
453
- var rt, vr;
454
- function Pn() {
455
- if (vr) return rt;
456
- vr = 1;
457
- var e = vn(), t = yn(), r = Nn(), a = An(), n = Sn(), s = oe(), o = ia(), i = "[object Map]", u = "[object Object]", c = "[object Promise]", d = "[object Set]", f = "[object WeakMap]", m = "[object DataView]", p = o(e), g = o(t), b = o(r), v = o(a), C = o(n), k = s;
458
- return (e && k(new e(new ArrayBuffer(1))) != m || t && k(new t()) != i || r && k(r.resolve()) != c || a && k(new a()) != d || n && k(new n()) != f) && (k = function(_) {
459
- var O = s(_), L = O == u ? _.constructor : void 0, B = L ? o(L) : "";
460
- if (B)
461
- switch (B) {
457
+ var e = gn(), t = vn(), r = yn(), a = Nn(), n = An(), s = se(), o = oa(), i = "[object Map]", c = "[object Object]", u = "[object Promise]", d = "[object Set]", f = "[object WeakMap]", m = "[object DataView]", p = o(e), g = o(t), b = o(r), y = o(a), C = o(n), T = s;
458
+ return (e && T(new e(new ArrayBuffer(1))) != m || t && T(new t()) != i || r && T(r.resolve()) != u || a && T(new a()) != d || n && T(new n()) != f) && (T = function(E) {
459
+ var L = s(E), B = L == c ? E.constructor : void 0, z = B ? o(B) : "";
460
+ if (z)
461
+ switch (z) {
462
462
  case p:
463
463
  return m;
464
464
  case g:
465
465
  return i;
466
466
  case b:
467
- return c;
468
- case v:
467
+ return u;
468
+ case y:
469
469
  return d;
470
470
  case C:
471
471
  return f;
472
472
  }
473
- return O;
474
- }), rt = k, rt;
473
+ return L;
474
+ }), tt = T, tt;
475
475
  }
476
- var at, yr;
477
- function $e() {
478
- if (yr) return at;
479
- yr = 1;
476
+ var rt, vr;
477
+ function Pe() {
478
+ if (vr) return rt;
479
+ vr = 1;
480
480
  function e(t) {
481
481
  return t != null && typeof t == "object";
482
482
  }
483
- return at = e, at;
483
+ return rt = e, rt;
484
484
  }
485
- var nt, Nr;
485
+ var at, yr;
486
486
  function kn() {
487
- if (Nr) return nt;
488
- Nr = 1;
489
- var e = oe(), t = $e(), r = "[object Arguments]";
487
+ if (yr) return at;
488
+ yr = 1;
489
+ var e = se(), t = Pe(), r = "[object Arguments]";
490
490
  function a(n) {
491
491
  return t(n) && e(n) == r;
492
492
  }
493
- return nt = a, nt;
493
+ return at = a, at;
494
494
  }
495
- var st, Ar;
496
- function $n() {
497
- if (Ar) return st;
498
- Ar = 1;
499
- var e = kn(), t = $e(), r = Object.prototype, a = r.hasOwnProperty, n = r.propertyIsEnumerable, s = e(/* @__PURE__ */ (function() {
495
+ var nt, Nr;
496
+ function Pn() {
497
+ if (Nr) return nt;
498
+ Nr = 1;
499
+ var e = kn(), t = Pe(), r = Object.prototype, a = r.hasOwnProperty, n = r.propertyIsEnumerable, s = e(/* @__PURE__ */ (function() {
500
500
  return arguments;
501
501
  })()) ? e : function(o) {
502
502
  return t(o) && a.call(o, "callee") && !n.call(o, "callee");
503
503
  };
504
- return st = s, st;
504
+ return nt = s, nt;
505
+ }
506
+ var st, Ar;
507
+ function ia() {
508
+ if (Ar) return st;
509
+ Ar = 1;
510
+ var e = Array.isArray;
511
+ return st = e, st;
505
512
  }
506
513
  var ot, Sr;
507
514
  function la() {
508
515
  if (Sr) return ot;
509
516
  Sr = 1;
510
- var e = Array.isArray;
511
- return ot = e, ot;
512
- }
513
- var it, Pr;
514
- function ca() {
515
- if (Pr) return it;
516
- Pr = 1;
517
517
  var e = 9007199254740991;
518
518
  function t(r) {
519
519
  return typeof r == "number" && r > -1 && r % 1 == 0 && r <= e;
520
520
  }
521
- return it = t, it;
521
+ return ot = t, ot;
522
522
  }
523
- var lt, kr;
524
- function Tn() {
525
- if (kr) return lt;
523
+ var it, kr;
524
+ function $n() {
525
+ if (kr) return it;
526
526
  kr = 1;
527
- var e = oa(), t = ca();
527
+ var e = sa(), t = la();
528
528
  function r(a) {
529
529
  return a != null && t(a.length) && !e(a);
530
530
  }
531
- return lt = r, lt;
531
+ return it = r, it;
532
532
  }
533
- var re = { exports: {} }, ct, $r;
534
- function Cn() {
535
- if ($r) return ct;
536
- $r = 1;
533
+ var ee = { exports: {} }, lt, Pr;
534
+ function Tn() {
535
+ if (Pr) return lt;
536
+ Pr = 1;
537
537
  function e() {
538
538
  return !1;
539
539
  }
540
- return ct = e, ct;
540
+ return lt = e, lt;
541
541
  }
542
- re.exports;
543
- var Tr;
542
+ ee.exports;
543
+ var $r;
544
+ function Cn() {
545
+ return $r || ($r = 1, (function(e, t) {
546
+ var r = D(), a = Tn(), n = t && !t.nodeType && t, s = n && !0 && e && !e.nodeType && e, o = s && s.exports === n, i = o ? r.Buffer : void 0, c = i ? i.isBuffer : void 0, u = c || a;
547
+ e.exports = u;
548
+ })(ee, ee.exports)), ee.exports;
549
+ }
550
+ var ct, Tr;
544
551
  function _n() {
545
- return Tr || (Tr = 1, (function(e, t) {
546
- var r = F(), a = Cn(), n = t && !t.nodeType && t, s = n && !0 && e && !e.nodeType && e, o = s && s.exports === n, i = o ? r.Buffer : void 0, u = i ? i.isBuffer : void 0, c = u || a;
547
- e.exports = c;
548
- })(re, re.exports)), re.exports;
552
+ if (Tr) return ct;
553
+ Tr = 1;
554
+ var e = se(), t = la(), r = Pe(), a = "[object Arguments]", n = "[object Array]", s = "[object Boolean]", o = "[object Date]", i = "[object Error]", c = "[object Function]", u = "[object Map]", d = "[object Number]", f = "[object Object]", m = "[object RegExp]", p = "[object Set]", g = "[object String]", b = "[object WeakMap]", y = "[object ArrayBuffer]", C = "[object DataView]", T = "[object Float32Array]", E = "[object Float64Array]", L = "[object Int8Array]", B = "[object Int16Array]", z = "[object Int32Array]", ue = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", de = "[object Uint16Array]", fe = "[object Uint32Array]", k = {};
555
+ k[T] = k[E] = k[L] = k[B] = k[z] = k[ue] = k[Y] = k[de] = k[fe] = !0, k[a] = k[n] = k[y] = k[s] = k[C] = k[o] = k[i] = k[c] = k[u] = k[d] = k[f] = k[m] = k[p] = k[g] = k[b] = !1;
556
+ function me(O) {
557
+ return r(O) && t(O.length) && !!k[e(O)];
558
+ }
559
+ return ct = me, ct;
549
560
  }
550
561
  var ut, Cr;
551
562
  function xn() {
552
563
  if (Cr) return ut;
553
564
  Cr = 1;
554
- var e = oe(), t = ca(), r = $e(), a = "[object Arguments]", n = "[object Array]", s = "[object Boolean]", o = "[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]", k = "[object Float32Array]", _ = "[object Float64Array]", O = "[object Int8Array]", L = "[object Int16Array]", B = "[object Int32Array]", de = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", fe = "[object Uint16Array]", me = "[object Uint32Array]", P = {};
555
- P[k] = P[_] = P[O] = P[L] = P[B] = P[de] = P[Y] = P[fe] = P[me] = !0, P[a] = P[n] = P[v] = P[s] = P[C] = P[o] = P[i] = P[u] = P[c] = P[d] = P[f] = P[m] = P[p] = P[g] = P[b] = !1;
556
- function he(R) {
557
- return r(R) && t(R.length) && !!P[e(R)];
558
- }
559
- return ut = he, ut;
560
- }
561
- var dt, _r;
562
- function En() {
563
- if (_r) return dt;
564
- _r = 1;
565
565
  function e(t) {
566
566
  return function(r) {
567
567
  return t(r);
568
568
  };
569
569
  }
570
- return dt = e, dt;
570
+ return ut = e, ut;
571
571
  }
572
- var ae = { exports: {} };
573
- ae.exports;
574
- var xr;
575
- function wn() {
576
- return xr || (xr = 1, (function(e, t) {
577
- var r = na(), a = t && !t.nodeType && t, n = a && !0 && e && !e.nodeType && e, s = n && n.exports === a, o = s && r.process, i = (function() {
572
+ var te = { exports: {} };
573
+ te.exports;
574
+ var _r;
575
+ function En() {
576
+ return _r || (_r = 1, (function(e, t) {
577
+ var r = aa(), a = t && !t.nodeType && t, n = a && !0 && e && !e.nodeType && e, s = n && n.exports === a, o = s && r.process, i = (function() {
578
578
  try {
579
- var u = n && n.require && n.require("util").types;
580
- return u || o && o.binding && o.binding("util");
579
+ var c = n && n.require && n.require("util").types;
580
+ return c || o && o.binding && o.binding("util");
581
581
  } catch {
582
582
  }
583
583
  })();
584
584
  e.exports = i;
585
- })(ae, ae.exports)), ae.exports;
585
+ })(te, te.exports)), te.exports;
586
+ }
587
+ var dt, xr;
588
+ function wn() {
589
+ if (xr) return dt;
590
+ xr = 1;
591
+ var e = _n(), t = xn(), r = En(), a = r && r.isTypedArray, n = a ? t(a) : e;
592
+ return dt = n, dt;
586
593
  }
587
594
  var ft, Er;
588
595
  function In() {
589
596
  if (Er) return ft;
590
597
  Er = 1;
591
- var e = xn(), t = En(), r = wn(), a = r && r.isTypedArray, n = a ? t(a) : e;
592
- return ft = n, ft;
593
- }
594
- var mt, wr;
595
- function Ln() {
596
- if (wr) return mt;
597
- wr = 1;
598
- var e = dn(), t = Pn(), r = $n(), a = la(), n = Tn(), s = _n(), o = aa(), i = In(), u = "[object Map]", c = "[object Set]", d = Object.prototype, f = d.hasOwnProperty;
598
+ var e = un(), t = Sn(), r = Pn(), a = ia(), n = $n(), s = Cn(), o = ra(), i = wn(), c = "[object Map]", u = "[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" || s(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 == c || g == u)
606
606
  return !p.size;
607
607
  if (o(p))
608
608
  return !e(p).length;
@@ -611,14 +611,14 @@ function Ln() {
611
611
  return !1;
612
612
  return !0;
613
613
  }
614
- return mt = m, mt;
614
+ return ft = m, ft;
615
615
  }
616
- var On = Ln();
617
- const Ir = /* @__PURE__ */ Pe(On);
618
- function Bn(e) {
619
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Z(e);
616
+ var Ln = In();
617
+ const wr = /* @__PURE__ */ Se(Ln);
618
+ function On(e) {
619
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
620
620
  }
621
- const ua = (e) => {
621
+ const Mt = (e) => {
622
622
  const {
623
623
  children: t,
624
624
  handleClick: r,
@@ -627,39 +627,39 @@ const ua = (e) => {
627
627
  isDisabled: s = n,
628
628
  "aria-disabled": o,
629
629
  as: i,
630
- ...u
631
- } = e, c = s || o === "true" || o === !0, d = i;
630
+ ...c
631
+ } = e, u = s || o === "true" || o === !0, d = i;
632
632
  let f;
633
633
  return d === "button" ? f = {
634
- type: u.type || "button",
634
+ type: c.type || "button",
635
635
  disabled: s
636
636
  } : f = {
637
- tabIndex: s ? "-1" : u.tabIndex
637
+ tabIndex: s ? "-1" : c.tabIndex
638
638
  }, l(d, h({
639
- "aria-disabled": c || void 0
640
- }, u, f, {
639
+ "aria-disabled": u || void 0
640
+ }, c, f, {
641
641
  onKeyPress: a,
642
642
  onClick: (m) => {
643
- if (c) {
643
+ if (u) {
644
644
  m.stopPropagation(), m.preventDefault();
645
645
  return;
646
646
  }
647
647
  r?.(m);
648
648
  }
649
- }), Bn(t) ? t : {
649
+ }), On(t) ? t : {
650
650
  default: () => [t]
651
651
  });
652
- }, Rn = "ButtonRoot", jn = "lumx-button-wrapper", {
653
- block: Mn
654
- } = T(jn), qn = "lumx-button", {
655
- block: Dn
656
- } = T(qn), Fn = (e) => {
652
+ }, Bn = "ButtonRoot", Rn = "lumx-button-wrapper", {
653
+ block: jn
654
+ } = $(Rn), Mn = "lumx-button", {
655
+ block: qn
656
+ } = $(Mn), Dn = (e) => {
657
657
  const {
658
658
  color: t,
659
659
  emphasis: r,
660
660
  variant: a,
661
661
  fullWidth: n
662
- } = e, s = r === H.low && (t === E.light ? E.dark : E.light), o = Mn({
662
+ } = e, s = r === U.low && (t === _.light ? _.dark : _.light), o = jn({
663
663
  [`color-${s}`]: !!s,
664
664
  [`variant-${a}`]: !!a,
665
665
  "is-full-width": n
@@ -669,8 +669,8 @@ const ua = (e) => {
669
669
  };
670
670
  return l("div", {
671
671
  className: o
672
- }, [le(i)]);
673
- }, le = (e) => {
672
+ }, [ie(i)]);
673
+ }, ie = (e) => {
674
674
  const {
675
675
  "aria-label": t,
676
676
  "aria-disabled": r,
@@ -679,68 +679,68 @@ const ua = (e) => {
679
679
  color: s,
680
680
  emphasis: o,
681
681
  hasBackground: i,
682
- isSelected: u,
683
- isActive: c,
682
+ isSelected: c,
683
+ isActive: u,
684
684
  isFocused: d,
685
685
  isHovered: f,
686
686
  linkAs: m,
687
687
  size: p,
688
- theme: g = Ne.light,
688
+ theme: g = ve.light,
689
689
  variant: b,
690
- fullWidth: v,
690
+ fullWidth: y,
691
691
  ref: C,
692
- ...k
693
- } = e, _ = s || o !== H.high && g === Ne.dark && E.light || o === H.high && E.primary || E.dark;
692
+ ...T
693
+ } = e, E = s || o !== U.high && g === ve.dark && _.light || o === U.high && _.primary || _.dark;
694
694
  if (i)
695
- return Fn({
695
+ return Dn({
696
696
  ...e,
697
697
  ref: C,
698
698
  variant: b,
699
- color: _
699
+ color: E
700
700
  });
701
- const O = N(n, Dn({
702
- [`color-${_}`]: !!_,
701
+ const L = N(n, qn({
702
+ [`color-${E}`]: !!E,
703
703
  [`emphasis-${o}`]: !!o,
704
- "is-selected": u,
704
+ "is-selected": c,
705
705
  "is-disabled": !!(e.isDisabled || e["aria-disabled"]),
706
- "is-active": c,
706
+ "is-active": u,
707
707
  "is-focused": d,
708
708
  "is-hovered": f,
709
709
  [`size-${p}`]: !!p,
710
- [`theme-${g}`]: !!(o === H.high && g),
710
+ [`theme-${g}`]: !!(o === U.high && g),
711
711
  [`variant-${b}`]: !!b,
712
- "is-full-width": v
712
+ "is-full-width": y
713
713
  }));
714
- return ua({
715
- as: m || (k.href ? "a" : "button"),
716
- ...k,
714
+ return Mt({
715
+ as: m || (T.href ? "a" : "button"),
716
+ ...T,
717
717
  "aria-disabled": r,
718
718
  "aria-label": t,
719
719
  ref: C,
720
- className: O,
720
+ className: L,
721
721
  children: a
722
722
  });
723
723
  };
724
- le.displayName = Rn;
725
- le.defaultProps = {};
726
- const zn = "Button", da = "lumx-button", {
727
- modifier: Gn
728
- } = T(da), Ct = {
729
- emphasis: H.high,
724
+ ie.displayName = Bn;
725
+ ie.defaultProps = {};
726
+ const Fn = "Button", ca = "lumx-button", {
727
+ modifier: zn
728
+ } = $(ca), $t = {
729
+ emphasis: U.high,
730
730
  size: w.m
731
- }, Te = (e) => {
731
+ }, $e = (e) => {
732
732
  const {
733
733
  className: t,
734
- emphasis: r = Ct.emphasis,
734
+ emphasis: r = $t.emphasis,
735
735
  leftIcon: a,
736
736
  rightIcon: n,
737
- size: s = Ct.size,
737
+ size: s = $t.size,
738
738
  ...o
739
- } = e, i = N(t, Gn({
739
+ } = e, i = N(t, zn({
740
740
  "has-left-icon": !!a,
741
741
  "has-right-icon": !!n
742
742
  }));
743
- return le({
743
+ return ie({
744
744
  emphasis: r,
745
745
  size: s,
746
746
  ...o,
@@ -748,41 +748,41 @@ const zn = "Button", da = "lumx-button", {
748
748
  variant: "button"
749
749
  });
750
750
  };
751
- Te.displayName = zn;
752
- Te.className = da;
753
- Te.defaultProps = Ct;
754
- function x(e = { defaultTheme: _a.light }) {
755
- const { defaultTheme: t } = e, r = Ot("theme", void 0);
756
- return $(() => Tt(r) || t);
757
- }
758
- const Un = /* @__PURE__ */ Symbol("DISABLED_STATE_KEY");
759
- function Hn() {
760
- return Ot(Un, { state: null });
761
- }
762
- function z(e) {
763
- const t = Hn(), r = $(() => {
764
- const s = typeof e == "function" ? e() : Tt(e);
765
- return Da(t, {
751
+ $e.displayName = Fn;
752
+ $e.className = ca;
753
+ $e.defaultProps = $t;
754
+ function x(e = { defaultTheme: Ca.light }) {
755
+ const { defaultTheme: t } = e, r = It("theme", void 0);
756
+ return P(() => Pt(r) || t);
757
+ }
758
+ const Gn = /* @__PURE__ */ Symbol("DISABLED_STATE_KEY");
759
+ function Un() {
760
+ return It(Gn, { state: null });
761
+ }
762
+ function F(e) {
763
+ const t = Un(), r = P(() => {
764
+ const s = typeof e == "function" ? e() : Pt(e);
765
+ return qa(t, {
766
766
  disabled: s.disabled,
767
767
  isDisabled: s.isDisabled,
768
768
  "aria-disabled": s["aria-disabled"] ?? s.ariaDisabled
769
769
  });
770
- }), a = $(
770
+ }), a = P(
771
771
  () => r.value["aria-disabled"] || r.value.disabled || void 0
772
- ), n = $(() => {
773
- const s = typeof e == "function" ? e() : Tt(e), { disabled: o, isDisabled: i, "aria-disabled": u, ariaDisabled: c, onClick: d, onChange: f, ...m } = s;
772
+ ), n = P(() => {
773
+ const s = typeof e == "function" ? e() : Pt(e), { disabled: o, isDisabled: i, "aria-disabled": c, ariaDisabled: u, onClick: d, onChange: f, ...m } = s;
774
774
  return a.value || (d && (m.onClick = d), f && (m.onChange = f)), m;
775
775
  });
776
776
  return { disabledStateProps: r, isAnyDisabled: a, otherProps: n };
777
777
  }
778
- const Lr = y({
778
+ const Ir = v({
779
779
  name: "ResetTheme",
780
780
  setup(e, { slots: t }) {
781
- return Jr("theme", void 0), () => t.default?.();
781
+ return Yr("theme", void 0), () => t.default?.();
782
782
  }
783
- }), Vn = "Icon", Wn = "lumx-icon", fa = Wn, {
784
- block: Kn
785
- } = T(fa), Yn = {}, I = (e) => {
783
+ }), Hn = "Icon", Wn = "lumx-icon", ua = Wn, {
784
+ block: Vn
785
+ } = $(ua), Kn = {}, I = (e) => {
786
786
  const {
787
787
  className: t,
788
788
  color: r,
@@ -791,34 +791,34 @@ const Lr = y({
791
791
  icon: s,
792
792
  size: o,
793
793
  ref: i,
794
- theme: u,
795
- alt: c,
794
+ theme: c,
795
+ alt: u,
796
796
  verticalAlign: d,
797
797
  ...f
798
- } = e, [m, p] = jt(r, a);
798
+ } = e, [m, p] = Bt(r, a);
799
799
  let g = m;
800
- !g && (n || u) && (g = u === Ne.dark ? E.light : E.dark);
800
+ !g && (n || c) && (g = c === ve.dark ? _.light : _.dark);
801
801
  let b = p;
802
- !b && n && g === E.dark && (b = "L2");
803
- let v = o;
804
- return o && n ? o === w.xxs || o === w.xs ? v = w.s : o === w.xxl && (v = w.xl) : n && (v = w.m), l("i", h({
802
+ !b && n && g === _.dark && (b = "L2");
803
+ let y = o;
804
+ return o && n ? o === w.xxs || o === w.xs ? y = w.s : o === w.xxl && (y = w.xl) : n && (y = w.m), l("i", h({
805
805
  ref: i
806
806
  }, f, {
807
- className: N(t, Kn({
807
+ className: N(t, Vn({
808
808
  [`color-${g}`]: !!g,
809
809
  [`color-variant-${b}`]: !!b,
810
810
  "has-shape": n,
811
- [`theme-${u}`]: !!u,
812
- [`size-${v}`]: !!v,
811
+ [`theme-${c}`]: !!c,
812
+ [`size-${y}`]: !!y,
813
813
  "no-shape": !n,
814
- "has-dark-layer": !n && g === E.yellow && s === Qr,
814
+ "has-dark-layer": !n && g === _.yellow && s === Xr,
815
815
  path: !0,
816
816
  "vertical-align-middle": d === "middle"
817
817
  }))
818
818
  }), [l("svg", {
819
- "aria-hidden": c ? void 0 : "true",
820
- role: c ? "img" : void 0,
821
- "aria-label": c,
819
+ "aria-hidden": u ? void 0 : "true",
820
+ role: u ? "img" : void 0,
821
+ "aria-label": u,
822
822
  height: "1em",
823
823
  preserveAspectRatio: "xMidYMid meet",
824
824
  style: {
@@ -831,10 +831,10 @@ const Lr = y({
831
831
  fill: "currentColor"
832
832
  }, null)])]);
833
833
  };
834
- I.displayName = Vn;
835
- I.className = fa;
836
- I.defaultProps = Yn;
837
- const _t = /* @__PURE__ */ y((e) => {
834
+ I.displayName = Hn;
835
+ I.className = ua;
836
+ I.defaultProps = Kn;
837
+ const Tt = /* @__PURE__ */ v((e) => {
838
838
  const t = S(), r = x({
839
839
  defaultTheme: void 0
840
840
  });
@@ -847,9 +847,9 @@ const _t = /* @__PURE__ */ y((e) => {
847
847
  inheritAttrs: !1,
848
848
  // Redefine properties so that they come in as `props` on the `defineComponent` function
849
849
  props: A()("icon", "color", "colorVariant", "hasShape", "size", "alt", "verticalAlign", "theme", "class")
850
- }), Jn = "lumx-text", {
851
- block: Xn
852
- } = T(Jn), Qn = (e) => {
850
+ }), Yn = "lumx-text", {
851
+ block: Jn
852
+ } = $(Yn), Xn = (e) => {
853
853
  const {
854
854
  className: t,
855
855
  color: r,
@@ -858,82 +858,82 @@ const _t = /* @__PURE__ */ y((e) => {
858
858
  typography: s,
859
859
  truncate: o,
860
860
  whiteSpace: i,
861
- style: u
862
- } = e, c = typeof o == "object" && o.lines > 1 && {
861
+ style: c
862
+ } = e, u = typeof o == "object" && o.lines > 1 && {
863
863
  "--lumx-text-truncate-lines": o.lines
864
- }, d = !!c, f = !!o, m = !n && !(f && !d) && i && {
864
+ }, d = !!u, f = !!o, m = !n && !(f && !d) && i && {
865
865
  "--lumx-text-white-space": i
866
866
  };
867
867
  return {
868
- className: N(t, Xn({
868
+ className: N(t, Jn({
869
869
  "is-truncated": f && !d,
870
870
  "is-truncated-multiline": d,
871
871
  "no-wrap": n
872
- }), s && Mt(s), r && tn(r, a)),
872
+ }), s && Rt(s), r && en(r, a)),
873
873
  style: {
874
- ...c,
874
+ ...u,
875
875
  ...m,
876
- ...u
876
+ ...c
877
877
  }
878
878
  };
879
879
  };
880
- function ma(e, t) {
881
- return wa() ? (Ia(e, t), !0) : !1;
880
+ function da(e, t) {
881
+ return Ea() ? (wa(e, t), !0) : !1;
882
882
  }
883
- const Zn = typeof window < "u" && typeof document < "u";
883
+ const Qn = typeof window < "u" && typeof document < "u";
884
884
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
885
- const es = (e) => e != null;
886
- function ts(e) {
885
+ const Zn = (e) => e != null;
886
+ function es(e) {
887
887
  return Array.isArray(e) ? e : [e];
888
888
  }
889
- const ha = Zn ? window : void 0;
890
- function xt(e) {
889
+ const fa = Qn ? window : void 0;
890
+ function Ct(e) {
891
891
  var t;
892
- const r = Bt(e);
892
+ const r = Lt(e);
893
893
  return (t = r?.$el) !== null && t !== void 0 ? t : r;
894
894
  }
895
895
  // @__NO_SIDE_EFFECTS__
896
- function rs() {
897
- const e = La(!1), t = Xr();
898
- return t && Oa(() => {
896
+ function ts() {
897
+ const e = Ia(!1), t = Jr();
898
+ return t && La(() => {
899
899
  e.value = !0;
900
900
  }, t), e;
901
901
  }
902
902
  // @__NO_SIDE_EFFECTS__
903
- function pa(e) {
904
- const t = /* @__PURE__ */ rs();
905
- return $(() => (t.value, !!e()));
903
+ function ma(e) {
904
+ const t = /* @__PURE__ */ ts();
905
+ return P(() => (t.value, !!e()));
906
906
  }
907
- function as(e, t, r = {}) {
908
- const { window: a = ha, ...n } = r;
907
+ function rs(e, t, r = {}) {
908
+ const { window: a = fa, ...n } = r;
909
909
  let s;
910
- const o = /* @__PURE__ */ pa(() => a && "MutationObserver" in a), i = () => {
910
+ const o = /* @__PURE__ */ ma(() => a && "MutationObserver" in a), i = () => {
911
911
  s && (s.disconnect(), s = void 0);
912
- }, u = V($(() => {
913
- const f = ts(Bt(e)).map(xt).filter(es);
912
+ }, c = H(P(() => {
913
+ const f = es(Lt(e)).map(Ct).filter(Zn);
914
914
  return new Set(f);
915
915
  }), (f) => {
916
916
  i(), o.value && f.size && (s = new MutationObserver(t), f.forEach((m) => s.observe(m, n)));
917
917
  }, {
918
918
  immediate: !0,
919
919
  flush: "post"
920
- }), c = () => s?.takeRecords(), d = () => {
921
- u(), i();
920
+ }), u = () => s?.takeRecords(), d = () => {
921
+ c(), i();
922
922
  };
923
- return ma(d), {
923
+ return da(d), {
924
924
  isSupported: o,
925
925
  stop: d,
926
- takeRecords: c
926
+ takeRecords: u
927
927
  };
928
928
  }
929
- function ns(e, t, r = {}) {
930
- const { window: a = ha, ...n } = r;
929
+ function as(e, t, r = {}) {
930
+ const { window: a = fa, ...n } = r;
931
931
  let s;
932
- const o = /* @__PURE__ */ pa(() => a && "ResizeObserver" in a), i = () => {
932
+ const o = /* @__PURE__ */ ma(() => a && "ResizeObserver" in a), i = () => {
933
933
  s && (s.disconnect(), s = void 0);
934
- }, u = V($(() => {
935
- const d = Bt(e);
936
- return Array.isArray(d) ? d.map((f) => xt(f)) : [xt(d)];
934
+ }, c = H(P(() => {
935
+ const d = Lt(e);
936
+ return Array.isArray(d) ? d.map((f) => Ct(f)) : [Ct(d)];
937
937
  }), (d) => {
938
938
  if (i(), o.value && a) {
939
939
  s = new ResizeObserver(t);
@@ -942,52 +942,52 @@ function ns(e, t, r = {}) {
942
942
  }, {
943
943
  immediate: !0,
944
944
  flush: "post"
945
- }), c = () => {
946
- i(), u();
945
+ }), u = () => {
946
+ i(), c();
947
947
  };
948
- return ma(c), {
948
+ return da(u), {
949
949
  isSupported: o,
950
- stop: c
950
+ stop: u
951
951
  };
952
952
  }
953
- function ss(e) {
954
- const t = se(void 0), r = () => {
953
+ function ns(e) {
954
+ const t = ne(void 0), r = () => {
955
955
  const a = e.value;
956
- a && !a.closest(`.${Q.visuallyHidden()}`) && a.offsetWidth < a.scrollWidth ? t.value = a.innerText : t.value = void 0;
956
+ a && !a.closest(`.${W.visuallyHidden()}`) && a.offsetWidth < a.scrollWidth ? t.value = a.innerText : t.value = void 0;
957
957
  };
958
- return as(e, r, {
958
+ return rs(e, r, {
959
959
  childList: !0,
960
960
  attributes: !0,
961
961
  characterData: !0,
962
962
  subtree: !0
963
- }), ns(e, r), V(e, r, { immediate: !0 }), { tooltipLabel: t };
963
+ }), as(e, r), H(e, r, { immediate: !0 }), { tooltipLabel: t };
964
964
  }
965
- const os = (e = "default") => {
966
- const t = Rt();
965
+ const ss = (e = "default") => {
966
+ const t = Ot();
967
967
  return () => {
968
968
  const r = t?.[e];
969
969
  return r ? r() : null;
970
970
  };
971
971
  };
972
- function Et(e) {
972
+ function _t(e) {
973
973
  if (!e) return;
974
974
  const t = [];
975
975
  for (const r of e) {
976
- if (!Z(r)) {
976
+ if (!ae(r)) {
977
977
  t.push(r);
978
978
  continue;
979
979
  }
980
- if (r.type === _t) {
980
+ if (r.type === Tt) {
981
981
  t.push(" "), t.push(r), t.push(" ");
982
982
  continue;
983
983
  }
984
- if (r.type === U && Array.isArray(r.children)) {
985
- const a = Et(r.children);
984
+ if (r.type === Ae && Array.isArray(r.children)) {
985
+ const a = _t(r.children);
986
986
  a && t.push(...a);
987
987
  continue;
988
988
  }
989
989
  if (typeof r.type == "string" && Array.isArray(r.children)) {
990
- const a = Et(r.children), n = { ...r.props || {} };
990
+ const a = _t(r.children), n = { ...r.props || {} };
991
991
  r.key != null && (n.key = r.key), r.ref != null && (n.ref = r.ref), t.push(l(r.type, n, a));
992
992
  continue;
993
993
  }
@@ -995,36 +995,36 @@ function Et(e) {
995
995
  }
996
996
  return t;
997
997
  }
998
- function is(e) {
999
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Z(e);
998
+ function os(e) {
999
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
1000
1000
  }
1001
- const Dt = /* @__PURE__ */ y((e, {
1001
+ const qt = /* @__PURE__ */ v((e, {
1002
1002
  slots: t
1003
1003
  }) => {
1004
- const r = S(), a = os(), n = Ba("tooltip-label"), {
1004
+ const r = S(), a = ss(), n = Oa("tooltip-label"), {
1005
1005
  tooltipLabel: s
1006
- } = ss(n), o = $(() => Qn({
1006
+ } = ns(n), o = P(() => Xn({
1007
1007
  ...e,
1008
1008
  className: e.class || r.class || r.className
1009
- })), i = $(() => {
1009
+ })), i = P(() => {
1010
1010
  const {
1011
- children: u,
1012
- ...c
1011
+ children: c,
1012
+ ...u
1013
1013
  } = r;
1014
1014
  return {
1015
- ...c,
1015
+ ...u,
1016
1016
  ...o.value
1017
1017
  };
1018
1018
  });
1019
1019
  return () => {
1020
- const u = e.as || "div", c = a() || t.default?.(), d = c ? Et(c) : null;
1021
- return l(u, h({
1020
+ const c = e.as || "div", u = a() || t.default?.(), d = u ? _t(u) : null;
1021
+ return l(c, h({
1022
1022
  ref: "tooltip-label"
1023
1023
  }, i.value, {
1024
1024
  class: i.value.className,
1025
1025
  style: i.value.style,
1026
1026
  title: s.value
1027
- }), is(d) ? d : {
1027
+ }), os(d) ? d : {
1028
1028
  default: () => [d]
1029
1029
  });
1030
1030
  };
@@ -1033,38 +1033,38 @@ const Dt = /* @__PURE__ */ y((e, {
1033
1033
  inheritAttrs: !1,
1034
1034
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1035
1035
  props: A()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1036
- }), ls = {
1036
+ }), is = {
1037
1037
  click: (e) => e instanceof MouseEvent
1038
- }, Ti = /* @__PURE__ */ y((e, {
1038
+ }, Pi = /* @__PURE__ */ v((e, {
1039
1039
  emit: t
1040
1040
  }) => {
1041
- const r = Rt(), a = S(), n = x(), {
1041
+ const r = Ot(), a = S(), n = x(), {
1042
1042
  isAnyDisabled: s,
1043
1043
  disabledStateProps: o,
1044
1044
  otherProps: i
1045
- } = z($(() => ({
1045
+ } = F(P(() => ({
1046
1046
  ...e,
1047
1047
  ...a
1048
- }))), u = (d) => {
1048
+ }))), c = (d) => {
1049
1049
  s.value || (d.stopImmediatePropagation(), t("click", d));
1050
- }, c = () => {
1050
+ }, u = () => {
1051
1051
  const d = r.default?.();
1052
- return !d || d.length === 0 ? null : d.length === 1 && d[0].type === Dt ? d[0] : l("span", null, [d]);
1052
+ return !d || d.length === 0 ? null : d.length === 1 && d[0].type === qt ? d[0] : l("span", null, [d]);
1053
1053
  };
1054
1054
  return () => {
1055
- const d = l(U, null, [e.leftIcon && !Ir(e.leftIcon) && l(Lr, null, {
1056
- default: () => [l(_t, {
1055
+ const d = l(Ae, null, [e.leftIcon && !wr(e.leftIcon) && l(Ir, null, {
1056
+ default: () => [l(Tt, {
1057
1057
  icon: e.leftIcon
1058
1058
  }, null)]
1059
- }), c(), e.rightIcon && !Ir(e.rightIcon) && l(Lr, null, {
1060
- default: () => [l(_t, {
1059
+ }), u(), e.rightIcon && !wr(e.rightIcon) && l(Ir, null, {
1060
+ default: () => [l(Tt, {
1061
1061
  icon: e.rightIcon
1062
1062
  }, null)]
1063
1063
  })]);
1064
- return l(Te, h(i.value, o.value, {
1064
+ return l($e, h(i.value, o.value, {
1065
1065
  className: e.class,
1066
1066
  theme: e.theme || n.value,
1067
- handleClick: u,
1067
+ handleClick: c,
1068
1068
  children: d
1069
1069
  }), null);
1070
1070
  };
@@ -1073,17 +1073,17 @@ const Dt = /* @__PURE__ */ y((e, {
1073
1073
  inheritAttrs: !1,
1074
1074
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1075
1075
  props: A()("leftIcon", "rightIcon", "color", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "name", "size", "theme", "class", "aria-expanded", "aria-disabled", "aria-haspopup", "aria-label", "aria-pressed", "disabled", "fullWidth", "isActive", "isFocused", "isHovered", "linkAs", "target", "type"),
1076
- emits: ls
1077
- }), cs = "IconButton", us = "lumx-icon-button", wt = {
1078
- emphasis: H.high,
1076
+ emits: is
1077
+ }), ls = "IconButton", cs = "lumx-icon-button", xt = {
1078
+ emphasis: U.high,
1079
1079
  size: w.m
1080
- }, ce = (e) => {
1080
+ }, le = (e) => {
1081
1081
  const {
1082
- emphasis: t = wt.emphasis,
1082
+ emphasis: t = xt.emphasis,
1083
1083
  image: r,
1084
1084
  icon: a,
1085
1085
  label: n,
1086
- size: s = wt.size,
1086
+ size: s = xt.size,
1087
1087
  ...o
1088
1088
  } = e, i = r ? l("img", {
1089
1089
  alt: "",
@@ -1091,7 +1091,7 @@ const Dt = /* @__PURE__ */ y((e, {
1091
1091
  }, null) : I({
1092
1092
  icon: a
1093
1093
  });
1094
- return le({
1094
+ return ie({
1095
1095
  emphasis: t,
1096
1096
  size: s,
1097
1097
  ...o,
@@ -1100,25 +1100,25 @@ const Dt = /* @__PURE__ */ y((e, {
1100
1100
  children: i
1101
1101
  });
1102
1102
  };
1103
- ce.displayName = cs;
1104
- ce.className = us;
1105
- ce.defaultProps = wt;
1106
- const ds = {
1103
+ le.displayName = ls;
1104
+ le.className = cs;
1105
+ le.defaultProps = xt;
1106
+ const us = {
1107
1107
  click: (e) => e instanceof MouseEvent
1108
- }, Ci = /* @__PURE__ */ y((e, {
1108
+ }, $i = /* @__PURE__ */ v((e, {
1109
1109
  emit: t
1110
1110
  }) => {
1111
1111
  const r = S(), a = x(), {
1112
1112
  isAnyDisabled: n,
1113
1113
  disabledStateProps: s,
1114
1114
  otherProps: o
1115
- } = z($(() => ({
1115
+ } = F(P(() => ({
1116
1116
  ...e,
1117
1117
  ...r
1118
- }))), i = (u) => {
1119
- n.value || (u.stopImmediatePropagation(), t("click", u));
1118
+ }))), i = (c) => {
1119
+ n.value || (c.stopImmediatePropagation(), t("click", c));
1120
1120
  };
1121
- return () => l(ce, h(o.value, s.value, {
1121
+ return () => l(le, h(o.value, s.value, {
1122
1122
  className: e.class,
1123
1123
  theme: e.theme || a.value,
1124
1124
  title: e.label,
@@ -1130,25 +1130,25 @@ const ds = {
1130
1130
  inheritAttrs: !1,
1131
1131
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1132
1132
  props: A()("icon", "image", "color", "label", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "name", "size", "theme", "class", "aria-expanded", "aria-disabled", "aria-haspopup", "aria-label", "aria-pressed", "disabled", "fullWidth", "isActive", "isFocused", "isHovered", "isDisabled", "linkAs", "target", "type", "title"),
1133
- emits: ds
1134
- }), fs = "ButtonGroup", ba = "lumx-button-group", ms = {}, Ce = (e) => {
1133
+ emits: us
1134
+ }), ds = "ButtonGroup", ha = "lumx-button-group", fs = {}, Te = (e) => {
1135
1135
  const {
1136
1136
  children: t,
1137
1137
  className: r,
1138
1138
  ...a
1139
1139
  } = e;
1140
1140
  return l("div", h(a, {
1141
- className: N(r, ba)
1141
+ className: N(r, ha)
1142
1142
  }), [t]);
1143
1143
  };
1144
- Ce.displayName = fs;
1145
- Ce.className = ba;
1146
- Ce.defaultProps = ms;
1147
- const _i = /* @__PURE__ */ y((e, {
1144
+ Te.displayName = ds;
1145
+ Te.className = ha;
1146
+ Te.defaultProps = fs;
1147
+ const Ti = /* @__PURE__ */ v((e, {
1148
1148
  slots: t
1149
1149
  }) => {
1150
1150
  const r = S();
1151
- return () => l(Ce, h(e, r, {
1151
+ return () => l(Te, h(e, r, {
1152
1152
  className: e.class,
1153
1153
  children: t.default?.()
1154
1154
  }), null);
@@ -1157,10 +1157,10 @@ const _i = /* @__PURE__ */ y((e, {
1157
1157
  inheritAttrs: !1,
1158
1158
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1159
1159
  props: A()("class")
1160
- }), hs = "InputLabel", ps = "lumx-input-label", ga = ps, {
1161
- block: bs
1162
- } = T(ga), gs = {};
1163
- function W(e) {
1160
+ }), ms = "InputLabel", hs = "lumx-input-label", pa = hs, {
1161
+ block: ps
1162
+ } = $(pa), bs = {};
1163
+ function V(e) {
1164
1164
  const {
1165
1165
  children: t,
1166
1166
  className: r,
@@ -1169,58 +1169,58 @@ function W(e) {
1169
1169
  theme: s,
1170
1170
  typography: o,
1171
1171
  ref: i,
1172
- ...u
1172
+ ...c
1173
1173
  } = e;
1174
1174
  return l("label", h({
1175
1175
  ref: i
1176
- }, u, {
1176
+ }, c, {
1177
1177
  htmlFor: a,
1178
- className: N(r, bs({
1178
+ className: N(r, ps({
1179
1179
  "is-required": n,
1180
1180
  [`theme-${s}`]: !!s,
1181
1181
  "has-custom-typography": !!o
1182
- }), o && Mt(o))
1182
+ }), o && Rt(o))
1183
1183
  }), [t]);
1184
1184
  }
1185
- W.displayName = hs;
1186
- W.className = ga;
1187
- W.defaultProps = gs;
1188
- const vs = {
1189
- [D.error]: { color: "red" },
1190
- [D.success]: { color: "green" },
1191
- [D.warning]: { color: "yellow" }
1192
- }, ys = "InputHelper", Ns = "lumx-input-helper", va = Ns, {
1193
- block: As
1194
- } = T(va), ya = {
1195
- kind: D.info
1185
+ V.displayName = ms;
1186
+ V.className = pa;
1187
+ V.defaultProps = bs;
1188
+ const gs = {
1189
+ [q.error]: { color: "red" },
1190
+ [q.success]: { color: "green" },
1191
+ [q.warning]: { color: "yellow" }
1192
+ }, vs = "InputHelper", ys = "lumx-input-helper", ba = ys, {
1193
+ block: Ns
1194
+ } = $(ba), ga = {
1195
+ kind: q.info
1196
1196
  };
1197
1197
  function K(e) {
1198
1198
  const {
1199
1199
  children: t,
1200
1200
  className: r,
1201
- kind: a = ya.kind,
1201
+ kind: a = ga.kind,
1202
1202
  theme: n,
1203
1203
  ref: s,
1204
1204
  ...o
1205
1205
  } = e, {
1206
1206
  color: i
1207
- } = vs[a] || {};
1207
+ } = gs[a] || {};
1208
1208
  return l("p", h({
1209
1209
  ref: s
1210
1210
  }, o, {
1211
- className: N(r, As({
1211
+ className: N(r, Ns({
1212
1212
  [`color-${i}`]: !!i,
1213
1213
  [`theme-${n}`]: !!n
1214
1214
  }))
1215
1215
  }), [t]);
1216
1216
  }
1217
- K.displayName = ys;
1218
- K.className = va;
1219
- K.defaultProps = ya;
1220
- const Na = "intermediate", Ss = "lumx-checkbox", {
1221
- block: Ps,
1222
- element: j
1223
- } = T(Ss), ks = (e) => {
1217
+ K.displayName = vs;
1218
+ K.className = ba;
1219
+ K.defaultProps = ga;
1220
+ const va = "intermediate", As = "lumx-checkbox", {
1221
+ block: Ss,
1222
+ element: R
1223
+ } = $(As), ks = (e) => {
1224
1224
  const {
1225
1225
  checked: t,
1226
1226
  className: r,
@@ -1229,22 +1229,22 @@ const Na = "intermediate", Ss = "lumx-checkbox", {
1229
1229
  inputRef: s,
1230
1230
  isChecked: o = t,
1231
1231
  label: i,
1232
- name: u,
1233
- ref: c,
1232
+ name: c,
1233
+ ref: u,
1234
1234
  handleChange: d,
1235
1235
  theme: f,
1236
1236
  value: m,
1237
1237
  inputProps: p = {},
1238
1238
  isDisabled: g,
1239
1239
  inputId: b,
1240
- ...v
1241
- } = e, C = o === Na, k = (_) => {
1242
- d && d(!o, m, u, _);
1240
+ ...y
1241
+ } = e, C = o === va, T = (E) => {
1242
+ d && d(!o, m, c, E);
1243
1243
  };
1244
1244
  return l("div", h({
1245
- ref: c
1246
- }, v, {
1247
- className: N(r, Ps({
1245
+ ref: u
1246
+ }, y, {
1247
+ className: N(r, Ss({
1248
1248
  // Whether state is intermediate class name will "-checked"
1249
1249
  "is-checked": C ? !0 : o,
1250
1250
  "is-disabled": g,
@@ -1252,60 +1252,60 @@ const Na = "intermediate", Ss = "lumx-checkbox", {
1252
1252
  [`theme-${f}`]: !!f
1253
1253
  }))
1254
1254
  }), [l("div", {
1255
- className: j("input-wrapper")
1255
+ className: R("input-wrapper")
1256
1256
  }, [l("input", h({
1257
1257
  ref: s,
1258
1258
  type: "checkbox",
1259
1259
  id: b,
1260
- className: j("input-native"),
1261
- name: u,
1260
+ className: R("input-native"),
1261
+ name: c,
1262
1262
  value: m,
1263
1263
  checked: o,
1264
- onChange: k,
1264
+ onChange: T,
1265
1265
  "aria-describedby": a ? `${b}-helper` : void 0,
1266
1266
  "aria-checked": C ? "mixed" : !!o
1267
1267
  }, p?.readOnly ? {
1268
1268
  readOnly: p.readOnly
1269
1269
  } : {}, p), null), l("div", {
1270
- className: j("input-placeholder")
1270
+ className: R("input-placeholder")
1271
1271
  }, [l("div", {
1272
- className: j("input-background")
1272
+ className: R("input-background")
1273
1273
  }, null), l("div", {
1274
- className: j("input-indicator")
1274
+ className: R("input-indicator")
1275
1275
  }, [I({
1276
- icon: C ? za : Fa
1276
+ icon: C ? Fa : Da
1277
1277
  })])])]), l("div", {
1278
- className: j("content")
1279
- }, [i && W({
1278
+ className: R("content")
1279
+ }, [i && V({
1280
1280
  htmlFor: b,
1281
- className: j("label"),
1281
+ className: R("label"),
1282
1282
  theme: f,
1283
1283
  children: i
1284
1284
  }), a && K({
1285
1285
  id: `${b}-helper`,
1286
- className: j("helper"),
1286
+ className: R("helper"),
1287
1287
  theme: f,
1288
1288
  children: a
1289
1289
  })])]);
1290
1290
  };
1291
- let Or = 0;
1292
- function Ft() {
1293
- return Or += 1, `:lumx${Or}:`;
1291
+ let Lr = 0;
1292
+ function Dt() {
1293
+ return Lr += 1, `:lumx${Lr}:`;
1294
1294
  }
1295
- const $s = {
1295
+ const Ps = {
1296
1296
  change: (e, t, r, a) => typeof e == "boolean" && a instanceof Event
1297
- }, xi = /* @__PURE__ */ y((e, {
1297
+ }, Ci = /* @__PURE__ */ v((e, {
1298
1298
  emit: t
1299
1299
  }) => {
1300
- const r = S(), a = x(), n = Ft(), s = $(() => e.id || n), o = se(null), {
1300
+ const r = S(), a = x(), n = Dt(), s = P(() => e.id || n), o = ne(null), {
1301
1301
  isAnyDisabled: i,
1302
- disabledStateProps: u,
1303
- otherProps: c
1304
- } = z($(() => ({
1302
+ disabledStateProps: c,
1303
+ otherProps: u
1304
+ } = F(P(() => ({
1305
1305
  ...e,
1306
1306
  ...r
1307
- }))), d = $(() => e.isChecked === Na);
1308
- V(d, (m) => {
1307
+ }))), d = P(() => e.isChecked === va);
1308
+ H(d, (m) => {
1309
1309
  o.value && (o.value.indeterminate = m);
1310
1310
  }, {
1311
1311
  immediate: !0
@@ -1313,7 +1313,7 @@ const $s = {
1313
1313
  const f = (m, p, g, b) => {
1314
1314
  i.value || (b?.stopImmediatePropagation?.(), t("change", m, p, g, b));
1315
1315
  };
1316
- return () => l(ks, h(c.value, {
1316
+ return () => l(ks, h(u.value, {
1317
1317
  className: e.class,
1318
1318
  theme: e.theme || a.value,
1319
1319
  inputId: s.value,
@@ -1323,8 +1323,8 @@ const $s = {
1323
1323
  label: e.label,
1324
1324
  inputProps: {
1325
1325
  ...e.inputProps,
1326
- ...u.value,
1327
- readOnly: u.value["aria-disabled"]
1326
+ ...c.value,
1327
+ readOnly: c.value["aria-disabled"]
1328
1328
  }
1329
1329
  }), null);
1330
1330
  }, {
@@ -1332,10 +1332,10 @@ const $s = {
1332
1332
  inheritAttrs: !1,
1333
1333
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1334
1334
  props: A()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "theme", "value", "aria-disabled"),
1335
- emits: $s
1336
- }), Ts = "lumx-divider", {
1337
- block: Cs
1338
- } = T(Ts), _s = (e) => {
1335
+ emits: Ps
1336
+ }), $s = "lumx-divider", {
1337
+ block: Ts
1338
+ } = $($s), Cs = (e) => {
1339
1339
  const {
1340
1340
  className: t,
1341
1341
  theme: r,
@@ -1345,13 +1345,13 @@ const $s = {
1345
1345
  return l("hr", h({
1346
1346
  ref: a
1347
1347
  }, n, {
1348
- className: N(t, Cs({
1348
+ className: N(t, Ts({
1349
1349
  [`theme-${r}`]: !!r
1350
1350
  }))
1351
1351
  }), null);
1352
- }, Ei = /* @__PURE__ */ y((e) => {
1352
+ }, _i = /* @__PURE__ */ v((e) => {
1353
1353
  const t = S(), r = x();
1354
- return () => l(_s, h(t, e, {
1354
+ return () => l(Cs, h(t, e, {
1355
1355
  className: e.class,
1356
1356
  theme: e.theme || r.value
1357
1357
  }), null);
@@ -1361,13 +1361,13 @@ const $s = {
1361
1361
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1362
1362
  props: A()("class", "theme")
1363
1363
  });
1364
- function xs(e) {
1365
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Z(e);
1364
+ function _s(e) {
1365
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
1366
1366
  }
1367
- const Es = "lumx-flag", {
1368
- block: ws,
1369
- element: Br
1370
- } = T(Es), Is = (e) => {
1367
+ const xs = "lumx-flag", {
1368
+ block: Es,
1369
+ element: Or
1370
+ } = $(xs), ws = (e) => {
1371
1371
  const {
1372
1372
  children: t,
1373
1373
  icon: r,
@@ -1376,34 +1376,34 @@ const Es = "lumx-flag", {
1376
1376
  theme: s,
1377
1377
  truncate: o,
1378
1378
  Text: i,
1379
- ...u
1380
- } = e, c = a || (s === Ne.light ? E.dark : E.light), d = !!o;
1381
- return l("div", h(u, {
1382
- className: N(n, ws({
1383
- [`color-${c}`]: !!c,
1379
+ ...c
1380
+ } = e, u = a || (s === ve.light ? _.dark : _.light), d = !!o;
1381
+ return l("div", h(c, {
1382
+ className: N(n, Es({
1383
+ [`color-${u}`]: !!u,
1384
1384
  "is-truncated": d
1385
1385
  }))
1386
1386
  }), [r && I({
1387
1387
  icon: r,
1388
1388
  size: w.xxs,
1389
- className: Br("icon")
1389
+ className: Or("icon")
1390
1390
  }), l(i, {
1391
1391
  as: "span",
1392
1392
  truncate: !!o,
1393
1393
  typography: "overline",
1394
- className: Br("label")
1395
- }, xs(t) ? t : {
1394
+ className: Or("label")
1395
+ }, _s(t) ? t : {
1396
1396
  default: () => [t]
1397
1397
  })]);
1398
- }, wi = /* @__PURE__ */ y((e, {
1398
+ }, xi = /* @__PURE__ */ v((e, {
1399
1399
  slots: t
1400
1400
  }) => {
1401
1401
  const r = S(), a = x();
1402
- return () => l(Is, h(e, r, {
1402
+ return () => l(ws, h(e, r, {
1403
1403
  className: e.class,
1404
1404
  theme: e.theme || a.value,
1405
1405
  children: t.default?.(),
1406
- Text: Dt
1406
+ Text: qt
1407
1407
  }), null);
1408
1408
  }, {
1409
1409
  name: "Flag",
@@ -1411,24 +1411,24 @@ const Es = "lumx-flag", {
1411
1411
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1412
1412
  props: A()("color", "icon", "truncate", "theme", "class")
1413
1413
  });
1414
- var ht, Rr;
1415
- function Ls() {
1416
- if (Rr) return ht;
1417
- Rr = 1;
1418
- var e = la();
1414
+ var mt, Br;
1415
+ function Is() {
1416
+ if (Br) return mt;
1417
+ Br = 1;
1418
+ var e = ia();
1419
1419
  function t() {
1420
1420
  if (!arguments.length)
1421
1421
  return [];
1422
1422
  var r = arguments[0];
1423
1423
  return e(r) ? r : [r];
1424
1424
  }
1425
- return ht = t, ht;
1425
+ return mt = t, mt;
1426
1426
  }
1427
- var Os = Ls();
1428
- const Bs = /* @__PURE__ */ Pe(Os), Rs = "lumx-flex-box", {
1429
- block: js
1430
- } = T(Rs);
1431
- function Ms(e) {
1427
+ var Ls = Is();
1428
+ const Os = /* @__PURE__ */ Se(Ls), Bs = "lumx-flex-box", {
1429
+ block: Rs
1430
+ } = $(Bs);
1431
+ function js(e) {
1432
1432
  const {
1433
1433
  className: t,
1434
1434
  fillSpace: r,
@@ -1437,30 +1437,30 @@ function Ms(e) {
1437
1437
  marginAuto: s,
1438
1438
  noShrink: o,
1439
1439
  vAlign: i,
1440
- wrap: u,
1441
- orientation: c,
1440
+ wrap: c,
1441
+ orientation: u,
1442
1442
  ...d
1443
- } = e, f = c ?? (u || n || i ? Ja.horizontal : null);
1443
+ } = e, f = u ?? (c || n || i ? Ya.horizontal : null);
1444
1444
  return {
1445
1445
  ...d,
1446
- className: N(t, js({
1446
+ className: N(t, Rs({
1447
1447
  [`orientation-${f}`]: !!f,
1448
1448
  [`v-align-${i}`]: !!i,
1449
1449
  [`h-align-${n}`]: !!n,
1450
1450
  [`gap-${a}`]: !!a,
1451
- wrap: !!u,
1451
+ wrap: !!c,
1452
1452
  "fill-space": r,
1453
1453
  "no-shrink": o,
1454
- ...Object.fromEntries(Bs(s).filter(Boolean).map((m) => [`margin-auto-${m}`, !0]))
1454
+ ...Object.fromEntries(Os(s).filter(Boolean).map((m) => [`margin-auto-${m}`, !0]))
1455
1455
  }))
1456
1456
  };
1457
1457
  }
1458
- const Ii = /* @__PURE__ */ y((e, {
1458
+ const Ei = /* @__PURE__ */ v((e, {
1459
1459
  slots: t
1460
1460
  }) => {
1461
1461
  const r = S();
1462
1462
  return () => {
1463
- const a = e.as || "div", n = Ms({
1463
+ const a = e.as || "div", n = js({
1464
1464
  ...e,
1465
1465
  ...r,
1466
1466
  className: e.class
@@ -1475,65 +1475,65 @@ const Ii = /* @__PURE__ */ y((e, {
1475
1475
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1476
1476
  props: A()("as", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap", "class")
1477
1477
  });
1478
- var pt, jr;
1479
- function qs() {
1480
- if (jr) return pt;
1481
- jr = 1;
1478
+ var ht, Rr;
1479
+ function Ms() {
1480
+ if (Rr) return ht;
1481
+ Rr = 1;
1482
1482
  var e = /\s/;
1483
1483
  function t(r) {
1484
1484
  for (var a = r.length; a-- && e.test(r.charAt(a)); )
1485
1485
  ;
1486
1486
  return a;
1487
1487
  }
1488
- return pt = t, pt;
1488
+ return ht = t, ht;
1489
+ }
1490
+ var pt, jr;
1491
+ function qs() {
1492
+ if (jr) return pt;
1493
+ jr = 1;
1494
+ var e = Ms(), t = /^\s+/;
1495
+ function r(a) {
1496
+ return a && a.slice(0, e(a) + 1).replace(t, "");
1497
+ }
1498
+ return pt = r, pt;
1489
1499
  }
1490
1500
  var bt, Mr;
1491
1501
  function Ds() {
1492
1502
  if (Mr) return bt;
1493
1503
  Mr = 1;
1494
- var e = qs(), t = /^\s+/;
1495
- function r(a) {
1496
- return a && a.slice(0, e(a) + 1).replace(t, "");
1504
+ var e = se(), t = Pe(), r = "[object Symbol]";
1505
+ function a(n) {
1506
+ return typeof n == "symbol" || t(n) && e(n) == r;
1497
1507
  }
1498
- return bt = r, bt;
1508
+ return bt = a, bt;
1499
1509
  }
1500
1510
  var gt, qr;
1501
1511
  function Fs() {
1502
1512
  if (qr) return gt;
1503
1513
  qr = 1;
1504
- var e = oe(), t = $e(), r = "[object Symbol]";
1505
- function a(n) {
1506
- return typeof n == "symbol" || t(n) && e(n) == r;
1514
+ var e = qs(), t = jt(), r = Ds(), a = NaN, n = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, o = /^0o[0-7]+$/i, i = parseInt;
1515
+ function c(u) {
1516
+ if (typeof u == "number")
1517
+ return u;
1518
+ if (r(u))
1519
+ return a;
1520
+ if (t(u)) {
1521
+ var d = typeof u.valueOf == "function" ? u.valueOf() : u;
1522
+ u = t(d) ? d + "" : d;
1523
+ }
1524
+ if (typeof u != "string")
1525
+ return u === 0 ? u : +u;
1526
+ u = e(u);
1527
+ var f = s.test(u);
1528
+ return f || o.test(u) ? i(u.slice(2), f ? 2 : 8) : n.test(u) ? a : +u;
1507
1529
  }
1508
- return gt = a, gt;
1530
+ return gt = c, gt;
1509
1531
  }
1510
1532
  var vt, Dr;
1511
1533
  function zs() {
1512
1534
  if (Dr) return vt;
1513
1535
  Dr = 1;
1514
- var e = Ds(), t = qt(), r = Fs(), a = NaN, n = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, o = /^0o[0-7]+$/i, i = parseInt;
1515
- function u(c) {
1516
- if (typeof c == "number")
1517
- return c;
1518
- if (r(c))
1519
- return a;
1520
- if (t(c)) {
1521
- var d = typeof c.valueOf == "function" ? c.valueOf() : c;
1522
- c = t(d) ? d + "" : d;
1523
- }
1524
- if (typeof c != "string")
1525
- return c === 0 ? c : +c;
1526
- c = e(c);
1527
- var f = s.test(c);
1528
- return f || o.test(c) ? i(c.slice(2), f ? 2 : 8) : n.test(c) ? a : +c;
1529
- }
1530
- return vt = u, vt;
1531
- }
1532
- var yt, Fr;
1533
- function Gs() {
1534
- if (Fr) return yt;
1535
- Fr = 1;
1536
- var e = zs(), t = 1 / 0, r = 17976931348623157e292;
1536
+ var e = Fs(), t = 1 / 0, r = 17976931348623157e292;
1537
1537
  function a(n) {
1538
1538
  if (!n)
1539
1539
  return n === 0 ? n : 0;
@@ -1543,35 +1543,35 @@ function Gs() {
1543
1543
  }
1544
1544
  return n === n ? n : 0;
1545
1545
  }
1546
- return yt = a, yt;
1546
+ return vt = a, vt;
1547
1547
  }
1548
- var Nt, zr;
1549
- function Us() {
1550
- if (zr) return Nt;
1551
- zr = 1;
1552
- var e = Gs();
1548
+ var yt, Fr;
1549
+ function Gs() {
1550
+ if (Fr) return yt;
1551
+ Fr = 1;
1552
+ var e = zs();
1553
1553
  function t(r) {
1554
1554
  var a = e(r), n = a % 1;
1555
1555
  return a === a ? n ? a - n : a : 0;
1556
1556
  }
1557
- return Nt = t, Nt;
1557
+ return yt = t, yt;
1558
1558
  }
1559
- var At, Gr;
1560
- function Hs() {
1561
- if (Gr) return At;
1562
- Gr = 1;
1563
- var e = Us();
1559
+ var Nt, zr;
1560
+ function Us() {
1561
+ if (zr) return Nt;
1562
+ zr = 1;
1563
+ var e = Gs();
1564
1564
  function t(r) {
1565
1565
  return typeof r == "number" && r == e(r);
1566
1566
  }
1567
- return At = t, At;
1567
+ return Nt = t, Nt;
1568
1568
  }
1569
- var Vs = Hs();
1570
- const Ws = /* @__PURE__ */ Pe(Vs);
1571
- function Ks(e) {
1572
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Z(e);
1569
+ var Hs = Us();
1570
+ const Ws = /* @__PURE__ */ Se(Hs);
1571
+ function Vs(e) {
1572
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
1573
1573
  }
1574
- const Ys = "GridColumn", Aa = "lumx-grid-column", Js = {}, _e = (e) => {
1574
+ const Ks = "GridColumn", ya = "lumx-grid-column", Ys = {}, Ce = (e) => {
1575
1575
  const {
1576
1576
  as: t = "div",
1577
1577
  gap: r,
@@ -1580,30 +1580,30 @@ const Ys = "GridColumn", Aa = "lumx-grid-column", Js = {}, _e = (e) => {
1580
1580
  children: s,
1581
1581
  className: o,
1582
1582
  style: i = {},
1583
- ref: u,
1584
- ...c
1583
+ ref: c,
1584
+ ...u
1585
1585
  } = e;
1586
- return l(t, h(c, {
1587
- ref: u,
1588
- className: N(o, Aa),
1586
+ return l(t, h(u, {
1587
+ ref: c,
1588
+ className: N(o, ya),
1589
1589
  style: {
1590
1590
  ...i,
1591
1591
  "--lumx-grid-column-item-min-width": Ws(n) && `${n}px`,
1592
1592
  "--lumx-grid-column-columns": a,
1593
1593
  "--lumx-grid-column-gap": r && `var(--lumx-spacing-unit-${r})`
1594
1594
  }
1595
- }), Ks(s) ? s : {
1595
+ }), Vs(s) ? s : {
1596
1596
  default: () => [s]
1597
1597
  });
1598
1598
  };
1599
- _e.displayName = Ys;
1600
- _e.className = Aa;
1601
- _e.defaultProps = Js;
1602
- const Li = /* @__PURE__ */ y((e, {
1599
+ Ce.displayName = Ks;
1600
+ Ce.className = ya;
1601
+ Ce.defaultProps = Ys;
1602
+ const wi = /* @__PURE__ */ v((e, {
1603
1603
  slots: t
1604
1604
  }) => {
1605
1605
  const r = S();
1606
- return () => l(_e, h(e, r, {
1606
+ return () => l(Ce, h(e, r, {
1607
1607
  className: e.class,
1608
1608
  children: t.default?.()
1609
1609
  }), null);
@@ -1611,29 +1611,29 @@ const Li = /* @__PURE__ */ y((e, {
1611
1611
  name: "LumxGridColumn",
1612
1612
  inheritAttrs: !1,
1613
1613
  props: A()("as", "class", "gap", "itemMinWidth", "maxColumns", "style")
1614
- }), Ur = 6, Xs = {
1614
+ }), Gr = 6, Js = {
1615
1615
  h1: X.display1,
1616
1616
  h2: X.headline,
1617
1617
  h3: X.title,
1618
1618
  h4: X.subtitle2,
1619
1619
  h5: X.subtitle1,
1620
1620
  h6: X.body2
1621
- }, Qs = { level: 1, headingElement: "h1" }, Zs = "lumx-heading", eo = (e, t) => {
1621
+ }, Xs = { level: 1, headingElement: "h1" }, Qs = "lumx-heading", Zs = (e, t) => {
1622
1622
  const { as: r, className: a, typography: n, ...s } = e, o = r || t || "h1";
1623
1623
  return {
1624
1624
  ...s,
1625
1625
  as: o,
1626
- className: N(a, Zs),
1627
- typography: n || Xs[o]
1626
+ className: N(a, Qs),
1627
+ typography: n || Js[o]
1628
1628
  };
1629
- }, Sa = /* @__PURE__ */ Symbol("HeadingLevelContext"), Pa = () => Ot(Sa, Qs), Oi = /* @__PURE__ */ y((e, {
1629
+ }, Na = /* @__PURE__ */ Symbol("HeadingLevelContext"), Aa = () => It(Na, Xs), Ii = /* @__PURE__ */ v((e, {
1630
1630
  slots: t
1631
1631
  }) => {
1632
- const r = S(), a = Pa(), n = $(() => {
1632
+ const r = S(), a = Aa(), n = P(() => {
1633
1633
  const {
1634
1634
  className: s,
1635
1635
  ...o
1636
- } = eo({
1636
+ } = Zs({
1637
1637
  ...r,
1638
1638
  ...e,
1639
1639
  className: e.class || r.class || r.className
@@ -1643,7 +1643,7 @@ const Li = /* @__PURE__ */ y((e, {
1643
1643
  class: s
1644
1644
  };
1645
1645
  });
1646
- return () => l(Dt, n.value, {
1646
+ return () => l(qt, n.value, {
1647
1647
  default: () => [t.default?.()]
1648
1648
  });
1649
1649
  }, {
@@ -1651,23 +1651,23 @@ const Li = /* @__PURE__ */ y((e, {
1651
1651
  inheritAttrs: !1,
1652
1652
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1653
1653
  props: A()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1654
- }), to = (e, t) => {
1654
+ }), eo = (e, t) => {
1655
1655
  const r = e || t + 1;
1656
- return r > Ur ? Ur : r;
1657
- }, Bi = /* @__PURE__ */ y((e, {
1656
+ return r > Gr ? Gr : r;
1657
+ }, Li = /* @__PURE__ */ v((e, {
1658
1658
  slots: t
1659
1659
  }) => {
1660
1660
  const {
1661
1661
  level: r
1662
- } = Ra(e), a = Pa(), n = $(() => to(r?.value, a.level)), s = $(() => `h${n.value}`), o = ja({
1662
+ } = Ba(e), a = Aa(), n = P(() => eo(r?.value, a.level)), s = P(() => `h${n.value}`), o = Ra({
1663
1663
  level: n,
1664
1664
  headingElement: s
1665
1665
  });
1666
- return Jr(Sa, o), () => t.default?.();
1666
+ return Yr(Na, o), () => t.default?.();
1667
1667
  }, {
1668
1668
  name: "HeadingLevelProvider",
1669
1669
  props: A()("level")
1670
- }), Ri = /* @__PURE__ */ y((e, {
1670
+ }), Oi = /* @__PURE__ */ v((e, {
1671
1671
  slots: t
1672
1672
  }) => {
1673
1673
  const r = S(), a = x();
@@ -1681,11 +1681,11 @@ const Li = /* @__PURE__ */ y((e, {
1681
1681
  inheritAttrs: !1,
1682
1682
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1683
1683
  props: A()("kind", "theme", "class", "id")
1684
- }), ji = /* @__PURE__ */ y((e, {
1684
+ }), Bi = /* @__PURE__ */ v((e, {
1685
1685
  slots: t
1686
1686
  }) => {
1687
1687
  const r = S(), a = x();
1688
- return () => l(W, h(e, r, {
1688
+ return () => l(V, h(e, r, {
1689
1689
  className: e.class,
1690
1690
  theme: e.theme || a.value,
1691
1691
  children: t.default?.()
@@ -1695,109 +1695,84 @@ const Li = /* @__PURE__ */ y((e, {
1695
1695
  inheritAttrs: !1,
1696
1696
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1697
1697
  props: A()("htmlFor", "isRequired", "typography", "theme", "class")
1698
- });
1699
- function ro(e) {
1700
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Z(e);
1701
- }
1702
- const ao = "lumx-link", {
1703
- block: no,
1704
- element: St
1705
- } = T(ao), so = (e) => {
1698
+ }), Sa = "lumx-link", {
1699
+ block: to
1700
+ } = $(Sa), ro = (e) => {
1706
1701
  const {
1707
- label: t,
1702
+ children: t,
1708
1703
  className: r,
1709
1704
  color: a,
1710
1705
  colorVariant: n,
1711
- leftIcon: s,
1712
- rightIcon: o,
1713
- typography: i,
1714
- as: u,
1706
+ typography: s,
1707
+ linkAs: o,
1708
+ handleClick: i,
1715
1709
  ref: c,
1716
- isDisabled: d,
1717
- theme: f,
1718
- href: m,
1719
- target: p,
1720
- handleClick: g,
1721
- ...b
1722
- } = e, [v, C] = jt(a, n), k = u || (m ? "a" : "button"), _ = {};
1723
- d && (k === "button" || !m && !u ? _.disabled = !0 : (_["aria-disabled"] = !0, _.tabIndex = -1));
1724
- const O = N(r, no({
1725
- [`color-${v}`]: !!v,
1726
- [`color-variant-${C}`]: !!C,
1727
- "has-typography": !!i
1728
- }), i && Mt(i)), L = l(U, null, [s && l(U, null, [ge(" "), I({
1729
- icon: s,
1730
- className: St("left-icon")
1731
- }), ge(" ")]), t && l("span", {
1732
- className: St("content")
1733
- }, [t]), o && l(U, null, [ge(" "), I({
1734
- icon: o,
1735
- className: St("right-icon")
1736
- }), ge(" ")])]), B = {
1710
+ href: u,
1711
+ ...d
1712
+ } = e, [f, m] = Bt(a, n);
1713
+ return Mt({
1737
1714
  ref: c,
1738
- className: O,
1739
- onClick: d ? void 0 : g,
1740
- ...b,
1741
- ..._
1742
- };
1743
- return m && (B.href = m), p && (B.target = p), l(k, B, ro(L) ? L : {
1744
- default: () => [L]
1715
+ as: o || (u ? "a" : "button"),
1716
+ href: u,
1717
+ ...d,
1718
+ handleClick: i,
1719
+ children: t,
1720
+ className: N(r, to({
1721
+ [`color-${f}`]: !!f,
1722
+ [`color-variant-${m}`]: !!m,
1723
+ "has-typography": !!s
1724
+ }), s && Rt(s))
1745
1725
  });
1746
- }, oo = {
1747
- click: (e) => e instanceof Event
1748
- }, Mi = /* @__PURE__ */ y((e, {
1726
+ }, ao = {
1727
+ click: (e) => e instanceof MouseEvent
1728
+ }, {
1729
+ element: no
1730
+ } = W.bem(Sa), Ri = /* @__PURE__ */ v((e, {
1749
1731
  emit: t
1750
1732
  }) => {
1751
- const r = S(), a = Rt(), n = x(), {
1752
- class: s,
1753
- ...o
1754
- } = e, {
1755
- isAnyDisabled: i,
1756
- disabledStateProps: u,
1757
- otherProps: c
1758
- } = z($(() => ({
1759
- ...o,
1760
- ...r
1761
- }))), d = (f) => {
1762
- i.value || (f?.stopImmediatePropagation?.(), t("click", f));
1763
- };
1764
- return () => {
1765
- const m = a.default?.() || c.value.label;
1766
- return l(so, h(c.value, u.value, {
1767
- className: s,
1768
- theme: e.theme || n.value,
1769
- isDisabled: i.value,
1770
- handleClick: d,
1771
- label: m
1772
- }), null);
1733
+ const r = Ot(), a = S(), {
1734
+ isAnyDisabled: n,
1735
+ disabledStateProps: s,
1736
+ otherProps: o
1737
+ } = F(P(() => ({
1738
+ ...e,
1739
+ ...a
1740
+ }))), i = (c) => {
1741
+ n.value || (c.stopImmediatePropagation(), t("click", c));
1773
1742
  };
1743
+ return () => l(ro, h(o.value, s.value, {
1744
+ className: e.class,
1745
+ handleClick: i,
1746
+ children: l("span", {
1747
+ className: no("content")
1748
+ }, [r.default?.()])
1749
+ }), null);
1774
1750
  }, {
1775
1751
  name: "LumxLink",
1776
1752
  inheritAttrs: !1,
1777
- // Redefine properties so that they come in as `props` on the `defineComponent` function
1778
- props: A()("as", "class", "color", "colorVariant", "disabled", "href", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "typography", "aria-disabled"),
1779
- emits: oo
1780
- }), io = "Message", ka = "lumx-message", {
1781
- block: lo,
1782
- element: Pt
1783
- } = T(ka), co = {
1784
- [D.error]: {
1785
- color: E.red,
1786
- icon: Ga
1753
+ props: A()("color", "colorVariant", "href", "isDisabled", "disabled", "linkAs", "target", "typography", "class", "aria-disabled"),
1754
+ emits: ao
1755
+ }), so = "Message", ka = "lumx-message", {
1756
+ block: oo,
1757
+ element: At
1758
+ } = $(ka), io = {
1759
+ [q.error]: {
1760
+ color: _.red,
1761
+ icon: za
1787
1762
  },
1788
- [D.info]: {
1789
- color: E.blue,
1790
- icon: Va
1763
+ [q.info]: {
1764
+ color: _.blue,
1765
+ icon: Ha
1791
1766
  },
1792
- [D.success]: {
1793
- color: E.green,
1794
- icon: Ua
1767
+ [q.success]: {
1768
+ color: _.green,
1769
+ icon: Ga
1795
1770
  },
1796
- [D.warning]: {
1797
- color: E.yellow,
1798
- icon: Qr
1771
+ [q.warning]: {
1772
+ color: _.yellow,
1773
+ icon: Xr
1799
1774
  }
1800
- }, zt = (e) => {
1775
+ }, Ft = (e) => {
1801
1776
  const {
1802
1777
  children: t,
1803
1778
  className: r,
@@ -1806,45 +1781,45 @@ const ao = "lumx-link", {
1806
1781
  icon: s,
1807
1782
  closeButtonProps: o,
1808
1783
  ref: i,
1809
- ...u
1784
+ ...c
1810
1785
  } = e, {
1811
- color: c,
1786
+ color: u,
1812
1787
  icon: d
1813
- } = co[n] || {}, {
1788
+ } = io[n] || {}, {
1814
1789
  onClick: f,
1815
1790
  label: m
1816
1791
  } = o || {}, p = a && n === "info" && f && m;
1817
- return l("div", h(u, {
1792
+ return l("div", h(c, {
1818
1793
  ref: i,
1819
- className: N(r, lo({
1820
- [`color-${c}`]: !!c,
1794
+ className: N(r, oo({
1795
+ [`color-${u}`]: !!u,
1821
1796
  "has-background": a
1822
1797
  }))
1823
1798
  }), [(s || d) && I({
1824
- className: Pt("icon"),
1799
+ className: At("icon"),
1825
1800
  icon: s || d,
1826
1801
  size: w.xs,
1827
- color: c
1802
+ color: u
1828
1803
  }), l("div", {
1829
- className: Pt("text")
1830
- }, [t]), p && ce({
1831
- className: Pt("close-button"),
1832
- icon: Ha,
1804
+ className: At("text")
1805
+ }, [t]), p && le({
1806
+ className: At("close-button"),
1807
+ icon: Ua,
1833
1808
  handleClick: f,
1834
1809
  label: m,
1835
- emphasis: H.low
1810
+ emphasis: U.low
1836
1811
  })]);
1837
1812
  };
1838
- zt.displayName = io;
1839
- zt.className = ka;
1840
- const qi = /* @__PURE__ */ y((e, {
1813
+ Ft.displayName = so;
1814
+ Ft.className = ka;
1815
+ const ji = /* @__PURE__ */ v((e, {
1841
1816
  slots: t,
1842
1817
  emit: r
1843
1818
  }) => {
1844
1819
  const a = S(), {
1845
1820
  closeButtonLabel: n
1846
1821
  } = e;
1847
- return () => l(zt, h(e, a, {
1822
+ return () => l(Ft, h(e, a, {
1848
1823
  className: e.class,
1849
1824
  children: t.default?.(),
1850
1825
  closeButtonProps: n ? {
@@ -1858,36 +1833,36 @@ const qi = /* @__PURE__ */ y((e, {
1858
1833
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1859
1834
  props: A()("hasBackground", "icon", "kind", "class", "closeButtonLabel"),
1860
1835
  emits: ["close"]
1861
- }), Di = "ProgressCircular", uo = "lumx-progress-circular", {
1862
- block: fo,
1863
- element: Se
1864
- } = T(uo), Hr = {
1836
+ }), Mi = "ProgressCircular", lo = "lumx-progress-circular", {
1837
+ block: co,
1838
+ element: Ne
1839
+ } = $(lo), Ur = {
1865
1840
  size: w.m,
1866
1841
  display: "block"
1867
- }, mo = (e) => {
1842
+ }, uo = (e) => {
1868
1843
  const {
1869
1844
  className: t,
1870
1845
  theme: r,
1871
- size: a = Hr.size,
1872
- display: n = Hr.display,
1846
+ size: a = Ur.size,
1847
+ display: n = Ur.display,
1873
1848
  ref: s,
1874
1849
  circleProps: o,
1875
1850
  svgProps: i,
1876
- ...u
1877
- } = e, c = n === "block" ? "div" : "span";
1878
- return l(c, h({
1851
+ ...c
1852
+ } = e, u = n === "block" ? "div" : "span";
1853
+ return l(u, h({
1879
1854
  ref: s
1880
- }, u, {
1881
- className: N(t, fo({
1855
+ }, c, {
1856
+ className: N(t, co({
1882
1857
  [`theme-${r}`]: !!r,
1883
1858
  [`size-${a}`]: !!a,
1884
1859
  [`display-${n}`]: !!n
1885
1860
  }))
1886
1861
  }), {
1887
- default: () => [l(c, {
1888
- className: Se("double-bounce1")
1889
- }, null), l(c, {
1890
- className: Se("double-bounce2")
1862
+ default: () => [l(u, {
1863
+ className: Ne("double-bounce1")
1864
+ }, null), l(u, {
1865
+ className: Ne("double-bounce2")
1891
1866
  }, null), l("svg", h(i, {
1892
1867
  viewBox: "25 25 50 50"
1893
1868
  }), [l("circle", h(o, {
@@ -1897,27 +1872,27 @@ const qi = /* @__PURE__ */ y((e, {
1897
1872
  fill: "none"
1898
1873
  }), null)])]
1899
1874
  });
1900
- }, Fi = /* @__PURE__ */ y((e) => {
1875
+ }, qi = /* @__PURE__ */ v((e) => {
1901
1876
  const t = S(), r = x();
1902
- return () => l(mo, h(e, t, {
1877
+ return () => l(uo, h(e, t, {
1903
1878
  className: e.class,
1904
1879
  theme: e.theme || r.value,
1905
1880
  circleProps: {
1906
- class: Se("path"),
1881
+ class: Ne("path"),
1907
1882
  "stroke-width": "5"
1908
1883
  },
1909
1884
  svgProps: {
1910
- class: Se("svg")
1885
+ class: Ne("svg")
1911
1886
  }
1912
1887
  }), null);
1913
1888
  }, {
1914
1889
  name: "LumxProgressCircular",
1915
1890
  inheritAttrs: !1,
1916
1891
  props: A()("class", "size", "display", "theme")
1917
- }), zi = "ProgressLinear", ho = "lumx-progress-linear", {
1918
- block: po,
1919
- element: Vr
1920
- } = T(ho), bo = (e) => {
1892
+ }), Di = "ProgressLinear", fo = "lumx-progress-linear", {
1893
+ block: mo,
1894
+ element: Hr
1895
+ } = $(fo), ho = (e) => {
1921
1896
  const {
1922
1897
  className: t,
1923
1898
  theme: r,
@@ -1927,17 +1902,17 @@ const qi = /* @__PURE__ */ y((e, {
1927
1902
  return l("div", h({
1928
1903
  ref: a
1929
1904
  }, n, {
1930
- className: N(t, po({
1905
+ className: N(t, mo({
1931
1906
  [`theme-${r}`]: !!r
1932
1907
  }))
1933
1908
  }), [l("div", {
1934
- className: Vr("line1")
1909
+ className: Hr("line1")
1935
1910
  }, null), l("div", {
1936
- className: Vr("line2")
1911
+ className: Hr("line2")
1937
1912
  }, null)]);
1938
- }, Gi = /* @__PURE__ */ y((e) => {
1913
+ }, Fi = /* @__PURE__ */ v((e) => {
1939
1914
  const t = S(), r = x();
1940
- return () => l(bo, h(e, t, {
1915
+ return () => l(ho, h(e, t, {
1941
1916
  className: e.class,
1942
1917
  theme: e.theme || r.value
1943
1918
  }), null);
@@ -1945,10 +1920,10 @@ const qi = /* @__PURE__ */ y((e, {
1945
1920
  name: "LumxProgressLinear",
1946
1921
  inheritAttrs: !1,
1947
1922
  props: A()("class", "theme")
1948
- }), go = "lumx-radio-button", {
1949
- block: vo,
1950
- element: M
1951
- } = T(go), yo = (e) => {
1923
+ }), po = "lumx-radio-button", {
1924
+ block: bo,
1925
+ element: j
1926
+ } = $(po), go = (e) => {
1952
1927
  const {
1953
1928
  checked: t,
1954
1929
  className: r,
@@ -1957,35 +1932,35 @@ const qi = /* @__PURE__ */ y((e, {
1957
1932
  inputRef: s,
1958
1933
  isChecked: o = t,
1959
1934
  label: i,
1960
- name: u,
1961
- ref: c,
1935
+ name: c,
1936
+ ref: u,
1962
1937
  handleChange: d,
1963
1938
  theme: f,
1964
1939
  value: m,
1965
1940
  inputProps: p = {},
1966
1941
  isDisabled: g,
1967
1942
  inputId: b,
1968
- ...v
1969
- } = e, C = (k) => {
1970
- d && d(m, u, k);
1943
+ ...y
1944
+ } = e, C = (T) => {
1945
+ d && d(m, c, T);
1971
1946
  };
1972
1947
  return l("div", h({
1973
- ref: c
1974
- }, v, {
1975
- className: N(r, vo({
1948
+ ref: u
1949
+ }, y, {
1950
+ className: N(r, bo({
1976
1951
  "is-checked": o,
1977
1952
  "is-disabled": g,
1978
1953
  "is-unchecked": !o,
1979
1954
  [`theme-${f}`]: !!f
1980
1955
  }))
1981
1956
  }), [l("div", {
1982
- className: M("input-wrapper")
1957
+ className: j("input-wrapper")
1983
1958
  }, [l("input", h({
1984
1959
  ref: s,
1985
- className: M("input-native"),
1960
+ className: j("input-native"),
1986
1961
  id: b,
1987
1962
  type: "radio",
1988
- name: u,
1963
+ name: c,
1989
1964
  value: m,
1990
1965
  checked: o,
1991
1966
  onChange: C,
@@ -1993,45 +1968,45 @@ const qi = /* @__PURE__ */ y((e, {
1993
1968
  }, p?.readOnly ? {
1994
1969
  readOnly: p.readOnly
1995
1970
  } : {}, p), null), l("div", {
1996
- className: M("input-placeholder")
1971
+ className: j("input-placeholder")
1997
1972
  }, [l("div", {
1998
- className: M("input-background")
1973
+ className: j("input-background")
1999
1974
  }, null), l("div", {
2000
- className: M("input-indicator")
1975
+ className: j("input-indicator")
2001
1976
  }, null)])]), l("div", {
2002
- className: M("content")
2003
- }, [i && W({
1977
+ className: j("content")
1978
+ }, [i && V({
2004
1979
  htmlFor: b,
2005
- className: M("label"),
1980
+ className: j("label"),
2006
1981
  theme: f,
2007
1982
  children: i
2008
1983
  }), a && K({
2009
1984
  id: `${b}-helper`,
2010
- className: M("helper"),
1985
+ className: j("helper"),
2011
1986
  theme: f,
2012
1987
  children: a
2013
1988
  })])]);
2014
- }, No = {
1989
+ }, vo = {
2015
1990
  change: (e, t, r) => r instanceof Event
2016
- }, Ui = /* @__PURE__ */ y((e, {
1991
+ }, zi = /* @__PURE__ */ v((e, {
2017
1992
  emit: t
2018
1993
  }) => {
2019
- const r = S(), a = x(), n = Ft(), s = $(() => e.id || n), {
1994
+ const r = S(), a = x(), n = Dt(), s = P(() => e.id || n), {
2020
1995
  isAnyDisabled: o,
2021
1996
  disabledStateProps: i,
2022
- otherProps: u
2023
- } = z($(() => ({
1997
+ otherProps: c
1998
+ } = F(P(() => ({
2024
1999
  ...e,
2025
2000
  ...r
2026
- }))), c = (d, f, m) => {
2001
+ }))), u = (d, f, m) => {
2027
2002
  o.value || (m?.stopImmediatePropagation?.(), t("change", d, f, m));
2028
2003
  };
2029
- return () => l(yo, h(u.value, {
2004
+ return () => l(go, h(c.value, {
2030
2005
  className: e.class,
2031
2006
  theme: e.theme || a.value,
2032
2007
  inputId: s.value,
2033
2008
  isDisabled: o.value,
2034
- handleChange: c,
2009
+ handleChange: u,
2035
2010
  label: e.label,
2036
2011
  inputProps: {
2037
2012
  ...e.inputProps,
@@ -2044,8 +2019,8 @@ const qi = /* @__PURE__ */ y((e, {
2044
2019
  inheritAttrs: !1,
2045
2020
  // Redefine properties so that they come in as `props` on the `defineComponent` function
2046
2021
  props: A()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "theme", "value", "aria-disabled"),
2047
- emits: No
2048
- }), Ao = "RadioGroup", $a = "lumx-radio-group", So = {}, xe = (e) => {
2022
+ emits: vo
2023
+ }), yo = "RadioGroup", Pa = "lumx-radio-group", No = {}, _e = (e) => {
2049
2024
  const {
2050
2025
  children: t,
2051
2026
  className: r,
@@ -2055,17 +2030,17 @@ const qi = /* @__PURE__ */ y((e, {
2055
2030
  return l("div", h({
2056
2031
  ref: a
2057
2032
  }, n, {
2058
- className: N(r, $a)
2033
+ className: N(r, Pa)
2059
2034
  }), [t]);
2060
2035
  };
2061
- xe.displayName = Ao;
2062
- xe.className = $a;
2063
- xe.defaultProps = So;
2064
- const Hi = /* @__PURE__ */ y((e, {
2036
+ _e.displayName = yo;
2037
+ _e.className = Pa;
2038
+ _e.defaultProps = No;
2039
+ const Gi = /* @__PURE__ */ v((e, {
2065
2040
  slots: t
2066
2041
  }) => {
2067
2042
  const r = S();
2068
- return () => l(xe, h(e, r, {
2043
+ return () => l(_e, h(e, r, {
2069
2044
  className: e.class,
2070
2045
  children: t.default?.()
2071
2046
  }), null);
@@ -2073,9 +2048,9 @@ const Hi = /* @__PURE__ */ y((e, {
2073
2048
  name: "RadioGroup",
2074
2049
  inheritAttrs: !1,
2075
2050
  props: A()("class")
2076
- }), Po = "lumx-skeleton-circle", {
2077
- block: ko
2078
- } = T(Po), $o = (e) => {
2051
+ }), Ao = "lumx-skeleton-circle", {
2052
+ block: So
2053
+ } = $(Ao), ko = (e) => {
2079
2054
  const {
2080
2055
  className: t,
2081
2056
  size: r,
@@ -2087,37 +2062,37 @@ const Hi = /* @__PURE__ */ y((e, {
2087
2062
  return l("div", h({
2088
2063
  ref: s
2089
2064
  }, o, {
2090
- className: N(t, ko({
2065
+ className: N(t, So({
2091
2066
  [`size-${r}`]: !!r,
2092
2067
  [`color-${a}`]: !!a,
2093
2068
  [`theme-${n}`]: !!n
2094
2069
  }))
2095
2070
  }), null);
2096
- }, To = {
2071
+ }, Po = {
2097
2072
  squared: "squared",
2098
2073
  rounded: "rounded",
2099
2074
  pill: "pill"
2100
- }, Co = "lumx-skeleton-rectangle", {
2101
- block: _o,
2102
- element: xo
2103
- } = T(Co), Eo = {
2104
- variant: To.squared
2105
- }, wo = (e) => {
2075
+ }, $o = "lumx-skeleton-rectangle", {
2076
+ block: To,
2077
+ element: Co
2078
+ } = $($o), _o = {
2079
+ variant: Po.squared
2080
+ }, xo = (e) => {
2106
2081
  const {
2107
2082
  aspectRatio: t,
2108
2083
  className: r,
2109
2084
  height: a,
2110
2085
  theme: n,
2111
- variant: s = Eo.variant,
2086
+ variant: s = _o.variant,
2112
2087
  width: o,
2113
2088
  color: i,
2114
- ref: u,
2115
- ...c
2089
+ ref: c,
2090
+ ...u
2116
2091
  } = e;
2117
2092
  return l("div", h({
2118
- ref: u
2119
- }, c, {
2120
- className: N(r, _o({
2093
+ ref: c
2094
+ }, u, {
2095
+ className: N(r, To({
2121
2096
  [`aspect-ratio-${t}`]: !!t,
2122
2097
  [`height-${a}`]: !!(!t && a),
2123
2098
  [`theme-${n}`]: !!n,
@@ -2126,12 +2101,12 @@ const Hi = /* @__PURE__ */ y((e, {
2126
2101
  [`color-${i}`]: !!i
2127
2102
  }))
2128
2103
  }), [l("div", {
2129
- className: xo("inner")
2104
+ className: Co("inner")
2130
2105
  }, null)]);
2131
- }, Io = "lumx-skeleton-typography", {
2132
- block: Lo,
2133
- element: Oo
2134
- } = T(Io), Bo = (e) => {
2106
+ }, Eo = "lumx-skeleton-typography", {
2107
+ block: wo,
2108
+ element: Io
2109
+ } = $(Eo), Lo = (e) => {
2135
2110
  const {
2136
2111
  className: t,
2137
2112
  theme: r,
@@ -2144,7 +2119,7 @@ const Hi = /* @__PURE__ */ y((e, {
2144
2119
  return l("div", h({
2145
2120
  ref: o
2146
2121
  }, i, {
2147
- className: N(t, Lo({
2122
+ className: N(t, wo({
2148
2123
  [`theme-${r}`]: !!r,
2149
2124
  [`typography-${a}`]: !!a,
2150
2125
  [`color-${s}`]: !!s
@@ -2154,11 +2129,11 @@ const Hi = /* @__PURE__ */ y((e, {
2154
2129
  width: n
2155
2130
  }
2156
2131
  }), [l("div", {
2157
- className: Oo("inner")
2132
+ className: Io("inner")
2158
2133
  }, null)]);
2159
- }, Vi = /* @__PURE__ */ y((e) => {
2134
+ }, Ui = /* @__PURE__ */ v((e) => {
2160
2135
  const t = S(), r = x();
2161
- return () => l($o, h(e, t, {
2136
+ return () => l(ko, h(e, t, {
2162
2137
  className: e.class,
2163
2138
  theme: e.theme || r.value
2164
2139
  }), null);
@@ -2166,9 +2141,9 @@ const Hi = /* @__PURE__ */ y((e, {
2166
2141
  name: "LumxSkeletonCircle",
2167
2142
  inheritAttrs: !1,
2168
2143
  props: A()("class", "size", "color", "theme")
2169
- }), Wi = /* @__PURE__ */ y((e) => {
2144
+ }), Hi = /* @__PURE__ */ v((e) => {
2170
2145
  const t = S(), r = x();
2171
- return () => l(wo, h(e, t, {
2146
+ return () => l(xo, h(e, t, {
2172
2147
  className: e.class,
2173
2148
  theme: e.theme || r.value
2174
2149
  }), null);
@@ -2176,9 +2151,9 @@ const Hi = /* @__PURE__ */ y((e, {
2176
2151
  name: "SkeletonRectangle",
2177
2152
  inheritAttrs: !1,
2178
2153
  props: A()("class", "aspectRatio", "height", "variant", "width", "color", "theme")
2179
- }), Ki = /* @__PURE__ */ y((e) => {
2154
+ }), Wi = /* @__PURE__ */ v((e) => {
2180
2155
  const t = S(), r = x();
2181
- return () => l(Bo, h(e, t, {
2156
+ return () => l(Lo, h(e, t, {
2182
2157
  className: e.class,
2183
2158
  theme: e.theme || r.value
2184
2159
  }), null);
@@ -2186,12 +2161,12 @@ const Hi = /* @__PURE__ */ y((e, {
2186
2161
  name: "LumxSkeletonTypography",
2187
2162
  inheritAttrs: !1,
2188
2163
  props: A()("class", "typography", "width", "color", "theme", "style")
2189
- }), Yi = "Switch", Ro = "lumx-switch", {
2190
- block: jo,
2191
- element: q
2192
- } = T(Ro), Mo = {
2164
+ }), Vi = "Switch", Oo = "lumx-switch", {
2165
+ block: Bo,
2166
+ element: M
2167
+ } = $(Oo), Ro = {
2193
2168
  position: "left"
2194
- }, qo = (e) => {
2169
+ }, jo = (e) => {
2195
2170
  const {
2196
2171
  checked: t,
2197
2172
  className: r,
@@ -2200,81 +2175,81 @@ const Hi = /* @__PURE__ */ y((e, {
2200
2175
  inputRef: s,
2201
2176
  isChecked: o = t,
2202
2177
  label: i,
2203
- name: u,
2204
- ref: c,
2178
+ name: c,
2179
+ ref: u,
2205
2180
  handleChange: d,
2206
2181
  theme: f,
2207
2182
  value: m,
2208
2183
  inputProps: p = {},
2209
2184
  isDisabled: g,
2210
2185
  inputId: b,
2211
- position: v = Mo.position,
2186
+ position: y = Ro.position,
2212
2187
  ...C
2213
- } = e, k = (_) => {
2214
- d && d(!o, m, u, _);
2188
+ } = e, T = (E) => {
2189
+ d && d(!o, m, c, E);
2215
2190
  };
2216
2191
  return l("div", h({
2217
- ref: c
2192
+ ref: u
2218
2193
  }, C, {
2219
- className: N(r, jo({
2194
+ className: N(r, Bo({
2220
2195
  "is-checked": o,
2221
2196
  "is-disabled": g,
2222
2197
  "is-unchecked": !o,
2223
- [`position-${v}`]: !!v,
2198
+ [`position-${y}`]: !!y,
2224
2199
  [`theme-${f}`]: !!f
2225
2200
  }))
2226
2201
  }), [l("div", {
2227
- className: q("input-wrapper")
2202
+ className: M("input-wrapper")
2228
2203
  }, [l("input", h({
2229
2204
  ref: s,
2230
2205
  type: "checkbox",
2231
2206
  role: "switch",
2232
2207
  id: b,
2233
- className: q("input-native"),
2234
- name: u,
2208
+ className: M("input-native"),
2209
+ name: c,
2235
2210
  value: m,
2236
2211
  checked: !!o,
2237
- onChange: k,
2212
+ onChange: T,
2238
2213
  "aria-describedby": a ? `${b}-helper` : void 0,
2239
2214
  "aria-checked": !!o
2240
2215
  }, p?.readOnly ? {
2241
2216
  readOnly: p.readOnly
2242
2217
  } : {}, p), null), l("div", {
2243
- className: q("input-placeholder")
2218
+ className: M("input-placeholder")
2244
2219
  }, [l("div", {
2245
- className: q("input-background")
2220
+ className: M("input-background")
2246
2221
  }, null), l("div", {
2247
- className: q("input-indicator")
2222
+ className: M("input-indicator")
2248
2223
  }, null)])]), l("div", {
2249
- className: q("content")
2250
- }, [i && W({
2224
+ className: M("content")
2225
+ }, [i && V({
2251
2226
  htmlFor: b,
2252
- className: q("label"),
2227
+ className: M("label"),
2253
2228
  theme: f,
2254
2229
  children: i
2255
2230
  }), a && K({
2256
2231
  id: `${b}-helper`,
2257
- className: q("helper"),
2232
+ className: M("helper"),
2258
2233
  theme: f,
2259
2234
  children: a
2260
2235
  })])]);
2261
- }, Do = {
2236
+ }, Mo = {
2262
2237
  change: (e, t, r, a) => typeof e == "boolean" && a instanceof Event
2263
- }, Ji = /* @__PURE__ */ y((e, {
2238
+ }, Ki = /* @__PURE__ */ v((e, {
2264
2239
  emit: t,
2265
2240
  slots: r
2266
2241
  }) => {
2267
- const a = S(), n = x(), s = Ft(), o = $(() => e.id || s), {
2242
+ const a = S(), n = x(), s = Dt(), o = P(() => e.id || s), {
2268
2243
  isAnyDisabled: i,
2269
- disabledStateProps: u,
2270
- otherProps: c
2271
- } = z($(() => ({
2244
+ disabledStateProps: c,
2245
+ otherProps: u
2246
+ } = F(P(() => ({
2272
2247
  ...e,
2273
2248
  ...a
2274
2249
  }))), d = (f, m, p, g) => {
2275
2250
  i.value || (g.stopImmediatePropagation(), t("change", f, m, p, g));
2276
2251
  };
2277
- return () => l(qo, h(c.value, {
2252
+ return () => l(jo, h(u.value, {
2278
2253
  className: e.class,
2279
2254
  theme: e.theme || n.value,
2280
2255
  inputId: o.value,
@@ -2283,7 +2258,7 @@ const Hi = /* @__PURE__ */ y((e, {
2283
2258
  label: e.label || r.default?.(),
2284
2259
  inputProps: {
2285
2260
  ...e.inputProps,
2286
- ...u.value,
2261
+ ...c.value,
2287
2262
  readOnly: i.value
2288
2263
  }
2289
2264
  }), null);
@@ -2292,10 +2267,10 @@ const Hi = /* @__PURE__ */ y((e, {
2292
2267
  inheritAttrs: !1,
2293
2268
  // Redefine properties so that they come in as `props` on the `defineComponent` function
2294
2269
  props: A()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "position", "theme", "value", "aria-disabled"),
2295
- emits: Do
2296
- }), ue = "lumx-table", {
2297
- block: Fo
2298
- } = T(ue), zo = (e) => {
2270
+ emits: Mo
2271
+ }), ce = "lumx-table", {
2272
+ block: qo
2273
+ } = $(ce), Do = (e) => {
2299
2274
  const {
2300
2275
  children: t,
2301
2276
  className: r,
@@ -2308,17 +2283,17 @@ const Hi = /* @__PURE__ */ y((e, {
2308
2283
  return l("table", h({
2309
2284
  ref: s
2310
2285
  }, i, {
2311
- className: N(r, Fo({
2286
+ className: N(r, qo({
2312
2287
  "has-before": a,
2313
2288
  "has-dividers": n,
2314
2289
  [`theme-${o}`]: !!o
2315
2290
  }))
2316
2291
  }), [t]);
2317
- }, Xi = /* @__PURE__ */ y((e, {
2292
+ }, Yi = /* @__PURE__ */ v((e, {
2318
2293
  slots: t
2319
2294
  }) => {
2320
2295
  const r = S(), a = x();
2321
- return () => l(zo, h(e, r, {
2296
+ return () => l(Do, h(e, r, {
2322
2297
  className: e.class,
2323
2298
  theme: e.theme || a.value,
2324
2299
  children: t.default?.()
@@ -2327,7 +2302,7 @@ const Hi = /* @__PURE__ */ y((e, {
2327
2302
  name: "LumxTable",
2328
2303
  inheritAttrs: !1,
2329
2304
  props: A()("class", "hasBefore", "hasDividers", "theme")
2330
- }), Go = `${ue}__body`, Uo = (e) => {
2305
+ }), Fo = `${ce}__body`, zo = (e) => {
2331
2306
  const {
2332
2307
  children: t,
2333
2308
  className: r,
@@ -2337,13 +2312,13 @@ const Hi = /* @__PURE__ */ y((e, {
2337
2312
  return l("tbody", h({
2338
2313
  ref: a
2339
2314
  }, n, {
2340
- className: N(r, Go)
2315
+ className: N(r, Fo)
2341
2316
  }), [t]);
2342
- }, Qi = /* @__PURE__ */ y((e, {
2317
+ }, Ji = /* @__PURE__ */ v((e, {
2343
2318
  slots: t
2344
2319
  }) => {
2345
2320
  const r = S();
2346
- return () => l(Uo, h(e, r, {
2321
+ return () => l(zo, h(e, r, {
2347
2322
  className: e.class,
2348
2323
  children: t.default?.()
2349
2324
  }), null);
@@ -2351,17 +2326,17 @@ const Hi = /* @__PURE__ */ y((e, {
2351
2326
  name: "LumxTableBody",
2352
2327
  inheritAttrs: !1,
2353
2328
  props: A()("class")
2354
- }), ye = {
2329
+ }), ge = {
2355
2330
  asc: "asc",
2356
2331
  desc: "desc"
2357
- }, It = {
2332
+ }, Et = {
2358
2333
  body: "body",
2359
2334
  head: "head"
2360
- }, G = `${ue}__cell`, {
2335
+ }, G = `${ce}__cell`, {
2361
2336
  block: Wr
2362
- } = T(G), Ho = {
2363
- variant: It.body
2364
- }, Vo = (e) => {
2337
+ } = $(G), Go = {
2338
+ variant: Et.body
2339
+ }, Uo = (e) => {
2365
2340
  const {
2366
2341
  children: t,
2367
2342
  className: r,
@@ -2370,16 +2345,16 @@ const Hi = /* @__PURE__ */ y((e, {
2370
2345
  handleClick: s,
2371
2346
  ref: o,
2372
2347
  sortOrder: i,
2373
- variant: u = Ho.variant,
2374
- ...c
2348
+ variant: c = Go.variant,
2349
+ ...u
2375
2350
  } = e, d = s ? "button" : "div", f = d === "button" ? {
2376
2351
  type: "button",
2377
2352
  onClick: s
2378
2353
  } : void 0;
2379
2354
  let m;
2380
- return n && (m = "none", i === ye.asc && (m = "ascending"), i === ye.desc && (m = "descending")), l(U, null, [u === It.head && l("th", h({
2355
+ return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), l(Ae, null, [c === Et.head && l("th", h({
2381
2356
  ref: o
2382
- }, c, {
2357
+ }, u, {
2383
2358
  className: N(r, Wr({
2384
2359
  "is-sortable": n,
2385
2360
  "is-sorted": n && !!i,
@@ -2393,37 +2368,37 @@ const Hi = /* @__PURE__ */ y((e, {
2393
2368
  className: `${G}-icon`,
2394
2369
  icon: a,
2395
2370
  size: w.xxs
2396
- }), n && i === ye.asc && I({
2371
+ }), n && i === ge.asc && I({
2397
2372
  className: `${G}-icon`,
2398
- icon: Ka,
2373
+ icon: Va,
2399
2374
  size: w.xxs
2400
- }), n && i === ye.desc && I({
2375
+ }), n && i === ge.desc && I({
2401
2376
  className: `${G}-icon`,
2402
2377
  icon: Wa,
2403
2378
  size: w.xxs
2404
2379
  }), l("div", {
2405
2380
  className: `${G}-content`
2406
2381
  }, [t])]
2407
- })]), u === It.body && l("td", h({
2382
+ })]), c === Et.body && l("td", h({
2408
2383
  ref: o
2409
- }, c, {
2384
+ }, u, {
2410
2385
  className: N(r, Wr({
2411
2386
  body: !0
2412
2387
  }))
2413
2388
  }), [l("div", {
2414
2389
  className: `${G}-content`
2415
2390
  }, [t])])]);
2416
- }, Lt = (e) => Xr()?.vnode.props?.[e] !== void 0, Wo = {
2391
+ }, wt = (e) => Jr()?.vnode.props?.[e] !== void 0, Ho = {
2417
2392
  headerClick: () => !0
2418
- }, Zi = /* @__PURE__ */ y((e, {
2393
+ }, Xi = /* @__PURE__ */ v((e, {
2419
2394
  emit: t,
2420
2395
  slots: r,
2421
2396
  attrs: a
2422
2397
  }) => {
2423
2398
  const n = () => {
2424
2399
  t("headerClick");
2425
- }, s = Lt("onHeaderClick");
2426
- return () => l(Vo, h(e, a, {
2400
+ }, s = wt("onHeaderClick");
2401
+ return () => l(Uo, h(e, a, {
2427
2402
  className: e.class,
2428
2403
  handleClick: s ? n : void 0,
2429
2404
  children: r.default?.()
@@ -2432,8 +2407,8 @@ const Hi = /* @__PURE__ */ y((e, {
2432
2407
  name: "LumxTableCell",
2433
2408
  inheritAttrs: !1,
2434
2409
  props: A()("class", "icon", "isSortable", "sortOrder", "variant"),
2435
- emits: Wo
2436
- }), Ko = `${ue}__header`, Yo = (e) => {
2410
+ emits: Ho
2411
+ }), Wo = `${ce}__header`, Vo = (e) => {
2437
2412
  const {
2438
2413
  children: t,
2439
2414
  className: r,
@@ -2443,13 +2418,13 @@ const Hi = /* @__PURE__ */ y((e, {
2443
2418
  return l("thead", h({
2444
2419
  ref: a
2445
2420
  }, n, {
2446
- className: N(r, Ko)
2421
+ className: N(r, Wo)
2447
2422
  }), [t]);
2448
- }, el = /* @__PURE__ */ y((e, {
2423
+ }, Qi = /* @__PURE__ */ v((e, {
2449
2424
  slots: t
2450
2425
  }) => {
2451
2426
  const r = S();
2452
- return () => l(Yo, h(e, r, {
2427
+ return () => l(Vo, h(e, r, {
2453
2428
  className: e.class,
2454
2429
  children: t.default?.()
2455
2430
  }), null);
@@ -2457,9 +2432,9 @@ const Hi = /* @__PURE__ */ y((e, {
2457
2432
  name: "LumxTableHeader",
2458
2433
  inheritAttrs: !1,
2459
2434
  props: A()("class")
2460
- }), Jo = `${ue}__row`, {
2461
- block: Xo
2462
- } = T(Jo), Qo = (e) => {
2435
+ }), Ko = `${ce}__row`, {
2436
+ block: Yo
2437
+ } = $(Ko), Jo = (e) => {
2463
2438
  const {
2464
2439
  children: t,
2465
2440
  className: r,
@@ -2468,31 +2443,31 @@ const Hi = /* @__PURE__ */ y((e, {
2468
2443
  ref: s,
2469
2444
  tabIndex: o,
2470
2445
  "aria-disabled": i,
2471
- ...u
2472
- } = e, c = !!i;
2446
+ ...c
2447
+ } = e, u = !!i;
2473
2448
  return l("tr", h({
2474
2449
  ref: s,
2475
2450
  "aria-disabled": i
2476
2451
  }, o !== void 0 ? {
2477
2452
  tabIndex: o
2478
- } : {}, u, {
2479
- className: N(r, Xo({
2480
- "is-clickable": a && !c,
2481
- "is-disabled": c,
2482
- "is-selected": n && !c
2453
+ } : {}, c, {
2454
+ className: N(r, Yo({
2455
+ "is-clickable": a && !u,
2456
+ "is-disabled": u,
2457
+ "is-selected": n && !u
2483
2458
  }))
2484
2459
  }), [t]);
2485
- }, tl = /* @__PURE__ */ y((e, {
2460
+ }, Zi = /* @__PURE__ */ v((e, {
2486
2461
  slots: t
2487
2462
  }) => {
2488
2463
  const r = S(), {
2489
2464
  isAnyDisabled: a,
2490
2465
  otherProps: n
2491
- } = z($(() => ({
2466
+ } = F(P(() => ({
2492
2467
  ...e,
2493
2468
  ...r
2494
2469
  })));
2495
- return () => l(Qo, h(n.value, {
2470
+ return () => l(Jo, h(n.value, {
2496
2471
  className: e.class,
2497
2472
  tabIndex: e.isClickable && !a.value ? 0 : -1,
2498
2473
  "aria-disabled": a.value,
@@ -2503,10 +2478,10 @@ const Hi = /* @__PURE__ */ y((e, {
2503
2478
  inheritAttrs: !1,
2504
2479
  props: A()("class", "isClickable", "isDisabled", "isSelected")
2505
2480
  });
2506
- function kt(e, t) {
2481
+ function St(e, t) {
2507
2482
  return t?.type === "error" || e?.complete && !e.getAttribute("src") ? "hasError" : !e || !e.complete ? "isLoading" : "isLoaded";
2508
2483
  }
2509
- function Zo({
2484
+ function Xo({
2510
2485
  image: e,
2511
2486
  aspectRatio: t,
2512
2487
  focusPoint: r,
@@ -2515,14 +2490,14 @@ function Zo({
2515
2490
  element: s,
2516
2491
  isLoaded: o
2517
2492
  }) {
2518
- if (!(!e || t === Zr.original || !r?.x && !r?.y)) {
2493
+ if (!(!e || t === Qr.original || !r?.x && !r?.y)) {
2519
2494
  if (typeof a == "number" && typeof n == "number")
2520
2495
  return { width: a, height: n };
2521
2496
  if (s && o)
2522
2497
  return { width: s.naturalWidth, height: s.naturalHeight };
2523
2498
  }
2524
2499
  }
2525
- function Kr({
2500
+ function Vr({
2526
2501
  scale: e,
2527
2502
  focusPoint: t,
2528
2503
  imageSize: r,
@@ -2533,7 +2508,7 @@ function Kr({
2533
2508
  const i = (t * n - a / 2) / (n - a);
2534
2509
  return Math.floor(Math.max(Math.min(i, 1), 0) * 100);
2535
2510
  }
2536
- function ei({
2511
+ function Qo({
2537
2512
  image: e,
2538
2513
  aspectRatio: t,
2539
2514
  focusPoint: r,
@@ -2541,153 +2516,153 @@ function ei({
2541
2516
  imageSize: n,
2542
2517
  containerSize: s
2543
2518
  }) {
2544
- if (!e || t === Zr.original || !r?.x && !r?.y)
2519
+ if (!e || t === Qr.original || !r?.x && !r?.y)
2545
2520
  return {};
2546
2521
  if (!a || !n)
2547
2522
  return { visibility: "hidden" };
2548
2523
  if (!s || !n.height || !n.width)
2549
2524
  return {};
2550
- const o = n.height / s.height, i = n.width / s.width, u = Math.min(i, o), c = Math.abs((r?.y || 0) - 1) / 2, d = Kr({
2551
- scale: u,
2552
- focusPoint: c,
2525
+ const o = n.height / s.height, i = n.width / s.width, c = Math.min(i, o), u = Math.abs((r?.y || 0) - 1) / 2, d = Vr({
2526
+ scale: c,
2527
+ focusPoint: u,
2553
2528
  imageSize: n.height,
2554
2529
  containerSize: s.height
2555
2530
  }), f = Math.abs((r?.x || 0) + 1) / 2;
2556
- return { objectPosition: `${Kr({
2557
- scale: u,
2531
+ return { objectPosition: `${Vr({
2532
+ scale: c,
2558
2533
  focusPoint: f,
2559
2534
  imageSize: n.width,
2560
2535
  containerSize: s.width
2561
2536
  })}% ${d}%` };
2562
2537
  }
2563
- const ti = "lumx-thumbnail", {
2564
- block: ri,
2565
- element: ne
2566
- } = Q.bem(ti), Yr = {
2567
- fallback: Ya,
2538
+ const Zo = "lumx-thumbnail", {
2539
+ block: ei,
2540
+ element: re
2541
+ } = W.bem(Zo), Kr = {
2542
+ fallback: Ka,
2568
2543
  loading: "lazy"
2569
- }, ai = (e) => {
2544
+ }, ti = (e) => {
2570
2545
  const {
2571
2546
  align: t,
2572
2547
  alt: r,
2573
- aspectRatio: a = xa.original,
2548
+ aspectRatio: a = _a.original,
2574
2549
  badge: n,
2575
2550
  className: s,
2576
2551
  crossOrigin: o,
2577
2552
  ref: i,
2578
- fallback: u = Yr.fallback,
2579
- focusPointStyle: c,
2553
+ fallback: c = Kr.fallback,
2554
+ focusPointStyle: u,
2580
2555
  fillHeight: d,
2581
2556
  image: f,
2582
2557
  imgProps: m,
2583
2558
  imgRef: p,
2584
2559
  isLoading: g,
2585
2560
  objectFit: b,
2586
- loading: v = Yr.loading,
2561
+ loading: y = Kr.loading,
2587
2562
  loadingPlaceholderImageRef: C,
2588
- isAnyDisabled: k,
2589
- disabledStateProps: _,
2590
- size: O,
2591
- theme: L,
2592
- loadingState: B,
2593
- variant: de,
2563
+ isAnyDisabled: T,
2564
+ disabledStateProps: E,
2565
+ size: L,
2566
+ theme: B,
2567
+ loadingState: z,
2568
+ variant: ue,
2594
2569
  linkProps: Y,
2595
- linkAs: fe,
2596
- handleClick: me,
2597
- handleKeyPress: P,
2598
- ...he
2599
- } = e, R = g || B === "isLoading", pe = B === "hasError", be = pe && typeof u == "string", Gt = pe && !be, Ee = {};
2600
- be ? Ee.visibility = "hidden" : Gt && (Ee.display = "none");
2601
- const Ut = !!(Y?.href || fe), we = !k && !!(Ut || me || P), ee = {
2602
- ...he
2570
+ linkAs: de,
2571
+ handleClick: fe,
2572
+ handleKeyPress: k,
2573
+ ...me
2574
+ } = e, O = g || z === "isLoading", he = z === "hasError", pe = he && typeof c == "string", zt = he && !pe, xe = {};
2575
+ pe ? xe.visibility = "hidden" : zt && (xe.display = "none");
2576
+ const Gt = !!(Y?.href || de), Ee = !T && !!(Gt || fe || k), Q = {
2577
+ ...me
2603
2578
  };
2604
- we && (Object.assign(ee, {
2605
- as: fe || (Y?.href ? "a" : "button")
2606
- }, _), Ut ? Object.assign(ee, Y) : ee["aria-label"] = he["aria-label"] || r);
2607
- const Ht = Q.join(Y?.className, s, ri({
2579
+ Ee && (Object.assign(Q, {
2580
+ as: de || (Y?.href ? "a" : "button")
2581
+ }, E), Gt ? Object.assign(Q, Y) : Q["aria-label"] = me["aria-label"] || r);
2582
+ const Ut = W.join(Y?.className, s, ei({
2608
2583
  [`align-${t}`]: !!t,
2609
2584
  [`aspect-ratio-${a}`]: !!a,
2610
- [`size-${O}`]: !!O,
2611
- [`theme-${L}`]: !!L,
2612
- [`variant-${de}`]: !!de,
2613
- "is-clickable": we,
2614
- "has-error": pe,
2615
- "has-icon-error-fallback": be,
2616
- "has-custom-error-fallback": Gt,
2617
- "is-loading": R,
2585
+ [`size-${L}`]: !!L,
2586
+ [`theme-${B}`]: !!B,
2587
+ [`variant-${ue}`]: !!ue,
2588
+ "is-clickable": Ee,
2589
+ "has-error": he,
2590
+ "has-icon-error-fallback": pe,
2591
+ "has-custom-error-fallback": zt,
2592
+ "is-loading": O,
2618
2593
  [`object-fit-${b}`]: !!b,
2619
2594
  "has-badge": !!n,
2620
2595
  "fill-height": d
2621
- })), te = R && C?.current?.complete && C?.current || void 0, Ta = te ? {
2622
- backgroundImage: `url(${te.src})`
2623
- } : void 0, Vt = l(U, null, [l("span", {
2624
- className: ne("background")
2596
+ })), Z = O && C?.current?.complete && C?.current || void 0, $a = Z ? {
2597
+ backgroundImage: `url(${Z.src})`
2598
+ } : void 0, Ht = l(Ae, null, [l("span", {
2599
+ className: re("background")
2625
2600
  }, [l("img", h({
2626
- width: te?.naturalWidth,
2627
- height: te?.naturalHeight
2601
+ width: Z?.naturalWidth,
2602
+ height: Z?.naturalHeight
2628
2603
  }, m, {
2629
2604
  style: {
2630
2605
  // Reserve space while loading (when possible)
2631
- width: R ? m?.width || te?.naturalWidth : void 0,
2606
+ width: O ? m?.width || Z?.naturalWidth : void 0,
2632
2607
  ...m?.style,
2633
- ...Ee,
2634
- ...c,
2635
- ...Ta
2608
+ ...xe,
2609
+ ...u,
2610
+ ...$a
2636
2611
  },
2637
2612
  ref: p,
2638
- className: Q.join(ne("image", {
2639
- "is-loading": R,
2613
+ className: W.join(re("image", {
2614
+ "is-loading": O,
2640
2615
  "has-defined-size": !!(m?.height && m.width)
2641
2616
  }), m?.className),
2642
2617
  crossOrigin: o,
2643
2618
  src: f,
2644
2619
  alt: r,
2645
- loading: v
2646
- }), null), !R && pe && l("span", {
2647
- className: ne("fallback")
2648
- }, [be ? I({
2649
- icon: u,
2650
- size: Ea.xxs,
2651
- theme: L
2652
- }) : u])]), n]);
2653
- return we ? ua({
2620
+ loading: y
2621
+ }), null), !O && he && l("span", {
2622
+ className: re("fallback")
2623
+ }, [pe ? I({
2624
+ icon: c,
2625
+ size: xa.xxs,
2626
+ theme: B
2627
+ }) : c])]), n]);
2628
+ return Ee ? Mt({
2654
2629
  ref: i,
2655
- ...ee,
2656
- className: Ht,
2657
- children: Vt,
2658
- handleClick: me,
2659
- handleKeyPress: P
2630
+ ...Q,
2631
+ className: Ut,
2632
+ children: Ht,
2633
+ handleClick: fe,
2634
+ handleKeyPress: k
2660
2635
  }) : l("div", h({
2661
2636
  ref: i
2662
- }, ee, {
2663
- className: Ht
2664
- }), [Vt]);
2637
+ }, Q, {
2638
+ className: Ut
2639
+ }), [Ht]);
2665
2640
  };
2666
- function ni(e, t) {
2667
- const r = se(kt(t.value));
2668
- V(
2641
+ function ri(e, t) {
2642
+ const r = ne(St(t.value));
2643
+ H(
2669
2644
  [e, t],
2670
2645
  () => {
2671
- r.value = kt(t.value);
2646
+ r.value = St(t.value);
2672
2647
  },
2673
2648
  { immediate: !0 }
2674
2649
  );
2675
2650
  const a = (n) => {
2676
- t.value && (r.value = kt(t.value, n));
2651
+ t.value && (r.value = St(t.value, n));
2677
2652
  };
2678
- return V(
2653
+ return H(
2679
2654
  t,
2680
2655
  (n, s) => {
2681
2656
  s && (s.removeEventListener("load", a), s.removeEventListener("error", a)), n && (n.addEventListener("load", a), n.addEventListener("error", a));
2682
2657
  },
2683
2658
  { immediate: !0 }
2684
- ), Ma(() => {
2659
+ ), ja(() => {
2685
2660
  t.value && (t.value.removeEventListener("load", a), t.value.removeEventListener("error", a));
2686
2661
  }), r;
2687
2662
  }
2688
- function si(e) {
2689
- const { image: t, aspectRatio: r, focusPoint: a, width: n, height: s, element: o, isLoaded: i } = e, u = $(
2690
- () => Zo({
2663
+ function ai(e) {
2664
+ const { image: t, aspectRatio: r, focusPoint: a, width: n, height: s, element: o, isLoaded: i } = e, c = P(
2665
+ () => Xo({
2691
2666
  image: t.value,
2692
2667
  aspectRatio: r.value,
2693
2668
  focusPoint: a.value,
@@ -2696,45 +2671,45 @@ function si(e) {
2696
2671
  element: o.value,
2697
2672
  isLoaded: i.value
2698
2673
  })
2699
- ), c = se(void 0), d = () => {
2674
+ ), u = ne(void 0), d = () => {
2700
2675
  const m = o.value?.offsetWidth, p = o.value?.offsetHeight;
2701
2676
  if (m && p) {
2702
- const g = c.value;
2703
- (g?.width !== m || g?.height !== p) && (c.value = { width: m, height: p });
2704
- } else u.value && requestAnimationFrame(d);
2677
+ const g = u.value;
2678
+ (g?.width !== m || g?.height !== p) && (u.value = { width: m, height: p });
2679
+ } else c.value && requestAnimationFrame(d);
2705
2680
  };
2706
- return V(
2707
- [() => o.value?.offsetWidth, () => o.value?.offsetHeight, u],
2681
+ return H(
2682
+ [() => o.value?.offsetWidth, () => o.value?.offsetHeight, c],
2708
2683
  () => {
2709
- qa(d);
2684
+ Ma(d);
2710
2685
  },
2711
2686
  { immediate: !0 }
2712
- ), $(
2713
- () => ei({
2687
+ ), P(
2688
+ () => Qo({
2714
2689
  image: t.value,
2715
2690
  aspectRatio: r.value,
2716
2691
  focusPoint: a.value,
2717
2692
  element: o.value,
2718
- imageSize: u.value,
2719
- containerSize: c.value
2693
+ imageSize: c.value,
2694
+ containerSize: u.value
2720
2695
  })
2721
2696
  );
2722
2697
  }
2723
- const oi = {
2698
+ const ni = {
2724
2699
  click: (e) => e instanceof Event,
2725
2700
  keyPress: (e) => e instanceof Event
2726
- }, rl = /* @__PURE__ */ y((e, {
2701
+ }, el = /* @__PURE__ */ v((e, {
2727
2702
  emit: t,
2728
2703
  slots: r
2729
2704
  }) => {
2730
- const a = S(), n = x(), s = se(), o = Lt("onClick"), i = Lt("onKeyPress"), {
2731
- isAnyDisabled: u,
2732
- disabledStateProps: c,
2705
+ const a = S(), n = x(), s = ne(), o = wt("onClick"), i = wt("onKeyPress"), {
2706
+ isAnyDisabled: c,
2707
+ disabledStateProps: u,
2733
2708
  otherProps: d
2734
- } = z($(() => ({
2709
+ } = F(P(() => ({
2735
2710
  ...e,
2736
2711
  ...a
2737
- }))), f = ni(J(() => e.image), s), m = $(() => f.value === "isLoaded"), p = si({
2712
+ }))), f = ri(J(() => e.image), s), m = P(() => f.value === "isLoaded"), p = ai({
2738
2713
  image: J(() => e.image),
2739
2714
  aspectRatio: J(() => e.aspectRatio),
2740
2715
  focusPoint: J(() => e.focusPoint),
@@ -2742,18 +2717,18 @@ const oi = {
2742
2717
  height: J(() => typeof e.imgProps?.height == "number" ? e.imgProps.height : void 0),
2743
2718
  element: s,
2744
2719
  isLoaded: m
2745
- }), g = (v) => {
2746
- u.value || (v.stopImmediatePropagation(), t("click", v));
2747
- }, b = (v) => {
2748
- u.value || (v.stopImmediatePropagation(), t("keyPress", v));
2720
+ }), g = (y) => {
2721
+ c.value || (y.stopImmediatePropagation(), t("click", y));
2722
+ }, b = (y) => {
2723
+ c.value || (y.stopImmediatePropagation(), t("keyPress", y));
2749
2724
  };
2750
2725
  return () => {
2751
- const v = r.badge?.(), C = r.fallback?.();
2752
- return l(ai, h(d.value, {
2726
+ const y = r.badge?.(), C = r.fallback?.();
2727
+ return l(ti, h(d.value, {
2753
2728
  className: e.class,
2754
2729
  theme: e.theme || n.value,
2755
- isAnyDisabled: u.value,
2756
- disabledStateProps: c.value,
2730
+ isAnyDisabled: c.value,
2731
+ disabledStateProps: u.value,
2757
2732
  focusPointStyle: p.value,
2758
2733
  loadingState: f.value,
2759
2734
  imgRef: s,
@@ -2761,17 +2736,17 @@ const oi = {
2761
2736
  handleClick: o ? g : void 0,
2762
2737
  handleKeyPress: i ? b : void 0,
2763
2738
  fallback: C,
2764
- badge: v && (Array.isArray(v) ? v.map((k) => ({
2765
- ...k,
2739
+ badge: y && (Array.isArray(y) ? y.map((T) => ({
2740
+ ...T,
2766
2741
  props: {
2767
- ...k.props,
2768
- class: Q.join(ne("badge"), k.props?.class)
2742
+ ...T.props,
2743
+ class: W.join(re("badge"), T.props?.class)
2769
2744
  }
2770
2745
  })) : {
2771
- ...v,
2746
+ ...y,
2772
2747
  props: {
2773
- ...v.props,
2774
- class: Q.join(ne("badge"), v.props?.class)
2748
+ ...y.props,
2749
+ class: W.join(re("badge"), y.props?.class)
2775
2750
  }
2776
2751
  })
2777
2752
  }), null);
@@ -2780,17 +2755,17 @@ const oi = {
2780
2755
  name: "LumxThumbnail",
2781
2756
  inheritAttrs: !1,
2782
2757
  props: A()("align", "alt", "aspectRatio", "class", "crossOrigin", "fillHeight", "focusPoint", "image", "imgProps", "isLoading", "linkAs", "linkProps", "loading", "loadingPlaceholderImageRef", "objectFit", "size", "theme", "variant", "aria-disabled", "aria-label"),
2783
- emits: oi
2784
- }), al = {
2758
+ emits: ni
2759
+ }), tl = {
2785
2760
  squared: "squared",
2786
2761
  rounded: "rounded"
2787
- }, nl = {
2762
+ }, rl = {
2788
2763
  cover: "cover",
2789
2764
  contain: "contain"
2790
- }, sl = "Toolbar", ii = "lumx-toolbar", {
2791
- block: li,
2792
- element: $t
2793
- } = T(ii), ci = (e) => {
2765
+ }, al = "Toolbar", si = "lumx-toolbar", {
2766
+ block: oi,
2767
+ element: kt
2768
+ } = $(si), ii = (e) => {
2794
2769
  const {
2795
2770
  after: t,
2796
2771
  before: r,
@@ -2802,23 +2777,23 @@ const oi = {
2802
2777
  return l("div", h({
2803
2778
  ref: s
2804
2779
  }, o, {
2805
- className: N(a, li({
2780
+ className: N(a, oi({
2806
2781
  "has-after": !!t,
2807
2782
  "has-before": !!r,
2808
2783
  "has-label": !!n
2809
2784
  }))
2810
2785
  }), [r && l("div", {
2811
- className: $t("before")
2786
+ className: kt("before")
2812
2787
  }, [r]), n && l("div", {
2813
- className: $t("label")
2788
+ className: kt("label")
2814
2789
  }, [n]), t && l("div", {
2815
- className: $t("after")
2790
+ className: kt("after")
2816
2791
  }, [t])]);
2817
- }, ol = /* @__PURE__ */ y((e, {
2792
+ }, nl = /* @__PURE__ */ v((e, {
2818
2793
  slots: t
2819
2794
  }) => {
2820
2795
  const r = S();
2821
- return () => l(ci, h(e, r, {
2796
+ return () => l(ii, h(e, r, {
2822
2797
  className: e.class,
2823
2798
  label: t.default?.(),
2824
2799
  before: t.before?.(),
@@ -2830,55 +2805,55 @@ const oi = {
2830
2805
  props: A()("class")
2831
2806
  });
2832
2807
  export {
2833
- ki as Badge,
2834
- $i as BadgeWrapper,
2835
- Ti as Button,
2836
- _i as ButtonGroup,
2837
- Ro as CLASSNAME,
2838
- Yi as COMPONENT_NAME,
2839
- xi as Checkbox,
2840
- Mo as DEFAULT_PROPS,
2841
- Ei as Divider,
2842
- wi as Flag,
2843
- Ii as FlexBox,
2844
- Aa as GRID_COLUMN_CLASSNAME,
2845
- Ys as GRID_COLUMN_COMPONENT_NAME,
2846
- Li as GridColumn,
2847
- Oi as Heading,
2848
- Bi as HeadingLevelProvider,
2849
- _t as Icon,
2850
- Ci as IconButton,
2851
- Ri as InputHelper,
2852
- ji as InputLabel,
2853
- Mi as Link,
2854
- qi as Message,
2855
- uo as PROGRESS_CIRCULAR_CLASSNAME,
2856
- Di as PROGRESS_CIRCULAR_COMPONENT_NAME,
2857
- ho as PROGRESS_LINEAR_CLASSNAME,
2858
- zi as PROGRESS_LINEAR_COMPONENT_NAME,
2859
- Fi as ProgressCircular,
2860
- Gi as ProgressLinear,
2861
- Ui as RadioButton,
2862
- Hi as RadioGroup,
2863
- Vi as SkeletonCircle,
2864
- Wi as SkeletonRectangle,
2865
- To as SkeletonRectangleVariant,
2866
- Ki as SkeletonTypography,
2867
- Ji as Switch,
2868
- sl as TOOLBAR_NAME,
2869
- Xi as Table,
2870
- Qi as TableBody,
2871
- Zi as TableCell,
2872
- It as TableCellVariant,
2873
- el as TableHeader,
2874
- tl as TableRow,
2875
- Dt as Text,
2876
- ye as ThOrder,
2877
- rl as Thumbnail,
2878
- nl as ThumbnailObjectFit,
2879
- al as ThumbnailVariant,
2880
- ol as Toolbar,
2881
- Wo as emitSchema,
2882
- Pa as useHeadingLevel
2808
+ Si as Badge,
2809
+ ki as BadgeWrapper,
2810
+ Pi as Button,
2811
+ Ti as ButtonGroup,
2812
+ Oo as CLASSNAME,
2813
+ Vi as COMPONENT_NAME,
2814
+ Ci as Checkbox,
2815
+ Ro as DEFAULT_PROPS,
2816
+ _i as Divider,
2817
+ xi as Flag,
2818
+ Ei as FlexBox,
2819
+ ya as GRID_COLUMN_CLASSNAME,
2820
+ Ks as GRID_COLUMN_COMPONENT_NAME,
2821
+ wi as GridColumn,
2822
+ Ii as Heading,
2823
+ Li as HeadingLevelProvider,
2824
+ Tt as Icon,
2825
+ $i as IconButton,
2826
+ Oi as InputHelper,
2827
+ Bi as InputLabel,
2828
+ Ri as Link,
2829
+ ji as Message,
2830
+ lo as PROGRESS_CIRCULAR_CLASSNAME,
2831
+ Mi as PROGRESS_CIRCULAR_COMPONENT_NAME,
2832
+ fo as PROGRESS_LINEAR_CLASSNAME,
2833
+ Di as PROGRESS_LINEAR_COMPONENT_NAME,
2834
+ qi as ProgressCircular,
2835
+ Fi as ProgressLinear,
2836
+ zi as RadioButton,
2837
+ Gi as RadioGroup,
2838
+ Ui as SkeletonCircle,
2839
+ Hi as SkeletonRectangle,
2840
+ Po as SkeletonRectangleVariant,
2841
+ Wi as SkeletonTypography,
2842
+ Ki as Switch,
2843
+ al as TOOLBAR_NAME,
2844
+ Yi as Table,
2845
+ Ji as TableBody,
2846
+ Xi as TableCell,
2847
+ Et as TableCellVariant,
2848
+ Qi as TableHeader,
2849
+ Zi as TableRow,
2850
+ qt as Text,
2851
+ ge as ThOrder,
2852
+ el as Thumbnail,
2853
+ rl as ThumbnailObjectFit,
2854
+ tl as ThumbnailVariant,
2855
+ nl as Toolbar,
2856
+ Ho as emitSchema,
2857
+ Aa as useHeadingLevel
2883
2858
  };
2884
2859
  //# sourceMappingURL=index.js.map