@ariakit/react-core 0.3.10 → 0.3.12

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 (292) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/cjs/__chunks/{SANV4XBF.cjs → 23HLSVKM.cjs} +2 -2
  3. package/cjs/__chunks/{GF6NWLKX.cjs → 3XQOWQTT.cjs} +12 -8
  4. package/cjs/__chunks/{Y22E2GCT.cjs → 4VMHQGZH.cjs} +6 -6
  5. package/cjs/__chunks/{T5G6DLC6.cjs → 6LVRCU4J.cjs} +2 -2
  6. package/cjs/__chunks/{FQZOOWMH.cjs → 6PUZ4NWR.cjs} +2 -2
  7. package/cjs/__chunks/{RV3PHHWM.cjs → 6ZZYUFPW.cjs} +1 -1
  8. package/cjs/__chunks/{2GETDAIQ.cjs → 7HJPL3H2.cjs} +5 -5
  9. package/cjs/__chunks/{KQUC6RXT.cjs → BBS4RP44.cjs} +2 -2
  10. package/cjs/__chunks/{DKOWT2IJ.cjs → CDNJPIEG.cjs} +3 -3
  11. package/cjs/__chunks/{47RLIVET.cjs → CFKRWKZR.cjs} +10 -10
  12. package/cjs/__chunks/{V6LYK7WK.cjs → CGIHR7QS.cjs} +7 -7
  13. package/cjs/__chunks/{LO3RECOD.cjs → D4TG5DM4.cjs} +2 -2
  14. package/cjs/__chunks/{36QK2QLE.cjs → EKB76T2U.cjs} +9 -9
  15. package/cjs/__chunks/{7KFYPSJO.cjs → EUHOCOY2.cjs} +4 -4
  16. package/cjs/__chunks/{PHZJAGWK.cjs → G2ZXRZ2R.cjs} +4 -4
  17. package/cjs/__chunks/{CZOBQEIO.cjs → H6OLBVHA.cjs} +33 -40
  18. package/cjs/__chunks/{TTMCZ7ZN.cjs → IO6J4PAN.cjs} +28 -13
  19. package/cjs/__chunks/{EGAIDKB5.cjs → JAQJG42R.cjs} +5 -5
  20. package/cjs/__chunks/{VQJ44BSY.cjs → JQS6X2I5.cjs} +4 -4
  21. package/cjs/__chunks/{NVHGMKAE.cjs → KDG57VZV.cjs} +3 -3
  22. package/cjs/__chunks/{IGTX5NFA.cjs → KIDFNQ4E.cjs} +4 -4
  23. package/cjs/__chunks/{N6CR2VNN.cjs → LUL2YWZ3.cjs} +12 -12
  24. package/cjs/__chunks/{NVRUQ5V7.cjs → LY6FB2NE.cjs} +7 -7
  25. package/cjs/__chunks/{DHSZ2ZFJ.cjs → NNINKJTT.cjs} +4 -4
  26. package/cjs/__chunks/{PSR537T6.cjs → NONPPWSF.cjs} +8 -8
  27. package/cjs/__chunks/{7BPAESN3.cjs → NRGWVSB5.cjs} +5 -5
  28. package/cjs/__chunks/{QLRXXIBY.cjs → ODJ76C5W.cjs} +7 -7
  29. package/cjs/__chunks/{B233QVZE.cjs → OLOZ5JT2.cjs} +0 -5
  30. package/cjs/__chunks/{XDTEICF5.cjs → OZ4FTKEH.cjs} +7 -7
  31. package/cjs/__chunks/{3KZQJDTV.cjs → RNGIWUQW.cjs} +4 -4
  32. package/cjs/__chunks/{VQHA56HB.cjs → T7WLYFYV.cjs} +2 -2
  33. package/cjs/__chunks/{EWKBICMP.cjs → VKHTDADA.cjs} +5 -5
  34. package/cjs/__chunks/{VSDH37LI.cjs → VPQQSYH7.cjs} +3 -3
  35. package/cjs/__chunks/{HRKRTCJC.cjs → W5LJEMLB.cjs} +4 -4
  36. package/cjs/__chunks/{RTT4XR27.cjs → WZ3DRKGP.cjs} +4 -4
  37. package/cjs/__chunks/{UUTXBBHD.cjs → XA62Y24Z.cjs} +6 -6
  38. package/cjs/__chunks/{FM5S6RAD.cjs → XW252ITL.cjs} +2 -2
  39. package/cjs/__chunks/{TD5MOASJ.cjs → YPVQYY4J.cjs} +2 -2
  40. package/cjs/__chunks/{UBME4GBY.cjs → ZWICHV7O.cjs} +10 -10
  41. package/cjs/checkbox/checkbox-check.d.cts +6 -3
  42. package/cjs/checkbox/checkbox-check.d.ts +6 -3
  43. package/cjs/checkbox/checkbox-provider.cjs +3 -3
  44. package/cjs/checkbox/checkbox-store.cjs +3 -3
  45. package/cjs/checkbox/checkbox.cjs +3 -3
  46. package/cjs/collection/collection-item.d.cts +9 -2
  47. package/cjs/collection/collection-item.d.ts +9 -2
  48. package/cjs/collection/collection-provider.cjs +3 -3
  49. package/cjs/collection/collection-renderer.cjs +3 -3
  50. package/cjs/collection/collection-store.cjs +3 -3
  51. package/cjs/combobox/combobox-disclosure.cjs +3 -4
  52. package/cjs/combobox/combobox-item.cjs +4 -4
  53. package/cjs/combobox/combobox-item.d.cts +13 -1
  54. package/cjs/combobox/combobox-item.d.ts +13 -1
  55. package/cjs/combobox/combobox-list.cjs +4 -4
  56. package/cjs/combobox/combobox-popover.cjs +45 -16
  57. package/cjs/combobox/combobox-popover.d.cts +1 -1
  58. package/cjs/combobox/combobox-popover.d.ts +1 -1
  59. package/cjs/combobox/combobox-provider.cjs +8 -8
  60. package/cjs/combobox/combobox-store.cjs +8 -8
  61. package/cjs/combobox/combobox.cjs +25 -11
  62. package/cjs/combobox/combobox.d.cts +29 -1
  63. package/cjs/combobox/combobox.d.ts +29 -1
  64. package/cjs/composite/composite-container.cjs +4 -4
  65. package/cjs/composite/composite-hover.d.cts +12 -1
  66. package/cjs/composite/composite-hover.d.ts +12 -1
  67. package/cjs/composite/composite-input.cjs +3 -3
  68. package/cjs/composite/composite-item.cjs +4 -4
  69. package/cjs/composite/composite-overflow-disclosure.cjs +4 -4
  70. package/cjs/composite/composite-overflow-store.cjs +6 -6
  71. package/cjs/composite/composite-overflow.cjs +8 -8
  72. package/cjs/composite/composite-provider.cjs +4 -4
  73. package/cjs/composite/composite-renderer.cjs +4 -4
  74. package/cjs/composite/composite-store.cjs +4 -4
  75. package/cjs/composite/composite-store.d.cts +6 -5
  76. package/cjs/composite/composite-store.d.ts +6 -5
  77. package/cjs/composite/composite-typeahead.cjs +3 -3
  78. package/cjs/composite/composite.cjs +3 -3
  79. package/cjs/composite/utils.cjs +2 -2
  80. package/cjs/dialog/dialog-backdrop.cjs +5 -5
  81. package/cjs/dialog/dialog-provider.cjs +4 -4
  82. package/cjs/dialog/dialog-store.cjs +4 -4
  83. package/cjs/dialog/dialog.cjs +7 -7
  84. package/cjs/dialog/dialog.d.cts +1 -0
  85. package/cjs/dialog/dialog.d.ts +1 -0
  86. package/cjs/disclosure/disclosure-content.cjs +3 -3
  87. package/cjs/disclosure/disclosure-provider.cjs +3 -3
  88. package/cjs/disclosure/disclosure-store.cjs +3 -3
  89. package/cjs/disclosure/disclosure-store.d.cts +3 -3
  90. package/cjs/disclosure/disclosure-store.d.ts +3 -3
  91. package/cjs/focusable/focusable.d.cts +7 -0
  92. package/cjs/focusable/focusable.d.ts +7 -0
  93. package/cjs/form/form-checkbox.cjs +5 -5
  94. package/cjs/form/form-provider.cjs +4 -4
  95. package/cjs/form/form-radio.cjs +5 -5
  96. package/cjs/form/form-store.cjs +4 -4
  97. package/cjs/hovercard/hovercard-provider.cjs +6 -6
  98. package/cjs/hovercard/hovercard-store.cjs +6 -6
  99. package/cjs/hovercard/hovercard.cjs +9 -9
  100. package/cjs/menu/menu-bar-provider.cjs +6 -6
  101. package/cjs/menu/menu-bar-store.cjs +6 -6
  102. package/cjs/menu/menu-bar.cjs +8 -8
  103. package/cjs/menu/menu-button.cjs +5 -5
  104. package/cjs/menu/menu-item-check.d.cts +14 -0
  105. package/cjs/menu/menu-item-check.d.ts +14 -0
  106. package/cjs/menu/menu-item-checkbox.cjs +9 -9
  107. package/cjs/menu/menu-item-radio.cjs +7 -7
  108. package/cjs/menu/menu-item.cjs +5 -5
  109. package/cjs/menu/menu-item.d.cts +8 -1
  110. package/cjs/menu/menu-item.d.ts +8 -1
  111. package/cjs/menu/menu-list.cjs +7 -7
  112. package/cjs/menu/menu-provider.cjs +9 -9
  113. package/cjs/menu/menu-store.cjs +9 -9
  114. package/cjs/menu/menu-store.d.cts +2 -0
  115. package/cjs/menu/menu-store.d.ts +2 -0
  116. package/cjs/menu/menu.cjs +17 -17
  117. package/cjs/menubar/menubar-provider.cjs +6 -6
  118. package/cjs/menubar/menubar-store.cjs +5 -5
  119. package/cjs/menubar/menubar.cjs +8 -8
  120. package/cjs/popover/popover-provider.cjs +5 -5
  121. package/cjs/popover/popover-store.cjs +5 -5
  122. package/cjs/popover/popover.cjs +8 -8
  123. package/cjs/popover/popover.d.cts +2 -0
  124. package/cjs/popover/popover.d.ts +2 -0
  125. package/cjs/radio/radio-group.cjs +3 -3
  126. package/cjs/radio/radio-provider.cjs +5 -5
  127. package/cjs/radio/radio-store.cjs +5 -5
  128. package/cjs/radio/radio.cjs +5 -5
  129. package/cjs/select/select-item.cjs +4 -4
  130. package/cjs/select/select-list.cjs +7 -7
  131. package/cjs/select/select-popover.cjs +14 -14
  132. package/cjs/select/select-provider.cjs +8 -8
  133. package/cjs/select/select-renderer.cjs +7 -7
  134. package/cjs/select/select-store.cjs +8 -8
  135. package/cjs/select/select.cjs +4 -4
  136. package/cjs/tab/tab-list.cjs +3 -3
  137. package/cjs/tab/tab-panel.cjs +5 -5
  138. package/cjs/tab/tab-panel.d.cts +3 -2
  139. package/cjs/tab/tab-panel.d.ts +3 -2
  140. package/cjs/tab/tab-provider.cjs +5 -5
  141. package/cjs/tab/tab-store.cjs +5 -5
  142. package/cjs/tab/tab-store.d.cts +6 -2
  143. package/cjs/tab/tab-store.d.ts +6 -2
  144. package/cjs/tab/tab.cjs +4 -4
  145. package/cjs/toolbar/toolbar-container.cjs +7 -7
  146. package/cjs/toolbar/toolbar-input.cjs +7 -7
  147. package/cjs/toolbar/toolbar-item.cjs +5 -5
  148. package/cjs/toolbar/toolbar-provider.cjs +5 -5
  149. package/cjs/toolbar/toolbar-store.cjs +5 -5
  150. package/cjs/toolbar/toolbar.cjs +8 -8
  151. package/cjs/tooltip/tooltip-provider.cjs +7 -7
  152. package/cjs/tooltip/tooltip-store.cjs +7 -7
  153. package/cjs/tooltip/tooltip.cjs +10 -10
  154. package/cjs/utils/store.cjs +2 -2
  155. package/esm/__chunks/{IXZMWLUE.js → 2QMN5E6B.js} +2 -2
  156. package/esm/__chunks/{HBGJOTTX.js → 346FK57L.js} +1 -1
  157. package/esm/__chunks/{6H3EJNCE.js → 3AHQ6JCP.js} +1 -1
  158. package/esm/__chunks/{6QXBPV75.js → 3IEDWLST.js} +1 -1
  159. package/esm/__chunks/{GD2VG2KJ.js → 4HD64GHO.js} +1 -1
  160. package/esm/__chunks/{A6ER4BO6.js → 7GBW5FLS.js} +2 -2
  161. package/esm/__chunks/{UJUY6GAA.js → 7NHUGSTF.js} +1 -1
  162. package/esm/__chunks/{FHDXHZLB.js → 7QTPYGNZ.js} +20 -27
  163. package/esm/__chunks/{SXPADS2D.js → A6XC27R5.js} +1 -1
  164. package/esm/__chunks/{QUPVK46L.js → BPNXFCFY.js} +2 -2
  165. package/esm/__chunks/{KOKHD3Z3.js → CLE7NTOY.js} +1 -1
  166. package/esm/__chunks/{K5VQ2XTM.js → CQMDBRG5.js} +8 -4
  167. package/esm/__chunks/{4OZYHFMH.js → EKQEJRUF.js} +0 -5
  168. package/esm/__chunks/{WEU2EOWJ.js → EPBRINPG.js} +3 -3
  169. package/esm/__chunks/{DYLO4TTE.js → FMVHAVXA.js} +3 -3
  170. package/esm/__chunks/{DHHIMTTV.js → HHNFDKU2.js} +4 -4
  171. package/esm/__chunks/{FWQLUQ4T.js → HVBNG5AF.js} +2 -2
  172. package/esm/__chunks/{UP4ONTQS.js → I4Q3C2VT.js} +1 -1
  173. package/esm/__chunks/{VZOR43YE.js → IMEG7JN4.js} +2 -2
  174. package/esm/__chunks/{IIVLUKKG.js → JIZ5C2JK.js} +1 -1
  175. package/esm/__chunks/{GJYUMUMT.js → JL6IRDFK.js} +2 -2
  176. package/esm/__chunks/{6L5IUFNE.js → KSKI4NLV.js} +2 -2
  177. package/esm/__chunks/{QCIQ4F64.js → LEIRFLRL.js} +2 -2
  178. package/esm/__chunks/{57VLL43X.js → LWHPHW7Q.js} +2 -2
  179. package/esm/__chunks/{EENTNM7A.js → MG4P3223.js} +2 -2
  180. package/esm/__chunks/{PDVJHECS.js → PGAEII2Q.js} +4 -4
  181. package/esm/__chunks/{P6VCQ6Q3.js → QZLXIDNP.js} +17 -2
  182. package/esm/__chunks/{XCRWZKAW.js → RIL2SEAH.js} +1 -1
  183. package/esm/__chunks/{SMM5JVLC.js → SFCBA2JZ.js} +1 -1
  184. package/esm/__chunks/{5L7XBKAC.js → SS66VZAQ.js} +2 -2
  185. package/esm/__chunks/{UV2O3GRQ.js → SU2GU5JB.js} +3 -3
  186. package/esm/__chunks/{TZJDOU75.js → UK7JL7PY.js} +2 -2
  187. package/esm/__chunks/{NYD53BDE.js → XJXP7ZSQ.js} +3 -3
  188. package/esm/__chunks/{QEPSYGAQ.js → Y6467XPW.js} +2 -2
  189. package/esm/__chunks/{HDMIVTNE.js → Y6GYTNQ2.js} +1 -1
  190. package/esm/__chunks/{DKALGMO6.js → ZEXNX5JH.js} +1 -1
  191. package/esm/__chunks/{EZTAZGGV.js → ZKJ2WLF7.js} +3 -3
  192. package/esm/__chunks/{6SB7F42L.js → ZSELSBRM.js} +2 -2
  193. package/esm/__chunks/{A3PM2ZVJ.js → ZU7LQC5V.js} +2 -2
  194. package/esm/checkbox/checkbox-check.d.ts +6 -3
  195. package/esm/checkbox/checkbox-provider.js +2 -2
  196. package/esm/checkbox/checkbox-store.js +2 -2
  197. package/esm/checkbox/checkbox.js +2 -2
  198. package/esm/collection/collection-item.d.ts +9 -2
  199. package/esm/collection/collection-provider.js +2 -2
  200. package/esm/collection/collection-renderer.js +2 -2
  201. package/esm/collection/collection-store.js +2 -2
  202. package/esm/combobox/combobox-disclosure.js +3 -4
  203. package/esm/combobox/combobox-item.d.ts +13 -1
  204. package/esm/combobox/combobox-item.js +3 -3
  205. package/esm/combobox/combobox-list.js +3 -3
  206. package/esm/combobox/combobox-popover.d.ts +1 -1
  207. package/esm/combobox/combobox-popover.js +43 -14
  208. package/esm/combobox/combobox-provider.js +7 -7
  209. package/esm/combobox/combobox-store.js +7 -7
  210. package/esm/combobox/combobox.d.ts +29 -1
  211. package/esm/combobox/combobox.js +24 -10
  212. package/esm/composite/composite-container.js +3 -3
  213. package/esm/composite/composite-hover.d.ts +12 -1
  214. package/esm/composite/composite-input.js +2 -2
  215. package/esm/composite/composite-item.js +3 -3
  216. package/esm/composite/composite-overflow-disclosure.js +3 -3
  217. package/esm/composite/composite-overflow-store.js +4 -4
  218. package/esm/composite/composite-overflow.js +7 -7
  219. package/esm/composite/composite-provider.js +3 -3
  220. package/esm/composite/composite-renderer.js +3 -3
  221. package/esm/composite/composite-store.d.ts +6 -5
  222. package/esm/composite/composite-store.js +3 -3
  223. package/esm/composite/composite-typeahead.js +2 -2
  224. package/esm/composite/composite.js +2 -2
  225. package/esm/composite/utils.js +1 -1
  226. package/esm/dialog/dialog-backdrop.js +4 -4
  227. package/esm/dialog/dialog-provider.js +3 -3
  228. package/esm/dialog/dialog-store.js +3 -3
  229. package/esm/dialog/dialog.d.ts +1 -0
  230. package/esm/dialog/dialog.js +6 -6
  231. package/esm/disclosure/disclosure-content.js +2 -2
  232. package/esm/disclosure/disclosure-provider.js +2 -2
  233. package/esm/disclosure/disclosure-store.d.ts +3 -3
  234. package/esm/disclosure/disclosure-store.js +2 -2
  235. package/esm/focusable/focusable.d.ts +7 -0
  236. package/esm/form/form-checkbox.js +3 -3
  237. package/esm/form/form-provider.js +3 -3
  238. package/esm/form/form-radio.js +4 -4
  239. package/esm/form/form-store.js +3 -3
  240. package/esm/hovercard/hovercard-provider.js +5 -5
  241. package/esm/hovercard/hovercard-store.js +5 -5
  242. package/esm/hovercard/hovercard.js +8 -8
  243. package/esm/menu/menu-bar-provider.js +5 -5
  244. package/esm/menu/menu-bar-store.js +4 -4
  245. package/esm/menu/menu-bar.js +7 -7
  246. package/esm/menu/menu-button.js +3 -3
  247. package/esm/menu/menu-item-check.d.ts +14 -0
  248. package/esm/menu/menu-item-checkbox.js +6 -6
  249. package/esm/menu/menu-item-radio.js +5 -5
  250. package/esm/menu/menu-item.d.ts +8 -1
  251. package/esm/menu/menu-item.js +4 -4
  252. package/esm/menu/menu-list.js +6 -6
  253. package/esm/menu/menu-provider.js +8 -8
  254. package/esm/menu/menu-store.d.ts +2 -0
  255. package/esm/menu/menu-store.js +8 -8
  256. package/esm/menu/menu.js +12 -12
  257. package/esm/menubar/menubar-provider.js +5 -5
  258. package/esm/menubar/menubar-store.js +4 -4
  259. package/esm/menubar/menubar.js +7 -7
  260. package/esm/popover/popover-provider.js +4 -4
  261. package/esm/popover/popover-store.js +4 -4
  262. package/esm/popover/popover.d.ts +2 -0
  263. package/esm/popover/popover.js +7 -7
  264. package/esm/radio/radio-group.js +2 -2
  265. package/esm/radio/radio-provider.js +4 -4
  266. package/esm/radio/radio-store.js +4 -4
  267. package/esm/radio/radio.js +4 -4
  268. package/esm/select/select-item.js +3 -3
  269. package/esm/select/select-list.js +6 -6
  270. package/esm/select/select-popover.js +11 -11
  271. package/esm/select/select-provider.js +7 -7
  272. package/esm/select/select-renderer.js +3 -3
  273. package/esm/select/select-store.js +7 -7
  274. package/esm/select/select.js +3 -3
  275. package/esm/tab/tab-list.js +2 -2
  276. package/esm/tab/tab-panel.d.ts +3 -2
  277. package/esm/tab/tab-panel.js +3 -3
  278. package/esm/tab/tab-provider.js +4 -4
  279. package/esm/tab/tab-store.d.ts +6 -2
  280. package/esm/tab/tab-store.js +4 -4
  281. package/esm/tab/tab.js +3 -3
  282. package/esm/toolbar/toolbar-container.js +5 -5
  283. package/esm/toolbar/toolbar-input.js +5 -5
  284. package/esm/toolbar/toolbar-item.js +4 -4
  285. package/esm/toolbar/toolbar-provider.js +4 -4
  286. package/esm/toolbar/toolbar-store.js +4 -4
  287. package/esm/toolbar/toolbar.js +6 -6
  288. package/esm/tooltip/tooltip-provider.js +6 -6
  289. package/esm/tooltip/tooltip-store.js +6 -6
  290. package/esm/tooltip/tooltip.js +8 -8
  291. package/esm/utils/store.js +1 -1
  292. package/package.json +2 -2
@@ -10,14 +10,14 @@ import {
10
10
  } from "./W76OTZCC.js";
11
11
  import {
12
12
  useCompositeStoreProps
13
- } from "./A6ER4BO6.js";
13
+ } from "./7GBW5FLS.js";
14
14
  import {
15
15
  useHovercardStoreProps
16
- } from "./A3PM2ZVJ.js";
16
+ } from "./ZU7LQC5V.js";
17
17
  import {
18
18
  useStore,
19
19
  useStoreProps
20
- } from "./4OZYHFMH.js";
20
+ } from "./EKQEJRUF.js";
21
21
  import {
22
22
  useUpdateEffect
23
23
  } from "./6O5OEQGF.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./G6ONQ5EH.js";
11
11
  import {
12
12
  useCompositeItem
13
- } from "./P6VCQ6Q3.js";
13
+ } from "./QZLXIDNP.js";
14
14
  import {
15
15
  createElement,
16
16
  createHook,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./3ORBWXWF.js";
19
19
  import {
20
20
  useStoreState
21
- } from "./4OZYHFMH.js";
21
+ } from "./EKQEJRUF.js";
22
22
  import {
23
23
  useBooleanEvent,
24
24
  useEvent
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  useStore,
4
4
  useStoreProps
5
- } from "./4OZYHFMH.js";
5
+ } from "./EKQEJRUF.js";
6
6
  import {
7
7
  useUpdateEffect
8
8
  } from "./6O5OEQGF.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./W76OTZCC.js";
6
6
  import {
7
7
  isHidden
8
- } from "./KOKHD3Z3.js";
8
+ } from "./CLE7NTOY.js";
9
9
  import {
10
10
  useFocusable
11
11
  } from "./KK7H3W2B.js";
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  useCompositeStoreProps
4
- } from "./A6ER4BO6.js";
4
+ } from "./7GBW5FLS.js";
5
5
  import {
6
6
  usePopoverStoreProps
7
- } from "./EENTNM7A.js";
7
+ } from "./MG4P3223.js";
8
8
  import {
9
9
  useStore,
10
10
  useStoreProps
11
- } from "./4OZYHFMH.js";
11
+ } from "./EKQEJRUF.js";
12
12
 
13
13
  // src/combobox/combobox-store.ts
14
14
  import * as Core from "@ariakit/core/combobox/combobox-store";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  useDisclosureStoreProps
4
- } from "./SMM5JVLC.js";
4
+ } from "./SFCBA2JZ.js";
5
5
  import {
6
6
  useStore
7
- } from "./4OZYHFMH.js";
7
+ } from "./EKQEJRUF.js";
8
8
 
9
9
  // src/dialog/dialog-store.ts
10
10
  import * as Core from "@ariakit/core/dialog/dialog-store";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  usePopoverStoreProps
4
- } from "./EENTNM7A.js";
4
+ } from "./MG4P3223.js";
5
5
  import {
6
6
  useStore,
7
7
  useStoreProps
8
- } from "./4OZYHFMH.js";
8
+ } from "./EKQEJRUF.js";
9
9
 
10
10
  // src/hovercard/hovercard-store.ts
11
11
  import * as Core from "@ariakit/core/hovercard/hovercard-store";
@@ -28,9 +28,12 @@ export interface CheckboxCheckOptions<T extends As = "span"> extends Options<T>
28
28
  */
29
29
  store?: CheckboxStore;
30
30
  /**
31
- * Whether the check mark should be shown. This value is automatically
32
- * inferred from the `store` prop or the parent `Checkbox` component. Manually
33
- * setting this prop will override the inferred value.
31
+ * Determines if the check mark should be displayed. This value is
32
+ * automatically derived from the
33
+ * [`store`](https://ariakit.org/reference/checkbox-check#store) prop or the
34
+ * parent [`Checkbox`](https://ariakit.org/reference/checkbox) component.
35
+ *
36
+ * Manually setting this prop will supersede the derived value.
34
37
  */
35
38
  checked?: boolean;
36
39
  }
@@ -4,9 +4,9 @@ import {
4
4
  } from "../__chunks/VPR2WHQV.js";
5
5
  import {
6
6
  useCheckboxStore
7
- } from "../__chunks/IIVLUKKG.js";
7
+ } from "../__chunks/JIZ5C2JK.js";
8
8
  import "../__chunks/3ORBWXWF.js";
9
- import "../__chunks/4OZYHFMH.js";
9
+ import "../__chunks/EKQEJRUF.js";
10
10
  import "../__chunks/6O5OEQGF.js";
11
11
  import "../__chunks/XM66DUTO.js";
12
12
  import "../__chunks/4R3V3JGP.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  useCheckboxStore,
4
4
  useCheckboxStoreProps
5
- } from "../__chunks/IIVLUKKG.js";
6
- import "../__chunks/4OZYHFMH.js";
5
+ } from "../__chunks/JIZ5C2JK.js";
6
+ import "../__chunks/EKQEJRUF.js";
7
7
  import "../__chunks/6O5OEQGF.js";
8
8
  import "../__chunks/XM66DUTO.js";
9
9
  import "../__chunks/4R3V3JGP.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  Checkbox,
4
4
  useCheckbox
5
- } from "../__chunks/6H3EJNCE.js";
5
+ } from "../__chunks/3AHQ6JCP.js";
6
6
  import "../__chunks/VPR2WHQV.js";
7
7
  import "../__chunks/6XBVQI3K.js";
8
8
  import "../__chunks/NWCBQ4CV.js";
9
9
  import "../__chunks/KK7H3W2B.js";
10
10
  import "../__chunks/SHA3WOPI.js";
11
11
  import "../__chunks/3ORBWXWF.js";
12
- import "../__chunks/4OZYHFMH.js";
12
+ import "../__chunks/EKQEJRUF.js";
13
13
  import "../__chunks/6O5OEQGF.js";
14
14
  import "../__chunks/XM66DUTO.js";
15
15
  import "../__chunks/4R3V3JGP.js";
@@ -31,12 +31,19 @@ export declare const useCollectionItem: import("../utils/types.js").Hook<Collect
31
31
  export declare const CollectionItem: import("../utils/types.js").Component<CollectionItemOptions<"div">>;
32
32
  export interface CollectionItemOptions<T extends As = "div"> extends Options<T> {
33
33
  /**
34
- * Object returned by the `useCollectionStore` hook. If not provided, the
35
- * parent `Collection` component's context will be used.
34
+ * Object returned by the
35
+ * [`useCollectionStore`](https://ariakit.org/reference/use-collection-store)
36
+ * hook. If not provided, the parent
37
+ * [`Collection`](https://ariakit.org/reference/collection) or
38
+ * [`CollectionProvider`](https://ariakit.org/reference/collection-provider)
39
+ * components' context will be used.
36
40
  */
37
41
  store?: CollectionStore;
38
42
  /**
39
43
  * Whether the item should be registered to the store.
44
+ *
45
+ * Live examples:
46
+ * - [Combobox with tabs](https://ariakit.org/examples/combobox-tabs)
40
47
  * @default true
41
48
  */
42
49
  shouldRegisterItem?: boolean;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  useCollectionStore
4
- } from "../__chunks/HDMIVTNE.js";
4
+ } from "../__chunks/Y6GYTNQ2.js";
5
5
  import {
6
6
  CollectionContextProvider
7
7
  } from "../__chunks/4UUKJZ4V.js";
8
8
  import "../__chunks/3ORBWXWF.js";
9
- import "../__chunks/4OZYHFMH.js";
9
+ import "../__chunks/EKQEJRUF.js";
10
10
  import "../__chunks/6O5OEQGF.js";
11
11
  import "../__chunks/XM66DUTO.js";
12
12
  import "../__chunks/4R3V3JGP.js";
@@ -4,10 +4,10 @@ import {
4
4
  getCollectionRendererItem,
5
5
  getCollectionRendererItemId,
6
6
  useCollectionRenderer
7
- } from "../__chunks/GD2VG2KJ.js";
7
+ } from "../__chunks/4HD64GHO.js";
8
8
  import "../__chunks/4UUKJZ4V.js";
9
9
  import "../__chunks/3ORBWXWF.js";
10
- import "../__chunks/4OZYHFMH.js";
10
+ import "../__chunks/EKQEJRUF.js";
11
11
  import "../__chunks/6O5OEQGF.js";
12
12
  import "../__chunks/XM66DUTO.js";
13
13
  import "../__chunks/4R3V3JGP.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  useCollectionStore,
4
4
  useCollectionStoreProps
5
- } from "../__chunks/HDMIVTNE.js";
6
- import "../__chunks/4OZYHFMH.js";
5
+ } from "../__chunks/Y6GYTNQ2.js";
6
+ import "../__chunks/EKQEJRUF.js";
7
7
  import "../__chunks/6O5OEQGF.js";
8
8
  import "../__chunks/XM66DUTO.js";
9
9
  import "../__chunks/4R3V3JGP.js";
@@ -75,13 +75,12 @@ var useComboboxDisclosure = createHook(
75
75
  const { baseElement } = store.getState();
76
76
  store.setDisclosureElement(baseElement);
77
77
  });
78
- const label = store.useState(
79
- (state) => state.open ? "Hide popup" : "Show popup"
80
- );
78
+ const open = store.useState("open");
81
79
  props = __spreadProps(__spreadValues({
82
80
  children,
83
81
  tabIndex: -1,
84
- "aria-label": label
82
+ "aria-label": open ? "Hide popup" : "Show popup",
83
+ "aria-expanded": open
85
84
  }, props), {
86
85
  onMouseDown,
87
86
  onClick
@@ -56,6 +56,11 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
56
56
  * [`setValueOnClick`](https://ariakit.org/reference/combobox-item#setvalueonclick)
57
57
  * is set to `true`, this will be the value of the combobox input when the
58
58
  * user clicks on this item.
59
+ * - If
60
+ * [`selectValueOnClick`](https://ariakit.org/reference/combobox-item#selectvalueonclick)
61
+ * is set to `true`, this will be the value of the
62
+ * [`selectedValue`](https://ariakit.org/reference/combobox-provider#selectedvalue)
63
+ * state.
59
64
  * - If the
60
65
  * [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete)
61
66
  * prop on the [`Combobox`](https://ariakit.org/reference/combobox)
@@ -88,7 +93,12 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
88
93
  * [`selectedValue`](https://ariakit.org/reference/combobox-provider#selectedvalue)
89
94
  * state using this item's
90
95
  * [`value`](https://ariakit.org/reference/combobox-item#value) when the item
91
- * is clicked.
96
+ * is clicked. If a callback is provided, it will only be invoked if the item
97
+ * has a value.
98
+ *
99
+ * Live examples:
100
+ * - [Submenu with
101
+ * Combobox](https://ariakit.org/examples/menu-nested-combobox)
92
102
  * @default true
93
103
  */
94
104
  selectValueOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
@@ -102,6 +112,8 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
102
112
  *
103
113
  * Live examples:
104
114
  * - [Menu with Combobox](https://ariakit.org/examples/menu-combobox)
115
+ * - [Submenu with
116
+ * Combobox](https://ariakit.org/examples/menu-nested-combobox)
105
117
  */
106
118
  setValueOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
107
119
  /**
@@ -9,10 +9,10 @@ import {
9
9
  } from "../__chunks/W76OTZCC.js";
10
10
  import {
11
11
  useCompositeItem
12
- } from "../__chunks/P6VCQ6Q3.js";
12
+ } from "../__chunks/QZLXIDNP.js";
13
13
  import "../__chunks/NWCBQ4CV.js";
14
14
  import "../__chunks/UH3I23HL.js";
15
- import "../__chunks/6QXBPV75.js";
15
+ import "../__chunks/3IEDWLST.js";
16
16
  import "../__chunks/IB7YUKH5.js";
17
17
  import "../__chunks/4UUKJZ4V.js";
18
18
  import "../__chunks/7H5KSHHF.js";
@@ -25,7 +25,7 @@ import {
25
25
  createHook,
26
26
  createMemoComponent
27
27
  } from "../__chunks/3ORBWXWF.js";
28
- import "../__chunks/4OZYHFMH.js";
28
+ import "../__chunks/EKQEJRUF.js";
29
29
  import {
30
30
  useBooleanEvent,
31
31
  useEvent,
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ComboboxList,
4
4
  useComboboxList
5
- } from "../__chunks/DKALGMO6.js";
5
+ } from "../__chunks/ZEXNX5JH.js";
6
6
  import "../__chunks/W76OTZCC.js";
7
7
  import "../__chunks/IB7YUKH5.js";
8
8
  import "../__chunks/4UUKJZ4V.js";
9
- import "../__chunks/KOKHD3Z3.js";
9
+ import "../__chunks/CLE7NTOY.js";
10
10
  import "../__chunks/7H5KSHHF.js";
11
11
  import "../__chunks/G6BJYYBK.js";
12
12
  import "../__chunks/OAYFXAQ2.js";
13
13
  import "../__chunks/KK7H3W2B.js";
14
14
  import "../__chunks/SHA3WOPI.js";
15
15
  import "../__chunks/3ORBWXWF.js";
16
- import "../__chunks/4OZYHFMH.js";
16
+ import "../__chunks/EKQEJRUF.js";
17
17
  import "../__chunks/6O5OEQGF.js";
18
18
  import "../__chunks/XM66DUTO.js";
19
19
  import "../__chunks/4R3V3JGP.js";
@@ -35,6 +35,6 @@ export declare const useComboboxPopover: import("../utils/types.js").Hook<Combob
35
35
  * ```
36
36
  */
37
37
  export declare const ComboboxPopover: import("../utils/types.js").Component<ComboboxPopoverOptions<"div">>;
38
- export interface ComboboxPopoverOptions<T extends As = "div"> extends ComboboxListOptions<T>, Omit<PopoverOptions<T>, "store" | "modal"> {
38
+ export interface ComboboxPopoverOptions<T extends As = "div"> extends ComboboxListOptions<T>, Omit<PopoverOptions<T>, "store"> {
39
39
  }
40
40
  export type ComboboxPopoverProps<T extends As = "div"> = Props<ComboboxPopoverOptions<T>>;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useComboboxList
4
- } from "../__chunks/DKALGMO6.js";
4
+ } from "../__chunks/ZEXNX5JH.js";
5
5
  import {
6
6
  useComboboxProviderContext
7
7
  } from "../__chunks/W76OTZCC.js";
@@ -9,11 +9,11 @@ import "../__chunks/IB7YUKH5.js";
9
9
  import "../__chunks/4UUKJZ4V.js";
10
10
  import {
11
11
  usePopover
12
- } from "../__chunks/SXPADS2D.js";
12
+ } from "../__chunks/A6XC27R5.js";
13
13
  import {
14
14
  createDialogComponent
15
- } from "../__chunks/PDVJHECS.js";
16
- import "../__chunks/57VLL43X.js";
15
+ } from "../__chunks/PGAEII2Q.js";
16
+ import "../__chunks/LWHPHW7Q.js";
17
17
  import "../__chunks/CLF4PQ7T.js";
18
18
  import "../__chunks/BULCTPRV.js";
19
19
  import "../__chunks/6BJGLK2C.js";
@@ -34,7 +34,7 @@ import "../__chunks/CHKJ74UC.js";
34
34
  import "../__chunks/7452U3HH.js";
35
35
  import "../__chunks/XPF5GU3Q.js";
36
36
  import "../__chunks/FSFPRQFR.js";
37
- import "../__chunks/KOKHD3Z3.js";
37
+ import "../__chunks/CLE7NTOY.js";
38
38
  import "../__chunks/7H5KSHHF.js";
39
39
  import "../__chunks/G6BJYYBK.js";
40
40
  import "../__chunks/OAYFXAQ2.js";
@@ -46,9 +46,9 @@ import {
46
46
  createElement,
47
47
  createHook
48
48
  } from "../__chunks/3ORBWXWF.js";
49
- import "../__chunks/6SB7F42L.js";
50
- import "../__chunks/SMM5JVLC.js";
51
- import "../__chunks/4OZYHFMH.js";
49
+ import "../__chunks/ZSELSBRM.js";
50
+ import "../__chunks/SFCBA2JZ.js";
51
+ import "../__chunks/EKQEJRUF.js";
52
52
  import "../__chunks/6O5OEQGF.js";
53
53
  import "../__chunks/XM66DUTO.js";
54
54
  import {
@@ -58,13 +58,13 @@ import {
58
58
  } from "../__chunks/4R3V3JGP.js";
59
59
 
60
60
  // src/combobox/combobox-popover.tsx
61
- import { matches } from "@ariakit/core/utils/dom";
61
+ import { getDocument, matches } from "@ariakit/core/utils/dom";
62
62
  import { invariant } from "@ariakit/core/utils/misc";
63
63
  function isController(target, ...ids) {
64
64
  if (!target)
65
65
  return false;
66
66
  if ("id" in target) {
67
- const selector = ids.filter(Boolean).map((id) => `[aria-controls="${id}"]`).join(", ");
67
+ const selector = ids.filter(Boolean).map((id) => `[aria-controls~="${id}"]`).join(", ");
68
68
  if (!selector)
69
69
  return false;
70
70
  return matches(target, selector);
@@ -75,11 +75,13 @@ var useComboboxPopover = createHook(
75
75
  (_a) => {
76
76
  var _b = _a, {
77
77
  store,
78
+ modal,
78
79
  tabIndex,
79
80
  alwaysVisible,
80
81
  hideOnInteractOutside = true
81
82
  } = _b, props = __objRest(_b, [
82
83
  "store",
84
+ "modal",
83
85
  "tabIndex",
84
86
  "alwaysVisible",
85
87
  "hideOnInteractOutside"
@@ -94,20 +96,47 @@ var useComboboxPopover = createHook(
94
96
  props = useComboboxList(__spreadValues({ store, alwaysVisible }, props));
95
97
  props = usePopover(__spreadProps(__spreadValues({
96
98
  store,
99
+ modal,
97
100
  alwaysVisible,
101
+ backdrop: false,
98
102
  autoFocusOnShow: false,
99
103
  autoFocusOnHide: false,
100
104
  finalFocus: baseElement,
101
105
  preserveTabOrderAnchor: null
102
106
  }, props), {
103
- // Combobox popovers can't be modal because the focus may be (and is by
104
- // default) outside of it on the combobox input element.
105
- modal: false,
107
+ // When the combobox popover is modal, we make sure to include the
108
+ // combobox input and all the combobox controls (cancel, disclosure) in
109
+ // the list of persistent elements so they make part of the modal context,
110
+ // allowing users to tab through them.
111
+ getPersistentElements() {
112
+ var _a2;
113
+ const elements = ((_a2 = props.getPersistentElements) == null ? void 0 : _a2.call(props)) || [];
114
+ if (!modal)
115
+ return elements;
116
+ if (!store)
117
+ return elements;
118
+ const { contentElement, baseElement: baseElement2 } = store.getState();
119
+ if (!baseElement2)
120
+ return elements;
121
+ const doc = getDocument(baseElement2);
122
+ const selectors = [];
123
+ if (contentElement == null ? void 0 : contentElement.id) {
124
+ selectors.push(`[aria-controls~="${contentElement.id}"]`);
125
+ }
126
+ if (baseElement2 == null ? void 0 : baseElement2.id) {
127
+ selectors.push(`[aria-controls~="${baseElement2.id}"]`);
128
+ }
129
+ if (!selectors.length)
130
+ return [...elements, baseElement2];
131
+ const selector = selectors.join(",");
132
+ const controlElements = doc.querySelectorAll(selector);
133
+ return [...elements, ...controlElements];
134
+ },
106
135
  // Make sure we don't hide the popover when the user interacts with the
107
136
  // combobox cancel or the combobox disclosure buttons. They will have the
108
137
  // aria-controls attribute pointing to either the combobox input or the
109
138
  // combobox popover elements.
110
- hideOnInteractOutside: (event) => {
139
+ hideOnInteractOutside(event) {
111
140
  var _a2, _b2;
112
141
  const state = store == null ? void 0 : store.getState();
113
142
  const contentId = (_a2 = state == null ? void 0 : state.contentElement) == null ? void 0 : _a2.id;
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import {
3
3
  useComboboxStore
4
- } from "../__chunks/EZTAZGGV.js";
4
+ } from "../__chunks/ZKJ2WLF7.js";
5
5
  import {
6
6
  ComboboxContextProvider
7
7
  } from "../__chunks/W76OTZCC.js";
8
- import "../__chunks/A6ER4BO6.js";
9
- import "../__chunks/HDMIVTNE.js";
8
+ import "../__chunks/7GBW5FLS.js";
9
+ import "../__chunks/Y6GYTNQ2.js";
10
10
  import "../__chunks/IB7YUKH5.js";
11
11
  import "../__chunks/4UUKJZ4V.js";
12
12
  import "../__chunks/7H5KSHHF.js";
13
13
  import "../__chunks/G6BJYYBK.js";
14
14
  import "../__chunks/OAYFXAQ2.js";
15
15
  import "../__chunks/3ORBWXWF.js";
16
- import "../__chunks/EENTNM7A.js";
17
- import "../__chunks/6SB7F42L.js";
18
- import "../__chunks/SMM5JVLC.js";
19
- import "../__chunks/4OZYHFMH.js";
16
+ import "../__chunks/MG4P3223.js";
17
+ import "../__chunks/ZSELSBRM.js";
18
+ import "../__chunks/SFCBA2JZ.js";
19
+ import "../__chunks/EKQEJRUF.js";
20
20
  import "../__chunks/6O5OEQGF.js";
21
21
  import "../__chunks/XM66DUTO.js";
22
22
  import "../__chunks/4R3V3JGP.js";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  useComboboxStore,
4
4
  useComboboxStoreProps
5
- } from "../__chunks/EZTAZGGV.js";
6
- import "../__chunks/A6ER4BO6.js";
7
- import "../__chunks/HDMIVTNE.js";
8
- import "../__chunks/EENTNM7A.js";
9
- import "../__chunks/6SB7F42L.js";
10
- import "../__chunks/SMM5JVLC.js";
11
- import "../__chunks/4OZYHFMH.js";
5
+ } from "../__chunks/ZKJ2WLF7.js";
6
+ import "../__chunks/7GBW5FLS.js";
7
+ import "../__chunks/Y6GYTNQ2.js";
8
+ import "../__chunks/MG4P3223.js";
9
+ import "../__chunks/ZSELSBRM.js";
10
+ import "../__chunks/SFCBA2JZ.js";
11
+ import "../__chunks/EKQEJRUF.js";
12
12
  import "../__chunks/6O5OEQGF.js";
13
13
  import "../__chunks/XM66DUTO.js";
14
14
  import "../__chunks/4R3V3JGP.js";
@@ -3,7 +3,7 @@ import type { BooleanOrCallback, StringWithValue } from "@ariakit/core/utils/typ
3
3
  import type { CompositeOptions } from "../composite/composite.js";
4
4
  import type { PopoverAnchorOptions } from "../popover/popover-anchor.js";
5
5
  import type { As, Props } from "../utils/types.js";
6
- import type { ComboboxStore } from "./combobox-store.js";
6
+ import type { ComboboxStore, ComboboxStoreState } from "./combobox-store.js";
7
7
  /**
8
8
  * Returns props to create a `Combobox` component.
9
9
  * @see https://ariakit.org/components/combobox
@@ -70,6 +70,34 @@ export interface ComboboxOptions<T extends As = "input"> extends CompositeOption
70
70
  * @default false
71
71
  */
72
72
  autoSelect?: boolean;
73
+ /**
74
+ * Function that takes the currently rendered items and returns the id of the
75
+ * item to be auto selected when the
76
+ * [`autoSelect`](https://ariakit.org/reference/combobox#autoselect) prop is
77
+ * `true`.
78
+ *
79
+ * By default, the first enabled item is auto selected. This function is handy
80
+ * if you prefer a different item to be auto selected.
81
+ *
82
+ * Live examples:
83
+ * - [Combobox with tabs](https://ariakit.org/examples/combobox-tabs)
84
+ * @example
85
+ * ```jsx
86
+ * <Combobox
87
+ * autoSelect
88
+ * getAutoSelectId={(items) => {
89
+ * // Auto select the first enabled item with a value
90
+ * const item = items.find((item) => {
91
+ * if (item.disabled) return false;
92
+ * if (!item.value) return false;
93
+ * return true;
94
+ * });
95
+ * return item?.id;
96
+ * }}
97
+ * />
98
+ * ```
99
+ */
100
+ getAutoSelectId?: (renderedItems: ComboboxStoreState["renderedItems"]) => string | null | undefined;
73
101
  /**
74
102
  * Whether the items will be filtered based on
75
103
  * [`value`](https://ariakit.org/reference/combobox-provider#value) and