@ariakit/react-core 0.0.1 → 0.1.0

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 (1065) hide show
  1. package/.eslintignore +6 -0
  2. package/CHANGELOG.md +20 -0
  3. package/button/button/package.json +7 -0
  4. package/checkbox/checkbox/package.json +7 -0
  5. package/checkbox/checkbox-check/package.json +7 -0
  6. package/checkbox/checkbox-checked-context/package.json +7 -0
  7. package/checkbox/checkbox-store/package.json +7 -0
  8. package/cjs/__chunks/22VQR3WC.cjs +30 -0
  9. package/cjs/__chunks/2WZVSPAI.cjs +13 -0
  10. package/cjs/__chunks/2X5K3J7Y.cjs +12 -0
  11. package/cjs/__chunks/2ZU7T6CD.cjs +104 -0
  12. package/cjs/__chunks/3QEUUQVB.cjs +57 -0
  13. package/cjs/__chunks/3RC6Q4WI.cjs +158 -0
  14. package/cjs/__chunks/44UMDBZE.cjs +354 -0
  15. package/cjs/__chunks/4K6QJIPX.cjs +6 -0
  16. package/cjs/__chunks/56QOFCPO.cjs +9 -0
  17. package/cjs/__chunks/5EIZ4QQ7.cjs +29 -0
  18. package/cjs/__chunks/5LMWS5O4.cjs +27 -0
  19. package/cjs/__chunks/5QY4WCTR.cjs +259 -0
  20. package/cjs/__chunks/6622YWGR.cjs +83 -0
  21. package/cjs/__chunks/743OAGBP.cjs +73 -0
  22. package/cjs/__chunks/7AIJRTAH.cjs +30 -0
  23. package/cjs/__chunks/7JKSDWVF.cjs +7 -0
  24. package/cjs/__chunks/ABU7PK6G.cjs +182 -0
  25. package/cjs/__chunks/BJTWNJAP.cjs +31 -0
  26. package/cjs/__chunks/CE4N5VGL.cjs +28 -0
  27. package/cjs/__chunks/CMHDB7LY.cjs +96 -0
  28. package/cjs/__chunks/CQSUIL2D.cjs +7 -0
  29. package/cjs/__chunks/DARNBOHZ.cjs +62 -0
  30. package/cjs/__chunks/DCYFB2F3.cjs +28 -0
  31. package/cjs/__chunks/DGBC5VB4.cjs +39 -0
  32. package/cjs/__chunks/EE77OJ6W.cjs +30 -0
  33. package/cjs/__chunks/EFF3S3YM.cjs +41 -0
  34. package/cjs/__chunks/ESS3KXVE.cjs +9 -0
  35. package/cjs/__chunks/ET6BKYQA.cjs +29 -0
  36. package/cjs/__chunks/EWCMH6G3.cjs +138 -0
  37. package/cjs/__chunks/EZH72G5T.cjs +80 -0
  38. package/cjs/__chunks/F2O4M6DR.cjs +8 -0
  39. package/cjs/__chunks/F42HN6GJ.cjs +291 -0
  40. package/cjs/__chunks/F6IOE5QT.cjs +75 -0
  41. package/cjs/__chunks/FO6MB5HF.cjs +7 -0
  42. package/cjs/__chunks/GD6HHJCV.cjs +44 -0
  43. package/cjs/__chunks/GEJXRZB4.cjs +437 -0
  44. package/cjs/__chunks/GTWUFHVO.cjs +47 -0
  45. package/cjs/__chunks/GUYEUWH3.cjs +30 -0
  46. package/cjs/__chunks/GV5LATA3.cjs +326 -0
  47. package/cjs/__chunks/GWL7P7EG.cjs +28 -0
  48. package/cjs/__chunks/H5Z2A5K2.cjs +29 -0
  49. package/cjs/__chunks/HRWXWXME.cjs +7 -0
  50. package/cjs/__chunks/IVRU7X3P.cjs +213 -0
  51. package/cjs/__chunks/IYRMREW7.cjs +29 -0
  52. package/cjs/__chunks/IZT4J627.cjs +44 -0
  53. package/cjs/__chunks/K56WQU76.cjs +7 -0
  54. package/cjs/__chunks/KIZFPB5R.cjs +116 -0
  55. package/cjs/__chunks/KWHAB2F2.cjs +44 -0
  56. package/cjs/__chunks/LICOAFSX.cjs +56 -0
  57. package/cjs/__chunks/M4ATEGE4.cjs +30 -0
  58. package/cjs/__chunks/MAH7ORCZ.cjs +39 -0
  59. package/cjs/__chunks/MAVPFWFV.cjs +112 -0
  60. package/cjs/__chunks/MPFAD3UK.cjs +15 -0
  61. package/cjs/__chunks/N2VCZZLP.cjs +11 -0
  62. package/cjs/__chunks/ND6THRTE.cjs +28 -0
  63. package/cjs/__chunks/NJHMO3XK.cjs +24 -0
  64. package/cjs/__chunks/NS56XHXG.cjs +7 -0
  65. package/cjs/__chunks/NVMBKFRB.cjs +13 -0
  66. package/cjs/__chunks/NYVIJAIX.cjs +142 -0
  67. package/cjs/__chunks/OLGMV24U.cjs +87 -0
  68. package/cjs/__chunks/ORRE4SVW.cjs +31 -0
  69. package/cjs/__chunks/OSVJV44D.cjs +82 -0
  70. package/cjs/__chunks/OTRABJ4Y.cjs +7 -0
  71. package/cjs/__chunks/OVCUW432.cjs +98 -0
  72. package/cjs/__chunks/PV53XZQM.cjs +125 -0
  73. package/cjs/__chunks/QRBTWQPI.cjs +123 -0
  74. package/cjs/__chunks/QTUC5TMJ.cjs +74 -0
  75. package/cjs/__chunks/R6BI5EIU.cjs +28 -0
  76. package/cjs/__chunks/RCGSDYWJ.cjs +9 -0
  77. package/cjs/__chunks/RDNP4FTV.cjs +30 -0
  78. package/cjs/__chunks/RG6JXX7T.cjs +39 -0
  79. package/cjs/__chunks/RLMRI6EX.cjs +45 -0
  80. package/cjs/__chunks/S6SU42H5.cjs +30 -0
  81. package/cjs/__chunks/SOPRUU56.cjs +19 -0
  82. package/cjs/__chunks/SWSQUGVG.cjs +108 -0
  83. package/cjs/__chunks/T4TB3AAZ.cjs +92 -0
  84. package/cjs/__chunks/TBYPXZ5H.cjs +102 -0
  85. package/cjs/__chunks/TIVUAJD3.cjs +337 -0
  86. package/cjs/__chunks/TZSSCEPY.cjs +55 -0
  87. package/cjs/__chunks/UHVME3EZ.cjs +46 -0
  88. package/cjs/__chunks/UIUFH5TV.cjs +41 -0
  89. package/cjs/__chunks/UYIFJ7U3.cjs +53 -0
  90. package/cjs/__chunks/VSKE43XZ.cjs +76 -0
  91. package/cjs/__chunks/VXIYZJTU.cjs +28 -0
  92. package/cjs/__chunks/W2ODSL37.cjs +130 -0
  93. package/cjs/__chunks/W5PBA4D6.cjs +9 -0
  94. package/cjs/__chunks/WYGT6WVD.cjs +51 -0
  95. package/cjs/__chunks/X2GXTE3P.cjs +21 -0
  96. package/cjs/__chunks/XFVLDGPP.cjs +31 -0
  97. package/cjs/__chunks/XKBGBOWQ.cjs +174 -0
  98. package/cjs/__chunks/Y5DDEPH5.cjs +67 -0
  99. package/cjs/__chunks/YAJKVIK2.cjs +116 -0
  100. package/cjs/__chunks/YHG3KGFW.cjs +28 -0
  101. package/cjs/__chunks/YITIRUCT.cjs +28 -0
  102. package/cjs/__chunks/ZNVMDYMM.cjs +78 -0
  103. package/cjs/__chunks/ZQAFJQIS.cjs +9 -0
  104. package/cjs/button/button.cjs +13 -0
  105. package/cjs/button/button.d.ts +26 -0
  106. package/cjs/checkbox/checkbox-check.cjs +10 -0
  107. package/cjs/checkbox/checkbox-check.d.ts +37 -0
  108. package/cjs/checkbox/checkbox-checked-context.cjs +6 -0
  109. package/cjs/checkbox/checkbox-checked-context.d.ts +1 -0
  110. package/cjs/checkbox/checkbox-store.cjs +13 -0
  111. package/cjs/checkbox/checkbox-store.d.ts +36 -0
  112. package/cjs/checkbox/checkbox.cjs +15 -0
  113. package/cjs/checkbox/checkbox.d.ts +65 -0
  114. package/cjs/collection/collection-context.cjs +6 -0
  115. package/cjs/collection/collection-context.d.ts +5 -0
  116. package/cjs/collection/collection-item.cjs +12 -0
  117. package/cjs/collection/collection-item.d.ts +55 -0
  118. package/cjs/collection/collection-store.cjs +13 -0
  119. package/cjs/collection/collection-store.d.ts +39 -0
  120. package/cjs/collection/collection.cjs +36 -0
  121. package/cjs/collection/collection.d.ts +42 -0
  122. package/cjs/combobox/combobox-cancel.cjs +75 -0
  123. package/cjs/combobox/combobox-cancel.d.ts +39 -0
  124. package/cjs/combobox/combobox-context.cjs +8 -0
  125. package/cjs/combobox/combobox-context.d.ts +3 -0
  126. package/cjs/combobox/combobox-disclosure.cjs +80 -0
  127. package/cjs/combobox/combobox-disclosure.d.ts +45 -0
  128. package/cjs/combobox/combobox-group-label.cjs +33 -0
  129. package/cjs/combobox/combobox-group-label.d.ts +43 -0
  130. package/cjs/combobox/combobox-group.cjs +29 -0
  131. package/cjs/combobox/combobox-group.d.ts +46 -0
  132. package/cjs/combobox/combobox-item-value.cjs +77 -0
  133. package/cjs/combobox/combobox-item-value.d.ts +64 -0
  134. package/cjs/combobox/combobox-item.cjs +151 -0
  135. package/cjs/combobox/combobox-item.d.ts +69 -0
  136. package/cjs/combobox/combobox-list.cjs +12 -0
  137. package/cjs/combobox/combobox-list.d.ts +42 -0
  138. package/cjs/combobox/combobox-popover.cjs +94 -0
  139. package/cjs/combobox/combobox-popover.d.ts +39 -0
  140. package/cjs/combobox/combobox-row.cjs +46 -0
  141. package/cjs/combobox/combobox-row.d.ts +50 -0
  142. package/cjs/combobox/combobox-separator.cjs +42 -0
  143. package/cjs/combobox/combobox-separator.d.ts +43 -0
  144. package/cjs/combobox/combobox-store.cjs +44 -0
  145. package/cjs/combobox/combobox-store.d.ts +81 -0
  146. package/cjs/combobox/combobox.cjs +324 -0
  147. package/cjs/combobox/combobox.d.ts +124 -0
  148. package/cjs/command/command.cjs +12 -0
  149. package/cjs/command/command.d.ts +38 -0
  150. package/cjs/composite/composite-container.cjs +14 -0
  151. package/cjs/composite/composite-container.d.ts +44 -0
  152. package/cjs/composite/composite-context.cjs +10 -0
  153. package/cjs/composite/composite-context.d.ts +9 -0
  154. package/cjs/composite/composite-group-label.cjs +13 -0
  155. package/cjs/composite/composite-group-label.d.ts +42 -0
  156. package/cjs/composite/composite-group.cjs +13 -0
  157. package/cjs/composite/composite-group.d.ts +44 -0
  158. package/cjs/composite/composite-hover.cjs +12 -0
  159. package/cjs/composite/composite-hover.d.ts +47 -0
  160. package/cjs/composite/composite-input.cjs +12 -0
  161. package/cjs/composite/composite-input.d.ts +39 -0
  162. package/cjs/composite/composite-item.cjs +17 -0
  163. package/cjs/composite/composite-item.d.ts +56 -0
  164. package/cjs/composite/composite-overflow-disclosure.cjs +74 -0
  165. package/cjs/composite/composite-overflow-disclosure.d.ts +45 -0
  166. package/cjs/composite/composite-overflow-store.cjs +32 -0
  167. package/cjs/composite/composite-overflow-store.d.ts +46 -0
  168. package/cjs/composite/composite-overflow.cjs +97 -0
  169. package/cjs/composite/composite-overflow.d.ts +46 -0
  170. package/cjs/composite/composite-row.cjs +12 -0
  171. package/cjs/composite/composite-row.d.ts +52 -0
  172. package/cjs/composite/composite-separator.cjs +11 -0
  173. package/cjs/composite/composite-separator.d.ts +40 -0
  174. package/cjs/composite/composite-store.cjs +14 -0
  175. package/cjs/composite/composite-store.d.ts +40 -0
  176. package/cjs/composite/composite-typeahead.cjs +13 -0
  177. package/cjs/composite/composite-typeahead.d.ts +43 -0
  178. package/cjs/composite/composite.cjs +14 -0
  179. package/cjs/composite/composite.d.ts +74 -0
  180. package/cjs/composite/utils.cjs +20 -0
  181. package/cjs/composite/utils.d.ts +69 -0
  182. package/cjs/dialog/dialog-backdrop.cjs +11 -0
  183. package/cjs/dialog/dialog-backdrop.d.ts +7 -0
  184. package/cjs/dialog/dialog-context.cjs +10 -0
  185. package/cjs/dialog/dialog-context.d.ts +5 -0
  186. package/cjs/dialog/dialog-description.cjs +12 -0
  187. package/cjs/dialog/dialog-description.d.ts +37 -0
  188. package/cjs/dialog/dialog-disclosure.cjs +15 -0
  189. package/cjs/dialog/dialog-disclosure.d.ts +33 -0
  190. package/cjs/dialog/dialog-dismiss.cjs +15 -0
  191. package/cjs/dialog/dialog-dismiss.d.ts +35 -0
  192. package/cjs/dialog/dialog-heading.cjs +14 -0
  193. package/cjs/dialog/dialog-heading.d.ts +37 -0
  194. package/cjs/dialog/dialog-store.cjs +14 -0
  195. package/cjs/dialog/dialog-store.d.ts +24 -0
  196. package/cjs/dialog/dialog.cjs +32 -0
  197. package/cjs/dialog/dialog.d.ts +120 -0
  198. package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +7 -0
  199. package/cjs/dialog/utils/disable-accessibility-tree-outside.d.ts +3 -0
  200. package/cjs/dialog/utils/disable-pointer-events-outside.cjs +7 -0
  201. package/cjs/dialog/utils/disable-pointer-events-outside.d.ts +3 -0
  202. package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +6 -0
  203. package/cjs/dialog/utils/prepend-hidden-dismiss.d.ts +1 -0
  204. package/cjs/dialog/utils/use-champion-dialog.cjs +8 -0
  205. package/cjs/dialog/utils/use-champion-dialog.d.ts +6 -0
  206. package/cjs/dialog/utils/use-focus-on-child-unmount.cjs +6 -0
  207. package/cjs/dialog/utils/use-focus-on-child-unmount.d.ts +6 -0
  208. package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +9 -0
  209. package/cjs/dialog/utils/use-hide-on-interact-outside.d.ts +6 -0
  210. package/cjs/dialog/utils/use-nested-dialogs.cjs +8 -0
  211. package/cjs/dialog/utils/use-nested-dialogs.d.ts +10 -0
  212. package/cjs/dialog/utils/use-prevent-body-scroll.cjs +9 -0
  213. package/cjs/dialog/utils/use-prevent-body-scroll.d.ts +2 -0
  214. package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +6 -0
  215. package/cjs/dialog/utils/use-previous-mouse-down-ref.d.ts +1 -0
  216. package/cjs/dialog/utils/walk-tree-outside.cjs +8 -0
  217. package/cjs/dialog/utils/walk-tree-outside.d.ts +4 -0
  218. package/cjs/disclosure/disclosure-content.cjs +11 -0
  219. package/cjs/disclosure/disclosure-content.d.ts +32 -0
  220. package/cjs/disclosure/disclosure-store.cjs +13 -0
  221. package/cjs/disclosure/disclosure-store.d.ts +29 -0
  222. package/cjs/disclosure/disclosure.cjs +14 -0
  223. package/cjs/disclosure/disclosure.d.ts +42 -0
  224. package/cjs/focus-trap/focus-trap-region.cjs +13 -0
  225. package/cjs/focus-trap/focus-trap-region.d.ts +32 -0
  226. package/cjs/focus-trap/focus-trap.cjs +10 -0
  227. package/cjs/focus-trap/focus-trap.d.ts +23 -0
  228. package/cjs/focusable/focusable.cjs +11 -0
  229. package/cjs/focusable/focusable.d.ts +65 -0
  230. package/cjs/form/form-checkbox.cjs +65 -0
  231. package/cjs/form/form-checkbox.d.ts +37 -0
  232. package/cjs/form/form-context.cjs +6 -0
  233. package/cjs/form/form-context.d.ts +2 -0
  234. package/cjs/form/form-description.cjs +69 -0
  235. package/cjs/form/form-description.d.ts +47 -0
  236. package/cjs/form/form-error.cjs +72 -0
  237. package/cjs/form/form-error.d.ts +60 -0
  238. package/cjs/form/form-field.cjs +14 -0
  239. package/cjs/form/form-field.d.ts +72 -0
  240. package/cjs/form/form-group-label.cjs +32 -0
  241. package/cjs/form/form-group-label.d.ts +49 -0
  242. package/cjs/form/form-group.cjs +13 -0
  243. package/cjs/form/form-group.d.ts +49 -0
  244. package/cjs/form/form-input.cjs +62 -0
  245. package/cjs/form/form-input.d.ts +37 -0
  246. package/cjs/form/form-label.cjs +102 -0
  247. package/cjs/form/form-label.d.ts +51 -0
  248. package/cjs/form/form-push.cjs +109 -0
  249. package/cjs/form/form-push.d.ts +77 -0
  250. package/cjs/form/form-radio-group.cjs +34 -0
  251. package/cjs/form/form-radio-group.d.ts +39 -0
  252. package/cjs/form/form-radio.cjs +77 -0
  253. package/cjs/form/form-radio.d.ts +43 -0
  254. package/cjs/form/form-remove.cjs +92 -0
  255. package/cjs/form/form-remove.d.ts +76 -0
  256. package/cjs/form/form-reset.cjs +47 -0
  257. package/cjs/form/form-reset.d.ts +36 -0
  258. package/cjs/form/form-store.cjs +53 -0
  259. package/cjs/form/form-store.d.ts +104 -0
  260. package/cjs/form/form-submit.cjs +47 -0
  261. package/cjs/form/form-submit.d.ts +40 -0
  262. package/cjs/form/form.cjs +141 -0
  263. package/cjs/form/form.d.ts +63 -0
  264. package/cjs/group/group-label-context.cjs +6 -0
  265. package/cjs/group/group-label-context.d.ts +2 -0
  266. package/cjs/group/group-label.cjs +12 -0
  267. package/cjs/group/group-label.d.ts +28 -0
  268. package/cjs/group/group.cjs +12 -0
  269. package/cjs/group/group.d.ts +22 -0
  270. package/cjs/heading/heading-context.cjs +6 -0
  271. package/cjs/heading/heading-context.d.ts +2 -0
  272. package/cjs/heading/heading-level.cjs +7 -0
  273. package/cjs/heading/heading-level.d.ts +25 -0
  274. package/cjs/heading/heading.cjs +12 -0
  275. package/cjs/heading/heading.d.ts +34 -0
  276. package/cjs/heading/utils.cjs +1 -0
  277. package/cjs/heading/utils.d.ts +1 -0
  278. package/cjs/hovercard/hovercard-anchor.cjs +12 -0
  279. package/cjs/hovercard/hovercard-anchor.d.ts +40 -0
  280. package/cjs/hovercard/hovercard-arrow.cjs +31 -0
  281. package/cjs/hovercard/hovercard-arrow.d.ts +39 -0
  282. package/cjs/hovercard/hovercard-description.cjs +14 -0
  283. package/cjs/hovercard/hovercard-description.d.ts +38 -0
  284. package/cjs/hovercard/hovercard-disclosure.cjs +133 -0
  285. package/cjs/hovercard/hovercard-disclosure.d.ts +37 -0
  286. package/cjs/hovercard/hovercard-dismiss.cjs +17 -0
  287. package/cjs/hovercard/hovercard-dismiss.d.ts +36 -0
  288. package/cjs/hovercard/hovercard-heading.cjs +16 -0
  289. package/cjs/hovercard/hovercard-heading.d.ts +38 -0
  290. package/cjs/hovercard/hovercard-store.cjs +16 -0
  291. package/cjs/hovercard/hovercard-store.d.ts +36 -0
  292. package/cjs/hovercard/hovercard.cjs +36 -0
  293. package/cjs/hovercard/hovercard.d.ts +63 -0
  294. package/cjs/hovercard/utils/__tests__/polygon-test.d.ts +1 -0
  295. package/cjs/hovercard/utils/debug-polygon.cjs +36 -0
  296. package/cjs/hovercard/utils/debug-polygon.d.ts +2 -0
  297. package/cjs/hovercard/utils/polygon.cjs +10 -0
  298. package/cjs/hovercard/utils/polygon.d.ts +5 -0
  299. package/cjs/index.cjs +5 -0
  300. package/cjs/index.d.ts +2 -0
  301. package/cjs/menu/menu-arrow.cjs +28 -0
  302. package/cjs/menu/menu-arrow.d.ts +38 -0
  303. package/cjs/menu/menu-bar-store.cjs +31 -0
  304. package/cjs/menu/menu-bar-store.d.ts +30 -0
  305. package/cjs/menu/menu-bar.cjs +53 -0
  306. package/cjs/menu/menu-bar.d.ts +61 -0
  307. package/cjs/menu/menu-button-arrow.cjs +30 -0
  308. package/cjs/menu/menu-button-arrow.d.ts +47 -0
  309. package/cjs/menu/menu-button.cjs +177 -0
  310. package/cjs/menu/menu-button.d.ts +50 -0
  311. package/cjs/menu/menu-context.cjs +10 -0
  312. package/cjs/menu/menu-context.d.ts +5 -0
  313. package/cjs/menu/menu-description.cjs +34 -0
  314. package/cjs/menu/menu-description.d.ts +37 -0
  315. package/cjs/menu/menu-dismiss.cjs +33 -0
  316. package/cjs/menu/menu-dismiss.d.ts +36 -0
  317. package/cjs/menu/menu-group-label.cjs +31 -0
  318. package/cjs/menu/menu-group-label.d.ts +42 -0
  319. package/cjs/menu/menu-group.cjs +29 -0
  320. package/cjs/menu/menu-group.d.ts +45 -0
  321. package/cjs/menu/menu-heading.cjs +32 -0
  322. package/cjs/menu/menu-heading.d.ts +37 -0
  323. package/cjs/menu/menu-item-check.cjs +34 -0
  324. package/cjs/menu/menu-item-check.d.ts +44 -0
  325. package/cjs/menu/menu-item-checkbox.cjs +68 -0
  326. package/cjs/menu/menu-item-checkbox.d.ts +47 -0
  327. package/cjs/menu/menu-item-radio.cjs +91 -0
  328. package/cjs/menu/menu-item-radio.d.ts +54 -0
  329. package/cjs/menu/menu-item.cjs +22 -0
  330. package/cjs/menu/menu-item.d.ts +55 -0
  331. package/cjs/menu/menu-list.cjs +18 -0
  332. package/cjs/menu/menu-list.d.ts +40 -0
  333. package/cjs/menu/menu-separator.cjs +27 -0
  334. package/cjs/menu/menu-separator.d.ts +44 -0
  335. package/cjs/menu/menu-store.cjs +73 -0
  336. package/cjs/menu/menu-store.d.ts +86 -0
  337. package/cjs/menu/menu.cjs +182 -0
  338. package/cjs/menu/menu.d.ts +35 -0
  339. package/cjs/menu/utils.cjs +6 -0
  340. package/cjs/menu/utils.d.ts +2 -0
  341. package/cjs/popover/popover-anchor.cjs +11 -0
  342. package/cjs/popover/popover-anchor.d.ts +33 -0
  343. package/cjs/popover/popover-arrow-path.cjs +6 -0
  344. package/cjs/popover/popover-arrow-path.d.ts +1 -0
  345. package/cjs/popover/popover-arrow.cjs +13 -0
  346. package/cjs/popover/popover-arrow.d.ts +42 -0
  347. package/cjs/popover/popover-context.cjs +6 -0
  348. package/cjs/popover/popover-context.d.ts +2 -0
  349. package/cjs/popover/popover-description.cjs +13 -0
  350. package/cjs/popover/popover-description.d.ts +38 -0
  351. package/cjs/popover/popover-disclosure-arrow.cjs +10 -0
  352. package/cjs/popover/popover-disclosure-arrow.d.ts +44 -0
  353. package/cjs/popover/popover-disclosure.cjs +18 -0
  354. package/cjs/popover/popover-disclosure.d.ts +29 -0
  355. package/cjs/popover/popover-dismiss.cjs +16 -0
  356. package/cjs/popover/popover-dismiss.d.ts +36 -0
  357. package/cjs/popover/popover-heading.cjs +15 -0
  358. package/cjs/popover/popover-heading.d.ts +37 -0
  359. package/cjs/popover/popover-store.cjs +15 -0
  360. package/cjs/popover/popover-store.d.ts +36 -0
  361. package/cjs/popover/popover.cjs +34 -0
  362. package/cjs/popover/popover.d.ts +38 -0
  363. package/cjs/portal/portal-context.cjs +6 -0
  364. package/cjs/portal/portal-context.d.ts +17 -0
  365. package/cjs/portal/portal.cjs +14 -0
  366. package/cjs/portal/portal.d.ts +64 -0
  367. package/cjs/radio/radio-context.cjs +6 -0
  368. package/cjs/radio/radio-context.d.ts +2 -0
  369. package/cjs/radio/radio-group.cjs +47 -0
  370. package/cjs/radio/radio-group.d.ts +37 -0
  371. package/cjs/radio/radio-store.cjs +32 -0
  372. package/cjs/radio/radio-store.d.ts +42 -0
  373. package/cjs/radio/radio.cjs +20 -0
  374. package/cjs/radio/radio.d.ts +52 -0
  375. package/cjs/role/role.cjs +20 -0
  376. package/cjs/role/role.d.ts +24 -0
  377. package/cjs/select/select-arrow.cjs +11 -0
  378. package/cjs/select/select-arrow.d.ts +47 -0
  379. package/cjs/select/select-context.cjs +8 -0
  380. package/cjs/select/select-context.d.ts +3 -0
  381. package/cjs/select/select-group-label.cjs +33 -0
  382. package/cjs/select/select-group-label.d.ts +48 -0
  383. package/cjs/select/select-group.cjs +29 -0
  384. package/cjs/select/select-group.d.ts +46 -0
  385. package/cjs/select/select-item-check.cjs +36 -0
  386. package/cjs/select/select-item-check.d.ts +51 -0
  387. package/cjs/select/select-item.cjs +168 -0
  388. package/cjs/select/select-item.d.ts +74 -0
  389. package/cjs/select/select-label.cjs +51 -0
  390. package/cjs/select/select-label.d.ts +43 -0
  391. package/cjs/select/select-list.cjs +17 -0
  392. package/cjs/select/select-list.d.ts +57 -0
  393. package/cjs/select/select-popover.cjs +61 -0
  394. package/cjs/select/select-popover.d.ts +36 -0
  395. package/cjs/select/select-row.cjs +46 -0
  396. package/cjs/select/select-row.d.ts +47 -0
  397. package/cjs/select/select-separator.cjs +31 -0
  398. package/cjs/select/select-separator.d.ts +43 -0
  399. package/cjs/select/select-store.cjs +44 -0
  400. package/cjs/select/select-store.d.ts +86 -0
  401. package/cjs/select/select.cjs +248 -0
  402. package/cjs/select/select.d.ts +64 -0
  403. package/cjs/separator/separator.cjs +9 -0
  404. package/cjs/separator/separator.d.ts +28 -0
  405. package/cjs/tab/tab-context.cjs +6 -0
  406. package/cjs/tab/tab-context.d.ts +2 -0
  407. package/cjs/tab/tab-list.cjs +49 -0
  408. package/cjs/tab/tab-list.d.ts +41 -0
  409. package/cjs/tab/tab-panel.cjs +81 -0
  410. package/cjs/tab/tab-panel.d.ts +46 -0
  411. package/cjs/tab/tab-store.cjs +35 -0
  412. package/cjs/tab/tab-store.d.ts +60 -0
  413. package/cjs/tab/tab.cjs +92 -0
  414. package/cjs/tab/tab.d.ts +45 -0
  415. package/cjs/toolbar/toolbar-container.cjs +43 -0
  416. package/cjs/toolbar/toolbar-container.d.ts +35 -0
  417. package/cjs/toolbar/toolbar-context.cjs +6 -0
  418. package/cjs/toolbar/toolbar-context.d.ts +2 -0
  419. package/cjs/toolbar/toolbar-input.cjs +42 -0
  420. package/cjs/toolbar/toolbar-input.d.ts +31 -0
  421. package/cjs/toolbar/toolbar-item.cjs +18 -0
  422. package/cjs/toolbar/toolbar-item.d.ts +36 -0
  423. package/cjs/toolbar/toolbar-separator.cjs +31 -0
  424. package/cjs/toolbar/toolbar-separator.d.ts +40 -0
  425. package/cjs/toolbar/toolbar-store.cjs +31 -0
  426. package/cjs/toolbar/toolbar-store.d.ts +34 -0
  427. package/cjs/toolbar/toolbar.cjs +49 -0
  428. package/cjs/toolbar/toolbar.d.ts +37 -0
  429. package/cjs/tooltip/tooltip-anchor.cjs +72 -0
  430. package/cjs/tooltip/tooltip-anchor.d.ts +51 -0
  431. package/cjs/tooltip/tooltip-arrow.cjs +42 -0
  432. package/cjs/tooltip/tooltip-arrow.d.ts +40 -0
  433. package/cjs/tooltip/tooltip-context.cjs +6 -0
  434. package/cjs/tooltip/tooltip-context.d.ts +2 -0
  435. package/cjs/tooltip/tooltip-store.cjs +32 -0
  436. package/cjs/tooltip/tooltip-store.d.ts +36 -0
  437. package/cjs/tooltip/tooltip.cjs +111 -0
  438. package/cjs/tooltip/tooltip.d.ts +56 -0
  439. package/cjs/tsconfig.build.tsbuildinfo +1 -0
  440. package/cjs/utils/hooks.cjs +43 -0
  441. package/cjs/utils/hooks.d.ts +125 -0
  442. package/cjs/utils/misc.cjs +6 -0
  443. package/cjs/utils/misc.d.ts +5 -0
  444. package/cjs/utils/store.cjs +12 -0
  445. package/cjs/utils/store.d.ts +77 -0
  446. package/cjs/utils/system.cjs +12 -0
  447. package/cjs/utils/system.d.ts +74 -0
  448. package/cjs/utils/types.cjs +1 -0
  449. package/cjs/utils/types.d.ts +73 -0
  450. package/cjs/visually-hidden/visually-hidden.cjs +9 -0
  451. package/cjs/visually-hidden/visually-hidden.d.ts +29 -0
  452. package/collection/collection/package.json +7 -0
  453. package/collection/collection-context/package.json +7 -0
  454. package/collection/collection-item/package.json +7 -0
  455. package/collection/collection-store/package.json +7 -0
  456. package/combobox/combobox/package.json +7 -0
  457. package/combobox/combobox-cancel/package.json +7 -0
  458. package/combobox/combobox-context/package.json +7 -0
  459. package/combobox/combobox-disclosure/package.json +7 -0
  460. package/combobox/combobox-group/package.json +7 -0
  461. package/combobox/combobox-group-label/package.json +7 -0
  462. package/combobox/combobox-item/package.json +7 -0
  463. package/combobox/combobox-item-value/package.json +7 -0
  464. package/combobox/combobox-list/package.json +7 -0
  465. package/combobox/combobox-popover/package.json +7 -0
  466. package/combobox/combobox-row/package.json +7 -0
  467. package/combobox/combobox-separator/package.json +7 -0
  468. package/combobox/combobox-store/package.json +7 -0
  469. package/command/command/package.json +7 -0
  470. package/composite/composite/package.json +7 -0
  471. package/composite/composite-container/package.json +7 -0
  472. package/composite/composite-context/package.json +7 -0
  473. package/composite/composite-group/package.json +7 -0
  474. package/composite/composite-group-label/package.json +7 -0
  475. package/composite/composite-hover/package.json +7 -0
  476. package/composite/composite-input/package.json +7 -0
  477. package/composite/composite-item/package.json +7 -0
  478. package/composite/composite-overflow/package.json +7 -0
  479. package/composite/composite-overflow-disclosure/package.json +7 -0
  480. package/composite/composite-overflow-store/package.json +7 -0
  481. package/composite/composite-row/package.json +7 -0
  482. package/composite/composite-separator/package.json +7 -0
  483. package/composite/composite-store/package.json +7 -0
  484. package/composite/composite-typeahead/package.json +7 -0
  485. package/composite/utils/package.json +7 -0
  486. package/dialog/dialog/package.json +7 -0
  487. package/dialog/dialog-backdrop/package.json +7 -0
  488. package/dialog/dialog-context/package.json +7 -0
  489. package/dialog/dialog-description/package.json +7 -0
  490. package/dialog/dialog-disclosure/package.json +7 -0
  491. package/dialog/dialog-dismiss/package.json +7 -0
  492. package/dialog/dialog-heading/package.json +7 -0
  493. package/dialog/dialog-store/package.json +7 -0
  494. package/dialog/utils/disable-accessibility-tree-outside/package.json +7 -0
  495. package/dialog/utils/disable-pointer-events-outside/package.json +7 -0
  496. package/dialog/utils/prepend-hidden-dismiss/package.json +7 -0
  497. package/dialog/utils/use-champion-dialog/package.json +7 -0
  498. package/dialog/utils/use-focus-on-child-unmount/package.json +7 -0
  499. package/dialog/utils/use-hide-on-interact-outside/package.json +7 -0
  500. package/dialog/utils/use-nested-dialogs/package.json +7 -0
  501. package/dialog/utils/use-prevent-body-scroll/package.json +7 -0
  502. package/dialog/utils/use-previous-mouse-down-ref/package.json +7 -0
  503. package/dialog/utils/walk-tree-outside/package.json +7 -0
  504. package/disclosure/disclosure/package.json +7 -0
  505. package/disclosure/disclosure-content/package.json +7 -0
  506. package/disclosure/disclosure-store/package.json +7 -0
  507. package/esm/__chunks/2EP53RLR.js +39 -0
  508. package/esm/__chunks/2SVAPVVI.js +78 -0
  509. package/esm/__chunks/3OSYJZM5.js +213 -0
  510. package/esm/__chunks/47TE2UD5.js +29 -0
  511. package/esm/__chunks/4IVDKH63.js +82 -0
  512. package/esm/__chunks/4RNONDN5.js +142 -0
  513. package/esm/__chunks/4U6AOLE4.js +104 -0
  514. package/esm/__chunks/547F7FFZ.js +30 -0
  515. package/esm/__chunks/56XURSTF.js +27 -0
  516. package/esm/__chunks/57UTLR6J.js +76 -0
  517. package/esm/__chunks/5TGAWEHD.js +354 -0
  518. package/esm/__chunks/5VGBBGF5.js +13 -0
  519. package/esm/__chunks/6DAEYZ43.js +75 -0
  520. package/esm/__chunks/6GS36SYX.js +9 -0
  521. package/esm/__chunks/6I2PARRP.js +7 -0
  522. package/esm/__chunks/6OCAIYRY.js +130 -0
  523. package/esm/__chunks/6OMX4H3W.js +19 -0
  524. package/esm/__chunks/6THLPTJO.js +73 -0
  525. package/esm/__chunks/7JNF6I52.js +21 -0
  526. package/esm/__chunks/A2DUDEP2.js +28 -0
  527. package/esm/__chunks/B3AF63GK.js +28 -0
  528. package/esm/__chunks/B7MIN7YT.js +259 -0
  529. package/esm/__chunks/BIFSQ6O4.js +30 -0
  530. package/esm/__chunks/COQHFAEN.js +7 -0
  531. package/esm/__chunks/CWHDUB4A.js +28 -0
  532. package/esm/__chunks/DFUIIKXE.js +9 -0
  533. package/esm/__chunks/DGTYZREX.js +44 -0
  534. package/esm/__chunks/DRSUYUM5.js +102 -0
  535. package/esm/__chunks/DVR5Q5UR.js +30 -0
  536. package/esm/__chunks/EEVSGAZW.js +9 -0
  537. package/esm/__chunks/EJZ6BVXG.js +92 -0
  538. package/esm/__chunks/F3UCQW24.js +291 -0
  539. package/esm/__chunks/F5VAC7MB.js +7 -0
  540. package/esm/__chunks/FFRIGW5T.js +108 -0
  541. package/esm/__chunks/FXC76SFN.js +326 -0
  542. package/esm/__chunks/GM7XQV7F.js +6 -0
  543. package/esm/__chunks/GUVHAKSF.js +62 -0
  544. package/esm/__chunks/H5L4MRQM.js +67 -0
  545. package/esm/__chunks/HLAXMBLL.js +174 -0
  546. package/esm/__chunks/HMJVMCGK.js +30 -0
  547. package/esm/__chunks/HOVZF3TA.js +29 -0
  548. package/esm/__chunks/HRNQJHNJ.js +24 -0
  549. package/esm/__chunks/HS4EASQI.js +45 -0
  550. package/esm/__chunks/HTHL3GU7.js +46 -0
  551. package/esm/__chunks/HVBRRKV4.js +15 -0
  552. package/esm/__chunks/HVXLVRRR.js +28 -0
  553. package/esm/__chunks/I4MLEPTM.js +47 -0
  554. package/esm/__chunks/IACKFX3D.js +182 -0
  555. package/esm/__chunks/JE5NWDDX.js +53 -0
  556. package/esm/__chunks/JKSMOXA4.js +56 -0
  557. package/esm/__chunks/JUUV3EHC.js +116 -0
  558. package/esm/__chunks/KHFKAEA6.js +74 -0
  559. package/esm/__chunks/KO6UUYKG.js +28 -0
  560. package/esm/__chunks/LDDPB3PY.js +7 -0
  561. package/esm/__chunks/LFCJQX2O.js +96 -0
  562. package/esm/__chunks/LNHZLQEK.js +11 -0
  563. package/esm/__chunks/LZKGMRGC.js +112 -0
  564. package/esm/__chunks/M5KYRTQG.js +7 -0
  565. package/esm/__chunks/NDTB3OGK.js +39 -0
  566. package/esm/__chunks/NMA53LJC.js +44 -0
  567. package/esm/__chunks/NO5K4U2Q.js +437 -0
  568. package/esm/__chunks/NRA7DRSD.js +30 -0
  569. package/esm/__chunks/NV7HSBKK.js +31 -0
  570. package/esm/__chunks/NYJYNUSY.js +30 -0
  571. package/esm/__chunks/OGTE6FGV.js +29 -0
  572. package/esm/__chunks/OJNRBQKS.js +57 -0
  573. package/esm/__chunks/OXIHLN45.js +28 -0
  574. package/esm/__chunks/P3I4MECH.js +7 -0
  575. package/esm/__chunks/PU22SOKH.js +29 -0
  576. package/esm/__chunks/Q7WBN353.js +98 -0
  577. package/esm/__chunks/QYIULXLT.js +55 -0
  578. package/esm/__chunks/RFLPDFU5.js +123 -0
  579. package/esm/__chunks/RNWB46DZ.js +31 -0
  580. package/esm/__chunks/RSJJ72ZD.js +51 -0
  581. package/esm/__chunks/SAVDGYCC.js +138 -0
  582. package/esm/__chunks/SDULECC7.js +39 -0
  583. package/esm/__chunks/SE2URGHN.js +28 -0
  584. package/esm/__chunks/SE7IFIBU.js +41 -0
  585. package/esm/__chunks/SG5D3YRB.js +41 -0
  586. package/esm/__chunks/SJEKLK5Q.js +8 -0
  587. package/esm/__chunks/STKLF26R.js +83 -0
  588. package/esm/__chunks/SXC6BPOF.js +12 -0
  589. package/esm/__chunks/T3DJZG63.js +9 -0
  590. package/esm/__chunks/TCSUGBIK.js +30 -0
  591. package/esm/__chunks/TTILJGKR.js +28 -0
  592. package/esm/__chunks/TUP5WTZZ.js +125 -0
  593. package/esm/__chunks/UZKBEGMB.js +7 -0
  594. package/esm/__chunks/VDIWPJGE.js +80 -0
  595. package/esm/__chunks/WHN4PCW7.js +337 -0
  596. package/esm/__chunks/WO2RXMKK.js +31 -0
  597. package/esm/__chunks/WOX4XCVH.js +158 -0
  598. package/esm/__chunks/X7FKJQME.js +87 -0
  599. package/esm/__chunks/YDNX3N4B.js +116 -0
  600. package/esm/__chunks/Z3X3QN6P.js +13 -0
  601. package/esm/__chunks/Z5BJMNGY.js +9 -0
  602. package/esm/__chunks/ZVCQYVEV.js +44 -0
  603. package/esm/button/button.d.ts +26 -0
  604. package/esm/button/button.js +13 -0
  605. package/esm/checkbox/checkbox-check.d.ts +37 -0
  606. package/esm/checkbox/checkbox-check.js +10 -0
  607. package/esm/checkbox/checkbox-checked-context.d.ts +1 -0
  608. package/esm/checkbox/checkbox-checked-context.js +6 -0
  609. package/esm/checkbox/checkbox-store.d.ts +36 -0
  610. package/esm/checkbox/checkbox-store.js +13 -0
  611. package/esm/checkbox/checkbox.d.ts +65 -0
  612. package/esm/checkbox/checkbox.js +15 -0
  613. package/esm/collection/collection-context.d.ts +5 -0
  614. package/esm/collection/collection-context.js +6 -0
  615. package/esm/collection/collection-item.d.ts +55 -0
  616. package/esm/collection/collection-item.js +12 -0
  617. package/esm/collection/collection-store.d.ts +39 -0
  618. package/esm/collection/collection-store.js +13 -0
  619. package/esm/collection/collection.d.ts +42 -0
  620. package/esm/collection/collection.js +36 -0
  621. package/esm/combobox/combobox-cancel.d.ts +39 -0
  622. package/esm/combobox/combobox-cancel.js +75 -0
  623. package/esm/combobox/combobox-context.d.ts +3 -0
  624. package/esm/combobox/combobox-context.js +8 -0
  625. package/esm/combobox/combobox-disclosure.d.ts +45 -0
  626. package/esm/combobox/combobox-disclosure.js +80 -0
  627. package/esm/combobox/combobox-group-label.d.ts +43 -0
  628. package/esm/combobox/combobox-group-label.js +33 -0
  629. package/esm/combobox/combobox-group.d.ts +46 -0
  630. package/esm/combobox/combobox-group.js +29 -0
  631. package/esm/combobox/combobox-item-value.d.ts +64 -0
  632. package/esm/combobox/combobox-item-value.js +77 -0
  633. package/esm/combobox/combobox-item.d.ts +69 -0
  634. package/esm/combobox/combobox-item.js +151 -0
  635. package/esm/combobox/combobox-list.d.ts +42 -0
  636. package/esm/combobox/combobox-list.js +12 -0
  637. package/esm/combobox/combobox-popover.d.ts +39 -0
  638. package/esm/combobox/combobox-popover.js +94 -0
  639. package/esm/combobox/combobox-row.d.ts +50 -0
  640. package/esm/combobox/combobox-row.js +46 -0
  641. package/esm/combobox/combobox-separator.d.ts +43 -0
  642. package/esm/combobox/combobox-separator.js +42 -0
  643. package/esm/combobox/combobox-store.d.ts +81 -0
  644. package/esm/combobox/combobox-store.js +44 -0
  645. package/esm/combobox/combobox.d.ts +124 -0
  646. package/esm/combobox/combobox.js +324 -0
  647. package/esm/command/command.d.ts +38 -0
  648. package/esm/command/command.js +12 -0
  649. package/esm/composite/composite-container.d.ts +44 -0
  650. package/esm/composite/composite-container.js +14 -0
  651. package/esm/composite/composite-context.d.ts +9 -0
  652. package/esm/composite/composite-context.js +10 -0
  653. package/esm/composite/composite-group-label.d.ts +42 -0
  654. package/esm/composite/composite-group-label.js +13 -0
  655. package/esm/composite/composite-group.d.ts +44 -0
  656. package/esm/composite/composite-group.js +13 -0
  657. package/esm/composite/composite-hover.d.ts +47 -0
  658. package/esm/composite/composite-hover.js +12 -0
  659. package/esm/composite/composite-input.d.ts +39 -0
  660. package/esm/composite/composite-input.js +12 -0
  661. package/esm/composite/composite-item.d.ts +56 -0
  662. package/esm/composite/composite-item.js +17 -0
  663. package/esm/composite/composite-overflow-disclosure.d.ts +45 -0
  664. package/esm/composite/composite-overflow-disclosure.js +74 -0
  665. package/esm/composite/composite-overflow-store.d.ts +46 -0
  666. package/esm/composite/composite-overflow-store.js +32 -0
  667. package/esm/composite/composite-overflow.d.ts +46 -0
  668. package/esm/composite/composite-overflow.js +97 -0
  669. package/esm/composite/composite-row.d.ts +52 -0
  670. package/esm/composite/composite-row.js +12 -0
  671. package/esm/composite/composite-separator.d.ts +40 -0
  672. package/esm/composite/composite-separator.js +11 -0
  673. package/esm/composite/composite-store.d.ts +40 -0
  674. package/esm/composite/composite-store.js +14 -0
  675. package/esm/composite/composite-typeahead.d.ts +43 -0
  676. package/esm/composite/composite-typeahead.js +13 -0
  677. package/esm/composite/composite.d.ts +74 -0
  678. package/esm/composite/composite.js +14 -0
  679. package/esm/composite/utils.d.ts +69 -0
  680. package/esm/composite/utils.js +20 -0
  681. package/esm/dialog/dialog-backdrop.d.ts +7 -0
  682. package/esm/dialog/dialog-backdrop.js +11 -0
  683. package/esm/dialog/dialog-context.d.ts +5 -0
  684. package/esm/dialog/dialog-context.js +10 -0
  685. package/esm/dialog/dialog-description.d.ts +37 -0
  686. package/esm/dialog/dialog-description.js +12 -0
  687. package/esm/dialog/dialog-disclosure.d.ts +33 -0
  688. package/esm/dialog/dialog-disclosure.js +15 -0
  689. package/esm/dialog/dialog-dismiss.d.ts +35 -0
  690. package/esm/dialog/dialog-dismiss.js +15 -0
  691. package/esm/dialog/dialog-heading.d.ts +37 -0
  692. package/esm/dialog/dialog-heading.js +14 -0
  693. package/esm/dialog/dialog-store.d.ts +24 -0
  694. package/esm/dialog/dialog-store.js +14 -0
  695. package/esm/dialog/dialog.d.ts +120 -0
  696. package/esm/dialog/dialog.js +32 -0
  697. package/esm/dialog/utils/disable-accessibility-tree-outside.d.ts +3 -0
  698. package/esm/dialog/utils/disable-accessibility-tree-outside.js +7 -0
  699. package/esm/dialog/utils/disable-pointer-events-outside.d.ts +3 -0
  700. package/esm/dialog/utils/disable-pointer-events-outside.js +7 -0
  701. package/esm/dialog/utils/prepend-hidden-dismiss.d.ts +1 -0
  702. package/esm/dialog/utils/prepend-hidden-dismiss.js +6 -0
  703. package/esm/dialog/utils/use-champion-dialog.d.ts +6 -0
  704. package/esm/dialog/utils/use-champion-dialog.js +8 -0
  705. package/esm/dialog/utils/use-focus-on-child-unmount.d.ts +6 -0
  706. package/esm/dialog/utils/use-focus-on-child-unmount.js +6 -0
  707. package/esm/dialog/utils/use-hide-on-interact-outside.d.ts +6 -0
  708. package/esm/dialog/utils/use-hide-on-interact-outside.js +9 -0
  709. package/esm/dialog/utils/use-nested-dialogs.d.ts +10 -0
  710. package/esm/dialog/utils/use-nested-dialogs.js +8 -0
  711. package/esm/dialog/utils/use-prevent-body-scroll.d.ts +2 -0
  712. package/esm/dialog/utils/use-prevent-body-scroll.js +9 -0
  713. package/esm/dialog/utils/use-previous-mouse-down-ref.d.ts +1 -0
  714. package/esm/dialog/utils/use-previous-mouse-down-ref.js +6 -0
  715. package/esm/dialog/utils/walk-tree-outside.d.ts +4 -0
  716. package/esm/dialog/utils/walk-tree-outside.js +8 -0
  717. package/esm/disclosure/disclosure-content.d.ts +32 -0
  718. package/esm/disclosure/disclosure-content.js +11 -0
  719. package/esm/disclosure/disclosure-store.d.ts +29 -0
  720. package/esm/disclosure/disclosure-store.js +13 -0
  721. package/esm/disclosure/disclosure.d.ts +42 -0
  722. package/esm/disclosure/disclosure.js +14 -0
  723. package/esm/focus-trap/focus-trap-region.d.ts +32 -0
  724. package/esm/focus-trap/focus-trap-region.js +13 -0
  725. package/esm/focus-trap/focus-trap.d.ts +23 -0
  726. package/esm/focus-trap/focus-trap.js +10 -0
  727. package/esm/focusable/focusable.d.ts +65 -0
  728. package/esm/focusable/focusable.js +11 -0
  729. package/esm/form/form-checkbox.d.ts +37 -0
  730. package/esm/form/form-checkbox.js +65 -0
  731. package/esm/form/form-context.d.ts +2 -0
  732. package/esm/form/form-context.js +6 -0
  733. package/esm/form/form-description.d.ts +47 -0
  734. package/esm/form/form-description.js +69 -0
  735. package/esm/form/form-error.d.ts +60 -0
  736. package/esm/form/form-error.js +72 -0
  737. package/esm/form/form-field.d.ts +72 -0
  738. package/esm/form/form-field.js +14 -0
  739. package/esm/form/form-group-label.d.ts +49 -0
  740. package/esm/form/form-group-label.js +32 -0
  741. package/esm/form/form-group.d.ts +49 -0
  742. package/esm/form/form-group.js +13 -0
  743. package/esm/form/form-input.d.ts +37 -0
  744. package/esm/form/form-input.js +62 -0
  745. package/esm/form/form-label.d.ts +51 -0
  746. package/esm/form/form-label.js +102 -0
  747. package/esm/form/form-push.d.ts +77 -0
  748. package/esm/form/form-push.js +109 -0
  749. package/esm/form/form-radio-group.d.ts +39 -0
  750. package/esm/form/form-radio-group.js +34 -0
  751. package/esm/form/form-radio.d.ts +43 -0
  752. package/esm/form/form-radio.js +77 -0
  753. package/esm/form/form-remove.d.ts +76 -0
  754. package/esm/form/form-remove.js +92 -0
  755. package/esm/form/form-reset.d.ts +36 -0
  756. package/esm/form/form-reset.js +47 -0
  757. package/esm/form/form-store.d.ts +104 -0
  758. package/esm/form/form-store.js +53 -0
  759. package/esm/form/form-submit.d.ts +40 -0
  760. package/esm/form/form-submit.js +47 -0
  761. package/esm/form/form.d.ts +63 -0
  762. package/esm/form/form.js +141 -0
  763. package/esm/group/group-label-context.d.ts +2 -0
  764. package/esm/group/group-label-context.js +6 -0
  765. package/esm/group/group-label.d.ts +28 -0
  766. package/esm/group/group-label.js +12 -0
  767. package/esm/group/group.d.ts +22 -0
  768. package/esm/group/group.js +12 -0
  769. package/esm/heading/heading-context.d.ts +2 -0
  770. package/esm/heading/heading-context.js +6 -0
  771. package/esm/heading/heading-level.d.ts +25 -0
  772. package/esm/heading/heading-level.js +7 -0
  773. package/esm/heading/heading.d.ts +34 -0
  774. package/esm/heading/heading.js +12 -0
  775. package/esm/heading/utils.d.ts +1 -0
  776. package/esm/heading/utils.js +0 -0
  777. package/esm/hovercard/hovercard-anchor.d.ts +40 -0
  778. package/esm/hovercard/hovercard-anchor.js +12 -0
  779. package/esm/hovercard/hovercard-arrow.d.ts +39 -0
  780. package/esm/hovercard/hovercard-arrow.js +31 -0
  781. package/esm/hovercard/hovercard-description.d.ts +38 -0
  782. package/esm/hovercard/hovercard-description.js +14 -0
  783. package/esm/hovercard/hovercard-disclosure.d.ts +37 -0
  784. package/esm/hovercard/hovercard-disclosure.js +133 -0
  785. package/esm/hovercard/hovercard-dismiss.d.ts +36 -0
  786. package/esm/hovercard/hovercard-dismiss.js +17 -0
  787. package/esm/hovercard/hovercard-heading.d.ts +38 -0
  788. package/esm/hovercard/hovercard-heading.js +16 -0
  789. package/esm/hovercard/hovercard-store.d.ts +36 -0
  790. package/esm/hovercard/hovercard-store.js +16 -0
  791. package/esm/hovercard/hovercard.d.ts +63 -0
  792. package/esm/hovercard/hovercard.js +36 -0
  793. package/esm/hovercard/utils/__tests__/polygon-test.d.ts +1 -0
  794. package/esm/hovercard/utils/debug-polygon.d.ts +2 -0
  795. package/esm/hovercard/utils/debug-polygon.js +36 -0
  796. package/esm/hovercard/utils/polygon.d.ts +5 -0
  797. package/esm/hovercard/utils/polygon.js +10 -0
  798. package/esm/index.d.ts +2 -0
  799. package/esm/index.js +5 -0
  800. package/esm/menu/menu-arrow.d.ts +38 -0
  801. package/esm/menu/menu-arrow.js +28 -0
  802. package/esm/menu/menu-bar-store.d.ts +30 -0
  803. package/esm/menu/menu-bar-store.js +31 -0
  804. package/esm/menu/menu-bar.d.ts +61 -0
  805. package/esm/menu/menu-bar.js +53 -0
  806. package/esm/menu/menu-button-arrow.d.ts +47 -0
  807. package/esm/menu/menu-button-arrow.js +30 -0
  808. package/esm/menu/menu-button.d.ts +50 -0
  809. package/esm/menu/menu-button.js +177 -0
  810. package/esm/menu/menu-context.d.ts +5 -0
  811. package/esm/menu/menu-context.js +10 -0
  812. package/esm/menu/menu-description.d.ts +37 -0
  813. package/esm/menu/menu-description.js +34 -0
  814. package/esm/menu/menu-dismiss.d.ts +36 -0
  815. package/esm/menu/menu-dismiss.js +33 -0
  816. package/esm/menu/menu-group-label.d.ts +42 -0
  817. package/esm/menu/menu-group-label.js +31 -0
  818. package/esm/menu/menu-group.d.ts +45 -0
  819. package/esm/menu/menu-group.js +29 -0
  820. package/esm/menu/menu-heading.d.ts +37 -0
  821. package/esm/menu/menu-heading.js +32 -0
  822. package/esm/menu/menu-item-check.d.ts +44 -0
  823. package/esm/menu/menu-item-check.js +34 -0
  824. package/esm/menu/menu-item-checkbox.d.ts +47 -0
  825. package/esm/menu/menu-item-checkbox.js +68 -0
  826. package/esm/menu/menu-item-radio.d.ts +54 -0
  827. package/esm/menu/menu-item-radio.js +91 -0
  828. package/esm/menu/menu-item.d.ts +55 -0
  829. package/esm/menu/menu-item.js +22 -0
  830. package/esm/menu/menu-list.d.ts +40 -0
  831. package/esm/menu/menu-list.js +18 -0
  832. package/esm/menu/menu-separator.d.ts +44 -0
  833. package/esm/menu/menu-separator.js +27 -0
  834. package/esm/menu/menu-store.d.ts +86 -0
  835. package/esm/menu/menu-store.js +73 -0
  836. package/esm/menu/menu.d.ts +35 -0
  837. package/esm/menu/menu.js +182 -0
  838. package/esm/menu/utils.d.ts +2 -0
  839. package/esm/menu/utils.js +6 -0
  840. package/esm/popover/popover-anchor.d.ts +33 -0
  841. package/esm/popover/popover-anchor.js +11 -0
  842. package/esm/popover/popover-arrow-path.d.ts +1 -0
  843. package/esm/popover/popover-arrow-path.js +6 -0
  844. package/esm/popover/popover-arrow.d.ts +42 -0
  845. package/esm/popover/popover-arrow.js +13 -0
  846. package/esm/popover/popover-context.d.ts +2 -0
  847. package/esm/popover/popover-context.js +6 -0
  848. package/esm/popover/popover-description.d.ts +38 -0
  849. package/esm/popover/popover-description.js +13 -0
  850. package/esm/popover/popover-disclosure-arrow.d.ts +44 -0
  851. package/esm/popover/popover-disclosure-arrow.js +10 -0
  852. package/esm/popover/popover-disclosure.d.ts +29 -0
  853. package/esm/popover/popover-disclosure.js +18 -0
  854. package/esm/popover/popover-dismiss.d.ts +36 -0
  855. package/esm/popover/popover-dismiss.js +16 -0
  856. package/esm/popover/popover-heading.d.ts +37 -0
  857. package/esm/popover/popover-heading.js +15 -0
  858. package/esm/popover/popover-store.d.ts +36 -0
  859. package/esm/popover/popover-store.js +15 -0
  860. package/esm/popover/popover.d.ts +38 -0
  861. package/esm/popover/popover.js +34 -0
  862. package/esm/portal/portal-context.d.ts +17 -0
  863. package/esm/portal/portal-context.js +6 -0
  864. package/esm/portal/portal.d.ts +64 -0
  865. package/esm/portal/portal.js +14 -0
  866. package/esm/radio/radio-context.d.ts +2 -0
  867. package/esm/radio/radio-context.js +6 -0
  868. package/esm/radio/radio-group.d.ts +37 -0
  869. package/esm/radio/radio-group.js +47 -0
  870. package/esm/radio/radio-store.d.ts +42 -0
  871. package/esm/radio/radio-store.js +32 -0
  872. package/esm/radio/radio.d.ts +52 -0
  873. package/esm/radio/radio.js +20 -0
  874. package/esm/role/role.d.ts +24 -0
  875. package/esm/role/role.js +20 -0
  876. package/esm/select/select-arrow.d.ts +47 -0
  877. package/esm/select/select-arrow.js +11 -0
  878. package/esm/select/select-context.d.ts +3 -0
  879. package/esm/select/select-context.js +8 -0
  880. package/esm/select/select-group-label.d.ts +48 -0
  881. package/esm/select/select-group-label.js +33 -0
  882. package/esm/select/select-group.d.ts +46 -0
  883. package/esm/select/select-group.js +29 -0
  884. package/esm/select/select-item-check.d.ts +51 -0
  885. package/esm/select/select-item-check.js +36 -0
  886. package/esm/select/select-item.d.ts +74 -0
  887. package/esm/select/select-item.js +168 -0
  888. package/esm/select/select-label.d.ts +43 -0
  889. package/esm/select/select-label.js +51 -0
  890. package/esm/select/select-list.d.ts +57 -0
  891. package/esm/select/select-list.js +17 -0
  892. package/esm/select/select-popover.d.ts +36 -0
  893. package/esm/select/select-popover.js +61 -0
  894. package/esm/select/select-row.d.ts +47 -0
  895. package/esm/select/select-row.js +46 -0
  896. package/esm/select/select-separator.d.ts +43 -0
  897. package/esm/select/select-separator.js +31 -0
  898. package/esm/select/select-store.d.ts +86 -0
  899. package/esm/select/select-store.js +44 -0
  900. package/esm/select/select.d.ts +64 -0
  901. package/esm/select/select.js +248 -0
  902. package/esm/separator/separator.d.ts +28 -0
  903. package/esm/separator/separator.js +9 -0
  904. package/esm/tab/tab-context.d.ts +2 -0
  905. package/esm/tab/tab-context.js +6 -0
  906. package/esm/tab/tab-list.d.ts +41 -0
  907. package/esm/tab/tab-list.js +49 -0
  908. package/esm/tab/tab-panel.d.ts +46 -0
  909. package/esm/tab/tab-panel.js +81 -0
  910. package/esm/tab/tab-store.d.ts +60 -0
  911. package/esm/tab/tab-store.js +35 -0
  912. package/esm/tab/tab.d.ts +45 -0
  913. package/esm/tab/tab.js +92 -0
  914. package/esm/toolbar/toolbar-container.d.ts +35 -0
  915. package/esm/toolbar/toolbar-container.js +43 -0
  916. package/esm/toolbar/toolbar-context.d.ts +2 -0
  917. package/esm/toolbar/toolbar-context.js +6 -0
  918. package/esm/toolbar/toolbar-input.d.ts +31 -0
  919. package/esm/toolbar/toolbar-input.js +42 -0
  920. package/esm/toolbar/toolbar-item.d.ts +36 -0
  921. package/esm/toolbar/toolbar-item.js +18 -0
  922. package/esm/toolbar/toolbar-separator.d.ts +40 -0
  923. package/esm/toolbar/toolbar-separator.js +31 -0
  924. package/esm/toolbar/toolbar-store.d.ts +34 -0
  925. package/esm/toolbar/toolbar-store.js +31 -0
  926. package/esm/toolbar/toolbar.d.ts +37 -0
  927. package/esm/toolbar/toolbar.js +49 -0
  928. package/esm/tooltip/tooltip-anchor.d.ts +51 -0
  929. package/esm/tooltip/tooltip-anchor.js +72 -0
  930. package/esm/tooltip/tooltip-arrow.d.ts +40 -0
  931. package/esm/tooltip/tooltip-arrow.js +42 -0
  932. package/esm/tooltip/tooltip-context.d.ts +2 -0
  933. package/esm/tooltip/tooltip-context.js +6 -0
  934. package/esm/tooltip/tooltip-store.d.ts +36 -0
  935. package/esm/tooltip/tooltip-store.js +32 -0
  936. package/esm/tooltip/tooltip.d.ts +56 -0
  937. package/esm/tooltip/tooltip.js +111 -0
  938. package/esm/tsconfig.build.tsbuildinfo +1 -0
  939. package/esm/utils/hooks.d.ts +125 -0
  940. package/esm/utils/hooks.js +43 -0
  941. package/esm/utils/misc.d.ts +5 -0
  942. package/esm/utils/misc.js +6 -0
  943. package/esm/utils/store.d.ts +77 -0
  944. package/esm/utils/store.js +12 -0
  945. package/esm/utils/system.d.ts +74 -0
  946. package/esm/utils/system.js +12 -0
  947. package/esm/utils/types.d.ts +73 -0
  948. package/esm/utils/types.js +0 -0
  949. package/esm/visually-hidden/visually-hidden.d.ts +29 -0
  950. package/esm/visually-hidden/visually-hidden.js +9 -0
  951. package/focus-trap/focus-trap/package.json +7 -0
  952. package/focus-trap/focus-trap-region/package.json +7 -0
  953. package/focusable/focusable/package.json +7 -0
  954. package/form/form/package.json +7 -0
  955. package/form/form-checkbox/package.json +7 -0
  956. package/form/form-context/package.json +7 -0
  957. package/form/form-description/package.json +7 -0
  958. package/form/form-error/package.json +7 -0
  959. package/form/form-field/package.json +7 -0
  960. package/form/form-group/package.json +7 -0
  961. package/form/form-group-label/package.json +7 -0
  962. package/form/form-input/package.json +7 -0
  963. package/form/form-label/package.json +7 -0
  964. package/form/form-push/package.json +7 -0
  965. package/form/form-radio/package.json +7 -0
  966. package/form/form-radio-group/package.json +7 -0
  967. package/form/form-remove/package.json +7 -0
  968. package/form/form-reset/package.json +7 -0
  969. package/form/form-store/package.json +7 -0
  970. package/form/form-submit/package.json +7 -0
  971. package/group/group/package.json +7 -0
  972. package/group/group-label/package.json +7 -0
  973. package/group/group-label-context/package.json +7 -0
  974. package/heading/heading/package.json +7 -0
  975. package/heading/heading-context/package.json +7 -0
  976. package/heading/heading-level/package.json +7 -0
  977. package/heading/utils/package.json +7 -0
  978. package/hovercard/hovercard/package.json +7 -0
  979. package/hovercard/hovercard-anchor/package.json +7 -0
  980. package/hovercard/hovercard-arrow/package.json +7 -0
  981. package/hovercard/hovercard-description/package.json +7 -0
  982. package/hovercard/hovercard-disclosure/package.json +7 -0
  983. package/hovercard/hovercard-dismiss/package.json +7 -0
  984. package/hovercard/hovercard-heading/package.json +7 -0
  985. package/hovercard/hovercard-store/package.json +7 -0
  986. package/hovercard/utils/debug-polygon/package.json +7 -0
  987. package/hovercard/utils/polygon/package.json +7 -0
  988. package/license +21 -0
  989. package/menu/menu/package.json +7 -0
  990. package/menu/menu-arrow/package.json +7 -0
  991. package/menu/menu-bar/package.json +7 -0
  992. package/menu/menu-bar-store/package.json +7 -0
  993. package/menu/menu-button/package.json +7 -0
  994. package/menu/menu-button-arrow/package.json +7 -0
  995. package/menu/menu-context/package.json +7 -0
  996. package/menu/menu-description/package.json +7 -0
  997. package/menu/menu-dismiss/package.json +7 -0
  998. package/menu/menu-group/package.json +7 -0
  999. package/menu/menu-group-label/package.json +7 -0
  1000. package/menu/menu-heading/package.json +7 -0
  1001. package/menu/menu-item/package.json +7 -0
  1002. package/menu/menu-item-check/package.json +7 -0
  1003. package/menu/menu-item-checkbox/package.json +7 -0
  1004. package/menu/menu-item-radio/package.json +7 -0
  1005. package/menu/menu-list/package.json +7 -0
  1006. package/menu/menu-separator/package.json +7 -0
  1007. package/menu/menu-store/package.json +7 -0
  1008. package/menu/utils/package.json +7 -0
  1009. package/package.json +729 -8
  1010. package/popover/popover/package.json +7 -0
  1011. package/popover/popover-anchor/package.json +7 -0
  1012. package/popover/popover-arrow/package.json +7 -0
  1013. package/popover/popover-arrow-path/package.json +7 -0
  1014. package/popover/popover-context/package.json +7 -0
  1015. package/popover/popover-description/package.json +7 -0
  1016. package/popover/popover-disclosure/package.json +7 -0
  1017. package/popover/popover-disclosure-arrow/package.json +7 -0
  1018. package/popover/popover-dismiss/package.json +7 -0
  1019. package/popover/popover-heading/package.json +7 -0
  1020. package/popover/popover-store/package.json +7 -0
  1021. package/portal/portal/package.json +7 -0
  1022. package/portal/portal-context/package.json +7 -0
  1023. package/radio/radio/package.json +7 -0
  1024. package/radio/radio-context/package.json +7 -0
  1025. package/radio/radio-group/package.json +7 -0
  1026. package/radio/radio-store/package.json +7 -0
  1027. package/role/role/package.json +7 -0
  1028. package/select/select/package.json +7 -0
  1029. package/select/select-arrow/package.json +7 -0
  1030. package/select/select-context/package.json +7 -0
  1031. package/select/select-group/package.json +7 -0
  1032. package/select/select-group-label/package.json +7 -0
  1033. package/select/select-item/package.json +7 -0
  1034. package/select/select-item-check/package.json +7 -0
  1035. package/select/select-label/package.json +7 -0
  1036. package/select/select-list/package.json +7 -0
  1037. package/select/select-popover/package.json +7 -0
  1038. package/select/select-row/package.json +7 -0
  1039. package/select/select-separator/package.json +7 -0
  1040. package/select/select-store/package.json +7 -0
  1041. package/separator/separator/package.json +7 -0
  1042. package/tab/tab/package.json +7 -0
  1043. package/tab/tab-context/package.json +7 -0
  1044. package/tab/tab-list/package.json +7 -0
  1045. package/tab/tab-panel/package.json +7 -0
  1046. package/tab/tab-store/package.json +7 -0
  1047. package/toolbar/toolbar/package.json +7 -0
  1048. package/toolbar/toolbar-container/package.json +7 -0
  1049. package/toolbar/toolbar-context/package.json +7 -0
  1050. package/toolbar/toolbar-input/package.json +7 -0
  1051. package/toolbar/toolbar-item/package.json +7 -0
  1052. package/toolbar/toolbar-separator/package.json +7 -0
  1053. package/toolbar/toolbar-store/package.json +7 -0
  1054. package/tooltip/tooltip/package.json +7 -0
  1055. package/tooltip/tooltip-anchor/package.json +7 -0
  1056. package/tooltip/tooltip-arrow/package.json +7 -0
  1057. package/tooltip/tooltip-context/package.json +7 -0
  1058. package/tooltip/tooltip-store/package.json +7 -0
  1059. package/tsconfig.build.json +4 -0
  1060. package/utils/hooks/package.json +7 -0
  1061. package/utils/misc/package.json +7 -0
  1062. package/utils/store/package.json +7 -0
  1063. package/utils/system/package.json +7 -0
  1064. package/utils/types/package.json +7 -0
  1065. package/visually-hidden/visually-hidden/package.json +7 -0
@@ -0,0 +1,120 @@
1
+ import type { ComponentProps, ElementType, KeyboardEvent as ReactKeyboardEvent, RefObject, SyntheticEvent } from "react";
2
+ import type { BooleanOrCallback } from "@ariakit/core/utils/types";
3
+ import type { DisclosureContentOptions, DisclosureContentProps } from "../disclosure/disclosure-content.js";
4
+ import type { FocusableOptions } from "../focusable/focusable.js";
5
+ import type { PortalOptions } from "../portal/portal.js";
6
+ import type { As, Props } from "../utils/types.js";
7
+ import type { DialogStore } from "./dialog-store.js";
8
+ /**
9
+ * Returns props to create a `Dialog` component.
10
+ * @see https://ariakit.org/components/dialog
11
+ * @example
12
+ * ```jsx
13
+ * const store = useDialogStore();
14
+ * const props = useDialog({ store });
15
+ * <Role {...props}>Dialog</Role>
16
+ * ```
17
+ */
18
+ export declare const useDialog: import("../utils/types.js").Hook<DialogOptions<"div">>;
19
+ /**
20
+ * Renders a dialog element.
21
+ * @see https://ariakit.org/components/dialog
22
+ * @example
23
+ * ```jsx
24
+ * const dialog = useDialogStore();
25
+ * <button onClick={dialog.toggle}>Open dialog</button>
26
+ * <Dialog store={dialog}>Dialog</Dialog>
27
+ * ```
28
+ */
29
+ export declare const Dialog: import("../utils/types.js").Component<DialogOptions<"div">>;
30
+ export interface DialogOptions<T extends As = "div"> extends FocusableOptions<T>, PortalOptions<T>, DisclosureContentOptions<T> {
31
+ /**
32
+ * Object returned by the `useDialogStore` hook.
33
+ */
34
+ store: DialogStore;
35
+ /**
36
+ * Determines whether the dialog is modal. Modal dialogs have distinct states
37
+ * and behaviors:
38
+ * - The `portal`, `backdrop` and `preventBodyScroll` props are set to
39
+ * `true`. They can still be manually set to `false`.
40
+ * - A visually hidden dismiss button will be rendered if the
41
+ * `DialogDismiss` component hasn't been used. This allows screen reader
42
+ * users to close the dialog.
43
+ * - The focus will be trapped within the dialog.
44
+ * - When the dialog is open, the elements outside of the dialog will be
45
+ * hidden to assistive technology users using the `aria-hidden` attribute.
46
+ * - When using the `Heading` or `DialogHeading` components within the
47
+ * dialog, their level will be reset so they start with `h1`.
48
+ * @default true
49
+ */
50
+ modal?: boolean;
51
+ /**
52
+ * Determines whether there will be a backdrop behind the dialog. On modal
53
+ * dialogs, this is `true` by default. Besides a `boolean`, this prop can also
54
+ * be a React component that will be rendered as the backdrop.
55
+ * @example
56
+ * ```jsx
57
+ * <Dialog backdrop={StyledBackdrop} />
58
+ * ```
59
+ */
60
+ backdrop?: boolean | ElementType<ComponentProps<"div">>;
61
+ /**
62
+ * Props that will be passed to the backdrop element if `backdrop` is `true`.
63
+ */
64
+ backdropProps?: Omit<DisclosureContentProps, "store">;
65
+ /**
66
+ * Determines whether the dialog will be hidden when the user presses the
67
+ * Escape key.
68
+ * @default true
69
+ */
70
+ hideOnEscape?: BooleanOrCallback<KeyboardEvent | ReactKeyboardEvent>;
71
+ /**
72
+ * Determines whether the dialog will be hidden when the user clicks or focus
73
+ * on an element outside of the dialog.
74
+ * @default true
75
+ */
76
+ hideOnInteractOutside?: BooleanOrCallback<Event | SyntheticEvent>;
77
+ /**
78
+ * Determines whether the body scrolling will be prevented when the dialog is
79
+ * shown.
80
+ */
81
+ preventBodyScroll?: boolean;
82
+ /**
83
+ * Determines whether an element inside the dialog will receive focus when the
84
+ * dialog is shown. By default, this is usually the first tabbable element in
85
+ * the dialog or the dialog itself. The `initialFocusRef` prop can be used to
86
+ * set a different element to receive focus.
87
+ * @default true
88
+ */
89
+ autoFocusOnShow?: BooleanOrCallback<HTMLElement>;
90
+ /**
91
+ * Determines whether an element outside of the dialog will be focused when
92
+ * the dialog is hidden if another element hasn't been focused in the action
93
+ * of hiding the dialog (for example, by clicking or tabbing into another
94
+ * tabbable element outside of the dialog). By default, this is usually the
95
+ * disclosure element. The `finalFocusRef` prop can be used to define a
96
+ * different element to be focused.
97
+ * @default true
98
+ */
99
+ autoFocusOnHide?: BooleanOrCallback<HTMLElement>;
100
+ /**
101
+ * Specifies the element that will receive focus when the dialog is first
102
+ * opened. It can be an `HTMLElement` or a `React.RefObject` with an
103
+ * `HTMLElement`. However, if `autoFocusOnShow` is set to `false`, this prop
104
+ * will have no effect. If left unset, the dialog will attempt to determine
105
+ * the initial focus element in the following order:
106
+ * 1. An element with an `autoFocus` prop.
107
+ * 2. The first tabbable element inside the dialog.
108
+ * 3. The dialog element itself.
109
+ */
110
+ initialFocus?: HTMLElement | RefObject<HTMLElement> | null;
111
+ /**
112
+ * Determines the element that will receive focus once the dialog is closed,
113
+ * provided that no other element has been focused while the dialog was being
114
+ * hidden (e.g., by clicking or tabbing into another tabbable element outside
115
+ * of the dialog). However, if `autoFocusOnHide` is set to `false`, this prop
116
+ * will have no effect. If left unset, the disclosure element will be used.
117
+ */
118
+ finalFocus?: HTMLElement | RefObject<HTMLElement> | null;
119
+ }
120
+ export type DialogProps<T extends As = "div"> = Props<DialogOptions<T>>;
@@ -0,0 +1,32 @@
1
+ import {
2
+ Dialog,
3
+ useDialog
4
+ } from "../__chunks/NO5K4U2Q.js";
5
+ import "../__chunks/4U6AOLE4.js";
6
+ import "../__chunks/HLAXMBLL.js";
7
+ import "../__chunks/WO2RXMKK.js";
8
+ import "../__chunks/PU22SOKH.js";
9
+ import "../__chunks/547F7FFZ.js";
10
+ import "../__chunks/NV7HSBKK.js";
11
+ import "../__chunks/2SVAPVVI.js";
12
+ import "../__chunks/HVXLVRRR.js";
13
+ import "../__chunks/7JNF6I52.js";
14
+ import "../__chunks/LFCJQX2O.js";
15
+ import "../__chunks/ZVCQYVEV.js";
16
+ import "../__chunks/EJZ6BVXG.js";
17
+ import "../__chunks/6OMX4H3W.js";
18
+ import "../__chunks/COQHFAEN.js";
19
+ import "../__chunks/LNHZLQEK.js";
20
+ import "../__chunks/5TGAWEHD.js";
21
+ import "../__chunks/3OSYJZM5.js";
22
+ import "../__chunks/NDTB3OGK.js";
23
+ import "../__chunks/LDDPB3PY.js";
24
+ import "../__chunks/FFRIGW5T.js";
25
+ import "../__chunks/SDULECC7.js";
26
+ import "../__chunks/JE5NWDDX.js";
27
+ import "../__chunks/B7MIN7YT.js";
28
+ import "../__chunks/SXC6BPOF.js";
29
+ export {
30
+ Dialog,
31
+ useDialog
32
+ };
@@ -0,0 +1,3 @@
1
+ type Elements = Array<Element | null>;
2
+ export declare function disableAccessibilityTreeOutside(...elements: Elements): () => void;
3
+ export {};
@@ -0,0 +1,7 @@
1
+ import {
2
+ disableAccessibilityTreeOutside
3
+ } from "../../__chunks/NV7HSBKK.js";
4
+ import "../../__chunks/HVXLVRRR.js";
5
+ export {
6
+ disableAccessibilityTreeOutside
7
+ };
@@ -0,0 +1,3 @@
1
+ type Elements = Array<Element | null>;
2
+ export declare function disablePointerEventsOutside(...elements: Elements): () => void;
3
+ export {};
@@ -0,0 +1,7 @@
1
+ import {
2
+ disablePointerEventsOutside
3
+ } from "../../__chunks/547F7FFZ.js";
4
+ import "../../__chunks/HVXLVRRR.js";
5
+ export {
6
+ disablePointerEventsOutside
7
+ };
@@ -0,0 +1 @@
1
+ export declare function prependHiddenDismiss(container: HTMLElement, onClick: () => unknown): () => void;
@@ -0,0 +1,6 @@
1
+ import {
2
+ prependHiddenDismiss
3
+ } from "../../__chunks/PU22SOKH.js";
4
+ export {
5
+ prependHiddenDismiss
6
+ };
@@ -0,0 +1,6 @@
1
+ import type { DialogStore } from "../dialog-store.js";
2
+ /**
3
+ * Controls which dialog is the champion that will control global behavior such
4
+ * as body scrolling and accessibility tree outside.
5
+ */
6
+ export declare function useChampionDialog(attribute: string, store: DialogStore, enabled?: boolean): () => boolean;
@@ -0,0 +1,8 @@
1
+ import {
2
+ useChampionDialog
3
+ } from "../../__chunks/ZVCQYVEV.js";
4
+ import "../../__chunks/B7MIN7YT.js";
5
+ import "../../__chunks/SXC6BPOF.js";
6
+ export {
7
+ useChampionDialog
8
+ };
@@ -0,0 +1,6 @@
1
+ import type { DialogStore } from "../dialog-store.js";
2
+ /**
3
+ * When the focused child gets removed from the DOM, we make sure to move focus
4
+ * to the dialog.
5
+ */
6
+ export declare function useFocusOnChildUnmount(store: DialogStore): void;
@@ -0,0 +1,6 @@
1
+ import {
2
+ useFocusOnChildUnmount
3
+ } from "../../__chunks/WO2RXMKK.js";
4
+ export {
5
+ useFocusOnChildUnmount
6
+ };
@@ -0,0 +1,6 @@
1
+ import type { DialogOptions } from "../dialog.js";
2
+ type Options = Pick<DialogOptions, "store" | "modal" | "hideOnInteractOutside"> & {
3
+ nestedDialogs: HTMLElement[];
4
+ };
5
+ export declare function useHideOnInteractOutside({ store, modal, hideOnInteractOutside, nestedDialogs, }: Options): void;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import {
2
+ useHideOnInteractOutside
3
+ } from "../../__chunks/HLAXMBLL.js";
4
+ import "../../__chunks/7JNF6I52.js";
5
+ import "../../__chunks/B7MIN7YT.js";
6
+ import "../../__chunks/SXC6BPOF.js";
7
+ export {
8
+ useHideOnInteractOutside
9
+ };
@@ -0,0 +1,10 @@
1
+ import type { WrapElement } from "../../utils/types.js";
2
+ import type { DialogStore } from "../dialog-store.js";
3
+ /**
4
+ * Handles nested dialogs.
5
+ */
6
+ export declare function useNestedDialogs(store: DialogStore, modal?: boolean): {
7
+ nestedDialogs: HTMLElement[];
8
+ openModals: HTMLElement[];
9
+ wrapElement: WrapElement;
10
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ useNestedDialogs
3
+ } from "../../__chunks/EJZ6BVXG.js";
4
+ import "../../__chunks/B7MIN7YT.js";
5
+ import "../../__chunks/SXC6BPOF.js";
6
+ export {
7
+ useNestedDialogs
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { DialogStore } from "../dialog-store.js";
2
+ export declare function usePreventBodyScroll(store: DialogStore, enabled?: boolean): void;
@@ -0,0 +1,9 @@
1
+ import {
2
+ usePreventBodyScroll
3
+ } from "../../__chunks/LFCJQX2O.js";
4
+ import "../../__chunks/ZVCQYVEV.js";
5
+ import "../../__chunks/B7MIN7YT.js";
6
+ import "../../__chunks/SXC6BPOF.js";
7
+ export {
8
+ usePreventBodyScroll
9
+ };
@@ -0,0 +1 @@
1
+ export declare function usePreviousMouseDownRef(enabled?: boolean): import("react").MutableRefObject<EventTarget | null | undefined>;
@@ -0,0 +1,6 @@
1
+ import {
2
+ usePreviousMouseDownRef
3
+ } from "../../__chunks/7JNF6I52.js";
4
+ export {
5
+ usePreviousMouseDownRef
6
+ };
@@ -0,0 +1,4 @@
1
+ type Elements = Array<Element | null>;
2
+ export declare function isValidElement(element: Element, ignoredElements: Elements): boolean;
3
+ export declare function walkTreeOutside(elements: Elements, callback: (element: Element) => void): void;
4
+ export {};
@@ -0,0 +1,8 @@
1
+ import {
2
+ isValidElement,
3
+ walkTreeOutside
4
+ } from "../../__chunks/HVXLVRRR.js";
5
+ export {
6
+ isValidElement,
7
+ walkTreeOutside
8
+ };
@@ -0,0 +1,32 @@
1
+ import type { As, Options, Props } from "../utils/types.js";
2
+ import type { DisclosureStore } from "./disclosure-store.js";
3
+ /**
4
+ * Returns props to create a `DislosureContent` component.
5
+ * @see https://ariakit.org/components/disclosure
6
+ * @example
7
+ * ```jsx
8
+ * const store = useDisclosureStore();
9
+ * const props = useDisclosureContent({ store });
10
+ * <Disclosure store={store}>Disclosure</Disclosure>
11
+ * <Role {...props}>Content</Role>
12
+ * ```
13
+ */
14
+ export declare const useDisclosureContent: import("../utils/types.js").Hook<DisclosureContentOptions<"div">>;
15
+ /**
16
+ * Renders an element that can be shown or hidden.
17
+ * @see https://ariakit.org/components/disclosure
18
+ * @example
19
+ * ```jsx
20
+ * const disclosure = useDisclosureStore();
21
+ * <Disclosure store={disclosure}>Disclosure</Disclosure>
22
+ * <DisclosureContent store={disclosure}>Content</DisclosureContent>
23
+ * ```
24
+ */
25
+ export declare const DisclosureContent: import("../utils/types.js").Component<DisclosureContentOptions<"div">>;
26
+ export interface DisclosureContentOptions<T extends As = "div"> extends Options<T> {
27
+ /**
28
+ * Object returned by the `useDisclosureStore` hook.
29
+ */
30
+ store: DisclosureStore;
31
+ }
32
+ export type DisclosureContentProps<T extends As = "div"> = Props<DisclosureContentOptions<T>>;
@@ -0,0 +1,11 @@
1
+ import {
2
+ DisclosureContent,
3
+ useDisclosureContent
4
+ } from "../__chunks/FFRIGW5T.js";
5
+ import "../__chunks/JE5NWDDX.js";
6
+ import "../__chunks/B7MIN7YT.js";
7
+ import "../__chunks/SXC6BPOF.js";
8
+ export {
9
+ DisclosureContent,
10
+ useDisclosureContent
11
+ };
@@ -0,0 +1,29 @@
1
+ import * as Core from "@ariakit/core/disclosure/disclosure-store";
2
+ import type { Store } from "../utils/store.js";
3
+ export declare function useDisclosureStoreOptions(_props: DisclosureStoreProps): Partial<DisclosureStoreOptions>;
4
+ export declare function useDisclosureStoreProps<T extends DisclosureStore>(store: T, props: DisclosureStoreProps): T;
5
+ /**
6
+ * Creates a disclosure store.
7
+ * @see https://ariakit.org/components/disclosure
8
+ * @example
9
+ * ```jsx
10
+ * const disclosure = useDisclosureState();
11
+ * <Disclosure state={disclosure}>Disclosure</Disclosure>
12
+ * <DisclosureContent state={disclosure}>Content</DisclosureContent>
13
+ * ```
14
+ */
15
+ export declare function useDisclosureStore(props?: DisclosureStoreProps): DisclosureStore;
16
+ export type DisclosureStoreState = Core.DisclosureStoreState;
17
+ export type DisclosureStoreFunctions = Core.DisclosureStoreFunctions;
18
+ export interface DisclosureStoreOptions extends Core.DisclosureStoreOptions {
19
+ /**
20
+ * A callback that gets called when the `open` state changes.
21
+ * @param open The new open value.
22
+ * @example
23
+ * const [open, setOpen] = useState(false);
24
+ * const disclosure = useDisclosureStore({ open, setOpen });
25
+ */
26
+ setOpen?: (open: DisclosureStoreState["open"]) => void;
27
+ }
28
+ export type DisclosureStoreProps = DisclosureStoreOptions & Core.DisclosureStoreProps;
29
+ export type DisclosureStore = DisclosureStoreFunctions & Store<Core.DisclosureStore>;
@@ -0,0 +1,13 @@
1
+ import {
2
+ useDisclosureStore,
3
+ useDisclosureStoreOptions,
4
+ useDisclosureStoreProps
5
+ } from "../__chunks/OXIHLN45.js";
6
+ import "../__chunks/6DAEYZ43.js";
7
+ import "../__chunks/B7MIN7YT.js";
8
+ import "../__chunks/SXC6BPOF.js";
9
+ export {
10
+ useDisclosureStore,
11
+ useDisclosureStoreOptions,
12
+ useDisclosureStoreProps
13
+ };
@@ -0,0 +1,42 @@
1
+ import type { MouseEvent } from "react";
2
+ import type { BooleanOrCallback } from "@ariakit/core/utils/types";
3
+ import type { ButtonOptions } from "../button/button.js";
4
+ import type { As, Props } from "../utils/types.js";
5
+ import type { DisclosureStore } from "./disclosure-store.js";
6
+ /**
7
+ * Returns props to create a `Disclosure` component.
8
+ * @see https://ariakit.org/components/disclosure
9
+ * @example
10
+ * ```jsx
11
+ * const store = useDisclosureStore();
12
+ * const props = useDisclosure({ store });
13
+ * <Role {...props}>Disclosure</Role>
14
+ * <DisclosureContent store={store}>Content</DisclosureContent>
15
+ * ```
16
+ */
17
+ export declare const useDisclosure: import("../utils/types.js").Hook<DisclosureOptions<"button">>;
18
+ /**
19
+ * Renders an element that controls the visibility of a disclosure content
20
+ * element.
21
+ * @see https://ariakit.org/components/disclosure
22
+ * @example
23
+ * ```jsx
24
+ * const disclosure = useDisclosureStore();
25
+ * <Disclosure store={disclosure}>Disclosure</Disclosure>
26
+ * <DisclosureContent store={disclosure}>Content</DisclosureContent>
27
+ * ```
28
+ */
29
+ export declare const Disclosure: import("../utils/types.js").Component<DisclosureOptions<"button">>;
30
+ export interface DisclosureOptions<T extends As = "button"> extends ButtonOptions<T> {
31
+ /**
32
+ * Object returned by the `useDisclosureStore` hook.
33
+ */
34
+ store: DisclosureStore;
35
+ /**
36
+ * Determines whether `store.toggle()` will be called on click. This is useful
37
+ * if you want to handle the toggle logic yourself.
38
+ * @default true
39
+ */
40
+ toggleOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
41
+ }
42
+ export type DisclosureProps<T extends As = "button"> = Props<DisclosureOptions<T>>;
@@ -0,0 +1,14 @@
1
+ import {
2
+ Disclosure,
3
+ useDisclosure
4
+ } from "../__chunks/57UTLR6J.js";
5
+ import "../__chunks/I4MLEPTM.js";
6
+ import "../__chunks/SAVDGYCC.js";
7
+ import "../__chunks/5TGAWEHD.js";
8
+ import "../__chunks/JE5NWDDX.js";
9
+ import "../__chunks/B7MIN7YT.js";
10
+ import "../__chunks/SXC6BPOF.js";
11
+ export {
12
+ Disclosure,
13
+ useDisclosure
14
+ };
@@ -0,0 +1,32 @@
1
+ import type { As, Options, Props } from "../utils/types.js";
2
+ /**
3
+ * Returns props to create a `FocusTrapRegion` component.
4
+ * @see https://ariakit.org/components/focus-trap-region
5
+ * @example
6
+ * ```jsx
7
+ * const props = useFocusTrapRegion();
8
+ * <Role {...props} />
9
+ * ```
10
+ */
11
+ export declare const useFocusTrapRegion: import("../utils/types.js").Hook<FocusTrapRegionOptions<"div">>;
12
+ /**
13
+ * Renders a focus trap region element.
14
+ * @see https://ariakit.org/components/focus-trap-region
15
+ * @example
16
+ * ```jsx
17
+ * <FocusTrapRegion>
18
+ * <Button>click me</Button>
19
+ * <Button>trap focus</Button>
20
+ * <Button disabled>disabled Button</Button>
21
+ * </FocusTrapRegion>
22
+ * ```
23
+ */
24
+ export declare const FocusTrapRegion: import("../utils/types.js").Component<FocusTrapRegionOptions<"div">>;
25
+ export interface FocusTrapRegionOptions<T extends As = "div"> extends Options<T> {
26
+ /**
27
+ * If true, it will trap the focus in the region.
28
+ * @default false
29
+ */
30
+ enabled?: boolean;
31
+ }
32
+ export type FocusTrapRegionProps<T extends As = "div"> = Props<FocusTrapRegionOptions<T>>;
@@ -0,0 +1,13 @@
1
+ import {
2
+ FocusTrapRegion,
3
+ useFocusTrapRegion
4
+ } from "../__chunks/2SVAPVVI.js";
5
+ import "../__chunks/NDTB3OGK.js";
6
+ import "../__chunks/SDULECC7.js";
7
+ import "../__chunks/JE5NWDDX.js";
8
+ import "../__chunks/B7MIN7YT.js";
9
+ import "../__chunks/SXC6BPOF.js";
10
+ export {
11
+ FocusTrapRegion,
12
+ useFocusTrapRegion
13
+ };
@@ -0,0 +1,23 @@
1
+ import type { As, Props } from "../utils/types.js";
2
+ import type { VisuallyHiddenOptions } from "../visually-hidden/visually-hidden.js";
3
+ /**
4
+ * Returns props to create a `FocusTrap` component.
5
+ * @see https://ariakit.org/components/focus-trap
6
+ * @example
7
+ * ```jsx
8
+ * const props = useFocusTrap();
9
+ * <Role {...props} />
10
+ * ```
11
+ */
12
+ export declare const useFocusTrap: import("../utils/types.js").Hook<FocusTrapOptions<"span">>;
13
+ /**
14
+ * Renders a focus trap element.
15
+ * @see https://ariakit.org/components/focus-trap
16
+ * @example
17
+ * ```jsx
18
+ * <FocusTrap onFocus={focusSomethingElse} />
19
+ * ```
20
+ */
21
+ export declare const FocusTrap: import("../utils/types.js").Component<FocusTrapOptions<"span">>;
22
+ export type FocusTrapOptions<T extends As = "span"> = VisuallyHiddenOptions<T>;
23
+ export type FocusTrapProps<T extends As = "span"> = Props<FocusTrapOptions<T>>;
@@ -0,0 +1,10 @@
1
+ import {
2
+ FocusTrap,
3
+ useFocusTrap
4
+ } from "../__chunks/NDTB3OGK.js";
5
+ import "../__chunks/SDULECC7.js";
6
+ import "../__chunks/JE5NWDDX.js";
7
+ export {
8
+ FocusTrap,
9
+ useFocusTrap
10
+ };
@@ -0,0 +1,65 @@
1
+ import type { SyntheticEvent } from "react";
2
+ import type { BivariantCallback } from "@ariakit/core/utils/types";
3
+ import type { As, Options, Props } from "../utils/types.js";
4
+ /**
5
+ * Returns props to create a `Focusable` component.
6
+ * @see https://ariakit.org/components/focusable
7
+ * @example
8
+ * ```jsx
9
+ * const props = useFocusable();
10
+ * <Role {...props}>Focusable</Role>
11
+ * ```
12
+ */
13
+ export declare const useFocusable: import("../utils/types.js").Hook<FocusableOptions<"div">>;
14
+ /**
15
+ * Renders an element that can be focused.
16
+ * @see https://ariakit.org/components/focusable
17
+ * @example
18
+ * ```jsx
19
+ * <Focusable>Focusable</Focusable>
20
+ * ```
21
+ */
22
+ export declare const Focusable: import("../utils/types.js").Component<FocusableOptions<"div">>;
23
+ export interface FocusableOptions<T extends As = "div"> extends Options<T> {
24
+ /**
25
+ * Determines whether the focusable element is disabled. If the focusable
26
+ * element doesn't support the native `disabled` attribute, the
27
+ * `aria-disabled` attribute will be used instead.
28
+ * @default false
29
+ */
30
+ disabled?: boolean;
31
+ /**
32
+ * Automatically focus the element when it is mounted. It works similarly to
33
+ * the native `autoFocus` prop, but solves an issue where the element is given
34
+ * focus before React effects can run.
35
+ * @default false
36
+ */
37
+ autoFocus?: boolean;
38
+ /**
39
+ * Whether the element should be focusable.
40
+ * @default true
41
+ */
42
+ focusable?: boolean;
43
+ /**
44
+ * Determines whether the element should be focusable even when it is
45
+ * disabled.
46
+ *
47
+ * This is important when discoverability is a concern. For example:
48
+ *
49
+ * > A toolbar in an editor contains a set of special smart paste functions
50
+ * that are disabled when the clipboard is empty or when the function is not
51
+ * applicable to the current content of the clipboard. It could be helpful to
52
+ * keep the disabled buttons focusable if the ability to discover their
53
+ * functionality is primarily via their presence on the toolbar.
54
+ *
55
+ * Learn more on [Focusability of disabled
56
+ * controls](https://www.w3.org/TR/wai-aria-practices-1.2/#kbd_disabled_controls).
57
+ */
58
+ accessibleWhenDisabled?: boolean;
59
+ /**
60
+ * Custom event handler that is called when the element is focused via the
61
+ * keyboard or when a key is pressed while the element is focused.
62
+ */
63
+ onFocusVisible?: BivariantCallback<(event: SyntheticEvent) => void>;
64
+ }
65
+ export type FocusableProps<T extends As = "div"> = Props<FocusableOptions<T>>;
@@ -0,0 +1,11 @@
1
+ import {
2
+ Focusable,
3
+ useFocusable
4
+ } from "../__chunks/5TGAWEHD.js";
5
+ import "../__chunks/JE5NWDDX.js";
6
+ import "../__chunks/B7MIN7YT.js";
7
+ import "../__chunks/SXC6BPOF.js";
8
+ export {
9
+ Focusable,
10
+ useFocusable
11
+ };