@ariakit/react 0.4.25 → 0.4.27

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 (319) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/cjs/__chunks/2HXQHKBC.cjs +59 -0
  3. package/cjs/__chunks/2MDC3Z3V.cjs +43 -0
  4. package/cjs/__chunks/334WKW6I.cjs +19 -0
  5. package/cjs/__chunks/34UJGLOZ.cjs +236 -0
  6. package/cjs/__chunks/3FIXGHZ2.cjs +59 -0
  7. package/cjs/__chunks/4RKQMGBK.cjs +1179 -0
  8. package/cjs/__chunks/5NTEPQ2U.cjs +148 -0
  9. package/cjs/__chunks/66G6K4UR.cjs +1 -0
  10. package/cjs/__chunks/6GNM57O7.cjs +1 -0
  11. package/cjs/__chunks/7M4GY5DS.cjs +255 -0
  12. package/cjs/__chunks/7MXJT4IN.cjs +17 -0
  13. package/cjs/__chunks/7POA4244.cjs +184 -0
  14. package/cjs/__chunks/ASOIXRUN.cjs +305 -0
  15. package/cjs/__chunks/C4NVIV6V.cjs +455 -0
  16. package/cjs/__chunks/CR6AS7WL.cjs +1 -0
  17. package/cjs/__chunks/D4HCGWOU.cjs +464 -0
  18. package/cjs/__chunks/DVWS2XPY.cjs +107 -0
  19. package/cjs/__chunks/DWSXHZYM.cjs +20 -0
  20. package/cjs/__chunks/E6EV2Q5P.cjs +1 -0
  21. package/cjs/__chunks/FELYQPO5.cjs +1025 -0
  22. package/cjs/__chunks/FHQ5DVYQ.cjs +34 -0
  23. package/cjs/__chunks/FIPBE5IX.cjs +23 -0
  24. package/cjs/__chunks/FVIS5BFZ.cjs +41 -0
  25. package/cjs/__chunks/GUB6WHB6.cjs +51 -0
  26. package/cjs/__chunks/GUY4MKX2.cjs +56 -0
  27. package/cjs/__chunks/IF5DZKAR.cjs +1 -0
  28. package/cjs/__chunks/IFZV5LA3.cjs +94 -0
  29. package/cjs/__chunks/IHVFJGGN.cjs +32 -0
  30. package/cjs/__chunks/L2IFVMDU.cjs +96 -0
  31. package/cjs/__chunks/LCX235VJ.cjs +53 -0
  32. package/cjs/__chunks/LMCBLO3G.cjs +42 -0
  33. package/cjs/__chunks/LS5VO6AA.cjs +44 -0
  34. package/cjs/__chunks/LVHC4DSB.cjs +117 -0
  35. package/cjs/__chunks/MN5TONXW.cjs +123 -0
  36. package/cjs/__chunks/N3DLR7OL.cjs +34 -0
  37. package/cjs/__chunks/NFZWL7LE.cjs +24 -0
  38. package/cjs/__chunks/NG34QRI6.cjs +264 -0
  39. package/cjs/__chunks/NIOJG7C4.cjs +1 -0
  40. package/cjs/__chunks/NMUCJYMR.cjs +496 -0
  41. package/cjs/__chunks/OOFUBC32.cjs +109 -0
  42. package/cjs/__chunks/OQRQJNBU.cjs +1 -0
  43. package/cjs/__chunks/PDPE2VAZ.cjs +1035 -0
  44. package/cjs/__chunks/PTE2IJM5.cjs +143 -0
  45. package/cjs/__chunks/PU63IQFD.cjs +447 -0
  46. package/cjs/__chunks/PZXRBFZF.cjs +38 -0
  47. package/cjs/__chunks/QAUJZR6Y.cjs +996 -0
  48. package/cjs/__chunks/QYDAT3QF.cjs +1 -0
  49. package/cjs/__chunks/QYLMYWKV.cjs +1 -0
  50. package/cjs/__chunks/RGH2H3WL.cjs +34 -0
  51. package/cjs/__chunks/RLKC7JVT.cjs +19 -0
  52. package/cjs/__chunks/RR46KI45.cjs +17 -0
  53. package/cjs/__chunks/RVXPEX7O.cjs +150 -0
  54. package/cjs/__chunks/RXZPZPJX.cjs +95 -0
  55. package/cjs/__chunks/SIF7IN4L.cjs +62 -0
  56. package/cjs/__chunks/SQ72MZ63.cjs +294 -0
  57. package/cjs/__chunks/SXAPGTJ4.cjs +23 -0
  58. package/cjs/__chunks/TLUFYZC7.cjs +37 -0
  59. package/cjs/__chunks/TSBEWPNT.cjs +1922 -0
  60. package/cjs/__chunks/U2UYQT45.cjs +1 -0
  61. package/cjs/__chunks/UUEFM3TG.cjs +75 -0
  62. package/cjs/__chunks/UV7CXZEM.cjs +36 -0
  63. package/cjs/__chunks/VXDLN5CP.cjs +234 -0
  64. package/cjs/__chunks/VXUZM542.cjs +789 -0
  65. package/cjs/__chunks/W27WRDUB.cjs +1 -0
  66. package/cjs/__chunks/X4U3XKYQ.cjs +7 -0
  67. package/cjs/__chunks/XH4GE3VE.cjs +29 -0
  68. package/cjs/__chunks/XPQIHUQ7.cjs +172 -0
  69. package/cjs/__chunks/YEXJT4IL.cjs +55 -0
  70. package/cjs/__chunks/Z5PDS46M.cjs +975 -0
  71. package/cjs/__chunks/ZNW2LLWJ.cjs +108 -0
  72. package/cjs/__chunks/ZYPARRXG.cjs +19 -0
  73. package/cjs/button.cjs +7 -3
  74. package/cjs/button.d.cts +2 -2
  75. package/cjs/button.d.ts +2 -2
  76. package/cjs/checkbox.cjs +11 -2
  77. package/cjs/checkbox.d.cts +9 -9
  78. package/cjs/checkbox.d.ts +9 -9
  79. package/cjs/collection.cjs +8 -2
  80. package/cjs/collection.d.cts +9 -9
  81. package/cjs/collection.d.ts +9 -9
  82. package/cjs/combobox.cjs +33 -2
  83. package/cjs/combobox.d.cts +33 -33
  84. package/cjs/combobox.d.ts +33 -33
  85. package/cjs/command.cjs +6 -3
  86. package/cjs/command.d.cts +2 -2
  87. package/cjs/command.d.ts +2 -2
  88. package/cjs/composite.cjs +24 -2
  89. package/cjs/composite.d.cts +21 -21
  90. package/cjs/composite.d.ts +21 -21
  91. package/cjs/dialog.cjs +24 -2
  92. package/cjs/dialog.d.cts +15 -15
  93. package/cjs/dialog.d.ts +15 -15
  94. package/cjs/disclosure.cjs +11 -2
  95. package/cjs/disclosure.d.cts +9 -9
  96. package/cjs/disclosure.d.ts +9 -9
  97. package/cjs/focus-trap.cjs +6 -2
  98. package/cjs/focus-trap.d.cts +4 -4
  99. package/cjs/focus-trap.d.ts +4 -4
  100. package/cjs/focusable.cjs +5 -3
  101. package/cjs/focusable.d.cts +2 -2
  102. package/cjs/focusable.d.ts +2 -2
  103. package/cjs/form.cjs +15 -2
  104. package/cjs/form.d.cts +37 -37
  105. package/cjs/form.d.ts +37 -37
  106. package/cjs/group.cjs +5 -3
  107. package/cjs/group.d.cts +4 -4
  108. package/cjs/group.d.ts +4 -4
  109. package/cjs/heading.cjs +7 -3
  110. package/cjs/heading.d.cts +4 -4
  111. package/cjs/heading.d.ts +4 -4
  112. package/cjs/hovercard.cjs +28 -2
  113. package/cjs/hovercard.d.cts +19 -19
  114. package/cjs/hovercard.d.ts +19 -19
  115. package/cjs/index.cjs +103 -28
  116. package/cjs/menu.cjs +44 -2
  117. package/cjs/menu.d.cts +41 -41
  118. package/cjs/menu.d.ts +41 -41
  119. package/cjs/menubar.cjs +10 -3
  120. package/cjs/menubar.d.cts +7 -7
  121. package/cjs/menubar.d.ts +7 -7
  122. package/cjs/popover.cjs +33 -2
  123. package/cjs/popover.d.cts +21 -21
  124. package/cjs/popover.d.ts +21 -21
  125. package/cjs/portal.cjs +7 -3
  126. package/cjs/portal.d.cts +3 -3
  127. package/cjs/portal.d.ts +3 -3
  128. package/cjs/radio.cjs +13 -2
  129. package/cjs/radio.d.cts +9 -9
  130. package/cjs/radio.d.ts +9 -9
  131. package/cjs/role.cjs +5 -3
  132. package/cjs/role.d.cts +2 -2
  133. package/cjs/role.d.ts +2 -2
  134. package/cjs/select.cjs +39 -2
  135. package/cjs/select.d.cts +33 -33
  136. package/cjs/select.d.ts +33 -33
  137. package/cjs/separator.cjs +5 -3
  138. package/cjs/separator.d.cts +2 -2
  139. package/cjs/separator.d.ts +2 -2
  140. package/cjs/store.cjs +5 -3
  141. package/cjs/store.d.cts +1 -1
  142. package/cjs/store.d.ts +1 -1
  143. package/cjs/tab.cjs +15 -2
  144. package/cjs/tab.d.cts +11 -11
  145. package/cjs/tab.d.ts +11 -11
  146. package/cjs/toolbar.cjs +13 -2
  147. package/cjs/toolbar.d.cts +15 -15
  148. package/cjs/toolbar.d.ts +15 -15
  149. package/cjs/tooltip.cjs +16 -2
  150. package/cjs/tooltip.d.cts +11 -11
  151. package/cjs/tooltip.d.ts +11 -11
  152. package/cjs/visually-hidden.cjs +5 -3
  153. package/cjs/visually-hidden.d.cts +2 -2
  154. package/cjs/visually-hidden.d.ts +2 -2
  155. package/esm/__chunks/2RKMXQTW.js +10 -0
  156. package/esm/__chunks/3Y4V2DTP.js +8 -0
  157. package/esm/__chunks/5FGJT4YF.js +10 -0
  158. package/esm/__chunks/ASWYYI35.js +26 -0
  159. package/esm/__chunks/BCX2X2B5.js +40 -0
  160. package/esm/__chunks/BLUBZ7NO.js +28 -0
  161. package/esm/__chunks/CKEWLSMJ.js +8 -0
  162. package/esm/__chunks/CSCX5ZBZ.js +40 -0
  163. package/esm/__chunks/CTJDBGJU.js +18 -0
  164. package/esm/__chunks/DAO5N24L.js +16 -0
  165. package/esm/__chunks/E3G6CWS6.js +16 -0
  166. package/esm/__chunks/IVVNCX6W.js +16 -0
  167. package/esm/__chunks/LQB76ROL.js +16 -0
  168. package/esm/__chunks/MALDUIAO.js +28 -0
  169. package/esm/__chunks/MP5ILXF3.js +14 -0
  170. package/esm/__chunks/O3FPWSHV.js +10 -0
  171. package/esm/__chunks/OKEWM6H4.js +10 -0
  172. package/esm/__chunks/QL3WKMBE.js +8 -0
  173. package/esm/__chunks/RD2DI27Y.js +44 -0
  174. package/esm/__chunks/SB7MN4B3.js +22 -0
  175. package/esm/__chunks/UA4GRLAL.js +52 -0
  176. package/esm/__chunks/UBB5N3OM.js +22 -0
  177. package/esm/__chunks/WC6KFHZH.js +8 -0
  178. package/esm/__chunks/WFREFNZD.js +8 -0
  179. package/esm/__chunks/WH35KJXV.js +8 -0
  180. package/esm/__chunks/WQKZESWL.js +18 -0
  181. package/esm/__chunks/YAS6EMRP.js +8 -0
  182. package/esm/button.d.ts +2 -2
  183. package/esm/button.js +1 -1
  184. package/esm/checkbox.d.ts +9 -9
  185. package/esm/checkbox.js +1 -1
  186. package/esm/collection.d.ts +9 -9
  187. package/esm/collection.js +1 -1
  188. package/esm/combobox.d.ts +33 -33
  189. package/esm/combobox.js +1 -1
  190. package/esm/command.d.ts +2 -2
  191. package/esm/command.js +1 -1
  192. package/esm/composite.d.ts +21 -21
  193. package/esm/composite.js +1 -1
  194. package/esm/dialog.d.ts +15 -15
  195. package/esm/dialog.js +1 -1
  196. package/esm/disclosure.d.ts +9 -9
  197. package/esm/disclosure.js +1 -1
  198. package/esm/focus-trap.d.ts +4 -4
  199. package/esm/focus-trap.js +1 -1
  200. package/esm/focusable.d.ts +2 -2
  201. package/esm/focusable.js +1 -1
  202. package/esm/form.d.ts +37 -37
  203. package/esm/form.js +1 -1
  204. package/esm/group.d.ts +4 -4
  205. package/esm/group.js +1 -1
  206. package/esm/heading.d.ts +4 -4
  207. package/esm/heading.js +1 -1
  208. package/esm/hovercard.d.ts +19 -19
  209. package/esm/hovercard.js +1 -1
  210. package/esm/index.js +27 -27
  211. package/esm/menu.d.ts +41 -41
  212. package/esm/menu.js +1 -1
  213. package/esm/menubar.d.ts +7 -7
  214. package/esm/menubar.js +1 -1
  215. package/esm/popover.d.ts +21 -21
  216. package/esm/popover.js +1 -1
  217. package/esm/portal.d.ts +3 -3
  218. package/esm/portal.js +1 -1
  219. package/esm/radio.d.ts +9 -9
  220. package/esm/radio.js +1 -1
  221. package/esm/role.d.ts +2 -2
  222. package/esm/role.js +1 -1
  223. package/esm/select.d.ts +33 -33
  224. package/esm/select.js +1 -1
  225. package/esm/separator.d.ts +2 -2
  226. package/esm/separator.js +1 -1
  227. package/esm/store.d.ts +1 -1
  228. package/esm/store.js +1 -1
  229. package/esm/tab.d.ts +11 -11
  230. package/esm/tab.js +1 -1
  231. package/esm/toolbar.d.ts +15 -15
  232. package/esm/toolbar.js +1 -1
  233. package/esm/tooltip.d.ts +11 -11
  234. package/esm/tooltip.js +1 -1
  235. package/esm/visually-hidden.d.ts +2 -2
  236. package/esm/visually-hidden.js +1 -1
  237. package/package.json +2 -2
  238. package/src/button.ts +5 -0
  239. package/src/checkbox.ts +19 -0
  240. package/src/collection.ts +19 -0
  241. package/src/combobox.ts +76 -0
  242. package/src/command.ts +5 -0
  243. package/src/composite.ts +49 -0
  244. package/src/dialog.ts +34 -0
  245. package/src/disclosure.ts +19 -0
  246. package/src/focus-trap.ts +11 -0
  247. package/src/focusable.ts +5 -0
  248. package/src/form.ts +90 -0
  249. package/src/group.ts +10 -0
  250. package/src/heading.ts +7 -0
  251. package/src/hovercard.ts +44 -0
  252. package/src/index.ts +27 -0
  253. package/src/menu.ts +100 -0
  254. package/src/menubar.ts +14 -0
  255. package/src/popover.ts +49 -0
  256. package/src/portal.ts +6 -0
  257. package/src/radio.ts +19 -0
  258. package/src/role.ts +5 -0
  259. package/src/select.ts +76 -0
  260. package/src/separator.ts +5 -0
  261. package/src/store.ts +1 -0
  262. package/src/tab.ts +21 -0
  263. package/src/toolbar.ts +34 -0
  264. package/src/tooltip.ts +24 -0
  265. package/src/visually-hidden.ts +5 -0
  266. package/cjs/__chunks/24MX6KII.cjs +0 -14
  267. package/cjs/__chunks/2IFRJ7YS.cjs +0 -6
  268. package/cjs/__chunks/32YVOHOP.cjs +0 -50
  269. package/cjs/__chunks/4BAIAF3U.cjs +0 -14
  270. package/cjs/__chunks/4J2CIZDN.cjs +0 -14
  271. package/cjs/__chunks/4TTUYQMJ.cjs +0 -20
  272. package/cjs/__chunks/6QAXTQNM.cjs +0 -16
  273. package/cjs/__chunks/6WNPYLAU.cjs +0 -6
  274. package/cjs/__chunks/A2CP2RQF.cjs +0 -24
  275. package/cjs/__chunks/AEV4Y6LH.cjs +0 -8
  276. package/cjs/__chunks/APHGV4DJ.cjs +0 -6
  277. package/cjs/__chunks/B34XK6WF.cjs +0 -8
  278. package/cjs/__chunks/BFD7ZBIV.cjs +0 -26
  279. package/cjs/__chunks/CZIDOP5N.cjs +0 -38
  280. package/cjs/__chunks/ETUDK33Z.cjs +0 -26
  281. package/cjs/__chunks/GJC4LCYO.cjs +0 -16
  282. package/cjs/__chunks/KGVA5X7R.cjs +0 -38
  283. package/cjs/__chunks/LAX4QA6C.cjs +0 -42
  284. package/cjs/__chunks/MDOKA7B5.cjs +0 -6
  285. package/cjs/__chunks/Q2GGGIV7.cjs +0 -6
  286. package/cjs/__chunks/QKCQWENM.cjs +0 -6
  287. package/cjs/__chunks/QPSUJCLN.cjs +0 -12
  288. package/cjs/__chunks/TDX6HS73.cjs +0 -8
  289. package/cjs/__chunks/UPMOBIQ3.cjs +0 -20
  290. package/cjs/__chunks/W6XMZ4GT.cjs +0 -14
  291. package/cjs/__chunks/WXEUE6MJ.cjs +0 -6
  292. package/cjs/__chunks/XTZIX6PF.cjs +0 -8
  293. package/esm/__chunks/3IMSX6M3.js +0 -8
  294. package/esm/__chunks/4H6IIOQF.js +0 -22
  295. package/esm/__chunks/5OF2JM6T.js +0 -16
  296. package/esm/__chunks/6FL2IFMJ.js +0 -16
  297. package/esm/__chunks/6N4GEF7O.js +0 -18
  298. package/esm/__chunks/6OHDLPN7.js +0 -8
  299. package/esm/__chunks/7FQAKYJR.js +0 -26
  300. package/esm/__chunks/AJMZU3YP.js +0 -28
  301. package/esm/__chunks/DZPSY7QT.js +0 -22
  302. package/esm/__chunks/H2GJECQG.js +0 -8
  303. package/esm/__chunks/JBAWBCWC.js +0 -8
  304. package/esm/__chunks/LI3X5M2M.js +0 -8
  305. package/esm/__chunks/NV5BVS3O.js +0 -8
  306. package/esm/__chunks/PGIWSRTG.js +0 -28
  307. package/esm/__chunks/PRYHFEBA.js +0 -10
  308. package/esm/__chunks/UTW5KHW6.js +0 -16
  309. package/esm/__chunks/VGHCPDMA.js +0 -8
  310. package/esm/__chunks/VHD2YK6B.js +0 -18
  311. package/esm/__chunks/WA3BE3AY.js +0 -10
  312. package/esm/__chunks/XHSNLTYJ.js +0 -10
  313. package/esm/__chunks/XIMRDTWX.js +0 -14
  314. package/esm/__chunks/YQF2RGHD.js +0 -44
  315. package/esm/__chunks/ZDPYYVJP.js +0 -40
  316. package/esm/__chunks/ZFJPKQV6.js +0 -52
  317. package/esm/__chunks/ZL4AJIDL.js +0 -10
  318. package/esm/__chunks/ZQSDMYJA.js +0 -16
  319. package/esm/__chunks/ZVIXWGHS.js +0 -40
@@ -0,0 +1,464 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
18
+
19
+ // ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
20
+ var require_use_sync_external_store_shim_production = _QAUJZR6Ycjs.__commonJS.call(void 0, {
21
+ "../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
22
+ "use strict";
23
+ var React2 = _QAUJZR6Ycjs.__require.call(void 0, "react");
24
+ function is(x, y) {
25
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
26
+ }
27
+ var objectIs = "function" === typeof Object.is ? Object.is : is;
28
+ var useState2 = React2.useState;
29
+ var useEffect = React2.useEffect;
30
+ var useLayoutEffect = React2.useLayoutEffect;
31
+ var useDebugValue = React2.useDebugValue;
32
+ function useSyncExternalStore$2(subscribe2, getSnapshot) {
33
+ var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
34
+ useLayoutEffect(
35
+ function() {
36
+ inst.value = value;
37
+ inst.getSnapshot = getSnapshot;
38
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
39
+ },
40
+ [subscribe2, value, getSnapshot]
41
+ );
42
+ useEffect(
43
+ function() {
44
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
45
+ return subscribe2(function() {
46
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
47
+ });
48
+ },
49
+ [subscribe2]
50
+ );
51
+ useDebugValue(value);
52
+ return value;
53
+ }
54
+ function checkIfSnapshotChanged(inst) {
55
+ var latestGetSnapshot = inst.getSnapshot;
56
+ inst = inst.value;
57
+ try {
58
+ var nextValue = latestGetSnapshot();
59
+ return !objectIs(inst, nextValue);
60
+ } catch (error) {
61
+ return true;
62
+ }
63
+ }
64
+ function useSyncExternalStore$1(subscribe2, getSnapshot) {
65
+ return getSnapshot();
66
+ }
67
+ var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
68
+ exports.useSyncExternalStore = void 0 !== React2.useSyncExternalStore ? React2.useSyncExternalStore : shim;
69
+ }
70
+ });
71
+
72
+ // ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
73
+ var require_use_sync_external_store_shim_development = _QAUJZR6Ycjs.__commonJS.call(void 0, {
74
+ "../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
75
+ "use strict";
76
+ "production" !== process.env.NODE_ENV && (function() {
77
+ function is(x, y) {
78
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
79
+ }
80
+ function useSyncExternalStore$2(subscribe2, getSnapshot) {
81
+ didWarnOld18Alpha || void 0 === React2.startTransition || (didWarnOld18Alpha = true, console.error(
82
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
83
+ ));
84
+ var value = getSnapshot();
85
+ if (!didWarnUncachedGetSnapshot) {
86
+ var cachedValue = getSnapshot();
87
+ objectIs(value, cachedValue) || (console.error(
88
+ "The result of getSnapshot should be cached to avoid an infinite loop"
89
+ ), didWarnUncachedGetSnapshot = true);
90
+ }
91
+ cachedValue = useState2({
92
+ inst: { value, getSnapshot }
93
+ });
94
+ var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
95
+ useLayoutEffect(
96
+ function() {
97
+ inst.value = value;
98
+ inst.getSnapshot = getSnapshot;
99
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
100
+ },
101
+ [subscribe2, value, getSnapshot]
102
+ );
103
+ useEffect(
104
+ function() {
105
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
106
+ return subscribe2(function() {
107
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
108
+ });
109
+ },
110
+ [subscribe2]
111
+ );
112
+ useDebugValue(value);
113
+ return value;
114
+ }
115
+ function checkIfSnapshotChanged(inst) {
116
+ var latestGetSnapshot = inst.getSnapshot;
117
+ inst = inst.value;
118
+ try {
119
+ var nextValue = latestGetSnapshot();
120
+ return !objectIs(inst, nextValue);
121
+ } catch (error) {
122
+ return true;
123
+ }
124
+ }
125
+ function useSyncExternalStore$1(subscribe2, getSnapshot) {
126
+ return getSnapshot();
127
+ }
128
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
129
+ var React2 = _QAUJZR6Ycjs.__require.call(void 0, "react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState2 = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
130
+ exports.useSyncExternalStore = void 0 !== React2.useSyncExternalStore ? React2.useSyncExternalStore : shim;
131
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
132
+ })();
133
+ }
134
+ });
135
+
136
+ // ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js
137
+ var require_shim = _QAUJZR6Ycjs.__commonJS.call(void 0, {
138
+ "../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js"(exports, module) {
139
+ "use strict";
140
+ if (process.env.NODE_ENV === "production") {
141
+ module.exports = require_use_sync_external_store_shim_production();
142
+ } else {
143
+ module.exports = require_use_sync_external_store_shim_development();
144
+ }
145
+ }
146
+ });
147
+
148
+ // ../ariakit-store/dist/index.js
149
+ function getInternal(store, key) {
150
+ const internals = store.__unstableInternals;
151
+ _QAUJZR6Ycjs.invariant.call(void 0, internals, "Invalid store");
152
+ return internals[key];
153
+ }
154
+ function createStore(initialState, ...stores) {
155
+ let state = initialState;
156
+ let prevStateBatch = state;
157
+ let lastUpdate = /* @__PURE__ */ Symbol();
158
+ let destroy = _QAUJZR6Ycjs.noop;
159
+ const instances = /* @__PURE__ */ new Set();
160
+ const updatedKeys = /* @__PURE__ */ new Set();
161
+ const setups = /* @__PURE__ */ new Set();
162
+ const listeners = /* @__PURE__ */ new Set();
163
+ const batchListeners = /* @__PURE__ */ new Set();
164
+ const disposables = /* @__PURE__ */ new WeakMap();
165
+ const listenerKeys = /* @__PURE__ */ new WeakMap();
166
+ const storeSetup = (callback) => {
167
+ setups.add(callback);
168
+ return () => setups.delete(callback);
169
+ };
170
+ const storeInit = () => {
171
+ const initialized = instances.size;
172
+ const instance = /* @__PURE__ */ Symbol();
173
+ instances.add(instance);
174
+ const maybeDestroy = () => {
175
+ instances.delete(instance);
176
+ if (instances.size) return;
177
+ destroy();
178
+ };
179
+ if (initialized) return maybeDestroy;
180
+ const desyncs = _QAUJZR6Ycjs.getKeys.call(void 0, state).map((key) => _QAUJZR6Ycjs.chain.call(void 0, ...stores.map((store) => {
181
+ var _a;
182
+ const storeState = (_a = store == null ? void 0 : store.getState) == null ? void 0 : _a.call(store);
183
+ if (!storeState) return;
184
+ if (!_QAUJZR6Ycjs.hasOwnProperty.call(void 0, storeState, key)) return;
185
+ return sync(store, [key], (state2) => {
186
+ setState(key, state2[key], true);
187
+ });
188
+ })));
189
+ const teardowns = [];
190
+ for (const setup2 of setups) teardowns.push(setup2());
191
+ const cleanups = stores.map(init);
192
+ destroy = _QAUJZR6Ycjs.chain.call(void 0, ...desyncs, ...teardowns, ...cleanups);
193
+ return maybeDestroy;
194
+ };
195
+ const sub = (keys, listener, set = listeners) => {
196
+ set.add(listener);
197
+ listenerKeys.set(listener, keys);
198
+ return () => {
199
+ var _a;
200
+ (_a = disposables.get(listener)) == null ? void 0 : _a();
201
+ disposables.delete(listener);
202
+ listenerKeys.delete(listener);
203
+ set.delete(listener);
204
+ };
205
+ };
206
+ const storeSubscribe = (keys, listener) => sub(keys, listener);
207
+ const storeSync = (keys, listener) => {
208
+ disposables.set(listener, listener(state, state));
209
+ return sub(keys, listener);
210
+ };
211
+ const storeBatch = (keys, listener) => {
212
+ disposables.set(listener, listener(state, prevStateBatch));
213
+ return sub(keys, listener, batchListeners);
214
+ };
215
+ const storePick = (keys) => createStore(_QAUJZR6Ycjs.pick.call(void 0, state, keys), finalStore);
216
+ const storeOmit = (keys) => createStore(_QAUJZR6Ycjs.omit.call(void 0, state, keys), finalStore);
217
+ const getState = () => state;
218
+ const setState = (key, value, fromStores = false) => {
219
+ var _a;
220
+ if (!_QAUJZR6Ycjs.hasOwnProperty.call(void 0, state, key)) return;
221
+ const nextValue = _QAUJZR6Ycjs.applyState.call(void 0, value, state[key]);
222
+ if (nextValue === state[key]) return;
223
+ if (!fromStores) for (const store of stores) (_a = store == null ? void 0 : store.setState) == null ? void 0 : _a.call(store, key, nextValue);
224
+ const prevState = state;
225
+ state = {
226
+ ...state,
227
+ [key]: nextValue
228
+ };
229
+ const thisUpdate = /* @__PURE__ */ Symbol();
230
+ lastUpdate = thisUpdate;
231
+ updatedKeys.add(key);
232
+ const run = (listener, prev, uKeys) => {
233
+ var _a2;
234
+ const keys = listenerKeys.get(listener);
235
+ const updated = (k) => uKeys ? uKeys.has(k) : k === key;
236
+ if (!keys || keys.some(updated)) {
237
+ (_a2 = disposables.get(listener)) == null ? void 0 : _a2();
238
+ disposables.set(listener, listener(state, prev));
239
+ }
240
+ };
241
+ for (const listener of listeners) run(listener, prevState);
242
+ queueMicrotask(() => {
243
+ if (lastUpdate !== thisUpdate) return;
244
+ const snapshot = state;
245
+ for (const listener of batchListeners) run(listener, prevStateBatch, updatedKeys);
246
+ prevStateBatch = snapshot;
247
+ updatedKeys.clear();
248
+ });
249
+ };
250
+ const finalStore = {
251
+ getState,
252
+ setState,
253
+ __unstableInternals: {
254
+ setup: storeSetup,
255
+ init: storeInit,
256
+ subscribe: storeSubscribe,
257
+ sync: storeSync,
258
+ batch: storeBatch,
259
+ pick: storePick,
260
+ omit: storeOmit
261
+ }
262
+ };
263
+ return finalStore;
264
+ }
265
+ function setup(store, ...args) {
266
+ if (!store) return;
267
+ return getInternal(store, "setup")(...args);
268
+ }
269
+ function init(store, ...args) {
270
+ if (!store) return;
271
+ return getInternal(store, "init")(...args);
272
+ }
273
+ function subscribe(store, ...args) {
274
+ if (!store) return;
275
+ return getInternal(store, "subscribe")(...args);
276
+ }
277
+ function sync(store, ...args) {
278
+ if (!store) return;
279
+ return getInternal(store, "sync")(...args);
280
+ }
281
+ function batch(store, ...args) {
282
+ if (!store) return;
283
+ return getInternal(store, "batch")(...args);
284
+ }
285
+ function omit2(store, ...args) {
286
+ if (!store) return;
287
+ return getInternal(store, "omit")(...args);
288
+ }
289
+ function pick2(store, ...args) {
290
+ if (!store) return;
291
+ return getInternal(store, "pick")(...args);
292
+ }
293
+ function mergeStore(...stores) {
294
+ var _a;
295
+ const initialState = {};
296
+ for (const store2 of stores) {
297
+ const nextState = (_a = store2 == null ? void 0 : store2.getState) == null ? void 0 : _a.call(store2);
298
+ if (nextState) Object.assign(initialState, nextState);
299
+ }
300
+ const store = createStore(initialState, ...stores);
301
+ return Object.assign({}, ...stores, store);
302
+ }
303
+ function throwOnConflictingProps(props, store) {
304
+ if (!store) return;
305
+ const defaultKeys = Object.entries(props).filter(([key, value]) => key.startsWith("default") && value !== void 0).map(([key]) => {
306
+ var _a;
307
+ const stateKey = key.replace("default", "");
308
+ return `${((_a = stateKey[0]) == null ? void 0 : _a.toLowerCase()) || ""}${stateKey.slice(1)}`;
309
+ });
310
+ if (!defaultKeys.length) return;
311
+ const storeState = store.getState();
312
+ if (!defaultKeys.filter((key) => _QAUJZR6Ycjs.hasOwnProperty.call(void 0, storeState, key)).length) return;
313
+ throw new Error(`Passing a store prop in conjunction with a default state is not supported.
314
+
315
+ const store = useSelectStore();
316
+ <SelectProvider store={store} defaultValue="Apple" />
317
+ ^ ^
318
+
319
+ Instead, pass the default state to the topmost store:
320
+
321
+ const store = useSelectStore({ defaultValue: "Apple" });
322
+ <SelectProvider store={store} />
323
+
324
+ See https://github.com/ariakit/ariakit/pull/2745 for more details.
325
+
326
+ If there's a particular need for this, please submit a feature request at https://github.com/ariakit/ariakit
327
+ `);
328
+ }
329
+
330
+ // ../ariakit-react-store/dist/index.js
331
+ var import_shim = _QAUJZR6Ycjs.__toESM.call(void 0, require_shim(), 1);
332
+ var _react = require('react'); var React = _interopRequireWildcard(_react);
333
+ var noopSubscribe = () => () => {
334
+ };
335
+ function useStoreState(store, keyOrSelector = _QAUJZR6Ycjs.identity) {
336
+ const storeSubscribe = React.useCallback((callback) => {
337
+ if (!store) return noopSubscribe();
338
+ return subscribe(store, null, callback);
339
+ }, [store]);
340
+ const getSnapshot = () => {
341
+ const key = typeof keyOrSelector === "string" ? keyOrSelector : null;
342
+ const selector = typeof keyOrSelector === "function" ? keyOrSelector : null;
343
+ const state = store == null ? void 0 : store.getState();
344
+ if (selector) return selector(state);
345
+ if (!state) return;
346
+ if (!key) return;
347
+ if (!_QAUJZR6Ycjs.hasOwnProperty.call(void 0, state, key)) return;
348
+ return state[key];
349
+ };
350
+ return (0, import_shim.useSyncExternalStore)(storeSubscribe, getSnapshot, getSnapshot);
351
+ }
352
+ function useStoreStateObject(store, object) {
353
+ const objRef = React.useRef({});
354
+ const storeSubscribe = React.useCallback((callback) => {
355
+ if (!store) return noopSubscribe();
356
+ return subscribe(store, null, callback);
357
+ }, [store]);
358
+ const getSnapshot = () => {
359
+ const state = store == null ? void 0 : store.getState();
360
+ let updated = false;
361
+ const obj = objRef.current;
362
+ for (const prop in object) {
363
+ const keyOrSelector = object[prop];
364
+ if (typeof keyOrSelector === "function") {
365
+ const value = keyOrSelector(state);
366
+ if (value !== obj[prop]) {
367
+ obj[prop] = value;
368
+ updated = true;
369
+ }
370
+ }
371
+ if (typeof keyOrSelector === "string") {
372
+ if (!state) continue;
373
+ if (!_QAUJZR6Ycjs.hasOwnProperty.call(void 0, state, keyOrSelector)) continue;
374
+ const value = state[keyOrSelector];
375
+ if (value !== obj[prop]) {
376
+ obj[prop] = value;
377
+ updated = true;
378
+ }
379
+ }
380
+ }
381
+ if (updated) objRef.current = { ...obj };
382
+ return objRef.current;
383
+ };
384
+ return (0, import_shim.useSyncExternalStore)(storeSubscribe, getSnapshot, getSnapshot);
385
+ }
386
+ function useStoreProps(store, props, key, setKey) {
387
+ const value = _QAUJZR6Ycjs.hasOwnProperty.call(void 0, props, key) ? props[key] : void 0;
388
+ const propsRef = _QAUJZR6Ycjs.useLiveRef.call(void 0, {
389
+ value,
390
+ setValue: setKey ? props[setKey] : void 0
391
+ });
392
+ _QAUJZR6Ycjs.useSafeLayoutEffect.call(void 0, () => {
393
+ return sync(store, [key], (state, prev) => {
394
+ const { value: value2, setValue } = propsRef.current;
395
+ if (!setValue) return;
396
+ if (state[key] === prev[key]) return;
397
+ if (state[key] === value2) return;
398
+ setValue(state[key]);
399
+ });
400
+ }, [store, key]);
401
+ _QAUJZR6Ycjs.useSafeLayoutEffect.call(void 0, () => {
402
+ if (value === void 0) return;
403
+ store.setState(key, value);
404
+ return batch(store, [key], () => {
405
+ if (value === void 0) return;
406
+ store.setState(key, value);
407
+ });
408
+ });
409
+ }
410
+ function useStore(createStore2, props) {
411
+ const [store, setStore] = React.useState(() => createStore2(props));
412
+ _QAUJZR6Ycjs.useSafeLayoutEffect.call(void 0, () => init(store), [store]);
413
+ const useState2 = React.useCallback((keyOrSelector) => useStoreState(store, keyOrSelector), [store]);
414
+ return [React.useMemo(() => ({
415
+ ...store,
416
+ useState: useState2
417
+ }), [store, useState2]), _QAUJZR6Ycjs.useEvent.call(void 0, () => {
418
+ setStore((store2) => createStore2({
419
+ ...props,
420
+ ...store2.getState()
421
+ }));
422
+ })];
423
+ }
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+ exports.createStore = createStore; exports.setup = setup; exports.init = init; exports.subscribe = subscribe; exports.sync = sync; exports.batch = batch; exports.omit = omit2; exports.pick = pick2; exports.mergeStore = mergeStore; exports.throwOnConflictingProps = throwOnConflictingProps; exports.useStoreState = useStoreState; exports.useStoreStateObject = useStoreStateObject; exports.useStoreProps = useStoreProps; exports.useStore = useStore;
441
+ /*! Bundled license information:
442
+
443
+ use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
444
+ (**
445
+ * @license React
446
+ * use-sync-external-store-shim.production.js
447
+ *
448
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
449
+ *
450
+ * This source code is licensed under the MIT license found in the
451
+ * LICENSE file in the root directory of this source tree.
452
+ *)
453
+
454
+ use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
455
+ (**
456
+ * @license React
457
+ * use-sync-external-store-shim.development.js
458
+ *
459
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
460
+ *
461
+ * This source code is licensed under the MIT license found in the
462
+ * LICENSE file in the root directory of this source tree.
463
+ *)
464
+ */
@@ -0,0 +1,107 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _XH4GE3VEcjs = require('./XH4GE3VE.cjs');
4
+
5
+
6
+
7
+
8
+ var _FIPBE5IXcjs = require('./FIPBE5IX.cjs');
9
+
10
+
11
+ var _FVIS5BFZcjs = require('./FVIS5BFZ.cjs');
12
+
13
+
14
+ var _D4HCGWOUcjs = require('./D4HCGWOU.cjs');
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
24
+
25
+ // ../ariakit-react-components/dist/popover/popover-disclosure.js
26
+ var _jsxruntime = require('react/jsx-runtime');
27
+ var TagName = "button";
28
+ var usePopoverDisclosure = _QAUJZR6Ycjs.createHook.call(void 0, function usePopoverDisclosure2({ store, ...props }) {
29
+ const context = _FIPBE5IXcjs.usePopoverProviderContext.call(void 0, );
30
+ store = store || context;
31
+ _QAUJZR6Ycjs.invariant.call(void 0, store, "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component.");
32
+ const onClickProp = props.onClick;
33
+ const onClick = _QAUJZR6Ycjs.useEvent.call(void 0, (event) => {
34
+ store == null ? void 0 : store.setAnchorElement(event.currentTarget);
35
+ onClickProp == null ? void 0 : onClickProp(event);
36
+ });
37
+ props = _QAUJZR6Ycjs.useWrapElement.call(void 0, props, (element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FIPBE5IXcjs.PopoverScopedContextProvider, {
38
+ value: store,
39
+ children: element
40
+ }), [store]);
41
+ props = {
42
+ ...props,
43
+ onClick
44
+ };
45
+ props = _XH4GE3VEcjs.usePopoverAnchor.call(void 0, {
46
+ store,
47
+ ...props
48
+ });
49
+ props = _FVIS5BFZcjs.useDialogDisclosure.call(void 0, {
50
+ store,
51
+ ...props
52
+ });
53
+ return props;
54
+ });
55
+ var PopoverDisclosure = _QAUJZR6Ycjs.forwardRef.call(void 0, function PopoverDisclosure2(props) {
56
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName, usePopoverDisclosure(props));
57
+ });
58
+
59
+ // ../ariakit-react-components/dist/popover/popover-disclosure-arrow.js
60
+ var _react = require('react');
61
+
62
+ var TagName2 = "span";
63
+ var pointsMap = {
64
+ top: "4,10 8,6 12,10",
65
+ right: "6,4 10,8 6,12",
66
+ bottom: "4,6 8,10 12,6",
67
+ left: "10,4 6,8 10,12"
68
+ };
69
+ var usePopoverDisclosureArrow = _QAUJZR6Ycjs.createHook.call(void 0, function usePopoverDisclosureArrow2({ store, placement, ...props }) {
70
+ const context = _FIPBE5IXcjs.usePopoverContext.call(void 0, );
71
+ store = store || context;
72
+ _QAUJZR6Ycjs.invariant.call(void 0, store, "PopoverDisclosureArrow must be wrapped in a PopoverDisclosure component.");
73
+ const points = pointsMap[_D4HCGWOUcjs.useStoreState.call(void 0, store, (state) => placement || state.placement).split("-")[0]];
74
+ props = {
75
+ children: _react.useMemo.call(void 0, () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", {
76
+ display: "block",
77
+ fill: "none",
78
+ stroke: "currentColor",
79
+ strokeLinecap: "round",
80
+ strokeLinejoin: "round",
81
+ strokeWidth: 1.5,
82
+ viewBox: "0 0 16 16",
83
+ height: "1em",
84
+ width: "1em",
85
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "polyline", { points })
86
+ }), [points]),
87
+ "aria-hidden": true,
88
+ ...props,
89
+ style: {
90
+ width: "1em",
91
+ height: "1em",
92
+ pointerEvents: "none",
93
+ ...props.style
94
+ }
95
+ };
96
+ return _QAUJZR6Ycjs.removeUndefinedValues.call(void 0, props);
97
+ });
98
+ var PopoverDisclosureArrow = _QAUJZR6Ycjs.forwardRef.call(void 0, function PopoverDisclosureArrow2(props) {
99
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName2, usePopoverDisclosureArrow(props));
100
+ });
101
+
102
+
103
+
104
+
105
+
106
+
107
+ exports.usePopoverDisclosure = usePopoverDisclosure; exports.PopoverDisclosure = PopoverDisclosure; exports.usePopoverDisclosureArrow = usePopoverDisclosureArrow; exports.PopoverDisclosureArrow = PopoverDisclosureArrow;
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../ariakit-react-components/dist/heading/heading-context.js
2
+ var _react = require('react');
3
+ var HeadingContext = _react.createContext.call(void 0, 0);
4
+
5
+ // ../ariakit-react-components/dist/heading/heading-level.js
6
+
7
+ var _jsxruntime = require('react/jsx-runtime');
8
+ function HeadingLevel({ level, children }) {
9
+ const contextLevel = _react.useContext.call(void 0, HeadingContext);
10
+ const nextLevel = Math.max(Math.min(level || contextLevel + 1, 6), 1);
11
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeadingContext.Provider, {
12
+ value: nextLevel,
13
+ children
14
+ });
15
+ }
16
+
17
+
18
+
19
+
20
+ exports.HeadingContext = HeadingContext; exports.HeadingLevel = HeadingLevel;
@@ -0,0 +1 @@
1
+ "use strict";