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

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