@anoki/fse-ui 1.0.611 → 1.0.613

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 (340) hide show
  1. package/dist/components/ui/AuthorWithImage/AuthorWithImage.css +1 -1
  2. package/dist/components/ui/DelegateFilterDropDown/DelegateFilterDropDown.css +1 -1
  3. package/dist/components/ui/GroupCodeExemptionFilterDropDown/GroupCodeExemptionFilterDropDown.css +1 -1
  4. package/dist/index.cjs177.js +1 -1
  5. package/dist/index.cjs177.js.map +1 -1
  6. package/dist/index.cjs178.js +1 -1
  7. package/dist/index.cjs178.js.map +1 -1
  8. package/dist/index.cjs182.js +1 -1
  9. package/dist/index.cjs182.js.map +1 -1
  10. package/dist/index.cjs191.js +1 -1
  11. package/dist/index.cjs191.js.map +1 -1
  12. package/dist/index.cjs195.js +1 -1
  13. package/dist/index.cjs195.js.map +1 -1
  14. package/dist/index.cjs200.js +1 -1
  15. package/dist/index.cjs207.js +1 -1
  16. package/dist/index.cjs229.js +1 -1
  17. package/dist/index.cjs236.js +1 -1
  18. package/dist/index.cjs246.js +1 -1
  19. package/dist/index.cjs253.js +1 -1
  20. package/dist/index.cjs260.js +1 -1
  21. package/dist/index.cjs265.js +1 -1
  22. package/dist/index.cjs272.js +1 -1
  23. package/dist/index.cjs280.js +1 -1
  24. package/dist/index.cjs318.js +1 -1
  25. package/dist/index.cjs34.js +1 -1
  26. package/dist/index.cjs34.js.map +1 -1
  27. package/dist/index.cjs346.js +1 -1
  28. package/dist/index.cjs347.js +1 -1
  29. package/dist/index.cjs356.js +3 -12
  30. package/dist/index.cjs356.js.map +1 -1
  31. package/dist/index.cjs357.js +27 -1
  32. package/dist/index.cjs357.js.map +1 -1
  33. package/dist/index.cjs358.js +1 -2
  34. package/dist/index.cjs358.js.map +1 -1
  35. package/dist/index.cjs359.js +1 -27
  36. package/dist/index.cjs359.js.map +1 -1
  37. package/dist/index.cjs360.js +1 -1
  38. package/dist/index.cjs360.js.map +1 -1
  39. package/dist/index.cjs361.js +2 -1
  40. package/dist/index.cjs361.js.map +1 -1
  41. package/dist/index.cjs367.js +1 -1
  42. package/dist/index.cjs368.js +1 -1
  43. package/dist/index.cjs369.js +1 -1
  44. package/dist/index.cjs370.js +1 -1
  45. package/dist/index.cjs372.js +1 -1
  46. package/dist/index.cjs372.js.map +1 -1
  47. package/dist/index.cjs375.js +1 -1
  48. package/dist/index.cjs375.js.map +1 -1
  49. package/dist/index.cjs376.js +1 -1
  50. package/dist/index.cjs376.js.map +1 -1
  51. package/dist/index.cjs377.js +1 -1
  52. package/dist/index.cjs377.js.map +1 -1
  53. package/dist/index.cjs378.js +1 -1
  54. package/dist/index.cjs378.js.map +1 -1
  55. package/dist/index.cjs379.js +1 -1
  56. package/dist/index.cjs379.js.map +1 -1
  57. package/dist/index.cjs380.js +1 -1
  58. package/dist/index.cjs380.js.map +1 -1
  59. package/dist/index.cjs381.js +1 -1
  60. package/dist/index.cjs381.js.map +1 -1
  61. package/dist/index.cjs382.js +1 -1
  62. package/dist/index.cjs382.js.map +1 -1
  63. package/dist/index.cjs383.js +1 -1
  64. package/dist/index.cjs383.js.map +1 -1
  65. package/dist/index.cjs384.js +1 -1
  66. package/dist/index.cjs384.js.map +1 -1
  67. package/dist/index.cjs385.js +1 -1
  68. package/dist/index.cjs385.js.map +1 -1
  69. package/dist/index.cjs386.js +1 -1
  70. package/dist/index.cjs386.js.map +1 -1
  71. package/dist/index.cjs387.js +1 -1
  72. package/dist/index.cjs387.js.map +1 -1
  73. package/dist/index.cjs388.js +1 -1
  74. package/dist/index.cjs388.js.map +1 -1
  75. package/dist/index.cjs389.js +1 -1
  76. package/dist/index.cjs389.js.map +1 -1
  77. package/dist/index.cjs390.js +2 -0
  78. package/dist/index.cjs390.js.map +1 -0
  79. package/dist/index.cjs391.js +1 -1
  80. package/dist/index.cjs391.js.map +1 -1
  81. package/dist/index.cjs392.js +1 -1
  82. package/dist/index.cjs392.js.map +1 -1
  83. package/dist/index.cjs393.js +1 -1
  84. package/dist/index.cjs393.js.map +1 -1
  85. package/dist/index.cjs394.js +1 -1
  86. package/dist/index.cjs394.js.map +1 -1
  87. package/dist/index.cjs395.js +1 -1
  88. package/dist/index.cjs395.js.map +1 -1
  89. package/dist/index.cjs396.js +1 -1
  90. package/dist/index.cjs396.js.map +1 -1
  91. package/dist/index.cjs397.js +1 -1
  92. package/dist/index.cjs397.js.map +1 -1
  93. package/dist/index.cjs398.js +1 -4
  94. package/dist/index.cjs398.js.map +1 -1
  95. package/dist/index.cjs407.js +1 -1
  96. package/dist/index.cjs407.js.map +1 -1
  97. package/dist/index.cjs408.js +1 -1
  98. package/dist/index.cjs408.js.map +1 -1
  99. package/dist/index.cjs409.js +2 -0
  100. package/dist/index.cjs409.js.map +1 -0
  101. package/dist/index.cjs410.js +5 -0
  102. package/dist/index.cjs410.js.map +1 -0
  103. package/dist/index.cjs411.js +1 -1
  104. package/dist/index.cjs411.js.map +1 -1
  105. package/dist/index.cjs412.js +1 -1
  106. package/dist/index.cjs412.js.map +1 -1
  107. package/dist/index.cjs413.js +1 -1
  108. package/dist/index.cjs413.js.map +1 -1
  109. package/dist/{index.cjs402.js → index.cjs414.js} +1 -1
  110. package/dist/{index.cjs402.js.map → index.cjs414.js.map} +1 -1
  111. package/dist/{index.cjs404.js → index.cjs422.js} +2 -2
  112. package/dist/{index.cjs404.js.map → index.cjs422.js.map} +1 -1
  113. package/dist/{index.cjs405.js → index.cjs423.js} +2 -2
  114. package/dist/{index.cjs405.js.map → index.cjs423.js.map} +1 -1
  115. package/dist/{index.cjs406.js → index.cjs424.js} +2 -2
  116. package/dist/{index.cjs406.js.map → index.cjs424.js.map} +1 -1
  117. package/dist/index.cjs425.js +1 -1
  118. package/dist/index.cjs425.js.map +1 -1
  119. package/dist/index.cjs426.js +1 -1
  120. package/dist/index.cjs426.js.map +1 -1
  121. package/dist/index.cjs427.js +1 -1
  122. package/dist/index.cjs427.js.map +1 -1
  123. package/dist/index.cjs428.js +1 -1
  124. package/dist/index.cjs428.js.map +1 -1
  125. package/dist/index.cjs429.js +2 -0
  126. package/dist/index.cjs429.js.map +1 -0
  127. package/dist/index.cjs430.js +2 -0
  128. package/dist/index.cjs430.js.map +1 -0
  129. package/dist/index.cjs431.js +2 -0
  130. package/dist/index.cjs431.js.map +1 -0
  131. package/dist/index.cjs432.js +2 -0
  132. package/dist/index.cjs432.js.map +1 -0
  133. package/dist/index.cjs435.js +1 -1
  134. package/dist/index.cjs438.js +1 -1
  135. package/dist/index.cjs441.js +1 -1
  136. package/dist/index.cjs445.js +1 -1
  137. package/dist/index.cjs446.js +1 -1
  138. package/dist/index.cjs446.js.map +1 -1
  139. package/dist/index.cjs447.js +1 -1
  140. package/dist/index.cjs447.js.map +1 -1
  141. package/dist/index.cjs448.js +1 -1
  142. package/dist/index.cjs448.js.map +1 -1
  143. package/dist/index.cjs449.js +1 -1
  144. package/dist/index.cjs449.js.map +1 -1
  145. package/dist/index.cjs450.js +5 -1
  146. package/dist/index.cjs450.js.map +1 -1
  147. package/dist/index.cjs451.js +1 -5
  148. package/dist/index.cjs451.js.map +1 -1
  149. package/dist/index.cjs452.js +1 -1
  150. package/dist/index.cjs452.js.map +1 -1
  151. package/dist/index.cjs453.js +1 -1
  152. package/dist/index.cjs453.js.map +1 -1
  153. package/dist/index.cjs459.js +1 -1
  154. package/dist/index.cjs459.js.map +1 -1
  155. package/dist/index.cjs460.js +1 -1
  156. package/dist/index.cjs460.js.map +1 -1
  157. package/dist/index.d.ts +1 -2
  158. package/dist/index.es177.js +76 -71
  159. package/dist/index.es177.js.map +1 -1
  160. package/dist/index.es178.js +11 -1
  161. package/dist/index.es178.js.map +1 -1
  162. package/dist/index.es182.js +63 -58
  163. package/dist/index.es182.js.map +1 -1
  164. package/dist/index.es191.js +29 -26
  165. package/dist/index.es191.js.map +1 -1
  166. package/dist/index.es195.js +18 -15
  167. package/dist/index.es195.js.map +1 -1
  168. package/dist/index.es200.js +1 -1
  169. package/dist/index.es207.js +2 -2
  170. package/dist/index.es229.js +1 -1
  171. package/dist/index.es236.js +3 -3
  172. package/dist/index.es246.js +1 -1
  173. package/dist/index.es253.js +8 -8
  174. package/dist/index.es260.js +1 -1
  175. package/dist/index.es265.js +1 -1
  176. package/dist/index.es272.js +1 -1
  177. package/dist/index.es280.js +2 -2
  178. package/dist/index.es318.js +1 -1
  179. package/dist/index.es34.js +80 -91
  180. package/dist/index.es34.js.map +1 -1
  181. package/dist/index.es346.js +2 -2
  182. package/dist/index.es347.js +3 -3
  183. package/dist/index.es356.js +146 -307
  184. package/dist/index.es356.js.map +1 -1
  185. package/dist/index.es357.js +3674 -5
  186. package/dist/index.es357.js.map +1 -1
  187. package/dist/index.es358.js +5 -520
  188. package/dist/index.es358.js.map +1 -1
  189. package/dist/index.es359.js +2 -3675
  190. package/dist/index.es359.js.map +1 -1
  191. package/dist/index.es360.js +5 -5
  192. package/dist/index.es360.js.map +1 -1
  193. package/dist/index.es361.js +521 -2
  194. package/dist/index.es361.js.map +1 -1
  195. package/dist/index.es367.js +1 -1
  196. package/dist/index.es368.js +1 -1
  197. package/dist/index.es369.js +13 -13
  198. package/dist/index.es370.js +1 -1
  199. package/dist/index.es372.js +15 -53
  200. package/dist/index.es372.js.map +1 -1
  201. package/dist/index.es375.js +10 -124
  202. package/dist/index.es375.js.map +1 -1
  203. package/dist/index.es376.js +51 -13
  204. package/dist/index.es376.js.map +1 -1
  205. package/dist/index.es377.js +41 -130
  206. package/dist/index.es377.js.map +1 -1
  207. package/dist/index.es378.js +7 -217
  208. package/dist/index.es378.js.map +1 -1
  209. package/dist/index.es379.js +124 -13
  210. package/dist/index.es379.js.map +1 -1
  211. package/dist/index.es380.js +13 -67
  212. package/dist/index.es380.js.map +1 -1
  213. package/dist/index.es381.js +127 -170
  214. package/dist/index.es381.js.map +1 -1
  215. package/dist/index.es382.js +217 -49
  216. package/dist/index.es382.js.map +1 -1
  217. package/dist/index.es383.js +12 -7
  218. package/dist/index.es383.js.map +1 -1
  219. package/dist/index.es384.js +68 -3
  220. package/dist/index.es384.js.map +1 -1
  221. package/dist/index.es385.js +177 -11
  222. package/dist/index.es385.js.map +1 -1
  223. package/dist/index.es386.js +48 -203
  224. package/dist/index.es386.js.map +1 -1
  225. package/dist/index.es387.js +8 -21
  226. package/dist/index.es387.js.map +1 -1
  227. package/dist/index.es388.js +4 -25
  228. package/dist/index.es388.js.map +1 -1
  229. package/dist/index.es389.js +5 -392
  230. package/dist/index.es389.js.map +1 -1
  231. package/dist/index.es390.js +28 -0
  232. package/dist/index.es390.js.map +1 -0
  233. package/dist/index.es391.js +11 -24
  234. package/dist/index.es391.js.map +1 -1
  235. package/dist/index.es392.js +204 -28
  236. package/dist/index.es392.js.map +1 -1
  237. package/dist/index.es393.js +22 -5
  238. package/dist/index.es393.js.map +1 -1
  239. package/dist/index.es394.js +390 -12
  240. package/dist/index.es394.js.map +1 -1
  241. package/dist/index.es395.js +25 -5
  242. package/dist/index.es395.js.map +1 -1
  243. package/dist/index.es396.js +29 -3
  244. package/dist/index.es396.js.map +1 -1
  245. package/dist/index.es397.js +5 -24
  246. package/dist/index.es397.js.map +1 -1
  247. package/dist/index.es398.js +12 -107
  248. package/dist/index.es398.js.map +1 -1
  249. package/dist/index.es407.js +5 -14
  250. package/dist/index.es407.js.map +1 -1
  251. package/dist/index.es408.js +3 -62
  252. package/dist/index.es408.js.map +1 -1
  253. package/dist/index.es409.js +27 -0
  254. package/dist/index.es409.js.map +1 -0
  255. package/dist/index.es410.js +113 -0
  256. package/dist/index.es410.js.map +1 -0
  257. package/dist/index.es411.js +15 -3
  258. package/dist/index.es411.js.map +1 -1
  259. package/dist/index.es412.js +519 -19
  260. package/dist/index.es412.js.map +1 -1
  261. package/dist/index.es413.js +126 -14
  262. package/dist/index.es413.js.map +1 -1
  263. package/dist/{index.es402.js → index.es414.js} +1 -1
  264. package/dist/{index.es402.js.map → index.es414.js.map} +1 -1
  265. package/dist/{index.es404.js → index.es422.js} +2 -2
  266. package/dist/{index.es404.js.map → index.es422.js.map} +1 -1
  267. package/dist/{index.es405.js → index.es423.js} +4 -4
  268. package/dist/{index.es405.js.map → index.es423.js.map} +1 -1
  269. package/dist/{index.es406.js → index.es424.js} +2 -2
  270. package/dist/{index.es406.js.map → index.es424.js.map} +1 -1
  271. package/dist/index.es425.js +14 -23
  272. package/dist/index.es425.js.map +1 -1
  273. package/dist/index.es426.js +61 -12
  274. package/dist/index.es426.js.map +1 -1
  275. package/dist/index.es427.js +3 -27
  276. package/dist/index.es427.js.map +1 -1
  277. package/dist/index.es428.js +23 -5
  278. package/dist/index.es428.js.map +1 -1
  279. package/dist/index.es429.js +16 -0
  280. package/dist/index.es429.js.map +1 -0
  281. package/dist/index.es430.js +31 -0
  282. package/dist/index.es430.js.map +1 -0
  283. package/dist/index.es431.js +8 -0
  284. package/dist/index.es431.js.map +1 -0
  285. package/dist/index.es432.js +26 -0
  286. package/dist/index.es432.js.map +1 -0
  287. package/dist/index.es435.js +2 -2
  288. package/dist/index.es438.js +2 -2
  289. package/dist/index.es441.js +1 -1
  290. package/dist/index.es445.js +5 -5
  291. package/dist/index.es446.js +12 -2
  292. package/dist/index.es446.js.map +1 -1
  293. package/dist/index.es447.js +176 -8
  294. package/dist/index.es447.js.map +1 -1
  295. package/dist/index.es448.js +3 -177
  296. package/dist/index.es448.js.map +1 -1
  297. package/dist/index.es449.js +131 -2
  298. package/dist/index.es449.js.map +1 -1
  299. package/dist/index.es450.js +36 -129
  300. package/dist/index.es450.js.map +1 -1
  301. package/dist/index.es451.js +2 -40
  302. package/dist/index.es451.js.map +1 -1
  303. package/dist/index.es452.js +2 -2
  304. package/dist/index.es452.js.map +1 -1
  305. package/dist/index.es453.js +2 -4
  306. package/dist/index.es453.js.map +1 -1
  307. package/dist/index.es459.js +3 -82
  308. package/dist/index.es459.js.map +1 -1
  309. package/dist/index.es460.js +82 -3
  310. package/dist/index.es460.js.map +1 -1
  311. package/package.json +1 -1
  312. package/dist/index.cjs371.js +0 -2
  313. package/dist/index.cjs371.js.map +0 -1
  314. package/dist/index.cjs373.js +0 -2
  315. package/dist/index.cjs373.js.map +0 -1
  316. package/dist/index.cjs374.js +0 -2
  317. package/dist/index.cjs374.js.map +0 -1
  318. package/dist/index.cjs399.js +0 -2
  319. package/dist/index.cjs399.js.map +0 -1
  320. package/dist/index.cjs400.js +0 -2
  321. package/dist/index.cjs400.js.map +0 -1
  322. package/dist/index.cjs401.js +0 -2
  323. package/dist/index.cjs401.js.map +0 -1
  324. package/dist/index.cjs403.js +0 -2
  325. package/dist/index.cjs403.js.map +0 -1
  326. package/dist/index.es371.js +0 -14
  327. package/dist/index.es371.js.map +0 -1
  328. package/dist/index.es373.js +0 -49
  329. package/dist/index.es373.js.map +0 -1
  330. package/dist/index.es374.js +0 -11
  331. package/dist/index.es374.js.map +0 -1
  332. package/dist/index.es399.js +0 -19
  333. package/dist/index.es399.js.map +0 -1
  334. package/dist/index.es400.js +0 -526
  335. package/dist/index.es400.js.map +0 -1
  336. package/dist/index.es401.js +0 -130
  337. package/dist/index.es401.js.map +0 -1
  338. package/dist/index.es403.js +0 -9
  339. package/dist/index.es403.js.map +0 -1
  340. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1,15 +1,181 @@
1
- import * as r from "react";
2
- import { useCallbackRef as s } from "./index.es371.js";
3
- function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
- const t = s(n);
5
- r.useEffect(() => {
6
- const o = (a) => {
7
- a.key === "Escape" && t(a);
8
- };
9
- return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
10
- }, [t, e]);
1
+ import * as s from "react";
2
+ import { composeEventHandlers as p } from "./index.es364.js";
3
+ import { createCollection as H } from "./index.es377.js";
4
+ import { useComposedRefs as V } from "./index.es365.js";
5
+ import { createContextScope as z } from "./index.es366.js";
6
+ import { useId as q } from "./index.es370.js";
7
+ import { Primitive as P } from "./index.es368.js";
8
+ import { useCallbackRef as J } from "./index.es375.js";
9
+ import { useControllableState as Q } from "./index.es367.js";
10
+ import { useDirection as W } from "./index.es378.js";
11
+ import { j as d } from "./index.es196.js";
12
+ var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [h, G, Z] = H(b), [$, Fe] = z(
13
+ b,
14
+ [Z]
15
+ ), [ee, oe] = $(b), N = s.forwardRef(
16
+ (e, r) => /* @__PURE__ */ d.jsx(h.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(h.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
17
+ );
18
+ N.displayName = b;
19
+ var te = s.forwardRef((e, r) => {
20
+ const {
21
+ __scopeRovingFocusGroup: c,
22
+ orientation: o,
23
+ loop: F = !1,
24
+ dir: g,
25
+ currentTabStopId: R,
26
+ defaultCurrentTabStopId: E,
27
+ onCurrentTabStopIdChange: m,
28
+ onEntryFocus: u,
29
+ preventScrollOnEntryFocus: w = !1,
30
+ ...C
31
+ } = e, v = s.useRef(null), I = V(r, v), t = W(g), [f = null, T] = Q({
32
+ prop: R,
33
+ defaultProp: E,
34
+ onChange: m
35
+ }), [a, i] = s.useState(!1), S = J(u), M = G(c), x = s.useRef(!1), [k, y] = s.useState(0);
36
+ return s.useEffect(() => {
37
+ const n = v.current;
38
+ if (n)
39
+ return n.addEventListener(_, S), () => n.removeEventListener(_, S);
40
+ }, [S]), /* @__PURE__ */ d.jsx(
41
+ ee,
42
+ {
43
+ scope: c,
44
+ orientation: o,
45
+ dir: t,
46
+ loop: F,
47
+ currentTabStopId: f,
48
+ onItemFocus: s.useCallback(
49
+ (n) => T(n),
50
+ [T]
51
+ ),
52
+ onItemShiftTab: s.useCallback(() => i(!0), []),
53
+ onFocusableItemAdd: s.useCallback(
54
+ () => y((n) => n + 1),
55
+ []
56
+ ),
57
+ onFocusableItemRemove: s.useCallback(
58
+ () => y((n) => n - 1),
59
+ []
60
+ ),
61
+ children: /* @__PURE__ */ d.jsx(
62
+ P.div,
63
+ {
64
+ tabIndex: a || k === 0 ? -1 : 0,
65
+ "data-orientation": o,
66
+ ...C,
67
+ ref: I,
68
+ style: { outline: "none", ...e.style },
69
+ onMouseDown: p(e.onMouseDown, () => {
70
+ x.current = !0;
71
+ }),
72
+ onFocus: p(e.onFocus, (n) => {
73
+ const L = !x.current;
74
+ if (n.target === n.currentTarget && L && !a) {
75
+ const D = new CustomEvent(_, X);
76
+ if (n.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
77
+ const A = M().filter((l) => l.focusable), U = A.find((l) => l.active), B = A.find((l) => l.id === f), Y = [U, B, ...A].filter(
78
+ Boolean
79
+ ).map((l) => l.ref.current);
80
+ j(Y, w);
81
+ }
82
+ }
83
+ x.current = !1;
84
+ }),
85
+ onBlur: p(e.onBlur, () => i(!1))
86
+ }
87
+ )
88
+ }
89
+ );
90
+ }), O = "RovingFocusGroupItem", K = s.forwardRef(
91
+ (e, r) => {
92
+ const {
93
+ __scopeRovingFocusGroup: c,
94
+ focusable: o = !0,
95
+ active: F = !1,
96
+ tabStopId: g,
97
+ ...R
98
+ } = e, E = q(), m = g || E, u = oe(O, c), w = u.currentTabStopId === m, C = G(c), { onFocusableItemAdd: v, onFocusableItemRemove: I } = u;
99
+ return s.useEffect(() => {
100
+ if (o)
101
+ return v(), () => I();
102
+ }, [o, v, I]), /* @__PURE__ */ d.jsx(
103
+ h.ItemSlot,
104
+ {
105
+ scope: c,
106
+ id: m,
107
+ focusable: o,
108
+ active: F,
109
+ children: /* @__PURE__ */ d.jsx(
110
+ P.span,
111
+ {
112
+ tabIndex: w ? 0 : -1,
113
+ "data-orientation": u.orientation,
114
+ ...R,
115
+ ref: r,
116
+ onMouseDown: p(e.onMouseDown, (t) => {
117
+ o ? u.onItemFocus(m) : t.preventDefault();
118
+ }),
119
+ onFocus: p(e.onFocus, () => u.onItemFocus(m)),
120
+ onKeyDown: p(e.onKeyDown, (t) => {
121
+ if (t.key === "Tab" && t.shiftKey) {
122
+ u.onItemShiftTab();
123
+ return;
124
+ }
125
+ if (t.target !== t.currentTarget) return;
126
+ const f = se(t, u.orientation, u.dir);
127
+ if (f !== void 0) {
128
+ if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
129
+ t.preventDefault();
130
+ let a = C().filter((i) => i.focusable).map((i) => i.ref.current);
131
+ if (f === "last") a.reverse();
132
+ else if (f === "prev" || f === "next") {
133
+ f === "prev" && a.reverse();
134
+ const i = a.indexOf(t.currentTarget);
135
+ a = u.loop ? ce(a, i + 1) : a.slice(i + 1);
136
+ }
137
+ setTimeout(() => j(a));
138
+ }
139
+ })
140
+ }
141
+ )
142
+ }
143
+ );
144
+ }
145
+ );
146
+ K.displayName = O;
147
+ var re = {
148
+ ArrowLeft: "prev",
149
+ ArrowUp: "prev",
150
+ ArrowRight: "next",
151
+ ArrowDown: "next",
152
+ PageUp: "first",
153
+ Home: "first",
154
+ PageDown: "last",
155
+ End: "last"
156
+ };
157
+ function ne(e, r) {
158
+ return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
159
+ }
160
+ function se(e, r, c) {
161
+ const o = ne(e.key, c);
162
+ if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
163
+ return re[o];
164
+ }
165
+ function j(e, r = !1) {
166
+ const c = document.activeElement;
167
+ for (const o of e)
168
+ if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
169
+ }
170
+ function ce(e, r) {
171
+ return e.map((c, o) => e[(r + o) % e.length]);
11
172
  }
173
+ var ge = N, Re = K;
12
174
  export {
13
- p as useEscapeKeydown
175
+ Re as Item,
176
+ ge as Root,
177
+ N as RovingFocusGroup,
178
+ K as RovingFocusGroupItem,
179
+ Fe as createRovingFocusGroupScope
14
180
  };
15
181
  //# sourceMappingURL=index.es385.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es385.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,yCAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAExB;AACD,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC9F,GAAK,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es385.js","sources":["../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":";;;;;;;;;;;AAcA,IAAIA,IAAc,iCACdC,IAAgB,EAAE,SAAS,IAAO,YAAY,GAAM,GACpDC,IAAa,oBACb,CAACC,GAAYC,GAAeC,CAAqB,IAAIC,EAAiBJ,CAAU,GAChF,CAACK,GAA+BC,EAA2B,IAAIC;AAAA,EACjEP;AAAA,EACA,CAACG,CAAqB;AACxB,GACI,CAACK,IAAqBC,EAAqB,IAAIJ,EAA8BL,CAAU,GACvFU,IAAmBC,EAAM;AAAA,EAC3B,CAACC,GAAOC,MACiBC,gBAAAA,MAAIb,EAAW,UAAU,EAAE,OAAOW,EAAM,yBAAyB,UAA0BE,gBAAAA,MAAIb,EAAW,MAAM,EAAE,OAAOW,EAAM,yBAAyB,UAA0BE,gBAAAA,EAAAA,IAAIC,IAAsB,EAAE,GAAGH,GAAO,KAAKC,GAAc,EAAC,CAAE,EAAC,CAAE;AAE5Q;AACAH,EAAiB,cAAcV;AAC/B,IAAIe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MAAI,EAAAF,MAAgB,cAAc,CAAC,aAAa,YAAY,EAAE,SAASyD,CAAG,MACtE,EAAAzD,MAAgB,gBAAgB,CAAC,WAAW,WAAW,EAAE,SAASyD,CAAG;AACzE,WAAOF,GAAwBE,CAAG;AACpC;AACA,SAASnB,EAAWoB,GAAYC,IAAgB,IAAO;AACrD,QAAMC,IAA6B,SAAS;AAC5C,aAAWC,KAAaH;AAGtB,QAFIG,MAAcD,MAClBC,EAAU,MAAM,EAAE,eAAAF,GAAe,GAC7B,SAAS,kBAAkBC,GAA4B;AAE/D;AACA,SAASN,GAAUQ,GAAOC,GAAY;AACpC,SAAOD,EAAM,IAAI,CAACE,GAAGC,MAAUH,GAAOC,IAAaE,KAASH,EAAM,MAAM,CAAC;AAC3E;AACG,IAACI,KAAOzE,GACP0E,KAAO3B;","x_google_ignoreList":[0]}
@@ -1,208 +1,53 @@
1
- import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as L } from "./index.es389.js";
2
- import { autoUpdate as me, platform as pe } from "./index.es389.js";
3
- import * as f from "react";
4
- import { useLayoutEffect as Y, useEffect as Z } from "react";
5
- import * as b from "react-dom";
6
- var w = typeof document < "u" ? Y : Z;
7
- function R(e, t) {
8
- if (e === t)
9
- return !0;
10
- if (typeof e != typeof t)
11
- return !1;
12
- if (typeof e == "function" && e.toString() === t.toString())
13
- return !0;
14
- let n, r, s;
15
- if (e && t && typeof e == "object") {
16
- if (Array.isArray(e)) {
17
- if (n = e.length, n !== t.length) return !1;
18
- for (r = n; r-- !== 0; )
19
- if (!R(e[r], t[r]))
20
- return !1;
21
- return !0;
22
- }
23
- if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
24
- return !1;
25
- for (r = n; r-- !== 0; )
26
- if (!{}.hasOwnProperty.call(t, s[r]))
27
- return !1;
28
- for (r = n; r-- !== 0; ) {
29
- const p = s[r];
30
- if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
31
- return !1;
32
- }
33
- return !0;
34
- }
35
- return e !== e && t !== t;
36
- }
37
- function A(e) {
38
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
39
- }
40
- function v(e, t) {
41
- const n = A(e);
42
- return Math.round(t * n) / n;
43
- }
44
- function E(e) {
45
- const t = f.useRef(e);
46
- return w(() => {
47
- t.current = e;
48
- }), t;
49
- }
50
- function re(e) {
51
- e === void 0 && (e = {});
52
- const {
53
- placement: t = "bottom",
54
- strategy: n = "absolute",
55
- middleware: r = [],
56
- platform: s,
57
- elements: {
58
- reference: p,
59
- floating: q
60
- } = {},
61
- transform: k = !0,
62
- whileElementsMounted: D,
63
- open: x
64
- } = e, [i, O] = f.useState({
65
- x: 0,
66
- y: 0,
67
- strategy: n,
68
- placement: t,
69
- middlewareData: {},
70
- isPositioned: !1
71
- }), [M, B] = f.useState(r);
72
- R(M, r) || B(r);
73
- const [U, V] = f.useState(null), [W, G] = f.useState(null), _ = f.useCallback((o) => {
74
- o !== a.current && (a.current = o, V(o));
75
- }, []), C = f.useCallback((o) => {
76
- o !== d.current && (d.current = o, G(o));
77
- }, []), u = p || U, l = q || W, a = f.useRef(null), d = f.useRef(null), y = f.useRef(i), H = D != null, S = E(D), P = E(s), F = E(x), g = f.useCallback(() => {
78
- if (!a.current || !d.current)
79
- return;
80
- const o = {
81
- placement: t,
82
- strategy: n,
83
- middleware: M
84
- };
85
- P.current && (o.platform = P.current), I(a.current, d.current, o).then((h) => {
86
- const m = {
87
- ...h,
88
- // The floating element's position may be recomputed while it's closed
89
- // but still mounted (such as when transitioning out). To ensure
90
- // `isPositioned` will be `false` initially on the next open, avoid
91
- // setting it to `true` when `open === false` (must be specified).
92
- isPositioned: F.current !== !1
93
- };
94
- $.current && !R(y.current, m) && (y.current = m, b.flushSync(() => {
95
- O(m);
96
- }));
1
+ var S = function(r) {
2
+ if (typeof document > "u")
3
+ return null;
4
+ var u = Array.isArray(r) ? r[0] : r;
5
+ return u.ownerDocument.body;
6
+ }, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
7
+ return r && (r.host || W(r.parentNode));
8
+ }, D = function(r, u) {
9
+ return u.map(function(e) {
10
+ if (r.contains(e))
11
+ return e;
12
+ var n = W(e);
13
+ return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
14
+ }).filter(function(e) {
15
+ return !!e;
16
+ });
17
+ }, E = function(r, u, e, n) {
18
+ var i = D(u, Array.isArray(r) ? r : [r]);
19
+ p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
20
+ var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
21
+ !t || s.has(t) || (s.add(t), y(t.parentNode));
22
+ };
23
+ i.forEach(y);
24
+ var A = function(t) {
25
+ !t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
26
+ if (s.has(a))
27
+ A(a);
28
+ else
29
+ try {
30
+ var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
31
+ f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
32
+ } catch (k) {
33
+ console.error("aria-hidden: cannot operate on ", a, k);
34
+ }
97
35
  });
98
- }, [M, t, n, P, F]);
99
- w(() => {
100
- x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
101
- ...o,
102
- isPositioned: !1
103
- })));
104
- }, [x]);
105
- const $ = f.useRef(!1);
106
- w(() => ($.current = !0, () => {
107
- $.current = !1;
108
- }), []), w(() => {
109
- if (u && (a.current = u), l && (d.current = l), u && l) {
110
- if (S.current)
111
- return S.current(u, l, g);
112
- g();
113
- }
114
- }, [u, l, g, S, H]);
115
- const j = f.useMemo(() => ({
116
- reference: a,
117
- floating: d,
118
- setReference: _,
119
- setFloating: C
120
- }), [_, C]), c = f.useMemo(() => ({
121
- reference: u,
122
- floating: l
123
- }), [u, l]), z = f.useMemo(() => {
124
- const o = {
125
- position: n,
126
- left: 0,
127
- top: 0
128
- };
129
- if (!c.floating)
130
- return o;
131
- const h = v(c.floating, i.x), m = v(c.floating, i.y);
132
- return k ? {
133
- ...o,
134
- transform: "translate(" + h + "px, " + m + "px)",
135
- ...A(c.floating) >= 1.5 && {
136
- willChange: "transform"
137
- }
138
- } : {
139
- position: n,
140
- left: h,
141
- top: m
142
- };
143
- }, [n, k, c.floating, i.x, i.y]);
144
- return f.useMemo(() => ({
145
- ...i,
146
- update: g,
147
- refs: j,
148
- elements: c,
149
- floatingStyles: z
150
- }), [i, g, j, c, z]);
151
- }
152
- const ee = (e) => {
153
- function t(n) {
154
- return {}.hasOwnProperty.call(n, "current");
155
- }
156
- return {
157
- name: "arrow",
158
- options: e,
159
- fn(n) {
160
- const {
161
- element: r,
162
- padding: s
163
- } = typeof e == "function" ? e(n) : e;
164
- return r && t(r) ? r.current != null ? L({
165
- element: r.current,
166
- padding: s
167
- }).fn(n) : {} : r ? L({
168
- element: r,
169
- padding: s
170
- }).fn(n) : {};
171
- }
172
36
  };
173
- }, fe = (e, t) => ({
174
- ...J(e),
175
- options: [e, t]
176
- }), oe = (e, t) => ({
177
- ...K(e),
178
- options: [e, t]
179
- }), se = (e, t) => ({
180
- ...X(e),
181
- options: [e, t]
182
- }), ie = (e, t) => ({
183
- ...N(e),
184
- options: [e, t]
185
- }), ue = (e, t) => ({
186
- ...Q(e),
187
- options: [e, t]
188
- }), le = (e, t) => ({
189
- ...T(e),
190
- options: [e, t]
191
- }), ce = (e, t) => ({
192
- ...ee(e),
193
- options: [e, t]
194
- });
37
+ return A(u), s.clear(), h++, function() {
38
+ l.forEach(function(t) {
39
+ var a = f.get(t) - 1, c = o.get(t) - 1;
40
+ f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
41
+ }), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
42
+ };
43
+ }, C = function(r, u, e) {
44
+ e === void 0 && (e = "data-aria-hidden");
45
+ var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
46
+ return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
47
+ return null;
48
+ };
49
+ };
195
50
  export {
196
- ce as arrow,
197
- me as autoUpdate,
198
- I as computePosition,
199
- ie as flip,
200
- le as hide,
201
- se as limitShift,
202
- fe as offset,
203
- pe as platform,
204
- oe as shift,
205
- ue as size,
206
- re as useFloating
51
+ C as hideOthers
207
52
  };
208
53
  //# sourceMappingURL=index.es386.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es386.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["index","useLayoutEffect","useEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":";;;;;AAMA,IAAIA,IAAQ,OAAO,WAAa,MAAcC,IAAkBC;AAIhE,SAASC,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAA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GAASgD,CAAI;AACzB,IAkBMY,KAAQ,CAAC5D,GAASgD,OAAU;AAAA,EAChC,GAAGN,GAAQ1C,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es386.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,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AK+B,KAILrB,EAAQ,KAAK,MAAMA,GAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,GACjFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KAJvE,WAAY;AAAE,WAAO;AAAA,EAAO;AAK3C;","x_google_ignoreList":[0]}
@@ -1,25 +1,12 @@
1
- import * as n from "react";
2
- import { Primitive as p } from "./index.es368.js";
3
- import { j as o } from "./index.es196.js";
4
- var v = "Arrow", e = n.forwardRef((r, i) => {
5
- const { children: t, width: s = 10, height: a = 5, ...m } = r;
6
- return /* @__PURE__ */ o.jsx(
7
- p.svg,
8
- {
9
- ...m,
10
- ref: i,
11
- width: s,
12
- height: a,
13
- viewBox: "0 0 30 10",
14
- preserveAspectRatio: "none",
15
- children: r.asChild ? t : /* @__PURE__ */ o.jsx("polygon", { points: "0,0 30,0 15,10" })
16
- }
17
- );
1
+ import { __assign as m } from "./index.es395.js";
2
+ import * as r from "react";
3
+ import { RemoveScroll as e } from "./index.es396.js";
4
+ import t from "./index.es397.js";
5
+ var s = r.forwardRef(function(a, o) {
6
+ return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
18
7
  });
19
- e.displayName = v;
20
- var h = e;
8
+ s.classNames = e.classNames;
21
9
  export {
22
- e as Arrow,
23
- h as Root
10
+ s as default
24
11
  };
25
12
  //# sourceMappingURL=index.es387.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es387.js","sources":["../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// packages/react/arrow/src/arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAME","Arrow","React","props","forwardedRef","children","width","height","arrowProps","jsx","Primitive","Root"],"mappings":";;;AAIA,IAAIA,IAAO,SACPC,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACpD,QAAM,EAAE,UAAAC,GAAU,OAAAC,IAAQ,IAAI,QAAAC,IAAS,GAAG,GAAGC,EAAU,IAAKL;AAC5D,SAAuBM,gBAAAA,EAAG;AAAA,IACxBC,EAAU;AAAA,IACV;AAAA,MACE,GAAGF;AAAA,MACH,KAAKJ;AAAA,MACL,OAAAE;AAAA,MACA,QAAAC;AAAA,MACA,SAAS;AAAA,MACT,qBAAqB;AAAA,MACrB,UAAUJ,EAAM,UAAUE,IAA2BI,gBAAAA,EAAG,IAAC,WAAW,EAAE,QAAQ,iBAAkB,CAAA;AAAA,IACtG;AAAA,EACG;AACH,CAAC;AACDR,EAAM,cAAcD;AACjB,IAACW,IAAOV;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es387.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,CAAE,GAAEH,GAAO,EAAE,KAAKC,GAAK,SAASG,GAAS,CAAC;AAAK,CAAA;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
@@ -1,28 +1,7 @@
1
- import * as h from "react";
2
- import { useLayoutEffect as z } from "./index.es384.js";
3
- function c(r) {
4
- const [d, e] = h.useState(void 0);
5
- return z(() => {
6
- if (r) {
7
- e({ width: r.offsetWidth, height: r.offsetHeight });
8
- const f = new ResizeObserver((i) => {
9
- if (!Array.isArray(i) || !i.length)
10
- return;
11
- const b = i[0];
12
- let o, t;
13
- if ("borderBoxSize" in b) {
14
- const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
- o = u.inlineSize, t = u.blockSize;
16
- } else
17
- o = r.offsetWidth, t = r.offsetHeight;
18
- e({ width: o, height: t });
19
- });
20
- return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
- } else
22
- e(void 0);
23
- }, [r]), d;
24
- }
1
+ import * as t from "react";
2
+ var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
3
+ };
25
4
  export {
26
- c as useSize
5
+ e as useLayoutEffect
27
6
  };
28
7
  //# sourceMappingURL=index.es388.js.map