@lumx/vue 4.3.2-alpha.33 → 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,40 +1030,39 @@ 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, {
1072
- onClick: u
1073
- }, {
1062
+ return l(ke, h(i.value, o.value, {
1074
1063
  className: e.class,
1075
1064
  theme: e.theme || n.value,
1065
+ onClick: u,
1076
1066
  children: d
1077
1067
  }), null);
1078
1068
  };
@@ -1080,20 +1070,20 @@ const Rt = /* @__PURE__ */ y((e, {
1080
1070
  name: "LumxButton",
1081
1071
  inheritAttrs: !1,
1082
1072
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1083
- 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"),
1084
- emits: ao
1085
- }), no = "IconButton", oo = "lumx-icon-button", _t = {
1086
- emphasis: V.high,
1087
- 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
1088
1078
  }, de = (e) => {
1089
1079
  const {
1090
- emphasis: t = _t.emphasis,
1080
+ emphasis: t = xt.emphasis,
1091
1081
  image: r,
1092
1082
  icon: a,
1093
1083
  label: n,
1094
- size: o = _t.size,
1095
- ...s
1096
- } = e, i = r ? c("img", {
1084
+ size: s = xt.size,
1085
+ ...o
1086
+ } = e, i = r ? l("img", {
1097
1087
  alt: "",
1098
1088
  src: r
1099
1089
  }, null) : I({
@@ -1101,63 +1091,62 @@ const Rt = /* @__PURE__ */ y((e, {
1101
1091
  });
1102
1092
  return ue({
1103
1093
  emphasis: t,
1104
- size: o,
1105
- ...s,
1094
+ size: s,
1095
+ ...o,
1106
1096
  "aria-label": n,
1107
1097
  variant: "icon",
1108
1098
  children: i
1109
1099
  });
1110
1100
  };
1111
- de.displayName = no;
1112
- de.className = oo;
1113
- de.defaultProps = _t;
1114
- const so = {
1101
+ de.displayName = is;
1102
+ de.className = ls;
1103
+ de.defaultProps = xt;
1104
+ const cs = {
1115
1105
  click: (e) => e instanceof MouseEvent
1116
- }, bi = /* @__PURE__ */ y((e, {
1106
+ }, $i = /* @__PURE__ */ y((e, {
1117
1107
  emit: t
1118
1108
  }) => {
1119
- const r = k(), a = w(), {
1109
+ const r = P(), a = x(), {
1120
1110
  isAnyDisabled: n,
1121
- disabledStateProps: o,
1122
- otherProps: s
1123
- } = H(T(() => ({
1111
+ disabledStateProps: s,
1112
+ otherProps: o
1113
+ } = z($(() => ({
1124
1114
  ...e,
1125
1115
  ...r
1126
1116
  }))), i = (u) => {
1127
1117
  n.value || (u.stopImmediatePropagation(), t("click", u));
1128
1118
  };
1129
- return () => c(de, h(s.value, o.value, {
1130
- onClick: i
1131
- }, {
1119
+ return () => l(de, h(o.value, s.value, {
1132
1120
  className: e.class,
1133
1121
  theme: e.theme || a.value,
1134
1122
  title: e.label,
1135
- label: e.label
1123
+ label: e.label,
1124
+ onClick: i
1136
1125
  }), null);
1137
1126
  }, {
1138
1127
  name: "IconButton",
1139
1128
  inheritAttrs: !1,
1140
1129
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1141
- 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"),
1142
- emits: so
1143
- }), 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) => {
1144
1133
  const {
1145
1134
  children: t,
1146
1135
  className: r,
1147
1136
  ...a
1148
1137
  } = e;
1149
- return c("div", h(a, {
1150
- className: A(r, da)
1138
+ return l("div", h(a, {
1139
+ className: N(r, ha)
1151
1140
  }), [t]);
1152
1141
  };
1153
- Pe.displayName = io;
1154
- Pe.className = da;
1155
- Pe.defaultProps = lo;
1156
- const gi = /* @__PURE__ */ y((e, {
1142
+ $e.displayName = us;
1143
+ $e.className = ha;
1144
+ $e.defaultProps = ds;
1145
+ const Ti = /* @__PURE__ */ y((e, {
1157
1146
  slots: t
1158
1147
  }) => {
1159
- const r = k();
1160
- return () => c(Pe, h(e, r, {
1148
+ const r = P();
1149
+ return () => l($e, h(e, r, {
1161
1150
  className: e.class,
1162
1151
  children: t.default?.()
1163
1152
  }), null);
@@ -1165,81 +1154,81 @@ const gi = /* @__PURE__ */ y((e, {
1165
1154
  name: "ButtonGroup",
1166
1155
  inheritAttrs: !1,
1167
1156
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1168
- props: S()("class")
1169
- }), co = "InputLabel", uo = "lumx-input-label", fa = uo, {
1170
- block: fo
1171
- } = $(fa), mo = {};
1172
- 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) {
1173
1162
  const {
1174
1163
  children: t,
1175
1164
  className: r,
1176
1165
  htmlFor: a,
1177
1166
  isRequired: n,
1178
- theme: o,
1179
- typography: s,
1167
+ theme: s,
1168
+ typography: o,
1180
1169
  ref: i,
1181
1170
  ...u
1182
1171
  } = e;
1183
- return c("label", h({
1172
+ return l("label", h({
1184
1173
  ref: i
1185
1174
  }, u, {
1186
1175
  htmlFor: a,
1187
- className: A(r, fo({
1176
+ className: N(r, hs({
1188
1177
  "is-required": n,
1189
- [`theme-${o}`]: !!o,
1190
- "has-custom-typography": !!s
1191
- }), s && Bt(s))
1178
+ [`theme-${s}`]: !!s,
1179
+ "has-custom-typography": !!o
1180
+ }), o && Rt(o))
1192
1181
  }), [t]);
1193
1182
  }
1194
- U.displayName = co;
1195
- U.className = fa;
1196
- U.defaultProps = mo;
1197
- const ho = {
1183
+ W.displayName = fs;
1184
+ W.className = pa;
1185
+ W.defaultProps = ps;
1186
+ const bs = {
1198
1187
  [D.error]: { color: "red" },
1199
1188
  [D.success]: { color: "green" },
1200
1189
  [D.warning]: { color: "yellow" }
1201
- }, po = "InputHelper", bo = "lumx-input-helper", ma = bo, {
1202
- block: go
1203
- } = $(ma), ha = {
1190
+ }, gs = "InputHelper", vs = "lumx-input-helper", ba = vs, {
1191
+ block: ys
1192
+ } = T(ba), ga = {
1204
1193
  kind: D.info
1205
1194
  };
1206
1195
  function K(e) {
1207
1196
  const {
1208
1197
  children: t,
1209
1198
  className: r,
1210
- kind: a = ha.kind,
1199
+ kind: a = ga.kind,
1211
1200
  theme: n,
1212
- ref: o,
1213
- ...s
1201
+ ref: s,
1202
+ ...o
1214
1203
  } = e, {
1215
1204
  color: i
1216
- } = ho[a] || {};
1217
- return c("p", h({
1218
- ref: o
1219
- }, s, {
1220
- className: A(r, go({
1205
+ } = bs[a] || {};
1206
+ return l("p", h({
1207
+ ref: s
1208
+ }, o, {
1209
+ className: N(r, ys({
1221
1210
  [`color-${i}`]: !!i,
1222
1211
  [`theme-${n}`]: !!n
1223
1212
  }))
1224
1213
  }), [t]);
1225
1214
  }
1226
- K.displayName = po;
1227
- K.className = ma;
1228
- K.defaultProps = ha;
1229
- const pa = "intermediate", vo = "lumx-checkbox", {
1230
- block: yo,
1231
- element: R
1232
- } = $(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) => {
1233
1222
  const {
1234
1223
  checked: t,
1235
1224
  className: r,
1236
1225
  helper: a,
1237
1226
  id: n,
1238
- inputRef: o,
1239
- isChecked: s = t,
1227
+ inputRef: s,
1228
+ isChecked: o = t,
1240
1229
  label: i,
1241
1230
  name: u,
1242
- ref: l,
1231
+ ref: c,
1243
1232
  onChange: d,
1244
1233
  theme: f,
1245
1234
  value: m,
@@ -1247,89 +1236,88 @@ const pa = "intermediate", vo = "lumx-checkbox", {
1247
1236
  isDisabled: g,
1248
1237
  inputId: b,
1249
1238
  ...v
1250
- } = e, C = s === pa, P = (_) => {
1251
- d && d(!s, m, u, _);
1239
+ } = e, C = o === va, k = (_) => {
1240
+ d && d(!o, m, u, _);
1252
1241
  };
1253
- return c("div", h({
1254
- ref: l
1242
+ return l("div", h({
1243
+ ref: c
1255
1244
  }, v, {
1256
- className: A(r, yo({
1245
+ className: N(r, As({
1257
1246
  // Whether state is intermediate class name will "-checked"
1258
- "is-checked": C ? !0 : s,
1247
+ "is-checked": C ? !0 : o,
1259
1248
  "is-disabled": g,
1260
- "is-unchecked": !s,
1249
+ "is-unchecked": !o,
1261
1250
  [`theme-${f}`]: !!f
1262
1251
  }))
1263
- }), [c("div", {
1264
- className: R("input-wrapper")
1265
- }, [c("input", h({
1266
- ref: o,
1252
+ }), [l("div", {
1253
+ className: j("input-wrapper")
1254
+ }, [l("input", h({
1255
+ ref: s,
1267
1256
  type: "checkbox",
1268
1257
  id: b,
1269
- className: R("input-native"),
1258
+ className: j("input-native"),
1270
1259
  name: u,
1271
1260
  value: m,
1272
- checked: s,
1273
- onChange: P,
1261
+ checked: o,
1262
+ onChange: k,
1274
1263
  "aria-describedby": a ? `${b}-helper` : void 0,
1275
- "aria-checked": C ? "mixed" : !!s
1264
+ "aria-checked": C ? "mixed" : !!o
1276
1265
  }, p?.readOnly ? {
1277
1266
  readOnly: p.readOnly
1278
- } : {}, p), null), c("div", {
1279
- className: R("input-placeholder")
1280
- }, [c("div", {
1281
- className: R("input-background")
1282
- }, null), c("div", {
1283
- 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")
1284
1273
  }, [I({
1285
- icon: C ? Ra : ja
1286
- })])])]), c("div", {
1287
- className: R("content")
1288
- }, [i && U({
1274
+ icon: C ? Da : qa
1275
+ })])])]), l("div", {
1276
+ className: j("content")
1277
+ }, [i && W({
1289
1278
  htmlFor: b,
1290
- className: R("label"),
1279
+ className: j("label"),
1291
1280
  theme: f,
1292
1281
  children: i
1293
1282
  }), a && K({
1294
1283
  id: `${b}-helper`,
1295
- className: R("helper"),
1284
+ className: j("helper"),
1296
1285
  theme: f,
1297
1286
  children: a
1298
1287
  })])]);
1299
1288
  };
1300
1289
  let Ir = 0;
1301
- function Mt() {
1290
+ function qt() {
1302
1291
  return Ir += 1, `:lumx${Ir}:`;
1303
1292
  }
1304
- const Ao = {
1293
+ const Ps = {
1305
1294
  change: (e, t, r, a) => typeof e == "boolean" && a instanceof Event
1306
- }, vi = /* @__PURE__ */ y((e, {
1295
+ }, Ci = /* @__PURE__ */ y((e, {
1307
1296
  emit: t
1308
1297
  }) => {
1309
- 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), {
1310
1299
  isAnyDisabled: i,
1311
1300
  disabledStateProps: u,
1312
- otherProps: l
1313
- } = H(T(() => ({
1301
+ otherProps: c
1302
+ } = z($(() => ({
1314
1303
  ...e,
1315
1304
  ...r
1316
- }))), d = T(() => e.isChecked === pa);
1317
- W(d, (m) => {
1318
- s.value && (s.value.indeterminate = m);
1305
+ }))), d = $(() => e.isChecked === va);
1306
+ V(d, (m) => {
1307
+ o.value && (o.value.indeterminate = m);
1319
1308
  }, {
1320
1309
  immediate: !0
1321
1310
  });
1322
1311
  const f = (m, p, g, b) => {
1323
1312
  i.value || (b?.stopImmediatePropagation?.(), t("change", m, p, g, b));
1324
1313
  };
1325
- return () => c(No, h(l.value, {
1326
- onChange: f
1327
- }, {
1314
+ return () => l(Ss, h(c.value, {
1328
1315
  className: e.class,
1329
1316
  theme: e.theme || a.value,
1330
- inputId: o.value,
1331
- inputRef: s,
1317
+ inputId: s.value,
1318
+ inputRef: o,
1332
1319
  isDisabled: i.value,
1320
+ onChange: f,
1333
1321
  label: e.label,
1334
1322
  inputProps: {
1335
1323
  ...e.inputProps,
@@ -1341,27 +1329,27 @@ const Ao = {
1341
1329
  name: "Checkbox",
1342
1330
  inheritAttrs: !1,
1343
1331
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1344
- props: S()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "theme", "value", "aria-disabled"),
1345
- emits: Ao
1346
- }), So = "lumx-divider", {
1347
- block: ko
1348
- } = $(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) => {
1349
1337
  const {
1350
1338
  className: t,
1351
1339
  theme: r,
1352
1340
  ref: a,
1353
1341
  ...n
1354
1342
  } = e;
1355
- return c("hr", h({
1343
+ return l("hr", h({
1356
1344
  ref: a
1357
1345
  }, n, {
1358
- className: A(t, ko({
1346
+ className: N(t, $s({
1359
1347
  [`theme-${r}`]: !!r
1360
1348
  }))
1361
1349
  }), null);
1362
- }, yi = /* @__PURE__ */ y((e) => {
1363
- const t = k(), r = w();
1364
- return () => c(Po, h(t, e, {
1350
+ }, _i = /* @__PURE__ */ y((e) => {
1351
+ const t = P(), r = x();
1352
+ return () => l(Ts, h(t, e, {
1365
1353
  className: e.class,
1366
1354
  theme: e.theme || r.value
1367
1355
  }), null);
@@ -1369,113 +1357,113 @@ const Ao = {
1369
1357
  name: "LumxDivider",
1370
1358
  inheritAttrs: !1,
1371
1359
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1372
- props: S()("class", "theme")
1360
+ props: A()("class", "theme")
1373
1361
  });
1374
- function To(e) {
1362
+ function Cs(e) {
1375
1363
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
1376
1364
  }
1377
- const $o = "lumx-flag", {
1378
- block: Co,
1379
- element: Er
1380
- } = $($o), _o = (e) => {
1365
+ const _s = "lumx-flag", {
1366
+ block: xs,
1367
+ element: Lr
1368
+ } = T(_s), Es = (e) => {
1381
1369
  const {
1382
1370
  children: t,
1383
1371
  icon: r,
1384
1372
  color: a,
1385
1373
  className: n,
1386
- theme: o,
1387
- truncate: s,
1374
+ theme: s,
1375
+ truncate: o,
1388
1376
  Text: i,
1389
1377
  ...u
1390
- } = e, l = a || (o === ve.light ? x.dark : x.light), d = !!s;
1391
- return c("div", h(u, {
1392
- className: A(n, Co({
1393
- [`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,
1394
1382
  "is-truncated": d
1395
1383
  }))
1396
1384
  }), [r && I({
1397
1385
  icon: r,
1398
- size: E.xxs,
1399
- className: Er("icon")
1400
- }), c(i, {
1386
+ size: w.xxs,
1387
+ className: Lr("icon")
1388
+ }), l(i, {
1401
1389
  as: "span",
1402
- truncate: !!s,
1390
+ truncate: !!o,
1403
1391
  typography: "overline",
1404
- className: Er("label")
1405
- }, To(t) ? t : {
1392
+ className: Lr("label")
1393
+ }, Cs(t) ? t : {
1406
1394
  default: () => [t]
1407
1395
  })]);
1408
- }, Ni = /* @__PURE__ */ y((e, {
1396
+ }, xi = /* @__PURE__ */ y((e, {
1409
1397
  slots: t
1410
1398
  }) => {
1411
- const r = k(), a = w();
1412
- return () => c(_o, h(e, r, {
1399
+ const r = P(), a = x();
1400
+ return () => l(Es, h(e, r, {
1413
1401
  className: e.class,
1414
1402
  theme: e.theme || a.value,
1415
1403
  children: t.default?.(),
1416
- Text: Rt
1404
+ Text: Mt
1417
1405
  }), null);
1418
1406
  }, {
1419
1407
  name: "Flag",
1420
1408
  inheritAttrs: !1,
1421
1409
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1422
- props: S()("color", "icon", "truncate", "theme", "class")
1410
+ props: A()("color", "icon", "truncate", "theme", "class")
1423
1411
  });
1424
- var dt, Lr;
1425
- function xo() {
1426
- if (Lr) return dt;
1427
- Lr = 1;
1428
- var e = aa();
1412
+ var ft, Or;
1413
+ function ws() {
1414
+ if (Or) return ft;
1415
+ Or = 1;
1416
+ var e = oa();
1429
1417
  function t() {
1430
1418
  if (!arguments.length)
1431
1419
  return [];
1432
1420
  var r = arguments[0];
1433
1421
  return e(r) ? r : [r];
1434
1422
  }
1435
- return dt = t, dt;
1423
+ return ft = t, ft;
1436
1424
  }
1437
- var wo = xo();
1438
- const Io = /* @__PURE__ */ Ne(wo), Eo = "lumx-flex-box", {
1439
- block: Lo
1440
- } = $(Eo);
1441
- 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) {
1442
1430
  const {
1443
1431
  className: t,
1444
1432
  fillSpace: r,
1445
1433
  gap: a,
1446
1434
  hAlign: n,
1447
- marginAuto: o,
1448
- noShrink: s,
1435
+ marginAuto: s,
1436
+ noShrink: o,
1449
1437
  vAlign: i,
1450
1438
  wrap: u,
1451
- orientation: l,
1439
+ orientation: c,
1452
1440
  ...d
1453
- } = e, f = l ?? (u || n || i ? Va.horizontal : null);
1441
+ } = e, f = c ?? (u || n || i ? Ka.horizontal : null);
1454
1442
  return {
1455
1443
  ...d,
1456
- className: A(t, Lo({
1444
+ className: N(t, Bs({
1457
1445
  [`orientation-${f}`]: !!f,
1458
1446
  [`v-align-${i}`]: !!i,
1459
1447
  [`h-align-${n}`]: !!n,
1460
1448
  [`gap-${a}`]: !!a,
1461
1449
  wrap: !!u,
1462
1450
  "fill-space": r,
1463
- "no-shrink": s,
1464
- ...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]))
1465
1453
  }))
1466
1454
  };
1467
1455
  }
1468
- const Ai = /* @__PURE__ */ y((e, {
1456
+ const Ei = /* @__PURE__ */ y((e, {
1469
1457
  slots: t
1470
1458
  }) => {
1471
- const r = k();
1459
+ const r = P();
1472
1460
  return () => {
1473
- const a = e.as || "div", n = Oo({
1461
+ const a = e.as || "div", n = Rs({
1474
1462
  ...e,
1475
1463
  ...r,
1476
1464
  className: e.class
1477
1465
  });
1478
- return c(a, n, {
1466
+ return l(a, n, {
1479
1467
  default: () => [t.default?.()]
1480
1468
  });
1481
1469
  };
@@ -1483,205 +1471,205 @@ const Ai = /* @__PURE__ */ y((e, {
1483
1471
  name: "FlexBox",
1484
1472
  inheritAttrs: !1,
1485
1473
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1486
- 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")
1487
1475
  });
1488
- var ft, Or;
1489
- function Bo() {
1490
- if (Or) return ft;
1491
- Or = 1;
1476
+ var mt, Br;
1477
+ function js() {
1478
+ if (Br) return mt;
1479
+ Br = 1;
1492
1480
  var e = /\s/;
1493
1481
  function t(r) {
1494
1482
  for (var a = r.length; a-- && e.test(r.charAt(a)); )
1495
1483
  ;
1496
1484
  return a;
1497
1485
  }
1498
- return ft = t, ft;
1486
+ return mt = t, mt;
1499
1487
  }
1500
- var mt, Br;
1501
- function jo() {
1502
- if (Br) return mt;
1503
- Br = 1;
1504
- 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+/;
1505
1493
  function r(a) {
1506
1494
  return a && a.slice(0, e(a) + 1).replace(t, "");
1507
1495
  }
1508
- return mt = r, mt;
1496
+ return ht = r, ht;
1509
1497
  }
1510
- var ht, jr;
1511
- function Ro() {
1512
- if (jr) return ht;
1498
+ var pt, jr;
1499
+ function qs() {
1500
+ if (jr) return pt;
1513
1501
  jr = 1;
1514
- var e = le(), t = Se(), r = "[object Symbol]";
1502
+ var e = le(), t = Pe(), r = "[object Symbol]";
1515
1503
  function a(n) {
1516
1504
  return typeof n == "symbol" || t(n) && e(n) == r;
1517
1505
  }
1518
- return ht = a, ht;
1506
+ return pt = a, pt;
1519
1507
  }
1520
- var pt, Rr;
1521
- function Mo() {
1522
- if (Rr) return pt;
1523
- Rr = 1;
1524
- 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;
1525
- function u(l) {
1526
- if (typeof l == "number")
1527
- return l;
1528
- 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))
1529
1517
  return a;
1530
- if (t(l)) {
1531
- var d = typeof l.valueOf == "function" ? l.valueOf() : l;
1532
- 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;
1533
1521
  }
1534
- if (typeof l != "string")
1535
- return l === 0 ? l : +l;
1536
- l = e(l);
1537
- var f = o.test(l);
1538
- 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;
1539
1527
  }
1540
- return pt = u, pt;
1528
+ return bt = u, bt;
1541
1529
  }
1542
- var bt, Mr;
1543
- function qo() {
1544
- if (Mr) return bt;
1545
- Mr = 1;
1546
- 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;
1547
1535
  function a(n) {
1548
1536
  if (!n)
1549
1537
  return n === 0 ? n : 0;
1550
1538
  if (n = e(n), n === t || n === -t) {
1551
- var o = n < 0 ? -1 : 1;
1552
- return o * r;
1539
+ var s = n < 0 ? -1 : 1;
1540
+ return s * r;
1553
1541
  }
1554
1542
  return n === n ? n : 0;
1555
1543
  }
1556
- return bt = a, bt;
1544
+ return gt = a, gt;
1557
1545
  }
1558
- var gt, qr;
1559
- function Do() {
1560
- if (qr) return gt;
1561
- qr = 1;
1562
- var e = qo();
1546
+ var vt, Dr;
1547
+ function zs() {
1548
+ if (Dr) return vt;
1549
+ Dr = 1;
1550
+ var e = Fs();
1563
1551
  function t(r) {
1564
1552
  var a = e(r), n = a % 1;
1565
1553
  return a === a ? n ? a - n : a : 0;
1566
1554
  }
1567
- return gt = t, gt;
1555
+ return vt = t, vt;
1568
1556
  }
1569
- var vt, Dr;
1570
- function Fo() {
1571
- if (Dr) return vt;
1572
- Dr = 1;
1573
- var e = Do();
1557
+ var yt, Fr;
1558
+ function Gs() {
1559
+ if (Fr) return yt;
1560
+ Fr = 1;
1561
+ var e = zs();
1574
1562
  function t(r) {
1575
1563
  return typeof r == "number" && r == e(r);
1576
1564
  }
1577
- return vt = t, vt;
1565
+ return yt = t, yt;
1578
1566
  }
1579
- var Ho = Fo();
1580
- const zo = /* @__PURE__ */ Ne(Ho);
1581
- function Go(e) {
1567
+ var Hs = Gs();
1568
+ const Us = /* @__PURE__ */ Ae(Hs);
1569
+ function Vs(e) {
1582
1570
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
1583
1571
  }
1584
- const Vo = "GridColumn", ba = "lumx-grid-column", Wo = {}, Te = (e) => {
1572
+ const Ws = "GridColumn", ya = "lumx-grid-column", Ks = {}, Te = (e) => {
1585
1573
  const {
1586
1574
  as: t = "div",
1587
1575
  gap: r,
1588
1576
  maxColumns: a,
1589
1577
  itemMinWidth: n,
1590
- children: o,
1591
- className: s,
1578
+ children: s,
1579
+ className: o,
1592
1580
  style: i = {},
1593
1581
  ref: u,
1594
- ...l
1582
+ ...c
1595
1583
  } = e;
1596
- return c(t, h(l, {
1584
+ return l(t, h(c, {
1597
1585
  ref: u,
1598
- className: A(s, ba),
1586
+ className: N(o, ya),
1599
1587
  style: {
1600
1588
  ...i,
1601
- "--lumx-grid-column-item-min-width": zo(n) && `${n}px`,
1589
+ "--lumx-grid-column-item-min-width": Us(n) && `${n}px`,
1602
1590
  "--lumx-grid-column-columns": a,
1603
1591
  "--lumx-grid-column-gap": r && `var(--lumx-spacing-unit-${r})`
1604
1592
  }
1605
- }), Go(o) ? o : {
1606
- default: () => [o]
1593
+ }), Vs(s) ? s : {
1594
+ default: () => [s]
1607
1595
  });
1608
1596
  };
1609
- Te.displayName = Vo;
1610
- Te.className = ba;
1611
- Te.defaultProps = Wo;
1612
- const Si = /* @__PURE__ */ y((e, {
1597
+ Te.displayName = Ws;
1598
+ Te.className = ya;
1599
+ Te.defaultProps = Ks;
1600
+ const wi = /* @__PURE__ */ y((e, {
1613
1601
  slots: t
1614
1602
  }) => {
1615
- const r = k();
1616
- return () => c(Te, h(e, r, {
1603
+ const r = P();
1604
+ return () => l(Te, h(e, r, {
1617
1605
  className: e.class,
1618
1606
  children: t.default?.()
1619
1607
  }), null);
1620
1608
  }, {
1621
1609
  name: "LumxGridColumn",
1622
1610
  inheritAttrs: !1,
1623
- props: S()("as", "class", "gap", "itemMinWidth", "maxColumns", "style")
1624
- }), Fr = 6, Uo = {
1611
+ props: A()("as", "class", "gap", "itemMinWidth", "maxColumns", "style")
1612
+ }), zr = 6, Ys = {
1625
1613
  h1: Q.display1,
1626
1614
  h2: Q.headline,
1627
1615
  h3: Q.title,
1628
1616
  h4: Q.subtitle2,
1629
1617
  h5: Q.subtitle1,
1630
1618
  h6: Q.body2
1631
- }, Ko = { level: 1, headingElement: "h1" }, Yo = "lumx-heading", Jo = (e, t) => {
1632
- 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";
1633
1621
  return {
1634
- ...o,
1635
- as: s,
1636
- className: A(a, Yo),
1637
- typography: n || Uo[s]
1622
+ ...s,
1623
+ as: o,
1624
+ className: N(a, Xs),
1625
+ typography: n || Ys[o]
1638
1626
  };
1639
- }, 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, {
1640
1628
  slots: t
1641
1629
  }) => {
1642
- const r = k(), a = va(), n = T(() => {
1630
+ const r = P(), a = Aa(), n = $(() => {
1643
1631
  const {
1644
- className: o,
1645
- ...s
1646
- } = Jo({
1632
+ className: s,
1633
+ ...o
1634
+ } = Qs({
1647
1635
  ...r,
1648
1636
  ...e,
1649
1637
  className: e.class || r.class || r.className
1650
1638
  }, a.headingElement);
1651
1639
  return {
1652
- ...s,
1653
- class: o
1640
+ ...o,
1641
+ class: s
1654
1642
  };
1655
1643
  });
1656
- return () => c(Rt, n.value, {
1644
+ return () => l(Mt, n.value, {
1657
1645
  default: () => [t.default?.()]
1658
1646
  });
1659
1647
  }, {
1660
1648
  name: "Heading",
1661
1649
  inheritAttrs: !1,
1662
1650
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1663
- props: S()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1664
- }), Xo = (e, t) => {
1651
+ props: A()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1652
+ }), Zs = (e, t) => {
1665
1653
  const r = e || t + 1;
1666
- return r > Fr ? Fr : r;
1667
- }, Pi = /* @__PURE__ */ y((e, {
1654
+ return r > zr ? zr : r;
1655
+ }, Li = /* @__PURE__ */ y((e, {
1668
1656
  slots: t
1669
1657
  }) => {
1670
1658
  const {
1671
1659
  level: r
1672
- } = 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({
1673
1661
  level: n,
1674
- headingElement: o
1662
+ headingElement: s
1675
1663
  });
1676
- return Vr(ga, s), () => t.default?.();
1664
+ return Kr(Na, o), () => t.default?.();
1677
1665
  }, {
1678
1666
  name: "HeadingLevelProvider",
1679
- props: S()("level")
1680
- }), Ti = /* @__PURE__ */ y((e, {
1667
+ props: A()("level")
1668
+ }), Oi = /* @__PURE__ */ y((e, {
1681
1669
  slots: t
1682
1670
  }) => {
1683
- const r = k(), a = w();
1684
- return () => c(K, h(e, r, {
1671
+ const r = P(), a = x();
1672
+ return () => l(K, h(e, r, {
1685
1673
  className: e.class,
1686
1674
  theme: e.theme || a.value,
1687
1675
  children: t.default?.()
@@ -1690,12 +1678,12 @@ const Si = /* @__PURE__ */ y((e, {
1690
1678
  name: "InputHelper",
1691
1679
  inheritAttrs: !1,
1692
1680
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1693
- props: S()("kind", "theme", "class", "id")
1694
- }), $i = /* @__PURE__ */ y((e, {
1681
+ props: A()("kind", "theme", "class", "id")
1682
+ }), Bi = /* @__PURE__ */ y((e, {
1695
1683
  slots: t
1696
1684
  }) => {
1697
- const r = k(), a = w();
1698
- return () => c(U, h(e, r, {
1685
+ const r = P(), a = x();
1686
+ return () => l(W, h(e, r, {
1699
1687
  className: e.class,
1700
1688
  theme: e.theme || a.value,
1701
1689
  children: t.default?.()
@@ -1704,81 +1692,80 @@ const Si = /* @__PURE__ */ y((e, {
1704
1692
  name: "InputLabel",
1705
1693
  inheritAttrs: !1,
1706
1694
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1707
- props: S()("htmlFor", "isRequired", "typography", "theme", "class")
1695
+ props: A()("htmlFor", "isRequired", "typography", "theme", "class")
1708
1696
  });
1709
- function Qo(e) {
1697
+ function eo(e) {
1710
1698
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
1711
1699
  }
1712
- const Zo = "lumx-link", {
1713
- block: es,
1714
- element: yt
1715
- } = $(Zo), ts = (e) => {
1700
+ const to = "lumx-link", {
1701
+ block: ro,
1702
+ element: Nt
1703
+ } = T(to), ao = (e) => {
1716
1704
  const {
1717
1705
  label: t,
1718
1706
  className: r,
1719
1707
  color: a,
1720
1708
  colorVariant: n,
1721
- leftIcon: o,
1722
- rightIcon: s,
1709
+ leftIcon: s,
1710
+ rightIcon: o,
1723
1711
  typography: i,
1724
1712
  as: u,
1725
- ref: l,
1713
+ ref: c,
1726
1714
  isDisabled: d,
1727
1715
  theme: f,
1728
1716
  href: m,
1729
1717
  target: p,
1730
- onClick: g,
1718
+ handleClick: g,
1731
1719
  ...b
1732
- } = e, [v, C] = Ot(a, n), P = u || (m ? "a" : "button"), _ = {};
1733
- d && (P === "button" || !m && !u ? _.disabled = !0 : (_["aria-disabled"] = !0, _.tabIndex = -1));
1734
- 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({
1735
1723
  [`color-${v}`]: !!v,
1736
1724
  [`color-variant-${C}`]: !!C,
1737
1725
  "has-typography": !!i
1738
- }), i && Bt(i)), L = c(G, null, [o && c(G, null, [pe(" "), I({
1739
- icon: o,
1740
- className: yt("left-icon")
1741
- }), pe(" ")]), t && c("span", {
1742
- className: yt("content")
1743
- }, [t]), s && c(G, null, [pe(" "), I({
1726
+ }), i && Rt(i)), L = l(H, null, [s && l(H, null, [pe(" "), I({
1744
1727
  icon: s,
1745
- 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")
1746
1734
  }), pe(" ")])]), B = {
1747
- ref: l,
1735
+ ref: c,
1748
1736
  className: O,
1749
1737
  onClick: d ? void 0 : g,
1750
1738
  ...b,
1751
1739
  ..._
1752
1740
  };
1753
- 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 : {
1754
1742
  default: () => [L]
1755
1743
  });
1756
- }, rs = {
1744
+ }, no = {
1757
1745
  click: (e) => e instanceof Event
1758
- }, Ci = /* @__PURE__ */ y((e, {
1746
+ }, Ri = /* @__PURE__ */ y((e, {
1759
1747
  emit: t
1760
1748
  }) => {
1761
- const r = k(), a = Lt(), n = w(), {
1762
- class: o,
1763
- ...s
1749
+ const r = P(), a = Ot(), n = x(), {
1750
+ class: s,
1751
+ ...o
1764
1752
  } = e, {
1765
1753
  isAnyDisabled: i,
1766
1754
  disabledStateProps: u,
1767
- otherProps: l
1768
- } = H(T(() => ({
1769
- ...s,
1755
+ otherProps: c
1756
+ } = z($(() => ({
1757
+ ...o,
1770
1758
  ...r
1771
1759
  }))), d = (f) => {
1772
1760
  i.value || (f?.stopImmediatePropagation?.(), t("click", f));
1773
1761
  };
1774
1762
  return () => {
1775
- const m = a.default?.() || l.value.label;
1776
- return c(ts, h(l.value, u.value, {
1777
- onClick: d
1778
- }, {
1779
- className: o,
1763
+ const m = a.default?.() || c.value.label;
1764
+ return l(ao, h(c.value, u.value, {
1765
+ className: s,
1780
1766
  theme: e.theme || n.value,
1781
1767
  isDisabled: i.value,
1768
+ onClick: d,
1782
1769
  label: m
1783
1770
  }), null);
1784
1771
  };
@@ -1786,81 +1773,76 @@ const Zo = "lumx-link", {
1786
1773
  name: "LumxLink",
1787
1774
  inheritAttrs: !1,
1788
1775
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1789
- props: S()("as", "class", "color", "colorVariant", "disabled", "href", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "typography", "aria-disabled"),
1790
- emits: rs,
1791
- // Enable compatibility with @vue/compat for event listeners
1792
- compatConfig: {
1793
- MODE: 3
1794
- // Use Vue 3 behavior for this component
1795
- }
1796
- }), as = "Message", ya = "lumx-message", {
1797
- block: ns,
1798
- element: Nt
1799
- } = $(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 = {
1800
1782
  [D.error]: {
1801
- color: x.red,
1802
- icon: Ma
1783
+ color: E.red,
1784
+ icon: Fa
1803
1785
  },
1804
1786
  [D.info]: {
1805
- color: x.blue,
1806
- icon: Fa
1787
+ color: E.blue,
1788
+ icon: Ha
1807
1789
  },
1808
1790
  [D.success]: {
1809
- color: x.green,
1810
- icon: qa
1791
+ color: E.green,
1792
+ icon: za
1811
1793
  },
1812
1794
  [D.warning]: {
1813
- color: x.yellow,
1814
- icon: Ur
1795
+ color: E.yellow,
1796
+ icon: Jr
1815
1797
  }
1816
- }, qt = (e) => {
1798
+ }, Dt = (e) => {
1817
1799
  const {
1818
1800
  children: t,
1819
1801
  className: r,
1820
1802
  hasBackground: a,
1821
1803
  kind: n,
1822
- icon: o,
1823
- closeButtonProps: s,
1804
+ icon: s,
1805
+ closeButtonProps: o,
1824
1806
  ref: i,
1825
1807
  ...u
1826
1808
  } = e, {
1827
- color: l,
1809
+ color: c,
1828
1810
  icon: d
1829
- } = os[n] || {}, {
1811
+ } = io[n] || {}, {
1830
1812
  onClick: f,
1831
1813
  label: m
1832
- } = s || {}, p = a && n === "info" && f && m;
1833
- return c("div", h(u, {
1814
+ } = o || {}, p = a && n === "info" && f && m;
1815
+ return l("div", h(u, {
1834
1816
  ref: i,
1835
- className: A(r, ns({
1836
- [`color-${l}`]: !!l,
1817
+ className: N(r, oo({
1818
+ [`color-${c}`]: !!c,
1837
1819
  "has-background": a
1838
1820
  }))
1839
- }), [(o || d) && I({
1840
- className: Nt("icon"),
1841
- icon: o || d,
1842
- size: E.xs,
1843
- color: l
1844
- }), c("div", {
1845
- 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")
1846
1828
  }, [t]), p && de({
1847
- className: Nt("close-button"),
1848
- icon: Da,
1829
+ className: At("close-button"),
1830
+ icon: Ga,
1849
1831
  onClick: f,
1850
1832
  label: m,
1851
- emphasis: V.low
1833
+ emphasis: U.low
1852
1834
  })]);
1853
1835
  };
1854
- qt.displayName = as;
1855
- qt.className = ya;
1856
- const _i = /* @__PURE__ */ y((e, {
1836
+ Dt.displayName = so;
1837
+ Dt.className = Sa;
1838
+ const ji = /* @__PURE__ */ y((e, {
1857
1839
  slots: t,
1858
1840
  emit: r
1859
1841
  }) => {
1860
- const a = k(), {
1842
+ const a = P(), {
1861
1843
  closeButtonLabel: n
1862
1844
  } = e;
1863
- return () => c(qt, h(e, a, {
1845
+ return () => l(Dt, h(e, a, {
1864
1846
  className: e.class,
1865
1847
  children: t.default?.(),
1866
1848
  closeButtonProps: n ? {
@@ -1872,22 +1854,109 @@ const _i = /* @__PURE__ */ y((e, {
1872
1854
  name: "Message",
1873
1855
  inheritAttrs: !1,
1874
1856
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1875
- props: S()("hasBackground", "icon", "kind", "class", "closeButtonLabel"),
1857
+ props: A()("hasBackground", "icon", "kind", "class", "closeButtonLabel"),
1876
1858
  emits: ["close"]
1877
- }), ss = "lumx-radio-button", {
1878
- 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,
1879
1948
  element: M
1880
- } = $(ss), ls = (e) => {
1949
+ } = T(po), go = (e) => {
1881
1950
  const {
1882
1951
  checked: t,
1883
1952
  className: r,
1884
1953
  helper: a,
1885
1954
  id: n,
1886
- inputRef: o,
1887
- isChecked: s = t,
1955
+ inputRef: s,
1956
+ isChecked: o = t,
1888
1957
  label: i,
1889
1958
  name: u,
1890
- ref: l,
1959
+ ref: c,
1891
1960
  onChange: d,
1892
1961
  theme: f,
1893
1962
  value: m,
@@ -1895,41 +1964,41 @@ const _i = /* @__PURE__ */ y((e, {
1895
1964
  isDisabled: g,
1896
1965
  inputId: b,
1897
1966
  ...v
1898
- } = e, C = (P) => {
1899
- d && d(m, u, P);
1967
+ } = e, C = (k) => {
1968
+ d && d(m, u, k);
1900
1969
  };
1901
- return c("div", h({
1902
- ref: l
1970
+ return l("div", h({
1971
+ ref: c
1903
1972
  }, v, {
1904
- className: A(r, is({
1905
- "is-checked": s,
1973
+ className: N(r, bo({
1974
+ "is-checked": o,
1906
1975
  "is-disabled": g,
1907
- "is-unchecked": !s,
1976
+ "is-unchecked": !o,
1908
1977
  [`theme-${f}`]: !!f
1909
1978
  }))
1910
- }), [c("div", {
1979
+ }), [l("div", {
1911
1980
  className: M("input-wrapper")
1912
- }, [c("input", h({
1913
- ref: o,
1981
+ }, [l("input", h({
1982
+ ref: s,
1914
1983
  className: M("input-native"),
1915
1984
  id: b,
1916
1985
  type: "radio",
1917
1986
  name: u,
1918
1987
  value: m,
1919
- checked: s,
1988
+ checked: o,
1920
1989
  onChange: C,
1921
1990
  "aria-describedby": a ? `${b}-helper` : void 0
1922
1991
  }, p?.readOnly ? {
1923
1992
  readOnly: p.readOnly
1924
- } : {}, p), null), c("div", {
1993
+ } : {}, p), null), l("div", {
1925
1994
  className: M("input-placeholder")
1926
- }, [c("div", {
1995
+ }, [l("div", {
1927
1996
  className: M("input-background")
1928
- }, null), c("div", {
1997
+ }, null), l("div", {
1929
1998
  className: M("input-indicator")
1930
- }, null)])]), c("div", {
1999
+ }, null)])]), l("div", {
1931
2000
  className: M("content")
1932
- }, [i && U({
2001
+ }, [i && W({
1933
2002
  htmlFor: b,
1934
2003
  className: M("label"),
1935
2004
  theme: f,
@@ -1940,28 +2009,27 @@ const _i = /* @__PURE__ */ y((e, {
1940
2009
  theme: f,
1941
2010
  children: a
1942
2011
  })])]);
1943
- }, cs = {
2012
+ }, vo = {
1944
2013
  change: (e, t, r) => r instanceof Event
1945
- }, xi = /* @__PURE__ */ y((e, {
2014
+ }, zi = /* @__PURE__ */ y((e, {
1946
2015
  emit: t
1947
2016
  }) => {
1948
- const r = k(), a = w(), n = Mt(), o = T(() => e.id || n), {
1949
- isAnyDisabled: s,
2017
+ const r = P(), a = x(), n = qt(), s = $(() => e.id || n), {
2018
+ isAnyDisabled: o,
1950
2019
  disabledStateProps: i,
1951
2020
  otherProps: u
1952
- } = H(T(() => ({
2021
+ } = z($(() => ({
1953
2022
  ...e,
1954
2023
  ...r
1955
- }))), l = (d, f, m) => {
1956
- s.value || (m?.stopImmediatePropagation?.(), t("change", d, f, m));
2024
+ }))), c = (d, f, m) => {
2025
+ o.value || (m?.stopImmediatePropagation?.(), t("change", d, f, m));
1957
2026
  };
1958
- return () => c(ls, h(u.value, {
1959
- onChange: l
1960
- }, {
2027
+ return () => l(go, h(u.value, {
1961
2028
  className: e.class,
1962
2029
  theme: e.theme || a.value,
1963
- inputId: o.value,
1964
- isDisabled: s.value,
2030
+ inputId: s.value,
2031
+ isDisabled: o.value,
2032
+ onChange: c,
1965
2033
  label: e.label,
1966
2034
  inputProps: {
1967
2035
  ...e.inputProps,
@@ -1973,211 +2041,211 @@ const _i = /* @__PURE__ */ y((e, {
1973
2041
  name: "RadioButton",
1974
2042
  inheritAttrs: !1,
1975
2043
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1976
- props: S()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "theme", "value", "aria-disabled"),
1977
- emits: cs
1978
- }), 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) => {
1979
2047
  const {
1980
2048
  children: t,
1981
2049
  className: r,
1982
2050
  ref: a,
1983
2051
  ...n
1984
2052
  } = e;
1985
- return c("div", h({
2053
+ return l("div", h({
1986
2054
  ref: a
1987
2055
  }, n, {
1988
- className: A(r, Na)
2056
+ className: N(r, Pa)
1989
2057
  }), [t]);
1990
2058
  };
1991
- $e.displayName = us;
1992
- $e.className = Na;
1993
- $e.defaultProps = ds;
1994
- const wi = /* @__PURE__ */ y((e, {
2059
+ Ce.displayName = yo;
2060
+ Ce.className = Pa;
2061
+ Ce.defaultProps = No;
2062
+ const Gi = /* @__PURE__ */ y((e, {
1995
2063
  slots: t
1996
2064
  }) => {
1997
- const r = k();
1998
- return () => c($e, h(e, r, {
2065
+ const r = P();
2066
+ return () => l(Ce, h(e, r, {
1999
2067
  className: e.class,
2000
2068
  children: t.default?.()
2001
2069
  }), null);
2002
2070
  }, {
2003
2071
  name: "RadioGroup",
2004
2072
  inheritAttrs: !1,
2005
- props: S()("class")
2006
- }), fs = "lumx-skeleton-circle", {
2007
- block: ms
2008
- } = $(fs), hs = (e) => {
2073
+ props: A()("class")
2074
+ }), Ao = "lumx-skeleton-circle", {
2075
+ block: So
2076
+ } = T(Ao), Po = (e) => {
2009
2077
  const {
2010
2078
  className: t,
2011
2079
  size: r,
2012
2080
  color: a,
2013
2081
  theme: n,
2014
- ref: o,
2015
- ...s
2082
+ ref: s,
2083
+ ...o
2016
2084
  } = e;
2017
- return c("div", h({
2018
- ref: o
2019
- }, s, {
2020
- className: A(t, ms({
2085
+ return l("div", h({
2086
+ ref: s
2087
+ }, o, {
2088
+ className: N(t, So({
2021
2089
  [`size-${r}`]: !!r,
2022
2090
  [`color-${a}`]: !!a,
2023
2091
  [`theme-${n}`]: !!n
2024
2092
  }))
2025
2093
  }), null);
2026
- }, ps = {
2094
+ }, ko = {
2027
2095
  squared: "squared",
2028
2096
  rounded: "rounded",
2029
2097
  pill: "pill"
2030
- }, bs = "lumx-skeleton-rectangle", {
2031
- block: gs,
2032
- element: vs
2033
- } = $(bs), ys = {
2034
- variant: ps.squared
2035
- }, Ns = (e) => {
2098
+ }, $o = "lumx-skeleton-rectangle", {
2099
+ block: To,
2100
+ element: Co
2101
+ } = T($o), _o = {
2102
+ variant: ko.squared
2103
+ }, xo = (e) => {
2036
2104
  const {
2037
2105
  aspectRatio: t,
2038
2106
  className: r,
2039
2107
  height: a,
2040
2108
  theme: n,
2041
- variant: o = ys.variant,
2042
- width: s,
2109
+ variant: s = _o.variant,
2110
+ width: o,
2043
2111
  color: i,
2044
2112
  ref: u,
2045
- ...l
2113
+ ...c
2046
2114
  } = e;
2047
- return c("div", h({
2115
+ return l("div", h({
2048
2116
  ref: u
2049
- }, l, {
2050
- className: A(r, gs({
2117
+ }, c, {
2118
+ className: N(r, To({
2051
2119
  [`aspect-ratio-${t}`]: !!t,
2052
2120
  [`height-${a}`]: !!(!t && a),
2053
2121
  [`theme-${n}`]: !!n,
2054
- [`variant-${o}`]: !!o,
2055
- [`width-${s}`]: !!s,
2122
+ [`variant-${s}`]: !!s,
2123
+ [`width-${o}`]: !!o,
2056
2124
  [`color-${i}`]: !!i
2057
2125
  }))
2058
- }), [c("div", {
2059
- className: vs("inner")
2126
+ }), [l("div", {
2127
+ className: Co("inner")
2060
2128
  }, null)]);
2061
- }, As = "lumx-skeleton-typography", {
2062
- block: Ss,
2063
- element: ks
2064
- } = $(As), Ps = (e) => {
2129
+ }, Eo = "lumx-skeleton-typography", {
2130
+ block: wo,
2131
+ element: Io
2132
+ } = T(Eo), Lo = (e) => {
2065
2133
  const {
2066
2134
  className: t,
2067
2135
  theme: r,
2068
2136
  typography: a,
2069
2137
  width: n,
2070
- color: o,
2071
- ref: s,
2138
+ color: s,
2139
+ ref: o,
2072
2140
  ...i
2073
2141
  } = e;
2074
- return c("div", h({
2075
- ref: s
2142
+ return l("div", h({
2143
+ ref: o
2076
2144
  }, i, {
2077
- className: A(t, Ss({
2145
+ className: N(t, wo({
2078
2146
  [`theme-${r}`]: !!r,
2079
2147
  [`typography-${a}`]: !!a,
2080
- [`color-${o}`]: !!o
2148
+ [`color-${s}`]: !!s
2081
2149
  })),
2082
2150
  style: {
2083
2151
  ...i.style,
2084
2152
  width: n
2085
2153
  }
2086
- }), [c("div", {
2087
- className: ks("inner")
2154
+ }), [l("div", {
2155
+ className: Io("inner")
2088
2156
  }, null)]);
2089
- }, Ii = /* @__PURE__ */ y((e) => {
2090
- const t = k(), r = w();
2091
- return () => c(hs, h(e, t, {
2157
+ }, Hi = /* @__PURE__ */ y((e) => {
2158
+ const t = P(), r = x();
2159
+ return () => l(Po, h(e, t, {
2092
2160
  className: e.class,
2093
2161
  theme: e.theme || r.value
2094
2162
  }), null);
2095
2163
  }, {
2096
2164
  name: "LumxSkeletonCircle",
2097
2165
  inheritAttrs: !1,
2098
- props: S()("class", "size", "color", "theme")
2099
- }), Ei = /* @__PURE__ */ y((e) => {
2100
- const t = k(), r = w();
2101
- 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, {
2102
2170
  className: e.class,
2103
2171
  theme: e.theme || r.value
2104
2172
  }), null);
2105
2173
  }, {
2106
2174
  name: "SkeletonRectangle",
2107
2175
  inheritAttrs: !1,
2108
- props: S()("class", "aspectRatio", "height", "variant", "width", "color", "theme")
2109
- }), Li = /* @__PURE__ */ y((e) => {
2110
- const t = k(), r = w();
2111
- 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, {
2112
2180
  className: e.class,
2113
2181
  theme: e.theme || r.value
2114
2182
  }), null);
2115
2183
  }, {
2116
2184
  name: "LumxSkeletonTypography",
2117
2185
  inheritAttrs: !1,
2118
- props: S()("class", "typography", "width", "color", "theme", "style")
2119
- }), Oi = "Switch", Ts = "lumx-switch", {
2120
- block: $s,
2186
+ props: A()("class", "typography", "width", "color", "theme", "style")
2187
+ }), Wi = "Switch", Oo = "lumx-switch", {
2188
+ block: Bo,
2121
2189
  element: q
2122
- } = $(Ts), Cs = {
2190
+ } = T(Oo), Ro = {
2123
2191
  position: "left"
2124
- }, _s = (e) => {
2192
+ }, jo = (e) => {
2125
2193
  const {
2126
2194
  checked: t,
2127
2195
  className: r,
2128
2196
  helper: a,
2129
2197
  id: n,
2130
- inputRef: o,
2131
- isChecked: s = t,
2198
+ inputRef: s,
2199
+ isChecked: o = t,
2132
2200
  label: i,
2133
2201
  name: u,
2134
- ref: l,
2202
+ ref: c,
2135
2203
  onChange: d,
2136
2204
  theme: f,
2137
2205
  value: m,
2138
2206
  inputProps: p = {},
2139
2207
  isDisabled: g,
2140
2208
  inputId: b,
2141
- position: v = Cs.position,
2209
+ position: v = Ro.position,
2142
2210
  ...C
2143
- } = e, P = (_) => {
2144
- d && d(!s, m, u, _);
2211
+ } = e, k = (_) => {
2212
+ d && d(!o, m, u, _);
2145
2213
  };
2146
- return c("div", h({
2147
- ref: l
2214
+ return l("div", h({
2215
+ ref: c
2148
2216
  }, C, {
2149
- className: A(r, $s({
2150
- "is-checked": s,
2217
+ className: N(r, Bo({
2218
+ "is-checked": o,
2151
2219
  "is-disabled": g,
2152
- "is-unchecked": !s,
2220
+ "is-unchecked": !o,
2153
2221
  [`position-${v}`]: !!v,
2154
2222
  [`theme-${f}`]: !!f
2155
2223
  }))
2156
- }), [c("div", {
2224
+ }), [l("div", {
2157
2225
  className: q("input-wrapper")
2158
- }, [c("input", h({
2159
- ref: o,
2226
+ }, [l("input", h({
2227
+ ref: s,
2160
2228
  type: "checkbox",
2161
2229
  role: "switch",
2162
2230
  id: b,
2163
2231
  className: q("input-native"),
2164
2232
  name: u,
2165
2233
  value: m,
2166
- checked: !!s,
2167
- onChange: P,
2234
+ checked: !!o,
2235
+ onChange: k,
2168
2236
  "aria-describedby": a ? `${b}-helper` : void 0,
2169
- "aria-checked": !!s
2237
+ "aria-checked": !!o
2170
2238
  }, p?.readOnly ? {
2171
2239
  readOnly: p.readOnly
2172
- } : {}, p), null), c("div", {
2240
+ } : {}, p), null), l("div", {
2173
2241
  className: q("input-placeholder")
2174
- }, [c("div", {
2242
+ }, [l("div", {
2175
2243
  className: q("input-background")
2176
- }, null), c("div", {
2244
+ }, null), l("div", {
2177
2245
  className: q("input-indicator")
2178
- }, null)])]), c("div", {
2246
+ }, null)])]), l("div", {
2179
2247
  className: q("content")
2180
- }, [i && U({
2248
+ }, [i && W({
2181
2249
  htmlFor: b,
2182
2250
  className: q("label"),
2183
2251
  theme: f,
@@ -2188,29 +2256,28 @@ const wi = /* @__PURE__ */ y((e, {
2188
2256
  theme: f,
2189
2257
  children: a
2190
2258
  })])]);
2191
- }, xs = {
2259
+ }, Mo = {
2192
2260
  change: (e, t, r, a) => typeof e == "boolean" && a instanceof Event
2193
- }, Bi = /* @__PURE__ */ y((e, {
2261
+ }, Ki = /* @__PURE__ */ y((e, {
2194
2262
  emit: t,
2195
2263
  slots: r
2196
2264
  }) => {
2197
- const a = k(), n = w(), o = Mt(), s = T(() => e.id || o), {
2265
+ const a = P(), n = x(), s = qt(), o = $(() => e.id || s), {
2198
2266
  isAnyDisabled: i,
2199
2267
  disabledStateProps: u,
2200
- otherProps: l
2201
- } = H(T(() => ({
2268
+ otherProps: c
2269
+ } = z($(() => ({
2202
2270
  ...e,
2203
2271
  ...a
2204
2272
  }))), d = (f, m, p, g) => {
2205
2273
  i.value || (g.stopImmediatePropagation(), t("change", f, m, p, g));
2206
2274
  };
2207
- return () => c(_s, h(l.value, {
2208
- onChange: d
2209
- }, {
2275
+ return () => l(jo, h(c.value, {
2210
2276
  className: e.class,
2211
2277
  theme: e.theme || n.value,
2212
- inputId: s.value,
2278
+ inputId: o.value,
2213
2279
  isDisabled: i.value,
2280
+ onChange: d,
2214
2281
  label: e.label || r.default?.(),
2215
2282
  inputProps: {
2216
2283
  ...e.inputProps,
@@ -2222,34 +2289,34 @@ const wi = /* @__PURE__ */ y((e, {
2222
2289
  name: "LumxSwitch",
2223
2290
  inheritAttrs: !1,
2224
2291
  // Redefine properties so that they come in as `props` on the `defineComponent` function
2225
- props: S()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "position", "theme", "value", "aria-disabled"),
2226
- emits: xs
2292
+ props: A()("checked", "class", "disabled", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "position", "theme", "value", "aria-disabled"),
2293
+ emits: Mo
2227
2294
  }), fe = "lumx-table", {
2228
- block: ws
2229
- } = $(fe), Is = (e) => {
2295
+ block: qo
2296
+ } = T(fe), Do = (e) => {
2230
2297
  const {
2231
2298
  children: t,
2232
2299
  className: r,
2233
2300
  hasBefore: a,
2234
2301
  hasDividers: n,
2235
- ref: o,
2236
- theme: s,
2302
+ ref: s,
2303
+ theme: o,
2237
2304
  ...i
2238
2305
  } = e;
2239
- return c("table", h({
2240
- ref: o
2306
+ return l("table", h({
2307
+ ref: s
2241
2308
  }, i, {
2242
- className: A(r, ws({
2309
+ className: N(r, qo({
2243
2310
  "has-before": a,
2244
2311
  "has-dividers": n,
2245
- [`theme-${s}`]: !!s
2312
+ [`theme-${o}`]: !!o
2246
2313
  }))
2247
2314
  }), [t]);
2248
- }, ji = /* @__PURE__ */ y((e, {
2315
+ }, Yi = /* @__PURE__ */ y((e, {
2249
2316
  slots: t
2250
2317
  }) => {
2251
- const r = k(), a = w();
2252
- return () => c(Is, h(e, r, {
2318
+ const r = P(), a = x();
2319
+ return () => l(Do, h(e, r, {
2253
2320
  className: e.class,
2254
2321
  theme: e.theme || a.value,
2255
2322
  children: t.default?.()
@@ -2257,198 +2324,173 @@ const wi = /* @__PURE__ */ y((e, {
2257
2324
  }, {
2258
2325
  name: "LumxTable",
2259
2326
  inheritAttrs: !1,
2260
- props: S()("class", "hasBefore", "hasDividers", "theme")
2261
- }), Es = `${fe}__body`, Ls = (e) => {
2327
+ props: A()("class", "hasBefore", "hasDividers", "theme")
2328
+ }), Fo = `${fe}__body`, zo = (e) => {
2262
2329
  const {
2263
2330
  children: t,
2264
2331
  className: r,
2265
2332
  ref: a,
2266
2333
  ...n
2267
2334
  } = e;
2268
- return c("tbody", h({
2335
+ return l("tbody", h({
2269
2336
  ref: a
2270
2337
  }, n, {
2271
- className: A(r, Es)
2338
+ className: N(r, Fo)
2272
2339
  }), [t]);
2273
- }, Ri = /* @__PURE__ */ y((e, {
2340
+ }, Ji = /* @__PURE__ */ y((e, {
2274
2341
  slots: t
2275
2342
  }) => {
2276
- const r = k();
2277
- return () => c(Ls, h(e, r, {
2343
+ const r = P();
2344
+ return () => l(zo, h(e, r, {
2278
2345
  className: e.class,
2279
2346
  children: t.default?.()
2280
2347
  }), null);
2281
2348
  }, {
2282
2349
  name: "LumxTableBody",
2283
2350
  inheritAttrs: !1,
2284
- props: S()("class")
2351
+ props: A()("class")
2285
2352
  }), ge = {
2286
2353
  asc: "asc",
2287
2354
  desc: "desc"
2288
- }, xt = {
2355
+ }, Et = {
2289
2356
  body: "body",
2290
2357
  head: "head"
2291
- }, z = `${fe}__cell`, {
2292
- block: Hr
2293
- } = $(z), Os = {
2294
- variant: xt.body
2295
- }, Bs = (e) => {
2358
+ }, G = `${fe}__cell`, {
2359
+ block: Ur
2360
+ } = T(G), Go = {
2361
+ variant: Et.body
2362
+ }, Ho = (e) => {
2296
2363
  const {
2297
2364
  children: t,
2298
2365
  className: r,
2299
2366
  icon: a,
2300
2367
  isSortable: n,
2301
- onHeaderClick: o,
2302
- ref: s,
2368
+ onHeaderClick: s,
2369
+ ref: o,
2303
2370
  sortOrder: i,
2304
- variant: u = Os.variant,
2305
- ...l
2306
- } = e;
2307
- console.log({
2308
- onHeaderClick: o,
2309
- isSortable: n
2310
- });
2311
- const d = o ? "button" : "div", f = d === "button" ? {
2371
+ variant: u = Go.variant,
2372
+ ...c
2373
+ } = e, d = s ? "button" : "div", f = d === "button" ? {
2312
2374
  type: "button",
2313
- onClick: o
2375
+ onClick: s
2314
2376
  } : void 0;
2315
2377
  let m;
2316
- return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), c(G, null, [u === xt.head && c("th", h({
2317
- ref: s
2318
- }, l, {
2319
- 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({
2320
2382
  "is-sortable": n,
2321
2383
  "is-sorted": n && !!i,
2322
2384
  head: !0
2323
2385
  })),
2324
2386
  "aria-sort": m
2325
- }), [c(d, h({
2326
- className: `${z}-wrapper`
2387
+ }), [l(d, h({
2388
+ className: `${G}-wrapper`
2327
2389
  }, f), {
2328
2390
  default: () => [a && !n && I({
2329
- className: `${z}-icon`,
2391
+ className: `${G}-icon`,
2330
2392
  icon: a,
2331
- size: E.xxs
2393
+ size: w.xxs
2332
2394
  }), n && i === ge.asc && I({
2333
- className: `${z}-icon`,
2334
- icon: za,
2335
- size: E.xxs
2395
+ className: `${G}-icon`,
2396
+ icon: Va,
2397
+ size: w.xxs
2336
2398
  }), n && i === ge.desc && I({
2337
- className: `${z}-icon`,
2338
- icon: Ha,
2339
- size: E.xxs
2340
- }), c("div", {
2341
- className: `${z}-content`
2399
+ className: `${G}-icon`,
2400
+ icon: Ua,
2401
+ size: w.xxs
2402
+ }), l("div", {
2403
+ className: `${G}-content`
2342
2404
  }, [t])]
2343
- })]), u === xt.body && c("td", h({
2344
- ref: s
2345
- }, l, {
2346
- className: A(r, Hr({
2405
+ })]), u === Et.body && l("td", h({
2406
+ ref: o
2407
+ }, c, {
2408
+ className: N(r, Ur({
2347
2409
  body: !0
2348
2410
  }))
2349
- }), [c("div", {
2350
- className: `${z}-content`
2411
+ }), [l("div", {
2412
+ className: `${G}-content`
2351
2413
  }, [t])])]);
2352
- }, wt = (e) => {
2353
- const t = Wr();
2354
- return console.log({ eventName: e }), console.log(t?.vnode.props), t?.vnode.props?.[e] !== void 0;
2355
- }, js = {
2414
+ }, wt = (e) => Yr()?.vnode.props?.[e] !== void 0, Uo = {
2356
2415
  headerClick: () => !0
2357
- }, Mi = /* @__PURE__ */ y((e, {
2416
+ }, Xi = /* @__PURE__ */ y((e, {
2358
2417
  emit: t,
2359
2418
  slots: r,
2360
2419
  attrs: a
2361
2420
  }) => {
2362
2421
  const n = () => {
2363
2422
  t("headerClick");
2364
- };
2365
- return () => {
2366
- const o = wt("onHeaderClick");
2367
- console.log({
2368
- hasClickListener: o
2369
- });
2370
- const {
2371
- onHeaderClick: s,
2372
- ...i
2373
- } = e, {
2374
- onHeaderClick: u,
2375
- ...l
2376
- } = a;
2377
- return console.log({
2378
- onHeaderClick: n,
2379
- isSortable: e.isSortable
2380
- }), c(Bs, h(i, l, {
2381
- onHeaderClick: o || e.isSortable ? n : void 0
2382
- }, {
2383
- className: e.class,
2384
- children: r.default?.()
2385
- }), null);
2386
- };
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);
2387
2429
  }, {
2388
2430
  name: "LumxTableCell",
2389
2431
  inheritAttrs: !1,
2390
- props: S()("class", "icon", "isSortable", "sortOrder", "variant"),
2391
- emits: js
2392
- }), Rs = `${fe}__header`, Ms = (e) => {
2432
+ props: A()("class", "icon", "isSortable", "sortOrder", "variant"),
2433
+ emits: Uo
2434
+ }), Vo = `${fe}__header`, Wo = (e) => {
2393
2435
  const {
2394
2436
  children: t,
2395
2437
  className: r,
2396
2438
  ref: a,
2397
2439
  ...n
2398
2440
  } = e;
2399
- return c("thead", h({
2441
+ return l("thead", h({
2400
2442
  ref: a
2401
2443
  }, n, {
2402
- className: A(r, Rs)
2444
+ className: N(r, Vo)
2403
2445
  }), [t]);
2404
- }, qi = /* @__PURE__ */ y((e, {
2446
+ }, Qi = /* @__PURE__ */ y((e, {
2405
2447
  slots: t
2406
2448
  }) => {
2407
- const r = k();
2408
- return () => c(Ms, h(e, r, {
2449
+ const r = P();
2450
+ return () => l(Wo, h(e, r, {
2409
2451
  className: e.class,
2410
2452
  children: t.default?.()
2411
2453
  }), null);
2412
2454
  }, {
2413
2455
  name: "LumxTableHeader",
2414
2456
  inheritAttrs: !1,
2415
- props: S()("class")
2416
- }), qs = `${fe}__row`, {
2417
- block: Ds
2418
- } = $(qs), Fs = (e) => {
2457
+ props: A()("class")
2458
+ }), Ko = `${fe}__row`, {
2459
+ block: Yo
2460
+ } = T(Ko), Jo = (e) => {
2419
2461
  const {
2420
2462
  children: t,
2421
2463
  className: r,
2422
2464
  isClickable: a,
2423
2465
  isSelected: n,
2424
- ref: o,
2425
- tabIndex: s,
2466
+ ref: s,
2467
+ tabIndex: o,
2426
2468
  "aria-disabled": i,
2427
2469
  ...u
2428
- } = e, l = !!i;
2429
- return c("tr", h({
2430
- ref: o,
2470
+ } = e, c = !!i;
2471
+ return l("tr", h({
2472
+ ref: s,
2431
2473
  "aria-disabled": i
2432
- }, s !== void 0 ? {
2433
- tabIndex: s
2474
+ }, o !== void 0 ? {
2475
+ tabIndex: o
2434
2476
  } : {}, u, {
2435
- className: A(r, Ds({
2436
- "is-clickable": a && !l,
2437
- "is-disabled": l,
2438
- "is-selected": n && !l
2477
+ className: N(r, Yo({
2478
+ "is-clickable": a && !c,
2479
+ "is-disabled": c,
2480
+ "is-selected": n && !c
2439
2481
  }))
2440
2482
  }), [t]);
2441
- }, Di = /* @__PURE__ */ y((e, {
2483
+ }, Zi = /* @__PURE__ */ y((e, {
2442
2484
  slots: t
2443
2485
  }) => {
2444
- const r = k(), {
2486
+ const r = P(), {
2445
2487
  isAnyDisabled: a,
2446
2488
  otherProps: n
2447
- } = H(T(() => ({
2489
+ } = z($(() => ({
2448
2490
  ...e,
2449
2491
  ...r
2450
2492
  })));
2451
- return () => c(Fs, h(n.value, {
2493
+ return () => l(Jo, h(n.value, {
2452
2494
  className: e.class,
2453
2495
  tabIndex: e.isClickable && !a.value ? 0 : -1,
2454
2496
  "aria-disabled": a.value,
@@ -2457,28 +2499,28 @@ const wi = /* @__PURE__ */ y((e, {
2457
2499
  }, {
2458
2500
  name: "LumxTableRow",
2459
2501
  inheritAttrs: !1,
2460
- props: S()("class", "isClickable", "isDisabled", "isSelected")
2502
+ props: A()("class", "isClickable", "isDisabled", "isSelected")
2461
2503
  });
2462
- function At(e, t) {
2504
+ function St(e, t) {
2463
2505
  return t?.type === "error" || e?.complete && !e.getAttribute("src") ? "hasError" : !e || !e.complete ? "isLoading" : "isLoaded";
2464
2506
  }
2465
- function Hs({
2507
+ function Xo({
2466
2508
  image: e,
2467
2509
  aspectRatio: t,
2468
2510
  focusPoint: r,
2469
2511
  width: a,
2470
2512
  height: n,
2471
- element: o,
2472
- isLoaded: s
2513
+ element: s,
2514
+ isLoaded: o
2473
2515
  }) {
2474
- if (!(!e || t === Kr.original || !r?.x && !r?.y)) {
2516
+ if (!(!e || t === Xr.original || !r?.x && !r?.y)) {
2475
2517
  if (typeof a == "number" && typeof n == "number")
2476
2518
  return { width: a, height: n };
2477
- if (o && s)
2478
- return { width: o.naturalWidth, height: o.naturalHeight };
2519
+ if (s && o)
2520
+ return { width: s.naturalWidth, height: s.naturalHeight };
2479
2521
  }
2480
2522
  }
2481
- function zr({
2523
+ function Vr({
2482
2524
  scale: e,
2483
2525
  focusPoint: t,
2484
2526
  imageSize: r,
@@ -2489,59 +2531,59 @@ function zr({
2489
2531
  const i = (t * n - a / 2) / (n - a);
2490
2532
  return Math.floor(Math.max(Math.min(i, 1), 0) * 100);
2491
2533
  }
2492
- function zs({
2534
+ function Qo({
2493
2535
  image: e,
2494
2536
  aspectRatio: t,
2495
2537
  focusPoint: r,
2496
2538
  element: a,
2497
2539
  imageSize: n,
2498
- containerSize: o
2540
+ containerSize: s
2499
2541
  }) {
2500
- if (!e || t === Kr.original || !r?.x && !r?.y)
2542
+ if (!e || t === Xr.original || !r?.x && !r?.y)
2501
2543
  return {};
2502
2544
  if (!a || !n)
2503
2545
  return { visibility: "hidden" };
2504
- if (!o || !n.height || !n.width)
2546
+ if (!s || !n.height || !n.width)
2505
2547
  return {};
2506
- 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({
2507
2549
  scale: u,
2508
- focusPoint: l,
2550
+ focusPoint: c,
2509
2551
  imageSize: n.height,
2510
- containerSize: o.height
2552
+ containerSize: s.height
2511
2553
  }), f = Math.abs((r?.x || 0) + 1) / 2;
2512
- return { objectPosition: `${zr({
2554
+ return { objectPosition: `${Vr({
2513
2555
  scale: u,
2514
2556
  focusPoint: f,
2515
2557
  imageSize: n.width,
2516
- containerSize: o.width
2558
+ containerSize: s.width
2517
2559
  })}% ${d}%` };
2518
2560
  }
2519
- const Gs = "lumx-thumbnail", {
2520
- block: Vs,
2521
- element: se
2522
- } = Z.bem(Gs), Gr = {
2523
- fallback: Ga,
2561
+ const Zo = "lumx-thumbnail", {
2562
+ block: ei,
2563
+ element: oe
2564
+ } = Z.bem(Zo), Wr = {
2565
+ fallback: Wa,
2524
2566
  loading: "lazy"
2525
- }, Ws = (e) => {
2567
+ }, ti = (e) => {
2526
2568
  const {
2527
2569
  align: t,
2528
2570
  alt: r,
2529
- aspectRatio: a = Pa.original,
2571
+ aspectRatio: a = Ca.original,
2530
2572
  badge: n,
2531
- className: o,
2532
- crossOrigin: s,
2573
+ className: s,
2574
+ crossOrigin: o,
2533
2575
  ref: i,
2534
- fallback: u = Gr.fallback,
2535
- focusPointStyle: l,
2576
+ fallback: u = Wr.fallback,
2577
+ focusPointStyle: c,
2536
2578
  fillHeight: d,
2537
2579
  image: f,
2538
2580
  imgProps: m,
2539
2581
  imgRef: p,
2540
2582
  isLoading: g,
2541
2583
  objectFit: b,
2542
- loading: v = Gr.loading,
2584
+ loading: v = Wr.loading,
2543
2585
  loadingPlaceholderImageRef: C,
2544
- isAnyDisabled: P,
2586
+ isAnyDisabled: k,
2545
2587
  disabledStateProps: _,
2546
2588
  size: O,
2547
2589
  theme: L,
@@ -2550,149 +2592,149 @@ const Gs = "lumx-thumbnail", {
2550
2592
  linkProps: Y,
2551
2593
  linkAs: he,
2552
2594
  ...te
2553
- } = e, N = g || B === "isLoading", J = B === "hasError", j = J && typeof u == "string", Dt = J && !j, Ce = {};
2554
- j ? Ce.visibility = "hidden" : Dt && (Ce.display = "none");
2555
- 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 = {
2556
2598
  ...te
2557
2599
  };
2558
- _e && (Object.assign(re, {
2600
+ xe && (Object.assign(re, {
2559
2601
  as: he || (Y?.href ? "a" : "button")
2560
- }, _), Ft ? Object.assign(re, Y) : re["aria-label"] = te["aria-label"] || r);
2561
- 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({
2562
2604
  [`align-${t}`]: !!t,
2563
2605
  [`aspect-ratio-${a}`]: !!a,
2564
2606
  [`size-${O}`]: !!O,
2565
2607
  [`theme-${L}`]: !!L,
2566
2608
  [`variant-${me}`]: !!me,
2567
- "is-clickable": _e,
2609
+ "is-clickable": xe,
2568
2610
  "has-error": J,
2569
- "has-icon-error-fallback": j,
2570
- "has-custom-error-fallback": Dt,
2571
- "is-loading": N,
2611
+ "has-icon-error-fallback": R,
2612
+ "has-custom-error-fallback": Ft,
2613
+ "is-loading": S,
2572
2614
  [`object-fit-${b}`]: !!b,
2573
2615
  "has-badge": !!n,
2574
2616
  "fill-height": d
2575
- })), ae = N && C?.current?.complete && C?.current || void 0, Aa = ae ? {
2617
+ })), ae = S && C?.current?.complete && C?.current || void 0, ka = ae ? {
2576
2618
  backgroundImage: `url(${ae.src})`
2577
- } : void 0, zt = c(G, null, [c("span", {
2578
- className: se("background")
2579
- }, [c("img", h({
2619
+ } : void 0, Ht = l(H, null, [l("span", {
2620
+ className: oe("background")
2621
+ }, [l("img", h({
2580
2622
  width: ae?.naturalWidth,
2581
2623
  height: ae?.naturalHeight
2582
2624
  }, m, {
2583
2625
  style: {
2584
2626
  // Reserve space while loading (when possible)
2585
- width: N ? m?.width || ae?.naturalWidth : void 0,
2627
+ width: S ? m?.width || ae?.naturalWidth : void 0,
2586
2628
  ...m?.style,
2587
- ...Ce,
2588
- ...l,
2589
- ...Aa
2629
+ ..._e,
2630
+ ...c,
2631
+ ...ka
2590
2632
  },
2591
2633
  ref: p,
2592
- className: Z.join(se("image", {
2593
- "is-loading": N,
2634
+ className: Z.join(oe("image", {
2635
+ "is-loading": S,
2594
2636
  "has-defined-size": !!(m?.height && m.width)
2595
2637
  }), m?.className),
2596
- crossOrigin: s,
2638
+ crossOrigin: o,
2597
2639
  src: f,
2598
2640
  alt: r,
2599
2641
  loading: v
2600
- }), null), !N && J && c("span", {
2601
- className: se("fallback")
2602
- }, [j ? I({
2642
+ }), null), !S && J && l("span", {
2643
+ className: oe("fallback")
2644
+ }, [R ? I({
2603
2645
  icon: u,
2604
- size: Ta.xxs,
2646
+ size: _a.xxs,
2605
2647
  theme: L
2606
2648
  }) : u])]), n]);
2607
- return _e ? oa({
2649
+ return xe ? la({
2608
2650
  ref: i,
2609
2651
  ...re,
2610
- className: Ht,
2611
- children: zt
2612
- }) : c("div", h({
2652
+ className: Gt,
2653
+ children: Ht
2654
+ }) : l("div", h({
2613
2655
  ref: i
2614
2656
  }, re, {
2615
- className: Ht
2616
- }), [zt]);
2657
+ className: Gt
2658
+ }), [Ht]);
2617
2659
  };
2618
- function Us(e, t) {
2619
- const r = ie(At(t.value));
2620
- W(
2660
+ function ri(e, t) {
2661
+ const r = ie(St(t.value));
2662
+ V(
2621
2663
  [e, t],
2622
2664
  () => {
2623
- r.value = At(t.value);
2665
+ r.value = St(t.value);
2624
2666
  },
2625
2667
  { immediate: !0 }
2626
2668
  );
2627
2669
  const a = (n) => {
2628
- t.value && (r.value = At(t.value, n));
2670
+ t.value && (r.value = St(t.value, n));
2629
2671
  };
2630
- return W(
2672
+ return V(
2631
2673
  t,
2632
- (n, o) => {
2633
- 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));
2634
2676
  },
2635
2677
  { immediate: !0 }
2636
- ), La(() => {
2678
+ ), Ra(() => {
2637
2679
  t.value && (t.value.removeEventListener("load", a), t.value.removeEventListener("error", a));
2638
2680
  }), r;
2639
2681
  }
2640
- function Ks(e) {
2641
- const { image: t, aspectRatio: r, focusPoint: a, width: n, height: o, element: s, isLoaded: i } = e, u = T(
2642
- () => 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({
2643
2685
  image: t.value,
2644
2686
  aspectRatio: r.value,
2645
2687
  focusPoint: a.value,
2646
2688
  width: n.value,
2647
- height: o.value,
2648
- element: s.value,
2689
+ height: s.value,
2690
+ element: o.value,
2649
2691
  isLoaded: i.value
2650
2692
  })
2651
- ), l = ie(void 0), d = () => {
2652
- 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;
2653
2695
  if (m && p) {
2654
- const g = l.value;
2655
- (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 });
2656
2698
  } else u.value && requestAnimationFrame(d);
2657
2699
  };
2658
- return W(
2659
- [() => s.value?.offsetWidth, () => s.value?.offsetHeight, u],
2700
+ return V(
2701
+ [() => o.value?.offsetWidth, () => o.value?.offsetHeight, u],
2660
2702
  () => {
2661
- Oa(d);
2703
+ ja(d);
2662
2704
  },
2663
2705
  { immediate: !0 }
2664
- ), T(
2665
- () => zs({
2706
+ ), $(
2707
+ () => Qo({
2666
2708
  image: t.value,
2667
2709
  aspectRatio: r.value,
2668
2710
  focusPoint: a.value,
2669
- element: s.value,
2711
+ element: o.value,
2670
2712
  imageSize: u.value,
2671
- containerSize: l.value
2713
+ containerSize: c.value
2672
2714
  })
2673
2715
  );
2674
2716
  }
2675
- const Ys = {
2717
+ const ni = {
2676
2718
  click: (e) => e instanceof Event,
2677
2719
  keyPress: (e) => e instanceof Event
2678
- }, Fi = /* @__PURE__ */ y((e, {
2720
+ }, el = /* @__PURE__ */ y((e, {
2679
2721
  emit: t,
2680
2722
  slots: r
2681
2723
  }) => {
2682
- 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"), {
2683
2725
  isAnyDisabled: u,
2684
- disabledStateProps: l,
2726
+ disabledStateProps: c,
2685
2727
  otherProps: d
2686
- } = H(T(() => ({
2728
+ } = z($(() => ({
2687
2729
  ...e,
2688
2730
  ...a
2689
- }))), 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({
2690
2732
  image: X(() => e.image),
2691
2733
  aspectRatio: X(() => e.aspectRatio),
2692
2734
  focusPoint: X(() => e.focusPoint),
2693
2735
  width: X(() => typeof e.imgProps?.width == "number" ? e.imgProps.width : void 0),
2694
2736
  height: X(() => typeof e.imgProps?.height == "number" ? e.imgProps.height : void 0),
2695
- element: o,
2737
+ element: s,
2696
2738
  isLoaded: m
2697
2739
  }), g = (v) => {
2698
2740
  u.value || (v.stopImmediatePropagation(), t("click", v));
@@ -2701,31 +2743,29 @@ const Ys = {
2701
2743
  };
2702
2744
  return () => {
2703
2745
  const v = r.badge?.(), C = r.fallback?.();
2704
- return c(Ws, h(d.value, {
2705
- onClick: s ? g : void 0
2706
- }, {
2707
- onKeyPress: i ? b : void 0
2708
- }, {
2746
+ return l(ti, h(d.value, {
2709
2747
  className: e.class,
2710
2748
  theme: e.theme || n.value,
2711
2749
  isAnyDisabled: u.value,
2712
- disabledStateProps: l.value,
2750
+ disabledStateProps: c.value,
2713
2751
  focusPointStyle: p.value,
2714
2752
  loadingState: f.value,
2715
- imgRef: o,
2753
+ imgRef: s,
2716
2754
  image: e.image,
2755
+ onClick: o ? g : void 0,
2756
+ onKeyPress: i ? b : void 0,
2717
2757
  fallback: C,
2718
- badge: v && (Array.isArray(v) ? v.map((P) => ({
2719
- ...P,
2758
+ badge: v && (Array.isArray(v) ? v.map((k) => ({
2759
+ ...k,
2720
2760
  props: {
2721
- ...P.props,
2722
- class: Z.join(se("badge"), P.props?.class)
2761
+ ...k.props,
2762
+ class: Z.join(oe("badge"), k.props?.class)
2723
2763
  }
2724
2764
  })) : {
2725
2765
  ...v,
2726
2766
  props: {
2727
2767
  ...v.props,
2728
- class: Z.join(se("badge"), v.props?.class)
2768
+ class: Z.join(oe("badge"), v.props?.class)
2729
2769
  }
2730
2770
  })
2731
2771
  }), null);
@@ -2733,46 +2773,46 @@ const Ys = {
2733
2773
  }, {
2734
2774
  name: "LumxThumbnail",
2735
2775
  inheritAttrs: !1,
2736
- props: S()("align", "alt", "aspectRatio", "class", "crossOrigin", "fillHeight", "focusPoint", "image", "imgProps", "isLoading", "linkAs", "linkProps", "loading", "loadingPlaceholderImageRef", "objectFit", "size", "theme", "variant", "aria-disabled", "aria-label"),
2737
- emits: Ys
2738
- }), 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 = {
2739
2779
  squared: "squared",
2740
2780
  rounded: "rounded"
2741
- }, zi = {
2781
+ }, rl = {
2742
2782
  cover: "cover",
2743
2783
  contain: "contain"
2744
- }, Gi = "Toolbar", Js = "lumx-toolbar", {
2745
- block: Xs,
2746
- element: St
2747
- } = $(Js), Qs = (e) => {
2784
+ }, al = "Toolbar", si = "lumx-toolbar", {
2785
+ block: oi,
2786
+ element: Pt
2787
+ } = T(si), ii = (e) => {
2748
2788
  const {
2749
2789
  after: t,
2750
2790
  before: r,
2751
2791
  className: a,
2752
2792
  label: n,
2753
- ref: o,
2754
- ...s
2793
+ ref: s,
2794
+ ...o
2755
2795
  } = e;
2756
- return c("div", h({
2757
- ref: o
2758
- }, s, {
2759
- className: A(a, Xs({
2796
+ return l("div", h({
2797
+ ref: s
2798
+ }, o, {
2799
+ className: N(a, oi({
2760
2800
  "has-after": !!t,
2761
2801
  "has-before": !!r,
2762
2802
  "has-label": !!n
2763
2803
  }))
2764
- }), [r && c("div", {
2765
- className: St("before")
2766
- }, [r]), n && c("div", {
2767
- className: St("label")
2768
- }, [n]), t && c("div", {
2769
- 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")
2770
2810
  }, [t])]);
2771
- }, Vi = /* @__PURE__ */ y((e, {
2811
+ }, nl = /* @__PURE__ */ y((e, {
2772
2812
  slots: t
2773
2813
  }) => {
2774
- const r = k();
2775
- return () => c(Qs, h(e, r, {
2814
+ const r = P();
2815
+ return () => l(ii, h(e, r, {
2776
2816
  className: e.class,
2777
2817
  label: t.default?.(),
2778
2818
  before: t.before?.(),
@@ -2781,52 +2821,58 @@ const Ys = {
2781
2821
  }, {
2782
2822
  name: "LumxToolbar",
2783
2823
  inheritAttrs: !1,
2784
- props: S()("class")
2824
+ props: A()("class")
2785
2825
  });
2786
2826
  export {
2787
- mi as Badge,
2788
- hi as BadgeWrapper,
2789
- pi as Button,
2790
- gi as ButtonGroup,
2791
- Ts as CLASSNAME,
2792
- Oi as COMPONENT_NAME,
2793
- vi as Checkbox,
2794
- Cs as DEFAULT_PROPS,
2795
- yi as Divider,
2796
- Ni as Flag,
2797
- Ai as FlexBox,
2798
- ba as GRID_COLUMN_CLASSNAME,
2799
- Vo as GRID_COLUMN_COMPONENT_NAME,
2800
- Si as GridColumn,
2801
- ki as Heading,
2802
- 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,
2803
2843
  Tt as Icon,
2804
- bi as IconButton,
2805
- Ti as InputHelper,
2806
- $i as InputLabel,
2807
- Ci as Link,
2808
- _i as Message,
2809
- xi as RadioButton,
2810
- wi as RadioGroup,
2811
- Ii as SkeletonCircle,
2812
- Ei as SkeletonRectangle,
2813
- ps as SkeletonRectangleVariant,
2814
- Li as SkeletonTypography,
2815
- Bi as Switch,
2816
- Gi as TOOLBAR_NAME,
2817
- ji as Table,
2818
- Ri as TableBody,
2819
- Mi as TableCell,
2820
- xt as TableCellVariant,
2821
- qi as TableHeader,
2822
- Di as TableRow,
2823
- 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,
2824
2870
  ge as ThOrder,
2825
- Fi as Thumbnail,
2826
- zi as ThumbnailObjectFit,
2827
- Hi as ThumbnailVariant,
2828
- Vi as Toolbar,
2829
- js as emitSchema,
2830
- 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
2831
2877
  };
2832
2878
  //# sourceMappingURL=index.js.map