@gv-tech/ui-web 2.9.1 → 2.12.0

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 (214) hide show
  1. package/dist/accordion.cjs.js +1 -0
  2. package/dist/accordion.d.ts +18 -0
  3. package/dist/accordion.es.js +259 -0
  4. package/dist/alert-dialog.cjs.js +7 -0
  5. package/dist/alert-dialog.d.ts +43 -0
  6. package/dist/alert-dialog.es.js +171 -0
  7. package/dist/alert.cjs.js +1 -0
  8. package/dist/alert.d.ts +18 -0
  9. package/dist/alert.es.js +32 -0
  10. package/dist/aspect-ratio.cjs.js +1 -0
  11. package/dist/aspect-ratio.d.ts +10 -0
  12. package/dist/aspect-ratio.es.js +43 -0
  13. package/dist/avatar.cjs.js +1 -0
  14. package/dist/avatar.d.ts +15 -0
  15. package/dist/avatar.es.js +205 -0
  16. package/dist/badge.cjs.js +1 -0
  17. package/dist/badge.d.ts +16 -0
  18. package/dist/badge.es.js +26 -0
  19. package/dist/breadcrumb.cjs.js +1 -0
  20. package/dist/breadcrumb.d.ts +35 -0
  21. package/dist/breadcrumb.es.js +69 -0
  22. package/dist/button.cjs.js +1 -0
  23. package/dist/button.d.ts +17 -0
  24. package/dist/button.es.js +40 -0
  25. package/dist/calendar.cjs.js +1 -0
  26. package/dist/calendar.d.ts +29 -0
  27. package/dist/calendar.es.js +2976 -0
  28. package/dist/card.cjs.js +1 -0
  29. package/dist/card.d.ts +19 -0
  30. package/dist/card.es.js +33 -0
  31. package/dist/carousel.cjs.js +1 -0
  32. package/dist/carousel.d.ts +50 -0
  33. package/dist/carousel.es.js +1403 -0
  34. package/dist/chart.cjs.js +16 -0
  35. package/dist/chart.d.ts +60 -0
  36. package/dist/chart.es.js +4402 -0
  37. package/dist/checkbox.cjs.js +1 -0
  38. package/dist/checkbox.d.ts +10 -0
  39. package/dist/checkbox.es.js +258 -0
  40. package/dist/collapsible.cjs.js +1 -0
  41. package/dist/collapsible.d.ts +20 -0
  42. package/dist/collapsible.es.js +7 -0
  43. package/dist/command.cjs.js +1 -0
  44. package/dist/command.d.ts +115 -0
  45. package/dist/command.es.js +396 -0
  46. package/dist/context-menu.cjs.js +1 -0
  47. package/dist/context-menu.d.ts +80 -0
  48. package/dist/context-menu.es.js +328 -0
  49. package/dist/dialog.cjs.js +1 -0
  50. package/dist/dialog.d.ts +31 -0
  51. package/dist/dialog.es.js +66 -0
  52. package/dist/drawer.cjs.js +3 -0
  53. package/dist/drawer.d.ts +65 -0
  54. package/dist/drawer.es.js +1085 -0
  55. package/dist/dropdown-menu.cjs.js +1 -0
  56. package/dist/dropdown-menu.d.ts +80 -0
  57. package/dist/dropdown-menu.es.js +316 -0
  58. package/dist/form.cjs.js +1 -0
  59. package/dist/form.d.ts +53 -0
  60. package/dist/form.es.js +355 -0
  61. package/dist/hover-card.cjs.js +1 -0
  62. package/dist/hover-card.d.ts +19 -0
  63. package/dist/hover-card.es.js +188 -0
  64. package/dist/index-0ioNhtNM.mjs +10 -0
  65. package/dist/index-3j-XAIXT.mjs +55 -0
  66. package/dist/index-B2XtpfGY.js +1 -0
  67. package/dist/index-B39Lzq0v.js +1 -0
  68. package/dist/index-B7n6fy75.js +1 -0
  69. package/dist/index-B8dxbSWX.js +41 -0
  70. package/dist/index-BGIK9FQF.js +1 -0
  71. package/dist/index-BZPx6jYI.mjs +8 -0
  72. package/dist/index-BoNjHhm4.js +1 -0
  73. package/dist/index-BtZvtDmp.js +1 -0
  74. package/dist/index-Bv7qrYW6.mjs +180 -0
  75. package/dist/index-ByiPJW53.js +5 -0
  76. package/dist/index-C0dlIQIi.js +1 -0
  77. package/dist/index-C1qb0595.mjs +27 -0
  78. package/dist/index-C7HEunrh.mjs +15 -0
  79. package/dist/index-C8ni3LLa.js +1 -0
  80. package/dist/index-CCKe-Mpx.mjs +6 -0
  81. package/dist/index-CD6_IrA-.mjs +10 -0
  82. package/dist/index-CRyCZJLa.mjs +677 -0
  83. package/dist/index-CVx1AgNG.mjs +615 -0
  84. package/dist/index-Ce5TOFAK.js +1 -0
  85. package/dist/index-CeSLNJ60.mjs +32 -0
  86. package/dist/index-CefEQe_4.js +1 -0
  87. package/dist/index-Cj5hzyBi.js +1 -0
  88. package/dist/index-Cjj_rUPu.js +1 -0
  89. package/dist/index-Cl3G0jzM.js +1 -0
  90. package/dist/index-CsjrqSSN.js +1 -0
  91. package/dist/index-CwfE56Ep.mjs +1545 -0
  92. package/dist/index-CwyAfCwY.js +1 -0
  93. package/dist/index-CzY-WZXL.js +1 -0
  94. package/dist/index-D2HnlO3y.js +1 -0
  95. package/dist/index-DAWHN3cH.mjs +85 -0
  96. package/dist/index-DFdF7K7v.mjs +50 -0
  97. package/dist/index-DIsg7zU7.js +1 -0
  98. package/dist/index-DKN_vhyX.mjs +32 -0
  99. package/dist/index-DLcqcWxM.mjs +29 -0
  100. package/dist/index-DSxf1gN6.mjs +118 -0
  101. package/dist/index-DYxWvftI.js +1 -0
  102. package/dist/index-DaILh3TV.mjs +32 -0
  103. package/dist/index-Dfzl8TxY.mjs +136 -0
  104. package/dist/index-Dko2XdTk.js +1 -0
  105. package/dist/index-DlY82G31.mjs +245 -0
  106. package/dist/index-DnFcfnA9.mjs +13 -0
  107. package/dist/index-IZ2gq03c.mjs +68 -0
  108. package/dist/index-K9FzbxYw.mjs +93 -0
  109. package/dist/index-Le8p9oP4.mjs +60 -0
  110. package/dist/index-MQ0c3ZX_.js +1 -0
  111. package/dist/index-_XxjJPRD.js +1 -0
  112. package/dist/index-_wdrnYim.js +1 -0
  113. package/dist/index-jv3B4mTd.js +1 -0
  114. package/dist/index-kaM0u2Q1.js +1 -0
  115. package/dist/index-p6xVFRb4.mjs +52 -0
  116. package/dist/index-rKs9bXHr.mjs +6 -0
  117. package/dist/index-vuPgkS0V.mjs +70 -0
  118. package/dist/index.cjs.js +1 -0
  119. package/dist/index.d.ts +1288 -0
  120. package/dist/index.es.js +289 -0
  121. package/dist/input.cjs.js +1 -0
  122. package/dist/input.d.ts +9 -0
  123. package/dist/input.es.js +19 -0
  124. package/dist/jsx-runtime-nZSsnGb7.js +6 -0
  125. package/dist/jsx-runtime-tc70JA_2.mjs +264 -0
  126. package/dist/label.cjs.js +1 -0
  127. package/dist/label.d.ts +11 -0
  128. package/dist/label.es.js +22 -0
  129. package/dist/menubar.cjs.js +1 -0
  130. package/dist/menubar.d.ts +79 -0
  131. package/dist/menubar.es.js +473 -0
  132. package/dist/navigation-menu.cjs.js +1 -0
  133. package/dist/navigation-menu.d.ts +47 -0
  134. package/dist/navigation-menu.es.js +673 -0
  135. package/dist/pagination.cjs.js +1 -0
  136. package/dist/pagination.d.ts +68 -0
  137. package/dist/pagination.es.js +68 -0
  138. package/dist/popover.cjs.js +1 -0
  139. package/dist/popover.d.ts +24 -0
  140. package/dist/popover.es.js +242 -0
  141. package/dist/progress.cjs.js +6 -0
  142. package/dist/progress.d.ts +9 -0
  143. package/dist/progress.es.js +99 -0
  144. package/dist/radio-group.cjs.js +1 -0
  145. package/dist/radio-group.d.ts +16 -0
  146. package/dist/radio-group.es.js +253 -0
  147. package/dist/resizable.cjs.js +1 -0
  148. package/dist/resizable.d.ts +22 -0
  149. package/dist/resizable.es.js +1990 -0
  150. package/dist/scroll-area.cjs.js +1 -0
  151. package/dist/scroll-area.d.ts +14 -0
  152. package/dist/scroll-area.es.js +546 -0
  153. package/dist/search.cjs.js +1 -0
  154. package/dist/search.d.ts +15 -0
  155. package/dist/search.es.js +51 -0
  156. package/dist/select.cjs.js +1 -0
  157. package/dist/select.d.ts +54 -0
  158. package/dist/select.es.js +908 -0
  159. package/dist/separator.cjs.js +1 -0
  160. package/dist/separator.d.ts +9 -0
  161. package/dist/separator.es.js +35 -0
  162. package/dist/sheet.cjs.js +1 -0
  163. package/dist/sheet.d.ts +68 -0
  164. package/dist/sheet.es.js +66 -0
  165. package/dist/skeleton.cjs.js +1 -0
  166. package/dist/skeleton.d.ts +9 -0
  167. package/dist/skeleton.es.js +8 -0
  168. package/dist/slider.cjs.js +1 -0
  169. package/dist/slider.d.ts +9 -0
  170. package/dist/slider.es.js +442 -0
  171. package/dist/sonner.cjs.js +1 -0
  172. package/dist/sonner.d.ts +10 -0
  173. package/dist/sonner.es.js +764 -0
  174. package/dist/switch.cjs.js +1 -0
  175. package/dist/switch.d.ts +9 -0
  176. package/dist/switch.es.js +149 -0
  177. package/dist/table.cjs.js +1 -0
  178. package/dist/table.d.ts +43 -0
  179. package/dist/table.es.js +57 -0
  180. package/dist/tabs.cjs.js +1 -0
  181. package/dist/tabs.d.ts +24 -0
  182. package/dist/tabs.es.js +195 -0
  183. package/dist/text.cjs.js +1 -0
  184. package/dist/text.d.ts +17 -0
  185. package/dist/text.es.js +42 -0
  186. package/dist/textarea.cjs.js +1 -0
  187. package/dist/textarea.d.ts +9 -0
  188. package/dist/textarea.es.js +18 -0
  189. package/dist/theme-provider.cjs.js +1 -0
  190. package/dist/theme-provider.d.ts +9 -0
  191. package/dist/theme-provider.es.js +8 -0
  192. package/dist/theme-toggle.cjs.js +1 -0
  193. package/dist/theme-toggle.d.ts +8 -0
  194. package/dist/theme-toggle.es.js +78 -0
  195. package/dist/toast.cjs.js +1 -0
  196. package/dist/toast.d.ts +26 -0
  197. package/dist/toast.es.js +494 -0
  198. package/dist/toaster-CIpfms4W.js +1 -0
  199. package/dist/toaster-jBYXAPRk.mjs +118 -0
  200. package/dist/toaster.cjs.js +1 -0
  201. package/dist/toaster.d.ts +6 -0
  202. package/dist/toaster.es.js +6 -0
  203. package/dist/toggle-group.cjs.js +1 -0
  204. package/dist/toggle-group.d.ts +18 -0
  205. package/dist/toggle-group.es.js +170 -0
  206. package/dist/toggle.cjs.js +1 -0
  207. package/dist/toggle.d.ts +14 -0
  208. package/dist/toggle.es.js +14 -0
  209. package/dist/tooltip.cjs.js +1 -0
  210. package/dist/tooltip.d.ts +25 -0
  211. package/dist/tooltip.es.js +342 -0
  212. package/dist/utils-B6yFEsav.mjs +8 -0
  213. package/dist/utils-IjLH3w2e.js +1 -0
  214. package/package.json +1 -1
@@ -0,0 +1,615 @@
1
+ import * as o from "react";
2
+ import { c as M, P as D, d as ze, a as Ze } from "./index-K9FzbxYw.mjs";
3
+ import { c as $e } from "./index-DFdF7K7v.mjs";
4
+ import { c as qe, u as k } from "./index-DLcqcWxM.mjs";
5
+ import { c as Je } from "./index-IZ2gq03c.mjs";
6
+ import { u as Qe } from "./index-CD6_IrA-.mjs";
7
+ import { D as et } from "./index-Dfzl8TxY.mjs";
8
+ import { u as tt, R as nt, F as ot, h as rt } from "./index-CRyCZJLa.mjs";
9
+ import { u as de } from "./index-DnFcfnA9.mjs";
10
+ import { c as pe, A as st, C as ct, R as me, a as at } from "./index-CwfE56Ep.mjs";
11
+ import { P as ut } from "./index-C7HEunrh.mjs";
12
+ import { P as Y } from "./index-vuPgkS0V.mjs";
13
+ import { c as he, I as it, R as lt } from "./index-Bv7qrYW6.mjs";
14
+ import { u as q } from "./index-0ioNhtNM.mjs";
15
+ import { j as a } from "./jsx-runtime-tc70JA_2.mjs";
16
+ var $ = ["Enter", " "], dt = ["ArrowDown", "PageUp", "Home"], Ce = ["ArrowUp", "PageDown", "End"], ft = [...dt, ...Ce], pt = {
17
+ ltr: [...$, "ArrowRight"],
18
+ rtl: [...$, "ArrowLeft"]
19
+ }, mt = {
20
+ ltr: ["ArrowLeft"],
21
+ rtl: ["ArrowRight"]
22
+ }, N = "Menu", [j, ht, Ct] = $e(N), [S, Jt] = Je(N, [
23
+ Ct,
24
+ pe,
25
+ he
26
+ ]), F = pe(), Me = he(), [ve, _] = S(N), [Mt, L] = S(N), ge = (e) => {
27
+ const { __scopeMenu: n, open: t = !1, children: r, dir: u, onOpenChange: s, modal: d = !0 } = e, m = F(n), [h, p] = o.useState(null), l = o.useRef(!1), c = q(s), f = Qe(u);
28
+ return o.useEffect(() => {
29
+ const g = () => {
30
+ l.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
31
+ }, C = () => l.current = !1;
32
+ return document.addEventListener("keydown", g, { capture: !0 }), () => {
33
+ document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
34
+ };
35
+ }, []), /* @__PURE__ */ a.jsx(me, { ...m, children: /* @__PURE__ */ a.jsx(
36
+ ve,
37
+ {
38
+ scope: n,
39
+ open: t,
40
+ onOpenChange: c,
41
+ content: h,
42
+ onContentChange: p,
43
+ children: /* @__PURE__ */ a.jsx(
44
+ Mt,
45
+ {
46
+ scope: n,
47
+ onClose: o.useCallback(() => c(!1), [c]),
48
+ isUsingKeyboardRef: l,
49
+ dir: f,
50
+ modal: d,
51
+ children: r
52
+ }
53
+ )
54
+ }
55
+ ) });
56
+ };
57
+ ge.displayName = N;
58
+ var vt = "MenuAnchor", J = o.forwardRef(
59
+ (e, n) => {
60
+ const { __scopeMenu: t, ...r } = e, u = F(t);
61
+ return /* @__PURE__ */ a.jsx(st, { ...u, ...r, ref: n });
62
+ }
63
+ );
64
+ J.displayName = vt;
65
+ var Q = "MenuPortal", [gt, xe] = S(Q, {
66
+ forceMount: void 0
67
+ }), _e = (e) => {
68
+ const { __scopeMenu: n, forceMount: t, children: r, container: u } = e, s = _(Q, n);
69
+ return /* @__PURE__ */ a.jsx(gt, { scope: n, forceMount: t, children: /* @__PURE__ */ a.jsx(Y, { present: t || s.open, children: /* @__PURE__ */ a.jsx(ut, { asChild: !0, container: u, children: r }) }) });
70
+ };
71
+ _e.displayName = Q;
72
+ var x = "MenuContent", [xt, ee] = S(x), Re = o.forwardRef(
73
+ (e, n) => {
74
+ const t = xe(x, e.__scopeMenu), { forceMount: r = t.forceMount, ...u } = e, s = _(x, e.__scopeMenu), d = L(x, e.__scopeMenu);
75
+ return /* @__PURE__ */ a.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Y, { present: r || s.open, children: /* @__PURE__ */ a.jsx(j.Slot, { scope: e.__scopeMenu, children: d.modal ? /* @__PURE__ */ a.jsx(_t, { ...u, ref: n }) : /* @__PURE__ */ a.jsx(Rt, { ...u, ref: n }) }) }) });
76
+ }
77
+ ), _t = o.forwardRef(
78
+ (e, n) => {
79
+ const t = _(x, e.__scopeMenu), r = o.useRef(null), u = k(n, r);
80
+ return o.useEffect(() => {
81
+ const s = r.current;
82
+ if (s) return rt(s);
83
+ }, []), /* @__PURE__ */ a.jsx(
84
+ te,
85
+ {
86
+ ...e,
87
+ ref: u,
88
+ trapFocus: t.open,
89
+ disableOutsidePointerEvents: t.open,
90
+ disableOutsideScroll: !0,
91
+ onFocusOutside: M(
92
+ e.onFocusOutside,
93
+ (s) => s.preventDefault(),
94
+ { checkForDefaultPrevented: !1 }
95
+ ),
96
+ onDismiss: () => t.onOpenChange(!1)
97
+ }
98
+ );
99
+ }
100
+ ), Rt = o.forwardRef((e, n) => {
101
+ const t = _(x, e.__scopeMenu);
102
+ return /* @__PURE__ */ a.jsx(
103
+ te,
104
+ {
105
+ ...e,
106
+ ref: n,
107
+ trapFocus: !1,
108
+ disableOutsidePointerEvents: !1,
109
+ disableOutsideScroll: !1,
110
+ onDismiss: () => t.onOpenChange(!1)
111
+ }
112
+ );
113
+ }), St = Ze("MenuContent.ScrollLock"), te = o.forwardRef(
114
+ (e, n) => {
115
+ const {
116
+ __scopeMenu: t,
117
+ loop: r = !1,
118
+ trapFocus: u,
119
+ onOpenAutoFocus: s,
120
+ onCloseAutoFocus: d,
121
+ disableOutsidePointerEvents: m,
122
+ onEntryFocus: h,
123
+ onEscapeKeyDown: p,
124
+ onPointerDownOutside: l,
125
+ onFocusOutside: c,
126
+ onInteractOutside: f,
127
+ onDismiss: g,
128
+ disableOutsideScroll: C,
129
+ ...P
130
+ } = e, y = _(x, t), E = L(x, t), Ge = F(t), Ue = Me(t), ce = ht(t), [Be, ae] = o.useState(null), K = o.useRef(null), Ve = k(n, K, y.onContentChange), G = o.useRef(0), U = o.useRef(""), Ye = o.useRef(0), H = o.useRef(null), ue = o.useRef("right"), W = o.useRef(0), Xe = C ? nt : o.Fragment, He = C ? { as: St, allowPinchZoom: !0 } : void 0, We = (i) => {
131
+ const w = U.current + i, R = ce().filter((v) => !v.disabled), b = document.activeElement, z = R.find((v) => v.ref.current === b)?.textValue, Z = R.map((v) => v.textValue), ie = kt(Z, w, z), T = R.find((v) => v.textValue === ie)?.ref.current;
132
+ (function v(le) {
133
+ U.current = le, window.clearTimeout(G.current), le !== "" && (G.current = window.setTimeout(() => v(""), 1e3));
134
+ })(w), T && setTimeout(() => T.focus());
135
+ };
136
+ o.useEffect(() => () => window.clearTimeout(G.current), []), tt();
137
+ const I = o.useCallback((i) => ue.current === H.current?.side && Ft(i, H.current?.area), []);
138
+ return /* @__PURE__ */ a.jsx(
139
+ xt,
140
+ {
141
+ scope: t,
142
+ searchRef: U,
143
+ onItemEnter: o.useCallback(
144
+ (i) => {
145
+ I(i) && i.preventDefault();
146
+ },
147
+ [I]
148
+ ),
149
+ onItemLeave: o.useCallback(
150
+ (i) => {
151
+ I(i) || (K.current?.focus(), ae(null));
152
+ },
153
+ [I]
154
+ ),
155
+ onTriggerLeave: o.useCallback(
156
+ (i) => {
157
+ I(i) && i.preventDefault();
158
+ },
159
+ [I]
160
+ ),
161
+ pointerGraceTimerRef: Ye,
162
+ onPointerGraceIntentChange: o.useCallback((i) => {
163
+ H.current = i;
164
+ }, []),
165
+ children: /* @__PURE__ */ a.jsx(Xe, { ...He, children: /* @__PURE__ */ a.jsx(
166
+ ot,
167
+ {
168
+ asChild: !0,
169
+ trapped: u,
170
+ onMountAutoFocus: M(s, (i) => {
171
+ i.preventDefault(), K.current?.focus({ preventScroll: !0 });
172
+ }),
173
+ onUnmountAutoFocus: d,
174
+ children: /* @__PURE__ */ a.jsx(
175
+ et,
176
+ {
177
+ asChild: !0,
178
+ disableOutsidePointerEvents: m,
179
+ onEscapeKeyDown: p,
180
+ onPointerDownOutside: l,
181
+ onFocusOutside: c,
182
+ onInteractOutside: f,
183
+ onDismiss: g,
184
+ children: /* @__PURE__ */ a.jsx(
185
+ lt,
186
+ {
187
+ asChild: !0,
188
+ ...Ue,
189
+ dir: E.dir,
190
+ orientation: "vertical",
191
+ loop: r,
192
+ currentTabStopId: Be,
193
+ onCurrentTabStopIdChange: ae,
194
+ onEntryFocus: M(h, (i) => {
195
+ E.isUsingKeyboardRef.current || i.preventDefault();
196
+ }),
197
+ preventScrollOnEntryFocus: !0,
198
+ children: /* @__PURE__ */ a.jsx(
199
+ ct,
200
+ {
201
+ role: "menu",
202
+ "aria-orientation": "vertical",
203
+ "data-state": Ke(y.open),
204
+ "data-radix-menu-content": "",
205
+ dir: E.dir,
206
+ ...Ge,
207
+ ...P,
208
+ ref: Ve,
209
+ style: { outline: "none", ...P.style },
210
+ onKeyDown: M(P.onKeyDown, (i) => {
211
+ const R = i.target.closest("[data-radix-menu-content]") === i.currentTarget, b = i.ctrlKey || i.altKey || i.metaKey, z = i.key.length === 1;
212
+ R && (i.key === "Tab" && i.preventDefault(), !b && z && We(i.key));
213
+ const Z = K.current;
214
+ if (i.target !== Z || !ft.includes(i.key)) return;
215
+ i.preventDefault();
216
+ const T = ce().filter((v) => !v.disabled).map((v) => v.ref.current);
217
+ Ce.includes(i.key) && T.reverse(), Ot(T);
218
+ }),
219
+ onBlur: M(e.onBlur, (i) => {
220
+ i.currentTarget.contains(i.target) || (window.clearTimeout(G.current), U.current = "");
221
+ }),
222
+ onPointerMove: M(
223
+ e.onPointerMove,
224
+ O((i) => {
225
+ const w = i.target, R = W.current !== i.clientX;
226
+ if (i.currentTarget.contains(w) && R) {
227
+ const b = i.clientX > W.current ? "right" : "left";
228
+ ue.current = b, W.current = i.clientX;
229
+ }
230
+ })
231
+ )
232
+ }
233
+ )
234
+ }
235
+ )
236
+ }
237
+ )
238
+ }
239
+ ) })
240
+ }
241
+ );
242
+ }
243
+ );
244
+ Re.displayName = x;
245
+ var Pt = "MenuGroup", ne = o.forwardRef(
246
+ (e, n) => {
247
+ const { __scopeMenu: t, ...r } = e;
248
+ return /* @__PURE__ */ a.jsx(D.div, { role: "group", ...r, ref: n });
249
+ }
250
+ );
251
+ ne.displayName = Pt;
252
+ var Et = "MenuLabel", Se = o.forwardRef(
253
+ (e, n) => {
254
+ const { __scopeMenu: t, ...r } = e;
255
+ return /* @__PURE__ */ a.jsx(D.div, { ...r, ref: n });
256
+ }
257
+ );
258
+ Se.displayName = Et;
259
+ var B = "MenuItem", fe = "menu.itemSelect", X = o.forwardRef(
260
+ (e, n) => {
261
+ const { disabled: t = !1, onSelect: r, ...u } = e, s = o.useRef(null), d = L(B, e.__scopeMenu), m = ee(B, e.__scopeMenu), h = k(n, s), p = o.useRef(!1), l = () => {
262
+ const c = s.current;
263
+ if (!t && c) {
264
+ const f = new CustomEvent(fe, { bubbles: !0, cancelable: !0 });
265
+ c.addEventListener(fe, (g) => r?.(g), { once: !0 }), ze(c, f), f.defaultPrevented ? p.current = !1 : d.onClose();
266
+ }
267
+ };
268
+ return /* @__PURE__ */ a.jsx(
269
+ Pe,
270
+ {
271
+ ...u,
272
+ ref: h,
273
+ disabled: t,
274
+ onClick: M(e.onClick, l),
275
+ onPointerDown: (c) => {
276
+ e.onPointerDown?.(c), p.current = !0;
277
+ },
278
+ onPointerUp: M(e.onPointerUp, (c) => {
279
+ p.current || c.currentTarget?.click();
280
+ }),
281
+ onKeyDown: M(e.onKeyDown, (c) => {
282
+ const f = m.searchRef.current !== "";
283
+ t || f && c.key === " " || $.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
284
+ })
285
+ }
286
+ );
287
+ }
288
+ );
289
+ X.displayName = B;
290
+ var Pe = o.forwardRef(
291
+ (e, n) => {
292
+ const { __scopeMenu: t, disabled: r = !1, textValue: u, ...s } = e, d = ee(B, t), m = Me(t), h = o.useRef(null), p = k(n, h), [l, c] = o.useState(!1), [f, g] = o.useState("");
293
+ return o.useEffect(() => {
294
+ const C = h.current;
295
+ C && g((C.textContent ?? "").trim());
296
+ }, [s.children]), /* @__PURE__ */ a.jsx(
297
+ j.ItemSlot,
298
+ {
299
+ scope: t,
300
+ disabled: r,
301
+ textValue: u ?? f,
302
+ children: /* @__PURE__ */ a.jsx(it, { asChild: !0, ...m, focusable: !r, children: /* @__PURE__ */ a.jsx(
303
+ D.div,
304
+ {
305
+ role: "menuitem",
306
+ "data-highlighted": l ? "" : void 0,
307
+ "aria-disabled": r || void 0,
308
+ "data-disabled": r ? "" : void 0,
309
+ ...s,
310
+ ref: p,
311
+ onPointerMove: M(
312
+ e.onPointerMove,
313
+ O((C) => {
314
+ r ? d.onItemLeave(C) : (d.onItemEnter(C), C.defaultPrevented || C.currentTarget.focus({ preventScroll: !0 }));
315
+ })
316
+ ),
317
+ onPointerLeave: M(
318
+ e.onPointerLeave,
319
+ O((C) => d.onItemLeave(C))
320
+ ),
321
+ onFocus: M(e.onFocus, () => c(!0)),
322
+ onBlur: M(e.onBlur, () => c(!1))
323
+ }
324
+ ) })
325
+ }
326
+ );
327
+ }
328
+ ), It = "MenuCheckboxItem", Ee = o.forwardRef(
329
+ (e, n) => {
330
+ const { checked: t = !1, onCheckedChange: r, ...u } = e;
331
+ return /* @__PURE__ */ a.jsx(Te, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ a.jsx(
332
+ X,
333
+ {
334
+ role: "menuitemcheckbox",
335
+ "aria-checked": V(t) ? "mixed" : t,
336
+ ...u,
337
+ ref: n,
338
+ "data-state": se(t),
339
+ onSelect: M(
340
+ u.onSelect,
341
+ () => r?.(V(t) ? !0 : !t),
342
+ { checkForDefaultPrevented: !1 }
343
+ )
344
+ }
345
+ ) });
346
+ }
347
+ );
348
+ Ee.displayName = It;
349
+ var Ie = "MenuRadioGroup", [wt, yt] = S(
350
+ Ie,
351
+ { value: void 0, onValueChange: () => {
352
+ } }
353
+ ), we = o.forwardRef(
354
+ (e, n) => {
355
+ const { value: t, onValueChange: r, ...u } = e, s = q(r);
356
+ return /* @__PURE__ */ a.jsx(wt, { scope: e.__scopeMenu, value: t, onValueChange: s, children: /* @__PURE__ */ a.jsx(ne, { ...u, ref: n }) });
357
+ }
358
+ );
359
+ we.displayName = Ie;
360
+ var ye = "MenuRadioItem", be = o.forwardRef(
361
+ (e, n) => {
362
+ const { value: t, ...r } = e, u = yt(ye, e.__scopeMenu), s = t === u.value;
363
+ return /* @__PURE__ */ a.jsx(Te, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
364
+ X,
365
+ {
366
+ role: "menuitemradio",
367
+ "aria-checked": s,
368
+ ...r,
369
+ ref: n,
370
+ "data-state": se(s),
371
+ onSelect: M(
372
+ r.onSelect,
373
+ () => u.onValueChange?.(t),
374
+ { checkForDefaultPrevented: !1 }
375
+ )
376
+ }
377
+ ) });
378
+ }
379
+ );
380
+ be.displayName = ye;
381
+ var oe = "MenuItemIndicator", [Te, bt] = S(
382
+ oe,
383
+ { checked: !1 }
384
+ ), Ae = o.forwardRef(
385
+ (e, n) => {
386
+ const { __scopeMenu: t, forceMount: r, ...u } = e, s = bt(oe, t);
387
+ return /* @__PURE__ */ a.jsx(
388
+ Y,
389
+ {
390
+ present: r || V(s.checked) || s.checked === !0,
391
+ children: /* @__PURE__ */ a.jsx(
392
+ D.span,
393
+ {
394
+ ...u,
395
+ ref: n,
396
+ "data-state": se(s.checked)
397
+ }
398
+ )
399
+ }
400
+ );
401
+ }
402
+ );
403
+ Ae.displayName = oe;
404
+ var Tt = "MenuSeparator", je = o.forwardRef(
405
+ (e, n) => {
406
+ const { __scopeMenu: t, ...r } = e;
407
+ return /* @__PURE__ */ a.jsx(
408
+ D.div,
409
+ {
410
+ role: "separator",
411
+ "aria-orientation": "horizontal",
412
+ ...r,
413
+ ref: n
414
+ }
415
+ );
416
+ }
417
+ );
418
+ je.displayName = Tt;
419
+ var At = "MenuArrow", Oe = o.forwardRef(
420
+ (e, n) => {
421
+ const { __scopeMenu: t, ...r } = e, u = F(t);
422
+ return /* @__PURE__ */ a.jsx(at, { ...u, ...r, ref: n });
423
+ }
424
+ );
425
+ Oe.displayName = At;
426
+ var re = "MenuSub", [jt, De] = S(re), ke = (e) => {
427
+ const { __scopeMenu: n, children: t, open: r = !1, onOpenChange: u } = e, s = _(re, n), d = F(n), [m, h] = o.useState(null), [p, l] = o.useState(null), c = q(u);
428
+ return o.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(me, { ...d, children: /* @__PURE__ */ a.jsx(
429
+ ve,
430
+ {
431
+ scope: n,
432
+ open: r,
433
+ onOpenChange: c,
434
+ content: p,
435
+ onContentChange: l,
436
+ children: /* @__PURE__ */ a.jsx(
437
+ jt,
438
+ {
439
+ scope: n,
440
+ contentId: de(),
441
+ triggerId: de(),
442
+ trigger: m,
443
+ onTriggerChange: h,
444
+ children: t
445
+ }
446
+ )
447
+ }
448
+ ) });
449
+ };
450
+ ke.displayName = re;
451
+ var A = "MenuSubTrigger", Ne = o.forwardRef(
452
+ (e, n) => {
453
+ const t = _(A, e.__scopeMenu), r = L(A, e.__scopeMenu), u = De(A, e.__scopeMenu), s = ee(A, e.__scopeMenu), d = o.useRef(null), { pointerGraceTimerRef: m, onPointerGraceIntentChange: h } = s, p = { __scopeMenu: e.__scopeMenu }, l = o.useCallback(() => {
454
+ d.current && window.clearTimeout(d.current), d.current = null;
455
+ }, []);
456
+ return o.useEffect(() => l, [l]), o.useEffect(() => {
457
+ const c = m.current;
458
+ return () => {
459
+ window.clearTimeout(c), h(null);
460
+ };
461
+ }, [m, h]), /* @__PURE__ */ a.jsx(J, { asChild: !0, ...p, children: /* @__PURE__ */ a.jsx(
462
+ Pe,
463
+ {
464
+ id: u.triggerId,
465
+ "aria-haspopup": "menu",
466
+ "aria-expanded": t.open,
467
+ "aria-controls": u.contentId,
468
+ "data-state": Ke(t.open),
469
+ ...e,
470
+ ref: qe(n, u.onTriggerChange),
471
+ onClick: (c) => {
472
+ e.onClick?.(c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), t.open || t.onOpenChange(!0));
473
+ },
474
+ onPointerMove: M(
475
+ e.onPointerMove,
476
+ O((c) => {
477
+ s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !t.open && !d.current && (s.onPointerGraceIntentChange(null), d.current = window.setTimeout(() => {
478
+ t.onOpenChange(!0), l();
479
+ }, 100));
480
+ })
481
+ ),
482
+ onPointerLeave: M(
483
+ e.onPointerLeave,
484
+ O((c) => {
485
+ l();
486
+ const f = t.content?.getBoundingClientRect();
487
+ if (f) {
488
+ const g = t.content?.dataset.side, C = g === "right", P = C ? -5 : 5, y = f[C ? "left" : "right"], E = f[C ? "right" : "left"];
489
+ s.onPointerGraceIntentChange({
490
+ area: [
491
+ // Apply a bleed on clientX to ensure that our exit point is
492
+ // consistently within polygon bounds
493
+ { x: c.clientX + P, y: c.clientY },
494
+ { x: y, y: f.top },
495
+ { x: E, y: f.top },
496
+ { x: E, y: f.bottom },
497
+ { x: y, y: f.bottom }
498
+ ],
499
+ side: g
500
+ }), window.clearTimeout(m.current), m.current = window.setTimeout(
501
+ () => s.onPointerGraceIntentChange(null),
502
+ 300
503
+ );
504
+ } else {
505
+ if (s.onTriggerLeave(c), c.defaultPrevented) return;
506
+ s.onPointerGraceIntentChange(null);
507
+ }
508
+ })
509
+ ),
510
+ onKeyDown: M(e.onKeyDown, (c) => {
511
+ const f = s.searchRef.current !== "";
512
+ e.disabled || f && c.key === " " || pt[r.dir].includes(c.key) && (t.onOpenChange(!0), t.content?.focus(), c.preventDefault());
513
+ })
514
+ }
515
+ ) });
516
+ }
517
+ );
518
+ Ne.displayName = A;
519
+ var Fe = "MenuSubContent", Le = o.forwardRef(
520
+ (e, n) => {
521
+ const t = xe(x, e.__scopeMenu), { forceMount: r = t.forceMount, ...u } = e, s = _(x, e.__scopeMenu), d = L(x, e.__scopeMenu), m = De(Fe, e.__scopeMenu), h = o.useRef(null), p = k(n, h);
522
+ return /* @__PURE__ */ a.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Y, { present: r || s.open, children: /* @__PURE__ */ a.jsx(j.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
523
+ te,
524
+ {
525
+ id: m.contentId,
526
+ "aria-labelledby": m.triggerId,
527
+ ...u,
528
+ ref: p,
529
+ align: "start",
530
+ side: d.dir === "rtl" ? "left" : "right",
531
+ disableOutsidePointerEvents: !1,
532
+ disableOutsideScroll: !1,
533
+ trapFocus: !1,
534
+ onOpenAutoFocus: (l) => {
535
+ d.isUsingKeyboardRef.current && h.current?.focus(), l.preventDefault();
536
+ },
537
+ onCloseAutoFocus: (l) => l.preventDefault(),
538
+ onFocusOutside: M(e.onFocusOutside, (l) => {
539
+ l.target !== m.trigger && s.onOpenChange(!1);
540
+ }),
541
+ onEscapeKeyDown: M(e.onEscapeKeyDown, (l) => {
542
+ d.onClose(), l.preventDefault();
543
+ }),
544
+ onKeyDown: M(e.onKeyDown, (l) => {
545
+ const c = l.currentTarget.contains(l.target), f = mt[d.dir].includes(l.key);
546
+ c && f && (s.onOpenChange(!1), m.trigger?.focus(), l.preventDefault());
547
+ })
548
+ }
549
+ ) }) }) });
550
+ }
551
+ );
552
+ Le.displayName = Fe;
553
+ function Ke(e) {
554
+ return e ? "open" : "closed";
555
+ }
556
+ function V(e) {
557
+ return e === "indeterminate";
558
+ }
559
+ function se(e) {
560
+ return V(e) ? "indeterminate" : e ? "checked" : "unchecked";
561
+ }
562
+ function Ot(e) {
563
+ const n = document.activeElement;
564
+ for (const t of e)
565
+ if (t === n || (t.focus(), document.activeElement !== n)) return;
566
+ }
567
+ function Dt(e, n) {
568
+ return e.map((t, r) => e[(n + r) % e.length]);
569
+ }
570
+ function kt(e, n, t) {
571
+ const u = n.length > 1 && Array.from(n).every((p) => p === n[0]) ? n[0] : n, s = t ? e.indexOf(t) : -1;
572
+ let d = Dt(e, Math.max(s, 0));
573
+ u.length === 1 && (d = d.filter((p) => p !== t));
574
+ const h = d.find(
575
+ (p) => p.toLowerCase().startsWith(u.toLowerCase())
576
+ );
577
+ return h !== t ? h : void 0;
578
+ }
579
+ function Nt(e, n) {
580
+ const { x: t, y: r } = e;
581
+ let u = !1;
582
+ for (let s = 0, d = n.length - 1; s < n.length; d = s++) {
583
+ const m = n[s], h = n[d], p = m.x, l = m.y, c = h.x, f = h.y;
584
+ l > r != f > r && t < (c - p) * (r - l) / (f - l) + p && (u = !u);
585
+ }
586
+ return u;
587
+ }
588
+ function Ft(e, n) {
589
+ if (!n) return !1;
590
+ const t = { x: e.clientX, y: e.clientY };
591
+ return Nt(t, n);
592
+ }
593
+ function O(e) {
594
+ return (n) => n.pointerType === "mouse" ? e(n) : void 0;
595
+ }
596
+ var Qt = ge, en = J, tn = _e, nn = Re, on = ne, rn = Se, sn = X, cn = Ee, an = we, un = be, ln = Ae, dn = je, fn = Oe, pn = ke, mn = Ne, hn = Le;
597
+ export {
598
+ en as A,
599
+ nn as C,
600
+ on as G,
601
+ sn as I,
602
+ rn as L,
603
+ tn as P,
604
+ un as R,
605
+ mn as S,
606
+ hn as a,
607
+ cn as b,
608
+ ln as c,
609
+ dn as d,
610
+ Jt as e,
611
+ Qt as f,
612
+ an as g,
613
+ pn as h,
614
+ fn as i
615
+ };
@@ -0,0 +1 @@
1
+ "use strict";const m=require("react"),v=require("./index-MQ0c3ZX_.js");function b(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=b(m);var g=n[" useInsertionEffect ".trim().toString()]||v.useLayoutEffect2;function R({prop:e,defaultProp:o,onChange:t=()=>{},caller:r}){const[l,u,i]=C({defaultProp:o,onChange:t}),c=e!==void 0,a=c?e:l;{const s=n.useRef(e!==void 0);n.useEffect(()=>{const f=s.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=c},[c,r])}const d=n.useCallback(s=>{if(c){const f=S(s)?s(e):s;f!==e&&i.current?.(f)}else u(s)},[c,e,u,i]);return[a,d]}function C({defaultProp:e,onChange:o}){const[t,r]=n.useState(e),l=n.useRef(t),u=n.useRef(o);return g(()=>{u.current=o},[o]),n.useEffect(()=>{l.current!==t&&(u.current?.(t),l.current=t)},[t,l]),[t,r,u]}function S(e){return typeof e=="function"}exports.useControllableState=R;
@@ -0,0 +1,32 @@
1
+ import * as f from "react";
2
+ import { P as m, c as p } from "./index-K9FzbxYw.mjs";
3
+ import { u } from "./index-p6xVFRb4.mjs";
4
+ import { j as c } from "./jsx-runtime-tc70JA_2.mjs";
5
+ var a = "Toggle", o = f.forwardRef((e, r) => {
6
+ const { pressed: t, defaultPressed: d, onPressedChange: i, ...l } = e, [s, n] = u({
7
+ prop: t,
8
+ onChange: i,
9
+ defaultProp: d ?? !1,
10
+ caller: a
11
+ });
12
+ return /* @__PURE__ */ c.jsx(
13
+ m.button,
14
+ {
15
+ type: "button",
16
+ "aria-pressed": s,
17
+ "data-state": s ? "on" : "off",
18
+ "data-disabled": e.disabled ? "" : void 0,
19
+ ...l,
20
+ ref: r,
21
+ onClick: p(e.onClick, () => {
22
+ e.disabled || n(!s);
23
+ })
24
+ }
25
+ );
26
+ });
27
+ o.displayName = a;
28
+ var v = o;
29
+ export {
30
+ v as R,
31
+ o as T
32
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),o=require("./index-MQ0c3ZX_.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=a(u);var i=c[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=c.useState(i());return o.useLayoutEffect2(()=>{r(n=>n??String(s++))},[e]),t?`radix-${t}`:""}exports.useId=d;
@@ -0,0 +1 @@
1
+ "use strict";const g=require("react"),b=require("./index-_XxjJPRD.js"),d=require("./jsx-runtime-nZSsnGb7.js");function E(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=E(g);var j=Symbol.for("react.lazy"),u=i[" use ".trim().toString()];function R(e){return typeof e=="object"&&e!==null&&"then"in e}function y(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===j&&"_payload"in e&&R(e._payload)}function m(e){const t=C(e),n=i.forwardRef((o,r)=>{let{children:l,...c}=o;y(l)&&typeof u=="function"&&(l=u(l._payload));const s=i.Children.toArray(l),a=s.find(O);if(a){const f=a.props.children,S=s.map(p=>p===a?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:p);return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,S):null})}return d.jsxRuntimeExports.jsx(t,{...c,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}var _=m("Slot");function C(e){const t=i.forwardRef((n,o)=>{let{children:r,...l}=n;if(y(r)&&typeof u=="function"&&(r=u(r._payload)),i.isValidElement(r)){const c=P(r),s=h(l,r.props);return r.type!==i.Fragment&&(s.ref=o?b.composeRefs(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var x=Symbol("radix.slottable");function O(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===x}function h(e,t){const n={...t};for(const o in t){const r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function P(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}exports.Slot=_;exports.createSlot=m;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("react"),b=require("./index-MQ0c3ZX_.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=d(a);function S(e){const[t,r]=z.useState(void 0);return b.useLayoutEffect2(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let s,n;if("borderBoxSize"in f){const c=f.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,n=u.blockSize}else s=e.offsetWidth,n=e.offsetHeight;r({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}exports.useSize=S;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react"),s=require("./index-BtZvtDmp.js"),c=require("./jsx-runtime-nZSsnGb7.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=l(o);var a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u="VisuallyHidden",i=d.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(s.Primitive.span,{...e,ref:t,style:{...a,...e.style}}));i.displayName=u;var f=i;exports.Root=f;exports.VISUALLY_HIDDEN_STYLES=a;exports.VisuallyHidden=i;
@@ -0,0 +1 @@
1
+ "use strict";const I=require("react");function z(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const m=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,m.get?m:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=z(I);var N=(e,n,t,m,u,c,d,h)=>{let i=document.documentElement,b=["light","dark"];function f(o){(Array.isArray(e)?e:[e]).forEach(y=>{let S=y==="class",C=S&&c?u.map(g=>c[g]||g):u;S?(i.classList.remove(...C),i.classList.add(c&&c[o]?c[o]:o)):i.setAttribute(y,o)}),k(o)}function k(o){h&&b.includes(o)&&(i.style.colorScheme=o)}function l(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(m)f(m);else try{let o=localStorage.getItem(n)||t,y=d&&o==="system"?l():o;f(y)}catch{}},P=["light","dark"],_="(prefers-color-scheme: dark)",D=typeof window>"u",A=r.createContext(void 0),H={setTheme:e=>{},themes:[]},J=()=>{var e;return(e=r.useContext(A))!=null?e:H},K=e=>r.useContext(A)?r.createElement(r.Fragment,null,e.children):r.createElement(V,{...e}),R=["light","dark"],V=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:t=!0,enableColorScheme:m=!0,storageKey:u="theme",themes:c=R,defaultTheme:d=t?"system":"light",attribute:h="data-theme",value:i,children:b,nonce:f,scriptProps:k})=>{let[l,o]=r.useState(()=>$(u,d)),[y,S]=r.useState(()=>l==="system"?L():l),C=i?Object.values(i):c,g=r.useCallback(a=>{let s=a;if(!s)return;a==="system"&&t&&(s=L());let v=i?i[s]:s,O=n?q(f):null,w=document.documentElement,M=p=>{p==="class"?(w.classList.remove(...C),v&&w.classList.add(v)):p.startsWith("data-")&&(v?w.setAttribute(p,v):w.removeAttribute(p))};if(Array.isArray(h)?h.forEach(M):M(h),m){let p=P.includes(d)?d:null,x=P.includes(s)?s:p;w.style.colorScheme=x}O?.()},[f]),T=r.useCallback(a=>{let s=typeof a=="function"?a(l):a;o(s);try{localStorage.setItem(u,s)}catch{}},[l]),E=r.useCallback(a=>{let s=L(a);S(s),l==="system"&&t&&!e&&g("system")},[l,e]);r.useEffect(()=>{let a=window.matchMedia(_);return a.addListener(E),E(a),()=>a.removeListener(E)},[E]),r.useEffect(()=>{let a=s=>{s.key===u&&(s.newValue?o(s.newValue):T(d))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[T]),r.useEffect(()=>{g(e??l)},[e,l]);let j=r.useMemo(()=>({theme:l,setTheme:T,forcedTheme:e,resolvedTheme:l==="system"?y:l,themes:t?[...c,"system"]:c,systemTheme:t?y:void 0}),[l,T,e,y,t,c]);return r.createElement(A.Provider,{value:j},r.createElement(W,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:t,enableColorScheme:m,defaultTheme:d,value:i,themes:c,nonce:f,scriptProps:k}),b)},W=r.memo(({forcedTheme:e,storageKey:n,attribute:t,enableSystem:m,enableColorScheme:u,defaultTheme:c,value:d,themes:h,nonce:i,scriptProps:b})=>{let f=JSON.stringify([t,n,c,e,h,d,m,u]).slice(1,-1);return r.createElement("script",{...b,suppressHydrationWarning:!0,nonce:typeof window>"u"?i:"",dangerouslySetInnerHTML:{__html:`(${N.toString()})(${f})`}})}),$=(e,n)=>{if(D)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||n},q=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},L=e=>(e||(e=window.matchMedia(_)),e.matches?"dark":"light");exports.J=K;exports.z=J;