@protonradio/proton-ui 0.6.2 → 0.6.4-beta1

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.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import I, { createContext as $e, useContext as te, useRef as K, useMemo as j, useEffect as _, useCallback as ee, useState as V, isValidElement as Qa, useLayoutEffect as es, forwardRef as sn } from "react";
1
+ import I, { createContext as $e, useContext as te, useRef as K, useMemo as j, useEffect as _, useCallback as ee, useState as V, isValidElement as Qa, forwardRef as kt, useLayoutEffect as es } from "react";
2
2
  import { darkenRGBColor as Il, arrayToRgbString as jn, csx as q, isUrlExternal as ar, handleInternalNavigation as Ml, lightenRGBColor as ts } from "./utils.es.js";
3
- import { T as Xt, G as Qe, S as zt, W as Ot, D as _t } from "./index-BQ3T2g7K.mjs";
3
+ import { T as Zt, G as Qe, S as Ot, W as _t, D as jt } from "./index-BQ3T2g7K.mjs";
4
4
  import { c as Hp } from "./index-BQ3T2g7K.mjs";
5
5
  import cn, { flushSync as ns } from "react-dom";
6
6
  var Vn = { exports: {} }, $t = {};
@@ -192,7 +192,7 @@ function ls() {
192
192
  }
193
193
  }
194
194
  var Ce = D.ReactCurrentDispatcher, it;
195
- function Mt(h, S, F) {
195
+ function Lt(h, S, F) {
196
196
  {
197
197
  if (it === void 0)
198
198
  try {
@@ -205,16 +205,16 @@ function ls() {
205
205
  ` + it + h;
206
206
  }
207
207
  }
208
- var En = !1, Lt;
208
+ var En = !1, Nt;
209
209
  {
210
210
  var Ta = typeof WeakMap == "function" ? WeakMap : Map;
211
- Lt = new Ta();
211
+ Nt = new Ta();
212
212
  }
213
213
  function Tr(h, S) {
214
214
  if (!h || En)
215
215
  return "";
216
216
  {
217
- var F = Lt.get(h);
217
+ var F = Nt.get(h);
218
218
  if (F !== void 0)
219
219
  return F;
220
220
  }
@@ -269,7 +269,7 @@ function ls() {
269
269
  if (ne--, le--, le < 0 || W[ne] !== ae[le]) {
270
270
  var me = `
271
271
  ` + W[ne].replace(" at new ", " at ");
272
- return h.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", h.displayName)), typeof h == "function" && Lt.set(h, me), me;
272
+ return h.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", h.displayName)), typeof h == "function" && Nt.set(h, me), me;
273
273
  }
274
274
  while (ne >= 1 && le >= 0);
275
275
  break;
@@ -278,8 +278,8 @@ function ls() {
278
278
  } finally {
279
279
  En = !1, Ce.current = X, Se(), Error.prepareStackTrace = G;
280
280
  }
281
- var ut = h ? h.displayName || h.name : "", Xe = ut ? Mt(ut) : "";
282
- return typeof h == "function" && Lt.set(h, Xe), Xe;
281
+ var ut = h ? h.displayName || h.name : "", Xe = ut ? Lt(ut) : "";
282
+ return typeof h == "function" && Nt.set(h, Xe), Xe;
283
283
  }
284
284
  function Ba(h, S, F) {
285
285
  return Tr(h, !1);
@@ -288,29 +288,29 @@ function ls() {
288
288
  var S = h.prototype;
289
289
  return !!(S && S.isReactComponent);
290
290
  }
291
- function Nt(h, S, F) {
291
+ function Rt(h, S, F) {
292
292
  if (h == null)
293
293
  return "";
294
294
  if (typeof h == "function")
295
295
  return Tr(h, Aa(h));
296
296
  if (typeof h == "string")
297
- return Mt(h);
297
+ return Lt(h);
298
298
  switch (h) {
299
299
  case c:
300
- return Mt("Suspense");
300
+ return Lt("Suspense");
301
301
  case s:
302
- return Mt("SuspenseList");
302
+ return Lt("SuspenseList");
303
303
  }
304
304
  if (typeof h == "object")
305
305
  switch (h.$$typeof) {
306
306
  case a:
307
307
  return Ba(h.render);
308
308
  case d:
309
- return Nt(h.type, S, F);
309
+ return Rt(h.type, S, F);
310
310
  case p: {
311
311
  var O = h, G = O._payload, X = O._init;
312
312
  try {
313
- return Nt(X(G), S, F);
313
+ return Rt(X(G), S, F);
314
314
  } catch {
315
315
  }
316
316
  }
@@ -318,9 +318,9 @@ function ls() {
318
318
  return "";
319
319
  }
320
320
  var gt = Object.prototype.hasOwnProperty, Br = {}, Ar = D.ReactDebugCurrentFrame;
321
- function Rt(h) {
321
+ function zt(h) {
322
322
  if (h) {
323
- var S = h._owner, F = Nt(h.type, h._source, S ? S.type : null);
323
+ var S = h._owner, F = Rt(h.type, h._source, S ? S.type : null);
324
324
  Ar.setExtraStackFrame(F);
325
325
  } else
326
326
  Ar.setExtraStackFrame(null);
@@ -340,7 +340,7 @@ function ls() {
340
340
  } catch (ne) {
341
341
  W = ne;
342
342
  }
343
- W && !(W instanceof Error) && (Rt(G), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", F, U, typeof W), Rt(null)), W instanceof Error && !(W.message in Br) && (Br[W.message] = !0, Rt(G), w("Failed %s type: %s", F, W.message), Rt(null));
343
+ W && !(W instanceof Error) && (zt(G), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", F, U, typeof W), zt(null)), W instanceof Error && !(W.message in Br) && (Br[W.message] = !0, zt(G), w("Failed %s type: %s", F, W.message), zt(null));
344
344
  }
345
345
  }
346
346
  }
@@ -469,7 +469,7 @@ function ls() {
469
469
  var Dn = D.ReactCurrentOwner, Mr = D.ReactDebugCurrentFrame;
470
470
  function ot(h) {
471
471
  if (h) {
472
- var S = h._owner, F = Nt(h.type, h._source, S ? S.type : null);
472
+ var S = h._owner, F = Rt(h.type, h._source, S ? S.type : null);
473
473
  Mr.setExtraStackFrame(F);
474
474
  } else
475
475
  Mr.setExtraStackFrame(null);
@@ -639,8 +639,8 @@ const Ll = $e(void 0), rt = () => {
639
639
  throw new Error("useTheme must be used within a ThemeProvider");
640
640
  return t;
641
641
  }, is = {
642
- [Xt.DARK]: "proton-ui__theme--dark",
643
- [Xt.LIGHT]: "proton-ui__theme--light"
642
+ [Zt.DARK]: "proton-ui__theme--dark",
643
+ [Zt.LIGHT]: "proton-ui__theme--light"
644
644
  }, Dp = ({
645
645
  theme: t,
646
646
  children: e,
@@ -684,12 +684,12 @@ function us(t) {
684
684
  Hr
685
685
  ) : jn(Nl, Hr);
686
686
  return {
687
- [Xt.DARK]: {
687
+ [Zt.DARK]: {
688
688
  "--proton-control__background-color": e,
689
689
  "--proton-control__text-color": Qe.WHITE,
690
690
  "--proton-control__border-color": "none"
691
691
  },
692
- [Xt.LIGHT]: {
692
+ [Zt.LIGHT]: {
693
693
  "--proton-control__background-color": Qe.WHITE,
694
694
  "--proton-control__text-color": Qe.GRAY_DARK,
695
695
  "--proton-control__border-color": "var(--proton-color__gray-light) solid 1px"
@@ -753,10 +753,10 @@ function as(t) {
753
753
  i
754
754
  ];
755
755
  }
756
- const Zt = {
756
+ const Jt = {
757
757
  prefix: String(Math.round(Math.random() * 1e10)),
758
758
  current: 0
759
- }, zl = /* @__PURE__ */ I.createContext(Zt), ss = /* @__PURE__ */ I.createContext(!1);
759
+ }, zl = /* @__PURE__ */ I.createContext(Jt), ss = /* @__PURE__ */ I.createContext(!1);
760
760
  let cs = !!(typeof window < "u" && window.document && window.document.createElement), Bn = /* @__PURE__ */ new WeakMap();
761
761
  function ds(t = !1) {
762
762
  let e = te(zl), n = K(null);
@@ -776,12 +776,12 @@ function ds(t = !1) {
776
776
  }
777
777
  function fs(t) {
778
778
  let e = te(zl);
779
- e === Zt && !cs && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
780
- let n = ds(!!t), r = e === Zt && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
779
+ e === Jt && !cs && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
780
+ let n = ds(!!t), r = e === Jt && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
781
781
  return t || `${r}-${n}`;
782
782
  }
783
783
  function ps(t) {
784
- let e = I.useId(), [n] = V(kt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Zt.prefix}`;
784
+ let e = I.useId(), [n] = V(Kt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Jt.prefix}`;
785
785
  return t || `${r}-${e}`;
786
786
  }
787
787
  const vs = typeof I.useId == "function" ? ps : fs;
@@ -795,7 +795,7 @@ function gs(t) {
795
795
  return () => {
796
796
  };
797
797
  }
798
- function kt() {
798
+ function Kt() {
799
799
  return typeof I.useSyncExternalStore == "function" ? I.useSyncExternalStore(gs, hs, ms) : te(ss);
800
800
  }
801
801
  let bs = !!(typeof window < "u" && window.document && window.document.createElement), _e = /* @__PURE__ */ new Map();
@@ -917,20 +917,20 @@ function Ke(t) {
917
917
  t.focus(), Ts(e);
918
918
  }
919
919
  }
920
- let jt = null;
920
+ let Vt = null;
921
921
  function Ps() {
922
- if (jt == null) {
923
- jt = !1;
922
+ if (Vt == null) {
923
+ Vt = !1;
924
924
  try {
925
925
  document.createElement("div").focus({
926
926
  get preventScroll() {
927
- return jt = !0, !0;
927
+ return Vt = !0, !0;
928
928
  }
929
929
  });
930
930
  } catch {
931
931
  }
932
932
  }
933
- return jt;
933
+ return Vt;
934
934
  }
935
935
  function Ss(t) {
936
936
  let e = t.parentNode, n = [], r = document.scrollingElement || document.documentElement;
@@ -977,7 +977,7 @@ const Ge = Me(function() {
977
977
  return dn(/AppleWebKit/i) && !ks();
978
978
  }), ks = Me(function() {
979
979
  return dn(/Chrome/i);
980
- }), Jt = Me(function() {
980
+ }), Qt = Me(function() {
981
981
  return dn(/Android/i);
982
982
  }), Ks = Me(function() {
983
983
  return dn(/Firefox/i);
@@ -1273,10 +1273,10 @@ function Ve(t, e) {
1273
1273
  }
1274
1274
  }
1275
1275
  function Wn(t) {
1276
- return t.mozInputSource === 0 && t.isTrusted ? !0 : Jt() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
1276
+ return t.mozInputSource === 0 && t.isTrusted ? !0 : Qt() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
1277
1277
  }
1278
1278
  function _s(t) {
1279
- return !Jt() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
1279
+ return !Qt() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
1280
1280
  }
1281
1281
  function dr(t, e, n) {
1282
1282
  let r = K(e), l = ce(() => {
@@ -1293,7 +1293,7 @@ function dr(t, e, n) {
1293
1293
  l
1294
1294
  ]);
1295
1295
  }
1296
- function Kt(t, e, n) {
1296
+ function Ft(t, e, n) {
1297
1297
  let [r, l] = V(t || e), i = K(t !== void 0), o = t !== void 0;
1298
1298
  _(() => {
1299
1299
  let c = i.current;
@@ -1322,7 +1322,7 @@ function Kt(t, e, n) {
1322
1322
  function Un(t, e = -1 / 0, n = 1 / 0) {
1323
1323
  return Math.min(Math.max(t, e), n);
1324
1324
  }
1325
- let ft = "default", Gn = "", qt = /* @__PURE__ */ new WeakMap();
1325
+ let ft = "default", Gn = "", Xt = /* @__PURE__ */ new WeakMap();
1326
1326
  function qr(t) {
1327
1327
  if (fn()) {
1328
1328
  if (ft === "default") {
@@ -1330,9 +1330,9 @@ function qr(t) {
1330
1330
  Gn = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
1331
1331
  }
1332
1332
  ft = "disabled";
1333
- } else (t instanceof HTMLElement || t instanceof SVGElement) && (qt.set(t, t.style.userSelect), t.style.userSelect = "none");
1333
+ } else (t instanceof HTMLElement || t instanceof SVGElement) && (Xt.set(t, t.style.userSelect), t.style.userSelect = "none");
1334
1334
  }
1335
- function Vt(t) {
1335
+ function Ht(t) {
1336
1336
  if (fn()) {
1337
1337
  if (ft !== "disabled") return;
1338
1338
  ft = "restoring", setTimeout(() => {
@@ -1343,9 +1343,9 @@ function Vt(t) {
1343
1343
  }
1344
1344
  });
1345
1345
  }, 300);
1346
- } else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && qt.has(t)) {
1347
- let e = qt.get(t);
1348
- t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), qt.delete(t);
1346
+ } else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && Xt.has(t)) {
1347
+ let e = Xt.get(t);
1348
+ t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), Xt.delete(t);
1349
1349
  }
1350
1350
  }
1351
1351
  const fr = I.createContext({
@@ -1391,19 +1391,19 @@ function Gs(t) {
1391
1391
  }
1392
1392
  return Gl(e, t.ref), t;
1393
1393
  }
1394
- var Ht = /* @__PURE__ */ new WeakMap();
1395
- class Wt {
1394
+ var Wt = /* @__PURE__ */ new WeakMap();
1395
+ class Ut {
1396
1396
  continuePropagation() {
1397
- Xr(this, Ht, !1);
1397
+ Xr(this, Wt, !1);
1398
1398
  }
1399
1399
  get shouldStopPropagation() {
1400
- return Vs(this, Ht);
1400
+ return Vs(this, Wt);
1401
1401
  }
1402
1402
  constructor(e, n, r, l) {
1403
- Ws(this, Ht, {
1403
+ Ws(this, Wt, {
1404
1404
  writable: !0,
1405
1405
  value: void 0
1406
- }), Xr(this, Ht, !0);
1406
+ }), Xr(this, Wt, !0);
1407
1407
  var i;
1408
1408
  let o = (i = l == null ? void 0 : l.target) !== null && i !== void 0 ? i : r.currentTarget;
1409
1409
  const u = o == null ? void 0 : o.getBoundingClientRect();
@@ -1442,7 +1442,7 @@ function Ye(t) {
1442
1442
  if (o || b.didFirePressStart) return !1;
1443
1443
  let C = !0;
1444
1444
  if (b.isTriggeringEvent = !0, r) {
1445
- let R = new Wt("pressstart", B, v);
1445
+ let R = new Ut("pressstart", B, v);
1446
1446
  r(R), C = R.shouldStopPropagation;
1447
1447
  }
1448
1448
  return n && n(!0), b.isTriggeringEvent = !1, b.didFirePressStart = !0, m(!0), C;
@@ -1452,11 +1452,11 @@ function Ye(t) {
1452
1452
  C.ignoreClickAfterPress = !0, C.didFirePressStart = !1, C.isTriggeringEvent = !0;
1453
1453
  let R = !0;
1454
1454
  if (l) {
1455
- let g = new Wt("pressend", B, v);
1455
+ let g = new Ut("pressend", B, v);
1456
1456
  l(g), R = g.shouldStopPropagation;
1457
1457
  }
1458
1458
  if (n && n(!1), m(!1), e && b && !o) {
1459
- let g = new Wt("press", B, v);
1459
+ let g = new Ut("press", B, v);
1460
1460
  e(g), R && (R = g.shouldStopPropagation);
1461
1461
  }
1462
1462
  return C.isTriggeringEvent = !1, R;
@@ -1465,13 +1465,13 @@ function Ye(t) {
1465
1465
  if (o) return !1;
1466
1466
  if (i) {
1467
1467
  b.isTriggeringEvent = !0;
1468
- let C = new Wt("pressup", B, v);
1468
+ let C = new Ut("pressup", B, v);
1469
1469
  return i(C), b.isTriggeringEvent = !1, C.shouldStopPropagation;
1470
1470
  }
1471
1471
  return !0;
1472
1472
  }), T = ce((v) => {
1473
1473
  let B = $.current;
1474
- B.isPressed && B.target && (B.isOverTarget && B.pointerType != null && E(Te(B.target, v), B.pointerType, !1), B.isPressed = !1, B.isOverTarget = !1, B.activePointerId = null, B.pointerType = null, D(), s || Vt(B.target));
1474
+ B.isPressed && B.target && (B.isOverTarget && B.pointerType != null && E(Te(B.target, v), B.pointerType, !1), B.isPressed = !1, B.isOverTarget = !1, B.activePointerId = null, B.pointerType = null, D(), s || Ht(B.target));
1475
1475
  }), A = ce((v) => {
1476
1476
  c && T(v);
1477
1477
  }), L = j(() => {
@@ -1534,7 +1534,7 @@ function Ye(t) {
1534
1534
  let C = (P) => {
1535
1535
  P.pointerId === v.activePointerId && (v.target && at(P, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, w(Te(v.target, P), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, E(Te(v.target, P), v.pointerType, !1), A(P)));
1536
1536
  }, R = (P) => {
1537
- P.pointerId === v.activePointerId && v.isPressed && P.button === 0 && v.target && (at(P, v.target) && v.pointerType != null ? E(Te(v.target, P), v.pointerType) : v.isOverTarget && v.pointerType != null && E(Te(v.target, P), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, D(), s || Vt(v.target), "ontouchend" in v.target && P.pointerType !== "mouse" && x(v.target, "touchend", g, {
1537
+ P.pointerId === v.activePointerId && v.isPressed && P.button === 0 && v.target && (at(P, v.target) && v.pointerType != null ? E(Te(v.target, P), v.pointerType) : v.isOverTarget && v.pointerType != null && E(Te(v.target, P), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, D(), s || Ht(v.target), "ontouchend" in v.target && P.pointerType !== "mouse" && x(v.target, "touchend", g, {
1538
1538
  once: !0
1539
1539
  }));
1540
1540
  }, g = (P) => {
@@ -1593,7 +1593,7 @@ function Ye(t) {
1593
1593
  return;
1594
1594
  }
1595
1595
  let N = Jr(g.nativeEvent, v.activePointerId), P = !0;
1596
- N && at(N, g.currentTarget) && v.pointerType != null ? (k(Oe(v.target, g), v.pointerType), P = E(Oe(v.target, g), v.pointerType)) : v.isOverTarget && v.pointerType != null && (P = E(Oe(v.target, g), v.pointerType, !1)), P && g.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !s && Vt(v.target), D();
1596
+ N && at(N, g.currentTarget) && v.pointerType != null ? (k(Oe(v.target, g), v.pointerType), P = E(Oe(v.target, g), v.pointerType)) : v.isOverTarget && v.pointerType != null && (P = E(Oe(v.target, g), v.pointerType, !1)), P && g.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !s && Ht(v.target), D();
1597
1597
  }, B.onTouchCancel = (g) => {
1598
1598
  g.currentTarget.contains(g.target) && (g.stopPropagation(), v.isPressed && T(Oe(v.target, g)));
1599
1599
  };
@@ -1625,7 +1625,7 @@ function Ye(t) {
1625
1625
  ]);
1626
1626
  return _(() => () => {
1627
1627
  var v;
1628
- s || Vt((v = $.current.target) !== null && v !== void 0 ? v : void 0);
1628
+ s || Ht((v = $.current.target) !== null && v !== void 0 ? v : void 0);
1629
1629
  }, [
1630
1630
  s
1631
1631
  ]), {
@@ -1823,7 +1823,7 @@ function hn(t, e) {
1823
1823
  function tc(t) {
1824
1824
  return !(t.metaKey || !Ge() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
1825
1825
  }
1826
- function Qt(t) {
1826
+ function en(t) {
1827
1827
  nt = !0, tc(t) && (Ie = "keyboard", hn("keyboard", t));
1828
1828
  }
1829
1829
  function be(t) {
@@ -1838,13 +1838,13 @@ function ti(t) {
1838
1838
  function ni() {
1839
1839
  nt = !1, Yn = !0;
1840
1840
  }
1841
- function en(t) {
1841
+ function tn(t) {
1842
1842
  if (typeof window > "u" || St.get(xe(t))) return;
1843
1843
  const e = xe(t), n = Q(t);
1844
1844
  let r = e.HTMLElement.prototype.focus;
1845
1845
  e.HTMLElement.prototype.focus = function() {
1846
1846
  nt = !0, r.apply(this, arguments);
1847
- }, n.addEventListener("keydown", Qt, !0), n.addEventListener("keyup", Qt, !0), n.addEventListener("click", ei, !0), e.addEventListener("focus", ti, !0), e.addEventListener("blur", ni, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", be, !0), n.addEventListener("pointermove", be, !0), n.addEventListener("pointerup", be, !0)) : (n.addEventListener("mousedown", be, !0), n.addEventListener("mousemove", be, !0), n.addEventListener("mouseup", be, !0)), e.addEventListener("beforeunload", () => {
1847
+ }, n.addEventListener("keydown", en, !0), n.addEventListener("keyup", en, !0), n.addEventListener("click", ei, !0), e.addEventListener("focus", ti, !0), e.addEventListener("blur", ni, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", be, !0), n.addEventListener("pointermove", be, !0), n.addEventListener("pointerup", be, !0)) : (n.addEventListener("mousedown", be, !0), n.addEventListener("mousemove", be, !0), n.addEventListener("mouseup", be, !0)), e.addEventListener("beforeunload", () => {
1848
1848
  ri(t);
1849
1849
  }, {
1850
1850
  once: !0
@@ -1854,27 +1854,27 @@ function en(t) {
1854
1854
  }
1855
1855
  const ri = (t, e) => {
1856
1856
  const n = xe(t), r = Q(t);
1857
- e && r.removeEventListener("DOMContentLoaded", e), St.has(n) && (n.HTMLElement.prototype.focus = St.get(n).focus, r.removeEventListener("keydown", Qt, !0), r.removeEventListener("keyup", Qt, !0), r.removeEventListener("click", ei, !0), n.removeEventListener("focus", ti, !0), n.removeEventListener("blur", ni, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", be, !0), r.removeEventListener("pointermove", be, !0), r.removeEventListener("pointerup", be, !0)) : (r.removeEventListener("mousedown", be, !0), r.removeEventListener("mousemove", be, !0), r.removeEventListener("mouseup", be, !0)), St.delete(n));
1857
+ e && r.removeEventListener("DOMContentLoaded", e), St.has(n) && (n.HTMLElement.prototype.focus = St.get(n).focus, r.removeEventListener("keydown", en, !0), r.removeEventListener("keyup", en, !0), r.removeEventListener("click", ei, !0), n.removeEventListener("focus", ti, !0), n.removeEventListener("blur", ni, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", be, !0), r.removeEventListener("pointermove", be, !0), r.removeEventListener("pointerup", be, !0)) : (r.removeEventListener("mousedown", be, !0), r.removeEventListener("mousemove", be, !0), r.removeEventListener("mouseup", be, !0)), St.delete(n));
1858
1858
  };
1859
1859
  function nc(t) {
1860
1860
  const e = Q(t);
1861
1861
  let n;
1862
- return e.readyState !== "loading" ? en(t) : (n = () => {
1863
- en(t);
1862
+ return e.readyState !== "loading" ? tn(t) : (n = () => {
1863
+ tn(t);
1864
1864
  }, e.addEventListener("DOMContentLoaded", n)), () => ri(t, n);
1865
1865
  }
1866
1866
  typeof document < "u" && nc();
1867
1867
  function ht() {
1868
1868
  return Ie !== "pointer";
1869
1869
  }
1870
- function tn() {
1870
+ function nn() {
1871
1871
  return Ie;
1872
1872
  }
1873
1873
  function li(t) {
1874
1874
  Ie = t, hn(t, null);
1875
1875
  }
1876
1876
  function ii() {
1877
- en();
1877
+ tn();
1878
1878
  let [t, e] = V(Ie);
1879
1879
  return _(() => {
1880
1880
  let n = () => {
@@ -1883,7 +1883,7 @@ function ii() {
1883
1883
  return At.add(n), () => {
1884
1884
  At.delete(n);
1885
1885
  };
1886
- }, []), kt() ? null : t;
1886
+ }, []), Kt() ? null : t;
1887
1887
  }
1888
1888
  const rc = /* @__PURE__ */ new Set([
1889
1889
  "checkbox",
@@ -1902,7 +1902,7 @@ function lc(t, e, n) {
1902
1902
  return t = t || (n == null ? void 0 : n.target) instanceof l && !rc.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof o && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof u && !ec[n.key]);
1903
1903
  }
1904
1904
  function ic(t, e, n) {
1905
- en(), _(() => {
1905
+ tn(), _(() => {
1906
1906
  let r = (l, i) => {
1907
1907
  lc(!!(n != null && n.isTextInput), l, i) && t(ht());
1908
1908
  };
@@ -1911,7 +1911,7 @@ function ic(t, e, n) {
1911
1911
  };
1912
1912
  }, e);
1913
1913
  }
1914
- function Ft(t) {
1914
+ function It(t) {
1915
1915
  let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: l } = t, i = K({
1916
1916
  isFocusWithin: !1
1917
1917
  }), o = ee((c) => {
@@ -1940,10 +1940,10 @@ function Ft(t) {
1940
1940
  }
1941
1941
  };
1942
1942
  }
1943
- let nn = !1, Fn = 0;
1943
+ let rn = !1, Fn = 0;
1944
1944
  function qn() {
1945
- nn = !0, setTimeout(() => {
1946
- nn = !1;
1945
+ rn = !0, setTimeout(() => {
1946
+ rn = !1;
1947
1947
  }, 50);
1948
1948
  }
1949
1949
  function el(t) {
@@ -1984,13 +1984,13 @@ function mn(t) {
1984
1984
  }), n && n(!1), o(!1);
1985
1985
  }, p = {};
1986
1986
  return typeof PointerEvent < "u" ? (p.onPointerEnter = (f) => {
1987
- nn && f.pointerType === "mouse" || s(f, f.pointerType);
1987
+ rn && f.pointerType === "mouse" || s(f, f.pointerType);
1988
1988
  }, p.onPointerLeave = (f) => {
1989
1989
  !l && f.currentTarget.contains(f.target) && d(f, f.pointerType);
1990
1990
  }) : (p.onTouchStart = () => {
1991
1991
  u.ignoreEmulatedMouseEvents = !0;
1992
1992
  }, p.onMouseEnter = (f) => {
1993
- !u.ignoreEmulatedMouseEvents && !nn && s(f, "mouse"), u.ignoreEmulatedMouseEvents = !1;
1993
+ !u.ignoreEmulatedMouseEvents && !rn && s(f, "mouse"), u.ignoreEmulatedMouseEvents = !1;
1994
1994
  }, p.onMouseLeave = (f) => {
1995
1995
  !l && f.currentTarget.contains(f.target) && d(f, "mouse");
1996
1996
  }), {
@@ -2020,7 +2020,7 @@ function uc(t) {
2020
2020
  isPointerDown: !1,
2021
2021
  ignoreEmulatedMouseEvents: !1
2022
2022
  }), o = ce((a) => {
2023
- n && Ut(a, e) && (l && l(a), i.current.isPointerDown = !0);
2023
+ n && Gt(a, e) && (l && l(a), i.current.isPointerDown = !0);
2024
2024
  }), u = ce((a) => {
2025
2025
  n && n(a);
2026
2026
  });
@@ -2030,16 +2030,16 @@ function uc(t) {
2030
2030
  const c = e.current, s = Q(c);
2031
2031
  if (typeof PointerEvent < "u") {
2032
2032
  let d = (p) => {
2033
- a.isPointerDown && Ut(p, e) && u(p), a.isPointerDown = !1;
2033
+ a.isPointerDown && Gt(p, e) && u(p), a.isPointerDown = !1;
2034
2034
  };
2035
2035
  return s.addEventListener("pointerdown", o, !0), s.addEventListener("pointerup", d, !0), () => {
2036
2036
  s.removeEventListener("pointerdown", o, !0), s.removeEventListener("pointerup", d, !0);
2037
2037
  };
2038
2038
  } else {
2039
2039
  let d = (f) => {
2040
- a.ignoreEmulatedMouseEvents ? a.ignoreEmulatedMouseEvents = !1 : a.isPointerDown && Ut(f, e) && u(f), a.isPointerDown = !1;
2040
+ a.ignoreEmulatedMouseEvents ? a.ignoreEmulatedMouseEvents = !1 : a.isPointerDown && Gt(f, e) && u(f), a.isPointerDown = !1;
2041
2041
  }, p = (f) => {
2042
- a.ignoreEmulatedMouseEvents = !0, a.isPointerDown && Ut(f, e) && u(f), a.isPointerDown = !1;
2042
+ a.ignoreEmulatedMouseEvents = !0, a.isPointerDown && Gt(f, e) && u(f), a.isPointerDown = !1;
2043
2043
  };
2044
2044
  return s.addEventListener("mousedown", o, !0), s.addEventListener("mouseup", d, !0), s.addEventListener("touchstart", o, !0), s.addEventListener("touchend", p, !0), () => {
2045
2045
  s.removeEventListener("mousedown", o, !0), s.removeEventListener("mouseup", d, !0), s.removeEventListener("touchstart", o, !0), s.removeEventListener("touchend", p, !0);
@@ -2052,7 +2052,7 @@ function uc(t) {
2052
2052
  u
2053
2053
  ]);
2054
2054
  }
2055
- function Ut(t, e) {
2055
+ function Gt(t, e) {
2056
2056
  if (t.button > 0) return !1;
2057
2057
  if (t.target) {
2058
2058
  const n = t.target.ownerDocument;
@@ -2135,7 +2135,7 @@ function oi(t) {
2135
2135
  }
2136
2136
  function se(t) {
2137
2137
  const e = Q(t);
2138
- if (tn() === "virtual") {
2138
+ if (nn() === "virtual") {
2139
2139
  let n = e.activeElement;
2140
2140
  jl(() => {
2141
2141
  e.activeElement === n && t.isConnected && Ke(t);
@@ -2170,7 +2170,7 @@ function vr(t) {
2170
2170
  ]);
2171
2171
  Z(() => {
2172
2172
  let p = a || oe.root;
2173
- if (oe.getTreeNode(p.scopeRef) && J && !ln(J, p.scopeRef)) {
2173
+ if (oe.getTreeNode(p.scopeRef) && J && !on(J, p.scopeRef)) {
2174
2174
  let f = oe.getTreeNode(J);
2175
2175
  f && (p = f);
2176
2176
  }
@@ -2205,7 +2205,7 @@ function vr(t) {
2205
2205
  ]), Z(() => () => {
2206
2206
  var p, f, m;
2207
2207
  let $ = (m = (f = oe.getTreeNode(u)) === null || f === void 0 || (p = f.parent) === null || p === void 0 ? void 0 : p.scopeRef) !== null && m !== void 0 ? m : null;
2208
- (u === J || ln(u, J)) && (!$ || oe.getTreeNode($)) && (J = $), oe.removeTreeNode(u);
2208
+ (u === J || on(u, J)) && (!$ || oe.getTreeNode($)) && (J = $), oe.removeTreeNode(u);
2209
2209
  }, [
2210
2210
  u
2211
2211
  ]);
@@ -2317,10 +2317,10 @@ function hc(t, e) {
2317
2317
  let m = c.shiftKey ? f.previousNode() : f.nextNode();
2318
2318
  m || (f.currentNode = c.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, m = c.shiftKey ? f.previousNode() : f.nextNode()), c.preventDefault(), m && Fe(m, !0);
2319
2319
  }, u = (c) => {
2320
- (!J || ln(J, t)) && ue(c.target, t.current) ? (J = t, n.current = c.target) : Dt(t) && !rn(c.target, t) ? n.current ? n.current.focus() : J && J.current && Zn(J.current) : Dt(t) && (n.current = c.target);
2320
+ (!J || on(J, t)) && ue(c.target, t.current) ? (J = t, n.current = c.target) : Dt(t) && !ln(c.target, t) ? n.current ? n.current.focus() : J && J.current && Zn(J.current) : Dt(t) && (n.current = c.target);
2321
2321
  }, a = (c) => {
2322
2322
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2323
- if (i.activeElement && Dt(t) && !rn(i.activeElement, t))
2323
+ if (i.activeElement && Dt(t) && !ln(i.activeElement, t))
2324
2324
  if (J = t, i.body.contains(c.target)) {
2325
2325
  var s;
2326
2326
  n.current = c.target, (s = n.current) === null || s === void 0 || s.focus();
@@ -2340,21 +2340,21 @@ function hc(t, e) {
2340
2340
  ]);
2341
2341
  }
2342
2342
  function ai(t) {
2343
- return rn(t);
2343
+ return ln(t);
2344
2344
  }
2345
2345
  function ue(t, e) {
2346
2346
  return !t || !e ? !1 : e.some((n) => n.contains(t));
2347
2347
  }
2348
- function rn(t, e = null) {
2348
+ function ln(t, e = null) {
2349
2349
  if (t instanceof Element && t.closest("[data-react-aria-top-layer]")) return !0;
2350
2350
  for (let { scopeRef: n } of oe.traverse(oe.getTreeNode(e)))
2351
2351
  if (n && ue(t, n.current)) return !0;
2352
2352
  return !1;
2353
2353
  }
2354
2354
  function mc(t) {
2355
- return rn(t, J);
2355
+ return ln(t, J);
2356
2356
  }
2357
- function ln(t, e) {
2357
+ function on(t, e) {
2358
2358
  var n;
2359
2359
  let r = (n = oe.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
2360
2360
  for (; r; ) {
@@ -2432,7 +2432,7 @@ function yc(t, e, n) {
2432
2432
  const i = Q(l ? l[0] : void 0);
2433
2433
  if (!e || n) return;
2434
2434
  let o = () => {
2435
- (!J || ln(J, t)) && ue(i.activeElement, t.current) && (J = t);
2435
+ (!J || on(J, t)) && ue(i.activeElement, t.current) && (J = t);
2436
2436
  };
2437
2437
  return i.addEventListener("focusin", o, !1), l == null || l.forEach((u) => u.addEventListener("focusin", o, !1)), () => {
2438
2438
  i.removeEventListener("focusin", o, !1), l == null || l.forEach((u) => u.removeEventListener("focusin", o, !1));
@@ -2598,7 +2598,7 @@ function gn(t = {}) {
2598
2598
  let { focusProps: d } = Ql({
2599
2599
  isDisabled: r,
2600
2600
  onFocusChange: s
2601
- }), { focusWithinProps: p } = Ft({
2601
+ }), { focusWithinProps: p } = It({
2602
2602
  isDisabled: !r,
2603
2603
  onFocusWithinChange: s
2604
2604
  });
@@ -2625,7 +2625,7 @@ function Ec(t, e) {
2625
2625
  }, n);
2626
2626
  }
2627
2627
  let wc = /* @__PURE__ */ I.forwardRef(Ec);
2628
- function It(t, e) {
2628
+ function Mt(t, e) {
2629
2629
  let { focusProps: n } = Ql(t), { keyboardProps: r } = ac(t), l = H(n, r), i = xc(e), o = t.isDisabled ? {} : i, u = K(t.autoFocus);
2630
2630
  return _(() => {
2631
2631
  u.current && e.current && se(e.current), u.current = !1;
@@ -2728,7 +2728,7 @@ function ll() {
2728
2728
  for (let t of Pt) t(Qn);
2729
2729
  }
2730
2730
  function Bc() {
2731
- let t = kt(), [e, n] = V(Qn);
2731
+ let t = Kt(), [e, n] = V(Qn);
2732
2732
  return _(() => (Pt.size === 0 && window.addEventListener("languagechange", ll), Pt.add(n), () => {
2733
2733
  Pt.delete(n), Pt.size === 0 && window.removeEventListener("languagechange", ll);
2734
2734
  }), []), t ? {
@@ -2876,7 +2876,7 @@ function yn(t, e) {
2876
2876
  isDisabled: r,
2877
2877
  preventFocusOnPress: c,
2878
2878
  ref: e
2879
- }), { focusableProps: E } = It(t, e);
2879
+ }), { focusableProps: E } = Mt(t, e);
2880
2880
  s && (E.tabIndex = r ? -1 : E.tabIndex);
2881
2881
  let k = H(E, D, Ee(t, {
2882
2882
  labelable: !0
@@ -2896,7 +2896,7 @@ function yn(t, e) {
2896
2896
  }
2897
2897
  const fi = 7e3;
2898
2898
  let De = null;
2899
- function on(t, e = "assertive", n = fi) {
2899
+ function un(t, e = "assertive", n = fi) {
2900
2900
  De ? De.announce(t, e, n) : (De = new Rc(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? De.announce(t, e, n) : setTimeout(() => {
2901
2901
  De != null && De.isAttached() && (De == null || De.announce(t, e, n));
2902
2902
  }, 100));
@@ -3117,7 +3117,7 @@ function Wc(t, e, n) {
3117
3117
  onPress() {
3118
3118
  e.toggle();
3119
3119
  }
3120
- }), { focusableProps: E } = It(t, n), k = H($, E), T = Ee(t, {
3120
+ }), { focusableProps: E } = Mt(t, n), k = H($, E), T = Ee(t, {
3121
3121
  labelable: !0
3122
3122
  });
3123
3123
  return dr(n, e.isSelected, e.setSelected), {
@@ -3194,7 +3194,7 @@ function bi(t) {
3194
3194
  };
3195
3195
  }
3196
3196
  function Uc(t = {}) {
3197
- let { isReadOnly: e } = t, [n, r] = Kt(t.isSelected, t.defaultSelected || !1, t.onChange);
3197
+ let { isReadOnly: e } = t, [n, r] = Ft(t.isSelected, t.defaultSelected || !1, t.onChange);
3198
3198
  function l(o) {
3199
3199
  e || r(o);
3200
3200
  }
@@ -3220,7 +3220,7 @@ const cl = {
3220
3220
  whiteSpace: "nowrap"
3221
3221
  };
3222
3222
  function $i(t = {}) {
3223
- let { style: e, isFocusable: n } = t, [r, l] = V(!1), { focusWithinProps: i } = Ft({
3223
+ let { style: e, isFocusable: n } = t, [r, l] = V(!1), { focusWithinProps: i } = It({
3224
3224
  isDisabled: !n,
3225
3225
  onFocusWithinChange: (u) => l(u)
3226
3226
  }), o = j(() => r ? e : e ? {
@@ -3245,7 +3245,7 @@ const Pe = {
3245
3245
  bottom: "top",
3246
3246
  left: "left",
3247
3247
  right: "left"
3248
- }, un = {
3248
+ }, an = {
3249
3249
  top: "bottom",
3250
3250
  bottom: "top",
3251
3251
  left: "right",
@@ -3259,7 +3259,7 @@ const Pe = {
3259
3259
  }, yi = {
3260
3260
  width: "totalWidth",
3261
3261
  height: "totalHeight"
3262
- }, Gt = {};
3262
+ }, Yt = {};
3263
3263
  let pe = typeof document < "u" && window.visualViewport;
3264
3264
  function dl(t) {
3265
3265
  let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, u = {}, a = (pe == null ? void 0 : pe.scale) > 1;
@@ -3304,18 +3304,18 @@ function qc(t) {
3304
3304
  };
3305
3305
  }
3306
3306
  function pl(t) {
3307
- if (Gt[t]) return Gt[t];
3307
+ if (Yt[t]) return Yt[t];
3308
3308
  let [e, n] = t.split(" "), r = Pe[e] || "right", l = Gc[r];
3309
3309
  Pe[n] || (n = "center");
3310
3310
  let i = tr[r], o = tr[l];
3311
- return Gt[t] = {
3311
+ return Yt[t] = {
3312
3312
  placement: e,
3313
3313
  crossPlacement: n,
3314
3314
  axis: r,
3315
3315
  crossAxis: l,
3316
3316
  size: i,
3317
3317
  crossSize: o
3318
- }, Gt[t];
3318
+ }, Yt[t];
3319
3319
  }
3320
3320
  function Ln(t, e, n, r, l, i, o, u, a, c) {
3321
3321
  let { placement: s, crossPlacement: d, axis: p, crossAxis: f, size: m, crossSize: $ } = r, x = {};
@@ -3323,7 +3323,7 @@ function Ln(t, e, n, r, l, i, o, u, a, c) {
3323
3323
  const D = t[f] - n[$] + a + c, w = t[f] + t[$] - a - c;
3324
3324
  if (x[f] = Un(x[f], D, w), s === p) {
3325
3325
  const E = u ? o[m] : e[yi[m]];
3326
- x[un[p]] = Math.floor(E - t[p] + l);
3326
+ x[an[p]] = Math.floor(E - t[p] + l);
3327
3327
  } else x[p] = Math.floor(t[p] + t[m] + l);
3328
3328
  return x;
3329
3329
  }
@@ -3337,12 +3337,12 @@ function Xc(t, e, n, r, l, i, o, u) {
3337
3337
  }
3338
3338
  function vl(t, e, n, r, l, i) {
3339
3339
  let { placement: o, axis: u, size: a } = i;
3340
- return o === u ? Math.max(0, n[u] - t[u] - t.scroll[u] + e[u] - r[u] - r[un[u]] - l) : Math.max(0, t[a] + t[u] + t.scroll[u] - e[u] - n[u] - n[a] - r[u] - r[un[u]] - l);
3340
+ return o === u ? Math.max(0, n[u] - t[u] - t.scroll[u] + e[u] - r[u] - r[an[u]] - l) : Math.max(0, t[a] + t[u] + t.scroll[u] - e[u] - n[u] - n[a] - r[u] - r[an[u]] - l);
3341
3341
  }
3342
3342
  function Zc(t, e, n, r, l, i, o, u, a, c, s, d, p, f, m, $) {
3343
3343
  let x = pl(t), { size: D, crossAxis: w, crossSize: E, placement: k, crossPlacement: T } = x, A = Ln(e, u, n, x, s, d, c, p, m, $), L = s, v = vl(u, c, e, l, i + s, x);
3344
3344
  if (o && r[D] > v) {
3345
- let we = pl(`${un[k]} ${T}`), ze = Ln(e, u, n, we, s, d, c, p, m, $);
3345
+ let we = pl(`${an[k]} ${T}`), ze = Ln(e, u, n, we, s, d, c, p, m, $);
3346
3346
  vl(u, c, e, l, i + s, we) > v && (x = we, A = ze, L = s);
3347
3347
  }
3348
3348
  let B = "bottom";
@@ -3588,7 +3588,7 @@ function rd(t, e) {
3588
3588
  onInteractOutside: i && l ? s : null,
3589
3589
  onInteractOutsideStart: c
3590
3590
  });
3591
- let { focusWithinProps: p } = Ft({
3591
+ let { focusWithinProps: p } = It({
3592
3592
  isDisabled: !r,
3593
3593
  onBlurWithin: (m) => {
3594
3594
  !m.relatedTarget || mc(m.relatedTarget) || (!u || u(m.relatedTarget)) && n();
@@ -3637,13 +3637,13 @@ const Nn = typeof document < "u" && window.visualViewport, ld = /* @__PURE__ */
3637
3637
  "submit",
3638
3638
  "reset"
3639
3639
  ]);
3640
- let Yt = 0, Rn;
3640
+ let qt = 0, Rn;
3641
3641
  function id(t = {}) {
3642
3642
  let { isDisabled: e } = t;
3643
3643
  Z(() => {
3644
3644
  if (!e)
3645
- return Yt++, Yt === 1 && (fn() ? Rn = ud() : Rn = od()), () => {
3646
- Yt--, Yt === 0 && Rn();
3645
+ return qt++, qt === 1 && (fn() ? Rn = ud() : Rn = od()), () => {
3646
+ qt--, qt === 0 && Rn();
3647
3647
  };
3648
3648
  }, [
3649
3649
  e
@@ -3761,7 +3761,7 @@ function dd(t) {
3761
3761
  return /* @__PURE__ */ I.createElement(ad, null, /* @__PURE__ */ I.createElement(cd, t));
3762
3762
  }
3763
3763
  function fd(t) {
3764
- let e = kt(), { portalContainer: n = e ? null : document.body, ...r } = t;
3764
+ let e = Kt(), { portalContainer: n = e ? null : document.body, ...r } = t;
3765
3765
  if (I.useEffect(() => {
3766
3766
  if (n != null && n.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
3767
3767
  }, [
@@ -4057,7 +4057,7 @@ function bd() {
4057
4057
  }
4058
4058
  const io = /* @__PURE__ */ I.createContext(null);
4059
4059
  function $d(t) {
4060
- let e = kt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = V(!1), o = j(() => ({
4060
+ let e = Kt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = V(!1), o = j(() => ({
4061
4061
  contain: l,
4062
4062
  setContain: i
4063
4063
  }), [
@@ -4239,7 +4239,7 @@ function uo(t) {
4239
4239
  } else p || (f.current.scrollTop = w.current.top, f.current.scrollLeft = w.current.left);
4240
4240
  if (e.focusedKey != null) {
4241
4241
  let g = f.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4242
- g && (g.contains(document.activeElement) || Ke(g), tn() === "keyboard" && Ve(g, {
4242
+ g && (g.contains(document.activeElement) || Ke(g), nn() === "keyboard" && Ve(g, {
4243
4243
  containingElement: r.current
4244
4244
  }));
4245
4245
  }
@@ -4265,7 +4265,7 @@ function uo(t) {
4265
4265
  let A = K(e.focusedKey);
4266
4266
  _(() => {
4267
4267
  if (e.isFocused && e.focusedKey != null && (e.focusedKey !== A.current || T.current) && (f != null && f.current)) {
4268
- let b = tn(), C = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4268
+ let b = nn(), C = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4269
4269
  if (!C)
4270
4270
  return;
4271
4271
  (b === "keyboard" || T.current) && (Yl(f.current, C), b !== "virtual" && Ve(C, {
@@ -4565,7 +4565,7 @@ function Pd(t, e, n) {
4565
4565
  collection: e.collection,
4566
4566
  disabledKeys: e.disabledKeys,
4567
4567
  linkBehavior: i
4568
- }), { focusWithinProps: u } = Ft({
4568
+ }), { focusWithinProps: u } = It({
4569
4569
  onFocusWithin: t.onFocus,
4570
4570
  onBlurWithin: t.onBlur,
4571
4571
  onFocusWithinChange: t.onFocusChange
@@ -5878,7 +5878,7 @@ function Rd(t, e) {
5878
5878
  }
5879
5879
  e.selectionManager.selectionMode === "multiple" && (s.length === 0 || l === "all" || l.size > 1 || i.current === "all" || ((o = i.current) === null || o === void 0 ? void 0 : o.size) > 1) && s.push(l === "all" ? r.format("selectedAll") : r.format("selectedCount", {
5880
5880
  count: l.size
5881
- })), s.length > 0 && on(s.join(" ")), i.current = l;
5881
+ })), s.length > 0 && un(s.join(" ")), i.current = l;
5882
5882
  }, [
5883
5883
  l
5884
5884
  ]);
@@ -6125,7 +6125,7 @@ function Hd(t, e, n) {
6125
6125
  onPress() {
6126
6126
  e.setSelectedValue(r);
6127
6127
  }
6128
- }), { focusableProps: x } = It(H(t, {
6128
+ }), { focusableProps: x } = Mt(H(t, {
6129
6129
  onFocus: () => e.setLastFocusedValue(r)
6130
6130
  }), n), D = H(p, x), w = Ee(t, {
6131
6131
  labelable: !0
@@ -6169,7 +6169,7 @@ function Wd(t, e) {
6169
6169
  errorMessage: t.errorMessage || s
6170
6170
  }), x = Ee(t, {
6171
6171
  labelable: !0
6172
- }), { focusWithinProps: D } = Ft({
6172
+ }), { focusWithinProps: D } = It({
6173
6173
  onBlurWithin(k) {
6174
6174
  var T;
6175
6175
  (T = t.onBlur) === null || T === void 0 || T.call(t, k), e.selectedValue || e.setLastFocusedValue(null);
@@ -6947,7 +6947,7 @@ class Jd extends Yo {
6947
6947
  }
6948
6948
  }
6949
6949
  let Qd = !1;
6950
- function an() {
6950
+ function sn() {
6951
6951
  return Qd;
6952
6952
  }
6953
6953
  function ef(t) {
@@ -6983,7 +6983,7 @@ function tf(t, e, n) {
6983
6983
  id: d,
6984
6984
  keyboardDelegate: s
6985
6985
  }, e, n);
6986
- l && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), an() && "expandedKeys" in e && (p.role = "treegrid");
6986
+ l && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), sn() && "expandedKeys" in e && (p.role = "treegrid");
6987
6987
  let { column: f, direction: m } = e.sortDescriptor || {}, $ = mt(ef(wr), "@react-aria/table"), x = j(() => {
6988
6988
  var w;
6989
6989
  let E = (w = e.collection.columns.find((k) => k.key === f)) === null || w === void 0 ? void 0 : w.textValue;
@@ -6996,7 +6996,7 @@ function tf(t, e, n) {
6996
6996
  e.collection.columns
6997
6997
  ]), D = vn(x);
6998
6998
  return Ul(() => {
6999
- on(x, "assertive", 500);
6999
+ un(x, "assertive", 500);
7000
7000
  }, [
7001
7001
  x
7002
7002
  ]), {
@@ -7023,10 +7023,10 @@ function rf(t, e, n) {
7023
7023
  e.sort(i.key);
7024
7024
  },
7025
7025
  ref: n
7026
- }), { focusableProps: s } = It({}, n), d = null, p = ((r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.column) === i.key, f = (l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.direction;
7027
- i.props.allowsSorting && !Jt() && (d = p ? f : "none");
7026
+ }), { focusableProps: s } = Mt({}, n), d = null, p = ((r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.column) === i.key, f = (l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.direction;
7027
+ i.props.allowsSorting && !Qt() && (d = p ? f : "none");
7028
7028
  let m = mt(nf(wr), "@react-aria/table"), $;
7029
- o && ($ = `${m.format("sortable")}`, p && f && Jt() && ($ = `${$}, ${m.format(f)}`));
7029
+ o && ($ = `${m.format("sortable")}`, p && f && Qt() && ($ = `${$}, ${m.format(f)}`));
7030
7030
  let x = vn($), D = e.collection.size === 0;
7031
7031
  return _(() => {
7032
7032
  D && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
@@ -7065,9 +7065,9 @@ const Dl = {
7065
7065
  };
7066
7066
  function lf(t, e, n) {
7067
7067
  let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = Vd(t, e, n), { direction: u } = Le();
7068
- l && !(an() && "expandedKeys" in e) ? i["aria-rowindex"] = r.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
7068
+ l && !(sn() && "expandedKeys" in e) ? i["aria-rowindex"] = r.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
7069
7069
  let a = {};
7070
- if (an() && "expandedKeys" in e) {
7070
+ if (sn() && "expandedKeys" in e) {
7071
7071
  let m = e.keyMap.get(r.key);
7072
7072
  if (m != null) {
7073
7073
  var c, s, d;
@@ -7096,7 +7096,7 @@ function of(t, e, n) {
7096
7096
  let { node: r, isVirtualized: l } = t, i = {
7097
7097
  role: "row"
7098
7098
  };
7099
- return l && !(an() && "expandedKeys" in e) && (i["aria-rowindex"] = r.index + 1), {
7099
+ return l && !(sn() && "expandedKeys" in e) && (i["aria-rowindex"] = r.index + 1), {
7100
7100
  rowProps: i
7101
7101
  };
7102
7102
  }
@@ -7142,7 +7142,7 @@ function cf(t, e, n) {
7142
7142
  e
7143
7143
  ]);
7144
7144
  let s = () => {
7145
- l !== "focus" && (tn() === "pointer" ? o.current = !0 : o.current = !1, a());
7145
+ l !== "focus" && (nn() === "pointer" ? o.current = !0 : o.current = !1, a());
7146
7146
  }, d = () => {
7147
7147
  l !== "focus" && (u.current = !1, o.current = !1, c());
7148
7148
  }, p = () => {
@@ -7155,7 +7155,7 @@ function cf(t, e, n) {
7155
7155
  isDisabled: r,
7156
7156
  onHoverStart: s,
7157
7157
  onHoverEnd: d
7158
- }), { focusableProps: x } = It({
7158
+ }), { focusableProps: x } = Mt({
7159
7159
  isDisabled: r,
7160
7160
  onFocus: f,
7161
7161
  onBlur: m
@@ -7247,22 +7247,22 @@ const va = {
7247
7247
  icon: Qe.GRAY_MEDIUM_LIGHT
7248
7248
  },
7249
7249
  success: {
7250
- background: zt.SUPER_LIGHT,
7251
- title: zt.DARK,
7252
- content: zt.MEDIUM,
7253
- icon: zt.LIGHT
7254
- },
7255
- warning: {
7256
7250
  background: Ot.SUPER_LIGHT,
7257
7251
  title: Ot.DARK,
7258
7252
  content: Ot.MEDIUM,
7259
7253
  icon: Ot.LIGHT
7260
7254
  },
7261
- danger: {
7255
+ warning: {
7262
7256
  background: _t.SUPER_LIGHT,
7263
7257
  title: _t.DARK,
7264
7258
  content: _t.MEDIUM,
7265
7259
  icon: _t.LIGHT
7260
+ },
7261
+ danger: {
7262
+ background: jt.SUPER_LIGHT,
7263
+ title: jt.DARK,
7264
+ content: jt.MEDIUM,
7265
+ icon: jt.LIGHT
7266
7266
  }
7267
7267
  }, ff = {
7268
7268
  default: "default",
@@ -7418,7 +7418,7 @@ function ha(t) {
7418
7418
  t.selectedKeys
7419
7419
  ]), p = j(() => Sl(t.defaultSelectedKeys, new ye()), [
7420
7420
  t.defaultSelectedKeys
7421
- ]), [f, m] = Kt(d, p, t.onSelectionChange), $ = j(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
7421
+ ]), [f, m] = Ft(d, p, t.onSelectionChange), $ = j(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
7422
7422
  t.disabledKeys
7423
7423
  ]), [x, D] = V(l);
7424
7424
  l === "replace" && x === "toggle" && typeof f == "object" && f.size === 0 && D("replace");
@@ -7780,7 +7780,7 @@ function $f(t) {
7780
7780
  }
7781
7781
  function yf(t) {
7782
7782
  var e;
7783
- let [n, r] = Kt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = j(() => n != null ? [
7783
+ let [n, r] = Ft(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = j(() => n != null ? [
7784
7784
  n
7785
7785
  ] : [], [
7786
7786
  n
@@ -7807,7 +7807,7 @@ function yf(t) {
7807
7807
  };
7808
7808
  }
7809
7809
  function Cr(t) {
7810
- let [e, n] = Kt(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
7810
+ let [e, n] = Ft(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
7811
7811
  const r = ee(() => {
7812
7812
  n(!0);
7813
7813
  }, [
@@ -7836,7 +7836,7 @@ function wf(t) {
7836
7836
  t.name
7837
7837
  ]);
7838
7838
  var n;
7839
- let [r, l] = Kt(t.value, (n = t.defaultValue) !== null && n !== void 0 ? n : null, t.onChange), [i, o] = V(null), u = mi({
7839
+ let [r, l] = Ft(t.value, (n = t.defaultValue) !== null && n !== void 0 ? n : null, t.onChange), [i, o] = V(null), u = mi({
7840
7840
  ...t,
7841
7841
  value: r
7842
7842
  }), a = (s) => {
@@ -8577,19 +8577,23 @@ function Rf({
8577
8577
  )
8578
8578
  ] });
8579
8579
  }
8580
- function Bl(t) {
8581
- let e = K(null), { listBoxRef: n = e, state: r } = t, { listBoxProps: l } = Pd(t, r, n);
8580
+ const Bl = kt((t, e) => {
8581
+ let { state: n } = t, { listBoxProps: r } = Pd(
8582
+ t,
8583
+ n,
8584
+ e
8585
+ );
8582
8586
  return /* @__PURE__ */ y.jsx(vr, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ y.jsx(
8583
8587
  "ul",
8584
8588
  {
8585
- ...l,
8586
- ref: n,
8589
+ ...r,
8590
+ ref: e,
8587
8591
  "data-testid": "listbox",
8588
8592
  className: "proton-ListBox",
8589
- children: [...r.collection].map((i) => /* @__PURE__ */ y.jsx(zf, { item: i, state: r }, i.key))
8593
+ children: [...n.collection].map((l) => /* @__PURE__ */ y.jsx(zf, { item: l, state: n }, l.key))
8590
8594
  }
8591
8595
  ) });
8592
- }
8596
+ });
8593
8597
  function zf({ item: t, state: e }) {
8594
8598
  let n = K(null), { optionProps: r, isSelected: l, isFocused: i, isDisabled: o } = Kd(
8595
8599
  { key: t.key },
@@ -8733,7 +8737,7 @@ const Al = {
8733
8737
  MEDIUM: 768,
8734
8738
  LARGE: 992,
8735
8739
  X_LARGE: 1200
8736
- }, Hf = sn(
8740
+ }, Hf = kt(
8737
8741
  ({ disabled: t, isOpen: e, children: n, ...r }, l) => {
8738
8742
  let { buttonProps: i } = yn(
8739
8743
  r,
@@ -9030,7 +9034,7 @@ const Xf = /* @__PURE__ */ $e(!1);
9030
9034
  typeof DocumentFragment < "u" && new DocumentFragment();
9031
9035
  function Zf(t) {
9032
9036
  let e = (n, r) => te(Xf) ? null : t(n, r);
9033
- return e.displayName = t.displayName || t.name, sn(e);
9037
+ return e.displayName = t.displayName || t.name, kt(e);
9034
9038
  }
9035
9039
  const Kl = Symbol("default");
9036
9040
  function Jf({ values: t, children: e }) {
@@ -9176,7 +9180,7 @@ function ip(t, e) {
9176
9180
  let D = {
9177
9181
  "aria-labelledby": $ || f
9178
9182
  };
9179
- (!x.current && u && r || x.current && u && !r) && on(D, "assertive"), x.current = r;
9183
+ (!x.current && u && r || x.current && u && !r) && un(D, "assertive"), x.current = r;
9180
9184
  }, [
9181
9185
  r,
9182
9186
  u,
@@ -9235,7 +9239,7 @@ function ap(t, e) {
9235
9239
  "data-placement": n
9236
9240
  });
9237
9241
  }
9238
- const sp = /* @__PURE__ */ sn(ap), Sr = /* @__PURE__ */ $e(null), Sa = /* @__PURE__ */ $e(null);
9242
+ const sp = /* @__PURE__ */ kt(ap), Sr = /* @__PURE__ */ $e(null), Sa = /* @__PURE__ */ $e(null);
9239
9243
  function cp(t) {
9240
9244
  let e = Ea(t), n = K(null), { triggerProps: r, tooltipProps: l } = cf(t, e, n);
9241
9245
  return /* @__PURE__ */ I.createElement(Jf, {
@@ -9268,7 +9272,7 @@ function dp({ UNSTABLE_portalContainer: t, ...e }, n) {
9268
9272
  isExiting: o
9269
9273
  }));
9270
9274
  }
9271
- const fp = /* @__PURE__ */ sn(dp);
9275
+ const fp = /* @__PURE__ */ kt(dp);
9272
9276
  function pp(t) {
9273
9277
  let e = te(Sr), n = K(null), [r, l] = V(0);
9274
9278
  Z(() => {
@@ -9581,7 +9585,7 @@ export {
9581
9585
  Tp as Section,
9582
9586
  Mp as Select,
9583
9587
  Lp as Switch,
9584
- Xt as THEMES,
9588
+ Zt as THEMES,
9585
9589
  zp as Table,
9586
9590
  Ap as TableBody,
9587
9591
  Bp as TableHeader,