@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,16 +1,16 @@
1
1
  import {
2
2
  PopoverDisclosure,
3
3
  usePopoverDisclosure
4
- } from "../__chunks/MXSIXS3C.js";
5
- import "../__chunks/TQ2YQL6O.js";
6
- import "../__chunks/7AFOF5E7.js";
4
+ } from "../__chunks/HXYXHHNW.js";
5
+ import "../__chunks/5EAW3TWZ.js";
6
+ import "../__chunks/LRDCOOWL.js";
7
7
  import "../__chunks/4FNI7F6H.js";
8
- import "../__chunks/QPWEKAWF.js";
9
- import "../__chunks/LND6SMHN.js";
8
+ import "../__chunks/TONP6TZ5.js";
9
+ import "../__chunks/CAIAWNDV.js";
10
10
  import "../__chunks/547DFODS.js";
11
11
  import "../__chunks/5YYGDU4E.js";
12
12
  import "../__chunks/56KWVYDN.js";
13
- import "../__chunks/M4OAD5XF.js";
13
+ import "../__chunks/YTHH33BK.js";
14
14
  import "../__chunks/BMLNRUFQ.js";
15
15
  import "../__chunks/CFEUKV6C.js";
16
16
  import "../__chunks/J7Q2EO23.js";
@@ -15,21 +15,27 @@ import type { PopoverStore } from "./popover-store.js";
15
15
  */
16
16
  export declare const usePopoverDismiss: import("../utils/types.js").Hook<PopoverDismissOptions<"button">>;
17
17
  /**
18
- * Renders a button that hides a popover.
18
+ * Renders a button that hides a
19
+ * [`Popover`](https://ariakit.org/reference/popover) component when clicked.
19
20
  * @see https://ariakit.org/components/popover
20
21
  * @example
21
22
  * ```jsx
22
- * const popover = usePopoverStore();
23
- * <Popover store={popover}>
24
- * <PopoverDismiss />
25
- * </Popover>
23
+ * <PopoverProvider>
24
+ * <Popover>
25
+ * <PopoverDismiss />
26
+ * </Popover>
27
+ * </PopoverProvider>
26
28
  * ```
27
29
  */
28
30
  export declare const PopoverDismiss: import("../utils/types.js").Component<PopoverDismissOptions<"button">>;
29
31
  export interface PopoverDismissOptions<T extends As = "button"> extends DialogDismissOptions<T> {
30
32
  /**
31
- * Object returned by the `usePopoverStore` hook. If not provided, the parent
32
- * `Popover` component's context will be used.
33
+ * Object returned by the
34
+ * [`usePopoverStore`](https://ariakit.org/reference/use-popover-store) hook.
35
+ * If not provided, the closest
36
+ * [`Popover`](https://ariakit.org/reference/popover) or
37
+ * [`PopoverProvider`](https://ariakit.org/reference/popover-provider)
38
+ * components' context will be used.
33
39
  */
34
40
  store?: PopoverStore;
35
41
  }
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  PopoverDismiss,
3
3
  usePopoverDismiss
4
- } from "../__chunks/4JNX5L5C.js";
5
- import "../__chunks/HMYMEP6U.js";
6
- import "../__chunks/QPWEKAWF.js";
7
- import "../__chunks/LND6SMHN.js";
4
+ } from "../__chunks/WNHMGHG5.js";
5
+ import "../__chunks/3KBWC7LF.js";
6
+ import "../__chunks/TONP6TZ5.js";
7
+ import "../__chunks/CAIAWNDV.js";
8
8
  import "../__chunks/547DFODS.js";
9
9
  import "../__chunks/5YYGDU4E.js";
10
10
  import "../__chunks/56KWVYDN.js";
11
- import "../__chunks/M4OAD5XF.js";
11
+ import "../__chunks/YTHH33BK.js";
12
12
  import "../__chunks/BMLNRUFQ.js";
13
13
  import "../__chunks/CFEUKV6C.js";
14
14
  import "../__chunks/J7Q2EO23.js";
@@ -15,22 +15,28 @@ import type { PopoverStore } from "./popover-store.js";
15
15
  */
16
16
  export declare const usePopoverHeading: import("../utils/types.js").Hook<PopoverHeadingOptions<"h1">>;
17
17
  /**
18
- * Renders a heading in a popover. This component must be wrapped with `Popover`
19
- * so the `aria-labelledby` prop is properly set on the popover element.
18
+ * Renders a heading in a popover. This component must be wrapped with
19
+ * [`Popover`](https://ariakit.org/reference/popover) so the `aria-labelledby`
20
+ * prop is properly set on the popover element.
20
21
  * @see https://ariakit.org/components/popover
21
22
  * @example
22
23
  * ```jsx
23
- * const popover = usePopoverStore();
24
- * <Popover store={popover}>
25
- * <PopoverHeading>Heading</PopoverHeading>
26
- * </Popover>
24
+ * <PopoverProvider>
25
+ * <Popover>
26
+ * <PopoverHeading>Heading</PopoverHeading>
27
+ * </Popover>
28
+ * </PopoverProvider>
27
29
  * ```
28
30
  */
29
31
  export declare const PopoverHeading: import("../utils/types.js").Component<PopoverHeadingOptions<"h1">>;
30
32
  export interface PopoverHeadingOptions<T extends As = "h1"> extends DialogHeadingOptions<T> {
31
33
  /**
32
- * Object returned by the `usePopoverStore` hook. If not provided, the parent
33
- * `Popover` component's context will be used.
34
+ * Object returned by the
35
+ * [`usePopoverStore`](https://ariakit.org/reference/use-popover-store) hook.
36
+ * If not provided, the closest
37
+ * [`Popover`](https://ariakit.org/reference/popover) or
38
+ * [`PopoverProvider`](https://ariakit.org/reference/popover-provider)
39
+ * components' context will be used.
34
40
  */
35
41
  store?: PopoverStore;
36
42
  }
@@ -6,10 +6,10 @@ import "../__chunks/56KWVYDN.js";
6
6
  import "../__chunks/CFEUKV6C.js";
7
7
  import {
8
8
  usePopoverStore
9
- } from "../__chunks/H2BG4QDT.js";
10
- import "../__chunks/UY3UQ4QI.js";
11
- import "../__chunks/A2ONBKVT.js";
12
- import "../__chunks/XXO3VVQU.js";
9
+ } from "../__chunks/QTZ67ALK.js";
10
+ import "../__chunks/IZFXPXHG.js";
11
+ import "../__chunks/OD3JT64N.js";
12
+ import "../__chunks/WHAB4XD6.js";
13
13
  import "../__chunks/J7Q2EO23.js";
14
14
  import "../__chunks/CP3U4HPL.js";
15
15
  import "../__chunks/PNRLI7OV.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  usePopoverStore,
3
3
  usePopoverStoreProps
4
- } from "../__chunks/H2BG4QDT.js";
5
- import "../__chunks/UY3UQ4QI.js";
6
- import "../__chunks/A2ONBKVT.js";
7
- import "../__chunks/XXO3VVQU.js";
4
+ } from "../__chunks/QTZ67ALK.js";
5
+ import "../__chunks/IZFXPXHG.js";
6
+ import "../__chunks/OD3JT64N.js";
7
+ import "../__chunks/WHAB4XD6.js";
8
8
  import "../__chunks/J7Q2EO23.js";
9
9
  import "../__chunks/CP3U4HPL.js";
10
10
  import "../__chunks/PNRLI7OV.js";
@@ -24,16 +24,20 @@ export declare const usePopover: import("../utils/types.js").Hook<PopoverOptions
24
24
  * @see https://ariakit.org/components/popover
25
25
  * @example
26
26
  * ```jsx
27
- * const popover = usePopoverStore();
28
- * <PopoverDisclosure store={popover}>Disclosure</PopoverDisclosure>
29
- * <Popover store={popover}>Popover</Popover>
27
+ * <PopoverProvider>
28
+ * <PopoverDisclosure>Disclosure</PopoverDisclosure>
29
+ * <Popover>Popover</Popover>
30
+ * </PopoverProvider>
30
31
  * ```
31
32
  */
32
33
  export declare const Popover: import("../utils/types.js").Component<PopoverOptions<"div">>;
33
34
  export interface PopoverOptions<T extends As = "div"> extends DialogOptions<T> {
34
35
  /**
35
- * Object returned by the `usePopoverStore` hook.
36
- * @see https://ariakit.org/guide/component-stores
36
+ * Object returned by the
37
+ * [`usePopoverStore`](https://ariakit.org/reference/use-popover-store) hook.
38
+ * If not provided, the closest
39
+ * [`PopoverProvider`](https://ariakit.org/reference/popover-provider)
40
+ * component's context will be used.
37
41
  */
38
42
  store?: PopoverStore;
39
43
  /**
@@ -59,10 +63,10 @@ export interface PopoverOptions<T extends As = "div"> extends DialogOptions<T> {
59
63
  shift?: number;
60
64
  /**
61
65
  * Controls the behavior of the popover when it overflows the viewport:
62
- * - If a `boolean`, specifies whether the popover should flip to the
63
- * opposite side when it overflows.
64
- * - If a `string`, indicates the preferred fallback placements when it
65
- * overflows. The placements must be spaced-delimited, e.g. "top left".
66
+ * - If a `boolean`, specifies whether the popover should flip to the opposite
67
+ * side when it overflows.
68
+ * - If a `string`, indicates the preferred fallback placements when it
69
+ * overflows. The placements must be spaced-delimited, e.g. "top left".
66
70
  * @default true
67
71
  */
68
72
  flip?: boolean | string;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Popover,
3
3
  usePopover
4
- } from "../__chunks/GP4UGJIZ.js";
5
- import "../__chunks/4RP654JS.js";
6
- import "../__chunks/W575AF63.js";
7
- import "../__chunks/PLOINBVB.js";
8
- import "../__chunks/HAVCR65N.js";
4
+ } from "../__chunks/H3CXUGYG.js";
5
+ import "../__chunks/UXIMR4AS.js";
6
+ import "../__chunks/NXB7YL3C.js";
7
+ import "../__chunks/HWJ7DGMR.js";
8
+ import "../__chunks/7LB47D2O.js";
9
9
  import "../__chunks/62DFK33R.js";
10
- import "../__chunks/KGDYSCOM.js";
11
- import "../__chunks/XASENZA4.js";
12
- import "../__chunks/X5VV5CBA.js";
10
+ import "../__chunks/FRKOFFMT.js";
11
+ import "../__chunks/EGOOWJGN.js";
12
+ import "../__chunks/7VWXICM7.js";
13
13
  import "../__chunks/KOVUJERF.js";
14
14
  import "../__chunks/IXXFVVA2.js";
15
- import "../__chunks/5M4ITSXL.js";
15
+ import "../__chunks/VRCYQ6JX.js";
16
16
  import "../__chunks/7JNF6I52.js";
17
17
  import "../__chunks/3LGVTTHD.js";
18
18
  import "../__chunks/FW6QFGFT.js";
@@ -24,16 +24,17 @@ import "../__chunks/QW4PFVNF.js";
24
24
  import "../__chunks/LDDPB3PY.js";
25
25
  import "../__chunks/COQHFAEN.js";
26
26
  import "../__chunks/PGK6S5NC.js";
27
- import "../__chunks/3D7ZB3CS.js";
27
+ import "../__chunks/KK6NPMOP.js";
28
28
  import "../__chunks/547DFODS.js";
29
29
  import "../__chunks/5YYGDU4E.js";
30
30
  import "../__chunks/56KWVYDN.js";
31
- import "../__chunks/M4OAD5XF.js";
31
+ import "../__chunks/YTHH33BK.js";
32
32
  import "../__chunks/BMLNRUFQ.js";
33
33
  import "../__chunks/6XXSNRNX.js";
34
34
  import "../__chunks/CFEUKV6C.js";
35
- import "../__chunks/A2ONBKVT.js";
36
- import "../__chunks/XXO3VVQU.js";
35
+ import "../__chunks/IZFXPXHG.js";
36
+ import "../__chunks/OD3JT64N.js";
37
+ import "../__chunks/WHAB4XD6.js";
37
38
  import "../__chunks/J7Q2EO23.js";
38
39
  import "../__chunks/CP3U4HPL.js";
39
40
  import "../__chunks/PNRLI7OV.js";
@@ -22,8 +22,9 @@ export declare const Portal: import("../utils/types.js").Component<PortalOptions
22
22
  export interface PortalOptions<T extends As = "div"> extends Options<T> {
23
23
  /**
24
24
  * When enabled, `preserveTabOrder` will keep the DOM element's tab order the
25
- * same as the order in which the `Portal` component was mounted in the React
26
- * tree.
25
+ * same as the order in which the underlying
26
+ * [`Portal`](https://ariakit.org/reference/portal) component was mounted in
27
+ * the React tree.
27
28
  * @default false
28
29
  */
29
30
  preserveTabOrder?: boolean;
@@ -32,8 +33,11 @@ export interface PortalOptions<T extends As = "div"> extends Options<T> {
32
33
  * useful when you need to be informed when the portal element is appended to
33
34
  * the DOM or removed from the DOM.
34
35
  * @example
36
+ * ```jsx
35
37
  * const [portalElement, setPortalElement] = useState(null);
36
- * <Portal portalRef={setPortalElement} />;
38
+ *
39
+ * <Portal portalRef={setPortalElement} />
40
+ * ```
37
41
  */
38
42
  portalRef?: RefCallback<HTMLElement> | MutableRefObject<HTMLElement | null>;
39
43
  /**
@@ -47,17 +51,24 @@ export interface PortalOptions<T extends As = "div"> extends Options<T> {
47
51
  * will be a `div` element appended to the `document.body`.
48
52
  * @default HTMLDivElement
49
53
  * @example
54
+ * ```jsx
50
55
  * const [portal, setPortal] = useState(null);
51
- * <Portal portalElement={portal} />;
52
- * <div ref={setPortal} />;
56
+ * <>
57
+ * <Portal portalElement={portal} />
58
+ * <div ref={setPortal} />
59
+ * </>
60
+ * ```
53
61
  * @example
62
+ * ```jsx
54
63
  * const getPortalElement = useCallback(() => {
55
64
  * const div = document.createElement("div");
56
65
  * const portalRoot = document.getElementById("portal-root");
57
66
  * portalRoot.appendChild(div);
58
67
  * return div;
59
68
  * }, []);
60
- * <Portal portalElement={getPortalElement} />;
69
+ *
70
+ * <Portal portalElement={getPortalElement} />
71
+ * ```
61
72
  */
62
73
  portalElement?: ((element: HTMLElement) => HTMLElement | null) | HTMLElement | null;
63
74
  }
@@ -30,7 +30,11 @@ export declare const useRadioGroup: import("../utils/types.js").Hook<RadioGroupO
30
30
  export declare const RadioGroup: import("../utils/types.js").Component<RadioGroupOptions<"div">>;
31
31
  export interface RadioGroupOptions<T extends As = "div"> extends CompositeOptions<T> {
32
32
  /**
33
- * Object returned by the `useRadioStore` hook.
33
+ * Object returned by the
34
+ * [`useRadioStore`](https://ariakit.org/reference/use-radio-store) hook. If
35
+ * not provided, the closest
36
+ * [`RadioProvider`](https://ariakit.org/reference/radio-provider) component's
37
+ * context will be used.
34
38
  */
35
39
  store?: RadioStore;
36
40
  }
@@ -4,11 +4,11 @@ import {
4
4
  } from "../__chunks/NRFPH2ON.js";
5
5
  import {
6
6
  useComposite
7
- } from "../__chunks/HYNMOU7J.js";
7
+ } from "../__chunks/56TAEBRJ.js";
8
8
  import "../__chunks/OXPV2NBK.js";
9
9
  import "../__chunks/5C7J4IAS.js";
10
10
  import "../__chunks/74KKBFVP.js";
11
- import "../__chunks/M4OAD5XF.js";
11
+ import "../__chunks/YTHH33BK.js";
12
12
  import "../__chunks/BMLNRUFQ.js";
13
13
  import {
14
14
  createComponent,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useRadioStore
3
- } from "../__chunks/4WK6LN27.js";
3
+ } from "../__chunks/HUAF5DID.js";
4
4
  import {
5
5
  RadioContextProvider
6
6
  } from "../__chunks/NRFPH2ON.js";
7
- import "../__chunks/WGAKICTY.js";
8
- import "../__chunks/NWDF5QDV.js";
7
+ import "../__chunks/WRZGD4DH.js";
8
+ import "../__chunks/YS46MLTR.js";
9
9
  import "../__chunks/5C7J4IAS.js";
10
10
  import "../__chunks/74KKBFVP.js";
11
11
  import "../__chunks/CFEUKV6C.js";
12
- import "../__chunks/XXO3VVQU.js";
12
+ import "../__chunks/WHAB4XD6.js";
13
13
  import "../__chunks/J7Q2EO23.js";
14
14
  import "../__chunks/CP3U4HPL.js";
15
15
  import "../__chunks/PNRLI7OV.js";
@@ -22,11 +22,6 @@ export interface RadioStoreFunctions extends Core.RadioStoreFunctions, Composite
22
22
  export interface RadioStoreOptions extends Core.RadioStoreOptions, CompositeStoreOptions {
23
23
  /**
24
24
  * Function that will be called when the `value` state changes.
25
- * @param value The new value.
26
- * @example
27
- * function RadioGroup({ value, onChange }) {
28
- * const radio = useRadioStore({ value, setValue: onChange });
29
- * }
30
25
  */
31
26
  setValue?: (value: RadioStoreState["value"]) => void;
32
27
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  useRadioStore,
3
3
  useRadioStoreProps
4
- } from "../__chunks/4WK6LN27.js";
5
- import "../__chunks/WGAKICTY.js";
6
- import "../__chunks/NWDF5QDV.js";
7
- import "../__chunks/XXO3VVQU.js";
4
+ } from "../__chunks/HUAF5DID.js";
5
+ import "../__chunks/WRZGD4DH.js";
6
+ import "../__chunks/YS46MLTR.js";
7
+ import "../__chunks/WHAB4XD6.js";
8
8
  import "../__chunks/J7Q2EO23.js";
9
9
  import "../__chunks/CP3U4HPL.js";
10
10
  import "../__chunks/PNRLI7OV.js";
@@ -32,8 +32,12 @@ export declare const useRadio: import("../utils/types.js").Hook<RadioOptions<"in
32
32
  export declare const Radio: import("../utils/types.js").Component<RadioOptions<"input">>;
33
33
  export interface RadioOptions<T extends As = "input"> extends CompositeItemOptions<T> {
34
34
  /**
35
- * Object returned by the `useRadioStore` hook. If not provided, the parent
36
- * `RadioGroup` component's context will be used.
35
+ * Object returned by the
36
+ * [`useRadioStore`](https://ariakit.org/reference/use-radio-store) hook. If
37
+ * not provided, the closest
38
+ * [`RadioGroup`](https://ariakit.org/reference/radio-group) or
39
+ * [`RadioProvider`](https://ariakit.org/reference/radio-provider) components'
40
+ * context will be used.
37
41
  */
38
42
  store?: RadioStore;
39
43
  /**
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Radio,
3
3
  useRadio
4
- } from "../__chunks/R4FKKQYI.js";
4
+ } from "../__chunks/DE62M4L2.js";
5
5
  import "../__chunks/NRFPH2ON.js";
6
- import "../__chunks/72OJKUSZ.js";
7
- import "../__chunks/LND6SMHN.js";
6
+ import "../__chunks/IQXVWBXC.js";
7
+ import "../__chunks/CAIAWNDV.js";
8
8
  import "../__chunks/XIA3HAXM.js";
9
9
  import "../__chunks/OXPV2NBK.js";
10
10
  import "../__chunks/5C7J4IAS.js";
11
11
  import "../__chunks/74KKBFVP.js";
12
- import "../__chunks/M4OAD5XF.js";
12
+ import "../__chunks/YTHH33BK.js";
13
13
  import "../__chunks/BMLNRUFQ.js";
14
14
  import "../__chunks/CFEUKV6C.js";
15
- import "../__chunks/XXO3VVQU.js";
15
+ import "../__chunks/WHAB4XD6.js";
16
16
  import "../__chunks/J7Q2EO23.js";
17
17
  import "../__chunks/CP3U4HPL.js";
18
18
  import "../__chunks/PNRLI7OV.js";
@@ -21,26 +21,31 @@ import type { SelectStore } from "./select-store.js";
21
21
  export declare const useSelectArrow: import("../utils/types.js").Hook<SelectArrowOptions<"span">>;
22
22
  /**
23
23
  * Renders an arrow pointing to the select popover position. It's usually
24
- * rendered inside the `Select` component.
24
+ * rendered inside the [`Select`](https://ariakit.org/reference/select)
25
+ * component.
25
26
  * @see https://ariakit.org/components/select
26
27
  * @example
27
- * ```jsx
28
- * const select = useSelectStore();
29
- * <Select store={select}>
30
- * {select.value}
31
- * <SelectArrow />
32
- * </Select>
33
- * <SelectPopover store={select}>
34
- * <SelectItem value="Apple" />
35
- * <SelectItem value="Orange" />
36
- * </SelectPopover>
28
+ * ```jsx {4}
29
+ * <SelectProvider>
30
+ * <Select>
31
+ * {select.value}
32
+ * <SelectArrow />
33
+ * </Select>
34
+ * <SelectPopover>
35
+ * <SelectItem value="Apple" />
36
+ * <SelectItem value="Orange" />
37
+ * </SelectPopover>
38
+ * </SelectProvider>
37
39
  * ```
38
40
  */
39
41
  export declare const SelectArrow: import("../utils/types.js").Component<SelectArrowOptions<"span">>;
40
42
  export interface SelectArrowOptions<T extends As = "span"> extends PopoverDisclosureArrowOptions<T> {
41
43
  /**
42
- * Object returned by the `useSelectStore` hook. If not provided, the parent
43
- * `Select` component's context will be used.
44
+ * Object returned by the
45
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
46
+ * not provided, the closest [`Select`](https://ariakit.org/reference/select)
47
+ * or [`SelectProvider`](https://ariakit.org/reference/select-provider)
48
+ * components' context will be used.
44
49
  */
45
50
  store?: SelectStore;
46
51
  }
@@ -20,28 +20,33 @@ export declare const useSelectGroupLabel: import("../utils/types.js").Hook<Selec
20
20
  * group element.
21
21
  * @see https://ariakit.org/components/select
22
22
  * @example
23
- * ```jsx
24
- * const select = useSelectStore();
25
- * <Select store={select} />
26
- * <SelectPopover store={select}>
27
- * <SelectGroup>
28
- * <SelectGroupLabel>Fruits</SelectGroupLabel>
29
- * <SelectItem value="Apple" />
30
- * <SelectItem value="Orange" />
31
- * </SelectGroup>
32
- * <SelectGroup>
33
- * <SelectGroupLabel>Meat</SelectGroupLabel>
34
- * <SelectItem value="Beef" />
35
- * <SelectItem value="Chicken" />
36
- * </SelectGroup>
37
- * </SelectPopover>
23
+ * ```jsx {5,10}
24
+ * <SelectProvider>
25
+ * <Select />
26
+ * <SelectPopover>
27
+ * <SelectGroup>
28
+ * <SelectGroupLabel>Fruits</SelectGroupLabel>
29
+ * <SelectItem value="Apple" />
30
+ * <SelectItem value="Orange" />
31
+ * </SelectGroup>
32
+ * <SelectGroup>
33
+ * <SelectGroupLabel>Meat</SelectGroupLabel>
34
+ * <SelectItem value="Beef" />
35
+ * <SelectItem value="Chicken" />
36
+ * </SelectGroup>
37
+ * </SelectPopover>
38
+ * </SelectProvider>
38
39
  * ```
39
40
  */
40
41
  export declare const SelectGroupLabel: import("../utils/types.js").Component<SelectGroupLabelOptions<"div">>;
41
42
  export interface SelectGroupLabelOptions<T extends As = "div"> extends CompositeGroupLabelOptions<T> {
42
43
  /**
43
- * Object returned by the `useSelectStore` hook. If not provided, the parent
44
- * `SelectList` or `SelectPopover` components' context will be used.
44
+ * Object returned by the
45
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
46
+ * not provided, the parent
47
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
48
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components'
49
+ * context will be used.
45
50
  */
46
51
  store?: SelectStore;
47
52
  }
@@ -23,23 +23,28 @@ export declare const useSelectGroup: import("../utils/types.js").Hook<SelectGrou
23
23
  * Renders a select group.
24
24
  * @see https://ariakit.org/components/select
25
25
  * @example
26
- * ```jsx
27
- * const select = useSelectStore();
28
- * <Select store={select} />
29
- * <SelectPopover store={select}>
30
- * <SelectGroup>
31
- * <SelectGroupLabel>Fruits</SelectGroupLabel>
32
- * <SelectItem value="Apple" />
33
- * <SelectItem value="Orange" />
34
- * </SelectGroup>
35
- * </SelectPopover>
26
+ * ```jsx {4-8}
27
+ * <SelectProvider>
28
+ * <Select />
29
+ * <SelectPopover>
30
+ * <SelectGroup>
31
+ * <SelectGroupLabel>Fruits</SelectGroupLabel>
32
+ * <SelectItem value="Apple" />
33
+ * <SelectItem value="Orange" />
34
+ * </SelectGroup>
35
+ * </SelectPopover>
36
+ * </SelectProvider>
36
37
  * ```
37
38
  */
38
39
  export declare const SelectGroup: import("../utils/types.js").Component<SelectGroupOptions<"div">>;
39
40
  export interface SelectGroupOptions<T extends As = "div"> extends CompositeGroupOptions<T> {
40
41
  /**
41
- * Object returned by the `useSelectStore` hook. If not provided, the parent
42
- * `SelectList` or `SelectPopover` components' context will be used.
42
+ * Object returned by the
43
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
44
+ * not provided, the parent
45
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
46
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components'
47
+ * context will be used.
43
48
  */
44
49
  store?: SelectStore;
45
50
  }
@@ -19,32 +19,38 @@ export declare const useSelectItemCheck: import("../utils/types.js").Hook<Select
19
19
  * the component.
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
- * <SelectItemCheck />
28
- * Apple
29
- * </SelectItem>
30
- * <SelectItem value="Orange">
31
- * <SelectItemCheck />
32
- * Orange
33
- * </SelectItem>
34
- * </SelectPopover>
22
+ * ```jsx {5,9}
23
+ * <SelectProvider>
24
+ * <Select />
25
+ * <SelectPopover>
26
+ * <SelectItem value="Apple">
27
+ * <SelectItemCheck />
28
+ * Apple
29
+ * </SelectItem>
30
+ * <SelectItem value="Orange">
31
+ * <SelectItemCheck />
32
+ * Orange
33
+ * </SelectItem>
34
+ * </SelectPopover>
35
+ * </SelectProvider>
35
36
  * ```
36
37
  */
37
38
  export declare const SelectItemCheck: import("../utils/types.js").Component<SelectItemCheckOptions<"span">>;
38
39
  export interface SelectItemCheckOptions<T extends As = "span"> extends CheckboxCheckOptions<T> {
39
40
  /**
40
- * Object returned by the `useSelectStore` hook. If not provided, the parent
41
- * `SelectList` or `SelectPopover` components' context will be used.
41
+ * Object returned by the
42
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
43
+ * not provided, the parent
44
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
45
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components'
46
+ * context will be used.
42
47
  */
43
48
  store?: SelectStore;
44
49
  /**
45
50
  * Whether the check mark should be shown. This value is automatically
46
- * inferred from the parent `SelectItem` component. Manually setting this prop
47
- * will override the inferred value.
51
+ * inferred from the parent
52
+ * [`SelectItem`](https://ariakit.org/reference/select-item) component.
53
+ * Manually setting this prop will override the inferred value.
48
54
  */
49
55
  checked?: boolean;
50
56
  }