@lumx/vue 4.2.1-alpha.1 → 4.2.1-alpha.11

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