@duro-app/ui 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as l, jsxs as H, Fragment as Y } from "react/jsx-runtime";
2
- import { useState as T, useCallback as I, useContext as G, createContext as O, useId as X, useMemo as ve, useRef as y, useEffect as W, Children as me } from "react";
1
+ import { jsx as s, jsxs as G, Fragment as X } from "react/jsx-runtime";
2
+ import { useState as T, useCallback as I, useContext as H, createContext as C, useId as Y, useMemo as ie, useRef as y, useEffect as W, Children as $e } from "react";
3
3
  /**
4
4
  * @license react-strict-dom
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -7,81 +7,81 @@ import { useState as T, useCallback as I, useContext as G, createContext as O, 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 le = {};
11
- Object.defineProperty(le, "__esModule", {
10
+ var ke = {};
11
+ Object.defineProperty(ke, "__esModule", {
12
12
  value: !0
13
13
  });
14
- var $e = le.styleq = void 0, Ae = /* @__PURE__ */ new WeakMap(), He = "$$css";
15
- function be(e) {
14
+ var be = ke.styleq = void 0, He = /* @__PURE__ */ new WeakMap(), Ee = "$$css";
15
+ function we(e) {
16
16
  var t, r, n;
17
17
  return e != null && (t = e.disableCache === !0, r = e.disableMix === !0, n = e.transform), function() {
18
- for (var s = [], x = "", c = null, d = "", i = t ? null : Ae, u = new Array(arguments.length), g = 0; g < arguments.length; g++)
19
- u[g] = arguments[g];
20
- for (; u.length > 0; ) {
21
- var v = u.pop();
18
+ for (var c = [], l = "", x = null, d = "", i = t ? null : He, a = new Array(arguments.length), g = 0; g < arguments.length; g++)
19
+ a[g] = arguments[g];
20
+ for (; a.length > 0; ) {
21
+ var v = a.pop();
22
22
  if (!(v == null || v === !1)) {
23
23
  if (Array.isArray(v)) {
24
24
  for (var w = 0; w < v.length; w++)
25
- u.push(v[w]);
25
+ a.push(v[w]);
26
26
  continue;
27
27
  }
28
- var f = n != null ? n(v) : v;
29
- if (f.$$css != null) {
28
+ var p = n != null ? n(v) : v;
29
+ if (p.$$css != null) {
30
30
  var m = "";
31
- if (i != null && i.has(f)) {
32
- var p = i.get(f);
33
- p != null && (m = p[0], d = p[2], s.push.apply(s, p[1]), i = p[3]);
31
+ if (i != null && i.has(p)) {
32
+ var f = i.get(p);
33
+ f != null && (m = f[0], d = f[2], c.push.apply(c, f[1]), i = f[3]);
34
34
  } else {
35
35
  var $ = [];
36
- for (var h in f) {
37
- var b = f[h];
38
- if (h === He) {
39
- var L = f[h];
36
+ for (var h in p) {
37
+ var b = p[h];
38
+ if (h === Ee) {
39
+ var L = p[h];
40
40
  L !== !0 && (d = d ? L + "; " + d : L);
41
41
  continue;
42
42
  }
43
- typeof b == "string" || b === null ? s.includes(h) || (s.push(h), i != null && $.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
43
+ typeof b == "string" || b === null ? c.includes(h) || (c.push(h), i != null && $.push(h), typeof b == "string" && (m += m ? " " + b : b)) : console.error("styleq: ".concat(h, " typeof ").concat(String(b), ' is not "string" or "null".'));
44
44
  }
45
45
  if (i != null) {
46
46
  var q = /* @__PURE__ */ new WeakMap();
47
- i.set(f, [m, $, d, q]), i = q;
47
+ i.set(p, [m, $, d, q]), i = q;
48
48
  }
49
49
  }
50
- m && (x = x ? m + " " + x : m);
50
+ m && (l = l ? m + " " + l : m);
51
51
  } else if (r)
52
- c == null && (c = {}), c = Object.assign({}, f, c);
52
+ x == null && (x = {}), x = Object.assign({}, p, x);
53
53
  else {
54
54
  var j = null;
55
- for (var M in f) {
56
- var z = f[M];
57
- z !== void 0 && (s.includes(M) || (z != null && (c == null && (c = {}), j == null && (j = {}), j[M] = z), s.push(M), i = null));
55
+ for (var M in p) {
56
+ var z = p[M];
57
+ z !== void 0 && (c.includes(M) || (z != null && (x == null && (x = {}), j == null && (j = {}), j[M] = z), c.push(M), i = null));
58
58
  }
59
- j != null && (c = Object.assign(j, c));
59
+ j != null && (x = Object.assign(j, x));
60
60
  }
61
61
  }
62
62
  }
63
- var C = [x, c, d];
64
- return C;
63
+ var N = [l, x, d];
64
+ return N;
65
65
  };
66
66
  }
67
- var Ee = $e = le.styleq = be();
68
- Ee.factory = be;
69
- const Ge = $e.factory({
67
+ var Re = be = ke.styleq = we();
68
+ Re.factory = we;
69
+ const Ce = be.factory({
70
70
  disableMix: !0
71
71
  });
72
72
  function k(...e) {
73
- const [t, r, n] = Ge(e), o = {};
73
+ const [t, r, n] = Ce(e), o = {};
74
74
  if (t != null && t !== "" && (o.className = t), r != null && (o.style = r), n != null && n !== "") {
75
- const s = n.split(";"), x = {};
76
- for (const c of s) {
77
- const d = c.trim(), [i, u] = d.split(":");
78
- u != null && (x[i] = x[i] != null ? `${x[i]},${u}` : u);
75
+ const c = n.split(";"), l = {};
76
+ for (const x of c) {
77
+ const d = x.trim(), [i, a] = d.split(":");
78
+ a != null && (l[i] = l[i] != null ? `${l[i]},${a}` : a);
79
79
  }
80
- o["data-style-src"] = Object.keys(x).map((c) => `${c}:${x[c]}`).join("; ");
80
+ o["data-style-src"] = Object.keys(l).map((x) => `${x}:${l[x]}`).join("; ");
81
81
  }
82
82
  return o;
83
83
  }
84
- const V = {
84
+ const R = {
85
85
  block: {
86
86
  kogj98: "x1ghz6dp",
87
87
  kmVPX3: "x1717udv",
@@ -116,17 +116,17 @@ const V = {
116
116
  kHenm0: "x288g5",
117
117
  $$css: !0
118
118
  }
119
- }, Ve = V.inline, Ce = [V.inlineblock, V.button], Ne = V.block, Re = [V.inlineblock, V.input], Oe = V.inline, Le = V.block, De = V.block, Be = V.inline, Pe = [V.inlineblock, V.textarea], a = {
120
- a: Ve,
121
- button: Ce,
122
- div: Ne,
123
- input: Re,
124
- label: Oe,
125
- nav: Le,
126
- p: De,
127
- span: Be,
128
- textarea: Pe
129
- }, ge = {
119
+ }, Ne = R.inline, Ve = [R.inlineblock, R.button], Oe = R.block, Le = [R.inlineblock, R.input], De = R.inline, Be = R.block, Pe = R.block, Ye = R.inline, Xe = [R.inlineblock, R.textarea], u = {
120
+ a: Ne,
121
+ button: Ve,
122
+ div: Oe,
123
+ input: Le,
124
+ label: De,
125
+ nav: Be,
126
+ p: Pe,
127
+ span: Ye,
128
+ textarea: Xe
129
+ }, fe = {
130
130
  base: {
131
131
  kmVPX3: "x16ixvul",
132
132
  kaIpWk: "x1gbengz",
@@ -161,13 +161,13 @@ const V = {
161
161
  $$css: !0
162
162
  }
163
163
  };
164
- function Kt({
164
+ function Ft({
165
165
  variant: e = "info",
166
166
  children: t
167
167
  }) {
168
- return /* @__PURE__ */ l("div", { role: "alert", ...k(a.div, ge.base, ge[e]), children: t });
168
+ return /* @__PURE__ */ s("div", { role: "alert", ...k(u.div, fe.base, fe[e]), children: t });
169
169
  }
170
- const Z = {
170
+ const ee = {
171
171
  base: {
172
172
  k1xSpc: "x3nfvp2",
173
173
  kGNEyG: "x6s0dn4",
@@ -220,16 +220,16 @@ const Z = {
220
220
  kMwMTN: "xmooqzt",
221
221
  $$css: !0
222
222
  }
223
- }, Xe = {
224
- sm: Z.sizeSm,
225
- md: Z.sizeMd
223
+ }, Ke = {
224
+ sm: ee.sizeSm,
225
+ md: ee.sizeMd
226
226
  };
227
- function Ut({
227
+ function Zt({
228
228
  variant: e = "default",
229
229
  size: t = "md",
230
230
  children: r
231
231
  }) {
232
- return /* @__PURE__ */ l("span", { ...k(a.span, Z.base, Xe[t], Z[e]), children: r });
232
+ return /* @__PURE__ */ s("span", { ...k(u.span, ee.base, Ke[t], ee[e]), children: r });
233
233
  }
234
234
  const U = {
235
235
  base: {
@@ -306,20 +306,20 @@ const U = {
306
306
  kkrTdU: "x1h6gzvc",
307
307
  $$css: !0
308
308
  }
309
- }, Ye = {
309
+ }, Ue = {
310
310
  default: U.sizeDefault,
311
311
  small: U.sizeSmall
312
312
  };
313
- function Jt({
313
+ function er({
314
314
  variant: e = "primary",
315
315
  size: t = "default",
316
316
  fullWidth: r = !1,
317
317
  disabled: n = !1,
318
318
  type: o = "button",
319
- onClick: s,
320
- children: x
319
+ onClick: c,
320
+ children: l
321
321
  }) {
322
- return /* @__PURE__ */ l("button", { type: o, disabled: n, onClick: s, ...k(a.button, U.base, Ye[t], U[e], r && U.fullWidth, n && U.disabled), children: x });
322
+ return /* @__PURE__ */ s("button", { type: o, disabled: n, onClick: c, ...k(u.button, U.base, Ue[t], U[e], r && U.fullWidth, n && U.disabled), children: l });
323
323
  }
324
324
  const J = {
325
325
  base: {
@@ -378,20 +378,20 @@ const J = {
378
378
  k1K539: "x2mrtcw",
379
379
  $$css: !0
380
380
  }
381
- }, Ke = {
381
+ }, Je = {
382
382
  default: J.sizeDefault,
383
383
  compact: J.sizeCompact,
384
384
  full: J.sizeFull
385
385
  };
386
- function Qt({
386
+ function tr({
387
387
  variant: e = "outlined",
388
388
  size: t = "default",
389
389
  header: r,
390
390
  onClick: n,
391
391
  children: o
392
392
  }) {
393
- return /* @__PURE__ */ H("div", { onClick: n, ...k(a.div, J.base, J[e], Ke[t]), children: [
394
- r && /* @__PURE__ */ l("div", { ...k(a.div, J.header), children: r }),
393
+ return /* @__PURE__ */ G("div", { onClick: n, ...k(u.div, J.base, J[e], Je[t]), children: [
394
+ r && /* @__PURE__ */ s("div", { ...k(u.div, J.header), children: r }),
395
395
  o
396
396
  ] });
397
397
  }
@@ -445,27 +445,27 @@ const K = {
445
445
  $$css: !0
446
446
  }
447
447
  };
448
- function _t({
448
+ function rr({
449
449
  name: e,
450
450
  value: t,
451
451
  checked: r,
452
452
  defaultChecked: n = !1,
453
453
  disabled: o = !1,
454
- onChange: s,
455
- children: x
454
+ onChange: c,
455
+ children: l
456
456
  }) {
457
- const c = r !== void 0, [d, i] = T(n), u = c ? r : d, g = I((v) => {
458
- c || i(v.target.checked), s?.(v);
459
- }, [c, s]);
460
- return /* @__PURE__ */ H("label", { ...k(a.label, K.root, o && K.rootDisabled), children: [
461
- /* @__PURE__ */ l("input", { type: "checkbox", name: e, value: t, checked: c ? r : void 0, defaultChecked: c ? void 0 : n, disabled: o, onChange: g, ...k(a.input, K.input), dir: "auto" }),
462
- /* @__PURE__ */ l("span", { ...k(a.span, K.box, u ? K.boxChecked : K.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ l("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
463
- opacity: u ? 1 : 0
464
- }, children: /* @__PURE__ */ l("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
465
- x && /* @__PURE__ */ l("span", { ...k(a.span), children: x })
457
+ const x = r !== void 0, [d, i] = T(n), a = x ? r : d, g = I((v) => {
458
+ x || i(v.target.checked), c?.(v);
459
+ }, [x, c]);
460
+ return /* @__PURE__ */ G("label", { ...k(u.label, K.root, o && K.rootDisabled), children: [
461
+ /* @__PURE__ */ s("input", { type: "checkbox", name: e, value: t, checked: x ? r : void 0, defaultChecked: x ? void 0 : n, disabled: o, onChange: g, ...k(u.input, K.input), dir: "auto" }),
462
+ /* @__PURE__ */ s("span", { ...k(u.span, K.box, a ? K.boxChecked : K.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ s("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
463
+ opacity: a ? 1 : 0
464
+ }, children: /* @__PURE__ */ s("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
465
+ l && /* @__PURE__ */ s("span", { ...k(u.span), children: l })
466
466
  ] });
467
467
  }
468
- const se = {
468
+ const ce = {
469
469
  root: {
470
470
  k1xSpc: "x78zum5",
471
471
  kXwgrk: "xdt5ytf",
@@ -488,22 +488,22 @@ const se = {
488
488
  $$css: !0
489
489
  }
490
490
  };
491
- function Ft({
491
+ function nr({
492
492
  message: e,
493
493
  icon: t,
494
494
  action: r
495
495
  }) {
496
- return /* @__PURE__ */ H("div", { ...k(a.div, se.root), children: [
496
+ return /* @__PURE__ */ G("div", { ...k(u.div, ce.root), children: [
497
497
  t,
498
- /* @__PURE__ */ l("p", { ...k(a.p, se.message), children: e }),
499
- r && /* @__PURE__ */ l("div", { ...k(a.div, se.action), children: r })
498
+ /* @__PURE__ */ s("p", { ...k(u.p, ce.message), children: e }),
499
+ r && /* @__PURE__ */ s("div", { ...k(u.div, ce.action), children: r })
500
500
  ] });
501
501
  }
502
- const we = O(null);
503
- function F() {
504
- return G(we);
502
+ const ye = C(null);
503
+ function Z() {
504
+ return H(ye);
505
505
  }
506
- const ee = {
506
+ const te = {
507
507
  root: {
508
508
  k1xSpc: "x78zum5",
509
509
  kXwgrk: "xdt5ytf",
@@ -527,42 +527,46 @@ const ee = {
527
527
  $$css: !0
528
528
  }
529
529
  };
530
- function Ue({
530
+ function Qe({
531
531
  invalid: e = !1,
532
532
  children: t
533
533
  }) {
534
- const r = X(), n = ve(() => ({
534
+ const r = Y(), n = ie(() => ({
535
535
  controlId: `${r}-control`,
536
536
  descriptionId: `${r}-description`,
537
537
  errorId: `${r}-error`,
538
538
  invalid: e
539
539
  }), [r, e]);
540
- return /* @__PURE__ */ l(we.Provider, { value: n, children: /* @__PURE__ */ l("div", { ...k(a.div, ee.root), children: t }) });
540
+ return /* @__PURE__ */ s(ye.Provider, { value: n, children: /* @__PURE__ */ s("div", { ...k(u.div, te.root), children: t }) });
541
541
  }
542
- function Je({
542
+ function _e({
543
543
  children: e
544
544
  }) {
545
- const t = F();
546
- return /* @__PURE__ */ l("label", { htmlFor: t?.controlId, ...k(a.label, ee.label), children: e });
545
+ const t = Z();
546
+ return /* @__PURE__ */ s("label", { htmlFor: t?.controlId, ...k(u.label, te.label), children: e });
547
547
  }
548
- function Qe({
548
+ function Fe({
549
549
  children: e
550
550
  }) {
551
- const t = F();
552
- return /* @__PURE__ */ l("span", { id: t?.descriptionId, ...k(a.span, ee.description), children: e });
551
+ const t = Z();
552
+ return /* @__PURE__ */ s("span", { id: t?.descriptionId, ...k(u.span, te.description), children: e });
553
553
  }
554
- function _e({
554
+ function Ze({
555
555
  children: e
556
556
  }) {
557
- const t = F();
558
- return !t?.invalid && !e ? null : /* @__PURE__ */ l("span", { id: t?.errorId, role: "alert", ...k(a.span, ee.error), children: e });
559
- }
560
- const Zt = {
561
- Root: Ue,
562
- Label: Je,
563
- Description: Qe,
564
- Error: _e
565
- }, he = {
557
+ const t = Z();
558
+ return !t?.invalid && !e ? null : /* @__PURE__ */ s("span", { id: t?.errorId, role: "alert", ...k(u.span, te.error), children: e });
559
+ }
560
+ const or = {
561
+ Root: Qe,
562
+ Label: _e,
563
+ Description: Fe,
564
+ Error: Ze
565
+ }, Me = C(null);
566
+ function et() {
567
+ return H(Me);
568
+ }
569
+ const xe = {
566
570
  base: {
567
571
  kzqmXN: "xh8yej3",
568
572
  kLKAdn: "x1y6gaq4",
@@ -593,28 +597,103 @@ const Zt = {
593
597
  error: {
594
598
  kVAM5u: "x1bhh8t3 x1dqxl7v",
595
599
  $$css: !0
600
+ },
601
+ inGroup: {
602
+ kMzoRj: "xc342km",
603
+ kaIpWk: "x2u8bby",
604
+ kMeerF: "x1k57tk5",
605
+ $$css: !0
596
606
  }
597
607
  };
598
- function er({
608
+ function sr({
599
609
  variant: e = "default",
600
610
  type: t = "text",
601
611
  name: r,
602
612
  placeholder: n,
603
613
  required: o,
604
- minLength: s,
605
- pattern: x,
606
- autoComplete: c,
614
+ minLength: c,
615
+ pattern: l,
616
+ autoComplete: x,
607
617
  value: d,
608
618
  defaultValue: i,
609
- disabled: u,
619
+ disabled: a,
610
620
  onChange: g
611
621
  }) {
612
- const v = F(), w = x !== void 0 ? {
613
- pattern: x
622
+ const v = Z(), w = et(), p = l !== void 0 ? {
623
+ pattern: l
614
624
  } : void 0;
615
- return /* @__PURE__ */ l("input", { id: v?.controlId, type: t, name: r, placeholder: n, required: o, minLength: s, autoComplete: c, value: d, defaultValue: i, disabled: u, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || e === "error" || void 0, onChange: g, ...k(a.input, he.base, he[e]), ...w, dir: "auto" });
625
+ return /* @__PURE__ */ s("input", { id: v?.controlId, type: t, name: r, placeholder: n, required: o, minLength: c, autoComplete: x, value: d, defaultValue: i, disabled: a, "aria-describedby": v ? `${v.descriptionId} ${v.invalid ? v.errorId : ""}`.trim() : void 0, "aria-invalid": v?.invalid || e === "error" || void 0, onChange: g, ...k(u.input, xe.base, xe[e], w?.inGroup && xe.inGroup), ...p, dir: "auto" });
616
626
  }
617
627
  const _ = {
628
+ wrapper: {
629
+ k1xSpc: "x78zum5",
630
+ kGNEyG: "x1qjc9v5",
631
+ kMzoRj: "xmkeg23",
632
+ ksu8eU: "x1y0btm7",
633
+ kVAM5u: "xa6hqta x1eag9q1",
634
+ kaIpWk: "x1gbengz",
635
+ kVQacm: "xb3r6kr",
636
+ k1ekBW: "xshfolx",
637
+ kIyJzY: "xx6bhzk",
638
+ kAMwcw: "xwji4o3",
639
+ $$css: !0
640
+ },
641
+ addon: {
642
+ k1xSpc: "x3nfvp2",
643
+ kGNEyG: "x6s0dn4",
644
+ kjj79g: "xl56j7k",
645
+ kmuXW: "x2lah0s",
646
+ kE3dHu: "x107tsa6",
647
+ kpe85a: "x1degllg",
648
+ kWkggS: "x17a2q59",
649
+ kMv6JI: "x2nsvjj",
650
+ kGuDYH: "xh6m7d2",
651
+ kMwMTN: "x19e7f62",
652
+ kfSwDN: "x87ps6o",
653
+ kMzoRj: "xc342km",
654
+ $$css: !0
655
+ },
656
+ addonStart: {
657
+ kWqL5O: "xs1s249",
658
+ kSWEuD: "x32b0ac",
659
+ k26BEO: "x17pkic5",
660
+ $$css: !0
661
+ },
662
+ addonEnd: {
663
+ kZ1KPB: "xe0pwq",
664
+ k4WBpm: "x19ypqd9",
665
+ kaZRDh: "x9m7tm4",
666
+ $$css: !0
667
+ },
668
+ addonClickable: {
669
+ kkrTdU: "x1ypdohk",
670
+ kWkggS: "x17a2q59 xs77ekg xkuhks1",
671
+ k1ekBW: "x15406qy",
672
+ kIyJzY: "xx6bhzk",
673
+ kAMwcw: "xwji4o3",
674
+ $$css: !0
675
+ }
676
+ };
677
+ function tt({
678
+ children: e
679
+ }) {
680
+ const t = ie(() => ({
681
+ inGroup: !0
682
+ }), []);
683
+ return /* @__PURE__ */ s(Me.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...k(u.div, _.wrapper), children: e }) });
684
+ }
685
+ function rt({
686
+ position: e = "end",
687
+ onClick: t,
688
+ children: r
689
+ }) {
690
+ const n = e === "start" ? _.addonStart : _.addonEnd, o = [_.addon, n, t && _.addonClickable];
691
+ return t ? /* @__PURE__ */ s("button", { type: "button", onClick: t, ...k(u.button, o), children: r }) : /* @__PURE__ */ s("span", { ...k(u.span, o), children: r });
692
+ }
693
+ const cr = {
694
+ Root: tt,
695
+ Addon: rt
696
+ }, F = {
618
697
  base: {
619
698
  k1xSpc: "x3nfvp2",
620
699
  kGNEyG: "x6s0dn4",
@@ -664,20 +743,20 @@ const _ = {
664
743
  kzqmXN: "xh8yej3",
665
744
  $$css: !0
666
745
  }
667
- }, Fe = {
668
- default: _.sizeDefault,
669
- small: _.sizeSmall
746
+ }, nt = {
747
+ default: F.sizeDefault,
748
+ small: F.sizeSmall
670
749
  };
671
- function tr({
750
+ function xr({
672
751
  href: e,
673
752
  variant: t = "primary",
674
753
  size: r = "default",
675
754
  fullWidth: n = !1,
676
755
  target: o,
677
- rel: s,
678
- children: x
756
+ rel: c,
757
+ children: l
679
758
  }) {
680
- return /* @__PURE__ */ l("a", { href: e, target: o, rel: s, ...k(a.a, _.base, Fe[r], _[t], n && _.fullWidth), children: x });
759
+ return /* @__PURE__ */ s("a", { href: e, target: o, rel: c, ...k(u.a, F.base, nt[r], F[t], n && F.fullWidth), children: l });
681
760
  }
682
761
  const D = {
683
762
  root: {
@@ -763,103 +842,103 @@ const D = {
763
842
  kMwMTN: "xg6mlj0 x1c35pte",
764
843
  $$css: !0
765
844
  }
766
- }, ye = O(null);
767
- function te() {
768
- const e = G(ye);
845
+ }, je = C(null);
846
+ function re() {
847
+ const e = H(je);
769
848
  if (!e) throw new Error("Menu compound components must be used within Menu.Root");
770
849
  return e;
771
850
  }
772
- function Ze() {
773
- const [e, t] = T(!1), [r, n] = T(null), o = X(), s = y(null), x = y(null), c = y(/* @__PURE__ */ new Map()), d = y([]), i = y(!1), u = I(() => {
774
- t(!1), n(null), i.current = !1, x.current?.focus();
851
+ function ot() {
852
+ const [e, t] = T(!1), [r, n] = T(null), o = Y(), c = y(null), l = y(null), x = y(/* @__PURE__ */ new Map()), d = y([]), i = y(!1), a = I(() => {
853
+ t(!1), n(null), i.current = !1, l.current?.focus();
775
854
  }, []), g = I(() => {
776
- t((f) => (f ? (n(null), i.current = !1) : i.current = !0, !f));
855
+ t((p) => (p ? (n(null), i.current = !1) : i.current = !0, !p));
777
856
  }, []);
778
857
  W(() => {
779
858
  if (e && i.current) {
780
859
  i.current = !1;
781
- const f = d.current;
782
- f.length > 0 && n(f[0]);
860
+ const p = d.current;
861
+ p.length > 0 && n(p[0]);
783
862
  }
784
863
  }, [e]);
785
- const v = I((f, m) => {
786
- c.current.set(f, m);
787
- const p = c.current, $ = [...p.keys()];
864
+ const v = I((p, m) => {
865
+ x.current.set(p, m);
866
+ const f = x.current, $ = [...f.keys()];
788
867
  return $.sort((h, b) => {
789
- const L = p.get(h), q = p.get(b);
868
+ const L = f.get(h), q = f.get(b);
790
869
  return !L || !q ? 0 : L.compareDocumentPosition(q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
791
870
  }), d.current = $, () => {
792
- c.current.delete(f), d.current = d.current.filter((h) => h !== f);
871
+ x.current.delete(p), d.current = d.current.filter((h) => h !== p);
793
872
  };
794
873
  }, []);
795
874
  return W(() => {
796
- const f = s.current;
797
- if (!f || !e) return;
798
- function m(p) {
875
+ const p = c.current;
876
+ if (!p || !e) return;
877
+ function m(f) {
799
878
  const $ = d.current;
800
879
  if ($.length !== 0)
801
- switch (p.key) {
880
+ switch (f.key) {
802
881
  case "ArrowDown": {
803
- p.preventDefault(), n((h) => {
882
+ f.preventDefault(), n((h) => {
804
883
  const b = h ? $.indexOf(h) : -1;
805
884
  return $[(b + 1) % $.length];
806
885
  });
807
886
  break;
808
887
  }
809
888
  case "ArrowUp": {
810
- p.preventDefault(), n((h) => {
889
+ f.preventDefault(), n((h) => {
811
890
  const b = h ? $.indexOf(h) : 0;
812
891
  return $[(b - 1 + $.length) % $.length];
813
892
  });
814
893
  break;
815
894
  }
816
895
  case "Home": {
817
- p.preventDefault(), n($[0]);
896
+ f.preventDefault(), n($[0]);
818
897
  break;
819
898
  }
820
899
  case "End": {
821
- p.preventDefault(), n($[$.length - 1]);
900
+ f.preventDefault(), n($[$.length - 1]);
822
901
  break;
823
902
  }
824
903
  case "Enter":
825
904
  case " ": {
826
- p.preventDefault();
827
- const h = c.current;
905
+ f.preventDefault();
906
+ const h = x.current;
828
907
  n((b) => (b && h.get(b)?.click(), b));
829
908
  break;
830
909
  }
831
910
  case "Escape":
832
911
  case "Tab": {
833
- u();
912
+ a();
834
913
  break;
835
914
  }
836
915
  }
837
916
  }
838
- return f.addEventListener("keydown", m), () => f.removeEventListener("keydown", m);
839
- }, [e, u]), {
917
+ return p.addEventListener("keydown", m), () => p.removeEventListener("keydown", m);
918
+ }, [e, a]), {
840
919
  ctx: {
841
920
  open: e,
842
921
  toggle: g,
843
- close: u,
922
+ close: a,
844
923
  menuId: o,
845
924
  highlightedId: r,
846
925
  setHighlightedId: n,
847
926
  registerItem: v,
848
- triggerRef: x
927
+ triggerRef: l
849
928
  },
850
- rootRef: s
929
+ rootRef: c
851
930
  };
852
931
  }
853
- function et({
932
+ function st({
854
933
  children: e
855
934
  }) {
856
935
  const {
857
936
  ctx: t,
858
937
  rootRef: r
859
- } = Ze();
860
- return /* @__PURE__ */ l(ye.Provider, { value: t, children: /* @__PURE__ */ l("div", { ref: r, ...k(a.div, D.root), children: e }) });
938
+ } = ot();
939
+ return /* @__PURE__ */ s(je.Provider, { value: t, children: /* @__PURE__ */ s("div", { ref: r, ...k(u.div, D.root), children: e }) });
861
940
  }
862
- function tt({
941
+ function ct({
863
942
  children: e
864
943
  }) {
865
944
  const {
@@ -867,12 +946,12 @@ function tt({
867
946
  toggle: r,
868
947
  menuId: n,
869
948
  triggerRef: o
870
- } = te(), s = y(null);
949
+ } = re(), c = y(null);
871
950
  return W(() => {
872
- o.current = s.current;
873
- }), /* @__PURE__ */ l("button", { ref: s, type: "button", onClick: r, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? n : void 0, ...k(a.button, D.trigger), children: e });
951
+ o.current = c.current;
952
+ }), /* @__PURE__ */ s("button", { ref: c, type: "button", onClick: r, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? n : void 0, ...k(u.button, D.trigger), children: e });
874
953
  }
875
- function rt({
954
+ function xt({
876
955
  children: e,
877
956
  align: t = "start"
878
957
  }) {
@@ -880,14 +959,14 @@ function rt({
880
959
  open: r,
881
960
  close: n,
882
961
  menuId: o,
883
- highlightedId: s
884
- } = te();
885
- return r ? /* @__PURE__ */ H(Y, { children: [
886
- /* @__PURE__ */ l("div", { ...k(a.div, D.backdrop), onClick: n }),
887
- /* @__PURE__ */ l("div", { id: o, role: "menu", "aria-activedescendant": s ?? void 0, ...k(a.div, D.popup, t === "end" && D.popupEnd), children: e })
962
+ highlightedId: c
963
+ } = re();
964
+ return r ? /* @__PURE__ */ G(X, { children: [
965
+ /* @__PURE__ */ s("div", { ...k(u.div, D.backdrop), onClick: n }),
966
+ /* @__PURE__ */ s("div", { id: o, role: "menu", "aria-activedescendant": c ?? void 0, ...k(u.div, D.popup, t === "end" && D.popupEnd), children: e })
888
967
  ] }) : null;
889
968
  }
890
- function nt({
969
+ function lt({
891
970
  onClick: e,
892
971
  children: t
893
972
  }) {
@@ -895,17 +974,17 @@ function nt({
895
974
  close: r,
896
975
  highlightedId: n,
897
976
  setHighlightedId: o,
898
- registerItem: s
899
- } = te(), x = X(), c = y(null), d = n === x;
977
+ registerItem: c
978
+ } = re(), l = Y(), x = y(null), d = n === l;
900
979
  return W(() => {
901
- const u = c.current;
902
- if (u)
903
- return s(x, u);
904
- }, [x, s]), /* @__PURE__ */ l("div", { ref: c, id: x, role: "menuitem", onClick: () => {
980
+ const a = x.current;
981
+ if (a)
982
+ return c(l, a);
983
+ }, [l, c]), /* @__PURE__ */ s("div", { ref: x, id: l, role: "menuitem", onClick: () => {
905
984
  e?.(), r();
906
- }, onPointerEnter: () => o(x), ...k(a.div, D.item, d && D.itemHighlighted), children: t });
985
+ }, onPointerEnter: () => o(l), ...k(u.div, D.item, d && D.itemHighlighted), children: t });
907
986
  }
908
- function ot({
987
+ function it({
909
988
  href: e,
910
989
  children: t
911
990
  }) {
@@ -913,20 +992,20 @@ function ot({
913
992
  close: r,
914
993
  highlightedId: n,
915
994
  setHighlightedId: o,
916
- registerItem: s
917
- } = te(), x = X(), c = y(null), d = n === x;
995
+ registerItem: c
996
+ } = re(), l = Y(), x = y(null), d = n === l;
918
997
  return W(() => {
919
- const i = c.current;
998
+ const i = x.current;
920
999
  if (i)
921
- return s(x, i);
922
- }, [x, s]), /* @__PURE__ */ l("a", { ref: c, id: x, href: e, onClick: r, role: "menuitem", onPointerEnter: () => o(x), ...k(a.a, D.item, D.linkItem, d && D.itemHighlighted), children: t });
923
- }
924
- const rr = {
925
- Root: et,
926
- Trigger: tt,
927
- Popup: rt,
928
- Item: nt,
929
- LinkItem: ot
1000
+ return c(l, i);
1001
+ }, [l, c]), /* @__PURE__ */ s("a", { ref: x, id: l, href: e, onClick: r, role: "menuitem", onPointerEnter: () => o(l), ...k(u.a, D.item, D.linkItem, d && D.itemHighlighted), children: t });
1002
+ }
1003
+ const lr = {
1004
+ Root: st,
1005
+ Trigger: ct,
1006
+ Popup: xt,
1007
+ Item: lt,
1008
+ LinkItem: it
930
1009
  }, E = {
931
1010
  root: {
932
1011
  kVAEAm: "x1n2onr6",
@@ -1018,24 +1097,24 @@ const rr = {
1018
1097
  "--x-width": ((r) => typeof r == "number" ? r + "px" : r ?? void 0)(e),
1019
1098
  "--x-transform": t ?? void 0
1020
1099
  }]
1021
- }, Me = O(null);
1022
- function re() {
1023
- const e = G(Me);
1100
+ }, ze = C(null);
1101
+ function ne() {
1102
+ const e = H(ze);
1024
1103
  if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
1025
1104
  return e;
1026
1105
  }
1027
- function st() {
1028
- const e = y(null), t = y(null), [r, n] = T(0), [o, s] = T(0), [x, c] = T(0), [d, i] = T(0), [u, g] = T(0), [v, w] = T(0), [f, m] = T(!1), p = y(null), $ = I(() => {
1106
+ function kt() {
1107
+ const e = y(null), t = y(null), [r, n] = T(0), [o, c] = T(0), [l, x] = T(0), [d, i] = T(0), [a, g] = T(0), [v, w] = T(0), [p, m] = T(!1), f = y(null), $ = I(() => {
1029
1108
  const h = e.current;
1030
- h && (n(h.scrollTop), s(h.scrollLeft), c(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), m(!0), p.current && clearTimeout(p.current), p.current = setTimeout(() => m(!1), 1e3));
1109
+ h && (n(h.scrollTop), c(h.scrollLeft), x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1031
1110
  }, []);
1032
1111
  return W(() => {
1033
1112
  const h = e.current;
1034
1113
  if (!h) return;
1035
1114
  const b = new ResizeObserver(() => {
1036
- c(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth);
1115
+ x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth);
1037
1116
  });
1038
- return b.observe(h), c(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), () => b.disconnect();
1117
+ return b.observe(h), x(h.scrollHeight), i(h.scrollWidth), g(h.clientHeight), w(h.clientWidth), () => b.disconnect();
1039
1118
  }, []), W(() => {
1040
1119
  const h = e.current;
1041
1120
  if (h)
@@ -1047,37 +1126,37 @@ function st() {
1047
1126
  contentRef: t,
1048
1127
  scrollTop: r,
1049
1128
  scrollLeft: o,
1050
- scrollHeight: x,
1129
+ scrollHeight: l,
1051
1130
  scrollWidth: d,
1052
- clientHeight: u,
1131
+ clientHeight: a,
1053
1132
  clientWidth: v,
1054
- scrolling: f
1133
+ scrolling: p
1055
1134
  };
1056
1135
  }
1057
- function ct({
1136
+ function ut({
1058
1137
  children: e
1059
1138
  }) {
1060
- const t = st();
1061
- return /* @__PURE__ */ l(Me.Provider, { value: t, children: /* @__PURE__ */ l("div", { ...k(a.div, E.root), children: e }) });
1139
+ const t = kt();
1140
+ return /* @__PURE__ */ s(ze.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...k(u.div, E.root), children: e }) });
1062
1141
  }
1063
- function lt({
1142
+ function at({
1064
1143
  children: e,
1065
1144
  maxHeight: t
1066
1145
  }) {
1067
1146
  const {
1068
1147
  viewportRef: r
1069
- } = re();
1070
- return /* @__PURE__ */ l("div", { ref: r, ...k(a.div, E.viewport, t != null && E.viewportMaxHeight(t)), children: e });
1148
+ } = ne();
1149
+ return /* @__PURE__ */ s("div", { ref: r, ...k(u.div, E.viewport, t != null && E.viewportMaxHeight(t)), children: e });
1071
1150
  }
1072
- function xt({
1151
+ function dt({
1073
1152
  children: e
1074
1153
  }) {
1075
1154
  const {
1076
1155
  contentRef: t
1077
- } = re();
1078
- return /* @__PURE__ */ l("div", { ref: t, ...k(a.div, E.content), children: e });
1156
+ } = ne();
1157
+ return /* @__PURE__ */ s("div", { ref: t, ...k(u.div, E.content), children: e });
1079
1158
  }
1080
- function it({
1159
+ function gt({
1081
1160
  orientation: e = "vertical",
1082
1161
  children: t
1083
1162
  }) {
@@ -1085,12 +1164,12 @@ function it({
1085
1164
  scrolling: r,
1086
1165
  scrollHeight: n,
1087
1166
  scrollWidth: o,
1088
- clientHeight: s,
1089
- clientWidth: x
1090
- } = re();
1091
- return (e === "vertical" ? n > s : o > x) ? /* @__PURE__ */ l("div", { ...k(a.div, E.scrollbar, e === "vertical" ? E.scrollbarVertical : E.scrollbarHorizontal, r ? E.scrollbarVisible : E.scrollbarHidden), children: t }) : null;
1167
+ clientHeight: c,
1168
+ clientWidth: l
1169
+ } = ne();
1170
+ return (e === "vertical" ? n > c : o > l) ? /* @__PURE__ */ s("div", { ...k(u.div, E.scrollbar, e === "vertical" ? E.scrollbarVertical : E.scrollbarHorizontal, r ? E.scrollbarVisible : E.scrollbarHidden), children: t }) : null;
1092
1171
  }
1093
- function ut({
1172
+ function ht({
1094
1173
  orientation: e = "vertical"
1095
1174
  }) {
1096
1175
  const {
@@ -1098,29 +1177,29 @@ function ut({
1098
1177
  scrollTop: r,
1099
1178
  scrollLeft: n,
1100
1179
  scrollHeight: o,
1101
- scrollWidth: s,
1102
- clientHeight: x,
1103
- clientWidth: c
1104
- } = re(), d = y(!1), i = y(0), u = y(0), g = e === "vertical", v = Math.max(g ? x / o * 100 : c / s * 100, 10), w = g ? o - x : s - c, f = g ? x : c, m = v / 100 * f, p = g ? r : n, $ = w > 0 ? p / w * (f - m) : 0, h = g ? E.thumbVertical(`${v}%`, `translateY(${$}px)`) : E.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = I((j) => {
1105
- j.preventDefault(), d.current = !0, i.current = g ? j.clientY : j.clientX, u.current = g ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, j.target.setPointerCapture(j.pointerId);
1180
+ scrollWidth: c,
1181
+ clientHeight: l,
1182
+ clientWidth: x
1183
+ } = ne(), d = y(!1), i = y(0), a = y(0), g = e === "vertical", v = Math.max(g ? l / o * 100 : x / c * 100, 10), w = g ? o - l : c - x, p = g ? l : x, m = v / 100 * p, f = g ? r : n, $ = w > 0 ? f / w * (p - m) : 0, h = g ? E.thumbVertical(`${v}%`, `translateY(${$}px)`) : E.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = I((j) => {
1184
+ j.preventDefault(), d.current = !0, i.current = g ? j.clientY : j.clientX, a.current = g ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, j.target.setPointerCapture(j.pointerId);
1106
1185
  }, [g, t]), L = I((j) => {
1107
1186
  if (!d.current) return;
1108
1187
  const M = t.current;
1109
1188
  if (!M) return;
1110
- const z = (g ? j.clientY : j.clientX) - i.current, C = w / (f - m), S = z * C;
1111
- g ? M.scrollTop = u.current + S : M.scrollLeft = u.current + S;
1112
- }, [g, w, f, m, t]), q = I(() => {
1189
+ const z = (g ? j.clientY : j.clientX) - i.current, N = w / (p - m), S = z * N;
1190
+ g ? M.scrollTop = a.current + S : M.scrollLeft = a.current + S;
1191
+ }, [g, w, p, m, t]), q = I(() => {
1113
1192
  d.current = !1;
1114
1193
  }, []);
1115
- return /* @__PURE__ */ l("div", { onPointerDown: b, onPointerMove: L, onPointerUp: q, ...k(a.div, E.thumb, h) });
1116
- }
1117
- const nr = {
1118
- Root: ct,
1119
- Viewport: lt,
1120
- Content: xt,
1121
- Scrollbar: it,
1122
- Thumb: ut
1123
- }, R = {
1194
+ return /* @__PURE__ */ s("div", { onPointerDown: b, onPointerMove: L, onPointerUp: q, ...k(u.div, E.thumb, h) });
1195
+ }
1196
+ const ir = {
1197
+ Root: ut,
1198
+ Viewport: at,
1199
+ Content: dt,
1200
+ Scrollbar: gt,
1201
+ Thumb: ht
1202
+ }, O = {
1124
1203
  root: {
1125
1204
  kVAEAm: "x1n2onr6",
1126
1205
  k1xSpc: "x3nfvp2",
@@ -1218,40 +1297,40 @@ const nr = {
1218
1297
  k1xSpc: "x1s85apg",
1219
1298
  $$css: !0
1220
1299
  }
1221
- }, je = O(null);
1222
- function ne() {
1223
- const e = G(je);
1300
+ }, qe = C(null);
1301
+ function oe() {
1302
+ const e = H(qe);
1224
1303
  if (!e) throw new Error("Select compound components must be used within Select.Root");
1225
1304
  return e;
1226
1305
  }
1227
- function xe(e, t, r) {
1228
- const [n, o] = T(t), s = e !== void 0 ? e : n, x = I((c) => {
1229
- e === void 0 && o(c), r?.(c);
1306
+ function ue(e, t, r) {
1307
+ const [n, o] = T(t), c = e !== void 0 ? e : n, l = I((x) => {
1308
+ e === void 0 && o(x), r?.(x);
1230
1309
  }, [e, r]);
1231
- return [s, x];
1310
+ return [c, l];
1232
1311
  }
1233
- function kt({
1312
+ function pt({
1234
1313
  defaultValue: e,
1235
1314
  value: t,
1236
1315
  onValueChange: r
1237
1316
  }) {
1238
- const [n, o] = xe(t, e ?? null, r), [s, x] = T(!1), [c, d] = T({}), [i, u] = T(null), g = X(), v = y(null), w = y(null), f = y(/* @__PURE__ */ new Map()), m = y([]), p = I(() => {
1239
- x(!1), u(null), w.current?.focus();
1317
+ const [n, o] = ue(t, e ?? null, r), [c, l] = T(!1), [x, d] = T({}), [i, a] = T(null), g = Y(), v = y(null), w = y(null), p = y(/* @__PURE__ */ new Map()), m = y([]), f = I(() => {
1318
+ l(!1), a(null), w.current?.focus();
1240
1319
  }, []), $ = I(() => {
1241
- x((q) => {
1320
+ l((q) => {
1242
1321
  if (q)
1243
- u(null);
1322
+ a(null);
1244
1323
  else {
1245
- const j = f.current, M = m.current;
1324
+ const j = p.current, M = m.current;
1246
1325
  let z = null;
1247
- for (const C of M) {
1248
- const S = j.get(C);
1326
+ for (const N of M) {
1327
+ const S = j.get(N);
1249
1328
  if (S && S.value === n) {
1250
- z = C;
1329
+ z = N;
1251
1330
  break;
1252
1331
  }
1253
1332
  }
1254
- u(z ?? (M.length > 0 ? M[0] : null));
1333
+ a(z ?? (M.length > 0 ? M[0] : null));
1255
1334
  }
1256
1335
  return !q;
1257
1336
  });
@@ -1261,53 +1340,53 @@ function kt({
1261
1340
  [q]: j
1262
1341
  });
1263
1342
  }, []), b = I((q, j, M) => {
1264
- f.current.set(q, {
1343
+ p.current.set(q, {
1265
1344
  value: j,
1266
1345
  element: M
1267
1346
  });
1268
- const z = f.current, C = [...z.keys()];
1269
- return C.sort((S, B) => {
1270
- const ae = z.get(S)?.element, de = z.get(B)?.element;
1271
- return !ae || !de ? 0 : ae.compareDocumentPosition(de) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1272
- }), m.current = C, () => {
1273
- f.current.delete(q), m.current = m.current.filter((S) => S !== q);
1347
+ const z = p.current, N = [...z.keys()];
1348
+ return N.sort((S, B) => {
1349
+ const he = z.get(S)?.element, pe = z.get(B)?.element;
1350
+ return !he || !pe ? 0 : he.compareDocumentPosition(pe) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1351
+ }), m.current = N, () => {
1352
+ p.current.delete(q), m.current = m.current.filter((S) => S !== q);
1274
1353
  };
1275
1354
  }, []);
1276
1355
  return W(() => {
1277
1356
  const q = v.current;
1278
- if (!q || !s) return;
1357
+ if (!q || !c) return;
1279
1358
  function j(M) {
1280
- const z = m.current, C = f.current;
1359
+ const z = m.current, N = p.current;
1281
1360
  if (z.length !== 0)
1282
1361
  switch (M.key) {
1283
1362
  case "ArrowDown": {
1284
- M.preventDefault(), u((S) => {
1363
+ M.preventDefault(), a((S) => {
1285
1364
  const B = S ? z.indexOf(S) : -1;
1286
1365
  return z[(B + 1) % z.length];
1287
1366
  });
1288
1367
  break;
1289
1368
  }
1290
1369
  case "ArrowUp": {
1291
- M.preventDefault(), u((S) => {
1370
+ M.preventDefault(), a((S) => {
1292
1371
  const B = S ? z.indexOf(S) : 0;
1293
1372
  return z[(B - 1 + z.length) % z.length];
1294
1373
  });
1295
1374
  break;
1296
1375
  }
1297
1376
  case "Home": {
1298
- M.preventDefault(), u(z[0]);
1377
+ M.preventDefault(), a(z[0]);
1299
1378
  break;
1300
1379
  }
1301
1380
  case "End": {
1302
- M.preventDefault(), u(z[z.length - 1]);
1381
+ M.preventDefault(), a(z[z.length - 1]);
1303
1382
  break;
1304
1383
  }
1305
1384
  case "Enter":
1306
1385
  case " ": {
1307
- M.preventDefault(), u((S) => {
1386
+ M.preventDefault(), a((S) => {
1308
1387
  if (S) {
1309
- const B = C.get(S);
1310
- B && (o(B.value), p());
1388
+ const B = N.get(S);
1389
+ B && (o(B.value), f());
1311
1390
  }
1312
1391
  return S;
1313
1392
  });
@@ -1315,31 +1394,31 @@ function kt({
1315
1394
  }
1316
1395
  case "Escape":
1317
1396
  case "Tab": {
1318
- p();
1397
+ f();
1319
1398
  break;
1320
1399
  }
1321
1400
  }
1322
1401
  }
1323
1402
  return q.addEventListener("keydown", j), () => q.removeEventListener("keydown", j);
1324
- }, [s, p, o]), {
1325
- ctx: ve(() => ({
1326
- open: s,
1403
+ }, [c, f, o]), {
1404
+ ctx: ie(() => ({
1405
+ open: c,
1327
1406
  toggle: $,
1328
- close: p,
1407
+ close: f,
1329
1408
  value: n,
1330
1409
  setValue: o,
1331
- labels: c,
1410
+ labels: x,
1332
1411
  registerLabel: h,
1333
1412
  listboxId: g,
1334
1413
  highlightedId: i,
1335
- setHighlightedId: u,
1414
+ setHighlightedId: a,
1336
1415
  registerItem: b,
1337
1416
  triggerRef: w
1338
- }), [s, $, p, n, o, c, h, g, i, u, b]),
1417
+ }), [c, $, f, n, o, x, h, g, i, a, b]),
1339
1418
  rootRef: v
1340
1419
  };
1341
1420
  }
1342
- function at({
1421
+ function ft({
1343
1422
  name: e,
1344
1423
  defaultValue: t,
1345
1424
  value: r,
@@ -1347,19 +1426,19 @@ function at({
1347
1426
  children: o
1348
1427
  }) {
1349
1428
  const {
1350
- ctx: s,
1351
- rootRef: x
1352
- } = kt({
1429
+ ctx: c,
1430
+ rootRef: l
1431
+ } = pt({
1353
1432
  defaultValue: t,
1354
1433
  value: r,
1355
1434
  onValueChange: n
1356
1435
  });
1357
- return /* @__PURE__ */ l(je.Provider, { value: s, children: /* @__PURE__ */ H("div", { ref: x, ...k(a.div, R.root), children: [
1358
- e && /* @__PURE__ */ l("input", { type: "hidden", name: e, value: s.value ?? "", dir: "auto", ...k(a.input) }),
1436
+ return /* @__PURE__ */ s(qe.Provider, { value: c, children: /* @__PURE__ */ G("div", { ref: l, ...k(u.div, O.root), children: [
1437
+ e && /* @__PURE__ */ s("input", { type: "hidden", name: e, value: c.value ?? "", dir: "auto", ...k(u.input) }),
1359
1438
  o
1360
1439
  ] }) });
1361
1440
  }
1362
- function dt({
1441
+ function vt({
1363
1442
  children: e
1364
1443
  }) {
1365
1444
  const {
@@ -1367,40 +1446,40 @@ function dt({
1367
1446
  toggle: r,
1368
1447
  listboxId: n,
1369
1448
  highlightedId: o,
1370
- triggerRef: s
1371
- } = ne(), x = y(null);
1449
+ triggerRef: c
1450
+ } = oe(), l = y(null);
1372
1451
  return W(() => {
1373
- s.current = x.current;
1374
- }), /* @__PURE__ */ l("button", { ref: x, type: "button", role: "combobox", onClick: r, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? n : void 0, "aria-activedescendant": o ?? void 0, ...k(a.button, R.trigger), children: e });
1452
+ c.current = l.current;
1453
+ }), /* @__PURE__ */ s("button", { ref: l, type: "button", role: "combobox", onClick: r, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? n : void 0, "aria-activedescendant": o ?? void 0, ...k(u.button, O.trigger), children: e });
1375
1454
  }
1376
- function gt({
1455
+ function mt({
1377
1456
  placeholder: e
1378
1457
  }) {
1379
1458
  const {
1380
1459
  value: t,
1381
1460
  labels: r
1382
- } = ne(), n = t ? r[t] ?? t : null;
1383
- return /* @__PURE__ */ l("span", { ...k(a.span, n ? R.value : R.placeholder), children: n ?? e });
1461
+ } = oe(), n = t ? r[t] ?? t : null;
1462
+ return /* @__PURE__ */ s("span", { ...k(u.span, n ? O.value : O.placeholder), children: n ?? e });
1384
1463
  }
1385
- function ht({
1464
+ function $t({
1386
1465
  children: e
1387
1466
  }) {
1388
- return /* @__PURE__ */ l("span", { ...k(a.span, R.icon), children: e ?? /* @__PURE__ */ l("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__ */ l("path", { d: "M6 9l6 6 6-6" }) }) });
1467
+ return /* @__PURE__ */ s("span", { ...k(u.span, O.icon), children: e ?? /* @__PURE__ */ s("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__ */ s("path", { d: "M6 9l6 6 6-6" }) }) });
1389
1468
  }
1390
- function ft({
1469
+ function bt({
1391
1470
  children: e
1392
1471
  }) {
1393
1472
  const {
1394
1473
  open: t,
1395
1474
  close: r,
1396
1475
  listboxId: n
1397
- } = ne();
1398
- return /* @__PURE__ */ H(Y, { children: [
1399
- t && /* @__PURE__ */ l("div", { ...k(a.div, R.backdrop), onClick: r }),
1400
- /* @__PURE__ */ l("div", { id: n, role: "listbox", "aria-hidden": !t, ...k(a.div, R.popup, !t && R.hidden), children: e })
1476
+ } = oe();
1477
+ return /* @__PURE__ */ G(X, { children: [
1478
+ t && /* @__PURE__ */ s("div", { ...k(u.div, O.backdrop), onClick: r }),
1479
+ /* @__PURE__ */ s("div", { id: n, role: "listbox", "aria-hidden": !t, ...k(u.div, O.popup, !t && O.hidden), children: e })
1401
1480
  ] });
1402
1481
  }
1403
- function pt({
1482
+ function wt({
1404
1483
  value: e,
1405
1484
  children: t
1406
1485
  }) {
@@ -1408,37 +1487,37 @@ function pt({
1408
1487
  value: r,
1409
1488
  setValue: n,
1410
1489
  close: o,
1411
- registerLabel: s,
1412
- highlightedId: x,
1413
- setHighlightedId: c,
1490
+ registerLabel: c,
1491
+ highlightedId: l,
1492
+ setHighlightedId: x,
1414
1493
  registerItem: d
1415
- } = ne(), i = X(), u = y(null), g = r === e, v = x === i;
1494
+ } = oe(), i = Y(), a = y(null), g = r === e, v = l === i;
1416
1495
  return W(() => {
1417
- const f = u.current;
1418
- if (!f) return;
1419
- const m = f.textContent;
1420
- m && s(e, m);
1421
- }, [e, s]), W(() => {
1422
- const f = u.current;
1423
- if (f)
1424
- return d(i, e, f);
1425
- }, [i, e, d]), /* @__PURE__ */ l("div", { ref: u, id: i, role: "option", "aria-selected": g, onClick: () => {
1496
+ const p = a.current;
1497
+ if (!p) return;
1498
+ const m = p.textContent;
1499
+ m && c(e, m);
1500
+ }, [e, c]), W(() => {
1501
+ const p = a.current;
1502
+ if (p)
1503
+ return d(i, e, p);
1504
+ }, [i, e, d]), /* @__PURE__ */ s("div", { ref: a, id: i, role: "option", "aria-selected": g, onClick: () => {
1426
1505
  n(e), o();
1427
- }, onPointerEnter: () => c(i), ...k(a.div, R.item, g && R.itemSelected, v && R.itemHighlighted), children: t });
1506
+ }, onPointerEnter: () => x(i), ...k(u.div, O.item, g && O.itemSelected, v && O.itemHighlighted), children: t });
1428
1507
  }
1429
- function vt({
1508
+ function yt({
1430
1509
  children: e
1431
1510
  }) {
1432
- return /* @__PURE__ */ l("span", { ...k(a.span), children: e });
1511
+ return /* @__PURE__ */ s("span", { ...k(u.span), children: e });
1433
1512
  }
1434
- const or = {
1435
- Root: at,
1436
- Trigger: dt,
1437
- Value: gt,
1438
- Icon: ht,
1439
- Popup: ft,
1440
- Item: pt,
1441
- ItemText: vt
1513
+ const kr = {
1514
+ Root: ft,
1515
+ Trigger: vt,
1516
+ Value: mt,
1517
+ Icon: $t,
1518
+ Popup: bt,
1519
+ Item: wt,
1520
+ ItemText: yt
1442
1521
  }, P = {
1443
1522
  root: {
1444
1523
  k1xSpc: "x78zum5",
@@ -1518,68 +1597,68 @@ const or = {
1518
1597
  k63SB2: "x9n8r49",
1519
1598
  $$css: !0
1520
1599
  }
1521
- }, ze = O(null);
1522
- function qe() {
1523
- const e = G(ze);
1600
+ }, Se = C(null);
1601
+ function Ie() {
1602
+ const e = H(Se);
1524
1603
  if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
1525
1604
  return e;
1526
1605
  }
1527
- function mt({
1606
+ function Mt({
1528
1607
  children: e,
1529
1608
  value: t,
1530
1609
  defaultValue: r,
1531
1610
  onValueChange: n
1532
1611
  }) {
1533
- const [o, s] = xe(t, r ?? null, n ? (g) => {
1612
+ const [o, c] = ue(t, r ?? null, n ? (g) => {
1534
1613
  g !== null && n(g);
1535
- } : void 0), [x, c] = T(/* @__PURE__ */ new Set()), d = y([]), i = I((g) => {
1536
- c((v) => {
1614
+ } : void 0), [l, x] = T(/* @__PURE__ */ new Set()), d = y([]), i = I((g) => {
1615
+ x((v) => {
1537
1616
  const w = new Set(v);
1538
1617
  return w.has(g) ? w.delete(g) : w.add(g), w;
1539
1618
  });
1540
- }, []), u = I((g) => (d.current.includes(g) || d.current.push(g), () => {
1619
+ }, []), a = I((g) => (d.current.includes(g) || d.current.push(g), () => {
1541
1620
  d.current = d.current.filter((v) => v !== g);
1542
1621
  }), []);
1543
1622
  return W(() => {
1544
- o && c((g) => g);
1545
- }, [o]), /* @__PURE__ */ l(ze.Provider, { value: {
1623
+ o && x((g) => g);
1624
+ }, [o]), /* @__PURE__ */ s(Se.Provider, { value: {
1546
1625
  activeValue: o,
1547
- onSelect: s,
1548
- expandedGroups: x,
1626
+ onSelect: c,
1627
+ expandedGroups: l,
1549
1628
  toggleGroup: i,
1550
- registerItem: u,
1629
+ registerItem: a,
1551
1630
  orderRef: d
1552
- }, children: /* @__PURE__ */ l("nav", { role: "navigation", ...k(a.nav, P.root), children: e }) });
1631
+ }, children: /* @__PURE__ */ s("nav", { role: "navigation", ...k(u.nav, P.root), children: e }) });
1553
1632
  }
1554
- function $t({
1633
+ function jt({
1555
1634
  children: e,
1556
1635
  label: t,
1557
1636
  groupKey: r,
1558
1637
  defaultExpanded: n
1559
1638
  }) {
1560
1639
  const o = r ?? t, {
1561
- expandedGroups: s,
1562
- toggleGroup: x,
1563
- activeValue: c
1564
- } = qe(), d = s.has(o), i = y(null);
1640
+ expandedGroups: c,
1641
+ toggleGroup: l,
1642
+ activeValue: x
1643
+ } = Ie(), d = c.has(o), i = y(null);
1565
1644
  W(() => {
1566
- if (!c || s.has(o)) return;
1645
+ if (!x || c.has(o)) return;
1567
1646
  const g = i.current;
1568
1647
  if (!g) return;
1569
- g.querySelector(`[data-nav-value="${c}"]`) && x(o);
1570
- }, [c, o, s, x]), W(() => {
1571
- n && !s.has(o) && x(o);
1648
+ g.querySelector(`[data-nav-value="${x}"]`) && l(o);
1649
+ }, [x, o, c, l]), W(() => {
1650
+ n && !c.has(o) && l(o);
1572
1651
  }, []);
1573
- const u = !c || !i.current ? !1 : !!i.current.querySelector(`[data-nav-value="${c}"]`);
1574
- return /* @__PURE__ */ H("div", { ref: i, ...k(a.div, P.group), children: [
1575
- /* @__PURE__ */ H("button", { type: "button", onClick: () => x(o), ...k(a.button, P.groupTrigger, u && P.groupTriggerActive), "aria-expanded": d, children: [
1576
- /* @__PURE__ */ l("span", { ...k(a.span, P.chevron, d && P.chevronOpen), children: /* @__PURE__ */ l("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ l("path", { d: "M9 18l6-6-6-6" }) }) }),
1652
+ const a = !x || !i.current ? !1 : !!i.current.querySelector(`[data-nav-value="${x}"]`);
1653
+ return /* @__PURE__ */ G("div", { ref: i, ...k(u.div, P.group), children: [
1654
+ /* @__PURE__ */ G("button", { type: "button", onClick: () => l(o), ...k(u.button, P.groupTrigger, a && P.groupTriggerActive), "aria-expanded": d, children: [
1655
+ /* @__PURE__ */ s("span", { ...k(u.span, P.chevron, d && P.chevronOpen), children: /* @__PURE__ */ s("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ s("path", { d: "M9 18l6-6-6-6" }) }) }),
1577
1656
  t
1578
1657
  ] }),
1579
1658
  d && e
1580
1659
  ] });
1581
1660
  }
1582
- function bt({
1661
+ function zt({
1583
1662
  value: e,
1584
1663
  children: t
1585
1664
  }) {
@@ -1587,13 +1666,13 @@ function bt({
1587
1666
  activeValue: r,
1588
1667
  onSelect: n,
1589
1668
  registerItem: o
1590
- } = qe(), s = r === e;
1591
- return W(() => o(e), [e, o]), /* @__PURE__ */ l("button", { type: "button", "data-nav-value": e, onClick: () => n(e), ...k(a.button, P.item, s && P.itemActive), "aria-current": s ? "page" : void 0, children: t });
1669
+ } = Ie(), c = r === e;
1670
+ return W(() => o(e), [e, o]), /* @__PURE__ */ s("button", { type: "button", "data-nav-value": e, onClick: () => n(e), ...k(u.button, P.item, c && P.itemActive), "aria-current": c ? "page" : void 0, children: t });
1592
1671
  }
1593
- const sr = {
1594
- Root: mt,
1595
- Group: $t,
1596
- Item: bt
1672
+ const ur = {
1673
+ Root: Mt,
1674
+ Group: jt,
1675
+ Item: zt
1597
1676
  }, Q = {
1598
1677
  root: {
1599
1678
  k1xSpc: "x3nfvp2",
@@ -1638,21 +1717,21 @@ const sr = {
1638
1717
  kMcinP: "xzpqnlu",
1639
1718
  $$css: !0
1640
1719
  }
1641
- }, wt = {
1720
+ }, qt = {
1642
1721
  sm: Q.sm,
1643
1722
  md: Q.md,
1644
1723
  lg: Q.lg
1645
1724
  };
1646
- function cr({
1725
+ function ar({
1647
1726
  size: e = "md",
1648
1727
  label: t = "Loading"
1649
1728
  }) {
1650
- return /* @__PURE__ */ H("div", { role: "status", ...k(a.div, Q.root), children: [
1651
- /* @__PURE__ */ l("div", { ...k(a.div, Q.spinner, wt[e]), "aria-hidden": !0 }),
1652
- /* @__PURE__ */ l("span", { ...k(a.span, Q.srOnly), children: t })
1729
+ return /* @__PURE__ */ G("div", { role: "status", ...k(u.div, Q.root), children: [
1730
+ /* @__PURE__ */ s("div", { ...k(u.div, Q.spinner, qt[e]), "aria-hidden": !0 }),
1731
+ /* @__PURE__ */ s("span", { ...k(u.span, Q.srOnly), children: t })
1653
1732
  ] });
1654
1733
  }
1655
- const fe = {
1734
+ const ve = {
1656
1735
  root: {
1657
1736
  k1xSpc: "x3nfvp2",
1658
1737
  kGNEyG: "x6s0dn4",
@@ -1676,37 +1755,37 @@ const fe = {
1676
1755
  kMwMTN: "x19e7f62",
1677
1756
  $$css: !0
1678
1757
  }
1679
- }, yt = {
1680
- "x-circle": /* @__PURE__ */ H(Y, { children: [
1681
- /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "10" }),
1682
- /* @__PURE__ */ l("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
1683
- /* @__PURE__ */ l("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
1758
+ }, St = {
1759
+ "x-circle": /* @__PURE__ */ G(X, { children: [
1760
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
1761
+ /* @__PURE__ */ s("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
1762
+ /* @__PURE__ */ s("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
1684
1763
  ] }),
1685
- "check-circle": /* @__PURE__ */ H(Y, { children: [
1686
- /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "10" }),
1687
- /* @__PURE__ */ l("polyline", { points: "16 10 11 15 8 12" })
1764
+ "check-circle": /* @__PURE__ */ G(X, { children: [
1765
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
1766
+ /* @__PURE__ */ s("polyline", { points: "16 10 11 15 8 12" })
1688
1767
  ] }),
1689
- "check-done": /* @__PURE__ */ H(Y, { children: [
1690
- /* @__PURE__ */ l("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
1691
- /* @__PURE__ */ l("polyline", { points: "22 4 12 14.01 9 11.01" })
1768
+ "check-done": /* @__PURE__ */ G(X, { children: [
1769
+ /* @__PURE__ */ s("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
1770
+ /* @__PURE__ */ s("polyline", { points: "22 4 12 14.01 9 11.01" })
1692
1771
  ] }),
1693
- clock: /* @__PURE__ */ H(Y, { children: [
1694
- /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "10" }),
1695
- /* @__PURE__ */ l("polyline", { points: "12 6 12 12 16 14" })
1772
+ clock: /* @__PURE__ */ G(X, { children: [
1773
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
1774
+ /* @__PURE__ */ s("polyline", { points: "12 6 12 12 16 14" })
1696
1775
  ] }),
1697
- forbidden: /* @__PURE__ */ H(Y, { children: [
1698
- /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "10" }),
1699
- /* @__PURE__ */ l("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
1776
+ forbidden: /* @__PURE__ */ G(X, { children: [
1777
+ /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
1778
+ /* @__PURE__ */ s("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
1700
1779
  ] })
1701
1780
  };
1702
- function lr({
1781
+ function dr({
1703
1782
  name: e,
1704
1783
  size: t = 48,
1705
1784
  variant: r = "muted"
1706
1785
  }) {
1707
- return /* @__PURE__ */ l("div", { ...k(a.div, fe.root, fe[r]), children: /* @__PURE__ */ l("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: yt[e] }) });
1786
+ return /* @__PURE__ */ s("div", { ...k(u.div, ve.root, ve[r]), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: St[e] }) });
1708
1787
  }
1709
- const Mt = {
1788
+ const It = {
1710
1789
  kumcoG: "xqketvx",
1711
1790
  $$css: !0
1712
1791
  }, A = {
@@ -1785,91 +1864,91 @@ const Mt = {
1785
1864
  kWqL5O: "xgfja2r",
1786
1865
  $$css: !0
1787
1866
  },
1788
- gridColumns: (e) => [Mt, {
1867
+ gridColumns: (e) => [It, {
1789
1868
  "--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
1790
1869
  }]
1791
- }, Se = O(null);
1792
- function oe() {
1793
- const e = G(Se);
1870
+ }, We = C(null);
1871
+ function se() {
1872
+ const e = H(We);
1794
1873
  if (!e) throw new Error("Table compound components must be used within Table.Root");
1795
1874
  return e;
1796
1875
  }
1797
- const ie = O(!1);
1798
- function jt({
1876
+ const ae = C(!1);
1877
+ function Wt({
1799
1878
  children: e,
1800
1879
  variant: t = "default",
1801
1880
  size: r = "md",
1802
1881
  columns: n
1803
1882
  }) {
1804
- return /* @__PURE__ */ l(Se.Provider, { value: {
1883
+ return /* @__PURE__ */ s(We.Provider, { value: {
1805
1884
  variant: t,
1806
1885
  size: r,
1807
1886
  columns: n,
1808
1887
  isHeader: !1
1809
- }, children: /* @__PURE__ */ l("div", { role: "table", ...k(a.div, A.root), children: e }) });
1888
+ }, children: /* @__PURE__ */ s("div", { role: "table", ...k(u.div, A.root), children: e }) });
1810
1889
  }
1811
- function zt({
1890
+ function Tt({
1812
1891
  children: e
1813
1892
  }) {
1814
- return /* @__PURE__ */ l(ie.Provider, { value: !0, children: /* @__PURE__ */ l("div", { role: "rowgroup", ...k(a.div, A.header), children: e }) });
1893
+ return /* @__PURE__ */ s(ae.Provider, { value: !0, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...k(u.div, A.header), children: e }) });
1815
1894
  }
1816
- function qt({
1895
+ function At({
1817
1896
  children: e
1818
1897
  }) {
1819
1898
  const {
1820
1899
  variant: t
1821
- } = oe(), r = me.toArray(e);
1822
- return /* @__PURE__ */ l(ie.Provider, { value: !1, children: /* @__PURE__ */ l("div", { role: "rowgroup", ...k(a.div), children: r.map((n, o) => t === "striped" ? /* @__PURE__ */ l(Ie.Provider, { value: o, children: n }, o) : n) }) });
1900
+ } = se(), r = $e.toArray(e);
1901
+ return /* @__PURE__ */ s(ae.Provider, { value: !1, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...k(u.div), children: r.map((n, o) => t === "striped" ? /* @__PURE__ */ s(Te.Provider, { value: o, children: n }, o) : n) }) });
1823
1902
  }
1824
- const Ie = O(-1);
1825
- function St({
1903
+ const Te = C(-1);
1904
+ function Gt({
1826
1905
  children: e
1827
1906
  }) {
1828
1907
  const {
1829
1908
  variant: t,
1830
1909
  columns: r
1831
- } = oe(), n = G(ie), o = G(Ie), s = o >= 0 && o % 2 === 1, x = me.toArray(e);
1832
- return /* @__PURE__ */ l("div", { role: "row", ...k(a.div, A.row, A.gridColumns(r), !n && A.bodyRow, !n && t === "striped" && s && A.stripedEven), children: t === "bordered" ? x.map((c, d) => /* @__PURE__ */ l(ue.Provider, { value: {
1910
+ } = se(), n = H(ae), o = H(Te), c = o >= 0 && o % 2 === 1, l = $e.toArray(e);
1911
+ return /* @__PURE__ */ s("div", { role: "row", ...k(u.div, A.row, A.gridColumns(r), !n && A.bodyRow, !n && t === "striped" && c && A.stripedEven), children: t === "bordered" ? l.map((x, d) => /* @__PURE__ */ s(de.Provider, { value: {
1833
1912
  index: d,
1834
- total: x.length
1835
- }, children: c }, d)) : e });
1913
+ total: l.length
1914
+ }, children: x }, d)) : e });
1836
1915
  }
1837
- const ue = O({
1916
+ const de = C({
1838
1917
  index: 0,
1839
1918
  total: 0
1840
1919
  });
1841
- function It({
1920
+ function Ht({
1842
1921
  children: e
1843
1922
  }) {
1844
1923
  const {
1845
1924
  size: t,
1846
1925
  variant: r
1847
- } = oe(), {
1926
+ } = se(), {
1848
1927
  index: n,
1849
1928
  total: o
1850
- } = G(ue), s = r === "bordered" && n === o - 1;
1851
- return /* @__PURE__ */ l("div", { role: "columnheader", ...k(a.div, A.headerCell, t === "sm" ? A.cellSm : A.cellMd, r === "bordered" && A.borderedCell, s && A.borderedCellLast), children: e });
1929
+ } = H(de), c = r === "bordered" && n === o - 1;
1930
+ return /* @__PURE__ */ s("div", { role: "columnheader", ...k(u.div, A.headerCell, t === "sm" ? A.cellSm : A.cellMd, r === "bordered" && A.borderedCell, c && A.borderedCellLast), children: e });
1852
1931
  }
1853
- function Wt({
1932
+ function Et({
1854
1933
  children: e
1855
1934
  }) {
1856
1935
  const {
1857
1936
  size: t,
1858
1937
  variant: r
1859
- } = oe(), {
1938
+ } = se(), {
1860
1939
  index: n,
1861
1940
  total: o
1862
- } = G(ue), s = r === "bordered" && n === o - 1;
1863
- return /* @__PURE__ */ l("div", { role: "cell", ...k(a.div, A.cell, t === "sm" ? A.cellSm : A.cellMd, r === "bordered" && A.borderedCell, s && A.borderedCellLast), children: e });
1864
- }
1865
- const xr = {
1866
- Root: jt,
1867
- Header: zt,
1868
- Body: qt,
1869
- Row: St,
1870
- HeaderCell: It,
1871
- Cell: Wt
1872
- }, N = {
1941
+ } = H(de), c = r === "bordered" && n === o - 1;
1942
+ return /* @__PURE__ */ s("div", { role: "cell", ...k(u.div, A.cell, t === "sm" ? A.cellSm : A.cellMd, r === "bordered" && A.borderedCell, c && A.borderedCellLast), children: e });
1943
+ }
1944
+ const gr = {
1945
+ Root: Wt,
1946
+ Header: Tt,
1947
+ Body: At,
1948
+ Row: Gt,
1949
+ HeaderCell: Ht,
1950
+ Cell: Et
1951
+ }, V = {
1873
1952
  root: {
1874
1953
  k1xSpc: "x78zum5",
1875
1954
  kXwgrk: "xdt5ytf",
@@ -1957,48 +2036,48 @@ const xr = {
1957
2036
  kE3dHu: "x107tsa6",
1958
2037
  $$css: !0
1959
2038
  }
1960
- }, We = O(null);
1961
- function ke() {
1962
- const e = G(We);
2039
+ }, Ae = C(null);
2040
+ function ge() {
2041
+ const e = H(Ae);
1963
2042
  if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
1964
2043
  return e;
1965
2044
  }
1966
- function Tt({
2045
+ function Rt({
1967
2046
  value: e,
1968
2047
  defaultValue: t,
1969
2048
  onValueChange: r,
1970
2049
  orientation: n = "horizontal"
1971
2050
  }) {
1972
- const [o, s] = xe(e, t ?? null, r ? (i) => {
2051
+ const [o, c] = ue(e, t ?? null, r ? (i) => {
1973
2052
  i !== null && r(i);
1974
- } : void 0), x = y(/* @__PURE__ */ new Map()), c = y([]), d = I((i, u) => (x.current.set(i, u), c.current.includes(i) || c.current.push(i), () => {
1975
- x.current.delete(i), c.current = c.current.filter((g) => g !== i);
2053
+ } : void 0), l = y(/* @__PURE__ */ new Map()), x = y([]), d = I((i, a) => (l.current.set(i, a), x.current.includes(i) || x.current.push(i), () => {
2054
+ l.current.delete(i), x.current = x.current.filter((g) => g !== i);
1976
2055
  }), []);
1977
2056
  return {
1978
2057
  activeValue: o,
1979
- onSelect: s,
2058
+ onSelect: c,
1980
2059
  orientation: n,
1981
2060
  registerTab: d,
1982
- tabsRef: x,
1983
- orderRef: c
2061
+ tabsRef: l,
2062
+ orderRef: x
1984
2063
  };
1985
2064
  }
1986
- function At({
2065
+ function Ct({
1987
2066
  children: e,
1988
2067
  value: t,
1989
2068
  defaultValue: r,
1990
2069
  onValueChange: n,
1991
2070
  orientation: o = "horizontal"
1992
2071
  }) {
1993
- const s = Tt({
2072
+ const c = Rt({
1994
2073
  value: t,
1995
2074
  defaultValue: r,
1996
2075
  onValueChange: n,
1997
2076
  orientation: o
1998
2077
  });
1999
- return /* @__PURE__ */ l(We.Provider, { value: s, children: /* @__PURE__ */ l("div", { ...k(a.div, N.root, o === "vertical" && N.rootVertical), children: e }) });
2078
+ return /* @__PURE__ */ s(Ae.Provider, { value: c, children: /* @__PURE__ */ s("div", { ...k(u.div, V.root, o === "vertical" && V.rootVertical), children: e }) });
2000
2079
  }
2001
- function Ht({
2080
+ function Nt({
2002
2081
  children: e
2003
2082
  }) {
2004
2083
  const {
@@ -2006,22 +2085,22 @@ function Ht({
2006
2085
  activeValue: r,
2007
2086
  onSelect: n,
2008
2087
  tabsRef: o,
2009
- orderRef: s
2010
- } = ke(), x = y(null);
2088
+ orderRef: c
2089
+ } = ge(), l = y(null);
2011
2090
  return W(() => {
2012
- const c = x.current;
2013
- if (!c) return;
2091
+ const x = l.current;
2092
+ if (!x) return;
2014
2093
  function d(i) {
2015
- const u = s.current, g = o.current;
2016
- if (u.length === 0) return;
2017
- const v = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp", f = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2094
+ const a = c.current, g = o.current;
2095
+ if (a.length === 0) return;
2096
+ const v = this, w = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2018
2097
  let m = null;
2019
2098
  switch (i.key) {
2020
- case f: {
2099
+ case p: {
2021
2100
  i.preventDefault();
2022
- const p = r ? u.indexOf(r) : -1;
2023
- for (let $ = 1; $ <= u.length; $++) {
2024
- const h = (p + $) % u.length, b = u[h];
2101
+ const f = r ? a.indexOf(r) : -1;
2102
+ for (let $ = 1; $ <= a.length; $++) {
2103
+ const h = (f + $) % a.length, b = a[h];
2025
2104
  if (!g.get(b)) {
2026
2105
  m = b;
2027
2106
  break;
@@ -2031,9 +2110,9 @@ function Ht({
2031
2110
  }
2032
2111
  case w: {
2033
2112
  i.preventDefault();
2034
- const p = r ? u.indexOf(r) : 0;
2035
- for (let $ = 1; $ <= u.length; $++) {
2036
- const h = (p - $ + u.length) % u.length, b = u[h];
2113
+ const f = r ? a.indexOf(r) : 0;
2114
+ for (let $ = 1; $ <= a.length; $++) {
2115
+ const h = (f - $ + a.length) % a.length, b = a[h];
2037
2116
  if (!g.get(b)) {
2038
2117
  m = b;
2039
2118
  break;
@@ -2043,18 +2122,18 @@ function Ht({
2043
2122
  }
2044
2123
  case "Home": {
2045
2124
  i.preventDefault();
2046
- for (const p of u)
2047
- if (!g.get(p)) {
2048
- m = p;
2125
+ for (const f of a)
2126
+ if (!g.get(f)) {
2127
+ m = f;
2049
2128
  break;
2050
2129
  }
2051
2130
  break;
2052
2131
  }
2053
2132
  case "End": {
2054
2133
  i.preventDefault();
2055
- for (let p = u.length - 1; p >= 0; p--)
2056
- if (!g.get(u[p])) {
2057
- m = u[p];
2134
+ for (let f = a.length - 1; f >= 0; f--)
2135
+ if (!g.get(a[f])) {
2136
+ m = a[f];
2058
2137
  break;
2059
2138
  }
2060
2139
  break;
@@ -2062,10 +2141,10 @@ function Ht({
2062
2141
  }
2063
2142
  m && (n(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
2064
2143
  }
2065
- return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
2066
- }, [t, r, n, o, s]), /* @__PURE__ */ l("div", { ref: x, role: "tablist", "aria-orientation": t, ...k(a.div, N.list, t === "vertical" && N.listVertical), children: e });
2144
+ return x.addEventListener("keydown", d), () => x.removeEventListener("keydown", d);
2145
+ }, [t, r, n, o, c]), /* @__PURE__ */ s("div", { ref: l, role: "tablist", "aria-orientation": t, ...k(u.div, V.list, t === "vertical" && V.listVertical), children: e });
2067
2146
  }
2068
- function Et({
2147
+ function Vt({
2069
2148
  value: e,
2070
2149
  disabled: t = !1,
2071
2150
  children: r
@@ -2073,29 +2152,29 @@ function Et({
2073
2152
  const {
2074
2153
  activeValue: n,
2075
2154
  onSelect: o,
2076
- orientation: s,
2077
- registerTab: x
2078
- } = ke(), c = n === e, d = X(), i = `${d}-panel`;
2079
- return W(() => x(e, t), [e, t, x]), /* @__PURE__ */ l("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": i, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
2155
+ orientation: c,
2156
+ registerTab: l
2157
+ } = ge(), x = n === e, d = Y(), i = `${d}-panel`;
2158
+ return W(() => l(e, t), [e, t, l]), /* @__PURE__ */ s("button", { type: "button", role: "tab", id: d, "aria-selected": x, "aria-controls": i, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: x ? 0 : -1, onClick: () => {
2080
2159
  t || o(e);
2081
- }, ...k(a.button, N.tab, s === "vertical" && N.tabVertical, c && (s === "vertical" ? N.tabActiveVertical : N.tabActiveHorizontal), t && N.tabDisabled), children: r });
2160
+ }, ...k(u.button, V.tab, c === "vertical" && V.tabVertical, x && (c === "vertical" ? V.tabActiveVertical : V.tabActiveHorizontal), t && V.tabDisabled), children: r });
2082
2161
  }
2083
- function Gt({
2162
+ function Ot({
2084
2163
  value: e,
2085
2164
  children: t
2086
2165
  }) {
2087
2166
  const {
2088
2167
  activeValue: r,
2089
2168
  orientation: n
2090
- } = ke();
2091
- return r !== e ? null : /* @__PURE__ */ l("div", { role: "tabpanel", ...k(a.div, N.panel, n === "vertical" && N.panelVertical), children: t });
2169
+ } = ge();
2170
+ return r !== e ? null : /* @__PURE__ */ s("div", { role: "tabpanel", ...k(u.div, V.panel, n === "vertical" && V.panelVertical), children: t });
2092
2171
  }
2093
- const ir = {
2094
- Root: At,
2095
- List: Ht,
2096
- Tab: Et,
2097
- Panel: Gt
2098
- }, pe = {
2172
+ const hr = {
2173
+ Root: Ct,
2174
+ List: Nt,
2175
+ Tab: Vt,
2176
+ Panel: Ot
2177
+ }, me = {
2099
2178
  base: {
2100
2179
  kzqmXN: "xh8yej3",
2101
2180
  kLKAdn: "x1y6gaq4",
@@ -2129,21 +2208,21 @@ const ir = {
2129
2208
  $$css: !0
2130
2209
  }
2131
2210
  };
2132
- function ur({
2211
+ function pr({
2133
2212
  variant: e = "default",
2134
2213
  name: t,
2135
2214
  placeholder: r,
2136
2215
  required: n,
2137
2216
  rows: o = 3,
2138
- value: s,
2139
- defaultValue: x,
2140
- disabled: c,
2217
+ value: c,
2218
+ defaultValue: l,
2219
+ disabled: x,
2141
2220
  onChange: d
2142
2221
  }) {
2143
- const i = F();
2144
- return /* @__PURE__ */ l("textarea", { id: i?.controlId, name: t, placeholder: r, required: n, rows: o, value: s, defaultValue: x, disabled: c, "aria-describedby": i ? `${i.descriptionId} ${i.invalid ? i.errorId : ""}`.trim() : void 0, "aria-invalid": i?.invalid || e === "error" || void 0, onChange: d, ...k(a.textarea, pe.base, pe[e]), dir: "auto" });
2222
+ const i = Z();
2223
+ return /* @__PURE__ */ s("textarea", { id: i?.controlId, name: t, placeholder: r, required: n, rows: o, value: c, defaultValue: l, disabled: x, "aria-describedby": i ? `${i.descriptionId} ${i.invalid ? i.errorId : ""}`.trim() : void 0, "aria-invalid": i?.invalid || e === "error" || void 0, onChange: d, ...k(u.textarea, me.base, me[e]), dir: "auto" });
2145
2224
  }
2146
- const kr = {
2225
+ const fr = {
2147
2226
  bg: "var(--bg-xqkwqtp)",
2148
2227
  bgCard: "var(--bgCard-xj2l5r)",
2149
2228
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -2171,7 +2250,7 @@ const kr = {
2171
2250
  infoBorder: "var(--infoBorder-xnevk3x)",
2172
2251
  infoText: "var(--infoText-x19pseus)",
2173
2252
  __varGroupHash__: "xjvd03b"
2174
- }, ar = {
2253
+ }, vr = {
2175
2254
  xs: "var(--xs-xxfyjsd)",
2176
2255
  sm: "var(--sm-xbh8y7f)",
2177
2256
  md: "var(--md-x3pkb85)",
@@ -2179,13 +2258,13 @@ const kr = {
2179
2258
  xl: "var(--xl-xttpygj)",
2180
2259
  xxl: "var(--xxl-xbe9eha)",
2181
2260
  __varGroupHash__: "x6uc9q"
2182
- }, dr = {
2261
+ }, mr = {
2183
2262
  sm: "var(--sm-x1bhtfs5)",
2184
2263
  md: "var(--md-xx2g89g)",
2185
2264
  lg: "var(--lg-xwd56yl)",
2186
2265
  full: "var(--full-x9vxdtd)",
2187
2266
  __varGroupHash__: "xw3ffwm"
2188
- }, gr = {
2267
+ }, $r = {
2189
2268
  fontFamily: "var(--fontFamily-xvrmnat)",
2190
2269
  fontSizeXs: "var(--fontSizeXs-x1w5m325)",
2191
2270
  fontSizeSm: "var(--fontSizeSm-x1bjjs4u)",
@@ -2199,40 +2278,40 @@ const kr = {
2199
2278
  fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
2200
2279
  lineHeight: "var(--lineHeight-x1gubzd5)",
2201
2280
  __varGroupHash__: "xs62swl"
2202
- }, hr = {
2281
+ }, br = {
2203
2282
  sm: "var(--sm-x17hhtln)",
2204
2283
  md: "var(--md-x1oyt0aw)",
2205
2284
  lg: "var(--lg-x1mxd62i)",
2206
2285
  __varGroupHash__: "x13v825q"
2207
- }, Vt = {
2286
+ }, Lt = {
2208
2287
  xjvd03b: "x18itf25 xjvd03b",
2209
2288
  $$css: !0
2210
- }, Ct = {
2289
+ }, Dt = {
2211
2290
  x13v825q: "xv9ibj0 x13v825q",
2212
2291
  $$css: !0
2213
- }, Nt = {
2292
+ }, Bt = {
2214
2293
  xjvd03b: "x1qgt5a2 xjvd03b",
2215
2294
  $$css: !0
2216
- }, Rt = {
2295
+ }, Pt = {
2217
2296
  x13v825q: "x15e39jv x13v825q",
2218
2297
  $$css: !0
2219
- }, Ot = {
2220
- light: [Vt, Ct],
2221
- "high-contrast": [Nt, Rt]
2222
- }, Lt = {
2298
+ }, Yt = {
2299
+ light: [Lt, Dt],
2300
+ "high-contrast": [Bt, Pt]
2301
+ }, Xt = {
2223
2302
  root: {
2224
2303
  k1xSpc: "xjp7ctv",
2225
2304
  $$css: !0
2226
2305
  }
2227
2306
  };
2228
- function fr({
2307
+ function wr({
2229
2308
  theme: e = "dark",
2230
2309
  children: t
2231
2310
  }) {
2232
- const r = Ot[e], n = [r?.[0], r?.[1], Lt.root];
2233
- return /* @__PURE__ */ l("div", { ...k(a.div, n), children: t });
2311
+ const r = Yt[e], n = [r?.[0], r?.[1], Xt.root];
2312
+ return /* @__PURE__ */ s("div", { ...k(u.div, n), children: t });
2234
2313
  }
2235
- const ce = {
2314
+ const le = {
2236
2315
  root: {
2237
2316
  kVAEAm: "x1n2onr6",
2238
2317
  k1xSpc: "x3nfvp2",
@@ -2287,35 +2366,35 @@ const ce = {
2287
2366
  koQZXg: "xzhl4zu",
2288
2367
  $$css: !0
2289
2368
  }
2290
- }, Te = O(null);
2291
- function Dt() {
2292
- const e = G(Te);
2369
+ }, Ge = C(null);
2370
+ function Kt() {
2371
+ const e = H(Ge);
2293
2372
  if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
2294
2373
  return e;
2295
2374
  }
2296
- function Bt({
2375
+ function Ut({
2297
2376
  children: e,
2298
2377
  content: t,
2299
2378
  placement: r = "top",
2300
2379
  delay: n = 300
2301
2380
  }) {
2302
- const [o, s] = T(!1), x = X(), c = y(null), d = I(() => {
2303
- c.current && clearTimeout(c.current), c.current = setTimeout(() => s(!0), n);
2381
+ const [o, c] = T(!1), l = Y(), x = y(null), d = I(() => {
2382
+ x.current && clearTimeout(x.current), x.current = setTimeout(() => c(!0), n);
2304
2383
  }, [n]), i = I(() => {
2305
- c.current && clearTimeout(c.current), c.current = null, s(!1);
2384
+ x.current && clearTimeout(x.current), x.current = null, c(!1);
2306
2385
  }, []);
2307
- return /* @__PURE__ */ l(Te.Provider, { value: {
2386
+ return /* @__PURE__ */ s(Ge.Provider, { value: {
2308
2387
  open: o,
2309
2388
  show: d,
2310
2389
  hide: i,
2311
- tooltipId: x,
2390
+ tooltipId: l,
2312
2391
  placement: r
2313
- }, children: /* @__PURE__ */ H("div", { ...k(a.div, ce.root), children: [
2392
+ }, children: /* @__PURE__ */ G("div", { ...k(u.div, le.root), children: [
2314
2393
  e,
2315
- o && /* @__PURE__ */ l("div", { id: x, role: "tooltip", ...k(a.div, ce.popup, ce[r]), children: t })
2394
+ o && /* @__PURE__ */ s("div", { id: l, role: "tooltip", ...k(u.div, le.popup, le[r]), children: t })
2316
2395
  ] }) });
2317
2396
  }
2318
- function Pt({
2397
+ function Jt({
2319
2398
  children: e
2320
2399
  }) {
2321
2400
  const {
@@ -2323,42 +2402,43 @@ function Pt({
2323
2402
  show: r,
2324
2403
  hide: n,
2325
2404
  tooltipId: o
2326
- } = Dt();
2327
- return /* @__PURE__ */ l("div", { onPointerEnter: r, onPointerLeave: n, onFocus: r, onBlur: n, "aria-describedby": t ? o : void 0, ...k(a.div), children: e });
2405
+ } = Kt();
2406
+ return /* @__PURE__ */ s("div", { onPointerEnter: r, onPointerLeave: n, onFocus: r, onBlur: n, "aria-describedby": t ? o : void 0, ...k(u.div), children: e });
2328
2407
  }
2329
- const pr = {
2330
- Root: Bt,
2331
- Trigger: Pt
2408
+ const yr = {
2409
+ Root: Ut,
2410
+ Trigger: Jt
2332
2411
  };
2333
2412
  export {
2334
- Kt as Alert,
2335
- Ut as Badge,
2336
- Jt as Button,
2337
- Qt as Card,
2338
- _t as Checkbox,
2339
- Ft as EmptyState,
2340
- Zt as Field,
2341
- er as Input,
2342
- tr as LinkButton,
2343
- rr as Menu,
2344
- nr as ScrollArea,
2345
- or as Select,
2346
- sr as SideNav,
2347
- cr as Spinner,
2348
- lr as StatusIcon,
2349
- xr as Table,
2350
- ir as Tabs,
2351
- ur as Textarea,
2352
- fr as ThemeProvider,
2353
- pr as Tooltip,
2354
- kr as colors,
2355
- Rt as highContrastShadows,
2356
- Nt as highContrastTheme,
2357
- Ct as lightShadows,
2358
- Vt as lightTheme,
2359
- dr as radii,
2360
- hr as shadows,
2361
- ar as spacing,
2362
- gr as typography
2413
+ Ft as Alert,
2414
+ Zt as Badge,
2415
+ er as Button,
2416
+ tr as Card,
2417
+ rr as Checkbox,
2418
+ nr as EmptyState,
2419
+ or as Field,
2420
+ sr as Input,
2421
+ cr as InputGroup,
2422
+ xr as LinkButton,
2423
+ lr as Menu,
2424
+ ir as ScrollArea,
2425
+ kr as Select,
2426
+ ur as SideNav,
2427
+ ar as Spinner,
2428
+ dr as StatusIcon,
2429
+ gr as Table,
2430
+ hr as Tabs,
2431
+ pr as Textarea,
2432
+ wr as ThemeProvider,
2433
+ yr as Tooltip,
2434
+ fr as colors,
2435
+ Pt as highContrastShadows,
2436
+ Bt as highContrastTheme,
2437
+ Dt as lightShadows,
2438
+ Lt as lightTheme,
2439
+ mr as radii,
2440
+ br as shadows,
2441
+ vr as spacing,
2442
+ $r as typography
2363
2443
  };
2364
2444
  //# sourceMappingURL=index.js.map