@clicktap/ui 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { jsxs as ee, jsx as y, Fragment as yt } from "react/jsx-runtime";
1
+ import { jsxs as ee, jsx as y, Fragment as at } from "react/jsx-runtime";
2
2
  import * as Pr from "react";
3
- import ue, { useRef as Y, useImperativeHandle as Ya, useCallback as q, useContext as Ae, useState as ge, useEffect as ie, createContext as ft, useMemo as de, useLayoutEffect as Xa, forwardRef as we, cloneElement as Zt, useId as Wt, Fragment as Tr, Children as ut, isValidElement as Gt, createElement as te, useReducer as wl } from "react";
3
+ import ue, { useRef as Y, useImperativeHandle as Ya, useCallback as q, useContext as Ae, useState as ge, useEffect as ie, createContext as pt, useMemo as de, useLayoutEffect as Xa, forwardRef as we, cloneElement as Zt, useId as Wt, Fragment as Tr, Children as ft, isValidElement as Gt, createElement as te, useReducer as wl } from "react";
4
4
  import { styled as R, keyframes as Ie, createGlobalStyle as qa, css as Qe } from "styled-components";
5
5
  import { useWillChange as xl, LazyMotion as $o, domAnimation as ho, m as mo, AnimatePresence as qo, LayoutGroup as Cl, motion as Rt } from "framer-motion";
6
6
  import Za, { flushSync as Zo } from "react-dom";
@@ -76,7 +76,7 @@ function ii(e) {
76
76
  e[t] && (o && (o += " "), o += t);
77
77
  return o;
78
78
  }
79
- function pt(...e) {
79
+ function gt(...e) {
80
80
  for (var t = 0, r, o, n = ""; t < e.length; )
81
81
  (r = e[t++]) && (o = ii(r)) && (n && (n += " "), n += o);
82
82
  return n;
@@ -485,7 +485,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
485
485
  function $e(s) {
486
486
  return oe(s);
487
487
  }
488
- function at(s) {
488
+ function it(s) {
489
489
  {
490
490
  var b = typeof Symbol == "function" && Symbol.toStringTag, S = b && s[Symbol.toStringTag] || s.constructor.name || "Object";
491
491
  return S;
@@ -503,7 +503,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
503
503
  }
504
504
  function wt(s) {
505
505
  if (Ur(s))
506
- return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(s)), rr(s);
506
+ return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(s)), rr(s);
507
507
  }
508
508
  function Wr(s, b, S) {
509
509
  var T = s.displayName;
@@ -560,7 +560,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
560
560
  }
561
561
  return null;
562
562
  }
563
- var it = Object.prototype.hasOwnProperty, Oe = {
563
+ var st = Object.prototype.hasOwnProperty, Oe = {
564
564
  key: !0,
565
565
  ref: !0,
566
566
  __self: !0,
@@ -568,7 +568,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
568
568
  }, Kt, Lt, Gr;
569
569
  Gr = {};
570
570
  function xn(s) {
571
- if (it.call(s, "ref")) {
571
+ if (st.call(s, "ref")) {
572
572
  var b = Object.getOwnPropertyDescriptor(s, "ref").get;
573
573
  if (b && b.isReactWarning)
574
574
  return !1;
@@ -576,7 +576,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
576
576
  return s.ref !== void 0;
577
577
  }
578
578
  function Cn(s) {
579
- if (it.call(s, "key")) {
579
+ if (st.call(s, "key")) {
580
580
  var b = Object.getOwnPropertyDescriptor(s, "key").get;
581
581
  if (b && b.isReactWarning)
582
582
  return !1;
@@ -638,7 +638,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
638
638
  if (b != null) {
639
639
  xn(b) && (W = b.ref, ws(b)), Cn(b) && (wt(b.key), J = "" + b.key), re = b.__self === void 0 ? null : b.__self, pe = b.__source === void 0 ? null : b.__source;
640
640
  for (T in b)
641
- it.call(b, T) && !Oe.hasOwnProperty(T) && (V[T] = b[T]);
641
+ st.call(b, T) && !Oe.hasOwnProperty(T) && (V[T] = b[T]);
642
642
  }
643
643
  var ve = arguments.length - 2;
644
644
  if (ve === 1)
@@ -672,7 +672,7 @@ var oc = Object.create, si = Object.defineProperty, nc = Object.getOwnPropertyDe
672
672
  var he;
673
673
  s.type && s.type.defaultProps && (he = s.type.defaultProps);
674
674
  for (T in b)
675
- it.call(b, T) && !Oe.hasOwnProperty(T) && (b[T] === void 0 && he !== void 0 ? V[T] = he[T] : V[T] = b[T]);
675
+ st.call(b, T) && !Oe.hasOwnProperty(T) && (b[T] === void 0 && he !== void 0 ? V[T] = he[T] : V[T] = b[T]);
676
676
  }
677
677
  var me = arguments.length - 2;
678
678
  if (me === 1)
@@ -1246,7 +1246,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1246
1246
  }
1247
1247
  function nl(s, b, S, T, V) {
1248
1248
  {
1249
- var J = Function.call.bind(it);
1249
+ var J = Function.call.bind(st);
1250
1250
  for (var W in s)
1251
1251
  if (J(s, W)) {
1252
1252
  var re = void 0;
@@ -2087,7 +2087,7 @@ function ye(e) {
2087
2087
  }
2088
2088
  var yi = /^\[(?:([a-z-]+):)?(.+)\]$/i, Dc = /^\d+\/\d+$/, Nc = /* @__PURE__ */ new Set(["px", "full", "screen"]), Fc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Bc = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
2089
2089
  function je(e) {
2090
- return dt(e) || Nc.has(e) || Dc.test(e) || Co(e);
2090
+ return ut(e) || Nc.has(e) || Dc.test(e) || Co(e);
2091
2091
  }
2092
2092
  function Co(e) {
2093
2093
  return $t(e, "length", Gc);
@@ -2102,13 +2102,13 @@ function Hc(e) {
2102
2102
  return $t(e, "url", Yc);
2103
2103
  }
2104
2104
  function gr(e) {
2105
- return $t(e, "number", dt);
2105
+ return $t(e, "number", ut);
2106
2106
  }
2107
- function dt(e) {
2107
+ function ut(e) {
2108
2108
  return !Number.isNaN(Number(e));
2109
2109
  }
2110
2110
  function Uc(e) {
2111
- return e.endsWith("%") && dt(e.slice(0, -1));
2111
+ return e.endsWith("%") && ut(e.slice(0, -1));
2112
2112
  }
2113
2113
  function Ft(e) {
2114
2114
  return sa(e) || $t(e, "number", sa);
@@ -2156,7 +2156,7 @@ function So() {
2156
2156
  }, m = function() {
2157
2157
  return ["", je];
2158
2158
  }, C = function() {
2159
- return ["auto", dt, le];
2159
+ return ["auto", ut, le];
2160
2160
  }, N = function() {
2161
2161
  return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
2162
2162
  }, B = function() {
@@ -2170,9 +2170,9 @@ function So() {
2170
2170
  }, j = function() {
2171
2171
  return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
2172
2172
  }, h = function() {
2173
- return [dt, gr];
2173
+ return [ut, gr];
2174
2174
  }, A = function() {
2175
- return [dt, le];
2175
+ return [ut, le];
2176
2176
  };
2177
2177
  return {
2178
2178
  cacheSize: 500,
@@ -2904,7 +2904,7 @@ function So() {
2904
2904
  * @see https://tailwindcss.com/docs/line-clamp
2905
2905
  */
2906
2906
  "line-clamp": [{
2907
- "line-clamp": ["none", dt, gr]
2907
+ "line-clamp": ["none", ut, gr]
2908
2908
  }],
2909
2909
  /**
2910
2910
  * Line Height
@@ -5136,11 +5136,11 @@ var ed = /* @__PURE__ */ xo(So), td = { twMerge: !0, twMergeConfig: {}, responsi
5136
5136
  }
5137
5137
  ]
5138
5138
  });
5139
- const gt = typeof document < "u" ? ue.useLayoutEffect : () => {
5139
+ const bt = typeof document < "u" ? ue.useLayoutEffect : () => {
5140
5140
  };
5141
5141
  function et(e) {
5142
5142
  const t = Y(null);
5143
- return gt(() => {
5143
+ return bt(() => {
5144
5144
  t.current = e;
5145
5145
  }, [
5146
5146
  e
@@ -5199,7 +5199,7 @@ function $d(e) {
5199
5199
  let [t, r] = ge(e), o = Y(null), n = pd(t), a = q((i) => {
5200
5200
  o.current = i;
5201
5201
  }, []);
5202
- return yd && Ir.set(n, a), gt(() => {
5202
+ return yd && Ir.set(n, a), bt(() => {
5203
5203
  let i = n;
5204
5204
  return () => {
5205
5205
  Ir.delete(i);
@@ -5338,7 +5338,7 @@ function an(e) {
5338
5338
  var t;
5339
5339
  return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
5340
5340
  }
5341
- function bt() {
5341
+ function vt() {
5342
5342
  return an(/^Mac/i);
5343
5343
  }
5344
5344
  function kd() {
@@ -5346,13 +5346,13 @@ function kd() {
5346
5346
  }
5347
5347
  function Si() {
5348
5348
  return an(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
5349
- bt() && navigator.maxTouchPoints > 1;
5349
+ vt() && navigator.maxTouchPoints > 1;
5350
5350
  }
5351
5351
  function sn() {
5352
5352
  return kd() || Si();
5353
5353
  }
5354
5354
  function Md() {
5355
- return bt() || sn();
5355
+ return vt() || sn();
5356
5356
  }
5357
5357
  function Ei() {
5358
5358
  return jr(/AppleWebKit/i) && !Id();
@@ -5366,7 +5366,7 @@ function Pi() {
5366
5366
  function Od() {
5367
5367
  return jr(/Firefox/i);
5368
5368
  }
5369
- const Ad = /* @__PURE__ */ ft({
5369
+ const Ad = /* @__PURE__ */ pt({
5370
5370
  isNative: !0,
5371
5371
  open: Kd,
5372
5372
  useHref: (e) => e
@@ -5377,8 +5377,8 @@ function Rd() {
5377
5377
  function Ot(e, t, r = !0) {
5378
5378
  var o, n;
5379
5379
  let { metaKey: a, ctrlKey: i, altKey: l, shiftKey: c } = t;
5380
- Od() && (!((n = window.event) === null || n === void 0 || (o = n.type) === null || o === void 0) && o.startsWith("key")) && e.target === "_blank" && (bt() ? a = !0 : i = !0);
5381
- let f = Ei() && bt() && !Si() ? new KeyboardEvent("keydown", {
5380
+ Od() && (!((n = window.event) === null || n === void 0 || (o = n.type) === null || o === void 0) && o.startsWith("key")) && e.target === "_blank" && (vt() ? a = !0 : i = !0);
5381
+ let f = Ei() && vt() && !Si() ? new KeyboardEvent("keydown", {
5382
5382
  keyIdentifier: "Enter",
5383
5383
  metaKey: a,
5384
5384
  ctrlKey: i,
@@ -5506,7 +5506,7 @@ function Fd(e) {
5506
5506
  ]);
5507
5507
  }
5508
5508
  function ln(e, t) {
5509
- gt(() => {
5509
+ bt(() => {
5510
5510
  if (e && e.ref && t)
5511
5511
  return e.ref.current = t.current, () => {
5512
5512
  e.ref && (e.ref.current = null);
@@ -5785,7 +5785,7 @@ function Ii(e) {
5785
5785
  };
5786
5786
  E(_e(I.currentTarget), "keyup", nn(N, K), !0);
5787
5787
  }
5788
- m && I.stopPropagation(), I.metaKey && bt() && ((P = p.metaKeyEvents) === null || P === void 0 || P.set(I.key, I.nativeEvent));
5788
+ m && I.stopPropagation(), I.metaKey && vt() && ((P = p.metaKeyEvents) === null || P === void 0 || P.set(I.key, I.nativeEvent));
5789
5789
  } else
5790
5790
  I.key === "Meta" && (p.metaKeyEvents = /* @__PURE__ */ new Map());
5791
5791
  },
@@ -6042,7 +6042,7 @@ function Ai(e) {
6042
6042
  isFocused: !1,
6043
6043
  observer: null
6044
6044
  });
6045
- gt(() => {
6045
+ bt(() => {
6046
6046
  const o = t.current;
6047
6047
  return () => {
6048
6048
  o.observer && (o.observer.disconnect(), o.observer = null);
@@ -6105,7 +6105,7 @@ function Ri(e) {
6105
6105
  }
6106
6106
  };
6107
6107
  }
6108
- let _t = null, Oo = /* @__PURE__ */ new Set(), Ut = /* @__PURE__ */ new Map(), vt = !1, Ao = !1;
6108
+ let _t = null, Oo = /* @__PURE__ */ new Set(), Ut = /* @__PURE__ */ new Map(), yt = !1, Ao = !1;
6109
6109
  const tu = {
6110
6110
  Tab: !0,
6111
6111
  Escape: !0
@@ -6115,22 +6115,22 @@ function dn(e, t) {
6115
6115
  r(e, t);
6116
6116
  }
6117
6117
  function ru(e) {
6118
- return !(e.metaKey || !bt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
6118
+ return !(e.metaKey || !vt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
6119
6119
  }
6120
6120
  function Ar(e) {
6121
- vt = !0, ru(e) && (_t = "keyboard", dn("keyboard", e));
6121
+ yt = !0, ru(e) && (_t = "keyboard", dn("keyboard", e));
6122
6122
  }
6123
6123
  function Fe(e) {
6124
- _t = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (vt = !0, dn("pointer", e));
6124
+ _t = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (yt = !0, dn("pointer", e));
6125
6125
  }
6126
6126
  function _i(e) {
6127
- ko(e) && (vt = !0, _t = "virtual");
6127
+ ko(e) && (yt = !0, _t = "virtual");
6128
6128
  }
6129
6129
  function Ki(e) {
6130
- e.target === window || e.target === document || (!vt && !Ao && (_t = "virtual", dn("virtual", e)), vt = !1, Ao = !1);
6130
+ e.target === window || e.target === document || (!yt && !Ao && (_t = "virtual", dn("virtual", e)), yt = !1, Ao = !1);
6131
6131
  }
6132
6132
  function Li() {
6133
- vt = !1, Ao = !0;
6133
+ yt = !1, Ao = !0;
6134
6134
  }
6135
6135
  function Ro(e) {
6136
6136
  if (typeof window > "u" || Ut.get(He(e)))
@@ -6138,7 +6138,7 @@ function Ro(e) {
6138
6138
  const t = He(e), r = _e(e);
6139
6139
  let o = t.HTMLElement.prototype.focus;
6140
6140
  t.HTMLElement.prototype.focus = function() {
6141
- vt = !0, o.apply(this, arguments);
6141
+ yt = !0, o.apply(this, arguments);
6142
6142
  }, r.addEventListener("keydown", Ar, !0), r.addEventListener("keyup", Ar, !0), r.addEventListener("click", _i, !0), t.addEventListener("focus", Ki, !0), t.addEventListener("blur", Li, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", Fe, !0), r.addEventListener("pointermove", Fe, !0), r.addEventListener("pointerup", Fe, !0)) : (r.addEventListener("mousedown", Fe, !0), r.addEventListener("mousemove", Fe, !0), r.addEventListener("mouseup", Fe, !0)), t.addEventListener("beforeunload", () => {
6143
6143
  Di(e);
6144
6144
  }, {
@@ -6622,7 +6622,7 @@ function wu(e = {}) {
6622
6622
  });
6623
6623
  },
6624
6624
  [k, M, O, z, L, l, i == null ? void 0 : i.isGrid]
6625
- ), ae = pt(g == null ? void 0 : g.base, P), ne = de(() => D || c === "button", [D, c]), fe = q(
6625
+ ), ae = gt(g == null ? void 0 : g.base, P), ne = de(() => D || c === "button", [D, c]), fe = q(
6626
6626
  (Le = {}) => ({
6627
6627
  ref: B,
6628
6628
  tabIndex: ne ? 0 : -1,
@@ -6630,7 +6630,7 @@ function wu(e = {}) {
6630
6630
  "data-focus": be(X),
6631
6631
  "data-focus-visible": be(G),
6632
6632
  className: se.base({
6633
- class: pt(ae, Le == null ? void 0 : Le.className)
6633
+ class: gt(ae, Le == null ? void 0 : Le.className)
6634
6634
  }),
6635
6635
  ...Pe(C, A, ne ? j : {})
6636
6636
  }),
@@ -6997,12 +6997,12 @@ function Nu(e) {
6997
6997
  });
6998
6998
  Object.keys(p.position).forEach((_) => n.current.style[_] = p.position[_] + "px"), n.current.style.maxHeight = p.maxHeight != null ? p.maxHeight + "px" : void 0, M(p);
6999
6999
  }, O);
7000
- gt(L, O), Fu(L), Fd({
7000
+ bt(L, O), Fu(L), Fd({
7001
7001
  ref: n,
7002
7002
  onResize: L
7003
7003
  });
7004
7004
  let D = Y(!1);
7005
- gt(() => {
7005
+ bt(() => {
7006
7006
  let p, _ = () => {
7007
7007
  D.current = !0, clearTimeout(p), p = setTimeout(() => {
7008
7008
  D.current = !1;
@@ -7048,7 +7048,7 @@ function Nu(e) {
7048
7048
  };
7049
7049
  }
7050
7050
  function Fu(e) {
7051
- gt(() => (window.addEventListener("resize", e, !1), () => {
7051
+ bt(() => (window.addEventListener("resize", e, !1), () => {
7052
7052
  window.removeEventListener("resize", e, !1);
7053
7053
  }), [
7054
7054
  e
@@ -7212,7 +7212,7 @@ function Wu(e = {}) {
7212
7212
  [a, i, l, v, f, u]
7213
7213
  ), O = de(() => sd({ className: g, isGrid: v }), [g, v]), z = fc(c), L = o ? z.slice(0, o) : z, D = n || (o != null ? z.length - o : -1), H = L.map((K, I) => {
7214
7214
  const P = I === 0, m = I === L.length - 1, C = {
7215
- className: pt(
7215
+ className: gt(
7216
7216
  P ? "ms-0" : v ? "" : "-ms-2",
7217
7217
  m && D < 1 ? "hover:-translate-x-0" : ""
7218
7218
  )
@@ -7228,7 +7228,7 @@ function Wu(e = {}) {
7228
7228
  getAvatarGroupProps: () => ({
7229
7229
  ref: E,
7230
7230
  className: O.base({
7231
- class: pt($ == null ? void 0 : $.base, g)
7231
+ class: gt($ == null ? void 0 : $.base, g)
7232
7232
  }),
7233
7233
  role: "group",
7234
7234
  ...x
@@ -7918,7 +7918,7 @@ const Xu = R.div`
7918
7918
  text-align: center;
7919
7919
  }
7920
7920
  `;
7921
- function ub({ icon: e, ...t }) {
7921
+ function fb({ icon: e, ...t }) {
7922
7922
  const r = ci();
7923
7923
  return /* @__PURE__ */ y(
7924
7924
  Xu,
@@ -7960,7 +7960,7 @@ const Zu = R(Gu)`
7960
7960
  align-items: center;
7961
7961
  gap: ${({ isGrid: e }) => e ? "0.75rem" : "0"};
7962
7962
  `;
7963
- function fb({
7963
+ function pb({
7964
7964
  children: e,
7965
7965
  isGrid: t,
7966
7966
  renderCount: r
@@ -8100,7 +8100,7 @@ function Oa(e) {
8100
8100
  return Md() ? e.altKey : e.ctrlKey;
8101
8101
  }
8102
8102
  function jt(e) {
8103
- return bt() ? e.metaKey : e.ctrlKey;
8103
+ return vt() ? e.metaKey : e.ctrlKey;
8104
8104
  }
8105
8105
  const ef = 1e3;
8106
8106
  function tf(e) {
@@ -8551,11 +8551,11 @@ function lf(e) {
8551
8551
  disableIndicatorAnimation: L
8552
8552
  }),
8553
8553
  [x, B, M, O, L]
8554
- ), at = pt(oe == null ? void 0 : oe.base, l), Ur = q(
8554
+ ), it = gt(oe == null ? void 0 : oe.base, l), Ur = q(
8555
8555
  (Oe = {}) => ({
8556
8556
  "data-open": be(F),
8557
8557
  "data-disabled": be(B),
8558
- className: $e.base({ class: at }),
8558
+ className: $e.base({ class: it }),
8559
8559
  ...Pe(
8560
8560
  en(P, {
8561
8561
  enabled: C
@@ -8563,7 +8563,7 @@ function lf(e) {
8563
8563
  Oe
8564
8564
  )
8565
8565
  }),
8566
- [at, C, P, $e, n.props, F, B]
8566
+ [it, C, P, $e, n.props, F, B]
8567
8567
  ), rr = (Oe = {}) => {
8568
8568
  var Kt, Lt;
8569
8569
  return {
@@ -8625,7 +8625,7 @@ function lf(e) {
8625
8625
  ...Oe
8626
8626
  }),
8627
8627
  [$e, oe == null ? void 0 : oe.title, F, B, oe == null ? void 0 : oe.title]
8628
- ), it = q(
8628
+ ), st = q(
8629
8629
  (Oe = {}) => ({
8630
8630
  "data-open": be(F),
8631
8631
  "data-disabled": be(B),
@@ -8657,7 +8657,7 @@ function lf(e) {
8657
8657
  getContentProps: wt,
8658
8658
  getIndicatorProps: Wr,
8659
8659
  getTitleProps: We,
8660
- getSubtitleProps: it
8660
+ getSubtitleProps: st
8661
8661
  };
8662
8662
  }
8663
8663
  var Aa = (e) => /* @__PURE__ */ y(
@@ -9830,7 +9830,7 @@ const Mf = R(Pf)`
9830
9830
  }
9831
9831
  }
9832
9832
  `;
9833
- function pb({ children: e, ...t }) {
9833
+ function gb({ children: e, ...t }) {
9834
9834
  return /* @__PURE__ */ y(Mf, { ...t, children: e });
9835
9835
  }
9836
9836
  function If(e) {
@@ -9843,7 +9843,7 @@ function If(e) {
9843
9843
  ), v = de(() => {
9844
9844
  var x;
9845
9845
  return ((x = String(i)) == null ? void 0 : x.length) === 0;
9846
- }, [i]), w = pt(l == null ? void 0 : l.badge, a), g = de(
9846
+ }, [i]), w = gt(l == null ? void 0 : l.badge, a), g = de(
9847
9847
  () => da({
9848
9848
  ...r,
9849
9849
  showOutline: e != null && e.disableOutline ? !(e != null && e.disableOutline) : e == null ? void 0 : e.showOutline,
@@ -10017,7 +10017,7 @@ const Af = R.div`
10017
10017
  transform: "scale(1)"
10018
10018
  }
10019
10019
  };
10020
- function gb({
10020
+ function bb({
10021
10021
  children: e,
10022
10022
  isInvisible: t,
10023
10023
  disableAnimation: r,
@@ -10049,7 +10049,7 @@ function gb({
10049
10049
  ) }) })
10050
10050
  ] });
10051
10051
  }
10052
- function bb({
10052
+ function vb({
10053
10053
  children: e,
10054
10054
  ...t
10055
10055
  }) {
@@ -10161,16 +10161,16 @@ const Lf = R(Sl)`
10161
10161
  }
10162
10162
  }
10163
10163
  `;
10164
- function vb({ children: e, ...t }) {
10164
+ function yb({ children: e, ...t }) {
10165
10165
  return (
10166
10166
  // eslint-disable-next-line react/jsx-props-no-spreading
10167
10167
  /* @__PURE__ */ y(Df, { ...t, children: e })
10168
10168
  );
10169
10169
  }
10170
- function yb(e) {
10170
+ function $b(e) {
10171
10171
  return /* @__PURE__ */ y(Ff, { ...e });
10172
10172
  }
10173
- function $b({
10173
+ function hb({
10174
10174
  children: e,
10175
10175
  ...t
10176
10176
  }) {
@@ -10199,7 +10199,7 @@ function $b({
10199
10199
  ) })
10200
10200
  );
10201
10201
  }
10202
- function hb({ children: e, ...t }) {
10202
+ function mb({ children: e, ...t }) {
10203
10203
  return (
10204
10204
  // eslint-disable-next-line react/jsx-props-no-spreading
10205
10205
  /* @__PURE__ */ y(Lf, { ...t, children: e })
@@ -10362,7 +10362,7 @@ const Ye = R(Qa)`
10362
10362
  }
10363
10363
  }};
10364
10364
  }
10365
- `, mb = we(
10365
+ `, wb = we(
10366
10366
  function({
10367
10367
  isDisabled: t = !1,
10368
10368
  isLoading: r = !1,
@@ -10386,7 +10386,7 @@ const Ye = R(Qa)`
10386
10386
  display: flex;
10387
10387
  flex-direction: column;
10388
10388
  `;
10389
- function wb({ children: e, ...t }) {
10389
+ function xb({ children: e, ...t }) {
10390
10390
  return /* @__PURE__ */ y(zf, { ...t, children: e });
10391
10391
  }
10392
10392
  const Ne = R.div`
@@ -10592,10 +10592,10 @@ const Ne = R.div`
10592
10592
  }
10593
10593
  }
10594
10594
  `;
10595
- function xb({ children: e, ...t }) {
10595
+ function Cb({ children: e, ...t }) {
10596
10596
  return (
10597
10597
  // eslint-disable-next-line react/jsx-props-no-spreading
10598
- /* @__PURE__ */ y(Bf, { ...t, children: ({ isIndeterminate: r }) => /* @__PURE__ */ ee(yt, { children: [
10598
+ /* @__PURE__ */ y(Bf, { ...t, children: ({ isIndeterminate: r }) => /* @__PURE__ */ ee(at, { children: [
10599
10599
  /* @__PURE__ */ y(Ne, { children: /* @__PURE__ */ y(Sr, { viewBox: "0 0 18 18", "aria-hidden": "true", children: r ? /* @__PURE__ */ y("rect", { x: 1, y: 7.5, width: 15, height: 3 }) : /* @__PURE__ */ y("polyline", { points: "1 9 7 14 15 4" }) }) }),
10600
10600
  e
10601
10601
  ] }) })
@@ -10606,8 +10606,8 @@ const jf = R.div`
10606
10606
  `, Vf = R(Rt.div)`
10607
10607
  width: 100%;
10608
10608
  overflow: hidden;
10609
- `, Qi = ft({});
10610
- function Cb({
10609
+ `, Qi = pt({});
10610
+ function Sb({
10611
10611
  children: e,
10612
10612
  ...t
10613
10613
  }) {
@@ -10641,7 +10641,7 @@ function Cb({
10641
10641
  }
10642
10642
  );
10643
10643
  }
10644
- function Sb({ children: e }) {
10644
+ function Eb({ children: e }) {
10645
10645
  const { isOpen: t, id: r, defaultOpen: o } = Ae(
10646
10646
  Qi
10647
10647
  );
@@ -10678,7 +10678,7 @@ const Hf = (e) => {
10678
10678
  padding: 0 1rem;
10679
10679
 
10680
10680
  ${({ theme: e }) => Hf((e == null ? void 0 : e.screens) ?? d.screens)}
10681
- `, Eb = we(
10681
+ `, Pb = we(
10682
10682
  ({ children: e, ...t }, r) => (
10683
10683
  // eslint-disable-next-line react/jsx-props-no-spreading
10684
10684
  /* @__PURE__ */ y(Uf, { ...t, ref: r, children: e })
@@ -10967,11 +10967,11 @@ const t0 = R.div`
10967
10967
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[200]) ?? d.colors.slate[200];
10968
10968
  }};
10969
10969
  `;
10970
- function Pb(e) {
10970
+ function Tb(e) {
10971
10971
  const { orientation: t } = e, { separatorProps: r } = Gl(e);
10972
10972
  return /* @__PURE__ */ y(t0, { ...r, orientation: t });
10973
10973
  }
10974
- const ct = R(zr)`
10974
+ const dt = R(zr)`
10975
10975
  border: 1px solid
10976
10976
  ${({ theme: e }) => {
10977
10977
  var t, r;
@@ -11111,7 +11111,7 @@ function o0({
11111
11111
  ...o,
11112
11112
  children: [
11113
11113
  /* @__PURE__ */ y(es, { children: e }),
11114
- /* @__PURE__ */ y(ct, {}),
11114
+ /* @__PURE__ */ y(dt, {}),
11115
11115
  t && /* @__PURE__ */ y(rs, { slot: "description", children: t }),
11116
11116
  /* @__PURE__ */ y(ts, { children: r })
11117
11117
  ]
@@ -11140,7 +11140,7 @@ const n0 = R(Fr)`
11140
11140
  }};
11141
11141
  }
11142
11142
  `;
11143
- function Tb({ children: e, ...t }) {
11143
+ function kb({ children: e, ...t }) {
11144
11144
  return /* @__PURE__ */ y(n0, { ...t, children: e });
11145
11145
  }
11146
11146
  const a0 = R(Ml)`
@@ -11173,7 +11173,7 @@ const a0 = R(Ml)`
11173
11173
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[800]) ?? d.colors.slate[800];
11174
11174
  }};
11175
11175
  `;
11176
- function kb({
11176
+ function Mb({
11177
11177
  label: e,
11178
11178
  showValue: t = !0,
11179
11179
  value: r = 0,
@@ -11190,7 +11190,7 @@ function kb({
11190
11190
  maxValue: n,
11191
11191
  formatOptions: a,
11192
11192
  ...i,
11193
- children: ({ percentage: l, valueText: c }) => /* @__PURE__ */ ee(yt, { children: [
11193
+ children: ({ percentage: l, valueText: c }) => /* @__PURE__ */ ee(at, { children: [
11194
11194
  (e || t) && /* @__PURE__ */ ee(i0, { children: [
11195
11195
  e && /* @__PURE__ */ y(s0, { children: e }),
11196
11196
  t && /* @__PURE__ */ y(l0, { children: c })
@@ -11214,7 +11214,7 @@ const u0 = R(Il)`
11214
11214
  position: absolute;
11215
11215
  inset: 50%;
11216
11216
  `;
11217
- function Mb({ children: e, ...t }) {
11217
+ function Ib({ children: e, ...t }) {
11218
11218
  return /* @__PURE__ */ y(
11219
11219
  u0,
11220
11220
  {
@@ -11254,7 +11254,7 @@ const Da = Ie`
11254
11254
  animation: ${Da} 300ms reverse;
11255
11255
  }
11256
11256
  `;
11257
- function Ib(e) {
11257
+ function Ob(e) {
11258
11258
  return /* @__PURE__ */ y(
11259
11259
  f0,
11260
11260
  {
@@ -11300,8 +11300,8 @@ const Na = Ie`
11300
11300
  animation: ${Na} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
11301
11301
  }
11302
11302
  `;
11303
- function Ob(e) {
11304
- return /* @__PURE__ */ ee(yt, { children: [
11303
+ function Ab(e) {
11304
+ return /* @__PURE__ */ ee(at, { children: [
11305
11305
  /* @__PURE__ */ y(p0, {}),
11306
11306
  /* @__PURE__ */ y(
11307
11307
  Fo,
@@ -11390,7 +11390,7 @@ const g0 = Ie`
11390
11390
  }
11391
11391
  `;
11392
11392
  function h0({ direction: e, ...t }) {
11393
- return /* @__PURE__ */ ee(yt, { children: [
11393
+ return /* @__PURE__ */ ee(at, { children: [
11394
11394
  /* @__PURE__ */ y($0, {}),
11395
11395
  /* @__PURE__ */ y(
11396
11396
  zo,
@@ -11432,7 +11432,7 @@ const m0 = R(Al)`
11432
11432
  }
11433
11433
  }
11434
11434
 
11435
- ${ct} {
11435
+ ${dt} {
11436
11436
  border-radius: 0;
11437
11437
 
11438
11438
  &[data-focused] {
@@ -11441,7 +11441,7 @@ const m0 = R(Al)`
11441
11441
  }
11442
11442
 
11443
11443
  &[data-hovered] {
11444
- ${Ye}, ${ct} {
11444
+ ${Ye}, ${dt} {
11445
11445
  border-color: ${({ theme: e }) => {
11446
11446
  var t, r;
11447
11447
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[400]) ?? d.colors.slate[400];
@@ -11464,7 +11464,7 @@ const m0 = R(Al)`
11464
11464
  }};
11465
11465
  }
11466
11466
 
11467
- ${Ye}, ${ct} {
11467
+ ${Ye}, ${dt} {
11468
11468
  border-color: ${({ theme: e }) => {
11469
11469
  var t, r;
11470
11470
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[400]) ?? d.colors.slate[400];
@@ -11482,7 +11482,7 @@ const m0 = R(Al)`
11482
11482
  cursor: default;
11483
11483
  }
11484
11484
 
11485
- ${Ye}, ${ct} {
11485
+ ${Ye}, ${dt} {
11486
11486
  border-color: ${({ theme: e }) => {
11487
11487
  var t, r;
11488
11488
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[200]) ?? d.colors.slate[200];
@@ -11491,7 +11491,7 @@ const m0 = R(Al)`
11491
11491
  }
11492
11492
 
11493
11493
  &[data-invalid] {
11494
- ${Ye}, ${ct} {
11494
+ ${Ye}, ${dt} {
11495
11495
  border-color: ${({ theme: e }) => {
11496
11496
  var t, r;
11497
11497
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.red) == null ? void 0 : r[500]) ?? d.colors.red[500];
@@ -11595,7 +11595,7 @@ function S0({
11595
11595
  /* @__PURE__ */ y(es, { children: e }),
11596
11596
  /* @__PURE__ */ ee(w0, { isInvalid: o, "aria-readonly": n, children: [
11597
11597
  /* @__PURE__ */ y(Ye, { variant: "outline", slot: "decrement", children: a == null ? void 0 : a.decrementIcon }),
11598
- /* @__PURE__ */ y(ct, { readOnly: n }),
11598
+ /* @__PURE__ */ y(dt, { readOnly: n }),
11599
11599
  /* @__PURE__ */ y(Ye, { variant: "outline", slot: "increment", children: a == null ? void 0 : a.incrementIcon })
11600
11600
  ] }),
11601
11601
  t && /* @__PURE__ */ y(rs, { slot: "description", children: t }),
@@ -11948,7 +11948,7 @@ const R0 = R(ai)`
11948
11948
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[800]) ?? d.colors.slate[800];
11949
11949
  }};
11950
11950
  `;
11951
- function Ab({
11951
+ function Rb({
11952
11952
  label: e,
11953
11953
  value: t = 0,
11954
11954
  showValue: r = !0,
@@ -12037,7 +12037,7 @@ const F0 = R(ai)`
12037
12037
  }
12038
12038
  }
12039
12039
  `;
12040
- function Rb({
12040
+ function _b({
12041
12041
  label: e,
12042
12042
  isIndeterminate: t,
12043
12043
  showValue: r = !0,
@@ -12046,7 +12046,7 @@ function Rb({
12046
12046
  }) {
12047
12047
  return (
12048
12048
  // eslint-disable-next-line react/jsx-props-no-spreading
12049
- /* @__PURE__ */ y(F0, { ...n, width: o, children: ({ percentage: a, valueText: i }) => /* @__PURE__ */ ee(yt, { children: [
12049
+ /* @__PURE__ */ y(F0, { ...n, width: o, children: ({ percentage: a, valueText: i }) => /* @__PURE__ */ ee(at, { children: [
12050
12050
  /* @__PURE__ */ ee(z0, { children: [
12051
12051
  /* @__PURE__ */ y(B0, { children: e }),
12052
12052
  r && /* @__PURE__ */ y(j0, { children: i })
@@ -12073,7 +12073,7 @@ const U0 = R(Rl)`
12073
12073
  padding: 0.4rem 0;
12074
12074
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
12075
12075
  border-radius: 0.375rem;
12076
- width: 14rem;
12076
+ width: var(--trigger-width);
12077
12077
  background: #fff;
12078
12078
  border: 1px solid
12079
12079
  ${({ theme: e }) => {
@@ -12320,7 +12320,7 @@ const Q0 = R(Jt)`
12320
12320
  }};
12321
12321
  }
12322
12322
  `;
12323
- function _b(e) {
12323
+ function Kb(e) {
12324
12324
  return /* @__PURE__ */ y(
12325
12325
  tp,
12326
12326
  {
@@ -12371,7 +12371,7 @@ const rp = Ie`
12371
12371
  stroke-dashoffset: 0;
12372
12372
  animation: ${op} 1.5s ease-in-out infinite;
12373
12373
  `;
12374
- function Kb({
12374
+ function Lb({
12375
12375
  width: e,
12376
12376
  stroke: t,
12377
12377
  strokeLinecap: r = "round",
@@ -12433,6 +12433,33 @@ function lp() {
12433
12433
  ] });
12434
12434
  }
12435
12435
  function cp({
12436
+ buttonIcon: e,
12437
+ ...t
12438
+ }) {
12439
+ return e ? typeof e == "function" ? e(t) : e : /* @__PURE__ */ y(
12440
+ X0,
12441
+ {
12442
+ width: "24",
12443
+ height: "24",
12444
+ viewBox: "0 0 24 24",
12445
+ fill: "none",
12446
+ xmlns: "http://www.w3.org/2000/svg",
12447
+ isOpen: t.isOpen,
12448
+ isDisabled: t.isDisabled,
12449
+ isInvalid: t.isInvalid,
12450
+ children: /* @__PURE__ */ y(
12451
+ "path",
12452
+ {
12453
+ d: "M6 9L12 15L18 9",
12454
+ strokeWidth: "2",
12455
+ strokeLinecap: "round",
12456
+ strokeLinejoin: "round"
12457
+ }
12458
+ )
12459
+ }
12460
+ );
12461
+ }
12462
+ function dp({
12436
12463
  label: e,
12437
12464
  description: t,
12438
12465
  errorMessage: r,
@@ -12440,47 +12467,33 @@ function cp({
12440
12467
  placeholder: n,
12441
12468
  key: a,
12442
12469
  isLoading: i,
12443
- // setAnimation,
12444
- // animation = 'hidden',
12445
- ...l
12470
+ slots: l,
12471
+ ...c
12446
12472
  }) {
12447
- const [c, f] = ge("unmounted"), u = Y(null), [v, w] = ge(!1);
12448
- return /* @__PURE__ */ ee(
12473
+ const [f, u] = ge("unmounted"), [v, w] = ge(!1);
12474
+ return /* @__PURE__ */ y(
12449
12475
  U0,
12450
12476
  {
12451
- ref: u,
12452
12477
  onOpenChange: () => {
12453
- f(c === "visible" ? "hidden" : "visible"), w(!v);
12478
+ u(f === "visible" ? "hidden" : "visible"), w(!v);
12454
12479
  },
12455
- isDisabled: l.isDisabled || i,
12456
- ...l,
12457
- children: [
12480
+ isDisabled: c.isDisabled || i,
12481
+ ...c,
12482
+ children: (g) => /* @__PURE__ */ ee(at, { children: [
12458
12483
  /* @__PURE__ */ y(J0, { children: e }),
12459
12484
  /* @__PURE__ */ ee(W0, { children: [
12460
- /* @__PURE__ */ y(Y0, { placeholder: n, isLoading: i ?? !1 }),
12461
- i ? (
12462
- /** @todo make this a customizable loader with a slot */
12463
- /* @__PURE__ */ y(q0, { children: /* @__PURE__ */ y(lp, {}) })
12464
- ) : /* @__PURE__ */ y(Z0, { children: /* @__PURE__ */ y(
12465
- X0,
12485
+ /* @__PURE__ */ y(
12486
+ Y0,
12466
12487
  {
12467
- width: "24",
12468
- height: "24",
12469
- viewBox: "0 0 24 24",
12470
- fill: "none",
12471
- xmlns: "http://www.w3.org/2000/svg",
12472
- isOpen: c === "visible",
12473
- isDisabled: !!l.isDisabled,
12474
- isInvalid: !!l.isInvalid,
12475
- children: /* @__PURE__ */ y(
12476
- "path",
12477
- {
12478
- d: "M6 9L12 15L18 9",
12479
- strokeWidth: "2",
12480
- strokeLinecap: "round",
12481
- strokeLinejoin: "round"
12482
- }
12483
- )
12488
+ placeholder: n,
12489
+ isLoading: i ?? !1
12490
+ }
12491
+ ),
12492
+ i ? /* @__PURE__ */ y(q0, { children: (l == null ? void 0 : l.loadingIcon) || /* @__PURE__ */ y(lp, {}) }) : /* @__PURE__ */ y(Z0, { children: /* @__PURE__ */ y(
12493
+ cp,
12494
+ {
12495
+ buttonIcon: l == null ? void 0 : l.buttonIcon,
12496
+ ...g
12484
12497
  }
12485
12498
  ) })
12486
12499
  ] }),
@@ -12490,13 +12503,10 @@ function cp({
12490
12503
  G0,
12491
12504
  {
12492
12505
  isOpen: v,
12493
- style: {
12494
- width: u.current ? u.current.getBoundingClientRect().width : "14rem"
12495
- },
12496
- isExiting: c === "hidden",
12497
- onAnimationComplete: (g) => {
12498
- f(
12499
- ($) => g === "hidden" && $ === "hidden" ? "unmounted" : $
12506
+ isExiting: f === "hidden",
12507
+ onAnimationComplete: ($) => {
12508
+ u(
12509
+ (x) => $ === "hidden" && x === "hidden" ? "unmounted" : x
12500
12510
  );
12501
12511
  },
12502
12512
  variants: {
@@ -12504,26 +12514,28 @@ function cp({
12504
12514
  visible: { opacity: 1, y: 0 }
12505
12515
  },
12506
12516
  initial: "hidden",
12507
- animate: c,
12517
+ animate: f,
12508
12518
  children: /* @__PURE__ */ y(Kl, { style: { maxHeight: "20rem", overflowY: "scroll" }, children: o })
12509
12519
  },
12510
12520
  a
12511
12521
  )
12512
- ]
12522
+ ] })
12513
12523
  }
12514
12524
  );
12515
12525
  }
12516
- cp.defaultProps = {
12526
+ dp.defaultProps = {
12517
12527
  label: void 0,
12518
12528
  description: void 0,
12519
12529
  errorMessage: void 0,
12520
- // animation: 'unmounted',
12521
12530
  placeholder: "",
12522
12531
  key: void 0,
12523
- // setAnimation: undefined,
12524
- isLoading: !1
12532
+ isLoading: !1,
12533
+ slots: {
12534
+ loadingIcon: void 0,
12535
+ buttonIcon: void 0
12536
+ }
12525
12537
  };
12526
- const dp = R(Ll)`
12538
+ const up = R(Ll)`
12527
12539
  --label-color: ${({ theme: e }) => {
12528
12540
  var t, r;
12529
12541
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[500]) ?? d.colors.slate[500];
@@ -12573,12 +12585,12 @@ const dp = R(Ll)`
12573
12585
  height: 100%;
12574
12586
  width: 2rem;
12575
12587
  }
12576
- `, up = R(ot)`
12588
+ `, fp = R(ot)`
12577
12589
  display: flex;
12578
12590
  flex: 1 1 0;
12579
12591
  font-size: 0.8rem;
12580
12592
  color: var(--label-color);
12581
- `, fp = R(Dl)`
12593
+ `, pp = R(Dl)`
12582
12594
  display: flex;
12583
12595
  flex: 0 1 0;
12584
12596
  margin-left: auto;
@@ -12606,7 +12618,7 @@ const dp = R(Ll)`
12606
12618
  &[data-dragging] {
12607
12619
  background-color: var(--thumb-background-dragging);
12608
12620
  }
12609
- `, pp = R(Fl)`
12621
+ `, gp = R(Fl)`
12610
12622
  width: 100%;
12611
12623
  transition: all ease 0.25s;
12612
12624
 
@@ -12650,20 +12662,20 @@ const dp = R(Ll)`
12650
12662
  }
12651
12663
  }
12652
12664
  `;
12653
- function gp({
12665
+ function bp({
12654
12666
  label: e,
12655
12667
  showOutput: t = !0,
12656
12668
  thumbLabels: r,
12657
12669
  ...o
12658
12670
  }) {
12659
12671
  return /* @__PURE__ */ ee(
12660
- dp,
12672
+ up,
12661
12673
  {
12662
12674
  ...o,
12663
12675
  children: [
12664
- /* @__PURE__ */ y(up, { children: e }),
12665
- t && /* @__PURE__ */ y(fp, { children: ({ state: n }) => n.values.map((a, i) => n.getThumbValueLabel(i)).join(" – ") }),
12666
- /* @__PURE__ */ y(pp, { "data-track": !0, children: ({ state: n }) => n.values.map((a, i) => /* @__PURE__ */ y(
12676
+ /* @__PURE__ */ y(fp, { children: e }),
12677
+ t && /* @__PURE__ */ y(pp, { children: ({ state: n }) => n.values.map((a, i) => n.getThumbValueLabel(i)).join(" – ") }),
12678
+ /* @__PURE__ */ y(gp, { "data-track": !0, children: ({ state: n }) => n.values.map((a, i) => /* @__PURE__ */ y(
12667
12679
  Bo,
12668
12680
  {
12669
12681
  index: i,
@@ -12676,7 +12688,7 @@ function gp({
12676
12688
  }
12677
12689
  );
12678
12690
  }
12679
- gp.defaultProps = {
12691
+ bp.defaultProps = {
12680
12692
  label: void 0,
12681
12693
  showOutput: !0,
12682
12694
  thumbLabels: void 0
@@ -12706,7 +12718,7 @@ const Je = R.div`
12706
12718
  border-radius: 1.25rem;
12707
12719
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
12708
12720
  }
12709
- `, bp = R(zl)`
12721
+ `, vp = R(zl)`
12710
12722
  display: flex;
12711
12723
  align-items: center;
12712
12724
  gap: 0.5rem;
@@ -12804,16 +12816,16 @@ const Je = R.div`
12804
12816
  }
12805
12817
  }
12806
12818
  `;
12807
- function Lb({ children: e, ...t }) {
12819
+ function Db({ children: e, ...t }) {
12808
12820
  return (
12809
12821
  // eslint-disable-next-line react/jsx-props-no-spreading
12810
- /* @__PURE__ */ ee(bp, { ...t, children: [
12822
+ /* @__PURE__ */ ee(vp, { ...t, children: [
12811
12823
  /* @__PURE__ */ y(Je, {}),
12812
12824
  e
12813
12825
  ] })
12814
12826
  );
12815
12827
  }
12816
- const vp = R(Bl)`
12828
+ const yp = R(Bl)`
12817
12829
  width: 100%;
12818
12830
  display: flex;
12819
12831
  flex-direction: column;
@@ -12822,7 +12834,7 @@ const vp = R(Bl)`
12822
12834
  &[data-orientation='vertical'] {
12823
12835
  flex-direction: row;
12824
12836
  }
12825
- `, yp = R(jl)`
12837
+ `, $p = R(jl)`
12826
12838
  width: 100%;
12827
12839
  position: relative;
12828
12840
  display: flex;
@@ -12957,7 +12969,7 @@ const vp = R(Bl)`
12957
12969
  &[data-disabled] {
12958
12970
  opacity: 0.5;
12959
12971
  }
12960
- `, $p = R(Rt.span).attrs({
12972
+ `, hp = R(Rt.span).attrs({
12961
12973
  className: "tab-overlay"
12962
12974
  })`
12963
12975
  position: absolute;
@@ -13016,22 +13028,22 @@ const vp = R(Bl)`
13016
13028
  `;
13017
13029
  }
13018
13030
  }}
13019
- `, hp = R(Hl)`
13031
+ `, mp = R(Hl)`
13020
13032
  display: flex;
13021
13033
  flex-grow: 1;
13022
13034
  padding: 1rem 0;
13023
- `, vn = ft("horizontal");
13024
- function Db({ children: e, ...t }) {
13025
- return /* @__PURE__ */ y(vn.Provider, { value: t.orientation ?? "horizontal", children: /* @__PURE__ */ y(vp, { ...t, children: e }) });
13035
+ `, vn = pt("horizontal");
13036
+ function Nb({ children: e, ...t }) {
13037
+ return /* @__PURE__ */ y(vn.Provider, { value: t.orientation ?? "horizontal", children: /* @__PURE__ */ y(yp, { ...t, children: e }) });
13026
13038
  }
13027
- function Nb({ variant: e = "base", ...t }) {
13039
+ function Fb({ variant: e = "base", ...t }) {
13028
13040
  const r = Ae(vn);
13029
13041
  return (
13030
13042
  // eslint-disable-next-line react/jsx-props-no-spreading
13031
- /* @__PURE__ */ y(os, { orientation: r, variant: e, ...t, children: ({ isSelected: o, isFocusVisible: n }) => /* @__PURE__ */ ee(yt, { children: [
13043
+ /* @__PURE__ */ y(os, { orientation: r, variant: e, ...t, children: ({ isSelected: o, isFocusVisible: n }) => /* @__PURE__ */ ee(at, { children: [
13032
13044
  t.children,
13033
13045
  (n || o) && /* @__PURE__ */ y(
13034
- $p,
13046
+ hp,
13035
13047
  {
13036
13048
  orientation: r,
13037
13049
  layoutId: e,
@@ -13046,7 +13058,7 @@ function Nb({ variant: e = "base", ...t }) {
13046
13058
  ] }) })
13047
13059
  );
13048
13060
  }
13049
- function Fb({
13061
+ function zb({
13050
13062
  items: e,
13051
13063
  children: t,
13052
13064
  variant: r = "base",
@@ -13055,18 +13067,18 @@ function Fb({
13055
13067
  const n = Ae(vn);
13056
13068
  return (
13057
13069
  // eslint-disable-next-line react/jsx-props-no-spreading
13058
- /* @__PURE__ */ y(yp, { items: e, variant: r, ...o, children: t || ((a) => /* @__PURE__ */ y(os, { orientation: n, children: a.title })) })
13070
+ /* @__PURE__ */ y($p, { items: e, variant: r, ...o, children: t || ((a) => /* @__PURE__ */ y(os, { orientation: n, children: a.title })) })
13059
13071
  );
13060
13072
  }
13061
- function zb({ children: e, ...t }) {
13062
- return /* @__PURE__ */ y(hp, { ...t, children: e });
13073
+ function Bb({ children: e, ...t }) {
13074
+ return /* @__PURE__ */ y(mp, { ...t, children: e });
13063
13075
  }
13064
- const mp = R(Ul)`
13076
+ const wp = R(Ul)`
13065
13077
  color: ${({ theme: e }) => {
13066
13078
  var t, r;
13067
13079
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[900]) ?? d.colors.slate[900];
13068
13080
  }};
13069
- `, wp = R(ti)`
13081
+ `, xp = R(ti)`
13070
13082
  display: flex;
13071
13083
  align-items: center;
13072
13084
  border: 1px solid
@@ -13159,7 +13171,7 @@ const mp = R(Ul)`
13159
13171
  }};
13160
13172
  }
13161
13173
  }
13162
- `, xp = R(ri)`
13174
+ `, Cp = R(ri)`
13163
13175
  padding: 0.25rem;
13164
13176
  font-variant-numeric: tabular-nums;
13165
13177
  text-align: end;
@@ -13242,21 +13254,21 @@ const mp = R(Ul)`
13242
13254
  }};
13243
13255
  }
13244
13256
  }
13245
- `, Cp = R(ot)`
13257
+ `, Sp = R(ot)`
13246
13258
  display: flex;
13247
13259
  font-size: 0.8rem;
13248
13260
  color: ${({ theme: e }) => {
13249
13261
  var t, r;
13250
13262
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[500]) ?? d.colors.slate[500];
13251
13263
  }};
13252
- `, Sp = R(Jt)`
13264
+ `, Ep = R(Jt)`
13253
13265
  display: flex;
13254
13266
  color: ${({ theme: e }) => {
13255
13267
  var t, r;
13256
13268
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.red) == null ? void 0 : r[500]) ?? d.colors.red[500];
13257
13269
  }};
13258
13270
  font-size: 0.8rem;
13259
- `, Ep = R(Qt)`
13271
+ `, Pp = R(Qt)`
13260
13272
  display: flex;
13261
13273
  color: ${({ theme: e }) => {
13262
13274
  var t, r;
@@ -13264,31 +13276,31 @@ const mp = R(Ul)`
13264
13276
  }};
13265
13277
  font-size: 0.8rem;
13266
13278
  `;
13267
- function Pp({
13279
+ function Tp({
13268
13280
  label: e,
13269
13281
  description: t,
13270
13282
  errorMessage: r,
13271
13283
  ...o
13272
13284
  }) {
13273
13285
  return /* @__PURE__ */ ee(
13274
- mp,
13286
+ wp,
13275
13287
  {
13276
13288
  ...o,
13277
13289
  children: [
13278
- /* @__PURE__ */ y(Cp, { children: e }),
13279
- /* @__PURE__ */ y(wp, { children: (n) => /* @__PURE__ */ y(xp, { segment: n }) }),
13280
- /* @__PURE__ */ y(Ep, { slot: "description", children: t }),
13281
- /* @__PURE__ */ y(Sp, { children: r })
13290
+ /* @__PURE__ */ y(Sp, { children: e }),
13291
+ /* @__PURE__ */ y(xp, { children: (n) => /* @__PURE__ */ y(Cp, { segment: n }) }),
13292
+ /* @__PURE__ */ y(Pp, { slot: "description", children: t }),
13293
+ /* @__PURE__ */ y(Ep, { children: r })
13282
13294
  ]
13283
13295
  }
13284
13296
  );
13285
13297
  }
13286
- Pp.defaultProps = {
13298
+ Tp.defaultProps = {
13287
13299
  label: void 0,
13288
13300
  description: void 0,
13289
13301
  errorMessage: void 0
13290
13302
  };
13291
- const Tp = R(Wl)`
13303
+ const kp = R(Wl)`
13292
13304
  display: flex;
13293
13305
  align-items: center;
13294
13306
  font-size: 0.9rem;
@@ -13418,7 +13430,7 @@ const Tp = R(Wl)`
13418
13430
  }};
13419
13431
  }
13420
13432
  `;
13421
- function Bb({
13433
+ function jb({
13422
13434
  children: e,
13423
13435
  size: t = "md",
13424
13436
  variant: r = "solid",
@@ -13426,10 +13438,10 @@ function Bb({
13426
13438
  }) {
13427
13439
  return (
13428
13440
  // eslint-disable-next-line react/jsx-props-no-spreading
13429
- /* @__PURE__ */ y(Tp, { ...o, size: t, variant: r, children: e })
13441
+ /* @__PURE__ */ y(kp, { ...o, size: t, variant: r, children: e })
13430
13442
  );
13431
13443
  }
13432
- function kp(e) {
13444
+ function Mp(e) {
13433
13445
  let [t, r] = Vr(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
13434
13446
  const o = q(() => {
13435
13447
  r(!0);
@@ -13453,21 +13465,21 @@ function kp(e) {
13453
13465
  toggle: a
13454
13466
  };
13455
13467
  }
13456
- const Mp = 1500, Fa = 500;
13457
- let st = {}, Ip = 0, Vt = !1, Ze = null, lt = null;
13458
- function Op(e = {}) {
13459
- let { delay: t = Mp, closeDelay: r = Fa } = e, { isOpen: o, open: n, close: a } = kp(e), i = de(() => `${++Ip}`, []), l = Y(), c = () => {
13460
- st[i] = v;
13468
+ const Ip = 1500, Fa = 500;
13469
+ let lt = {}, Op = 0, Vt = !1, Ze = null, ct = null;
13470
+ function Ap(e = {}) {
13471
+ let { delay: t = Ip, closeDelay: r = Fa } = e, { isOpen: o, open: n, close: a } = Mp(e), i = de(() => `${++Op}`, []), l = Y(), c = () => {
13472
+ lt[i] = v;
13461
13473
  }, f = () => {
13462
- for (let g in st)
13463
- g !== i && (st[g](!0), delete st[g]);
13474
+ for (let g in lt)
13475
+ g !== i && (lt[g](!0), delete lt[g]);
13464
13476
  }, u = () => {
13465
- clearTimeout(l.current), l.current = null, f(), c(), Vt = !0, n(), Ze && (clearTimeout(Ze), Ze = null), lt && (clearTimeout(lt), lt = null);
13477
+ clearTimeout(l.current), l.current = null, f(), c(), Vt = !0, n(), Ze && (clearTimeout(Ze), Ze = null), ct && (clearTimeout(ct), ct = null);
13466
13478
  }, v = (g) => {
13467
13479
  g || r <= 0 ? (clearTimeout(l.current), l.current = null, a()) : l.current || (l.current = setTimeout(() => {
13468
13480
  l.current = null, a();
13469
- }, r)), Ze && (clearTimeout(Ze), Ze = null), Vt && (lt && clearTimeout(lt), lt = setTimeout(() => {
13470
- delete st[i], lt = null, Vt = !1;
13481
+ }, r)), Ze && (clearTimeout(Ze), Ze = null), Vt && (ct && clearTimeout(ct), ct = setTimeout(() => {
13482
+ delete lt[i], ct = null, Vt = !1;
13471
13483
  }, Math.max(Fa, r)));
13472
13484
  }, w = () => {
13473
13485
  f(), c(), !o && !Ze && !Vt ? Ze = setTimeout(() => {
@@ -13475,7 +13487,7 @@ function Op(e = {}) {
13475
13487
  }, t) : o || u();
13476
13488
  };
13477
13489
  return ie(() => () => {
13478
- clearTimeout(l.current), st[i] && delete st[i];
13490
+ clearTimeout(l.current), lt[i] && delete lt[i];
13479
13491
  }, [
13480
13492
  i
13481
13493
  ]), {
@@ -13486,7 +13498,7 @@ function Op(e = {}) {
13486
13498
  close: v
13487
13499
  };
13488
13500
  }
13489
- function Ap(e, t) {
13501
+ function Rp(e, t) {
13490
13502
  let r = Ci(e, {
13491
13503
  labelable: !0
13492
13504
  }), { hoverProps: o } = Hr({
@@ -13499,7 +13511,7 @@ function Ap(e, t) {
13499
13511
  })
13500
13512
  };
13501
13513
  }
13502
- function Rp(e, t, r) {
13514
+ function _p(e, t, r) {
13503
13515
  let { isDisabled: o, trigger: n } = e, a = $d(), i = Y(!1), l = Y(!1), c = () => {
13504
13516
  (i.current || l.current) && t.open(l.current);
13505
13517
  }, f = (k) => {
@@ -13549,7 +13561,7 @@ function Rp(e, t, r) {
13549
13561
  }
13550
13562
  };
13551
13563
  }
13552
- function _p(e) {
13564
+ function Kp(e) {
13553
13565
  const [t, r] = Ui(e, ca.variantKeys), {
13554
13566
  ref: o,
13555
13567
  as: n,
@@ -13579,7 +13591,7 @@ function _p(e) {
13579
13591
  motionProps: P,
13580
13592
  classNames: m,
13581
13593
  ...C
13582
- } = t, N = n || "div", B = Op({
13594
+ } = t, N = n || "div", B = Ap({
13583
13595
  delay: x,
13584
13596
  closeDelay: E,
13585
13597
  isDisabled: u,
@@ -13593,14 +13605,14 @@ function _p(e) {
13593
13605
  o,
13594
13606
  () => ql(G)
13595
13607
  );
13596
- const { triggerProps: h, tooltipProps: A } = Rp(
13608
+ const { triggerProps: h, tooltipProps: A } = _p(
13597
13609
  {
13598
13610
  isDisabled: u,
13599
13611
  trigger: v
13600
13612
  },
13601
13613
  B,
13602
13614
  F
13603
- ), { tooltipProps: U } = Ap(
13615
+ ), { tooltipProps: U } = Rp(
13604
13616
  {
13605
13617
  isOpen: j,
13606
13618
  ...Pe(t, A)
@@ -13635,12 +13647,12 @@ function _p(e) {
13635
13647
  G
13636
13648
  ), ne = de(
13637
13649
  () => {
13638
- var oe, $e, at;
13650
+ var oe, $e, it;
13639
13651
  return ca({
13640
13652
  ...r,
13641
13653
  radius: (oe = e == null ? void 0 : e.radius) != null ? oe : "md",
13642
13654
  size: ($e = e == null ? void 0 : e.size) != null ? $e : "md",
13643
- shadow: (at = e == null ? void 0 : e.shadow) != null ? at : "sm"
13655
+ shadow: (it = e == null ? void 0 : e.shadow) != null ? it : "sm"
13644
13656
  });
13645
13657
  },
13646
13658
  [Jo(r), e == null ? void 0 : e.radius, e == null ? void 0 : e.size, e == null ? void 0 : e.shadow]
@@ -13685,7 +13697,7 @@ function _p(e) {
13685
13697
  "data-arrow": be(k),
13686
13698
  "data-disabled": be(u),
13687
13699
  "data-placement": La(Q, $),
13688
- className: ne.content({ class: pt(m == null ? void 0 : m.content, K) })
13700
+ className: ne.content({ class: gt(m == null ? void 0 : m.content, K) })
13689
13701
  }),
13690
13702
  [ne, j, k, u, Q, $, m]
13691
13703
  );
@@ -13719,13 +13731,13 @@ var ns = mt((e, t) => {
13719
13731
  getTriggerProps: u,
13720
13732
  getTooltipProps: v,
13721
13733
  getTooltipContentProps: w
13722
- } = _p({
13734
+ } = Kp({
13723
13735
  ...e,
13724
13736
  ref: t
13725
13737
  });
13726
13738
  let g;
13727
13739
  try {
13728
- if (ut.count(o) !== 1)
13740
+ if (ft.count(o) !== 1)
13729
13741
  throw new Error();
13730
13742
  if (!Gt(o))
13731
13743
  g = /* @__PURE__ */ y("p", { ...u(), children: o });
@@ -13750,14 +13762,14 @@ var ns = mt((e, t) => {
13750
13762
  children: /* @__PURE__ */ y(r, { ...w(), children: n })
13751
13763
  }
13752
13764
  ) }) });
13753
- return /* @__PURE__ */ ee(yt, { children: [
13765
+ return /* @__PURE__ */ ee(at, { children: [
13754
13766
  g,
13755
13767
  c && a ? /* @__PURE__ */ y(Ia, { portalContainer: i, children: /* @__PURE__ */ y("div", { ref: $, id: x, style: E, ...k, children: /* @__PURE__ */ y(r, { ...w(), children: n }) }) }) : /* @__PURE__ */ y(qo, { children: a ? /* @__PURE__ */ y(Ia, { portalContainer: i, children: M }) : null })
13756
13768
  ] });
13757
13769
  });
13758
13770
  ns.displayName = "NextUI.Tooltip";
13759
- var Kp = ns;
13760
- const Lp = R(Kp).attrs({
13771
+ var Lp = ns;
13772
+ const Dp = R(Lp).attrs({
13761
13773
  className: "tooltip"
13762
13774
  })`
13763
13775
  z-index: 0;
@@ -13892,10 +13904,10 @@ const Lp = R(Kp).attrs({
13892
13904
  border-radius: 0.375rem;
13893
13905
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
13894
13906
  }
13895
- `, jb = we(
13907
+ `, Vb = we(
13896
13908
  function(t, r) {
13897
13909
  return /* @__PURE__ */ y(
13898
- Lp,
13910
+ Dp,
13899
13911
  {
13900
13912
  classNames: { base: ["tooltip"], content: ["tooltip-content"] },
13901
13913
  ...t,
@@ -13917,7 +13929,7 @@ function Se() {
13917
13929
  function as(e, t = []) {
13918
13930
  let r = [];
13919
13931
  function o(a, i) {
13920
- const l = /* @__PURE__ */ ft(i), c = r.length;
13932
+ const l = /* @__PURE__ */ pt(i), c = r.length;
13921
13933
  r = [
13922
13934
  ...r,
13923
13935
  i
@@ -13945,7 +13957,7 @@ function as(e, t = []) {
13945
13957
  ];
13946
13958
  }
13947
13959
  const n = () => {
13948
- const a = r.map((i) => /* @__PURE__ */ ft(i));
13960
+ const a = r.map((i) => /* @__PURE__ */ pt(i));
13949
13961
  return function(l) {
13950
13962
  const c = (l == null ? void 0 : l[e]) || a;
13951
13963
  return de(
@@ -13964,10 +13976,10 @@ function as(e, t = []) {
13964
13976
  };
13965
13977
  return n.scopeName = e, [
13966
13978
  o,
13967
- Dp(n, ...t)
13979
+ Np(n, ...t)
13968
13980
  ];
13969
13981
  }
13970
- function Dp(...e) {
13982
+ function Np(...e) {
13971
13983
  const t = e[0];
13972
13984
  if (e.length === 1)
13973
13985
  return t;
@@ -14004,21 +14016,21 @@ function ke(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
14004
14016
  return t == null ? void 0 : t(n);
14005
14017
  };
14006
14018
  }
14007
- function Np(e, t) {
14019
+ function Fp(e, t) {
14008
14020
  typeof e == "function" ? e(t) : e != null && (e.current = t);
14009
14021
  }
14010
14022
  function yn(...e) {
14011
14023
  return (t) => e.forEach(
14012
- (r) => Np(r, t)
14024
+ (r) => Fp(r, t)
14013
14025
  );
14014
14026
  }
14015
14027
  function rt(...e) {
14016
14028
  return q(yn(...e), e);
14017
14029
  }
14018
14030
  const Dr = /* @__PURE__ */ we((e, t) => {
14019
- const { children: r, ...o } = e, n = ut.toArray(r), a = n.find(zp);
14031
+ const { children: r, ...o } = e, n = ft.toArray(r), a = n.find(Bp);
14020
14032
  if (a) {
14021
- const i = a.props.children, l = n.map((c) => c === a ? ut.count(i) > 1 ? ut.only(null) : /* @__PURE__ */ Gt(i) ? i.props.children : null : c);
14033
+ const i = a.props.children, l = n.map((c) => c === a ? ft.count(i) > 1 ? ft.only(null) : /* @__PURE__ */ Gt(i) ? i.props.children : null : c);
14022
14034
  return /* @__PURE__ */ te(jo, Se({}, o, {
14023
14035
  ref: t
14024
14036
  }), /* @__PURE__ */ Gt(i) ? /* @__PURE__ */ Zt(i, void 0, l) : null);
@@ -14031,16 +14043,16 @@ Dr.displayName = "Slot";
14031
14043
  const jo = /* @__PURE__ */ we((e, t) => {
14032
14044
  const { children: r, ...o } = e;
14033
14045
  return /* @__PURE__ */ Gt(r) ? /* @__PURE__ */ Zt(r, {
14034
- ...Bp(o, r.props),
14046
+ ...jp(o, r.props),
14035
14047
  ref: t ? yn(t, r.ref) : r.ref
14036
- }) : ut.count(r) > 1 ? ut.only(null) : null;
14048
+ }) : ft.count(r) > 1 ? ft.only(null) : null;
14037
14049
  });
14038
14050
  jo.displayName = "SlotClone";
14039
- const Fp = ({ children: e }) => /* @__PURE__ */ te(Tr, null, e);
14040
- function zp(e) {
14041
- return /* @__PURE__ */ Gt(e) && e.type === Fp;
14051
+ const zp = ({ children: e }) => /* @__PURE__ */ te(Tr, null, e);
14052
+ function Bp(e) {
14053
+ return /* @__PURE__ */ Gt(e) && e.type === zp;
14042
14054
  }
14043
- function Bp(e, t) {
14055
+ function jp(e, t) {
14044
14056
  const r = {
14045
14057
  ...t
14046
14058
  };
@@ -14061,7 +14073,7 @@ function Bp(e, t) {
14061
14073
  ...r
14062
14074
  };
14063
14075
  }
14064
- const jp = [
14076
+ const Vp = [
14065
14077
  "a",
14066
14078
  "button",
14067
14079
  "div",
@@ -14078,7 +14090,7 @@ const jp = [
14078
14090
  "span",
14079
14091
  "svg",
14080
14092
  "ul"
14081
- ], Be = jp.reduce((e, t) => {
14093
+ ], Be = Vp.reduce((e, t) => {
14082
14094
  const r = /* @__PURE__ */ we((o, n) => {
14083
14095
  const { asChild: a, ...i } = o, l = a ? Dr : t;
14084
14096
  return ie(() => {
@@ -14109,9 +14121,9 @@ function ze(e) {
14109
14121
  []
14110
14122
  );
14111
14123
  }
14112
- function Vp({ prop: e, defaultProp: t, onChange: r = () => {
14124
+ function Hp({ prop: e, defaultProp: t, onChange: r = () => {
14113
14125
  } }) {
14114
- const [o, n] = Hp({
14126
+ const [o, n] = Up({
14115
14127
  defaultProp: t,
14116
14128
  onChange: r
14117
14129
  }), a = e !== void 0, i = a ? e : o, l = ze(r), c = q((f) => {
@@ -14131,7 +14143,7 @@ function Vp({ prop: e, defaultProp: t, onChange: r = () => {
14131
14143
  c
14132
14144
  ];
14133
14145
  }
14134
- function Hp({ defaultProp: e, onChange: t }) {
14146
+ function Up({ defaultProp: e, onChange: t }) {
14135
14147
  const r = ge(e), [o] = r, n = Y(o), a = ze(t);
14136
14148
  return ie(() => {
14137
14149
  n.current !== o && (a(o), n.current = o);
@@ -14141,30 +14153,30 @@ function Hp({ defaultProp: e, onChange: t }) {
14141
14153
  a
14142
14154
  ]), r;
14143
14155
  }
14144
- const Up = /* @__PURE__ */ ft(void 0);
14145
- function Wp(e) {
14146
- const t = Ae(Up);
14156
+ const Wp = /* @__PURE__ */ pt(void 0);
14157
+ function Gp(e) {
14158
+ const t = Ae(Wp);
14147
14159
  return e || t || "ltr";
14148
14160
  }
14149
14161
  const At = globalThis != null && globalThis.document ? Xa : () => {
14150
14162
  };
14151
- function Gp(e, t) {
14163
+ function Yp(e, t) {
14152
14164
  return wl((r, o) => {
14153
14165
  const n = t[r][o];
14154
14166
  return n ?? r;
14155
14167
  }, e);
14156
14168
  }
14157
14169
  const er = (e) => {
14158
- const { present: t, children: r } = e, o = Yp(t), n = typeof r == "function" ? r({
14170
+ const { present: t, children: r } = e, o = Xp(t), n = typeof r == "function" ? r({
14159
14171
  present: o.isPresent
14160
- }) : ut.only(r), a = rt(o.ref, n.ref);
14172
+ }) : ft.only(r), a = rt(o.ref, n.ref);
14161
14173
  return typeof r == "function" || o.isPresent ? /* @__PURE__ */ Zt(n, {
14162
14174
  ref: a
14163
14175
  }) : null;
14164
14176
  };
14165
14177
  er.displayName = "Presence";
14166
- function Yp(e) {
14167
- const [t, r] = ge(), o = Y({}), n = Y(e), a = Y("none"), i = e ? "mounted" : "unmounted", [l, c] = Gp(i, {
14178
+ function Xp(e) {
14179
+ const [t, r] = ge(), o = Y({}), n = Y(e), a = Y("none"), i = e ? "mounted" : "unmounted", [l, c] = Yp(i, {
14168
14180
  mounted: {
14169
14181
  UNMOUNT: "unmounted",
14170
14182
  ANIMATION_OUT: "unmountSuspended"
@@ -14222,14 +14234,14 @@ function Yp(e) {
14222
14234
  function xr(e) {
14223
14235
  return (e == null ? void 0 : e.animationName) || "none";
14224
14236
  }
14225
- const Xp = Pr["useId".toString()] || (() => {
14237
+ const qp = Pr["useId".toString()] || (() => {
14226
14238
  });
14227
- let qp = 0;
14239
+ let Zp = 0;
14228
14240
  function is(e) {
14229
- const [t, r] = Pr.useState(Xp());
14241
+ const [t, r] = Pr.useState(qp());
14230
14242
  return At(() => {
14231
14243
  e || r(
14232
- (o) => o ?? String(qp++)
14244
+ (o) => o ?? String(Zp++)
14233
14245
  );
14234
14246
  }, [
14235
14247
  e
@@ -14288,7 +14300,7 @@ function ss(e) {
14288
14300
  o
14289
14301
  ];
14290
14302
  }
14291
- function Zp(e, t = globalThis == null ? void 0 : globalThis.document) {
14303
+ function Jp(e, t = globalThis == null ? void 0 : globalThis.document) {
14292
14304
  const r = ze(e);
14293
14305
  ie(() => {
14294
14306
  const o = (n) => {
@@ -14300,27 +14312,27 @@ function Zp(e, t = globalThis == null ? void 0 : globalThis.document) {
14300
14312
  t
14301
14313
  ]);
14302
14314
  }
14303
- const Ho = "dismissableLayer.update", Jp = "dismissableLayer.pointerDownOutside", Qp = "dismissableLayer.focusOutside";
14315
+ const Ho = "dismissableLayer.update", Qp = "dismissableLayer.pointerDownOutside", eg = "dismissableLayer.focusOutside";
14304
14316
  let za;
14305
- const eg = /* @__PURE__ */ ft({
14317
+ const tg = /* @__PURE__ */ pt({
14306
14318
  layers: /* @__PURE__ */ new Set(),
14307
14319
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
14308
14320
  branches: /* @__PURE__ */ new Set()
14309
- }), tg = /* @__PURE__ */ we((e, t) => {
14321
+ }), rg = /* @__PURE__ */ we((e, t) => {
14310
14322
  var r;
14311
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: n, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: l, onDismiss: c, ...f } = e, u = Ae(eg), [v, w] = ge(null), g = (r = v == null ? void 0 : v.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, $] = ge({}), x = rt(
14323
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: n, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: l, onDismiss: c, ...f } = e, u = Ae(tg), [v, w] = ge(null), g = (r = v == null ? void 0 : v.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, $] = ge({}), x = rt(
14312
14324
  t,
14313
14325
  (p) => w(p)
14314
14326
  ), E = Array.from(u.layers), [k] = [
14315
14327
  ...u.layersWithOutsidePointerEventsDisabled
14316
- ].slice(-1), M = E.indexOf(k), O = v ? E.indexOf(v) : -1, z = u.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= M, D = rg((p) => {
14328
+ ].slice(-1), M = E.indexOf(k), O = v ? E.indexOf(v) : -1, z = u.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= M, D = og((p) => {
14317
14329
  const _ = p.target, K = [
14318
14330
  ...u.branches
14319
14331
  ].some(
14320
14332
  (I) => I.contains(_)
14321
14333
  );
14322
14334
  !L || K || (a == null || a(p), l == null || l(p), p.defaultPrevented || c == null || c());
14323
- }, g), H = og((p) => {
14335
+ }, g), H = ng((p) => {
14324
14336
  const _ = p.target;
14325
14337
  [
14326
14338
  ...u.branches
@@ -14328,7 +14340,7 @@ const eg = /* @__PURE__ */ ft({
14328
14340
  (I) => I.contains(_)
14329
14341
  ) || (i == null || i(p), l == null || l(p), p.defaultPrevented || c == null || c());
14330
14342
  }, g);
14331
- return Zp((p) => {
14343
+ return Jp((p) => {
14332
14344
  O === u.layers.size - 1 && (n == null || n(p), !p.defaultPrevented && c && (p.preventDefault(), c()));
14333
14345
  }, g), ie(() => {
14334
14346
  if (v)
@@ -14359,14 +14371,14 @@ const eg = /* @__PURE__ */ ft({
14359
14371
  onPointerDownCapture: ke(e.onPointerDownCapture, D.onPointerDownCapture)
14360
14372
  }));
14361
14373
  });
14362
- function rg(e, t = globalThis == null ? void 0 : globalThis.document) {
14374
+ function og(e, t = globalThis == null ? void 0 : globalThis.document) {
14363
14375
  const r = ze(e), o = Y(!1), n = Y(() => {
14364
14376
  });
14365
14377
  return ie(() => {
14366
14378
  const a = (l) => {
14367
14379
  if (l.target && !o.current) {
14368
14380
  let f = function() {
14369
- ls(Jp, r, c, {
14381
+ ls(Qp, r, c, {
14370
14382
  discrete: !0
14371
14383
  });
14372
14384
  };
@@ -14393,11 +14405,11 @@ function rg(e, t = globalThis == null ? void 0 : globalThis.document) {
14393
14405
  onPointerDownCapture: () => o.current = !0
14394
14406
  };
14395
14407
  }
14396
- function og(e, t = globalThis == null ? void 0 : globalThis.document) {
14408
+ function ng(e, t = globalThis == null ? void 0 : globalThis.document) {
14397
14409
  const r = ze(e), o = Y(!1);
14398
14410
  return ie(() => {
14399
14411
  const n = (a) => {
14400
- a.target && !o.current && ls(Qp, r, {
14412
+ a.target && !o.current && ls(eg, r, {
14401
14413
  originalEvent: a
14402
14414
  }, {
14403
14415
  discrete: !1
@@ -14426,7 +14438,7 @@ function ls(e, t, r, { discrete: o }) {
14426
14438
  once: !0
14427
14439
  }), o ? Vo(n, a) : n.dispatchEvent(a);
14428
14440
  }
14429
- function ng(e) {
14441
+ function ag(e) {
14430
14442
  const t = Y({
14431
14443
  value: e,
14432
14444
  previous: e
@@ -14435,7 +14447,7 @@ function ng(e) {
14435
14447
  e
14436
14448
  ]);
14437
14449
  }
14438
- const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14450
+ const ig = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14439
14451
  ref: t,
14440
14452
  style: {
14441
14453
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -14451,14 +14463,14 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14451
14463
  wordWrap: "normal",
14452
14464
  ...e.style
14453
14465
  }
14454
- }))), ig = ag, tr = "NavigationMenu", [$n, cs, sg] = ss(tr), [Uo, lg, cg] = ss(tr), [hn, Vb] = as(tr, [
14455
- sg,
14456
- cg
14457
- ]), [dg, Ue] = hn(tr), [ug, fg] = hn(tr), pg = /* @__PURE__ */ we((e, t) => {
14466
+ }))), sg = ig, tr = "NavigationMenu", [$n, cs, lg] = ss(tr), [Uo, cg, dg] = ss(tr), [hn, Hb] = as(tr, [
14467
+ lg,
14468
+ dg
14469
+ ]), [ug, Ue] = hn(tr), [fg, pg] = hn(tr), gg = /* @__PURE__ */ we((e, t) => {
14458
14470
  const { __scopeNavigationMenu: r, value: o, onValueChange: n, defaultValue: a, delayDuration: i = 200, skipDelayDuration: l = 300, orientation: c = "horizontal", dir: f, ...u } = e, [v, w] = ge(null), g = rt(
14459
14471
  t,
14460
14472
  (_) => w(_)
14461
- ), $ = Wp(f), x = Y(0), E = Y(0), k = Y(0), [M, O] = ge(!0), [z = "", L] = Vp({
14473
+ ), $ = Gp(f), x = Y(0), E = Y(0), k = Y(0), [M, O] = ge(!0), [z = "", L] = Hp({
14462
14474
  prop: o,
14463
14475
  onChange: (_) => {
14464
14476
  const K = _ !== "", I = l > 0;
@@ -14490,7 +14502,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14490
14502
  ]);
14491
14503
  return ie(() => () => {
14492
14504
  window.clearTimeout(x.current), window.clearTimeout(E.current), window.clearTimeout(k.current);
14493
- }, []), /* @__PURE__ */ te(gg, {
14505
+ }, []), /* @__PURE__ */ te(bg, {
14494
14506
  scope: r,
14495
14507
  isRootMenu: !0,
14496
14508
  value: z,
@@ -14518,14 +14530,14 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14518
14530
  }, u, {
14519
14531
  ref: g
14520
14532
  })));
14521
- }), gg = (e) => {
14533
+ }), bg = (e) => {
14522
14534
  const { scope: t, isRootMenu: r, rootNavigationMenu: o, dir: n, orientation: a, children: i, value: l, onItemSelect: c, onItemDismiss: f, onTriggerEnter: u, onTriggerLeave: v, onContentEnter: w, onContentLeave: g } = e, [$, x] = ge(null), [E, k] = ge(/* @__PURE__ */ new Map()), [M, O] = ge(null);
14523
- return /* @__PURE__ */ te(dg, {
14535
+ return /* @__PURE__ */ te(ug, {
14524
14536
  scope: t,
14525
14537
  isRootMenu: r,
14526
14538
  rootNavigationMenu: o,
14527
14539
  value: l,
14528
- previousValue: ng(l),
14540
+ previousValue: ag(l),
14529
14541
  baseId: is(),
14530
14542
  dir: n,
14531
14543
  orientation: a,
@@ -14547,12 +14559,12 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14547
14559
  }, [])
14548
14560
  }, /* @__PURE__ */ te($n.Provider, {
14549
14561
  scope: t
14550
- }, /* @__PURE__ */ te(ug, {
14562
+ }, /* @__PURE__ */ te(fg, {
14551
14563
  scope: t,
14552
14564
  items: E
14553
14565
  }, i)));
14554
- }, bg = "NavigationMenuList", vg = /* @__PURE__ */ we((e, t) => {
14555
- const { __scopeNavigationMenu: r, ...o } = e, n = Ue(bg, r), a = /* @__PURE__ */ te(Be.ul, Se({
14566
+ }, vg = "NavigationMenuList", yg = /* @__PURE__ */ we((e, t) => {
14567
+ const { __scopeNavigationMenu: r, ...o } = e, n = Ue(vg, r), a = /* @__PURE__ */ te(Be.ul, Se({
14556
14568
  "data-orientation": n.orientation
14557
14569
  }, o, {
14558
14570
  ref: t
@@ -14567,7 +14579,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14567
14579
  }, n.isRootMenu ? /* @__PURE__ */ te(gs, {
14568
14580
  asChild: !0
14569
14581
  }, a) : a));
14570
- }), yg = "NavigationMenuItem", [$g, ds] = hn(yg), hg = /* @__PURE__ */ we((e, t) => {
14582
+ }), $g = "NavigationMenuItem", [hg, ds] = hn($g), mg = /* @__PURE__ */ we((e, t) => {
14571
14583
  const { __scopeNavigationMenu: r, value: o, ...n } = e, a = is(), i = o || a || "LEGACY_REACT_AUTO_VALUE", l = Y(null), c = Y(null), f = Y(null), u = Y(() => {
14572
14584
  }), v = Y(!1), w = q(($ = "start") => {
14573
14585
  if (l.current) {
@@ -14578,10 +14590,10 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14578
14590
  }, []), g = q(() => {
14579
14591
  if (l.current) {
14580
14592
  const $ = Wo(l.current);
14581
- $.length && (u.current = Ig($));
14593
+ $.length && (u.current = Og($));
14582
14594
  }
14583
14595
  }, []);
14584
- return /* @__PURE__ */ te($g, {
14596
+ return /* @__PURE__ */ te(hg, {
14585
14597
  scope: r,
14586
14598
  value: i,
14587
14599
  triggerRef: c,
@@ -14595,7 +14607,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14595
14607
  }, /* @__PURE__ */ te(Be.li, Se({}, n, {
14596
14608
  ref: t
14597
14609
  })));
14598
- }), ja = "NavigationMenuTrigger", mg = /* @__PURE__ */ we((e, t) => {
14610
+ }), ja = "NavigationMenuTrigger", wg = /* @__PURE__ */ we((e, t) => {
14599
14611
  const { __scopeNavigationMenu: r, disabled: o, ...n } = e, a = Ue(ja, e.__scopeNavigationMenu), i = ds(ja, e.__scopeNavigationMenu), l = Y(null), c = rt(l, i.triggerRef, t), f = vs(a.baseId, i.value), u = ys(a.baseId, i.value), v = Y(!1), w = Y(!1), g = i.value === a.value;
14600
14612
  return /* @__PURE__ */ te(Tr, null, /* @__PURE__ */ te($n.ItemSlot, {
14601
14613
  scope: r,
@@ -14630,7 +14642,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14630
14642
  }[a.orientation];
14631
14643
  g && $.key === E && (i.onEntryKeyDown(), $.preventDefault());
14632
14644
  })
14633
- })))), g && /* @__PURE__ */ te(Tr, null, /* @__PURE__ */ te(ig, {
14645
+ })))), g && /* @__PURE__ */ te(Tr, null, /* @__PURE__ */ te(sg, {
14634
14646
  "aria-hidden": !0,
14635
14647
  tabIndex: 0,
14636
14648
  ref: i.focusProxyRef,
@@ -14641,7 +14653,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14641
14653
  }), a.viewport && /* @__PURE__ */ te("span", {
14642
14654
  "aria-owns": u
14643
14655
  })));
14644
- }), Va = "navigationMenu.linkSelect", wg = /* @__PURE__ */ we((e, t) => {
14656
+ }), Va = "navigationMenu.linkSelect", xg = /* @__PURE__ */ we((e, t) => {
14645
14657
  const { __scopeNavigationMenu: r, active: o, onSelect: n, ...a } = e;
14646
14658
  return /* @__PURE__ */ te(bs, {
14647
14659
  asChild: !0
@@ -14672,14 +14684,14 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14672
14684
  checkForDefaultPrevented: !1
14673
14685
  })
14674
14686
  })));
14675
- }), us = "NavigationMenuIndicator", xg = /* @__PURE__ */ we((e, t) => {
14687
+ }), us = "NavigationMenuIndicator", Cg = /* @__PURE__ */ we((e, t) => {
14676
14688
  const { forceMount: r, ...o } = e, n = Ue(us, e.__scopeNavigationMenu), a = !!n.value;
14677
14689
  return n.indicatorTrack ? /* @__PURE__ */ Za.createPortal(/* @__PURE__ */ te(er, {
14678
14690
  present: r || a
14679
- }, /* @__PURE__ */ te(Cg, Se({}, o, {
14691
+ }, /* @__PURE__ */ te(Sg, Se({}, o, {
14680
14692
  ref: t
14681
14693
  }))), n.indicatorTrack) : null;
14682
- }), Cg = /* @__PURE__ */ we((e, t) => {
14694
+ }), Sg = /* @__PURE__ */ we((e, t) => {
14683
14695
  const { __scopeNavigationMenu: r, ...o } = e, n = Ue(us, r), a = cs(r), [i, l] = ge(null), [c, f] = ge(null), u = n.orientation === "horizontal", v = !!n.value;
14684
14696
  ie(() => {
14685
14697
  var g;
@@ -14717,7 +14729,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14717
14729
  ...o.style
14718
14730
  }
14719
14731
  })) : null;
14720
- }), qt = "NavigationMenuContent", Sg = /* @__PURE__ */ we((e, t) => {
14732
+ }), qt = "NavigationMenuContent", Eg = /* @__PURE__ */ we((e, t) => {
14721
14733
  const { forceMount: r, ...o } = e, n = Ue(qt, e.__scopeNavigationMenu), a = ds(qt, e.__scopeNavigationMenu), i = rt(a.contentRef, t), l = a.value === n.value, c = {
14722
14734
  value: a.value,
14723
14735
  triggerRef: a.triggerRef,
@@ -14727,7 +14739,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14727
14739
  onRootContentClose: a.onRootContentClose,
14728
14740
  ...o
14729
14741
  };
14730
- return n.viewport ? /* @__PURE__ */ te(Eg, Se({
14742
+ return n.viewport ? /* @__PURE__ */ te(Pg, Se({
14731
14743
  forceMount: r
14732
14744
  }, c, {
14733
14745
  ref: i
@@ -14745,7 +14757,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14745
14757
  ...c.style
14746
14758
  }
14747
14759
  })));
14748
- }), Eg = /* @__PURE__ */ we((e, t) => {
14760
+ }), Pg = /* @__PURE__ */ we((e, t) => {
14749
14761
  const r = Ue(qt, e.__scopeNavigationMenu), { onViewportContentChange: o, onViewportContentRemove: n } = r;
14750
14762
  return At(() => {
14751
14763
  o(e.value, {
@@ -14805,7 +14817,7 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14805
14817
  ]);
14806
14818
  return /* @__PURE__ */ te(gs, {
14807
14819
  asChild: !0
14808
- }, /* @__PURE__ */ te(tg, Se({
14820
+ }, /* @__PURE__ */ te(rg, Se({
14809
14821
  id: $,
14810
14822
  "aria-labelledby": g,
14811
14823
  "data-motion": M,
@@ -14852,15 +14864,15 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14852
14864
  i.current = !0;
14853
14865
  })
14854
14866
  })));
14855
- }), ps = "NavigationMenuViewport", Pg = /* @__PURE__ */ we((e, t) => {
14867
+ }), ps = "NavigationMenuViewport", Tg = /* @__PURE__ */ we((e, t) => {
14856
14868
  const { forceMount: r, ...o } = e, a = !!Ue(ps, e.__scopeNavigationMenu).value;
14857
14869
  return /* @__PURE__ */ te(er, {
14858
14870
  present: r || a
14859
- }, /* @__PURE__ */ te(Tg, Se({}, o, {
14871
+ }, /* @__PURE__ */ te(kg, Se({}, o, {
14860
14872
  ref: t
14861
14873
  })));
14862
- }), Tg = /* @__PURE__ */ we((e, t) => {
14863
- const { __scopeNavigationMenu: r, children: o, ...n } = e, a = Ue(ps, r), i = rt(t, a.onViewportChange), l = fg(qt, e.__scopeNavigationMenu), [c, f] = ge(null), [u, v] = ge(null), w = c ? (c == null ? void 0 : c.width) + "px" : void 0, g = c ? (c == null ? void 0 : c.height) + "px" : void 0, $ = !!a.value, x = $ ? a.value : a.previousValue;
14874
+ }), kg = /* @__PURE__ */ we((e, t) => {
14875
+ const { __scopeNavigationMenu: r, children: o, ...n } = e, a = Ue(ps, r), i = rt(t, a.onViewportChange), l = pg(qt, e.__scopeNavigationMenu), [c, f] = ge(null), [u, v] = ge(null), w = c ? (c == null ? void 0 : c.width) + "px" : void 0, g = c ? (c == null ? void 0 : c.height) + "px" : void 0, $ = !!a.value, x = $ ? a.value : a.previousValue;
14864
14876
  return Go(u, () => {
14865
14877
  u && f({
14866
14878
  width: u.offsetWidth,
@@ -14891,8 +14903,8 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14891
14903
  })
14892
14904
  })));
14893
14905
  }));
14894
- }), kg = "FocusGroup", gs = /* @__PURE__ */ we((e, t) => {
14895
- const { __scopeNavigationMenu: r, ...o } = e, n = Ue(kg, r);
14906
+ }), Mg = "FocusGroup", gs = /* @__PURE__ */ we((e, t) => {
14907
+ const { __scopeNavigationMenu: r, ...o } = e, n = Ue(Mg, r);
14896
14908
  return /* @__PURE__ */ te(Uo.Provider, {
14897
14909
  scope: r
14898
14910
  }, /* @__PURE__ */ te(Uo.Slot, {
@@ -14907,8 +14919,8 @@ const ag = /* @__PURE__ */ we((e, t) => /* @__PURE__ */ te(Be.span, Se({}, e, {
14907
14919
  "ArrowLeft",
14908
14920
  "ArrowUp",
14909
14921
  "ArrowDown"
14910
- ], Mg = "FocusGroupItem", bs = /* @__PURE__ */ we((e, t) => {
14911
- const { __scopeNavigationMenu: r, ...o } = e, n = lg(r), a = Ue(Mg, r);
14922
+ ], Ig = "FocusGroupItem", bs = /* @__PURE__ */ we((e, t) => {
14923
+ const { __scopeNavigationMenu: r, ...o } = e, n = cg(r), a = Ue(Ig, r);
14912
14924
  return /* @__PURE__ */ te(Uo.ItemSlot, {
14913
14925
  scope: r
14914
14926
  }, /* @__PURE__ */ te(Be.button, Se({}, o, {
@@ -14952,7 +14964,7 @@ function mn(e) {
14952
14964
  const t = document.activeElement;
14953
14965
  return e.some((r) => r === t ? !0 : (r.focus(), document.activeElement !== t));
14954
14966
  }
14955
- function Ig(e) {
14967
+ function Og(e) {
14956
14968
  return e.forEach((t) => {
14957
14969
  t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
14958
14970
  }), () => {
@@ -14991,7 +15003,7 @@ function ys(e, t) {
14991
15003
  function Nr(e) {
14992
15004
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
14993
15005
  }
14994
- const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng = Ie`
15006
+ const Ag = gg, Rg = yg, yo = mg, _g = wg, Kg = xg, Lg = Cg, Dg = Eg, Ng = Tg, Fg = Ie`
14995
15007
  from {
14996
15008
  opacity: 0;
14997
15009
  transform: translateX(200px);
@@ -15000,7 +15012,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15000
15012
  opacity: 1;
15001
15013
  transform: translateX(0);
15002
15014
  }
15003
- `, Fg = Ie`
15015
+ `, zg = Ie`
15004
15016
  from {
15005
15017
  opacity: 0;
15006
15018
  transform: translateX(-200px);
@@ -15009,7 +15021,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15009
15021
  opacity: 1;
15010
15022
  transform: translateX(0);
15011
15023
  }
15012
- `, zg = Ie`
15024
+ `, Bg = Ie`
15013
15025
  from {
15014
15026
  opacity: 1;
15015
15027
  transform: translateX(0);
@@ -15018,7 +15030,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15018
15030
  opacity: 0;
15019
15031
  transform: translateX(200px);
15020
15032
  }
15021
- `, Bg = Ie`
15033
+ `, jg = Ie`
15022
15034
  from {
15023
15035
  opacity: 1;
15024
15036
  transform: translateX(0);
@@ -15027,7 +15039,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15027
15039
  opacity: 0;
15028
15040
  transform: translateX(-200px);
15029
15041
  }
15030
- `, jg = Ie`
15042
+ `, Vg = Ie`
15031
15043
  from {
15032
15044
  opacity: 0;
15033
15045
  transform: rotateX(-30deg) scale(0.9);
@@ -15036,7 +15048,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15036
15048
  opacity: 1;
15037
15049
  transform: rotateX(0deg) scale(1);
15038
15050
  }
15039
- `, Vg = Ie`
15051
+ `, Hg = Ie`
15040
15052
  from {
15041
15053
  opacity: 1;
15042
15054
  transform: rotateX(0deg) scale(1);
@@ -15045,14 +15057,14 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15045
15057
  opacity: 0;
15046
15058
  transform: rotateX(-10deg) scale(0.95);
15047
15059
  }
15048
- `, Hg = Ie`
15060
+ `, Ug = Ie`
15049
15061
  from {
15050
15062
  opacity: 0;
15051
15063
  }
15052
15064
  to {
15053
15065
  opacity: 1;
15054
15066
  }
15055
- `, Ug = Ie`
15067
+ `, Wg = Ie`
15056
15068
  from {
15057
15069
  opacity: 1;
15058
15070
  }
@@ -15067,19 +15079,19 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15067
15079
  }};
15068
15080
  top: 1px;
15069
15081
  transition: transform 200ms ease;
15070
- `, Wg = R(Og)`
15082
+ `, Gg = R(Ag)`
15071
15083
  position: relative;
15072
15084
  display: flex;
15073
15085
  width: 100%;
15074
15086
  justify-content: center;
15075
15087
  z-index: 1;
15076
- `, Gg = R(Ag)`
15088
+ `, Yg = R(Rg)`
15077
15089
  display: flex;
15078
15090
  justify-content: center;
15079
15091
  list-style: none;
15080
15092
  margin: 0;
15081
15093
  padding: 0;
15082
- `, Ua = R(Rg)`
15094
+ `, Ua = R(_g)`
15083
15095
  display: flex;
15084
15096
  align-items: center;
15085
15097
  justify-content: space-between;
@@ -15118,7 +15130,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15118
15130
  &[data-state='open'] > ${$s} {
15119
15131
  transform: rotate(-180deg);
15120
15132
  }
15121
- `, Yo = R(_g)`
15133
+ `, Yo = R(Kg)`
15122
15134
  display: block;
15123
15135
  text-decoration: none;
15124
15136
  font-size: 0.9rem;
@@ -15152,7 +15164,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15152
15164
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[100]) ?? d.colors.slate[100];
15153
15165
  }};
15154
15166
  }
15155
- `, Wa = R(Lg)`
15167
+ `, Wa = R(Dg)`
15156
15168
  position: absolute;
15157
15169
  top: 0;
15158
15170
  left: 0;
@@ -15161,22 +15173,22 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15161
15173
  animation-timing-function: ease;
15162
15174
 
15163
15175
  &[data-motion='from-start'] {
15164
- animation-name: ${Fg};
15176
+ animation-name: ${zg};
15165
15177
  }
15166
15178
  &[data-motion='from-end'] {
15167
- animation-name: ${Ng};
15179
+ animation-name: ${Fg};
15168
15180
  }
15169
15181
  &[data-motion='to-start'] {
15170
- animation-name: ${Bg};
15182
+ animation-name: ${jg};
15171
15183
  }
15172
15184
  &[data-motion='to-end'] {
15173
- animation-name: ${zg};
15185
+ animation-name: ${Bg};
15174
15186
  }
15175
15187
 
15176
15188
  @media only screen and (min-width: 600px) {
15177
15189
  width: auto;
15178
15190
  }
15179
- `, Yg = R(Kg)`
15191
+ `, Xg = R(Lg)`
15180
15192
  display: flex;
15181
15193
  align-items: flex-end;
15182
15194
  justify-content: center;
@@ -15187,13 +15199,13 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15187
15199
  transition: width, transform 250ms ease;
15188
15200
 
15189
15201
  &[data-state='visible'] {
15190
- animation: ${Hg} 200ms ease;
15202
+ animation: ${Ug} 200ms ease;
15191
15203
  }
15192
15204
 
15193
15205
  &[data-state='hidden'] {
15194
- animation: ${Ug} 200ms ease;
15206
+ animation: ${Wg} 200ms ease;
15195
15207
  }
15196
- `, Xg = R(Dg)`
15208
+ `, qg = R(Ng)`
15197
15209
  position: relative;
15198
15210
  transform-origin: top center;
15199
15211
  margin-top: 10px;
@@ -15209,11 +15221,11 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15209
15221
  transition: width, height, 300ms ease;
15210
15222
 
15211
15223
  &[data-state='open'] {
15212
- animation: ${jg} 200ms ease;
15224
+ animation: ${Vg} 200ms ease;
15213
15225
  }
15214
15226
 
15215
15227
  &[data-state='closed'] {
15216
- animation: ${Vg} 200ms ease;
15228
+ animation: ${Hg} 200ms ease;
15217
15229
  }
15218
15230
 
15219
15231
  @media only screen and (min-width: 600px) {
@@ -15238,7 +15250,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15238
15250
  grid-template-rows: repeat(3, 1fr);
15239
15251
  }
15240
15252
  }
15241
- `, qg = R(Fr)`
15253
+ `, Zg = R(Fr)`
15242
15254
  display: block;
15243
15255
  outline: none;
15244
15256
  text-decoration: none;
@@ -15263,7 +15275,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15263
15275
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[100]) ?? d.colors.slate[100];
15264
15276
  }};
15265
15277
  }
15266
- `, Zg = R.div`
15278
+ `, Jg = R.div`
15267
15279
  font-weight: 500;
15268
15280
  line-height: 1.2;
15269
15281
  margin-bottom: 5px;
@@ -15271,14 +15283,14 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15271
15283
  var t, r;
15272
15284
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[900]) ?? d.colors.slate[900];
15273
15285
  }};
15274
- `, Jg = R.p`
15286
+ `, Qg = R.p`
15275
15287
  color: ${({ theme: e }) => {
15276
15288
  var t, r;
15277
15289
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[900]) ?? d.colors.slate[900];
15278
15290
  }};
15279
15291
  line-height: 1.4;
15280
15292
  font-weight: initial;
15281
- `, Qg = R(Fr)`
15293
+ `, eb = R(Fr)`
15282
15294
  display: flex;
15283
15295
  justify-content: flex-end;
15284
15296
  flex-direction: column;
@@ -15310,18 +15322,18 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15310
15322
  return ((r = (t = e == null ? void 0 : e.colors) == null ? void 0 : t.slate) == null ? void 0 : r[900]) ?? d.colors.slate[900];
15311
15323
  }};
15312
15324
  }
15313
- `, eb = R.div`
15325
+ `, tb = R.div`
15314
15326
  color: white;
15315
15327
  font-size: 18px;
15316
15328
  font-weight: 500;
15317
15329
  line-height: 1.2;
15318
15330
  margin-top: 16px;
15319
15331
  margin-bottom: 7px;
15320
- `, tb = R.p`
15332
+ `, rb = R.p`
15321
15333
  color: white;
15322
15334
  font-size: 14px;
15323
15335
  line-height: 1.3;
15324
- `, rb = R.div`
15336
+ `, ob = R.div`
15325
15337
  position: absolute;
15326
15338
  display: flex;
15327
15339
  justify-content: center;
@@ -15329,7 +15341,7 @@ const Og = pg, Ag = vg, yo = hg, Rg = mg, _g = wg, Kg = xg, Lg = Sg, Dg = Pg, Ng
15329
15341
  top: 100%;
15330
15342
  left: 0;
15331
15343
  perspective: 2000px;
15332
- `, ob = R.div`
15344
+ `, nb = R.div`
15333
15345
  position: relative;
15334
15346
  top: 70%;
15335
15347
  background-color: white;
@@ -15370,14 +15382,14 @@ Xo.defaultProps = {
15370
15382
  };
15371
15383
  const Ge = we(
15372
15384
  ({ className: e, children: t, title: r, ...o }, n) => /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(Yo, { asChild: !0, children: /* @__PURE__ */ ee(
15373
- qg,
15385
+ Zg,
15374
15386
  {
15375
15387
  className: `${e ?? ""}`,
15376
15388
  ...o,
15377
15389
  ref: n,
15378
15390
  children: [
15379
- /* @__PURE__ */ y(Zg, { children: r }),
15380
- /* @__PURE__ */ y(Jg, { children: t })
15391
+ /* @__PURE__ */ y(Jg, { children: r }),
15392
+ /* @__PURE__ */ y(Qg, { children: t })
15381
15393
  ]
15382
15394
  }
15383
15395
  ) }) })
@@ -15387,16 +15399,16 @@ Ge.defaultProps = {
15387
15399
  href: void 0,
15388
15400
  title: void 0
15389
15401
  };
15390
- function Hb() {
15391
- return /* @__PURE__ */ ee(Wg, { children: [
15392
- /* @__PURE__ */ ee(Gg, { children: [
15402
+ function Ub() {
15403
+ return /* @__PURE__ */ ee(Gg, { children: [
15404
+ /* @__PURE__ */ ee(Yg, { children: [
15393
15405
  /* @__PURE__ */ ee(yo, { children: [
15394
15406
  /* @__PURE__ */ ee(Ua, { children: [
15395
15407
  "Learn ",
15396
15408
  /* @__PURE__ */ y(Xo, { "aria-hidden": !0 })
15397
15409
  ] }),
15398
15410
  /* @__PURE__ */ y(Wa, { children: /* @__PURE__ */ ee(Ga, { className: "one", children: [
15399
- /* @__PURE__ */ y("li", { style: { gridRow: "span 3" }, children: /* @__PURE__ */ y(Yo, { asChild: !0, children: /* @__PURE__ */ ee(Qg, { href: "/", children: [
15411
+ /* @__PURE__ */ y("li", { style: { gridRow: "span 3" }, children: /* @__PURE__ */ y(Yo, { asChild: !0, children: /* @__PURE__ */ ee(eb, { href: "/", children: [
15400
15412
  /* @__PURE__ */ ee(
15401
15413
  "svg",
15402
15414
  {
@@ -15412,8 +15424,8 @@ function Hb() {
15412
15424
  ]
15413
15425
  }
15414
15426
  ),
15415
- /* @__PURE__ */ y(eb, { children: "Radix Primitives" }),
15416
- /* @__PURE__ */ y(tb, { children: "Unstyled, accessible components for React." })
15427
+ /* @__PURE__ */ y(tb, { children: "Radix Primitives" }),
15428
+ /* @__PURE__ */ y(rb, { children: "Unstyled, accessible components for React." })
15417
15429
  ] }) }) }),
15418
15430
  /* @__PURE__ */ y(Ge, { href: "https://stitches.dev/", title: "Stitches", children: "CSS-in-JS with best-in-class developer experience." }),
15419
15431
  /* @__PURE__ */ y(Ge, { href: "/colors", title: "Colors", children: "Beautiful, thought-out palettes with auto dark mode." }),
@@ -15470,57 +15482,57 @@ function Hb() {
15470
15482
  ] }) })
15471
15483
  ] }),
15472
15484
  /* @__PURE__ */ y(yo, { children: /* @__PURE__ */ y(Yo, { href: "https://github.com/radix-ui", children: "Github" }) }),
15473
- /* @__PURE__ */ y(Yg, { children: /* @__PURE__ */ y(ob, {}) })
15485
+ /* @__PURE__ */ y(Xg, { children: /* @__PURE__ */ y(nb, {}) })
15474
15486
  ] }),
15475
- /* @__PURE__ */ y(rb, { children: /* @__PURE__ */ y(Xg, {}) })
15487
+ /* @__PURE__ */ y(ob, { children: /* @__PURE__ */ y(qg, {}) })
15476
15488
  ] });
15477
15489
  }
15478
15490
  export {
15479
- pb as Accordion,
15480
- ub as Avatar,
15481
- fb as AvatarGroup,
15482
- gb as Badge,
15483
- bb as BreadcrumbEllipsis,
15484
- vb as BreadcrumbItem,
15485
- yb as BreadcrumbLink,
15486
- $b as BreadcrumbSeparator,
15487
- hb as Breadcrumbs,
15488
- mb as Button,
15489
- wb as Card,
15490
- xb as Checkbox,
15491
- Kb as CircularEasing,
15492
- Ab as CircularProgressbar,
15493
- Sb as Collapsible,
15494
- Cb as CollapsibleTrigger,
15491
+ gb as Accordion,
15492
+ fb as Avatar,
15493
+ pb as AvatarGroup,
15494
+ bb as Badge,
15495
+ vb as BreadcrumbEllipsis,
15496
+ yb as BreadcrumbItem,
15497
+ $b as BreadcrumbLink,
15498
+ hb as BreadcrumbSeparator,
15499
+ mb as Breadcrumbs,
15500
+ wb as Button,
15501
+ xb as Card,
15502
+ Cb as Checkbox,
15503
+ Lb as CircularEasing,
15504
+ Rb as CircularProgressbar,
15505
+ Eb as Collapsible,
15506
+ Sb as CollapsibleTrigger,
15495
15507
  Qi as CollapsibleTriggerStateContext,
15496
- Eb as Container,
15508
+ Pb as Container,
15497
15509
  Gf as ContextMenu,
15498
15510
  e0 as DateInput,
15499
- Ob as Dialog,
15500
- Pb as Divider,
15511
+ Ab as Dialog,
15512
+ Tb as Divider,
15501
15513
  h0 as Drawer,
15502
15514
  o0 as Input,
15503
- Rb as LinearProgressbar,
15504
- Tb as Link,
15505
- kb as Meter,
15506
- Mb as Modal,
15507
- Ib as ModalOverlay,
15508
- Hb as NavigationMenu,
15515
+ _b as LinearProgressbar,
15516
+ kb as Link,
15517
+ Mb as Meter,
15518
+ Ib as Modal,
15519
+ Ob as ModalOverlay,
15520
+ Ub as NavigationMenu,
15509
15521
  S0 as NumberInput,
15510
- _b as Option,
15522
+ Kb as Option,
15511
15523
  A0 as PinInput,
15512
15524
  lp as Pulse,
15513
- cp as Select,
15514
- gp as Slider,
15515
- Lb as Switch,
15516
- Nb as Tab,
15517
- Fb as TabList,
15518
- zb as TabPanel,
15519
- Db as Tabs,
15525
+ dp as Select,
15526
+ bp as Slider,
15527
+ Db as Switch,
15528
+ Fb as Tab,
15529
+ zb as TabList,
15530
+ Bb as TabPanel,
15531
+ Nb as Tabs,
15520
15532
  vn as TabsOrientationContext,
15521
- Pp as TimeInput,
15522
- Bb as ToggleButton,
15523
- jb as Tooltip,
15533
+ Tp as TimeInput,
15534
+ jb as ToggleButton,
15535
+ Vb as Tooltip,
15524
15536
  d as defaultTheme,
15525
15537
  Yu as mergeTheme
15526
15538
  };