@gv-tech/ui-web 2.29.2 → 2.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +53 -1
  3. package/dist/alert-dialog.cjs +1 -1
  4. package/dist/alert-dialog.mjs +99 -1
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +1 -1
  7. package/dist/aspect-ratio.cjs +1 -1
  8. package/dist/aspect-ratio.mjs +10 -1
  9. package/dist/attachment.cjs +1 -1
  10. package/dist/attachment.mjs +25 -24
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.mjs +49 -1
  13. package/dist/badge.cjs +1 -1
  14. package/dist/badge.mjs +5 -4
  15. package/dist/breadcrumb.cjs +1 -1
  16. package/dist/breadcrumb.mjs +12 -11
  17. package/dist/bubble.cjs +1 -1
  18. package/dist/bubble.mjs +4 -3
  19. package/dist/button-group.cjs +1 -1
  20. package/dist/button-group.mjs +12 -11
  21. package/dist/button.cjs +1 -1
  22. package/dist/button.mjs +4 -3
  23. package/dist/calendar.cjs +1 -1
  24. package/dist/calendar.mjs +97 -1
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.mjs +1 -1
  27. package/dist/carousel.cjs +1 -1
  28. package/dist/carousel.mjs +107 -1
  29. package/dist/chart.cjs +2 -2
  30. package/dist/chart.mjs +1 -1
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.mjs +19 -1
  33. package/dist/collapsible.cjs +1 -1
  34. package/dist/collapsible.mjs +12 -12
  35. package/dist/combobox.cjs +1 -1
  36. package/dist/combobox.mjs +161 -1
  37. package/dist/command.cjs +1 -1
  38. package/dist/command.mjs +89 -1
  39. package/dist/context-menu.cjs +1 -1
  40. package/dist/context-menu.mjs +123 -1
  41. package/dist/dialog.cjs +1 -1
  42. package/dist/dialog.mjs +40 -40
  43. package/dist/direction.cjs +1 -1
  44. package/dist/direction.mjs +7 -7
  45. package/dist/drawer.cjs +1 -1
  46. package/dist/drawer.mjs +1 -1
  47. package/dist/dropdown-menu.cjs +1 -1
  48. package/dist/dropdown-menu.mjs +126 -1
  49. package/dist/empty.cjs +1 -1
  50. package/dist/empty.mjs +1 -1
  51. package/dist/field.cjs +1 -1
  52. package/dist/field.mjs +36 -36
  53. package/dist/form.cjs +1 -1
  54. package/dist/form.mjs +36 -36
  55. package/dist/hover-card.cjs +1 -1
  56. package/dist/hover-card.mjs +30 -1
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.mjs +36 -36
  59. package/dist/input-group.cjs +1 -1
  60. package/dist/input-group.mjs +26 -26
  61. package/dist/input-otp.cjs +1 -1
  62. package/dist/input-otp.mjs +45 -1
  63. package/dist/input.cjs +1 -1
  64. package/dist/input.mjs +1 -1
  65. package/dist/item.cjs +1 -1
  66. package/dist/item.mjs +28 -27
  67. package/dist/kbd.cjs +1 -1
  68. package/dist/kbd.mjs +1 -1
  69. package/dist/label.cjs +1 -1
  70. package/dist/label.mjs +13 -1
  71. package/dist/marker.cjs +1 -1
  72. package/dist/marker.mjs +4 -3
  73. package/dist/menubar.cjs +1 -1
  74. package/dist/menubar.mjs +133 -1
  75. package/dist/message-scroller.cjs +1 -1
  76. package/dist/message-scroller.mjs +59 -1
  77. package/dist/message.cjs +1 -1
  78. package/dist/message.mjs +1 -1
  79. package/dist/native-select.cjs +1 -1
  80. package/dist/native-select.mjs +1 -1
  81. package/dist/navigation-menu.cjs +1 -1
  82. package/dist/navigation-menu.mjs +79 -1
  83. package/dist/pagination.cjs +1 -1
  84. package/dist/pagination.mjs +14 -14
  85. package/dist/popover.cjs +1 -1
  86. package/dist/popover.mjs +54 -1
  87. package/dist/progress.cjs +1 -1
  88. package/dist/progress.mjs +19 -1
  89. package/dist/questionnaire.cjs +1 -1
  90. package/dist/questionnaire.mjs +168 -1
  91. package/dist/radio-group.cjs +1 -1
  92. package/dist/radio-group.mjs +25 -1
  93. package/dist/resizable.cjs +1 -1
  94. package/dist/resizable.mjs +26 -1
  95. package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
  96. package/dist/scroll-area.cjs +1 -1
  97. package/dist/scroll-area.mjs +35 -1
  98. package/dist/scroll-to-top.cjs +1 -1
  99. package/dist/search.cjs +1 -1
  100. package/dist/search.mjs +1 -1
  101. package/dist/select.cjs +1 -1
  102. package/dist/select.mjs +98 -1
  103. package/dist/separator.cjs +1 -1
  104. package/dist/separator.mjs +15 -1
  105. package/dist/sheet.cjs +1 -1
  106. package/dist/sheet.mjs +38 -38
  107. package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
  108. package/dist/sidebar-uOtFHnBs.js +1 -0
  109. package/dist/sidebar.cjs +1 -1
  110. package/dist/sidebar.mjs +3 -1
  111. package/dist/skeleton.cjs +1 -1
  112. package/dist/skeleton.mjs +1 -1
  113. package/dist/slider.cjs +1 -1
  114. package/dist/slider.mjs +34 -1
  115. package/dist/spinner.cjs +1 -1
  116. package/dist/spinner.mjs +1 -1
  117. package/dist/support-fab.cjs +1 -1
  118. package/dist/switch.cjs +1 -1
  119. package/dist/switch.mjs +18 -1
  120. package/dist/table-of-contents.cjs +1 -1
  121. package/dist/table.cjs +1 -1
  122. package/dist/table.mjs +1 -1
  123. package/dist/tabs.cjs +1 -1
  124. package/dist/tabs.mjs +44 -1
  125. package/dist/text.cjs +1 -1
  126. package/dist/textarea.cjs +1 -1
  127. package/dist/textarea.mjs +1 -1
  128. package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
  129. package/dist/theme-toggle-DkNI3bfh.js +1 -0
  130. package/dist/theme-toggle.cjs +1 -1
  131. package/dist/theme-toggle.mjs +2 -1
  132. package/dist/toast.cjs +1 -1
  133. package/dist/toast.mjs +52 -1
  134. package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
  135. package/dist/toaster-AFud4l6l.js +1 -0
  136. package/dist/toaster.cjs +1 -1
  137. package/dist/toaster.mjs +2 -1
  138. package/dist/toggle-group.cjs +1 -1
  139. package/dist/toggle-group.mjs +49 -1
  140. package/dist/toggle.cjs +1 -1
  141. package/dist/toggle.mjs +35 -1
  142. package/dist/tooltip.cjs +1 -1
  143. package/dist/tooltip.mjs +34 -1
  144. package/package.json +1 -1
  145. package/dist/accordion-Bd0-CZQn.js +0 -1
  146. package/dist/accordion-Cf6DNbLH.mjs +0 -244
  147. package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
  148. package/dist/alert-dialog-C6vNmGBL.js +0 -1
  149. package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
  150. package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
  151. package/dist/avatar-B5PWwGhY.mjs +0 -136
  152. package/dist/avatar-CFhYRM52.js +0 -1
  153. package/dist/calendar-D5qgt2o2.js +0 -1
  154. package/dist/calendar-DIqXNjOR.mjs +0 -3029
  155. package/dist/carousel-D-xEqRCX.js +0 -1
  156. package/dist/carousel-DPjWmM_A.mjs +0 -1169
  157. package/dist/checkbox-DEPm1BBc.mjs +0 -184
  158. package/dist/checkbox-DI9Hn_e_.js +0 -1
  159. package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
  160. package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
  161. package/dist/combobox-C4y8AbZX.mjs +0 -5644
  162. package/dist/combobox-boXp-mix.js +0 -3
  163. package/dist/command-BnW6UIVk.js +0 -1
  164. package/dist/command-Cbsp7PBx.mjs +0 -542
  165. package/dist/context-menu-CwsdFpx1.js +0 -1
  166. package/dist/context-menu-FNgV55ZV.mjs +0 -315
  167. package/dist/dist-7YyzJonC.mjs +0 -39
  168. package/dist/dist-AlmToDtO.mjs +0 -17
  169. package/dist/dist-B76UOZbx.mjs +0 -40
  170. package/dist/dist-B7Ph9-T6.mjs +0 -44
  171. package/dist/dist-B7jnFMko.js +0 -1
  172. package/dist/dist-BOiFyvyS.mjs +0 -10
  173. package/dist/dist-BQkDLAY7.js +0 -1
  174. package/dist/dist-Bal96K8t.js +0 -1
  175. package/dist/dist-Blgp9lfa.js +0 -1
  176. package/dist/dist-BnlI08Je.mjs +0 -96
  177. package/dist/dist-Bu-uFV1C.mjs +0 -191
  178. package/dist/dist-C2BHd5i1.mjs +0 -460
  179. package/dist/dist-C516Vwxy.mjs +0 -116
  180. package/dist/dist-CBlqVBTk.js +0 -1
  181. package/dist/dist-CDcZ8WMF.js +0 -1
  182. package/dist/dist-CDksSmTD.mjs +0 -189
  183. package/dist/dist-CF-qVmmV.js +0 -1
  184. package/dist/dist-CIgGRTmJ.js +0 -1
  185. package/dist/dist-CJqVmdrU.js +0 -1
  186. package/dist/dist-COqM3IM6.mjs +0 -89
  187. package/dist/dist-CbWpCWog.mjs +0 -180
  188. package/dist/dist-CcGLWbPa.mjs +0 -19
  189. package/dist/dist-Cn4F8XlY.mjs +0 -220
  190. package/dist/dist-CoTs6T03.js +0 -1
  191. package/dist/dist-Co_xSt6d.js +0 -1
  192. package/dist/dist-Cu0GG-3j.mjs +0 -15
  193. package/dist/dist-DJqkhIXb.js +0 -1
  194. package/dist/dist-DKI-XYwI.mjs +0 -98
  195. package/dist/dist-DQeXXRYL.mjs +0 -201
  196. package/dist/dist-DW2ltK5-.js +0 -1
  197. package/dist/dist-DWcKY_sJ.js +0 -1
  198. package/dist/dist-DZiOPWLp.js +0 -1
  199. package/dist/dist-DdAeWIwf.js +0 -1
  200. package/dist/dist-DhubV_gU.mjs +0 -4
  201. package/dist/dist-DmY7elIQ.js +0 -1
  202. package/dist/dist-DoWtzxYc.mjs +0 -684
  203. package/dist/dist-DuQlxGyN.js +0 -1
  204. package/dist/dist-KFF7QKuL.js +0 -1
  205. package/dist/dist-RXrZgzkO.js +0 -1
  206. package/dist/dist-R_G5UQRm.js +0 -1
  207. package/dist/dist-dwRwxUPt.mjs +0 -22
  208. package/dist/dist-fzmUl3YX.mjs +0 -553
  209. package/dist/dist-hBsne-A2.mjs +0 -92
  210. package/dist/dist-ljiGYyay.mjs +0 -29
  211. package/dist/dist-pqMcQ1Nk.js +0 -1
  212. package/dist/dist-zmnQp5Xf.js +0 -1
  213. package/dist/dropdown-menu-ChuqZeix.js +0 -1
  214. package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
  215. package/dist/es2015-BooeZGhO.mjs +0 -554
  216. package/dist/es2015-Dggv0vx3.js +0 -41
  217. package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
  218. package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
  219. package/dist/hover-card-BeqCs_2R.js +0 -1
  220. package/dist/hover-card-w8PmCyw2.mjs +0 -176
  221. package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
  222. package/dist/input-otp-CTRB_0Xp.js +0 -20
  223. package/dist/label-Da0kELfR.mjs +0 -26
  224. package/dist/label-JMa1tFfC.js +0 -1
  225. package/dist/menubar-B7sRxpE4.mjs +0 -405
  226. package/dist/menubar-Bd-QKMcw.js +0 -1
  227. package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
  228. package/dist/message-scroller-BJb4Mh_I.js +0 -1
  229. package/dist/navigation-menu-B-RwfscB.mjs +0 -638
  230. package/dist/navigation-menu-kPwxYZCR.js +0 -1
  231. package/dist/popover-Cq5cTNtC.js +0 -1
  232. package/dist/popover-T6Ra737i.mjs +0 -241
  233. package/dist/progress-e9YzxvRo.mjs +0 -90
  234. package/dist/progress-iUSEI7J9.js +0 -6
  235. package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
  236. package/dist/questionnaire-CcymIPae.js +0 -1
  237. package/dist/radio-group-BKpiDcIb.mjs +0 -264
  238. package/dist/radio-group-DPEzCmxe.js +0 -1
  239. package/dist/resizable-ByF0NmN9.mjs +0 -2153
  240. package/dist/resizable-oL3v42zT.js +0 -1
  241. package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
  242. package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
  243. package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
  244. package/dist/scroll-area-s4_ZJK59.js +0 -1
  245. package/dist/select-B_nRxX2Y.mjs +0 -831
  246. package/dist/select-j5_dph9S.js +0 -1
  247. package/dist/separator-Bn-3XUSJ.js +0 -1
  248. package/dist/separator-CCcMNS78.mjs +0 -38
  249. package/dist/sidebar-Cnem2n5A.js +0 -1
  250. package/dist/slider-B2PUTc7W.mjs +0 -484
  251. package/dist/slider-wZuXwuib.js +0 -1
  252. package/dist/switch-CD675xU7.js +0 -1
  253. package/dist/switch-ikzIzrme.mjs +0 -172
  254. package/dist/tabs-DCm5zOYB.mjs +0 -158
  255. package/dist/tabs-fcahDQDp.js +0 -1
  256. package/dist/theme-toggle-BGTJsIA-.js +0 -1
  257. package/dist/toast-C31v9P1K.js +0 -1
  258. package/dist/toast-vU5ISM03.mjs +0 -445
  259. package/dist/toaster-CaJyOCyC.js +0 -1
  260. package/dist/toggle-CSZdCCwX.js +0 -1
  261. package/dist/toggle-Cv9YYwLI.mjs +0 -58
  262. package/dist/toggle-group-RT8wyBwK.js +0 -1
  263. package/dist/toggle-group-qvjasXS-.mjs +0 -166
  264. package/dist/tooltip-7ERoN5mV.mjs +0 -386
  265. package/dist/tooltip-CC9_spXT.js +0 -1
@@ -1,191 +0,0 @@
1
- import { t as e } from "./dist-B76UOZbx.mjs";
2
- import { t } from "./dist-C2BHd5i1.mjs";
3
- import { a as n } from "./dist-C516Vwxy.mjs";
4
- import { t as r } from "./dist-COqM3IM6.mjs";
5
- import { t as i } from "./dist-Cu0GG-3j.mjs";
6
- import { t as a } from "./dist-B7Ph9-T6.mjs";
7
- import { t as o } from "./dist-AlmToDtO.mjs";
8
- import { t as s } from "./dist-DKI-XYwI.mjs";
9
- import { n as c } from "./dist-dwRwxUPt.mjs";
10
- import { t as l } from "./dist-DhubV_gU.mjs";
11
- import * as u from "react";
12
- import { jsx as d } from "react/jsx-runtime";
13
- // ../../node_modules/.bun/@radix-ui+react-use-is-hydrated@0.1.3+0ac650c021fb1b59/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs
14
- var f = Object.defineProperty, p = (e, t) => f(e, "name", {
15
- value: t,
16
- configurable: !0
17
- }), m = !1;
18
- function h() {
19
- let [e, t] = u.useState(m);
20
- return u.useEffect(() => {
21
- m || (m = !0, t(!0));
22
- }, []), e;
23
- }
24
- p(h, "useIsHydrated");
25
- var g = u.useSyncExternalStore;
26
- function _() {
27
- return () => {};
28
- }
29
- p(_, "subscribe");
30
- function v() {
31
- return g(_, () => !0, () => !1);
32
- }
33
- p(v, "useIsHydratedModern");
34
- var y = typeof g == "function" ? v : h, b = Object.defineProperty, x = (e, t) => b(e, "name", {
35
- value: t,
36
- configurable: !0
37
- }), S = "rovingFocusGroup.onEntryFocus", C = {
38
- bubbles: !1,
39
- cancelable: !0
40
- }, w = "RovingFocusGroup", [T, E, D] = t(w), [O, k] = r(w, [D]), A = {
41
- Vertical: "vertical",
42
- Horizontal: "horizontal"
43
- }, j = {
44
- LTR: "ltr",
45
- RTL: "rtl"
46
- }, [M, N] = O(w), P = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(e, t) {
47
- return /* @__PURE__ */ d(T.Provider, {
48
- scope: e.__scopeRovingFocusGroup,
49
- children: /* @__PURE__ */ d(T.Slot, {
50
- scope: e.__scopeRovingFocusGroup,
51
- children: /* @__PURE__ */ d(F, {
52
- ...e,
53
- ref: t
54
- })
55
- })
56
- });
57
- }, "RovingFocusGroup")), F = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(t, r) {
58
- let { __scopeRovingFocusGroup: i, orientation: l, loop: f = !1, dir: p, currentTabStopId: m, defaultCurrentTabStopId: h, onCurrentTabStopIdChange: g, onEntryFocus: _, preventScrollOnEntryFocus: v = !1, ...y } = t, b = u.useRef(null), x = n(r, b), T = c(p), [D, O] = s({
59
- prop: m,
60
- defaultProp: h ?? null,
61
- onChange: g,
62
- caller: w
63
- }), [k, A] = u.useState(!1), j = o(_), N = E(i), P = u.useRef(!1), [F, I] = u.useState(0);
64
- return u.useEffect(() => {
65
- let e = b.current;
66
- if (e) return e.addEventListener(S, j), () => e.removeEventListener(S, j);
67
- }, [j]), /* @__PURE__ */ d(M, {
68
- scope: i,
69
- orientation: l,
70
- dir: T,
71
- loop: f,
72
- currentTabStopId: D,
73
- onItemFocus: u.useCallback((e) => O(e), [O]),
74
- onItemShiftTab: u.useCallback(() => A(!0), []),
75
- onFocusableItemAdd: u.useCallback(() => I((e) => e + 1), []),
76
- onFocusableItemRemove: u.useCallback(() => I((e) => e - 1), []),
77
- children: /* @__PURE__ */ d(a.div, {
78
- tabIndex: k || F === 0 ? -1 : 0,
79
- "data-orientation": l,
80
- ...y,
81
- ref: x,
82
- style: {
83
- outline: "none",
84
- ...t.style
85
- },
86
- onMouseDown: e(t.onMouseDown, () => {
87
- P.current = !0;
88
- }),
89
- onFocus: e(t.onFocus, (e) => {
90
- let t = !P.current;
91
- if (e.target === e.currentTarget && t && !k) {
92
- let t = new CustomEvent(S, C);
93
- if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
94
- let e = N().filter((e) => e.focusable);
95
- V([
96
- e.find((e) => e.active),
97
- e.find((e) => e.id === D),
98
- ...e
99
- ].filter(Boolean).map((e) => e.ref.current), v);
100
- }
101
- }
102
- P.current = !1;
103
- }),
104
- onBlur: e(t.onBlur, () => A(!1))
105
- })
106
- });
107
- }, "RovingFocusGroupImpl")), I = "RovingFocusGroupItem", L = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(t, n) {
108
- let { __scopeRovingFocusGroup: r, focusable: o = !0, active: s = !1, tabStopId: c, children: f, ...p } = t, m = i(), h = c || m, g = N(I, r), _ = g.currentTabStopId === h, v = E(r), { onFocusableItemAdd: b, onFocusableItemRemove: x, currentTabStopId: S } = g, C = y();
109
- return l(() => {
110
- if (C && o) return b(), () => x();
111
- }, [
112
- C,
113
- o,
114
- b,
115
- x
116
- ]), u.useEffect(() => {
117
- if (!C && o) return b(), () => x();
118
- }, [
119
- C,
120
- o,
121
- b,
122
- x
123
- ]), /* @__PURE__ */ d(T.ItemSlot, {
124
- scope: r,
125
- id: h,
126
- focusable: o,
127
- active: s,
128
- children: /* @__PURE__ */ d(a.span, {
129
- tabIndex: _ ? 0 : -1,
130
- "data-orientation": g.orientation,
131
- ...p,
132
- ref: n,
133
- onMouseDown: e(t.onMouseDown, (e) => {
134
- o ? g.onItemFocus(h) : e.preventDefault();
135
- }),
136
- onFocus: e(t.onFocus, () => g.onItemFocus(h)),
137
- onKeyDown: e(t.onKeyDown, (e) => {
138
- if (e.key === "Tab" && e.shiftKey) {
139
- g.onItemShiftTab();
140
- return;
141
- }
142
- if (e.target !== e.currentTarget) return;
143
- let t = B(e, g.orientation, g.dir);
144
- if (t !== void 0) {
145
- if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
146
- e.preventDefault();
147
- let n = v().filter((e) => e.focusable).map((e) => e.ref.current);
148
- if (t === "last") n.reverse();
149
- else if (t === "prev" || t === "next") {
150
- t === "prev" && n.reverse();
151
- let r = n.indexOf(e.currentTarget);
152
- n = g.loop ? H(n, r + 1) : n.slice(r + 1);
153
- }
154
- setTimeout(() => V(n));
155
- }
156
- }),
157
- children: typeof f == "function" ? f({
158
- isCurrentTabStop: _,
159
- hasTabStop: S != null
160
- }) : f
161
- })
162
- });
163
- }, "RovingFocusGroupItem")), R = {
164
- ArrowLeft: "prev",
165
- ArrowUp: "prev",
166
- ArrowRight: "next",
167
- ArrowDown: "next",
168
- PageUp: "first",
169
- Home: "first",
170
- PageDown: "last",
171
- End: "last"
172
- };
173
- function z(e, t) {
174
- return t === j.RTL ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
175
- }
176
- x(z, "getDirectionAwareKey");
177
- function B(e, t, n) {
178
- let r = z(e.key, n);
179
- if (!(t === A.Vertical && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === A.Horizontal && ["ArrowUp", "ArrowDown"].includes(r))) return R[r];
180
- }
181
- x(B, "getFocusIntent");
182
- function V(e, t = !1) {
183
- let n = document.activeElement;
184
- for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
185
- }
186
- x(V, "focusFirst");
187
- function H(e, t) {
188
- return e.map((n, r) => e[(t + r) % e.length]);
189
- }
190
- x(H, "wrapArray");
191
- export { L as n, k as r, P as t };
@@ -1,460 +0,0 @@
1
- import { t as e } from "./dist-COqM3IM6.mjs";
2
- import { a as t, n } from "./dist-C516Vwxy.mjs";
3
- import { t as r } from "./dist-DhubV_gU.mjs";
4
- import * as i from "react";
5
- import { jsx as a } from "react/jsx-runtime";
6
- // ../../node_modules/.bun/@radix-ui+react-collection@1.2.0+2b23df507bdda662/node_modules/@radix-ui/react-collection/dist/index.mjs
7
- var o = Object.defineProperty, s = (e, t) => o(e, "name", {
8
- value: t,
9
- configurable: !0
10
- });
11
- // @__NO_SIDE_EFFECTS__
12
- function c(r) {
13
- let o = r + "CollectionProvider", [c, l] = e(o), [u, d] = c(o, {
14
- collectionRef: { current: null },
15
- itemMap: /* @__PURE__ */ new Map()
16
- }), f = /* @__PURE__ */ s((e) => {
17
- let { scope: t, children: n } = e, r = i.useRef(null), o = i.useRef(/* @__PURE__ */ new Map()).current;
18
- return /* @__PURE__ */ a(u, {
19
- scope: t,
20
- itemMap: o,
21
- collectionRef: r,
22
- children: n
23
- });
24
- }, "CollectionProvider");
25
- f.displayName = o;
26
- let p = r + "CollectionSlot", m = n(p), h = i.forwardRef((e, n) => {
27
- let { scope: r, children: i } = e, o = d(p, r), s = t(n, o.collectionRef);
28
- return /* @__PURE__ */ a(m, {
29
- ref: s,
30
- children: i
31
- });
32
- });
33
- h.displayName = p;
34
- let g = r + "CollectionItemSlot", _ = "data-radix-collection-item", v = n(g), y = i.forwardRef((e, n) => {
35
- let { scope: r, children: o, ...s } = e, c = i.useRef(null), l = t(n, c), u = d(g, r);
36
- return i.useEffect(() => (u.itemMap.set(c, {
37
- ref: c,
38
- ...s
39
- }), () => void u.itemMap.delete(c))), /* @__PURE__ */ a(v, {
40
- [_]: "",
41
- ref: l,
42
- children: o
43
- });
44
- });
45
- y.displayName = g;
46
- function b(e) {
47
- let t = d(r + "CollectionConsumer", e);
48
- return i.useCallback(() => {
49
- let e = t.collectionRef.current;
50
- if (!e) return [];
51
- let n = Array.from(e.querySelectorAll(`[${_}]`));
52
- return Array.from(t.itemMap.values()).sort((e, t) => n.indexOf(e.ref.current) - n.indexOf(t.ref.current));
53
- }, [t.collectionRef, t.itemMap]);
54
- }
55
- return s(b, "useCollection"), [
56
- {
57
- Provider: f,
58
- Slot: h,
59
- ItemSlot: y
60
- },
61
- b,
62
- l
63
- ];
64
- }
65
- s(c, "createCollection");
66
- var l = /* @__PURE__ */ new WeakMap(), u = class e extends Map {
67
- static {
68
- s(this, "OrderedDict");
69
- }
70
- #e;
71
- constructor(e) {
72
- super(e), this.#e = [...super.keys()], l.set(this, !0);
73
- }
74
- set(e, t) {
75
- return l.get(this) && !this.has(e) && this.#e.push(e), super.set(e, t), this;
76
- }
77
- insert(e, t, n) {
78
- let r = this.has(t), i = r ? this.size : this.size + 1, a = p(e), o = a >= 0 ? Math.min(a, i - 1) : Math.max(i + a, 0);
79
- if (r ? this.#e.indexOf(t) === o : o === this.size) return this.set(t, n), this;
80
- let s = this.#e.filter((e) => e !== t);
81
- s.splice(o, 0, t);
82
- let c = s.map((e) => [e, e === t ? n : this.get(e)]);
83
- this.clear();
84
- for (let [e, t] of c) this.set(e, t);
85
- return this;
86
- }
87
- with(t, n, r) {
88
- let i = new e(this);
89
- return i.insert(t, n, r), i;
90
- }
91
- before(e) {
92
- let t = this.#e.indexOf(e) - 1;
93
- if (!(t < 0)) return this.entryAt(t);
94
- }
95
- setBefore(e, t, n) {
96
- let r = this.#e.indexOf(e);
97
- if (r === -1) return this;
98
- let i = this.#e.indexOf(t), a = i !== -1 && i < r ? r - 1 : r;
99
- return this.insert(a, t, n);
100
- }
101
- after(e) {
102
- let t = this.#e.indexOf(e);
103
- if (t = t === -1 || t === this.size - 1 ? -1 : t + 1, t !== -1) return this.entryAt(t);
104
- }
105
- setAfter(e, t, n) {
106
- let r = this.#e.indexOf(e);
107
- if (r === -1) return this;
108
- let i = this.#e.indexOf(t), a = i !== -1 && i <= r ? r : r + 1;
109
- return this.insert(a, t, n);
110
- }
111
- first() {
112
- return this.entryAt(0);
113
- }
114
- last() {
115
- return this.entryAt(-1);
116
- }
117
- clear() {
118
- return this.#e = [], super.clear();
119
- }
120
- delete(e) {
121
- let t = super.delete(e);
122
- return t && this.#e.splice(this.#e.indexOf(e), 1), t;
123
- }
124
- deleteAt(e) {
125
- let t = this.keyAt(e);
126
- return t !== void 0 && this.delete(t);
127
- }
128
- at(e) {
129
- let t = d(this.#e, e);
130
- if (t !== void 0) return this.get(t);
131
- }
132
- entryAt(e) {
133
- let t = d(this.#e, e);
134
- if (t !== void 0) return [t, this.get(t)];
135
- }
136
- indexOf(e) {
137
- return this.#e.indexOf(e);
138
- }
139
- keyAt(e) {
140
- return d(this.#e, e);
141
- }
142
- from(e, t) {
143
- let n = this.indexOf(e);
144
- if (n === -1) return;
145
- let r = n + t;
146
- return r < 0 && (r = 0), r >= this.size && (r = this.size - 1), this.at(r);
147
- }
148
- keyFrom(e, t) {
149
- let n = this.indexOf(e);
150
- if (n === -1) return;
151
- let r = n + t;
152
- return r < 0 && (r = 0), r >= this.size && (r = this.size - 1), this.keyAt(r);
153
- }
154
- find(e, t) {
155
- let n = 0;
156
- for (let r of this) {
157
- if (Reflect.apply(e, t, [
158
- r,
159
- n,
160
- this
161
- ])) return r;
162
- n++;
163
- }
164
- }
165
- findIndex(e, t) {
166
- let n = 0;
167
- for (let r of this) {
168
- if (Reflect.apply(e, t, [
169
- r,
170
- n,
171
- this
172
- ])) return n;
173
- n++;
174
- }
175
- return -1;
176
- }
177
- filter(t, n) {
178
- let r = [], i = 0;
179
- for (let e of this) Reflect.apply(t, n, [
180
- e,
181
- i,
182
- this
183
- ]) && r.push(e), i++;
184
- return new e(r);
185
- }
186
- map(t, n) {
187
- let r = [], i = 0;
188
- for (let e of this) r.push([e[0], Reflect.apply(t, n, [
189
- e,
190
- i,
191
- this
192
- ])]), i++;
193
- return new e(r);
194
- }
195
- reduce(...e) {
196
- let [t, n] = e, r = e.length > 1;
197
- if (!r && this.size === 0) throw TypeError("Reduce of empty OrderedDict with no initial value");
198
- let i = 0, a = n;
199
- for (let e of this) a = i === 0 && !r ? e : Reflect.apply(t, this, [
200
- a,
201
- e,
202
- i,
203
- this
204
- ]), i++;
205
- return a;
206
- }
207
- reduceRight(...e) {
208
- let [t, n] = e, r = e.length > 1;
209
- if (!r && this.size === 0) throw TypeError("Reduce of empty OrderedDict with no initial value");
210
- let i = n;
211
- for (let e = this.size - 1; e >= 0; e--) {
212
- let n = this.entryAt(e);
213
- i = e === this.size - 1 && !r ? n : Reflect.apply(t, this, [
214
- i,
215
- n,
216
- e,
217
- this
218
- ]);
219
- }
220
- return i;
221
- }
222
- sort(e) {
223
- if (typeof e != "function") throw TypeError("OrderedDict.sort requires a compare function");
224
- let t = [...this.entries()].sort(e);
225
- this.clear();
226
- for (let [e, n] of t) this.set(e, n);
227
- return this;
228
- }
229
- toSorted(t) {
230
- if (typeof t != "function") throw TypeError("OrderedDict.toSorted requires a compare function");
231
- let n = [...this.entries()].sort(t);
232
- return new e(n);
233
- }
234
- toReversed() {
235
- let t = new e();
236
- for (let e = this.size - 1; e >= 0; e--) {
237
- let n = this.keyAt(e), r = this.get(n);
238
- t.set(n, r);
239
- }
240
- return t;
241
- }
242
- toSpliced(...t) {
243
- let n = [...this.entries()];
244
- return n.splice(...t), new e(n);
245
- }
246
- slice(t, n) {
247
- let r = new e();
248
- for (let e of this.#e.slice(t, n)) r.set(e, this.get(e));
249
- return r;
250
- }
251
- every(e, t) {
252
- let n = 0;
253
- for (let r of this) {
254
- if (!Reflect.apply(e, t, [
255
- r,
256
- n,
257
- this
258
- ])) return !1;
259
- n++;
260
- }
261
- return !0;
262
- }
263
- some(e, t) {
264
- let n = 0;
265
- for (let r of this) {
266
- if (Reflect.apply(e, t, [
267
- r,
268
- n,
269
- this
270
- ])) return !0;
271
- n++;
272
- }
273
- return !1;
274
- }
275
- };
276
- function d(e, t) {
277
- if ("at" in Array.prototype) return Array.prototype.at.call(e, t);
278
- let n = f(e, t);
279
- return n === -1 ? void 0 : e[n];
280
- }
281
- s(d, "at");
282
- function f(e, t) {
283
- let n = e.length, r = p(t), i = r >= 0 ? r : n + r;
284
- return i < 0 || i >= n ? -1 : i;
285
- }
286
- s(f, "toSafeIndex");
287
- function p(e) {
288
- return e !== e || e === 0 ? 0 : Math.trunc(e);
289
- }
290
- s(p, "toSafeInteger");
291
- // @__NO_SIDE_EFFECTS__
292
- function m(o) {
293
- let c = o + "CollectionProvider", [l, d] = e(c), [f, p] = l(c);
294
- f.displayName = o + "CollectionStableContextProvider";
295
- let [m, g] = l(c);
296
- m.displayName = o + "CollectionStatefulContextProvider";
297
- let b = /* @__PURE__ */ s(({ state: e, ...t }) => e ? /* @__PURE__ */ a(S, {
298
- ...t,
299
- state: e
300
- }) : /* @__PURE__ */ a(x, { ...t }), "CollectionProvider");
301
- b.displayName = c;
302
- let x = /* @__PURE__ */ s((e) => {
303
- let t = k();
304
- return /* @__PURE__ */ a(S, {
305
- ...e,
306
- state: t
307
- });
308
- }, "CollectionInit");
309
- x.displayName = o + "CollectionInit";
310
- let S = /* @__PURE__ */ s((e) => {
311
- let { scope: n, children: r, state: o } = e, s = i.useRef(null), [c, l] = i.useState(null), d = t(s, l), [p, h] = o, g = i.useRef(new u()), b = i.useCallback(() => {
312
- let e = g.current;
313
- return _(e) || e.sort(v), e;
314
- }, []);
315
- return i.useEffect(() => {
316
- if (!c) return;
317
- let e = y(() => {
318
- h((e) => {
319
- let t = e.toSorted(v);
320
- return t.some(([t], n) => e.keyAt(n) !== t) ? t : e;
321
- });
322
- });
323
- return e.observe(c, {
324
- childList: !0,
325
- subtree: !0
326
- }), () => {
327
- e.disconnect();
328
- };
329
- }, [c, h]), /* @__PURE__ */ a(f, {
330
- scope: n,
331
- collectionElementRef: d,
332
- collectionElementRefObject: s,
333
- getCollection: b,
334
- setCollection: h,
335
- registryRef: g,
336
- children: /* @__PURE__ */ a(m, {
337
- scope: n,
338
- collectionElement: c,
339
- collection: p,
340
- children: r
341
- })
342
- });
343
- }, "CollectionProviderImpl");
344
- S.displayName = o + "CollectionProviderImpl";
345
- let C = o + "CollectionSlot", w = n(C), T = i.forwardRef((e, n) => {
346
- let { scope: r, children: i } = e, o = p(C, r), s = t(n, o.collectionElementRef);
347
- return /* @__PURE__ */ a(w, {
348
- ref: s,
349
- children: i
350
- });
351
- });
352
- T.displayName = C;
353
- let E = o + "CollectionItemSlot", D = n(E), O = i.forwardRef((e, n) => {
354
- let { scope: o, children: s, ...c } = e, l = i.useRef(null), { setCollection: d, registryRef: f } = p(E, o), m = i.useRef(c);
355
- h(m.current, c) || (m.current = c);
356
- let g = m.current, _ = i.useCallback((e) => {
357
- let t = f.current;
358
- e ? t.set(e, {
359
- ...m.current,
360
- element: e
361
- }) : l.current && t.delete(l.current);
362
- }, [f]), y = t(n, _, l);
363
- r(() => {
364
- let e = l.current, t = f.current;
365
- e && t.has(e) && t.set(e, {
366
- ...g,
367
- element: e
368
- });
369
- }, [g, f]);
370
- let b = i.useRef(null);
371
- return i.useEffect(() => {
372
- let e = l.current, t = b.current;
373
- ((t?.element ?? null) !== e || e && t?.itemData !== g) && (b.current = e ? {
374
- element: e,
375
- itemData: g
376
- } : null, d((n) => {
377
- let r = new u(n);
378
- return t && t.element !== e && r.delete(t.element), e && r.set(e, {
379
- ...g,
380
- element: e
381
- }), r.sort(v);
382
- }));
383
- }), i.useEffect(() => () => {
384
- let e = b.current;
385
- b.current = null, e && d((t) => {
386
- if (!t.has(e.element)) return t;
387
- let n = new u(t);
388
- return n.delete(e.element), n;
389
- });
390
- }, [d]), /* @__PURE__ */ a(D, {
391
- "data-radix-collection-item": "",
392
- ref: y,
393
- children: s
394
- });
395
- });
396
- O.displayName = E;
397
- function k() {
398
- return i.useState(new u());
399
- }
400
- s(k, "useInitCollection");
401
- function A(e) {
402
- let { collection: t } = g(o + "CollectionConsumer", e);
403
- return t;
404
- }
405
- s(A, "useCollection");
406
- function j(e) {
407
- let { getCollection: t } = p(o + "CollectionConsumer", e);
408
- return t;
409
- }
410
- return s(j, "useGetCollection"), [{
411
- Provider: b,
412
- Slot: T,
413
- ItemSlot: O
414
- }, {
415
- createCollectionScope: d,
416
- useCollection: A,
417
- useGetCollection: j,
418
- useInitCollection: k
419
- }];
420
- }
421
- s(m, "createCollection");
422
- function h(e, t) {
423
- if (e === t) return !0;
424
- if (typeof e != "object" || typeof t != "object" || e == null || t == null) return !1;
425
- let n = Object.keys(e), r = Object.keys(t);
426
- if (n.length !== r.length) return !1;
427
- for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || e[r] !== t[r]) return !1;
428
- return !0;
429
- }
430
- s(h, "shallowEqual");
431
- function g(e, t) {
432
- return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
433
- }
434
- s(g, "isElementPreceding");
435
- function _(e) {
436
- let t;
437
- for (let n of e.keys()) {
438
- if (t) {
439
- let e = t.compareDocumentPosition(n);
440
- if (!(e & Node.DOCUMENT_POSITION_DISCONNECTED) && e & Node.DOCUMENT_POSITION_PRECEDING) return !1;
441
- }
442
- t = n;
443
- }
444
- return !0;
445
- }
446
- s(_, "isInDocumentOrder");
447
- function v(e, t) {
448
- return !e[1].element || !t[1].element ? 0 : g(e[1].element, t[1].element) ? -1 : 1;
449
- }
450
- s(v, "sortByDocumentPosition");
451
- function y(e) {
452
- return new MutationObserver((t) => {
453
- for (let n of t) if (n.type === "childList") {
454
- e();
455
- return;
456
- }
457
- });
458
- }
459
- s(y, "getChildListObserver");
460
- export { m as n, c as t };