@ariakit/react-core 0.4.7 → 0.4.9

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 (695) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/cjs/__chunks/{J23ACBIS.cjs → 2NFC7VSY.cjs} +17 -17
  3. package/cjs/__chunks/{6FPOXFLO.cjs → 2P4N5BIR.cjs} +7 -7
  4. package/cjs/__chunks/{XL63LIJ7.cjs → 32EK4BGY.cjs} +2 -2
  5. package/cjs/__chunks/{GEMFHX6H.cjs → 3GUEWEPJ.cjs} +82 -142
  6. package/cjs/__chunks/{XNZYNVWR.cjs → 3HGFVGHB.cjs} +2 -4
  7. package/cjs/__chunks/{QKQVW2OL.cjs → 3MQN464L.cjs} +5 -5
  8. package/cjs/__chunks/{2NU7KANK.cjs → 3RWROHBG.cjs} +36 -55
  9. package/cjs/__chunks/{RJXJZXU4.cjs → 4LXCDDOO.cjs} +7 -7
  10. package/cjs/__chunks/{IU6B7LBR.cjs → 4S6ECZOG.cjs} +8 -8
  11. package/cjs/__chunks/{I4MVAAJP.cjs → 54XFMNDS.cjs} +10 -16
  12. package/cjs/__chunks/{V5HJPNDM.cjs → 5KP7SROC.cjs} +18 -23
  13. package/cjs/__chunks/{J4TOY3CV.cjs → 67WF5W26.cjs} +9 -11
  14. package/cjs/__chunks/{Z72SS67C.cjs → 6HSWYGH7.cjs} +36 -46
  15. package/cjs/__chunks/{SMXQY72C.cjs → 6UCNERDT.cjs} +6 -6
  16. package/cjs/__chunks/7HGGYTZO.cjs +32 -0
  17. package/cjs/__chunks/{WJWRXAE2.cjs → 7JCD5H54.cjs} +10 -10
  18. package/cjs/__chunks/{6UJTOT6Y.cjs → 7K2RM2SD.cjs} +2 -2
  19. package/cjs/__chunks/{VSEZRJQP.cjs → 7LTYTJQA.cjs} +2 -2
  20. package/cjs/__chunks/{RGBIX753.cjs → 7YWAU7T3.cjs} +4 -4
  21. package/cjs/__chunks/{QHEY2OM5.cjs → AALEVRDH.cjs} +86 -174
  22. package/cjs/__chunks/{7VN5EZ4Y.cjs → AMARRBCF.cjs} +5 -5
  23. package/cjs/__chunks/{C5YBMSVA.cjs → AN5QHTDF.cjs} +12 -12
  24. package/cjs/__chunks/{SFHZVYRX.cjs → AVQVVBHC.cjs} +16 -16
  25. package/cjs/__chunks/{S5ZSEKI4.cjs → AWQRY4G6.cjs} +37 -51
  26. package/cjs/__chunks/{DIFM3L3J.cjs → B7ZXMKTZ.cjs} +66 -90
  27. package/cjs/__chunks/{RKAA2DJ6.cjs → BHVPU2FQ.cjs} +9 -9
  28. package/cjs/__chunks/{5WO5IPAV.cjs → BPP77UGW.cjs} +6 -6
  29. package/cjs/__chunks/{6ZZYUFPW.cjs → BV5PE6PZ.cjs} +5 -10
  30. package/cjs/__chunks/{D5YFJQWS.cjs → C55AGIGA.cjs} +7 -7
  31. package/cjs/__chunks/{73ENVLSL.cjs → C57QBLY4.cjs} +12 -12
  32. package/cjs/__chunks/{JBIQ5SAD.cjs → C6F3GNG7.cjs} +10 -10
  33. package/cjs/__chunks/{DSGXHMTR.cjs → CEAT6DDR.cjs} +5 -5
  34. package/cjs/__chunks/{CAWDTTCO.cjs → CGOV3ADF.cjs} +5 -5
  35. package/cjs/__chunks/{T6EOHNY7.cjs → DMH7HONV.cjs} +19 -29
  36. package/cjs/__chunks/{L6NXSTRB.cjs → DRV5RKI2.cjs} +33 -58
  37. package/cjs/__chunks/{KPQSDZEK.cjs → F3WSRIQH.cjs} +9 -9
  38. package/cjs/__chunks/{T26VEGNG.cjs → F4DU6MSG.cjs} +6 -6
  39. package/cjs/__chunks/FWLIMVEY.cjs +40 -0
  40. package/cjs/__chunks/{6EWVPQDA.cjs → G7N4ZNGS.cjs} +17 -17
  41. package/cjs/__chunks/{B6WDC6K5.cjs → GDXQYUZD.cjs} +11 -11
  42. package/cjs/__chunks/{ZXXHG5BK.cjs → HEJFPAL3.cjs} +5 -5
  43. package/cjs/__chunks/{GQEDBQIJ.cjs → HHTQYHYL.cjs} +5 -5
  44. package/cjs/__chunks/{TL2ZGAUB.cjs → HU3NFQOT.cjs} +6 -6
  45. package/cjs/__chunks/HWXUZE7H.cjs +49 -0
  46. package/cjs/__chunks/{3VKSP77V.cjs → I5DDKOOP.cjs} +30 -43
  47. package/cjs/__chunks/{3P3P4ECD.cjs → IKRINWVC.cjs} +14 -14
  48. package/cjs/__chunks/{LJFI6VVH.cjs → IUBWLCM6.cjs} +14 -15
  49. package/cjs/__chunks/{QZTEAIEB.cjs → K32UV4VJ.cjs} +9 -9
  50. package/cjs/__chunks/{FZAUH4KL.cjs → KDCRYBUX.cjs} +13 -13
  51. package/cjs/__chunks/{IPFBKOFN.cjs → KMTMWGHG.cjs} +4 -4
  52. package/cjs/__chunks/{OX5LLZZB.cjs → KSN22F3S.cjs} +39 -57
  53. package/cjs/__chunks/{KGF55T6Z.cjs → LGTMAYKZ.cjs} +33 -47
  54. package/cjs/__chunks/{NYCVZQTV.cjs → LKQMU2KU.cjs} +5 -5
  55. package/cjs/__chunks/{N7WKRWT7.cjs → LSIE3AZT.cjs} +121 -182
  56. package/cjs/__chunks/{Y35VEVEA.cjs → LXIK4XDQ.cjs} +17 -17
  57. package/cjs/__chunks/{Q3R7NEK6.cjs → M5IWBORB.cjs} +16 -18
  58. package/cjs/__chunks/{SOLTCMT3.cjs → MA4SJD6E.cjs} +4 -4
  59. package/cjs/__chunks/{N3OBAM6Q.cjs → MTP2XD7A.cjs} +23 -28
  60. package/cjs/__chunks/{7YLCVXZ7.cjs → MTP72GGY.cjs} +5 -10
  61. package/cjs/__chunks/{VQSZN4ZZ.cjs → MUQXBDUR.cjs} +13 -18
  62. package/cjs/__chunks/{DXJ2T33U.cjs → N2JBBOXS.cjs} +5 -5
  63. package/cjs/__chunks/{3VQCUG5S.cjs → NMKMMUOR.cjs} +6 -7
  64. package/cjs/__chunks/{XOGGS4JT.cjs → NYZXQT7P.cjs} +8 -8
  65. package/cjs/__chunks/{OJM6XVJZ.cjs → O2RDP7Y5.cjs} +31 -34
  66. package/cjs/__chunks/{JY4FTKAQ.cjs → O3ON5SWH.cjs} +5 -5
  67. package/cjs/__chunks/{H57E5ZUT.cjs → OMNFVKVS.cjs} +5 -5
  68. package/cjs/__chunks/OUJ2OAAV.cjs +37 -0
  69. package/cjs/__chunks/{DR6TZZCO.cjs → OVBWMHNO.cjs} +12 -21
  70. package/cjs/__chunks/{KSANDLPZ.cjs → OZFFK5VS.cjs} +16 -21
  71. package/cjs/__chunks/P3FJX7GU.cjs +31 -0
  72. package/cjs/__chunks/{FWTMT3XN.cjs → P7J6L26K.cjs} +12 -13
  73. package/cjs/__chunks/{XHX57Y3O.cjs → PNSEE5QV.cjs} +6 -6
  74. package/cjs/__chunks/{RZJIUKJK.cjs → PSYRVXCO.cjs} +5 -5
  75. package/cjs/__chunks/{B37P2XPZ.cjs → PUMYQXTD.cjs} +27 -41
  76. package/cjs/__chunks/{NI34BXW7.cjs → QF73DU45.cjs} +7 -7
  77. package/cjs/__chunks/{KN72PYUW.cjs → QMBTS2OC.cjs} +28 -36
  78. package/cjs/__chunks/{WJRUE2R2.cjs → R3DZOXNR.cjs} +16 -16
  79. package/cjs/__chunks/{FKEHXOZH.cjs → RBHGB7EB.cjs} +6 -6
  80. package/cjs/__chunks/{BYOVTGKW.cjs → RE5WCSMF.cjs} +6 -6
  81. package/cjs/__chunks/RMSWSIPT.cjs +40 -0
  82. package/cjs/__chunks/{DQCMG5NY.cjs → RRCMCI3I.cjs} +15 -18
  83. package/cjs/__chunks/{SOECYHV7.cjs → SDBASOGF.cjs} +4 -4
  84. package/cjs/__chunks/{6YNUIZOM.cjs → SQTAYASR.cjs} +24 -27
  85. package/cjs/__chunks/{S6LYARLY.cjs → SS36X3TM.cjs} +5 -5
  86. package/cjs/__chunks/{Q6XPDC6H.cjs → SZV5XBXJ.cjs} +8 -8
  87. package/cjs/__chunks/TGJYPCV6.cjs +31 -0
  88. package/cjs/__chunks/{TLQ4Z6Y3.cjs → TJR4NN4V.cjs} +4 -6
  89. package/cjs/__chunks/{7SM32XGS.cjs → TLYGB6DV.cjs} +31 -41
  90. package/cjs/__chunks/{NA6K3SI7.cjs → TNYFOC6H.cjs} +30 -43
  91. package/cjs/__chunks/{K3BALMJM.cjs → TTVWSMCC.cjs} +12 -12
  92. package/cjs/__chunks/TTZ2BSWN.cjs +37 -0
  93. package/cjs/__chunks/{LVHGII5Y.cjs → U46ICSYF.cjs} +12 -12
  94. package/cjs/__chunks/{7BWVJDM5.cjs → UISO72VU.cjs} +6 -6
  95. package/cjs/__chunks/{7SXMOZBC.cjs → UKQU3PPH.cjs} +6 -6
  96. package/cjs/__chunks/{ZKONUU4L.cjs → V2557HFX.cjs} +19 -22
  97. package/cjs/__chunks/{ZWJIMANM.cjs → VPKU3AVX.cjs} +81 -123
  98. package/cjs/__chunks/{ALRD57MK.cjs → VQ52RGDH.cjs} +29 -41
  99. package/cjs/__chunks/{EEY4ZWA3.cjs → VRPZ4HD5.cjs} +36 -46
  100. package/cjs/__chunks/{7WJNX42F.cjs → WAXJ4YD7.cjs} +36 -43
  101. package/cjs/__chunks/{KK65NZHC.cjs → WQXPJKQO.cjs} +7 -12
  102. package/cjs/__chunks/{IZ2J6IIQ.cjs → WT6AUJWV.cjs} +16 -69
  103. package/cjs/__chunks/{7X6S652E.cjs → WYGALZGN.cjs} +14 -15
  104. package/cjs/__chunks/{RBQK5YSP.cjs → Y27X3JNF.cjs} +5 -5
  105. package/cjs/__chunks/{BINHWFDM.cjs → YAI2LUHU.cjs} +8 -8
  106. package/cjs/__chunks/{J3LHZMCN.cjs → YGEHBXGA.cjs} +63 -109
  107. package/cjs/__chunks/{3ND7K6FF.cjs → YS72JDSE.cjs} +5 -8
  108. package/cjs/__chunks/{H4A34XBV.cjs → ZBR3CZBX.cjs} +5 -5
  109. package/cjs/__chunks/ZM7XHBNF.cjs +37 -0
  110. package/cjs/button/button.cjs +8 -8
  111. package/cjs/checkbox/checkbox-check.cjs +6 -6
  112. package/cjs/checkbox/checkbox-checked-context.cjs +1 -1
  113. package/cjs/checkbox/checkbox-context.cjs +6 -6
  114. package/cjs/checkbox/checkbox-provider.cjs +9 -9
  115. package/cjs/checkbox/checkbox-store.cjs +6 -6
  116. package/cjs/checkbox/checkbox.cjs +10 -10
  117. package/cjs/collection/collection-context.cjs +6 -6
  118. package/cjs/collection/collection-item.cjs +7 -7
  119. package/cjs/collection/collection-provider.cjs +9 -9
  120. package/cjs/collection/collection-renderer.cjs +8 -8
  121. package/cjs/collection/collection-renderer.d.cts +13 -15
  122. package/cjs/collection/collection-renderer.d.ts +13 -15
  123. package/cjs/collection/collection-store.cjs +6 -6
  124. package/cjs/collection/collection.cjs +12 -12
  125. package/cjs/combobox/combobox-cancel.cjs +25 -28
  126. package/cjs/combobox/combobox-context.cjs +11 -11
  127. package/cjs/combobox/combobox-disclosure.cjs +28 -30
  128. package/cjs/combobox/combobox-group-label.cjs +10 -10
  129. package/cjs/combobox/combobox-group.cjs +19 -19
  130. package/cjs/combobox/combobox-item-check.cjs +17 -17
  131. package/cjs/combobox/combobox-item-value.cjs +87 -46
  132. package/cjs/combobox/combobox-item-value.d.cts +27 -5
  133. package/cjs/combobox/combobox-item-value.d.ts +27 -5
  134. package/cjs/combobox/combobox-item.cjs +48 -58
  135. package/cjs/combobox/combobox-label.cjs +17 -17
  136. package/cjs/combobox/combobox-list.cjs +14 -14
  137. package/cjs/combobox/combobox-popover.cjs +52 -60
  138. package/cjs/combobox/combobox-provider.cjs +20 -20
  139. package/cjs/combobox/combobox-row.cjs +18 -18
  140. package/cjs/combobox/combobox-separator.cjs +18 -18
  141. package/cjs/combobox/combobox-store.cjs +15 -15
  142. package/cjs/combobox/combobox-value.cjs +11 -11
  143. package/cjs/combobox/combobox.cjs +98 -154
  144. package/cjs/combobox/combobox.d.cts +2 -1
  145. package/cjs/combobox/combobox.d.ts +2 -1
  146. package/cjs/command/command.cjs +7 -7
  147. package/cjs/composite/composite-container.cjs +10 -10
  148. package/cjs/composite/composite-context.cjs +7 -7
  149. package/cjs/composite/composite-group-label.cjs +7 -7
  150. package/cjs/composite/composite-group.cjs +7 -7
  151. package/cjs/composite/composite-hover.cjs +8 -8
  152. package/cjs/composite/composite-input.cjs +17 -20
  153. package/cjs/composite/composite-item.cjs +13 -13
  154. package/cjs/composite/composite-overflow-disclosure.cjs +34 -36
  155. package/cjs/composite/composite-overflow-store.cjs +9 -9
  156. package/cjs/composite/composite-overflow.cjs +40 -41
  157. package/cjs/composite/composite-provider.cjs +11 -11
  158. package/cjs/composite/composite-renderer.cjs +10 -10
  159. package/cjs/composite/composite-renderer.d.cts +13 -15
  160. package/cjs/composite/composite-renderer.d.ts +13 -15
  161. package/cjs/composite/composite-row.cjs +8 -8
  162. package/cjs/composite/composite-separator.cjs +9 -9
  163. package/cjs/composite/composite-store.cjs +7 -7
  164. package/cjs/composite/composite-typeahead.cjs +9 -9
  165. package/cjs/composite/composite.cjs +10 -10
  166. package/cjs/composite/utils.cjs +3 -3
  167. package/cjs/dialog/dialog-backdrop.cjs +16 -16
  168. package/cjs/dialog/dialog-context.cjs +7 -7
  169. package/cjs/dialog/dialog-description.cjs +8 -8
  170. package/cjs/dialog/dialog-disclosure.cjs +12 -12
  171. package/cjs/dialog/dialog-dismiss.cjs +11 -11
  172. package/cjs/dialog/dialog-heading.cjs +9 -9
  173. package/cjs/dialog/dialog-provider.cjs +11 -11
  174. package/cjs/dialog/dialog-store.cjs +7 -7
  175. package/cjs/dialog/dialog.cjs +29 -29
  176. package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +6 -6
  177. package/cjs/dialog/utils/disable-tree.cjs +7 -7
  178. package/cjs/dialog/utils/is-backdrop.cjs +3 -3
  179. package/cjs/dialog/utils/mark-tree-outside.cjs +6 -6
  180. package/cjs/dialog/utils/orchestrate.cjs +3 -3
  181. package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +1 -1
  182. package/cjs/dialog/utils/supports-inert.cjs +1 -1
  183. package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +9 -9
  184. package/cjs/dialog/utils/use-nested-dialogs.cjs +5 -5
  185. package/cjs/dialog/utils/use-prevent-body-scroll.cjs +7 -7
  186. package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +1 -1
  187. package/cjs/dialog/utils/use-root-dialog.cjs +5 -5
  188. package/cjs/dialog/utils/walk-tree-outside.cjs +4 -4
  189. package/cjs/disclosure/disclosure-content.cjs +9 -9
  190. package/cjs/disclosure/disclosure-context.cjs +6 -6
  191. package/cjs/disclosure/disclosure-provider.cjs +9 -9
  192. package/cjs/disclosure/disclosure-store.cjs +6 -6
  193. package/cjs/disclosure/disclosure.cjs +10 -10
  194. package/cjs/focus-trap/focus-trap-region.cjs +16 -18
  195. package/cjs/focus-trap/focus-trap.cjs +7 -7
  196. package/cjs/focusable/focusable-container.cjs +6 -6
  197. package/cjs/focusable/focusable-context.cjs +1 -1
  198. package/cjs/focusable/focusable.cjs +6 -6
  199. package/cjs/form/form-checkbox.cjs +23 -23
  200. package/cjs/form/form-context.cjs +7 -7
  201. package/cjs/form/form-control.cjs +9 -9
  202. package/cjs/form/form-description.cjs +18 -18
  203. package/cjs/form/form-error.cjs +20 -22
  204. package/cjs/form/form-field.cjs +13 -13
  205. package/cjs/form/form-group-label.cjs +10 -10
  206. package/cjs/form/form-group.cjs +7 -7
  207. package/cjs/form/form-input.cjs +20 -21
  208. package/cjs/form/form-label.cjs +26 -30
  209. package/cjs/form/form-provider.cjs +11 -11
  210. package/cjs/form/form-push.cjs +27 -34
  211. package/cjs/form/form-push.d.cts +2 -2
  212. package/cjs/form/form-push.d.ts +2 -2
  213. package/cjs/form/form-radio-group.cjs +12 -12
  214. package/cjs/form/form-radio.cjs +27 -28
  215. package/cjs/form/form-remove.cjs +21 -25
  216. package/cjs/form/form-remove.d.cts +2 -2
  217. package/cjs/form/form-remove.d.ts +2 -2
  218. package/cjs/form/form-reset.cjs +16 -16
  219. package/cjs/form/form-store.cjs +7 -7
  220. package/cjs/form/form-submit.cjs +16 -16
  221. package/cjs/form/form.cjs +35 -49
  222. package/cjs/group/group-label-context.cjs +1 -1
  223. package/cjs/group/group-label.cjs +6 -6
  224. package/cjs/group/group.cjs +6 -6
  225. package/cjs/heading/heading-context.cjs +1 -1
  226. package/cjs/heading/heading-level.cjs +1 -1
  227. package/cjs/heading/heading.cjs +6 -6
  228. package/cjs/hovercard/hovercard-anchor.cjs +11 -11
  229. package/cjs/hovercard/hovercard-arrow.cjs +15 -15
  230. package/cjs/hovercard/hovercard-context.cjs +9 -9
  231. package/cjs/hovercard/hovercard-description.cjs +10 -10
  232. package/cjs/hovercard/hovercard-disclosure.cjs +37 -47
  233. package/cjs/hovercard/hovercard-dismiss.cjs +15 -15
  234. package/cjs/hovercard/hovercard-heading.cjs +11 -11
  235. package/cjs/hovercard/hovercard-provider.cjs +15 -15
  236. package/cjs/hovercard/hovercard-store.cjs +9 -9
  237. package/cjs/hovercard/hovercard.cjs +34 -34
  238. package/cjs/hovercard/utils/debug-polygon.cjs +1 -1
  239. package/cjs/hovercard/utils/polygon.cjs +3 -3
  240. package/cjs/index.cjs +1 -1
  241. package/cjs/menu/menu-arrow.cjs +19 -19
  242. package/cjs/menu/menu-bar-provider.cjs +13 -13
  243. package/cjs/menu/menu-bar-store.cjs +9 -9
  244. package/cjs/menu/menu-bar.cjs +19 -19
  245. package/cjs/menu/menu-button-arrow.cjs +19 -19
  246. package/cjs/menu/menu-button.cjs +60 -77
  247. package/cjs/menu/menu-context.cjs +13 -13
  248. package/cjs/menu/menu-description.cjs +13 -13
  249. package/cjs/menu/menu-dismiss.cjs +26 -26
  250. package/cjs/menu/menu-group-label.cjs +10 -10
  251. package/cjs/menu/menu-group.cjs +10 -10
  252. package/cjs/menu/menu-heading.cjs +14 -14
  253. package/cjs/menu/menu-item-check.cjs +19 -19
  254. package/cjs/menu/menu-item-checkbox.cjs +41 -48
  255. package/cjs/menu/menu-item-radio.cjs +38 -42
  256. package/cjs/menu/menu-item.cjs +21 -21
  257. package/cjs/menu/menu-list.cjs +20 -20
  258. package/cjs/menu/menu-provider.cjs +23 -23
  259. package/cjs/menu/menu-separator.cjs +20 -20
  260. package/cjs/menu/menu-store.cjs +22 -22
  261. package/cjs/menu/menu.cjs +75 -93
  262. package/cjs/menubar/menubar-context.cjs +8 -8
  263. package/cjs/menubar/menubar-provider.cjs +13 -13
  264. package/cjs/menubar/menubar-store.cjs +8 -8
  265. package/cjs/menubar/menubar.cjs +16 -16
  266. package/cjs/popover/popover-anchor.cjs +9 -9
  267. package/cjs/popover/popover-arrow-path.cjs +1 -1
  268. package/cjs/popover/popover-arrow.cjs +9 -9
  269. package/cjs/popover/popover-context.cjs +8 -8
  270. package/cjs/popover/popover-description.cjs +9 -9
  271. package/cjs/popover/popover-disclosure-arrow.cjs +9 -9
  272. package/cjs/popover/popover-disclosure.cjs +15 -15
  273. package/cjs/popover/popover-dismiss.cjs +13 -13
  274. package/cjs/popover/popover-heading.cjs +10 -10
  275. package/cjs/popover/popover-provider.cjs +13 -13
  276. package/cjs/popover/popover-store.cjs +8 -8
  277. package/cjs/popover/popover.cjs +31 -31
  278. package/cjs/portal/portal-context.cjs +1 -1
  279. package/cjs/portal/portal.cjs +8 -8
  280. package/cjs/radio/radio-context.cjs +8 -8
  281. package/cjs/radio/radio-group.cjs +19 -19
  282. package/cjs/radio/radio-provider.cjs +13 -13
  283. package/cjs/radio/radio-store.cjs +8 -8
  284. package/cjs/radio/radio.cjs +15 -15
  285. package/cjs/role/role.cjs +6 -6
  286. package/cjs/select/select-arrow.cjs +13 -13
  287. package/cjs/select/select-context.cjs +11 -11
  288. package/cjs/select/select-dismiss.cjs +23 -23
  289. package/cjs/select/select-group-label.cjs +10 -10
  290. package/cjs/select/select-group.cjs +10 -10
  291. package/cjs/select/select-heading.cjs +21 -21
  292. package/cjs/select/select-item-check.cjs +17 -17
  293. package/cjs/select/select-item.cjs +44 -54
  294. package/cjs/select/select-label.cjs +22 -23
  295. package/cjs/select/select-list.cjs +18 -18
  296. package/cjs/select/select-popover.cjs +46 -46
  297. package/cjs/select/select-provider.cjs +20 -20
  298. package/cjs/select/select-renderer.cjs +28 -35
  299. package/cjs/select/select-row.cjs +18 -18
  300. package/cjs/select/select-separator.cjs +18 -18
  301. package/cjs/select/select-store.cjs +18 -18
  302. package/cjs/select/select-value.cjs +13 -13
  303. package/cjs/select/select.cjs +47 -57
  304. package/cjs/separator/separator.cjs +6 -6
  305. package/cjs/tab/tab-context.cjs +8 -8
  306. package/cjs/tab/tab-list.cjs +20 -20
  307. package/cjs/tab/tab-panel.cjs +36 -41
  308. package/cjs/tab/tab-provider.cjs +18 -18
  309. package/cjs/tab/tab-store.cjs +16 -16
  310. package/cjs/tab/tab.cjs +45 -51
  311. package/cjs/tag/tag-context.cjs +8 -8
  312. package/cjs/tag/tag-input.cjs +40 -52
  313. package/cjs/tag/tag-list-label.cjs +15 -15
  314. package/cjs/tag/tag-list.cjs +26 -29
  315. package/cjs/tag/tag-provider.cjs +13 -13
  316. package/cjs/tag/tag-remove.cjs +24 -28
  317. package/cjs/tag/tag-store.cjs +8 -8
  318. package/cjs/tag/tag-value.cjs +8 -8
  319. package/cjs/tag/tag-values.cjs +8 -8
  320. package/cjs/tag/tag.cjs +28 -29
  321. package/cjs/tag/utils.cjs +1 -1
  322. package/cjs/toolbar/toolbar-container.cjs +23 -23
  323. package/cjs/toolbar/toolbar-context.cjs +8 -8
  324. package/cjs/toolbar/toolbar-input.cjs +21 -21
  325. package/cjs/toolbar/toolbar-item.cjs +15 -15
  326. package/cjs/toolbar/toolbar-provider.cjs +13 -13
  327. package/cjs/toolbar/toolbar-separator.cjs +15 -15
  328. package/cjs/toolbar/toolbar-store.cjs +8 -8
  329. package/cjs/toolbar/toolbar.cjs +24 -24
  330. package/cjs/tooltip/tooltip-anchor.cjs +30 -39
  331. package/cjs/tooltip/tooltip-arrow.cjs +16 -16
  332. package/cjs/tooltip/tooltip-context.cjs +10 -10
  333. package/cjs/tooltip/tooltip-provider.cjs +17 -17
  334. package/cjs/tooltip/tooltip-store.cjs +10 -10
  335. package/cjs/tooltip/tooltip.cjs +53 -59
  336. package/cjs/utils/hooks.cjs +4 -8
  337. package/cjs/utils/hooks.d.cts +1 -10
  338. package/cjs/utils/hooks.d.ts +1 -10
  339. package/cjs/utils/misc.cjs +3 -3
  340. package/cjs/utils/store.cjs +5 -5
  341. package/cjs/utils/store.d.cts +41 -0
  342. package/cjs/utils/store.d.ts +41 -0
  343. package/cjs/utils/system.cjs +5 -5
  344. package/cjs/utils/system.d.cts +2 -2
  345. package/cjs/utils/system.d.ts +2 -2
  346. package/cjs/visually-hidden/visually-hidden.cjs +6 -6
  347. package/esm/__chunks/{QESPTHDX.js → 2D53SX6Q.js} +2 -2
  348. package/esm/__chunks/{DTNGDFNU.js → 2GXGCHW6.js} +12 -22
  349. package/esm/__chunks/{3M4W2SZ7.js → 2PGBN2Y4.js} +8 -13
  350. package/esm/__chunks/{7NGG3X6T.js → 2UJDTHC7.js} +4 -4
  351. package/esm/__chunks/{QFO5OLDL.js → 2UWK5GNE.js} +65 -125
  352. package/esm/__chunks/{UN4MKOLN.js → 3CCTMYB6.js} +55 -143
  353. package/esm/__chunks/{MYBFWPQK.js → 3R3N43YO.js} +5 -6
  354. package/esm/__chunks/{2YFUM7X5.js → 42UBRT4A.js} +20 -34
  355. package/esm/__chunks/{OTPVYNVT.js → 43UOHFGG.js} +28 -53
  356. package/esm/__chunks/{GN2MH2Y2.js → 4FY2MBIB.js} +2 -2
  357. package/esm/__chunks/{URSEQETI.js → 54MGSIOI.js} +2 -2
  358. package/esm/__chunks/{3IEDWLST.js → 5VQZOHHZ.js} +5 -10
  359. package/esm/__chunks/{MKDDWKFK.js → 63XF7ACK.js} +5 -10
  360. package/esm/__chunks/{B4SPVRVU.js → 656RZDJD.js} +2 -2
  361. package/esm/__chunks/{67ZQCY2E.js → 6BE7QOX5.js} +4 -4
  362. package/esm/__chunks/{OIFL4DQB.js → 6FZVKQWP.js} +5 -5
  363. package/esm/__chunks/{VC5OPI3O.js → 6ZVAPMHT.js} +8 -11
  364. package/esm/__chunks/{IH5KTPNA.js → 74NFH3UH.js} +4 -4
  365. package/esm/__chunks/{42G2NDPP.js → 7BSNT25J.js} +6 -6
  366. package/esm/__chunks/{4SXGPXPS.js → AOUGVQZ3.js} +10 -19
  367. package/esm/__chunks/{G3HTND37.js → AUGWLYYL.js} +1 -1
  368. package/esm/__chunks/{DGQNUP7F.js → AXRBYZQP.js} +1 -1
  369. package/esm/__chunks/{ZUNM32WK.js → AYTT7WWV.js} +2 -2
  370. package/esm/__chunks/{4Q67VK3V.js → B6XZVSMQ.js} +26 -44
  371. package/esm/__chunks/{TNHM3SUC.js → BSEL4YAF.js} +16 -26
  372. package/esm/__chunks/{FNENEDAU.js → BTK3EXKD.js} +2 -2
  373. package/esm/__chunks/{5BXPMNKT.js → CAGM4AEJ.js} +3 -3
  374. package/esm/__chunks/{GO53B7AR.js → CBC47ZYL.js} +3 -3
  375. package/esm/__chunks/{ZPKRQJBS.js → CTQR3VDU.js} +2 -2
  376. package/esm/__chunks/{O7HGX5PA.js → DS36B3MQ.js} +19 -33
  377. package/esm/__chunks/{J7UNXP2A.js → DU4D3UCJ.js} +2 -2
  378. package/esm/__chunks/{3L4UCDWT.js → DWZ7E5TJ.js} +3 -3
  379. package/esm/__chunks/{CLDRDBYI.js → DYHFBFEH.js} +2 -2
  380. package/esm/__chunks/{RW4EN5HP.js → E5PXVSMA.js} +2 -2
  381. package/esm/__chunks/{GDEEEVWP.js → EJOTW52C.js} +2 -2
  382. package/esm/__chunks/{SYFUIAXQ.js → ESSM74HH.js} +4 -5
  383. package/esm/__chunks/{ELXIVOWC.js → FGSEH62K.js} +4 -4
  384. package/esm/__chunks/{FU7RTSEI.js → FMYQNSCK.js} +1 -1
  385. package/esm/__chunks/{G5PRNFCL.js → GO2SPXQX.js} +2 -2
  386. package/esm/__chunks/{PVRT36VL.js → H2MF5R7J.js} +2 -2
  387. package/esm/__chunks/{DYAGAZRT.js → HGZKAGPL.js} +49 -95
  388. package/esm/__chunks/{YIF72NQG.js → HKOOKEDE.js} +5 -7
  389. package/esm/__chunks/{SYLYP2IN.js → HQFKUKP3.js} +39 -63
  390. package/esm/__chunks/{5PY7H3O6.js → HT3UEUDM.js} +3 -3
  391. package/esm/__chunks/{PGA74ZJ4.js → IEKMDIUY.js} +3 -3
  392. package/esm/__chunks/{7CGRXEUR.js → IGFP5YPG.js} +3 -3
  393. package/esm/__chunks/{SORNFOKV.js → IIER4YBF.js} +2 -2
  394. package/esm/__chunks/{2N6FBM3O.js → ILNAUGA4.js} +2 -2
  395. package/esm/__chunks/{NXZX7GS5.js → IZAFJHVY.js} +6 -6
  396. package/esm/__chunks/{PKN6MQJP.js → JS55N6L7.js} +15 -25
  397. package/esm/__chunks/{HOOW7GH2.js → JZUY7XL6.js} +6 -6
  398. package/esm/__chunks/{53CQGCDZ.js → K2ZF5NU7.js} +5 -8
  399. package/esm/__chunks/{6MDCAUOE.js → K7FXVWIT.js} +20 -34
  400. package/esm/__chunks/{P7YNSWBG.js → KB6RR6FL.js} +5 -7
  401. package/esm/__chunks/{QT5BCKOY.js → KCVNYWKF.js} +4 -4
  402. package/esm/__chunks/{PFZ7V44A.js → KD77H3QU.js} +4 -4
  403. package/esm/__chunks/{5UDX7WKK.js → KGK2TTFO.js} +2 -2
  404. package/esm/__chunks/{OJBHU3NX.js → KHUR3XXK.js} +10 -13
  405. package/esm/__chunks/{FXF6FFAU.js → KZ2S4ZC5.js} +3 -3
  406. package/esm/__chunks/{HGKZNVMH.js → L3MGZQ3I.js} +2 -2
  407. package/esm/__chunks/{272IHWKI.js → L7GTXQJP.js} +16 -26
  408. package/esm/__chunks/{A22SDPU3.js → LG4RFBHV.js} +4 -4
  409. package/esm/__chunks/{IX2MD5WD.js → LOI6GHIP.js} +2 -2
  410. package/esm/__chunks/{FG25KND2.js → LWDIJ7XK.js} +3 -3
  411. package/esm/__chunks/{RD2VYBH6.js → MS4VD4RJ.js} +8 -8
  412. package/esm/__chunks/{NETDJWDX.js → N5E4LT7W.js} +4 -4
  413. package/esm/__chunks/{5EKYTDKF.js → NAXN2XAB.js} +16 -28
  414. package/esm/__chunks/{75IH3TOO.js → NSFBIL2Z.js} +9 -14
  415. package/esm/__chunks/{D6WBY7EV.js → O37V6X5C.js} +4 -4
  416. package/esm/__chunks/{KVYXDH67.js → O3TNZQBF.js} +8 -11
  417. package/esm/__chunks/{CBOSGWHO.js → OBZMLI6J.js} +17 -30
  418. package/esm/__chunks/{R3QDAIOX.js → OYB5INBF.js} +3 -3
  419. package/esm/__chunks/{F6GOJSFF.js → P2OTTZSX.js} +2 -2
  420. package/esm/__chunks/{U2FYKKWI.js → P5CRXI7E.js} +6 -6
  421. package/esm/__chunks/{OEBCGVCG.js → PLQDTVXM.js} +7 -10
  422. package/esm/__chunks/{UV4QOTER.js → QA27FYGF.js} +18 -31
  423. package/esm/__chunks/{MIE7UGQE.js → QS6GU7GL.js} +5 -6
  424. package/esm/__chunks/{Y2HD42YR.js → QVGW35GB.js} +4 -4
  425. package/esm/__chunks/{X5ETRS5D.js → QYS5FHDY.js} +2 -2
  426. package/esm/__chunks/{SJ5YBTFK.js → RGUP62TM.js} +1 -1
  427. package/esm/__chunks/{EKUOHYM2.js → RPLYUYNN.js} +2 -2
  428. package/esm/__chunks/{4ROCFRIN.js → SK3NAZA3.js} +7 -13
  429. package/esm/__chunks/{5XYSEKV3.js → SLQXY5KG.js} +25 -44
  430. package/esm/__chunks/{S6GWHPQZ.js → SOKV3TSX.js} +2 -2
  431. package/esm/__chunks/{PKNBS4Q6.js → T3RMEPVH.js} +3 -5
  432. package/esm/__chunks/{X3TS2MQG.js → TCAGH6BH.js} +2 -2
  433. package/esm/__chunks/{A6ABOV6V.js → THRI7H7K.js} +6 -7
  434. package/esm/__chunks/{XHMHIT7V.js → TNITL632.js} +2 -2
  435. package/esm/__chunks/{CN7DDZL2.js → TT2355LN.js} +78 -139
  436. package/esm/__chunks/{QMBMAMY2.js → TW35PKTK.js} +48 -90
  437. package/esm/__chunks/{RV6RYOXG.js → TWCRTUOB.js} +2 -2
  438. package/esm/__chunks/{PDTGHX74.js → ULASSYJG.js} +15 -22
  439. package/esm/__chunks/{3HD5ZDMZ.js → UNZQGRPO.js} +13 -21
  440. package/esm/__chunks/{LAKDACE6.js → UPCYNCRR.js} +3 -3
  441. package/esm/__chunks/{GRUZR3XS.js → UQBPM777.js} +11 -16
  442. package/esm/__chunks/{WH6Q5C3D.js → UVQLZ7T5.js} +2 -2
  443. package/esm/__chunks/{2INQ6K4L.js → WEEEI3KU.js} +4 -4
  444. package/esm/__chunks/{53KINMNA.js → WENSINUV.js} +2 -2
  445. package/esm/__chunks/{ZPGENCAP.js → WSQNIDGC.js} +2 -2
  446. package/esm/__chunks/{HJER6CSZ.js → X5LAA6JI.js} +6 -6
  447. package/esm/__chunks/{SD6TYZJO.js → X7QOZUD3.js} +2 -4
  448. package/esm/__chunks/{WHHX3V5K.js → XJENYSWS.js} +2 -2
  449. package/esm/__chunks/{IOEKCBMU.js → XMDAT5SM.js} +2 -2
  450. package/esm/__chunks/{FPZBL2HG.js → Y2MAXF6C.js} +3 -3
  451. package/esm/__chunks/{DDNAPH23.js → YJS26JVG.js} +6 -11
  452. package/esm/__chunks/{OPTPHWV7.js → Z32BISHQ.js} +11 -64
  453. package/esm/__chunks/{2LDES2MP.js → ZPO4YZYE.js} +3 -3
  454. package/esm/__chunks/{KMGRI767.js → ZRJAYXZW.js} +10 -15
  455. package/esm/button/button.js +7 -7
  456. package/esm/checkbox/checkbox-check.js +5 -5
  457. package/esm/checkbox/checkbox-checked-context.js +1 -1
  458. package/esm/checkbox/checkbox-context.js +5 -5
  459. package/esm/checkbox/checkbox-provider.js +7 -7
  460. package/esm/checkbox/checkbox-store.js +5 -5
  461. package/esm/checkbox/checkbox.js +9 -9
  462. package/esm/collection/collection-context.js +5 -5
  463. package/esm/collection/collection-item.js +6 -6
  464. package/esm/collection/collection-provider.js +7 -7
  465. package/esm/collection/collection-renderer.d.ts +13 -15
  466. package/esm/collection/collection-renderer.js +7 -7
  467. package/esm/collection/collection-store.js +5 -5
  468. package/esm/collection/collection.js +5 -5
  469. package/esm/combobox/combobox-cancel.js +16 -19
  470. package/esm/combobox/combobox-context.js +10 -10
  471. package/esm/combobox/combobox-disclosure.js +17 -19
  472. package/esm/combobox/combobox-group-label.js +6 -6
  473. package/esm/combobox/combobox-group.js +12 -12
  474. package/esm/combobox/combobox-item-check.js +11 -11
  475. package/esm/combobox/combobox-item-value.d.ts +27 -5
  476. package/esm/combobox/combobox-item-value.js +81 -40
  477. package/esm/combobox/combobox-item.js +27 -37
  478. package/esm/combobox/combobox-label.js +10 -10
  479. package/esm/combobox/combobox-list.js +13 -13
  480. package/esm/combobox/combobox-popover.js +42 -50
  481. package/esm/combobox/combobox-provider.js +18 -18
  482. package/esm/combobox/combobox-row.js +11 -11
  483. package/esm/combobox/combobox-separator.js +12 -12
  484. package/esm/combobox/combobox-store.js +14 -14
  485. package/esm/combobox/combobox-value.js +10 -10
  486. package/esm/combobox/combobox.d.ts +2 -1
  487. package/esm/combobox/combobox.js +70 -126
  488. package/esm/command/command.js +6 -6
  489. package/esm/composite/composite-container.js +9 -9
  490. package/esm/composite/composite-context.js +6 -6
  491. package/esm/composite/composite-group-label.js +6 -6
  492. package/esm/composite/composite-group.js +6 -6
  493. package/esm/composite/composite-hover.js +7 -7
  494. package/esm/composite/composite-input.js +8 -11
  495. package/esm/composite/composite-item.js +12 -12
  496. package/esm/composite/composite-overflow-disclosure.js +22 -24
  497. package/esm/composite/composite-overflow-store.js +7 -7
  498. package/esm/composite/composite-overflow.js +31 -32
  499. package/esm/composite/composite-provider.js +9 -9
  500. package/esm/composite/composite-renderer.d.ts +13 -15
  501. package/esm/composite/composite-renderer.js +9 -9
  502. package/esm/composite/composite-row.js +7 -7
  503. package/esm/composite/composite-separator.js +8 -8
  504. package/esm/composite/composite-store.js +6 -6
  505. package/esm/composite/composite-typeahead.js +8 -8
  506. package/esm/composite/composite.js +9 -9
  507. package/esm/composite/utils.js +2 -2
  508. package/esm/dialog/dialog-backdrop.js +15 -15
  509. package/esm/dialog/dialog-context.js +6 -6
  510. package/esm/dialog/dialog-description.js +7 -7
  511. package/esm/dialog/dialog-disclosure.js +11 -11
  512. package/esm/dialog/dialog-dismiss.js +10 -10
  513. package/esm/dialog/dialog-heading.js +8 -8
  514. package/esm/dialog/dialog-provider.js +9 -9
  515. package/esm/dialog/dialog-store.js +6 -6
  516. package/esm/dialog/dialog.js +28 -28
  517. package/esm/dialog/utils/disable-accessibility-tree-outside.js +5 -5
  518. package/esm/dialog/utils/disable-tree.js +6 -6
  519. package/esm/dialog/utils/is-backdrop.js +2 -2
  520. package/esm/dialog/utils/mark-tree-outside.js +5 -5
  521. package/esm/dialog/utils/orchestrate.js +2 -2
  522. package/esm/dialog/utils/prepend-hidden-dismiss.js +1 -1
  523. package/esm/dialog/utils/supports-inert.js +1 -1
  524. package/esm/dialog/utils/use-hide-on-interact-outside.js +8 -8
  525. package/esm/dialog/utils/use-nested-dialogs.js +4 -4
  526. package/esm/dialog/utils/use-prevent-body-scroll.js +6 -6
  527. package/esm/dialog/utils/use-previous-mouse-down-ref.js +1 -1
  528. package/esm/dialog/utils/use-root-dialog.js +4 -4
  529. package/esm/dialog/utils/walk-tree-outside.js +3 -3
  530. package/esm/disclosure/disclosure-content.js +8 -8
  531. package/esm/disclosure/disclosure-context.js +5 -5
  532. package/esm/disclosure/disclosure-provider.js +7 -7
  533. package/esm/disclosure/disclosure-store.js +5 -5
  534. package/esm/disclosure/disclosure.js +9 -9
  535. package/esm/focus-trap/focus-trap-region.js +8 -10
  536. package/esm/focus-trap/focus-trap.js +6 -6
  537. package/esm/focusable/focusable-container.js +5 -5
  538. package/esm/focusable/focusable-context.js +1 -1
  539. package/esm/focusable/focusable.js +5 -5
  540. package/esm/form/form-checkbox.js +14 -14
  541. package/esm/form/form-context.js +6 -6
  542. package/esm/form/form-control.js +8 -8
  543. package/esm/form/form-description.js +7 -7
  544. package/esm/form/form-error.js +9 -11
  545. package/esm/form/form-field.js +8 -8
  546. package/esm/form/form-group-label.js +5 -5
  547. package/esm/form/form-group.js +6 -6
  548. package/esm/form/form-input.js +10 -11
  549. package/esm/form/form-label.js +11 -15
  550. package/esm/form/form-provider.js +9 -9
  551. package/esm/form/form-push.d.ts +2 -2
  552. package/esm/form/form-push.js +17 -24
  553. package/esm/form/form-radio-group.js +6 -6
  554. package/esm/form/form-radio.js +17 -18
  555. package/esm/form/form-remove.d.ts +2 -2
  556. package/esm/form/form-remove.js +13 -17
  557. package/esm/form/form-reset.js +9 -9
  558. package/esm/form/form-store.js +6 -6
  559. package/esm/form/form-submit.js +9 -9
  560. package/esm/form/form.js +20 -34
  561. package/esm/group/group-label-context.js +1 -1
  562. package/esm/group/group-label.js +5 -5
  563. package/esm/group/group.js +5 -5
  564. package/esm/heading/heading-context.js +1 -1
  565. package/esm/heading/heading-level.js +1 -1
  566. package/esm/heading/heading.js +5 -5
  567. package/esm/hovercard/hovercard-anchor.js +10 -10
  568. package/esm/hovercard/hovercard-arrow.js +9 -9
  569. package/esm/hovercard/hovercard-context.js +8 -8
  570. package/esm/hovercard/hovercard-description.js +9 -9
  571. package/esm/hovercard/hovercard-disclosure.js +24 -34
  572. package/esm/hovercard/hovercard-dismiss.js +14 -14
  573. package/esm/hovercard/hovercard-heading.js +10 -10
  574. package/esm/hovercard/hovercard-provider.js +13 -13
  575. package/esm/hovercard/hovercard-store.js +8 -8
  576. package/esm/hovercard/hovercard.js +33 -33
  577. package/esm/hovercard/utils/debug-polygon.js +1 -1
  578. package/esm/hovercard/utils/polygon.js +2 -2
  579. package/esm/index.js +1 -1
  580. package/esm/menu/menu-arrow.js +13 -13
  581. package/esm/menu/menu-bar-provider.js +12 -12
  582. package/esm/menu/menu-bar-store.js +7 -7
  583. package/esm/menu/menu-bar.js +15 -15
  584. package/esm/menu/menu-button-arrow.js +13 -13
  585. package/esm/menu/menu-button.js +41 -58
  586. package/esm/menu/menu-context.js +12 -12
  587. package/esm/menu/menu-description.js +9 -9
  588. package/esm/menu/menu-dismiss.js +18 -18
  589. package/esm/menu/menu-group-label.js +6 -6
  590. package/esm/menu/menu-group.js +6 -6
  591. package/esm/menu/menu-heading.js +10 -10
  592. package/esm/menu/menu-item-check.js +13 -13
  593. package/esm/menu/menu-item-checkbox.js +30 -37
  594. package/esm/menu/menu-item-radio.js +26 -30
  595. package/esm/menu/menu-item.js +20 -20
  596. package/esm/menu/menu-list.js +19 -19
  597. package/esm/menu/menu-provider.js +21 -21
  598. package/esm/menu/menu-separator.js +14 -14
  599. package/esm/menu/menu-store.js +21 -21
  600. package/esm/menu/menu.js +59 -77
  601. package/esm/menubar/menubar-context.js +7 -7
  602. package/esm/menubar/menubar-provider.js +12 -12
  603. package/esm/menubar/menubar-store.js +7 -7
  604. package/esm/menubar/menubar.js +15 -15
  605. package/esm/popover/popover-anchor.js +8 -8
  606. package/esm/popover/popover-arrow-path.js +1 -1
  607. package/esm/popover/popover-arrow.js +8 -8
  608. package/esm/popover/popover-context.js +7 -7
  609. package/esm/popover/popover-description.js +8 -8
  610. package/esm/popover/popover-disclosure-arrow.js +8 -8
  611. package/esm/popover/popover-disclosure.js +14 -14
  612. package/esm/popover/popover-dismiss.js +12 -12
  613. package/esm/popover/popover-heading.js +9 -9
  614. package/esm/popover/popover-provider.js +11 -11
  615. package/esm/popover/popover-store.js +7 -7
  616. package/esm/popover/popover.js +30 -30
  617. package/esm/portal/portal-context.js +1 -1
  618. package/esm/portal/portal.js +7 -7
  619. package/esm/radio/radio-context.js +7 -7
  620. package/esm/radio/radio-group.js +10 -10
  621. package/esm/radio/radio-provider.js +11 -11
  622. package/esm/radio/radio-store.js +7 -7
  623. package/esm/radio/radio.js +14 -14
  624. package/esm/role/role.js +5 -5
  625. package/esm/select/select-arrow.js +12 -12
  626. package/esm/select/select-context.js +10 -10
  627. package/esm/select/select-dismiss.js +15 -15
  628. package/esm/select/select-group-label.js +6 -6
  629. package/esm/select/select-group.js +6 -6
  630. package/esm/select/select-heading.js +13 -13
  631. package/esm/select/select-item-check.js +11 -11
  632. package/esm/select/select-item.js +27 -37
  633. package/esm/select/select-label.js +11 -12
  634. package/esm/select/select-list.js +17 -17
  635. package/esm/select/select-popover.js +37 -37
  636. package/esm/select/select-provider.js +18 -18
  637. package/esm/select/select-renderer.js +20 -27
  638. package/esm/select/select-row.js +11 -11
  639. package/esm/select/select-separator.js +12 -12
  640. package/esm/select/select-store.js +17 -17
  641. package/esm/select/select-value.js +11 -11
  642. package/esm/select/select.js +31 -41
  643. package/esm/separator/separator.js +5 -5
  644. package/esm/tab/tab-context.js +7 -7
  645. package/esm/tab/tab-list.js +10 -10
  646. package/esm/tab/tab-panel.js +19 -24
  647. package/esm/tab/tab-provider.js +16 -16
  648. package/esm/tab/tab-store.js +15 -15
  649. package/esm/tab/tab.js +33 -39
  650. package/esm/tag/tag-context.js +7 -7
  651. package/esm/tag/tag-input.js +25 -37
  652. package/esm/tag/tag-list-label.js +7 -7
  653. package/esm/tag/tag-list.js +13 -16
  654. package/esm/tag/tag-provider.js +11 -11
  655. package/esm/tag/tag-remove.js +12 -16
  656. package/esm/tag/tag-store.js +7 -7
  657. package/esm/tag/tag-value.js +7 -7
  658. package/esm/tag/tag-values.js +7 -7
  659. package/esm/tag/tag.js +14 -15
  660. package/esm/tag/utils.js +1 -1
  661. package/esm/toolbar/toolbar-container.js +15 -15
  662. package/esm/toolbar/toolbar-context.js +7 -7
  663. package/esm/toolbar/toolbar-input.js +14 -14
  664. package/esm/toolbar/toolbar-item.js +14 -14
  665. package/esm/toolbar/toolbar-provider.js +11 -11
  666. package/esm/toolbar/toolbar-separator.js +9 -9
  667. package/esm/toolbar/toolbar-store.js +7 -7
  668. package/esm/toolbar/toolbar.js +14 -14
  669. package/esm/tooltip/tooltip-anchor.js +20 -29
  670. package/esm/tooltip/tooltip-arrow.js +10 -10
  671. package/esm/tooltip/tooltip-context.js +9 -9
  672. package/esm/tooltip/tooltip-provider.js +15 -15
  673. package/esm/tooltip/tooltip-store.js +9 -9
  674. package/esm/tooltip/tooltip.js +40 -46
  675. package/esm/utils/hooks.d.ts +1 -10
  676. package/esm/utils/hooks.js +3 -7
  677. package/esm/utils/misc.js +2 -2
  678. package/esm/utils/store.d.ts +41 -0
  679. package/esm/utils/store.js +4 -4
  680. package/esm/utils/system.d.ts +2 -2
  681. package/esm/utils/system.js +4 -4
  682. package/esm/visually-hidden/visually-hidden.js +5 -5
  683. package/package.json +2 -2
  684. package/readme.md +18 -0
  685. package/cjs/__chunks/45GIRG26.cjs +0 -49
  686. package/cjs/__chunks/4F4TSYFA.cjs +0 -40
  687. package/cjs/__chunks/6E2KH4LZ.cjs +0 -40
  688. package/cjs/__chunks/DY4W6DUQ.cjs +0 -37
  689. package/cjs/__chunks/MTL37OGW.cjs +0 -37
  690. package/cjs/__chunks/TFB7L57Q.cjs +0 -37
  691. package/cjs/__chunks/Y6DDDMAK.cjs +0 -31
  692. package/cjs/__chunks/ZQW5MMXZ.cjs +0 -31
  693. package/cjs/__chunks/ZT7NR4G7.cjs +0 -32
  694. /package/cjs/__chunks/{AV6KTKLE.cjs → 3IVNQNIV.cjs} +0 -0
  695. /package/esm/__chunks/{4R3V3JGP.js → 3YLGPPWQ.js} +0 -0
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  CompositeContextProvider,
4
4
  CompositeScopedContextProvider
5
- } from "./53KINMNA.js";
5
+ } from "./WENSINUV.js";
6
6
  import {
7
7
  createStoreContext
8
- } from "./YIF72NQG.js";
8
+ } from "./HKOOKEDE.js";
9
9
 
10
10
  // src/tab/tab-context.tsx
11
11
  var ctx = createStoreContext(
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import {
3
3
  DialogBackdrop
4
- } from "./GRUZR3XS.js";
4
+ } from "./UQBPM777.js";
5
5
  import {
6
6
  disableTree,
7
7
  disableTreeOutside
8
- } from "./75IH3TOO.js";
8
+ } from "./NSFBIL2Z.js";
9
9
  import {
10
10
  usePreventBodyScroll
11
- } from "./P7YNSWBG.js";
11
+ } from "./KB6RR6FL.js";
12
12
  import {
13
13
  useNestedDialogs
14
- } from "./PKNBS4Q6.js";
14
+ } from "./T3RMEPVH.js";
15
15
  import {
16
16
  useHideOnInteractOutside
17
- } from "./OTPVYNVT.js";
17
+ } from "./43UOHFGG.js";
18
18
  import {
19
19
  supportsInert
20
20
  } from "./677M2CI3.js";
@@ -24,43 +24,43 @@ import {
24
24
  import {
25
25
  isElementMarked,
26
26
  markTreeOutside
27
- } from "./3M4W2SZ7.js";
27
+ } from "./2PGBN2Y4.js";
28
28
  import {
29
29
  createWalkTreeSnapshot
30
- } from "./4SXGPXPS.js";
30
+ } from "./AOUGVQZ3.js";
31
31
  import {
32
32
  useFocusableContainer
33
- } from "./5PY7H3O6.js";
33
+ } from "./HT3UEUDM.js";
34
34
  import {
35
35
  HeadingLevel
36
36
  } from "./5M6RIVE2.js";
37
37
  import {
38
38
  usePortal
39
- } from "./3HD5ZDMZ.js";
39
+ } from "./UNZQGRPO.js";
40
40
  import {
41
41
  isHidden,
42
42
  useDisclosureContent
43
- } from "./TNHM3SUC.js";
43
+ } from "./BSEL4YAF.js";
44
44
  import {
45
45
  DialogDescriptionContext,
46
46
  DialogHeadingContext,
47
47
  DialogScopedContextProvider,
48
48
  useDialogProviderContext
49
- } from "./J7UNXP2A.js";
49
+ } from "./DU4D3UCJ.js";
50
50
  import {
51
51
  useFocusable
52
- } from "./DYAGAZRT.js";
52
+ } from "./HGZKAGPL.js";
53
53
  import {
54
54
  createElement,
55
55
  createHook,
56
56
  forwardRef
57
- } from "./YIF72NQG.js";
57
+ } from "./HKOOKEDE.js";
58
58
  import {
59
59
  useDialogStore
60
- } from "./X5ETRS5D.js";
60
+ } from "./QYS5FHDY.js";
61
61
  import {
62
62
  useStoreState
63
- } from "./DTNGDFNU.js";
63
+ } from "./2GXGCHW6.js";
64
64
  import {
65
65
  useBooleanEvent,
66
66
  useEvent,
@@ -69,12 +69,12 @@ import {
69
69
  usePortalRef,
70
70
  useSafeLayoutEffect,
71
71
  useWrapElement
72
- } from "./OPTPHWV7.js";
72
+ } from "./Z32BISHQ.js";
73
73
  import {
74
74
  __objRest,
75
75
  __spreadProps,
76
76
  __spreadValues
77
- } from "./4R3V3JGP.js";
77
+ } from "./3YLGPPWQ.js";
78
78
 
79
79
  // src/dialog/dialog.tsx
80
80
  import {
@@ -100,22 +100,16 @@ var TagName = "div";
100
100
  var isSafariBrowser = isSafari();
101
101
  function isAlreadyFocusingAnotherElement(dialog) {
102
102
  const activeElement = getActiveElement();
103
- if (!activeElement)
104
- return false;
105
- if (dialog && contains(dialog, activeElement))
106
- return false;
107
- if (isFocusable(activeElement))
108
- return true;
103
+ if (!activeElement) return false;
104
+ if (dialog && contains(dialog, activeElement)) return false;
105
+ if (isFocusable(activeElement)) return true;
109
106
  return false;
110
107
  }
111
108
  function getElementFromProp(prop, focusable = false) {
112
- if (!prop)
113
- return null;
109
+ if (!prop) return null;
114
110
  const element = "current" in prop ? prop.current : prop;
115
- if (!element)
116
- return null;
117
- if (focusable)
118
- return isFocusable(element) ? element : null;
111
+ if (!element) return null;
112
+ if (focusable) return isFocusable(element) ? element : null;
119
113
  return element;
120
114
  }
121
115
  var useDialog = createHook(function useDialog2(_a) {
@@ -162,18 +156,15 @@ var useDialog = createHook(function useDialog2(_a) {
162
156
  store: storeProp || context,
163
157
  open: openProp,
164
158
  setOpen(open2) {
165
- if (open2)
166
- return;
159
+ if (open2) return;
167
160
  const dialog = ref.current;
168
- if (!dialog)
169
- return;
161
+ if (!dialog) return;
170
162
  const event = new Event("close", { bubbles: false, cancelable: true });
171
163
  if (onClose) {
172
164
  dialog.addEventListener("close", onClose, { once: true });
173
165
  }
174
166
  dialog.dispatchEvent(event);
175
- if (!event.defaultPrevented)
176
- return;
167
+ if (!event.defaultPrevented) return;
177
168
  store.setOpen(true);
178
169
  }
179
170
  });
@@ -192,27 +183,20 @@ var useDialog = createHook(function useDialog2(_a) {
192
183
  const { wrapElement, nestedDialogs } = useNestedDialogs(store);
193
184
  props = useWrapElement(props, wrapElement, [wrapElement]);
194
185
  useSafeLayoutEffect(() => {
195
- if (!open)
196
- return;
186
+ if (!open) return;
197
187
  const dialog = ref.current;
198
188
  const activeElement = getActiveElement(dialog, true);
199
- if (!activeElement)
200
- return;
201
- if (activeElement.tagName === "BODY")
202
- return;
203
- if (dialog && contains(dialog, activeElement))
204
- return;
189
+ if (!activeElement) return;
190
+ if (activeElement.tagName === "BODY") return;
191
+ if (dialog && contains(dialog, activeElement)) return;
205
192
  store.setDisclosureElement(activeElement);
206
193
  }, [store, open]);
207
194
  if (isSafariBrowser) {
208
195
  useEffect(() => {
209
- if (!mounted)
210
- return;
196
+ if (!mounted) return;
211
197
  const { disclosureElement } = store.getState();
212
- if (!disclosureElement)
213
- return;
214
- if (!isButton(disclosureElement))
215
- return;
198
+ if (!disclosureElement) return;
199
+ if (!isButton(disclosureElement)) return;
216
200
  const onMouseDown = () => {
217
201
  let receivedFocus = false;
218
202
  const onFocus = () => {
@@ -222,8 +206,7 @@ var useDialog = createHook(function useDialog2(_a) {
222
206
  disclosureElement.addEventListener("focusin", onFocus, options);
223
207
  queueBeforeEvent(disclosureElement, "mouseup", () => {
224
208
  disclosureElement.removeEventListener("focusin", onFocus, true);
225
- if (receivedFocus)
226
- return;
209
+ if (receivedFocus) return;
227
210
  focusIfNeeded(disclosureElement);
228
211
  });
229
212
  };
@@ -234,49 +217,35 @@ var useDialog = createHook(function useDialog2(_a) {
234
217
  }, [store, mounted]);
235
218
  }
236
219
  useEffect(() => {
237
- if (!modal)
238
- return;
239
- if (!mounted)
240
- return;
241
- if (!domReady)
242
- return;
220
+ if (!modal) return;
221
+ if (!mounted) return;
222
+ if (!domReady) return;
243
223
  const dialog = ref.current;
244
- if (!dialog)
245
- return;
224
+ if (!dialog) return;
246
225
  const existingDismiss = dialog.querySelector("[data-dialog-dismiss]");
247
- if (existingDismiss)
248
- return;
226
+ if (existingDismiss) return;
249
227
  return prependHiddenDismiss(dialog, store.hide);
250
228
  }, [store, modal, mounted, domReady]);
251
229
  useSafeLayoutEffect(() => {
252
- if (!supportsInert())
253
- return;
254
- if (open)
255
- return;
256
- if (!mounted)
257
- return;
258
- if (!domReady)
259
- return;
230
+ if (!supportsInert()) return;
231
+ if (open) return;
232
+ if (!mounted) return;
233
+ if (!domReady) return;
260
234
  const dialog = ref.current;
261
- if (!dialog)
262
- return;
235
+ if (!dialog) return;
263
236
  return disableTree(dialog);
264
237
  }, [open, mounted, domReady]);
265
238
  const canTakeTreeSnapshot = open && domReady;
266
239
  useSafeLayoutEffect(() => {
267
- if (!id)
268
- return;
269
- if (!canTakeTreeSnapshot)
270
- return;
240
+ if (!id) return;
241
+ if (!canTakeTreeSnapshot) return;
271
242
  const dialog = ref.current;
272
243
  return createWalkTreeSnapshot(id, [dialog]);
273
244
  }, [id, canTakeTreeSnapshot, unstable_treeSnapshotKey]);
274
245
  const getPersistentElementsProp = useEvent(getPersistentElements);
275
246
  useSafeLayoutEffect(() => {
276
- if (!id)
277
- return;
278
- if (!canTakeTreeSnapshot)
279
- return;
247
+ if (!id) return;
248
+ if (!canTakeTreeSnapshot) return;
280
249
  const { disclosureElement } = store.getState();
281
250
  const dialog = ref.current;
282
251
  const persistentElements = getPersistentElementsProp() || [];
@@ -305,14 +274,10 @@ var useDialog = createHook(function useDialog2(_a) {
305
274
  const autoFocusOnShowProp = useBooleanEvent(autoFocusOnShow);
306
275
  const [autoFocusEnabled, setAutoFocusEnabled] = useState(false);
307
276
  useEffect(() => {
308
- if (!open)
309
- return;
310
- if (!mayAutoFocusOnShow)
311
- return;
312
- if (!domReady)
313
- return;
314
- if (!(contentElement == null ? void 0 : contentElement.isConnected))
315
- return;
277
+ if (!open) return;
278
+ if (!mayAutoFocusOnShow) return;
279
+ if (!domReady) return;
280
+ if (!(contentElement == null ? void 0 : contentElement.isConnected)) return;
316
281
  const element = getElementFromProp(initialFocus, true) || // If no initial focus is specified, we try to focus the first element
317
282
  // with the autofocus attribute. If it's an Ariakit component, the
318
283
  // Focusable component will consume the autoFocus prop and add the
@@ -326,13 +291,11 @@ var useDialog = createHook(function useDialog2(_a) {
326
291
  getFirstTabbableIn(contentElement, true, portal && preserveTabOrder) || // Finally, we fallback to the dialog element itself.
327
292
  contentElement;
328
293
  const isElementFocusable = isFocusable(element);
329
- if (!autoFocusOnShowProp(isElementFocusable ? element : null))
330
- return;
294
+ if (!autoFocusOnShowProp(isElementFocusable ? element : null)) return;
331
295
  setAutoFocusEnabled(true);
332
296
  queueMicrotask(() => {
333
297
  element.focus();
334
- if (!isSafariBrowser)
335
- return;
298
+ if (!isSafariBrowser) return;
336
299
  element.scrollIntoView({ block: "nearest", inline: "nearest" });
337
300
  });
338
301
  }, [
@@ -349,16 +312,14 @@ var useDialog = createHook(function useDialog2(_a) {
349
312
  const autoFocusOnHideProp = useBooleanEvent(autoFocusOnHide);
350
313
  const [hasOpened, setHasOpened] = useState(false);
351
314
  useEffect(() => {
352
- if (!open)
353
- return;
315
+ if (!open) return;
354
316
  setHasOpened(true);
355
317
  return () => setHasOpened(false);
356
318
  }, [open]);
357
319
  const focusOnHide = useCallback(
358
320
  (dialog, retry = true) => {
359
321
  const { disclosureElement } = store.getState();
360
- if (isAlreadyFocusingAnotherElement(dialog))
361
- return;
322
+ if (isAlreadyFocusingAnotherElement(dialog)) return;
362
323
  let element = getElementFromProp(finalFocus) || disclosureElement;
363
324
  if (element == null ? void 0 : element.id) {
364
325
  const doc = getDocument(element);
@@ -384,31 +345,24 @@ var useDialog = createHook(function useDialog2(_a) {
384
345
  requestAnimationFrame(() => focusOnHide(dialog, false));
385
346
  return;
386
347
  }
387
- if (!autoFocusOnHideProp(isElementFocusable ? element : null))
388
- return;
389
- if (!isElementFocusable)
390
- return;
348
+ if (!autoFocusOnHideProp(isElementFocusable ? element : null)) return;
349
+ if (!isElementFocusable) return;
391
350
  element == null ? void 0 : element.focus();
392
351
  },
393
352
  [store, finalFocus, autoFocusOnHideProp]
394
353
  );
395
354
  const focusedOnHideRef = useRef(false);
396
355
  useSafeLayoutEffect(() => {
397
- if (open)
398
- return;
399
- if (!hasOpened)
400
- return;
401
- if (!mayAutoFocusOnHide)
402
- return;
356
+ if (open) return;
357
+ if (!hasOpened) return;
358
+ if (!mayAutoFocusOnHide) return;
403
359
  const dialog = ref.current;
404
360
  focusedOnHideRef.current = true;
405
361
  focusOnHide(dialog);
406
362
  }, [open, hasOpened, domReady, mayAutoFocusOnHide, focusOnHide]);
407
363
  useEffect(() => {
408
- if (!hasOpened)
409
- return;
410
- if (!mayAutoFocusOnHide)
411
- return;
364
+ if (!hasOpened) return;
365
+ if (!mayAutoFocusOnHide) return;
412
366
  const dialog = ref.current;
413
367
  return () => {
414
368
  if (focusedOnHideRef.current) {
@@ -420,39 +374,26 @@ var useDialog = createHook(function useDialog2(_a) {
420
374
  }, [hasOpened, mayAutoFocusOnHide, focusOnHide]);
421
375
  const hideOnEscapeProp = useBooleanEvent(hideOnEscape);
422
376
  useEffect(() => {
423
- if (!domReady)
424
- return;
425
- if (!mounted)
426
- return;
377
+ if (!domReady) return;
378
+ if (!mounted) return;
427
379
  const onKeyDown = (event) => {
428
- if (event.key !== "Escape")
429
- return;
430
- if (event.defaultPrevented)
431
- return;
380
+ if (event.key !== "Escape") return;
381
+ if (event.defaultPrevented) return;
432
382
  const dialog = ref.current;
433
- if (!dialog)
434
- return;
435
- if (isElementMarked(dialog))
436
- return;
383
+ if (!dialog) return;
384
+ if (isElementMarked(dialog)) return;
437
385
  const target = event.target;
438
- if (!target)
439
- return;
386
+ if (!target) return;
440
387
  const { disclosureElement } = store.getState();
441
388
  const isValidTarget = () => {
442
- if (target.tagName === "BODY")
443
- return true;
444
- if (contains(dialog, target))
445
- return true;
446
- if (!disclosureElement)
447
- return true;
448
- if (contains(disclosureElement, target))
449
- return true;
389
+ if (target.tagName === "BODY") return true;
390
+ if (contains(dialog, target)) return true;
391
+ if (!disclosureElement) return true;
392
+ if (contains(disclosureElement, target)) return true;
450
393
  return false;
451
394
  };
452
- if (!isValidTarget())
453
- return;
454
- if (!hideOnEscapeProp(event))
455
- return;
395
+ if (!isValidTarget()) return;
396
+ if (!hideOnEscapeProp(event)) return;
456
397
  store.hide();
457
398
  };
458
399
  return addGlobalEventListener("keydown", onKeyDown, true);
@@ -467,8 +408,7 @@ var useDialog = createHook(function useDialog2(_a) {
467
408
  props = useWrapElement(
468
409
  props,
469
410
  (element) => {
470
- if (!backdrop)
471
- return element;
411
+ if (!backdrop) return element;
472
412
  return /* @__PURE__ */ jsxs(Fragment, { children: [
473
413
  /* @__PURE__ */ jsx(
474
414
  DialogBackdrop,
@@ -517,8 +457,7 @@ function createDialogComponent(Component, useProviderContext = useDialogProvider
517
457
  store,
518
458
  (state) => !props.unmountOnHide || (state == null ? void 0 : state.mounted) || !!props.open
519
459
  );
520
- if (!mounted)
521
- return null;
460
+ if (!mounted) return null;
522
461
  return /* @__PURE__ */ jsx(Component, __spreadValues({}, props));
523
462
  });
524
463
  }
@@ -5,19 +5,19 @@ import {
5
5
  groupItemsByRows,
6
6
  isItem,
7
7
  silentlyFocused
8
- } from "./3IEDWLST.js";
8
+ } from "./5VQZOHHZ.js";
9
9
  import {
10
10
  CompositeContextProvider,
11
11
  useCompositeProviderContext
12
- } from "./53KINMNA.js";
12
+ } from "./WENSINUV.js";
13
13
  import {
14
14
  useFocusable
15
- } from "./DYAGAZRT.js";
15
+ } from "./HGZKAGPL.js";
16
16
  import {
17
17
  createElement,
18
18
  createHook,
19
19
  forwardRef
20
- } from "./YIF72NQG.js";
20
+ } from "./HKOOKEDE.js";
21
21
  import {
22
22
  useBooleanEvent,
23
23
  useEvent,
@@ -25,12 +25,12 @@ import {
25
25
  useSafeLayoutEffect,
26
26
  useTransactionState,
27
27
  useWrapElement
28
- } from "./OPTPHWV7.js";
28
+ } from "./Z32BISHQ.js";
29
29
  import {
30
30
  __objRest,
31
31
  __spreadProps,
32
32
  __spreadValues
33
- } from "./4R3V3JGP.js";
33
+ } from "./3YLGPPWQ.js";
34
34
 
35
35
  // src/composite/composite.tsx
36
36
  import { flatten2DArray, reverseArray } from "@ariakit/core/utils/array";
@@ -50,8 +50,7 @@ function isGrid(items) {
50
50
  }
51
51
  function isPrintableKey(event) {
52
52
  const target = event.target;
53
- if (target && !isTextField(target))
54
- return false;
53
+ if (target && !isTextField(target)) return false;
55
54
  return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
56
55
  }
57
56
  function isModifierKey(event) {
@@ -61,20 +60,14 @@ function useKeyboardEventProxy(store, onKeyboardEvent, previousElementRef) {
61
60
  return useEvent((event) => {
62
61
  var _a;
63
62
  onKeyboardEvent == null ? void 0 : onKeyboardEvent(event);
64
- if (event.defaultPrevented)
65
- return;
66
- if (event.isPropagationStopped())
67
- return;
68
- if (!isSelfTarget(event))
69
- return;
70
- if (isModifierKey(event))
71
- return;
72
- if (isPrintableKey(event))
73
- return;
63
+ if (event.defaultPrevented) return;
64
+ if (event.isPropagationStopped()) return;
65
+ if (!isSelfTarget(event)) return;
66
+ if (isModifierKey(event)) return;
67
+ if (isPrintableKey(event)) return;
74
68
  const state = store.getState();
75
69
  const activeElement = (_a = getEnabledItem(store, state.activeId)) == null ? void 0 : _a.element;
76
- if (!activeElement)
77
- return;
70
+ if (!activeElement) return;
78
71
  const _b = event, { view } = _b, eventInit = __objRest(_b, ["view"]);
79
72
  const previousElement = previousElementRef == null ? void 0 : previousElementRef.current;
80
73
  if (activeElement !== previousElement) {
@@ -101,10 +94,8 @@ function useScheduleFocus(store) {
101
94
  );
102
95
  useEffect(() => {
103
96
  const activeElement = activeItem == null ? void 0 : activeItem.element;
104
- if (!scheduled)
105
- return;
106
- if (!activeElement)
107
- return;
97
+ if (!scheduled) return;
98
+ if (!activeElement) return;
108
99
  setScheduled(false);
109
100
  activeElement.focus({ preventScroll: true });
110
101
  }, [activeItem, scheduled]);
@@ -138,33 +129,23 @@ var useComposite = createHook(
138
129
  );
139
130
  useEffect(() => {
140
131
  var _a2;
141
- if (!store)
142
- return;
143
- if (!moves)
144
- return;
145
- if (!composite)
146
- return;
147
- if (!focusOnMove)
148
- return;
132
+ if (!store) return;
133
+ if (!moves) return;
134
+ if (!composite) return;
135
+ if (!focusOnMove) return;
149
136
  const { activeId: activeId2 } = store.getState();
150
137
  const itemElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
151
- if (!itemElement)
152
- return;
138
+ if (!itemElement) return;
153
139
  focusIntoView(itemElement);
154
140
  }, [store, moves, composite, focusOnMove]);
155
141
  useSafeLayoutEffect(() => {
156
- if (!store)
157
- return;
158
- if (!moves)
159
- return;
160
- if (!composite)
161
- return;
142
+ if (!store) return;
143
+ if (!moves) return;
144
+ if (!composite) return;
162
145
  const { baseElement, activeId: activeId2 } = store.getState();
163
146
  const isSelfAcive = activeId2 === null;
164
- if (!isSelfAcive)
165
- return;
166
- if (!baseElement)
167
- return;
147
+ if (!isSelfAcive) return;
148
+ if (!baseElement) return;
168
149
  const previousElement = previousElementRef.current;
169
150
  previousElementRef.current = null;
170
151
  if (previousElement) {
@@ -178,20 +159,15 @@ var useComposite = createHook(
178
159
  const virtualFocus = store.useState("virtualFocus");
179
160
  useSafeLayoutEffect(() => {
180
161
  var _a2;
181
- if (!store)
182
- return;
183
- if (!composite)
184
- return;
185
- if (!virtualFocus)
186
- return;
162
+ if (!store) return;
163
+ if (!composite) return;
164
+ if (!virtualFocus) return;
187
165
  const previousElement = previousElementRef.current;
188
166
  previousElementRef.current = null;
189
- if (!previousElement)
190
- return;
167
+ if (!previousElement) return;
191
168
  const activeElement = (_a2 = getEnabledItem(store, activeId)) == null ? void 0 : _a2.element;
192
169
  const relatedTarget = activeElement || getActiveElement(previousElement);
193
- if (relatedTarget === previousElement)
194
- return;
170
+ if (relatedTarget === previousElement) return;
195
171
  fireBlurEvent(previousElement, { relatedTarget });
196
172
  }, [store, activeId, virtualFocus, composite]);
197
173
  const onKeyDownCapture = useKeyboardEventProxy(
@@ -207,13 +183,10 @@ var useComposite = createHook(
207
183
  const onFocusCaptureProp = props.onFocusCapture;
208
184
  const onFocusCapture = useEvent((event) => {
209
185
  onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
210
- if (event.defaultPrevented)
211
- return;
212
- if (!store)
213
- return;
186
+ if (event.defaultPrevented) return;
187
+ if (!store) return;
214
188
  const { virtualFocus: virtualFocus2 } = store.getState();
215
- if (!virtualFocus2)
216
- return;
189
+ if (!virtualFocus2) return;
217
190
  const previousActiveElement = event.relatedTarget;
218
191
  const isSilentlyFocused = silentlyFocused(event.currentTarget);
219
192
  if (isSelfTarget(event) && isSilentlyFocused) {
@@ -224,12 +197,9 @@ var useComposite = createHook(
224
197
  const onFocusProp = props.onFocus;
225
198
  const onFocus = useEvent((event) => {
226
199
  onFocusProp == null ? void 0 : onFocusProp(event);
227
- if (event.defaultPrevented)
228
- return;
229
- if (!composite)
230
- return;
231
- if (!store)
232
- return;
200
+ if (event.defaultPrevented) return;
201
+ if (!composite) return;
202
+ if (!store) return;
233
203
  const { relatedTarget } = event;
234
204
  const { virtualFocus: virtualFocus2 } = store.getState();
235
205
  if (virtualFocus2) {
@@ -244,13 +214,10 @@ var useComposite = createHook(
244
214
  const onBlurCapture = useEvent((event) => {
245
215
  var _a2;
246
216
  onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
247
- if (event.defaultPrevented)
248
- return;
249
- if (!store)
250
- return;
217
+ if (event.defaultPrevented) return;
218
+ if (!store) return;
251
219
  const { virtualFocus: virtualFocus2, activeId: activeId2 } = store.getState();
252
- if (!virtualFocus2)
253
- return;
220
+ if (!virtualFocus2) return;
254
221
  const activeElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
255
222
  const nextActiveElement = event.relatedTarget;
256
223
  const nextActiveElementIsItem = isItem(store, nextActiveElement);
@@ -279,22 +246,17 @@ var useComposite = createHook(
279
246
  const onKeyDown = useEvent((event) => {
280
247
  var _a2;
281
248
  onKeyDownProp == null ? void 0 : onKeyDownProp(event);
282
- if (event.defaultPrevented)
283
- return;
284
- if (!store)
285
- return;
286
- if (!isSelfTarget(event))
287
- return;
249
+ if (event.defaultPrevented) return;
250
+ if (!store) return;
251
+ if (!isSelfTarget(event)) return;
288
252
  const { orientation, items, renderedItems, activeId: activeId2 } = store.getState();
289
253
  const activeItem = getEnabledItem(store, activeId2);
290
- if ((_a2 = activeItem == null ? void 0 : activeItem.element) == null ? void 0 : _a2.isConnected)
291
- return;
254
+ if ((_a2 = activeItem == null ? void 0 : activeItem.element) == null ? void 0 : _a2.isConnected) return;
292
255
  const isVertical = orientation !== "horizontal";
293
256
  const isHorizontal = orientation !== "vertical";
294
257
  const grid = isGrid(renderedItems);
295
258
  const isHorizontalKey = event.key === "ArrowLeft" || event.key === "ArrowRight" || event.key === "Home" || event.key === "End";
296
- if (isHorizontalKey && isTextField(event.currentTarget))
297
- return;
259
+ if (isHorizontalKey && isTextField(event.currentTarget)) return;
298
260
  const up = () => {
299
261
  if (grid) {
300
262
  const item = items && findFirstEnabledItemInTheLastRow(items);
@@ -316,8 +278,7 @@ var useComposite = createHook(
316
278
  if (action) {
317
279
  const id = action();
318
280
  if (id !== void 0) {
319
- if (!moveOnKeyPressProp(event))
320
- return;
281
+ if (!moveOnKeyPressProp(event)) return;
321
282
  event.preventDefault();
322
283
  store.move(id);
323
284
  }
@@ -330,12 +291,9 @@ var useComposite = createHook(
330
291
  );
331
292
  const activeDescendant = store.useState((state) => {
332
293
  var _a2;
333
- if (!store)
334
- return;
335
- if (!composite)
336
- return;
337
- if (!state.virtualFocus)
338
- return;
294
+ if (!store) return;
295
+ if (!composite) return;
296
+ if (!state.virtualFocus) return;
339
297
  return (_a2 = getEnabledItem(store, state.activeId)) == null ? void 0 : _a2.id;
340
298
  });
341
299
  props = __spreadProps(__spreadValues({