@lumx/vue 4.3.2-alpha.2 → 4.3.2-alpha.3

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