@ariakit/react 0.4.26 → 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 +5 -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 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,34 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
6
+
7
+ // ../ariakit-react-components/dist/visually-hidden/visually-hidden.js
8
+ var TagName = "span";
9
+ var useVisuallyHidden = _QAUJZR6Ycjs.createHook.call(void 0, function useVisuallyHidden2(props) {
10
+ props = {
11
+ ...props,
12
+ style: {
13
+ border: 0,
14
+ clip: "rect(0 0 0 0)",
15
+ height: "1px",
16
+ margin: "-1px",
17
+ overflow: "hidden",
18
+ padding: 0,
19
+ position: "absolute",
20
+ whiteSpace: "nowrap",
21
+ width: "1px",
22
+ ...props.style
23
+ }
24
+ };
25
+ return props;
26
+ });
27
+ var VisuallyHidden = _QAUJZR6Ycjs.forwardRef.call(void 0, function VisuallyHidden2(props) {
28
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName, useVisuallyHidden(props));
29
+ });
30
+
31
+
32
+
33
+
34
+ exports.useVisuallyHidden = useVisuallyHidden; exports.VisuallyHidden = VisuallyHidden;
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _NMUCJYMRcjs = require('./NMUCJYMR.cjs');
4
+
5
+
6
+ var _L2IFVMDUcjs = require('./L2IFVMDU.cjs');
7
+
8
+ // ../ariakit-react-components/dist/composite/composite-provider.js
9
+ var _jsxruntime = require('react/jsx-runtime');
10
+ function CompositeProvider(props = {}) {
11
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _L2IFVMDUcjs.CompositeContextProvider, {
12
+ value: _NMUCJYMRcjs.useCompositeStore.call(void 0, props),
13
+ children: props.children
14
+ });
15
+ }
16
+
17
+
18
+
19
+ exports.CompositeProvider = CompositeProvider;
@@ -0,0 +1,17 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _7POA4244cjs = require('./7POA4244.cjs');
5
+
6
+ // ../ariakit-react-components/dist/checkbox/checkbox-provider.js
7
+ var _jsxruntime = require('react/jsx-runtime');
8
+ function CheckboxProvider(props = {}) {
9
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _7POA4244cjs.CheckboxContextProvider, {
10
+ value: _7POA4244cjs.useCheckboxStore.call(void 0, props),
11
+ children: props.children
12
+ });
13
+ }
14
+
15
+
16
+
17
+ exports.CheckboxProvider = CheckboxProvider;
@@ -0,0 +1,150 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _FIPBE5IXcjs = require('./FIPBE5IX.cjs');
4
+
5
+
6
+ var _D4HCGWOUcjs = require('./D4HCGWOU.cjs');
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
19
+
20
+ // ../ariakit-react-components/dist/popover/popover-arrow-path.js
21
+ var POPOVER_ARROW_PATH = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z";
22
+
23
+ // ../ariakit-react-components/dist/popover/popover-arrow.js
24
+ var _react = require('react');
25
+ var _jsxruntime = require('react/jsx-runtime');
26
+ var TagName = "div";
27
+ var defaultSize = 30;
28
+ var halfDefaultSize = defaultSize / 2;
29
+ var rotateMap = {
30
+ top: `rotate(180 ${halfDefaultSize} ${halfDefaultSize})`,
31
+ right: `rotate(-90 ${halfDefaultSize} ${halfDefaultSize})`,
32
+ bottom: `rotate(0 ${halfDefaultSize} ${halfDefaultSize})`,
33
+ left: `rotate(90 ${halfDefaultSize} ${halfDefaultSize})`
34
+ };
35
+ function useComputedStyle(store) {
36
+ const [style, setStyle] = _react.useState.call(void 0, );
37
+ const contentElement = _D4HCGWOUcjs.useStoreState.call(void 0, store, "contentElement");
38
+ _QAUJZR6Ycjs.useSafeLayoutEffect.call(void 0, () => {
39
+ if (!contentElement) return;
40
+ setStyle(_QAUJZR6Ycjs.getWindow.call(void 0, contentElement).getComputedStyle(contentElement));
41
+ }, [contentElement]);
42
+ return style;
43
+ }
44
+ function getRingWidth(style) {
45
+ var _a;
46
+ if (!style) return;
47
+ return (_a = style.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/)) == null ? void 0 : _a[1];
48
+ }
49
+ function getBorderColor(dir, style) {
50
+ if (!style) return;
51
+ const borderColor = style.getPropertyValue(`border-${dir}-color`);
52
+ if (borderColor) return borderColor;
53
+ const match = style.getPropertyValue("box-shadow").match(/0px 0px 0px [^,]+/);
54
+ if (!match) return;
55
+ return match[0].replace(/^0px 0px 0px\s+[^\s,]+/, "").trim() || void 0;
56
+ }
57
+ var usePopoverArrow = _QAUJZR6Ycjs.createHook.call(void 0, function usePopoverArrow2({ store, size = defaultSize, borderWidth: borderWidthProp, ...props }) {
58
+ const context = _FIPBE5IXcjs.usePopoverContext.call(void 0, );
59
+ store = store || context;
60
+ _QAUJZR6Ycjs.invariant.call(void 0, store, "PopoverArrow must be wrapped in a Popover component.");
61
+ const dir = _D4HCGWOUcjs.useStoreState.call(void 0, store, (state) => state.currentPlacement.split("-")[0]);
62
+ const maskId = _QAUJZR6Ycjs.useId.call(void 0, );
63
+ const style = useComputedStyle(store);
64
+ const stroke = getBorderColor(dir, style) || "none";
65
+ const fill = (style == null ? void 0 : style.getPropertyValue("background-color")) || "none";
66
+ const [borderWidth, isRing] = _react.useMemo.call(void 0, () => {
67
+ if (borderWidthProp != null) return [borderWidthProp, false];
68
+ if (!style) return [0, false];
69
+ const ringWidth = getRingWidth(style);
70
+ if (ringWidth) return [Number.parseInt(ringWidth, 10), true];
71
+ const borderWidth2 = style.getPropertyValue(`border-${dir}-width`);
72
+ if (borderWidth2) {
73
+ const parsed = Number.parseFloat(borderWidth2);
74
+ if (!Number.isNaN(parsed)) return [Math.ceil(parsed), false];
75
+ }
76
+ return [0, false];
77
+ }, [
78
+ borderWidthProp,
79
+ style,
80
+ dir
81
+ ]);
82
+ const strokeWidth = borderWidth * 2 * (defaultSize / size);
83
+ const transform = rotateMap[dir];
84
+ props = {
85
+ children: _react.useMemo.call(void 0, () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", {
86
+ display: "block",
87
+ viewBox: "0 0 30 30",
88
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", {
89
+ transform,
90
+ children: [
91
+ !isRing && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", {
92
+ fill: "none",
93
+ stroke: `var(--ak-layer, ${fill})`,
94
+ d: "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z",
95
+ mask: `url(#${maskId})`
96
+ }),
97
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", {
98
+ fill: "none",
99
+ d: POPOVER_ARROW_PATH,
100
+ mask: `url(#${maskId})`
101
+ }),
102
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", {
103
+ stroke: "none",
104
+ d: POPOVER_ARROW_PATH
105
+ }),
106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "mask", {
107
+ id: maskId,
108
+ maskUnits: "userSpaceOnUse",
109
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", {
110
+ x: "-15",
111
+ y: "0",
112
+ width: "60",
113
+ height: "30",
114
+ fill: "white",
115
+ stroke: "black"
116
+ })
117
+ })
118
+ ]
119
+ })
120
+ }), [
121
+ transform,
122
+ isRing,
123
+ fill,
124
+ maskId
125
+ ]),
126
+ "aria-hidden": true,
127
+ ...props,
128
+ ref: _QAUJZR6Ycjs.useMergeRefs.call(void 0, store.setArrowElement, props.ref),
129
+ style: {
130
+ position: "absolute",
131
+ fontSize: size,
132
+ width: "1em",
133
+ height: "1em",
134
+ pointerEvents: "none",
135
+ fill: `var(--ak-layer, ${fill})`,
136
+ stroke: `var(--ak-layer-border, ${stroke})`,
137
+ strokeWidth,
138
+ ...props.style
139
+ }
140
+ };
141
+ return _QAUJZR6Ycjs.removeUndefinedValues.call(void 0, props);
142
+ });
143
+ var PopoverArrow = _QAUJZR6Ycjs.memo.call(void 0, _QAUJZR6Ycjs.forwardRef.call(void 0, function PopoverArrow2(props) {
144
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName, usePopoverArrow(props));
145
+ }));
146
+
147
+
148
+
149
+
150
+ exports.usePopoverArrow = usePopoverArrow; exports.PopoverArrow = PopoverArrow;
@@ -0,0 +1,95 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _5NTEPQ2Ucjs = require('./5NTEPQ2U.cjs');
6
+
7
+
8
+
9
+
10
+
11
+ var _NMUCJYMRcjs = require('./NMUCJYMR.cjs');
12
+
13
+
14
+
15
+
16
+ var _D4HCGWOUcjs = require('./D4HCGWOU.cjs');
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
25
+
26
+ // ../ariakit-react-components/dist/radio/radio-group.js
27
+ var _jsxruntime = require('react/jsx-runtime');
28
+ var TagName = "div";
29
+ var useRadioGroup = _QAUJZR6Ycjs.createHook.call(void 0, function useRadioGroup2({ store, ...props }) {
30
+ const context = _5NTEPQ2Ucjs.useRadioProviderContext.call(void 0, );
31
+ store = store || context;
32
+ _QAUJZR6Ycjs.invariant.call(void 0, store, "RadioGroup must receive a `store` prop or be wrapped in a RadioProvider component.");
33
+ props = _QAUJZR6Ycjs.useWrapElement.call(void 0, props, (element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _5NTEPQ2Ucjs.RadioScopedContextProvider, {
34
+ value: store,
35
+ children: element
36
+ }), [store]);
37
+ props = {
38
+ role: "radiogroup",
39
+ ...props
40
+ };
41
+ props = _NMUCJYMRcjs.useComposite.call(void 0, {
42
+ store,
43
+ ...props
44
+ });
45
+ return props;
46
+ });
47
+ var RadioGroup = _QAUJZR6Ycjs.forwardRef.call(void 0, function RadioGroup2(props) {
48
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName, useRadioGroup(props));
49
+ });
50
+
51
+ // ../ariakit-components/dist/radio/radio-store.js
52
+ function createRadioStore({ ...props } = {}) {
53
+ var _a;
54
+ const syncState = (_a = props.store) == null ? void 0 : _a.getState();
55
+ const composite = _NMUCJYMRcjs.createCompositeStore.call(void 0, {
56
+ ...props,
57
+ focusLoop: _QAUJZR6Ycjs.defaultValue.call(void 0, props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
58
+ });
59
+ const radio = _D4HCGWOUcjs.createStore.call(void 0, {
60
+ ...composite.getState(),
61
+ value: _QAUJZR6Ycjs.defaultValue.call(void 0, props.value, syncState == null ? void 0 : syncState.value, props.defaultValue, null)
62
+ }, composite, props.store);
63
+ return {
64
+ ...composite,
65
+ ...radio,
66
+ setValue: (value) => radio.setState("value", value)
67
+ };
68
+ }
69
+
70
+ // ../ariakit-react-components/dist/radio/radio-store.js
71
+ function useRadioStoreProps(store, update, props) {
72
+ store = _NMUCJYMRcjs.useCompositeStoreProps.call(void 0, store, update, props);
73
+ _D4HCGWOUcjs.useStoreProps.call(void 0, store, props, "value", "setValue");
74
+ return store;
75
+ }
76
+ function useRadioStore(props = {}) {
77
+ props = _NMUCJYMRcjs.useCompositeStoreOptions.call(void 0, props);
78
+ const [store, update] = _D4HCGWOUcjs.useStore.call(void 0, createRadioStore, props);
79
+ return useRadioStoreProps(store, update, props);
80
+ }
81
+
82
+ // ../ariakit-react-components/dist/radio/radio-provider.js
83
+
84
+ function RadioProvider(props = {}) {
85
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _5NTEPQ2Ucjs.RadioContextProvider, {
86
+ value: useRadioStore(props),
87
+ children: props.children
88
+ });
89
+ }
90
+
91
+
92
+
93
+
94
+
95
+ exports.RadioGroup = RadioGroup; exports.useRadioStore = useRadioStore; exports.RadioProvider = RadioProvider;
@@ -0,0 +1,62 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
10
+
11
+ // ../ariakit-react-components/dist/group/group-label-context.js
12
+ var _react = require('react');
13
+ var GroupLabelContext = _react.createContext.call(void 0, void 0);
14
+
15
+ // ../ariakit-react-components/dist/group/group.js
16
+
17
+ var _jsxruntime = require('react/jsx-runtime');
18
+ var TagName = "div";
19
+ var useGroup = _QAUJZR6Ycjs.createHook.call(void 0, function useGroup2(props) {
20
+ const [labelId, setLabelId] = _react.useState.call(void 0, );
21
+ props = _QAUJZR6Ycjs.useWrapElement.call(void 0, props, (element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GroupLabelContext.Provider, {
22
+ value: setLabelId,
23
+ children: element
24
+ }), []);
25
+ props = {
26
+ role: "group",
27
+ "aria-labelledby": props["aria-label"] != null ? void 0 : labelId,
28
+ ...props
29
+ };
30
+ return _QAUJZR6Ycjs.removeUndefinedValues.call(void 0, props);
31
+ });
32
+ var Group = _QAUJZR6Ycjs.forwardRef.call(void 0, function Group2(props) {
33
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName, useGroup(props));
34
+ });
35
+
36
+ // ../ariakit-react-components/dist/group/group-label.js
37
+
38
+ var TagName2 = "div";
39
+ var useGroupLabel = _QAUJZR6Ycjs.createHook.call(void 0, function useGroupLabel2(props) {
40
+ const setLabelId = _react.useContext.call(void 0, GroupLabelContext);
41
+ const id = _QAUJZR6Ycjs.useId.call(void 0, props.id);
42
+ _QAUJZR6Ycjs.useSafeLayoutEffect.call(void 0, () => {
43
+ setLabelId == null ? void 0 : setLabelId(id);
44
+ return () => setLabelId == null ? void 0 : setLabelId(void 0);
45
+ }, [setLabelId, id]);
46
+ props = {
47
+ "aria-hidden": true,
48
+ ...props,
49
+ id
50
+ };
51
+ return _QAUJZR6Ycjs.removeUndefinedValues.call(void 0, props);
52
+ });
53
+ var GroupLabel = _QAUJZR6Ycjs.forwardRef.call(void 0, function GroupLabel2(props) {
54
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName2, useGroupLabel(props));
55
+ });
56
+
57
+
58
+
59
+
60
+
61
+
62
+ exports.useGroup = useGroup; exports.Group = Group; exports.useGroupLabel = useGroupLabel; exports.GroupLabel = GroupLabel;
@@ -0,0 +1,294 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _L2IFVMDUcjs = require('./L2IFVMDU.cjs');
10
+
11
+
12
+ var _GUB6WHB6cjs = require('./GUB6WHB6.cjs');
13
+
14
+
15
+ var _D4HCGWOUcjs = require('./D4HCGWOU.cjs');
16
+
17
+
18
+ var _LVHC4DSBcjs = require('./LVHC4DSB.cjs');
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ var _QAUJZR6Ycjs = require('./QAUJZR6Y.cjs');
41
+
42
+ // ../ariakit-react-components/dist/composite/composite-item.js
43
+ var _react = require('react');
44
+ var _jsxruntime = require('react/jsx-runtime');
45
+ var TagName = "button";
46
+ function isEditableElement(element) {
47
+ if (_QAUJZR6Ycjs.isTextbox.call(void 0, element)) return true;
48
+ return element.tagName === "INPUT" && !_QAUJZR6Ycjs.isButton.call(void 0, element);
49
+ }
50
+ function getNextPageOffset(scrollingElement, pageUp = false) {
51
+ const height = scrollingElement.clientHeight;
52
+ const { top } = scrollingElement.getBoundingClientRect();
53
+ const pageSize = Math.max(height * 0.875, height - 40) * 1.5;
54
+ const pageOffset = pageUp ? height - pageSize + top : pageSize + top;
55
+ if (scrollingElement.tagName === "HTML") return pageOffset + scrollingElement.scrollTop;
56
+ return pageOffset;
57
+ }
58
+ function getItemOffset(itemElement, pageUp = false) {
59
+ const { top } = itemElement.getBoundingClientRect();
60
+ if (pageUp) return top + itemElement.clientHeight;
61
+ return top;
62
+ }
63
+ function findNextPageItemId(element, store, next, pageUp = false) {
64
+ var _a;
65
+ if (!store) return;
66
+ if (!next) return;
67
+ const { renderedItems } = store.getState();
68
+ const scrollingElement = _QAUJZR6Ycjs.getScrollingElement.call(void 0, element);
69
+ if (!scrollingElement) return;
70
+ const nextPageOffset = getNextPageOffset(scrollingElement, pageUp);
71
+ let id;
72
+ let prevDifference;
73
+ for (let i = 0; i < renderedItems.length; i += 1) {
74
+ const previousId = id;
75
+ id = next(i);
76
+ if (!id) break;
77
+ if (id === previousId) continue;
78
+ const itemElement = (_a = _L2IFVMDUcjs.getEnabledItem.call(void 0, store, id)) == null ? void 0 : _a.element;
79
+ if (!itemElement) continue;
80
+ const difference = getItemOffset(itemElement, pageUp) - nextPageOffset;
81
+ const absDifference = Math.abs(difference);
82
+ if (pageUp && difference <= 0 || !pageUp && difference >= 0) {
83
+ if (prevDifference !== void 0 && prevDifference < absDifference) id = previousId;
84
+ break;
85
+ }
86
+ prevDifference = absDifference;
87
+ }
88
+ return id;
89
+ }
90
+ function targetIsAnotherItem(event, store) {
91
+ if (_QAUJZR6Ycjs.isSelfTarget.call(void 0, event)) return false;
92
+ return _L2IFVMDUcjs.isItem.call(void 0, store, event.target);
93
+ }
94
+ var useCompositeItem = _QAUJZR6Ycjs.createHook.call(void 0, function useCompositeItem2({ store, rowId: rowIdProp, preventScrollOnKeyDown = false, moveOnKeyPress = true, tabbable = false, getItem: getItemProp, "aria-setsize": ariaSetSizeProp, "aria-posinset": ariaPosInSetProp, ...props }) {
95
+ const context = _L2IFVMDUcjs.useCompositeContext.call(void 0, );
96
+ store = store || context;
97
+ const id = _QAUJZR6Ycjs.useId.call(void 0, props.id);
98
+ const ref = _react.useRef.call(void 0, null);
99
+ const row = _react.useContext.call(void 0, _L2IFVMDUcjs.CompositeRowContext);
100
+ const trulyDisabled = _QAUJZR6Ycjs.disabledFromProps.call(void 0, props) && !props.accessibleWhenDisabled;
101
+ const { rowId, baseElement, isActiveItem, ariaSetSize, ariaPosInSet, isTabbable } = _D4HCGWOUcjs.useStoreStateObject.call(void 0, store, {
102
+ rowId(state) {
103
+ if (rowIdProp) return rowIdProp;
104
+ if (!state) return;
105
+ if (!(row == null ? void 0 : row.baseElement)) return;
106
+ if (row.baseElement !== state.baseElement) return;
107
+ return row.id;
108
+ },
109
+ baseElement(state) {
110
+ return (state == null ? void 0 : state.baseElement) || void 0;
111
+ },
112
+ isActiveItem(state) {
113
+ return !!state && state.activeId === id;
114
+ },
115
+ ariaSetSize(state) {
116
+ if (ariaSetSizeProp != null) return ariaSetSizeProp;
117
+ if (!state) return;
118
+ if (!(row == null ? void 0 : row.ariaSetSize)) return;
119
+ if (row.baseElement !== state.baseElement) return;
120
+ return row.ariaSetSize;
121
+ },
122
+ ariaPosInSet(state) {
123
+ if (ariaPosInSetProp != null) return ariaPosInSetProp;
124
+ if (!state) return;
125
+ if (!(row == null ? void 0 : row.ariaPosInSet)) return;
126
+ if (row.baseElement !== state.baseElement) return;
127
+ const itemsInRow = state.renderedItems.filter((item) => item.rowId === rowId);
128
+ return row.ariaPosInSet + itemsInRow.findIndex((item) => item.id === id);
129
+ },
130
+ isTabbable(state) {
131
+ if (!(state == null ? void 0 : state.renderedItems.length)) return true;
132
+ if (state.virtualFocus) return false;
133
+ if (tabbable) return true;
134
+ if (state.activeId === null) return false;
135
+ const item = store == null ? void 0 : store.item(state.activeId);
136
+ if (item == null ? void 0 : item.disabled) return true;
137
+ if (!(item == null ? void 0 : item.element)) return true;
138
+ return state.activeId === id;
139
+ }
140
+ });
141
+ const getItem = _react.useCallback.call(void 0, (item) => {
142
+ var _a;
143
+ const nextItem = {
144
+ ...item,
145
+ id: id || item.id,
146
+ rowId,
147
+ disabled: trulyDisabled,
148
+ children: (_a = item.element) == null ? void 0 : _a.textContent
149
+ };
150
+ if (getItemProp) return getItemProp(nextItem);
151
+ return nextItem;
152
+ }, [
153
+ id,
154
+ rowId,
155
+ trulyDisabled,
156
+ getItemProp
157
+ ]);
158
+ const onFocusProp = props.onFocus;
159
+ const hasFocusedComposite = _react.useRef.call(void 0, false);
160
+ const onFocus = _QAUJZR6Ycjs.useEvent.call(void 0, (event) => {
161
+ onFocusProp == null ? void 0 : onFocusProp(event);
162
+ if (event.defaultPrevented) return;
163
+ if (_QAUJZR6Ycjs.isPortalEvent.call(void 0, event)) return;
164
+ if (!id) return;
165
+ if (!store) return;
166
+ if (targetIsAnotherItem(event, store)) return;
167
+ const { virtualFocus, baseElement: baseElement2 } = store.getState();
168
+ store.setActiveId(id);
169
+ if (_QAUJZR6Ycjs.isTextbox.call(void 0, event.currentTarget)) _L2IFVMDUcjs.selectTextField.call(void 0, event.currentTarget);
170
+ if (!virtualFocus) return;
171
+ if (!_QAUJZR6Ycjs.isSelfTarget.call(void 0, event)) return;
172
+ if (isEditableElement(event.currentTarget)) return;
173
+ if (!(baseElement2 == null ? void 0 : baseElement2.isConnected)) return;
174
+ if (_QAUJZR6Ycjs.isSafari.call(void 0, ) && event.currentTarget.hasAttribute("data-autofocus")) event.currentTarget.scrollIntoView({
175
+ block: "nearest",
176
+ inline: "nearest"
177
+ });
178
+ hasFocusedComposite.current = true;
179
+ if (event.relatedTarget === baseElement2 || _L2IFVMDUcjs.isItem.call(void 0, store, event.relatedTarget)) _L2IFVMDUcjs.focusSilently.call(void 0, baseElement2);
180
+ else baseElement2.focus();
181
+ });
182
+ const onBlurCaptureProp = props.onBlurCapture;
183
+ const onBlurCapture = _QAUJZR6Ycjs.useEvent.call(void 0, (event) => {
184
+ var _a;
185
+ onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
186
+ if (event.defaultPrevented) return;
187
+ if (((_a = store == null ? void 0 : store.getState()) == null ? void 0 : _a.virtualFocus) && hasFocusedComposite.current) {
188
+ hasFocusedComposite.current = false;
189
+ event.preventDefault();
190
+ event.stopPropagation();
191
+ }
192
+ });
193
+ const onKeyDownProp = props.onKeyDown;
194
+ const preventScrollOnKeyDownProp = _QAUJZR6Ycjs.useBooleanEvent.call(void 0, preventScrollOnKeyDown);
195
+ const moveOnKeyPressProp = _QAUJZR6Ycjs.useBooleanEvent.call(void 0, moveOnKeyPress);
196
+ const onKeyDown = _QAUJZR6Ycjs.useEvent.call(void 0, (event) => {
197
+ var _a;
198
+ onKeyDownProp == null ? void 0 : onKeyDownProp(event);
199
+ if (event.defaultPrevented) return;
200
+ if (!_QAUJZR6Ycjs.isSelfTarget.call(void 0, event)) return;
201
+ if (!store) return;
202
+ const { currentTarget } = event;
203
+ const state = store.getState();
204
+ const isGrid = !!((_a = store.item(id)) == null ? void 0 : _a.rowId);
205
+ const isVertical = state.orientation !== "horizontal";
206
+ const isHorizontal = state.orientation !== "vertical";
207
+ const canHomeEnd = () => {
208
+ if (isGrid) return true;
209
+ if (isHorizontal) return true;
210
+ if (!state.baseElement) return true;
211
+ if (!_QAUJZR6Ycjs.isTextField.call(void 0, state.baseElement)) return true;
212
+ return false;
213
+ };
214
+ const action = {
215
+ ArrowUp: (isGrid || isVertical) && store.up,
216
+ ArrowRight: (isGrid || isHorizontal) && store.next,
217
+ ArrowDown: (isGrid || isVertical) && store.down,
218
+ ArrowLeft: (isGrid || isHorizontal) && store.previous,
219
+ Home: () => {
220
+ if (!canHomeEnd()) return;
221
+ if (!isGrid || event.ctrlKey) return store == null ? void 0 : store.first();
222
+ return store == null ? void 0 : store.previous(-1);
223
+ },
224
+ End: () => {
225
+ if (!canHomeEnd()) return;
226
+ if (!isGrid || event.ctrlKey) return store == null ? void 0 : store.last();
227
+ return store == null ? void 0 : store.next(-1);
228
+ },
229
+ PageUp: () => {
230
+ return findNextPageItemId(currentTarget, store, store == null ? void 0 : store.up, true);
231
+ },
232
+ PageDown: () => {
233
+ return findNextPageItemId(currentTarget, store, store == null ? void 0 : store.down);
234
+ }
235
+ }[event.key];
236
+ if (action) {
237
+ if (_QAUJZR6Ycjs.isTextbox.call(void 0, currentTarget)) {
238
+ const selection = _QAUJZR6Ycjs.getTextboxSelection.call(void 0, currentTarget);
239
+ const isLeft = isHorizontal && event.key === "ArrowLeft";
240
+ const isRight = isHorizontal && event.key === "ArrowRight";
241
+ const isUp = isVertical && event.key === "ArrowUp";
242
+ const isDown = isVertical && event.key === "ArrowDown";
243
+ if (isRight || isDown) {
244
+ const { length: valueLength } = _QAUJZR6Ycjs.getTextboxValue.call(void 0, currentTarget);
245
+ if (selection.end !== valueLength) return;
246
+ } else if ((isLeft || isUp) && selection.start !== 0) return;
247
+ }
248
+ const nextId = action();
249
+ if (preventScrollOnKeyDownProp(event) || nextId !== void 0) {
250
+ if (!moveOnKeyPressProp(event)) return;
251
+ event.preventDefault();
252
+ store.move(nextId);
253
+ }
254
+ }
255
+ });
256
+ const providerValue = _react.useMemo.call(void 0, () => ({
257
+ id,
258
+ baseElement
259
+ }), [id, baseElement]);
260
+ props = _QAUJZR6Ycjs.useWrapElement.call(void 0, props, (element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _L2IFVMDUcjs.CompositeItemContext.Provider, {
261
+ value: providerValue,
262
+ children: element
263
+ }), [providerValue]);
264
+ props = {
265
+ "data-active-item": isActiveItem || void 0,
266
+ ...props,
267
+ id,
268
+ ref: _QAUJZR6Ycjs.useMergeRefs.call(void 0, ref, props.ref),
269
+ tabIndex: isTabbable ? props.tabIndex : -1,
270
+ onFocus,
271
+ onBlurCapture,
272
+ onKeyDown
273
+ };
274
+ props = _LVHC4DSBcjs.useCommand.call(void 0, props);
275
+ props = _GUB6WHB6cjs.useCollectionItem.call(void 0, {
276
+ store,
277
+ ...props,
278
+ getItem,
279
+ shouldRegisterItem: id ? props.shouldRegisterItem : false
280
+ });
281
+ return _QAUJZR6Ycjs.removeUndefinedValues.call(void 0, {
282
+ ...props,
283
+ "aria-setsize": ariaSetSize,
284
+ "aria-posinset": ariaPosInSet
285
+ });
286
+ });
287
+ var CompositeItem = _QAUJZR6Ycjs.memo.call(void 0, _QAUJZR6Ycjs.forwardRef.call(void 0, function CompositeItem2(props) {
288
+ return _QAUJZR6Ycjs.createElement.call(void 0, TagName, useCompositeItem(props));
289
+ }));
290
+
291
+
292
+
293
+
294
+ exports.useCompositeItem = useCompositeItem; exports.CompositeItem = CompositeItem;