@ariakit/react-core 0.4.7 → 0.4.8

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 (680) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cjs/__chunks/{BYOVTGKW.cjs → 32MRW5OT.cjs} +6 -6
  3. package/cjs/__chunks/{ALRD57MK.cjs → 35VA3E7J.cjs} +29 -41
  4. package/cjs/__chunks/3EGVYPXR.cjs +37 -0
  5. package/cjs/__chunks/{XNZYNVWR.cjs → 3HGFVGHB.cjs} +2 -4
  6. package/cjs/__chunks/{5WO5IPAV.cjs → 4GQ35G4W.cjs} +6 -6
  7. package/cjs/__chunks/5375OBKP.cjs +37 -0
  8. package/cjs/__chunks/{I4MVAAJP.cjs → 54XFMNDS.cjs} +10 -16
  9. package/cjs/__chunks/{XL63LIJ7.cjs → 55G3CDVQ.cjs} +2 -2
  10. package/cjs/__chunks/{K3BALMJM.cjs → 55IP6UF7.cjs} +12 -12
  11. package/cjs/__chunks/{N3OBAM6Q.cjs → 5KGVVKTB.cjs} +23 -28
  12. package/cjs/__chunks/{WJRUE2R2.cjs → 5KRJFKRD.cjs} +16 -16
  13. package/cjs/__chunks/{7VN5EZ4Y.cjs → 5XC2EBLV.cjs} +5 -5
  14. package/cjs/__chunks/{TL2ZGAUB.cjs → 5XRB5OJG.cjs} +6 -6
  15. package/cjs/__chunks/{SOECYHV7.cjs → 7D3WLJ6Y.cjs} +4 -4
  16. package/cjs/__chunks/{6EWVPQDA.cjs → 7JEGHXLQ.cjs} +17 -17
  17. package/cjs/__chunks/{7WJNX42F.cjs → ALUDDGPE.cjs} +36 -43
  18. package/cjs/__chunks/{Q3R7NEK6.cjs → AWEKOM65.cjs} +16 -18
  19. package/cjs/__chunks/{ZKONUU4L.cjs → AYLCDTBI.cjs} +19 -22
  20. package/cjs/__chunks/{B37P2XPZ.cjs → BNMYVASA.cjs} +27 -41
  21. package/cjs/__chunks/{6ZZYUFPW.cjs → BV5PE6PZ.cjs} +5 -10
  22. package/cjs/__chunks/{QKQVW2OL.cjs → BZ34A7Q7.cjs} +5 -5
  23. package/cjs/__chunks/{VSEZRJQP.cjs → CAVEC6QQ.cjs} +2 -2
  24. package/cjs/__chunks/{QHEY2OM5.cjs → CINY3Q6Q.cjs} +95 -148
  25. package/cjs/__chunks/{GQEDBQIJ.cjs → CQ3ILEKO.cjs} +5 -5
  26. package/cjs/__chunks/{RGBIX753.cjs → CTYV4VU3.cjs} +4 -4
  27. package/cjs/__chunks/{N7WKRWT7.cjs → D6GJ6H7T.cjs} +121 -182
  28. package/cjs/__chunks/{FWTMT3XN.cjs → DPVDBBFO.cjs} +12 -13
  29. package/cjs/__chunks/{B6WDC6K5.cjs → DTTG2PLR.cjs} +11 -11
  30. package/cjs/__chunks/{TLQ4Z6Y3.cjs → DYEW6UIB.cjs} +4 -6
  31. package/cjs/__chunks/{J3LHZMCN.cjs → EDR5S5CX.cjs} +63 -109
  32. package/cjs/__chunks/{KK65NZHC.cjs → EFOAIXM5.cjs} +7 -12
  33. package/cjs/__chunks/{Y35VEVEA.cjs → EY32VECZ.cjs} +17 -17
  34. package/cjs/__chunks/{CAWDTTCO.cjs → EZFLPAN5.cjs} +5 -5
  35. package/cjs/__chunks/{RBQK5YSP.cjs → F5OF3EOI.cjs} +5 -5
  36. package/cjs/__chunks/{J23ACBIS.cjs → FW7MMP43.cjs} +17 -17
  37. package/cjs/__chunks/{ZWJIMANM.cjs → GEDABTB5.cjs} +81 -123
  38. package/cjs/__chunks/{RJXJZXU4.cjs → GEF4CKCI.cjs} +7 -7
  39. package/cjs/__chunks/{QZTEAIEB.cjs → I2B6AUM7.cjs} +9 -9
  40. package/cjs/__chunks/{FKEHXOZH.cjs → I52OTQQ2.cjs} +6 -6
  41. package/cjs/__chunks/{V5HJPNDM.cjs → I62GZSMK.cjs} +18 -23
  42. package/cjs/__chunks/{JY4FTKAQ.cjs → IHRK7HOT.cjs} +5 -5
  43. package/cjs/__chunks/INEJRBLK.cjs +37 -0
  44. package/cjs/__chunks/{WJWRXAE2.cjs → J3QW3U2K.cjs} +10 -10
  45. package/cjs/__chunks/{7BWVJDM5.cjs → JB3ASB5F.cjs} +6 -6
  46. package/cjs/__chunks/{7SM32XGS.cjs → JNDKYZLH.cjs} +31 -41
  47. package/cjs/__chunks/{ZXXHG5BK.cjs → JOPR6ORJ.cjs} +5 -5
  48. package/cjs/__chunks/{NA6K3SI7.cjs → JT66FSLM.cjs} +30 -43
  49. package/cjs/__chunks/KEFNKTQ2.cjs +32 -0
  50. package/cjs/__chunks/{7SXMOZBC.cjs → KNWPYX4B.cjs} +6 -6
  51. package/cjs/__chunks/{H4A34XBV.cjs → KOJWH5YC.cjs} +5 -5
  52. package/cjs/__chunks/{LJFI6VVH.cjs → L2VXOCPG.cjs} +14 -15
  53. package/cjs/__chunks/{C5YBMSVA.cjs → LMD72BFO.cjs} +12 -12
  54. package/cjs/__chunks/{DXJ2T33U.cjs → LO2HIMYX.cjs} +5 -5
  55. package/cjs/__chunks/{Q6XPDC6H.cjs → M2NSCXQI.cjs} +8 -8
  56. package/cjs/__chunks/{NI34BXW7.cjs → MANSJYLV.cjs} +7 -7
  57. package/cjs/__chunks/{S5ZSEKI4.cjs → MHPAHLXS.cjs} +37 -51
  58. package/cjs/__chunks/{RZJIUKJK.cjs → MQ7GAESK.cjs} +5 -5
  59. package/cjs/__chunks/{7YLCVXZ7.cjs → MTP72GGY.cjs} +5 -10
  60. package/cjs/__chunks/{VQSZN4ZZ.cjs → MUQXBDUR.cjs} +13 -18
  61. package/cjs/__chunks/{73ENVLSL.cjs → MVSF6EJW.cjs} +12 -12
  62. package/cjs/__chunks/{XHX57Y3O.cjs → MYHF5JTH.cjs} +6 -6
  63. package/cjs/__chunks/N2SIFK7A.cjs +49 -0
  64. package/cjs/__chunks/{3VQCUG5S.cjs → NMKMMUOR.cjs} +6 -7
  65. package/cjs/__chunks/{6UJTOT6Y.cjs → NRLE3XE7.cjs} +2 -2
  66. package/cjs/__chunks/{XOGGS4JT.cjs → O7XO5LCL.cjs} +8 -8
  67. package/cjs/__chunks/{D5YFJQWS.cjs → ONFSQI2X.cjs} +7 -7
  68. package/cjs/__chunks/{J4TOY3CV.cjs → OR7WTDA4.cjs} +9 -11
  69. package/cjs/__chunks/OU2GPBZW.cjs +31 -0
  70. package/cjs/__chunks/{IZ2J6IIQ.cjs → OUWHJLQH.cjs} +15 -24
  71. package/cjs/__chunks/{DR6TZZCO.cjs → OVBWMHNO.cjs} +12 -21
  72. package/cjs/__chunks/OWLCE773.cjs +40 -0
  73. package/cjs/__chunks/{KSANDLPZ.cjs → OZFFK5VS.cjs} +16 -21
  74. package/cjs/__chunks/{SOLTCMT3.cjs → PB5FNOHD.cjs} +4 -4
  75. package/cjs/__chunks/{DIFM3L3J.cjs → PI2PMECI.cjs} +66 -90
  76. package/cjs/__chunks/{T6EOHNY7.cjs → PULY27HQ.cjs} +19 -29
  77. package/cjs/__chunks/{DQCMG5NY.cjs → PYKELHKQ.cjs} +15 -18
  78. package/cjs/__chunks/{SFHZVYRX.cjs → QA3YJPTA.cjs} +16 -16
  79. package/cjs/__chunks/{T26VEGNG.cjs → QC5YVEX2.cjs} +6 -6
  80. package/cjs/__chunks/{3P3P4ECD.cjs → QEHZIMM5.cjs} +14 -14
  81. package/cjs/__chunks/{H57E5ZUT.cjs → QW2GOYBN.cjs} +5 -5
  82. package/cjs/__chunks/{Z72SS67C.cjs → R27VYD4T.cjs} +36 -46
  83. package/cjs/__chunks/R6D5K5O4.cjs +40 -0
  84. package/cjs/__chunks/{BINHWFDM.cjs → RCX6DZ2C.cjs} +8 -8
  85. package/cjs/__chunks/{SMXQY72C.cjs → RVQKZ37U.cjs} +6 -6
  86. package/cjs/__chunks/{6YNUIZOM.cjs → SRE6U4QD.cjs} +24 -27
  87. package/cjs/__chunks/{S6LYARLY.cjs → STTOVFIA.cjs} +5 -5
  88. package/cjs/__chunks/{EEY4ZWA3.cjs → SY7NHEDF.cjs} +36 -46
  89. package/cjs/__chunks/{KN72PYUW.cjs → TGMTQMEK.cjs} +28 -36
  90. package/cjs/__chunks/{NYCVZQTV.cjs → THYF3LTR.cjs} +5 -5
  91. package/cjs/__chunks/{6FPOXFLO.cjs → TILYAERE.cjs} +7 -7
  92. package/cjs/__chunks/{2NU7KANK.cjs → TLYXF4HI.cjs} +36 -55
  93. package/cjs/__chunks/{GEMFHX6H.cjs → TPGAU7YB.cjs} +82 -142
  94. package/cjs/__chunks/{DSGXHMTR.cjs → TRKXX6UW.cjs} +5 -5
  95. package/cjs/__chunks/{JBIQ5SAD.cjs → TTDPJ5B7.cjs} +10 -10
  96. package/cjs/__chunks/{KGF55T6Z.cjs → VYADJOAV.cjs} +33 -47
  97. package/cjs/__chunks/{L6NXSTRB.cjs → VYTT2R6P.cjs} +33 -58
  98. package/cjs/__chunks/{RKAA2DJ6.cjs → VZGX2ILJ.cjs} +9 -9
  99. package/cjs/__chunks/{IU6B7LBR.cjs → W3DXC3KC.cjs} +8 -8
  100. package/cjs/__chunks/{OX5LLZZB.cjs → WBUSMWPW.cjs} +39 -57
  101. package/cjs/__chunks/{FZAUH4KL.cjs → WGNARUKE.cjs} +13 -13
  102. package/cjs/__chunks/{OJM6XVJZ.cjs → WSL22WT6.cjs} +31 -34
  103. package/cjs/__chunks/{KPQSDZEK.cjs → X7JQ6QHE.cjs} +9 -9
  104. package/cjs/__chunks/{3VKSP77V.cjs → XV4AOZNF.cjs} +30 -43
  105. package/cjs/__chunks/{LVHGII5Y.cjs → Y2LRH7ZH.cjs} +12 -12
  106. package/cjs/__chunks/Y56UQNH6.cjs +31 -0
  107. package/cjs/__chunks/{7X6S652E.cjs → YRGMTDX5.cjs} +14 -15
  108. package/cjs/__chunks/{3ND7K6FF.cjs → YS72JDSE.cjs} +5 -8
  109. package/cjs/__chunks/{IPFBKOFN.cjs → YSGZGMEL.cjs} +4 -4
  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 +17 -17
  132. package/cjs/combobox/combobox-item.cjs +48 -58
  133. package/cjs/combobox/combobox-label.cjs +17 -17
  134. package/cjs/combobox/combobox-list.cjs +14 -14
  135. package/cjs/combobox/combobox-popover.cjs +52 -60
  136. package/cjs/combobox/combobox-provider.cjs +20 -20
  137. package/cjs/combobox/combobox-row.cjs +18 -18
  138. package/cjs/combobox/combobox-separator.cjs +18 -18
  139. package/cjs/combobox/combobox-store.cjs +15 -15
  140. package/cjs/combobox/combobox-value.cjs +11 -11
  141. package/cjs/combobox/combobox.cjs +98 -154
  142. package/cjs/combobox/combobox.d.cts +2 -1
  143. package/cjs/combobox/combobox.d.ts +2 -1
  144. package/cjs/command/command.cjs +7 -7
  145. package/cjs/composite/composite-container.cjs +10 -10
  146. package/cjs/composite/composite-context.cjs +7 -7
  147. package/cjs/composite/composite-group-label.cjs +7 -7
  148. package/cjs/composite/composite-group.cjs +7 -7
  149. package/cjs/composite/composite-hover.cjs +8 -8
  150. package/cjs/composite/composite-input.cjs +17 -20
  151. package/cjs/composite/composite-item.cjs +13 -13
  152. package/cjs/composite/composite-overflow-disclosure.cjs +34 -36
  153. package/cjs/composite/composite-overflow-store.cjs +9 -9
  154. package/cjs/composite/composite-overflow.cjs +40 -41
  155. package/cjs/composite/composite-provider.cjs +11 -11
  156. package/cjs/composite/composite-renderer.cjs +10 -10
  157. package/cjs/composite/composite-renderer.d.cts +13 -15
  158. package/cjs/composite/composite-renderer.d.ts +13 -15
  159. package/cjs/composite/composite-row.cjs +8 -8
  160. package/cjs/composite/composite-separator.cjs +9 -9
  161. package/cjs/composite/composite-store.cjs +7 -7
  162. package/cjs/composite/composite-typeahead.cjs +9 -9
  163. package/cjs/composite/composite.cjs +10 -10
  164. package/cjs/composite/utils.cjs +3 -3
  165. package/cjs/dialog/dialog-backdrop.cjs +16 -16
  166. package/cjs/dialog/dialog-context.cjs +7 -7
  167. package/cjs/dialog/dialog-description.cjs +8 -8
  168. package/cjs/dialog/dialog-disclosure.cjs +12 -12
  169. package/cjs/dialog/dialog-dismiss.cjs +11 -11
  170. package/cjs/dialog/dialog-heading.cjs +9 -9
  171. package/cjs/dialog/dialog-provider.cjs +11 -11
  172. package/cjs/dialog/dialog-store.cjs +7 -7
  173. package/cjs/dialog/dialog.cjs +29 -29
  174. package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +6 -6
  175. package/cjs/dialog/utils/disable-tree.cjs +7 -7
  176. package/cjs/dialog/utils/is-backdrop.cjs +3 -3
  177. package/cjs/dialog/utils/mark-tree-outside.cjs +6 -6
  178. package/cjs/dialog/utils/orchestrate.cjs +3 -3
  179. package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +1 -1
  180. package/cjs/dialog/utils/supports-inert.cjs +1 -1
  181. package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +9 -9
  182. package/cjs/dialog/utils/use-nested-dialogs.cjs +5 -5
  183. package/cjs/dialog/utils/use-prevent-body-scroll.cjs +7 -7
  184. package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +1 -1
  185. package/cjs/dialog/utils/use-root-dialog.cjs +5 -5
  186. package/cjs/dialog/utils/walk-tree-outside.cjs +4 -4
  187. package/cjs/disclosure/disclosure-content.cjs +9 -9
  188. package/cjs/disclosure/disclosure-context.cjs +6 -6
  189. package/cjs/disclosure/disclosure-provider.cjs +9 -9
  190. package/cjs/disclosure/disclosure-store.cjs +6 -6
  191. package/cjs/disclosure/disclosure.cjs +10 -10
  192. package/cjs/focus-trap/focus-trap-region.cjs +16 -18
  193. package/cjs/focus-trap/focus-trap.cjs +7 -7
  194. package/cjs/focusable/focusable-container.cjs +6 -6
  195. package/cjs/focusable/focusable-context.cjs +1 -1
  196. package/cjs/focusable/focusable.cjs +6 -6
  197. package/cjs/form/form-checkbox.cjs +23 -23
  198. package/cjs/form/form-context.cjs +7 -7
  199. package/cjs/form/form-control.cjs +9 -9
  200. package/cjs/form/form-description.cjs +18 -18
  201. package/cjs/form/form-error.cjs +20 -22
  202. package/cjs/form/form-field.cjs +13 -13
  203. package/cjs/form/form-group-label.cjs +10 -10
  204. package/cjs/form/form-group.cjs +7 -7
  205. package/cjs/form/form-input.cjs +20 -21
  206. package/cjs/form/form-label.cjs +26 -30
  207. package/cjs/form/form-provider.cjs +11 -11
  208. package/cjs/form/form-push.cjs +27 -34
  209. package/cjs/form/form-radio-group.cjs +12 -12
  210. package/cjs/form/form-radio.cjs +27 -28
  211. package/cjs/form/form-remove.cjs +21 -25
  212. package/cjs/form/form-reset.cjs +16 -16
  213. package/cjs/form/form-store.cjs +7 -7
  214. package/cjs/form/form-submit.cjs +16 -16
  215. package/cjs/form/form.cjs +35 -49
  216. package/cjs/group/group-label-context.cjs +1 -1
  217. package/cjs/group/group-label.cjs +6 -6
  218. package/cjs/group/group.cjs +6 -6
  219. package/cjs/heading/heading-context.cjs +1 -1
  220. package/cjs/heading/heading-level.cjs +1 -1
  221. package/cjs/heading/heading.cjs +6 -6
  222. package/cjs/hovercard/hovercard-anchor.cjs +11 -11
  223. package/cjs/hovercard/hovercard-arrow.cjs +15 -15
  224. package/cjs/hovercard/hovercard-context.cjs +9 -9
  225. package/cjs/hovercard/hovercard-description.cjs +10 -10
  226. package/cjs/hovercard/hovercard-disclosure.cjs +37 -47
  227. package/cjs/hovercard/hovercard-dismiss.cjs +15 -15
  228. package/cjs/hovercard/hovercard-heading.cjs +11 -11
  229. package/cjs/hovercard/hovercard-provider.cjs +15 -15
  230. package/cjs/hovercard/hovercard-store.cjs +9 -9
  231. package/cjs/hovercard/hovercard.cjs +34 -34
  232. package/cjs/hovercard/utils/debug-polygon.cjs +1 -1
  233. package/cjs/hovercard/utils/polygon.cjs +3 -3
  234. package/cjs/index.cjs +1 -1
  235. package/cjs/menu/menu-arrow.cjs +19 -19
  236. package/cjs/menu/menu-bar-provider.cjs +13 -13
  237. package/cjs/menu/menu-bar-store.cjs +9 -9
  238. package/cjs/menu/menu-bar.cjs +19 -19
  239. package/cjs/menu/menu-button-arrow.cjs +19 -19
  240. package/cjs/menu/menu-button.cjs +60 -77
  241. package/cjs/menu/menu-context.cjs +13 -13
  242. package/cjs/menu/menu-description.cjs +13 -13
  243. package/cjs/menu/menu-dismiss.cjs +26 -26
  244. package/cjs/menu/menu-group-label.cjs +10 -10
  245. package/cjs/menu/menu-group.cjs +10 -10
  246. package/cjs/menu/menu-heading.cjs +14 -14
  247. package/cjs/menu/menu-item-check.cjs +19 -19
  248. package/cjs/menu/menu-item-checkbox.cjs +41 -48
  249. package/cjs/menu/menu-item-radio.cjs +38 -42
  250. package/cjs/menu/menu-item.cjs +21 -21
  251. package/cjs/menu/menu-list.cjs +20 -20
  252. package/cjs/menu/menu-provider.cjs +23 -23
  253. package/cjs/menu/menu-separator.cjs +20 -20
  254. package/cjs/menu/menu-store.cjs +22 -22
  255. package/cjs/menu/menu.cjs +75 -93
  256. package/cjs/menubar/menubar-context.cjs +8 -8
  257. package/cjs/menubar/menubar-provider.cjs +13 -13
  258. package/cjs/menubar/menubar-store.cjs +8 -8
  259. package/cjs/menubar/menubar.cjs +16 -16
  260. package/cjs/popover/popover-anchor.cjs +9 -9
  261. package/cjs/popover/popover-arrow-path.cjs +1 -1
  262. package/cjs/popover/popover-arrow.cjs +9 -9
  263. package/cjs/popover/popover-context.cjs +8 -8
  264. package/cjs/popover/popover-description.cjs +9 -9
  265. package/cjs/popover/popover-disclosure-arrow.cjs +9 -9
  266. package/cjs/popover/popover-disclosure.cjs +15 -15
  267. package/cjs/popover/popover-dismiss.cjs +13 -13
  268. package/cjs/popover/popover-heading.cjs +10 -10
  269. package/cjs/popover/popover-provider.cjs +13 -13
  270. package/cjs/popover/popover-store.cjs +8 -8
  271. package/cjs/popover/popover.cjs +31 -31
  272. package/cjs/portal/portal-context.cjs +1 -1
  273. package/cjs/portal/portal.cjs +8 -8
  274. package/cjs/radio/radio-context.cjs +8 -8
  275. package/cjs/radio/radio-group.cjs +19 -19
  276. package/cjs/radio/radio-provider.cjs +13 -13
  277. package/cjs/radio/radio-store.cjs +8 -8
  278. package/cjs/radio/radio.cjs +15 -15
  279. package/cjs/role/role.cjs +6 -6
  280. package/cjs/select/select-arrow.cjs +13 -13
  281. package/cjs/select/select-context.cjs +11 -11
  282. package/cjs/select/select-dismiss.cjs +23 -23
  283. package/cjs/select/select-group-label.cjs +10 -10
  284. package/cjs/select/select-group.cjs +10 -10
  285. package/cjs/select/select-heading.cjs +21 -21
  286. package/cjs/select/select-item-check.cjs +17 -17
  287. package/cjs/select/select-item.cjs +44 -54
  288. package/cjs/select/select-label.cjs +22 -23
  289. package/cjs/select/select-list.cjs +18 -18
  290. package/cjs/select/select-popover.cjs +46 -46
  291. package/cjs/select/select-provider.cjs +20 -20
  292. package/cjs/select/select-renderer.cjs +28 -35
  293. package/cjs/select/select-row.cjs +18 -18
  294. package/cjs/select/select-separator.cjs +18 -18
  295. package/cjs/select/select-store.cjs +18 -18
  296. package/cjs/select/select-value.cjs +13 -13
  297. package/cjs/select/select.cjs +47 -57
  298. package/cjs/separator/separator.cjs +6 -6
  299. package/cjs/tab/tab-context.cjs +8 -8
  300. package/cjs/tab/tab-list.cjs +20 -20
  301. package/cjs/tab/tab-panel.cjs +36 -41
  302. package/cjs/tab/tab-provider.cjs +18 -18
  303. package/cjs/tab/tab-store.cjs +16 -16
  304. package/cjs/tab/tab.cjs +45 -51
  305. package/cjs/tag/tag-context.cjs +8 -8
  306. package/cjs/tag/tag-input.cjs +40 -52
  307. package/cjs/tag/tag-list-label.cjs +15 -15
  308. package/cjs/tag/tag-list.cjs +26 -29
  309. package/cjs/tag/tag-provider.cjs +13 -13
  310. package/cjs/tag/tag-remove.cjs +24 -28
  311. package/cjs/tag/tag-store.cjs +8 -8
  312. package/cjs/tag/tag-value.cjs +8 -8
  313. package/cjs/tag/tag-values.cjs +8 -8
  314. package/cjs/tag/tag.cjs +28 -29
  315. package/cjs/tag/utils.cjs +1 -1
  316. package/cjs/toolbar/toolbar-container.cjs +23 -23
  317. package/cjs/toolbar/toolbar-context.cjs +8 -8
  318. package/cjs/toolbar/toolbar-input.cjs +21 -21
  319. package/cjs/toolbar/toolbar-item.cjs +15 -15
  320. package/cjs/toolbar/toolbar-provider.cjs +13 -13
  321. package/cjs/toolbar/toolbar-separator.cjs +15 -15
  322. package/cjs/toolbar/toolbar-store.cjs +8 -8
  323. package/cjs/toolbar/toolbar.cjs +24 -24
  324. package/cjs/tooltip/tooltip-anchor.cjs +30 -39
  325. package/cjs/tooltip/tooltip-arrow.cjs +16 -16
  326. package/cjs/tooltip/tooltip-context.cjs +10 -10
  327. package/cjs/tooltip/tooltip-provider.cjs +17 -17
  328. package/cjs/tooltip/tooltip-store.cjs +10 -10
  329. package/cjs/tooltip/tooltip.cjs +53 -59
  330. package/cjs/utils/hooks.cjs +4 -4
  331. package/cjs/utils/misc.cjs +3 -3
  332. package/cjs/utils/store.cjs +5 -5
  333. package/cjs/utils/system.cjs +5 -5
  334. package/cjs/utils/system.d.cts +2 -2
  335. package/cjs/utils/system.d.ts +2 -2
  336. package/cjs/visually-hidden/visually-hidden.cjs +6 -6
  337. package/esm/__chunks/{IH5KTPNA.js → 2JP3PD4E.js} +4 -4
  338. package/esm/__chunks/{3M4W2SZ7.js → 2PGBN2Y4.js} +8 -13
  339. package/esm/__chunks/{QT5BCKOY.js → 2PNU5FDT.js} +4 -4
  340. package/esm/__chunks/{FXF6FFAU.js → 2YDG6Q4P.js} +3 -3
  341. package/esm/__chunks/{J7UNXP2A.js → 32IPIQBR.js} +2 -2
  342. package/esm/__chunks/{67ZQCY2E.js → 3JMGO6V3.js} +4 -4
  343. package/esm/__chunks/{NETDJWDX.js → 3RXEUV3E.js} +4 -4
  344. package/esm/__chunks/{Y2HD42YR.js → 42INOJH3.js} +4 -4
  345. package/esm/__chunks/{GRUZR3XS.js → 4CA6HQZC.js} +11 -16
  346. package/esm/__chunks/{O7HGX5PA.js → 4DJ5UIED.js} +19 -33
  347. package/esm/__chunks/{KMGRI767.js → 4FCYZKRB.js} +10 -15
  348. package/esm/__chunks/{DGQNUP7F.js → 4KVV4LMJ.js} +1 -1
  349. package/esm/__chunks/{B4SPVRVU.js → 4ZTL4ESZ.js} +2 -2
  350. package/esm/__chunks/{D6WBY7EV.js → 543BQAW5.js} +4 -4
  351. package/esm/__chunks/{5PY7H3O6.js → 56RR3YNE.js} +3 -3
  352. package/esm/__chunks/{KVYXDH67.js → 5E5BPAV7.js} +8 -11
  353. package/esm/__chunks/{MYBFWPQK.js → 5NAURCQI.js} +5 -6
  354. package/esm/__chunks/{3IEDWLST.js → 5VQZOHHZ.js} +5 -10
  355. package/esm/__chunks/{MKDDWKFK.js → 63XF7ACK.js} +5 -10
  356. package/esm/__chunks/{OJBHU3NX.js → 6524RV3R.js} +10 -13
  357. package/esm/__chunks/{272IHWKI.js → 673TSSFB.js} +16 -26
  358. package/esm/__chunks/{R3QDAIOX.js → 6JLOZRF5.js} +3 -3
  359. package/esm/__chunks/{PGA74ZJ4.js → 6K7HZETS.js} +3 -3
  360. package/esm/__chunks/{2INQ6K4L.js → 7ATJTJIY.js} +4 -4
  361. package/esm/__chunks/{MIE7UGQE.js → 7DP25ROA.js} +5 -6
  362. package/esm/__chunks/{7NGG3X6T.js → 7RXYRUSH.js} +4 -4
  363. package/esm/__chunks/{5EKYTDKF.js → 7UYST25M.js} +16 -28
  364. package/esm/__chunks/{SYLYP2IN.js → AJE6WNNP.js} +39 -63
  365. package/esm/__chunks/{VC5OPI3O.js → AMQNTLCG.js} +8 -11
  366. package/esm/__chunks/{UN4MKOLN.js → AOK4FW4L.js} +61 -114
  367. package/esm/__chunks/{4SXGPXPS.js → AOUGVQZ3.js} +10 -19
  368. package/esm/__chunks/{FPZBL2HG.js → B3R2D232.js} +3 -3
  369. package/esm/__chunks/{ZPKRQJBS.js → BEBUB5QN.js} +2 -2
  370. package/esm/__chunks/{PFZ7V44A.js → C3D7NSUP.js} +4 -4
  371. package/esm/__chunks/{DYAGAZRT.js → DRL2GNLJ.js} +49 -95
  372. package/esm/__chunks/{SORNFOKV.js → EAHBL67B.js} +2 -2
  373. package/esm/__chunks/{HGKZNVMH.js → EMQCY6SH.js} +2 -2
  374. package/esm/__chunks/{SJ5YBTFK.js → EQMNTDLB.js} +1 -1
  375. package/esm/__chunks/{SYFUIAXQ.js → ESSM74HH.js} +4 -5
  376. package/esm/__chunks/{EKUOHYM2.js → EWPDRBSA.js} +2 -2
  377. package/esm/__chunks/{S6GWHPQZ.js → FLYVORTY.js} +2 -2
  378. package/esm/__chunks/{DTNGDFNU.js → FQ77EHUR.js} +12 -22
  379. package/esm/__chunks/{DDNAPH23.js → FQDOBJ6H.js} +6 -11
  380. package/esm/__chunks/{5XYSEKV3.js → G2E65A35.js} +25 -44
  381. package/esm/__chunks/{3HD5ZDMZ.js → HZ7KGUEF.js} +13 -21
  382. package/esm/__chunks/{4Q67VK3V.js → IQY2XH5H.js} +26 -44
  383. package/esm/__chunks/{QFO5OLDL.js → ITUYV2MN.js} +65 -125
  384. package/esm/__chunks/{WHHX3V5K.js → IZO5ZR3O.js} +2 -2
  385. package/esm/__chunks/{3L4UCDWT.js → J4NXMVZC.js} +3 -3
  386. package/esm/__chunks/{53CQGCDZ.js → K2ZF5NU7.js} +5 -8
  387. package/esm/__chunks/{RD2VYBH6.js → KHRZRUNB.js} +8 -8
  388. package/esm/__chunks/{2N6FBM3O.js → KXBJFI2T.js} +2 -2
  389. package/esm/__chunks/{GN2MH2Y2.js → KYRH6BDE.js} +2 -2
  390. package/esm/__chunks/{6MDCAUOE.js → LEWNCT3G.js} +20 -34
  391. package/esm/__chunks/{OTPVYNVT.js → LNYYGYYJ.js} +28 -53
  392. package/esm/__chunks/{URSEQETI.js → M6ZUVZPG.js} +2 -2
  393. package/esm/__chunks/{PVRT36VL.js → MHEVUPUR.js} +2 -2
  394. package/esm/__chunks/{FU7RTSEI.js → MTODTZOP.js} +1 -1
  395. package/esm/__chunks/{G3HTND37.js → NEBRAPXZ.js} +1 -1
  396. package/esm/__chunks/{NXZX7GS5.js → NJLXK3RL.js} +6 -6
  397. package/esm/__chunks/{ZPGENCAP.js → NMSEBYDL.js} +2 -2
  398. package/esm/__chunks/{75IH3TOO.js → NSFBIL2Z.js} +9 -14
  399. package/esm/__chunks/{A22SDPU3.js → NY537TEH.js} +4 -4
  400. package/esm/__chunks/{WH6Q5C3D.js → O6W3KMIU.js} +2 -2
  401. package/esm/__chunks/{U2FYKKWI.js → OE4UNAC4.js} +6 -6
  402. package/esm/__chunks/{CBOSGWHO.js → PMFZK2Z4.js} +17 -30
  403. package/esm/__chunks/{2LDES2MP.js → PS5YNAJZ.js} +3 -3
  404. package/esm/__chunks/{YIF72NQG.js → PTCNA5XT.js} +5 -7
  405. package/esm/__chunks/{OEBCGVCG.js → PZGHQO5Y.js} +7 -10
  406. package/esm/__chunks/{42G2NDPP.js → QAL7XKAT.js} +6 -6
  407. package/esm/__chunks/{5BXPMNKT.js → QJCHJYGN.js} +3 -3
  408. package/esm/__chunks/{PKNBS4Q6.js → R7AVCKGB.js} +3 -5
  409. package/esm/__chunks/{PKN6MQJP.js → RR3QLTVJ.js} +15 -25
  410. package/esm/__chunks/{XHMHIT7V.js → RVGP4EDO.js} +2 -2
  411. package/esm/__chunks/{HOOW7GH2.js → RZ4N7DMG.js} +6 -6
  412. package/esm/__chunks/{7CGRXEUR.js → SEE6HN7H.js} +3 -3
  413. package/esm/__chunks/{2YFUM7X5.js → SEHEJ7XZ.js} +20 -34
  414. package/esm/__chunks/{P7YNSWBG.js → SEMTJMZO.js} +5 -7
  415. package/esm/__chunks/{4ROCFRIN.js → SK3NAZA3.js} +7 -13
  416. package/esm/__chunks/{GDEEEVWP.js → T3FPB6UI.js} +2 -2
  417. package/esm/__chunks/{X3TS2MQG.js → TCS6QBGM.js} +2 -2
  418. package/esm/__chunks/{53KINMNA.js → TN5Y26CD.js} +2 -2
  419. package/esm/__chunks/{HJER6CSZ.js → TROKLLXK.js} +6 -6
  420. package/esm/__chunks/{5UDX7WKK.js → TUWQEMG5.js} +2 -2
  421. package/esm/__chunks/{IOEKCBMU.js → TWVD2KYP.js} +2 -2
  422. package/esm/__chunks/{CN7DDZL2.js → U7BJ2WVN.js} +78 -139
  423. package/esm/__chunks/{FG25KND2.js → U7IXCFEO.js} +3 -3
  424. package/esm/__chunks/{RV6RYOXG.js → V3XGKTI7.js} +2 -2
  425. package/esm/__chunks/{G5PRNFCL.js → VBM67XZT.js} +2 -2
  426. package/esm/__chunks/{QESPTHDX.js → VJLRJATI.js} +2 -2
  427. package/esm/__chunks/{LAKDACE6.js → W3QZUDGA.js} +3 -3
  428. package/esm/__chunks/{UV4QOTER.js → W77M2ZU5.js} +18 -31
  429. package/esm/__chunks/{GO53B7AR.js → WB2VUSZO.js} +3 -3
  430. package/esm/__chunks/{ELXIVOWC.js → WESQERUS.js} +4 -4
  431. package/esm/__chunks/{TNHM3SUC.js → WOYVW654.js} +16 -26
  432. package/esm/__chunks/{OPTPHWV7.js → WX6L4ACS.js} +11 -20
  433. package/esm/__chunks/{IX2MD5WD.js → X3G4E3V2.js} +2 -2
  434. package/esm/__chunks/{ZUNM32WK.js → X474FLSI.js} +2 -2
  435. package/esm/__chunks/{SD6TYZJO.js → X7QOZUD3.js} +2 -4
  436. package/esm/__chunks/{A6ABOV6V.js → XKTQ6BEH.js} +6 -7
  437. package/esm/__chunks/{X5ETRS5D.js → XRRE3XFB.js} +2 -2
  438. package/esm/__chunks/{CLDRDBYI.js → XV4RNL66.js} +2 -2
  439. package/esm/__chunks/{F6GOJSFF.js → XY6RPG62.js} +2 -2
  440. package/esm/__chunks/{QMBMAMY2.js → Y54YOYNA.js} +48 -90
  441. package/esm/__chunks/{OIFL4DQB.js → YJGBNUVO.js} +5 -5
  442. package/esm/__chunks/{PDTGHX74.js → ZAL25FJZ.js} +15 -22
  443. package/esm/__chunks/{FNENEDAU.js → ZS47AUQK.js} +2 -2
  444. package/esm/__chunks/{RW4EN5HP.js → ZU4IIYI2.js} +2 -2
  445. package/esm/button/button.js +7 -7
  446. package/esm/checkbox/checkbox-check.js +5 -5
  447. package/esm/checkbox/checkbox-checked-context.js +1 -1
  448. package/esm/checkbox/checkbox-context.js +5 -5
  449. package/esm/checkbox/checkbox-provider.js +7 -7
  450. package/esm/checkbox/checkbox-store.js +5 -5
  451. package/esm/checkbox/checkbox.js +9 -9
  452. package/esm/collection/collection-context.js +5 -5
  453. package/esm/collection/collection-item.js +6 -6
  454. package/esm/collection/collection-provider.js +7 -7
  455. package/esm/collection/collection-renderer.d.ts +13 -15
  456. package/esm/collection/collection-renderer.js +7 -7
  457. package/esm/collection/collection-store.js +5 -5
  458. package/esm/collection/collection.js +5 -5
  459. package/esm/combobox/combobox-cancel.js +16 -19
  460. package/esm/combobox/combobox-context.js +10 -10
  461. package/esm/combobox/combobox-disclosure.js +17 -19
  462. package/esm/combobox/combobox-group-label.js +6 -6
  463. package/esm/combobox/combobox-group.js +12 -12
  464. package/esm/combobox/combobox-item-check.js +11 -11
  465. package/esm/combobox/combobox-item-value.js +10 -10
  466. package/esm/combobox/combobox-item.js +27 -37
  467. package/esm/combobox/combobox-label.js +10 -10
  468. package/esm/combobox/combobox-list.js +13 -13
  469. package/esm/combobox/combobox-popover.js +42 -50
  470. package/esm/combobox/combobox-provider.js +18 -18
  471. package/esm/combobox/combobox-row.js +11 -11
  472. package/esm/combobox/combobox-separator.js +12 -12
  473. package/esm/combobox/combobox-store.js +14 -14
  474. package/esm/combobox/combobox-value.js +10 -10
  475. package/esm/combobox/combobox.d.ts +2 -1
  476. package/esm/combobox/combobox.js +70 -126
  477. package/esm/command/command.js +6 -6
  478. package/esm/composite/composite-container.js +9 -9
  479. package/esm/composite/composite-context.js +6 -6
  480. package/esm/composite/composite-group-label.js +6 -6
  481. package/esm/composite/composite-group.js +6 -6
  482. package/esm/composite/composite-hover.js +7 -7
  483. package/esm/composite/composite-input.js +8 -11
  484. package/esm/composite/composite-item.js +12 -12
  485. package/esm/composite/composite-overflow-disclosure.js +22 -24
  486. package/esm/composite/composite-overflow-store.js +7 -7
  487. package/esm/composite/composite-overflow.js +31 -32
  488. package/esm/composite/composite-provider.js +9 -9
  489. package/esm/composite/composite-renderer.d.ts +13 -15
  490. package/esm/composite/composite-renderer.js +9 -9
  491. package/esm/composite/composite-row.js +7 -7
  492. package/esm/composite/composite-separator.js +8 -8
  493. package/esm/composite/composite-store.js +6 -6
  494. package/esm/composite/composite-typeahead.js +8 -8
  495. package/esm/composite/composite.js +9 -9
  496. package/esm/composite/utils.js +2 -2
  497. package/esm/dialog/dialog-backdrop.js +15 -15
  498. package/esm/dialog/dialog-context.js +6 -6
  499. package/esm/dialog/dialog-description.js +7 -7
  500. package/esm/dialog/dialog-disclosure.js +11 -11
  501. package/esm/dialog/dialog-dismiss.js +10 -10
  502. package/esm/dialog/dialog-heading.js +8 -8
  503. package/esm/dialog/dialog-provider.js +9 -9
  504. package/esm/dialog/dialog-store.js +6 -6
  505. package/esm/dialog/dialog.js +28 -28
  506. package/esm/dialog/utils/disable-accessibility-tree-outside.js +5 -5
  507. package/esm/dialog/utils/disable-tree.js +6 -6
  508. package/esm/dialog/utils/is-backdrop.js +2 -2
  509. package/esm/dialog/utils/mark-tree-outside.js +5 -5
  510. package/esm/dialog/utils/orchestrate.js +2 -2
  511. package/esm/dialog/utils/prepend-hidden-dismiss.js +1 -1
  512. package/esm/dialog/utils/supports-inert.js +1 -1
  513. package/esm/dialog/utils/use-hide-on-interact-outside.js +8 -8
  514. package/esm/dialog/utils/use-nested-dialogs.js +4 -4
  515. package/esm/dialog/utils/use-prevent-body-scroll.js +6 -6
  516. package/esm/dialog/utils/use-previous-mouse-down-ref.js +1 -1
  517. package/esm/dialog/utils/use-root-dialog.js +4 -4
  518. package/esm/dialog/utils/walk-tree-outside.js +3 -3
  519. package/esm/disclosure/disclosure-content.js +8 -8
  520. package/esm/disclosure/disclosure-context.js +5 -5
  521. package/esm/disclosure/disclosure-provider.js +7 -7
  522. package/esm/disclosure/disclosure-store.js +5 -5
  523. package/esm/disclosure/disclosure.js +9 -9
  524. package/esm/focus-trap/focus-trap-region.js +8 -10
  525. package/esm/focus-trap/focus-trap.js +6 -6
  526. package/esm/focusable/focusable-container.js +5 -5
  527. package/esm/focusable/focusable-context.js +1 -1
  528. package/esm/focusable/focusable.js +5 -5
  529. package/esm/form/form-checkbox.js +14 -14
  530. package/esm/form/form-context.js +6 -6
  531. package/esm/form/form-control.js +8 -8
  532. package/esm/form/form-description.js +7 -7
  533. package/esm/form/form-error.js +9 -11
  534. package/esm/form/form-field.js +8 -8
  535. package/esm/form/form-group-label.js +5 -5
  536. package/esm/form/form-group.js +6 -6
  537. package/esm/form/form-input.js +10 -11
  538. package/esm/form/form-label.js +11 -15
  539. package/esm/form/form-provider.js +9 -9
  540. package/esm/form/form-push.js +17 -24
  541. package/esm/form/form-radio-group.js +6 -6
  542. package/esm/form/form-radio.js +17 -18
  543. package/esm/form/form-remove.js +13 -17
  544. package/esm/form/form-reset.js +9 -9
  545. package/esm/form/form-store.js +6 -6
  546. package/esm/form/form-submit.js +9 -9
  547. package/esm/form/form.js +20 -34
  548. package/esm/group/group-label-context.js +1 -1
  549. package/esm/group/group-label.js +5 -5
  550. package/esm/group/group.js +5 -5
  551. package/esm/heading/heading-context.js +1 -1
  552. package/esm/heading/heading-level.js +1 -1
  553. package/esm/heading/heading.js +5 -5
  554. package/esm/hovercard/hovercard-anchor.js +10 -10
  555. package/esm/hovercard/hovercard-arrow.js +9 -9
  556. package/esm/hovercard/hovercard-context.js +8 -8
  557. package/esm/hovercard/hovercard-description.js +9 -9
  558. package/esm/hovercard/hovercard-disclosure.js +24 -34
  559. package/esm/hovercard/hovercard-dismiss.js +14 -14
  560. package/esm/hovercard/hovercard-heading.js +10 -10
  561. package/esm/hovercard/hovercard-provider.js +13 -13
  562. package/esm/hovercard/hovercard-store.js +8 -8
  563. package/esm/hovercard/hovercard.js +33 -33
  564. package/esm/hovercard/utils/debug-polygon.js +1 -1
  565. package/esm/hovercard/utils/polygon.js +2 -2
  566. package/esm/index.js +1 -1
  567. package/esm/menu/menu-arrow.js +13 -13
  568. package/esm/menu/menu-bar-provider.js +12 -12
  569. package/esm/menu/menu-bar-store.js +7 -7
  570. package/esm/menu/menu-bar.js +15 -15
  571. package/esm/menu/menu-button-arrow.js +13 -13
  572. package/esm/menu/menu-button.js +41 -58
  573. package/esm/menu/menu-context.js +12 -12
  574. package/esm/menu/menu-description.js +9 -9
  575. package/esm/menu/menu-dismiss.js +18 -18
  576. package/esm/menu/menu-group-label.js +6 -6
  577. package/esm/menu/menu-group.js +6 -6
  578. package/esm/menu/menu-heading.js +10 -10
  579. package/esm/menu/menu-item-check.js +13 -13
  580. package/esm/menu/menu-item-checkbox.js +30 -37
  581. package/esm/menu/menu-item-radio.js +26 -30
  582. package/esm/menu/menu-item.js +20 -20
  583. package/esm/menu/menu-list.js +19 -19
  584. package/esm/menu/menu-provider.js +21 -21
  585. package/esm/menu/menu-separator.js +14 -14
  586. package/esm/menu/menu-store.js +21 -21
  587. package/esm/menu/menu.js +59 -77
  588. package/esm/menubar/menubar-context.js +7 -7
  589. package/esm/menubar/menubar-provider.js +12 -12
  590. package/esm/menubar/menubar-store.js +7 -7
  591. package/esm/menubar/menubar.js +15 -15
  592. package/esm/popover/popover-anchor.js +8 -8
  593. package/esm/popover/popover-arrow-path.js +1 -1
  594. package/esm/popover/popover-arrow.js +8 -8
  595. package/esm/popover/popover-context.js +7 -7
  596. package/esm/popover/popover-description.js +8 -8
  597. package/esm/popover/popover-disclosure-arrow.js +8 -8
  598. package/esm/popover/popover-disclosure.js +14 -14
  599. package/esm/popover/popover-dismiss.js +12 -12
  600. package/esm/popover/popover-heading.js +9 -9
  601. package/esm/popover/popover-provider.js +11 -11
  602. package/esm/popover/popover-store.js +7 -7
  603. package/esm/popover/popover.js +30 -30
  604. package/esm/portal/portal-context.js +1 -1
  605. package/esm/portal/portal.js +7 -7
  606. package/esm/radio/radio-context.js +7 -7
  607. package/esm/radio/radio-group.js +10 -10
  608. package/esm/radio/radio-provider.js +11 -11
  609. package/esm/radio/radio-store.js +7 -7
  610. package/esm/radio/radio.js +14 -14
  611. package/esm/role/role.js +5 -5
  612. package/esm/select/select-arrow.js +12 -12
  613. package/esm/select/select-context.js +10 -10
  614. package/esm/select/select-dismiss.js +15 -15
  615. package/esm/select/select-group-label.js +6 -6
  616. package/esm/select/select-group.js +6 -6
  617. package/esm/select/select-heading.js +13 -13
  618. package/esm/select/select-item-check.js +11 -11
  619. package/esm/select/select-item.js +27 -37
  620. package/esm/select/select-label.js +11 -12
  621. package/esm/select/select-list.js +17 -17
  622. package/esm/select/select-popover.js +37 -37
  623. package/esm/select/select-provider.js +18 -18
  624. package/esm/select/select-renderer.js +20 -27
  625. package/esm/select/select-row.js +11 -11
  626. package/esm/select/select-separator.js +12 -12
  627. package/esm/select/select-store.js +17 -17
  628. package/esm/select/select-value.js +11 -11
  629. package/esm/select/select.js +31 -41
  630. package/esm/separator/separator.js +5 -5
  631. package/esm/tab/tab-context.js +7 -7
  632. package/esm/tab/tab-list.js +10 -10
  633. package/esm/tab/tab-panel.js +19 -24
  634. package/esm/tab/tab-provider.js +16 -16
  635. package/esm/tab/tab-store.js +15 -15
  636. package/esm/tab/tab.js +33 -39
  637. package/esm/tag/tag-context.js +7 -7
  638. package/esm/tag/tag-input.js +25 -37
  639. package/esm/tag/tag-list-label.js +7 -7
  640. package/esm/tag/tag-list.js +13 -16
  641. package/esm/tag/tag-provider.js +11 -11
  642. package/esm/tag/tag-remove.js +12 -16
  643. package/esm/tag/tag-store.js +7 -7
  644. package/esm/tag/tag-value.js +7 -7
  645. package/esm/tag/tag-values.js +7 -7
  646. package/esm/tag/tag.js +14 -15
  647. package/esm/tag/utils.js +1 -1
  648. package/esm/toolbar/toolbar-container.js +15 -15
  649. package/esm/toolbar/toolbar-context.js +7 -7
  650. package/esm/toolbar/toolbar-input.js +14 -14
  651. package/esm/toolbar/toolbar-item.js +14 -14
  652. package/esm/toolbar/toolbar-provider.js +11 -11
  653. package/esm/toolbar/toolbar-separator.js +9 -9
  654. package/esm/toolbar/toolbar-store.js +7 -7
  655. package/esm/toolbar/toolbar.js +14 -14
  656. package/esm/tooltip/tooltip-anchor.js +20 -29
  657. package/esm/tooltip/tooltip-arrow.js +10 -10
  658. package/esm/tooltip/tooltip-context.js +9 -9
  659. package/esm/tooltip/tooltip-provider.js +15 -15
  660. package/esm/tooltip/tooltip-store.js +9 -9
  661. package/esm/tooltip/tooltip.js +40 -46
  662. package/esm/utils/hooks.js +3 -3
  663. package/esm/utils/misc.js +2 -2
  664. package/esm/utils/store.js +4 -4
  665. package/esm/utils/system.d.ts +2 -2
  666. package/esm/utils/system.js +4 -4
  667. package/esm/visually-hidden/visually-hidden.js +5 -5
  668. package/package.json +2 -2
  669. package/readme.md +18 -0
  670. package/cjs/__chunks/45GIRG26.cjs +0 -49
  671. package/cjs/__chunks/4F4TSYFA.cjs +0 -40
  672. package/cjs/__chunks/6E2KH4LZ.cjs +0 -40
  673. package/cjs/__chunks/DY4W6DUQ.cjs +0 -37
  674. package/cjs/__chunks/MTL37OGW.cjs +0 -37
  675. package/cjs/__chunks/TFB7L57Q.cjs +0 -37
  676. package/cjs/__chunks/Y6DDDMAK.cjs +0 -31
  677. package/cjs/__chunks/ZQW5MMXZ.cjs +0 -31
  678. package/cjs/__chunks/ZT7NR4G7.cjs +0 -32
  679. /package/cjs/__chunks/{AV6KTKLE.cjs → 3IVNQNIV.cjs} +0 -0
  680. /package/esm/__chunks/{4R3V3JGP.js → 3YLGPPWQ.js} +0 -0
@@ -6,17 +6,17 @@ import {
6
6
  createElement,
7
7
  createHook,
8
8
  forwardRef
9
- } from "./YIF72NQG.js";
9
+ } from "./PTCNA5XT.js";
10
10
  import {
11
11
  useEvent,
12
12
  useMergeRefs,
13
13
  useTagName
14
- } from "./OPTPHWV7.js";
14
+ } from "./WX6L4ACS.js";
15
15
  import {
16
16
  __objRest,
17
17
  __spreadProps,
18
18
  __spreadValues
19
- } from "./4R3V3JGP.js";
19
+ } from "./3YLGPPWQ.js";
20
20
 
21
21
  // src/focusable/focusable.tsx
22
22
  import { isButton } from "@ariakit/core/utils/dom";
@@ -57,15 +57,12 @@ var alwaysFocusVisibleInputTypes = [
57
57
  ];
58
58
  function isAlwaysFocusVisible(element) {
59
59
  const { tagName, readOnly, type } = element;
60
- if (tagName === "TEXTAREA" && !readOnly)
61
- return true;
62
- if (tagName === "SELECT" && !readOnly)
63
- return true;
60
+ if (tagName === "TEXTAREA" && !readOnly) return true;
61
+ if (tagName === "SELECT" && !readOnly) return true;
64
62
  if (tagName === "INPUT" && !readOnly) {
65
63
  return alwaysFocusVisibleInputTypes.includes(type);
66
64
  }
67
- if (element.isContentEditable)
68
- return true;
65
+ if (element.isContentEditable) return true;
69
66
  const role = element.getAttribute("role");
70
67
  if (role === "combobox" && element.dataset.name) {
71
68
  return true;
@@ -86,13 +83,11 @@ function isNativeCheckboxOrRadio(element) {
86
83
  return false;
87
84
  }
88
85
  function isNativeTabbable(tagName) {
89
- if (!tagName)
90
- return true;
86
+ if (!tagName) return true;
91
87
  return tagName === "button" || tagName === "summary" || tagName === "input" || tagName === "select" || tagName === "textarea" || tagName === "a";
92
88
  }
93
89
  function supportsDisabledAttribute(tagName) {
94
- if (!tagName)
95
- return true;
90
+ if (!tagName) return true;
96
91
  return tagName === "button" || tagName === "input" || tagName === "select" || tagName === "textarea";
97
92
  }
98
93
  function getTabIndex(focusable, trulyDisabled, nativeTabbable, supportsDisabled, tabIndexProp) {
@@ -113,8 +108,7 @@ function getTabIndex(focusable, trulyDisabled, nativeTabbable, supportsDisabled,
113
108
  function useDisableEvent(onEvent, disabled) {
114
109
  return useEvent((event) => {
115
110
  onEvent == null ? void 0 : onEvent(event);
116
- if (event.defaultPrevented)
117
- return;
111
+ if (event.defaultPrevented) return;
118
112
  if (disabled) {
119
113
  event.stopPropagation();
120
114
  event.preventDefault();
@@ -131,12 +125,9 @@ function onGlobalMouseDown(event) {
131
125
  }
132
126
  }
133
127
  function onGlobalKeyDown(event) {
134
- if (event.metaKey)
135
- return;
136
- if (event.ctrlKey)
137
- return;
138
- if (event.altKey)
139
- return;
128
+ if (event.metaKey) return;
129
+ if (event.ctrlKey) return;
130
+ if (event.altKey) return;
140
131
  isKeyboardModality = true;
141
132
  }
142
133
  var useFocusable = createHook(
@@ -154,23 +145,18 @@ var useFocusable = createHook(
154
145
  ]);
155
146
  const ref = useRef(null);
156
147
  useEffect(() => {
157
- if (!focusable)
158
- return;
148
+ if (!focusable) return;
159
149
  addGlobalEventListener("mousedown", onGlobalMouseDown, true);
160
150
  addGlobalEventListener("keydown", onGlobalKeyDown, true);
161
151
  }, [focusable]);
162
152
  if (isSafariBrowser) {
163
153
  useEffect(() => {
164
- if (!focusable)
165
- return;
154
+ if (!focusable) return;
166
155
  const element = ref.current;
167
- if (!element)
168
- return;
169
- if (!isNativeCheckboxOrRadio(element))
170
- return;
156
+ if (!element) return;
157
+ if (!isNativeCheckboxOrRadio(element)) return;
171
158
  const labels = getLabels(element);
172
- if (!labels)
173
- return;
159
+ if (!labels) return;
174
160
  const onMouseUp = () => queueMicrotask(() => element.focus());
175
161
  for (const label of labels) {
176
162
  label.addEventListener("mouseup", onMouseUp);
@@ -186,22 +172,17 @@ var useFocusable = createHook(
186
172
  const trulyDisabled = !!disabled && !accessibleWhenDisabled;
187
173
  const [focusVisible, setFocusVisible] = useState(false);
188
174
  useEffect(() => {
189
- if (!focusable)
190
- return;
175
+ if (!focusable) return;
191
176
  if (trulyDisabled && focusVisible) {
192
177
  setFocusVisible(false);
193
178
  }
194
179
  }, [focusable, trulyDisabled, focusVisible]);
195
180
  useEffect(() => {
196
- if (!focusable)
197
- return;
198
- if (!focusVisible)
199
- return;
181
+ if (!focusable) return;
182
+ if (!focusVisible) return;
200
183
  const element = ref.current;
201
- if (!element)
202
- return;
203
- if (typeof IntersectionObserver === "undefined")
204
- return;
184
+ if (!element) return;
185
+ if (typeof IntersectionObserver === "undefined") return;
205
186
  const observer = new IntersectionObserver(() => {
206
187
  if (!isFocusable(element)) {
207
188
  setFocusVisible(false);
@@ -222,17 +203,12 @@ var useFocusable = createHook(
222
203
  const onMouseDownProp = props.onMouseDown;
223
204
  const onMouseDown = useEvent((event) => {
224
205
  onMouseDownProp == null ? void 0 : onMouseDownProp(event);
225
- if (event.defaultPrevented)
226
- return;
227
- if (!focusable)
228
- return;
206
+ if (event.defaultPrevented) return;
207
+ if (!focusable) return;
229
208
  const element = event.currentTarget;
230
- if (!isSafariBrowser)
231
- return;
232
- if (isPortalEvent(event))
233
- return;
234
- if (!isButton(element) && !isNativeCheckboxOrRadio(element))
235
- return;
209
+ if (!isSafariBrowser) return;
210
+ if (isPortalEvent(event)) return;
211
+ if (!isButton(element) && !isNativeCheckboxOrRadio(element)) return;
236
212
  let receivedFocus = false;
237
213
  const onFocus = () => {
238
214
  receivedFocus = true;
@@ -241,8 +217,7 @@ var useFocusable = createHook(
241
217
  element.addEventListener("focusin", onFocus, options);
242
218
  queueBeforeEvent(element, "mouseup", () => {
243
219
  element.removeEventListener("focusin", onFocus, true);
244
- if (receivedFocus)
245
- return;
220
+ if (receivedFocus) return;
246
221
  focusIfNeeded(element);
247
222
  });
248
223
  });
@@ -250,35 +225,24 @@ var useFocusable = createHook(
250
225
  if (currentTarget) {
251
226
  event.currentTarget = currentTarget;
252
227
  }
253
- if (!focusable)
254
- return;
228
+ if (!focusable) return;
255
229
  const element = event.currentTarget;
256
- if (!element)
257
- return;
258
- if (!hasFocus(element))
259
- return;
230
+ if (!element) return;
231
+ if (!hasFocus(element)) return;
260
232
  onFocusVisible == null ? void 0 : onFocusVisible(event);
261
- if (event.defaultPrevented)
262
- return;
233
+ if (event.defaultPrevented) return;
263
234
  setFocusVisible(true);
264
235
  };
265
236
  const onKeyDownCaptureProp = props.onKeyDownCapture;
266
237
  const onKeyDownCapture = useEvent((event) => {
267
238
  onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
268
- if (event.defaultPrevented)
269
- return;
270
- if (!focusable)
271
- return;
272
- if (focusVisible)
273
- return;
274
- if (event.metaKey)
275
- return;
276
- if (event.altKey)
277
- return;
278
- if (event.ctrlKey)
279
- return;
280
- if (!isSelfTarget(event))
281
- return;
239
+ if (event.defaultPrevented) return;
240
+ if (!focusable) return;
241
+ if (focusVisible) return;
242
+ if (event.metaKey) return;
243
+ if (event.altKey) return;
244
+ if (event.ctrlKey) return;
245
+ if (!isSelfTarget(event)) return;
282
246
  const element = event.currentTarget;
283
247
  const applyFocusVisible = () => handleFocusVisible(event, element);
284
248
  queueBeforeEvent(element, "focusout", applyFocusVisible);
@@ -286,10 +250,8 @@ var useFocusable = createHook(
286
250
  const onFocusCaptureProp = props.onFocusCapture;
287
251
  const onFocusCapture = useEvent((event) => {
288
252
  onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
289
- if (event.defaultPrevented)
290
- return;
291
- if (!focusable)
292
- return;
253
+ if (event.defaultPrevented) return;
254
+ if (!focusable) return;
293
255
  if (!isSelfTarget(event)) {
294
256
  setFocusVisible(false);
295
257
  return;
@@ -305,27 +267,19 @@ var useFocusable = createHook(
305
267
  const onBlurProp = props.onBlur;
306
268
  const onBlur = useEvent((event) => {
307
269
  onBlurProp == null ? void 0 : onBlurProp(event);
308
- if (!focusable)
309
- return;
310
- if (!isFocusEventOutside(event))
311
- return;
270
+ if (!focusable) return;
271
+ if (!isFocusEventOutside(event)) return;
312
272
  setFocusVisible(false);
313
273
  });
314
274
  const autoFocusOnShow = useContext(FocusableContext);
315
275
  const autoFocusRef = useEvent((element) => {
316
- if (!focusable)
317
- return;
318
- if (!autoFocus)
319
- return;
320
- if (!element)
321
- return;
322
- if (!autoFocusOnShow)
323
- return;
276
+ if (!focusable) return;
277
+ if (!autoFocus) return;
278
+ if (!element) return;
279
+ if (!autoFocusOnShow) return;
324
280
  queueMicrotask(() => {
325
- if (hasFocus(element))
326
- return;
327
- if (!isFocusable(element))
328
- return;
281
+ if (hasFocus(element)) return;
282
+ if (!isFocusable(element)) return;
329
283
  element.focus();
330
284
  });
331
285
  });
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  CompositeContextProvider,
4
4
  CompositeScopedContextProvider
5
- } from "./53KINMNA.js";
5
+ } from "./TN5Y26CD.js";
6
6
  import {
7
7
  createStoreContext
8
- } from "./YIF72NQG.js";
8
+ } from "./PTCNA5XT.js";
9
9
 
10
10
  // src/toolbar/toolbar-context.tsx
11
11
  var ctx = createStoreContext(
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  useMenubarStore
4
- } from "./RW4EN5HP.js";
4
+ } from "./ZU4IIYI2.js";
5
5
  import {
6
6
  MenubarContextProvider
7
- } from "./ZPGENCAP.js";
7
+ } from "./NMSEBYDL.js";
8
8
 
9
9
  // src/menubar/menubar-provider.tsx
10
10
  import { jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  createStoreContext
4
- } from "./YIF72NQG.js";
4
+ } from "./PTCNA5XT.js";
5
5
 
6
6
  // src/disclosure/disclosure-context.tsx
7
7
  var ctx = createStoreContext();
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  isBackdrop
4
- } from "./MKDDWKFK.js";
4
+ } from "./63XF7ACK.js";
5
5
  import {
6
6
  walkTreeOutside
7
- } from "./4SXGPXPS.js";
7
+ } from "./AOUGVQZ3.js";
8
8
  import {
9
9
  setAttribute
10
- } from "./53CQGCDZ.js";
10
+ } from "./K2ZF5NU7.js";
11
11
 
12
12
  // src/dialog/utils/disable-accessibility-tree-outside.ts
13
13
  function hideElementFromAccessibilityTree(element) {
@@ -17,8 +17,7 @@ function disableAccessibilityTreeOutside(id, elements) {
17
17
  const cleanups = [];
18
18
  const ids = elements.map((el) => el == null ? void 0 : el.id);
19
19
  walkTreeOutside(id, elements, (element) => {
20
- if (isBackdrop(element, ...ids))
21
- return;
20
+ if (isBackdrop(element, ...ids)) return;
22
21
  cleanups.unshift(hideElementFromAccessibilityTree(element));
23
22
  });
24
23
  const restoreAccessibilityTree = () => {
@@ -6,12 +6,12 @@ import {
6
6
  createElement,
7
7
  createHook,
8
8
  forwardRef
9
- } from "./YIF72NQG.js";
9
+ } from "./PTCNA5XT.js";
10
10
  import {
11
11
  __objRest,
12
12
  __spreadProps,
13
13
  __spreadValues
14
- } from "./4R3V3JGP.js";
14
+ } from "./3YLGPPWQ.js";
15
15
 
16
16
  // src/checkbox/checkbox-check.tsx
17
17
  import { removeUndefinedValues } from "@ariakit/core/utils/misc";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  CompositeContextProvider,
4
4
  CompositeScopedContextProvider
5
- } from "./53KINMNA.js";
5
+ } from "./TN5Y26CD.js";
6
6
  import {
7
7
  createStoreContext
8
- } from "./YIF72NQG.js";
8
+ } from "./PTCNA5XT.js";
9
9
 
10
10
  // src/radio/radio-context.tsx
11
11
  var ctx = createStoreContext(
@@ -3,11 +3,11 @@ import {
3
3
  useEvent,
4
4
  useLiveRef,
5
5
  useSafeLayoutEffect
6
- } from "./OPTPHWV7.js";
6
+ } from "./WX6L4ACS.js";
7
7
  import {
8
8
  __spreadProps,
9
9
  __spreadValues
10
- } from "./4R3V3JGP.js";
10
+ } from "./3YLGPPWQ.js";
11
11
 
12
12
  // src/utils/store.tsx
13
13
  import { hasOwnProperty, identity } from "@ariakit/core/utils/misc";
@@ -20,8 +20,7 @@ var noopSubscribe = () => () => {
20
20
  function useStoreState(store, keyOrSelector = identity) {
21
21
  const storeSubscribe = React.useCallback(
22
22
  (callback) => {
23
- if (!store)
24
- return noopSubscribe();
23
+ if (!store) return noopSubscribe();
25
24
  return subscribe(store, null, callback);
26
25
  },
27
26
  [store]
@@ -30,14 +29,10 @@ function useStoreState(store, keyOrSelector = identity) {
30
29
  const key = typeof keyOrSelector === "string" ? keyOrSelector : null;
31
30
  const selector = typeof keyOrSelector === "function" ? keyOrSelector : null;
32
31
  const state = store == null ? void 0 : store.getState();
33
- if (selector)
34
- return selector(state);
35
- if (!state)
36
- return;
37
- if (!key)
38
- return;
39
- if (!hasOwnProperty(state, key))
40
- return;
32
+ if (selector) return selector(state);
33
+ if (!state) return;
34
+ if (!key) return;
35
+ if (!hasOwnProperty(state, key)) return;
41
36
  return state[key];
42
37
  };
43
38
  return useSyncExternalStore(storeSubscribe, getSnapshot, getSnapshot);
@@ -49,22 +44,17 @@ function useStoreProps(store, props, key, setKey) {
49
44
  useSafeLayoutEffect(() => {
50
45
  return sync(store, [key], (state, prev) => {
51
46
  const { value: value2, setValue: setValue2 } = propsRef.current;
52
- if (!setValue2)
53
- return;
54
- if (state[key] === prev[key])
55
- return;
56
- if (state[key] === value2)
57
- return;
47
+ if (!setValue2) return;
48
+ if (state[key] === prev[key]) return;
49
+ if (state[key] === value2) return;
58
50
  setValue2(state[key]);
59
51
  });
60
52
  }, [store, key]);
61
53
  useSafeLayoutEffect(() => {
62
- if (value === void 0)
63
- return;
54
+ if (value === void 0) return;
64
55
  store.setState(key, value);
65
56
  return batch(store, [key], () => {
66
- if (value === void 0)
67
- return;
57
+ if (value === void 0) return;
68
58
  store.setState(key, value);
69
59
  });
70
60
  });
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useForceUpdate
4
- } from "./OPTPHWV7.js";
4
+ } from "./WX6L4ACS.js";
5
5
 
6
6
  // src/dialog/utils/use-root-dialog.ts
7
7
  import { getDocument } from "@ariakit/core/utils/dom";
@@ -15,21 +15,16 @@ function useRootDialog({
15
15
  }) {
16
16
  const [updated, retry] = useForceUpdate();
17
17
  const isRootDialog = useCallback(() => {
18
- if (!enabled)
19
- return false;
20
- if (!contentElement)
21
- return false;
18
+ if (!enabled) return false;
19
+ if (!contentElement) return false;
22
20
  const { body } = getDocument(contentElement);
23
21
  const id = body.getAttribute(attribute);
24
22
  return !id || id === contentId;
25
23
  }, [updated, enabled, contentElement, attribute, contentId]);
26
24
  useEffect(() => {
27
- if (!enabled)
28
- return;
29
- if (!contentId)
30
- return;
31
- if (!contentElement)
32
- return;
25
+ if (!enabled) return;
26
+ if (!contentId) return;
27
+ if (!contentElement) return;
33
28
  const { body } = getDocument(contentElement);
34
29
  if (isRootDialog()) {
35
30
  body.setAttribute(attribute, contentId);
@@ -2,25 +2,25 @@
2
2
  import {
3
3
  getCollectionRendererItemId,
4
4
  useCollectionRenderer
5
- } from "./QFO5OLDL.js";
5
+ } from "./ITUYV2MN.js";
6
6
  import {
7
7
  useCompositeContext
8
- } from "./53KINMNA.js";
8
+ } from "./TN5Y26CD.js";
9
9
  import {
10
10
  createElement,
11
11
  forwardRef
12
- } from "./YIF72NQG.js";
12
+ } from "./PTCNA5XT.js";
13
13
  import {
14
14
  useStoreState
15
- } from "./DTNGDFNU.js";
15
+ } from "./FQ77EHUR.js";
16
16
  import {
17
17
  useId
18
- } from "./OPTPHWV7.js";
18
+ } from "./WX6L4ACS.js";
19
19
  import {
20
20
  __objRest,
21
21
  __spreadProps,
22
22
  __spreadValues
23
- } from "./4R3V3JGP.js";
23
+ } from "./3YLGPPWQ.js";
24
24
 
25
25
  // src/composite/composite-renderer.tsx
26
26
  import { useMemo } from "react";
@@ -32,8 +32,7 @@ function getItemObject(item) {
32
32
  return item;
33
33
  }
34
34
  function countItems(items) {
35
- if (!items)
36
- return [0];
35
+ if (!items) return [0];
37
36
  if (typeof items === "number") {
38
37
  return Array.from({ length: items }, (_, index) => index + 1);
39
38
  }
@@ -56,10 +55,8 @@ function findFirst(items, offset = 1) {
56
55
  for (let index = offset > 0 ? 0 : items.length - 1; index >= 0 && index < items.length; index += offset) {
57
56
  const item = items[index];
58
57
  const object = getItemObject(item);
59
- if (object.items && findFirst(object.items, offset) !== -1)
60
- return index;
61
- if (!object.disabled)
62
- return index;
58
+ if (object.items && findFirst(object.items, offset) !== -1) return index;
59
+ if (!object.disabled) return index;
63
60
  }
64
61
  return -1;
65
62
  }
@@ -70,14 +67,11 @@ function findById(items, id, baseId) {
70
67
  return items.findIndex((item, index) => {
71
68
  var _a;
72
69
  const itemId = getCollectionRendererItemId(item, index, baseId);
73
- if (itemId === id)
74
- return true;
70
+ if (itemId === id) return true;
75
71
  const object = getItemObject(item);
76
- if ((_a = object.items) == null ? void 0 : _a.length)
77
- return findById(object.items, id, itemId) !== -1;
72
+ if ((_a = object.items) == null ? void 0 : _a.length) return findById(object.items, id, itemId) !== -1;
78
73
  const ids = id.split("/");
79
- if (ids.length === 1)
80
- return false;
74
+ if (ids.length === 1) return false;
81
75
  return ids.some((id2) => itemId === id2);
82
76
  });
83
77
  }
@@ -105,10 +99,8 @@ function useCompositeRenderer(_a) {
105
99
  );
106
100
  const items = useStoreState(store, (state) => {
107
101
  var _a2;
108
- if (!state)
109
- return props.items;
110
- if ("mounted" in state && !state.mounted)
111
- return 0;
102
+ if (!state) return props.items;
103
+ if ("mounted" in state && !state.mounted) return 0;
112
104
  return (_a2 = props.items) != null ? _a2 : state.items;
113
105
  });
114
106
  const id = useId(props.id);
@@ -121,35 +113,24 @@ function useCompositeRenderer(_a) {
121
113
  [ariaSetSize, itemsCount]
122
114
  );
123
115
  const firstIndex = useMemo(() => {
124
- if (!items)
125
- return -1;
126
- if (typeof items === "number")
127
- return 0;
128
- if (!items.length)
129
- return -1;
116
+ if (!items) return -1;
117
+ if (typeof items === "number") return 0;
118
+ if (!items.length) return -1;
130
119
  return findFirst(items);
131
120
  }, [items]);
132
121
  const lastIndex = useMemo(() => {
133
- if (!items)
134
- return -1;
135
- if (typeof items === "number")
136
- return items - 1;
137
- if (!items.length)
138
- return -1;
122
+ if (!items) return -1;
123
+ if (typeof items === "number") return items - 1;
124
+ if (!items.length) return -1;
139
125
  return findLast(items);
140
126
  }, [items]);
141
127
  const activeId = useStoreState(store, "activeId");
142
128
  const activeIndex = useMemo(() => {
143
- if (!id)
144
- return -1;
145
- if (!items)
146
- return -1;
147
- if (activeId == null)
148
- return -1;
149
- if (typeof items === "number")
150
- return -1;
151
- if (!items.length)
152
- return -1;
129
+ if (!id) return -1;
130
+ if (!items) return -1;
131
+ if (activeId == null) return -1;
132
+ if (typeof items === "number") return -1;
133
+ if (!items.length) return -1;
153
134
  return findById(items, activeId, id);
154
135
  }, [id, items, activeId]);
155
136
  const persistentIndices = useMemo(() => {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  FocusTrap
4
- } from "./FG25KND2.js";
4
+ } from "./U7IXCFEO.js";
5
5
  import {
6
6
  PortalContext
7
7
  } from "./AOQQTIBO.js";
@@ -9,20 +9,20 @@ import {
9
9
  createElement,
10
10
  createHook,
11
11
  forwardRef
12
- } from "./YIF72NQG.js";
12
+ } from "./PTCNA5XT.js";
13
13
  import {
14
14
  useMergeRefs,
15
15
  useSafeLayoutEffect,
16
16
  useWrapElement
17
- } from "./OPTPHWV7.js";
17
+ } from "./WX6L4ACS.js";
18
18
  import {
19
19
  setRef
20
- } from "./4ROCFRIN.js";
20
+ } from "./SK3NAZA3.js";
21
21
  import {
22
22
  __objRest,
23
23
  __spreadProps,
24
24
  __spreadValues
25
- } from "./4R3V3JGP.js";
25
+ } from "./3YLGPPWQ.js";
26
26
 
27
27
  // src/portal/portal.tsx
28
28
  import { getDocument } from "@ariakit/core/utils/dom";
@@ -103,20 +103,16 @@ var usePortal = createHook(function usePortal2(_a) {
103
103
  }
104
104
  setPortalNode(portalEl);
105
105
  setRef(portalRef, portalEl);
106
- if (isPortalInDocument)
107
- return;
106
+ if (isPortalInDocument) return;
108
107
  return () => {
109
108
  portalEl.remove();
110
109
  setRef(portalRef, null);
111
110
  };
112
111
  }, [portal, portalElement, context, portalRef]);
113
112
  useSafeLayoutEffect(() => {
114
- if (!portal)
115
- return;
116
- if (!preserveTabOrder)
117
- return;
118
- if (!preserveTabOrderAnchor)
119
- return;
113
+ if (!portal) return;
114
+ if (!preserveTabOrder) return;
115
+ if (!preserveTabOrderAnchor) return;
120
116
  const doc = getDocument(preserveTabOrderAnchor);
121
117
  const element = doc.createElement("span");
122
118
  element.style.position = "fixed";
@@ -128,14 +124,11 @@ var usePortal = createHook(function usePortal2(_a) {
128
124
  };
129
125
  }, [portal, preserveTabOrder, preserveTabOrderAnchor]);
130
126
  useEffect(() => {
131
- if (!portalNode)
132
- return;
133
- if (!preserveTabOrder)
134
- return;
127
+ if (!portalNode) return;
128
+ if (!preserveTabOrder) return;
135
129
  let raf = 0;
136
130
  const onFocus = (event) => {
137
- if (!isFocusEventOutside(event))
138
- return;
131
+ if (!isFocusEventOutside(event)) return;
139
132
  const focusing = event.type === "focusin";
140
133
  cancelAnimationFrame(raf);
141
134
  if (focusing) {
@@ -160,8 +153,7 @@ var usePortal = createHook(function usePortal2(_a) {
160
153
  // current context to the portal context, otherwise it's going to
161
154
  // reset to the body element on nested portals.
162
155
  /* @__PURE__ */ jsx(PortalContext.Provider, { value: portalNode || context, children: element });
163
- if (!portal)
164
- return element;
156
+ if (!portal) return element;
165
157
  if (!portalNode) {
166
158
  return /* @__PURE__ */ jsx(
167
159
  "span",