@adamosuiteservices/ui 2.20.2 → 2.20.3

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.
Files changed (88) hide show
  1. package/dist/accordion-rounded.cjs +1 -1
  2. package/dist/accordion-rounded.js +1 -1
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/checkbox-BHStM029.cjs +24 -0
  6. package/dist/{checkbox-DPlUjwLi.js → checkbox-DX8b_6kG.js} +4 -3
  7. package/dist/checkbox.cjs +1 -1
  8. package/dist/checkbox.js +1 -1
  9. package/dist/collapsible.cjs +1 -1
  10. package/dist/collapsible.js +1 -1
  11. package/dist/{combobox-DylTjGrw.cjs → combobox-BURhN76t.cjs} +1 -1
  12. package/dist/{combobox-DG9u4g84.js → combobox-BrHVXnf2.js} +3 -3
  13. package/dist/combobox.cjs +1 -1
  14. package/dist/combobox.js +1 -1
  15. package/dist/context-menu.cjs +8 -8
  16. package/dist/context-menu.js +56 -55
  17. package/dist/date-picker-selector.cjs +1 -1
  18. package/dist/date-picker-selector.js +2 -2
  19. package/dist/dialog.cjs +1 -1
  20. package/dist/dialog.js +1 -1
  21. package/dist/dropdown-menu.cjs +9 -9
  22. package/dist/dropdown-menu.js +33 -32
  23. package/dist/full-screen-loader.cjs +4 -4
  24. package/dist/full-screen-loader.js +27 -24
  25. package/dist/hover-card.cjs +2 -2
  26. package/dist/hover-card.js +12 -11
  27. package/dist/index-1Io41IIt.cjs +1 -0
  28. package/dist/index-437EL2iq.js +52 -0
  29. package/dist/index-B695uy69.js +9 -0
  30. package/dist/index-BE-HFcQ8.cjs +1 -0
  31. package/dist/{index-BPOsnOxS.js → index-BM2A-WRV.js} +1 -1
  32. package/dist/index-BOnhen57.cjs +1 -0
  33. package/dist/{index-D_hmhfRp.js → index-BPnOqaWN.js} +9 -8
  34. package/dist/index-BqyOu62e.cjs +1 -0
  35. package/dist/index-C8aODXfJ.cjs +1 -0
  36. package/dist/index-CFB4VzSW.js +542 -0
  37. package/dist/index-CgAmFB15.cjs +1 -0
  38. package/dist/{index-B76LQ4E5.js → index-CinpJ0oP.js} +24 -23
  39. package/dist/{index-wujanfX3.js → index-Cpaqurwq.js} +191 -190
  40. package/dist/{index-B6gxHWt9.js → index-CwrPuu3I.js} +15 -14
  41. package/dist/index-D3xJARPa.cjs +1 -0
  42. package/dist/index-DSj2iNTW.js +137 -0
  43. package/dist/{index-Ce7JfyIP.js → index-DWrql5dh.js} +11 -10
  44. package/dist/{index-BIydBVaH.js → index-E5ek046p.js} +78 -76
  45. package/dist/{index-BaCYnOIG.cjs → index-L8BhH23Y.cjs} +1 -1
  46. package/dist/index-ZzRl2Lfu.cjs +5 -0
  47. package/dist/index-_TfuLupy.cjs +41 -0
  48. package/dist/index-cBJ7G45l.cjs +1 -0
  49. package/dist/popover-Dod16CM1.cjs +15 -0
  50. package/dist/{popover-DcQ18EVl.js → popover-tP2NoMYx.js} +84 -82
  51. package/dist/popover.cjs +1 -1
  52. package/dist/popover.js +1 -1
  53. package/dist/radio-group.cjs +3 -3
  54. package/dist/radio-group.js +10 -9
  55. package/dist/select.cjs +8 -8
  56. package/dist/select.js +21 -19
  57. package/dist/{sheet-Cp6JGhWC.cjs → sheet-DR1nAs9U.cjs} +1 -1
  58. package/dist/{sheet-hWerE8S1.js → sheet-UNggtdu3.js} +1 -1
  59. package/dist/sheet.cjs +1 -1
  60. package/dist/sheet.js +1 -1
  61. package/dist/sidebar.cjs +1 -1
  62. package/dist/sidebar.js +1 -1
  63. package/dist/slider.cjs +5 -5
  64. package/dist/slider.js +7 -6
  65. package/dist/switch.cjs +3 -3
  66. package/dist/switch.js +8 -7
  67. package/dist/tabs-underline.cjs +1 -1
  68. package/dist/tabs-underline.js +1 -1
  69. package/dist/tabs.cjs +1 -1
  70. package/dist/tabs.js +1 -1
  71. package/dist/toggle.cjs +2 -2
  72. package/dist/toggle.js +6 -5
  73. package/dist/tooltip.cjs +3 -3
  74. package/dist/tooltip.js +23 -22
  75. package/docs/components/layout/full-screen-loader.md +16 -5
  76. package/package.json +4 -2
  77. package/dist/checkbox-CIzBdqN7.cjs +0 -24
  78. package/dist/index-8iwAKZIp.cjs +0 -1
  79. package/dist/index-BWaO7kQK.cjs +0 -1
  80. package/dist/index-BnkHpTJs.cjs +0 -1
  81. package/dist/index-C0UREtMP.js +0 -59
  82. package/dist/index-C2P2kXMc.cjs +0 -41
  83. package/dist/index-CC6DBo2g.cjs +0 -1
  84. package/dist/index-CRWn-2fF.cjs +0 -1
  85. package/dist/index-Ca99LLZF.cjs +0 -5
  86. package/dist/index-e0gNU5O1.js +0 -675
  87. package/dist/index-i5lLg35-.cjs +0 -1
  88. package/dist/popover-cGp_rNLg.cjs +0 -15
@@ -1,74 +1,75 @@
1
1
  "use client";
2
2
  import * as o from "react";
3
- import { c as v } from "./index-C0UREtMP.js";
3
+ import { c as v } from "./index-B695uy69.js";
4
4
  import { c as ze, u as Ze } from "./index-CmWhhuj7.js";
5
5
  import { c as pe, u as D } from "./index-DLcqcWxM.js";
6
6
  import { c as qe } from "./index-FxyLF8MY.js";
7
- import { D as Je } from "./index-BPOsnOxS.js";
8
- import { h as Qe, u as en, R as nn, F as tn } from "./index-e0gNU5O1.js";
7
+ import { D as Je } from "./index-BM2A-WRV.js";
8
+ import { h as Qe, u as et, R as tt } from "./index-CFB4VzSW.js";
9
+ import { F as nt } from "./index-DSj2iNTW.js";
9
10
  import { u as de } from "./index-Cv867SGx.js";
10
- import { c as me, R as he, A as on, C as rn, a as sn } from "./index-BAEhLEFF.js";
11
- import { P as cn } from "./index-CZWDxvEo.js";
11
+ import { c as me, R as he, A as ot, C as rt, a as st } from "./index-BAEhLEFF.js";
12
+ import { P as ct } from "./index-CZWDxvEo.js";
12
13
  import { P as W } from "./index-CSFEzRxy.js";
13
- import { P as N, d as an } from "./index-BMWt1NBG.js";
14
- import { c as Ce, I as un, R as ln } from "./index-B6gxHWt9.js";
14
+ import { P as N, d as at } from "./index-BMWt1NBG.js";
15
+ import { c as Ce, I as ut, R as it } from "./index-CwrPuu3I.js";
15
16
  import { j as u } from "./jsx-runtime-BzflLqGi.js";
16
17
  import { u as q } from "./index-0ioNhtNM.js";
17
18
  // @__NO_SIDE_EFFECTS__
18
- function dn(e) {
19
- const t = /* @__PURE__ */ fn(e), n = o.forwardRef((r, s) => {
20
- const { children: c, ...l } = r, f = o.Children.toArray(c), m = f.find(mn);
19
+ function lt(e) {
20
+ const n = /* @__PURE__ */ dt(e), t = o.forwardRef((r, s) => {
21
+ const { children: c, ...l } = r, f = o.Children.toArray(c), m = f.find(pt);
21
22
  if (m) {
22
23
  const p = m.props.children, d = f.map((a) => a === m ? o.Children.count(p) > 1 ? o.Children.only(null) : o.isValidElement(p) ? p.props.children : null : a);
23
- return /* @__PURE__ */ u.jsx(t, { ...l, ref: s, children: o.isValidElement(p) ? o.cloneElement(p, void 0, d) : null });
24
+ return /* @__PURE__ */ u.jsx(n, { ...l, ref: s, children: o.isValidElement(p) ? o.cloneElement(p, void 0, d) : null });
24
25
  }
25
- return /* @__PURE__ */ u.jsx(t, { ...l, ref: s, children: c });
26
+ return /* @__PURE__ */ u.jsx(n, { ...l, ref: s, children: c });
26
27
  });
27
- return n.displayName = `${e}.Slot`, n;
28
+ return t.displayName = `${e}.Slot`, t;
28
29
  }
29
30
  // @__NO_SIDE_EFFECTS__
30
- function fn(e) {
31
- const t = o.forwardRef((n, r) => {
32
- const { children: s, ...c } = n;
31
+ function dt(e) {
32
+ const n = o.forwardRef((t, r) => {
33
+ const { children: s, ...c } = t;
33
34
  if (o.isValidElement(s)) {
34
- const l = Cn(s), f = hn(c, s.props);
35
+ const l = ht(s), f = mt(c, s.props);
35
36
  return s.type !== o.Fragment && (f.ref = r ? pe(r, l) : l), o.cloneElement(s, f);
36
37
  }
37
38
  return o.Children.count(s) > 1 ? o.Children.only(null) : null;
38
39
  });
39
- return t.displayName = `${e}.SlotClone`, t;
40
+ return n.displayName = `${e}.SlotClone`, n;
40
41
  }
41
- var pn = Symbol("radix.slottable");
42
- function mn(e) {
43
- return o.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === pn;
42
+ var ft = Symbol("radix.slottable");
43
+ function pt(e) {
44
+ return o.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ft;
44
45
  }
45
- function hn(e, t) {
46
- const n = { ...t };
47
- for (const r in t) {
48
- const s = e[r], c = t[r];
49
- /^on[A-Z]/.test(r) ? s && c ? n[r] = (...f) => {
46
+ function mt(e, n) {
47
+ const t = { ...n };
48
+ for (const r in n) {
49
+ const s = e[r], c = n[r];
50
+ /^on[A-Z]/.test(r) ? s && c ? t[r] = (...f) => {
50
51
  const m = c(...f);
51
52
  return s(...f), m;
52
- } : s && (n[r] = s) : r === "style" ? n[r] = { ...s, ...c } : r === "className" && (n[r] = [s, c].filter(Boolean).join(" "));
53
+ } : s && (t[r] = s) : r === "style" ? t[r] = { ...s, ...c } : r === "className" && (t[r] = [s, c].filter(Boolean).join(" "));
53
54
  }
54
- return { ...e, ...n };
55
+ return { ...e, ...t };
55
56
  }
56
- function Cn(e) {
57
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
58
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
57
+ function ht(e) {
58
+ let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = n && "isReactWarning" in n && n.isReactWarning;
59
+ return t ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
59
60
  }
60
- var Z = ["Enter", " "], vn = ["ArrowDown", "PageUp", "Home"], ve = ["ArrowUp", "PageDown", "End"], Mn = [...vn, ...ve], gn = {
61
+ var Z = ["Enter", " "], Ct = ["ArrowDown", "PageUp", "Home"], ve = ["ArrowUp", "PageDown", "End"], vt = [...Ct, ...ve], Mt = {
61
62
  ltr: [...Z, "ArrowRight"],
62
63
  rtl: [...Z, "ArrowLeft"]
63
- }, xn = {
64
+ }, gt = {
64
65
  ltr: ["ArrowLeft"],
65
66
  rtl: ["ArrowRight"]
66
- }, k = "Menu", [j, _n, Rn] = ze(k), [S, rt] = qe(k, [
67
- Rn,
67
+ }, k = "Menu", [j, xt, _t] = ze(k), [S, rn] = qe(k, [
68
+ _t,
68
69
  me,
69
70
  Ce
70
- ]), F = me(), Me = Ce(), [ge, _] = S(k), [Sn, L] = S(k), xe = (e) => {
71
- const { __scopeMenu: t, open: n = !1, children: r, dir: s, onOpenChange: c, modal: l = !0 } = e, f = F(t), [m, p] = o.useState(null), d = o.useRef(!1), a = q(c), h = Ze(s);
71
+ ]), F = me(), Me = Ce(), [ge, _] = S(k), [Rt, L] = S(k), xe = (e) => {
72
+ const { __scopeMenu: n, open: t = !1, children: r, dir: s, onOpenChange: c, modal: l = !0 } = e, f = F(n), [m, p] = o.useState(null), d = o.useRef(!1), a = q(c), h = Ze(s);
72
73
  return o.useEffect(() => {
73
74
  const g = () => {
74
75
  d.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
@@ -79,15 +80,15 @@ var Z = ["Enter", " "], vn = ["ArrowDown", "PageUp", "Home"], ve = ["ArrowUp", "
79
80
  }, []), /* @__PURE__ */ u.jsx(he, { ...f, children: /* @__PURE__ */ u.jsx(
80
81
  ge,
81
82
  {
82
- scope: t,
83
- open: n,
83
+ scope: n,
84
+ open: t,
84
85
  onOpenChange: a,
85
86
  content: m,
86
87
  onContentChange: p,
87
88
  children: /* @__PURE__ */ u.jsx(
88
- Sn,
89
+ Rt,
89
90
  {
90
- scope: t,
91
+ scope: n,
91
92
  onClose: o.useCallback(() => a(!1), [a]),
92
93
  isUsingKeyboardRef: d,
93
94
  dir: h,
@@ -99,65 +100,65 @@ var Z = ["Enter", " "], vn = ["ArrowDown", "PageUp", "Home"], ve = ["ArrowUp", "
99
100
  ) });
100
101
  };
101
102
  xe.displayName = k;
102
- var En = "MenuAnchor", J = o.forwardRef(
103
- (e, t) => {
104
- const { __scopeMenu: n, ...r } = e, s = F(n);
105
- return /* @__PURE__ */ u.jsx(on, { ...s, ...r, ref: t });
103
+ var St = "MenuAnchor", J = o.forwardRef(
104
+ (e, n) => {
105
+ const { __scopeMenu: t, ...r } = e, s = F(t);
106
+ return /* @__PURE__ */ u.jsx(ot, { ...s, ...r, ref: n });
106
107
  }
107
108
  );
108
- J.displayName = En;
109
- var Q = "MenuPortal", [Pn, _e] = S(Q, {
109
+ J.displayName = St;
110
+ var Q = "MenuPortal", [Et, _e] = S(Q, {
110
111
  forceMount: void 0
111
112
  }), Re = (e) => {
112
- const { __scopeMenu: t, forceMount: n, children: r, container: s } = e, c = _(Q, t);
113
- return /* @__PURE__ */ u.jsx(Pn, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(W, { present: n || c.open, children: /* @__PURE__ */ u.jsx(cn, { asChild: !0, container: s, children: r }) }) });
113
+ const { __scopeMenu: n, forceMount: t, children: r, container: s } = e, c = _(Q, n);
114
+ return /* @__PURE__ */ u.jsx(Et, { scope: n, forceMount: t, children: /* @__PURE__ */ u.jsx(W, { present: t || c.open, children: /* @__PURE__ */ u.jsx(ct, { asChild: !0, container: s, children: r }) }) });
114
115
  };
115
116
  Re.displayName = Q;
116
- var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
117
- (e, t) => {
118
- const n = _e(x, e.__scopeMenu), { forceMount: r = n.forceMount, ...s } = e, c = _(x, e.__scopeMenu), l = L(x, e.__scopeMenu);
119
- return /* @__PURE__ */ u.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(W, { present: r || c.open, children: /* @__PURE__ */ u.jsx(j.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ u.jsx(In, { ...s, ref: t }) : /* @__PURE__ */ u.jsx(wn, { ...s, ref: t }) }) }) });
117
+ var x = "MenuContent", [Pt, ee] = S(x), Se = o.forwardRef(
118
+ (e, n) => {
119
+ const t = _e(x, e.__scopeMenu), { forceMount: r = t.forceMount, ...s } = e, c = _(x, e.__scopeMenu), l = L(x, e.__scopeMenu);
120
+ return /* @__PURE__ */ u.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(W, { present: r || c.open, children: /* @__PURE__ */ u.jsx(j.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ u.jsx(yt, { ...s, ref: n }) : /* @__PURE__ */ u.jsx(It, { ...s, ref: n }) }) }) });
120
121
  }
121
- ), In = o.forwardRef(
122
- (e, t) => {
123
- const n = _(x, e.__scopeMenu), r = o.useRef(null), s = D(t, r);
122
+ ), yt = o.forwardRef(
123
+ (e, n) => {
124
+ const t = _(x, e.__scopeMenu), r = o.useRef(null), s = D(n, r);
124
125
  return o.useEffect(() => {
125
126
  const c = r.current;
126
127
  if (c) return Qe(c);
127
128
  }, []), /* @__PURE__ */ u.jsx(
128
- ne,
129
+ te,
129
130
  {
130
131
  ...e,
131
132
  ref: s,
132
- trapFocus: n.open,
133
- disableOutsidePointerEvents: n.open,
133
+ trapFocus: t.open,
134
+ disableOutsidePointerEvents: t.open,
134
135
  disableOutsideScroll: !0,
135
136
  onFocusOutside: v(
136
137
  e.onFocusOutside,
137
138
  (c) => c.preventDefault(),
138
139
  { checkForDefaultPrevented: !1 }
139
140
  ),
140
- onDismiss: () => n.onOpenChange(!1)
141
+ onDismiss: () => t.onOpenChange(!1)
141
142
  }
142
143
  );
143
144
  }
144
- ), wn = o.forwardRef((e, t) => {
145
- const n = _(x, e.__scopeMenu);
145
+ ), It = o.forwardRef((e, n) => {
146
+ const t = _(x, e.__scopeMenu);
146
147
  return /* @__PURE__ */ u.jsx(
147
- ne,
148
+ te,
148
149
  {
149
150
  ...e,
150
- ref: t,
151
+ ref: n,
151
152
  trapFocus: !1,
152
153
  disableOutsidePointerEvents: !1,
153
154
  disableOutsideScroll: !1,
154
- onDismiss: () => n.onOpenChange(!1)
155
+ onDismiss: () => t.onOpenChange(!1)
155
156
  }
156
157
  );
157
- }), bn = /* @__PURE__ */ dn("MenuContent.ScrollLock"), ne = o.forwardRef(
158
- (e, t) => {
158
+ }), wt = /* @__PURE__ */ lt("MenuContent.ScrollLock"), te = o.forwardRef(
159
+ (e, n) => {
159
160
  const {
160
- __scopeMenu: n,
161
+ __scopeMenu: t,
161
162
  loop: r = !1,
162
163
  trapFocus: s,
163
164
  onOpenAutoFocus: c,
@@ -171,18 +172,18 @@ var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
171
172
  onDismiss: g,
172
173
  disableOutsideScroll: C,
173
174
  ...E
174
- } = e, w = _(x, n), P = L(x, n), Ue = F(n), Ve = Me(n), ce = _n(n), [Be, ae] = o.useState(null), K = o.useRef(null), We = D(t, K, w.onContentChange), G = o.useRef(0), U = o.useRef(""), Ye = o.useRef(0), X = o.useRef(null), ue = o.useRef("right"), H = o.useRef(0), Xe = C ? nn : o.Fragment, He = C ? { as: bn, allowPinchZoom: !0 } : void 0, $e = (i) => {
175
- const I = U.current + i, R = ce().filter((M) => !M.disabled), b = document.activeElement, $ = R.find((M) => M.ref.current === b)?.textValue, z = R.map((M) => M.textValue), ie = Un(z, I, $), T = R.find((M) => M.textValue === ie)?.ref.current;
175
+ } = e, w = _(x, t), P = L(x, t), Ue = F(t), Ve = Me(t), ce = xt(t), [Be, ae] = o.useState(null), K = o.useRef(null), We = D(n, K, w.onContentChange), G = o.useRef(0), U = o.useRef(""), Ye = o.useRef(0), X = o.useRef(null), ue = o.useRef("right"), H = o.useRef(0), Xe = C ? tt : o.Fragment, He = C ? { as: wt, allowPinchZoom: !0 } : void 0, $e = (i) => {
176
+ const I = U.current + i, R = ce().filter((M) => !M.disabled), b = document.activeElement, $ = R.find((M) => M.ref.current === b)?.textValue, z = R.map((M) => M.textValue), ie = Gt(z, I, $), T = R.find((M) => M.textValue === ie)?.ref.current;
176
177
  (function M(le) {
177
178
  U.current = le, window.clearTimeout(G.current), le !== "" && (G.current = window.setTimeout(() => M(""), 1e3));
178
179
  })(I), T && setTimeout(() => T.focus());
179
180
  };
180
- o.useEffect(() => () => window.clearTimeout(G.current), []), en();
181
- const y = o.useCallback((i) => ue.current === X.current?.side && Bn(i, X.current?.area), []);
181
+ o.useEffect(() => () => window.clearTimeout(G.current), []), et();
182
+ const y = o.useCallback((i) => ue.current === X.current?.side && Vt(i, X.current?.area), []);
182
183
  return /* @__PURE__ */ u.jsx(
183
- yn,
184
+ Pt,
184
185
  {
185
- scope: n,
186
+ scope: t,
186
187
  searchRef: U,
187
188
  onItemEnter: o.useCallback(
188
189
  (i) => {
@@ -207,7 +208,7 @@ var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
207
208
  X.current = i;
208
209
  }, []),
209
210
  children: /* @__PURE__ */ u.jsx(Xe, { ...He, children: /* @__PURE__ */ u.jsx(
210
- tn,
211
+ nt,
211
212
  {
212
213
  asChild: !0,
213
214
  trapped: s,
@@ -226,7 +227,7 @@ var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
226
227
  onInteractOutside: h,
227
228
  onDismiss: g,
228
229
  children: /* @__PURE__ */ u.jsx(
229
- ln,
230
+ it,
230
231
  {
231
232
  asChild: !0,
232
233
  ...Ve,
@@ -240,7 +241,7 @@ var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
240
241
  }),
241
242
  preventScrollOnEntryFocus: !0,
242
243
  children: /* @__PURE__ */ u.jsx(
243
- rn,
244
+ rt,
244
245
  {
245
246
  role: "menu",
246
247
  "aria-orientation": "vertical",
@@ -255,10 +256,10 @@ var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
255
256
  const R = i.target.closest("[data-radix-menu-content]") === i.currentTarget, b = i.ctrlKey || i.altKey || i.metaKey, $ = i.key.length === 1;
256
257
  R && (i.key === "Tab" && i.preventDefault(), !b && $ && $e(i.key));
257
258
  const z = K.current;
258
- if (i.target !== z || !Mn.includes(i.key)) return;
259
+ if (i.target !== z || !vt.includes(i.key)) return;
259
260
  i.preventDefault();
260
261
  const T = ce().filter((M) => !M.disabled).map((M) => M.ref.current);
261
- ve.includes(i.key) && T.reverse(), Kn(T);
262
+ ve.includes(i.key) && T.reverse(), Lt(T);
262
263
  }),
263
264
  onBlur: v(e.onBlur, (i) => {
264
265
  i.currentTarget.contains(i.target) || (window.clearTimeout(G.current), U.current = "");
@@ -286,27 +287,27 @@ var x = "MenuContent", [yn, ee] = S(x), Se = o.forwardRef(
286
287
  }
287
288
  );
288
289
  Se.displayName = x;
289
- var Tn = "MenuGroup", te = o.forwardRef(
290
- (e, t) => {
291
- const { __scopeMenu: n, ...r } = e;
292
- return /* @__PURE__ */ u.jsx(N.div, { role: "group", ...r, ref: t });
290
+ var bt = "MenuGroup", ne = o.forwardRef(
291
+ (e, n) => {
292
+ const { __scopeMenu: t, ...r } = e;
293
+ return /* @__PURE__ */ u.jsx(N.div, { role: "group", ...r, ref: n });
293
294
  }
294
295
  );
295
- te.displayName = Tn;
296
- var An = "MenuLabel", Ee = o.forwardRef(
297
- (e, t) => {
298
- const { __scopeMenu: n, ...r } = e;
299
- return /* @__PURE__ */ u.jsx(N.div, { ...r, ref: t });
296
+ ne.displayName = bt;
297
+ var Tt = "MenuLabel", Ee = o.forwardRef(
298
+ (e, n) => {
299
+ const { __scopeMenu: t, ...r } = e;
300
+ return /* @__PURE__ */ u.jsx(N.div, { ...r, ref: n });
300
301
  }
301
302
  );
302
- Ee.displayName = An;
303
+ Ee.displayName = Tt;
303
304
  var V = "MenuItem", fe = "menu.itemSelect", Y = o.forwardRef(
304
- (e, t) => {
305
- const { disabled: n = !1, onSelect: r, ...s } = e, c = o.useRef(null), l = L(V, e.__scopeMenu), f = ee(V, e.__scopeMenu), m = D(t, c), p = o.useRef(!1), d = () => {
305
+ (e, n) => {
306
+ const { disabled: t = !1, onSelect: r, ...s } = e, c = o.useRef(null), l = L(V, e.__scopeMenu), f = ee(V, e.__scopeMenu), m = D(n, c), p = o.useRef(!1), d = () => {
306
307
  const a = c.current;
307
- if (!n && a) {
308
+ if (!t && a) {
308
309
  const h = new CustomEvent(fe, { bubbles: !0, cancelable: !0 });
309
- a.addEventListener(fe, (g) => r?.(g), { once: !0 }), an(a, h), h.defaultPrevented ? p.current = !1 : l.onClose();
310
+ a.addEventListener(fe, (g) => r?.(g), { once: !0 }), at(a, h), h.defaultPrevented ? p.current = !1 : l.onClose();
310
311
  }
311
312
  };
312
313
  return /* @__PURE__ */ u.jsx(
@@ -314,7 +315,7 @@ var V = "MenuItem", fe = "menu.itemSelect", Y = o.forwardRef(
314
315
  {
315
316
  ...s,
316
317
  ref: m,
317
- disabled: n,
318
+ disabled: t,
318
319
  onClick: v(e.onClick, d),
319
320
  onPointerDown: (a) => {
320
321
  e.onPointerDown?.(a), p.current = !0;
@@ -324,7 +325,7 @@ var V = "MenuItem", fe = "menu.itemSelect", Y = o.forwardRef(
324
325
  }),
325
326
  onKeyDown: v(e.onKeyDown, (a) => {
326
327
  const h = f.searchRef.current !== "";
327
- n || h && a.key === " " || Z.includes(a.key) && (a.currentTarget.click(), a.preventDefault());
328
+ t || h && a.key === " " || Z.includes(a.key) && (a.currentTarget.click(), a.preventDefault());
328
329
  })
329
330
  }
330
331
  );
@@ -332,18 +333,18 @@ var V = "MenuItem", fe = "menu.itemSelect", Y = o.forwardRef(
332
333
  );
333
334
  Y.displayName = V;
334
335
  var Pe = o.forwardRef(
335
- (e, t) => {
336
- const { __scopeMenu: n, disabled: r = !1, textValue: s, ...c } = e, l = ee(V, n), f = Me(n), m = o.useRef(null), p = D(t, m), [d, a] = o.useState(!1), [h, g] = o.useState("");
336
+ (e, n) => {
337
+ const { __scopeMenu: t, disabled: r = !1, textValue: s, ...c } = e, l = ee(V, t), f = Me(t), m = o.useRef(null), p = D(n, m), [d, a] = o.useState(!1), [h, g] = o.useState("");
337
338
  return o.useEffect(() => {
338
339
  const C = m.current;
339
340
  C && g((C.textContent ?? "").trim());
340
341
  }, [c.children]), /* @__PURE__ */ u.jsx(
341
342
  j.ItemSlot,
342
343
  {
343
- scope: n,
344
+ scope: t,
344
345
  disabled: r,
345
346
  textValue: s ?? h,
346
- children: /* @__PURE__ */ u.jsx(un, { asChild: !0, ...f, focusable: !r, children: /* @__PURE__ */ u.jsx(
347
+ children: /* @__PURE__ */ u.jsx(ut, { asChild: !0, ...f, focusable: !r, children: /* @__PURE__ */ u.jsx(
347
348
  N.div,
348
349
  {
349
350
  role: "menuitem",
@@ -369,52 +370,52 @@ var Pe = o.forwardRef(
369
370
  }
370
371
  );
371
372
  }
372
- ), jn = "MenuCheckboxItem", ye = o.forwardRef(
373
- (e, t) => {
374
- const { checked: n = !1, onCheckedChange: r, ...s } = e;
375
- return /* @__PURE__ */ u.jsx(Ae, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ u.jsx(
373
+ ), At = "MenuCheckboxItem", ye = o.forwardRef(
374
+ (e, n) => {
375
+ const { checked: t = !1, onCheckedChange: r, ...s } = e;
376
+ return /* @__PURE__ */ u.jsx(Ae, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ u.jsx(
376
377
  Y,
377
378
  {
378
379
  role: "menuitemcheckbox",
379
- "aria-checked": B(n) ? "mixed" : n,
380
+ "aria-checked": B(t) ? "mixed" : t,
380
381
  ...s,
381
- ref: t,
382
- "data-state": se(n),
382
+ ref: n,
383
+ "data-state": se(t),
383
384
  onSelect: v(
384
385
  s.onSelect,
385
- () => r?.(B(n) ? !0 : !n),
386
+ () => r?.(B(t) ? !0 : !t),
386
387
  { checkForDefaultPrevented: !1 }
387
388
  )
388
389
  }
389
390
  ) });
390
391
  }
391
392
  );
392
- ye.displayName = jn;
393
- var Ie = "MenuRadioGroup", [On, Dn] = S(
393
+ ye.displayName = At;
394
+ var Ie = "MenuRadioGroup", [jt, Ot] = S(
394
395
  Ie,
395
396
  { value: void 0, onValueChange: () => {
396
397
  } }
397
398
  ), we = o.forwardRef(
398
- (e, t) => {
399
- const { value: n, onValueChange: r, ...s } = e, c = q(r);
400
- return /* @__PURE__ */ u.jsx(On, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ u.jsx(te, { ...s, ref: t }) });
399
+ (e, n) => {
400
+ const { value: t, onValueChange: r, ...s } = e, c = q(r);
401
+ return /* @__PURE__ */ u.jsx(jt, { scope: e.__scopeMenu, value: t, onValueChange: c, children: /* @__PURE__ */ u.jsx(ne, { ...s, ref: n }) });
401
402
  }
402
403
  );
403
404
  we.displayName = Ie;
404
405
  var be = "MenuRadioItem", Te = o.forwardRef(
405
- (e, t) => {
406
- const { value: n, ...r } = e, s = Dn(be, e.__scopeMenu), c = n === s.value;
406
+ (e, n) => {
407
+ const { value: t, ...r } = e, s = Ot(be, e.__scopeMenu), c = t === s.value;
407
408
  return /* @__PURE__ */ u.jsx(Ae, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ u.jsx(
408
409
  Y,
409
410
  {
410
411
  role: "menuitemradio",
411
412
  "aria-checked": c,
412
413
  ...r,
413
- ref: t,
414
+ ref: n,
414
415
  "data-state": se(c),
415
416
  onSelect: v(
416
417
  r.onSelect,
417
- () => s.onValueChange?.(n),
418
+ () => s.onValueChange?.(t),
418
419
  { checkForDefaultPrevented: !1 }
419
420
  )
420
421
  }
@@ -422,12 +423,12 @@ var be = "MenuRadioItem", Te = o.forwardRef(
422
423
  }
423
424
  );
424
425
  Te.displayName = be;
425
- var oe = "MenuItemIndicator", [Ae, Nn] = S(
426
+ var oe = "MenuItemIndicator", [Ae, Dt] = S(
426
427
  oe,
427
428
  { checked: !1 }
428
429
  ), je = o.forwardRef(
429
- (e, t) => {
430
- const { __scopeMenu: n, forceMount: r, ...s } = e, c = Nn(oe, n);
430
+ (e, n) => {
431
+ const { __scopeMenu: t, forceMount: r, ...s } = e, c = Dt(oe, t);
431
432
  return /* @__PURE__ */ u.jsx(
432
433
  W,
433
434
  {
@@ -436,7 +437,7 @@ var oe = "MenuItemIndicator", [Ae, Nn] = S(
436
437
  N.span,
437
438
  {
438
439
  ...s,
439
- ref: t,
440
+ ref: n,
440
441
  "data-state": se(c.checked)
441
442
  }
442
443
  )
@@ -445,47 +446,47 @@ var oe = "MenuItemIndicator", [Ae, Nn] = S(
445
446
  }
446
447
  );
447
448
  je.displayName = oe;
448
- var kn = "MenuSeparator", Oe = o.forwardRef(
449
- (e, t) => {
450
- const { __scopeMenu: n, ...r } = e;
449
+ var Nt = "MenuSeparator", Oe = o.forwardRef(
450
+ (e, n) => {
451
+ const { __scopeMenu: t, ...r } = e;
451
452
  return /* @__PURE__ */ u.jsx(
452
453
  N.div,
453
454
  {
454
455
  role: "separator",
455
456
  "aria-orientation": "horizontal",
456
457
  ...r,
457
- ref: t
458
+ ref: n
458
459
  }
459
460
  );
460
461
  }
461
462
  );
462
- Oe.displayName = kn;
463
- var Fn = "MenuArrow", De = o.forwardRef(
464
- (e, t) => {
465
- const { __scopeMenu: n, ...r } = e, s = F(n);
466
- return /* @__PURE__ */ u.jsx(sn, { ...s, ...r, ref: t });
463
+ Oe.displayName = Nt;
464
+ var kt = "MenuArrow", De = o.forwardRef(
465
+ (e, n) => {
466
+ const { __scopeMenu: t, ...r } = e, s = F(t);
467
+ return /* @__PURE__ */ u.jsx(st, { ...s, ...r, ref: n });
467
468
  }
468
469
  );
469
- De.displayName = Fn;
470
- var re = "MenuSub", [Ln, Ne] = S(re), ke = (e) => {
471
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: s } = e, c = _(re, t), l = F(t), [f, m] = o.useState(null), [p, d] = o.useState(null), a = q(s);
470
+ De.displayName = kt;
471
+ var re = "MenuSub", [Ft, Ne] = S(re), ke = (e) => {
472
+ const { __scopeMenu: n, children: t, open: r = !1, onOpenChange: s } = e, c = _(re, n), l = F(n), [f, m] = o.useState(null), [p, d] = o.useState(null), a = q(s);
472
473
  return o.useEffect(() => (c.open === !1 && a(!1), () => a(!1)), [c.open, a]), /* @__PURE__ */ u.jsx(he, { ...l, children: /* @__PURE__ */ u.jsx(
473
474
  ge,
474
475
  {
475
- scope: t,
476
+ scope: n,
476
477
  open: r,
477
478
  onOpenChange: a,
478
479
  content: p,
479
480
  onContentChange: d,
480
481
  children: /* @__PURE__ */ u.jsx(
481
- Ln,
482
+ Ft,
482
483
  {
483
- scope: t,
484
+ scope: n,
484
485
  contentId: de(),
485
486
  triggerId: de(),
486
487
  trigger: f,
487
488
  onTriggerChange: m,
488
- children: n
489
+ children: t
489
490
  }
490
491
  )
491
492
  }
@@ -493,8 +494,8 @@ var re = "MenuSub", [Ln, Ne] = S(re), ke = (e) => {
493
494
  };
494
495
  ke.displayName = re;
495
496
  var A = "MenuSubTrigger", Fe = o.forwardRef(
496
- (e, t) => {
497
- const n = _(A, e.__scopeMenu), r = L(A, e.__scopeMenu), s = Ne(A, e.__scopeMenu), c = ee(A, e.__scopeMenu), l = o.useRef(null), { pointerGraceTimerRef: f, onPointerGraceIntentChange: m } = c, p = { __scopeMenu: e.__scopeMenu }, d = o.useCallback(() => {
497
+ (e, n) => {
498
+ const t = _(A, e.__scopeMenu), r = L(A, e.__scopeMenu), s = Ne(A, e.__scopeMenu), c = ee(A, e.__scopeMenu), l = o.useRef(null), { pointerGraceTimerRef: f, onPointerGraceIntentChange: m } = c, p = { __scopeMenu: e.__scopeMenu }, d = o.useCallback(() => {
498
499
  l.current && window.clearTimeout(l.current), l.current = null;
499
500
  }, []);
500
501
  return o.useEffect(() => d, [d]), o.useEffect(() => {
@@ -507,19 +508,19 @@ var A = "MenuSubTrigger", Fe = o.forwardRef(
507
508
  {
508
509
  id: s.triggerId,
509
510
  "aria-haspopup": "menu",
510
- "aria-expanded": n.open,
511
+ "aria-expanded": t.open,
511
512
  "aria-controls": s.contentId,
512
- "data-state": Ge(n.open),
513
+ "data-state": Ge(t.open),
513
514
  ...e,
514
- ref: pe(t, s.onTriggerChange),
515
+ ref: pe(n, s.onTriggerChange),
515
516
  onClick: (a) => {
516
- e.onClick?.(a), !(e.disabled || a.defaultPrevented) && (a.currentTarget.focus(), n.open || n.onOpenChange(!0));
517
+ e.onClick?.(a), !(e.disabled || a.defaultPrevented) && (a.currentTarget.focus(), t.open || t.onOpenChange(!0));
517
518
  },
518
519
  onPointerMove: v(
519
520
  e.onPointerMove,
520
521
  O((a) => {
521
- c.onItemEnter(a), !a.defaultPrevented && !e.disabled && !n.open && !l.current && (c.onPointerGraceIntentChange(null), l.current = window.setTimeout(() => {
522
- n.onOpenChange(!0), d();
522
+ c.onItemEnter(a), !a.defaultPrevented && !e.disabled && !t.open && !l.current && (c.onPointerGraceIntentChange(null), l.current = window.setTimeout(() => {
523
+ t.onOpenChange(!0), d();
523
524
  }, 100));
524
525
  })
525
526
  ),
@@ -527,9 +528,9 @@ var A = "MenuSubTrigger", Fe = o.forwardRef(
527
528
  e.onPointerLeave,
528
529
  O((a) => {
529
530
  d();
530
- const h = n.content?.getBoundingClientRect();
531
+ const h = t.content?.getBoundingClientRect();
531
532
  if (h) {
532
- const g = n.content?.dataset.side, C = g === "right", E = C ? -5 : 5, w = h[C ? "left" : "right"], P = h[C ? "right" : "left"];
533
+ const g = t.content?.dataset.side, C = g === "right", E = C ? -5 : 5, w = h[C ? "left" : "right"], P = h[C ? "right" : "left"];
533
534
  c.onPointerGraceIntentChange({
534
535
  area: [
535
536
  // Apply a bleed on clientX to ensure that our exit point is
@@ -553,7 +554,7 @@ var A = "MenuSubTrigger", Fe = o.forwardRef(
553
554
  ),
554
555
  onKeyDown: v(e.onKeyDown, (a) => {
555
556
  const h = c.searchRef.current !== "";
556
- e.disabled || h && a.key === " " || gn[r.dir].includes(a.key) && (n.onOpenChange(!0), n.content?.focus(), a.preventDefault());
557
+ e.disabled || h && a.key === " " || Mt[r.dir].includes(a.key) && (t.onOpenChange(!0), t.content?.focus(), a.preventDefault());
557
558
  })
558
559
  }
559
560
  ) });
@@ -561,10 +562,10 @@ var A = "MenuSubTrigger", Fe = o.forwardRef(
561
562
  );
562
563
  Fe.displayName = A;
563
564
  var Le = "MenuSubContent", Ke = o.forwardRef(
564
- (e, t) => {
565
- const n = _e(x, e.__scopeMenu), { forceMount: r = n.forceMount, ...s } = e, c = _(x, e.__scopeMenu), l = L(x, e.__scopeMenu), f = Ne(Le, e.__scopeMenu), m = o.useRef(null), p = D(t, m);
565
+ (e, n) => {
566
+ const t = _e(x, e.__scopeMenu), { forceMount: r = t.forceMount, ...s } = e, c = _(x, e.__scopeMenu), l = L(x, e.__scopeMenu), f = Ne(Le, e.__scopeMenu), m = o.useRef(null), p = D(n, m);
566
567
  return /* @__PURE__ */ u.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(W, { present: r || c.open, children: /* @__PURE__ */ u.jsx(j.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
567
- ne,
568
+ te,
568
569
  {
569
570
  id: f.contentId,
570
571
  "aria-labelledby": f.triggerId,
@@ -586,7 +587,7 @@ var Le = "MenuSubContent", Ke = o.forwardRef(
586
587
  l.onClose(), d.preventDefault();
587
588
  }),
588
589
  onKeyDown: v(e.onKeyDown, (d) => {
589
- const a = d.currentTarget.contains(d.target), h = xn[l.dir].includes(d.key);
590
+ const a = d.currentTarget.contains(d.target), h = gt[l.dir].includes(d.key);
590
591
  a && h && (c.onOpenChange(!1), f.trigger?.focus(), d.preventDefault());
591
592
  })
592
593
  }
@@ -603,57 +604,57 @@ function B(e) {
603
604
  function se(e) {
604
605
  return B(e) ? "indeterminate" : e ? "checked" : "unchecked";
605
606
  }
606
- function Kn(e) {
607
- const t = document.activeElement;
608
- for (const n of e)
609
- if (n === t || (n.focus(), document.activeElement !== t)) return;
607
+ function Lt(e) {
608
+ const n = document.activeElement;
609
+ for (const t of e)
610
+ if (t === n || (t.focus(), document.activeElement !== n)) return;
610
611
  }
611
- function Gn(e, t) {
612
- return e.map((n, r) => e[(t + r) % e.length]);
612
+ function Kt(e, n) {
613
+ return e.map((t, r) => e[(n + r) % e.length]);
613
614
  }
614
- function Un(e, t, n) {
615
- const s = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, c = n ? e.indexOf(n) : -1;
616
- let l = Gn(e, Math.max(c, 0));
617
- s.length === 1 && (l = l.filter((p) => p !== n));
615
+ function Gt(e, n, t) {
616
+ const s = n.length > 1 && Array.from(n).every((p) => p === n[0]) ? n[0] : n, c = t ? e.indexOf(t) : -1;
617
+ let l = Kt(e, Math.max(c, 0));
618
+ s.length === 1 && (l = l.filter((p) => p !== t));
618
619
  const m = l.find(
619
620
  (p) => p.toLowerCase().startsWith(s.toLowerCase())
620
621
  );
621
- return m !== n ? m : void 0;
622
+ return m !== t ? m : void 0;
622
623
  }
623
- function Vn(e, t) {
624
- const { x: n, y: r } = e;
624
+ function Ut(e, n) {
625
+ const { x: t, y: r } = e;
625
626
  let s = !1;
626
- for (let c = 0, l = t.length - 1; c < t.length; l = c++) {
627
- const f = t[c], m = t[l], p = f.x, d = f.y, a = m.x, h = m.y;
628
- d > r != h > r && n < (a - p) * (r - d) / (h - d) + p && (s = !s);
627
+ for (let c = 0, l = n.length - 1; c < n.length; l = c++) {
628
+ const f = n[c], m = n[l], p = f.x, d = f.y, a = m.x, h = m.y;
629
+ d > r != h > r && t < (a - p) * (r - d) / (h - d) + p && (s = !s);
629
630
  }
630
631
  return s;
631
632
  }
632
- function Bn(e, t) {
633
- if (!t) return !1;
634
- const n = { x: e.clientX, y: e.clientY };
635
- return Vn(n, t);
633
+ function Vt(e, n) {
634
+ if (!n) return !1;
635
+ const t = { x: e.clientX, y: e.clientY };
636
+ return Ut(t, n);
636
637
  }
637
638
  function O(e) {
638
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
639
+ return (n) => n.pointerType === "mouse" ? e(n) : void 0;
639
640
  }
640
- var st = xe, ct = J, at = Re, ut = Se, it = te, lt = Ee, dt = Y, ft = ye, pt = we, mt = Te, ht = je, Ct = Oe, vt = De, Mt = ke, gt = Fe, xt = Ke;
641
+ var sn = xe, cn = J, an = Re, un = Se, ln = ne, dn = Ee, fn = Y, pn = ye, mn = we, hn = Te, Cn = je, vn = Oe, Mn = De, gn = ke, xn = Fe, _n = Ke;
641
642
  export {
642
- ct as A,
643
- ut as C,
644
- it as G,
645
- dt as I,
646
- lt as L,
647
- at as P,
648
- st as R,
649
- Ct as S,
650
- ft as a,
651
- ht as b,
652
- rt as c,
653
- mt as d,
654
- Mt as e,
655
- xt as f,
656
- gt as g,
657
- pt as h,
658
- vt as i
643
+ cn as A,
644
+ un as C,
645
+ ln as G,
646
+ fn as I,
647
+ dn as L,
648
+ an as P,
649
+ sn as R,
650
+ vn as S,
651
+ pn as a,
652
+ Cn as b,
653
+ rn as c,
654
+ hn as d,
655
+ gn as e,
656
+ _n as f,
657
+ xn as g,
658
+ mn as h,
659
+ Mn as i
659
660
  };