@lumx/vue 4.2.1-alpha.9 → 4.3.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,387 +1,174 @@
1
- import { ColorVariant as Tr, Theme as _r } from '@lumx/core/js/constants/index.js';
1
+ import { ColorVariant as xr, Theme 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 d, mergeProps as g, inject as Ue, defineComponent as T, useAttrs as P, isVNode as K, computed as A, unref as Xe, provide as Vt, getCurrentScope as Sr, onScopeDispose as Nr, watch as We, toValue as ze, shallowRef as jr, getCurrentInstance as Pr, onMounted as wr, ref as kr, useSlots as Gt, Fragment as Ut, useTemplateRef as xr, toRefs as Or, reactive as Ir } from "vue";
5
- import { getDisabledState as Cr } from "@lumx/core/js/utils/disabledState";
6
- import { mdiAlertCircle as Wt } from '@lumx/icons/esm/alert-circle.js';
7
- import { classNames as $r } from "@lumx/core/js/utils";
8
- import { mdiAlert as Er } from '@lumx/icons/esm/alert.js';
9
- import { mdiCheckCircle as qr } from '@lumx/icons/esm/check-circle.js';
10
- import { mdiClose as Br } from '@lumx/icons/esm/close.js';
11
- import { mdiInformation as Mr } from '@lumx/icons/esm/information.js';
12
- var W = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
13
- function He(e) {
4
+ import { createVNode as f, mergeProps as v, isVNode as ee, inject as Je, computed as y, unref as nt, defineComponent as S, provide as Yt, useAttrs as P, getCurrentScope as Or, onScopeDispose as jr, watch as te, toValue as Xe, shallowRef as Er, getCurrentInstance as Rr, onMounted as Br, ref as Jt, useSlots as Xt, Fragment as Qt, useTemplateRef as Mr, toRefs as qr, reactive as Lr } from "vue";
5
+ import { getDisabledState as Dr } from '@lumx/core/js/utils/disabledState/index.js';
6
+ import { mdiAlertCircle as Zt } from '@lumx/icons/esm/alert-circle.js';
7
+ import { classNames as Fr } from '@lumx/core/js/utils/index.js';
8
+ import { mdiCheck as Gr } from '@lumx/icons/esm/check.js';
9
+ import { mdiMinus as Vr } from '@lumx/icons/esm/minus.js';
10
+ import { mdiAlert as Ur } from '@lumx/icons/esm/alert.js';
11
+ import { mdiCheckCircle as Wr } from '@lumx/icons/esm/check-circle.js';
12
+ import { mdiClose as zr } from '@lumx/icons/esm/close.js';
13
+ import { mdiInformation as Hr } from '@lumx/icons/esm/information.js';
14
+ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
15
+ function Qe(e) {
14
16
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
15
17
  }
16
- var te = { exports: {} };
17
- var Qe;
18
- function Rr() {
19
- return Qe || (Qe = 1, (function(e) {
20
- (function() {
21
- var t = {}.hasOwnProperty;
22
- function r() {
23
- for (var n = [], a = 0; a < arguments.length; a++) {
24
- var o = arguments[a];
25
- if (o) {
26
- var s = typeof o;
27
- if (s === "string" || s === "number")
28
- n.push(o);
29
- else if (Array.isArray(o)) {
30
- if (o.length) {
31
- var i = r.apply(null, o);
32
- i && n.push(i);
33
- }
34
- } else if (s === "object") {
35
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
36
- n.push(o.toString());
37
- continue;
38
- }
39
- for (var l in o)
40
- t.call(o, l) && o[l] && n.push(l);
41
- }
42
- }
43
- }
44
- return n.join(" ");
45
- }
46
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
47
- })();
48
- })(te)), te.exports;
49
- }
50
- var Lr = Rr();
51
- const S = /* @__PURE__ */ He(Lr);
52
- function zt(e, t) {
53
- if (!e) return [void 0, t];
54
- const [r, n] = e.split("-");
55
- return [r, t || n];
56
- }
57
- function Dr(e, t, r) {
58
- const [n, a = Tr.N] = zt(t, r);
59
- return `lumx-color-${e}-${n}-${a}`;
60
- }
61
- const Fr = (e, t) => Dr("font", e, t);
62
- function Ht(e) {
63
- return `lumx-typography-${e}`;
64
- }
65
- function Kt(e, t) {
66
- const r = [];
67
- for (const [n, a] of Object.entries(t))
68
- a && r.push(`${e}--${n}`);
69
- return r.join(" ");
70
- }
71
- function z(e, t, r) {
72
- let n, a;
73
- return Array.isArray(t) ? a = t : (n = t, a = r), !n && !a ? e : S(
74
- // Additional classes
75
- a,
76
- // Base class
77
- e,
78
- // Modifier(s)
79
- n ? Kt(e, n) : null
80
- );
81
- }
82
- function Ze(e, t, r, n) {
83
- return Array.isArray(r) ? z(`${e}__${t}`, r) : z(`${e}__${t}`, r, n);
84
- }
85
- function k(e) {
86
- function t(n, a) {
87
- return Array.isArray(n) ? z(e, n) : z(e, n, a);
88
- }
89
- function r(n, a, o) {
90
- return Array.isArray(a) ? Ze(e, n, a) : Ze(e, n, a, o);
91
- }
92
- return {
93
- block: t,
94
- element: r,
95
- modifier: (n) => Kt(e, n)
96
- };
97
- }
98
- const H = {
99
- light: "light",
100
- dark: "dark"
101
- }, w = {
102
- xxs: "xxs",
103
- xs: "xs",
104
- s: "s",
105
- m: "m",
106
- xl: "xl",
107
- xxl: "xxl"
108
- }, Vr = {
109
- horizontal: "horizontal"
110
- }, C = {
111
- low: "low",
112
- high: "high"
113
- }, Gr = {
114
- overline: "overline",
115
- caption: "caption",
116
- body1: "body1",
117
- body2: "body2",
118
- subtitle1: "subtitle1",
119
- subtitle2: "subtitle2",
120
- title: "title",
121
- headline: "headline",
122
- display1: "display1"
123
- }, B = {
124
- ...Gr
125
- }, O = {
126
- info: "info",
127
- success: "success",
128
- warning: "warning",
129
- error: "error"
130
- }, v = {
131
- primary: "primary",
132
- blue: "blue",
133
- dark: "dark",
134
- green: "green",
135
- yellow: "yellow",
136
- red: "red",
137
- light: "light"
138
- }, Ur = {
139
- [O.error]: { color: "red" },
140
- [O.success]: { color: "green" },
141
- [O.warning]: { color: "yellow" }
142
- }, Wr = "InputHelper", zr = "lumx-input-helper", Yt = zr, {
143
- block: Hr
144
- } = k(Yt), Jt = {
145
- kind: O.info
146
- };
147
- function Y(e) {
148
- const {
149
- children: t,
150
- className: r,
151
- kind: n = Jt.kind,
152
- theme: a,
153
- ref: o,
154
- ...s
155
- } = e, {
156
- color: i
157
- } = Ur[n] || {};
158
- return d("p", g({
159
- ref: o
160
- }, s, {
161
- className: S(r, Hr({
162
- [`color-${i}`]: !!i,
163
- [`theme-${a}`]: !!a
164
- }))
165
- }), [t]);
166
- }
167
- Y.displayName = Wr;
168
- Y.className = Yt;
169
- Y.defaultProps = Jt;
170
- function M(e = { defaultTheme: _r.light }) {
171
- const { defaultTheme: t } = e;
172
- return Ue("theme", void 0) || t;
173
- }
174
- const N = () => (...e) => e, Ca = /* @__PURE__ */ T((e, {
175
- slots: t
176
- }) => {
177
- const r = P(), n = M();
178
- return () => d(Y, g(e, r, {
179
- className: e.class,
180
- theme: e.theme || n,
181
- children: t.default?.()
182
- }), null);
183
- }, {
184
- name: "InputHelper",
185
- inheritAttrs: !1,
186
- // Redefine properties so that they come in as `props` on the `defineComponent` function
187
- props: N()("kind", "theme", "class")
188
- }), Kr = "InputLabel", Yr = "lumx-input-label", Xt = Yr, {
189
- block: Jr
190
- } = k(Xt), Xr = {};
191
- function J(e) {
192
- const {
193
- children: t,
194
- className: r,
195
- htmlFor: n,
196
- isRequired: a,
197
- theme: o,
198
- typography: s,
199
- ref: i,
200
- ...l
201
- } = e;
202
- return d("label", g({
203
- ref: i
204
- }, l, {
205
- htmlFor: n,
206
- className: S(r, Jr({
207
- "is-required": a,
208
- [`theme-${o}`]: !!o,
209
- "has-custom-typography": !!s
210
- }), s && Ht(s))
211
- }), [t]);
212
- }
213
- J.displayName = Kr;
214
- J.className = Xt;
215
- J.defaultProps = Xr;
216
- const $a = /* @__PURE__ */ T((e, {
217
- slots: t
218
- }) => {
219
- const r = P(), n = M();
220
- return () => d(J, g(e, r, {
221
- className: e.class,
222
- theme: e.theme || n,
223
- children: t.default?.()
224
- }), null);
225
- }, {
226
- name: "InputLabel",
227
- inheritAttrs: !1,
228
- // Redefine properties so that they come in as `props` on the `defineComponent` function
229
- props: N()("htmlFor", "isRequired", "typography", "theme", "class")
230
- });
231
- var re, et;
232
- function Qt() {
233
- if (et) return re;
234
- et = 1;
18
+ var ie, at;
19
+ function er() {
20
+ if (at) return ie;
21
+ at = 1;
235
22
  var e = Object.prototype;
236
- function t(r) {
237
- var n = r && r.constructor, a = typeof n == "function" && n.prototype || e;
238
- return r === a;
23
+ function r(t) {
24
+ var n = t && t.constructor, a = typeof n == "function" && n.prototype || e;
25
+ return t === a;
239
26
  }
240
- return re = t, re;
27
+ return ie = r, ie;
241
28
  }
242
- var ne, tt;
243
- function Qr() {
244
- if (tt) return ne;
245
- tt = 1;
246
- function e(t, r) {
29
+ var le, ot;
30
+ function Kr() {
31
+ if (ot) return le;
32
+ ot = 1;
33
+ function e(r, t) {
247
34
  return function(n) {
248
- return t(r(n));
35
+ return r(t(n));
249
36
  };
250
37
  }
251
- return ne = e, ne;
38
+ return le = e, le;
252
39
  }
253
- var ae, rt;
254
- function Zr() {
255
- if (rt) return ae;
256
- rt = 1;
257
- var e = Qr(), t = e(Object.keys, Object);
258
- return ae = t, ae;
40
+ var ce, st;
41
+ function Yr() {
42
+ if (st) return ce;
43
+ st = 1;
44
+ var e = Kr(), r = e(Object.keys, Object);
45
+ return ce = r, ce;
259
46
  }
260
- var oe, nt;
261
- function en() {
262
- if (nt) return oe;
263
- nt = 1;
264
- var e = Qt(), t = Zr(), r = Object.prototype, n = r.hasOwnProperty;
265
- function a(o) {
266
- if (!e(o))
267
- return t(o);
268
- var s = [];
269
- for (var i in Object(o))
270
- n.call(o, i) && i != "constructor" && s.push(i);
271
- return s;
47
+ var ue, it;
48
+ function Jr() {
49
+ if (it) return ue;
50
+ it = 1;
51
+ var e = er(), r = Yr(), 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;
272
59
  }
273
- return oe = a, oe;
60
+ return ue = a, ue;
274
61
  }
275
- var se, at;
276
- function Zt() {
277
- if (at) return se;
278
- at = 1;
279
- var e = typeof W == "object" && W && W.Object === Object && W;
280
- return se = e, se;
62
+ var de, lt;
63
+ function tr() {
64
+ if (lt) return de;
65
+ lt = 1;
66
+ var e = typeof X == "object" && X && X.Object === Object && X;
67
+ return de = e, de;
281
68
  }
282
- var ie, ot;
283
- function I() {
284
- if (ot) return ie;
285
- ot = 1;
286
- var e = Zt(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
287
- return ie = r, ie;
69
+ var fe, ct;
70
+ function B() {
71
+ if (ct) return fe;
72
+ ct = 1;
73
+ var e = tr(), r = typeof self == "object" && self && self.Object === Object && self, t = e || r || Function("return this")();
74
+ return fe = t, fe;
288
75
  }
289
- var ce, st;
290
- function er() {
291
- if (st) return ce;
292
- st = 1;
293
- var e = I(), t = e.Symbol;
294
- return ce = t, ce;
76
+ var pe, ut;
77
+ function rr() {
78
+ if (ut) return pe;
79
+ ut = 1;
80
+ var e = B(), r = e.Symbol;
81
+ return pe = r, pe;
295
82
  }
296
- var le, it;
297
- function tn() {
298
- if (it) return le;
299
- it = 1;
300
- var e = er(), t = Object.prototype, r = t.hasOwnProperty, n = t.toString, a = e ? e.toStringTag : void 0;
301
- function o(s) {
302
- var i = r.call(s, a), l = s[a];
83
+ var he, dt;
84
+ function Xr() {
85
+ if (dt) return he;
86
+ dt = 1;
87
+ var e = rr(), 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];
303
90
  try {
304
- s[a] = void 0;
305
- var u = !0;
91
+ o[a] = void 0;
92
+ var d = !0;
306
93
  } catch {
307
94
  }
308
- var c = n.call(s);
309
- return u && (i ? s[a] = l : delete s[a]), c;
95
+ var c = n.call(o);
96
+ return d && (i ? o[a] = l : delete o[a]), c;
310
97
  }
311
- return le = o, le;
98
+ return he = s, he;
312
99
  }
313
- var ue, ct;
314
- function rn() {
315
- if (ct) return ue;
316
- ct = 1;
317
- var e = Object.prototype, t = e.toString;
318
- function r(n) {
319
- return t.call(n);
100
+ var me, ft;
101
+ function Qr() {
102
+ if (ft) return me;
103
+ ft = 1;
104
+ var e = Object.prototype, r = e.toString;
105
+ function t(n) {
106
+ return r.call(n);
320
107
  }
321
- return ue = r, ue;
108
+ return me = t, me;
322
109
  }
323
- var fe, lt;
324
- function X() {
325
- if (lt) return fe;
326
- lt = 1;
327
- var e = er(), t = tn(), r = rn(), n = "[object Null]", a = "[object Undefined]", o = e ? e.toStringTag : void 0;
328
- function s(i) {
329
- return i == null ? i === void 0 ? a : n : o && o in Object(i) ? t(i) : r(i);
110
+ var be, pt;
111
+ function re() {
112
+ if (pt) return be;
113
+ pt = 1;
114
+ var e = rr(), r = Xr(), t = Qr(), 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);
330
117
  }
331
- return fe = s, fe;
118
+ return be = o, be;
332
119
  }
333
- var de, ut;
334
- function tr() {
335
- if (ut) return de;
336
- ut = 1;
337
- function e(t) {
338
- var r = typeof t;
339
- return t != null && (r == "object" || r == "function");
120
+ var ve, ht;
121
+ function nr() {
122
+ if (ht) return ve;
123
+ ht = 1;
124
+ function e(r) {
125
+ var t = typeof r;
126
+ return r != null && (t == "object" || t == "function");
340
127
  }
341
- return de = e, de;
128
+ return ve = e, ve;
342
129
  }
343
- var pe, ft;
344
- function rr() {
345
- if (ft) return pe;
346
- ft = 1;
347
- var e = X(), t = tr(), r = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", o = "[object Proxy]";
348
- function s(i) {
349
- if (!t(i))
130
+ var ge, mt;
131
+ function ar() {
132
+ if (mt) return ge;
133
+ mt = 1;
134
+ var e = re(), r = nr(), t = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", s = "[object Proxy]";
135
+ function o(i) {
136
+ if (!r(i))
350
137
  return !1;
351
138
  var l = e(i);
352
- return l == n || l == a || l == r || l == o;
139
+ return l == n || l == a || l == t || l == s;
353
140
  }
354
- return pe = s, pe;
141
+ return ge = o, ge;
355
142
  }
356
- var he, dt;
357
- function nn() {
358
- if (dt) return he;
359
- dt = 1;
360
- var e = I(), t = e["__core-js_shared__"];
361
- return he = t, he;
143
+ var ye, bt;
144
+ function Zr() {
145
+ if (bt) return ye;
146
+ bt = 1;
147
+ var e = B(), r = e["__core-js_shared__"];
148
+ return ye = r, ye;
362
149
  }
363
- var me, pt;
364
- function an() {
365
- if (pt) return me;
366
- pt = 1;
367
- var e = nn(), t = (function() {
150
+ var Ae, vt;
151
+ function en() {
152
+ if (vt) return Ae;
153
+ vt = 1;
154
+ var e = Zr(), r = (function() {
368
155
  var n = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
369
156
  return n ? "Symbol(src)_1." + n : "";
370
157
  })();
371
- function r(n) {
372
- return !!t && t in n;
158
+ function t(n) {
159
+ return !!r && r in n;
373
160
  }
374
- return me = r, me;
161
+ return Ae = t, Ae;
375
162
  }
376
- var be, ht;
377
- function nr() {
378
- if (ht) return be;
379
- ht = 1;
380
- var e = Function.prototype, t = e.toString;
381
- function r(n) {
163
+ var Ne, gt;
164
+ function or() {
165
+ if (gt) return Ne;
166
+ gt = 1;
167
+ var e = Function.prototype, r = e.toString;
168
+ function t(n) {
382
169
  if (n != null) {
383
170
  try {
384
- return t.call(n);
171
+ return r.call(n);
385
172
  } catch {
386
173
  }
387
174
  try {
@@ -391,440 +178,567 @@ function nr() {
391
178
  }
392
179
  return "";
393
180
  }
394
- return be = r, be;
181
+ return Ne = t, Ne;
395
182
  }
396
- var ve, mt;
397
- function on() {
398
- if (mt) return ve;
399
- mt = 1;
400
- var e = rr(), t = an(), r = tr(), n = nr(), a = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, i = Object.prototype, l = s.toString, u = i.hasOwnProperty, c = RegExp(
401
- "^" + l.call(u).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
183
+ var Se, yt;
184
+ function tn() {
185
+ if (yt) return Se;
186
+ yt = 1;
187
+ var e = ar(), r = en(), t = nr(), n = or(), 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.*?") + "$"
402
189
  );
403
- function f(p) {
404
- if (!r(p) || t(p))
190
+ function u(p) {
191
+ if (!t(p) || r(p))
405
192
  return !1;
406
- var h = e(p) ? c : o;
193
+ var h = e(p) ? c : s;
407
194
  return h.test(n(p));
408
195
  }
409
- return ve = f, ve;
196
+ return Se = u, Se;
410
197
  }
411
- var ge, bt;
412
- function sn() {
413
- if (bt) return ge;
414
- bt = 1;
415
- function e(t, r) {
416
- return t?.[r];
198
+ var Te, At;
199
+ function rn() {
200
+ if (At) return Te;
201
+ At = 1;
202
+ function e(r, t) {
203
+ return r?.[t];
417
204
  }
418
- return ge = e, ge;
205
+ return Te = e, Te;
419
206
  }
420
- var ye, vt;
421
- function D() {
422
- if (vt) return ye;
423
- vt = 1;
424
- var e = on(), t = sn();
425
- function r(n, a) {
426
- var o = t(n, a);
427
- return e(o) ? o : void 0;
207
+ var _e, Nt;
208
+ function W() {
209
+ if (Nt) return _e;
210
+ Nt = 1;
211
+ var e = tn(), r = rn();
212
+ function t(n, a) {
213
+ var s = r(n, a);
214
+ return e(s) ? s : void 0;
428
215
  }
429
- return ye = r, ye;
430
- }
431
- var Ae, gt;
432
- function cn() {
433
- if (gt) return Ae;
434
- gt = 1;
435
- var e = D(), t = I(), r = e(t, "DataView");
436
- return Ae = r, Ae;
437
- }
438
- var Te, yt;
439
- function ln() {
440
- if (yt) return Te;
441
- yt = 1;
442
- var e = D(), t = I(), r = e(t, "Map");
443
- return Te = r, Te;
216
+ return _e = t, _e;
444
217
  }
445
- var _e, At;
446
- function un() {
447
- if (At) return _e;
448
- At = 1;
449
- var e = D(), t = I(), r = e(t, "Promise");
450
- return _e = r, _e;
218
+ var ke, St;
219
+ function nn() {
220
+ if (St) return ke;
221
+ St = 1;
222
+ var e = W(), r = B(), t = e(r, "DataView");
223
+ return ke = t, ke;
451
224
  }
452
- var Se, Tt;
453
- function fn() {
454
- if (Tt) return Se;
225
+ var Pe, Tt;
226
+ function an() {
227
+ if (Tt) return Pe;
455
228
  Tt = 1;
456
- var e = D(), t = I(), r = e(t, "Set");
457
- return Se = r, Se;
229
+ var e = W(), r = B(), t = e(r, "Map");
230
+ return Pe = t, Pe;
458
231
  }
459
- var Ne, _t;
460
- function dn() {
461
- if (_t) return Ne;
232
+ var Ce, _t;
233
+ function on() {
234
+ if (_t) return Ce;
462
235
  _t = 1;
463
- var e = D(), t = I(), r = e(t, "WeakMap");
464
- return Ne = r, Ne;
236
+ var e = W(), r = B(), t = e(r, "Promise");
237
+ return Ce = t, Ce;
465
238
  }
466
- var je, St;
467
- function pn() {
468
- if (St) return je;
469
- St = 1;
470
- var e = cn(), t = ln(), r = un(), n = fn(), a = dn(), o = X(), s = nr(), i = "[object Map]", l = "[object Object]", u = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", p = "[object DataView]", h = s(e), b = s(t), y = s(r), j = s(n), E = s(a), _ = o;
471
- return (e && _(new e(new ArrayBuffer(1))) != p || t && _(new t()) != i || r && _(r.resolve()) != u || n && _(new n()) != c || a && _(new a()) != f) && (_ = function(x) {
472
- var q = o(x), G = q == l ? x.constructor : void 0, U = G ? s(G) : "";
473
- if (U)
474
- switch (U) {
239
+ var we, kt;
240
+ function sn() {
241
+ if (kt) return we;
242
+ kt = 1;
243
+ var e = W(), r = B(), t = e(r, "Set");
244
+ return we = t, we;
245
+ }
246
+ var $e, Pt;
247
+ function ln() {
248
+ if (Pt) return $e;
249
+ Pt = 1;
250
+ var e = W(), r = B(), t = e(r, "WeakMap");
251
+ return $e = t, $e;
252
+ }
253
+ var xe, Ct;
254
+ function cn() {
255
+ if (Ct) return xe;
256
+ Ct = 1;
257
+ var e = nn(), r = an(), t = on(), n = sn(), a = ln(), s = re(), o = or(), i = "[object Map]", l = "[object Object]", d = "[object Promise]", c = "[object Set]", u = "[object WeakMap]", p = "[object DataView]", h = o(e), b = o(r), m = o(t), A = o(n), C = o(a), N = s;
258
+ return (e && N(new e(new ArrayBuffer(1))) != p || r && N(new r()) != i || t && N(t.resolve()) != d || n && N(new n()) != c || a && N(new a()) != u) && (N = function($) {
259
+ var F = s($), Y = F == l ? $.constructor : void 0, J = Y ? o(Y) : "";
260
+ if (J)
261
+ switch (J) {
475
262
  case h:
476
263
  return p;
477
264
  case b:
478
265
  return i;
479
- case y:
480
- return u;
481
- case j:
266
+ case m:
267
+ return d;
268
+ case A:
482
269
  return c;
483
- case E:
484
- return f;
270
+ case C:
271
+ return u;
485
272
  }
486
- return q;
487
- }), je = _, je;
273
+ return F;
274
+ }), xe = N, xe;
488
275
  }
489
- var Pe, Nt;
490
- function Ke() {
491
- if (Nt) return Pe;
492
- Nt = 1;
493
- function e(t) {
494
- return t != null && typeof t == "object";
276
+ var Ie, wt;
277
+ function Ze() {
278
+ if (wt) return Ie;
279
+ wt = 1;
280
+ function e(r) {
281
+ return r != null && typeof r == "object";
495
282
  }
496
- return Pe = e, Pe;
283
+ return Ie = e, Ie;
497
284
  }
498
- var we, jt;
499
- function hn() {
500
- if (jt) return we;
501
- jt = 1;
502
- var e = X(), t = Ke(), r = "[object Arguments]";
285
+ var Oe, $t;
286
+ function un() {
287
+ if ($t) return Oe;
288
+ $t = 1;
289
+ var e = re(), r = Ze(), t = "[object Arguments]";
503
290
  function n(a) {
504
- return t(a) && e(a) == r;
291
+ return r(a) && e(a) == t;
505
292
  }
506
- return we = n, we;
293
+ return Oe = n, Oe;
507
294
  }
508
- var ke, Pt;
509
- function mn() {
510
- if (Pt) return ke;
511
- Pt = 1;
512
- var e = hn(), t = Ke(), r = Object.prototype, n = r.hasOwnProperty, a = r.propertyIsEnumerable, o = e(/* @__PURE__ */ (function() {
295
+ var je, xt;
296
+ function dn() {
297
+ if (xt) return je;
298
+ xt = 1;
299
+ var e = un(), r = Ze(), t = Object.prototype, n = t.hasOwnProperty, a = t.propertyIsEnumerable, s = e(/* @__PURE__ */ (function() {
513
300
  return arguments;
514
- })()) ? e : function(s) {
515
- return t(s) && n.call(s, "callee") && !a.call(s, "callee");
301
+ })()) ? e : function(o) {
302
+ return r(o) && n.call(o, "callee") && !a.call(o, "callee");
516
303
  };
517
- return ke = o, ke;
304
+ return je = s, je;
518
305
  }
519
- var xe, wt;
520
- function ar() {
521
- if (wt) return xe;
522
- wt = 1;
306
+ var Ee, It;
307
+ function sr() {
308
+ if (It) return Ee;
309
+ It = 1;
523
310
  var e = Array.isArray;
524
- return xe = e, xe;
311
+ return Ee = e, Ee;
525
312
  }
526
- var Oe, kt;
527
- function or() {
528
- if (kt) return Oe;
529
- kt = 1;
313
+ var Re, Ot;
314
+ function ir() {
315
+ if (Ot) return Re;
316
+ Ot = 1;
530
317
  var e = 9007199254740991;
531
- function t(r) {
532
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= e;
318
+ function r(t) {
319
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= e;
533
320
  }
534
- return Oe = t, Oe;
321
+ return Re = r, Re;
535
322
  }
536
- var Ie, xt;
537
- function bn() {
538
- if (xt) return Ie;
539
- xt = 1;
540
- var e = rr(), t = or();
541
- function r(n) {
542
- return n != null && t(n.length) && !e(n);
323
+ var Be, jt;
324
+ function fn() {
325
+ if (jt) return Be;
326
+ jt = 1;
327
+ var e = ar(), r = ir();
328
+ function t(n) {
329
+ return n != null && r(n.length) && !e(n);
543
330
  }
544
- return Ie = r, Ie;
331
+ return Be = t, Be;
545
332
  }
546
- var R = { exports: {} }, Ce, Ot;
547
- function vn() {
548
- if (Ot) return Ce;
549
- Ot = 1;
333
+ var V = { exports: {} }, Me, Et;
334
+ function pn() {
335
+ if (Et) return Me;
336
+ Et = 1;
550
337
  function e() {
551
338
  return !1;
552
339
  }
553
- return Ce = e, Ce;
340
+ return Me = e, Me;
341
+ }
342
+ V.exports;
343
+ var Rt;
344
+ function hn() {
345
+ return Rt || (Rt = 1, (function(e, r) {
346
+ var t = B(), n = pn(), 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;
347
+ e.exports = d;
348
+ })(V, V.exports)), V.exports;
349
+ }
350
+ var qe, Bt;
351
+ function mn() {
352
+ if (Bt) return qe;
353
+ Bt = 1;
354
+ var e = re(), r = ir(), t = Ze(), n = "[object Arguments]", a = "[object Array]", s = "[object Boolean]", o = "[object Date]", i = "[object Error]", l = "[object Function]", d = "[object Map]", c = "[object Number]", u = "[object Object]", p = "[object RegExp]", h = "[object Set]", b = "[object String]", m = "[object WeakMap]", A = "[object ArrayBuffer]", C = "[object DataView]", N = "[object Float32Array]", $ = "[object Float64Array]", F = "[object Int8Array]", Y = "[object Int16Array]", J = "[object Int32Array]", kr = "[object Uint8Array]", Pr = "[object Uint8ClampedArray]", Cr = "[object Uint16Array]", wr = "[object Uint32Array]", g = {};
355
+ g[N] = g[$] = g[F] = g[Y] = g[J] = g[kr] = g[Pr] = g[Cr] = g[wr] = !0, g[n] = g[a] = g[A] = g[s] = g[C] = g[o] = g[i] = g[l] = g[d] = g[c] = g[u] = g[p] = g[h] = g[b] = g[m] = !1;
356
+ function $r(se) {
357
+ return t(se) && r(se.length) && !!g[e(se)];
358
+ }
359
+ return qe = $r, qe;
360
+ }
361
+ var Le, Mt;
362
+ function bn() {
363
+ if (Mt) return Le;
364
+ Mt = 1;
365
+ function e(r) {
366
+ return function(t) {
367
+ return r(t);
368
+ };
369
+ }
370
+ return Le = e, Le;
554
371
  }
555
- R.exports;
556
- var It;
372
+ var U = { exports: {} };
373
+ U.exports;
374
+ var qt;
375
+ function vn() {
376
+ return qt || (qt = 1, (function(e, r) {
377
+ var t = tr(), n = r && !r.nodeType && r, a = n && !0 && e && !e.nodeType && e, s = a && a.exports === n, o = s && t.process, i = (function() {
378
+ try {
379
+ var l = a && a.require && a.require("util").types;
380
+ return l || o && o.binding && o.binding("util");
381
+ } catch {
382
+ }
383
+ })();
384
+ e.exports = i;
385
+ })(U, U.exports)), U.exports;
386
+ }
387
+ var De, Lt;
557
388
  function gn() {
558
- return It || (It = 1, (function(e, t) {
559
- var r = I(), n = vn(), a = t && !t.nodeType && t, o = a && !0 && e && !e.nodeType && e, s = o && o.exports === a, i = s ? r.Buffer : void 0, l = i ? i.isBuffer : void 0, u = l || n;
560
- e.exports = u;
561
- })(R, R.exports)), R.exports;
389
+ if (Lt) return De;
390
+ Lt = 1;
391
+ var e = mn(), r = bn(), t = vn(), n = t && t.isTypedArray, a = n ? r(n) : e;
392
+ return De = a, De;
393
+ }
394
+ var Fe, Dt;
395
+ function yn() {
396
+ if (Dt) return Fe;
397
+ Dt = 1;
398
+ var e = Jr(), r = cn(), t = dn(), n = sr(), a = fn(), s = hn(), o = er(), i = gn(), l = "[object Map]", d = "[object Set]", c = Object.prototype, u = c.hasOwnProperty;
399
+ function p(h) {
400
+ if (h == null)
401
+ 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 b = r(h);
405
+ if (b == l || b == d)
406
+ return !h.size;
407
+ if (o(h))
408
+ return !e(h).length;
409
+ for (var m in h)
410
+ if (u.call(h, m))
411
+ return !1;
412
+ return !0;
413
+ }
414
+ return Fe = p, Fe;
415
+ }
416
+ var An = yn();
417
+ const Ft = /* @__PURE__ */ Qe(An), Q = {
418
+ light: "light",
419
+ dark: "dark"
420
+ }, x = {
421
+ xxs: "xxs",
422
+ xs: "xs",
423
+ s: "s",
424
+ m: "m",
425
+ xl: "xl",
426
+ xxl: "xxl"
427
+ }, Nn = {
428
+ horizontal: "horizontal"
429
+ }, q = {
430
+ low: "low",
431
+ high: "high"
432
+ }, Sn = {
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
+ }, G = {
443
+ ...Sn
444
+ }, R = {
445
+ info: "info",
446
+ success: "success",
447
+ warning: "warning",
448
+ error: "error"
449
+ }, T = {
450
+ primary: "primary",
451
+ blue: "blue",
452
+ dark: "dark",
453
+ green: "green",
454
+ yellow: "yellow",
455
+ red: "red",
456
+ light: "light"
457
+ };
458
+ var Ge = { exports: {} };
459
+ var Gt;
460
+ function Tn() {
461
+ return Gt || (Gt = 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
+ })(Ge)), Ge.exports;
491
+ }
492
+ var _n = Tn();
493
+ const _ = /* @__PURE__ */ Qe(_n);
494
+ function lr(e, r) {
495
+ if (!e) return [void 0, r];
496
+ const [t, n] = e.split("-");
497
+ return [t, r || n];
498
+ }
499
+ function kn(e, r, t) {
500
+ const [n, a = xr.N] = lr(r, t);
501
+ return `lumx-color-${e}-${n}-${a}`;
502
+ }
503
+ const Pn = (e, r) => kn("font", e, r);
504
+ function cr(e) {
505
+ return `lumx-typography-${e}`;
506
+ }
507
+ function ur(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 Z(e, r, t) {
514
+ let n, a;
515
+ return Array.isArray(r) ? a = r : (n = r, a = t), !n && !a ? e : _(
516
+ // Additional classes
517
+ a,
518
+ // Base class
519
+ e,
520
+ // Modifier(s)
521
+ n ? ur(e, n) : null
522
+ );
562
523
  }
563
- var $e, Ct;
564
- function yn() {
565
- if (Ct) return $e;
566
- Ct = 1;
567
- var e = X(), t = or(), r = Ke(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", u = "[object Map]", c = "[object Number]", f = "[object Object]", p = "[object RegExp]", h = "[object Set]", b = "[object String]", y = "[object WeakMap]", j = "[object ArrayBuffer]", E = "[object DataView]", _ = "[object Float32Array]", x = "[object Float64Array]", q = "[object Int8Array]", G = "[object Int16Array]", U = "[object Int32Array]", br = "[object Uint8Array]", vr = "[object Uint8ClampedArray]", gr = "[object Uint16Array]", yr = "[object Uint32Array]", m = {};
568
- m[_] = m[x] = m[q] = m[G] = m[U] = m[br] = m[vr] = m[gr] = m[yr] = !0, m[n] = m[a] = m[j] = m[o] = m[E] = m[s] = m[i] = m[l] = m[u] = m[c] = m[f] = m[p] = m[h] = m[b] = m[y] = !1;
569
- function Ar(ee) {
570
- return r(ee) && t(ee.length) && !!m[e(ee)];
571
- }
572
- return $e = Ar, $e;
524
+ function Vt(e, r, t, n) {
525
+ return Array.isArray(t) ? Z(`${e}__${r}`, t) : Z(`${e}__${r}`, t, n);
573
526
  }
574
- var Ee, $t;
575
- function An() {
576
- if ($t) return Ee;
577
- $t = 1;
578
- function e(t) {
579
- return function(r) {
580
- return t(r);
581
- };
527
+ function w(e) {
528
+ function r(n, a) {
529
+ return Array.isArray(n) ? Z(e, n) : Z(e, n, a);
582
530
  }
583
- return Ee = e, Ee;
584
- }
585
- var L = { exports: {} };
586
- L.exports;
587
- var Et;
588
- function Tn() {
589
- return Et || (Et = 1, (function(e, t) {
590
- var r = Zt(), n = t && !t.nodeType && t, a = n && !0 && e && !e.nodeType && e, o = a && a.exports === n, s = o && r.process, i = (function() {
591
- try {
592
- var l = a && a.require && a.require("util").types;
593
- return l || s && s.binding && s.binding("util");
594
- } catch {
595
- }
596
- })();
597
- e.exports = i;
598
- })(L, L.exports)), L.exports;
599
- }
600
- var qe, qt;
601
- function _n() {
602
- if (qt) return qe;
603
- qt = 1;
604
- var e = yn(), t = An(), r = Tn(), n = r && r.isTypedArray, a = n ? t(n) : e;
605
- return qe = a, qe;
606
- }
607
- var Be, Bt;
608
- function Sn() {
609
- if (Bt) return Be;
610
- Bt = 1;
611
- var e = en(), t = pn(), r = mn(), n = ar(), a = bn(), o = gn(), s = Qt(), i = _n(), l = "[object Map]", u = "[object Set]", c = Object.prototype, f = c.hasOwnProperty;
612
- function p(h) {
613
- if (h == null)
614
- return !0;
615
- if (a(h) && (n(h) || typeof h == "string" || typeof h.splice == "function" || o(h) || i(h) || r(h)))
616
- return !h.length;
617
- var b = t(h);
618
- if (b == l || b == u)
619
- return !h.size;
620
- if (s(h))
621
- return !e(h).length;
622
- for (var y in h)
623
- if (f.call(h, y))
624
- return !1;
625
- return !0;
531
+ function t(n, a, s) {
532
+ return Array.isArray(a) ? Vt(e, n, a) : Vt(e, n, a, s);
626
533
  }
627
- return Be = p, Be;
534
+ return {
535
+ block: r,
536
+ element: t,
537
+ modifier: (n) => ur(e, n)
538
+ };
628
539
  }
629
- var Nn = Sn();
630
- const Mt = /* @__PURE__ */ He(Nn);
631
- function jn(e) {
632
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !K(e);
540
+ function Cn(e) {
541
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
633
542
  }
634
- const Pn = (e) => {
543
+ const wn = (e) => {
635
544
  const {
636
- children: t,
637
- onClick: r,
545
+ children: r,
546
+ onClick: t,
638
547
  disabled: n,
639
548
  isDisabled: a = n,
640
- "aria-disabled": o,
641
- as: s,
549
+ "aria-disabled": s,
550
+ as: o,
642
551
  ...i
643
- } = e, l = a || o === "true" || o === !0, u = s;
552
+ } = e, l = a || s === "true" || s === !0, d = o;
644
553
  let c;
645
- return u === "button" ? c = {
554
+ return d === "button" ? c = {
646
555
  type: i.type || "button",
647
556
  disabled: a
648
557
  } : c = {
649
558
  tabIndex: a ? "-1" : i.tabIndex
650
- }, d(u, g(i, c, {
651
- "aria-disabled": l || void 0,
652
- onClick: (f) => {
559
+ }, f(d, v({
560
+ "aria-disabled": l || void 0
561
+ }, i, c, {
562
+ onClick: (u) => {
653
563
  if (l) {
654
- f.stopPropagation(), f.preventDefault();
564
+ u.stopPropagation(), u.preventDefault();
655
565
  return;
656
566
  }
657
- r?.(f);
567
+ t?.(u);
658
568
  }
659
- }), jn(t) ? t : {
660
- default: () => [t]
569
+ }), Cn(r) ? r : {
570
+ default: () => [r]
661
571
  });
662
- }, wn = "ButtonRoot", kn = "lumx-button-wrapper", {
663
- block: xn
664
- } = k(kn), On = "lumx-button", {
572
+ }, $n = "ButtonRoot", xn = "lumx-button-wrapper", {
665
573
  block: In
666
- } = k(On), Cn = (e) => {
574
+ } = w(xn), On = "lumx-button", {
575
+ block: jn
576
+ } = w(On), En = (e) => {
667
577
  const {
668
- color: t,
669
- emphasis: r,
578
+ color: r,
579
+ emphasis: t,
670
580
  variant: n,
671
581
  fullWidth: a
672
- } = e, o = r === C.low && (t === v.light ? v.dark : v.light), s = xn({
673
- [`color-${o}`]: !!o,
582
+ } = e, s = t === q.low && (r === T.light ? T.dark : T.light), o = In({
583
+ [`color-${s}`]: !!s,
674
584
  [`variant-${n}`]: !!n,
675
585
  "is-full-width": a
676
586
  }), i = {
677
587
  ...e,
678
588
  hasBackground: !1
679
589
  };
680
- return d("div", {
681
- className: s
682
- }, [F(i)]);
683
- }, F = (e) => {
590
+ return f("div", {
591
+ className: o
592
+ }, [z(i)]);
593
+ }, z = (e) => {
684
594
  const {
685
- "aria-label": t,
686
- "aria-disabled": r,
595
+ "aria-label": r,
596
+ "aria-disabled": t,
687
597
  children: n,
688
598
  className: a,
689
- color: o,
690
- emphasis: s,
599
+ color: s,
600
+ emphasis: o,
691
601
  hasBackground: i,
692
602
  isSelected: l,
693
- isActive: u,
603
+ isActive: d,
694
604
  isFocused: c,
695
- isHovered: f,
605
+ isHovered: u,
696
606
  linkAs: p,
697
607
  size: h,
698
- theme: b = H.light,
699
- variant: y,
700
- fullWidth: j,
701
- ref: E,
702
- ..._
703
- } = e, x = o || s !== C.high && b === H.dark && v.light || s === C.high && v.primary || v.dark;
608
+ theme: b = Q.light,
609
+ variant: m,
610
+ fullWidth: A,
611
+ ref: C,
612
+ ...N
613
+ } = e, $ = s || o !== q.high && b === Q.dark && T.light || o === q.high && T.primary || T.dark;
704
614
  if (i)
705
- return Cn({
615
+ return En({
706
616
  ...e,
707
- ref: E,
708
- variant: y,
709
- color: x
617
+ ref: C,
618
+ variant: m,
619
+ color: $
710
620
  });
711
- const q = S(a, In({
712
- [`color-${x}`]: !!x,
713
- [`emphasis-${s}`]: !!s,
621
+ const F = _(a, jn({
622
+ [`color-${$}`]: !!$,
623
+ [`emphasis-${o}`]: !!o,
714
624
  "is-selected": l,
715
625
  "is-disabled": !!(e.isDisabled || e["aria-disabled"]),
716
- "is-active": u,
626
+ "is-active": d,
717
627
  "is-focused": c,
718
- "is-hovered": f,
628
+ "is-hovered": u,
719
629
  [`size-${h}`]: !!h,
720
- [`theme-${b}`]: !!(s === C.high && b),
721
- [`variant-${y}`]: !!y,
722
- "is-full-width": j
630
+ [`theme-${b}`]: !!(o === q.high && b),
631
+ [`variant-${m}`]: !!m,
632
+ "is-full-width": A
723
633
  }));
724
- return Pn({
725
- as: p || (_.href ? "a" : "button"),
726
- ..._,
727
- "aria-disabled": r,
728
- "aria-label": t,
729
- ref: E,
730
- className: q,
634
+ return wn({
635
+ as: p || (N.href ? "a" : "button"),
636
+ ...N,
637
+ "aria-disabled": t,
638
+ "aria-label": r,
639
+ ref: C,
640
+ className: F,
731
641
  children: n
732
642
  });
733
643
  };
734
- F.displayName = wn;
735
- F.defaultProps = {};
736
- const $n = "Button", sr = "lumx-button", {
737
- modifier: En
738
- } = k(sr), Le = {
739
- emphasis: C.high,
740
- size: w.m
741
- }, Q = (e) => {
644
+ z.displayName = $n;
645
+ z.defaultProps = {};
646
+ const Rn = "Button", dr = "lumx-button", {
647
+ modifier: Bn
648
+ } = w(dr), We = {
649
+ emphasis: q.high,
650
+ size: x.m
651
+ }, ne = (e) => {
742
652
  const {
743
- className: t,
744
- emphasis: r = Le.emphasis,
653
+ className: r,
654
+ emphasis: t = We.emphasis,
745
655
  leftIcon: n,
746
656
  rightIcon: a,
747
- size: o = Le.size,
748
- ...s
749
- } = e, i = S(t, En({
657
+ size: s = We.size,
658
+ ...o
659
+ } = e, i = _(r, Bn({
750
660
  "has-left-icon": !!n,
751
661
  "has-right-icon": !!a
752
662
  }));
753
- return F({
754
- emphasis: r,
755
- size: o,
756
- ...s,
663
+ return z({
664
+ emphasis: t,
665
+ size: s,
666
+ ...o,
757
667
  className: i,
758
668
  variant: "button"
759
669
  });
760
670
  };
761
- Q.displayName = $n;
762
- Q.className = sr;
763
- Q.defaultProps = Le;
764
- const qn = /* @__PURE__ */ Symbol("DISABLED_STATE_KEY");
765
- function Bn() {
766
- return Ue(qn, { state: null });
767
- }
768
- function ir(e) {
769
- const t = Bn(), r = A(() => {
770
- const o = typeof e == "function" ? e() : Xe(e);
771
- return Cr(t, {
772
- disabled: o.disabled,
773
- isDisabled: o.isDisabled,
774
- "aria-disabled": o["aria-disabled"] ?? o.ariaDisabled
671
+ ne.displayName = Rn;
672
+ ne.className = dr;
673
+ ne.defaultProps = We;
674
+ function I(e = { defaultTheme: Ir.light }) {
675
+ const { defaultTheme: r } = e;
676
+ return Je("theme", void 0) || r;
677
+ }
678
+ const Mn = /* @__PURE__ */ Symbol("DISABLED_STATE_KEY");
679
+ function qn() {
680
+ return Je(Mn, { state: null });
681
+ }
682
+ function H(e) {
683
+ const r = qn(), t = y(() => {
684
+ const s = typeof e == "function" ? e() : nt(e);
685
+ return Dr(r, {
686
+ disabled: s.disabled,
687
+ isDisabled: s.isDisabled,
688
+ "aria-disabled": s["aria-disabled"] ?? s.ariaDisabled
775
689
  });
776
- }), n = A(
777
- () => r.value["aria-disabled"] || r.value.disabled || void 0
778
- ), a = A(() => {
779
- const o = typeof e == "function" ? e() : Xe(e), { disabled: s, isDisabled: i, "aria-disabled": l, ariaDisabled: u, onClick: c, onChange: f, ...p } = o;
780
- return n.value || (c && (p.onClick = c), f && (p.onChange = f)), p;
690
+ }), n = y(
691
+ () => t.value["aria-disabled"] || t.value.disabled || void 0
692
+ ), a = y(() => {
693
+ const s = typeof e == "function" ? e() : nt(e), { disabled: o, isDisabled: i, "aria-disabled": l, ariaDisabled: d, onClick: c, onChange: u, ...p } = s;
694
+ return n.value || (c && (p.onClick = c), u && (p.onChange = u)), p;
781
695
  });
782
- return { disabledStateProps: r, isAnyDisabled: n, otherProps: a };
696
+ return { disabledStateProps: t, isAnyDisabled: n, otherProps: a };
783
697
  }
784
- const Rt = T({
698
+ const k = () => (...e) => e, Ut = S({
785
699
  name: "ResetTheme",
786
- setup(e, { slots: t }) {
787
- return Vt("theme", void 0), () => t.default?.();
700
+ setup(e, { slots: r }) {
701
+ return Yt("theme", void 0), () => r.default?.();
788
702
  }
789
- }), Mn = "Icon", Rn = "lumx-icon", cr = Rn, {
790
- block: Ln
791
- } = k(cr), Dn = {}, $ = (e) => {
703
+ }), Ln = "Icon", Dn = "lumx-icon", fr = Dn, {
704
+ block: Fn
705
+ } = w(fr), Gn = {}, M = (e) => {
792
706
  const {
793
- className: t,
794
- color: r,
707
+ className: r,
708
+ color: t,
795
709
  colorVariant: n,
796
710
  hasShape: a,
797
- icon: o,
798
- size: s,
711
+ icon: s,
712
+ size: o,
799
713
  ref: i,
800
714
  theme: l,
801
- alt: u,
715
+ alt: d,
802
716
  verticalAlign: c,
803
- ...f
804
- } = e, [p, h] = zt(r, n);
717
+ ...u
718
+ } = e, [p, h] = lr(t, n);
805
719
  let b = p;
806
- !b && (a || l) && (b = l === H.dark ? v.light : v.dark);
807
- let y = h;
808
- !y && a && b === v.dark && (y = "L2");
809
- let j = s;
810
- return s && a ? s === w.xxs || s === w.xs ? j = w.s : s === w.xxl && (j = w.xl) : a && (j = w.m), d("i", g({
720
+ !b && (a || l) && (b = l === Q.dark ? T.light : T.dark);
721
+ let m = h;
722
+ !m && a && b === T.dark && (m = "L2");
723
+ let A = o;
724
+ return o && a ? o === x.xxs || o === x.xs ? A = x.s : o === x.xxl && (A = x.xl) : a && (A = x.m), f("i", v({
811
725
  ref: i
812
- }, f, {
813
- className: S(t, Ln({
726
+ }, u, {
727
+ className: _(r, Fn({
814
728
  [`color-${b}`]: !!b,
815
- [`color-variant-${y}`]: !!y,
729
+ [`color-variant-${m}`]: !!m,
816
730
  "has-shape": a,
817
731
  [`theme-${l}`]: !!l,
818
- [`size-${j}`]: !!j,
732
+ [`size-${A}`]: !!A,
819
733
  "no-shape": !a,
820
- "has-dark-layer": !a && b === v.yellow && o === Wt,
734
+ "has-dark-layer": !a && b === T.yellow && s === Zt,
821
735
  path: !0,
822
736
  "vertical-align-middle": c === "middle"
823
737
  }))
824
- }), [d("svg", {
825
- "aria-hidden": u ? void 0 : "true",
826
- role: u ? "img" : void 0,
827
- "aria-label": u,
738
+ }), [f("svg", {
739
+ "aria-hidden": d ? void 0 : "true",
740
+ role: d ? "img" : void 0,
741
+ "aria-label": d,
828
742
  height: "1em",
829
743
  preserveAspectRatio: "xMidYMid meet",
830
744
  style: {
@@ -832,205 +746,205 @@ const Rt = T({
832
746
  },
833
747
  viewBox: "0 0 24 24",
834
748
  width: "1em"
835
- }, [d("path", {
836
- d: o,
749
+ }, [f("path", {
750
+ d: s,
837
751
  fill: "currentColor"
838
752
  }, null)])]);
839
753
  };
840
- $.displayName = Mn;
841
- $.className = cr;
842
- $.defaultProps = Dn;
843
- const De = /* @__PURE__ */ T((e) => {
844
- const t = P(), r = M({
754
+ M.displayName = Ln;
755
+ M.className = fr;
756
+ M.defaultProps = Gn;
757
+ const ze = /* @__PURE__ */ S((e) => {
758
+ const r = P(), t = I({
845
759
  defaultTheme: void 0
846
760
  });
847
- return () => d($, g(e, t, {
761
+ return () => f(M, v(e, r, {
848
762
  className: e.class,
849
- theme: e.theme || r
763
+ theme: e.theme || t
850
764
  }), null);
851
765
  }, {
852
766
  name: "Icon",
853
767
  inheritAttrs: !1,
854
768
  // Redefine properties so that they come in as `props` on the `defineComponent` function
855
- props: N()("icon", "color", "colorVariant", "hasShape", "size", "alt", "verticalAlign", "theme", "class")
856
- }), Fn = "lumx-text", {
857
- block: Vn
858
- } = k(Fn), Gn = (e) => {
769
+ props: k()("icon", "color", "colorVariant", "hasShape", "size", "alt", "verticalAlign", "theme", "class")
770
+ }), Vn = "lumx-text", {
771
+ block: Un
772
+ } = w(Vn), Wn = (e) => {
859
773
  const {
860
- className: t,
861
- color: r,
774
+ className: r,
775
+ color: t,
862
776
  colorVariant: n,
863
777
  noWrap: a,
864
- typography: o,
865
- truncate: s,
778
+ typography: s,
779
+ truncate: o,
866
780
  whiteSpace: i,
867
781
  style: l
868
- } = e, u = typeof s == "object" && s.lines > 1 && {
869
- "--lumx-text-truncate-lines": s.lines
870
- }, c = !!u, f = !!s, p = !a && !(f && !c) && i && {
782
+ } = e, d = typeof o == "object" && o.lines > 1 && {
783
+ "--lumx-text-truncate-lines": o.lines
784
+ }, c = !!d, u = !!o, p = !a && !(u && !c) && i && {
871
785
  "--lumx-text-white-space": i
872
786
  };
873
787
  return {
874
- className: S(t, Vn({
875
- "is-truncated": f && !c,
788
+ className: _(r, Un({
789
+ "is-truncated": u && !c,
876
790
  "is-truncated-multiline": c,
877
791
  "no-wrap": a
878
- }), o && Ht(o), r && Fr(r, n)),
792
+ }), s && cr(s), t && Pn(t, n)),
879
793
  style: {
880
- ...u,
794
+ ...d,
881
795
  ...p,
882
796
  ...l
883
797
  }
884
798
  };
885
799
  };
886
- function lr(e, t) {
887
- return Sr() ? (Nr(e, t), !0) : !1;
800
+ function pr(e, r) {
801
+ return Or() ? (jr(e, r), !0) : !1;
888
802
  }
889
- const Un = typeof window < "u" && typeof document < "u";
803
+ const zn = typeof window < "u" && typeof document < "u";
890
804
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
891
- const Wn = (e) => e != null;
892
- function zn(e) {
805
+ const Hn = (e) => e != null;
806
+ function Kn(e) {
893
807
  return Array.isArray(e) ? e : [e];
894
808
  }
895
- const ur = Un ? window : void 0;
896
- function Fe(e) {
897
- var t;
898
- const r = ze(e);
899
- return (t = r?.$el) !== null && t !== void 0 ? t : r;
809
+ const hr = zn ? window : void 0;
810
+ function He(e) {
811
+ var r;
812
+ const t = Xe(e);
813
+ return (r = t?.$el) !== null && r !== void 0 ? r : t;
900
814
  }
901
815
  // @__NO_SIDE_EFFECTS__
902
- function Hn() {
903
- const e = jr(!1), t = Pr();
904
- return t && wr(() => {
816
+ function Yn() {
817
+ const e = Er(!1), r = Rr();
818
+ return r && Br(() => {
905
819
  e.value = !0;
906
- }, t), e;
820
+ }, r), e;
907
821
  }
908
822
  // @__NO_SIDE_EFFECTS__
909
- function fr(e) {
910
- const t = /* @__PURE__ */ Hn();
911
- return A(() => (t.value, !!e()));
912
- }
913
- function Kn(e, t, r = {}) {
914
- const { window: n = ur, ...a } = r;
915
- let o;
916
- const s = /* @__PURE__ */ fr(() => n && "MutationObserver" in n), i = () => {
917
- o && (o.disconnect(), o = void 0);
918
- }, l = We(A(() => {
919
- const f = zn(ze(e)).map(Fe).filter(Wn);
920
- return new Set(f);
921
- }), (f) => {
922
- i(), s.value && f.size && (o = new MutationObserver(t), f.forEach((p) => o.observe(p, a)));
823
+ function mr(e) {
824
+ const r = /* @__PURE__ */ Yn();
825
+ return y(() => (r.value, !!e()));
826
+ }
827
+ function Jn(e, r, t = {}) {
828
+ const { window: n = hr, ...a } = t;
829
+ let s;
830
+ const o = /* @__PURE__ */ mr(() => n && "MutationObserver" in n), i = () => {
831
+ s && (s.disconnect(), s = void 0);
832
+ }, l = te(y(() => {
833
+ const u = Kn(Xe(e)).map(He).filter(Hn);
834
+ return new Set(u);
835
+ }), (u) => {
836
+ i(), o.value && u.size && (s = new MutationObserver(r), u.forEach((p) => s.observe(p, a)));
923
837
  }, {
924
838
  immediate: !0,
925
839
  flush: "post"
926
- }), u = () => o?.takeRecords(), c = () => {
840
+ }), d = () => s?.takeRecords(), c = () => {
927
841
  l(), i();
928
842
  };
929
- return lr(c), {
930
- isSupported: s,
843
+ return pr(c), {
844
+ isSupported: o,
931
845
  stop: c,
932
- takeRecords: u
846
+ takeRecords: d
933
847
  };
934
848
  }
935
- function Yn(e, t, r = {}) {
936
- const { window: n = ur, ...a } = r;
937
- let o;
938
- const s = /* @__PURE__ */ fr(() => n && "ResizeObserver" in n), i = () => {
939
- o && (o.disconnect(), o = void 0);
940
- }, l = We(A(() => {
941
- const c = ze(e);
942
- return Array.isArray(c) ? c.map((f) => Fe(f)) : [Fe(c)];
849
+ function Xn(e, r, t = {}) {
850
+ const { window: n = hr, ...a } = t;
851
+ let s;
852
+ const o = /* @__PURE__ */ mr(() => n && "ResizeObserver" in n), i = () => {
853
+ s && (s.disconnect(), s = void 0);
854
+ }, l = te(y(() => {
855
+ const c = Xe(e);
856
+ return Array.isArray(c) ? c.map((u) => He(u)) : [He(c)];
943
857
  }), (c) => {
944
- if (i(), s.value && n) {
945
- o = new ResizeObserver(t);
946
- for (const f of c) f && o.observe(f, a);
858
+ if (i(), o.value && n) {
859
+ s = new ResizeObserver(r);
860
+ for (const u of c) u && s.observe(u, a);
947
861
  }
948
862
  }, {
949
863
  immediate: !0,
950
864
  flush: "post"
951
- }), u = () => {
865
+ }), d = () => {
952
866
  i(), l();
953
867
  };
954
- return lr(u), {
955
- isSupported: s,
956
- stop: u
868
+ return pr(d), {
869
+ isSupported: o,
870
+ stop: d
957
871
  };
958
872
  }
959
- function Jn(e) {
960
- const t = kr(void 0), r = () => {
873
+ function Qn(e) {
874
+ const r = Jt(void 0), t = () => {
961
875
  const n = e.value;
962
- n && !n.closest(`.${$r.visuallyHidden()}`) && n.offsetWidth < n.scrollWidth ? t.value = n.innerText : t.value = void 0;
876
+ n && !n.closest(`.${Fr.visuallyHidden()}`) && n.offsetWidth < n.scrollWidth ? r.value = n.innerText : r.value = void 0;
963
877
  };
964
- return Kn(e, r, {
878
+ return Jn(e, t, {
965
879
  childList: !0,
966
880
  attributes: !0,
967
881
  characterData: !0,
968
882
  subtree: !0
969
- }), Yn(e, r), We(e, r, { immediate: !0 }), { tooltipLabel: t };
883
+ }), Xn(e, t), te(e, t, { immediate: !0 }), { tooltipLabel: r };
970
884
  }
971
- const Xn = (e = "default") => {
972
- const t = Gt();
885
+ const Zn = (e = "default") => {
886
+ const r = Xt();
973
887
  return () => {
974
- const r = t?.[e];
975
- return r ? r() : null;
888
+ const t = r?.[e];
889
+ return t ? t() : null;
976
890
  };
977
891
  };
978
- function Ve(e) {
892
+ function Ke(e) {
979
893
  if (!e) return;
980
- const t = [];
981
- for (const r of e) {
982
- if (!K(r)) {
983
- t.push(r);
894
+ const r = [];
895
+ for (const t of e) {
896
+ if (!ee(t)) {
897
+ r.push(t);
984
898
  continue;
985
899
  }
986
- if (r.type === De) {
987
- t.push(" "), t.push(r), t.push(" ");
900
+ if (t.type === ze) {
901
+ r.push(" "), r.push(t), r.push(" ");
988
902
  continue;
989
903
  }
990
- if (r.type === Ut && Array.isArray(r.children)) {
991
- const n = Ve(r.children);
992
- n && t.push(...n);
904
+ if (t.type === Qt && Array.isArray(t.children)) {
905
+ const n = Ke(t.children);
906
+ n && r.push(...n);
993
907
  continue;
994
908
  }
995
- if (typeof r.type == "string" && Array.isArray(r.children)) {
996
- const n = Ve(r.children), a = { ...r.props || {} };
997
- r.key != null && (a.key = r.key), r.ref != null && (a.ref = r.ref), t.push(d(r.type, a, n));
909
+ if (typeof t.type == "string" && Array.isArray(t.children)) {
910
+ const n = Ke(t.children), a = { ...t.props || {} };
911
+ t.key != null && (a.key = t.key), t.ref != null && (a.ref = t.ref), r.push(f(t.type, a, n));
998
912
  continue;
999
913
  }
1000
- t.push(r);
914
+ r.push(t);
1001
915
  }
1002
- return t;
916
+ return r;
1003
917
  }
1004
- function Qn(e) {
1005
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !K(e);
918
+ function ea(e) {
919
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
1006
920
  }
1007
- const Ye = /* @__PURE__ */ T((e, {
1008
- slots: t
921
+ const et = /* @__PURE__ */ S((e, {
922
+ slots: r
1009
923
  }) => {
1010
- const r = P(), n = Xn(), a = xr("tooltip-label"), {
1011
- tooltipLabel: o
1012
- } = Jn(a), s = A(() => Gn({
924
+ const t = P(), n = Zn(), a = Mr("tooltip-label"), {
925
+ tooltipLabel: s
926
+ } = Qn(a), o = y(() => Wn({
1013
927
  ...e,
1014
- className: e.class || r.class || r.className
1015
- })), i = A(() => {
928
+ className: e.class || t.class || t.className
929
+ })), i = y(() => {
1016
930
  const {
1017
931
  children: l,
1018
- ...u
1019
- } = r;
932
+ ...d
933
+ } = t;
1020
934
  return {
1021
- ...u,
1022
- ...s.value
935
+ ...d,
936
+ ...o.value
1023
937
  };
1024
938
  });
1025
939
  return () => {
1026
- const l = e.as || "div", u = n() || t.default?.(), c = u ? Ve(u) : null;
1027
- return d(l, g({
940
+ const l = e.as || "div", d = n() || r.default?.(), c = d ? Ke(d) : null;
941
+ return f(l, v({
1028
942
  ref: "tooltip-label"
1029
943
  }, i.value, {
1030
944
  class: i.value.className,
1031
945
  style: i.value.style,
1032
- title: o.value
1033
- }), Qn(c) ? c : {
946
+ title: s.value
947
+ }), ea(c) ? c : {
1034
948
  default: () => [c]
1035
949
  });
1036
950
  };
@@ -1038,36 +952,36 @@ const Ye = /* @__PURE__ */ T((e, {
1038
952
  name: "LumxText",
1039
953
  inheritAttrs: !1,
1040
954
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1041
- props: N()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1042
- }), Zn = {
955
+ props: k()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
956
+ }), ta = {
1043
957
  click: (e) => e instanceof MouseEvent
1044
- }, Ea = /* @__PURE__ */ T((e, {
1045
- emit: t
958
+ }, oo = /* @__PURE__ */ S((e, {
959
+ emit: r
1046
960
  }) => {
1047
- const r = Gt(), n = P(), a = M(), {
1048
- isAnyDisabled: o,
1049
- disabledStateProps: s,
961
+ const t = Xt(), n = P(), a = I(), {
962
+ isAnyDisabled: s,
963
+ disabledStateProps: o,
1050
964
  otherProps: i
1051
- } = ir(A(() => ({
965
+ } = H(y(() => ({
1052
966
  ...e,
1053
967
  ...n
1054
968
  }))), l = (c) => {
1055
- o.value || (c.stopImmediatePropagation(), t("click", c));
1056
- }, u = () => {
1057
- const c = r.default?.();
1058
- return !c || c.length === 0 ? null : c.length === 1 && c[0].type === Ye ? c[0] : d("span", null, [c]);
969
+ s.value || (c.stopImmediatePropagation(), r("click", c));
970
+ }, d = () => {
971
+ const c = t.default?.();
972
+ return !c || c.length === 0 ? null : c.length === 1 && c[0].type === et ? c[0] : f("span", null, [c]);
1059
973
  };
1060
974
  return () => {
1061
- const c = d(Ut, null, [e.leftIcon && !Mt(e.leftIcon) && d(Rt, null, {
1062
- default: () => [d(De, {
975
+ const c = f(Qt, null, [e.leftIcon && !Ft(e.leftIcon) && f(Ut, null, {
976
+ default: () => [f(ze, {
1063
977
  icon: e.leftIcon
1064
978
  }, null)]
1065
- }), u(), e.rightIcon && !Mt(e.rightIcon) && d(Rt, null, {
1066
- default: () => [d(De, {
979
+ }), d(), e.rightIcon && !Ft(e.rightIcon) && f(Ut, null, {
980
+ default: () => [f(ze, {
1067
981
  icon: e.rightIcon
1068
982
  }, null)]
1069
983
  })]);
1070
- return d(Q, g(i.value, s.value, {
984
+ return f(ne, v(i.value, o.value, {
1071
985
  className: e.class,
1072
986
  theme: e.theme || a,
1073
987
  onClick: l,
@@ -1078,53 +992,53 @@ const Ye = /* @__PURE__ */ T((e, {
1078
992
  name: "LumxButton",
1079
993
  inheritAttrs: !1,
1080
994
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1081
- props: N()("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"),
1082
- emits: Zn
1083
- }), ea = "IconButton", ta = "lumx-icon-button", Ge = {
1084
- emphasis: C.high,
1085
- size: w.m
1086
- }, V = (e) => {
995
+ props: k()("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: ta
997
+ }), ra = "IconButton", na = "lumx-icon-button", Ye = {
998
+ emphasis: q.high,
999
+ size: x.m
1000
+ }, K = (e) => {
1087
1001
  const {
1088
- emphasis: t = Ge.emphasis,
1089
- image: r,
1002
+ emphasis: r = Ye.emphasis,
1003
+ image: t,
1090
1004
  icon: n,
1091
1005
  label: a,
1092
- size: o = Ge.size,
1093
- ...s
1094
- } = e, i = r ? d("img", {
1006
+ size: s = Ye.size,
1007
+ ...o
1008
+ } = e, i = t ? f("img", {
1095
1009
  alt: "",
1096
- src: r
1097
- }, null) : $({
1010
+ src: t
1011
+ }, null) : M({
1098
1012
  icon: n
1099
1013
  });
1100
- return F({
1101
- emphasis: t,
1102
- size: o,
1103
- ...s,
1014
+ return z({
1015
+ emphasis: r,
1016
+ size: s,
1017
+ ...o,
1104
1018
  "aria-label": a,
1105
1019
  variant: "icon",
1106
1020
  children: i
1107
1021
  });
1108
1022
  };
1109
- V.displayName = ea;
1110
- V.className = ta;
1111
- V.defaultProps = Ge;
1112
- const ra = {
1023
+ K.displayName = ra;
1024
+ K.className = na;
1025
+ K.defaultProps = Ye;
1026
+ const aa = {
1113
1027
  click: (e) => e instanceof MouseEvent
1114
- }, qa = /* @__PURE__ */ T((e, {
1115
- emit: t
1028
+ }, so = /* @__PURE__ */ S((e, {
1029
+ emit: r
1116
1030
  }) => {
1117
- const r = P(), n = M(), {
1031
+ const t = P(), n = I(), {
1118
1032
  isAnyDisabled: a,
1119
- disabledStateProps: o,
1120
- otherProps: s
1121
- } = ir(A(() => ({
1033
+ disabledStateProps: s,
1034
+ otherProps: o
1035
+ } = H(y(() => ({
1122
1036
  ...e,
1123
- ...r
1037
+ ...t
1124
1038
  }))), i = (l) => {
1125
- a.value || (l.stopImmediatePropagation(), t("click", l));
1039
+ a.value || (l.stopImmediatePropagation(), r("click", l));
1126
1040
  };
1127
- return () => d(V, g(s.value, o.value, {
1041
+ return () => f(K, v(o.value, s.value, {
1128
1042
  className: e.class,
1129
1043
  theme: e.theme || n,
1130
1044
  title: e.label,
@@ -1134,299 +1048,745 @@ const ra = {
1134
1048
  name: "IconButton",
1135
1049
  inheritAttrs: !1,
1136
1050
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1137
- props: N()("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"),
1138
- emits: ra
1139
- }), na = "ButtonGroup", dr = "lumx-button-group", aa = {}, Z = (e) => {
1051
+ props: k()("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: aa
1053
+ }), oa = "ButtonGroup", br = "lumx-button-group", sa = {}, ae = (e) => {
1140
1054
  const {
1141
- children: t,
1142
- className: r,
1055
+ children: r,
1056
+ className: t,
1143
1057
  ...n
1144
1058
  } = e;
1145
- return d("div", g(n, {
1146
- className: S(r, dr)
1147
- }), [t]);
1059
+ return f("div", v(n, {
1060
+ className: _(t, br)
1061
+ }), [r]);
1148
1062
  };
1149
- Z.displayName = na;
1150
- Z.className = dr;
1151
- Z.defaultProps = aa;
1152
- const Ba = /* @__PURE__ */ T((e, {
1153
- slots: t
1063
+ ae.displayName = oa;
1064
+ ae.className = br;
1065
+ ae.defaultProps = sa;
1066
+ const io = /* @__PURE__ */ S((e, {
1067
+ slots: r
1154
1068
  }) => {
1155
- const r = P();
1156
- return () => d(Z, g(e, r, {
1069
+ const t = P();
1070
+ return () => f(ae, v(e, t, {
1157
1071
  className: e.class,
1158
- children: t.default?.()
1072
+ children: r.default?.()
1159
1073
  }), null);
1160
1074
  }, {
1161
1075
  name: "ButtonGroup",
1162
1076
  inheritAttrs: !1,
1163
1077
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1164
- props: N()("class")
1165
- }), Lt = 6, oa = {
1166
- h1: B.display1,
1167
- h2: B.headline,
1168
- h3: B.title,
1169
- h4: B.subtitle2,
1170
- h5: B.subtitle1,
1171
- h6: B.body2
1172
- }, sa = { level: 1, headingElement: "h1" }, ia = "lumx-heading", ca = (e, t) => {
1173
- const { as: r, className: n, typography: a, ...o } = e, s = r || t || "h1";
1078
+ props: k()("class")
1079
+ }), ia = "InputLabel", la = "lumx-input-label", vr = la, {
1080
+ block: ca
1081
+ } = w(vr), ua = {};
1082
+ function L(e) {
1083
+ const {
1084
+ children: r,
1085
+ className: t,
1086
+ htmlFor: n,
1087
+ isRequired: a,
1088
+ theme: s,
1089
+ typography: o,
1090
+ ref: i,
1091
+ ...l
1092
+ } = e;
1093
+ return f("label", v({
1094
+ ref: i
1095
+ }, l, {
1096
+ htmlFor: n,
1097
+ className: _(t, ca({
1098
+ "is-required": a,
1099
+ [`theme-${s}`]: !!s,
1100
+ "has-custom-typography": !!o
1101
+ }), o && cr(o))
1102
+ }), [r]);
1103
+ }
1104
+ L.displayName = ia;
1105
+ L.className = vr;
1106
+ L.defaultProps = ua;
1107
+ const da = {
1108
+ [R.error]: { color: "red" },
1109
+ [R.success]: { color: "green" },
1110
+ [R.warning]: { color: "yellow" }
1111
+ }, fa = "InputHelper", pa = "lumx-input-helper", gr = pa, {
1112
+ block: ha
1113
+ } = w(gr), yr = {
1114
+ kind: R.info
1115
+ };
1116
+ function D(e) {
1117
+ const {
1118
+ children: r,
1119
+ className: t,
1120
+ kind: n = yr.kind,
1121
+ theme: a,
1122
+ ref: s,
1123
+ ...o
1124
+ } = e, {
1125
+ color: i
1126
+ } = da[n] || {};
1127
+ return f("p", v({
1128
+ ref: s
1129
+ }, o, {
1130
+ className: _(t, ha({
1131
+ [`color-${i}`]: !!i,
1132
+ [`theme-${a}`]: !!a
1133
+ }))
1134
+ }), [r]);
1135
+ }
1136
+ D.displayName = fa;
1137
+ D.className = gr;
1138
+ D.defaultProps = yr;
1139
+ const Ar = "intermediate", ma = "lumx-checkbox", {
1140
+ block: ba,
1141
+ element: O
1142
+ } = w(ma), va = (e) => {
1143
+ const {
1144
+ checked: r,
1145
+ className: t,
1146
+ helper: n,
1147
+ id: a,
1148
+ inputRef: s,
1149
+ isChecked: o = r,
1150
+ label: i,
1151
+ name: l,
1152
+ ref: d,
1153
+ onChange: c,
1154
+ theme: u,
1155
+ value: p,
1156
+ inputProps: h = {},
1157
+ isDisabled: b,
1158
+ inputId: m,
1159
+ ...A
1160
+ } = e, C = o === Ar, N = ($) => {
1161
+ c && c(!o, p, l, $);
1162
+ };
1163
+ return f("div", v({
1164
+ ref: d
1165
+ }, A, {
1166
+ className: _(t, ba({
1167
+ // Whether state is intermediate class name will "-checked"
1168
+ "is-checked": C ? !0 : o,
1169
+ "is-disabled": b,
1170
+ "is-unchecked": !o,
1171
+ [`theme-${u}`]: !!u
1172
+ }))
1173
+ }), [f("div", {
1174
+ className: O("input-wrapper")
1175
+ }, [f("input", v({
1176
+ ref: s,
1177
+ type: "checkbox",
1178
+ id: m,
1179
+ className: O("input-native"),
1180
+ name: l,
1181
+ value: p,
1182
+ checked: o,
1183
+ onChange: N,
1184
+ "aria-describedby": n ? `${m}-helper` : void 0,
1185
+ "aria-checked": C ? "mixed" : !!o
1186
+ }, h?.readOnly ? {
1187
+ readOnly: h.readOnly
1188
+ } : {}, h), null), f("div", {
1189
+ className: O("input-placeholder")
1190
+ }, [f("div", {
1191
+ className: O("input-background")
1192
+ }, null), f("div", {
1193
+ className: O("input-indicator")
1194
+ }, [M({
1195
+ icon: C ? Vr : Gr
1196
+ })])])]), f("div", {
1197
+ className: O("content")
1198
+ }, [i && L({
1199
+ htmlFor: m,
1200
+ className: O("label"),
1201
+ theme: u,
1202
+ children: i
1203
+ }), n && D({
1204
+ id: `${m}-helper`,
1205
+ className: O("helper"),
1206
+ theme: u,
1207
+ children: n
1208
+ })])]);
1209
+ };
1210
+ let Wt = 0;
1211
+ function tt() {
1212
+ return Wt += 1, `:lumx${Wt}:`;
1213
+ }
1214
+ const ga = {
1215
+ change: (e, r, t, n) => typeof e == "boolean" && n instanceof Event
1216
+ }, lo = /* @__PURE__ */ S((e, {
1217
+ emit: r
1218
+ }) => {
1219
+ const t = P(), n = I(), a = tt(), s = y(() => e.id || a), o = Jt(null), {
1220
+ isAnyDisabled: i,
1221
+ disabledStateProps: l,
1222
+ otherProps: d
1223
+ } = H(y(() => ({
1224
+ ...e,
1225
+ ...t
1226
+ }))), c = y(() => e.isChecked === Ar);
1227
+ te(c, (p) => {
1228
+ o.value && (o.value.indeterminate = p);
1229
+ }, {
1230
+ immediate: !0
1231
+ });
1232
+ const u = (p, h, b, m) => {
1233
+ i.value || (m?.stopImmediatePropagation?.(), r("change", p, h, b, m));
1234
+ };
1235
+ return () => f(va, v(d.value, {
1236
+ className: e.class,
1237
+ theme: e.theme || n,
1238
+ inputId: s.value,
1239
+ inputRef: o,
1240
+ isDisabled: i.value,
1241
+ onChange: u,
1242
+ label: e.label,
1243
+ inputProps: {
1244
+ ...e.inputProps,
1245
+ ...l.value,
1246
+ readOnly: l.value["aria-disabled"]
1247
+ }
1248
+ }), null);
1249
+ }, {
1250
+ name: "Checkbox",
1251
+ inheritAttrs: !1,
1252
+ // Redefine properties so that they come in as `props` on the `defineComponent` function
1253
+ props: k()("checked", "class", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "theme", "value", "aria-disabled"),
1254
+ emits: ga
1255
+ });
1256
+ function ya(e) {
1257
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
1258
+ }
1259
+ const Aa = "lumx-flag", {
1260
+ block: Na,
1261
+ element: zt
1262
+ } = w(Aa), Sa = (e) => {
1263
+ const {
1264
+ children: r,
1265
+ icon: t,
1266
+ color: n,
1267
+ className: a,
1268
+ theme: s,
1269
+ truncate: o,
1270
+ Text: i,
1271
+ ...l
1272
+ } = e, d = n || (s === Q.light ? T.dark : T.light), c = !!o;
1273
+ return f("div", v(l, {
1274
+ className: _(a, Na({
1275
+ [`color-${d}`]: !!d,
1276
+ "is-truncated": c
1277
+ }))
1278
+ }), [t && M({
1279
+ icon: t,
1280
+ size: x.xxs,
1281
+ className: zt("icon")
1282
+ }), f(i, {
1283
+ as: "span",
1284
+ truncate: !!o,
1285
+ typography: "overline",
1286
+ className: zt("label")
1287
+ }, ya(r) ? r : {
1288
+ default: () => [r]
1289
+ })]);
1290
+ }, co = /* @__PURE__ */ S((e, {
1291
+ slots: r
1292
+ }) => {
1293
+ const t = P(), n = I();
1294
+ return () => f(Sa, v(e, t, {
1295
+ className: e.class,
1296
+ theme: e.theme || n,
1297
+ children: r.default?.(),
1298
+ Text: et
1299
+ }), null);
1300
+ }, {
1301
+ name: "Flag",
1302
+ inheritAttrs: !1,
1303
+ // Redefine properties so that they come in as `props` on the `defineComponent` function
1304
+ props: k()("color", "icon", "truncate", "theme", "class")
1305
+ });
1306
+ var Ve, Ht;
1307
+ function Ta() {
1308
+ if (Ht) return Ve;
1309
+ Ht = 1;
1310
+ var e = sr();
1311
+ function r() {
1312
+ if (!arguments.length)
1313
+ return [];
1314
+ var t = arguments[0];
1315
+ return e(t) ? t : [t];
1316
+ }
1317
+ return Ve = r, Ve;
1318
+ }
1319
+ var _a = Ta();
1320
+ const ka = /* @__PURE__ */ Qe(_a), Pa = "lumx-flex-box", {
1321
+ block: Ca
1322
+ } = w(Pa);
1323
+ function wa(e) {
1324
+ const {
1325
+ className: r,
1326
+ fillSpace: t,
1327
+ gap: n,
1328
+ hAlign: a,
1329
+ marginAuto: s,
1330
+ noShrink: o,
1331
+ vAlign: i,
1332
+ wrap: l,
1333
+ orientation: d,
1334
+ ...c
1335
+ } = e, u = d ?? (l || a || i ? Nn.horizontal : null);
1174
1336
  return {
1175
- ...o,
1176
- as: s,
1177
- className: S(n, ia),
1178
- typography: a || oa[s]
1337
+ ...c,
1338
+ className: _(r, Ca({
1339
+ [`orientation-${u}`]: !!u,
1340
+ [`v-align-${i}`]: !!i,
1341
+ [`h-align-${a}`]: !!a,
1342
+ [`gap-${n}`]: !!n,
1343
+ wrap: !!l,
1344
+ "fill-space": t,
1345
+ "no-shrink": o,
1346
+ ...Object.fromEntries(ka(s).filter(Boolean).map((p) => [`margin-auto-${p}`, !0]))
1347
+ }))
1179
1348
  };
1180
- }, pr = /* @__PURE__ */ Symbol("HeadingLevelContext"), hr = () => Ue(pr, sa), Ma = /* @__PURE__ */ T((e, {
1181
- slots: t
1349
+ }
1350
+ const uo = /* @__PURE__ */ S((e, {
1351
+ slots: r
1352
+ }) => {
1353
+ const t = P();
1354
+ return () => {
1355
+ const n = e.as || "div", a = wa({
1356
+ ...e,
1357
+ ...t,
1358
+ className: e.class
1359
+ });
1360
+ return f(n, a, {
1361
+ default: () => [r.default?.()]
1362
+ });
1363
+ };
1364
+ }, {
1365
+ name: "FlexBox",
1366
+ inheritAttrs: !1,
1367
+ // Redefine properties so that they come in as `props` on the `defineComponent` function
1368
+ props: k()("as", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap", "class")
1369
+ }), Kt = 6, $a = {
1370
+ h1: G.display1,
1371
+ h2: G.headline,
1372
+ h3: G.title,
1373
+ h4: G.subtitle2,
1374
+ h5: G.subtitle1,
1375
+ h6: G.body2
1376
+ }, xa = { level: 1, headingElement: "h1" }, Ia = "lumx-heading", Oa = (e, r) => {
1377
+ const { as: t, className: n, typography: a, ...s } = e, o = t || r || "h1";
1378
+ return {
1379
+ ...s,
1380
+ as: o,
1381
+ className: _(n, Ia),
1382
+ typography: a || $a[o]
1383
+ };
1384
+ }, Nr = /* @__PURE__ */ Symbol("HeadingLevelContext"), Sr = () => Je(Nr, xa), fo = /* @__PURE__ */ S((e, {
1385
+ slots: r
1182
1386
  }) => {
1183
- const r = P(), n = hr(), a = A(() => {
1387
+ const t = P(), n = Sr(), a = y(() => {
1184
1388
  const {
1185
- className: o,
1186
- ...s
1187
- } = ca({
1188
- ...r,
1389
+ className: s,
1390
+ ...o
1391
+ } = Oa({
1392
+ ...t,
1189
1393
  ...e,
1190
- className: e.class || r.class || r.className
1394
+ className: e.class || t.class || t.className
1191
1395
  }, n.headingElement);
1192
1396
  return {
1193
- ...s,
1194
- class: o
1397
+ ...o,
1398
+ class: s
1195
1399
  };
1196
1400
  });
1197
- return () => d(Ye, a.value, {
1198
- default: () => [t.default?.()]
1401
+ return () => f(et, a.value, {
1402
+ default: () => [r.default?.()]
1199
1403
  });
1200
1404
  }, {
1201
1405
  name: "Heading",
1202
1406
  inheritAttrs: !1,
1203
1407
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1204
- props: N()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1205
- }), la = (e, t) => {
1206
- const r = e || t + 1;
1207
- return r > Lt ? Lt : r;
1208
- }, Ra = /* @__PURE__ */ T((e, {
1209
- slots: t
1408
+ props: k()("as", "color", "colorVariant", "typography", "truncate", "noWrap", "whiteSpace", "style", "class")
1409
+ }), ja = (e, r) => {
1410
+ const t = e || r + 1;
1411
+ return t > Kt ? Kt : t;
1412
+ }, po = /* @__PURE__ */ S((e, {
1413
+ slots: r
1210
1414
  }) => {
1211
1415
  const {
1212
- level: r
1213
- } = Or(e), n = hr(), a = A(() => la(r?.value, n.level)), o = A(() => `h${a.value}`), s = Ir({
1416
+ level: t
1417
+ } = qr(e), n = Sr(), a = y(() => ja(t?.value, n.level)), s = y(() => `h${a.value}`), o = Lr({
1214
1418
  level: a,
1215
- headingElement: o
1419
+ headingElement: s
1216
1420
  });
1217
- return Vt(pr, s), () => t.default?.();
1421
+ return Yt(Nr, o), () => r.default?.();
1218
1422
  }, {
1219
1423
  name: "HeadingLevelProvider",
1220
- props: N()("level")
1221
- }), ua = "Message", mr = "lumx-message", {
1222
- block: fa,
1223
- element: Me
1224
- } = k(mr), da = {
1225
- [O.error]: {
1226
- color: v.red,
1227
- icon: Er
1424
+ props: k()("level")
1425
+ }), ho = /* @__PURE__ */ S((e, {
1426
+ slots: r
1427
+ }) => {
1428
+ const t = P(), n = I();
1429
+ return () => f(D, v(e, t, {
1430
+ className: e.class,
1431
+ theme: e.theme || n,
1432
+ children: r.default?.()
1433
+ }), null);
1434
+ }, {
1435
+ name: "InputHelper",
1436
+ inheritAttrs: !1,
1437
+ // Redefine properties so that they come in as `props` on the `defineComponent` function
1438
+ props: k()("kind", "theme", "class", "id")
1439
+ }), mo = /* @__PURE__ */ S((e, {
1440
+ slots: r
1441
+ }) => {
1442
+ const t = P(), n = I();
1443
+ return () => f(L, v(e, t, {
1444
+ className: e.class,
1445
+ theme: e.theme || n,
1446
+ children: r.default?.()
1447
+ }), null);
1448
+ }, {
1449
+ name: "InputLabel",
1450
+ inheritAttrs: !1,
1451
+ // Redefine properties so that they come in as `props` on the `defineComponent` function
1452
+ props: k()("htmlFor", "isRequired", "typography", "theme", "class")
1453
+ }), Ea = "Message", Tr = "lumx-message", {
1454
+ block: Ra,
1455
+ element: Ue
1456
+ } = w(Tr), Ba = {
1457
+ [R.error]: {
1458
+ color: T.red,
1459
+ icon: Ur
1228
1460
  },
1229
- [O.info]: {
1230
- color: v.blue,
1231
- icon: Mr
1461
+ [R.info]: {
1462
+ color: T.blue,
1463
+ icon: Hr
1232
1464
  },
1233
- [O.success]: {
1234
- color: v.green,
1235
- icon: qr
1465
+ [R.success]: {
1466
+ color: T.green,
1467
+ icon: Wr
1236
1468
  },
1237
- [O.warning]: {
1238
- color: v.yellow,
1239
- icon: Wt
1469
+ [R.warning]: {
1470
+ color: T.yellow,
1471
+ icon: Zt
1240
1472
  }
1241
- }, Je = (e) => {
1473
+ }, rt = (e) => {
1242
1474
  const {
1243
- children: t,
1244
- className: r,
1475
+ children: r,
1476
+ className: t,
1245
1477
  hasBackground: n,
1246
1478
  kind: a,
1247
- icon: o,
1248
- closeButtonProps: s,
1479
+ icon: s,
1480
+ closeButtonProps: o,
1249
1481
  ref: i,
1250
1482
  ...l
1251
1483
  } = e, {
1252
- color: u,
1484
+ color: d,
1253
1485
  icon: c
1254
- } = da[a] || {}, {
1255
- onClick: f,
1486
+ } = Ba[a] || {}, {
1487
+ onClick: u,
1256
1488
  label: p
1257
- } = s || {}, h = n && a === "info" && f && p;
1258
- return d("div", g(l, {
1489
+ } = o || {}, h = n && a === "info" && u && p;
1490
+ return f("div", v(l, {
1259
1491
  ref: i,
1260
- className: S(r, fa({
1261
- [`color-${u}`]: !!u,
1492
+ className: _(t, Ra({
1493
+ [`color-${d}`]: !!d,
1262
1494
  "has-background": n
1263
1495
  }))
1264
- }), [(o || c) && $({
1265
- className: Me("icon"),
1266
- icon: o || c,
1267
- size: w.xs,
1268
- color: u
1269
- }), d("div", {
1270
- className: Me("text")
1271
- }, [t]), h && V({
1272
- className: Me("close-button"),
1273
- icon: Br,
1274
- onClick: f,
1496
+ }), [(s || c) && M({
1497
+ className: Ue("icon"),
1498
+ icon: s || c,
1499
+ size: x.xs,
1500
+ color: d
1501
+ }), f("div", {
1502
+ className: Ue("text")
1503
+ }, [r]), h && K({
1504
+ className: Ue("close-button"),
1505
+ icon: zr,
1506
+ onClick: u,
1275
1507
  label: p,
1276
- emphasis: C.low
1508
+ emphasis: q.low
1277
1509
  })]);
1278
1510
  };
1279
- Je.displayName = ua;
1280
- Je.className = mr;
1281
- const La = /* @__PURE__ */ T((e, {
1282
- slots: t,
1283
- emit: r
1511
+ rt.displayName = Ea;
1512
+ rt.className = Tr;
1513
+ const bo = /* @__PURE__ */ S((e, {
1514
+ slots: r,
1515
+ emit: t
1284
1516
  }) => {
1285
1517
  const n = P(), {
1286
1518
  closeButtonLabel: a
1287
1519
  } = e;
1288
- return () => d(Je, g(e, n, {
1520
+ return () => f(rt, v(e, n, {
1289
1521
  className: e.class,
1290
- children: t.default?.(),
1522
+ children: r.default?.(),
1291
1523
  closeButtonProps: a ? {
1292
1524
  label: a,
1293
- onClick: () => r("close")
1525
+ onClick: () => t("close")
1294
1526
  } : void 0
1295
1527
  }), null);
1296
1528
  }, {
1297
1529
  name: "Message",
1298
1530
  inheritAttrs: !1,
1299
1531
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1300
- props: N()("hasBackground", "icon", "kind", "class", "closeButtonLabel"),
1532
+ props: k()("hasBackground", "icon", "kind", "class", "closeButtonLabel"),
1301
1533
  emits: ["close"]
1302
- });
1303
- function pa(e) {
1304
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !K(e);
1305
- }
1306
- const ha = "lumx-flag", {
1307
- block: ma,
1308
- element: Dt
1309
- } = k(ha), ba = (e) => {
1534
+ }), vo = "Switch", Ma = "lumx-switch", {
1535
+ block: qa,
1536
+ element: j
1537
+ } = w(Ma), La = {
1538
+ position: "left"
1539
+ }, Da = (e) => {
1310
1540
  const {
1311
- children: t,
1312
- icon: r,
1313
- color: n,
1314
- className: a,
1315
- theme: o,
1316
- truncate: s,
1317
- Text: i,
1318
- ...l
1319
- } = e, u = n || (o === H.light ? v.dark : v.light), c = !!s;
1320
- return d("div", g(l, {
1321
- className: S(a, ma({
1322
- [`color-${u}`]: !!u,
1323
- "is-truncated": c
1541
+ checked: r,
1542
+ className: t,
1543
+ helper: n,
1544
+ id: a,
1545
+ inputRef: s,
1546
+ isChecked: o = r,
1547
+ label: i,
1548
+ name: l,
1549
+ ref: d,
1550
+ onChange: c,
1551
+ theme: u,
1552
+ value: p,
1553
+ inputProps: h = {},
1554
+ isDisabled: b,
1555
+ inputId: m,
1556
+ position: A = La.position,
1557
+ ...C
1558
+ } = e, N = ($) => {
1559
+ c && c(!o, p, l, $);
1560
+ };
1561
+ return f("div", v({
1562
+ ref: d
1563
+ }, C, {
1564
+ className: _(t, qa({
1565
+ "is-checked": o,
1566
+ "is-disabled": b,
1567
+ "is-unchecked": !o,
1568
+ [`position-${A}`]: !!A,
1569
+ [`theme-${u}`]: !!u
1324
1570
  }))
1325
- }), [r && $({
1326
- icon: r,
1327
- size: w.xxs,
1328
- className: Dt("icon")
1329
- }), d(i, {
1330
- as: "span",
1331
- truncate: !!s,
1332
- typography: "overline",
1333
- className: Dt("label")
1334
- }, pa(t) ? t : {
1335
- default: () => [t]
1336
- })]);
1337
- }, Da = /* @__PURE__ */ T((e, {
1571
+ }), [f("div", {
1572
+ className: j("input-wrapper")
1573
+ }, [f("input", v({
1574
+ ref: s,
1575
+ type: "checkbox",
1576
+ role: "switch",
1577
+ id: m,
1578
+ className: j("input-native"),
1579
+ name: l,
1580
+ value: p,
1581
+ checked: !!o,
1582
+ onChange: N,
1583
+ "aria-describedby": n ? `${m}-helper` : void 0,
1584
+ "aria-checked": !!o
1585
+ }, h?.readOnly ? {
1586
+ readOnly: h.readOnly
1587
+ } : {}, h), null), f("div", {
1588
+ className: j("input-placeholder")
1589
+ }, [f("div", {
1590
+ className: j("input-background")
1591
+ }, null), f("div", {
1592
+ className: j("input-indicator")
1593
+ }, null)])]), f("div", {
1594
+ className: j("content")
1595
+ }, [i && L({
1596
+ htmlFor: m,
1597
+ className: j("label"),
1598
+ theme: u,
1599
+ children: i
1600
+ }), n && D({
1601
+ id: `${m}-helper`,
1602
+ className: j("helper"),
1603
+ theme: u,
1604
+ children: n
1605
+ })])]);
1606
+ }, Fa = {
1607
+ change: (e, r, t, n) => typeof e == "boolean" && n instanceof Event
1608
+ }, go = /* @__PURE__ */ S((e, {
1609
+ emit: r,
1338
1610
  slots: t
1339
1611
  }) => {
1340
- const r = P(), n = M();
1341
- return () => d(ba, g(e, r, {
1612
+ const n = P(), a = I(), s = tt(), o = y(() => e.id || s), {
1613
+ isAnyDisabled: i,
1614
+ disabledStateProps: l,
1615
+ otherProps: d
1616
+ } = H(y(() => ({
1617
+ ...e,
1618
+ ...n
1619
+ }))), c = (u, p, h, b) => {
1620
+ i.value || (b.stopImmediatePropagation(), r("change", u, p, h, b));
1621
+ };
1622
+ return () => f(Da, v(d.value, {
1342
1623
  className: e.class,
1343
- theme: e.theme || n,
1344
- children: t.default?.(),
1345
- Text: Ye
1624
+ theme: e.theme || a,
1625
+ inputId: o.value,
1626
+ isDisabled: i.value,
1627
+ onChange: c,
1628
+ label: e.label || t.default?.(),
1629
+ inputProps: {
1630
+ ...e.inputProps,
1631
+ ...l.value,
1632
+ readOnly: i.value
1633
+ }
1346
1634
  }), null);
1347
1635
  }, {
1348
- name: "Flag",
1636
+ name: "LumxSwitch",
1349
1637
  inheritAttrs: !1,
1350
1638
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1351
- props: N()("color", "icon", "truncate", "theme", "class")
1352
- });
1353
- var Re, Ft;
1354
- function va() {
1355
- if (Ft) return Re;
1356
- Ft = 1;
1357
- var e = ar();
1358
- function t() {
1359
- if (!arguments.length)
1360
- return [];
1361
- var r = arguments[0];
1362
- return e(r) ? r : [r];
1363
- }
1364
- return Re = t, Re;
1365
- }
1366
- var ga = va();
1367
- const ya = /* @__PURE__ */ He(ga), Aa = "lumx-flex-box", {
1368
- block: Ta
1369
- } = k(Aa);
1370
- function _a(e) {
1639
+ props: k()("checked", "class", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "position", "theme", "value", "aria-disabled"),
1640
+ emits: Fa
1641
+ }), Ga = "lumx-radio-button", {
1642
+ block: Va,
1643
+ element: E
1644
+ } = w(Ga), Ua = (e) => {
1371
1645
  const {
1646
+ checked: r,
1372
1647
  className: t,
1373
- fillSpace: r,
1374
- gap: n,
1375
- hAlign: a,
1376
- marginAuto: o,
1377
- noShrink: s,
1378
- vAlign: i,
1379
- wrap: l,
1380
- orientation: u,
1381
- ...c
1382
- } = e, f = u ?? (l || a || i ? Vr.horizontal : null);
1383
- return {
1384
- ...c,
1385
- className: S(t, Ta({
1386
- [`orientation-${f}`]: !!f,
1387
- [`v-align-${i}`]: !!i,
1388
- [`h-align-${a}`]: !!a,
1389
- [`gap-${n}`]: !!n,
1390
- wrap: !!l,
1391
- "fill-space": r,
1392
- "no-shrink": s,
1393
- ...Object.fromEntries(ya(o).filter(Boolean).map((p) => [`margin-auto-${p}`, !0]))
1394
- }))
1648
+ helper: n,
1649
+ id: a,
1650
+ inputRef: s,
1651
+ isChecked: o = r,
1652
+ label: i,
1653
+ name: l,
1654
+ ref: d,
1655
+ onChange: c,
1656
+ theme: u,
1657
+ value: p,
1658
+ inputProps: h = {},
1659
+ isDisabled: b,
1660
+ inputId: m,
1661
+ ...A
1662
+ } = e, C = (N) => {
1663
+ c && c(p, l, N);
1395
1664
  };
1396
- }
1397
- const Fa = /* @__PURE__ */ T((e, {
1398
- slots: t
1665
+ return f("div", v({
1666
+ ref: d
1667
+ }, A, {
1668
+ className: _(t, Va({
1669
+ "is-checked": o,
1670
+ "is-disabled": b,
1671
+ "is-unchecked": !o,
1672
+ [`theme-${u}`]: !!u
1673
+ }))
1674
+ }), [f("div", {
1675
+ className: E("input-wrapper")
1676
+ }, [f("input", v({
1677
+ ref: s,
1678
+ className: E("input-native"),
1679
+ id: m,
1680
+ type: "radio",
1681
+ name: l,
1682
+ value: p,
1683
+ checked: o,
1684
+ onChange: C,
1685
+ "aria-describedby": n ? `${m}-helper` : void 0
1686
+ }, h?.readOnly ? {
1687
+ readOnly: h.readOnly
1688
+ } : {}, h), null), f("div", {
1689
+ className: E("input-placeholder")
1690
+ }, [f("div", {
1691
+ className: E("input-background")
1692
+ }, null), f("div", {
1693
+ className: E("input-indicator")
1694
+ }, null)])]), f("div", {
1695
+ className: E("content")
1696
+ }, [i && L({
1697
+ htmlFor: m,
1698
+ className: E("label"),
1699
+ theme: u,
1700
+ children: i
1701
+ }), n && D({
1702
+ id: `${m}-helper`,
1703
+ className: E("helper"),
1704
+ theme: u,
1705
+ children: n
1706
+ })])]);
1707
+ }, Wa = {
1708
+ change: (e, r, t) => t instanceof Event
1709
+ }, yo = /* @__PURE__ */ S((e, {
1710
+ emit: r
1399
1711
  }) => {
1400
- const r = P();
1401
- return () => {
1402
- const n = e.as || "div", a = _a({
1403
- ...e,
1404
- ...r,
1405
- className: e.class
1406
- });
1407
- return d(n, a, {
1408
- default: () => [t.default?.()]
1409
- });
1712
+ const t = P(), n = I(), a = tt(), s = y(() => e.id || a), {
1713
+ isAnyDisabled: o,
1714
+ disabledStateProps: i,
1715
+ otherProps: l
1716
+ } = H(y(() => ({
1717
+ ...e,
1718
+ ...t
1719
+ }))), d = (c, u, p) => {
1720
+ o.value || (p?.stopImmediatePropagation?.(), r("change", c, u, p));
1410
1721
  };
1722
+ return () => f(Ua, v(l.value, {
1723
+ className: e.class,
1724
+ theme: e.theme || n,
1725
+ inputId: s.value,
1726
+ isDisabled: o.value,
1727
+ onChange: d,
1728
+ label: e.label,
1729
+ inputProps: {
1730
+ ...e.inputProps,
1731
+ ...i.value,
1732
+ readOnly: i.value["aria-disabled"]
1733
+ }
1734
+ }), null);
1411
1735
  }, {
1412
- name: "FlexBox",
1736
+ name: "RadioButton",
1413
1737
  inheritAttrs: !1,
1414
1738
  // Redefine properties so that they come in as `props` on the `defineComponent` function
1415
- props: N()("as", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap", "class")
1739
+ props: k()("checked", "class", "helper", "id", "inputProps", "isChecked", "isDisabled", "label", "name", "theme", "value", "aria-disabled"),
1740
+ emits: Wa
1741
+ }), za = "RadioGroup", _r = "lumx-radio-group", Ha = {}, oe = (e) => {
1742
+ const {
1743
+ children: r,
1744
+ className: t,
1745
+ ref: n,
1746
+ ...a
1747
+ } = e;
1748
+ return f("div", v({
1749
+ ref: n
1750
+ }, a, {
1751
+ className: _(t, _r)
1752
+ }), [r]);
1753
+ };
1754
+ oe.displayName = za;
1755
+ oe.className = _r;
1756
+ oe.defaultProps = Ha;
1757
+ const Ao = /* @__PURE__ */ S((e, {
1758
+ slots: r
1759
+ }) => {
1760
+ const t = P();
1761
+ return () => f(oe, v(e, t, {
1762
+ className: e.class,
1763
+ children: r.default?.()
1764
+ }), null);
1765
+ }, {
1766
+ name: "RadioGroup",
1767
+ inheritAttrs: !1,
1768
+ props: k()("class")
1416
1769
  });
1417
1770
  export {
1418
- Ea as Button,
1419
- Ba as ButtonGroup,
1420
- Da as Flag,
1421
- Fa as FlexBox,
1422
- Ma as Heading,
1423
- Ra as HeadingLevelProvider,
1424
- De as Icon,
1425
- qa as IconButton,
1426
- Ca as InputHelper,
1427
- $a as InputLabel,
1428
- La as Message,
1429
- Ye as Text,
1430
- hr as useHeadingLevel
1771
+ oo as Button,
1772
+ io as ButtonGroup,
1773
+ Ma as CLASSNAME,
1774
+ vo as COMPONENT_NAME,
1775
+ lo as Checkbox,
1776
+ La as DEFAULT_PROPS,
1777
+ co as Flag,
1778
+ uo as FlexBox,
1779
+ fo as Heading,
1780
+ po as HeadingLevelProvider,
1781
+ ze as Icon,
1782
+ so as IconButton,
1783
+ ho as InputHelper,
1784
+ mo as InputLabel,
1785
+ bo as Message,
1786
+ yo as RadioButton,
1787
+ Ao as RadioGroup,
1788
+ go as Switch,
1789
+ et as Text,
1790
+ Sr as useHeadingLevel
1431
1791
  };
1432
1792
  //# sourceMappingURL=index.js.map