@duro-app/ui 0.8.0 → 0.8.4

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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as A, Fragment as U } from "react/jsx-runtime";
2
- import { useState as G, useCallback as W, useContext as N, createContext as D, useId as K, useMemo as ht, useRef as y, useEffect as H, Children as zt } from "react";
1
+ import { jsx as o, jsxs as A, Fragment as _ } from "react/jsx-runtime";
2
+ import { useState as H, useCallback as q, useContext as N, createContext as C, useId as U, useMemo as ft, useRef as w, useEffect as W, Children as It } from "react";
3
3
  /**
4
4
  * @license react-strict-dom
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -7,77 +7,77 @@ import { useState as G, useCallback as W, useContext as N, createContext as D, u
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- var ft = {};
11
- Object.defineProperty(ft, "__esModule", {
10
+ var $t = {};
11
+ Object.defineProperty($t, "__esModule", {
12
12
  value: !0
13
13
  });
14
- var It = ft.styleq = void 0, Ct = /* @__PURE__ */ new WeakMap(), Rt = "$$css";
15
- function qt(t) {
14
+ var qt = $t.styleq = void 0, Rt = /* @__PURE__ */ new WeakMap(), Xt = "$$css";
15
+ function Wt(t) {
16
16
  var e, n, r;
17
17
  return t != null && (e = t.disableCache === !0, n = t.disableMix === !0, r = t.transform), function() {
18
- for (var i = [], c = "", x = null, d = "", l = e ? null : Ct, u = new Array(arguments.length), g = 0; g < arguments.length; g++)
19
- u[g] = arguments[g];
20
- for (; u.length > 0; ) {
21
- var $ = u.pop();
22
- if (!($ == null || $ === !1)) {
23
- if (Array.isArray($)) {
24
- for (var w = 0; w < $.length; w++)
25
- u.push($[w]);
18
+ for (var x = [], i = "", c = null, d = "", a = e ? null : Rt, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
19
+ g[u] = arguments[u];
20
+ for (; g.length > 0; ) {
21
+ var v = g.pop();
22
+ if (!(v == null || v === !1)) {
23
+ if (Array.isArray(v)) {
24
+ for (var S = 0; S < v.length; S++)
25
+ g.push(v[S]);
26
26
  continue;
27
27
  }
28
- var h = r != null ? r($) : $;
28
+ var h = r != null ? r(v) : v;
29
29
  if (h.$$css != null) {
30
- var v = "";
31
- if (l != null && l.has(h)) {
32
- var f = l.get(h);
33
- f != null && (v = f[0], d = f[2], i.push.apply(i, f[1]), l = f[3]);
30
+ var m = "";
31
+ if (a != null && a.has(h)) {
32
+ var f = a.get(h);
33
+ f != null && (m = f[0], d = f[2], x.push.apply(x, f[1]), a = f[3]);
34
34
  } else {
35
- var m = [];
35
+ var $ = [];
36
36
  for (var p in h) {
37
37
  var b = h[p];
38
- if (p === Rt) {
39
- var Y = h[p];
40
- Y !== !0 && (d = d ? Y + "; " + d : Y);
38
+ if (p === Xt) {
39
+ var B = h[p];
40
+ B !== !0 && (d = d ? B + "; " + d : B);
41
41
  continue;
42
42
  }
43
- typeof b == "string" || b === null ? i.includes(p) || (i.push(p), l != null && m.push(p), typeof b == "string" && (v += v ? " " + b : b)) : console.error("styleq: ".concat(p, " typeof ").concat(String(b), ' is not "string" or "null".'));
43
+ typeof b == "string" || b === null ? x.includes(p) || (x.push(p), a != null && $.push(p), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(p, " typeof ").concat(String(b), ' is not "string" or "null".'));
44
44
  }
45
- if (l != null) {
46
- var z = /* @__PURE__ */ new WeakMap();
47
- l.set(h, [v, m, d, z]), l = z;
45
+ if (a != null) {
46
+ var F = /* @__PURE__ */ new WeakMap();
47
+ a.set(h, [m, $, d, F]), a = F;
48
48
  }
49
49
  }
50
- v && (c = c ? v + " " + c : v);
50
+ m && (i = i ? m + " " + i : m);
51
51
  } else if (n)
52
- x == null && (x = {}), x = Object.assign({}, h, x);
52
+ c == null && (c = {}), c = Object.assign({}, h, c);
53
53
  else {
54
- var j = null;
55
- for (var S in h) {
56
- var M = h[S];
57
- M !== void 0 && (i.includes(S) || (M != null && (x == null && (x = {}), j == null && (j = {}), j[S] = M), i.push(S), l = null));
54
+ var y = null;
55
+ for (var z in h) {
56
+ var j = h[z];
57
+ j !== void 0 && (x.includes(z) || (j != null && (c == null && (c = {}), y == null && (y = {}), y[z] = j), x.push(z), a = null));
58
58
  }
59
- j != null && (x = Object.assign(j, x));
59
+ y != null && (c = Object.assign(y, c));
60
60
  }
61
61
  }
62
62
  }
63
- var C = [c, x, d];
64
- return C;
63
+ var M = [i, c, d];
64
+ return M;
65
65
  };
66
66
  }
67
- var Xt = It = ft.styleq = qt();
68
- Xt.factory = qt;
69
- const Yt = It.factory({
67
+ var Yt = qt = $t.styleq = Wt();
68
+ Yt.factory = Wt;
69
+ const Jt = qt.factory({
70
70
  disableMix: !0
71
71
  });
72
- function k(...t) {
73
- const [e, n, r] = Yt(t), s = {};
72
+ function l(...t) {
73
+ const [e, n, r] = Jt(t), s = {};
74
74
  if (e != null && e !== "" && (s.className = e), n != null && (s.style = n), r != null && r !== "") {
75
- const i = r.split(";"), c = {};
76
- for (const x of i) {
77
- const d = x.trim(), [l, u] = d.split(":");
78
- u != null && (c[l] = c[l] != null ? `${c[l]},${u}` : u);
75
+ const x = r.split(";"), i = {};
76
+ for (const c of x) {
77
+ const d = c.trim(), [a, g] = d.split(":");
78
+ g != null && (i[a] = i[a] != null ? `${i[a]},${g}` : g);
79
79
  }
80
- s["data-style-src"] = Object.keys(c).map((x) => `${x}:${c[x]}`).join("; ");
80
+ s["data-style-src"] = Object.keys(i).map((c) => `${c}:${i[c]}`).join("; ");
81
81
  }
82
82
  return s;
83
83
  }
@@ -121,23 +121,23 @@ const V = {
121
121
  kHenm0: "x288g5",
122
122
  $$css: !0
123
123
  }
124
- }, Jt = V.inline, Pt = [V.inlineblock, V.button], Ft = V.block, _ = [V.block, V.heading], Qt = [V.inlineblock, V.input], Kt = V.inline, Ut = V.block, _t = V.block, Zt = V.inline, te = [V.inlineblock, V.textarea], a = {
125
- a: Jt,
126
- button: Pt,
127
- div: Ft,
128
- h1: _,
129
- h2: _,
130
- h3: _,
131
- h4: _,
132
- h5: _,
133
- h6: _,
134
- input: Qt,
135
- label: Kt,
136
- nav: Ut,
137
- p: _t,
138
- span: Zt,
139
- textarea: te
140
- }, St = {
124
+ }, Pt = V.inline, Ft = [V.inlineblock, V.button], Qt = V.block, Z = [V.block, V.heading], Kt = [V.inlineblock, V.input], Ut = V.inline, _t = V.block, Zt = V.block, te = V.inline, ee = [V.inlineblock, V.textarea], k = {
125
+ a: Pt,
126
+ button: Ft,
127
+ div: Qt,
128
+ h1: Z,
129
+ h2: Z,
130
+ h3: Z,
131
+ h4: Z,
132
+ h5: Z,
133
+ h6: Z,
134
+ input: Kt,
135
+ label: Ut,
136
+ nav: _t,
137
+ p: Zt,
138
+ span: te,
139
+ textarea: ee
140
+ }, jt = {
141
141
  base: {
142
142
  kmVPX3: "x16ixvul",
143
143
  kaIpWk: "x1gbengz",
@@ -172,13 +172,13 @@ const V = {
172
172
  $$css: !0
173
173
  }
174
174
  };
175
- function yn({
175
+ function wn({
176
176
  variant: t = "info",
177
177
  children: e
178
178
  }) {
179
- return /* @__PURE__ */ o("div", { role: "alert", ...k(a.div, St.base, St[t]), children: e });
179
+ return /* @__PURE__ */ o("div", { role: "alert", ...l(k.div, jt.base, jt[t]), children: e });
180
180
  }
181
- const ct = {
181
+ const xt = {
182
182
  base: {
183
183
  k1xSpc: "x3nfvp2",
184
184
  kGNEyG: "x6s0dn4",
@@ -231,18 +231,18 @@ const ct = {
231
231
  kMwMTN: "xmooqzt",
232
232
  $$css: !0
233
233
  }
234
- }, ee = {
235
- sm: ct.sizeSm,
236
- md: ct.sizeMd
234
+ }, ne = {
235
+ sm: xt.sizeSm,
236
+ md: xt.sizeMd
237
237
  };
238
- function wn({
238
+ function Sn({
239
239
  variant: t = "default",
240
240
  size: e = "md",
241
241
  children: n
242
242
  }) {
243
- return /* @__PURE__ */ o("span", { ...k(a.span, ct.base, ee[e], ct[t]), children: n });
243
+ return /* @__PURE__ */ o("span", { ...l(k.span, xt.base, ne[e], xt[t]), children: n });
244
244
  }
245
- const et = {
245
+ const nt = {
246
246
  base: {
247
247
  k1xSpc: "x3nfvp2",
248
248
  kGNEyG: "x6s0dn4",
@@ -317,22 +317,22 @@ const et = {
317
317
  kkrTdU: "x1h6gzvc",
318
318
  $$css: !0
319
319
  }
320
- }, ne = {
321
- default: et.sizeDefault,
322
- small: et.sizeSmall
320
+ }, re = {
321
+ default: nt.sizeDefault,
322
+ small: nt.sizeSmall
323
323
  };
324
- function Sn({
324
+ function jn({
325
325
  variant: t = "primary",
326
326
  size: e = "default",
327
327
  fullWidth: n = !1,
328
328
  disabled: r = !1,
329
329
  type: s = "button",
330
- onClick: i,
331
- children: c
330
+ onClick: x,
331
+ children: i
332
332
  }) {
333
- return /* @__PURE__ */ o("button", { type: s, disabled: r, onClick: i, ...k(a.button, et.base, ne[e], et[t], n && et.fullWidth, r && et.disabled), children: c });
333
+ return /* @__PURE__ */ o("button", { type: s, disabled: r, onClick: x, ...l(k.button, nt.base, re[e], nt[t], n && nt.fullWidth, r && nt.disabled), children: i });
334
334
  }
335
- const nt = {
335
+ const rt = {
336
336
  base: {
337
337
  kWkggS: "xl5mw0s",
338
338
  kMwMTN: "xg6mlj0",
@@ -389,24 +389,24 @@ const nt = {
389
389
  k1K539: "x2mrtcw",
390
390
  $$css: !0
391
391
  }
392
- }, re = {
393
- default: nt.sizeDefault,
394
- compact: nt.sizeCompact,
395
- full: nt.sizeFull
392
+ }, se = {
393
+ default: rt.sizeDefault,
394
+ compact: rt.sizeCompact,
395
+ full: rt.sizeFull
396
396
  };
397
- function jn({
397
+ function Mn({
398
398
  variant: t = "outlined",
399
399
  size: e = "default",
400
400
  header: n,
401
401
  onClick: r,
402
402
  children: s
403
403
  }) {
404
- return /* @__PURE__ */ A("div", { onClick: r, ...k(a.div, nt.base, nt[t], re[e]), children: [
405
- n && /* @__PURE__ */ o("div", { ...k(a.div, nt.header), children: n }),
404
+ return /* @__PURE__ */ A("div", { onClick: r, ...l(k.div, rt.base, rt[t], se[e]), children: [
405
+ n && /* @__PURE__ */ o("div", { ...l(k.div, rt.header), children: n }),
406
406
  s
407
407
  ] });
408
408
  }
409
- const Z = {
409
+ const tt = {
410
410
  root: {
411
411
  k1xSpc: "x3nfvp2",
412
412
  kGNEyG: "x6s0dn4",
@@ -456,27 +456,27 @@ const Z = {
456
456
  $$css: !0
457
457
  }
458
458
  };
459
- function Mn({
459
+ function zn({
460
460
  name: t,
461
461
  value: e,
462
462
  checked: n,
463
463
  defaultChecked: r = !1,
464
464
  disabled: s = !1,
465
- onChange: i,
466
- children: c
465
+ onChange: x,
466
+ children: i
467
467
  }) {
468
- const x = n !== void 0, [d, l] = G(r), u = x ? n : d, g = W(($) => {
469
- x || l($.target.checked), i?.($);
470
- }, [x, i]);
471
- return /* @__PURE__ */ A("label", { ...k(a.label, Z.root, s && Z.rootDisabled), children: [
472
- /* @__PURE__ */ o("input", { type: "checkbox", name: t, value: e, checked: x ? n : void 0, defaultChecked: x ? void 0 : r, disabled: s, onChange: g, ...k(a.input, Z.input), dir: "auto" }),
473
- /* @__PURE__ */ o("span", { ...k(a.span, Z.box, u ? Z.boxChecked : Z.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ o("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
474
- opacity: u ? 1 : 0
468
+ const c = n !== void 0, [d, a] = H(r), g = c ? n : d, u = q((v) => {
469
+ c || a(v.target.checked), x?.(v);
470
+ }, [c, x]);
471
+ return /* @__PURE__ */ A("label", { ...l(k.label, tt.root, s && tt.rootDisabled), children: [
472
+ /* @__PURE__ */ o("input", { type: "checkbox", name: t, value: e, checked: c ? n : void 0, defaultChecked: c ? void 0 : r, disabled: s, onChange: u, ...l(k.input, tt.input), dir: "auto" }),
473
+ /* @__PURE__ */ o("span", { ...l(k.span, tt.box, g ? tt.boxChecked : tt.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ o("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
474
+ opacity: g ? 1 : 0
475
475
  }, children: /* @__PURE__ */ o("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
476
- c && /* @__PURE__ */ o("span", { ...k(a.span), children: c })
476
+ i && /* @__PURE__ */ o("span", { ...l(k.span), children: i })
477
477
  ] });
478
478
  }
479
- const dt = {
479
+ const gt = {
480
480
  root: {
481
481
  k1xSpc: "x78zum5",
482
482
  kXwgrk: "xdt5ytf",
@@ -499,18 +499,18 @@ const dt = {
499
499
  $$css: !0
500
500
  }
501
501
  };
502
- function zn({
502
+ function In({
503
503
  message: t,
504
504
  icon: e,
505
505
  action: n
506
506
  }) {
507
- return /* @__PURE__ */ A("div", { ...k(a.div, dt.root), children: [
507
+ return /* @__PURE__ */ A("div", { ...l(k.div, gt.root), children: [
508
508
  e,
509
- /* @__PURE__ */ o("p", { ...k(a.p, dt.message), children: t }),
510
- n && /* @__PURE__ */ o("div", { ...k(a.div, dt.action), children: n })
509
+ /* @__PURE__ */ o("p", { ...l(k.p, gt.message), children: t }),
510
+ n && /* @__PURE__ */ o("div", { ...l(k.div, gt.action), children: n })
511
511
  ] });
512
512
  }
513
- const Wt = {
513
+ const Ht = {
514
514
  bodySm: {
515
515
  kMv6JI: "x2nsvjj",
516
516
  kGuDYH: "x1if0jgx",
@@ -624,7 +624,7 @@ const Wt = {
624
624
  kb6lSQ: "xgvl3jc",
625
625
  $$css: !0
626
626
  }
627
- }, it = {
627
+ }, ct = {
628
628
  default: {
629
629
  kMwMTN: "xg6mlj0",
630
630
  $$css: !0
@@ -649,33 +649,33 @@ const Wt = {
649
649
  k9WMMc: "xp4054r",
650
650
  $$css: !0
651
651
  }
652
- }, se = {
652
+ }, oe = {
653
653
  1: "headingXl",
654
654
  2: "headingLg",
655
655
  3: "headingMd",
656
656
  4: "headingSm",
657
657
  5: "headingSm",
658
658
  6: "headingSm"
659
- }, oe = {
660
- start: it.alignStart,
661
- center: it.alignCenter,
662
- end: it.alignEnd
659
+ }, ie = {
660
+ start: ct.alignStart,
661
+ center: ct.alignCenter,
662
+ end: ct.alignEnd
663
663
  };
664
- function In({
664
+ function qn({
665
665
  level: t,
666
666
  variant: e,
667
667
  color: n = "default",
668
668
  align: r,
669
669
  children: s
670
670
  }) {
671
- const i = e ?? se[t], c = [Wt[i], it[n], r && oe[r]];
672
- return t === 1 ? /* @__PURE__ */ o("h1", { ...k(a.h1, c), children: s }) : t === 2 ? /* @__PURE__ */ o("h2", { ...k(a.h2, c), children: s }) : t === 3 ? /* @__PURE__ */ o("h3", { ...k(a.h3, c), children: s }) : t === 4 ? /* @__PURE__ */ o("h4", { ...k(a.h4, c), children: s }) : t === 5 ? /* @__PURE__ */ o("h5", { ...k(a.h5, c), children: s }) : /* @__PURE__ */ o("h6", { ...k(a.h6, c), children: s });
671
+ const x = e ?? oe[t], i = [Ht[x], ct[n], r && ie[r]];
672
+ return t === 1 ? /* @__PURE__ */ o("h1", { ...l(k.h1, i), children: s }) : t === 2 ? /* @__PURE__ */ o("h2", { ...l(k.h2, i), children: s }) : t === 3 ? /* @__PURE__ */ o("h3", { ...l(k.h3, i), children: s }) : t === 4 ? /* @__PURE__ */ o("h4", { ...l(k.h4, i), children: s }) : t === 5 ? /* @__PURE__ */ o("h5", { ...l(k.h5, i), children: s }) : /* @__PURE__ */ o("h6", { ...l(k.h6, i), children: s });
673
673
  }
674
- const Ht = D(null);
675
- function ot() {
676
- return N(Ht);
674
+ const Gt = C(null);
675
+ function it() {
676
+ return N(Gt);
677
677
  }
678
- const xt = {
678
+ const lt = {
679
679
  root: {
680
680
  k1xSpc: "x78zum5",
681
681
  kXwgrk: "xdt5ytf",
@@ -699,46 +699,46 @@ const xt = {
699
699
  $$css: !0
700
700
  }
701
701
  };
702
- function ie({
702
+ function ce({
703
703
  invalid: t = !1,
704
704
  children: e
705
705
  }) {
706
- const n = K(), r = ht(() => ({
706
+ const n = U(), r = ft(() => ({
707
707
  controlId: `${n}-control`,
708
708
  descriptionId: `${n}-description`,
709
709
  errorId: `${n}-error`,
710
710
  invalid: t
711
711
  }), [n, t]);
712
- return /* @__PURE__ */ o(Ht.Provider, { value: r, children: /* @__PURE__ */ o("div", { ...k(a.div, xt.root), children: e }) });
712
+ return /* @__PURE__ */ o(Gt.Provider, { value: r, children: /* @__PURE__ */ o("div", { ...l(k.div, lt.root), children: e }) });
713
713
  }
714
- function ce({
714
+ function xe({
715
715
  children: t
716
716
  }) {
717
- const e = ot();
718
- return /* @__PURE__ */ o("label", { htmlFor: e?.controlId, ...k(a.label, xt.label), children: t });
717
+ const e = it();
718
+ return /* @__PURE__ */ o("label", { htmlFor: e?.controlId, ...l(k.label, lt.label), children: t });
719
719
  }
720
- function xe({
720
+ function le({
721
721
  children: t
722
722
  }) {
723
- const e = ot();
724
- return /* @__PURE__ */ o("span", { id: e?.descriptionId, ...k(a.span, xt.description), children: t });
723
+ const e = it();
724
+ return /* @__PURE__ */ o("span", { id: e?.descriptionId, ...l(k.span, lt.description), children: t });
725
725
  }
726
- function le({
726
+ function ke({
727
727
  children: t
728
728
  }) {
729
- const e = ot();
730
- return !e?.invalid && !t ? null : /* @__PURE__ */ o("span", { id: e?.errorId, role: "alert", ...k(a.span, xt.error), children: t });
731
- }
732
- const qn = {
733
- Root: ie,
734
- Label: ce,
735
- Description: xe,
736
- Error: le
737
- }, Gt = D(null);
738
- function ke() {
739
- return N(Gt);
729
+ const e = it();
730
+ return !e?.invalid && !t ? null : /* @__PURE__ */ o("span", { id: e?.errorId, role: "alert", ...l(k.span, lt.error), children: t });
731
+ }
732
+ const Wn = {
733
+ Root: ce,
734
+ Label: xe,
735
+ Description: le,
736
+ Error: ke
737
+ }, Tt = C(null);
738
+ function ae() {
739
+ return N(Tt);
740
740
  }
741
- const gt = {
741
+ const pt = {
742
742
  base: {
743
743
  kzqmXN: "xh8yej3",
744
744
  kLKAdn: "x1y6gaq4",
@@ -777,26 +777,26 @@ const gt = {
777
777
  $$css: !0
778
778
  }
779
779
  };
780
- function Wn({
780
+ function Hn({
781
781
  variant: t = "default",
782
782
  type: e = "text",
783
783
  name: n,
784
784
  placeholder: r,
785
785
  required: s,
786
- minLength: i,
787
- pattern: c,
788
- autoComplete: x,
786
+ minLength: x,
787
+ pattern: i,
788
+ autoComplete: c,
789
789
  value: d,
790
- defaultValue: l,
791
- disabled: u,
792
- onChange: g
790
+ defaultValue: a,
791
+ disabled: g,
792
+ onChange: u
793
793
  }) {
794
- const $ = ot(), w = ke(), h = c !== void 0 ? {
795
- pattern: c
794
+ const v = it(), S = ae(), h = i !== void 0 ? {
795
+ pattern: i
796
796
  } : void 0;
797
- return /* @__PURE__ */ o("input", { id: $?.controlId, type: e, name: n, placeholder: r, required: s, minLength: i, autoComplete: x, value: d, defaultValue: l, disabled: u, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || t === "error" || void 0, onChange: g, ...k(a.input, gt.base, gt[t], w?.inGroup && gt.inGroup), ...h, dir: "auto" });
797
+ return /* @__PURE__ */ o("input", { id: v?.controlId, type: e, name: n, placeholder: r, required: s, minLength: x, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || t === "error" || void 0, onChange: u, ...l(k.input, pt.base, pt[t], S?.inGroup && pt.inGroup), ...h, dir: "auto" });
798
798
  }
799
- const tt = {
799
+ const et = {
800
800
  wrapper: {
801
801
  k1xSpc: "x78zum5",
802
802
  kGNEyG: "x1qjc9v5",
@@ -851,27 +851,27 @@ const tt = {
851
851
  $$css: !0
852
852
  }
853
853
  };
854
- function ae({
854
+ function ue({
855
855
  children: t
856
856
  }) {
857
- const e = ht(() => ({
857
+ const e = ft(() => ({
858
858
  inGroup: !0
859
859
  }), []);
860
- return /* @__PURE__ */ o(Gt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...k(a.div, tt.wrapper), children: t }) });
860
+ return /* @__PURE__ */ o(Tt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...l(k.div, et.wrapper), children: t }) });
861
861
  }
862
- function ue({
862
+ function de({
863
863
  position: t = "end",
864
864
  onClick: e,
865
865
  disabled: n,
866
866
  children: r
867
867
  }) {
868
- const s = t === "start" ? tt.addonStart : tt.addonEnd, i = [tt.addon, s, e && !n && tt.addonClickable, n && tt.addonDisabled];
869
- return e ? /* @__PURE__ */ o("button", { type: "button", onClick: e, disabled: n, ...k(a.button, i), children: r }) : /* @__PURE__ */ o("span", { ...k(a.span, i), children: r });
868
+ const s = t === "start" ? et.addonStart : et.addonEnd, x = [et.addon, s, e && !n && et.addonClickable, n && et.addonDisabled];
869
+ return e ? /* @__PURE__ */ o("button", { type: "button", onClick: e, disabled: n, ...l(k.button, x), children: r }) : /* @__PURE__ */ o("span", { ...l(k.span, x), children: r });
870
870
  }
871
- const Hn = {
872
- Root: ae,
873
- Addon: ue
874
- }, st = {
871
+ const Gn = {
872
+ Root: ue,
873
+ Addon: de
874
+ }, ot = {
875
875
  base: {
876
876
  k1xSpc: "x3nfvp2",
877
877
  kGNEyG: "x6s0dn4",
@@ -921,20 +921,20 @@ const Hn = {
921
921
  kzqmXN: "xh8yej3",
922
922
  $$css: !0
923
923
  }
924
- }, de = {
925
- default: st.sizeDefault,
926
- small: st.sizeSmall
924
+ }, ge = {
925
+ default: ot.sizeDefault,
926
+ small: ot.sizeSmall
927
927
  };
928
- function Gn({
928
+ function Tn({
929
929
  href: t,
930
930
  variant: e = "primary",
931
931
  size: n = "default",
932
932
  fullWidth: r = !1,
933
933
  target: s,
934
- rel: i,
935
- children: c
934
+ rel: x,
935
+ children: i
936
936
  }) {
937
- return /* @__PURE__ */ o("a", { href: t, target: s, rel: i, ...k(a.a, st.base, de[n], st[e], r && st.fullWidth), children: c });
937
+ return /* @__PURE__ */ o("a", { href: t, target: s, rel: x, ...l(k.a, ot.base, ge[n], ot[e], r && ot.fullWidth), children: i });
938
938
  }
939
939
  const J = {
940
940
  root: {
@@ -1020,103 +1020,103 @@ const J = {
1020
1020
  kMwMTN: "xg6mlj0 x1c35pte",
1021
1021
  $$css: !0
1022
1022
  }
1023
- }, Tt = D(null);
1024
- function lt() {
1025
- const t = N(Tt);
1023
+ }, Et = C(null);
1024
+ function kt() {
1025
+ const t = N(Et);
1026
1026
  if (!t) throw new Error("Menu compound components must be used within Menu.Root");
1027
1027
  return t;
1028
1028
  }
1029
- function ge() {
1030
- const [t, e] = G(!1), [n, r] = G(null), s = K(), i = y(null), c = y(null), x = y(/* @__PURE__ */ new Map()), d = y([]), l = y(!1), u = W(() => {
1031
- e(!1), r(null), l.current = !1, c.current?.focus();
1032
- }, []), g = W(() => {
1033
- e((h) => (h ? (r(null), l.current = !1) : l.current = !0, !h));
1029
+ function pe() {
1030
+ const [t, e] = H(!1), [n, r] = H(null), s = U(), x = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = q(() => {
1031
+ e(!1), r(null), a.current = !1, i.current?.focus();
1032
+ }, []), u = q(() => {
1033
+ e((h) => (h ? (r(null), a.current = !1) : a.current = !0, !h));
1034
1034
  }, []);
1035
- H(() => {
1036
- if (t && l.current) {
1037
- l.current = !1;
1035
+ W(() => {
1036
+ if (t && a.current) {
1037
+ a.current = !1;
1038
1038
  const h = d.current;
1039
1039
  h.length > 0 && r(h[0]);
1040
1040
  }
1041
1041
  }, [t]);
1042
- const $ = W((h, v) => {
1043
- x.current.set(h, v);
1044
- const f = x.current, m = [...f.keys()];
1045
- return m.sort((p, b) => {
1046
- const Y = f.get(p), z = f.get(b);
1047
- return !Y || !z ? 0 : Y.compareDocumentPosition(z) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1048
- }), d.current = m, () => {
1049
- x.current.delete(h), d.current = d.current.filter((p) => p !== h);
1042
+ const v = q((h, m) => {
1043
+ c.current.set(h, m);
1044
+ const f = c.current, $ = [...f.keys()];
1045
+ return $.sort((p, b) => {
1046
+ const B = f.get(p), F = f.get(b);
1047
+ return !B || !F ? 0 : B.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1048
+ }), d.current = $, () => {
1049
+ c.current.delete(h), d.current = d.current.filter((p) => p !== h);
1050
1050
  };
1051
1051
  }, []);
1052
- return H(() => {
1053
- const h = i.current;
1052
+ return W(() => {
1053
+ const h = x.current;
1054
1054
  if (!h || !t) return;
1055
- function v(f) {
1056
- const m = d.current;
1057
- if (m.length !== 0)
1055
+ function m(f) {
1056
+ const $ = d.current;
1057
+ if ($.length !== 0)
1058
1058
  switch (f.key) {
1059
1059
  case "ArrowDown": {
1060
1060
  f.preventDefault(), r((p) => {
1061
- const b = p ? m.indexOf(p) : -1;
1062
- return m[(b + 1) % m.length];
1061
+ const b = p ? $.indexOf(p) : -1;
1062
+ return $[(b + 1) % $.length];
1063
1063
  });
1064
1064
  break;
1065
1065
  }
1066
1066
  case "ArrowUp": {
1067
1067
  f.preventDefault(), r((p) => {
1068
- const b = p ? m.indexOf(p) : 0;
1069
- return m[(b - 1 + m.length) % m.length];
1068
+ const b = p ? $.indexOf(p) : 0;
1069
+ return $[(b - 1 + $.length) % $.length];
1070
1070
  });
1071
1071
  break;
1072
1072
  }
1073
1073
  case "Home": {
1074
- f.preventDefault(), r(m[0]);
1074
+ f.preventDefault(), r($[0]);
1075
1075
  break;
1076
1076
  }
1077
1077
  case "End": {
1078
- f.preventDefault(), r(m[m.length - 1]);
1078
+ f.preventDefault(), r($[$.length - 1]);
1079
1079
  break;
1080
1080
  }
1081
1081
  case "Enter":
1082
1082
  case " ": {
1083
1083
  f.preventDefault();
1084
- const p = x.current;
1084
+ const p = c.current;
1085
1085
  r((b) => (b && p.get(b)?.click(), b));
1086
1086
  break;
1087
1087
  }
1088
1088
  case "Escape":
1089
1089
  case "Tab": {
1090
- u();
1090
+ g();
1091
1091
  break;
1092
1092
  }
1093
1093
  }
1094
1094
  }
1095
- return h.addEventListener("keydown", v), () => h.removeEventListener("keydown", v);
1096
- }, [t, u]), {
1095
+ return h.addEventListener("keydown", m), () => h.removeEventListener("keydown", m);
1096
+ }, [t, g]), {
1097
1097
  ctx: {
1098
1098
  open: t,
1099
- toggle: g,
1100
- close: u,
1099
+ toggle: u,
1100
+ close: g,
1101
1101
  menuId: s,
1102
1102
  highlightedId: n,
1103
1103
  setHighlightedId: r,
1104
- registerItem: $,
1105
- triggerRef: c
1104
+ registerItem: v,
1105
+ triggerRef: i
1106
1106
  },
1107
- rootRef: i
1107
+ rootRef: x
1108
1108
  };
1109
1109
  }
1110
- function pe({
1110
+ function he({
1111
1111
  children: t
1112
1112
  }) {
1113
1113
  const {
1114
1114
  ctx: e,
1115
1115
  rootRef: n
1116
- } = ge();
1117
- return /* @__PURE__ */ o(Tt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ref: n, ...k(a.div, J.root), children: t }) });
1116
+ } = pe();
1117
+ return /* @__PURE__ */ o(Et.Provider, { value: e, children: /* @__PURE__ */ o("div", { ref: n, ...l(k.div, J.root), children: t }) });
1118
1118
  }
1119
- function he({
1119
+ function fe({
1120
1120
  children: t
1121
1121
  }) {
1122
1122
  const {
@@ -1124,12 +1124,12 @@ function he({
1124
1124
  toggle: n,
1125
1125
  menuId: r,
1126
1126
  triggerRef: s
1127
- } = lt(), i = y(null);
1128
- return H(() => {
1129
- s.current = i.current;
1130
- }), /* @__PURE__ */ o("button", { ref: i, type: "button", onClick: n, "aria-expanded": e, "aria-haspopup": "menu", "aria-controls": e ? r : void 0, ...k(a.button, J.trigger), children: t });
1127
+ } = kt(), x = w(null);
1128
+ return W(() => {
1129
+ s.current = x.current;
1130
+ }), /* @__PURE__ */ o("button", { ref: x, type: "button", onClick: n, "aria-expanded": e, "aria-haspopup": "menu", "aria-controls": e ? r : void 0, ...l(k.button, J.trigger), children: t });
1131
1131
  }
1132
- function fe({
1132
+ function $e({
1133
1133
  children: t,
1134
1134
  align: e = "start"
1135
1135
  }) {
@@ -1137,14 +1137,14 @@ function fe({
1137
1137
  open: n,
1138
1138
  close: r,
1139
1139
  menuId: s,
1140
- highlightedId: i
1141
- } = lt();
1142
- return n ? /* @__PURE__ */ A(U, { children: [
1143
- /* @__PURE__ */ o("div", { ...k(a.div, J.backdrop), onClick: r }),
1144
- /* @__PURE__ */ o("div", { id: s, role: "menu", "aria-activedescendant": i ?? void 0, ...k(a.div, J.popup, e === "end" && J.popupEnd), children: t })
1140
+ highlightedId: x
1141
+ } = kt();
1142
+ return n ? /* @__PURE__ */ A(_, { children: [
1143
+ /* @__PURE__ */ o("div", { ...l(k.div, J.backdrop), onClick: r }),
1144
+ /* @__PURE__ */ o("div", { id: s, role: "menu", "aria-activedescendant": x ?? void 0, ...l(k.div, J.popup, e === "end" && J.popupEnd), children: t })
1145
1145
  ] }) : null;
1146
1146
  }
1147
- function $e({
1147
+ function ve({
1148
1148
  onClick: t,
1149
1149
  children: e
1150
1150
  }) {
@@ -1152,17 +1152,17 @@ function $e({
1152
1152
  close: n,
1153
1153
  highlightedId: r,
1154
1154
  setHighlightedId: s,
1155
- registerItem: i
1156
- } = lt(), c = K(), x = y(null), d = r === c;
1157
- return H(() => {
1158
- const u = x.current;
1159
- if (u)
1160
- return i(c, u);
1161
- }, [c, i]), /* @__PURE__ */ o("div", { ref: x, id: c, role: "menuitem", onClick: () => {
1155
+ registerItem: x
1156
+ } = kt(), i = U(), c = w(null), d = r === i;
1157
+ return W(() => {
1158
+ const g = c.current;
1159
+ if (g)
1160
+ return x(i, g);
1161
+ }, [i, x]), /* @__PURE__ */ o("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1162
1162
  t?.(), n();
1163
- }, onPointerEnter: () => s(c), ...k(a.div, J.item, d && J.itemHighlighted), children: e });
1163
+ }, onPointerEnter: () => s(i), ...l(k.div, J.item, d && J.itemHighlighted), children: e });
1164
1164
  }
1165
- function ve({
1165
+ function me({
1166
1166
  href: t,
1167
1167
  children: e
1168
1168
  }) {
@@ -1170,21 +1170,21 @@ function ve({
1170
1170
  close: n,
1171
1171
  highlightedId: r,
1172
1172
  setHighlightedId: s,
1173
- registerItem: i
1174
- } = lt(), c = K(), x = y(null), d = r === c;
1175
- return H(() => {
1176
- const l = x.current;
1177
- if (l)
1178
- return i(c, l);
1179
- }, [c, i]), /* @__PURE__ */ o("a", { ref: x, id: c, href: t, onClick: n, role: "menuitem", onPointerEnter: () => s(c), ...k(a.a, J.item, J.linkItem, d && J.itemHighlighted), children: e });
1180
- }
1181
- const Tn = {
1182
- Root: pe,
1183
- Trigger: he,
1184
- Popup: fe,
1185
- Item: $e,
1186
- LinkItem: ve
1187
- }, B = {
1173
+ registerItem: x
1174
+ } = kt(), i = U(), c = w(null), d = r === i;
1175
+ return W(() => {
1176
+ const a = c.current;
1177
+ if (a)
1178
+ return x(i, a);
1179
+ }, [i, x]), /* @__PURE__ */ o("a", { ref: c, id: i, href: t, onClick: n, role: "menuitem", onPointerEnter: () => s(i), ...l(k.a, J.item, J.linkItem, d && J.itemHighlighted), children: e });
1180
+ }
1181
+ const En = {
1182
+ Root: he,
1183
+ Trigger: fe,
1184
+ Popup: $e,
1185
+ Item: ve,
1186
+ LinkItem: me
1187
+ }, D = {
1188
1188
  root: {
1189
1189
  kVAEAm: "x1n2onr6",
1190
1190
  kVQacm: "xb3r6kr",
@@ -1275,66 +1275,66 @@ const Tn = {
1275
1275
  "--x-width": ((n) => typeof n == "number" ? n + "px" : n ?? void 0)(t),
1276
1276
  "--x-transform": e ?? void 0
1277
1277
  }]
1278
- }, Et = D(null);
1279
- function kt() {
1280
- const t = N(Et);
1278
+ }, Lt = C(null);
1279
+ function at() {
1280
+ const t = N(Lt);
1281
1281
  if (!t) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
1282
1282
  return t;
1283
1283
  }
1284
- function me() {
1285
- const t = y(null), e = y(null), [n, r] = G(0), [s, i] = G(0), [c, x] = G(0), [d, l] = G(0), [u, g] = G(0), [$, w] = G(0), [h, v] = G(!1), f = y(null), m = W(() => {
1284
+ function be() {
1285
+ const t = w(null), e = w(null), [n, r] = H(0), [s, x] = H(0), [i, c] = H(0), [d, a] = H(0), [g, u] = H(0), [v, S] = H(0), [h, m] = H(!1), f = w(null), $ = q(() => {
1286
1286
  const p = t.current;
1287
- p && (r(p.scrollTop), i(p.scrollLeft), x(p.scrollHeight), l(p.scrollWidth), g(p.clientHeight), w(p.clientWidth), v(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => v(!1), 1e3));
1287
+ p && (r(p.scrollTop), x(p.scrollLeft), c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1288
1288
  }, []);
1289
- return H(() => {
1289
+ return W(() => {
1290
1290
  const p = t.current;
1291
1291
  if (!p) return;
1292
1292
  const b = new ResizeObserver(() => {
1293
- x(p.scrollHeight), l(p.scrollWidth), g(p.clientHeight), w(p.clientWidth);
1293
+ c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth);
1294
1294
  });
1295
- return b.observe(p), x(p.scrollHeight), l(p.scrollWidth), g(p.clientHeight), w(p.clientWidth), () => b.disconnect();
1296
- }, []), H(() => {
1295
+ return b.observe(p), c(p.scrollHeight), a(p.scrollWidth), u(p.clientHeight), S(p.clientWidth), () => b.disconnect();
1296
+ }, []), W(() => {
1297
1297
  const p = t.current;
1298
1298
  if (p)
1299
- return p.addEventListener("scroll", m, {
1299
+ return p.addEventListener("scroll", $, {
1300
1300
  passive: !0
1301
- }), () => p.removeEventListener("scroll", m);
1302
- }, [m]), {
1301
+ }), () => p.removeEventListener("scroll", $);
1302
+ }, [$]), {
1303
1303
  viewportRef: t,
1304
1304
  contentRef: e,
1305
1305
  scrollTop: n,
1306
1306
  scrollLeft: s,
1307
- scrollHeight: c,
1307
+ scrollHeight: i,
1308
1308
  scrollWidth: d,
1309
- clientHeight: u,
1310
- clientWidth: $,
1309
+ clientHeight: g,
1310
+ clientWidth: v,
1311
1311
  scrolling: h
1312
1312
  };
1313
1313
  }
1314
- function be({
1314
+ function ye({
1315
1315
  children: t
1316
1316
  }) {
1317
- const e = me();
1318
- return /* @__PURE__ */ o(Et.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...k(a.div, B.root), children: t }) });
1317
+ const e = be();
1318
+ return /* @__PURE__ */ o(Lt.Provider, { value: e, children: /* @__PURE__ */ o("div", { ...l(k.div, D.root), children: t }) });
1319
1319
  }
1320
- function ye({
1320
+ function we({
1321
1321
  children: t,
1322
1322
  maxHeight: e
1323
1323
  }) {
1324
1324
  const {
1325
1325
  viewportRef: n
1326
- } = kt();
1327
- return /* @__PURE__ */ o("div", { ref: n, ...k(a.div, B.viewport, e != null && B.viewportMaxHeight(e)), children: t });
1326
+ } = at();
1327
+ return /* @__PURE__ */ o("div", { ref: n, ...l(k.div, D.viewport, e != null && D.viewportMaxHeight(e)), children: t });
1328
1328
  }
1329
- function we({
1329
+ function Se({
1330
1330
  children: t
1331
1331
  }) {
1332
1332
  const {
1333
1333
  contentRef: e
1334
- } = kt();
1335
- return /* @__PURE__ */ o("div", { ref: e, ...k(a.div, B.content), children: t });
1334
+ } = at();
1335
+ return /* @__PURE__ */ o("div", { ref: e, ...l(k.div, D.content), children: t });
1336
1336
  }
1337
- function Se({
1337
+ function je({
1338
1338
  orientation: t = "vertical",
1339
1339
  children: e
1340
1340
  }) {
@@ -1342,12 +1342,12 @@ function Se({
1342
1342
  scrolling: n,
1343
1343
  scrollHeight: r,
1344
1344
  scrollWidth: s,
1345
- clientHeight: i,
1346
- clientWidth: c
1347
- } = kt();
1348
- return (t === "vertical" ? r > i : s > c) ? /* @__PURE__ */ o("div", { ...k(a.div, B.scrollbar, t === "vertical" ? B.scrollbarVertical : B.scrollbarHorizontal, n ? B.scrollbarVisible : B.scrollbarHidden), children: e }) : null;
1345
+ clientHeight: x,
1346
+ clientWidth: i
1347
+ } = at();
1348
+ return (t === "vertical" ? r > x : s > i) ? /* @__PURE__ */ o("div", { ...l(k.div, D.scrollbar, t === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: e }) : null;
1349
1349
  }
1350
- function je({
1350
+ function Me({
1351
1351
  orientation: t = "vertical"
1352
1352
  }) {
1353
1353
  const {
@@ -1355,28 +1355,28 @@ function je({
1355
1355
  scrollTop: n,
1356
1356
  scrollLeft: r,
1357
1357
  scrollHeight: s,
1358
- scrollWidth: i,
1359
- clientHeight: c,
1360
- clientWidth: x
1361
- } = kt(), d = y(!1), l = y(0), u = y(0), g = t === "vertical", $ = Math.max(g ? c / s * 100 : x / i * 100, 10), w = g ? s - c : i - x, h = g ? c : x, v = $ / 100 * h, f = g ? n : r, m = w > 0 ? f / w * (h - v) : 0, p = g ? B.thumbVertical(`${$}%`, `translateY(${m}px)`) : B.thumbHorizontal(`${$}%`, `translateX(${m}px)`), b = W((j) => {
1362
- j.preventDefault(), d.current = !0, l.current = g ? j.clientY : j.clientX, u.current = g ? e.current?.scrollTop ?? 0 : e.current?.scrollLeft ?? 0, j.target.setPointerCapture(j.pointerId);
1363
- }, [g, e]), Y = W((j) => {
1358
+ scrollWidth: x,
1359
+ clientHeight: i,
1360
+ clientWidth: c
1361
+ } = at(), d = w(!1), a = w(0), g = w(0), u = t === "vertical", v = Math.max(u ? i / s * 100 : c / x * 100, 10), S = u ? s - i : x - c, h = u ? i : c, m = v / 100 * h, f = u ? n : r, $ = S > 0 ? f / S * (h - m) : 0, p = u ? D.thumbVertical(`${v}%`, `translateY(${$}px)`) : D.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = q((y) => {
1362
+ y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? e.current?.scrollTop ?? 0 : e.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
1363
+ }, [u, e]), B = q((y) => {
1364
1364
  if (!d.current) return;
1365
- const S = e.current;
1366
- if (!S) return;
1367
- const M = (g ? j.clientY : j.clientX) - l.current, C = w / (h - v), I = M * C;
1368
- g ? S.scrollTop = u.current + I : S.scrollLeft = u.current + I;
1369
- }, [g, w, h, v, e]), z = W(() => {
1365
+ const z = e.current;
1366
+ if (!z) return;
1367
+ const j = (u ? y.clientY : y.clientX) - a.current, M = S / (h - m), Y = j * M;
1368
+ u ? z.scrollTop = g.current + Y : z.scrollLeft = g.current + Y;
1369
+ }, [u, S, h, m, e]), F = q(() => {
1370
1370
  d.current = !1;
1371
1371
  }, []);
1372
- return /* @__PURE__ */ o("div", { onPointerDown: b, onPointerMove: Y, onPointerUp: z, ...k(a.div, B.thumb, p) });
1372
+ return /* @__PURE__ */ o("div", { onPointerDown: b, onPointerMove: B, onPointerUp: F, ...l(k.div, D.thumb, p) });
1373
1373
  }
1374
- const En = {
1375
- Root: be,
1376
- Viewport: ye,
1377
- Content: we,
1378
- Scrollbar: Se,
1379
- Thumb: je
1374
+ const Ln = {
1375
+ Root: ye,
1376
+ Viewport: we,
1377
+ Content: Se,
1378
+ Scrollbar: je,
1379
+ Thumb: Me
1380
1380
  }, X = {
1381
1381
  root: {
1382
1382
  kVAEAm: "x1n2onr6",
@@ -1475,148 +1475,151 @@ const En = {
1475
1475
  k1xSpc: "x1s85apg",
1476
1476
  $$css: !0
1477
1477
  }
1478
- }, Lt = D(null);
1479
- function at() {
1480
- const t = N(Lt);
1478
+ }, At = C(null);
1479
+ function ut() {
1480
+ const t = N(At);
1481
1481
  if (!t) throw new Error("Select compound components must be used within Select.Root");
1482
1482
  return t;
1483
1483
  }
1484
- function $t(t, e, n) {
1485
- const [r, s] = G(e), i = t !== void 0 ? t : r, c = W((x) => {
1486
- t === void 0 && s(x), n?.(x);
1484
+ function vt(t, e, n) {
1485
+ const [r, s] = H(e), x = t !== void 0 ? t : r, i = q((c) => {
1486
+ t === void 0 && s(c), n?.(c);
1487
1487
  }, [t, n]);
1488
- return [i, c];
1488
+ return [x, i];
1489
1489
  }
1490
- function Me({
1490
+ function ze({
1491
1491
  defaultValue: t,
1492
1492
  value: e,
1493
- onValueChange: n
1493
+ onValueChange: n,
1494
+ initialLabels: r
1494
1495
  }) {
1495
- const [r, s] = $t(e, t ?? null, n), [i, c] = G(!1), [x, d] = G({}), [l, u] = G(null), g = K(), $ = y(null), w = y(null), h = y(/* @__PURE__ */ new Map()), v = y([]), f = W(() => {
1496
- c(!1), u(null), w.current?.focus();
1497
- }, []), m = W(() => {
1498
- c((z) => {
1499
- if (z)
1496
+ const [s, x] = vt(e, t ?? null, n), [i, c] = H(!1), [d, a] = H(r ?? {}), [g, u] = H(null), v = U(), S = w(null), h = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), $ = q(() => {
1497
+ c(!1), u(null), h.current?.focus();
1498
+ }, []), p = q(() => {
1499
+ c((y) => {
1500
+ if (y)
1500
1501
  u(null);
1501
1502
  else {
1502
- const j = h.current, S = v.current;
1503
+ const z = m.current, j = f.current;
1503
1504
  let M = null;
1504
- for (const C of S) {
1505
- const I = j.get(C);
1506
- if (I && I.value === r) {
1507
- M = C;
1505
+ for (const Y of j) {
1506
+ const G = z.get(Y);
1507
+ if (G && G.value === s) {
1508
+ M = Y;
1508
1509
  break;
1509
1510
  }
1510
1511
  }
1511
- u(M ?? (S.length > 0 ? S[0] : null));
1512
+ u(M ?? (j.length > 0 ? j[0] : null));
1512
1513
  }
1513
- return !z;
1514
+ return !y;
1514
1515
  });
1515
- }, [r]), p = W((z, j) => {
1516
- d((S) => S[z] === j ? S : {
1517
- ...S,
1518
- [z]: j
1516
+ }, [s]), b = q((y, z) => {
1517
+ a((j) => j[y] === z ? j : {
1518
+ ...j,
1519
+ [y]: z
1519
1520
  });
1520
- }, []), b = W((z, j, S) => {
1521
- h.current.set(z, {
1522
- value: j,
1523
- element: S
1521
+ }, []), B = q((y, z, j) => {
1522
+ m.current.set(y, {
1523
+ value: z,
1524
+ element: j
1524
1525
  });
1525
- const M = h.current, C = [...M.keys()];
1526
- return C.sort((I, F) => {
1527
- const yt = M.get(I)?.element, wt = M.get(F)?.element;
1528
- return !yt || !wt ? 0 : yt.compareDocumentPosition(wt) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1529
- }), v.current = C, () => {
1530
- h.current.delete(z), v.current = v.current.filter((I) => I !== z);
1526
+ const M = m.current, Y = [...M.keys()];
1527
+ return Y.sort((G, Q) => {
1528
+ const wt = M.get(G)?.element, St = M.get(Q)?.element;
1529
+ return !wt || !St ? 0 : wt.compareDocumentPosition(St) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1530
+ }), f.current = Y, () => {
1531
+ m.current.delete(y), f.current = f.current.filter((G) => G !== y);
1531
1532
  };
1532
1533
  }, []);
1533
- return H(() => {
1534
- const z = $.current;
1535
- if (!z || !i) return;
1536
- function j(S) {
1537
- const M = v.current, C = h.current;
1534
+ return W(() => {
1535
+ const y = S.current;
1536
+ if (!y || !i) return;
1537
+ function z(j) {
1538
+ const M = f.current, Y = m.current;
1538
1539
  if (M.length !== 0)
1539
- switch (S.key) {
1540
+ switch (j.key) {
1540
1541
  case "ArrowDown": {
1541
- S.preventDefault(), u((I) => {
1542
- const F = I ? M.indexOf(I) : -1;
1543
- return M[(F + 1) % M.length];
1542
+ j.preventDefault(), u((G) => {
1543
+ const Q = G ? M.indexOf(G) : -1;
1544
+ return M[(Q + 1) % M.length];
1544
1545
  });
1545
1546
  break;
1546
1547
  }
1547
1548
  case "ArrowUp": {
1548
- S.preventDefault(), u((I) => {
1549
- const F = I ? M.indexOf(I) : 0;
1550
- return M[(F - 1 + M.length) % M.length];
1549
+ j.preventDefault(), u((G) => {
1550
+ const Q = G ? M.indexOf(G) : 0;
1551
+ return M[(Q - 1 + M.length) % M.length];
1551
1552
  });
1552
1553
  break;
1553
1554
  }
1554
1555
  case "Home": {
1555
- S.preventDefault(), u(M[0]);
1556
+ j.preventDefault(), u(M[0]);
1556
1557
  break;
1557
1558
  }
1558
1559
  case "End": {
1559
- S.preventDefault(), u(M[M.length - 1]);
1560
+ j.preventDefault(), u(M[M.length - 1]);
1560
1561
  break;
1561
1562
  }
1562
1563
  case "Enter":
1563
1564
  case " ": {
1564
- S.preventDefault(), u((I) => {
1565
- if (I) {
1566
- const F = C.get(I);
1567
- F && (s(F.value), f());
1565
+ j.preventDefault(), u((G) => {
1566
+ if (G) {
1567
+ const Q = Y.get(G);
1568
+ Q && (x(Q.value), $());
1568
1569
  }
1569
- return I;
1570
+ return G;
1570
1571
  });
1571
1572
  break;
1572
1573
  }
1573
1574
  case "Escape":
1574
1575
  case "Tab": {
1575
- f();
1576
+ $();
1576
1577
  break;
1577
1578
  }
1578
1579
  }
1579
1580
  }
1580
- return z.addEventListener("keydown", j), () => z.removeEventListener("keydown", j);
1581
- }, [i, f, s]), {
1582
- ctx: ht(() => ({
1581
+ return y.addEventListener("keydown", z), () => y.removeEventListener("keydown", z);
1582
+ }, [i, $, x]), {
1583
+ ctx: ft(() => ({
1583
1584
  open: i,
1584
- toggle: m,
1585
- close: f,
1586
- value: r,
1587
- setValue: s,
1588
- labels: x,
1589
- registerLabel: p,
1590
- listboxId: g,
1591
- highlightedId: l,
1585
+ toggle: p,
1586
+ close: $,
1587
+ value: s,
1588
+ setValue: x,
1589
+ labels: d,
1590
+ registerLabel: b,
1591
+ listboxId: v,
1592
+ highlightedId: g,
1592
1593
  setHighlightedId: u,
1593
- registerItem: b,
1594
- triggerRef: w
1595
- }), [i, m, f, r, s, x, p, g, l, u, b]),
1596
- rootRef: $
1594
+ registerItem: B,
1595
+ triggerRef: h
1596
+ }), [i, p, $, s, x, d, b, v, g, u, B]),
1597
+ rootRef: S
1597
1598
  };
1598
1599
  }
1599
- function ze({
1600
+ function Ie({
1600
1601
  name: t,
1601
1602
  defaultValue: e,
1602
1603
  value: n,
1603
1604
  onValueChange: r,
1604
- children: s
1605
+ initialLabels: s,
1606
+ children: x
1605
1607
  }) {
1606
1608
  const {
1607
1609
  ctx: i,
1608
1610
  rootRef: c
1609
- } = Me({
1611
+ } = ze({
1610
1612
  defaultValue: e,
1611
1613
  value: n,
1612
- onValueChange: r
1614
+ onValueChange: r,
1615
+ initialLabels: s
1613
1616
  });
1614
- return /* @__PURE__ */ o(Lt.Provider, { value: i, children: /* @__PURE__ */ A("div", { ref: c, ...k(a.div, X.root), children: [
1615
- t && /* @__PURE__ */ o("input", { type: "hidden", name: t, value: i.value ?? "", dir: "auto", ...k(a.input) }),
1616
- s
1617
+ return /* @__PURE__ */ o(At.Provider, { value: i, children: /* @__PURE__ */ A("div", { ref: c, ...l(k.div, X.root), children: [
1618
+ t && /* @__PURE__ */ o("input", { type: "hidden", name: t, value: i.value ?? "", dir: "auto", ...l(k.input) }),
1619
+ x
1617
1620
  ] }) });
1618
1621
  }
1619
- function Ie({
1622
+ function qe({
1620
1623
  children: t
1621
1624
  }) {
1622
1625
  const {
@@ -1624,40 +1627,40 @@ function Ie({
1624
1627
  toggle: n,
1625
1628
  listboxId: r,
1626
1629
  highlightedId: s,
1627
- triggerRef: i
1628
- } = at(), c = y(null);
1629
- return H(() => {
1630
- i.current = c.current;
1631
- }), /* @__PURE__ */ o("button", { ref: c, type: "button", role: "combobox", onClick: n, "aria-expanded": e, "aria-haspopup": "listbox", "aria-controls": e ? r : void 0, "aria-activedescendant": s ?? void 0, ...k(a.button, X.trigger), children: t });
1630
+ triggerRef: x
1631
+ } = ut(), i = w(null);
1632
+ return W(() => {
1633
+ x.current = i.current;
1634
+ }), /* @__PURE__ */ o("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": e, "aria-haspopup": "listbox", "aria-controls": e ? r : void 0, "aria-activedescendant": s ?? void 0, ...l(k.button, X.trigger), children: t });
1632
1635
  }
1633
- function qe({
1636
+ function We({
1634
1637
  placeholder: t
1635
1638
  }) {
1636
1639
  const {
1637
1640
  value: e,
1638
1641
  labels: n
1639
- } = at(), r = e ? n[e] ?? e : null;
1640
- return /* @__PURE__ */ o("span", { ...k(a.span, r ? X.value : X.placeholder), children: r ?? t });
1642
+ } = ut(), r = e ? n[e] ?? e : null;
1643
+ return /* @__PURE__ */ o("span", { ...l(k.span, r ? X.value : X.placeholder), children: r ?? t });
1641
1644
  }
1642
- function We({
1645
+ function He({
1643
1646
  children: t
1644
1647
  }) {
1645
- return /* @__PURE__ */ o("span", { ...k(a.span, X.icon), children: t ?? /* @__PURE__ */ o("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M6 9l6 6 6-6" }) }) });
1648
+ return /* @__PURE__ */ o("span", { ...l(k.span, X.icon), children: t ?? /* @__PURE__ */ o("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ o("path", { d: "M6 9l6 6 6-6" }) }) });
1646
1649
  }
1647
- function He({
1650
+ function Ge({
1648
1651
  children: t
1649
1652
  }) {
1650
1653
  const {
1651
1654
  open: e,
1652
1655
  close: n,
1653
1656
  listboxId: r
1654
- } = at();
1655
- return /* @__PURE__ */ A(U, { children: [
1656
- e && /* @__PURE__ */ o("div", { ...k(a.div, X.backdrop), onClick: n }),
1657
- /* @__PURE__ */ o("div", { id: r, role: "listbox", "aria-hidden": !e, ...k(a.div, X.popup, !e && X.hidden), children: t })
1657
+ } = ut();
1658
+ return /* @__PURE__ */ A(_, { children: [
1659
+ e && /* @__PURE__ */ o("div", { ...l(k.div, X.backdrop), onClick: n }),
1660
+ /* @__PURE__ */ o("div", { id: r, role: "listbox", "aria-hidden": !e, ...l(k.div, X.popup, !e && X.hidden), children: t })
1658
1661
  ] });
1659
1662
  }
1660
- function Ge({
1663
+ function Te({
1661
1664
  value: t,
1662
1665
  children: e
1663
1666
  }) {
@@ -1665,38 +1668,38 @@ function Ge({
1665
1668
  value: n,
1666
1669
  setValue: r,
1667
1670
  close: s,
1668
- registerLabel: i,
1669
- highlightedId: c,
1670
- setHighlightedId: x,
1671
+ registerLabel: x,
1672
+ highlightedId: i,
1673
+ setHighlightedId: c,
1671
1674
  registerItem: d
1672
- } = at(), l = K(), u = y(null), g = n === t, $ = c === l;
1673
- return H(() => {
1674
- const h = u.current;
1675
+ } = ut(), a = U(), g = w(null), u = n === t, v = i === a;
1676
+ return W(() => {
1677
+ const h = g.current;
1675
1678
  if (!h) return;
1676
- const v = h.textContent;
1677
- v && i(t, v);
1678
- }, [t, i]), H(() => {
1679
- const h = u.current;
1679
+ const m = h.textContent;
1680
+ m && x(t, m);
1681
+ }, [t, x]), W(() => {
1682
+ const h = g.current;
1680
1683
  if (h)
1681
- return d(l, t, h);
1682
- }, [l, t, d]), /* @__PURE__ */ o("div", { ref: u, id: l, role: "option", "aria-selected": g, onClick: () => {
1684
+ return d(a, t, h);
1685
+ }, [a, t, d]), /* @__PURE__ */ o("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
1683
1686
  r(t), s();
1684
- }, onPointerEnter: () => x(l), ...k(a.div, X.item, g && X.itemSelected, $ && X.itemHighlighted), children: e });
1687
+ }, onPointerEnter: () => c(a), ...l(k.div, X.item, u && X.itemSelected, v && X.itemHighlighted), children: e });
1685
1688
  }
1686
- function Te({
1689
+ function Ee({
1687
1690
  children: t
1688
1691
  }) {
1689
- return /* @__PURE__ */ o("span", { ...k(a.span), children: t });
1692
+ return /* @__PURE__ */ o("span", { ...l(k.span), children: t });
1690
1693
  }
1691
- const Ln = {
1692
- Root: ze,
1693
- Trigger: Ie,
1694
- Value: qe,
1695
- Icon: We,
1696
- Popup: He,
1697
- Item: Ge,
1698
- ItemText: Te
1699
- }, Q = {
1694
+ const An = {
1695
+ Root: Ie,
1696
+ Trigger: qe,
1697
+ Value: We,
1698
+ Icon: He,
1699
+ Popup: Ge,
1700
+ Item: Te,
1701
+ ItemText: Ee
1702
+ }, K = {
1700
1703
  root: {
1701
1704
  k1xSpc: "x78zum5",
1702
1705
  kXwgrk: "xdt5ytf",
@@ -1775,68 +1778,68 @@ const Ln = {
1775
1778
  k63SB2: "x9n8r49",
1776
1779
  $$css: !0
1777
1780
  }
1778
- }, At = D(null);
1779
- function Vt() {
1780
- const t = N(At);
1781
+ }, Vt = C(null);
1782
+ function Ot() {
1783
+ const t = N(Vt);
1781
1784
  if (!t) throw new Error("SideNav compound components must be used within SideNav.Root");
1782
1785
  return t;
1783
1786
  }
1784
- function Ee({
1787
+ function Le({
1785
1788
  children: t,
1786
1789
  value: e,
1787
1790
  defaultValue: n,
1788
1791
  onValueChange: r
1789
1792
  }) {
1790
- const [s, i] = $t(e, n ?? null, r ? (g) => {
1791
- g !== null && r(g);
1792
- } : void 0), [c, x] = G(/* @__PURE__ */ new Set()), d = y([]), l = W((g) => {
1793
- x(($) => {
1794
- const w = new Set($);
1795
- return w.has(g) ? w.delete(g) : w.add(g), w;
1793
+ const [s, x] = vt(e, n ?? null, r ? (u) => {
1794
+ u !== null && r(u);
1795
+ } : void 0), [i, c] = H(/* @__PURE__ */ new Set()), d = w([]), a = q((u) => {
1796
+ c((v) => {
1797
+ const S = new Set(v);
1798
+ return S.has(u) ? S.delete(u) : S.add(u), S;
1796
1799
  });
1797
- }, []), u = W((g) => (d.current.includes(g) || d.current.push(g), () => {
1798
- d.current = d.current.filter(($) => $ !== g);
1800
+ }, []), g = q((u) => (d.current.includes(u) || d.current.push(u), () => {
1801
+ d.current = d.current.filter((v) => v !== u);
1799
1802
  }), []);
1800
- return H(() => {
1801
- s && x((g) => g);
1802
- }, [s]), /* @__PURE__ */ o(At.Provider, { value: {
1803
+ return W(() => {
1804
+ s && c((u) => u);
1805
+ }, [s]), /* @__PURE__ */ o(Vt.Provider, { value: {
1803
1806
  activeValue: s,
1804
- onSelect: i,
1805
- expandedGroups: c,
1806
- toggleGroup: l,
1807
- registerItem: u,
1807
+ onSelect: x,
1808
+ expandedGroups: i,
1809
+ toggleGroup: a,
1810
+ registerItem: g,
1808
1811
  orderRef: d
1809
- }, children: /* @__PURE__ */ o("nav", { role: "navigation", ...k(a.nav, Q.root), children: t }) });
1812
+ }, children: /* @__PURE__ */ o("nav", { role: "navigation", ...l(k.nav, K.root), children: t }) });
1810
1813
  }
1811
- function Le({
1814
+ function Ae({
1812
1815
  children: t,
1813
1816
  label: e,
1814
1817
  groupKey: n,
1815
1818
  defaultExpanded: r
1816
1819
  }) {
1817
1820
  const s = n ?? e, {
1818
- expandedGroups: i,
1819
- toggleGroup: c,
1820
- activeValue: x
1821
- } = Vt(), d = i.has(s), l = y(null);
1822
- H(() => {
1823
- if (!x || i.has(s)) return;
1824
- const g = l.current;
1825
- if (!g) return;
1826
- g.querySelector(`[data-nav-value="${x}"]`) && c(s);
1827
- }, [x, s, i, c]), H(() => {
1828
- r && !i.has(s) && c(s);
1821
+ expandedGroups: x,
1822
+ toggleGroup: i,
1823
+ activeValue: c
1824
+ } = Ot(), d = x.has(s), a = w(null);
1825
+ W(() => {
1826
+ if (!c || x.has(s)) return;
1827
+ const u = a.current;
1828
+ if (!u) return;
1829
+ u.querySelector(`[data-nav-value="${c}"]`) && i(s);
1830
+ }, [c, s, x, i]), W(() => {
1831
+ r && !x.has(s) && i(s);
1829
1832
  }, []);
1830
- const u = !x || !l.current ? !1 : !!l.current.querySelector(`[data-nav-value="${x}"]`);
1831
- return /* @__PURE__ */ A("div", { ref: l, ...k(a.div, Q.group), children: [
1832
- /* @__PURE__ */ A("button", { type: "button", onClick: () => c(s), ...k(a.button, Q.groupTrigger, u && Q.groupTriggerActive), "aria-expanded": d, children: [
1833
- /* @__PURE__ */ o("span", { ...k(a.span, Q.chevron, d && Q.chevronOpen), children: /* @__PURE__ */ o("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M9 18l6-6-6-6" }) }) }),
1833
+ const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
1834
+ return /* @__PURE__ */ A("div", { ref: a, ...l(k.div, K.group), children: [
1835
+ /* @__PURE__ */ A("button", { type: "button", onClick: () => i(s), ...l(k.button, K.groupTrigger, g && K.groupTriggerActive), "aria-expanded": d, children: [
1836
+ /* @__PURE__ */ o("span", { ...l(k.span, K.chevron, d && K.chevronOpen), children: /* @__PURE__ */ o("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M9 18l6-6-6-6" }) }) }),
1834
1837
  e
1835
1838
  ] }),
1836
1839
  d && t
1837
1840
  ] });
1838
1841
  }
1839
- function Ae({
1842
+ function Ve({
1840
1843
  value: t,
1841
1844
  children: e
1842
1845
  }) {
@@ -1844,14 +1847,14 @@ function Ae({
1844
1847
  activeValue: n,
1845
1848
  onSelect: r,
1846
1849
  registerItem: s
1847
- } = Vt(), i = n === t;
1848
- return H(() => s(t), [t, s]), /* @__PURE__ */ o("button", { type: "button", "data-nav-value": t, onClick: () => r(t), ...k(a.button, Q.item, i && Q.itemActive), "aria-current": i ? "page" : void 0, children: e });
1850
+ } = Ot(), x = n === t;
1851
+ return W(() => s(t), [t, s]), /* @__PURE__ */ o("button", { type: "button", "data-nav-value": t, onClick: () => r(t), ...l(k.button, K.item, x && K.itemActive), "aria-current": x ? "page" : void 0, children: e });
1849
1852
  }
1850
- const An = {
1851
- Root: Ee,
1852
- Group: Le,
1853
- Item: Ae
1854
- }, rt = {
1853
+ const Vn = {
1854
+ Root: Le,
1855
+ Group: Ae,
1856
+ Item: Ve
1857
+ }, st = {
1855
1858
  root: {
1856
1859
  k1xSpc: "x3nfvp2",
1857
1860
  kGNEyG: "x6s0dn4",
@@ -1895,21 +1898,21 @@ const An = {
1895
1898
  kMcinP: "xzpqnlu",
1896
1899
  $$css: !0
1897
1900
  }
1898
- }, Ve = {
1899
- sm: rt.sm,
1900
- md: rt.md,
1901
- lg: rt.lg
1901
+ }, Oe = {
1902
+ sm: st.sm,
1903
+ md: st.md,
1904
+ lg: st.lg
1902
1905
  };
1903
- function Vn({
1906
+ function On({
1904
1907
  size: t = "md",
1905
1908
  label: e = "Loading"
1906
1909
  }) {
1907
- return /* @__PURE__ */ A("div", { role: "status", ...k(a.div, rt.root), children: [
1908
- /* @__PURE__ */ o("div", { ...k(a.div, rt.spinner, Ve[t]), "aria-hidden": !0 }),
1909
- /* @__PURE__ */ o("span", { ...k(a.span, rt.srOnly), children: e })
1910
+ return /* @__PURE__ */ A("div", { role: "status", ...l(k.div, st.root), children: [
1911
+ /* @__PURE__ */ o("div", { ...l(k.div, st.spinner, Oe[t]), "aria-hidden": !0 }),
1912
+ /* @__PURE__ */ o("span", { ...l(k.span, st.srOnly), children: e })
1910
1913
  ] });
1911
1914
  }
1912
- const jt = {
1915
+ const Mt = {
1913
1916
  root: {
1914
1917
  k1xSpc: "x3nfvp2",
1915
1918
  kGNEyG: "x6s0dn4",
@@ -1933,37 +1936,37 @@ const jt = {
1933
1936
  kMwMTN: "x19e7f62",
1934
1937
  $$css: !0
1935
1938
  }
1936
- }, Oe = {
1937
- "x-circle": /* @__PURE__ */ A(U, { children: [
1939
+ }, Ne = {
1940
+ "x-circle": /* @__PURE__ */ A(_, { children: [
1938
1941
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1939
1942
  /* @__PURE__ */ o("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
1940
1943
  /* @__PURE__ */ o("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
1941
1944
  ] }),
1942
- "check-circle": /* @__PURE__ */ A(U, { children: [
1945
+ "check-circle": /* @__PURE__ */ A(_, { children: [
1943
1946
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1944
1947
  /* @__PURE__ */ o("polyline", { points: "16 10 11 15 8 12" })
1945
1948
  ] }),
1946
- "check-done": /* @__PURE__ */ A(U, { children: [
1949
+ "check-done": /* @__PURE__ */ A(_, { children: [
1947
1950
  /* @__PURE__ */ o("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
1948
1951
  /* @__PURE__ */ o("polyline", { points: "22 4 12 14.01 9 11.01" })
1949
1952
  ] }),
1950
- clock: /* @__PURE__ */ A(U, { children: [
1953
+ clock: /* @__PURE__ */ A(_, { children: [
1951
1954
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1952
1955
  /* @__PURE__ */ o("polyline", { points: "12 6 12 12 16 14" })
1953
1956
  ] }),
1954
- forbidden: /* @__PURE__ */ A(U, { children: [
1957
+ forbidden: /* @__PURE__ */ A(_, { children: [
1955
1958
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
1956
1959
  /* @__PURE__ */ o("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
1957
1960
  ] })
1958
1961
  };
1959
- function On({
1962
+ function Nn({
1960
1963
  name: t,
1961
1964
  size: e = 48,
1962
1965
  variant: n = "muted"
1963
1966
  }) {
1964
- return /* @__PURE__ */ o("div", { ...k(a.div, jt.root, jt[n]), children: /* @__PURE__ */ o("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: e, height: e, children: Oe[t] }) });
1967
+ return /* @__PURE__ */ o("div", { ...l(k.div, Mt.root, Mt[n]), children: /* @__PURE__ */ o("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: e, height: e, children: Ne[t] }) });
1965
1968
  }
1966
- const Ne = {
1969
+ const Be = {
1967
1970
  kumcoG: "xqketvx",
1968
1971
  $$css: !0
1969
1972
  }, L = {
@@ -2042,90 +2045,90 @@ const Ne = {
2042
2045
  kWqL5O: "xgfja2r",
2043
2046
  $$css: !0
2044
2047
  },
2045
- gridColumns: (t) => [Ne, {
2048
+ gridColumns: (t) => [Be, {
2046
2049
  "--x-gridTemplateColumns": `repeat(${t}, 1fr)` != null ? `repeat(${t}, 1fr)` : void 0
2047
2050
  }]
2048
- }, Ot = D(null);
2049
- function ut() {
2050
- const t = N(Ot);
2051
+ }, Nt = C(null);
2052
+ function dt() {
2053
+ const t = N(Nt);
2051
2054
  if (!t) throw new Error("Table compound components must be used within Table.Root");
2052
2055
  return t;
2053
2056
  }
2054
- const vt = D(!1);
2055
- function Be({
2057
+ const mt = C(!1);
2058
+ function De({
2056
2059
  children: t,
2057
2060
  variant: e = "default",
2058
2061
  size: n = "md",
2059
2062
  columns: r
2060
2063
  }) {
2061
- return /* @__PURE__ */ o(Ot.Provider, { value: {
2064
+ return /* @__PURE__ */ o(Nt.Provider, { value: {
2062
2065
  variant: e,
2063
2066
  size: n,
2064
2067
  columns: r,
2065
2068
  isHeader: !1
2066
- }, children: /* @__PURE__ */ o("div", { role: "table", ...k(a.div, L.root), children: t }) });
2069
+ }, children: /* @__PURE__ */ o("div", { role: "table", ...l(k.div, L.root), children: t }) });
2067
2070
  }
2068
- function De({
2071
+ function Ce({
2069
2072
  children: t
2070
2073
  }) {
2071
- return /* @__PURE__ */ o(vt.Provider, { value: !0, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...k(a.div, L.header), children: t }) });
2074
+ return /* @__PURE__ */ o(mt.Provider, { value: !0, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...l(k.div, L.header), children: t }) });
2072
2075
  }
2073
- function Ce({
2076
+ function Re({
2074
2077
  children: t
2075
2078
  }) {
2076
2079
  const {
2077
2080
  variant: e
2078
- } = ut(), n = zt.toArray(t);
2079
- return /* @__PURE__ */ o(vt.Provider, { value: !1, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...k(a.div), children: n.map((r, s) => e === "striped" ? /* @__PURE__ */ o(Nt.Provider, { value: s, children: r }, s) : r) }) });
2081
+ } = dt(), n = It.toArray(t);
2082
+ return /* @__PURE__ */ o(mt.Provider, { value: !1, children: /* @__PURE__ */ o("div", { role: "rowgroup", ...l(k.div), children: n.map((r, s) => e === "striped" ? /* @__PURE__ */ o(Bt.Provider, { value: s, children: r }, s) : r) }) });
2080
2083
  }
2081
- const Nt = D(-1);
2082
- function Re({
2084
+ const Bt = C(-1);
2085
+ function Xe({
2083
2086
  children: t
2084
2087
  }) {
2085
2088
  const {
2086
2089
  variant: e,
2087
2090
  columns: n
2088
- } = ut(), r = N(vt), s = N(Nt), i = s >= 0 && s % 2 === 1, c = zt.toArray(t);
2089
- return /* @__PURE__ */ o("div", { role: "row", ...k(a.div, L.row, L.gridColumns(n), !r && L.bodyRow, !r && e === "striped" && i && L.stripedEven), children: e === "bordered" ? c.map((x, d) => /* @__PURE__ */ o(mt.Provider, { value: {
2091
+ } = dt(), r = N(mt), s = N(Bt), x = s >= 0 && s % 2 === 1, i = It.toArray(t);
2092
+ return /* @__PURE__ */ o("div", { role: "row", ...l(k.div, L.row, L.gridColumns(n), !r && L.bodyRow, !r && e === "striped" && x && L.stripedEven), children: e === "bordered" ? i.map((c, d) => /* @__PURE__ */ o(bt.Provider, { value: {
2090
2093
  index: d,
2091
- total: c.length
2092
- }, children: x }, d)) : t });
2094
+ total: i.length
2095
+ }, children: c }, d)) : t });
2093
2096
  }
2094
- const mt = D({
2097
+ const bt = C({
2095
2098
  index: 0,
2096
2099
  total: 0
2097
2100
  });
2098
- function Xe({
2101
+ function Ye({
2099
2102
  children: t
2100
2103
  }) {
2101
2104
  const {
2102
2105
  size: e,
2103
2106
  variant: n
2104
- } = ut(), {
2107
+ } = dt(), {
2105
2108
  index: r,
2106
2109
  total: s
2107
- } = N(mt), i = n === "bordered" && r === s - 1;
2108
- return /* @__PURE__ */ o("div", { role: "columnheader", ...k(a.div, L.headerCell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, i && L.borderedCellLast), children: t });
2110
+ } = N(bt), x = n === "bordered" && r === s - 1;
2111
+ return /* @__PURE__ */ o("div", { role: "columnheader", ...l(k.div, L.headerCell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, x && L.borderedCellLast), children: t });
2109
2112
  }
2110
- function Ye({
2113
+ function Je({
2111
2114
  children: t
2112
2115
  }) {
2113
2116
  const {
2114
2117
  size: e,
2115
2118
  variant: n
2116
- } = ut(), {
2119
+ } = dt(), {
2117
2120
  index: r,
2118
2121
  total: s
2119
- } = N(mt), i = n === "bordered" && r === s - 1;
2120
- return /* @__PURE__ */ o("div", { role: "cell", ...k(a.div, L.cell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, i && L.borderedCellLast), children: t });
2121
- }
2122
- const Nn = {
2123
- Root: Be,
2124
- Header: De,
2125
- Body: Ce,
2126
- Row: Re,
2127
- HeaderCell: Xe,
2128
- Cell: Ye
2122
+ } = N(bt), x = n === "bordered" && r === s - 1;
2123
+ return /* @__PURE__ */ o("div", { role: "cell", ...l(k.div, L.cell, e === "sm" ? L.cellSm : L.cellMd, n === "bordered" && L.borderedCell, x && L.borderedCellLast), children: t });
2124
+ }
2125
+ const Bn = {
2126
+ Root: De,
2127
+ Header: Ce,
2128
+ Body: Re,
2129
+ Row: Xe,
2130
+ HeaderCell: Ye,
2131
+ Cell: Je
2129
2132
  }, R = {
2130
2133
  root: {
2131
2134
  k1xSpc: "x78zum5",
@@ -2214,48 +2217,48 @@ const Nn = {
2214
2217
  kE3dHu: "x107tsa6",
2215
2218
  $$css: !0
2216
2219
  }
2217
- }, Bt = D(null);
2218
- function bt() {
2219
- const t = N(Bt);
2220
+ }, Dt = C(null);
2221
+ function yt() {
2222
+ const t = N(Dt);
2220
2223
  if (!t) throw new Error("Tabs compound components must be used within Tabs.Root");
2221
2224
  return t;
2222
2225
  }
2223
- function Je({
2226
+ function Pe({
2224
2227
  value: t,
2225
2228
  defaultValue: e,
2226
2229
  onValueChange: n,
2227
2230
  orientation: r = "horizontal"
2228
2231
  }) {
2229
- const [s, i] = $t(t, e ?? null, n ? (l) => {
2230
- l !== null && n(l);
2231
- } : void 0), c = y(/* @__PURE__ */ new Map()), x = y([]), d = W((l, u) => (c.current.set(l, u), x.current.includes(l) || x.current.push(l), () => {
2232
- c.current.delete(l), x.current = x.current.filter((g) => g !== l);
2232
+ const [s, x] = vt(t, e ?? null, n ? (a) => {
2233
+ a !== null && n(a);
2234
+ } : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = q((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
2235
+ i.current.delete(a), c.current = c.current.filter((u) => u !== a);
2233
2236
  }), []);
2234
2237
  return {
2235
2238
  activeValue: s,
2236
- onSelect: i,
2239
+ onSelect: x,
2237
2240
  orientation: r,
2238
2241
  registerTab: d,
2239
- tabsRef: c,
2240
- orderRef: x
2242
+ tabsRef: i,
2243
+ orderRef: c
2241
2244
  };
2242
2245
  }
2243
- function Pe({
2246
+ function Fe({
2244
2247
  children: t,
2245
2248
  value: e,
2246
2249
  defaultValue: n,
2247
2250
  onValueChange: r,
2248
2251
  orientation: s = "horizontal"
2249
2252
  }) {
2250
- const i = Je({
2253
+ const x = Pe({
2251
2254
  value: e,
2252
2255
  defaultValue: n,
2253
2256
  onValueChange: r,
2254
2257
  orientation: s
2255
2258
  });
2256
- return /* @__PURE__ */ o(Bt.Provider, { value: i, children: /* @__PURE__ */ o("div", { ...k(a.div, R.root, s === "vertical" && R.rootVertical), children: t }) });
2259
+ return /* @__PURE__ */ o(Dt.Provider, { value: x, children: /* @__PURE__ */ o("div", { ...l(k.div, R.root, s === "vertical" && R.rootVertical), children: t }) });
2257
2260
  }
2258
- function Fe({
2261
+ function Qe({
2259
2262
  children: t
2260
2263
  }) {
2261
2264
  const {
@@ -2263,66 +2266,66 @@ function Fe({
2263
2266
  activeValue: n,
2264
2267
  onSelect: r,
2265
2268
  tabsRef: s,
2266
- orderRef: i
2267
- } = bt(), c = y(null);
2268
- return H(() => {
2269
- const x = c.current;
2270
- if (!x) return;
2271
- function d(l) {
2272
- const u = i.current, g = s.current;
2273
- if (u.length === 0) return;
2274
- const $ = this, w = e === "horizontal" ? "ArrowLeft" : "ArrowUp", h = e === "horizontal" ? "ArrowRight" : "ArrowDown";
2275
- let v = null;
2276
- switch (l.key) {
2269
+ orderRef: x
2270
+ } = yt(), i = w(null);
2271
+ return W(() => {
2272
+ const c = i.current;
2273
+ if (!c) return;
2274
+ function d(a) {
2275
+ const g = x.current, u = s.current;
2276
+ if (g.length === 0) return;
2277
+ const v = this, S = e === "horizontal" ? "ArrowLeft" : "ArrowUp", h = e === "horizontal" ? "ArrowRight" : "ArrowDown";
2278
+ let m = null;
2279
+ switch (a.key) {
2277
2280
  case h: {
2278
- l.preventDefault();
2279
- const f = n ? u.indexOf(n) : -1;
2280
- for (let m = 1; m <= u.length; m++) {
2281
- const p = (f + m) % u.length, b = u[p];
2282
- if (!g.get(b)) {
2283
- v = b;
2281
+ a.preventDefault();
2282
+ const f = n ? g.indexOf(n) : -1;
2283
+ for (let $ = 1; $ <= g.length; $++) {
2284
+ const p = (f + $) % g.length, b = g[p];
2285
+ if (!u.get(b)) {
2286
+ m = b;
2284
2287
  break;
2285
2288
  }
2286
2289
  }
2287
2290
  break;
2288
2291
  }
2289
- case w: {
2290
- l.preventDefault();
2291
- const f = n ? u.indexOf(n) : 0;
2292
- for (let m = 1; m <= u.length; m++) {
2293
- const p = (f - m + u.length) % u.length, b = u[p];
2294
- if (!g.get(b)) {
2295
- v = b;
2292
+ case S: {
2293
+ a.preventDefault();
2294
+ const f = n ? g.indexOf(n) : 0;
2295
+ for (let $ = 1; $ <= g.length; $++) {
2296
+ const p = (f - $ + g.length) % g.length, b = g[p];
2297
+ if (!u.get(b)) {
2298
+ m = b;
2296
2299
  break;
2297
2300
  }
2298
2301
  }
2299
2302
  break;
2300
2303
  }
2301
2304
  case "Home": {
2302
- l.preventDefault();
2303
- for (const f of u)
2304
- if (!g.get(f)) {
2305
- v = f;
2305
+ a.preventDefault();
2306
+ for (const f of g)
2307
+ if (!u.get(f)) {
2308
+ m = f;
2306
2309
  break;
2307
2310
  }
2308
2311
  break;
2309
2312
  }
2310
2313
  case "End": {
2311
- l.preventDefault();
2312
- for (let f = u.length - 1; f >= 0; f--)
2313
- if (!g.get(u[f])) {
2314
- v = u[f];
2314
+ a.preventDefault();
2315
+ for (let f = g.length - 1; f >= 0; f--)
2316
+ if (!u.get(g[f])) {
2317
+ m = g[f];
2315
2318
  break;
2316
2319
  }
2317
2320
  break;
2318
2321
  }
2319
2322
  }
2320
- v && (r(v), $.querySelector(`[data-tab-value="${v}"]`)?.focus());
2323
+ m && (r(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
2321
2324
  }
2322
- return x.addEventListener("keydown", d), () => x.removeEventListener("keydown", d);
2323
- }, [e, n, r, s, i]), /* @__PURE__ */ o("div", { ref: c, role: "tablist", "aria-orientation": e, ...k(a.div, R.list, e === "vertical" && R.listVertical), children: t });
2325
+ return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
2326
+ }, [e, n, r, s, x]), /* @__PURE__ */ o("div", { ref: i, role: "tablist", "aria-orientation": e, ...l(k.div, R.list, e === "vertical" && R.listVertical), children: t });
2324
2327
  }
2325
- function Qe({
2328
+ function Ke({
2326
2329
  value: t,
2327
2330
  disabled: e = !1,
2328
2331
  children: n
@@ -2330,29 +2333,29 @@ function Qe({
2330
2333
  const {
2331
2334
  activeValue: r,
2332
2335
  onSelect: s,
2333
- orientation: i,
2334
- registerTab: c
2335
- } = bt(), x = r === t, d = K(), l = `${d}-panel`;
2336
- return H(() => c(t, e), [t, e, c]), /* @__PURE__ */ o("button", { type: "button", role: "tab", id: d, "aria-selected": x, "aria-controls": l, "aria-disabled": e || void 0, "data-tab-value": t, tabIndex: x ? 0 : -1, onClick: () => {
2336
+ orientation: x,
2337
+ registerTab: i
2338
+ } = yt(), c = r === t, d = U(), a = `${d}-panel`;
2339
+ return W(() => i(t, e), [t, e, i]), /* @__PURE__ */ o("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": e || void 0, "data-tab-value": t, tabIndex: c ? 0 : -1, onClick: () => {
2337
2340
  e || s(t);
2338
- }, ...k(a.button, R.tab, i === "vertical" && R.tabVertical, x && (i === "vertical" ? R.tabActiveVertical : R.tabActiveHorizontal), e && R.tabDisabled), children: n });
2341
+ }, ...l(k.button, R.tab, x === "vertical" && R.tabVertical, c && (x === "vertical" ? R.tabActiveVertical : R.tabActiveHorizontal), e && R.tabDisabled), children: n });
2339
2342
  }
2340
- function Ke({
2343
+ function Ue({
2341
2344
  value: t,
2342
2345
  children: e
2343
2346
  }) {
2344
2347
  const {
2345
2348
  activeValue: n,
2346
2349
  orientation: r
2347
- } = bt();
2348
- return n !== t ? null : /* @__PURE__ */ o("div", { role: "tabpanel", ...k(a.div, R.panel, r === "vertical" && R.panelVertical), children: e });
2349
- }
2350
- const Bn = {
2351
- Root: Pe,
2352
- List: Fe,
2353
- Tab: Qe,
2354
- Panel: Ke
2355
- }, Mt = {
2350
+ } = yt();
2351
+ return n !== t ? null : /* @__PURE__ */ o("div", { role: "tabpanel", ...l(k.div, R.panel, r === "vertical" && R.panelVertical), children: e });
2352
+ }
2353
+ const Dn = {
2354
+ Root: Fe,
2355
+ List: Qe,
2356
+ Tab: Ke,
2357
+ Panel: Ue
2358
+ }, zt = {
2356
2359
  base: {
2357
2360
  kzqmXN: "xh8yej3",
2358
2361
  kLKAdn: "x1y6gaq4",
@@ -2386,21 +2389,21 @@ const Bn = {
2386
2389
  $$css: !0
2387
2390
  }
2388
2391
  };
2389
- function Dn({
2392
+ function Cn({
2390
2393
  variant: t = "default",
2391
2394
  name: e,
2392
2395
  placeholder: n,
2393
2396
  required: r,
2394
2397
  rows: s = 3,
2395
- value: i,
2396
- defaultValue: c,
2397
- disabled: x,
2398
+ value: x,
2399
+ defaultValue: i,
2400
+ disabled: c,
2398
2401
  onChange: d
2399
2402
  }) {
2400
- const l = ot();
2401
- return /* @__PURE__ */ o("textarea", { id: l?.controlId, name: e, placeholder: n, required: r, rows: s, value: i, defaultValue: c, disabled: x, "aria-describedby": l ? `${l.descriptionId} ${l.invalid ? l.errorId : ""}`.trim() : void 0, "aria-invalid": l?.invalid || t === "error" || void 0, onChange: d, ...k(a.textarea, Mt.base, Mt[t]), dir: "auto" });
2403
+ const a = it();
2404
+ return /* @__PURE__ */ o("textarea", { id: a?.controlId, name: e, placeholder: n, required: r, rows: s, value: x, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || t === "error" || void 0, onChange: d, ...l(k.textarea, zt.base, zt[t]), dir: "auto" });
2402
2405
  }
2403
- const Cn = {
2406
+ const Rn = {
2404
2407
  bg: "var(--bg-xqkwqtp)",
2405
2408
  bgCard: "var(--bgCard-xj2l5r)",
2406
2409
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -2428,7 +2431,7 @@ const Cn = {
2428
2431
  infoBorder: "var(--infoBorder-xnevk3x)",
2429
2432
  infoText: "var(--infoText-x19pseus)",
2430
2433
  __varGroupHash__: "xjvd03b"
2431
- }, Rn = {
2434
+ }, Xn = {
2432
2435
  xs: "var(--xs-xxfyjsd)",
2433
2436
  sm: "var(--sm-xbh8y7f)",
2434
2437
  ms: "var(--ms-x13y09zs)",
@@ -2438,13 +2441,13 @@ const Cn = {
2438
2441
  xxl: "var(--xxl-xbe9eha)",
2439
2442
  xxxl: "var(--xxxl-xroalp5)",
2440
2443
  __varGroupHash__: "x6uc9q"
2441
- }, Xn = {
2444
+ }, Yn = {
2442
2445
  sm: "var(--sm-x1bhtfs5)",
2443
2446
  md: "var(--md-xx2g89g)",
2444
2447
  lg: "var(--lg-xwd56yl)",
2445
2448
  full: "var(--full-x9vxdtd)",
2446
2449
  __varGroupHash__: "xw3ffwm"
2447
- }, Yn = {
2450
+ }, Jn = {
2448
2451
  stackXs: "var(--stackXs-x1qfrfo2)",
2449
2452
  stackSm: "var(--stackSm-x2rk1ut)",
2450
2453
  stackMd: "var(--stackMd-xhblkt4)",
@@ -2458,7 +2461,7 @@ const Cn = {
2458
2461
  containerMd: "var(--containerMd-x170dvin)",
2459
2462
  containerLg: "var(--containerLg-x1n6aasq)",
2460
2463
  __varGroupHash__: "x16nfoyr"
2461
- }, Jn = {
2464
+ }, Pn = {
2462
2465
  fontFamily: "var(--fontFamily-xvrmnat)",
2463
2466
  fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
2464
2467
  fontSizeXs: "var(--fontSizeXs-x1w5m325)",
@@ -2473,7 +2476,7 @@ const Cn = {
2473
2476
  fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
2474
2477
  lineHeight: "var(--lineHeight-x1gubzd5)",
2475
2478
  __varGroupHash__: "xs62swl"
2476
- }, Pn = {
2479
+ }, Fn = {
2477
2480
  fontSize1: "var(--fontSize1-xx27tux)",
2478
2481
  fontSize2: "var(--fontSize2-x5hag8h)",
2479
2482
  fontSize3: "var(--fontSize3-x1mf6j39)",
@@ -2499,7 +2502,7 @@ const Cn = {
2499
2502
  letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
2500
2503
  letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
2501
2504
  __varGroupHash__: "x4cj49w"
2502
- }, Fn = {
2505
+ }, Qn = {
2503
2506
  bodySm: {
2504
2507
  "fontFamily-kMv6JI": "fontFamily-xce2pww",
2505
2508
  "fontSize-kGuDYH": "fontSize-x1hn3ytp",
@@ -2613,38 +2616,38 @@ const Cn = {
2613
2616
  "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
2614
2617
  $$css: "tokens/type-presets.css.ts:104"
2615
2618
  }
2616
- }, Qn = {
2619
+ }, Kn = {
2617
2620
  sm: "var(--sm-x17hhtln)",
2618
2621
  md: "var(--md-x1oyt0aw)",
2619
2622
  lg: "var(--lg-x1mxd62i)",
2620
2623
  __varGroupHash__: "x13v825q"
2621
- }, Ue = {
2624
+ }, _e = {
2622
2625
  xjvd03b: "x18itf25 xjvd03b",
2623
2626
  $$css: !0
2624
- }, _e = {
2627
+ }, Ze = {
2625
2628
  x13v825q: "xv9ibj0 x13v825q",
2626
2629
  $$css: !0
2627
- }, Ze = {
2630
+ }, tn = {
2628
2631
  xjvd03b: "x1qgt5a2 xjvd03b",
2629
2632
  $$css: !0
2630
- }, tn = {
2633
+ }, en = {
2631
2634
  x13v825q: "x15e39jv x13v825q",
2632
2635
  $$css: !0
2633
- }, en = {
2634
- light: [Ue, _e],
2635
- "high-contrast": [Ze, tn]
2636
2636
  }, nn = {
2637
+ light: [_e, Ze],
2638
+ "high-contrast": [tn, en]
2639
+ }, rn = {
2637
2640
  root: {
2638
2641
  k1xSpc: "xjp7ctv",
2639
2642
  $$css: !0
2640
2643
  }
2641
2644
  };
2642
- function Kn({
2645
+ function Un({
2643
2646
  theme: t = "dark",
2644
2647
  children: e
2645
2648
  }) {
2646
- const n = en[t], r = [n?.[0], n?.[1], nn.root];
2647
- return /* @__PURE__ */ o("div", { ...k(a.div, r), children: e });
2649
+ const n = nn[t], r = [n?.[0], n?.[1], rn.root];
2650
+ return /* @__PURE__ */ o("div", { ...l(k.div, r), children: e });
2648
2651
  }
2649
2652
  const P = {
2650
2653
  default: {
@@ -2705,29 +2708,29 @@ const P = {
2705
2708
  khDVqt: "xuxw1ft",
2706
2709
  $$css: !0
2707
2710
  }
2708
- }, rn = {
2711
+ }, sn = {
2709
2712
  normal: P.weightNormal,
2710
2713
  medium: P.weightMedium,
2711
2714
  semibold: P.weightSemibold,
2712
2715
  bold: P.weightBold
2713
- }, sn = {
2716
+ }, on = {
2714
2717
  start: P.alignStart,
2715
2718
  center: P.alignCenter,
2716
2719
  end: P.alignEnd
2717
2720
  };
2718
- function Un({
2721
+ function _n({
2719
2722
  variant: t = "bodyMd",
2720
2723
  color: e = "default",
2721
2724
  weight: n,
2722
2725
  align: r,
2723
2726
  truncate: s,
2724
- as: i = "span",
2725
- children: c
2727
+ as: x = "span",
2728
+ children: i
2726
2729
  }) {
2727
- const x = [Wt[t], P[e], n && rn[n], r && sn[r], s && P.truncate];
2728
- return i === "p" ? /* @__PURE__ */ o("p", { ...k(a.p, x), children: c }) : i === "div" ? /* @__PURE__ */ o("div", { ...k(a.div, x), children: c }) : /* @__PURE__ */ o("span", { ...k(a.span, x), children: c });
2730
+ const c = [Ht[t], P[e], n && sn[n], r && on[r], s && P.truncate];
2731
+ return x === "p" ? /* @__PURE__ */ o("p", { ...l(k.p, c), children: i }) : x === "div" ? /* @__PURE__ */ o("div", { ...l(k.div, c), children: i }) : /* @__PURE__ */ o("span", { ...l(k.span, c), children: i });
2729
2732
  }
2730
- const pt = {
2733
+ const ht = {
2731
2734
  root: {
2732
2735
  kVAEAm: "x1n2onr6",
2733
2736
  k1xSpc: "x3nfvp2",
@@ -2782,35 +2785,35 @@ const pt = {
2782
2785
  koQZXg: "xzhl4zu",
2783
2786
  $$css: !0
2784
2787
  }
2785
- }, Dt = D(null);
2786
- function on() {
2787
- const t = N(Dt);
2788
+ }, Ct = C(null);
2789
+ function cn() {
2790
+ const t = N(Ct);
2788
2791
  if (!t) throw new Error("Tooltip compound components must be used within Tooltip.Root");
2789
2792
  return t;
2790
2793
  }
2791
- function cn({
2794
+ function xn({
2792
2795
  children: t,
2793
2796
  content: e,
2794
2797
  placement: n = "top",
2795
2798
  delay: r = 300
2796
2799
  }) {
2797
- const [s, i] = G(!1), c = K(), x = y(null), d = W(() => {
2798
- x.current && clearTimeout(x.current), x.current = setTimeout(() => i(!0), r);
2799
- }, [r]), l = W(() => {
2800
- x.current && clearTimeout(x.current), x.current = null, i(!1);
2800
+ const [s, x] = H(!1), i = U(), c = w(null), d = q(() => {
2801
+ c.current && clearTimeout(c.current), c.current = setTimeout(() => x(!0), r);
2802
+ }, [r]), a = q(() => {
2803
+ c.current && clearTimeout(c.current), c.current = null, x(!1);
2801
2804
  }, []);
2802
- return /* @__PURE__ */ o(Dt.Provider, { value: {
2805
+ return /* @__PURE__ */ o(Ct.Provider, { value: {
2803
2806
  open: s,
2804
2807
  show: d,
2805
- hide: l,
2806
- tooltipId: c,
2808
+ hide: a,
2809
+ tooltipId: i,
2807
2810
  placement: n
2808
- }, children: /* @__PURE__ */ A("div", { ...k(a.div, pt.root), children: [
2811
+ }, children: /* @__PURE__ */ A("div", { ...l(k.div, ht.root), children: [
2809
2812
  t,
2810
- s && /* @__PURE__ */ o("div", { id: c, role: "tooltip", ...k(a.div, pt.popup, pt[n]), children: e })
2813
+ s && /* @__PURE__ */ o("div", { id: i, role: "tooltip", ...l(k.div, ht.popup, ht[n]), children: e })
2811
2814
  ] }) });
2812
2815
  }
2813
- function xn({
2816
+ function ln({
2814
2817
  children: t
2815
2818
  }) {
2816
2819
  const {
@@ -2818,12 +2821,12 @@ function xn({
2818
2821
  show: n,
2819
2822
  hide: r,
2820
2823
  tooltipId: s
2821
- } = on();
2822
- return /* @__PURE__ */ o("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": e ? s : void 0, ...k(a.div), children: t });
2824
+ } = cn();
2825
+ return /* @__PURE__ */ o("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": e ? s : void 0, ...l(k.div), children: t });
2823
2826
  }
2824
- const _n = {
2825
- Root: cn,
2826
- Trigger: xn
2827
+ const Zn = {
2828
+ Root: xn,
2829
+ Trigger: ln
2827
2830
  }, O = {
2828
2831
  base: {
2829
2832
  k1xSpc: "x78zum5",
@@ -2878,7 +2881,7 @@ const _n = {
2878
2881
  kOIVth: "x281kem",
2879
2882
  $$css: !0
2880
2883
  }
2881
- }, ln = {
2884
+ }, kn = {
2882
2885
  xs: O.gapXs,
2883
2886
  sm: O.gapSm,
2884
2887
  ms: O.gapMs,
@@ -2887,20 +2890,20 @@ const _n = {
2887
2890
  xl: O.gapXl,
2888
2891
  xxl: O.gapXxl,
2889
2892
  xxxl: O.gapXxxl
2890
- }, kn = {
2893
+ }, an = {
2891
2894
  start: O.alignStart,
2892
2895
  center: O.alignCenter,
2893
2896
  end: O.alignEnd,
2894
2897
  stretch: O.alignStretch
2895
2898
  };
2896
- function Zn({
2899
+ function tr({
2897
2900
  gap: t = "md",
2898
2901
  align: e = "stretch",
2899
2902
  children: n
2900
2903
  }) {
2901
- return /* @__PURE__ */ o("div", { ...k(a.div, O.base, ln[t], kn[e]), children: n });
2904
+ return /* @__PURE__ */ o("div", { ...l(k.div, O.base, kn[t], an[e]), children: n });
2902
2905
  }
2903
- const q = {
2906
+ const I = {
2904
2907
  base: {
2905
2908
  k1xSpc: "x78zum5",
2906
2909
  kXwgrk: "x1q0g3np",
@@ -2975,34 +2978,34 @@ const q = {
2975
2978
  kOIVth: "x281kem",
2976
2979
  $$css: !0
2977
2980
  }
2978
- }, an = {
2979
- xs: q.gapXs,
2980
- sm: q.gapSm,
2981
- ms: q.gapMs,
2982
- md: q.gapMd,
2983
- lg: q.gapLg,
2984
- xl: q.gapXl,
2985
- xxl: q.gapXxl,
2986
- xxxl: q.gapXxxl
2987
2981
  }, un = {
2988
- start: q.alignStart,
2989
- center: q.alignCenter,
2990
- end: q.alignEnd,
2991
- baseline: q.alignBaseline,
2992
- stretch: q.alignStretch
2982
+ xs: I.gapXs,
2983
+ sm: I.gapSm,
2984
+ ms: I.gapMs,
2985
+ md: I.gapMd,
2986
+ lg: I.gapLg,
2987
+ xl: I.gapXl,
2988
+ xxl: I.gapXxl,
2989
+ xxxl: I.gapXxxl
2993
2990
  }, dn = {
2994
- start: q.justifyStart,
2995
- center: q.justifyCenter,
2996
- end: q.justifyEnd,
2997
- between: q.justifyBetween
2991
+ start: I.alignStart,
2992
+ center: I.alignCenter,
2993
+ end: I.alignEnd,
2994
+ baseline: I.alignBaseline,
2995
+ stretch: I.alignStretch
2996
+ }, gn = {
2997
+ start: I.justifyStart,
2998
+ center: I.justifyCenter,
2999
+ end: I.justifyEnd,
3000
+ between: I.justifyBetween
2998
3001
  };
2999
- function tr({
3002
+ function er({
3000
3003
  gap: t = "sm",
3001
3004
  align: e = "center",
3002
3005
  justify: n = "start",
3003
3006
  children: r
3004
3007
  }) {
3005
- return /* @__PURE__ */ o("div", { ...k(a.div, q.base, an[t], un[e], dn[n]), children: r });
3008
+ return /* @__PURE__ */ o("div", { ...l(k.div, I.base, un[t], dn[e], gn[n]), children: r });
3006
3009
  }
3007
3010
  const T = {
3008
3011
  base: {
@@ -3071,7 +3074,7 @@ const T = {
3071
3074
  kOIVth: "x281kem",
3072
3075
  $$css: !0
3073
3076
  }
3074
- }, gn = {
3077
+ }, pn = {
3075
3078
  xs: T.gapXs,
3076
3079
  sm: T.gapSm,
3077
3080
  ms: T.gapMs,
@@ -3080,25 +3083,25 @@ const T = {
3080
3083
  xl: T.gapXl,
3081
3084
  xxl: T.gapXxl,
3082
3085
  xxxl: T.gapXxxl
3083
- }, pn = {
3086
+ }, hn = {
3084
3087
  start: T.alignStart,
3085
3088
  center: T.alignCenter,
3086
3089
  end: T.alignEnd
3087
- }, hn = {
3090
+ }, fn = {
3088
3091
  start: T.justifyStart,
3089
3092
  center: T.justifyCenter,
3090
3093
  end: T.justifyEnd,
3091
3094
  between: T.justifyBetween
3092
3095
  };
3093
- function er({
3096
+ function nr({
3094
3097
  gap: t = "sm",
3095
3098
  align: e = "start",
3096
3099
  justify: n = "start",
3097
3100
  children: r
3098
3101
  }) {
3099
- return /* @__PURE__ */ o("div", { ...k(a.div, T.base, gn[t], pn[e], hn[n]), children: r });
3102
+ return /* @__PURE__ */ o("div", { ...l(k.div, T.base, pn[t], hn[e], fn[n]), children: r });
3100
3103
  }
3101
- const fn = {
3104
+ const $n = {
3102
3105
  kumcoG: "xqketvx",
3103
3106
  $$css: !0
3104
3107
  }, E = {
@@ -3130,7 +3133,7 @@ const fn = {
3130
3133
  kumcoG: "xu4o1vd",
3131
3134
  $$css: !0
3132
3135
  },
3133
- autoFit: (t) => [fn, {
3136
+ autoFit: (t) => [$n, {
3134
3137
  "--x-gridTemplateColumns": `repeat(auto-fit, minmax(${t}, 1fr))` != null ? `repeat(auto-fit, minmax(${t}, 1fr))` : void 0
3135
3138
  }],
3136
3139
  gapXs: {
@@ -3165,7 +3168,7 @@ const fn = {
3165
3168
  kOIVth: "x281kem",
3166
3169
  $$css: !0
3167
3170
  }
3168
- }, $n = {
3171
+ }, vn = {
3169
3172
  xs: E.gapXs,
3170
3173
  sm: E.gapSm,
3171
3174
  ms: E.gapMs,
@@ -3174,7 +3177,7 @@ const fn = {
3174
3177
  xl: E.gapXl,
3175
3178
  xxl: E.gapXxl,
3176
3179
  xxxl: E.gapXxxl
3177
- }, vn = {
3180
+ }, mn = {
3178
3181
  1: E.col1,
3179
3182
  2: E.col2,
3180
3183
  3: E.col3,
@@ -3182,34 +3185,34 @@ const fn = {
3182
3185
  5: E.col5,
3183
3186
  6: E.col6
3184
3187
  };
3185
- function nr({
3188
+ function rr({
3186
3189
  gap: t = "md",
3187
3190
  columns: e,
3188
3191
  minColumnWidth: n,
3189
3192
  children: r
3190
3193
  }) {
3191
- const s = n ? E.autoFit(n) : e ? vn[e] : void 0;
3192
- return /* @__PURE__ */ o("div", { ...k(a.div, E.base, $n[t], s), children: r });
3194
+ const s = n ? E.autoFit(n) : e ? mn[e] : void 0;
3195
+ return /* @__PURE__ */ o("div", { ...l(k.div, E.base, vn[t], s), children: r });
3193
3196
  }
3194
- function rr(t = {}) {
3197
+ function sr(t = {}) {
3195
3198
  const {
3196
3199
  compactBelow: e = 480,
3197
3200
  spaciousAbove: n = 768
3198
- } = t, r = y(null), [s, i] = G("default");
3199
- return H(() => {
3200
- const c = r.current;
3201
- if (!c) return;
3202
- let x = null;
3203
- const d = new ResizeObserver((l) => {
3204
- x !== null && cancelAnimationFrame(x), x = requestAnimationFrame(() => {
3205
- const u = l[0];
3206
- if (!u) return;
3207
- const g = u.contentBoxSize?.[0]?.inlineSize ?? u.contentRect.width;
3208
- g < e ? i("compact") : g >= n ? i("spacious") : i("default");
3201
+ } = t, r = w(null), [s, x] = H("default");
3202
+ return W(() => {
3203
+ const i = r.current;
3204
+ if (!i) return;
3205
+ let c = null;
3206
+ const d = new ResizeObserver((a) => {
3207
+ c !== null && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
3208
+ const g = a[0];
3209
+ if (!g) return;
3210
+ const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
3211
+ u < e ? x("compact") : u >= n ? x("spacious") : x("default");
3209
3212
  });
3210
3213
  });
3211
- return d.observe(c), () => {
3212
- d.disconnect(), x !== null && cancelAnimationFrame(x);
3214
+ return d.observe(i), () => {
3215
+ d.disconnect(), c !== null && cancelAnimationFrame(c);
3213
3216
  };
3214
3217
  }, [e, n]), {
3215
3218
  ref: r,
@@ -3217,45 +3220,45 @@ function rr(t = {}) {
3217
3220
  };
3218
3221
  }
3219
3222
  export {
3220
- yn as Alert,
3221
- wn as Badge,
3222
- Sn as Button,
3223
- jn as Card,
3224
- Mn as Checkbox,
3225
- er as Cluster,
3226
- zn as EmptyState,
3227
- qn as Field,
3228
- nr as Grid,
3229
- In as Heading,
3230
- tr as Inline,
3231
- Wn as Input,
3232
- Hn as InputGroup,
3233
- Gn as LinkButton,
3234
- Tn as Menu,
3235
- En as ScrollArea,
3236
- Ln as Select,
3237
- An as SideNav,
3238
- Vn as Spinner,
3239
- Zn as Stack,
3240
- On as StatusIcon,
3241
- Nn as Table,
3242
- Bn as Tabs,
3243
- Un as Text,
3244
- Dn as Textarea,
3245
- Kn as ThemeProvider,
3246
- _n as Tooltip,
3247
- Cn as colors,
3248
- tn as highContrastShadows,
3249
- Ze as highContrastTheme,
3250
- Yn as layoutSpacing,
3251
- _e as lightShadows,
3252
- Ue as lightTheme,
3253
- Xn as radii,
3254
- Qn as shadows,
3255
- Rn as spacing,
3256
- Fn as typePresets,
3257
- Pn as typeScale,
3258
- Jn as typography,
3259
- rr as useContainerQuery
3223
+ wn as Alert,
3224
+ Sn as Badge,
3225
+ jn as Button,
3226
+ Mn as Card,
3227
+ zn as Checkbox,
3228
+ nr as Cluster,
3229
+ In as EmptyState,
3230
+ Wn as Field,
3231
+ rr as Grid,
3232
+ qn as Heading,
3233
+ er as Inline,
3234
+ Hn as Input,
3235
+ Gn as InputGroup,
3236
+ Tn as LinkButton,
3237
+ En as Menu,
3238
+ Ln as ScrollArea,
3239
+ An as Select,
3240
+ Vn as SideNav,
3241
+ On as Spinner,
3242
+ tr as Stack,
3243
+ Nn as StatusIcon,
3244
+ Bn as Table,
3245
+ Dn as Tabs,
3246
+ _n as Text,
3247
+ Cn as Textarea,
3248
+ Un as ThemeProvider,
3249
+ Zn as Tooltip,
3250
+ Rn as colors,
3251
+ en as highContrastShadows,
3252
+ tn as highContrastTheme,
3253
+ Jn as layoutSpacing,
3254
+ Ze as lightShadows,
3255
+ _e as lightTheme,
3256
+ Yn as radii,
3257
+ Kn as shadows,
3258
+ Xn as spacing,
3259
+ Qn as typePresets,
3260
+ Fn as typeScale,
3261
+ Pn as typography,
3262
+ sr as useContainerQuery
3260
3263
  };
3261
3264
  //# sourceMappingURL=index.js.map