ics-ui-kit 0.1.8 → 0.1.10

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 (174) hide show
  1. package/README.md +36 -36
  2. package/dist/AlertContext-CxjW1LVL.js.map +1 -1
  3. package/dist/AlertIcon-5B6AgZpe.js.map +1 -1
  4. package/dist/Button-Dg89xRSi.js.map +1 -1
  5. package/dist/ButtonBase-e6qyv6mD.js.map +1 -1
  6. package/dist/CheckboxField-cX09-eBX.js.map +1 -1
  7. package/dist/Command-ClIm4U7r.js +572 -0
  8. package/dist/Command-ClIm4U7r.js.map +1 -0
  9. package/dist/ComponentVariantProvider-brk0g-hm.js +9 -0
  10. package/dist/ComponentVariantProvider-brk0g-hm.js.map +1 -0
  11. package/dist/Description-BTPMlTT-.js.map +1 -1
  12. package/dist/Dialog-Bs1B5Iu8.js.map +1 -1
  13. package/dist/Divider-DPW5ZhZ8.js.map +1 -1
  14. package/dist/EmptyState-DRKjscH-.js.map +1 -1
  15. package/dist/ErrorState-B26k67-z.js.map +1 -1
  16. package/dist/FeatureIcon-BGE0Orkc.js.map +1 -1
  17. package/dist/Field-BiIWtq9o.js.map +1 -1
  18. package/dist/FieldLabel-QJ4rJFOi.js.map +1 -1
  19. package/dist/FolderSvg-cw0DxNVy.js.map +1 -1
  20. package/dist/FormFooterTemplate-DPB6Dkxn.js.map +1 -1
  21. package/dist/FormHeader--F6b2aRk.js.map +1 -1
  22. package/dist/FormStack-DO15vBgd.js.map +1 -1
  23. package/dist/HintState-BxrCAWqq.js.map +1 -1
  24. package/dist/Icon-DH3ev9GK.js.map +1 -1
  25. package/dist/IconButton-DwkpNgn3.js.map +1 -1
  26. package/dist/IconTooltip-CKJKGHbk.js.map +1 -1
  27. package/dist/Indicator-AqxHWPA9.js.map +1 -1
  28. package/dist/InputGroup-BvD9Igmt.js.map +1 -1
  29. package/dist/InputOTP-B2e1nfSO.js.map +1 -1
  30. package/dist/Loader-BpHiL6W-.js.map +1 -1
  31. package/dist/MenuItem-d19Ty84F.js +39 -0
  32. package/dist/MenuItem-d19Ty84F.js.map +1 -0
  33. package/dist/MenuItemShortcut-D1faeIXp.js +21 -0
  34. package/dist/MenuItemShortcut-D1faeIXp.js.map +1 -0
  35. package/dist/MenuItemText-CRpaPbvg.js +20 -0
  36. package/dist/MenuItemText-CRpaPbvg.js.map +1 -0
  37. package/dist/Overlay-CVt011mY.js.map +1 -1
  38. package/dist/Popover-Dvr7y0YY.js.map +1 -1
  39. package/dist/RichButton-DuPTenmS.js.map +1 -1
  40. package/dist/ScrollArea-CuuTeDn3.js.map +1 -1
  41. package/dist/ScrollShadowContainer-DdrnF8qU.js.map +1 -1
  42. package/dist/SearchSelectTag-DFCX9zT1.js.map +1 -1
  43. package/dist/{Select-DRwv6-eZ.js → Select-B2WcoFf5.js} +2 -2
  44. package/dist/Select-B2WcoFf5.js.map +1 -0
  45. package/dist/Sheet-zTMuP7C8.js.map +1 -1
  46. package/dist/Shortcut-D8L15_ed.js.map +1 -1
  47. package/dist/Skeleton-y6I-i9q5.js.map +1 -1
  48. package/dist/Tag-DdHXTyKF.js.map +1 -1
  49. package/dist/Text-DeBE8AKl.js.map +1 -1
  50. package/dist/TextInput-Cj50ImXi.js.map +1 -1
  51. package/dist/TextOverflowTooltip-DlUgic5y.js.map +1 -1
  52. package/dist/Toggle-v_HT3Gm2.js.map +1 -1
  53. package/dist/Tooltip-C4rVuWr4.js.map +1 -1
  54. package/dist/TriggerButton-CfDObWP9.js.map +1 -1
  55. package/dist/blocks/auth/otp-form.js.map +1 -1
  56. package/dist/cn-dsXlqdJg.js.map +1 -1
  57. package/dist/components/alert-dialog.js.map +1 -1
  58. package/dist/components/alert.js.map +1 -1
  59. package/dist/components/avatar.js.map +1 -1
  60. package/dist/components/badge.js.map +1 -1
  61. package/dist/components/banner.js.map +1 -1
  62. package/dist/components/breadcrumb.js.map +1 -1
  63. package/dist/components/button.js.map +1 -1
  64. package/dist/components/calendar.js.map +1 -1
  65. package/dist/components/card.js.map +1 -1
  66. package/dist/components/carousel.js.map +1 -1
  67. package/dist/components/collapsible.js.map +1 -1
  68. package/dist/components/color-tile.js.map +1 -1
  69. package/dist/components/command.js +1 -1
  70. package/dist/components/container.js.map +1 -1
  71. package/dist/components/counter.js.map +1 -1
  72. package/dist/components/dialog.js.map +1 -1
  73. package/dist/components/divider.js.map +1 -1
  74. package/dist/components/drawer.js.map +1 -1
  75. package/dist/components/dropdown/Dropdown.d.ts +1 -0
  76. package/dist/components/dropdown/Dropdown.stories.d.ts +1 -0
  77. package/dist/components/dropdown.js +574 -522
  78. package/dist/components/dropdown.js.map +1 -1
  79. package/dist/components/error-state.js.map +1 -1
  80. package/dist/components/file-upload.js.map +1 -1
  81. package/dist/components/form.js.map +1 -1
  82. package/dist/components/glass-toolbar/GlassToolbar.stories.d.ts +1 -0
  83. package/dist/components/glass-toolbar.js.map +1 -1
  84. package/dist/components/image-placeholder.js.map +1 -1
  85. package/dist/components/image-preview.js.map +1 -1
  86. package/dist/components/image-uploader.js.map +1 -1
  87. package/dist/components/input.js.map +1 -1
  88. package/dist/components/menu-item/MenuItem.d.ts +12 -5
  89. package/dist/components/menu-item/index.d.ts +1 -1
  90. package/dist/components/menu-item.js +91 -90
  91. package/dist/components/menu-item.js.map +1 -1
  92. package/dist/components/page-state.js.map +1 -1
  93. package/dist/components/portal-container.js.map +1 -1
  94. package/dist/components/progress-circle.js.map +1 -1
  95. package/dist/components/progress.js.map +1 -1
  96. package/dist/components/prose.js.map +1 -1
  97. package/dist/components/radio-group.js.map +1 -1
  98. package/dist/components/resizable.js.map +1 -1
  99. package/dist/components/scheduler.js.map +1 -1
  100. package/dist/components/search-select.js +3 -3
  101. package/dist/components/search-select.js.map +1 -1
  102. package/dist/components/select.js +1 -1
  103. package/dist/components/sidebar.js +22 -22
  104. package/dist/components/sidebar.js.map +1 -1
  105. package/dist/components/slider.js.map +1 -1
  106. package/dist/components/stepper.js.map +1 -1
  107. package/dist/components/switch.js +47 -47
  108. package/dist/components/switch.js.map +1 -1
  109. package/dist/components/system-state.js.map +1 -1
  110. package/dist/components/table.js.map +1 -1
  111. package/dist/components/tabs.js.map +1 -1
  112. package/dist/components/tag-input.js +1 -1
  113. package/dist/components/tag-input.js.map +1 -1
  114. package/dist/components/textarea.js.map +1 -1
  115. package/dist/components/timer.js.map +1 -1
  116. package/dist/components/toast.js.map +1 -1
  117. package/dist/components/toggle-group.js.map +1 -1
  118. package/dist/components/toolbar.js.map +1 -1
  119. package/dist/design-tokens.source.json +1 -0
  120. package/dist/formatBytes-C4QXq5lC.js.map +1 -1
  121. package/dist/index-0ioNhtNM.js.map +1 -1
  122. package/dist/index-437EL2iq.js.map +1 -1
  123. package/dist/index-BDrapWDv.js.map +1 -1
  124. package/dist/index-BGQepRFJ.js.map +1 -1
  125. package/dist/index-BVqs-uqP.js.map +1 -1
  126. package/dist/index-BZPx6jYI.js.map +1 -1
  127. package/dist/index-Bb23HztA.js.map +1 -1
  128. package/dist/index-BpWB3aFK.js.map +1 -1
  129. package/dist/index-ByaXH_ih.js.map +1 -1
  130. package/dist/index-BzCriPiK.js.map +1 -1
  131. package/dist/index-CCKe-Mpx.js.map +1 -1
  132. package/dist/index-CFaU3UXv.js.map +1 -1
  133. package/dist/index-CLuiUUQ8.js.map +1 -1
  134. package/dist/index-CQD-Njgt.js.map +1 -1
  135. package/dist/index-CmBeyp2d.js.map +1 -1
  136. package/dist/index-DFZozV_h.js.map +1 -1
  137. package/dist/index-DHsfW5Rj.js.map +1 -1
  138. package/dist/index-DHyZ_0Ut.js.map +1 -1
  139. package/dist/index-DLcqcWxM.js.map +1 -1
  140. package/dist/index-DRo26PBK.js.map +1 -1
  141. package/dist/index-DnnQs07z.js.map +1 -1
  142. package/dist/index-Uiy0Xwy2.js.map +1 -1
  143. package/dist/index-_ITz1IyW.js.map +1 -1
  144. package/dist/index.js.map +1 -1
  145. package/dist/inputBaseStyles-DbzD_jvq.js.map +1 -1
  146. package/dist/lib/utils.js.map +1 -1
  147. package/dist/providers/component-variant-context/ComponentVariantProvider.d.ts +41 -4
  148. package/dist/providers/component-variant-context/index.d.ts +1 -1
  149. package/dist/providers/component-variant-context.js +4 -3
  150. package/dist/styles-scoped.css +6398 -6356
  151. package/dist/styles.css +6137 -6095
  152. package/dist/theme.css +362 -362
  153. package/dist/types/css.d.ts +4 -4
  154. package/dist/useBreakpoints-D8wKOvil.js.map +1 -1
  155. package/dist/useDebounce-BRah78CF.js.map +1 -1
  156. package/dist/useFileUpload-Bnl3P8mP.js.map +1 -1
  157. package/dist/useItemsKeyboardNavigation-CmeOR30y.js.map +1 -1
  158. package/dist/useMergeRefs-qoKniYqT.js.map +1 -1
  159. package/dist/usePortalContainer-ae6EzS08.js.map +1 -1
  160. package/dist/vendors/tanstack/react-table.js.map +1 -1
  161. package/dist/zod-BMNoK3aM.js.map +1 -1
  162. package/package.json +183 -183
  163. package/tailwind.preset.js +448 -448
  164. package/dist/Command-CiZHptkR.js +0 -554
  165. package/dist/Command-CiZHptkR.js.map +0 -1
  166. package/dist/ComponentVariantProvider-B0SFUaXB.js +0 -8
  167. package/dist/ComponentVariantProvider-B0SFUaXB.js.map +0 -1
  168. package/dist/MenuItem-pvsONHlh.js +0 -32
  169. package/dist/MenuItem-pvsONHlh.js.map +0 -1
  170. package/dist/MenuItemShortcut-DgPol9Nz.js +0 -21
  171. package/dist/MenuItemShortcut-DgPol9Nz.js.map +0 -1
  172. package/dist/MenuItemText-7uPl9P3z.js +0 -20
  173. package/dist/MenuItemText-7uPl9P3z.js.map +0 -1
  174. package/dist/Select-DRwv6-eZ.js.map +0 -1
@@ -1,64 +1,64 @@
1
1
  import { jsx as c, jsxs as H } from "react/jsx-runtime";
2
- import { c as Bn } from "../cn-dsXlqdJg.js";
3
- import { u as R } from "../ComponentVariantProvider-B0SFUaXB.js";
4
- import * as a from "react";
5
- import { P as E, c as v, d as Vn, a as jn } from "../index-CFaU3UXv.js";
6
- import { u as F, c as ze } from "../index-DLcqcWxM.js";
7
- import { c as Xe } from "../index-DFZozV_h.js";
8
- import { u as Ye } from "../index-437EL2iq.js";
9
- import { c as zn } from "../index-DHsfW5Rj.js";
10
- import { u as Xn } from "../index-ByaXH_ih.js";
11
- import { P as Yn, D as Hn } from "../index-_ITz1IyW.js";
12
- import { h as Wn, u as Zn, R as qn, F as Jn } from "../index-BzCriPiK.js";
13
- import { u as z } from "../index-xqkGMOJ8.js";
14
- import { c as He, R as We, A as Qn, a as eo, C as no } from "../index-DRo26PBK.js";
2
+ import { c as jn } from "../cn-dsXlqdJg.js";
3
+ import { u as S, n as ie } from "../ComponentVariantProvider-brk0g-hm.js";
4
+ import * as s from "react";
5
+ import { P as E, c as h, d as Yn, a as Xn } from "../index-CFaU3UXv.js";
6
+ import { u as F, c as He } from "../index-DLcqcWxM.js";
7
+ import { c as We } from "../index-DFZozV_h.js";
8
+ import { u as Ze } from "../index-437EL2iq.js";
9
+ import { c as Hn } from "../index-DHsfW5Rj.js";
10
+ import { u as Wn } from "../index-ByaXH_ih.js";
11
+ import { P as Zn, D as qn } from "../index-_ITz1IyW.js";
12
+ import { h as Jn, u as Qn, R as eo, F as no } from "../index-BzCriPiK.js";
13
+ import { u as j } from "../index-xqkGMOJ8.js";
14
+ import { c as qe, R as Je, A as oo, a as to, C as ro } from "../index-DRo26PBK.js";
15
15
  import { P as W } from "../index-BpWB3aFK.js";
16
- import { c as Ze, I as oo, R as to } from "../index-DHyZ_0Ut.js";
17
- import { u as se } from "../index-0ioNhtNM.js";
18
- import { T as y } from "../index-BVqs-uqP.js";
19
- import { T as ro } from "../TriggerButton-CfDObWP9.js";
20
- import { I as ao } from "../Icon-DH3ev9GK.js";
21
- import { m as Z } from "../MenuItem-pvsONHlh.js";
22
- import { m as so } from "../MenuItemShortcut-DgPol9Nz.js";
23
- import { u as qe } from "../usePortalContainer-ae6EzS08.js";
24
- import { M as co } from "../minus-BltQa7Q2.js";
25
- import { C as Je } from "../check-CeyaOoZv.js";
26
- import { C as io } from "../chevron-right-D3juAhA-.js";
27
- import { S as uo } from "../search-CDdgqSGg.js";
28
- var ae = ["Enter", " "], lo = ["ArrowDown", "PageUp", "Home"], Qe = ["ArrowUp", "PageDown", "End"], po = [...lo, ...Qe], fo = {
29
- ltr: [...ae, "ArrowRight"],
30
- rtl: [...ae, "ArrowLeft"]
31
- }, mo = {
16
+ import { c as Qe, I as ao, R as so } from "../index-DHyZ_0Ut.js";
17
+ import { u as de } from "../index-0ioNhtNM.js";
18
+ import { T as M } from "../index-BVqs-uqP.js";
19
+ import { T as co } from "../TriggerButton-CfDObWP9.js";
20
+ import { I as io } from "../Icon-DH3ev9GK.js";
21
+ import { M as Z, m as q } from "../MenuItem-d19Ty84F.js";
22
+ import { m as uo } from "../MenuItemShortcut-D1faeIXp.js";
23
+ import { u as en } from "../usePortalContainer-ae6EzS08.js";
24
+ import { M as lo } from "../minus-BltQa7Q2.js";
25
+ import { C as nn } from "../check-CeyaOoZv.js";
26
+ import { C as po } from "../chevron-right-D3juAhA-.js";
27
+ import { S as mo } from "../search-CDdgqSGg.js";
28
+ var ce = ["Enter", " "], fo = ["ArrowDown", "PageUp", "Home"], on = ["ArrowUp", "PageDown", "End"], go = [...fo, ...on], ho = {
29
+ ltr: [...ce, "ArrowRight"],
30
+ rtl: [...ce, "ArrowLeft"]
31
+ }, vo = {
32
32
  ltr: ["ArrowLeft"],
33
33
  rtl: ["ArrowRight"]
34
- }, K = "Menu", [L, ho, vo] = zn(K), [D, en] = Xe(K, [
35
- vo,
36
- He,
37
- Ze
38
- ]), $ = He(), nn = Ze(), [on, _] = D(K), [go, U] = D(K), tn = (e) => {
39
- const { __scopeMenu: o, open: n = !1, children: t, dir: r, onOpenChange: s, modal: i = !0 } = e, d = $(o), [f, m] = a.useState(null), l = a.useRef(!1), u = se(s), h = Xn(r);
40
- return a.useEffect(() => {
41
- const M = () => {
42
- l.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
43
- }, g = () => l.current = !1;
44
- return document.addEventListener("keydown", M, { capture: !0 }), () => {
45
- document.removeEventListener("keydown", M, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
34
+ }, K = "Menu", [L, wo, Mo] = Hn(K), [D, tn] = We(K, [
35
+ Mo,
36
+ qe,
37
+ Qe
38
+ ]), $ = qe(), rn = Qe(), [an, _] = D(K), [bo, U] = D(K), sn = (e) => {
39
+ const { __scopeMenu: o, open: n = !1, children: t, dir: r, onOpenChange: a, modal: i = !0 } = e, d = $(o), [m, f] = s.useState(null), l = s.useRef(!1), u = de(a), g = Wn(r);
40
+ return s.useEffect(() => {
41
+ const w = () => {
42
+ l.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
43
+ }, v = () => l.current = !1;
44
+ return document.addEventListener("keydown", w, { capture: !0 }), () => {
45
+ document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
46
46
  };
47
- }, []), /* @__PURE__ */ c(We, { ...d, children: /* @__PURE__ */ c(
48
- on,
47
+ }, []), /* @__PURE__ */ c(Je, { ...d, children: /* @__PURE__ */ c(
48
+ an,
49
49
  {
50
50
  scope: o,
51
51
  open: n,
52
52
  onOpenChange: u,
53
- content: f,
54
- onContentChange: m,
53
+ content: m,
54
+ onContentChange: f,
55
55
  children: /* @__PURE__ */ c(
56
- go,
56
+ bo,
57
57
  {
58
58
  scope: o,
59
- onClose: a.useCallback(() => u(!1), [u]),
59
+ onClose: s.useCallback(() => u(!1), [u]),
60
60
  isUsingKeyboardRef: l,
61
- dir: h,
61
+ dir: g,
62
62
  modal: i,
63
63
  children: t
64
64
  }
@@ -66,53 +66,53 @@ var ae = ["Enter", " "], lo = ["ArrowDown", "PageUp", "Home"], Qe = ["ArrowUp",
66
66
  }
67
67
  ) });
68
68
  };
69
- tn.displayName = K;
70
- var Mo = "MenuAnchor", ce = a.forwardRef(
69
+ sn.displayName = K;
70
+ var Co = "MenuAnchor", ue = s.forwardRef(
71
71
  (e, o) => {
72
72
  const { __scopeMenu: n, ...t } = e, r = $(n);
73
- return /* @__PURE__ */ c(Qn, { ...r, ...t, ref: o });
73
+ return /* @__PURE__ */ c(oo, { ...r, ...t, ref: o });
74
74
  }
75
75
  );
76
- ce.displayName = Mo;
77
- var ie = "MenuPortal", [wo, rn] = D(ie, {
76
+ ue.displayName = Co;
77
+ var le = "MenuPortal", [yo, cn] = D(le, {
78
78
  forceMount: void 0
79
- }), an = (e) => {
80
- const { __scopeMenu: o, forceMount: n, children: t, container: r } = e, s = _(ie, o);
81
- return /* @__PURE__ */ c(wo, { scope: o, forceMount: n, children: /* @__PURE__ */ c(W, { present: n || s.open, children: /* @__PURE__ */ c(Yn, { asChild: !0, container: r, children: t }) }) });
79
+ }), dn = (e) => {
80
+ const { __scopeMenu: o, forceMount: n, children: t, container: r } = e, a = _(le, o);
81
+ return /* @__PURE__ */ c(yo, { scope: o, forceMount: n, children: /* @__PURE__ */ c(W, { present: n || a.open, children: /* @__PURE__ */ c(Zn, { asChild: !0, container: r, children: t }) }) });
82
82
  };
83
- an.displayName = ie;
84
- var C = "MenuContent", [bo, ue] = D(C), sn = a.forwardRef(
83
+ dn.displayName = le;
84
+ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
85
85
  (e, o) => {
86
- const n = rn(C, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, s = _(C, e.__scopeMenu), i = U(C, e.__scopeMenu);
87
- return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || s.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ c(Co, { ...r, ref: o }) : /* @__PURE__ */ c(yo, { ...r, ref: o }) }) }) });
86
+ const n = cn(y, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, a = _(y, e.__scopeMenu), i = U(y, e.__scopeMenu);
87
+ return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || a.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ c(_o, { ...r, ref: o }) : /* @__PURE__ */ c(Ro, { ...r, ref: o }) }) }) });
88
88
  }
89
- ), Co = a.forwardRef(
89
+ ), _o = s.forwardRef(
90
90
  (e, o) => {
91
- const n = _(C, e.__scopeMenu), t = a.useRef(null), r = F(o, t);
92
- return a.useEffect(() => {
93
- const s = t.current;
94
- if (s) return Wn(s);
91
+ const n = _(y, e.__scopeMenu), t = s.useRef(null), r = F(o, t);
92
+ return s.useEffect(() => {
93
+ const a = t.current;
94
+ if (a) return Jn(a);
95
95
  }, []), /* @__PURE__ */ c(
96
- de,
96
+ me,
97
97
  {
98
98
  ...e,
99
99
  ref: r,
100
100
  trapFocus: n.open,
101
101
  disableOutsidePointerEvents: n.open,
102
102
  disableOutsideScroll: !0,
103
- onFocusOutside: v(
103
+ onFocusOutside: h(
104
104
  e.onFocusOutside,
105
- (s) => s.preventDefault(),
105
+ (a) => a.preventDefault(),
106
106
  { checkForDefaultPrevented: !1 }
107
107
  ),
108
108
  onDismiss: () => n.onOpenChange(!1)
109
109
  }
110
110
  );
111
111
  }
112
- ), yo = a.forwardRef((e, o) => {
113
- const n = _(C, e.__scopeMenu);
112
+ ), Ro = s.forwardRef((e, o) => {
113
+ const n = _(y, e.__scopeMenu);
114
114
  return /* @__PURE__ */ c(
115
- de,
115
+ me,
116
116
  {
117
117
  ...e,
118
118
  ref: o,
@@ -122,122 +122,122 @@ var C = "MenuContent", [bo, ue] = D(C), sn = a.forwardRef(
122
122
  onDismiss: () => n.onOpenChange(!1)
123
123
  }
124
124
  );
125
- }), Ro = jn("MenuContent.ScrollLock"), de = a.forwardRef(
125
+ }), Do = Xn("MenuContent.ScrollLock"), me = s.forwardRef(
126
126
  (e, o) => {
127
127
  const {
128
128
  __scopeMenu: n,
129
129
  loop: t = !1,
130
130
  trapFocus: r,
131
- onOpenAutoFocus: s,
131
+ onOpenAutoFocus: a,
132
132
  onCloseAutoFocus: i,
133
133
  disableOutsidePointerEvents: d,
134
- onEntryFocus: f,
135
- onEscapeKeyDown: m,
134
+ onEntryFocus: m,
135
+ onEscapeKeyDown: f,
136
136
  onPointerDownOutside: l,
137
137
  onFocusOutside: u,
138
- onInteractOutside: h,
139
- onDismiss: M,
140
- disableOutsideScroll: g,
138
+ onInteractOutside: g,
139
+ onDismiss: w,
140
+ disableOutsideScroll: v,
141
141
  ...x
142
- } = e, T = _(C, n), I = U(C, n), On = $(n), kn = nn(n), Ke = ho(n), [Ln, $e] = a.useState(null), B = a.useRef(null), Gn = F(o, B, T.onContentChange), V = a.useRef(0), j = a.useRef(""), Fn = a.useRef(0), ne = a.useRef(null), Ue = a.useRef("right"), oe = a.useRef(0), Kn = g ? qn : a.Fragment, $n = g ? { as: Ro, allowPinchZoom: !0 } : void 0, Un = (p) => {
143
- const N = j.current + p, S = Ke().filter((b) => !b.disabled), A = document.activeElement, te = S.find((b) => b.ref.current === A)?.textValue, re = S.map((b) => b.textValue), Be = ko(re, N, te), O = S.find((b) => b.textValue === Be)?.ref.current;
144
- (function b(Ve) {
145
- j.current = Ve, window.clearTimeout(V.current), Ve !== "" && (V.current = window.setTimeout(() => b(""), 1e3));
146
- })(N), O && setTimeout(() => O.focus());
142
+ } = e, T = _(y, n), I = U(y, n), Gn = $(n), Fn = rn(n), Ve = wo(n), [Kn, Be] = s.useState(null), V = s.useRef(null), $n = F(o, V, T.onContentChange), B = s.useRef(0), z = s.useRef(""), Un = s.useRef(0), te = s.useRef(null), ze = s.useRef("right"), re = s.useRef(0), Vn = v ? eo : s.Fragment, Bn = v ? { as: Do, allowPinchZoom: !0 } : void 0, zn = (p) => {
143
+ const N = z.current + p, R = Ve().filter((C) => !C.disabled), A = document.activeElement, ae = R.find((C) => C.ref.current === A)?.textValue, se = R.map((C) => C.textValue), je = Fo(se, N, ae), k = R.find((C) => C.textValue === je)?.ref.current;
144
+ (function C(Ye) {
145
+ z.current = Ye, window.clearTimeout(B.current), Ye !== "" && (B.current = window.setTimeout(() => C(""), 1e3));
146
+ })(N), k && setTimeout(() => k.focus());
147
147
  };
148
- a.useEffect(() => () => window.clearTimeout(V.current), []), Zn();
149
- const P = a.useCallback((p) => Ue.current === ne.current?.side && Go(p, ne.current?.area), []);
148
+ s.useEffect(() => () => window.clearTimeout(B.current), []), Qn();
149
+ const P = s.useCallback((p) => ze.current === te.current?.side && $o(p, te.current?.area), []);
150
150
  return /* @__PURE__ */ c(
151
- bo,
151
+ So,
152
152
  {
153
153
  scope: n,
154
- searchRef: j,
155
- onItemEnter: a.useCallback(
154
+ searchRef: z,
155
+ onItemEnter: s.useCallback(
156
156
  (p) => {
157
157
  P(p) && p.preventDefault();
158
158
  },
159
159
  [P]
160
160
  ),
161
- onItemLeave: a.useCallback(
161
+ onItemLeave: s.useCallback(
162
162
  (p) => {
163
- P(p) || (B.current?.focus(), $e(null));
163
+ P(p) || (V.current?.focus(), Be(null));
164
164
  },
165
165
  [P]
166
166
  ),
167
- onTriggerLeave: a.useCallback(
167
+ onTriggerLeave: s.useCallback(
168
168
  (p) => {
169
169
  P(p) && p.preventDefault();
170
170
  },
171
171
  [P]
172
172
  ),
173
- pointerGraceTimerRef: Fn,
174
- onPointerGraceIntentChange: a.useCallback((p) => {
175
- ne.current = p;
173
+ pointerGraceTimerRef: Un,
174
+ onPointerGraceIntentChange: s.useCallback((p) => {
175
+ te.current = p;
176
176
  }, []),
177
- children: /* @__PURE__ */ c(Kn, { ...$n, children: /* @__PURE__ */ c(
178
- Jn,
177
+ children: /* @__PURE__ */ c(Vn, { ...Bn, children: /* @__PURE__ */ c(
178
+ no,
179
179
  {
180
180
  asChild: !0,
181
181
  trapped: r,
182
- onMountAutoFocus: v(s, (p) => {
183
- p.preventDefault(), B.current?.focus({ preventScroll: !0 });
182
+ onMountAutoFocus: h(a, (p) => {
183
+ p.preventDefault(), V.current?.focus({ preventScroll: !0 });
184
184
  }),
185
185
  onUnmountAutoFocus: i,
186
186
  children: /* @__PURE__ */ c(
187
- Hn,
187
+ qn,
188
188
  {
189
189
  asChild: !0,
190
190
  disableOutsidePointerEvents: d,
191
- onEscapeKeyDown: m,
191
+ onEscapeKeyDown: f,
192
192
  onPointerDownOutside: l,
193
193
  onFocusOutside: u,
194
- onInteractOutside: h,
195
- onDismiss: M,
194
+ onInteractOutside: g,
195
+ onDismiss: w,
196
196
  children: /* @__PURE__ */ c(
197
- to,
197
+ so,
198
198
  {
199
199
  asChild: !0,
200
- ...kn,
200
+ ...Fn,
201
201
  dir: I.dir,
202
202
  orientation: "vertical",
203
203
  loop: t,
204
- currentTabStopId: Ln,
205
- onCurrentTabStopIdChange: $e,
206
- onEntryFocus: v(f, (p) => {
204
+ currentTabStopId: Kn,
205
+ onCurrentTabStopIdChange: Be,
206
+ onEntryFocus: h(m, (p) => {
207
207
  I.isUsingKeyboardRef.current || p.preventDefault();
208
208
  }),
209
209
  preventScrollOnEntryFocus: !0,
210
210
  children: /* @__PURE__ */ c(
211
- no,
211
+ ro,
212
212
  {
213
213
  role: "menu",
214
214
  "aria-orientation": "vertical",
215
- "data-state": _n(T.open),
215
+ "data-state": xn(T.open),
216
216
  "data-radix-menu-content": "",
217
217
  dir: I.dir,
218
- ...On,
218
+ ...Gn,
219
219
  ...x,
220
- ref: Gn,
220
+ ref: $n,
221
221
  style: { outline: "none", ...x.style },
222
- onKeyDown: v(x.onKeyDown, (p) => {
223
- const S = p.target.closest("[data-radix-menu-content]") === p.currentTarget, A = p.ctrlKey || p.altKey || p.metaKey, te = p.key.length === 1;
224
- S && (p.key === "Tab" && p.preventDefault(), !A && te && Un(p.key));
225
- const re = B.current;
226
- if (p.target !== re || !po.includes(p.key)) return;
222
+ onKeyDown: h(x.onKeyDown, (p) => {
223
+ const R = p.target.closest("[data-radix-menu-content]") === p.currentTarget, A = p.ctrlKey || p.altKey || p.metaKey, ae = p.key.length === 1;
224
+ R && (p.key === "Tab" && p.preventDefault(), !A && ae && zn(p.key));
225
+ const se = V.current;
226
+ if (p.target !== se || !go.includes(p.key)) return;
227
227
  p.preventDefault();
228
- const O = Ke().filter((b) => !b.disabled).map((b) => b.ref.current);
229
- Qe.includes(p.key) && O.reverse(), Ao(O);
228
+ const k = Ve().filter((C) => !C.disabled).map((C) => C.ref.current);
229
+ on.includes(p.key) && k.reverse(), Lo(k);
230
230
  }),
231
- onBlur: v(e.onBlur, (p) => {
232
- p.currentTarget.contains(p.target) || (window.clearTimeout(V.current), j.current = "");
231
+ onBlur: h(e.onBlur, (p) => {
232
+ p.currentTarget.contains(p.target) || (window.clearTimeout(B.current), z.current = "");
233
233
  }),
234
- onPointerMove: v(
234
+ onPointerMove: h(
235
235
  e.onPointerMove,
236
236
  G((p) => {
237
- const N = p.target, S = oe.current !== p.clientX;
238
- if (p.currentTarget.contains(N) && S) {
239
- const A = p.clientX > oe.current ? "right" : "left";
240
- Ue.current = A, oe.current = p.clientX;
237
+ const N = p.target, R = re.current !== p.clientX;
238
+ if (p.currentTarget.contains(N) && R) {
239
+ const A = p.clientX > re.current ? "right" : "left";
240
+ ze.current = A, re.current = p.clientX;
241
241
  }
242
242
  })
243
243
  )
@@ -253,134 +253,134 @@ var C = "MenuContent", [bo, ue] = D(C), sn = a.forwardRef(
253
253
  );
254
254
  }
255
255
  );
256
- sn.displayName = C;
257
- var _o = "MenuGroup", le = a.forwardRef(
256
+ un.displayName = y;
257
+ var xo = "MenuGroup", fe = s.forwardRef(
258
258
  (e, o) => {
259
259
  const { __scopeMenu: n, ...t } = e;
260
260
  return /* @__PURE__ */ c(E.div, { role: "group", ...t, ref: o });
261
261
  }
262
262
  );
263
- le.displayName = _o;
264
- var So = "MenuLabel", cn = a.forwardRef(
263
+ fe.displayName = xo;
264
+ var Io = "MenuLabel", ln = s.forwardRef(
265
265
  (e, o) => {
266
266
  const { __scopeMenu: n, ...t } = e;
267
267
  return /* @__PURE__ */ c(E.div, { ...t, ref: o });
268
268
  }
269
269
  );
270
- cn.displayName = So;
271
- var X = "MenuItem", je = "menu.itemSelect", q = a.forwardRef(
270
+ ln.displayName = Io;
271
+ var Y = "MenuItem", Xe = "menu.itemSelect", J = s.forwardRef(
272
272
  (e, o) => {
273
- const { disabled: n = !1, onSelect: t, ...r } = e, s = a.useRef(null), i = U(X, e.__scopeMenu), d = ue(X, e.__scopeMenu), f = F(o, s), m = a.useRef(!1), l = () => {
274
- const u = s.current;
273
+ const { disabled: n = !1, onSelect: t, ...r } = e, a = s.useRef(null), i = U(Y, e.__scopeMenu), d = pe(Y, e.__scopeMenu), m = F(o, a), f = s.useRef(!1), l = () => {
274
+ const u = a.current;
275
275
  if (!n && u) {
276
- const h = new CustomEvent(je, { bubbles: !0, cancelable: !0 });
277
- u.addEventListener(je, (M) => t?.(M), { once: !0 }), Vn(u, h), h.defaultPrevented ? m.current = !1 : i.onClose();
276
+ const g = new CustomEvent(Xe, { bubbles: !0, cancelable: !0 });
277
+ u.addEventListener(Xe, (w) => t?.(w), { once: !0 }), Yn(u, g), g.defaultPrevented ? f.current = !1 : i.onClose();
278
278
  }
279
279
  };
280
280
  return /* @__PURE__ */ c(
281
- un,
281
+ pn,
282
282
  {
283
283
  ...r,
284
- ref: f,
284
+ ref: m,
285
285
  disabled: n,
286
- onClick: v(e.onClick, l),
286
+ onClick: h(e.onClick, l),
287
287
  onPointerDown: (u) => {
288
- e.onPointerDown?.(u), m.current = !0;
288
+ e.onPointerDown?.(u), f.current = !0;
289
289
  },
290
- onPointerUp: v(e.onPointerUp, (u) => {
291
- m.current || u.currentTarget?.click();
290
+ onPointerUp: h(e.onPointerUp, (u) => {
291
+ f.current || u.currentTarget?.click();
292
292
  }),
293
- onKeyDown: v(e.onKeyDown, (u) => {
294
- const h = d.searchRef.current !== "";
295
- n || h && u.key === " " || ae.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
293
+ onKeyDown: h(e.onKeyDown, (u) => {
294
+ const g = d.searchRef.current !== "";
295
+ n || g && u.key === " " || ce.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
296
296
  })
297
297
  }
298
298
  );
299
299
  }
300
300
  );
301
- q.displayName = X;
302
- var un = a.forwardRef(
301
+ J.displayName = Y;
302
+ var pn = s.forwardRef(
303
303
  (e, o) => {
304
- const { __scopeMenu: n, disabled: t = !1, textValue: r, ...s } = e, i = ue(X, n), d = nn(n), f = a.useRef(null), m = F(o, f), [l, u] = a.useState(!1), [h, M] = a.useState("");
305
- return a.useEffect(() => {
306
- const g = f.current;
307
- g && M((g.textContent ?? "").trim());
308
- }, [s.children]), /* @__PURE__ */ c(
304
+ const { __scopeMenu: n, disabled: t = !1, textValue: r, ...a } = e, i = pe(Y, n), d = rn(n), m = s.useRef(null), f = F(o, m), [l, u] = s.useState(!1), [g, w] = s.useState("");
305
+ return s.useEffect(() => {
306
+ const v = m.current;
307
+ v && w((v.textContent ?? "").trim());
308
+ }, [a.children]), /* @__PURE__ */ c(
309
309
  L.ItemSlot,
310
310
  {
311
311
  scope: n,
312
312
  disabled: t,
313
- textValue: r ?? h,
314
- children: /* @__PURE__ */ c(oo, { asChild: !0, ...d, focusable: !t, children: /* @__PURE__ */ c(
313
+ textValue: r ?? g,
314
+ children: /* @__PURE__ */ c(ao, { asChild: !0, ...d, focusable: !t, children: /* @__PURE__ */ c(
315
315
  E.div,
316
316
  {
317
317
  role: "menuitem",
318
318
  "data-highlighted": l ? "" : void 0,
319
319
  "aria-disabled": t || void 0,
320
320
  "data-disabled": t ? "" : void 0,
321
- ...s,
322
- ref: m,
323
- onPointerMove: v(
321
+ ...a,
322
+ ref: f,
323
+ onPointerMove: h(
324
324
  e.onPointerMove,
325
- G((g) => {
326
- t ? i.onItemLeave(g) : (i.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
325
+ G((v) => {
326
+ t ? i.onItemLeave(v) : (i.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
327
327
  })
328
328
  ),
329
- onPointerLeave: v(
329
+ onPointerLeave: h(
330
330
  e.onPointerLeave,
331
- G((g) => i.onItemLeave(g))
331
+ G((v) => i.onItemLeave(v))
332
332
  ),
333
- onFocus: v(e.onFocus, () => u(!0)),
334
- onBlur: v(e.onBlur, () => u(!1))
333
+ onFocus: h(e.onFocus, () => u(!0)),
334
+ onBlur: h(e.onBlur, () => u(!1))
335
335
  }
336
336
  ) })
337
337
  }
338
338
  );
339
339
  }
340
- ), Do = "MenuCheckboxItem", dn = a.forwardRef(
340
+ ), Po = "MenuCheckboxItem", mn = s.forwardRef(
341
341
  (e, o) => {
342
342
  const { checked: n = !1, onCheckedChange: t, ...r } = e;
343
- return /* @__PURE__ */ c(hn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c(
344
- q,
343
+ return /* @__PURE__ */ c(wn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c(
344
+ J,
345
345
  {
346
346
  role: "menuitemcheckbox",
347
- "aria-checked": Y(n) ? "mixed" : n,
347
+ "aria-checked": X(n) ? "mixed" : n,
348
348
  ...r,
349
349
  ref: o,
350
- "data-state": me(n),
351
- onSelect: v(
350
+ "data-state": ve(n),
351
+ onSelect: h(
352
352
  r.onSelect,
353
- () => t?.(Y(n) ? !0 : !n),
353
+ () => t?.(X(n) ? !0 : !n),
354
354
  { checkForDefaultPrevented: !1 }
355
355
  )
356
356
  }
357
357
  ) });
358
358
  }
359
359
  );
360
- dn.displayName = Do;
361
- var ln = "MenuRadioGroup", [xo, Io] = D(
362
- ln,
360
+ mn.displayName = Po;
361
+ var fn = "MenuRadioGroup", [No, Eo] = D(
362
+ fn,
363
363
  { value: void 0, onValueChange: () => {
364
364
  } }
365
- ), pn = a.forwardRef(
365
+ ), gn = s.forwardRef(
366
366
  (e, o) => {
367
- const { value: n, onValueChange: t, ...r } = e, s = se(t);
368
- return /* @__PURE__ */ c(xo, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ c(le, { ...r, ref: o }) });
367
+ const { value: n, onValueChange: t, ...r } = e, a = de(t);
368
+ return /* @__PURE__ */ c(No, { scope: e.__scopeMenu, value: n, onValueChange: a, children: /* @__PURE__ */ c(fe, { ...r, ref: o }) });
369
369
  }
370
370
  );
371
- pn.displayName = ln;
372
- var fn = "MenuRadioItem", mn = a.forwardRef(
371
+ gn.displayName = fn;
372
+ var hn = "MenuRadioItem", vn = s.forwardRef(
373
373
  (e, o) => {
374
- const { value: n, ...t } = e, r = Io(fn, e.__scopeMenu), s = n === r.value;
375
- return /* @__PURE__ */ c(hn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ c(
376
- q,
374
+ const { value: n, ...t } = e, r = Eo(hn, e.__scopeMenu), a = n === r.value;
375
+ return /* @__PURE__ */ c(wn, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ c(
376
+ J,
377
377
  {
378
378
  role: "menuitemradio",
379
- "aria-checked": s,
379
+ "aria-checked": a,
380
380
  ...t,
381
381
  ref: o,
382
- "data-state": me(s),
383
- onSelect: v(
382
+ "data-state": ve(a),
383
+ onSelect: h(
384
384
  t.onSelect,
385
385
  () => r.onValueChange?.(n),
386
386
  { checkForDefaultPrevented: !1 }
@@ -389,31 +389,31 @@ var fn = "MenuRadioItem", mn = a.forwardRef(
389
389
  ) });
390
390
  }
391
391
  );
392
- mn.displayName = fn;
393
- var pe = "MenuItemIndicator", [hn, Po] = D(
394
- pe,
392
+ vn.displayName = hn;
393
+ var ge = "MenuItemIndicator", [wn, To] = D(
394
+ ge,
395
395
  { checked: !1 }
396
- ), vn = a.forwardRef(
396
+ ), Mn = s.forwardRef(
397
397
  (e, o) => {
398
- const { __scopeMenu: n, forceMount: t, ...r } = e, s = Po(pe, n);
398
+ const { __scopeMenu: n, forceMount: t, ...r } = e, a = To(ge, n);
399
399
  return /* @__PURE__ */ c(
400
400
  W,
401
401
  {
402
- present: t || Y(s.checked) || s.checked === !0,
402
+ present: t || X(a.checked) || a.checked === !0,
403
403
  children: /* @__PURE__ */ c(
404
404
  E.span,
405
405
  {
406
406
  ...r,
407
407
  ref: o,
408
- "data-state": me(s.checked)
408
+ "data-state": ve(a.checked)
409
409
  }
410
410
  )
411
411
  }
412
412
  );
413
413
  }
414
414
  );
415
- vn.displayName = pe;
416
- var No = "MenuSeparator", gn = a.forwardRef(
415
+ Mn.displayName = ge;
416
+ var Ao = "MenuSeparator", bn = s.forwardRef(
417
417
  (e, o) => {
418
418
  const { __scopeMenu: n, ...t } = e;
419
419
  return /* @__PURE__ */ c(
@@ -427,266 +427,266 @@ var No = "MenuSeparator", gn = a.forwardRef(
427
427
  );
428
428
  }
429
429
  );
430
- gn.displayName = No;
431
- var Eo = "MenuArrow", Mn = a.forwardRef(
430
+ bn.displayName = Ao;
431
+ var ko = "MenuArrow", Cn = s.forwardRef(
432
432
  (e, o) => {
433
433
  const { __scopeMenu: n, ...t } = e, r = $(n);
434
- return /* @__PURE__ */ c(eo, { ...r, ...t, ref: o });
434
+ return /* @__PURE__ */ c(to, { ...r, ...t, ref: o });
435
435
  }
436
436
  );
437
- Mn.displayName = Eo;
438
- var fe = "MenuSub", [To, wn] = D(fe), bn = (e) => {
439
- const { __scopeMenu: o, children: n, open: t = !1, onOpenChange: r } = e, s = _(fe, o), i = $(o), [d, f] = a.useState(null), [m, l] = a.useState(null), u = se(r);
440
- return a.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ c(We, { ...i, children: /* @__PURE__ */ c(
441
- on,
437
+ Cn.displayName = ko;
438
+ var he = "MenuSub", [Oo, yn] = D(he), Sn = (e) => {
439
+ const { __scopeMenu: o, children: n, open: t = !1, onOpenChange: r } = e, a = _(he, o), i = $(o), [d, m] = s.useState(null), [f, l] = s.useState(null), u = de(r);
440
+ return s.useEffect(() => (a.open === !1 && u(!1), () => u(!1)), [a.open, u]), /* @__PURE__ */ c(Je, { ...i, children: /* @__PURE__ */ c(
441
+ an,
442
442
  {
443
443
  scope: o,
444
444
  open: t,
445
445
  onOpenChange: u,
446
- content: m,
446
+ content: f,
447
447
  onContentChange: l,
448
448
  children: /* @__PURE__ */ c(
449
- To,
449
+ Oo,
450
450
  {
451
451
  scope: o,
452
- contentId: z(),
453
- triggerId: z(),
452
+ contentId: j(),
453
+ triggerId: j(),
454
454
  trigger: d,
455
- onTriggerChange: f,
455
+ onTriggerChange: m,
456
456
  children: n
457
457
  }
458
458
  )
459
459
  }
460
460
  ) });
461
461
  };
462
- bn.displayName = fe;
463
- var k = "MenuSubTrigger", Cn = a.forwardRef(
462
+ Sn.displayName = he;
463
+ var O = "MenuSubTrigger", _n = s.forwardRef(
464
464
  (e, o) => {
465
- const n = _(k, e.__scopeMenu), t = U(k, e.__scopeMenu), r = wn(k, e.__scopeMenu), s = ue(k, e.__scopeMenu), i = a.useRef(null), { pointerGraceTimerRef: d, onPointerGraceIntentChange: f } = s, m = { __scopeMenu: e.__scopeMenu }, l = a.useCallback(() => {
465
+ const n = _(O, e.__scopeMenu), t = U(O, e.__scopeMenu), r = yn(O, e.__scopeMenu), a = pe(O, e.__scopeMenu), i = s.useRef(null), { pointerGraceTimerRef: d, onPointerGraceIntentChange: m } = a, f = { __scopeMenu: e.__scopeMenu }, l = s.useCallback(() => {
466
466
  i.current && window.clearTimeout(i.current), i.current = null;
467
467
  }, []);
468
- return a.useEffect(() => l, [l]), a.useEffect(() => {
468
+ return s.useEffect(() => l, [l]), s.useEffect(() => {
469
469
  const u = d.current;
470
470
  return () => {
471
- window.clearTimeout(u), f(null);
471
+ window.clearTimeout(u), m(null);
472
472
  };
473
- }, [d, f]), /* @__PURE__ */ c(ce, { asChild: !0, ...m, children: /* @__PURE__ */ c(
474
- un,
473
+ }, [d, m]), /* @__PURE__ */ c(ue, { asChild: !0, ...f, children: /* @__PURE__ */ c(
474
+ pn,
475
475
  {
476
476
  id: r.triggerId,
477
477
  "aria-haspopup": "menu",
478
478
  "aria-expanded": n.open,
479
479
  "aria-controls": r.contentId,
480
- "data-state": _n(n.open),
480
+ "data-state": xn(n.open),
481
481
  ...e,
482
- ref: ze(o, r.onTriggerChange),
482
+ ref: He(o, r.onTriggerChange),
483
483
  onClick: (u) => {
484
484
  e.onClick?.(u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
485
485
  },
486
- onPointerMove: v(
486
+ onPointerMove: h(
487
487
  e.onPointerMove,
488
488
  G((u) => {
489
- s.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
489
+ a.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !i.current && (a.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
490
490
  n.onOpenChange(!0), l();
491
491
  }, 100));
492
492
  })
493
493
  ),
494
- onPointerLeave: v(
494
+ onPointerLeave: h(
495
495
  e.onPointerLeave,
496
496
  G((u) => {
497
497
  l();
498
- const h = n.content?.getBoundingClientRect();
499
- if (h) {
500
- const M = n.content?.dataset.side, g = M === "right", x = g ? -5 : 5, T = h[g ? "left" : "right"], I = h[g ? "right" : "left"];
501
- s.onPointerGraceIntentChange({
498
+ const g = n.content?.getBoundingClientRect();
499
+ if (g) {
500
+ const w = n.content?.dataset.side, v = w === "right", x = v ? -5 : 5, T = g[v ? "left" : "right"], I = g[v ? "right" : "left"];
501
+ a.onPointerGraceIntentChange({
502
502
  area: [
503
503
  // Apply a bleed on clientX to ensure that our exit point is
504
504
  // consistently within polygon bounds
505
505
  { x: u.clientX + x, y: u.clientY },
506
- { x: T, y: h.top },
507
- { x: I, y: h.top },
508
- { x: I, y: h.bottom },
509
- { x: T, y: h.bottom }
506
+ { x: T, y: g.top },
507
+ { x: I, y: g.top },
508
+ { x: I, y: g.bottom },
509
+ { x: T, y: g.bottom }
510
510
  ],
511
- side: M
511
+ side: w
512
512
  }), window.clearTimeout(d.current), d.current = window.setTimeout(
513
- () => s.onPointerGraceIntentChange(null),
513
+ () => a.onPointerGraceIntentChange(null),
514
514
  300
515
515
  );
516
516
  } else {
517
- if (s.onTriggerLeave(u), u.defaultPrevented) return;
518
- s.onPointerGraceIntentChange(null);
517
+ if (a.onTriggerLeave(u), u.defaultPrevented) return;
518
+ a.onPointerGraceIntentChange(null);
519
519
  }
520
520
  })
521
521
  ),
522
- onKeyDown: v(e.onKeyDown, (u) => {
523
- const h = s.searchRef.current !== "";
524
- e.disabled || h && u.key === " " || fo[t.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
522
+ onKeyDown: h(e.onKeyDown, (u) => {
523
+ const g = a.searchRef.current !== "";
524
+ e.disabled || g && u.key === " " || ho[t.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
525
525
  })
526
526
  }
527
527
  ) });
528
528
  }
529
529
  );
530
- Cn.displayName = k;
531
- var yn = "MenuSubContent", Rn = a.forwardRef(
530
+ _n.displayName = O;
531
+ var Rn = "MenuSubContent", Dn = s.forwardRef(
532
532
  (e, o) => {
533
- const n = rn(C, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, s = _(C, e.__scopeMenu), i = U(C, e.__scopeMenu), d = wn(yn, e.__scopeMenu), f = a.useRef(null), m = F(o, f);
534
- return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || s.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(
535
- de,
533
+ const n = cn(y, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, a = _(y, e.__scopeMenu), i = U(y, e.__scopeMenu), d = yn(Rn, e.__scopeMenu), m = s.useRef(null), f = F(o, m);
534
+ return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || a.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(
535
+ me,
536
536
  {
537
537
  id: d.contentId,
538
538
  "aria-labelledby": d.triggerId,
539
539
  ...r,
540
- ref: m,
540
+ ref: f,
541
541
  align: "start",
542
542
  side: i.dir === "rtl" ? "left" : "right",
543
543
  disableOutsidePointerEvents: !1,
544
544
  disableOutsideScroll: !1,
545
545
  trapFocus: !1,
546
546
  onOpenAutoFocus: (l) => {
547
- i.isUsingKeyboardRef.current && f.current?.focus(), l.preventDefault();
547
+ i.isUsingKeyboardRef.current && m.current?.focus(), l.preventDefault();
548
548
  },
549
549
  onCloseAutoFocus: (l) => l.preventDefault(),
550
- onFocusOutside: v(e.onFocusOutside, (l) => {
551
- l.target !== d.trigger && s.onOpenChange(!1);
550
+ onFocusOutside: h(e.onFocusOutside, (l) => {
551
+ l.target !== d.trigger && a.onOpenChange(!1);
552
552
  }),
553
- onEscapeKeyDown: v(e.onEscapeKeyDown, (l) => {
553
+ onEscapeKeyDown: h(e.onEscapeKeyDown, (l) => {
554
554
  i.onClose(), l.preventDefault();
555
555
  }),
556
- onKeyDown: v(e.onKeyDown, (l) => {
557
- const u = l.currentTarget.contains(l.target), h = mo[i.dir].includes(l.key);
558
- u && h && (s.onOpenChange(!1), d.trigger?.focus(), l.preventDefault());
556
+ onKeyDown: h(e.onKeyDown, (l) => {
557
+ const u = l.currentTarget.contains(l.target), g = vo[i.dir].includes(l.key);
558
+ u && g && (a.onOpenChange(!1), d.trigger?.focus(), l.preventDefault());
559
559
  })
560
560
  }
561
561
  ) }) }) });
562
562
  }
563
563
  );
564
- Rn.displayName = yn;
565
- function _n(e) {
564
+ Dn.displayName = Rn;
565
+ function xn(e) {
566
566
  return e ? "open" : "closed";
567
567
  }
568
- function Y(e) {
568
+ function X(e) {
569
569
  return e === "indeterminate";
570
570
  }
571
- function me(e) {
572
- return Y(e) ? "indeterminate" : e ? "checked" : "unchecked";
571
+ function ve(e) {
572
+ return X(e) ? "indeterminate" : e ? "checked" : "unchecked";
573
573
  }
574
- function Ao(e) {
574
+ function Lo(e) {
575
575
  const o = document.activeElement;
576
576
  for (const n of e)
577
577
  if (n === o || (n.focus(), document.activeElement !== o)) return;
578
578
  }
579
- function Oo(e, o) {
579
+ function Go(e, o) {
580
580
  return e.map((n, t) => e[(o + t) % e.length]);
581
581
  }
582
- function ko(e, o, n) {
583
- const r = o.length > 1 && Array.from(o).every((m) => m === o[0]) ? o[0] : o, s = n ? e.indexOf(n) : -1;
584
- let i = Oo(e, Math.max(s, 0));
585
- r.length === 1 && (i = i.filter((m) => m !== n));
586
- const f = i.find(
587
- (m) => m.toLowerCase().startsWith(r.toLowerCase())
582
+ function Fo(e, o, n) {
583
+ const r = o.length > 1 && Array.from(o).every((f) => f === o[0]) ? o[0] : o, a = n ? e.indexOf(n) : -1;
584
+ let i = Go(e, Math.max(a, 0));
585
+ r.length === 1 && (i = i.filter((f) => f !== n));
586
+ const m = i.find(
587
+ (f) => f.toLowerCase().startsWith(r.toLowerCase())
588
588
  );
589
- return f !== n ? f : void 0;
589
+ return m !== n ? m : void 0;
590
590
  }
591
- function Lo(e, o) {
591
+ function Ko(e, o) {
592
592
  const { x: n, y: t } = e;
593
593
  let r = !1;
594
- for (let s = 0, i = o.length - 1; s < o.length; i = s++) {
595
- const d = o[s], f = o[i], m = d.x, l = d.y, u = f.x, h = f.y;
596
- l > t != h > t && n < (u - m) * (t - l) / (h - l) + m && (r = !r);
594
+ for (let a = 0, i = o.length - 1; a < o.length; i = a++) {
595
+ const d = o[a], m = o[i], f = d.x, l = d.y, u = m.x, g = m.y;
596
+ l > t != g > t && n < (u - f) * (t - l) / (g - l) + f && (r = !r);
597
597
  }
598
598
  return r;
599
599
  }
600
- function Go(e, o) {
600
+ function $o(e, o) {
601
601
  if (!o) return !1;
602
602
  const n = { x: e.clientX, y: e.clientY };
603
- return Lo(n, o);
603
+ return Ko(n, o);
604
604
  }
605
605
  function G(e) {
606
606
  return (o) => o.pointerType === "mouse" ? e(o) : void 0;
607
607
  }
608
- var Fo = tn, Ko = ce, $o = an, Uo = sn, Bo = le, Vo = cn, jo = q, zo = dn, Xo = pn, Yo = mn, Ho = vn, Wo = gn, Zo = Mn, qo = bn, Jo = Cn, Qo = Rn, J = "DropdownMenu", [et, nt] = Xe(
609
- J,
610
- [en]
611
- ), w = en(), [ot, Sn] = et(J), he = (e) => {
608
+ var Uo = sn, Vo = ue, Bo = dn, zo = un, jo = fe, Yo = ln, Xo = J, Ho = mn, Wo = gn, Zo = vn, qo = Mn, Jo = bn, Qo = Cn, et = Sn, nt = _n, ot = Dn, Q = "DropdownMenu", [tt, rt] = We(
609
+ Q,
610
+ [tn]
611
+ ), b = tn(), [at, In] = tt(Q), we = (e) => {
612
612
  const {
613
613
  __scopeDropdownMenu: o,
614
614
  children: n,
615
615
  dir: t,
616
616
  open: r,
617
- defaultOpen: s,
617
+ defaultOpen: a,
618
618
  onOpenChange: i,
619
619
  modal: d = !0
620
- } = e, f = w(o), m = a.useRef(null), [l, u] = Ye({
620
+ } = e, m = b(o), f = s.useRef(null), [l, u] = Ze({
621
621
  prop: r,
622
- defaultProp: s ?? !1,
622
+ defaultProp: a ?? !1,
623
623
  onChange: i,
624
- caller: J
624
+ caller: Q
625
625
  });
626
626
  return /* @__PURE__ */ c(
627
- ot,
627
+ at,
628
628
  {
629
629
  scope: o,
630
- triggerId: z(),
631
- triggerRef: m,
632
- contentId: z(),
630
+ triggerId: j(),
631
+ triggerRef: f,
632
+ contentId: j(),
633
633
  open: l,
634
634
  onOpenChange: u,
635
- onOpenToggle: a.useCallback(() => u((h) => !h), [u]),
635
+ onOpenToggle: s.useCallback(() => u((g) => !g), [u]),
636
636
  modal: d,
637
- children: /* @__PURE__ */ c(Fo, { ...f, open: l, onOpenChange: u, dir: t, modal: d, children: n })
637
+ children: /* @__PURE__ */ c(Uo, { ...m, open: l, onOpenChange: u, dir: t, modal: d, children: n })
638
638
  }
639
639
  );
640
640
  };
641
- he.displayName = J;
642
- var Dn = "DropdownMenuTrigger", ve = a.forwardRef(
641
+ we.displayName = Q;
642
+ var Pn = "DropdownMenuTrigger", Me = s.forwardRef(
643
643
  (e, o) => {
644
- const { __scopeDropdownMenu: n, disabled: t = !1, ...r } = e, s = Sn(Dn, n), i = w(n);
645
- return /* @__PURE__ */ c(Ko, { asChild: !0, ...i, children: /* @__PURE__ */ c(
644
+ const { __scopeDropdownMenu: n, disabled: t = !1, ...r } = e, a = In(Pn, n), i = b(n);
645
+ return /* @__PURE__ */ c(Vo, { asChild: !0, ...i, children: /* @__PURE__ */ c(
646
646
  E.button,
647
647
  {
648
648
  type: "button",
649
- id: s.triggerId,
649
+ id: a.triggerId,
650
650
  "aria-haspopup": "menu",
651
- "aria-expanded": s.open,
652
- "aria-controls": s.open ? s.contentId : void 0,
653
- "data-state": s.open ? "open" : "closed",
651
+ "aria-expanded": a.open,
652
+ "aria-controls": a.open ? a.contentId : void 0,
653
+ "data-state": a.open ? "open" : "closed",
654
654
  "data-disabled": t ? "" : void 0,
655
655
  disabled: t,
656
656
  ...r,
657
- ref: ze(o, s.triggerRef),
658
- onPointerDown: v(e.onPointerDown, (d) => {
659
- !t && d.button === 0 && d.ctrlKey === !1 && (s.onOpenToggle(), s.open || d.preventDefault());
657
+ ref: He(o, a.triggerRef),
658
+ onPointerDown: h(e.onPointerDown, (d) => {
659
+ !t && d.button === 0 && d.ctrlKey === !1 && (a.onOpenToggle(), a.open || d.preventDefault());
660
660
  }),
661
- onKeyDown: v(e.onKeyDown, (d) => {
662
- t || (["Enter", " "].includes(d.key) && s.onOpenToggle(), d.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
661
+ onKeyDown: h(e.onKeyDown, (d) => {
662
+ t || (["Enter", " "].includes(d.key) && a.onOpenToggle(), d.key === "ArrowDown" && a.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
663
663
  })
664
664
  }
665
665
  ) });
666
666
  }
667
667
  );
668
- ve.displayName = Dn;
669
- var tt = "DropdownMenuPortal", ge = (e) => {
670
- const { __scopeDropdownMenu: o, ...n } = e, t = w(o);
671
- return /* @__PURE__ */ c($o, { ...t, ...n });
668
+ Me.displayName = Pn;
669
+ var st = "DropdownMenuPortal", be = (e) => {
670
+ const { __scopeDropdownMenu: o, ...n } = e, t = b(o);
671
+ return /* @__PURE__ */ c(Bo, { ...t, ...n });
672
672
  };
673
- ge.displayName = tt;
674
- var xn = "DropdownMenuContent", Me = a.forwardRef(
673
+ be.displayName = st;
674
+ var Nn = "DropdownMenuContent", Ce = s.forwardRef(
675
675
  (e, o) => {
676
- const { __scopeDropdownMenu: n, ...t } = e, r = Sn(xn, n), s = w(n), i = a.useRef(!1);
676
+ const { __scopeDropdownMenu: n, ...t } = e, r = In(Nn, n), a = b(n), i = s.useRef(!1);
677
677
  return /* @__PURE__ */ c(
678
- Uo,
678
+ zo,
679
679
  {
680
680
  id: r.contentId,
681
681
  "aria-labelledby": r.triggerId,
682
- ...s,
682
+ ...a,
683
683
  ...t,
684
684
  ref: o,
685
- onCloseAutoFocus: v(e.onCloseAutoFocus, (d) => {
685
+ onCloseAutoFocus: h(e.onCloseAutoFocus, (d) => {
686
686
  i.current || r.triggerRef.current?.focus(), i.current = !1, d.preventDefault();
687
687
  }),
688
- onInteractOutside: v(e.onInteractOutside, (d) => {
689
- const f = d.detail.originalEvent, m = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || m;
688
+ onInteractOutside: h(e.onInteractOutside, (d) => {
689
+ const m = d.detail.originalEvent, f = m.button === 0 && m.ctrlKey === !0, l = m.button === 2 || f;
690
690
  (!r.modal || l) && (i.current = !0);
691
691
  }),
692
692
  style: {
@@ -701,77 +701,77 @@ var xn = "DropdownMenuContent", Me = a.forwardRef(
701
701
  );
702
702
  }
703
703
  );
704
- Me.displayName = xn;
705
- var rt = "DropdownMenuGroup", we = a.forwardRef(
704
+ Ce.displayName = Nn;
705
+ var ct = "DropdownMenuGroup", ye = s.forwardRef(
706
706
  (e, o) => {
707
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
708
- return /* @__PURE__ */ c(Bo, { ...r, ...t, ref: o });
707
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
708
+ return /* @__PURE__ */ c(jo, { ...r, ...t, ref: o });
709
709
  }
710
710
  );
711
- we.displayName = rt;
712
- var at = "DropdownMenuLabel", be = a.forwardRef(
711
+ ye.displayName = ct;
712
+ var it = "DropdownMenuLabel", Se = s.forwardRef(
713
713
  (e, o) => {
714
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
715
- return /* @__PURE__ */ c(Vo, { ...r, ...t, ref: o });
714
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
715
+ return /* @__PURE__ */ c(Yo, { ...r, ...t, ref: o });
716
716
  }
717
717
  );
718
- be.displayName = at;
719
- var st = "DropdownMenuItem", Ce = a.forwardRef(
718
+ Se.displayName = it;
719
+ var dt = "DropdownMenuItem", _e = s.forwardRef(
720
720
  (e, o) => {
721
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
722
- return /* @__PURE__ */ c(jo, { ...r, ...t, ref: o });
721
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
722
+ return /* @__PURE__ */ c(Xo, { ...r, ...t, ref: o });
723
723
  }
724
724
  );
725
- Ce.displayName = st;
726
- var ct = "DropdownMenuCheckboxItem", ye = a.forwardRef((e, o) => {
727
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
728
- return /* @__PURE__ */ c(zo, { ...r, ...t, ref: o });
729
- });
730
- ye.displayName = ct;
731
- var it = "DropdownMenuRadioGroup", Re = a.forwardRef((e, o) => {
732
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
733
- return /* @__PURE__ */ c(Xo, { ...r, ...t, ref: o });
734
- });
735
- Re.displayName = it;
736
- var ut = "DropdownMenuRadioItem", _e = a.forwardRef((e, o) => {
737
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
738
- return /* @__PURE__ */ c(Yo, { ...r, ...t, ref: o });
739
- });
740
- _e.displayName = ut;
741
- var dt = "DropdownMenuItemIndicator", Se = a.forwardRef((e, o) => {
742
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
725
+ _e.displayName = dt;
726
+ var ut = "DropdownMenuCheckboxItem", Re = s.forwardRef((e, o) => {
727
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
743
728
  return /* @__PURE__ */ c(Ho, { ...r, ...t, ref: o });
744
729
  });
745
- Se.displayName = dt;
746
- var lt = "DropdownMenuSeparator", De = a.forwardRef((e, o) => {
747
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
730
+ Re.displayName = ut;
731
+ var lt = "DropdownMenuRadioGroup", De = s.forwardRef((e, o) => {
732
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
748
733
  return /* @__PURE__ */ c(Wo, { ...r, ...t, ref: o });
749
734
  });
750
735
  De.displayName = lt;
751
- var pt = "DropdownMenuArrow", xe = a.forwardRef(
736
+ var pt = "DropdownMenuRadioItem", xe = s.forwardRef((e, o) => {
737
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
738
+ return /* @__PURE__ */ c(Zo, { ...r, ...t, ref: o });
739
+ });
740
+ xe.displayName = pt;
741
+ var mt = "DropdownMenuItemIndicator", Ie = s.forwardRef((e, o) => {
742
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
743
+ return /* @__PURE__ */ c(qo, { ...r, ...t, ref: o });
744
+ });
745
+ Ie.displayName = mt;
746
+ var ft = "DropdownMenuSeparator", Pe = s.forwardRef((e, o) => {
747
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
748
+ return /* @__PURE__ */ c(Jo, { ...r, ...t, ref: o });
749
+ });
750
+ Pe.displayName = ft;
751
+ var gt = "DropdownMenuArrow", Ne = s.forwardRef(
752
752
  (e, o) => {
753
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
754
- return /* @__PURE__ */ c(Zo, { ...r, ...t, ref: o });
753
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
754
+ return /* @__PURE__ */ c(Qo, { ...r, ...t, ref: o });
755
755
  }
756
756
  );
757
- xe.displayName = pt;
758
- var In = (e) => {
759
- const { __scopeDropdownMenu: o, children: n, open: t, onOpenChange: r, defaultOpen: s } = e, i = w(o), [d, f] = Ye({
757
+ Ne.displayName = gt;
758
+ var En = (e) => {
759
+ const { __scopeDropdownMenu: o, children: n, open: t, onOpenChange: r, defaultOpen: a } = e, i = b(o), [d, m] = Ze({
760
760
  prop: t,
761
- defaultProp: s ?? !1,
761
+ defaultProp: a ?? !1,
762
762
  onChange: r,
763
763
  caller: "DropdownMenuSub"
764
764
  });
765
- return /* @__PURE__ */ c(qo, { ...i, open: d, onOpenChange: f, children: n });
766
- }, ft = "DropdownMenuSubTrigger", Ie = a.forwardRef((e, o) => {
767
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
768
- return /* @__PURE__ */ c(Jo, { ...r, ...t, ref: o });
765
+ return /* @__PURE__ */ c(et, { ...i, open: d, onOpenChange: m, children: n });
766
+ }, ht = "DropdownMenuSubTrigger", Ee = s.forwardRef((e, o) => {
767
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
768
+ return /* @__PURE__ */ c(nt, { ...r, ...t, ref: o });
769
769
  });
770
- Ie.displayName = ft;
771
- var mt = "DropdownMenuSubContent", Pe = a.forwardRef((e, o) => {
772
- const { __scopeDropdownMenu: n, ...t } = e, r = w(n);
770
+ Ee.displayName = ht;
771
+ var vt = "DropdownMenuSubContent", Te = s.forwardRef((e, o) => {
772
+ const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
773
773
  return /* @__PURE__ */ c(
774
- Qo,
774
+ ot,
775
775
  {
776
776
  ...r,
777
777
  ...t,
@@ -787,47 +787,51 @@ var mt = "DropdownMenuSubContent", Pe = a.forwardRef((e, o) => {
787
787
  }
788
788
  );
789
789
  });
790
- Pe.displayName = mt;
791
- var Pn = he, Nn = ve, Q = ge, Ne = Me, En = we, Ee = be, Te = Ce, Ae = ye, ee = Re, Oe = _e, ke = Se, Le = De, ht = xe, Tn = In, Ge = Ie, Fe = Pe;
792
- const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
790
+ Te.displayName = vt;
791
+ var Tn = we, An = Me, ee = be, Ae = Ce, kn = ye, ke = Se, Oe = _e, Le = Re, ne = De, Ge = xe, Fe = Ie, Ke = Pe, wt = Ne, On = En, $e = Ee, Ue = Te;
792
+ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
793
793
  __proto__: null,
794
- Arrow: ht,
795
- CheckboxItem: Ae,
796
- Content: Ne,
797
- DropdownMenu: he,
798
- DropdownMenuArrow: xe,
799
- DropdownMenuCheckboxItem: ye,
800
- DropdownMenuContent: Me,
801
- DropdownMenuGroup: we,
802
- DropdownMenuItem: Ce,
803
- DropdownMenuItemIndicator: Se,
804
- DropdownMenuLabel: be,
805
- DropdownMenuPortal: ge,
806
- DropdownMenuRadioGroup: Re,
807
- DropdownMenuRadioItem: _e,
808
- DropdownMenuSeparator: De,
809
- DropdownMenuSub: In,
810
- DropdownMenuSubContent: Pe,
811
- DropdownMenuSubTrigger: Ie,
812
- DropdownMenuTrigger: ve,
813
- Group: En,
814
- Item: Te,
815
- ItemIndicator: ke,
816
- Label: Ee,
817
- Portal: Q,
818
- RadioGroup: ee,
819
- RadioItem: Oe,
820
- Root: Pn,
821
- Separator: Le,
822
- Sub: Tn,
823
- SubContent: Fe,
824
- SubTrigger: Ge,
825
- Trigger: Nn,
826
- createDropdownMenuScope: nt
827
- }, Symbol.toStringTag, { value: "Module" })), pr = Pn, vt = Nn, fr = En, mr = Q, hr = Tn, vr = ee, An = a.createContext(null), gt = a.forwardRef(({ indicatorIcon: e, indicatorIconClassName: o, indicatorIconPosition: n, children: t, ...r }, s) => /* @__PURE__ */ c(An.Provider, { value: { indicatorIcon: e, indicatorIconClassName: o, indicatorIconPosition: n }, children: /* @__PURE__ */ c(ee, { ref: s, ...r, children: t }) }));
828
- gt.displayName = ee.displayName;
829
- const Mt = y({
830
- extend: Z,
794
+ Arrow: wt,
795
+ CheckboxItem: Le,
796
+ Content: Ae,
797
+ DropdownMenu: we,
798
+ DropdownMenuArrow: Ne,
799
+ DropdownMenuCheckboxItem: Re,
800
+ DropdownMenuContent: Ce,
801
+ DropdownMenuGroup: ye,
802
+ DropdownMenuItem: _e,
803
+ DropdownMenuItemIndicator: Ie,
804
+ DropdownMenuLabel: Se,
805
+ DropdownMenuPortal: be,
806
+ DropdownMenuRadioGroup: De,
807
+ DropdownMenuRadioItem: xe,
808
+ DropdownMenuSeparator: Pe,
809
+ DropdownMenuSub: En,
810
+ DropdownMenuSubContent: Te,
811
+ DropdownMenuSubTrigger: Ee,
812
+ DropdownMenuTrigger: Me,
813
+ Group: kn,
814
+ Item: Oe,
815
+ ItemIndicator: Fe,
816
+ Label: ke,
817
+ Portal: ee,
818
+ RadioGroup: ne,
819
+ RadioItem: Ge,
820
+ Root: Tn,
821
+ Separator: Ke,
822
+ Sub: On,
823
+ SubContent: Ue,
824
+ SubTrigger: $e,
825
+ Trigger: An,
826
+ createDropdownMenuScope: rt
827
+ }, Symbol.toStringTag, { value: "Module" })), oe = [
828
+ "rounded-lg bg-transparent text-primary-fg",
829
+ "hover:bg-secondary-border focus:bg-secondary-border",
830
+ "[&:has([data-menu-item-action]:hover)]:bg-secondary-bg"
831
+ ], yr = Tn, Mt = An, Sr = kn, _r = ee, Rr = On, Dr = ne, Ln = s.createContext(null), bt = s.forwardRef(({ indicatorIcon: e, indicatorIconClassName: o, indicatorIconPosition: n, children: t, ...r }, a) => /* @__PURE__ */ c(Ln.Provider, { value: { indicatorIcon: e, indicatorIconClassName: o, indicatorIconPosition: n }, children: /* @__PURE__ */ c(ne, { ref: a, ...r, children: t }) }));
832
+ bt.displayName = ne.displayName;
833
+ const Ct = M({
834
+ extend: q,
831
835
  base: "data-[state=open]:bg-secondary-bg-hover",
832
836
  slots: {
833
837
  chevron: "ml-auto h-4 w-4"
@@ -843,15 +847,28 @@ const Mt = y({
843
847
  defaultVariants: {
844
848
  inset: !1
845
849
  }
846
- }), wt = a.forwardRef(({ className: e, inset: o, children: n, ...t }, r) => {
847
- const { variant: s } = R(), i = Mt({ inset: o, theme: s });
848
- return /* @__PURE__ */ H(Ge, { ref: r, className: i.base({ className: e }), ...t, children: [
850
+ }), yt = M({
851
+ slots: {
852
+ base: [...Z, ...oe, "data-[state=open]:bg-secondary-border"],
853
+ chevron: "ml-auto h-4 w-4"
854
+ },
855
+ variants: {
856
+ inset: {
857
+ true: "pl-8"
858
+ }
859
+ },
860
+ defaultVariants: {
861
+ inset: !1
862
+ }
863
+ }), St = s.forwardRef(({ className: e, inset: o, children: n, ...t }, r) => {
864
+ const { variant: a } = S(), i = a === "glass" ? yt({ inset: o }) : Ct({ inset: o, theme: a });
865
+ return /* @__PURE__ */ H($e, { ref: r, className: i.base({ className: e }), ...t, children: [
849
866
  n,
850
- /* @__PURE__ */ c(io, { className: i.chevron() })
867
+ /* @__PURE__ */ c(po, { className: i.chevron() })
851
868
  ] });
852
869
  });
853
- wt.displayName = Ge.displayName;
854
- const bt = y({
870
+ St.displayName = $e.displayName;
871
+ const _t = M({
855
872
  base: [
856
873
  "relative z-50 min-w-[8rem] overflow-hidden rounded-lg border border-secondary-border bg-secondary-bg p-1 shadow-soft-md",
857
874
  "origin-[--radix-dropdown-menu-content-transform-origin]",
@@ -867,19 +884,23 @@ const bt = y({
867
884
  inverse: "border-inverse-border bg-inverse-primary-bg"
868
885
  }
869
886
  }
870
- }), Ct = a.forwardRef(({ className: e, portalContainer: o, ...n }, t) => {
871
- const { variant: r } = R(), s = qe(o);
872
- return /* @__PURE__ */ c(Q, { container: s, children: /* @__PURE__ */ c(
873
- Fe,
874
- {
875
- ref: t,
876
- className: bt({ className: e, theme: r }),
877
- ...n
878
- }
879
- ) });
887
+ }), Rt = M({
888
+ base: [
889
+ "backdrop-glass-regular relative z-50 min-w-[8rem] overflow-hidden rounded-2xl bg-alpha-40 p-2 shadow-glass-md",
890
+ "origin-[--radix-dropdown-menu-content-transform-origin]",
891
+ "data-[state=open]:animate-in data-[state=closed]:animate-out",
892
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
893
+ "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
894
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
895
+ "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
896
+ "data-[side=left]:-top-1 data-[side=right]:-top-1"
897
+ ]
898
+ }), Dt = s.forwardRef(({ className: e, portalContainer: o, ...n }, t) => {
899
+ const { variant: r } = S(), a = en(o), i = r === "glass" ? Rt({ className: e }) : _t({ className: e, theme: r });
900
+ return /* @__PURE__ */ c(ee, { container: a, children: /* @__PURE__ */ c(Ue, { ref: t, className: i, ...n }) });
880
901
  });
881
- Ct.displayName = Fe.displayName;
882
- const yt = y({
902
+ Dt.displayName = Ue.displayName;
903
+ const xt = M({
883
904
  base: [
884
905
  "group/dropdown-menu-content z-50 min-w-32 rounded-lg border border-secondary-border bg-secondary-bg p-1 shadow-soft-md",
885
906
  "max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden",
@@ -895,43 +916,47 @@ const yt = y({
895
916
  inverse: "border-inverse-border bg-inverse-primary-bg"
896
917
  }
897
918
  }
898
- }), Rt = a.forwardRef(({ className: e, sideOffset: o = 4, portalContainer: n, ...t }, r) => {
899
- const { variant: s } = R(), i = qe(n);
900
- return /* @__PURE__ */ c(Q, { container: i, children: /* @__PURE__ */ c(
901
- Ne,
902
- {
903
- ref: r,
904
- sideOffset: o,
905
- className: yt({ theme: s, className: e }),
906
- ...t
907
- }
908
- ) });
919
+ }), It = M({
920
+ base: [
921
+ "group/glass-dropdown-content backdrop-glass-regular z-50 min-w-32 rounded-2xl bg-alpha-40 p-2 shadow-glass-md",
922
+ "max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden",
923
+ "origin-[--radix-dropdown-menu-content-transform-origin]",
924
+ "data-[state=open]:animate-in data-[state=closed]:animate-out",
925
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
926
+ "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
927
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
928
+ "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
929
+ ]
930
+ }), Pt = s.forwardRef(({ className: e, sideOffset: o = 4, portalContainer: n, ...t }, r) => {
931
+ const { variant: a } = S(), i = en(n), d = a === "glass" ? It({ className: e }) : xt({ theme: a, className: e });
932
+ return /* @__PURE__ */ c(ee, { container: i, children: /* @__PURE__ */ c(Ae, { ref: r, sideOffset: o, className: d, ...t }) });
909
933
  });
910
- Rt.displayName = Ne.displayName;
911
- const _t = y({
912
- extend: Z,
934
+ Pt.displayName = Ae.displayName;
935
+ const Nt = M({
936
+ extend: q,
913
937
  base: "",
914
938
  variants: {
915
939
  inset: {
916
940
  true: "!pl-8"
917
941
  }
918
942
  }
919
- }), St = a.forwardRef(({ className: e, disabled: o, inset: n, children: t, ...r }, s) => {
920
- const { variant: i } = R();
921
- return /* @__PURE__ */ c(
922
- Te,
923
- {
924
- ref: s,
925
- disabled: o,
926
- className: _t({ className: e, disabled: o, inset: n, theme: i }),
927
- ...r,
928
- children: t
943
+ }), Et = M({
944
+ base: [...Z, ...oe],
945
+ variants: {
946
+ disabled: {
947
+ true: "pointer-events-none opacity-50"
948
+ },
949
+ inset: {
950
+ true: "pl-8"
929
951
  }
930
- );
952
+ }
953
+ }), Tt = s.forwardRef(({ className: e, disabled: o, inset: n, children: t, ...r }, a) => {
954
+ const { variant: i } = S(), d = i === "glass" ? Et({ className: e, disabled: o, inset: n }) : Nt({ className: e, disabled: o, inset: n, theme: i });
955
+ return /* @__PURE__ */ c(Oe, { ref: a, disabled: o, className: d, ...r, children: t });
931
956
  });
932
- St.displayName = Te.displayName;
933
- const Dt = y({
934
- extend: Z,
957
+ Tt.displayName = Oe.displayName;
958
+ const At = M({
959
+ extend: q,
935
960
  base: "",
936
961
  slots: {
937
962
  checkbox: "flex h-4 w-4 items-center justify-center rounded-sm border transition-colors",
@@ -965,27 +990,59 @@ const Dt = y({
965
990
  defaultVariants: {
966
991
  checked: !1
967
992
  }
968
- }), xt = a.forwardRef(({ className: e, children: o, checked: n, disabled: t, ...r }, s) => {
969
- const { variant: i } = R(), d = Dt({ checked: n, theme: i, disabled: t });
993
+ }), kt = M({
994
+ slots: {
995
+ base: [...Z, ...oe],
996
+ checkbox: "flex h-4 w-4 items-center justify-center rounded-sm border transition-colors",
997
+ icon: "h-3.5 w-3.5 text-primary-bg"
998
+ },
999
+ variants: {
1000
+ disabled: {
1001
+ true: "pointer-events-none opacity-50"
1002
+ },
1003
+ checked: {
1004
+ indeterminate: {
1005
+ checkbox: "border-primary-accent bg-primary-accent data-[disabled]:opacity-50"
1006
+ },
1007
+ true: {
1008
+ checkbox: "border-primary-accent bg-primary-accent data-[disabled]:opacity-50"
1009
+ },
1010
+ false: {
1011
+ checkbox: "border-primary-border bg-secondary-bg"
1012
+ }
1013
+ }
1014
+ },
1015
+ defaultVariants: {
1016
+ checked: !1
1017
+ }
1018
+ }), Ot = s.forwardRef(({ className: e, children: o, checked: n, disabled: t, ...r }, a) => {
1019
+ const { variant: i } = S(), d = i === "glass" ? kt({ checked: n, disabled: t }) : At({ checked: n, theme: i, disabled: t });
970
1020
  return /* @__PURE__ */ H(
971
- Ae,
1021
+ Le,
972
1022
  {
973
- ref: s,
1023
+ ref: a,
974
1024
  className: d.base({ className: e }),
975
1025
  checked: n,
976
1026
  disabled: t,
977
1027
  ...r,
978
1028
  children: [
979
- /* @__PURE__ */ c("span", { className: d.checkbox(), children: /* @__PURE__ */ c(ke, { children: n === "indeterminate" ? /* @__PURE__ */ c(co, { className: d.icon() }) : /* @__PURE__ */ c(Je, { className: d.icon() }) }) }),
1029
+ /* @__PURE__ */ c("span", { className: d.checkbox(), children: /* @__PURE__ */ c(Fe, { children: n === "indeterminate" ? /* @__PURE__ */ c(lo, { className: d.icon() }) : /* @__PURE__ */ c(nn, { className: d.icon() }) }) }),
980
1030
  o
981
1031
  ]
982
1032
  }
983
1033
  );
984
1034
  });
985
- xt.displayName = Ae.displayName;
986
- const It = y({
987
- extend: Z
988
- }), Pt = y({
1035
+ Ot.displayName = Le.displayName;
1036
+ const Lt = M({
1037
+ extend: q
1038
+ }), Gt = M({
1039
+ base: [...Z, ...oe],
1040
+ variants: {
1041
+ disabled: {
1042
+ true: "pointer-events-none opacity-50"
1043
+ }
1044
+ }
1045
+ }), Ft = M({
989
1046
  base: "flex h-4 w-4 items-center justify-center",
990
1047
  variants: {
991
1048
  position: {
@@ -993,15 +1050,15 @@ const It = y({
993
1050
  end: "order-last ml-auto"
994
1051
  }
995
1052
  }
996
- }), Nt = a.forwardRef(({ className: e, children: o, disabled: n, ...t }, r) => {
997
- const { variant: s } = R(), i = a.useContext(An), d = i?.indicatorIcon || Je, f = i?.indicatorIconPosition || "start", m = i?.indicatorIconClassName, l = It({ theme: s, disabled: n, className: e }), u = /* @__PURE__ */ c("span", { className: Pt({ position: f }), children: /* @__PURE__ */ c(ke, { children: /* @__PURE__ */ c(d, { className: Bn("h-4 w-4", m) }) }) });
998
- return /* @__PURE__ */ H(Oe, { ref: r, className: l, disabled: n, ...t, children: [
1053
+ }), Kt = s.forwardRef(({ className: e, children: o, disabled: n, ...t }, r) => {
1054
+ const { variant: a } = S(), i = s.useContext(Ln), d = i?.indicatorIcon || nn, m = i?.indicatorIconPosition || "start", f = i?.indicatorIconClassName, l = a === "glass" ? Gt({ disabled: n, className: e }) : Lt({ theme: a, disabled: n, className: e }), u = /* @__PURE__ */ c("span", { className: Ft({ position: m }), children: /* @__PURE__ */ c(Fe, { children: /* @__PURE__ */ c(d, { className: jn("h-4 w-4", f) }) }) });
1055
+ return /* @__PURE__ */ H(Ge, { ref: r, className: l, disabled: n, ...t, children: [
999
1056
  u,
1000
1057
  o
1001
1058
  ] });
1002
1059
  });
1003
- Nt.displayName = Oe.displayName;
1004
- const Et = y({
1060
+ Kt.displayName = Ge.displayName;
1061
+ const $t = M({
1005
1062
  base: "flex items-center gap-2 px-2 py-1.5 text-sm font-semibold text-primary-fg",
1006
1063
  variants: {
1007
1064
  inset: {
@@ -1014,48 +1071,43 @@ const Et = y({
1014
1071
  defaultVariants: {
1015
1072
  inset: !1
1016
1073
  }
1017
- }), Tt = a.forwardRef(({ className: e, inset: o, ...n }, t) => {
1018
- const { variant: r } = R();
1074
+ }), Ut = s.forwardRef(({ className: e, inset: o, ...n }, t) => {
1075
+ const { variant: r } = S(), a = ie(r, ["inverse"]);
1019
1076
  return /* @__PURE__ */ c(
1020
- Ee,
1077
+ ke,
1021
1078
  {
1022
1079
  ref: t,
1023
- className: Et({ inset: o, className: e, theme: r }),
1080
+ className: $t({ inset: o, className: e, theme: a }),
1024
1081
  ...n
1025
1082
  }
1026
1083
  );
1027
1084
  });
1028
- Tt.displayName = Ee.displayName;
1029
- const At = y({
1085
+ Ut.displayName = ke.displayName;
1086
+ const Vt = M({
1030
1087
  base: "-mx-1 my-1 h-px bg-secondary-border",
1031
1088
  variants: {
1032
1089
  theme: {
1033
1090
  inverse: "bg-inverse-border"
1034
1091
  }
1035
1092
  }
1036
- }), Ot = a.forwardRef(({ className: e, ...o }, n) => {
1037
- const { variant: t } = R();
1038
- return /* @__PURE__ */ c(
1039
- Le,
1040
- {
1041
- ref: n,
1042
- className: At({ className: e, theme: t }),
1043
- ...o
1044
- }
1045
- );
1093
+ }), Bt = M({
1094
+ base: "-mx-1 my-2 h-px bg-primary-border"
1095
+ }), zt = s.forwardRef(({ className: e, ...o }, n) => {
1096
+ const { variant: t } = S(), r = t === "glass" ? Bt({ className: e }) : Vt({ className: e, theme: t });
1097
+ return /* @__PURE__ */ c(Ke, { ref: n, className: r, ...o });
1046
1098
  });
1047
- Ot.displayName = Le.displayName;
1048
- const kt = y({
1049
- extend: so,
1099
+ zt.displayName = Ke.displayName;
1100
+ const jt = M({
1101
+ extend: uo,
1050
1102
  base: "ml-auto text-xs tracking-widest opacity-60"
1051
- }), Lt = ({ className: e, ...o }) => {
1052
- const { variant: n } = R();
1053
- return /* @__PURE__ */ c("span", { className: kt({ className: e, theme: n }), ...o });
1103
+ }), Yt = ({ className: e, ...o }) => {
1104
+ const { variant: n } = S(), t = ie(n, ["inverse"]);
1105
+ return /* @__PURE__ */ c("span", { className: jt({ className: e, theme: t }), ...o });
1054
1106
  };
1055
- Lt.displayName = "DropdownMenuShortcut";
1056
- const Gt = a.forwardRef(({ children: e, ...o }, n) => /* @__PURE__ */ c(vt, { asChild: !0, ref: n, children: /* @__PURE__ */ c(ro, { ...o, children: e }) }));
1057
- Gt.displayName = "DropdownMenuTriggerButton";
1058
- const Ft = y({
1107
+ Yt.displayName = "DropdownMenuShortcut";
1108
+ const Xt = s.forwardRef(({ children: e, ...o }, n) => /* @__PURE__ */ c(Mt, { asChild: !0, ref: n, children: /* @__PURE__ */ c(co, { ...o, children: e }) }));
1109
+ Xt.displayName = "DropdownMenuTriggerButton";
1110
+ const Ht = M({
1059
1111
  slots: {
1060
1112
  wrapper: "flex items-center border-0 p-2 py-0",
1061
1113
  search: "mr-2 h-4 w-4 shrink-0 text-muted",
@@ -1068,85 +1120,85 @@ const Ft = y({
1068
1120
  }
1069
1121
  }
1070
1122
  }
1071
- }), gr = a.forwardRef(
1123
+ }), xr = s.forwardRef(
1072
1124
  ({ className: e, ...o }, n) => {
1073
- const { variant: t } = R(), r = Ft({ theme: t });
1074
- return /* @__PURE__ */ H("label", { className: r.wrapper({ className: e }), children: [
1075
- /* @__PURE__ */ c(ao, { icon: uo, className: r.search(), "aria-hidden": "true" }),
1125
+ const { variant: t } = S(), r = ie(t, ["inverse"]), a = Ht({ theme: r });
1126
+ return /* @__PURE__ */ H("label", { className: a.wrapper({ className: e }), children: [
1127
+ /* @__PURE__ */ c(io, { icon: mo, className: a.search(), "aria-hidden": "true" }),
1076
1128
  /* @__PURE__ */ c(
1077
1129
  "input",
1078
1130
  {
1079
1131
  type: "search",
1080
1132
  ref: n,
1081
1133
  "data-slot": "command-input",
1082
- className: r.input({ className: e }),
1134
+ className: a.input({ className: e }),
1083
1135
  ...o
1084
1136
  }
1085
1137
  )
1086
1138
  ] });
1087
1139
  }
1088
1140
  );
1089
- function Mr(e = {}) {
1090
- const { openDelay: o = 200, closeDelay: n = 300 } = e, [t, r] = a.useState(!1), s = a.useRef(null), i = a.useRef(null), d = a.useCallback(() => {
1091
- s.current && (clearTimeout(s.current), s.current = null), i.current && (clearTimeout(i.current), i.current = null);
1141
+ function Ir(e = {}) {
1142
+ const { openDelay: o = 200, closeDelay: n = 300 } = e, [t, r] = s.useState(!1), a = s.useRef(null), i = s.useRef(null), d = s.useCallback(() => {
1143
+ a.current && (clearTimeout(a.current), a.current = null), i.current && (clearTimeout(i.current), i.current = null);
1092
1144
  }, []);
1093
- a.useEffect(() => () => {
1145
+ s.useEffect(() => () => {
1094
1146
  d();
1095
1147
  }, [d]);
1096
- const f = a.useCallback(() => {
1097
- d(), s.current = setTimeout(() => {
1148
+ const m = s.useCallback(() => {
1149
+ d(), a.current = setTimeout(() => {
1098
1150
  r(!0);
1099
1151
  }, o);
1100
- }, [o, d]), m = a.useCallback(() => {
1152
+ }, [o, d]), f = s.useCallback(() => {
1101
1153
  d(), i.current = setTimeout(() => {
1102
1154
  r(!1);
1103
1155
  }, n);
1104
- }, [n, d]), l = a.useCallback((M) => {
1105
- M.preventDefault(), M.stopPropagation();
1106
- }, []), u = a.useCallback((M) => {
1107
- M.preventDefault();
1108
- }, []), h = a.useCallback((M) => {
1109
- r(M);
1156
+ }, [n, d]), l = s.useCallback((w) => {
1157
+ w.preventDefault(), w.stopPropagation();
1158
+ }, []), u = s.useCallback((w) => {
1159
+ w.preventDefault();
1160
+ }, []), g = s.useCallback((w) => {
1161
+ r(w);
1110
1162
  }, []);
1111
1163
  return {
1112
1164
  rootProps: {
1113
1165
  open: t,
1114
- onOpenChange: h,
1166
+ onOpenChange: g,
1115
1167
  modal: !1
1116
1168
  },
1117
1169
  triggerProps: {
1118
- onMouseEnter: f,
1119
- onMouseLeave: m,
1170
+ onMouseEnter: m,
1171
+ onMouseLeave: f,
1120
1172
  onPointerDown: l
1121
1173
  },
1122
1174
  contentProps: {
1123
- onMouseEnter: f,
1124
- onMouseLeave: m,
1175
+ onMouseEnter: m,
1176
+ onMouseLeave: f,
1125
1177
  onCloseAutoFocus: u
1126
1178
  }
1127
1179
  };
1128
1180
  }
1129
1181
  export {
1130
- pr as DropdownMenu,
1131
- xt as DropdownMenuCheckboxItem,
1132
- Rt as DropdownMenuContent,
1133
- fr as DropdownMenuGroup,
1134
- St as DropdownMenuItem,
1135
- Tt as DropdownMenuLabel,
1136
- mr as DropdownMenuPortal,
1137
- lr as DropdownMenuPrimitive,
1138
- vr as DropdownMenuPrimitiveRadioGroup,
1139
- gt as DropdownMenuRadioGroup,
1140
- Nt as DropdownMenuRadioItem,
1141
- gr as DropdownMenuSearchItem,
1142
- Ot as DropdownMenuSeparator,
1143
- Lt as DropdownMenuShortcut,
1144
- hr as DropdownMenuSub,
1145
- Ct as DropdownMenuSubContent,
1146
- wt as DropdownMenuSubTrigger,
1147
- vt as DropdownMenuTrigger,
1148
- Gt as DropdownMenuTriggerButton,
1149
- yt as dropdownMenuContentStyles,
1150
- Mr as useHoverDropdown
1182
+ yr as DropdownMenu,
1183
+ Ot as DropdownMenuCheckboxItem,
1184
+ Pt as DropdownMenuContent,
1185
+ Sr as DropdownMenuGroup,
1186
+ Tt as DropdownMenuItem,
1187
+ Ut as DropdownMenuLabel,
1188
+ _r as DropdownMenuPortal,
1189
+ Cr as DropdownMenuPrimitive,
1190
+ Dr as DropdownMenuPrimitiveRadioGroup,
1191
+ bt as DropdownMenuRadioGroup,
1192
+ Kt as DropdownMenuRadioItem,
1193
+ xr as DropdownMenuSearchItem,
1194
+ zt as DropdownMenuSeparator,
1195
+ Yt as DropdownMenuShortcut,
1196
+ Rr as DropdownMenuSub,
1197
+ Dt as DropdownMenuSubContent,
1198
+ St as DropdownMenuSubTrigger,
1199
+ Mt as DropdownMenuTrigger,
1200
+ Xt as DropdownMenuTriggerButton,
1201
+ xt as dropdownMenuContentStyles,
1202
+ Ir as useHoverDropdown
1151
1203
  };
1152
1204
  //# sourceMappingURL=dropdown.js.map