@ariakit/react-core 0.3.2 → 0.3.3

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 (403) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/cjs/__chunks/{ZPTFLDSU.cjs → 2FBFVNEX.cjs} +7 -7
  3. package/cjs/__chunks/{OX7M6AXH.cjs → 2U6ETSVZ.cjs} +2 -2
  4. package/cjs/__chunks/{7F6H5HXC.cjs → 32BSJR36.cjs} +2 -2
  5. package/cjs/__chunks/{NATUYKIW.cjs → 3MYGLY4O.cjs} +4 -4
  6. package/cjs/__chunks/{HCQYEOCO.cjs → 45OYD4CU.cjs} +4 -4
  7. package/cjs/__chunks/{BPPAZUXP.cjs → 4WUYORFX.cjs} +2 -2
  8. package/cjs/__chunks/{4HKELPDA.cjs → 64S5KX7F.cjs} +6 -6
  9. package/cjs/__chunks/{EQEXTQQ6.cjs → 6G334OGZ.cjs} +5 -5
  10. package/cjs/__chunks/{V37GXOUJ.cjs → BMAPXRQV.cjs} +4 -4
  11. package/cjs/__chunks/{HYYXXXEK.cjs → BSOHJE7R.cjs} +2 -2
  12. package/cjs/__chunks/{INDMFBTS.cjs → COHI5HTS.cjs} +17 -16
  13. package/cjs/__chunks/{G33PRHOG.cjs → D3SPQ2OY.cjs} +10 -10
  14. package/cjs/__chunks/{DPLHWKRP.cjs → DFFFHQVQ.cjs} +3 -3
  15. package/cjs/__chunks/{NBCR3CLP.cjs → F4RJLWZG.cjs} +3 -3
  16. package/cjs/__chunks/{NPDPNCSD.cjs → FXRXBA2Y.cjs} +2 -2
  17. package/cjs/__chunks/{2C7LUQOS.cjs → G2U3D7Y6.cjs} +2 -2
  18. package/cjs/__chunks/{GBOZYA5C.cjs → H562FOJ4.cjs} +4 -4
  19. package/cjs/__chunks/{X3UARAKT.cjs → HADU3YYR.cjs} +2 -2
  20. package/cjs/__chunks/{6UXB6PRK.cjs → HIGZ476M.cjs} +7 -7
  21. package/cjs/__chunks/{3ULNMLN7.cjs → HRUFFILM.cjs} +5 -5
  22. package/cjs/__chunks/{2VQBXUAI.cjs → IK6X277S.cjs} +2 -2
  23. package/cjs/__chunks/{DMTOMUIM.cjs → J72SOT4S.cjs} +8 -7
  24. package/cjs/__chunks/{FWCQCCG3.cjs → JDIVO6OK.cjs} +12 -12
  25. package/cjs/__chunks/{LJBXMHCD.cjs → JQKZHT3K.cjs} +6 -6
  26. package/cjs/__chunks/{GCTYF2Y6.cjs → K5M7LOPE.cjs} +3 -3
  27. package/cjs/__chunks/{ZQTMT453.cjs → KMOIJMBF.cjs} +2 -2
  28. package/cjs/__chunks/{ZJ4ICN62.cjs → L4TB7MRW.cjs} +4 -4
  29. package/cjs/__chunks/{WBPFHFAX.cjs → LQZ6USCZ.cjs} +2 -2
  30. package/cjs/__chunks/{4ULJINEP.cjs → MITXZOVW.cjs} +8 -8
  31. package/cjs/__chunks/{B3TGB2C3.cjs → NPP6EMNE.cjs} +7 -7
  32. package/cjs/__chunks/{SKVJLFWS.cjs → O7UGQ5NR.cjs} +7 -7
  33. package/cjs/__chunks/{HDYD5S2P.cjs → ORDLD4QX.cjs} +3 -3
  34. package/cjs/__chunks/{QEG5AJH6.cjs → PQU457XU.cjs} +49 -23
  35. package/cjs/__chunks/{JKMBJCXA.cjs → QK4GI6B3.cjs} +7 -12
  36. package/cjs/__chunks/{HFISYIKE.cjs → RSJXW4HU.cjs} +7 -7
  37. package/cjs/__chunks/{6BAHKJ5K.cjs → RWS2MAR2.cjs} +0 -7
  38. package/cjs/__chunks/{JNVNPB37.cjs → RXP7Z4XR.cjs} +2 -2
  39. package/cjs/__chunks/{6G5GJF5Q.cjs → SELCJFCB.cjs} +2 -2
  40. package/cjs/__chunks/TLA46MN6.cjs +79 -0
  41. package/cjs/__chunks/{I63PYP2U.cjs → UHRHLHM2.cjs} +4 -3
  42. package/cjs/__chunks/{LCKU3TYW.cjs → VI6T32XI.cjs} +12 -2
  43. package/cjs/__chunks/{XOHN6PER.cjs → WUQKDMC4.cjs} +2 -2
  44. package/cjs/__chunks/{J77SNKFZ.cjs → Y66YQJ4L.cjs} +4 -4
  45. package/cjs/__chunks/{E4C2KZA5.cjs → Z6EBOLR5.cjs} +5 -5
  46. package/cjs/__chunks/{27A4YAUB.cjs → ZA36X7UQ.cjs} +4 -4
  47. package/cjs/__chunks/{DNFCOHE4.cjs → ZKEGT5BQ.cjs} +2 -2
  48. package/cjs/__chunks/{2FEEKOTF.cjs → ZL7HIJU2.cjs} +2 -2
  49. package/cjs/__chunks/{S4UMINQJ.cjs → ZZHSM37C.cjs} +2 -2
  50. package/cjs/button/button.cjs +4 -4
  51. package/cjs/checkbox/checkbox-provider.cjs +3 -3
  52. package/cjs/checkbox/checkbox-store.cjs +3 -3
  53. package/cjs/checkbox/checkbox.cjs +5 -5
  54. package/cjs/collection/collection-provider.cjs +3 -3
  55. package/cjs/collection/collection-renderer.cjs +3 -3
  56. package/cjs/collection/collection-store.cjs +3 -3
  57. package/cjs/combobox/combobox-cancel.cjs +4 -4
  58. package/cjs/combobox/combobox-disclosure.cjs +6 -6
  59. package/cjs/combobox/combobox-item.cjs +5 -5
  60. package/cjs/combobox/combobox-list.cjs +3 -3
  61. package/cjs/combobox/combobox-popover.cjs +15 -15
  62. package/cjs/combobox/combobox-provider.cjs +8 -8
  63. package/cjs/combobox/combobox-store.cjs +8 -8
  64. package/cjs/combobox/combobox.cjs +3 -3
  65. package/cjs/command/command.cjs +3 -3
  66. package/cjs/composite/composite-container.cjs +3 -3
  67. package/cjs/composite/composite-item.cjs +5 -5
  68. package/cjs/composite/composite-overflow-disclosure.cjs +10 -10
  69. package/cjs/composite/composite-overflow-store.cjs +6 -6
  70. package/cjs/composite/composite-overflow.cjs +13 -13
  71. package/cjs/composite/composite-provider.cjs +4 -4
  72. package/cjs/composite/composite-renderer.cjs +4 -4
  73. package/cjs/composite/composite-store.cjs +4 -4
  74. package/cjs/composite/composite-typeahead.d.ts +0 -4
  75. package/cjs/composite/composite.cjs +3 -3
  76. package/cjs/dialog/dialog-backdrop.cjs +6 -6
  77. package/cjs/dialog/dialog-disclosure.cjs +6 -6
  78. package/cjs/dialog/dialog-dismiss.cjs +5 -5
  79. package/cjs/dialog/dialog-provider.cjs +4 -4
  80. package/cjs/dialog/dialog-store.cjs +4 -4
  81. package/cjs/dialog/dialog.cjs +12 -12
  82. package/cjs/dialog/dialog.d.ts +25 -11
  83. package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +3 -3
  84. package/cjs/dialog/utils/disable-accessibility-tree-outside.d.ts +1 -1
  85. package/cjs/dialog/utils/disable-tree.cjs +14 -0
  86. package/cjs/dialog/utils/disable-tree.d.ts +5 -0
  87. package/cjs/dialog/utils/mark-tree-outside.cjs +3 -3
  88. package/cjs/dialog/utils/mark-tree-outside.d.ts +1 -1
  89. package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +4 -4
  90. package/cjs/dialog/utils/use-nested-dialogs.cjs +2 -2
  91. package/cjs/dialog/utils/walk-tree-outside.cjs +5 -2
  92. package/cjs/dialog/utils/walk-tree-outside.d.ts +3 -2
  93. package/cjs/disclosure/disclosure-provider.cjs +3 -3
  94. package/cjs/disclosure/disclosure-store.cjs +3 -3
  95. package/cjs/disclosure/disclosure.cjs +5 -5
  96. package/cjs/focusable/focusable.cjs +2 -2
  97. package/cjs/form/form-checkbox.cjs +7 -7
  98. package/cjs/form/form-input.cjs +2 -2
  99. package/cjs/form/form-provider.cjs +4 -4
  100. package/cjs/form/form-push.cjs +4 -4
  101. package/cjs/form/form-radio.cjs +6 -6
  102. package/cjs/form/form-remove.cjs +4 -4
  103. package/cjs/form/form-reset.cjs +4 -4
  104. package/cjs/form/form-store.cjs +4 -4
  105. package/cjs/form/form-submit.cjs +4 -4
  106. package/cjs/hovercard/hovercard-anchor.cjs +3 -3
  107. package/cjs/hovercard/hovercard-disclosure.cjs +6 -6
  108. package/cjs/hovercard/hovercard-dismiss.cjs +7 -7
  109. package/cjs/hovercard/hovercard-provider.cjs +6 -6
  110. package/cjs/hovercard/hovercard-store.cjs +6 -6
  111. package/cjs/hovercard/hovercard.cjs +14 -14
  112. package/cjs/menu/menu-arrow.d.ts +11 -7
  113. package/cjs/menu/menu-bar-provider.cjs +5 -5
  114. package/cjs/menu/menu-bar-store.cjs +5 -5
  115. package/cjs/menu/menu-bar.cjs +3 -3
  116. package/cjs/menu/menu-bar.d.ts +23 -22
  117. package/cjs/menu/menu-button-arrow.d.ts +16 -11
  118. package/cjs/menu/menu-button.cjs +11 -11
  119. package/cjs/menu/menu-button.d.ts +19 -11
  120. package/cjs/menu/menu-description.d.ts +13 -8
  121. package/cjs/menu/menu-dismiss.cjs +7 -7
  122. package/cjs/menu/menu-dismiss.d.ts +10 -6
  123. package/cjs/menu/menu-group-label.d.ts +15 -10
  124. package/cjs/menu/menu-group.d.ts +15 -10
  125. package/cjs/menu/menu-heading.d.ts +10 -6
  126. package/cjs/menu/menu-item-check.d.ts +15 -15
  127. package/cjs/menu/menu-item-checkbox.cjs +10 -10
  128. package/cjs/menu/menu-item-checkbox.d.ts +13 -8
  129. package/cjs/menu/menu-item-radio.cjs +8 -8
  130. package/cjs/menu/menu-item-radio.d.ts +18 -13
  131. package/cjs/menu/menu-item.cjs +6 -6
  132. package/cjs/menu/menu-item.d.ts +16 -9
  133. package/cjs/menu/menu-list.cjs +5 -5
  134. package/cjs/menu/menu-list.d.ts +12 -7
  135. package/cjs/menu/menu-provider.cjs +9 -9
  136. package/cjs/menu/menu-separator.d.ts +14 -10
  137. package/cjs/menu/menu-store.cjs +9 -9
  138. package/cjs/menu/menu-store.d.ts +9 -9
  139. package/cjs/menu/menu.cjs +34 -46
  140. package/cjs/menu/menu.d.ts +7 -6
  141. package/cjs/popover/popover-anchor.d.ts +9 -4
  142. package/cjs/popover/popover-arrow.d.ts +14 -8
  143. package/cjs/popover/popover-description.d.ts +13 -8
  144. package/cjs/popover/popover-disclosure-arrow.d.ts +18 -10
  145. package/cjs/popover/popover-disclosure.cjs +7 -7
  146. package/cjs/popover/popover-disclosure.d.ts +4 -3
  147. package/cjs/popover/popover-dismiss.cjs +6 -6
  148. package/cjs/popover/popover-dismiss.d.ts +13 -7
  149. package/cjs/popover/popover-heading.d.ts +14 -8
  150. package/cjs/popover/popover-provider.cjs +5 -5
  151. package/cjs/popover/popover-store.cjs +5 -5
  152. package/cjs/popover/popover.cjs +13 -13
  153. package/cjs/popover/popover.d.ts +13 -9
  154. package/cjs/portal/portal.d.ts +17 -6
  155. package/cjs/radio/radio-group.cjs +3 -3
  156. package/cjs/radio/radio-group.d.ts +5 -1
  157. package/cjs/radio/radio-provider.cjs +5 -5
  158. package/cjs/radio/radio-store.cjs +5 -5
  159. package/cjs/radio/radio-store.d.ts +0 -5
  160. package/cjs/radio/radio.cjs +6 -6
  161. package/cjs/radio/radio.d.ts +6 -2
  162. package/cjs/select/select-arrow.d.ts +17 -12
  163. package/cjs/select/select-group-label.d.ts +21 -16
  164. package/cjs/select/select-group.d.ts +16 -11
  165. package/cjs/select/select-item-check.d.ts +22 -16
  166. package/cjs/select/select-item.cjs +5 -5
  167. package/cjs/select/select-item.d.ts +51 -24
  168. package/cjs/select/select-label.d.ts +18 -14
  169. package/cjs/select/select-list.cjs +4 -4
  170. package/cjs/select/select-list.d.ts +26 -16
  171. package/cjs/select/select-popover.cjs +16 -16
  172. package/cjs/select/select-popover.d.ts +11 -10
  173. package/cjs/select/select-provider.cjs +8 -8
  174. package/cjs/select/select-renderer.cjs +7 -7
  175. package/cjs/select/select-row.d.ts +20 -15
  176. package/cjs/select/select-separator.d.ts +16 -11
  177. package/cjs/select/select-store.cjs +8 -8
  178. package/cjs/select/select-store.d.ts +0 -4
  179. package/cjs/select/select.cjs +7 -7
  180. package/cjs/select/select.d.ts +39 -17
  181. package/cjs/tab/tab-list.cjs +3 -3
  182. package/cjs/tab/tab-panel.cjs +5 -5
  183. package/cjs/tab/tab-provider.cjs +5 -5
  184. package/cjs/tab/tab-store.cjs +5 -5
  185. package/cjs/tab/tab.cjs +5 -5
  186. package/cjs/toolbar/toolbar-container.cjs +8 -8
  187. package/cjs/toolbar/toolbar-input.cjs +6 -6
  188. package/cjs/toolbar/toolbar-item.cjs +6 -6
  189. package/cjs/toolbar/toolbar-provider.cjs +5 -5
  190. package/cjs/toolbar/toolbar-store.cjs +5 -5
  191. package/cjs/toolbar/toolbar.cjs +8 -8
  192. package/cjs/tooltip/tooltip-anchor.cjs +3 -3
  193. package/cjs/tooltip/tooltip-provider.cjs +7 -7
  194. package/cjs/tooltip/tooltip-store.cjs +7 -7
  195. package/cjs/tooltip/tooltip.cjs +14 -14
  196. package/cjs/tsconfig.build.tsbuildinfo +1 -1
  197. package/cjs/utils/store.cjs +2 -2
  198. package/dialog/utils/disable-tree/package.json +8 -0
  199. package/esm/__chunks/{EKIHOHWR.js → 26JVBZKI.js} +2 -2
  200. package/esm/__chunks/{3HFOFZP4.js → 2EIZAZYB.js} +1 -1
  201. package/esm/__chunks/{TQ2YQL6O.js → 3HY5ZQT3.js} +11 -1
  202. package/esm/__chunks/{FBTQUSIH.js → 3T4UFIWO.js} +2 -2
  203. package/esm/__chunks/{XXO3VVQU.js → 4LP74VAP.js} +4 -3
  204. package/esm/__chunks/{IZ6ZARCP.js → 4LQJSTB3.js} +1 -1
  205. package/esm/__chunks/{34JEM52B.js → 4VQSZLZX.js} +1 -1
  206. package/esm/__chunks/{72OJKUSZ.js → 54J7EHCU.js} +2 -2
  207. package/esm/__chunks/{HYNMOU7J.js → 56TAEBRJ.js} +1 -1
  208. package/esm/__chunks/{AYWP3ZW6.js → 5QIDAYL3.js} +1 -1
  209. package/esm/__chunks/{HZPJPDJY.js → 727IWAR7.js} +2 -2
  210. package/esm/__chunks/{HAVCR65N.js → 7LB47D2O.js} +1 -1
  211. package/esm/__chunks/{X5VV5CBA.js → 7VWXICM7.js} +3 -3
  212. package/esm/__chunks/{A2ONBKVT.js → BWOZSOC7.js} +1 -1
  213. package/esm/__chunks/{NWDF5QDV.js → C6MBVGZ2.js} +1 -1
  214. package/esm/__chunks/{V5EW3YHP.js → CSCFKBRS.js} +3 -3
  215. package/esm/__chunks/{QPWEKAWF.js → D2BRO4YW.js} +1 -1
  216. package/esm/__chunks/{KZMKUBQH.js → D6CHFQY5.js} +1 -1
  217. package/esm/__chunks/{VDTDCNMP.js → DA5VDN5G.js} +2 -2
  218. package/esm/__chunks/{VPTWELSR.js → DHSMOVCA.js} +2 -2
  219. package/esm/__chunks/{UY3UQ4QI.js → DJUMA466.js} +2 -2
  220. package/esm/__chunks/{H2BG4QDT.js → DO6GQUCF.js} +2 -2
  221. package/esm/__chunks/{QJMIKN5O.js → DX7BNVVX.js} +1 -1
  222. package/esm/__chunks/{XASENZA4.js → EGOOWJGN.js} +16 -15
  223. package/esm/__chunks/{WGAKICTY.js → EZ23JQKA.js} +2 -2
  224. package/esm/__chunks/{KGDYSCOM.js → FRKOFFMT.js} +6 -11
  225. package/esm/__chunks/{HGW6FZYU.js → G4QRTAYK.js} +2 -2
  226. package/esm/__chunks/{D5TF3EQR.js → GD5ZDP5D.js} +1 -1
  227. package/esm/__chunks/{PLOINBVB.js → HWJ7DGMR.js} +0 -7
  228. package/esm/__chunks/{W575AF63.js → IAA7Y45N.js} +2 -2
  229. package/esm/__chunks/{UQFOL5I6.js → JE342XIS.js} +2 -2
  230. package/esm/__chunks/{35WVCYXU.js → KIYX5CLX.js} +2 -2
  231. package/esm/__chunks/{54DCICBS.js → KXTLHNBI.js} +1 -1
  232. package/esm/__chunks/{GP4UGJIZ.js → MNVQ65E5.js} +1 -1
  233. package/esm/__chunks/{C5JX5C3O.js → NQQVRTV2.js} +2 -2
  234. package/esm/__chunks/{IFNQMENS.js → O2VZZF7T.js} +3 -3
  235. package/esm/__chunks/{R4FKKQYI.js → OJDCQDIL.js} +2 -2
  236. package/esm/__chunks/{7AFOF5E7.js → R6PKH666.js} +1 -1
  237. package/esm/__chunks/{MXSIXS3C.js → SUD3LBWB.js} +1 -1
  238. package/esm/__chunks/{4JNX5L5C.js → T5VBGHBO.js} +1 -1
  239. package/esm/__chunks/{RJEKIG5Y.js → TWMREEKC.js} +1 -1
  240. package/esm/__chunks/VRCYQ6JX.js +79 -0
  241. package/esm/__chunks/{HMYMEP6U.js → W5ZMSHVN.js} +1 -1
  242. package/esm/__chunks/{4SB2BYFE.js → X6F6ND2A.js} +4 -3
  243. package/esm/__chunks/{LND6SMHN.js → XBIFFFUN.js} +1 -1
  244. package/esm/__chunks/{4WK6LN27.js → XQCQJGZ3.js} +2 -2
  245. package/esm/__chunks/{4RP654JS.js → YGEFENKI.js} +44 -18
  246. package/esm/__chunks/{K6BB6DTS.js → YI522MHJ.js} +2 -2
  247. package/esm/button/button.js +3 -3
  248. package/esm/checkbox/checkbox-provider.js +2 -2
  249. package/esm/checkbox/checkbox-store.js +2 -2
  250. package/esm/checkbox/checkbox.js +4 -4
  251. package/esm/collection/collection-provider.js +2 -2
  252. package/esm/collection/collection-renderer.js +2 -2
  253. package/esm/collection/collection-store.js +2 -2
  254. package/esm/combobox/combobox-cancel.js +3 -3
  255. package/esm/combobox/combobox-disclosure.js +5 -5
  256. package/esm/combobox/combobox-item.js +4 -4
  257. package/esm/combobox/combobox-list.js +2 -2
  258. package/esm/combobox/combobox-popover.js +13 -13
  259. package/esm/combobox/combobox-provider.js +7 -7
  260. package/esm/combobox/combobox-store.js +7 -7
  261. package/esm/combobox/combobox.js +2 -2
  262. package/esm/command/command.js +2 -2
  263. package/esm/composite/composite-container.js +2 -2
  264. package/esm/composite/composite-item.js +4 -4
  265. package/esm/composite/composite-overflow-disclosure.js +8 -8
  266. package/esm/composite/composite-overflow-store.js +4 -4
  267. package/esm/composite/composite-overflow.js +12 -12
  268. package/esm/composite/composite-provider.js +3 -3
  269. package/esm/composite/composite-renderer.js +3 -3
  270. package/esm/composite/composite-store.js +3 -3
  271. package/esm/composite/composite-typeahead.d.ts +0 -4
  272. package/esm/composite/composite.js +2 -2
  273. package/esm/dialog/dialog-backdrop.js +5 -5
  274. package/esm/dialog/dialog-disclosure.js +5 -5
  275. package/esm/dialog/dialog-dismiss.js +4 -4
  276. package/esm/dialog/dialog-provider.js +3 -3
  277. package/esm/dialog/dialog-store.js +3 -3
  278. package/esm/dialog/dialog.d.ts +25 -11
  279. package/esm/dialog/dialog.js +11 -11
  280. package/esm/dialog/utils/disable-accessibility-tree-outside.d.ts +1 -1
  281. package/esm/dialog/utils/disable-accessibility-tree-outside.js +2 -2
  282. package/esm/dialog/utils/disable-tree.d.ts +5 -0
  283. package/esm/dialog/utils/{disable-tree-outside.js → disable-tree.js} +5 -3
  284. package/esm/dialog/utils/mark-tree-outside.d.ts +1 -1
  285. package/esm/dialog/utils/mark-tree-outside.js +2 -2
  286. package/esm/dialog/utils/use-hide-on-interact-outside.js +3 -3
  287. package/esm/dialog/utils/use-nested-dialogs.js +1 -1
  288. package/esm/dialog/utils/walk-tree-outside.d.ts +3 -2
  289. package/esm/dialog/utils/walk-tree-outside.js +4 -1
  290. package/esm/disclosure/disclosure-provider.js +2 -2
  291. package/esm/disclosure/disclosure-store.js +2 -2
  292. package/esm/disclosure/disclosure.js +4 -4
  293. package/esm/focusable/focusable.js +1 -1
  294. package/esm/form/form-checkbox.js +5 -5
  295. package/esm/form/form-input.js +1 -1
  296. package/esm/form/form-provider.js +3 -3
  297. package/esm/form/form-push.js +3 -3
  298. package/esm/form/form-radio.js +5 -5
  299. package/esm/form/form-remove.js +3 -3
  300. package/esm/form/form-reset.js +3 -3
  301. package/esm/form/form-store.js +3 -3
  302. package/esm/form/form-submit.js +3 -3
  303. package/esm/hovercard/hovercard-anchor.js +2 -2
  304. package/esm/hovercard/hovercard-disclosure.js +5 -5
  305. package/esm/hovercard/hovercard-dismiss.js +6 -6
  306. package/esm/hovercard/hovercard-provider.js +5 -5
  307. package/esm/hovercard/hovercard-store.js +5 -5
  308. package/esm/hovercard/hovercard.js +13 -13
  309. package/esm/menu/menu-arrow.d.ts +11 -7
  310. package/esm/menu/menu-bar-provider.js +4 -4
  311. package/esm/menu/menu-bar-store.js +4 -4
  312. package/esm/menu/menu-bar.d.ts +23 -22
  313. package/esm/menu/menu-bar.js +2 -2
  314. package/esm/menu/menu-button-arrow.d.ts +16 -11
  315. package/esm/menu/menu-button.d.ts +19 -11
  316. package/esm/menu/menu-button.js +8 -8
  317. package/esm/menu/menu-description.d.ts +13 -8
  318. package/esm/menu/menu-dismiss.d.ts +10 -6
  319. package/esm/menu/menu-dismiss.js +6 -6
  320. package/esm/menu/menu-group-label.d.ts +15 -10
  321. package/esm/menu/menu-group.d.ts +15 -10
  322. package/esm/menu/menu-heading.d.ts +10 -6
  323. package/esm/menu/menu-item-check.d.ts +15 -15
  324. package/esm/menu/menu-item-checkbox.d.ts +13 -8
  325. package/esm/menu/menu-item-checkbox.js +7 -7
  326. package/esm/menu/menu-item-radio.d.ts +18 -13
  327. package/esm/menu/menu-item-radio.js +6 -6
  328. package/esm/menu/menu-item.d.ts +16 -9
  329. package/esm/menu/menu-item.js +5 -5
  330. package/esm/menu/menu-list.d.ts +12 -7
  331. package/esm/menu/menu-list.js +4 -4
  332. package/esm/menu/menu-provider.js +8 -8
  333. package/esm/menu/menu-separator.d.ts +14 -10
  334. package/esm/menu/menu-store.d.ts +9 -9
  335. package/esm/menu/menu-store.js +8 -8
  336. package/esm/menu/menu.d.ts +7 -6
  337. package/esm/menu/menu.js +33 -45
  338. package/esm/popover/popover-anchor.d.ts +9 -4
  339. package/esm/popover/popover-arrow.d.ts +14 -8
  340. package/esm/popover/popover-description.d.ts +13 -8
  341. package/esm/popover/popover-disclosure-arrow.d.ts +18 -10
  342. package/esm/popover/popover-disclosure.d.ts +4 -3
  343. package/esm/popover/popover-disclosure.js +6 -6
  344. package/esm/popover/popover-dismiss.d.ts +13 -7
  345. package/esm/popover/popover-dismiss.js +5 -5
  346. package/esm/popover/popover-heading.d.ts +14 -8
  347. package/esm/popover/popover-provider.js +4 -4
  348. package/esm/popover/popover-store.js +4 -4
  349. package/esm/popover/popover.d.ts +13 -9
  350. package/esm/popover/popover.js +12 -12
  351. package/esm/portal/portal.d.ts +17 -6
  352. package/esm/radio/radio-group.d.ts +5 -1
  353. package/esm/radio/radio-group.js +2 -2
  354. package/esm/radio/radio-provider.js +4 -4
  355. package/esm/radio/radio-store.d.ts +0 -5
  356. package/esm/radio/radio-store.js +4 -4
  357. package/esm/radio/radio.d.ts +6 -2
  358. package/esm/radio/radio.js +5 -5
  359. package/esm/select/select-arrow.d.ts +17 -12
  360. package/esm/select/select-group-label.d.ts +21 -16
  361. package/esm/select/select-group.d.ts +16 -11
  362. package/esm/select/select-item-check.d.ts +22 -16
  363. package/esm/select/select-item.d.ts +51 -24
  364. package/esm/select/select-item.js +4 -4
  365. package/esm/select/select-label.d.ts +18 -14
  366. package/esm/select/select-list.d.ts +26 -16
  367. package/esm/select/select-list.js +3 -3
  368. package/esm/select/select-popover.d.ts +11 -10
  369. package/esm/select/select-popover.js +14 -14
  370. package/esm/select/select-provider.js +7 -7
  371. package/esm/select/select-renderer.js +3 -3
  372. package/esm/select/select-row.d.ts +20 -15
  373. package/esm/select/select-separator.d.ts +16 -11
  374. package/esm/select/select-store.d.ts +0 -4
  375. package/esm/select/select-store.js +7 -7
  376. package/esm/select/select.d.ts +39 -17
  377. package/esm/select/select.js +6 -6
  378. package/esm/tab/tab-list.js +2 -2
  379. package/esm/tab/tab-panel.js +3 -3
  380. package/esm/tab/tab-provider.js +4 -4
  381. package/esm/tab/tab-store.js +4 -4
  382. package/esm/tab/tab.js +4 -4
  383. package/esm/toolbar/toolbar-container.js +6 -6
  384. package/esm/toolbar/toolbar-input.js +5 -5
  385. package/esm/toolbar/toolbar-item.js +5 -5
  386. package/esm/toolbar/toolbar-provider.js +4 -4
  387. package/esm/toolbar/toolbar-store.js +4 -4
  388. package/esm/toolbar/toolbar.js +6 -6
  389. package/esm/tooltip/tooltip-anchor.js +2 -2
  390. package/esm/tooltip/tooltip-provider.js +6 -6
  391. package/esm/tooltip/tooltip-store.js +6 -6
  392. package/esm/tooltip/tooltip.js +13 -13
  393. package/esm/tsconfig.build.tsbuildinfo +1 -1
  394. package/esm/utils/store.js +1 -1
  395. package/package.json +4 -4
  396. package/cjs/__chunks/PD5YFDLO.cjs +0 -41
  397. package/cjs/dialog/utils/disable-tree-outside.cjs +0 -12
  398. package/cjs/dialog/utils/disable-tree-outside.d.ts +0 -3
  399. package/dialog/utils/disable-tree-outside/package.json +0 -8
  400. package/esm/__chunks/5M4ITSXL.js +0 -41
  401. package/esm/dialog/utils/disable-tree-outside.d.ts +0 -3
  402. package/cjs/__chunks/{BFLDQF3L.cjs → GQAB4M3B.cjs} +3 -3
  403. package/esm/__chunks/{M4OAD5XF.js → YTHH33BK.js} +3 -3
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useRadioStore
3
- } from "../__chunks/4WK6LN27.js";
3
+ } from "../__chunks/XQCQJGZ3.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/EZ23JQKA.js";
8
+ import "../__chunks/C6MBVGZ2.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/4LP74VAP.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/XQCQJGZ3.js";
5
+ import "../__chunks/EZ23JQKA.js";
6
+ import "../__chunks/C6MBVGZ2.js";
7
+ import "../__chunks/4LP74VAP.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/OJDCQDIL.js";
5
5
  import "../__chunks/NRFPH2ON.js";
6
- import "../__chunks/72OJKUSZ.js";
7
- import "../__chunks/LND6SMHN.js";
6
+ import "../__chunks/54J7EHCU.js";
7
+ import "../__chunks/XBIFFFUN.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/4LP74VAP.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
28
  * ```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>
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
  }
@@ -21,27 +21,32 @@ export declare const useSelectGroupLabel: import("../utils/types.js").Hook<Selec
21
21
  * @see https://ariakit.org/components/select
22
22
  * @example
23
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>
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
  }
@@ -24,22 +24,27 @@ export declare const useSelectGroup: import("../utils/types.js").Hook<SelectGrou
24
24
  * @see https://ariakit.org/components/select
25
25
  * @example
26
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>
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
  }
@@ -20,31 +20,37 @@ export declare const useSelectItemCheck: import("../utils/types.js").Hook<Select
20
20
  * @see https://ariakit.org/components/select
21
21
  * @example
22
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>
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
  }
@@ -16,39 +16,64 @@ import type { SelectStore } from "./select-store.js";
16
16
  */
17
17
  export declare const useSelectItem: import("../utils/types.js").Hook<SelectItemOptions<"div">>;
18
18
  /**
19
- * Renders a select item inside a select list or select popover. The `role` prop
20
- * will be automatically set based on the `SelectList` or `SelectPopover` own
21
- * `role` prop. For example, if the `SelectPopover` component's `role` prop is
22
- * set to `listbox` (default), the `SelectItem` `role` will be set to `option`.
23
- * By default, the `value` prop will be rendered as the children, but this can
24
- * be overriden.
19
+ * Renders a select item inside a
20
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
21
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover).
22
+ *
23
+ * The `role` attribute will be automatically set on the item based on the
24
+ * list's own `role` attribute. For example, if the
25
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) component's
26
+ * `role` attribute is set to `listbox` (which is the default), the item `role`
27
+ * will be set to `option`.
28
+ *
29
+ * By default, the [`value`](https://ariakit.org/reference/select-item#value)
30
+ * prop will be rendered as the children, but this can be overriden if a custom
31
+ * children is provided.
25
32
  * @see https://ariakit.org/components/select
26
33
  * @example
27
- * ```jsx
28
- * const select = useSelectStore();
29
- * <Select store={select} />
30
- * <SelectPopover store={select}>
31
- * <SelectItem value="Apple" />
32
- * <SelectItem value="Orange" />
33
- * </SelectPopover>
34
+ * ```jsx {4-5}
35
+ * <SelectProvider>
36
+ * <Select />
37
+ * <SelectPopover>
38
+ * <SelectItem value="Apple" />
39
+ * <SelectItem value="Orange" />
40
+ * </SelectPopover>
41
+ * </SelectProvider>
34
42
  * ```
35
43
  */
36
44
  export declare const SelectItem: import("../utils/types.js").Component<SelectItemOptions<"div">>;
37
45
  export interface SelectItemOptions<T extends As = "div"> extends CompositeItemOptions<T>, CompositeHoverOptions<T> {
38
46
  /**
39
- * Object returned by the `useSelectStore` hook. If not provided, the parent
40
- * `SelectList` or `SelectPopover` components' context will be used.
47
+ * Object returned by the
48
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
49
+ * not provided, the parent
50
+ * [`SelectList`](https://ariakit.org/reference/select-list) or
51
+ * [`SelectPopover`](https://ariakit.org/reference/select-popover) components'
52
+ * context will be used.
41
53
  */
42
54
  store?: SelectStore;
43
55
  /**
44
56
  * The value of the item. This will be rendered as the children by default.
45
- * - If `setValueOnClick` is set to `true` on this component, the
46
- * `select.value` state will be set to this value when the user clicks on
47
- * it.
48
- * - If `select.setValueOnMove` is set to `true` on the select store, the
49
- * `select.value` state will be set to this value when the user moves to
50
- * it (which is usually the case when moving through the items using the
51
- * keyboard).
57
+ * - If
58
+ * [`setValueOnClick`](https://ariakit.org/reference/select-item#setvalueonclick)
59
+ * is set to `true`, the
60
+ * [`value`](https://ariakit.org/reference/select-provider#value) state will
61
+ * be set to this value when the user clicks on it.
62
+ * - If
63
+ * [`setValueOnMove`](https://ariakit.org/reference/select-provider#setvalueonmove)
64
+ * is set to `true`, the
65
+ * [`value`](https://ariakit.org/reference/select-provider#value) state will
66
+ * be set to this value when the user moves to it (which is usually the case
67
+ * when moving through the items using the keyboard).
68
+ *
69
+ * Live examples:
70
+ * - [Form with Select](https://ariakit.org/examples/form-select)
71
+ * - [Animated Select](https://ariakit.org/examples/select-animated)
72
+ * - [Select with Combobox](https://ariakit.org/examples/select-combobox)
73
+ * - [Select grid](https://ariakit.org/examples/select-grid)
74
+ * - [SelectGroup](https://ariakit.org/examples/select-group)
75
+ * - [Select with custom
76
+ * item](https://ariakit.org/examples/select-item-custom)
52
77
  * @example
53
78
  * ```jsx
54
79
  * <SelectItem value="Apple" />
@@ -57,12 +82,14 @@ export interface SelectItemOptions<T extends As = "div"> extends CompositeItemOp
57
82
  value?: string;
58
83
  /**
59
84
  * Whether to hide the select when this item is clicked. By default, it's
60
- * `true` when the `value` prop is also provided.
85
+ * `true` when the [`value`](https://ariakit.org/reference/select-item#value)
86
+ * prop is also provided.
61
87
  */
62
88
  hideOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
63
89
  /**
64
90
  * Whether to set the select value with this item's value, if any, when this
65
- * item is clicked. By default, it's `true` when the `value` prop is also
91
+ * item is clicked. By default, it's `true` when the
92
+ * [`value`](https://ariakit.org/reference/select-item#value) prop is also
66
93
  * provided.
67
94
  */
68
95
  setValueOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
@@ -7,8 +7,8 @@ import {
7
7
  } from "../__chunks/US4OMDIO.js";
8
8
  import {
9
9
  useCompositeItem
10
- } from "../__chunks/72OJKUSZ.js";
11
- import "../__chunks/LND6SMHN.js";
10
+ } from "../__chunks/54J7EHCU.js";
11
+ import "../__chunks/XBIFFFUN.js";
12
12
  import "../__chunks/XIA3HAXM.js";
13
13
  import "../__chunks/OXPV2NBK.js";
14
14
  import "../__chunks/5C7J4IAS.js";
@@ -16,14 +16,14 @@ import "../__chunks/74KKBFVP.js";
16
16
  import "../__chunks/547DFODS.js";
17
17
  import "../__chunks/5YYGDU4E.js";
18
18
  import "../__chunks/56KWVYDN.js";
19
- import "../__chunks/M4OAD5XF.js";
19
+ import "../__chunks/YTHH33BK.js";
20
20
  import "../__chunks/BMLNRUFQ.js";
21
21
  import {
22
22
  createElement,
23
23
  createHook,
24
24
  createMemoComponent
25
25
  } from "../__chunks/CFEUKV6C.js";
26
- import "../__chunks/XXO3VVQU.js";
26
+ import "../__chunks/4LP74VAP.js";
27
27
  import {
28
28
  useBooleanEvent,
29
29
  useEvent,
@@ -16,27 +16,31 @@ import type { SelectStore } from "./select-store.js";
16
16
  */
17
17
  export declare const useSelectLabel: import("../utils/types.js").Hook<SelectLabelOptions<"div">>;
18
18
  /**
19
- * Renders a label for the `Select` component. Since it's not a native select
20
- * element, we can't use the native label element. The `SelectLabel` component
21
- * will move focus and click on the `Select` component when the user clicks on
22
- * the label.
19
+ * Renders a label for the [`Select`](https://ariakit.org/reference/select)
20
+ * component. Since it's not a native select element, we can't use the native
21
+ * label element. This component will move focus and click on the
22
+ * [`Select`](https://ariakit.org/reference/select) component when clicked.
23
23
  * @see https://ariakit.org/components/select
24
24
  * @example
25
- * ```jsx
26
- * const select = useSelectStore({ defaultValue: "Apple" });
27
- * <SelectLabel store={select}>Favorite fruit</SelectLabel>
28
- * <Select store={select} />
29
- * <SelectPopover store={select}>
30
- * <SelectItem value="Apple" />
31
- * <SelectItem value="Orange" />
32
- * </SelectPopover>
25
+ * ```jsx {2}
26
+ * <SelectProvider defaultValue="Apple">
27
+ * <SelectLabel>Favorite fruit</SelectLabel>
28
+ * <Select />
29
+ * <SelectPopover>
30
+ * <SelectItem value="Apple" />
31
+ * <SelectItem value="Orange" />
32
+ * </SelectPopover>
33
+ * </SelectProvider>
33
34
  * ```
34
35
  */
35
36
  export declare const SelectLabel: import("../utils/types.js").Component<SelectLabelOptions<"div">>;
36
37
  export interface SelectLabelOptions<T extends As = "div"> extends Options<T> {
37
38
  /**
38
- * Object returned by the `useSelectStore` hook. If not provided, the parent
39
- * `Select` component's context will be used.
39
+ * Object returned by the
40
+ * [`useSelectStore`](https://ariakit.org/reference/use-select-store) hook. If
41
+ * not provided, the closest
42
+ * [`SelectProvider`](https://ariakit.org/reference/select-provider)
43
+ * component's context will be used.
40
44
  */
41
45
  store?: SelectStore;
42
46
  }
@@ -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,10 +1,10 @@
1
1
  import {
2
2
  SelectList,
3
3
  useSelectList
4
- } from "../__chunks/QJMIKN5O.js";
4
+ } from "../__chunks/DX7BNVVX.js";
5
5
  import "../__chunks/YVYWIVKG.js";
6
6
  import "../__chunks/US4OMDIO.js";
7
- import "../__chunks/HYNMOU7J.js";
7
+ import "../__chunks/56TAEBRJ.js";
8
8
  import "../__chunks/OXPV2NBK.js";
9
9
  import "../__chunks/5C7J4IAS.js";
10
10
  import "../__chunks/74KKBFVP.js";
@@ -12,7 +12,7 @@ import "../__chunks/3D7ZB3CS.js";
12
12
  import "../__chunks/547DFODS.js";
13
13
  import "../__chunks/5YYGDU4E.js";
14
14
  import "../__chunks/56KWVYDN.js";
15
- import "../__chunks/M4OAD5XF.js";
15
+ import "../__chunks/YTHH33BK.js";
16
16
  import "../__chunks/BMLNRUFQ.js";
17
17
  import "../__chunks/CFEUKV6C.js";
18
18
  import "../__chunks/J7Q2EO23.js";
@@ -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,28 +1,28 @@
1
1
  import {
2
2
  useSelectList
3
- } from "../__chunks/QJMIKN5O.js";
3
+ } from "../__chunks/DX7BNVVX.js";
4
4
  import "../__chunks/YVYWIVKG.js";
5
5
  import {
6
6
  useSelectProviderContext
7
7
  } from "../__chunks/US4OMDIO.js";
8
- import "../__chunks/HYNMOU7J.js";
8
+ import "../__chunks/56TAEBRJ.js";
9
9
  import "../__chunks/OXPV2NBK.js";
10
10
  import "../__chunks/5C7J4IAS.js";
11
11
  import "../__chunks/74KKBFVP.js";
12
12
  import {
13
13
  usePopover
14
- } from "../__chunks/GP4UGJIZ.js";
15
- import "../__chunks/4RP654JS.js";
16
- import "../__chunks/W575AF63.js";
17
- import "../__chunks/PLOINBVB.js";
18
- import "../__chunks/HAVCR65N.js";
14
+ } from "../__chunks/MNVQ65E5.js";
15
+ import "../__chunks/YGEFENKI.js";
16
+ import "../__chunks/IAA7Y45N.js";
17
+ import "../__chunks/HWJ7DGMR.js";
18
+ import "../__chunks/7LB47D2O.js";
19
19
  import "../__chunks/62DFK33R.js";
20
- import "../__chunks/KGDYSCOM.js";
21
- import "../__chunks/XASENZA4.js";
22
- import "../__chunks/X5VV5CBA.js";
20
+ import "../__chunks/FRKOFFMT.js";
21
+ import "../__chunks/EGOOWJGN.js";
22
+ import "../__chunks/7VWXICM7.js";
23
23
  import "../__chunks/KOVUJERF.js";
24
24
  import "../__chunks/IXXFVVA2.js";
25
- import "../__chunks/5M4ITSXL.js";
25
+ import "../__chunks/VRCYQ6JX.js";
26
26
  import "../__chunks/7JNF6I52.js";
27
27
  import "../__chunks/3LGVTTHD.js";
28
28
  import "../__chunks/FW6QFGFT.js";
@@ -38,7 +38,7 @@ import "../__chunks/3D7ZB3CS.js";
38
38
  import "../__chunks/547DFODS.js";
39
39
  import "../__chunks/5YYGDU4E.js";
40
40
  import "../__chunks/56KWVYDN.js";
41
- import "../__chunks/M4OAD5XF.js";
41
+ import "../__chunks/YTHH33BK.js";
42
42
  import "../__chunks/BMLNRUFQ.js";
43
43
  import "../__chunks/6XXSNRNX.js";
44
44
  import {
@@ -46,8 +46,8 @@ import {
46
46
  createElement,
47
47
  createHook
48
48
  } from "../__chunks/CFEUKV6C.js";
49
- import "../__chunks/A2ONBKVT.js";
50
- import "../__chunks/XXO3VVQU.js";
49
+ import "../__chunks/BWOZSOC7.js";
50
+ import "../__chunks/4LP74VAP.js";
51
51
  import "../__chunks/J7Q2EO23.js";
52
52
  import "../__chunks/CP3U4HPL.js";
53
53
  import {