@duro-app/ui 0.9.0 → 0.9.1

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 s, Fragment as D, jsxs as z } from "react/jsx-runtime";
2
- import { useState as G, useCallback as W, useContext as O, createContext as R, useId as _, useMemo as ve, useRef as w, useEffect as H, Children as qe } from "react";
1
+ import { jsx as r, jsxs as z, Fragment as N } from "react/jsx-runtime";
2
+ import { useState as G, useCallback as W, useContext as C, createContext as R, useId as _, useMemo as $e, useRef as w, useEffect as H, Children as qe } from "react";
3
3
  /**
4
4
  * @license react-strict-dom
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -13,26 +13,26 @@ Object.defineProperty(me, "__esModule", {
13
13
  });
14
14
  var We = me.styleq = void 0, Xe = /* @__PURE__ */ new WeakMap(), Ye = "$$css";
15
15
  function He(e) {
16
- var t, n, r;
17
- return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, r = e.transform), function() {
18
- for (var x = [], i = "", c = null, d = "", a = t ? null : Xe, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
16
+ var t, n, s;
17
+ return e != null && (t = e.disableCache === !0, n = e.disableMix === !0, s = e.transform), function() {
18
+ for (var l = [], i = "", c = null, d = "", a = t ? null : Xe, g = new Array(arguments.length), u = 0; u < arguments.length; u++)
19
19
  g[u] = arguments[u];
20
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]);
21
+ var $ = g.pop();
22
+ if (!($ == null || $ === !1)) {
23
+ if (Array.isArray($)) {
24
+ for (var S = 0; S < $.length; S++)
25
+ g.push($[S]);
26
26
  continue;
27
27
  }
28
- var p = r != null ? r(v) : v;
28
+ var p = s != null ? s($) : $;
29
29
  if (p.$$css != null) {
30
30
  var m = "";
31
31
  if (a != null && a.has(p)) {
32
32
  var f = a.get(p);
33
- f != null && (m = f[0], d = f[2], x.push.apply(x, f[1]), a = f[3]);
33
+ f != null && (m = f[0], d = f[2], l.push.apply(l, f[1]), a = f[3]);
34
34
  } else {
35
- var $ = [];
35
+ var v = [];
36
36
  for (var h in p) {
37
37
  var b = p[h];
38
38
  if (h === Ye) {
@@ -40,11 +40,11 @@ function He(e) {
40
40
  B !== !0 && (d = d ? B + "; " + d : B);
41
41
  continue;
42
42
  }
43
- typeof b == "string" || b === null ? x.includes(h) || (x.push(h), a != 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 ? l.includes(h) || (l.push(h), a != null && v.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 (a != null) {
46
46
  var Q = /* @__PURE__ */ new WeakMap();
47
- a.set(p, [m, $, d, Q]), a = Q;
47
+ a.set(p, [m, v, d, Q]), a = Q;
48
48
  }
49
49
  }
50
50
  m && (i = i ? m + " " + i : m);
@@ -53,15 +53,15 @@ function He(e) {
53
53
  else {
54
54
  var y = null;
55
55
  for (var I in p) {
56
- var j = p[I];
57
- j !== void 0 && (x.includes(I) || (j != null && (c == null && (c = {}), y == null && (y = {}), y[I] = j), x.push(I), a = null));
56
+ var M = p[I];
57
+ M !== void 0 && (l.includes(I) || (M != null && (c == null && (c = {}), y == null && (y = {}), y[I] = M), l.push(I), a = null));
58
58
  }
59
59
  y != null && (c = Object.assign(y, c));
60
60
  }
61
61
  }
62
62
  }
63
- var M = [i, c, d];
64
- return M;
63
+ var j = [i, c, d];
64
+ return j;
65
65
  };
66
66
  }
67
67
  var Je = We = me.styleq = He();
@@ -69,11 +69,11 @@ Je.factory = He;
69
69
  const Pe = We.factory({
70
70
  disableMix: !0
71
71
  });
72
- function l(...e) {
73
- const [t, n, r] = Pe(e), o = {};
74
- if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), r != null && r !== "") {
75
- const x = r.split(";"), i = {};
76
- for (const c of x) {
72
+ function x(...e) {
73
+ const [t, n, s] = Pe(e), o = {};
74
+ if (t != null && t !== "" && (o.className = t), n != null && (o.style = n), s != null && s !== "") {
75
+ const l = s.split(";"), i = {};
76
+ for (const c of l) {
77
77
  const d = c.trim(), [a, g] = d.split(":");
78
78
  g != null && (i[a] = i[a] != null ? `${i[a]},${g}` : g);
79
79
  }
@@ -138,49 +138,66 @@ const A = {
138
138
  span: tt,
139
139
  textarea: nt
140
140
  }, rt = {
141
- "x-circle": /* @__PURE__ */ z(D, { children: [
142
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
143
- /* @__PURE__ */ s("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
144
- /* @__PURE__ */ s("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
141
+ "x-circle": /* @__PURE__ */ z(N, { children: [
142
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
143
+ /* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
144
+ /* @__PURE__ */ r("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
145
145
  ] }),
146
- "check-circle": /* @__PURE__ */ z(D, { children: [
147
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
148
- /* @__PURE__ */ s("polyline", { points: "16 10 11 15 8 12" })
146
+ "check-circle": /* @__PURE__ */ z(N, { children: [
147
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
148
+ /* @__PURE__ */ r("polyline", { points: "16 10 11 15 8 12" })
149
149
  ] }),
150
- "check-done": /* @__PURE__ */ z(D, { children: [
151
- /* @__PURE__ */ s("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
152
- /* @__PURE__ */ s("polyline", { points: "22 4 12 14.01 9 11.01" })
150
+ "check-done": /* @__PURE__ */ z(N, { children: [
151
+ /* @__PURE__ */ r("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
152
+ /* @__PURE__ */ r("polyline", { points: "22 4 12 14.01 9 11.01" })
153
153
  ] }),
154
- clock: /* @__PURE__ */ z(D, { children: [
155
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
156
- /* @__PURE__ */ s("polyline", { points: "12 6 12 12 16 14" })
154
+ clock: /* @__PURE__ */ z(N, { children: [
155
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
156
+ /* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
157
157
  ] }),
158
- forbidden: /* @__PURE__ */ z(D, { children: [
159
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
160
- /* @__PURE__ */ s("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
158
+ forbidden: /* @__PURE__ */ z(N, { children: [
159
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
160
+ /* @__PURE__ */ r("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
161
161
  ] }),
162
- "info-circle": /* @__PURE__ */ z(D, { children: [
163
- /* @__PURE__ */ s("circle", { cx: "12", cy: "12", r: "10" }),
164
- /* @__PURE__ */ s("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
165
- /* @__PURE__ */ s("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
162
+ "info-circle": /* @__PURE__ */ z(N, { children: [
163
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
164
+ /* @__PURE__ */ r("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
165
+ /* @__PURE__ */ r("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
166
166
  ] }),
167
- "alert-triangle": /* @__PURE__ */ z(D, { children: [
168
- /* @__PURE__ */ s("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
169
- /* @__PURE__ */ s("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
170
- /* @__PURE__ */ s("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
167
+ "alert-triangle": /* @__PURE__ */ z(N, { children: [
168
+ /* @__PURE__ */ r("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
169
+ /* @__PURE__ */ r("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
170
+ /* @__PURE__ */ r("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
171
171
  ] }),
172
- shield: /* @__PURE__ */ s("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
173
- lock: /* @__PURE__ */ z(D, { children: [
174
- /* @__PURE__ */ s("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
175
- /* @__PURE__ */ s("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
172
+ shield: /* @__PURE__ */ r("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
173
+ lock: /* @__PURE__ */ z(N, { children: [
174
+ /* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
175
+ /* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
176
176
  ] }),
177
- key: /* @__PURE__ */ s(D, { children: /* @__PURE__ */ s("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) })
177
+ key: /* @__PURE__ */ r(N, { children: /* @__PURE__ */ r("path", { d: "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" }) })
178
+ }, st = {
179
+ // Filled circle with "i" cutout (dot + line)
180
+ "info-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.75 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0zM11 11a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0v-5z" }),
181
+ // Filled triangle with "!" cutout
182
+ "alert-triangle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM11 10a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0v-3zm.25 6a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0z" }),
183
+ // Filled circle with checkmark cutout
184
+ "check-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.707 8.707a1 1 0 0 0-1.414-1.414L11 13.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l5-5z" }),
185
+ // Filled circle with X cutout
186
+ "x-circle-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM9.707 8.293a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293z" }),
187
+ // Filled shield with checkmark cutout
188
+ "shield-filled": /* @__PURE__ */ r("path", { fillRule: "evenodd", d: "M12 1L3 5v7c0 6.5 8.5 10.5 9 10.73.5-.23 9-4.23 9-10.73V5l-9-4zm3.707 8.707a1 1 0 0 0-1.414-1.414L11 11.586l-1.293-1.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z" }),
189
+ // Filled lock body with stroke shackle
190
+ "lock-filled": /* @__PURE__ */ z(N, { children: [
191
+ /* @__PURE__ */ r("path", { d: "M7 11V7a5 5 0 0 1 10 0v4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
192
+ /* @__PURE__ */ r("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" })
193
+ ] })
178
194
  };
179
- function $e({
195
+ function ve({
180
196
  name: e,
181
197
  size: t = 24
182
198
  }) {
183
- return /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: rt[e] });
199
+ const n = st[e];
200
+ return n ? /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: t, height: t, children: n }) : /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", width: t, height: t, children: rt[e] });
184
201
  }
185
202
  const ce = {
186
203
  base: {
@@ -233,27 +250,27 @@ const ce = {
233
250
  kMwMTN: "xmooqzt",
234
251
  $$css: !0
235
252
  }
236
- }, st = {
237
- info: "info-circle",
238
- warning: "alert-triangle",
239
- success: "check-circle",
240
- error: "x-circle"
253
+ }, ot = {
254
+ info: "info-circle-filled",
255
+ warning: "alert-triangle-filled",
256
+ success: "check-circle-filled",
257
+ error: "x-circle-filled"
241
258
  };
242
- function ot(e, t) {
243
- return e === !1 ? null : e === void 0 ? /* @__PURE__ */ s($e, { name: st[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ s($e, { name: e, size: 18 }) : e;
259
+ function it(e, t) {
260
+ return e === !1 ? null : e === void 0 ? /* @__PURE__ */ r(ve, { name: ot[t], size: 18 }) : typeof e == "string" ? /* @__PURE__ */ r(ve, { name: e, size: 18 }) : e;
244
261
  }
245
- function Mn({
262
+ function zn({
246
263
  variant: e = "info",
247
264
  icon: t,
248
265
  children: n
249
266
  }) {
250
- const r = ot(t, e);
251
- return /* @__PURE__ */ s("div", { role: "alert", ...l(k.div, ce.base, ce[e]), children: r ? /* @__PURE__ */ z(D, { children: [
252
- /* @__PURE__ */ s("div", { ...l(k.div, ce.iconWrap), children: r }),
253
- /* @__PURE__ */ s("div", { ...l(k.div, ce.content), children: n })
267
+ const s = it(t, e);
268
+ return /* @__PURE__ */ r("div", { role: "alert", ...x(k.div, ce.base, ce[e]), children: s ? /* @__PURE__ */ z(N, { children: [
269
+ /* @__PURE__ */ r("div", { ...x(k.div, ce.iconWrap), children: s }),
270
+ /* @__PURE__ */ r("div", { ...x(k.div, ce.content), children: n })
254
271
  ] }) : n });
255
272
  }
256
- const le = {
273
+ const xe = {
257
274
  base: {
258
275
  k1xSpc: "x3nfvp2",
259
276
  kGNEyG: "x6s0dn4",
@@ -306,16 +323,16 @@ const le = {
306
323
  kMwMTN: "xmooqzt",
307
324
  $$css: !0
308
325
  }
309
- }, it = {
310
- sm: le.sizeSm,
311
- md: le.sizeMd
326
+ }, ct = {
327
+ sm: xe.sizeSm,
328
+ md: xe.sizeMd
312
329
  };
313
- function zn({
330
+ function In({
314
331
  variant: e = "default",
315
332
  size: t = "md",
316
333
  children: n
317
334
  }) {
318
- return /* @__PURE__ */ s("span", { ...l(k.span, le.base, it[t], le[e]), children: n });
335
+ return /* @__PURE__ */ r("span", { ...x(k.span, xe.base, ct[t], xe[e]), children: n });
319
336
  }
320
337
  const ne = {
321
338
  base: {
@@ -392,20 +409,20 @@ const ne = {
392
409
  kkrTdU: "x1h6gzvc",
393
410
  $$css: !0
394
411
  }
395
- }, ct = {
412
+ }, lt = {
396
413
  default: ne.sizeDefault,
397
414
  small: ne.sizeSmall
398
415
  };
399
- function In({
416
+ function qn({
400
417
  variant: e = "primary",
401
418
  size: t = "default",
402
419
  fullWidth: n = !1,
403
- disabled: r = !1,
420
+ disabled: s = !1,
404
421
  type: o = "button",
405
- onClick: x,
422
+ onClick: l,
406
423
  children: i
407
424
  }) {
408
- return /* @__PURE__ */ s("button", { type: o, disabled: r, onClick: x, ...l(k.button, ne.base, ct[t], ne[e], n && ne.fullWidth, r && ne.disabled), children: i });
425
+ return /* @__PURE__ */ r("button", { type: o, disabled: s, onClick: l, ...x(k.button, ne.base, lt[t], ne[e], n && ne.fullWidth, s && ne.disabled), children: i });
409
426
  }
410
427
  const re = {
411
428
  base: {
@@ -469,15 +486,15 @@ const re = {
469
486
  compact: re.sizeCompact,
470
487
  full: re.sizeFull
471
488
  };
472
- function qn({
489
+ function Wn({
473
490
  variant: e = "outlined",
474
491
  size: t = "default",
475
492
  header: n,
476
- onClick: r,
493
+ onClick: s,
477
494
  children: o
478
495
  }) {
479
- return /* @__PURE__ */ z("div", { onClick: r, ...l(k.div, re.base, re[e], xt[t]), children: [
480
- n && /* @__PURE__ */ s("div", { ...l(k.div, re.header), children: n }),
496
+ return /* @__PURE__ */ z("div", { onClick: s, ...x(k.div, re.base, re[e], xt[t]), children: [
497
+ n && /* @__PURE__ */ r("div", { ...x(k.div, re.header), children: n }),
481
498
  o
482
499
  ] });
483
500
  }
@@ -531,24 +548,24 @@ const ee = {
531
548
  $$css: !0
532
549
  }
533
550
  };
534
- function Wn({
551
+ function Hn({
535
552
  name: e,
536
553
  value: t,
537
554
  checked: n,
538
- defaultChecked: r = !1,
555
+ defaultChecked: s = !1,
539
556
  disabled: o = !1,
540
- onChange: x,
557
+ onChange: l,
541
558
  children: i
542
559
  }) {
543
- const c = n !== void 0, [d, a] = G(r), g = c ? n : d, u = W((v) => {
544
- c || a(v.target.checked), x?.(v);
545
- }, [c, x]);
546
- return /* @__PURE__ */ z("label", { ...l(k.label, ee.root, o && ee.rootDisabled), children: [
547
- /* @__PURE__ */ s("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : r, disabled: o, onChange: u, ...l(k.input, ee.input), dir: "auto" }),
548
- /* @__PURE__ */ s("span", { ...l(k.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ s("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
560
+ const c = n !== void 0, [d, a] = G(s), g = c ? n : d, u = W(($) => {
561
+ c || a($.target.checked), l?.($);
562
+ }, [c, l]);
563
+ return /* @__PURE__ */ z("label", { ...x(k.label, ee.root, o && ee.rootDisabled), children: [
564
+ /* @__PURE__ */ r("input", { type: "checkbox", name: e, value: t, checked: c ? n : void 0, defaultChecked: c ? void 0 : s, disabled: o, onChange: u, ...x(k.input, ee.input), dir: "auto" }),
565
+ /* @__PURE__ */ r("span", { ...x(k.span, ee.box, g ? ee.boxChecked : ee.boxUnchecked), "aria-hidden": !0, children: /* @__PURE__ */ r("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", style: {
549
566
  opacity: g ? 1 : 0
550
- }, children: /* @__PURE__ */ s("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
551
- i && /* @__PURE__ */ s("span", { ...l(k.span), children: i })
567
+ }, children: /* @__PURE__ */ r("polyline", { points: "2.5 6 5 8.5 9.5 3.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
568
+ i && /* @__PURE__ */ r("span", { ...x(k.span), children: i })
552
569
  ] });
553
570
  }
554
571
  const he = {
@@ -574,15 +591,15 @@ const he = {
574
591
  $$css: !0
575
592
  }
576
593
  };
577
- function Hn({
594
+ function Gn({
578
595
  message: e,
579
596
  icon: t,
580
597
  action: n
581
598
  }) {
582
- return /* @__PURE__ */ z("div", { ...l(k.div, he.root), children: [
599
+ return /* @__PURE__ */ z("div", { ...x(k.div, he.root), children: [
583
600
  t,
584
- /* @__PURE__ */ s("p", { ...l(k.p, he.message), children: e }),
585
- n && /* @__PURE__ */ s("div", { ...l(k.div, he.action), children: n })
601
+ /* @__PURE__ */ r("p", { ...x(k.p, he.message), children: e }),
602
+ n && /* @__PURE__ */ r("div", { ...x(k.div, he.action), children: n })
586
603
  ] });
587
604
  }
588
605
  const Ge = {
@@ -699,7 +716,7 @@ const Ge = {
699
716
  kb6lSQ: "xgvl3jc",
700
717
  $$css: !0
701
718
  }
702
- }, xe = {
719
+ }, le = {
703
720
  default: {
704
721
  kMwMTN: "xg6mlj0",
705
722
  $$css: !0
@@ -724,31 +741,31 @@ const Ge = {
724
741
  k9WMMc: "xp4054r",
725
742
  $$css: !0
726
743
  }
727
- }, lt = {
744
+ }, kt = {
728
745
  1: "headingXl",
729
746
  2: "headingLg",
730
747
  3: "headingMd",
731
748
  4: "headingSm",
732
749
  5: "headingSm",
733
750
  6: "headingSm"
734
- }, kt = {
735
- start: xe.alignStart,
736
- center: xe.alignCenter,
737
- end: xe.alignEnd
751
+ }, at = {
752
+ start: le.alignStart,
753
+ center: le.alignCenter,
754
+ end: le.alignEnd
738
755
  };
739
- function Gn({
756
+ function Ln({
740
757
  level: e,
741
758
  variant: t,
742
759
  color: n = "default",
743
- align: r,
760
+ align: s,
744
761
  children: o
745
762
  }) {
746
- const x = t ?? lt[e], i = [Ge[x], xe[n], r && kt[r]];
747
- return e === 1 ? /* @__PURE__ */ s("h1", { ...l(k.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ s("h2", { ...l(k.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ s("h3", { ...l(k.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ s("h4", { ...l(k.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ s("h5", { ...l(k.h5, i), children: o }) : /* @__PURE__ */ s("h6", { ...l(k.h6, i), children: o });
763
+ const l = t ?? kt[e], i = [Ge[l], le[n], s && at[s]];
764
+ return e === 1 ? /* @__PURE__ */ r("h1", { ...x(k.h1, i), children: o }) : e === 2 ? /* @__PURE__ */ r("h2", { ...x(k.h2, i), children: o }) : e === 3 ? /* @__PURE__ */ r("h3", { ...x(k.h3, i), children: o }) : e === 4 ? /* @__PURE__ */ r("h4", { ...x(k.h4, i), children: o }) : e === 5 ? /* @__PURE__ */ r("h5", { ...x(k.h5, i), children: o }) : /* @__PURE__ */ r("h6", { ...x(k.h6, i), children: o });
748
765
  }
749
- const Te = R(null);
766
+ const Le = R(null);
750
767
  function ie() {
751
- return O(Te);
768
+ return C(Le);
752
769
  }
753
770
  const ke = {
754
771
  root: {
@@ -774,44 +791,44 @@ const ke = {
774
791
  $$css: !0
775
792
  }
776
793
  };
777
- function at({
794
+ function ut({
778
795
  invalid: e = !1,
779
796
  children: t
780
797
  }) {
781
- const n = _(), r = ve(() => ({
798
+ const n = _(), s = $e(() => ({
782
799
  controlId: `${n}-control`,
783
800
  descriptionId: `${n}-description`,
784
801
  errorId: `${n}-error`,
785
802
  invalid: e
786
803
  }), [n, e]);
787
- return /* @__PURE__ */ s(Te.Provider, { value: r, children: /* @__PURE__ */ s("div", { ...l(k.div, ke.root), children: t }) });
804
+ return /* @__PURE__ */ r(Le.Provider, { value: s, children: /* @__PURE__ */ r("div", { ...x(k.div, ke.root), children: t }) });
788
805
  }
789
- function ut({
806
+ function dt({
790
807
  children: e
791
808
  }) {
792
809
  const t = ie();
793
- return /* @__PURE__ */ s("label", { htmlFor: t?.controlId, ...l(k.label, ke.label), children: e });
810
+ return /* @__PURE__ */ r("label", { htmlFor: t?.controlId, ...x(k.label, ke.label), children: e });
794
811
  }
795
- function dt({
812
+ function gt({
796
813
  children: e
797
814
  }) {
798
815
  const t = ie();
799
- return /* @__PURE__ */ s("span", { id: t?.descriptionId, ...l(k.span, ke.description), children: e });
816
+ return /* @__PURE__ */ r("span", { id: t?.descriptionId, ...x(k.span, ke.description), children: e });
800
817
  }
801
- function gt({
818
+ function ht({
802
819
  children: e
803
820
  }) {
804
821
  const t = ie();
805
- return !t?.invalid && !e ? null : /* @__PURE__ */ s("span", { id: t?.errorId, role: "alert", ...l(k.span, ke.error), children: e });
822
+ return !t?.invalid && !e ? null : /* @__PURE__ */ r("span", { id: t?.errorId, role: "alert", ...x(k.span, ke.error), children: e });
806
823
  }
807
824
  const Tn = {
808
- Root: at,
809
- Label: ut,
810
- Description: dt,
811
- Error: gt
812
- }, Ee = R(null);
813
- function ht() {
814
- return O(Ee);
825
+ Root: ut,
826
+ Label: dt,
827
+ Description: gt,
828
+ Error: ht
829
+ }, Te = R(null);
830
+ function pt() {
831
+ return C(Te);
815
832
  }
816
833
  const pe = {
817
834
  base: {
@@ -856,9 +873,9 @@ function En({
856
873
  variant: e = "default",
857
874
  type: t = "text",
858
875
  name: n,
859
- placeholder: r,
876
+ placeholder: s,
860
877
  required: o,
861
- minLength: x,
878
+ minLength: l,
862
879
  pattern: i,
863
880
  autoComplete: c,
864
881
  value: d,
@@ -866,10 +883,10 @@ function En({
866
883
  disabled: g,
867
884
  onChange: u
868
885
  }) {
869
- const v = ie(), S = ht(), p = i !== void 0 ? {
886
+ const $ = ie(), S = pt(), p = i !== void 0 ? {
870
887
  pattern: i
871
888
  } : void 0;
872
- return /* @__PURE__ */ s("input", { id: v?.controlId, type: t, name: n, placeholder: r, required: o, 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 || e === "error" || void 0, onChange: u, ...l(k.input, pe.base, pe[e], S?.inGroup && pe.inGroup), ...p, dir: "auto" });
889
+ return /* @__PURE__ */ r("input", { id: $?.controlId, type: t, name: n, placeholder: s, required: o, minLength: l, autoComplete: c, value: d, defaultValue: a, disabled: g, "aria-describedby": $ ? `${$.descriptionId} ${$.invalid ? $.errorId : ""}`.trim() : void 0, "aria-invalid": $?.invalid || e === "error" || void 0, onChange: u, ...x(k.input, pe.base, pe[e], S?.inGroup && pe.inGroup), ...p, dir: "auto" });
873
890
  }
874
891
  const te = {
875
892
  wrapper: {
@@ -926,26 +943,26 @@ const te = {
926
943
  $$css: !0
927
944
  }
928
945
  };
929
- function pt({
946
+ function ft({
930
947
  children: e
931
948
  }) {
932
- const t = ve(() => ({
949
+ const t = $e(() => ({
933
950
  inGroup: !0
934
951
  }), []);
935
- return /* @__PURE__ */ s(Ee.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...l(k.div, te.wrapper), children: e }) });
952
+ return /* @__PURE__ */ r(Te.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, te.wrapper), children: e }) });
936
953
  }
937
- function ft({
954
+ function vt({
938
955
  position: e = "end",
939
956
  onClick: t,
940
957
  disabled: n,
941
- children: r
958
+ children: s
942
959
  }) {
943
- const o = e === "start" ? te.addonStart : te.addonEnd, x = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
944
- return t ? /* @__PURE__ */ s("button", { type: "button", onClick: t, disabled: n, ...l(k.button, x), children: r }) : /* @__PURE__ */ s("span", { ...l(k.span, x), children: r });
960
+ const o = e === "start" ? te.addonStart : te.addonEnd, l = [te.addon, o, t && !n && te.addonClickable, n && te.addonDisabled];
961
+ return t ? /* @__PURE__ */ r("button", { type: "button", onClick: t, disabled: n, ...x(k.button, l), children: s }) : /* @__PURE__ */ r("span", { ...x(k.span, l), children: s });
945
962
  }
946
- const Ln = {
947
- Root: pt,
948
- Addon: ft
963
+ const Vn = {
964
+ Root: ft,
965
+ Addon: vt
949
966
  }, oe = {
950
967
  base: {
951
968
  k1xSpc: "x3nfvp2",
@@ -1000,16 +1017,16 @@ const Ln = {
1000
1017
  default: oe.sizeDefault,
1001
1018
  small: oe.sizeSmall
1002
1019
  };
1003
- function Vn({
1020
+ function An({
1004
1021
  href: e,
1005
1022
  variant: t = "primary",
1006
1023
  size: n = "default",
1007
- fullWidth: r = !1,
1024
+ fullWidth: s = !1,
1008
1025
  target: o,
1009
- rel: x,
1026
+ rel: l,
1010
1027
  children: i
1011
1028
  }) {
1012
- return /* @__PURE__ */ s("a", { href: e, target: o, rel: x, ...l(k.a, oe.base, $t[n], oe[t], r && oe.fullWidth), children: i });
1029
+ return /* @__PURE__ */ r("a", { href: e, target: o, rel: l, ...x(k.a, oe.base, $t[n], oe[t], s && oe.fullWidth), children: i });
1013
1030
  }
1014
1031
  const P = {
1015
1032
  root: {
@@ -1095,69 +1112,69 @@ const P = {
1095
1112
  kMwMTN: "xg6mlj0 x1c35pte",
1096
1113
  $$css: !0
1097
1114
  }
1098
- }, Le = R(null);
1115
+ }, Ee = R(null);
1099
1116
  function ae() {
1100
- const e = O(Le);
1117
+ const e = C(Ee);
1101
1118
  if (!e) throw new Error("Menu compound components must be used within Menu.Root");
1102
1119
  return e;
1103
1120
  }
1104
- function vt() {
1105
- const [e, t] = G(!1), [n, r] = G(null), o = _(), x = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = W(() => {
1106
- t(!1), r(null), a.current = !1, i.current?.focus();
1121
+ function mt() {
1122
+ const [e, t] = G(!1), [n, s] = G(null), o = _(), l = w(null), i = w(null), c = w(/* @__PURE__ */ new Map()), d = w([]), a = w(!1), g = W(() => {
1123
+ t(!1), s(null), a.current = !1, i.current?.focus();
1107
1124
  }, []), u = W(() => {
1108
- t((p) => (p ? (r(null), a.current = !1) : a.current = !0, !p));
1125
+ t((p) => (p ? (s(null), a.current = !1) : a.current = !0, !p));
1109
1126
  }, []);
1110
1127
  H(() => {
1111
1128
  if (e && a.current) {
1112
1129
  a.current = !1;
1113
1130
  const p = d.current;
1114
- p.length > 0 && r(p[0]);
1131
+ p.length > 0 && s(p[0]);
1115
1132
  }
1116
1133
  }, [e]);
1117
- const v = W((p, m) => {
1134
+ const $ = W((p, m) => {
1118
1135
  c.current.set(p, m);
1119
- const f = c.current, $ = [...f.keys()];
1120
- return $.sort((h, b) => {
1136
+ const f = c.current, v = [...f.keys()];
1137
+ return v.sort((h, b) => {
1121
1138
  const B = f.get(h), Q = f.get(b);
1122
1139
  return !B || !Q ? 0 : B.compareDocumentPosition(Q) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1123
- }), d.current = $, () => {
1140
+ }), d.current = v, () => {
1124
1141
  c.current.delete(p), d.current = d.current.filter((h) => h !== p);
1125
1142
  };
1126
1143
  }, []);
1127
1144
  return H(() => {
1128
- const p = x.current;
1145
+ const p = l.current;
1129
1146
  if (!p || !e) return;
1130
1147
  function m(f) {
1131
- const $ = d.current;
1132
- if ($.length !== 0)
1148
+ const v = d.current;
1149
+ if (v.length !== 0)
1133
1150
  switch (f.key) {
1134
1151
  case "ArrowDown": {
1135
- f.preventDefault(), r((h) => {
1136
- const b = h ? $.indexOf(h) : -1;
1137
- return $[(b + 1) % $.length];
1152
+ f.preventDefault(), s((h) => {
1153
+ const b = h ? v.indexOf(h) : -1;
1154
+ return v[(b + 1) % v.length];
1138
1155
  });
1139
1156
  break;
1140
1157
  }
1141
1158
  case "ArrowUp": {
1142
- f.preventDefault(), r((h) => {
1143
- const b = h ? $.indexOf(h) : 0;
1144
- return $[(b - 1 + $.length) % $.length];
1159
+ f.preventDefault(), s((h) => {
1160
+ const b = h ? v.indexOf(h) : 0;
1161
+ return v[(b - 1 + v.length) % v.length];
1145
1162
  });
1146
1163
  break;
1147
1164
  }
1148
1165
  case "Home": {
1149
- f.preventDefault(), r($[0]);
1166
+ f.preventDefault(), s(v[0]);
1150
1167
  break;
1151
1168
  }
1152
1169
  case "End": {
1153
- f.preventDefault(), r($[$.length - 1]);
1170
+ f.preventDefault(), s(v[v.length - 1]);
1154
1171
  break;
1155
1172
  }
1156
1173
  case "Enter":
1157
1174
  case " ": {
1158
1175
  f.preventDefault();
1159
1176
  const h = c.current;
1160
- r((b) => (b && h.get(b)?.click(), b));
1177
+ s((b) => (b && h.get(b)?.click(), b));
1161
1178
  break;
1162
1179
  }
1163
1180
  case "Escape":
@@ -1175,91 +1192,91 @@ function vt() {
1175
1192
  close: g,
1176
1193
  menuId: o,
1177
1194
  highlightedId: n,
1178
- setHighlightedId: r,
1179
- registerItem: v,
1195
+ setHighlightedId: s,
1196
+ registerItem: $,
1180
1197
  triggerRef: i
1181
1198
  },
1182
- rootRef: x
1199
+ rootRef: l
1183
1200
  };
1184
1201
  }
1185
- function mt({
1202
+ function bt({
1186
1203
  children: e
1187
1204
  }) {
1188
1205
  const {
1189
1206
  ctx: t,
1190
1207
  rootRef: n
1191
- } = vt();
1192
- return /* @__PURE__ */ s(Le.Provider, { value: t, children: /* @__PURE__ */ s("div", { ref: n, ...l(k.div, P.root), children: e }) });
1208
+ } = mt();
1209
+ return /* @__PURE__ */ r(Ee.Provider, { value: t, children: /* @__PURE__ */ r("div", { ref: n, ...x(k.div, P.root), children: e }) });
1193
1210
  }
1194
- function bt({
1211
+ function yt({
1195
1212
  children: e
1196
1213
  }) {
1197
1214
  const {
1198
1215
  open: t,
1199
1216
  toggle: n,
1200
- menuId: r,
1217
+ menuId: s,
1201
1218
  triggerRef: o
1202
- } = ae(), x = w(null);
1219
+ } = ae(), l = w(null);
1203
1220
  return H(() => {
1204
- o.current = x.current;
1205
- }), /* @__PURE__ */ s("button", { ref: x, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? r : void 0, ...l(k.button, P.trigger), children: e });
1221
+ o.current = l.current;
1222
+ }), /* @__PURE__ */ r("button", { ref: l, type: "button", onClick: n, "aria-expanded": t, "aria-haspopup": "menu", "aria-controls": t ? s : void 0, ...x(k.button, P.trigger), children: e });
1206
1223
  }
1207
- function yt({
1224
+ function wt({
1208
1225
  children: e,
1209
1226
  align: t = "start"
1210
1227
  }) {
1211
1228
  const {
1212
1229
  open: n,
1213
- close: r,
1230
+ close: s,
1214
1231
  menuId: o,
1215
- highlightedId: x
1232
+ highlightedId: l
1216
1233
  } = ae();
1217
- return n ? /* @__PURE__ */ z(D, { children: [
1218
- /* @__PURE__ */ s("div", { ...l(k.div, P.backdrop), onClick: r }),
1219
- /* @__PURE__ */ s("div", { id: o, role: "menu", "aria-activedescendant": x ?? void 0, ...l(k.div, P.popup, t === "end" && P.popupEnd), children: e })
1234
+ return n ? /* @__PURE__ */ z(N, { children: [
1235
+ /* @__PURE__ */ r("div", { ...x(k.div, P.backdrop), onClick: s }),
1236
+ /* @__PURE__ */ r("div", { id: o, role: "menu", "aria-activedescendant": l ?? void 0, ...x(k.div, P.popup, t === "end" && P.popupEnd), children: e })
1220
1237
  ] }) : null;
1221
1238
  }
1222
- function wt({
1239
+ function St({
1223
1240
  onClick: e,
1224
1241
  children: t
1225
1242
  }) {
1226
1243
  const {
1227
1244
  close: n,
1228
- highlightedId: r,
1245
+ highlightedId: s,
1229
1246
  setHighlightedId: o,
1230
- registerItem: x
1231
- } = ae(), i = _(), c = w(null), d = r === i;
1247
+ registerItem: l
1248
+ } = ae(), i = _(), c = w(null), d = s === i;
1232
1249
  return H(() => {
1233
1250
  const g = c.current;
1234
1251
  if (g)
1235
- return x(i, g);
1236
- }, [i, x]), /* @__PURE__ */ s("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1252
+ return l(i, g);
1253
+ }, [i, l]), /* @__PURE__ */ r("div", { ref: c, id: i, role: "menuitem", onClick: () => {
1237
1254
  e?.(), n();
1238
- }, onPointerEnter: () => o(i), ...l(k.div, P.item, d && P.itemHighlighted), children: t });
1255
+ }, onPointerEnter: () => o(i), ...x(k.div, P.item, d && P.itemHighlighted), children: t });
1239
1256
  }
1240
- function St({
1257
+ function Mt({
1241
1258
  href: e,
1242
1259
  children: t
1243
1260
  }) {
1244
1261
  const {
1245
1262
  close: n,
1246
- highlightedId: r,
1263
+ highlightedId: s,
1247
1264
  setHighlightedId: o,
1248
- registerItem: x
1249
- } = ae(), i = _(), c = w(null), d = r === i;
1265
+ registerItem: l
1266
+ } = ae(), i = _(), c = w(null), d = s === i;
1250
1267
  return H(() => {
1251
1268
  const a = c.current;
1252
1269
  if (a)
1253
- return x(i, a);
1254
- }, [i, x]), /* @__PURE__ */ s("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...l(k.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
1255
- }
1256
- const An = {
1257
- Root: mt,
1258
- Trigger: bt,
1259
- Popup: yt,
1260
- Item: wt,
1261
- LinkItem: St
1262
- }, C = {
1270
+ return l(i, a);
1271
+ }, [i, l]), /* @__PURE__ */ r("a", { ref: c, id: i, href: e, onClick: n, role: "menuitem", onPointerEnter: () => o(i), ...x(k.a, P.item, P.linkItem, d && P.itemHighlighted), children: t });
1272
+ }
1273
+ const Nn = {
1274
+ Root: bt,
1275
+ Trigger: yt,
1276
+ Popup: wt,
1277
+ Item: St,
1278
+ LinkItem: Mt
1279
+ }, D = {
1263
1280
  root: {
1264
1281
  kVAEAm: "x1n2onr6",
1265
1282
  kVQacm: "xb3r6kr",
@@ -1352,14 +1369,14 @@ const An = {
1352
1369
  }]
1353
1370
  }, Ve = R(null);
1354
1371
  function ue() {
1355
- const e = O(Ve);
1372
+ const e = C(Ve);
1356
1373
  if (!e) throw new Error("ScrollArea compound components must be used within ScrollArea.Root");
1357
1374
  return e;
1358
1375
  }
1359
1376
  function jt() {
1360
- const e = w(null), t = w(null), [n, r] = G(0), [o, x] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [v, S] = G(0), [p, m] = G(!1), f = w(null), $ = W(() => {
1377
+ const e = w(null), t = w(null), [n, s] = G(0), [o, l] = G(0), [i, c] = G(0), [d, a] = G(0), [g, u] = G(0), [$, S] = G(0), [p, m] = G(!1), f = w(null), v = W(() => {
1361
1378
  const h = e.current;
1362
- h && (r(h.scrollTop), x(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1379
+ h && (s(h.scrollTop), l(h.scrollLeft), c(h.scrollHeight), a(h.scrollWidth), u(h.clientHeight), S(h.clientWidth), m(!0), f.current && clearTimeout(f.current), f.current = setTimeout(() => m(!1), 1e3));
1363
1380
  }, []);
1364
1381
  return H(() => {
1365
1382
  const h = e.current;
@@ -1371,10 +1388,10 @@ function jt() {
1371
1388
  }, []), H(() => {
1372
1389
  const h = e.current;
1373
1390
  if (h)
1374
- return h.addEventListener("scroll", $, {
1391
+ return h.addEventListener("scroll", v, {
1375
1392
  passive: !0
1376
- }), () => h.removeEventListener("scroll", $);
1377
- }, [$]), {
1393
+ }), () => h.removeEventListener("scroll", v);
1394
+ }, [v]), {
1378
1395
  viewportRef: e,
1379
1396
  contentRef: t,
1380
1397
  scrollTop: n,
@@ -1382,76 +1399,76 @@ function jt() {
1382
1399
  scrollHeight: i,
1383
1400
  scrollWidth: d,
1384
1401
  clientHeight: g,
1385
- clientWidth: v,
1402
+ clientWidth: $,
1386
1403
  scrolling: p
1387
1404
  };
1388
1405
  }
1389
- function Mt({
1406
+ function zt({
1390
1407
  children: e
1391
1408
  }) {
1392
1409
  const t = jt();
1393
- return /* @__PURE__ */ s(Ve.Provider, { value: t, children: /* @__PURE__ */ s("div", { ...l(k.div, C.root), children: e }) });
1410
+ return /* @__PURE__ */ r(Ve.Provider, { value: t, children: /* @__PURE__ */ r("div", { ...x(k.div, D.root), children: e }) });
1394
1411
  }
1395
- function zt({
1412
+ function It({
1396
1413
  children: e,
1397
1414
  maxHeight: t
1398
1415
  }) {
1399
1416
  const {
1400
1417
  viewportRef: n
1401
1418
  } = ue();
1402
- return /* @__PURE__ */ s("div", { ref: n, ...l(k.div, C.viewport, t != null && C.viewportMaxHeight(t)), children: e });
1419
+ return /* @__PURE__ */ r("div", { ref: n, ...x(k.div, D.viewport, t != null && D.viewportMaxHeight(t)), children: e });
1403
1420
  }
1404
- function It({
1421
+ function qt({
1405
1422
  children: e
1406
1423
  }) {
1407
1424
  const {
1408
1425
  contentRef: t
1409
1426
  } = ue();
1410
- return /* @__PURE__ */ s("div", { ref: t, ...l(k.div, C.content), children: e });
1427
+ return /* @__PURE__ */ r("div", { ref: t, ...x(k.div, D.content), children: e });
1411
1428
  }
1412
- function qt({
1429
+ function Wt({
1413
1430
  orientation: e = "vertical",
1414
1431
  children: t
1415
1432
  }) {
1416
1433
  const {
1417
1434
  scrolling: n,
1418
- scrollHeight: r,
1435
+ scrollHeight: s,
1419
1436
  scrollWidth: o,
1420
- clientHeight: x,
1437
+ clientHeight: l,
1421
1438
  clientWidth: i
1422
1439
  } = ue();
1423
- return (e === "vertical" ? r > x : o > i) ? /* @__PURE__ */ s("div", { ...l(k.div, C.scrollbar, e === "vertical" ? C.scrollbarVertical : C.scrollbarHorizontal, n ? C.scrollbarVisible : C.scrollbarHidden), children: t }) : null;
1440
+ return (e === "vertical" ? s > l : o > i) ? /* @__PURE__ */ r("div", { ...x(k.div, D.scrollbar, e === "vertical" ? D.scrollbarVertical : D.scrollbarHorizontal, n ? D.scrollbarVisible : D.scrollbarHidden), children: t }) : null;
1424
1441
  }
1425
- function Wt({
1442
+ function Ht({
1426
1443
  orientation: e = "vertical"
1427
1444
  }) {
1428
1445
  const {
1429
1446
  viewportRef: t,
1430
1447
  scrollTop: n,
1431
- scrollLeft: r,
1448
+ scrollLeft: s,
1432
1449
  scrollHeight: o,
1433
- scrollWidth: x,
1450
+ scrollWidth: l,
1434
1451
  clientHeight: i,
1435
1452
  clientWidth: c
1436
- } = ue(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", v = Math.max(u ? i / o * 100 : c / x * 100, 10), S = u ? o - i : x - c, p = u ? i : c, m = v / 100 * p, f = u ? n : r, $ = S > 0 ? f / S * (p - m) : 0, h = u ? C.thumbVertical(`${v}%`, `translateY(${$}px)`) : C.thumbHorizontal(`${v}%`, `translateX(${$}px)`), b = W((y) => {
1453
+ } = ue(), d = w(!1), a = w(0), g = w(0), u = e === "vertical", $ = Math.max(u ? i / o * 100 : c / l * 100, 10), S = u ? o - i : l - c, p = u ? i : c, m = $ / 100 * p, f = u ? n : s, v = S > 0 ? f / S * (p - m) : 0, h = u ? D.thumbVertical(`${$}%`, `translateY(${v}px)`) : D.thumbHorizontal(`${$}%`, `translateX(${v}px)`), b = W((y) => {
1437
1454
  y.preventDefault(), d.current = !0, a.current = u ? y.clientY : y.clientX, g.current = u ? t.current?.scrollTop ?? 0 : t.current?.scrollLeft ?? 0, y.target.setPointerCapture(y.pointerId);
1438
1455
  }, [u, t]), B = W((y) => {
1439
1456
  if (!d.current) return;
1440
1457
  const I = t.current;
1441
1458
  if (!I) return;
1442
- const j = (u ? y.clientY : y.clientX) - a.current, M = S / (p - m), J = j * M;
1459
+ const M = (u ? y.clientY : y.clientX) - a.current, j = S / (p - m), J = M * j;
1443
1460
  u ? I.scrollTop = g.current + J : I.scrollLeft = g.current + J;
1444
1461
  }, [u, S, p, m, t]), Q = W(() => {
1445
1462
  d.current = !1;
1446
1463
  }, []);
1447
- return /* @__PURE__ */ s("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...l(k.div, C.thumb, h) });
1464
+ return /* @__PURE__ */ r("div", { onPointerDown: b, onPointerMove: B, onPointerUp: Q, ...x(k.div, D.thumb, h) });
1448
1465
  }
1449
- const Nn = {
1450
- Root: Mt,
1451
- Viewport: zt,
1452
- Content: It,
1453
- Scrollbar: qt,
1454
- Thumb: Wt
1466
+ const On = {
1467
+ Root: zt,
1468
+ Viewport: It,
1469
+ Content: qt,
1470
+ Scrollbar: Wt,
1471
+ Thumb: Ht
1455
1472
  }, Y = {
1456
1473
  root: {
1457
1474
  kVAEAm: "x1n2onr6",
@@ -1552,146 +1569,146 @@ const Nn = {
1552
1569
  }
1553
1570
  }, Ae = R(null);
1554
1571
  function de() {
1555
- const e = O(Ae);
1572
+ const e = C(Ae);
1556
1573
  if (!e) throw new Error("Select compound components must be used within Select.Root");
1557
1574
  return e;
1558
1575
  }
1559
1576
  function be(e, t, n) {
1560
- const [r, o] = G(t), x = e !== void 0 ? e : r, i = W((c) => {
1577
+ const [s, o] = G(t), l = e !== void 0 ? e : s, i = W((c) => {
1561
1578
  e === void 0 && o(c), n?.(c);
1562
1579
  }, [e, n]);
1563
- return [x, i];
1580
+ return [l, i];
1564
1581
  }
1565
- function Ht({
1582
+ function Gt({
1566
1583
  defaultValue: e,
1567
1584
  value: t,
1568
1585
  onValueChange: n,
1569
- initialLabels: r
1586
+ initialLabels: s
1570
1587
  }) {
1571
- const [o, x] = be(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(r ?? {}), [g, u] = G(null), v = _(), S = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), $ = W(() => {
1588
+ const [o, l] = be(t, e ?? null, n), [i, c] = G(!1), [d, a] = G(s ?? {}), [g, u] = G(null), $ = _(), S = w(null), p = w(null), m = w(/* @__PURE__ */ new Map()), f = w([]), v = W(() => {
1572
1589
  c(!1), u(null), p.current?.focus();
1573
1590
  }, []), h = W(() => {
1574
1591
  c((y) => {
1575
1592
  if (y)
1576
1593
  u(null);
1577
1594
  else {
1578
- const I = m.current, j = f.current;
1579
- let M = null;
1580
- for (const J of j) {
1581
- const T = I.get(J);
1582
- if (T && T.value === o) {
1583
- M = J;
1595
+ const I = m.current, M = f.current;
1596
+ let j = null;
1597
+ for (const J of M) {
1598
+ const L = I.get(J);
1599
+ if (L && L.value === o) {
1600
+ j = J;
1584
1601
  break;
1585
1602
  }
1586
1603
  }
1587
- u(M ?? (j.length > 0 ? j[0] : null));
1604
+ u(j ?? (M.length > 0 ? M[0] : null));
1588
1605
  }
1589
1606
  return !y;
1590
1607
  });
1591
1608
  }, [o]), b = W((y, I) => {
1592
- a((j) => j[y] === I ? j : {
1593
- ...j,
1609
+ a((M) => M[y] === I ? M : {
1610
+ ...M,
1594
1611
  [y]: I
1595
1612
  });
1596
- }, []), B = W((y, I, j) => {
1613
+ }, []), B = W((y, I, M) => {
1597
1614
  m.current.set(y, {
1598
1615
  value: I,
1599
- element: j
1616
+ element: M
1600
1617
  });
1601
- const M = m.current, J = [...M.keys()];
1602
- return J.sort((T, K) => {
1603
- const je = M.get(T)?.element, Me = M.get(K)?.element;
1604
- return !je || !Me ? 0 : je.compareDocumentPosition(Me) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1618
+ const j = m.current, J = [...j.keys()];
1619
+ return J.sort((L, K) => {
1620
+ const Me = j.get(L)?.element, je = j.get(K)?.element;
1621
+ return !Me || !je ? 0 : Me.compareDocumentPosition(je) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1605
1622
  }), f.current = J, () => {
1606
- m.current.delete(y), f.current = f.current.filter((T) => T !== y);
1623
+ m.current.delete(y), f.current = f.current.filter((L) => L !== y);
1607
1624
  };
1608
1625
  }, []);
1609
1626
  return H(() => {
1610
1627
  const y = S.current;
1611
1628
  if (!y || !i) return;
1612
- function I(j) {
1613
- const M = f.current, J = m.current;
1614
- if (M.length !== 0)
1615
- switch (j.key) {
1629
+ function I(M) {
1630
+ const j = f.current, J = m.current;
1631
+ if (j.length !== 0)
1632
+ switch (M.key) {
1616
1633
  case "ArrowDown": {
1617
- j.preventDefault(), u((T) => {
1618
- const K = T ? M.indexOf(T) : -1;
1619
- return M[(K + 1) % M.length];
1634
+ M.preventDefault(), u((L) => {
1635
+ const K = L ? j.indexOf(L) : -1;
1636
+ return j[(K + 1) % j.length];
1620
1637
  });
1621
1638
  break;
1622
1639
  }
1623
1640
  case "ArrowUp": {
1624
- j.preventDefault(), u((T) => {
1625
- const K = T ? M.indexOf(T) : 0;
1626
- return M[(K - 1 + M.length) % M.length];
1641
+ M.preventDefault(), u((L) => {
1642
+ const K = L ? j.indexOf(L) : 0;
1643
+ return j[(K - 1 + j.length) % j.length];
1627
1644
  });
1628
1645
  break;
1629
1646
  }
1630
1647
  case "Home": {
1631
- j.preventDefault(), u(M[0]);
1648
+ M.preventDefault(), u(j[0]);
1632
1649
  break;
1633
1650
  }
1634
1651
  case "End": {
1635
- j.preventDefault(), u(M[M.length - 1]);
1652
+ M.preventDefault(), u(j[j.length - 1]);
1636
1653
  break;
1637
1654
  }
1638
1655
  case "Enter":
1639
1656
  case " ": {
1640
- j.preventDefault(), u((T) => {
1641
- if (T) {
1642
- const K = J.get(T);
1643
- K && (x(K.value), $());
1657
+ M.preventDefault(), u((L) => {
1658
+ if (L) {
1659
+ const K = J.get(L);
1660
+ K && (l(K.value), v());
1644
1661
  }
1645
- return T;
1662
+ return L;
1646
1663
  });
1647
1664
  break;
1648
1665
  }
1649
1666
  case "Escape":
1650
1667
  case "Tab": {
1651
- $();
1668
+ v();
1652
1669
  break;
1653
1670
  }
1654
1671
  }
1655
1672
  }
1656
1673
  return y.addEventListener("keydown", I), () => y.removeEventListener("keydown", I);
1657
- }, [i, $, x]), {
1658
- ctx: ve(() => ({
1674
+ }, [i, v, l]), {
1675
+ ctx: $e(() => ({
1659
1676
  open: i,
1660
1677
  toggle: h,
1661
- close: $,
1678
+ close: v,
1662
1679
  value: o,
1663
- setValue: x,
1680
+ setValue: l,
1664
1681
  labels: d,
1665
1682
  registerLabel: b,
1666
- listboxId: v,
1683
+ listboxId: $,
1667
1684
  highlightedId: g,
1668
1685
  setHighlightedId: u,
1669
1686
  registerItem: B,
1670
1687
  triggerRef: p
1671
- }), [i, h, $, o, x, d, b, v, g, u, B]),
1688
+ }), [i, h, v, o, l, d, b, $, g, u, B]),
1672
1689
  rootRef: S
1673
1690
  };
1674
1691
  }
1675
- function Gt({
1692
+ function Lt({
1676
1693
  name: e,
1677
1694
  defaultValue: t,
1678
1695
  value: n,
1679
- onValueChange: r,
1696
+ onValueChange: s,
1680
1697
  initialLabels: o,
1681
- children: x
1698
+ children: l
1682
1699
  }) {
1683
1700
  const {
1684
1701
  ctx: i,
1685
1702
  rootRef: c
1686
- } = Ht({
1703
+ } = Gt({
1687
1704
  defaultValue: t,
1688
1705
  value: n,
1689
- onValueChange: r,
1706
+ onValueChange: s,
1690
1707
  initialLabels: o
1691
1708
  });
1692
- return /* @__PURE__ */ s(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...l(k.div, Y.root), children: [
1693
- e && /* @__PURE__ */ s("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...l(k.input) }),
1694
- x
1709
+ return /* @__PURE__ */ r(Ae.Provider, { value: i, children: /* @__PURE__ */ z("div", { ref: c, ...x(k.div, Y.root), children: [
1710
+ e && /* @__PURE__ */ r("input", { type: "hidden", name: e, value: i.value ?? "", dir: "auto", ...x(k.input) }),
1711
+ l
1695
1712
  ] }) });
1696
1713
  }
1697
1714
  function Tt({
@@ -1700,13 +1717,13 @@ function Tt({
1700
1717
  const {
1701
1718
  open: t,
1702
1719
  toggle: n,
1703
- listboxId: r,
1720
+ listboxId: s,
1704
1721
  highlightedId: o,
1705
- triggerRef: x
1722
+ triggerRef: l
1706
1723
  } = de(), i = w(null);
1707
1724
  return H(() => {
1708
- x.current = i.current;
1709
- }), /* @__PURE__ */ s("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? r : void 0, "aria-activedescendant": o ?? void 0, ...l(k.button, Y.trigger), children: e });
1725
+ l.current = i.current;
1726
+ }), /* @__PURE__ */ r("button", { ref: i, type: "button", role: "combobox", onClick: n, "aria-expanded": t, "aria-haspopup": "listbox", "aria-controls": t ? s : void 0, "aria-activedescendant": o ?? void 0, ...x(k.button, Y.trigger), children: e });
1710
1727
  }
1711
1728
  function Et({
1712
1729
  placeholder: e
@@ -1714,66 +1731,66 @@ function Et({
1714
1731
  const {
1715
1732
  value: t,
1716
1733
  labels: n
1717
- } = de(), r = t ? n[t] ?? t : null;
1718
- return /* @__PURE__ */ s("span", { ...l(k.span, r ? Y.value : Y.placeholder), children: r ?? e });
1734
+ } = de(), s = t ? n[t] ?? t : null;
1735
+ return /* @__PURE__ */ r("span", { ...x(k.span, s ? Y.value : Y.placeholder), children: s ?? e });
1719
1736
  }
1720
- function Lt({
1737
+ function Vt({
1721
1738
  children: e
1722
1739
  }) {
1723
- return /* @__PURE__ */ s("span", { ...l(k.span, Y.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" }) }) });
1740
+ return /* @__PURE__ */ r("span", { ...x(k.span, Y.icon), children: e ?? /* @__PURE__ */ r("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__ */ r("path", { d: "M6 9l6 6 6-6" }) }) });
1724
1741
  }
1725
- function Vt({
1742
+ function At({
1726
1743
  children: e
1727
1744
  }) {
1728
1745
  const {
1729
1746
  open: t,
1730
1747
  close: n,
1731
- listboxId: r
1748
+ listboxId: s
1732
1749
  } = de();
1733
- return /* @__PURE__ */ z(D, { children: [
1734
- t && /* @__PURE__ */ s("div", { ...l(k.div, Y.backdrop), onClick: n }),
1735
- /* @__PURE__ */ s("div", { id: r, role: "listbox", "aria-hidden": !t, ...l(k.div, Y.popup, !t && Y.hidden), children: e })
1750
+ return /* @__PURE__ */ z(N, { children: [
1751
+ t && /* @__PURE__ */ r("div", { ...x(k.div, Y.backdrop), onClick: n }),
1752
+ /* @__PURE__ */ r("div", { id: s, role: "listbox", "aria-hidden": !t, ...x(k.div, Y.popup, !t && Y.hidden), children: e })
1736
1753
  ] });
1737
1754
  }
1738
- function At({
1755
+ function Nt({
1739
1756
  value: e,
1740
1757
  children: t
1741
1758
  }) {
1742
1759
  const {
1743
1760
  value: n,
1744
- setValue: r,
1761
+ setValue: s,
1745
1762
  close: o,
1746
- registerLabel: x,
1763
+ registerLabel: l,
1747
1764
  highlightedId: i,
1748
1765
  setHighlightedId: c,
1749
1766
  registerItem: d
1750
- } = de(), a = _(), g = w(null), u = n === e, v = i === a;
1767
+ } = de(), a = _(), g = w(null), u = n === e, $ = i === a;
1751
1768
  return H(() => {
1752
1769
  const p = g.current;
1753
1770
  if (!p) return;
1754
1771
  const m = p.textContent;
1755
- m && x(e, m);
1756
- }, [e, x]), H(() => {
1772
+ m && l(e, m);
1773
+ }, [e, l]), H(() => {
1757
1774
  const p = g.current;
1758
1775
  if (p)
1759
1776
  return d(a, e, p);
1760
- }, [a, e, d]), /* @__PURE__ */ s("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
1761
- r(e), o();
1762
- }, onPointerEnter: () => c(a), ...l(k.div, Y.item, u && Y.itemSelected, v && Y.itemHighlighted), children: t });
1777
+ }, [a, e, d]), /* @__PURE__ */ r("div", { ref: g, id: a, role: "option", "aria-selected": u, onClick: () => {
1778
+ s(e), o();
1779
+ }, onPointerEnter: () => c(a), ...x(k.div, Y.item, u && Y.itemSelected, $ && Y.itemHighlighted), children: t });
1763
1780
  }
1764
- function Nt({
1781
+ function Ot({
1765
1782
  children: e
1766
1783
  }) {
1767
- return /* @__PURE__ */ s("span", { ...l(k.span), children: e });
1784
+ return /* @__PURE__ */ r("span", { ...x(k.span), children: e });
1768
1785
  }
1769
- const On = {
1770
- Root: Gt,
1786
+ const Cn = {
1787
+ Root: Lt,
1771
1788
  Trigger: Tt,
1772
1789
  Value: Et,
1773
- Icon: Lt,
1774
- Popup: Vt,
1775
- Item: At,
1776
- ItemText: Nt
1790
+ Icon: Vt,
1791
+ Popup: At,
1792
+ Item: Nt,
1793
+ ItemText: Ot
1777
1794
  }, U = {
1778
1795
  root: {
1779
1796
  k1xSpc: "x78zum5",
@@ -1855,60 +1872,60 @@ const On = {
1855
1872
  }
1856
1873
  }, Ne = R(null);
1857
1874
  function Oe() {
1858
- const e = O(Ne);
1875
+ const e = C(Ne);
1859
1876
  if (!e) throw new Error("SideNav compound components must be used within SideNav.Root");
1860
1877
  return e;
1861
1878
  }
1862
- function Ot({
1879
+ function Ct({
1863
1880
  children: e,
1864
1881
  value: t,
1865
1882
  defaultValue: n,
1866
- onValueChange: r
1883
+ onValueChange: s
1867
1884
  }) {
1868
- const [o, x] = be(t, n ?? null, r ? (u) => {
1869
- u !== null && r(u);
1885
+ const [o, l] = be(t, n ?? null, s ? (u) => {
1886
+ u !== null && s(u);
1870
1887
  } : void 0), [i, c] = G(/* @__PURE__ */ new Set()), d = w([]), a = W((u) => {
1871
- c((v) => {
1872
- const S = new Set(v);
1888
+ c(($) => {
1889
+ const S = new Set($);
1873
1890
  return S.has(u) ? S.delete(u) : S.add(u), S;
1874
1891
  });
1875
1892
  }, []), g = W((u) => (d.current.includes(u) || d.current.push(u), () => {
1876
- d.current = d.current.filter((v) => v !== u);
1893
+ d.current = d.current.filter(($) => $ !== u);
1877
1894
  }), []);
1878
1895
  return H(() => {
1879
1896
  o && c((u) => u);
1880
- }, [o]), /* @__PURE__ */ s(Ne.Provider, { value: {
1897
+ }, [o]), /* @__PURE__ */ r(Ne.Provider, { value: {
1881
1898
  activeValue: o,
1882
- onSelect: x,
1899
+ onSelect: l,
1883
1900
  expandedGroups: i,
1884
1901
  toggleGroup: a,
1885
1902
  registerItem: g,
1886
1903
  orderRef: d
1887
- }, children: /* @__PURE__ */ s("nav", { role: "navigation", ...l(k.nav, U.root), children: e }) });
1904
+ }, children: /* @__PURE__ */ r("nav", { role: "navigation", ...x(k.nav, U.root), children: e }) });
1888
1905
  }
1889
1906
  function Bt({
1890
1907
  children: e,
1891
1908
  label: t,
1892
1909
  groupKey: n,
1893
- defaultExpanded: r
1910
+ defaultExpanded: s
1894
1911
  }) {
1895
1912
  const o = n ?? t, {
1896
- expandedGroups: x,
1913
+ expandedGroups: l,
1897
1914
  toggleGroup: i,
1898
1915
  activeValue: c
1899
- } = Oe(), d = x.has(o), a = w(null);
1916
+ } = Oe(), d = l.has(o), a = w(null);
1900
1917
  H(() => {
1901
- if (!c || x.has(o)) return;
1918
+ if (!c || l.has(o)) return;
1902
1919
  const u = a.current;
1903
1920
  if (!u) return;
1904
1921
  u.querySelector(`[data-nav-value="${c}"]`) && i(o);
1905
- }, [c, o, x, i]), H(() => {
1906
- r && !x.has(o) && i(o);
1922
+ }, [c, o, l, i]), H(() => {
1923
+ s && !l.has(o) && i(o);
1907
1924
  }, []);
1908
1925
  const g = !c || !a.current ? !1 : !!a.current.querySelector(`[data-nav-value="${c}"]`);
1909
- return /* @__PURE__ */ z("div", { ref: a, ...l(k.div, U.group), children: [
1910
- /* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...l(k.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
1911
- /* @__PURE__ */ s("span", { ...l(k.span, U.chevron, d && U.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" }) }) }),
1926
+ return /* @__PURE__ */ z("div", { ref: a, ...x(k.div, U.group), children: [
1927
+ /* @__PURE__ */ z("button", { type: "button", onClick: () => i(o), ...x(k.button, U.groupTrigger, g && U.groupTriggerActive), "aria-expanded": d, children: [
1928
+ /* @__PURE__ */ r("span", { ...x(k.span, U.chevron, d && U.chevronOpen), children: /* @__PURE__ */ r("svg", { width: 10, height: 10, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ r("path", { d: "M9 18l6-6-6-6" }) }) }),
1912
1929
  t
1913
1930
  ] }),
1914
1931
  d && e
@@ -1920,13 +1937,13 @@ function Dt({
1920
1937
  }) {
1921
1938
  const {
1922
1939
  activeValue: n,
1923
- onSelect: r,
1940
+ onSelect: s,
1924
1941
  registerItem: o
1925
- } = Oe(), x = n === e;
1926
- return H(() => o(e), [e, o]), /* @__PURE__ */ s("button", { type: "button", "data-nav-value": e, onClick: () => r(e), ...l(k.button, U.item, x && U.itemActive), "aria-current": x ? "page" : void 0, children: t });
1942
+ } = Oe(), l = n === e;
1943
+ return H(() => o(e), [e, o]), /* @__PURE__ */ r("button", { type: "button", "data-nav-value": e, onClick: () => s(e), ...x(k.button, U.item, l && U.itemActive), "aria-current": l ? "page" : void 0, children: t });
1927
1944
  }
1928
1945
  const Bn = {
1929
- Root: Ot,
1946
+ Root: Ct,
1930
1947
  Group: Bt,
1931
1948
  Item: Dt
1932
1949
  }, se = {
@@ -1973,7 +1990,7 @@ const Bn = {
1973
1990
  kMcinP: "xzpqnlu",
1974
1991
  $$css: !0
1975
1992
  }
1976
- }, Ct = {
1993
+ }, Rt = {
1977
1994
  sm: se.sm,
1978
1995
  md: se.md,
1979
1996
  lg: se.lg
@@ -1982,9 +1999,9 @@ function Dn({
1982
1999
  size: e = "md",
1983
2000
  label: t = "Loading"
1984
2001
  }) {
1985
- return /* @__PURE__ */ z("div", { role: "status", ...l(k.div, se.root), children: [
1986
- /* @__PURE__ */ s("div", { ...l(k.div, se.spinner, Ct[e]), "aria-hidden": !0 }),
1987
- /* @__PURE__ */ s("span", { ...l(k.span, se.srOnly), children: t })
2002
+ return /* @__PURE__ */ z("div", { role: "status", ...x(k.div, se.root), children: [
2003
+ /* @__PURE__ */ r("div", { ...x(k.div, se.spinner, Rt[e]), "aria-hidden": !0 }),
2004
+ /* @__PURE__ */ r("span", { ...x(k.span, se.srOnly), children: t })
1988
2005
  ] });
1989
2006
  }
1990
2007
  const ze = {
@@ -2016,14 +2033,14 @@ const ze = {
2016
2033
  $$css: !0
2017
2034
  }
2018
2035
  };
2019
- function Cn({
2036
+ function Rn({
2020
2037
  name: e,
2021
2038
  size: t = 48,
2022
2039
  variant: n = "muted"
2023
2040
  }) {
2024
- return /* @__PURE__ */ s("div", { ...l(k.div, ze.root, ze[n]), children: /* @__PURE__ */ s($e, { name: e, size: t }) });
2041
+ return /* @__PURE__ */ r("div", { ...x(k.div, ze.root, ze[n]), children: /* @__PURE__ */ r(ve, { name: e, size: t }) });
2025
2042
  }
2026
- const Rt = {
2043
+ const Xt = {
2027
2044
  kumcoG: "xqketvx",
2028
2045
  $$css: !0
2029
2046
  }, V = {
@@ -2102,51 +2119,51 @@ const Rt = {
2102
2119
  kWqL5O: "xgfja2r",
2103
2120
  $$css: !0
2104
2121
  },
2105
- gridColumns: (e) => [Rt, {
2122
+ gridColumns: (e) => [Xt, {
2106
2123
  "--x-gridTemplateColumns": `repeat(${e}, 1fr)` != null ? `repeat(${e}, 1fr)` : void 0
2107
2124
  }]
2108
- }, Be = R(null);
2125
+ }, Ce = R(null);
2109
2126
  function ge() {
2110
- const e = O(Be);
2127
+ const e = C(Ce);
2111
2128
  if (!e) throw new Error("Table compound components must be used within Table.Root");
2112
2129
  return e;
2113
2130
  }
2114
2131
  const ye = R(!1);
2115
- function Xt({
2132
+ function Yt({
2116
2133
  children: e,
2117
2134
  variant: t = "default",
2118
2135
  size: n = "md",
2119
- columns: r
2136
+ columns: s
2120
2137
  }) {
2121
- return /* @__PURE__ */ s(Be.Provider, { value: {
2138
+ return /* @__PURE__ */ r(Ce.Provider, { value: {
2122
2139
  variant: t,
2123
2140
  size: n,
2124
- columns: r,
2141
+ columns: s,
2125
2142
  isHeader: !1
2126
- }, children: /* @__PURE__ */ s("div", { role: "table", ...l(k.div, V.root), children: e }) });
2143
+ }, children: /* @__PURE__ */ r("div", { role: "table", ...x(k.div, V.root), children: e }) });
2127
2144
  }
2128
- function Yt({
2145
+ function Jt({
2129
2146
  children: e
2130
2147
  }) {
2131
- return /* @__PURE__ */ s(ye.Provider, { value: !0, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...l(k.div, V.header), children: e }) });
2148
+ return /* @__PURE__ */ r(ye.Provider, { value: !0, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div, V.header), children: e }) });
2132
2149
  }
2133
- function Jt({
2150
+ function Pt({
2134
2151
  children: e
2135
2152
  }) {
2136
2153
  const {
2137
2154
  variant: t
2138
2155
  } = ge(), n = qe.toArray(e);
2139
- return /* @__PURE__ */ s(ye.Provider, { value: !1, children: /* @__PURE__ */ s("div", { role: "rowgroup", ...l(k.div), children: n.map((r, o) => t === "striped" ? /* @__PURE__ */ s(De.Provider, { value: o, children: r }, o) : r) }) });
2156
+ return /* @__PURE__ */ r(ye.Provider, { value: !1, children: /* @__PURE__ */ r("div", { role: "rowgroup", ...x(k.div), children: n.map((s, o) => t === "striped" ? /* @__PURE__ */ r(Be.Provider, { value: o, children: s }, o) : s) }) });
2140
2157
  }
2141
- const De = R(-1);
2142
- function Pt({
2158
+ const Be = R(-1);
2159
+ function Ft({
2143
2160
  children: e
2144
2161
  }) {
2145
2162
  const {
2146
2163
  variant: t,
2147
2164
  columns: n
2148
- } = ge(), r = O(ye), o = O(De), x = o >= 0 && o % 2 === 1, i = qe.toArray(e);
2149
- return /* @__PURE__ */ s("div", { role: "row", ...l(k.div, V.row, V.gridColumns(n), !r && V.bodyRow, !r && t === "striped" && x && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ s(we.Provider, { value: {
2165
+ } = ge(), s = C(ye), o = C(Be), l = o >= 0 && o % 2 === 1, i = qe.toArray(e);
2166
+ return /* @__PURE__ */ r("div", { role: "row", ...x(k.div, V.row, V.gridColumns(n), !s && V.bodyRow, !s && t === "striped" && l && V.stripedEven), children: t === "bordered" ? i.map((c, d) => /* @__PURE__ */ r(we.Provider, { value: {
2150
2167
  index: d,
2151
2168
  total: i.length
2152
2169
  }, children: c }, d)) : e });
@@ -2155,37 +2172,37 @@ const we = R({
2155
2172
  index: 0,
2156
2173
  total: 0
2157
2174
  });
2158
- function Ft({
2175
+ function Qt({
2159
2176
  children: e
2160
2177
  }) {
2161
2178
  const {
2162
2179
  size: t,
2163
2180
  variant: n
2164
2181
  } = ge(), {
2165
- index: r,
2182
+ index: s,
2166
2183
  total: o
2167
- } = O(we), x = n === "bordered" && r === o - 1;
2168
- return /* @__PURE__ */ s("div", { role: "columnheader", ...l(k.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, x && V.borderedCellLast), children: e });
2184
+ } = C(we), l = n === "bordered" && s === o - 1;
2185
+ return /* @__PURE__ */ r("div", { role: "columnheader", ...x(k.div, V.headerCell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
2169
2186
  }
2170
- function Qt({
2187
+ function Kt({
2171
2188
  children: e
2172
2189
  }) {
2173
2190
  const {
2174
2191
  size: t,
2175
2192
  variant: n
2176
2193
  } = ge(), {
2177
- index: r,
2194
+ index: s,
2178
2195
  total: o
2179
- } = O(we), x = n === "bordered" && r === o - 1;
2180
- return /* @__PURE__ */ s("div", { role: "cell", ...l(k.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, x && V.borderedCellLast), children: e });
2181
- }
2182
- const Rn = {
2183
- Root: Xt,
2184
- Header: Yt,
2185
- Body: Jt,
2186
- Row: Pt,
2187
- HeaderCell: Ft,
2188
- Cell: Qt
2196
+ } = C(we), l = n === "bordered" && s === o - 1;
2197
+ return /* @__PURE__ */ r("div", { role: "cell", ...x(k.div, V.cell, t === "sm" ? V.cellSm : V.cellMd, n === "bordered" && V.borderedCell, l && V.borderedCellLast), children: e });
2198
+ }
2199
+ const Xn = {
2200
+ Root: Yt,
2201
+ Header: Jt,
2202
+ Body: Pt,
2203
+ Row: Ft,
2204
+ HeaderCell: Qt,
2205
+ Cell: Kt
2189
2206
  }, X = {
2190
2207
  root: {
2191
2208
  k1xSpc: "x78zum5",
@@ -2274,71 +2291,71 @@ const Rn = {
2274
2291
  kE3dHu: "x107tsa6",
2275
2292
  $$css: !0
2276
2293
  }
2277
- }, Ce = R(null);
2294
+ }, De = R(null);
2278
2295
  function Se() {
2279
- const e = O(Ce);
2296
+ const e = C(De);
2280
2297
  if (!e) throw new Error("Tabs compound components must be used within Tabs.Root");
2281
2298
  return e;
2282
2299
  }
2283
- function Kt({
2300
+ function Ut({
2284
2301
  value: e,
2285
2302
  defaultValue: t,
2286
2303
  onValueChange: n,
2287
- orientation: r = "horizontal"
2304
+ orientation: s = "horizontal"
2288
2305
  }) {
2289
- const [o, x] = be(e, t ?? null, n ? (a) => {
2306
+ const [o, l] = be(e, t ?? null, n ? (a) => {
2290
2307
  a !== null && n(a);
2291
2308
  } : void 0), i = w(/* @__PURE__ */ new Map()), c = w([]), d = W((a, g) => (i.current.set(a, g), c.current.includes(a) || c.current.push(a), () => {
2292
2309
  i.current.delete(a), c.current = c.current.filter((u) => u !== a);
2293
2310
  }), []);
2294
2311
  return {
2295
2312
  activeValue: o,
2296
- onSelect: x,
2297
- orientation: r,
2313
+ onSelect: l,
2314
+ orientation: s,
2298
2315
  registerTab: d,
2299
2316
  tabsRef: i,
2300
2317
  orderRef: c
2301
2318
  };
2302
2319
  }
2303
- function Ut({
2320
+ function _t({
2304
2321
  children: e,
2305
2322
  value: t,
2306
2323
  defaultValue: n,
2307
- onValueChange: r,
2324
+ onValueChange: s,
2308
2325
  orientation: o = "horizontal"
2309
2326
  }) {
2310
- const x = Kt({
2327
+ const l = Ut({
2311
2328
  value: t,
2312
2329
  defaultValue: n,
2313
- onValueChange: r,
2330
+ onValueChange: s,
2314
2331
  orientation: o
2315
2332
  });
2316
- return /* @__PURE__ */ s(Ce.Provider, { value: x, children: /* @__PURE__ */ s("div", { ...l(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
2333
+ return /* @__PURE__ */ r(De.Provider, { value: l, children: /* @__PURE__ */ r("div", { ...x(k.div, X.root, o === "vertical" && X.rootVertical), children: e }) });
2317
2334
  }
2318
- function _t({
2335
+ function Zt({
2319
2336
  children: e
2320
2337
  }) {
2321
2338
  const {
2322
2339
  orientation: t,
2323
2340
  activeValue: n,
2324
- onSelect: r,
2341
+ onSelect: s,
2325
2342
  tabsRef: o,
2326
- orderRef: x
2343
+ orderRef: l
2327
2344
  } = Se(), i = w(null);
2328
2345
  return H(() => {
2329
2346
  const c = i.current;
2330
2347
  if (!c) return;
2331
2348
  function d(a) {
2332
- const g = x.current, u = o.current;
2349
+ const g = l.current, u = o.current;
2333
2350
  if (g.length === 0) return;
2334
- const v = this, S = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2351
+ const $ = this, S = t === "horizontal" ? "ArrowLeft" : "ArrowUp", p = t === "horizontal" ? "ArrowRight" : "ArrowDown";
2335
2352
  let m = null;
2336
2353
  switch (a.key) {
2337
2354
  case p: {
2338
2355
  a.preventDefault();
2339
2356
  const f = n ? g.indexOf(n) : -1;
2340
- for (let $ = 1; $ <= g.length; $++) {
2341
- const h = (f + $) % g.length, b = g[h];
2357
+ for (let v = 1; v <= g.length; v++) {
2358
+ const h = (f + v) % g.length, b = g[h];
2342
2359
  if (!u.get(b)) {
2343
2360
  m = b;
2344
2361
  break;
@@ -2349,8 +2366,8 @@ function _t({
2349
2366
  case S: {
2350
2367
  a.preventDefault();
2351
2368
  const f = n ? g.indexOf(n) : 0;
2352
- for (let $ = 1; $ <= g.length; $++) {
2353
- const h = (f - $ + g.length) % g.length, b = g[h];
2369
+ for (let v = 1; v <= g.length; v++) {
2370
+ const h = (f - v + g.length) % g.length, b = g[h];
2354
2371
  if (!u.get(b)) {
2355
2372
  m = b;
2356
2373
  break;
@@ -2377,41 +2394,41 @@ function _t({
2377
2394
  break;
2378
2395
  }
2379
2396
  }
2380
- m && (r(m), v.querySelector(`[data-tab-value="${m}"]`)?.focus());
2397
+ m && (s(m), $.querySelector(`[data-tab-value="${m}"]`)?.focus());
2381
2398
  }
2382
2399
  return c.addEventListener("keydown", d), () => c.removeEventListener("keydown", d);
2383
- }, [t, n, r, o, x]), /* @__PURE__ */ s("div", { ref: i, role: "tablist", "aria-orientation": t, ...l(k.div, X.list, t === "vertical" && X.listVertical), children: e });
2400
+ }, [t, n, s, o, l]), /* @__PURE__ */ r("div", { ref: i, role: "tablist", "aria-orientation": t, ...x(k.div, X.list, t === "vertical" && X.listVertical), children: e });
2384
2401
  }
2385
- function Zt({
2402
+ function en({
2386
2403
  value: e,
2387
2404
  disabled: t = !1,
2388
2405
  children: n
2389
2406
  }) {
2390
2407
  const {
2391
- activeValue: r,
2408
+ activeValue: s,
2392
2409
  onSelect: o,
2393
- orientation: x,
2410
+ orientation: l,
2394
2411
  registerTab: i
2395
- } = Se(), c = r === e, d = _(), a = `${d}-panel`;
2396
- return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ s("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
2412
+ } = Se(), c = s === e, d = _(), a = `${d}-panel`;
2413
+ return H(() => i(e, t), [e, t, i]), /* @__PURE__ */ r("button", { type: "button", role: "tab", id: d, "aria-selected": c, "aria-controls": a, "aria-disabled": t || void 0, "data-tab-value": e, tabIndex: c ? 0 : -1, onClick: () => {
2397
2414
  t || o(e);
2398
- }, ...l(k.button, X.tab, x === "vertical" && X.tabVertical, c && (x === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
2415
+ }, ...x(k.button, X.tab, l === "vertical" && X.tabVertical, c && (l === "vertical" ? X.tabActiveVertical : X.tabActiveHorizontal), t && X.tabDisabled), children: n });
2399
2416
  }
2400
- function en({
2417
+ function tn({
2401
2418
  value: e,
2402
2419
  children: t
2403
2420
  }) {
2404
2421
  const {
2405
2422
  activeValue: n,
2406
- orientation: r
2423
+ orientation: s
2407
2424
  } = Se();
2408
- return n !== e ? null : /* @__PURE__ */ s("div", { role: "tabpanel", ...l(k.div, X.panel, r === "vertical" && X.panelVertical), children: t });
2425
+ return n !== e ? null : /* @__PURE__ */ r("div", { role: "tabpanel", ...x(k.div, X.panel, s === "vertical" && X.panelVertical), children: t });
2409
2426
  }
2410
- const Xn = {
2411
- Root: Ut,
2412
- List: _t,
2413
- Tab: Zt,
2414
- Panel: en
2427
+ const Yn = {
2428
+ Root: _t,
2429
+ List: Zt,
2430
+ Tab: en,
2431
+ Panel: tn
2415
2432
  }, Ie = {
2416
2433
  base: {
2417
2434
  kzqmXN: "xh8yej3",
@@ -2446,21 +2463,21 @@ const Xn = {
2446
2463
  $$css: !0
2447
2464
  }
2448
2465
  };
2449
- function Yn({
2466
+ function Jn({
2450
2467
  variant: e = "default",
2451
2468
  name: t,
2452
2469
  placeholder: n,
2453
- required: r,
2470
+ required: s,
2454
2471
  rows: o = 3,
2455
- value: x,
2472
+ value: l,
2456
2473
  defaultValue: i,
2457
2474
  disabled: c,
2458
2475
  onChange: d
2459
2476
  }) {
2460
2477
  const a = ie();
2461
- return /* @__PURE__ */ s("textarea", { id: a?.controlId, name: t, placeholder: n, required: r, rows: o, value: x, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || e === "error" || void 0, onChange: d, ...l(k.textarea, Ie.base, Ie[e]), dir: "auto" });
2478
+ return /* @__PURE__ */ r("textarea", { id: a?.controlId, name: t, placeholder: n, required: s, rows: o, value: l, defaultValue: i, disabled: c, "aria-describedby": a ? `${a.descriptionId} ${a.invalid ? a.errorId : ""}`.trim() : void 0, "aria-invalid": a?.invalid || e === "error" || void 0, onChange: d, ...x(k.textarea, Ie.base, Ie[e]), dir: "auto" });
2462
2479
  }
2463
- const Jn = {
2480
+ const Pn = {
2464
2481
  bg: "var(--bg-xqkwqtp)",
2465
2482
  bgCard: "var(--bgCard-xj2l5r)",
2466
2483
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -2489,7 +2506,7 @@ const Jn = {
2489
2506
  infoBorder: "var(--infoBorder-xnevk3x)",
2490
2507
  infoText: "var(--infoText-x19pseus)",
2491
2508
  __varGroupHash__: "xjvd03b"
2492
- }, Pn = {
2509
+ }, Fn = {
2493
2510
  xs: "var(--xs-xxfyjsd)",
2494
2511
  sm: "var(--sm-xbh8y7f)",
2495
2512
  ms: "var(--ms-x13y09zs)",
@@ -2499,13 +2516,13 @@ const Jn = {
2499
2516
  xxl: "var(--xxl-xbe9eha)",
2500
2517
  xxxl: "var(--xxxl-xroalp5)",
2501
2518
  __varGroupHash__: "x6uc9q"
2502
- }, Fn = {
2519
+ }, Qn = {
2503
2520
  sm: "var(--sm-x1bhtfs5)",
2504
2521
  md: "var(--md-xx2g89g)",
2505
2522
  lg: "var(--lg-xwd56yl)",
2506
2523
  full: "var(--full-x9vxdtd)",
2507
2524
  __varGroupHash__: "xw3ffwm"
2508
- }, Qn = {
2525
+ }, Kn = {
2509
2526
  stackXs: "var(--stackXs-x1qfrfo2)",
2510
2527
  stackSm: "var(--stackSm-x2rk1ut)",
2511
2528
  stackMd: "var(--stackMd-xhblkt4)",
@@ -2519,7 +2536,7 @@ const Jn = {
2519
2536
  containerMd: "var(--containerMd-x170dvin)",
2520
2537
  containerLg: "var(--containerLg-x1n6aasq)",
2521
2538
  __varGroupHash__: "x16nfoyr"
2522
- }, Kn = {
2539
+ }, Un = {
2523
2540
  fontFamily: "var(--fontFamily-xvrmnat)",
2524
2541
  fontFamilyMono: "var(--fontFamilyMono-x1bzqfky)",
2525
2542
  fontSizeXs: "var(--fontSizeXs-x1w5m325)",
@@ -2534,7 +2551,7 @@ const Jn = {
2534
2551
  fontWeightBold: "var(--fontWeightBold-x1pjkvwg)",
2535
2552
  lineHeight: "var(--lineHeight-x1gubzd5)",
2536
2553
  __varGroupHash__: "xs62swl"
2537
- }, Un = {
2554
+ }, _n = {
2538
2555
  fontSize1: "var(--fontSize1-xx27tux)",
2539
2556
  fontSize2: "var(--fontSize2-x5hag8h)",
2540
2557
  fontSize3: "var(--fontSize3-x1mf6j39)",
@@ -2560,7 +2577,7 @@ const Jn = {
2560
2577
  letterSpacingNormal: "var(--letterSpacingNormal-x1ih41v1)",
2561
2578
  letterSpacingWide: "var(--letterSpacingWide-xt8z9rj)",
2562
2579
  __varGroupHash__: "x4cj49w"
2563
- }, _n = {
2580
+ }, Zn = {
2564
2581
  bodySm: {
2565
2582
  "fontFamily-kMv6JI": "fontFamily-xce2pww",
2566
2583
  "fontSize-kGuDYH": "fontSize-x1hn3ytp",
@@ -2674,38 +2691,38 @@ const Jn = {
2674
2691
  "letterSpacing-kb6lSQ": "letterSpacing-xql2p2a",
2675
2692
  $$css: "tokens/type-presets.css.ts:104"
2676
2693
  }
2677
- }, Zn = {
2694
+ }, er = {
2678
2695
  sm: "var(--sm-x17hhtln)",
2679
2696
  md: "var(--md-x1oyt0aw)",
2680
2697
  lg: "var(--lg-x1mxd62i)",
2681
2698
  __varGroupHash__: "x13v825q"
2682
- }, tn = {
2699
+ }, nn = {
2683
2700
  xjvd03b: "xrtwk39 xjvd03b",
2684
2701
  $$css: !0
2685
- }, nn = {
2702
+ }, rn = {
2686
2703
  x13v825q: "xv9ibj0 x13v825q",
2687
2704
  $$css: !0
2688
- }, rn = {
2705
+ }, sn = {
2689
2706
  xjvd03b: "xaveibd xjvd03b",
2690
2707
  $$css: !0
2691
- }, sn = {
2708
+ }, on = {
2692
2709
  x13v825q: "x15e39jv x13v825q",
2693
2710
  $$css: !0
2694
- }, on = {
2695
- light: [tn, nn],
2696
- "high-contrast": [rn, sn]
2697
2711
  }, cn = {
2712
+ light: [nn, rn],
2713
+ "high-contrast": [sn, on]
2714
+ }, ln = {
2698
2715
  root: {
2699
2716
  k1xSpc: "xjp7ctv",
2700
2717
  $$css: !0
2701
2718
  }
2702
2719
  };
2703
- function er({
2720
+ function tr({
2704
2721
  theme: e = "dark",
2705
2722
  children: t
2706
2723
  }) {
2707
- const n = on[e], r = [n?.[0], n?.[1], cn.root];
2708
- return /* @__PURE__ */ s("div", { ...l(k.div, r), children: t });
2724
+ const n = cn[e], s = [n?.[0], n?.[1], ln.root];
2725
+ return /* @__PURE__ */ r("div", { ...x(k.div, s), children: t });
2709
2726
  }
2710
2727
  const F = {
2711
2728
  default: {
@@ -2771,22 +2788,22 @@ const F = {
2771
2788
  medium: F.weightMedium,
2772
2789
  semibold: F.weightSemibold,
2773
2790
  bold: F.weightBold
2774
- }, ln = {
2791
+ }, kn = {
2775
2792
  start: F.alignStart,
2776
2793
  center: F.alignCenter,
2777
2794
  end: F.alignEnd
2778
2795
  };
2779
- function tr({
2796
+ function nr({
2780
2797
  variant: e = "bodyMd",
2781
2798
  color: t = "default",
2782
2799
  weight: n,
2783
- align: r,
2800
+ align: s,
2784
2801
  truncate: o,
2785
- as: x = "span",
2802
+ as: l = "span",
2786
2803
  children: i
2787
2804
  }) {
2788
- const c = [Ge[e], F[t], n && xn[n], r && ln[r], o && F.truncate];
2789
- return x === "p" ? /* @__PURE__ */ s("p", { ...l(k.p, c), children: i }) : x === "div" ? /* @__PURE__ */ s("div", { ...l(k.div, c), children: i }) : /* @__PURE__ */ s("span", { ...l(k.span, c), children: i });
2805
+ const c = [Ge[e], F[t], n && xn[n], s && kn[s], o && F.truncate];
2806
+ return l === "p" ? /* @__PURE__ */ r("p", { ...x(k.p, c), children: i }) : l === "div" ? /* @__PURE__ */ r("div", { ...x(k.div, c), children: i }) : /* @__PURE__ */ r("span", { ...x(k.span, c), children: i });
2790
2807
  }
2791
2808
  const fe = {
2792
2809
  root: {
@@ -2844,48 +2861,48 @@ const fe = {
2844
2861
  $$css: !0
2845
2862
  }
2846
2863
  }, Re = R(null);
2847
- function kn() {
2848
- const e = O(Re);
2864
+ function an() {
2865
+ const e = C(Re);
2849
2866
  if (!e) throw new Error("Tooltip compound components must be used within Tooltip.Root");
2850
2867
  return e;
2851
2868
  }
2852
- function an({
2869
+ function un({
2853
2870
  children: e,
2854
2871
  content: t,
2855
2872
  placement: n = "top",
2856
- delay: r = 300
2873
+ delay: s = 300
2857
2874
  }) {
2858
- const [o, x] = G(!1), i = _(), c = w(null), d = W(() => {
2859
- c.current && clearTimeout(c.current), c.current = setTimeout(() => x(!0), r);
2860
- }, [r]), a = W(() => {
2861
- c.current && clearTimeout(c.current), c.current = null, x(!1);
2875
+ const [o, l] = G(!1), i = _(), c = w(null), d = W(() => {
2876
+ c.current && clearTimeout(c.current), c.current = setTimeout(() => l(!0), s);
2877
+ }, [s]), a = W(() => {
2878
+ c.current && clearTimeout(c.current), c.current = null, l(!1);
2862
2879
  }, []);
2863
- return /* @__PURE__ */ s(Re.Provider, { value: {
2880
+ return /* @__PURE__ */ r(Re.Provider, { value: {
2864
2881
  open: o,
2865
2882
  show: d,
2866
2883
  hide: a,
2867
2884
  tooltipId: i,
2868
2885
  placement: n
2869
- }, children: /* @__PURE__ */ z("div", { ...l(k.div, fe.root), children: [
2886
+ }, children: /* @__PURE__ */ z("div", { ...x(k.div, fe.root), children: [
2870
2887
  e,
2871
- o && /* @__PURE__ */ s("div", { id: i, role: "tooltip", ...l(k.div, fe.popup, fe[n]), children: t })
2888
+ o && /* @__PURE__ */ r("div", { id: i, role: "tooltip", ...x(k.div, fe.popup, fe[n]), children: t })
2872
2889
  ] }) });
2873
2890
  }
2874
- function un({
2891
+ function dn({
2875
2892
  children: e
2876
2893
  }) {
2877
2894
  const {
2878
2895
  open: t,
2879
2896
  show: n,
2880
- hide: r,
2897
+ hide: s,
2881
2898
  tooltipId: o
2882
- } = kn();
2883
- return /* @__PURE__ */ s("div", { onPointerEnter: n, onPointerLeave: r, onFocus: n, onBlur: r, "aria-describedby": t ? o : void 0, ...l(k.div), children: e });
2899
+ } = an();
2900
+ return /* @__PURE__ */ r("div", { onPointerEnter: n, onPointerLeave: s, onFocus: n, onBlur: s, "aria-describedby": t ? o : void 0, ...x(k.div), children: e });
2884
2901
  }
2885
- const nr = {
2886
- Root: an,
2887
- Trigger: un
2888
- }, N = {
2902
+ const rr = {
2903
+ Root: un,
2904
+ Trigger: dn
2905
+ }, O = {
2889
2906
  base: {
2890
2907
  k1xSpc: "x78zum5",
2891
2908
  kXwgrk: "xdt5ytf",
@@ -2939,27 +2956,27 @@ const nr = {
2939
2956
  kOIVth: "x281kem",
2940
2957
  $$css: !0
2941
2958
  }
2942
- }, dn = {
2943
- xs: N.gapXs,
2944
- sm: N.gapSm,
2945
- ms: N.gapMs,
2946
- md: N.gapMd,
2947
- lg: N.gapLg,
2948
- xl: N.gapXl,
2949
- xxl: N.gapXxl,
2950
- xxxl: N.gapXxxl
2951
2959
  }, gn = {
2952
- start: N.alignStart,
2953
- center: N.alignCenter,
2954
- end: N.alignEnd,
2955
- stretch: N.alignStretch
2960
+ xs: O.gapXs,
2961
+ sm: O.gapSm,
2962
+ ms: O.gapMs,
2963
+ md: O.gapMd,
2964
+ lg: O.gapLg,
2965
+ xl: O.gapXl,
2966
+ xxl: O.gapXxl,
2967
+ xxxl: O.gapXxxl
2968
+ }, hn = {
2969
+ start: O.alignStart,
2970
+ center: O.alignCenter,
2971
+ end: O.alignEnd,
2972
+ stretch: O.alignStretch
2956
2973
  };
2957
- function rr({
2974
+ function sr({
2958
2975
  gap: e = "md",
2959
2976
  align: t = "stretch",
2960
2977
  children: n
2961
2978
  }) {
2962
- return /* @__PURE__ */ s("div", { ...l(k.div, N.base, dn[e], gn[t]), children: n });
2979
+ return /* @__PURE__ */ r("div", { ...x(k.div, O.base, gn[e], hn[t]), children: n });
2963
2980
  }
2964
2981
  const q = {
2965
2982
  base: {
@@ -3036,7 +3053,7 @@ const q = {
3036
3053
  kOIVth: "x281kem",
3037
3054
  $$css: !0
3038
3055
  }
3039
- }, hn = {
3056
+ }, pn = {
3040
3057
  xs: q.gapXs,
3041
3058
  sm: q.gapSm,
3042
3059
  ms: q.gapMs,
@@ -3045,27 +3062,27 @@ const q = {
3045
3062
  xl: q.gapXl,
3046
3063
  xxl: q.gapXxl,
3047
3064
  xxxl: q.gapXxxl
3048
- }, pn = {
3065
+ }, fn = {
3049
3066
  start: q.alignStart,
3050
3067
  center: q.alignCenter,
3051
3068
  end: q.alignEnd,
3052
3069
  baseline: q.alignBaseline,
3053
3070
  stretch: q.alignStretch
3054
- }, fn = {
3071
+ }, vn = {
3055
3072
  start: q.justifyStart,
3056
3073
  center: q.justifyCenter,
3057
3074
  end: q.justifyEnd,
3058
3075
  between: q.justifyBetween
3059
3076
  };
3060
- function sr({
3077
+ function or({
3061
3078
  gap: e = "sm",
3062
3079
  align: t = "center",
3063
3080
  justify: n = "start",
3064
- children: r
3081
+ children: s
3065
3082
  }) {
3066
- return /* @__PURE__ */ s("div", { ...l(k.div, q.base, hn[e], pn[t], fn[n]), children: r });
3083
+ return /* @__PURE__ */ r("div", { ...x(k.div, q.base, pn[e], fn[t], vn[n]), children: s });
3067
3084
  }
3068
- const E = {
3085
+ const T = {
3069
3086
  base: {
3070
3087
  k1xSpc: "x78zum5",
3071
3088
  kXwgrk: "x1q0g3np",
@@ -3133,36 +3150,36 @@ const E = {
3133
3150
  $$css: !0
3134
3151
  }
3135
3152
  }, $n = {
3136
- xs: E.gapXs,
3137
- sm: E.gapSm,
3138
- ms: E.gapMs,
3139
- md: E.gapMd,
3140
- lg: E.gapLg,
3141
- xl: E.gapXl,
3142
- xxl: E.gapXxl,
3143
- xxxl: E.gapXxxl
3144
- }, vn = {
3145
- start: E.alignStart,
3146
- center: E.alignCenter,
3147
- end: E.alignEnd
3153
+ xs: T.gapXs,
3154
+ sm: T.gapSm,
3155
+ ms: T.gapMs,
3156
+ md: T.gapMd,
3157
+ lg: T.gapLg,
3158
+ xl: T.gapXl,
3159
+ xxl: T.gapXxl,
3160
+ xxxl: T.gapXxxl
3148
3161
  }, mn = {
3149
- start: E.justifyStart,
3150
- center: E.justifyCenter,
3151
- end: E.justifyEnd,
3152
- between: E.justifyBetween
3162
+ start: T.alignStart,
3163
+ center: T.alignCenter,
3164
+ end: T.alignEnd
3165
+ }, bn = {
3166
+ start: T.justifyStart,
3167
+ center: T.justifyCenter,
3168
+ end: T.justifyEnd,
3169
+ between: T.justifyBetween
3153
3170
  };
3154
- function or({
3171
+ function ir({
3155
3172
  gap: e = "sm",
3156
3173
  align: t = "start",
3157
3174
  justify: n = "start",
3158
- children: r
3175
+ children: s
3159
3176
  }) {
3160
- return /* @__PURE__ */ s("div", { ...l(k.div, E.base, $n[e], vn[t], mn[n]), children: r });
3177
+ return /* @__PURE__ */ r("div", { ...x(k.div, T.base, $n[e], mn[t], bn[n]), children: s });
3161
3178
  }
3162
- const bn = {
3179
+ const yn = {
3163
3180
  kumcoG: "xqketvx",
3164
3181
  $$css: !0
3165
- }, L = {
3182
+ }, E = {
3166
3183
  base: {
3167
3184
  k1xSpc: "xrvj5dj",
3168
3185
  $$css: !0
@@ -3191,7 +3208,7 @@ const bn = {
3191
3208
  kumcoG: "xu4o1vd",
3192
3209
  $$css: !0
3193
3210
  },
3194
- autoFit: (e) => [bn, {
3211
+ autoFit: (e) => [yn, {
3195
3212
  "--x-gridTemplateColumns": `repeat(auto-fit, minmax(${e}, 1fr))` != null ? `repeat(auto-fit, minmax(${e}, 1fr))` : void 0
3196
3213
  }],
3197
3214
  gapXs: {
@@ -3226,39 +3243,39 @@ const bn = {
3226
3243
  kOIVth: "x281kem",
3227
3244
  $$css: !0
3228
3245
  }
3229
- }, yn = {
3230
- xs: L.gapXs,
3231
- sm: L.gapSm,
3232
- ms: L.gapMs,
3233
- md: L.gapMd,
3234
- lg: L.gapLg,
3235
- xl: L.gapXl,
3236
- xxl: L.gapXxl,
3237
- xxxl: L.gapXxxl
3238
3246
  }, wn = {
3239
- 1: L.col1,
3240
- 2: L.col2,
3241
- 3: L.col3,
3242
- 4: L.col4,
3243
- 5: L.col5,
3244
- 6: L.col6
3247
+ xs: E.gapXs,
3248
+ sm: E.gapSm,
3249
+ ms: E.gapMs,
3250
+ md: E.gapMd,
3251
+ lg: E.gapLg,
3252
+ xl: E.gapXl,
3253
+ xxl: E.gapXxl,
3254
+ xxxl: E.gapXxxl
3255
+ }, Sn = {
3256
+ 1: E.col1,
3257
+ 2: E.col2,
3258
+ 3: E.col3,
3259
+ 4: E.col4,
3260
+ 5: E.col5,
3261
+ 6: E.col6
3245
3262
  };
3246
- function ir({
3263
+ function cr({
3247
3264
  gap: e = "md",
3248
3265
  columns: t,
3249
3266
  minColumnWidth: n,
3250
- children: r
3267
+ children: s
3251
3268
  }) {
3252
- const o = n ? L.autoFit(n) : t ? wn[t] : void 0;
3253
- return /* @__PURE__ */ s("div", { ...l(k.div, L.base, yn[e], o), children: r });
3269
+ const o = n ? E.autoFit(n) : t ? Sn[t] : void 0;
3270
+ return /* @__PURE__ */ r("div", { ...x(k.div, E.base, wn[e], o), children: s });
3254
3271
  }
3255
- function cr(e = {}) {
3272
+ function lr(e = {}) {
3256
3273
  const {
3257
3274
  compactBelow: t = 480,
3258
3275
  spaciousAbove: n = 768
3259
- } = e, r = w(null), [o, x] = G("default");
3276
+ } = e, s = w(null), [o, l] = G("default");
3260
3277
  return H(() => {
3261
- const i = r.current;
3278
+ const i = s.current;
3262
3279
  if (!i) return;
3263
3280
  let c = null;
3264
3281
  const d = new ResizeObserver((a) => {
@@ -3266,58 +3283,58 @@ function cr(e = {}) {
3266
3283
  const g = a[0];
3267
3284
  if (!g) return;
3268
3285
  const u = g.contentBoxSize?.[0]?.inlineSize ?? g.contentRect.width;
3269
- u < t ? x("compact") : u >= n ? x("spacious") : x("default");
3286
+ u < t ? l("compact") : u >= n ? l("spacious") : l("default");
3270
3287
  });
3271
3288
  });
3272
3289
  return d.observe(i), () => {
3273
3290
  d.disconnect(), c !== null && cancelAnimationFrame(c);
3274
3291
  };
3275
3292
  }, [t, n]), {
3276
- ref: r,
3293
+ ref: s,
3277
3294
  size: o
3278
3295
  };
3279
3296
  }
3280
3297
  export {
3281
- Mn as Alert,
3282
- zn as Badge,
3283
- In as Button,
3284
- qn as Card,
3285
- Wn as Checkbox,
3286
- or as Cluster,
3287
- Hn as EmptyState,
3298
+ zn as Alert,
3299
+ In as Badge,
3300
+ qn as Button,
3301
+ Wn as Card,
3302
+ Hn as Checkbox,
3303
+ ir as Cluster,
3304
+ Gn as EmptyState,
3288
3305
  Tn as Field,
3289
- ir as Grid,
3290
- Gn as Heading,
3291
- $e as Icon,
3292
- sr as Inline,
3306
+ cr as Grid,
3307
+ Ln as Heading,
3308
+ ve as Icon,
3309
+ or as Inline,
3293
3310
  En as Input,
3294
- Ln as InputGroup,
3295
- Vn as LinkButton,
3296
- An as Menu,
3297
- Nn as ScrollArea,
3298
- On as Select,
3311
+ Vn as InputGroup,
3312
+ An as LinkButton,
3313
+ Nn as Menu,
3314
+ On as ScrollArea,
3315
+ Cn as Select,
3299
3316
  Bn as SideNav,
3300
3317
  Dn as Spinner,
3301
- rr as Stack,
3302
- Cn as StatusIcon,
3303
- Rn as Table,
3304
- Xn as Tabs,
3305
- tr as Text,
3306
- Yn as Textarea,
3307
- er as ThemeProvider,
3308
- nr as Tooltip,
3309
- Jn as colors,
3310
- sn as highContrastShadows,
3311
- rn as highContrastTheme,
3312
- Qn as layoutSpacing,
3313
- nn as lightShadows,
3314
- tn as lightTheme,
3315
- Fn as radii,
3316
- Zn as shadows,
3317
- Pn as spacing,
3318
- _n as typePresets,
3319
- Un as typeScale,
3320
- Kn as typography,
3321
- cr as useContainerQuery
3318
+ sr as Stack,
3319
+ Rn as StatusIcon,
3320
+ Xn as Table,
3321
+ Yn as Tabs,
3322
+ nr as Text,
3323
+ Jn as Textarea,
3324
+ tr as ThemeProvider,
3325
+ rr as Tooltip,
3326
+ Pn as colors,
3327
+ on as highContrastShadows,
3328
+ sn as highContrastTheme,
3329
+ Kn as layoutSpacing,
3330
+ rn as lightShadows,
3331
+ nn as lightTheme,
3332
+ Qn as radii,
3333
+ er as shadows,
3334
+ Fn as spacing,
3335
+ Zn as typePresets,
3336
+ _n as typeScale,
3337
+ Un as typography,
3338
+ lr as useContainerQuery
3322
3339
  };
3323
3340
  //# sourceMappingURL=index.js.map