@ariakit/react-core 0.3.2 → 0.3.4

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 (441) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/cjs/__chunks/{FWCQCCG3.cjs → 232HWSNY.cjs} +12 -12
  3. package/cjs/__chunks/{GBOZYA5C.cjs → 2H4Y2NEY.cjs} +4 -4
  4. package/cjs/__chunks/{LCKU3TYW.cjs → 35G5ZXPH.cjs} +12 -2
  5. package/cjs/__chunks/{LJBXMHCD.cjs → 3DILH277.cjs} +6 -6
  6. package/cjs/__chunks/{B3TGB2C3.cjs → 4QHHTATP.cjs} +7 -7
  7. package/cjs/__chunks/{ZJ4ICN62.cjs → 5ZP4D2SQ.cjs} +4 -4
  8. package/cjs/__chunks/{SKVJLFWS.cjs → 6UYPIKG4.cjs} +8 -8
  9. package/cjs/__chunks/{GCTYF2Y6.cjs → 76UBACFC.cjs} +3 -3
  10. package/cjs/__chunks/{HYYXXXEK.cjs → BSOHJE7R.cjs} +2 -2
  11. package/cjs/__chunks/{ZPTFLDSU.cjs → CAKLNUKE.cjs} +7 -7
  12. package/cjs/__chunks/{INDMFBTS.cjs → COHI5HTS.cjs} +17 -16
  13. package/cjs/__chunks/{DPLHWKRP.cjs → DFFFHQVQ.cjs} +3 -3
  14. package/cjs/__chunks/{HFISYIKE.cjs → DYNIQRKI.cjs} +7 -7
  15. package/cjs/__chunks/{S4UMINQJ.cjs → EMNY7J2W.cjs} +2 -2
  16. package/cjs/__chunks/{I63PYP2U.cjs → EVNF7KMT.cjs} +3 -35
  17. package/cjs/__chunks/{ZQTMT453.cjs → EZKYHQVF.cjs} +2 -2
  18. package/cjs/__chunks/{NBCR3CLP.cjs → F4RJLWZG.cjs} +3 -3
  19. package/cjs/__chunks/{G33PRHOG.cjs → GUWJ7VTO.cjs} +10 -10
  20. package/cjs/__chunks/{4HKELPDA.cjs → GWFSX7RQ.cjs} +8 -8
  21. package/cjs/__chunks/{2FEEKOTF.cjs → GZMKQINI.cjs} +2 -2
  22. package/cjs/__chunks/{3ULNMLN7.cjs → HSOKUBYY.cjs} +5 -5
  23. package/cjs/__chunks/{NPDPNCSD.cjs → HWZH54NB.cjs} +3 -2
  24. package/cjs/__chunks/{BPPAZUXP.cjs → J37FS72U.cjs} +2 -2
  25. package/cjs/__chunks/{5E5FKYEO.cjs → L2VQ4YLN.cjs} +18 -1
  26. package/cjs/__chunks/{7F6H5HXC.cjs → LCC3WQBM.cjs} +4 -4
  27. package/cjs/__chunks/{E4C2KZA5.cjs → O6SYRTZH.cjs} +5 -5
  28. package/cjs/__chunks/{2C7LUQOS.cjs → OOFSNUBV.cjs} +2 -2
  29. package/cjs/__chunks/{DMTOMUIM.cjs → QBOBT66Y.cjs} +8 -7
  30. package/cjs/__chunks/{QEG5AJH6.cjs → QFGI3BJE.cjs} +107 -58
  31. package/cjs/__chunks/{JKMBJCXA.cjs → QK4GI6B3.cjs} +7 -12
  32. package/cjs/__chunks/{OX7M6AXH.cjs → QMFZ4CLT.cjs} +4 -4
  33. package/cjs/__chunks/{HCQYEOCO.cjs → R7CSCUVW.cjs} +6 -6
  34. package/cjs/__chunks/{6UXB6PRK.cjs → RU4K4ZH6.cjs} +7 -7
  35. package/cjs/__chunks/{6BAHKJ5K.cjs → RWS2MAR2.cjs} +0 -7
  36. package/cjs/__chunks/{J77SNKFZ.cjs → SE2X2FG7.cjs} +4 -4
  37. package/cjs/__chunks/{6G5GJF5Q.cjs → SELCJFCB.cjs} +2 -2
  38. package/cjs/__chunks/{WBPFHFAX.cjs → T222USYS.cjs} +35 -35
  39. package/cjs/__chunks/TLA46MN6.cjs +79 -0
  40. package/cjs/__chunks/{V37GXOUJ.cjs → TYMYFAUI.cjs} +4 -4
  41. package/cjs/__chunks/{DNFCOHE4.cjs → UK2DHDQU.cjs} +2 -2
  42. package/cjs/__chunks/{4ULJINEP.cjs → VAF2GKYW.cjs} +8 -8
  43. package/cjs/__chunks/{XOHN6PER.cjs → VAY4A33A.cjs} +10 -6
  44. package/cjs/__chunks/{JNVNPB37.cjs → VGU6RMHO.cjs} +2 -2
  45. package/cjs/__chunks/{27A4YAUB.cjs → VVU2UQJ2.cjs} +4 -4
  46. package/cjs/__chunks/{EQEXTQQ6.cjs → YCBMXOIO.cjs} +5 -5
  47. package/cjs/__chunks/{2VQBXUAI.cjs → YLOTLD6S.cjs} +2 -2
  48. package/cjs/__chunks/{HDYD5S2P.cjs → ZIEW4CQO.cjs} +3 -3
  49. package/cjs/__chunks/{X3UARAKT.cjs → ZQZC54NS.cjs} +2 -2
  50. package/cjs/__chunks/{NATUYKIW.cjs → ZZZ5MQHA.cjs} +4 -4
  51. package/cjs/button/button.cjs +4 -4
  52. package/cjs/checkbox/checkbox-provider.cjs +3 -3
  53. package/cjs/checkbox/checkbox-store.cjs +3 -3
  54. package/cjs/checkbox/checkbox.cjs +5 -5
  55. package/cjs/collection/collection-provider.cjs +3 -3
  56. package/cjs/collection/collection-renderer.cjs +3 -3
  57. package/cjs/collection/collection-renderer.d.ts +53 -53
  58. package/cjs/collection/collection-store.cjs +3 -3
  59. package/cjs/combobox/combobox-cancel.cjs +4 -4
  60. package/cjs/combobox/combobox-disclosure.cjs +6 -6
  61. package/cjs/combobox/combobox-item.cjs +5 -5
  62. package/cjs/combobox/combobox-list.cjs +5 -4
  63. package/cjs/combobox/combobox-popover.cjs +24 -20
  64. package/cjs/combobox/combobox-provider.cjs +8 -8
  65. package/cjs/combobox/combobox-store.cjs +8 -8
  66. package/cjs/combobox/combobox.cjs +7 -5
  67. package/cjs/command/command.cjs +3 -3
  68. package/cjs/composite/composite-container.cjs +3 -3
  69. package/cjs/composite/composite-item.cjs +5 -5
  70. package/cjs/composite/composite-overflow-disclosure.cjs +10 -10
  71. package/cjs/composite/composite-overflow-store.cjs +6 -6
  72. package/cjs/composite/composite-overflow.cjs +15 -14
  73. package/cjs/composite/composite-provider.cjs +4 -4
  74. package/cjs/composite/composite-renderer.cjs +4 -4
  75. package/cjs/composite/composite-renderer.d.ts +53 -53
  76. package/cjs/composite/composite-store.cjs +4 -4
  77. package/cjs/composite/composite-typeahead.d.ts +0 -4
  78. package/cjs/composite/composite.cjs +3 -3
  79. package/cjs/dialog/dialog-backdrop.cjs +7 -7
  80. package/cjs/dialog/dialog-disclosure.cjs +6 -6
  81. package/cjs/dialog/dialog-dismiss.cjs +5 -5
  82. package/cjs/dialog/dialog-provider.cjs +4 -4
  83. package/cjs/dialog/dialog-store.cjs +4 -4
  84. package/cjs/dialog/dialog.cjs +16 -13
  85. package/cjs/dialog/dialog.d.ts +83 -14
  86. package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +3 -3
  87. package/cjs/dialog/utils/disable-accessibility-tree-outside.d.ts +1 -1
  88. package/cjs/dialog/utils/disable-tree.cjs +14 -0
  89. package/cjs/dialog/utils/disable-tree.d.ts +5 -0
  90. package/cjs/dialog/utils/mark-tree-outside.cjs +3 -3
  91. package/cjs/dialog/utils/mark-tree-outside.d.ts +1 -1
  92. package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +4 -4
  93. package/cjs/dialog/utils/use-nested-dialogs.cjs +2 -2
  94. package/cjs/dialog/utils/walk-tree-outside.cjs +5 -2
  95. package/cjs/dialog/utils/walk-tree-outside.d.ts +3 -2
  96. package/cjs/disclosure/disclosure-content.cjs +3 -2
  97. package/cjs/disclosure/disclosure-content.d.ts +14 -0
  98. package/cjs/disclosure/disclosure-provider.cjs +3 -3
  99. package/cjs/disclosure/disclosure-store.cjs +3 -3
  100. package/cjs/disclosure/disclosure.cjs +5 -5
  101. package/cjs/focusable/focusable.cjs +2 -2
  102. package/cjs/focusable/focusable.d.ts +2 -0
  103. package/cjs/form/form-checkbox.cjs +7 -7
  104. package/cjs/form/form-input.cjs +2 -2
  105. package/cjs/form/form-provider.cjs +4 -4
  106. package/cjs/form/form-push.cjs +4 -4
  107. package/cjs/form/form-radio.cjs +6 -6
  108. package/cjs/form/form-remove.cjs +4 -4
  109. package/cjs/form/form-reset.cjs +4 -4
  110. package/cjs/form/form-store.cjs +4 -4
  111. package/cjs/form/form-submit.cjs +4 -4
  112. package/cjs/hovercard/hovercard-anchor.cjs +3 -3
  113. package/cjs/hovercard/hovercard-disclosure.cjs +6 -6
  114. package/cjs/hovercard/hovercard-dismiss.cjs +7 -7
  115. package/cjs/hovercard/hovercard-provider.cjs +6 -6
  116. package/cjs/hovercard/hovercard-store.cjs +6 -6
  117. package/cjs/hovercard/hovercard.cjs +16 -15
  118. package/cjs/menu/menu-arrow.d.ts +11 -7
  119. package/cjs/menu/menu-bar-provider.cjs +5 -5
  120. package/cjs/menu/menu-bar-store.cjs +5 -5
  121. package/cjs/menu/menu-bar.cjs +3 -3
  122. package/cjs/menu/menu-bar.d.ts +23 -22
  123. package/cjs/menu/menu-button-arrow.d.ts +16 -11
  124. package/cjs/menu/menu-button.cjs +11 -11
  125. package/cjs/menu/menu-button.d.ts +19 -11
  126. package/cjs/menu/menu-description.d.ts +13 -8
  127. package/cjs/menu/menu-dismiss.cjs +7 -7
  128. package/cjs/menu/menu-dismiss.d.ts +10 -6
  129. package/cjs/menu/menu-group-label.d.ts +15 -10
  130. package/cjs/menu/menu-group.d.ts +15 -10
  131. package/cjs/menu/menu-heading.d.ts +10 -6
  132. package/cjs/menu/menu-item-check.d.ts +15 -15
  133. package/cjs/menu/menu-item-checkbox.cjs +10 -10
  134. package/cjs/menu/menu-item-checkbox.d.ts +13 -8
  135. package/cjs/menu/menu-item-radio.cjs +8 -8
  136. package/cjs/menu/menu-item-radio.d.ts +18 -13
  137. package/cjs/menu/menu-item.cjs +6 -6
  138. package/cjs/menu/menu-item.d.ts +16 -9
  139. package/cjs/menu/menu-list.cjs +6 -6
  140. package/cjs/menu/menu-list.d.ts +12 -7
  141. package/cjs/menu/menu-provider.cjs +9 -9
  142. package/cjs/menu/menu-separator.d.ts +14 -10
  143. package/cjs/menu/menu-store.cjs +9 -9
  144. package/cjs/menu/menu-store.d.ts +9 -9
  145. package/cjs/menu/menu.cjs +46 -52
  146. package/cjs/menu/menu.d.ts +9 -8
  147. package/cjs/popover/popover-anchor.d.ts +9 -4
  148. package/cjs/popover/popover-arrow.d.ts +14 -8
  149. package/cjs/popover/popover-description.d.ts +13 -8
  150. package/cjs/popover/popover-disclosure-arrow.d.ts +18 -10
  151. package/cjs/popover/popover-disclosure.cjs +7 -7
  152. package/cjs/popover/popover-disclosure.d.ts +4 -3
  153. package/cjs/popover/popover-dismiss.cjs +6 -6
  154. package/cjs/popover/popover-dismiss.d.ts +13 -7
  155. package/cjs/popover/popover-heading.d.ts +14 -8
  156. package/cjs/popover/popover-provider.cjs +5 -5
  157. package/cjs/popover/popover-store.cjs +5 -5
  158. package/cjs/popover/popover.cjs +15 -14
  159. package/cjs/popover/popover.d.ts +13 -9
  160. package/cjs/portal/portal.d.ts +17 -6
  161. package/cjs/radio/radio-group.cjs +3 -3
  162. package/cjs/radio/radio-group.d.ts +5 -1
  163. package/cjs/radio/radio-provider.cjs +5 -5
  164. package/cjs/radio/radio-store.cjs +5 -5
  165. package/cjs/radio/radio-store.d.ts +0 -5
  166. package/cjs/radio/radio.cjs +6 -6
  167. package/cjs/radio/radio.d.ts +6 -2
  168. package/cjs/select/select-arrow.d.ts +18 -13
  169. package/cjs/select/select-group-label.d.ts +22 -17
  170. package/cjs/select/select-group.d.ts +17 -12
  171. package/cjs/select/select-item-check.d.ts +23 -17
  172. package/cjs/select/select-item.cjs +5 -5
  173. package/cjs/select/select-item.d.ts +51 -24
  174. package/cjs/select/select-label.d.ts +18 -14
  175. package/cjs/select/select-list.cjs +6 -5
  176. package/cjs/select/select-list.d.ts +26 -16
  177. package/cjs/select/select-popover.cjs +27 -21
  178. package/cjs/select/select-popover.d.ts +11 -10
  179. package/cjs/select/select-provider.cjs +8 -8
  180. package/cjs/select/select-renderer.cjs +7 -7
  181. package/cjs/select/select-row.d.ts +20 -15
  182. package/cjs/select/select-separator.d.ts +16 -11
  183. package/cjs/select/select-store.cjs +8 -8
  184. package/cjs/select/select-store.d.ts +0 -4
  185. package/cjs/select/select.cjs +7 -7
  186. package/cjs/select/select.d.ts +39 -17
  187. package/cjs/tab/tab-list.cjs +3 -3
  188. package/cjs/tab/tab-list.d.ts +14 -9
  189. package/cjs/tab/tab-panel.cjs +7 -7
  190. package/cjs/tab/tab-panel.d.ts +15 -10
  191. package/cjs/tab/tab-provider.cjs +5 -5
  192. package/cjs/tab/tab-store.cjs +5 -5
  193. package/cjs/tab/tab-store.d.ts +0 -7
  194. package/cjs/tab/tab.cjs +5 -5
  195. package/cjs/tab/tab.d.ts +13 -10
  196. package/cjs/toolbar/toolbar-container.cjs +8 -8
  197. package/cjs/toolbar/toolbar-container.d.ts +3 -4
  198. package/cjs/toolbar/toolbar-input.cjs +6 -6
  199. package/cjs/toolbar/toolbar-input.d.ts +3 -4
  200. package/cjs/toolbar/toolbar-item.cjs +6 -6
  201. package/cjs/toolbar/toolbar-item.d.ts +7 -5
  202. package/cjs/toolbar/toolbar-provider.cjs +5 -5
  203. package/cjs/toolbar/toolbar-separator.d.ts +7 -5
  204. package/cjs/toolbar/toolbar-store.cjs +5 -5
  205. package/cjs/toolbar/toolbar.cjs +8 -8
  206. package/cjs/toolbar/toolbar.d.ts +8 -3
  207. package/cjs/tooltip/tooltip-anchor.cjs +3 -3
  208. package/cjs/tooltip/tooltip-anchor.d.ts +13 -8
  209. package/cjs/tooltip/tooltip-arrow.d.ts +16 -10
  210. package/cjs/tooltip/tooltip-provider.cjs +7 -7
  211. package/cjs/tooltip/tooltip-store.cjs +7 -7
  212. package/cjs/tooltip/tooltip.cjs +25 -19
  213. package/cjs/tooltip/tooltip.d.ts +10 -5
  214. package/cjs/tsconfig.build.tsbuildinfo +1 -1
  215. package/cjs/utils/store.cjs +2 -2
  216. package/cjs/utils/system.d.ts +2 -2
  217. package/dialog/utils/disable-tree/package.json +8 -0
  218. package/esm/__chunks/{VDTDCNMP.js → 2BTPJSKW.js} +3 -3
  219. package/esm/__chunks/{3HFOFZP4.js → 2FIUKXIM.js} +1 -1
  220. package/esm/__chunks/{KZMKUBQH.js → 2Q7ASGJM.js} +1 -1
  221. package/esm/__chunks/{QJMIKN5O.js → 3FLPLDNL.js} +2 -2
  222. package/esm/__chunks/{HMYMEP6U.js → 3KBWC7LF.js} +1 -1
  223. package/esm/__chunks/{4SB2BYFE.js → 3X3TLUHU.js} +4 -3
  224. package/esm/__chunks/{HYNMOU7J.js → 56TAEBRJ.js} +1 -1
  225. package/esm/__chunks/{TQ2YQL6O.js → 5EAW3TWZ.js} +11 -1
  226. package/esm/__chunks/{V5EW3YHP.js → 6F7MKZK2.js} +3 -3
  227. package/esm/__chunks/{UQFOL5I6.js → 6W46XYWY.js} +2 -2
  228. package/esm/__chunks/{HAVCR65N.js → 7LB47D2O.js} +1 -1
  229. package/esm/__chunks/{X5VV5CBA.js → 7VWXICM7.js} +3 -3
  230. package/esm/__chunks/{VPTWELSR.js → AE5ABTKC.js} +2 -2
  231. package/esm/__chunks/{LND6SMHN.js → CAIAWNDV.js} +2 -1
  232. package/esm/__chunks/{C5JX5C3O.js → DCODCZJS.js} +3 -3
  233. package/esm/__chunks/{R4FKKQYI.js → DE62M4L2.js} +2 -2
  234. package/esm/__chunks/{IFNQMENS.js → DLZTS5NV.js} +3 -3
  235. package/esm/__chunks/{D5TF3EQR.js → E3ZC4HKO.js} +2 -2
  236. package/esm/__chunks/{XASENZA4.js → EGOOWJGN.js} +16 -15
  237. package/esm/__chunks/{34JEM52B.js → F7UYWUBJ.js} +34 -34
  238. package/esm/__chunks/{KGDYSCOM.js → FRKOFFMT.js} +6 -11
  239. package/esm/__chunks/{GP4UGJIZ.js → H3CXUGYG.js} +9 -5
  240. package/esm/__chunks/{4WK6LN27.js → HUAF5DID.js} +2 -2
  241. package/esm/__chunks/{PLOINBVB.js → HWJ7DGMR.js} +0 -7
  242. package/esm/__chunks/{MXSIXS3C.js → HXYXHHNW.js} +1 -1
  243. package/esm/__chunks/{FBTQUSIH.js → I6Y4PDFW.js} +2 -2
  244. package/esm/__chunks/{K6BB6DTS.js → IADMQBOS.js} +2 -2
  245. package/esm/__chunks/{72OJKUSZ.js → IQXVWBXC.js} +2 -2
  246. package/esm/__chunks/{UY3UQ4QI.js → IZFXPXHG.js} +2 -2
  247. package/esm/__chunks/{HGW6FZYU.js → J2AZPLFF.js} +2 -2
  248. package/esm/__chunks/{EKIHOHWR.js → JRZOTPWS.js} +2 -2
  249. package/esm/__chunks/{3D7ZB3CS.js → KK6NPMOP.js} +18 -1
  250. package/esm/__chunks/{54DCICBS.js → KXTLHNBI.js} +1 -1
  251. package/esm/__chunks/{RJEKIG5Y.js → LBTB6WEV.js} +1 -1
  252. package/esm/__chunks/{HZPJPDJY.js → LFLKMTFW.js} +2 -2
  253. package/esm/__chunks/{7AFOF5E7.js → LRDCOOWL.js} +1 -1
  254. package/esm/__chunks/{W575AF63.js → NXB7YL3C.js} +3 -3
  255. package/esm/__chunks/{35WVCYXU.js → OAQFZVKH.js} +2 -2
  256. package/esm/__chunks/{A2ONBKVT.js → OD3JT64N.js} +1 -1
  257. package/esm/__chunks/{AYWP3ZW6.js → OQUFN5QO.js} +1 -1
  258. package/esm/__chunks/{H2BG4QDT.js → QTZ67ALK.js} +2 -2
  259. package/esm/__chunks/{QPWEKAWF.js → TONP6TZ5.js} +1 -1
  260. package/esm/__chunks/{4RP654JS.js → UXIMR4AS.js} +100 -51
  261. package/esm/__chunks/VRCYQ6JX.js +79 -0
  262. package/esm/__chunks/{XXO3VVQU.js → WHAB4XD6.js} +3 -35
  263. package/esm/__chunks/{4JNX5L5C.js → WNHMGHG5.js} +1 -1
  264. package/esm/__chunks/{WGAKICTY.js → WRZGD4DH.js} +2 -2
  265. package/esm/__chunks/{NWDF5QDV.js → YS46MLTR.js} +1 -1
  266. package/esm/__chunks/{IZ6ZARCP.js → ZYB5SMUW.js} +1 -1
  267. package/esm/button/button.js +3 -3
  268. package/esm/checkbox/checkbox-provider.js +2 -2
  269. package/esm/checkbox/checkbox-store.js +2 -2
  270. package/esm/checkbox/checkbox.js +4 -4
  271. package/esm/collection/collection-provider.js +2 -2
  272. package/esm/collection/collection-renderer.d.ts +53 -53
  273. package/esm/collection/collection-renderer.js +2 -2
  274. package/esm/collection/collection-store.js +2 -2
  275. package/esm/combobox/combobox-cancel.js +3 -3
  276. package/esm/combobox/combobox-disclosure.js +5 -5
  277. package/esm/combobox/combobox-item.js +4 -4
  278. package/esm/combobox/combobox-list.js +4 -3
  279. package/esm/combobox/combobox-popover.js +22 -18
  280. package/esm/combobox/combobox-provider.js +7 -7
  281. package/esm/combobox/combobox-store.js +7 -7
  282. package/esm/combobox/combobox.js +6 -4
  283. package/esm/command/command.js +2 -2
  284. package/esm/composite/composite-container.js +2 -2
  285. package/esm/composite/composite-item.js +4 -4
  286. package/esm/composite/composite-overflow-disclosure.js +8 -8
  287. package/esm/composite/composite-overflow-store.js +4 -4
  288. package/esm/composite/composite-overflow.js +14 -13
  289. package/esm/composite/composite-provider.js +3 -3
  290. package/esm/composite/composite-renderer.d.ts +53 -53
  291. package/esm/composite/composite-renderer.js +3 -3
  292. package/esm/composite/composite-store.js +3 -3
  293. package/esm/composite/composite-typeahead.d.ts +0 -4
  294. package/esm/composite/composite.js +2 -2
  295. package/esm/dialog/dialog-backdrop.js +6 -6
  296. package/esm/dialog/dialog-disclosure.js +5 -5
  297. package/esm/dialog/dialog-dismiss.js +4 -4
  298. package/esm/dialog/dialog-provider.js +3 -3
  299. package/esm/dialog/dialog-store.js +3 -3
  300. package/esm/dialog/dialog.d.ts +83 -14
  301. package/esm/dialog/dialog.js +15 -12
  302. package/esm/dialog/utils/disable-accessibility-tree-outside.d.ts +1 -1
  303. package/esm/dialog/utils/disable-accessibility-tree-outside.js +2 -2
  304. package/esm/dialog/utils/disable-tree.d.ts +5 -0
  305. package/esm/dialog/utils/{disable-tree-outside.js → disable-tree.js} +5 -3
  306. package/esm/dialog/utils/mark-tree-outside.d.ts +1 -1
  307. package/esm/dialog/utils/mark-tree-outside.js +2 -2
  308. package/esm/dialog/utils/use-hide-on-interact-outside.js +3 -3
  309. package/esm/dialog/utils/use-nested-dialogs.js +1 -1
  310. package/esm/dialog/utils/walk-tree-outside.d.ts +3 -2
  311. package/esm/dialog/utils/walk-tree-outside.js +4 -1
  312. package/esm/disclosure/disclosure-content.d.ts +14 -0
  313. package/esm/disclosure/disclosure-content.js +2 -1
  314. package/esm/disclosure/disclosure-provider.js +2 -2
  315. package/esm/disclosure/disclosure-store.js +2 -2
  316. package/esm/disclosure/disclosure.js +4 -4
  317. package/esm/focusable/focusable.d.ts +2 -0
  318. package/esm/focusable/focusable.js +1 -1
  319. package/esm/form/form-checkbox.js +5 -5
  320. package/esm/form/form-input.js +1 -1
  321. package/esm/form/form-provider.js +3 -3
  322. package/esm/form/form-push.js +3 -3
  323. package/esm/form/form-radio.js +5 -5
  324. package/esm/form/form-remove.js +3 -3
  325. package/esm/form/form-reset.js +3 -3
  326. package/esm/form/form-store.js +3 -3
  327. package/esm/form/form-submit.js +3 -3
  328. package/esm/hovercard/hovercard-anchor.js +2 -2
  329. package/esm/hovercard/hovercard-disclosure.js +5 -5
  330. package/esm/hovercard/hovercard-dismiss.js +6 -6
  331. package/esm/hovercard/hovercard-provider.js +5 -5
  332. package/esm/hovercard/hovercard-store.js +5 -5
  333. package/esm/hovercard/hovercard.js +15 -14
  334. package/esm/menu/menu-arrow.d.ts +11 -7
  335. package/esm/menu/menu-bar-provider.js +4 -4
  336. package/esm/menu/menu-bar-store.js +4 -4
  337. package/esm/menu/menu-bar.d.ts +23 -22
  338. package/esm/menu/menu-bar.js +2 -2
  339. package/esm/menu/menu-button-arrow.d.ts +16 -11
  340. package/esm/menu/menu-button.d.ts +19 -11
  341. package/esm/menu/menu-button.js +8 -8
  342. package/esm/menu/menu-description.d.ts +13 -8
  343. package/esm/menu/menu-dismiss.d.ts +10 -6
  344. package/esm/menu/menu-dismiss.js +6 -6
  345. package/esm/menu/menu-group-label.d.ts +15 -10
  346. package/esm/menu/menu-group.d.ts +15 -10
  347. package/esm/menu/menu-heading.d.ts +10 -6
  348. package/esm/menu/menu-item-check.d.ts +15 -15
  349. package/esm/menu/menu-item-checkbox.d.ts +13 -8
  350. package/esm/menu/menu-item-checkbox.js +7 -7
  351. package/esm/menu/menu-item-radio.d.ts +18 -13
  352. package/esm/menu/menu-item-radio.js +6 -6
  353. package/esm/menu/menu-item.d.ts +16 -9
  354. package/esm/menu/menu-item.js +5 -5
  355. package/esm/menu/menu-list.d.ts +12 -7
  356. package/esm/menu/menu-list.js +5 -5
  357. package/esm/menu/menu-provider.js +8 -8
  358. package/esm/menu/menu-separator.d.ts +14 -10
  359. package/esm/menu/menu-store.d.ts +9 -9
  360. package/esm/menu/menu-store.js +8 -8
  361. package/esm/menu/menu.d.ts +9 -8
  362. package/esm/menu/menu.js +45 -51
  363. package/esm/popover/popover-anchor.d.ts +9 -4
  364. package/esm/popover/popover-arrow.d.ts +14 -8
  365. package/esm/popover/popover-description.d.ts +13 -8
  366. package/esm/popover/popover-disclosure-arrow.d.ts +18 -10
  367. package/esm/popover/popover-disclosure.d.ts +4 -3
  368. package/esm/popover/popover-disclosure.js +6 -6
  369. package/esm/popover/popover-dismiss.d.ts +13 -7
  370. package/esm/popover/popover-dismiss.js +5 -5
  371. package/esm/popover/popover-heading.d.ts +14 -8
  372. package/esm/popover/popover-provider.js +4 -4
  373. package/esm/popover/popover-store.js +4 -4
  374. package/esm/popover/popover.d.ts +13 -9
  375. package/esm/popover/popover.js +14 -13
  376. package/esm/portal/portal.d.ts +17 -6
  377. package/esm/radio/radio-group.d.ts +5 -1
  378. package/esm/radio/radio-group.js +2 -2
  379. package/esm/radio/radio-provider.js +4 -4
  380. package/esm/radio/radio-store.d.ts +0 -5
  381. package/esm/radio/radio-store.js +4 -4
  382. package/esm/radio/radio.d.ts +6 -2
  383. package/esm/radio/radio.js +5 -5
  384. package/esm/select/select-arrow.d.ts +18 -13
  385. package/esm/select/select-group-label.d.ts +22 -17
  386. package/esm/select/select-group.d.ts +17 -12
  387. package/esm/select/select-item-check.d.ts +23 -17
  388. package/esm/select/select-item.d.ts +51 -24
  389. package/esm/select/select-item.js +4 -4
  390. package/esm/select/select-label.d.ts +18 -14
  391. package/esm/select/select-list.d.ts +26 -16
  392. package/esm/select/select-list.js +5 -4
  393. package/esm/select/select-popover.d.ts +11 -10
  394. package/esm/select/select-popover.js +25 -19
  395. package/esm/select/select-provider.js +7 -7
  396. package/esm/select/select-renderer.js +3 -3
  397. package/esm/select/select-row.d.ts +20 -15
  398. package/esm/select/select-separator.d.ts +16 -11
  399. package/esm/select/select-store.d.ts +0 -4
  400. package/esm/select/select-store.js +7 -7
  401. package/esm/select/select.d.ts +39 -17
  402. package/esm/select/select.js +6 -6
  403. package/esm/tab/tab-list.d.ts +14 -9
  404. package/esm/tab/tab-list.js +2 -2
  405. package/esm/tab/tab-panel.d.ts +15 -10
  406. package/esm/tab/tab-panel.js +4 -4
  407. package/esm/tab/tab-provider.js +4 -4
  408. package/esm/tab/tab-store.d.ts +0 -7
  409. package/esm/tab/tab-store.js +4 -4
  410. package/esm/tab/tab.d.ts +13 -10
  411. package/esm/tab/tab.js +4 -4
  412. package/esm/toolbar/toolbar-container.d.ts +3 -4
  413. package/esm/toolbar/toolbar-container.js +6 -6
  414. package/esm/toolbar/toolbar-input.d.ts +3 -4
  415. package/esm/toolbar/toolbar-input.js +5 -5
  416. package/esm/toolbar/toolbar-item.d.ts +7 -5
  417. package/esm/toolbar/toolbar-item.js +5 -5
  418. package/esm/toolbar/toolbar-provider.js +4 -4
  419. package/esm/toolbar/toolbar-separator.d.ts +7 -5
  420. package/esm/toolbar/toolbar-store.js +4 -4
  421. package/esm/toolbar/toolbar.d.ts +8 -3
  422. package/esm/toolbar/toolbar.js +6 -6
  423. package/esm/tooltip/tooltip-anchor.d.ts +13 -8
  424. package/esm/tooltip/tooltip-anchor.js +2 -2
  425. package/esm/tooltip/tooltip-arrow.d.ts +16 -10
  426. package/esm/tooltip/tooltip-provider.js +6 -6
  427. package/esm/tooltip/tooltip-store.js +6 -6
  428. package/esm/tooltip/tooltip.d.ts +10 -5
  429. package/esm/tooltip/tooltip.js +24 -18
  430. package/esm/tsconfig.build.tsbuildinfo +1 -1
  431. package/esm/utils/store.js +1 -1
  432. package/esm/utils/system.d.ts +2 -2
  433. package/package.json +5 -5
  434. package/cjs/__chunks/PD5YFDLO.cjs +0 -41
  435. package/cjs/dialog/utils/disable-tree-outside.cjs +0 -12
  436. package/cjs/dialog/utils/disable-tree-outside.d.ts +0 -3
  437. package/dialog/utils/disable-tree-outside/package.json +0 -8
  438. package/esm/__chunks/5M4ITSXL.js +0 -41
  439. package/esm/dialog/utils/disable-tree-outside.d.ts +0 -3
  440. package/cjs/__chunks/{BFLDQF3L.cjs → GQAB4M3B.cjs} +3 -3
  441. package/esm/__chunks/{M4OAD5XF.js → YTHH33BK.js} +3 -3
@@ -1,24 +1,25 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _OX7M6AXHcjs = require('../__chunks/OX7M6AXH.cjs');
4
+ var _QMFZ4CLTcjs = require('../__chunks/QMFZ4CLT.cjs');
5
5
  require('../__chunks/DC66R2NY.cjs');
6
6
  require('../__chunks/I2EPCLS6.cjs');
7
- require('../__chunks/6G5GJF5Q.cjs');
7
+ require('../__chunks/SELCJFCB.cjs');
8
8
  require('../__chunks/KLZID3QO.cjs');
9
9
  require('../__chunks/H7R5D2FR.cjs');
10
10
  require('../__chunks/NHZBX2RS.cjs');
11
- require('../__chunks/5E5FKYEO.cjs');
11
+ require('../__chunks/L2VQ4YLN.cjs');
12
12
  require('../__chunks/AKOG5S2T.cjs');
13
13
  require('../__chunks/W6ZRSMO5.cjs');
14
14
  require('../__chunks/A2NMYLCG.cjs');
15
- require('../__chunks/BFLDQF3L.cjs');
15
+ require('../__chunks/GQAB4M3B.cjs');
16
16
  require('../__chunks/LHHW5ZQP.cjs');
17
17
  require('../__chunks/Z5PUIG6A.cjs');
18
+ require('../__chunks/EVNF7KMT.cjs');
18
19
  require('../__chunks/5WLTMVVQ.cjs');
19
20
  require('../__chunks/7WUTS26Y.cjs');
20
21
  require('../__chunks/72I2GWXF.cjs');
21
22
 
22
23
 
23
24
 
24
- exports.SelectList = _OX7M6AXHcjs.SelectList; exports.useSelectList = _OX7M6AXHcjs.useSelectList;
25
+ exports.SelectList = _QMFZ4CLTcjs.SelectList; exports.useSelectList = _QMFZ4CLTcjs.useSelectList;
@@ -20,37 +20,47 @@ import type { SelectStore } from "./select-store.js";
20
20
  */
21
21
  export declare const useSelectList: import("../utils/types.js").Hook<SelectListOptions<"div">>;
22
22
  /**
23
- * Renders a select list. The `role` prop is set to `listbox` by default, but
24
- * can be overriden by any other valid select popup role (`listbox`, `menu`,
25
- * `tree`, `grid` or `dialog`). The `aria-labelledby` prop is set to the select
26
- * input element's `id` by default.
23
+ * Renders a select list. The `role` attribute is set to `listbox` by default,
24
+ * but can be overriden by any other valid select popup role (`listbox`, `menu`,
25
+ * `tree`, `grid` or `dialog`).
26
+ *
27
+ * The `aria-labelledby` attribute is set to the
28
+ * [`Select`](https://ariakit.org/reference/select) element's `id` by default.
27
29
  * @see https://ariakit.org/components/select
28
30
  * @example
29
- * ```jsx
30
- * const select = useSelectStore();
31
- * <Select store={select} />
32
- * <SelectList store={select}>
33
- * <SelectItem value="Apple" />
34
- * <SelectItem value="Orange" />
35
- * </SelectList>
31
+ * ```jsx {3-6}
32
+ * <SelectProvider>
33
+ * <Select />
34
+ * <SelectList>
35
+ * <SelectItem value="Apple" />
36
+ * <SelectItem value="Orange" />
37
+ * </SelectList>
38
+ * </SelectProvider>
36
39
  * ```
37
40
  */
38
41
  export declare const SelectList: import("../utils/types.js").Component<SelectListOptions<"div">>;
39
42
  export interface SelectListOptions<T extends As = "div"> extends CompositeOptions<T>, CompositeTypeaheadOptions<T>, Pick<DisclosureContentOptions, "alwaysVisible"> {
40
43
  /**
41
- * Object returned by the `useSelectStore` hook.
44
+ * Object returned by the
45
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
46
+ * not provided, the closest
47
+ * [`SelectProvider`](https://ariakit.org/reference/select-provider)
48
+ * component's context will be used.
42
49
  */
43
50
  store?: SelectStore;
44
51
  /**
45
52
  * Whether the select value should be reset to the value before the list got
46
- * shown when Escape is pressed. This has effect only when `selectOnMove` is
47
- * `true` on the select store.
53
+ * shown when Escape is pressed. This has effect only when
54
+ * [`setValueOnMove`](https://ariakit.org/reference/select-provider#setvalueonmove)
55
+ * is `true`.
48
56
  * @default true
49
57
  */
50
58
  resetOnEscape?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
51
59
  /**
52
- * Whether the select list should be hidden when the user presses Enter or
53
- * Space while the list is focused (that is, no item is selected).
60
+ * Whether the [`SelectList`](https://ariakit.org/reference/select-list) or
61
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components
62
+ * should be hidden when the user presses Enter or Space while the list
63
+ * element is focused and no item is active.
54
64
  * @default true
55
65
  */
56
66
  hideOnEnter?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
@@ -1,28 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _OX7M6AXHcjs = require('../__chunks/OX7M6AXH.cjs');
3
+ var _QMFZ4CLTcjs = require('../__chunks/QMFZ4CLT.cjs');
4
4
  require('../__chunks/DC66R2NY.cjs');
5
5
 
6
6
 
7
7
  var _I2EPCLS6cjs = require('../__chunks/I2EPCLS6.cjs');
8
- require('../__chunks/6G5GJF5Q.cjs');
8
+ require('../__chunks/SELCJFCB.cjs');
9
9
  require('../__chunks/KLZID3QO.cjs');
10
10
  require('../__chunks/H7R5D2FR.cjs');
11
11
  require('../__chunks/NHZBX2RS.cjs');
12
12
 
13
13
 
14
- var _XOHN6PERcjs = require('../__chunks/XOHN6PER.cjs');
15
- require('../__chunks/QEG5AJH6.cjs');
16
- require('../__chunks/HCQYEOCO.cjs');
17
- require('../__chunks/6BAHKJ5K.cjs');
18
- require('../__chunks/DPLHWKRP.cjs');
14
+ var _VAY4A33Acjs = require('../__chunks/VAY4A33A.cjs');
15
+
16
+
17
+ var _QFGI3BJEcjs = require('../__chunks/QFGI3BJE.cjs');
18
+ require('../__chunks/R7CSCUVW.cjs');
19
+ require('../__chunks/RWS2MAR2.cjs');
20
+ require('../__chunks/DFFFHQVQ.cjs');
19
21
  require('../__chunks/W32FX7DM.cjs');
20
- require('../__chunks/JKMBJCXA.cjs');
21
- require('../__chunks/INDMFBTS.cjs');
22
- require('../__chunks/NBCR3CLP.cjs');
22
+ require('../__chunks/QK4GI6B3.cjs');
23
+ require('../__chunks/COHI5HTS.cjs');
24
+ require('../__chunks/F4RJLWZG.cjs');
23
25
  require('../__chunks/56NPFF7P.cjs');
24
26
  require('../__chunks/Z3TLXRS7.cjs');
25
- require('../__chunks/PD5YFDLO.cjs');
27
+ require('../__chunks/TLA46MN6.cjs');
26
28
  require('../__chunks/X2GXTE3P.cjs');
27
29
  require('../__chunks/VTRMALP6.cjs');
28
30
  require('../__chunks/BWQVQDGC.cjs');
@@ -34,11 +36,11 @@ require('../__chunks/CKEXTQ2S.cjs');
34
36
  require('../__chunks/NS56XHXG.cjs');
35
37
  require('../__chunks/CQSUIL2D.cjs');
36
38
  require('../__chunks/OAEUR56W.cjs');
37
- require('../__chunks/5E5FKYEO.cjs');
39
+ require('../__chunks/L2VQ4YLN.cjs');
38
40
  require('../__chunks/AKOG5S2T.cjs');
39
41
  require('../__chunks/W6ZRSMO5.cjs');
40
42
  require('../__chunks/A2NMYLCG.cjs');
41
- require('../__chunks/BFLDQF3L.cjs');
43
+ require('../__chunks/GQAB4M3B.cjs');
42
44
  require('../__chunks/LHHW5ZQP.cjs');
43
45
  require('../__chunks/KSFAO77E.cjs');
44
46
 
@@ -46,8 +48,9 @@ require('../__chunks/KSFAO77E.cjs');
46
48
 
47
49
 
48
50
  var _Z5PUIG6Acjs = require('../__chunks/Z5PUIG6A.cjs');
49
- require('../__chunks/3ULNMLN7.cjs');
50
- require('../__chunks/I63PYP2U.cjs');
51
+ require('../__chunks/ZZZ5MQHA.cjs');
52
+ require('../__chunks/HSOKUBYY.cjs');
53
+ require('../__chunks/EVNF7KMT.cjs');
51
54
  require('../__chunks/5WLTMVVQ.cjs');
52
55
  require('../__chunks/7WUTS26Y.cjs');
53
56
 
@@ -61,15 +64,18 @@ var useSelectPopover = _Z5PUIG6Acjs.createHook.call(void 0,
61
64
  var _b = _a, { store, alwaysVisible } = _b, props = _72I2GWXFcjs.__objRest.call(void 0, _b, ["store", "alwaysVisible"]);
62
65
  const context = _I2EPCLS6cjs.useSelectProviderContext.call(void 0, );
63
66
  store = store || context;
64
- props = _OX7M6AXHcjs.useSelectList.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, alwaysVisible }, props));
65
- props = _XOHN6PERcjs.usePopover.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, alwaysVisible }, props));
67
+ props = _QMFZ4CLTcjs.useSelectList.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, alwaysVisible }, props));
68
+ props = _VAY4A33Acjs.usePopover.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, alwaysVisible }, props));
66
69
  return props;
67
70
  }
68
71
  );
69
- var SelectPopover = _Z5PUIG6Acjs.createComponent.call(void 0, (props) => {
70
- const htmlProps = useSelectPopover(props);
71
- return _Z5PUIG6Acjs.createElement.call(void 0, "div", htmlProps);
72
- });
72
+ var SelectPopover = _QFGI3BJEcjs.createDialogComponent.call(void 0,
73
+ _Z5PUIG6Acjs.createComponent.call(void 0, (props) => {
74
+ const htmlProps = useSelectPopover(props);
75
+ return _Z5PUIG6Acjs.createElement.call(void 0, "div", htmlProps);
76
+ }),
77
+ _I2EPCLS6cjs.useSelectProviderContext
78
+ );
73
79
  if (process.env.NODE_ENV !== "production") {
74
80
  SelectPopover.displayName = "SelectPopover";
75
81
  }
@@ -16,18 +16,19 @@ import type { SelectListOptions } from "./select-list.js";
16
16
  */
17
17
  export declare const useSelectPopover: import("../utils/types.js").Hook<SelectPopoverOptions<"div">>;
18
18
  /**
19
- * Renders a select popover. The `role` prop is set to `listbox` by default, but
20
- * can be overriden by any other valid select popup role (`listbox`, `menu`,
21
- * `tree`, `grid` or `dialog`).
19
+ * Renders a select popover. The `role` attribute is set to `listbox` by
20
+ * default, but can be overriden by any other valid select popup role
21
+ * (`listbox`, `menu`, `tree`, `grid` or `dialog`).
22
22
  * @see https://ariakit.org/components/select
23
23
  * @example
24
- * ```jsx
25
- * const select = useSelectStore();
26
- * <Select store={select} />
27
- * <SelectPopover store={select}>
28
- * <SelectItem value="Apple" />
29
- * <SelectItem value="Orange" />
30
- * </SelectPopover>
24
+ * ```jsx {3-6}
25
+ * <SelectProvider>
26
+ * <Select />
27
+ * <SelectPopover>
28
+ * <SelectItem value="Apple" />
29
+ * <SelectItem value="Orange" />
30
+ * </SelectPopover>
31
+ * </SelectProvider>
31
32
  * ```
32
33
  */
33
34
  export declare const SelectPopover: import("../utils/types.js").Component<SelectPopoverOptions<"div">>;
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _DMTOMUIMcjs = require('../__chunks/DMTOMUIM.cjs');
3
+ var _QBOBT66Ycjs = require('../__chunks/QBOBT66Y.cjs');
4
4
  require('../__chunks/ZBG4TGVL.cjs');
5
5
 
6
6
 
7
7
  var _I2EPCLS6cjs = require('../__chunks/I2EPCLS6.cjs');
8
- require('../__chunks/FWCQCCG3.cjs');
9
- require('../__chunks/GCTYF2Y6.cjs');
8
+ require('../__chunks/232HWSNY.cjs');
9
+ require('../__chunks/76UBACFC.cjs');
10
10
  require('../__chunks/H7R5D2FR.cjs');
11
11
  require('../__chunks/NHZBX2RS.cjs');
12
12
  require('../__chunks/AKOG5S2T.cjs');
13
13
  require('../__chunks/W6ZRSMO5.cjs');
14
14
  require('../__chunks/A2NMYLCG.cjs');
15
15
  require('../__chunks/Z5PUIG6A.cjs');
16
- require('../__chunks/E4C2KZA5.cjs');
17
- require('../__chunks/NATUYKIW.cjs');
18
- require('../__chunks/3ULNMLN7.cjs');
19
- require('../__chunks/I63PYP2U.cjs');
16
+ require('../__chunks/O6SYRTZH.cjs');
17
+ require('../__chunks/ZZZ5MQHA.cjs');
18
+ require('../__chunks/HSOKUBYY.cjs');
19
+ require('../__chunks/EVNF7KMT.cjs');
20
20
  require('../__chunks/5WLTMVVQ.cjs');
21
21
  require('../__chunks/7WUTS26Y.cjs');
22
22
  require('../__chunks/72I2GWXF.cjs');
@@ -24,7 +24,7 @@ require('../__chunks/72I2GWXF.cjs');
24
24
  // src/select/select-provider.tsx
25
25
  var _jsxruntime = require('react/jsx-runtime');
26
26
  function SelectProvider(props = {}) {
27
- const store = _DMTOMUIMcjs.useSelectStore.call(void 0, props);
27
+ const store = _QBOBT66Ycjs.useSelectStore.call(void 0, props);
28
28
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _I2EPCLS6cjs.SelectContextProvider, { value: store, children: props.children });
29
29
  }
30
30
 
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _SKVJLFWScjs = require('../__chunks/SKVJLFWS.cjs');
3
+ var _6UYPIKG4cjs = require('../__chunks/6UYPIKG4.cjs');
4
4
 
5
5
 
6
6
 
7
- var _BPPAZUXPcjs = require('../__chunks/BPPAZUXP.cjs');
7
+ var _J37FS72Ucjs = require('../__chunks/J37FS72U.cjs');
8
8
 
9
9
 
10
10
  var _I2EPCLS6cjs = require('../__chunks/I2EPCLS6.cjs');
@@ -19,7 +19,7 @@ require('../__chunks/A2NMYLCG.cjs');
19
19
  var _Z5PUIG6Acjs = require('../__chunks/Z5PUIG6A.cjs');
20
20
 
21
21
 
22
- var _I63PYP2Ucjs = require('../__chunks/I63PYP2U.cjs');
22
+ var _EVNF7KMTcjs = require('../__chunks/EVNF7KMT.cjs');
23
23
  require('../__chunks/5WLTMVVQ.cjs');
24
24
  require('../__chunks/7WUTS26Y.cjs');
25
25
 
@@ -71,14 +71,14 @@ function useSelectRenderer(_a) {
71
71
  ]);
72
72
  const context = _I2EPCLS6cjs.useSelectContext.call(void 0, );
73
73
  store = store || context;
74
- const items = _I63PYP2Ucjs.useStoreState.call(void 0, store, (state) => {
74
+ const items = _EVNF7KMTcjs.useStoreState.call(void 0, store, (state) => {
75
75
  if (!state)
76
76
  return itemsProp;
77
77
  if (!state.mounted)
78
78
  return 0;
79
79
  return itemsProp != null ? itemsProp : state.items;
80
80
  });
81
- const value = _I63PYP2Ucjs.useStoreState.call(void 0, store, (state) => valueProp != null ? valueProp : state == null ? void 0 : state.value);
81
+ const value = _EVNF7KMTcjs.useStoreState.call(void 0, store, (state) => valueProp != null ? valueProp : state == null ? void 0 : state.value);
82
82
  const valueIndices = _react.useMemo.call(void 0, () => {
83
83
  if (!items)
84
84
  return [];
@@ -96,7 +96,7 @@ function useSelectRenderer(_a) {
96
96
  }
97
97
  return valueIndices;
98
98
  }, [valueIndices, persistentIndicesProp]);
99
- return _SKVJLFWScjs.useCompositeRenderer.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {
99
+ return _6UYPIKG4cjs.useCompositeRenderer.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {
100
100
  store,
101
101
  items,
102
102
  persistentIndices
@@ -110,4 +110,4 @@ var SelectRenderer = _Z5PUIG6Acjs.forwardRef.call(void 0, function SelectRendere
110
110
 
111
111
 
112
112
 
113
- exports.SelectRenderer = SelectRenderer; exports.getSelectRendererItem = _BPPAZUXPcjs.getCollectionRendererItem; exports.getSelectRendererItemId = _BPPAZUXPcjs.getCollectionRendererItemId;
113
+ exports.SelectRenderer = SelectRenderer; exports.getSelectRendererItem = _J37FS72Ucjs.getCollectionRendererItem; exports.getSelectRendererItemId = _J37FS72Ucjs.getCollectionRendererItemId;
@@ -21,26 +21,31 @@ export declare const useSelectRow: import("../utils/types.js").Hook<SelectRowOpt
21
21
  * Renders a select row.
22
22
  * @see https://ariakit.org/components/select
23
23
  * @example
24
- * ```jsx
25
- * const select = useSelectStore();
26
- * <Select store={select} />
27
- * <SelectPopover store={select}>
28
- * <SelectRow>
29
- * <SelectItem value="Apple" />
30
- * <SelectItem value="Orange" />
31
- * </SelectRow>
32
- * <SelectRow>
33
- * <SelectItem value="Banana" />
34
- * <SelectItem value="Grape" />
35
- * </SelectRow>
36
- * </SelectPopover>
24
+ * ```jsx {4-11}
25
+ * <SelectProvider>
26
+ * <Select />
27
+ * <SelectPopover>
28
+ * <SelectRow>
29
+ * <SelectItem value="Apple" />
30
+ * <SelectItem value="Orange" />
31
+ * </SelectRow>
32
+ * <SelectRow>
33
+ * <SelectItem value="Banana" />
34
+ * <SelectItem value="Grape" />
35
+ * </SelectRow>
36
+ * </SelectPopover>
37
+ * </SelectProvider>
37
38
  * ```
38
39
  */
39
40
  export declare const SelectRow: import("../utils/types.js").Component<SelectRowOptions<"div">>;
40
41
  export interface SelectRowOptions<T extends As = "div"> extends CompositeRowOptions<T> {
41
42
  /**
42
- * Object returned by the `useSelectStore` hook. If not provided, the parent
43
- * `SelectList` or `SelectPopover` components' context will be used.
43
+ * Object returned by the
44
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
45
+ * not provided, the parent
46
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
47
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components'
48
+ * context will be used.
44
49
  */
45
50
  store?: SelectStore;
46
51
  }
@@ -21,22 +21,27 @@ export declare const useSelectSeparator: import("../utils/types.js").Hook<Select
21
21
  * Renders a separator element for select items.
22
22
  * @see https://ariakit.org/components/select
23
23
  * @example
24
- * ```jsx
25
- * const select = useSelectStore();
26
- * <Select store={select} />
27
- * <SelectPopover store={select}>
28
- * <SelectItem value="Item 1" />
29
- * <SelectSeparator />
30
- * <SelectItem value="Item 2" />
31
- * <SelectItem value="Item 3" />
32
- * </SelectPopover>
24
+ * ```jsx {5}
25
+ * <SelectProvider>
26
+ * <Select />
27
+ * <SelectPopover>
28
+ * <SelectItem value="Item 1" />
29
+ * <SelectSeparator />
30
+ * <SelectItem value="Item 2" />
31
+ * <SelectItem value="Item 3" />
32
+ * </SelectPopover>
33
+ * </SelectProvider>
33
34
  * ```
34
35
  */
35
36
  export declare const SelectSeparator: import("../utils/types.js").Component<SelectSeparatorOptions<"hr">>;
36
37
  export interface SelectSeparatorOptions<T extends As = "hr"> extends CompositeSeparatorOptions<T> {
37
38
  /**
38
- * Object returned by the `useSelectStore` hook. If not provided, the parent
39
- * `SelectList` or `SelectPopover` components' context will be used.
39
+ * Object returned by the
40
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
41
+ * not provided, the parent
42
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
43
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components'
44
+ * context will be used.
40
45
  */
41
46
  store?: SelectStore;
42
47
  }
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _DMTOMUIMcjs = require('../__chunks/DMTOMUIM.cjs');
4
+ var _QBOBT66Ycjs = require('../__chunks/QBOBT66Y.cjs');
5
5
  require('../__chunks/ZBG4TGVL.cjs');
6
- require('../__chunks/FWCQCCG3.cjs');
7
- require('../__chunks/GCTYF2Y6.cjs');
6
+ require('../__chunks/232HWSNY.cjs');
7
+ require('../__chunks/76UBACFC.cjs');
8
8
  require('../__chunks/H7R5D2FR.cjs');
9
9
  require('../__chunks/NHZBX2RS.cjs');
10
10
  require('../__chunks/AKOG5S2T.cjs');
11
11
  require('../__chunks/W6ZRSMO5.cjs');
12
12
  require('../__chunks/A2NMYLCG.cjs');
13
13
  require('../__chunks/Z5PUIG6A.cjs');
14
- require('../__chunks/E4C2KZA5.cjs');
15
- require('../__chunks/NATUYKIW.cjs');
16
- require('../__chunks/3ULNMLN7.cjs');
17
- require('../__chunks/I63PYP2U.cjs');
14
+ require('../__chunks/O6SYRTZH.cjs');
15
+ require('../__chunks/ZZZ5MQHA.cjs');
16
+ require('../__chunks/HSOKUBYY.cjs');
17
+ require('../__chunks/EVNF7KMT.cjs');
18
18
  require('../__chunks/5WLTMVVQ.cjs');
19
19
  require('../__chunks/7WUTS26Y.cjs');
20
20
  require('../__chunks/72I2GWXF.cjs');
21
21
 
22
22
 
23
23
 
24
- exports.useSelectStore = _DMTOMUIMcjs.useSelectStore; exports.useSelectStoreProps = _DMTOMUIMcjs.useSelectStoreProps;
24
+ exports.useSelectStore = _QBOBT66Ycjs.useSelectStore; exports.useSelectStoreProps = _QBOBT66Ycjs.useSelectStoreProps;
@@ -40,10 +40,6 @@ export interface SelectStoreOptions<T extends Value = Value> extends Core.Select
40
40
  /**
41
41
  * Function that will be called when the `value` state changes.
42
42
  * @param value The new value.
43
- * @example
44
- * function MySelect({ value, onChange }) {
45
- * const select = useSelectStore({ value, setValue: onChange });
46
- * }
47
43
  */
48
44
  setValue?: BivariantCallback<(value: SelectStoreState<T>["value"]) => void>;
49
45
  /**
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _2VQBXUAIcjs = require('../__chunks/2VQBXUAI.cjs');
4
- require('../__chunks/LCKU3TYW.cjs');
5
- require('../__chunks/JNVNPB37.cjs');
3
+ var _YLOTLD6Scjs = require('../__chunks/YLOTLD6S.cjs');
4
+ require('../__chunks/35G5ZXPH.cjs');
5
+ require('../__chunks/VGU6RMHO.cjs');
6
6
  require('../__chunks/XH2CZ7VF.cjs');
7
- require('../__chunks/ZQTMT453.cjs');
7
+ require('../__chunks/EZKYHQVF.cjs');
8
8
 
9
9
 
10
10
  var _FTX6TAJCcjs = require('../__chunks/FTX6TAJC.cjs');
@@ -16,14 +16,14 @@ var _DC66R2NYcjs = require('../__chunks/DC66R2NY.cjs');
16
16
 
17
17
 
18
18
  var _I2EPCLS6cjs = require('../__chunks/I2EPCLS6.cjs');
19
- require('../__chunks/NPDPNCSD.cjs');
19
+ require('../__chunks/HWZH54NB.cjs');
20
20
  require('../__chunks/KLZID3QO.cjs');
21
21
  require('../__chunks/H7R5D2FR.cjs');
22
22
  require('../__chunks/NHZBX2RS.cjs');
23
23
  require('../__chunks/AKOG5S2T.cjs');
24
24
  require('../__chunks/W6ZRSMO5.cjs');
25
25
  require('../__chunks/A2NMYLCG.cjs');
26
- require('../__chunks/BFLDQF3L.cjs');
26
+ require('../__chunks/GQAB4M3B.cjs');
27
27
  require('../__chunks/LHHW5ZQP.cjs');
28
28
 
29
29
 
@@ -272,7 +272,7 @@ var useSelect = _Z5PUIG6Acjs.createHook.call(void 0,
272
272
  onKeyDown,
273
273
  onMouseDown
274
274
  });
275
- props = _2VQBXUAIcjs.usePopoverDisclosure.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, toggleOnClick }, props));
275
+ props = _YLOTLD6Scjs.usePopoverDisclosure.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, toggleOnClick }, props));
276
276
  props = _DC66R2NYcjs.useCompositeTypeahead.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props));
277
277
  return props;
278
278
  }
@@ -19,44 +19,66 @@ export declare const useSelect: import("../utils/types.js").Hook<SelectOptions<"
19
19
  * Renders a select button.
20
20
  * @see https://ariakit.org/components/select
21
21
  * @example
22
- * ```jsx
23
- * const select = useSelectStore();
24
- * <Select store={select} />
25
- * <SelectPopover store={select}>
26
- * <SelectItem value="Apple" />
27
- * <SelectItem value="Orange" />
28
- * </SelectPopover>
22
+ * ```jsx {2}
23
+ * <SelectProvider>
24
+ * <Select />
25
+ * <SelectPopover>
26
+ * <SelectItem value="Apple" />
27
+ * <SelectItem value="Orange" />
28
+ * </SelectPopover>
29
+ * </SelectProvider>
29
30
  * ```
30
31
  */
31
32
  export declare const Select: import("../utils/types.js").Component<SelectOptions<"button">>;
32
33
  export interface SelectOptions<T extends As = "button"> extends PopoverDisclosureOptions<T>, CompositeTypeaheadOptions<T>, Pick<SelectHTMLAttributes<HTMLSelectElement>, "name" | "form" | "required"> {
33
34
  /**
34
- * Object returned by the `useSelectStore` hook.
35
+ * Object returned by the
36
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
37
+ * not provided, the closest
38
+ * [`SelectProvider`](https://ariakit.org/reference/select-provider)
39
+ * component's context will be used.
35
40
  */
36
41
  store?: SelectStore;
37
42
  /**
38
- * Determines whether the select list will be shown when the user presses
39
- * arrow keys while the select element is focused.
43
+ * Determines whether the
44
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
45
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components
46
+ * will be shown when the user presses arrow keys while the select element is
47
+ * focused.
48
+ *
49
+ * Live examples:
50
+ * - [Select grid](https://ariakit.org/examples/select-grid)
40
51
  * @default true
41
52
  */
42
53
  showOnKeyDown?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
43
54
  /**
44
- * Determines whether pressing arrow keys will move the active item even
45
- * when the select list is hidden.
55
+ * Determines whether pressing arrow keys will move the active item even when
56
+ * the [`SelectList`](https://ariakit.org/reference/select-list) or
57
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components
58
+ * is hidden.
46
59
  * @default false
47
60
  */
48
61
  moveOnKeyDown?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
49
62
  /**
50
- * Determines whether `store.toggle()` will be called on click. By default,
51
- * the select list will be shown on press (on mouse down and on key down).
52
- * If this prop is set to `true`, the select list will be shown on click
53
- * instead.
63
+ * Determines whether
64
+ * [`toggle`](https://ariakit.org/reference/use-select-store#toggle) will be
65
+ * called on click. By default, the
66
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
67
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components
68
+ * will be shown on press (on mouse down and on key down). If this prop is set
69
+ * to `true`, the [`SelectList`](https://ariakit.org/reference/select-list) or
70
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components
71
+ * will be shown on click instead.
54
72
  * @default false
55
73
  */
56
74
  toggleOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
57
75
  /**
58
76
  * Determines whether pressing space, enter or mouse down will toggle the
59
- * select list. This will be ignored if `toggleOnClick` is set to `true`.
77
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
78
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components.
79
+ * This prop will be ignored if
80
+ * [`toggleOnClick`](https://ariakit.org/reference/select#toggleonclick) is
81
+ * set to `true`.
60
82
  * @default true
61
83
  */
62
84
  toggleOnPress?: BooleanOrCallback<MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>>;
@@ -4,11 +4,11 @@
4
4
  var _HBZJ2UC5cjs = require('../__chunks/HBZJ2UC5.cjs');
5
5
 
6
6
 
7
- var _6G5GJF5Qcjs = require('../__chunks/6G5GJF5Q.cjs');
7
+ var _SELCJFCBcjs = require('../__chunks/SELCJFCB.cjs');
8
8
  require('../__chunks/KLZID3QO.cjs');
9
9
  require('../__chunks/H7R5D2FR.cjs');
10
10
  require('../__chunks/NHZBX2RS.cjs');
11
- require('../__chunks/BFLDQF3L.cjs');
11
+ require('../__chunks/GQAB4M3B.cjs');
12
12
  require('../__chunks/LHHW5ZQP.cjs');
13
13
 
14
14
 
@@ -47,7 +47,7 @@ var useTabList = _Z5PUIG6Acjs.createHook.call(void 0, (_a) => {
47
47
  role: "tablist",
48
48
  "aria-orientation": orientation
49
49
  }, props);
50
- props = _6G5GJF5Qcjs.useComposite.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props));
50
+ props = _SELCJFCBcjs.useComposite.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props));
51
51
  return props;
52
52
  });
53
53
  var TabList = _Z5PUIG6Acjs.createComponent.call(void 0, (props) => {
@@ -21,20 +21,25 @@ export declare const useTabList: import("../utils/types.js").Hook<TabListOptions
21
21
  * Renders a tab list element.
22
22
  * @see https://ariakit.org/components/tab
23
23
  * @example
24
- * ```jsx
25
- * const tab = useTabStore();
26
- * <TabList store={tab}>
27
- * <Tab>Tab 1</Tab>
28
- * <Tab>Tab 2</Tab>
29
- * </TabList>
30
- * <TabPanel store={tab}>Panel 1</TabPanel>
31
- * <TabPanel store={tab}>Panel 2</TabPanel>
24
+ * ```jsx {2-5}
25
+ * <TabProvider>
26
+ * <TabList>
27
+ * <Tab>Tab 1</Tab>
28
+ * <Tab>Tab 2</Tab>
29
+ * </TabList>
30
+ * <TabPanel>Panel 1</TabPanel>
31
+ * <TabPanel>Panel 2</TabPanel>
32
+ * </TabProvider>
32
33
  * ```
33
34
  */
34
35
  export declare const TabList: import("../utils/types.js").Component<TabListOptions<"div">>;
35
36
  export interface TabListOptions<T extends As = "div"> extends CompositeOptions<T> {
36
37
  /**
37
- * Object returned by the `useTabStore` hook.
38
+ * Object returned by the
39
+ * [`useTabStore`](https://ariakit.org/reference/use-tab-store) hook. If not
40
+ * provided, the closest
41
+ * [`TabProvider`](https://ariakit.org/reference/tab-provider) component's
42
+ * context will be used.
38
43
  */
39
44
  store?: TabStore;
40
45
  }