@ariakit/react-core 0.4.6 → 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 (799) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/cjs/__chunks/{ABTKVZY6.cjs → 32MRW5OT.cjs} +6 -6
  3. package/cjs/__chunks/{ZFDTYFQI.cjs → 35VA3E7J.cjs} +30 -42
  4. package/cjs/__chunks/3EGVYPXR.cjs +37 -0
  5. package/cjs/__chunks/{KXQOQQ5B.cjs → 3HGFVGHB.cjs} +3 -5
  6. package/cjs/__chunks/{J2TAMFLD.cjs → 4GQ35G4W.cjs} +6 -6
  7. package/cjs/__chunks/5375OBKP.cjs +37 -0
  8. package/cjs/__chunks/{U2WARLXR.cjs → 54XFMNDS.cjs} +11 -17
  9. package/cjs/__chunks/{WKI4JZZH.cjs → 55G3CDVQ.cjs} +2 -2
  10. package/cjs/__chunks/{7NTQGNM3.cjs → 55IP6UF7.cjs} +12 -12
  11. package/cjs/__chunks/{JDERC5LS.cjs → 5KGVVKTB.cjs} +24 -29
  12. package/cjs/__chunks/{M75ORKXH.cjs → 5KRJFKRD.cjs} +16 -16
  13. package/cjs/__chunks/{JE2SKI3E.cjs → 5XC2EBLV.cjs} +5 -5
  14. package/cjs/__chunks/{2OIGSMIR.cjs → 5XRB5OJG.cjs} +6 -6
  15. package/cjs/__chunks/{73ZRKUED.cjs → 7D3WLJ6Y.cjs} +4 -4
  16. package/cjs/__chunks/{QROIDWYF.cjs → 7JEGHXLQ.cjs} +18 -18
  17. package/cjs/__chunks/{YHNUJMOE.cjs → ALUDDGPE.cjs} +37 -44
  18. package/cjs/__chunks/{R2YVMKBR.cjs → AWEKOM65.cjs} +16 -18
  19. package/cjs/__chunks/{MX4DVGXA.cjs → AYLCDTBI.cjs} +20 -23
  20. package/cjs/__chunks/{LY5SWPQN.cjs → BNMYVASA.cjs} +28 -42
  21. package/cjs/__chunks/{6ZZYUFPW.cjs → BV5PE6PZ.cjs} +5 -10
  22. package/cjs/__chunks/{5J6PQR7O.cjs → BZ34A7Q7.cjs} +5 -5
  23. package/cjs/__chunks/{HD65OAFV.cjs → CAVEC6QQ.cjs} +2 -2
  24. package/cjs/__chunks/{X7NPMBM4.cjs → CINY3Q6Q.cjs} +97 -150
  25. package/cjs/__chunks/{ZPVTVHP7.cjs → CQ3ILEKO.cjs} +5 -5
  26. package/cjs/__chunks/{I7RSWTIE.cjs → CTYV4VU3.cjs} +4 -4
  27. package/cjs/__chunks/{DTP3WLMT.cjs → D6GJ6H7T.cjs} +123 -184
  28. package/cjs/__chunks/{N66KZH2B.cjs → DPVDBBFO.cjs} +13 -14
  29. package/cjs/__chunks/{IV3JK6OL.cjs → DTTG2PLR.cjs} +11 -11
  30. package/cjs/__chunks/{U5XLICWU.cjs → DYEW6UIB.cjs} +6 -8
  31. package/cjs/__chunks/{BJ3OD6EH.cjs → EDR5S5CX.cjs} +70 -114
  32. package/cjs/__chunks/{REFA5BON.cjs → EFOAIXM5.cjs} +8 -13
  33. package/cjs/__chunks/{NEH3GU2R.cjs → EY32VECZ.cjs} +17 -17
  34. package/cjs/__chunks/{JLR7GR2Q.cjs → EZFLPAN5.cjs} +5 -5
  35. package/cjs/__chunks/{YPADJBWR.cjs → F5OF3EOI.cjs} +5 -5
  36. package/cjs/__chunks/{ZOZB65G7.cjs → FW7MMP43.cjs} +17 -17
  37. package/cjs/__chunks/{7UGWYCZY.cjs → GEDABTB5.cjs} +82 -124
  38. package/cjs/__chunks/{3HDQJREU.cjs → GEF4CKCI.cjs} +7 -7
  39. package/cjs/__chunks/{UX3M5BHR.cjs → I2B6AUM7.cjs} +9 -9
  40. package/cjs/__chunks/{5VQNY2SR.cjs → I52OTQQ2.cjs} +6 -6
  41. package/cjs/__chunks/{EL44L6OV.cjs → I62GZSMK.cjs} +18 -23
  42. package/cjs/__chunks/{W24USSK5.cjs → IHRK7HOT.cjs} +5 -5
  43. package/cjs/__chunks/INEJRBLK.cjs +37 -0
  44. package/cjs/__chunks/{EWTZPN67.cjs → J3QW3U2K.cjs} +10 -10
  45. package/cjs/__chunks/{QEYSNJHC.cjs → JB3ASB5F.cjs} +6 -6
  46. package/cjs/__chunks/{VSJCO47J.cjs → JNDKYZLH.cjs} +32 -42
  47. package/cjs/__chunks/{DMALYPIH.cjs → JOPR6ORJ.cjs} +5 -5
  48. package/cjs/__chunks/{P5P3QJFD.cjs → JT66FSLM.cjs} +31 -44
  49. package/cjs/__chunks/KEFNKTQ2.cjs +32 -0
  50. package/cjs/__chunks/{F5HJABGP.cjs → KNWPYX4B.cjs} +6 -6
  51. package/cjs/__chunks/{3DWHCD7R.cjs → KOJWH5YC.cjs} +5 -5
  52. package/cjs/__chunks/{ZJ4PQNSB.cjs → L2VXOCPG.cjs} +14 -15
  53. package/cjs/__chunks/{M25FX4MN.cjs → LMD72BFO.cjs} +13 -13
  54. package/cjs/__chunks/{AO6DVG67.cjs → LO2HIMYX.cjs} +5 -5
  55. package/cjs/__chunks/{SGYYAWSU.cjs → M2NSCXQI.cjs} +9 -9
  56. package/cjs/__chunks/{MARNDFY5.cjs → MANSJYLV.cjs} +7 -7
  57. package/cjs/__chunks/{VAZ6XRF7.cjs → MHPAHLXS.cjs} +38 -52
  58. package/cjs/__chunks/{UIOFNKIW.cjs → MQ7GAESK.cjs} +5 -5
  59. package/cjs/__chunks/{7YLCVXZ7.cjs → MTP72GGY.cjs} +5 -10
  60. package/cjs/__chunks/{JKERATCG.cjs → MUQXBDUR.cjs} +16 -19
  61. package/cjs/__chunks/{TCINLTVN.cjs → MVSF6EJW.cjs} +13 -13
  62. package/cjs/__chunks/{GPVLSCXH.cjs → MYHF5JTH.cjs} +6 -6
  63. package/cjs/__chunks/N2SIFK7A.cjs +49 -0
  64. package/cjs/__chunks/{MU7F4QWJ.cjs → NMKMMUOR.cjs} +9 -8
  65. package/cjs/__chunks/{WT4MTRKY.cjs → NRLE3XE7.cjs} +2 -2
  66. package/cjs/__chunks/{QH6UXMHK.cjs → O7XO5LCL.cjs} +9 -9
  67. package/cjs/__chunks/{3MSB6GZA.cjs → ONFSQI2X.cjs} +7 -7
  68. package/cjs/__chunks/{ZS7SGIQS.cjs → OR7WTDA4.cjs} +11 -13
  69. package/cjs/__chunks/OU2GPBZW.cjs +31 -0
  70. package/cjs/__chunks/{QFX6UW2F.cjs → OUWHJLQH.cjs} +20 -27
  71. package/cjs/__chunks/{CXZMA435.cjs → OVBWMHNO.cjs} +16 -24
  72. package/cjs/__chunks/OWLCE773.cjs +40 -0
  73. package/cjs/__chunks/{BX2QEIBH.cjs → OZFFK5VS.cjs} +19 -22
  74. package/cjs/__chunks/{3YTZN7MF.cjs → PB5FNOHD.cjs} +4 -4
  75. package/cjs/__chunks/{Q6XCQ4JY.cjs → PI2PMECI.cjs} +72 -96
  76. package/cjs/__chunks/{IATQHLZT.cjs → PULY27HQ.cjs} +20 -30
  77. package/cjs/__chunks/{3Z76SMA3.cjs → PYKELHKQ.cjs} +16 -19
  78. package/cjs/__chunks/{V5NIBTGV.cjs → QA3YJPTA.cjs} +16 -16
  79. package/cjs/__chunks/{EO4IBCRN.cjs → QC5YVEX2.cjs} +6 -6
  80. package/cjs/__chunks/{3E3M36ON.cjs → QEHZIMM5.cjs} +14 -14
  81. package/cjs/__chunks/{UN3ROHNJ.cjs → QW2GOYBN.cjs} +5 -5
  82. package/cjs/__chunks/{5ME3SHTY.cjs → R27VYD4T.cjs} +37 -47
  83. package/cjs/__chunks/R6D5K5O4.cjs +40 -0
  84. package/cjs/__chunks/{XLLKYSFT.cjs → RCX6DZ2C.cjs} +8 -8
  85. package/cjs/__chunks/{LTLFGTV3.cjs → RVQKZ37U.cjs} +6 -6
  86. package/cjs/__chunks/{WH5BXRP3.cjs → SRE6U4QD.cjs} +25 -28
  87. package/cjs/__chunks/{ATZZKP7Z.cjs → STTOVFIA.cjs} +5 -5
  88. package/cjs/__chunks/{MEFT7IVK.cjs → SY7NHEDF.cjs} +38 -48
  89. package/cjs/__chunks/{4VT6OX2R.cjs → TGMTQMEK.cjs} +29 -37
  90. package/cjs/__chunks/{RIVRWNBE.cjs → THYF3LTR.cjs} +5 -5
  91. package/cjs/__chunks/{QNWDQG73.cjs → TILYAERE.cjs} +7 -7
  92. package/cjs/__chunks/{SNQE2ALB.cjs → TLYXF4HI.cjs} +36 -55
  93. package/cjs/__chunks/{JMOZZ5O3.cjs → TPGAU7YB.cjs} +86 -146
  94. package/cjs/__chunks/{LPRXHRSA.cjs → TRKXX6UW.cjs} +5 -5
  95. package/cjs/__chunks/{Z5PM2CEM.cjs → TTDPJ5B7.cjs} +11 -11
  96. package/cjs/__chunks/{POFUETU3.cjs → VYADJOAV.cjs} +39 -49
  97. package/cjs/__chunks/{4LX2WIBK.cjs → VYTT2R6P.cjs} +36 -61
  98. package/cjs/__chunks/{XCBGJNG4.cjs → VZGX2ILJ.cjs} +10 -10
  99. package/cjs/__chunks/{ZE2OFDPH.cjs → W3DXC3KC.cjs} +8 -8
  100. package/cjs/__chunks/{UO5OI2QG.cjs → WBUSMWPW.cjs} +39 -57
  101. package/cjs/__chunks/{735RBE72.cjs → WGNARUKE.cjs} +14 -14
  102. package/cjs/__chunks/{QO5ZGQQP.cjs → WSL22WT6.cjs} +32 -35
  103. package/cjs/__chunks/{WVKI3334.cjs → X7JQ6QHE.cjs} +9 -9
  104. package/cjs/__chunks/{DZCUHWKI.cjs → XV4AOZNF.cjs} +31 -44
  105. package/cjs/__chunks/{WZ66574O.cjs → Y2LRH7ZH.cjs} +12 -12
  106. package/cjs/__chunks/Y56UQNH6.cjs +31 -0
  107. package/cjs/__chunks/{X6IUU3GY.cjs → YRGMTDX5.cjs} +16 -17
  108. package/cjs/__chunks/{3ND7K6FF.cjs → YS72JDSE.cjs} +5 -8
  109. package/cjs/__chunks/{LQZPO2AV.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-provider.d.cts +1 -1
  116. package/cjs/checkbox/checkbox-provider.d.ts +1 -1
  117. package/cjs/checkbox/checkbox-store.cjs +6 -6
  118. package/cjs/checkbox/checkbox.cjs +10 -10
  119. package/cjs/collection/collection-context.cjs +6 -6
  120. package/cjs/collection/collection-item.cjs +7 -7
  121. package/cjs/collection/collection-item.d.cts +4 -2
  122. package/cjs/collection/collection-item.d.ts +4 -2
  123. package/cjs/collection/collection-provider.cjs +9 -9
  124. package/cjs/collection/collection-provider.d.cts +1 -1
  125. package/cjs/collection/collection-provider.d.ts +1 -1
  126. package/cjs/collection/collection-renderer.cjs +8 -8
  127. package/cjs/collection/collection-renderer.d.cts +14 -16
  128. package/cjs/collection/collection-renderer.d.ts +14 -16
  129. package/cjs/collection/collection-store.cjs +6 -6
  130. package/cjs/collection/collection.cjs +12 -12
  131. package/cjs/combobox/combobox-cancel.cjs +26 -29
  132. package/cjs/combobox/combobox-cancel.d.cts +1 -1
  133. package/cjs/combobox/combobox-cancel.d.ts +1 -1
  134. package/cjs/combobox/combobox-context.cjs +11 -11
  135. package/cjs/combobox/combobox-disclosure.cjs +28 -30
  136. package/cjs/combobox/combobox-group-label.cjs +10 -10
  137. package/cjs/combobox/combobox-group.cjs +19 -19
  138. package/cjs/combobox/combobox-item-check.cjs +17 -17
  139. package/cjs/combobox/combobox-item-value.cjs +18 -18
  140. package/cjs/combobox/combobox-item.cjs +49 -59
  141. package/cjs/combobox/combobox-item.d.cts +1 -1
  142. package/cjs/combobox/combobox-item.d.ts +1 -1
  143. package/cjs/combobox/combobox-label.cjs +17 -17
  144. package/cjs/combobox/combobox-list.cjs +14 -14
  145. package/cjs/combobox/combobox-popover.cjs +54 -62
  146. package/cjs/combobox/combobox-provider.cjs +20 -20
  147. package/cjs/combobox/combobox-provider.d.cts +1 -1
  148. package/cjs/combobox/combobox-provider.d.ts +1 -1
  149. package/cjs/combobox/combobox-row.cjs +18 -18
  150. package/cjs/combobox/combobox-separator.cjs +18 -18
  151. package/cjs/combobox/combobox-store.cjs +15 -15
  152. package/cjs/combobox/combobox-value.cjs +11 -11
  153. package/cjs/combobox/combobox.cjs +110 -160
  154. package/cjs/combobox/combobox.d.cts +3 -2
  155. package/cjs/combobox/combobox.d.ts +3 -2
  156. package/cjs/command/command.cjs +7 -7
  157. package/cjs/composite/composite-container.cjs +10 -10
  158. package/cjs/composite/composite-context.cjs +7 -7
  159. package/cjs/composite/composite-group-label.cjs +7 -7
  160. package/cjs/composite/composite-group.cjs +7 -7
  161. package/cjs/composite/composite-hover.cjs +8 -8
  162. package/cjs/composite/composite-hover.d.cts +5 -3
  163. package/cjs/composite/composite-hover.d.ts +5 -3
  164. package/cjs/composite/composite-input.cjs +18 -21
  165. package/cjs/composite/composite-item.cjs +13 -13
  166. package/cjs/composite/composite-item.d.cts +1 -1
  167. package/cjs/composite/composite-item.d.ts +1 -1
  168. package/cjs/composite/composite-overflow-disclosure.cjs +35 -37
  169. package/cjs/composite/composite-overflow-store.cjs +9 -9
  170. package/cjs/composite/composite-overflow.cjs +41 -42
  171. package/cjs/composite/composite-provider.cjs +11 -11
  172. package/cjs/composite/composite-provider.d.cts +1 -1
  173. package/cjs/composite/composite-provider.d.ts +1 -1
  174. package/cjs/composite/composite-renderer.cjs +10 -10
  175. package/cjs/composite/composite-renderer.d.cts +13 -15
  176. package/cjs/composite/composite-renderer.d.ts +13 -15
  177. package/cjs/composite/composite-row.cjs +8 -8
  178. package/cjs/composite/composite-separator.cjs +9 -9
  179. package/cjs/composite/composite-store.cjs +7 -7
  180. package/cjs/composite/composite-typeahead.cjs +9 -9
  181. package/cjs/composite/composite.cjs +10 -10
  182. package/cjs/composite/composite.d.cts +1 -1
  183. package/cjs/composite/composite.d.ts +1 -1
  184. package/cjs/composite/utils.cjs +3 -3
  185. package/cjs/dialog/dialog-backdrop.cjs +16 -16
  186. package/cjs/dialog/dialog-context.cjs +7 -7
  187. package/cjs/dialog/dialog-description.cjs +8 -8
  188. package/cjs/dialog/dialog-disclosure.cjs +12 -12
  189. package/cjs/dialog/dialog-dismiss.cjs +11 -11
  190. package/cjs/dialog/dialog-heading.cjs +9 -9
  191. package/cjs/dialog/dialog-provider.cjs +11 -11
  192. package/cjs/dialog/dialog-store.cjs +7 -7
  193. package/cjs/dialog/dialog.cjs +30 -30
  194. package/cjs/dialog/dialog.d.cts +2 -2
  195. package/cjs/dialog/dialog.d.ts +2 -2
  196. package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +6 -6
  197. package/cjs/dialog/utils/disable-tree.cjs +7 -7
  198. package/cjs/dialog/utils/is-backdrop.cjs +3 -3
  199. package/cjs/dialog/utils/mark-tree-outside.cjs +6 -6
  200. package/cjs/dialog/utils/orchestrate.cjs +3 -3
  201. package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +1 -1
  202. package/cjs/dialog/utils/supports-inert.cjs +1 -1
  203. package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +12 -12
  204. package/cjs/dialog/utils/use-nested-dialogs.cjs +5 -5
  205. package/cjs/dialog/utils/use-prevent-body-scroll.cjs +7 -7
  206. package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +3 -3
  207. package/cjs/dialog/utils/use-root-dialog.cjs +5 -5
  208. package/cjs/dialog/utils/walk-tree-outside.cjs +4 -4
  209. package/cjs/disclosure/disclosure-content.cjs +9 -9
  210. package/cjs/disclosure/disclosure-context.cjs +6 -6
  211. package/cjs/disclosure/disclosure-provider.cjs +9 -9
  212. package/cjs/disclosure/disclosure-store.cjs +6 -6
  213. package/cjs/disclosure/disclosure.cjs +10 -10
  214. package/cjs/disclosure/disclosure.d.cts +1 -1
  215. package/cjs/disclosure/disclosure.d.ts +1 -1
  216. package/cjs/focus-trap/focus-trap-region.cjs +17 -19
  217. package/cjs/focus-trap/focus-trap.cjs +7 -7
  218. package/cjs/focusable/focusable-container.cjs +6 -6
  219. package/cjs/focusable/focusable-context.cjs +1 -1
  220. package/cjs/focusable/focusable.cjs +6 -6
  221. package/cjs/focusable/focusable.d.cts +3 -3
  222. package/cjs/focusable/focusable.d.ts +3 -3
  223. package/cjs/form/form-checkbox.cjs +23 -23
  224. package/cjs/form/form-context.cjs +7 -7
  225. package/cjs/form/form-control.cjs +9 -9
  226. package/cjs/form/form-control.d.cts +1 -1
  227. package/cjs/form/form-control.d.ts +1 -1
  228. package/cjs/form/form-description.cjs +19 -19
  229. package/cjs/form/form-description.d.cts +1 -1
  230. package/cjs/form/form-description.d.ts +1 -1
  231. package/cjs/form/form-error.cjs +21 -23
  232. package/cjs/form/form-error.d.cts +1 -1
  233. package/cjs/form/form-error.d.ts +1 -1
  234. package/cjs/form/form-field.cjs +13 -13
  235. package/cjs/form/form-group-label.cjs +10 -10
  236. package/cjs/form/form-group.cjs +7 -7
  237. package/cjs/form/form-input.cjs +20 -21
  238. package/cjs/form/form-label.cjs +27 -31
  239. package/cjs/form/form-label.d.cts +1 -1
  240. package/cjs/form/form-label.d.ts +1 -1
  241. package/cjs/form/form-provider.cjs +11 -11
  242. package/cjs/form/form-provider.d.cts +1 -1
  243. package/cjs/form/form-provider.d.ts +1 -1
  244. package/cjs/form/form-push.cjs +28 -35
  245. package/cjs/form/form-push.d.cts +1 -1
  246. package/cjs/form/form-push.d.ts +1 -1
  247. package/cjs/form/form-radio-group.cjs +12 -12
  248. package/cjs/form/form-radio.cjs +27 -28
  249. package/cjs/form/form-remove.cjs +23 -27
  250. package/cjs/form/form-remove.d.cts +1 -1
  251. package/cjs/form/form-remove.d.ts +1 -1
  252. package/cjs/form/form-reset.cjs +16 -16
  253. package/cjs/form/form-store.cjs +7 -7
  254. package/cjs/form/form-submit.cjs +16 -16
  255. package/cjs/form/form.cjs +36 -50
  256. package/cjs/group/group-label-context.cjs +1 -1
  257. package/cjs/group/group-label.cjs +6 -6
  258. package/cjs/group/group.cjs +6 -6
  259. package/cjs/heading/heading-context.cjs +1 -1
  260. package/cjs/heading/heading-level.cjs +1 -1
  261. package/cjs/heading/heading.cjs +6 -6
  262. package/cjs/hovercard/hovercard-anchor.cjs +11 -11
  263. package/cjs/hovercard/hovercard-anchor.d.cts +1 -1
  264. package/cjs/hovercard/hovercard-anchor.d.ts +1 -1
  265. package/cjs/hovercard/hovercard-arrow.cjs +15 -15
  266. package/cjs/hovercard/hovercard-context.cjs +9 -9
  267. package/cjs/hovercard/hovercard-description.cjs +10 -10
  268. package/cjs/hovercard/hovercard-disclosure.cjs +38 -48
  269. package/cjs/hovercard/hovercard-dismiss.cjs +15 -15
  270. package/cjs/hovercard/hovercard-heading.cjs +11 -11
  271. package/cjs/hovercard/hovercard-provider.cjs +15 -15
  272. package/cjs/hovercard/hovercard-store.cjs +9 -9
  273. package/cjs/hovercard/hovercard.cjs +35 -35
  274. package/cjs/hovercard/hovercard.d.cts +1 -1
  275. package/cjs/hovercard/hovercard.d.ts +1 -1
  276. package/cjs/hovercard/utils/debug-polygon.cjs +1 -1
  277. package/cjs/hovercard/utils/polygon.cjs +3 -3
  278. package/cjs/index.cjs +1 -1
  279. package/cjs/menu/menu-arrow.cjs +19 -19
  280. package/cjs/menu/menu-bar-provider.cjs +13 -13
  281. package/cjs/menu/menu-bar-store.cjs +9 -9
  282. package/cjs/menu/menu-bar.cjs +19 -19
  283. package/cjs/menu/menu-button-arrow.cjs +19 -19
  284. package/cjs/menu/menu-button.cjs +61 -78
  285. package/cjs/menu/menu-context.cjs +13 -13
  286. package/cjs/menu/menu-description.cjs +13 -13
  287. package/cjs/menu/menu-dismiss.cjs +26 -26
  288. package/cjs/menu/menu-group-label.cjs +10 -10
  289. package/cjs/menu/menu-group.cjs +10 -10
  290. package/cjs/menu/menu-heading.cjs +14 -14
  291. package/cjs/menu/menu-item-check.cjs +19 -19
  292. package/cjs/menu/menu-item-checkbox.cjs +42 -49
  293. package/cjs/menu/menu-item-radio.cjs +39 -43
  294. package/cjs/menu/menu-item.cjs +21 -21
  295. package/cjs/menu/menu-item.d.cts +1 -1
  296. package/cjs/menu/menu-item.d.ts +1 -1
  297. package/cjs/menu/menu-list.cjs +20 -20
  298. package/cjs/menu/menu-provider.cjs +23 -23
  299. package/cjs/menu/menu-provider.d.cts +1 -1
  300. package/cjs/menu/menu-provider.d.ts +1 -1
  301. package/cjs/menu/menu-separator.cjs +20 -20
  302. package/cjs/menu/menu-store.cjs +22 -22
  303. package/cjs/menu/menu.cjs +77 -95
  304. package/cjs/menubar/menubar-context.cjs +8 -8
  305. package/cjs/menubar/menubar-provider.cjs +13 -13
  306. package/cjs/menubar/menubar-store.cjs +8 -8
  307. package/cjs/menubar/menubar.cjs +16 -16
  308. package/cjs/popover/popover-anchor.cjs +9 -9
  309. package/cjs/popover/popover-arrow-path.cjs +1 -1
  310. package/cjs/popover/popover-arrow.cjs +9 -9
  311. package/cjs/popover/popover-context.cjs +8 -8
  312. package/cjs/popover/popover-description.cjs +9 -9
  313. package/cjs/popover/popover-disclosure-arrow.cjs +9 -9
  314. package/cjs/popover/popover-disclosure.cjs +15 -15
  315. package/cjs/popover/popover-dismiss.cjs +13 -13
  316. package/cjs/popover/popover-heading.cjs +10 -10
  317. package/cjs/popover/popover-provider.cjs +13 -13
  318. package/cjs/popover/popover-store.cjs +8 -8
  319. package/cjs/popover/popover.cjs +32 -32
  320. package/cjs/popover/popover.d.cts +3 -1
  321. package/cjs/popover/popover.d.ts +3 -1
  322. package/cjs/portal/portal-context.cjs +1 -1
  323. package/cjs/portal/portal.cjs +8 -8
  324. package/cjs/radio/radio-context.cjs +8 -8
  325. package/cjs/radio/radio-group.cjs +19 -19
  326. package/cjs/radio/radio-provider.cjs +13 -13
  327. package/cjs/radio/radio-store.cjs +8 -8
  328. package/cjs/radio/radio.cjs +15 -15
  329. package/cjs/radio/radio.d.cts +1 -1
  330. package/cjs/radio/radio.d.ts +1 -1
  331. package/cjs/role/role.cjs +6 -6
  332. package/cjs/select/select-arrow.cjs +13 -13
  333. package/cjs/select/select-context.cjs +11 -11
  334. package/cjs/select/select-dismiss.cjs +23 -23
  335. package/cjs/select/select-group-label.cjs +10 -10
  336. package/cjs/select/select-group.cjs +10 -10
  337. package/cjs/select/select-heading.cjs +21 -21
  338. package/cjs/select/select-item-check.cjs +17 -17
  339. package/cjs/select/select-item.cjs +45 -55
  340. package/cjs/select/select-item.d.cts +1 -1
  341. package/cjs/select/select-item.d.ts +1 -1
  342. package/cjs/select/select-label.cjs +22 -23
  343. package/cjs/select/select-list.cjs +18 -18
  344. package/cjs/select/select-list.d.cts +1 -1
  345. package/cjs/select/select-list.d.ts +1 -1
  346. package/cjs/select/select-popover.cjs +47 -47
  347. package/cjs/select/select-provider.cjs +20 -20
  348. package/cjs/select/select-provider.d.cts +1 -1
  349. package/cjs/select/select-provider.d.ts +1 -1
  350. package/cjs/select/select-renderer.cjs +29 -36
  351. package/cjs/select/select-row.cjs +18 -18
  352. package/cjs/select/select-separator.cjs +18 -18
  353. package/cjs/select/select-store.cjs +18 -18
  354. package/cjs/select/select-value.cjs +13 -13
  355. package/cjs/select/select-value.d.cts +1 -1
  356. package/cjs/select/select-value.d.ts +1 -1
  357. package/cjs/select/select.cjs +48 -58
  358. package/cjs/select/select.d.cts +1 -1
  359. package/cjs/select/select.d.ts +1 -1
  360. package/cjs/separator/separator.cjs +6 -6
  361. package/cjs/tab/tab-context.cjs +8 -8
  362. package/cjs/tab/tab-list.cjs +20 -20
  363. package/cjs/tab/tab-panel.cjs +37 -42
  364. package/cjs/tab/tab-panel.d.cts +3 -1
  365. package/cjs/tab/tab-panel.d.ts +3 -1
  366. package/cjs/tab/tab-provider.cjs +18 -18
  367. package/cjs/tab/tab-store.cjs +16 -16
  368. package/cjs/tab/tab-store.d.cts +5 -3
  369. package/cjs/tab/tab-store.d.ts +5 -3
  370. package/cjs/tab/tab.cjs +47 -53
  371. package/cjs/tag/tag-context.cjs +8 -8
  372. package/cjs/tag/tag-input.cjs +40 -52
  373. package/cjs/tag/tag-input.d.cts +1 -1
  374. package/cjs/tag/tag-input.d.ts +1 -1
  375. package/cjs/tag/tag-list-label.cjs +15 -15
  376. package/cjs/tag/tag-list.cjs +28 -31
  377. package/cjs/tag/tag-provider.cjs +13 -13
  378. package/cjs/tag/tag-remove.cjs +27 -31
  379. package/cjs/tag/tag-remove.d.cts +1 -1
  380. package/cjs/tag/tag-remove.d.ts +1 -1
  381. package/cjs/tag/tag-store.cjs +8 -8
  382. package/cjs/tag/tag-value.cjs +8 -8
  383. package/cjs/tag/tag-values.cjs +8 -8
  384. package/cjs/tag/tag.cjs +31 -32
  385. package/cjs/tag/tag.d.cts +1 -1
  386. package/cjs/tag/tag.d.ts +1 -1
  387. package/cjs/tag/utils.cjs +3 -3
  388. package/cjs/toolbar/toolbar-container.cjs +23 -23
  389. package/cjs/toolbar/toolbar-context.cjs +8 -8
  390. package/cjs/toolbar/toolbar-input.cjs +21 -21
  391. package/cjs/toolbar/toolbar-item.cjs +15 -15
  392. package/cjs/toolbar/toolbar-provider.cjs +13 -13
  393. package/cjs/toolbar/toolbar-separator.cjs +15 -15
  394. package/cjs/toolbar/toolbar-store.cjs +8 -8
  395. package/cjs/toolbar/toolbar.cjs +24 -24
  396. package/cjs/tooltip/tooltip-anchor.cjs +31 -40
  397. package/cjs/tooltip/tooltip-arrow.cjs +16 -16
  398. package/cjs/tooltip/tooltip-context.cjs +10 -10
  399. package/cjs/tooltip/tooltip-provider.cjs +17 -17
  400. package/cjs/tooltip/tooltip-store.cjs +10 -10
  401. package/cjs/tooltip/tooltip.cjs +54 -60
  402. package/cjs/utils/hooks.cjs +4 -4
  403. package/cjs/utils/hooks.d.cts +1 -1
  404. package/cjs/utils/hooks.d.ts +1 -1
  405. package/cjs/utils/misc.cjs +3 -3
  406. package/cjs/utils/store.cjs +5 -5
  407. package/cjs/utils/system.cjs +5 -5
  408. package/cjs/utils/system.d.cts +3 -3
  409. package/cjs/utils/system.d.ts +3 -3
  410. package/cjs/utils/types.d.cts +2 -4
  411. package/cjs/utils/types.d.ts +2 -4
  412. package/cjs/visually-hidden/visually-hidden.cjs +6 -6
  413. package/esm/__chunks/{BEM72Z3B.js → 2JP3PD4E.js} +4 -4
  414. package/esm/__chunks/{YNKDLCEK.js → 2PGBN2Y4.js} +11 -14
  415. package/esm/__chunks/{ANSLM3DW.js → 2PNU5FDT.js} +4 -4
  416. package/esm/__chunks/{OFHTR2QK.js → 2YDG6Q4P.js} +3 -3
  417. package/esm/__chunks/{UUT76IPH.js → 32IPIQBR.js} +2 -2
  418. package/esm/__chunks/{TR2S63FJ.js → 3JMGO6V3.js} +5 -5
  419. package/esm/__chunks/{T4K2JSQC.js → 3RXEUV3E.js} +4 -4
  420. package/esm/__chunks/{ELHILQJA.js → 42INOJH3.js} +4 -4
  421. package/esm/__chunks/{V3E5SLHB.js → 4CA6HQZC.js} +11 -16
  422. package/esm/__chunks/{J7DZFKDD.js → 4DJ5UIED.js} +20 -34
  423. package/esm/__chunks/{FQEEOOAZ.js → 4FCYZKRB.js} +11 -16
  424. package/esm/__chunks/{B2GB5ZIJ.js → 4KVV4LMJ.js} +1 -1
  425. package/esm/__chunks/{FZPKOE72.js → 4ZTL4ESZ.js} +2 -2
  426. package/esm/__chunks/{JZOR7AGF.js → 543BQAW5.js} +5 -5
  427. package/esm/__chunks/{AH6A6OH6.js → 56RR3YNE.js} +3 -3
  428. package/esm/__chunks/{A3SWRNEB.js → 5E5BPAV7.js} +9 -12
  429. package/esm/__chunks/{RKAHF5HE.js → 5NAURCQI.js} +6 -7
  430. package/esm/__chunks/{3IEDWLST.js → 5VQZOHHZ.js} +5 -10
  431. package/esm/__chunks/{MKDDWKFK.js → 63XF7ACK.js} +5 -10
  432. package/esm/__chunks/{VZRFHU6Z.js → 6524RV3R.js} +11 -14
  433. package/esm/__chunks/{JY2XFHRA.js → 673TSSFB.js} +17 -27
  434. package/esm/__chunks/{ARX2VAX4.js → 6JLOZRF5.js} +3 -3
  435. package/esm/__chunks/{LTJ75W3G.js → 6K7HZETS.js} +3 -3
  436. package/esm/__chunks/{3OQPDTG6.js → 7ATJTJIY.js} +4 -4
  437. package/esm/__chunks/{GOSM5J6C.js → 7DP25ROA.js} +7 -8
  438. package/esm/__chunks/{S6O3GDT5.js → 7RXYRUSH.js} +4 -4
  439. package/esm/__chunks/{57DQFKOT.js → 7UYST25M.js} +17 -29
  440. package/esm/__chunks/{44774DCU.js → AJE6WNNP.js} +47 -71
  441. package/esm/__chunks/{PPFXZOWJ.js → AMQNTLCG.js} +9 -12
  442. package/esm/__chunks/{6M3KVYNV.js → AOK4FW4L.js} +63 -116
  443. package/esm/__chunks/{5QL6BP6J.js → AOUGVQZ3.js} +15 -23
  444. package/esm/__chunks/{FFXEMTZO.js → B3R2D232.js} +3 -3
  445. package/esm/__chunks/{EDI7THRR.js → BEBUB5QN.js} +2 -2
  446. package/esm/__chunks/{MQ4NU7SL.js → C3D7NSUP.js} +5 -5
  447. package/esm/__chunks/{CGG6F755.js → DRL2GNLJ.js} +56 -100
  448. package/esm/__chunks/{56DLLBUB.js → EAHBL67B.js} +2 -2
  449. package/esm/__chunks/{IFYK7NB2.js → EMQCY6SH.js} +2 -2
  450. package/esm/__chunks/{JS4W7WDG.js → EQMNTDLB.js} +1 -1
  451. package/esm/__chunks/{4ZRXV5C7.js → ESSM74HH.js} +7 -6
  452. package/esm/__chunks/{NEXWONOD.js → EWPDRBSA.js} +3 -3
  453. package/esm/__chunks/{3ON5O2LG.js → FLYVORTY.js} +2 -2
  454. package/esm/__chunks/{S67MTDSB.js → FQ77EHUR.js} +13 -23
  455. package/esm/__chunks/{O4PHI74Y.js → FQDOBJ6H.js} +7 -12
  456. package/esm/__chunks/{2FJLP3YP.js → G2E65A35.js} +25 -44
  457. package/esm/__chunks/{V4QWNWTM.js → HZ7KGUEF.js} +14 -22
  458. package/esm/__chunks/{MEA5A3JL.js → IQY2XH5H.js} +26 -44
  459. package/esm/__chunks/{QNUG7VY6.js → ITUYV2MN.js} +69 -129
  460. package/esm/__chunks/{FFFEN6V6.js → IZO5ZR3O.js} +2 -2
  461. package/esm/__chunks/{WJUQFF4Z.js → J4NXMVZC.js} +3 -3
  462. package/esm/__chunks/{53CQGCDZ.js → K2ZF5NU7.js} +5 -8
  463. package/esm/__chunks/{XZTI53XS.js → KHRZRUNB.js} +8 -8
  464. package/esm/__chunks/{4YEPPC7Q.js → KXBJFI2T.js} +2 -2
  465. package/esm/__chunks/{XRQ5JUHN.js → KYRH6BDE.js} +2 -2
  466. package/esm/__chunks/{VN7YWKW2.js → LEWNCT3G.js} +21 -35
  467. package/esm/__chunks/{6BRYOMMU.js → LNYYGYYJ.js} +30 -55
  468. package/esm/__chunks/{THGRQCVD.js → M6ZUVZPG.js} +2 -2
  469. package/esm/__chunks/{GUZLDCCK.js → MHEVUPUR.js} +2 -2
  470. package/esm/__chunks/{J4JPXPLD.js → MTODTZOP.js} +1 -1
  471. package/esm/__chunks/{HLCXF2N4.js → NEBRAPXZ.js} +1 -1
  472. package/esm/__chunks/{BGZXKXEX.js → NJLXK3RL.js} +6 -6
  473. package/esm/__chunks/{BPJQU32H.js → NMSEBYDL.js} +2 -2
  474. package/esm/__chunks/{3TEK3C5Q.js → NSFBIL2Z.js} +12 -15
  475. package/esm/__chunks/{ZVTAGWLT.js → NY537TEH.js} +4 -4
  476. package/esm/__chunks/{HVBTERMS.js → O6W3KMIU.js} +2 -2
  477. package/esm/__chunks/{YRHO2RDO.js → OE4UNAC4.js} +6 -6
  478. package/esm/__chunks/{UVJHXCCZ.js → PMFZK2Z4.js} +18 -31
  479. package/esm/__chunks/{RIR54EMZ.js → PS5YNAJZ.js} +4 -4
  480. package/esm/__chunks/{I6MSISV2.js → PTCNA5XT.js} +5 -7
  481. package/esm/__chunks/{FXHYBSGZ.js → PZGHQO5Y.js} +8 -11
  482. package/esm/__chunks/{XMSX63X6.js → QAL7XKAT.js} +6 -6
  483. package/esm/__chunks/{DFMIKPTE.js → QJCHJYGN.js} +4 -4
  484. package/esm/__chunks/{EMAID2BX.js → R7AVCKGB.js} +5 -7
  485. package/esm/__chunks/{BMYMDDP6.js → RR3QLTVJ.js} +16 -26
  486. package/esm/__chunks/{ZXQSHM2S.js → RVGP4EDO.js} +2 -2
  487. package/esm/__chunks/{ZVORRLXS.js → RZ4N7DMG.js} +7 -7
  488. package/esm/__chunks/{JQTJY6G3.js → SEE6HN7H.js} +4 -4
  489. package/esm/__chunks/{RNXBTOTE.js → SEHEJ7XZ.js} +26 -36
  490. package/esm/__chunks/{6O2UZOXH.js → SEMTJMZO.js} +7 -9
  491. package/esm/__chunks/{KQWO6ME3.js → SK3NAZA3.js} +8 -14
  492. package/esm/__chunks/{AFRECUMM.js → T3FPB6UI.js} +2 -2
  493. package/esm/__chunks/{DYZ3QKCZ.js → TCS6QBGM.js} +2 -2
  494. package/esm/__chunks/{RA2MZPUM.js → TN5Y26CD.js} +2 -2
  495. package/esm/__chunks/{TZ2KTFYX.js → TROKLLXK.js} +6 -6
  496. package/esm/__chunks/{D6UA6CB7.js → TUWQEMG5.js} +2 -2
  497. package/esm/__chunks/{T3LVAWXA.js → TWVD2KYP.js} +2 -2
  498. package/esm/__chunks/{Z42C5PR3.js → U7BJ2WVN.js} +80 -141
  499. package/esm/__chunks/{TYZXREX7.js → U7IXCFEO.js} +3 -3
  500. package/esm/__chunks/{VU7XFALF.js → V3XGKTI7.js} +2 -2
  501. package/esm/__chunks/{UQGOBOQG.js → VBM67XZT.js} +2 -2
  502. package/esm/__chunks/{7HC4BNW6.js → VJLRJATI.js} +2 -2
  503. package/esm/__chunks/{ENOFSN2Q.js → W3QZUDGA.js} +3 -3
  504. package/esm/__chunks/{4SSKEKWE.js → W77M2ZU5.js} +19 -32
  505. package/esm/__chunks/{BJY6QMBB.js → WB2VUSZO.js} +3 -3
  506. package/esm/__chunks/{ABEAJXCY.js → WESQERUS.js} +4 -4
  507. package/esm/__chunks/{7AG4LN2H.js → WOYVW654.js} +18 -28
  508. package/esm/__chunks/{FPBGCFAS.js → WX6L4ACS.js} +17 -24
  509. package/esm/__chunks/{CMELOF3N.js → X3G4E3V2.js} +2 -2
  510. package/esm/__chunks/{LT754EDD.js → X474FLSI.js} +2 -2
  511. package/esm/__chunks/{YMV43K4F.js → X7QOZUD3.js} +3 -5
  512. package/esm/__chunks/{WSECHABH.js → XKTQ6BEH.js} +6 -7
  513. package/esm/__chunks/{QX2CMDZ5.js → XRRE3XFB.js} +2 -2
  514. package/esm/__chunks/{3UWYQQ7N.js → XV4RNL66.js} +2 -2
  515. package/esm/__chunks/{2TL4Z4I4.js → XY6RPG62.js} +2 -2
  516. package/esm/__chunks/{YRRYMVMY.js → Y54YOYNA.js} +49 -91
  517. package/esm/__chunks/{USZYRJNN.js → YJGBNUVO.js} +5 -5
  518. package/esm/__chunks/{JTUV5GA3.js → ZAL25FJZ.js} +16 -23
  519. package/esm/__chunks/{XFBNACRT.js → ZS47AUQK.js} +2 -2
  520. package/esm/__chunks/{7APUEP3A.js → ZU4IIYI2.js} +2 -2
  521. package/esm/button/button.js +7 -7
  522. package/esm/checkbox/checkbox-check.js +5 -5
  523. package/esm/checkbox/checkbox-checked-context.js +1 -1
  524. package/esm/checkbox/checkbox-context.js +5 -5
  525. package/esm/checkbox/checkbox-provider.d.ts +1 -1
  526. package/esm/checkbox/checkbox-provider.js +7 -7
  527. package/esm/checkbox/checkbox-store.js +5 -5
  528. package/esm/checkbox/checkbox.js +9 -9
  529. package/esm/collection/collection-context.js +5 -5
  530. package/esm/collection/collection-item.d.ts +4 -2
  531. package/esm/collection/collection-item.js +6 -6
  532. package/esm/collection/collection-provider.d.ts +1 -1
  533. package/esm/collection/collection-provider.js +7 -7
  534. package/esm/collection/collection-renderer.d.ts +14 -16
  535. package/esm/collection/collection-renderer.js +7 -7
  536. package/esm/collection/collection-store.js +5 -5
  537. package/esm/collection/collection.js +5 -5
  538. package/esm/combobox/combobox-cancel.d.ts +1 -1
  539. package/esm/combobox/combobox-cancel.js +17 -20
  540. package/esm/combobox/combobox-context.js +10 -10
  541. package/esm/combobox/combobox-disclosure.js +17 -19
  542. package/esm/combobox/combobox-group-label.js +6 -6
  543. package/esm/combobox/combobox-group.js +12 -12
  544. package/esm/combobox/combobox-item-check.js +11 -11
  545. package/esm/combobox/combobox-item-value.js +11 -11
  546. package/esm/combobox/combobox-item.d.ts +1 -1
  547. package/esm/combobox/combobox-item.js +28 -38
  548. package/esm/combobox/combobox-label.js +10 -10
  549. package/esm/combobox/combobox-list.js +13 -13
  550. package/esm/combobox/combobox-popover.js +44 -52
  551. package/esm/combobox/combobox-provider.d.ts +1 -1
  552. package/esm/combobox/combobox-provider.js +18 -18
  553. package/esm/combobox/combobox-row.js +11 -11
  554. package/esm/combobox/combobox-separator.js +12 -12
  555. package/esm/combobox/combobox-store.js +14 -14
  556. package/esm/combobox/combobox-value.js +10 -10
  557. package/esm/combobox/combobox.d.ts +3 -2
  558. package/esm/combobox/combobox.js +82 -132
  559. package/esm/command/command.js +6 -6
  560. package/esm/composite/composite-container.js +9 -9
  561. package/esm/composite/composite-context.js +6 -6
  562. package/esm/composite/composite-group-label.js +6 -6
  563. package/esm/composite/composite-group.js +6 -6
  564. package/esm/composite/composite-hover.d.ts +5 -3
  565. package/esm/composite/composite-hover.js +7 -7
  566. package/esm/composite/composite-input.js +9 -12
  567. package/esm/composite/composite-item.d.ts +1 -1
  568. package/esm/composite/composite-item.js +12 -12
  569. package/esm/composite/composite-overflow-disclosure.js +23 -25
  570. package/esm/composite/composite-overflow-store.js +7 -7
  571. package/esm/composite/composite-overflow.js +32 -33
  572. package/esm/composite/composite-provider.d.ts +1 -1
  573. package/esm/composite/composite-provider.js +9 -9
  574. package/esm/composite/composite-renderer.d.ts +13 -15
  575. package/esm/composite/composite-renderer.js +9 -9
  576. package/esm/composite/composite-row.js +7 -7
  577. package/esm/composite/composite-separator.js +8 -8
  578. package/esm/composite/composite-store.js +6 -6
  579. package/esm/composite/composite-typeahead.js +8 -8
  580. package/esm/composite/composite.d.ts +1 -1
  581. package/esm/composite/composite.js +9 -9
  582. package/esm/composite/utils.js +2 -2
  583. package/esm/dialog/dialog-backdrop.js +15 -15
  584. package/esm/dialog/dialog-context.js +6 -6
  585. package/esm/dialog/dialog-description.js +7 -7
  586. package/esm/dialog/dialog-disclosure.js +11 -11
  587. package/esm/dialog/dialog-dismiss.js +10 -10
  588. package/esm/dialog/dialog-heading.js +8 -8
  589. package/esm/dialog/dialog-provider.js +9 -9
  590. package/esm/dialog/dialog-store.js +6 -6
  591. package/esm/dialog/dialog.d.ts +2 -2
  592. package/esm/dialog/dialog.js +29 -29
  593. package/esm/dialog/utils/disable-accessibility-tree-outside.js +5 -5
  594. package/esm/dialog/utils/disable-tree.js +6 -6
  595. package/esm/dialog/utils/is-backdrop.js +2 -2
  596. package/esm/dialog/utils/mark-tree-outside.js +5 -5
  597. package/esm/dialog/utils/orchestrate.js +2 -2
  598. package/esm/dialog/utils/prepend-hidden-dismiss.js +1 -1
  599. package/esm/dialog/utils/supports-inert.js +1 -1
  600. package/esm/dialog/utils/use-hide-on-interact-outside.js +9 -9
  601. package/esm/dialog/utils/use-nested-dialogs.js +4 -4
  602. package/esm/dialog/utils/use-prevent-body-scroll.js +6 -6
  603. package/esm/dialog/utils/use-previous-mouse-down-ref.js +2 -2
  604. package/esm/dialog/utils/use-root-dialog.js +4 -4
  605. package/esm/dialog/utils/walk-tree-outside.js +3 -3
  606. package/esm/disclosure/disclosure-content.js +8 -8
  607. package/esm/disclosure/disclosure-context.js +5 -5
  608. package/esm/disclosure/disclosure-provider.js +7 -7
  609. package/esm/disclosure/disclosure-store.js +5 -5
  610. package/esm/disclosure/disclosure.d.ts +1 -1
  611. package/esm/disclosure/disclosure.js +9 -9
  612. package/esm/focus-trap/focus-trap-region.js +9 -11
  613. package/esm/focus-trap/focus-trap.js +6 -6
  614. package/esm/focusable/focusable-container.js +5 -5
  615. package/esm/focusable/focusable-context.js +1 -1
  616. package/esm/focusable/focusable.d.ts +3 -3
  617. package/esm/focusable/focusable.js +5 -5
  618. package/esm/form/form-checkbox.js +14 -14
  619. package/esm/form/form-context.js +6 -6
  620. package/esm/form/form-control.d.ts +1 -1
  621. package/esm/form/form-control.js +8 -8
  622. package/esm/form/form-description.d.ts +1 -1
  623. package/esm/form/form-description.js +8 -8
  624. package/esm/form/form-error.d.ts +1 -1
  625. package/esm/form/form-error.js +10 -12
  626. package/esm/form/form-field.js +8 -8
  627. package/esm/form/form-group-label.js +5 -5
  628. package/esm/form/form-group.js +6 -6
  629. package/esm/form/form-input.js +10 -11
  630. package/esm/form/form-label.d.ts +1 -1
  631. package/esm/form/form-label.js +12 -16
  632. package/esm/form/form-provider.d.ts +1 -1
  633. package/esm/form/form-provider.js +9 -9
  634. package/esm/form/form-push.d.ts +1 -1
  635. package/esm/form/form-push.js +18 -25
  636. package/esm/form/form-radio-group.js +6 -6
  637. package/esm/form/form-radio.js +17 -18
  638. package/esm/form/form-remove.d.ts +1 -1
  639. package/esm/form/form-remove.js +15 -19
  640. package/esm/form/form-reset.js +9 -9
  641. package/esm/form/form-store.js +6 -6
  642. package/esm/form/form-submit.js +9 -9
  643. package/esm/form/form.js +21 -35
  644. package/esm/group/group-label-context.js +1 -1
  645. package/esm/group/group-label.js +5 -5
  646. package/esm/group/group.js +5 -5
  647. package/esm/heading/heading-context.js +1 -1
  648. package/esm/heading/heading-level.js +1 -1
  649. package/esm/heading/heading.js +5 -5
  650. package/esm/hovercard/hovercard-anchor.d.ts +1 -1
  651. package/esm/hovercard/hovercard-anchor.js +10 -10
  652. package/esm/hovercard/hovercard-arrow.js +9 -9
  653. package/esm/hovercard/hovercard-context.js +8 -8
  654. package/esm/hovercard/hovercard-description.js +9 -9
  655. package/esm/hovercard/hovercard-disclosure.js +25 -35
  656. package/esm/hovercard/hovercard-dismiss.js +14 -14
  657. package/esm/hovercard/hovercard-heading.js +10 -10
  658. package/esm/hovercard/hovercard-provider.js +13 -13
  659. package/esm/hovercard/hovercard-store.js +8 -8
  660. package/esm/hovercard/hovercard.d.ts +1 -1
  661. package/esm/hovercard/hovercard.js +34 -34
  662. package/esm/hovercard/utils/debug-polygon.js +1 -1
  663. package/esm/hovercard/utils/polygon.js +2 -2
  664. package/esm/index.js +1 -1
  665. package/esm/menu/menu-arrow.js +13 -13
  666. package/esm/menu/menu-bar-provider.js +12 -12
  667. package/esm/menu/menu-bar-store.js +7 -7
  668. package/esm/menu/menu-bar.js +15 -15
  669. package/esm/menu/menu-button-arrow.js +13 -13
  670. package/esm/menu/menu-button.js +42 -59
  671. package/esm/menu/menu-context.js +12 -12
  672. package/esm/menu/menu-description.js +9 -9
  673. package/esm/menu/menu-dismiss.js +18 -18
  674. package/esm/menu/menu-group-label.js +6 -6
  675. package/esm/menu/menu-group.js +6 -6
  676. package/esm/menu/menu-heading.js +10 -10
  677. package/esm/menu/menu-item-check.js +13 -13
  678. package/esm/menu/menu-item-checkbox.js +31 -38
  679. package/esm/menu/menu-item-radio.js +27 -31
  680. package/esm/menu/menu-item.d.ts +1 -1
  681. package/esm/menu/menu-item.js +20 -20
  682. package/esm/menu/menu-list.js +19 -19
  683. package/esm/menu/menu-provider.d.ts +1 -1
  684. package/esm/menu/menu-provider.js +21 -21
  685. package/esm/menu/menu-separator.js +14 -14
  686. package/esm/menu/menu-store.js +21 -21
  687. package/esm/menu/menu.js +61 -79
  688. package/esm/menubar/menubar-context.js +7 -7
  689. package/esm/menubar/menubar-provider.js +12 -12
  690. package/esm/menubar/menubar-store.js +7 -7
  691. package/esm/menubar/menubar.js +15 -15
  692. package/esm/popover/popover-anchor.js +8 -8
  693. package/esm/popover/popover-arrow-path.js +1 -1
  694. package/esm/popover/popover-arrow.js +8 -8
  695. package/esm/popover/popover-context.js +7 -7
  696. package/esm/popover/popover-description.js +8 -8
  697. package/esm/popover/popover-disclosure-arrow.js +8 -8
  698. package/esm/popover/popover-disclosure.js +14 -14
  699. package/esm/popover/popover-dismiss.js +12 -12
  700. package/esm/popover/popover-heading.js +9 -9
  701. package/esm/popover/popover-provider.js +11 -11
  702. package/esm/popover/popover-store.js +7 -7
  703. package/esm/popover/popover.d.ts +3 -1
  704. package/esm/popover/popover.js +31 -31
  705. package/esm/portal/portal-context.js +1 -1
  706. package/esm/portal/portal.js +7 -7
  707. package/esm/radio/radio-context.js +7 -7
  708. package/esm/radio/radio-group.js +10 -10
  709. package/esm/radio/radio-provider.js +11 -11
  710. package/esm/radio/radio-store.js +7 -7
  711. package/esm/radio/radio.d.ts +1 -1
  712. package/esm/radio/radio.js +14 -14
  713. package/esm/role/role.js +5 -5
  714. package/esm/select/select-arrow.js +12 -12
  715. package/esm/select/select-context.js +10 -10
  716. package/esm/select/select-dismiss.js +15 -15
  717. package/esm/select/select-group-label.js +6 -6
  718. package/esm/select/select-group.js +6 -6
  719. package/esm/select/select-heading.js +13 -13
  720. package/esm/select/select-item-check.js +11 -11
  721. package/esm/select/select-item.d.ts +1 -1
  722. package/esm/select/select-item.js +28 -38
  723. package/esm/select/select-label.js +11 -12
  724. package/esm/select/select-list.d.ts +1 -1
  725. package/esm/select/select-list.js +17 -17
  726. package/esm/select/select-popover.js +38 -38
  727. package/esm/select/select-provider.d.ts +1 -1
  728. package/esm/select/select-provider.js +18 -18
  729. package/esm/select/select-renderer.js +21 -28
  730. package/esm/select/select-row.js +11 -11
  731. package/esm/select/select-separator.js +12 -12
  732. package/esm/select/select-store.js +17 -17
  733. package/esm/select/select-value.d.ts +1 -1
  734. package/esm/select/select-value.js +11 -11
  735. package/esm/select/select.d.ts +1 -1
  736. package/esm/select/select.js +32 -42
  737. package/esm/separator/separator.js +5 -5
  738. package/esm/tab/tab-context.js +7 -7
  739. package/esm/tab/tab-list.js +10 -10
  740. package/esm/tab/tab-panel.d.ts +3 -1
  741. package/esm/tab/tab-panel.js +20 -25
  742. package/esm/tab/tab-provider.js +16 -16
  743. package/esm/tab/tab-store.d.ts +5 -3
  744. package/esm/tab/tab-store.js +15 -15
  745. package/esm/tab/tab.js +35 -41
  746. package/esm/tag/tag-context.js +7 -7
  747. package/esm/tag/tag-input.d.ts +1 -1
  748. package/esm/tag/tag-input.js +25 -37
  749. package/esm/tag/tag-list-label.js +7 -7
  750. package/esm/tag/tag-list.js +14 -17
  751. package/esm/tag/tag-provider.js +11 -11
  752. package/esm/tag/tag-remove.d.ts +1 -1
  753. package/esm/tag/tag-remove.js +14 -18
  754. package/esm/tag/tag-store.js +7 -7
  755. package/esm/tag/tag-value.js +7 -7
  756. package/esm/tag/tag-values.js +7 -7
  757. package/esm/tag/tag.d.ts +1 -1
  758. package/esm/tag/tag.js +16 -17
  759. package/esm/tag/utils.js +2 -2
  760. package/esm/toolbar/toolbar-container.js +15 -15
  761. package/esm/toolbar/toolbar-context.js +7 -7
  762. package/esm/toolbar/toolbar-input.js +14 -14
  763. package/esm/toolbar/toolbar-item.js +14 -14
  764. package/esm/toolbar/toolbar-provider.js +11 -11
  765. package/esm/toolbar/toolbar-separator.js +9 -9
  766. package/esm/toolbar/toolbar-store.js +7 -7
  767. package/esm/toolbar/toolbar.js +14 -14
  768. package/esm/tooltip/tooltip-anchor.js +21 -30
  769. package/esm/tooltip/tooltip-arrow.js +10 -10
  770. package/esm/tooltip/tooltip-context.js +9 -9
  771. package/esm/tooltip/tooltip-provider.js +15 -15
  772. package/esm/tooltip/tooltip-store.js +9 -9
  773. package/esm/tooltip/tooltip.js +41 -47
  774. package/esm/utils/hooks.d.ts +1 -1
  775. package/esm/utils/hooks.js +3 -3
  776. package/esm/utils/misc.js +2 -2
  777. package/esm/utils/store.js +4 -4
  778. package/esm/utils/system.d.ts +3 -3
  779. package/esm/utils/system.js +4 -4
  780. package/esm/utils/types.d.ts +2 -4
  781. package/esm/visually-hidden/visually-hidden.js +5 -5
  782. package/package.json +5 -5
  783. package/readme.md +18 -0
  784. package/.eslintignore +0 -6
  785. package/cjs/__chunks/3HBRN3JL.cjs +0 -37
  786. package/cjs/__chunks/4M3KKEPE.cjs +0 -31
  787. package/cjs/__chunks/MSR4IN5G.cjs +0 -32
  788. package/cjs/__chunks/O57DX5AL.cjs +0 -37
  789. package/cjs/__chunks/PQYSRG5D.cjs +0 -40
  790. package/cjs/__chunks/R6EETZIU.cjs +0 -31
  791. package/cjs/__chunks/UGD3VGEV.cjs +0 -40
  792. package/cjs/__chunks/VVHW5XKK.cjs +0 -49
  793. package/cjs/__chunks/ZZ6LN2UL.cjs +0 -37
  794. package/cjs/__chunks/{AV6KTKLE.cjs → 3IVNQNIV.cjs} +0 -0
  795. package/cjs/__chunks/{ISJGSS4S.cjs → MMWRTFBG.cjs} +1 -1
  796. package/cjs/__chunks/{7TN63K2T.cjs → PNSA4OTL.cjs} +1 -1
  797. package/esm/__chunks/{4R3V3JGP.js → 3YLGPPWQ.js} +0 -0
  798. package/esm/__chunks/{L7IM35RU.js → FPWVE2AH.js} +1 -1
  799. package/esm/__chunks/{OOBDFMJL.js → HLTQOHKZ.js} +1 -1
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _WKI4JZZHcjs = require('./WKI4JZZH.cjs');
4
+ var _55G3CDVQcjs = require('./55G3CDVQ.cjs');
5
5
 
6
6
 
7
7
 
8
- var _R2YVMKBRcjs = require('./R2YVMKBR.cjs');
8
+ var _AWEKOM65cjs = require('./AWEKOM65.cjs');
9
9
 
10
10
 
11
- var _IATQHLZTcjs = require('./IATQHLZT.cjs');
11
+ var _PULY27HQcjs = require('./PULY27HQ.cjs');
12
12
 
13
13
 
14
14
 
@@ -16,14 +16,16 @@ var _IATQHLZTcjs = require('./IATQHLZT.cjs');
16
16
 
17
17
 
18
18
 
19
- var _QFX6UW2Fcjs = require('./QFX6UW2F.cjs');
19
+ var _OUWHJLQHcjs = require('./OUWHJLQH.cjs');
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _AV6KTKLEcjs = require('./AV6KTKLE.cjs');
24
+ var _3IVNQNIVcjs = require('./3IVNQNIV.cjs');
25
25
 
26
26
  // src/collection/collection-renderer.tsx
27
+ var _dom = require('@ariakit/core/utils/dom');
28
+ var _misc = require('@ariakit/core/utils/misc');
27
29
 
28
30
 
29
31
 
@@ -33,8 +35,6 @@ var _AV6KTKLEcjs = require('./AV6KTKLE.cjs');
33
35
 
34
36
 
35
37
  var _react = require('react');
36
- var _dom = require('@ariakit/core/utils/dom');
37
- var _misc = require('@ariakit/core/utils/misc');
38
38
  var _reactdom = require('react-dom');
39
39
  var _jsxruntime = require('react/jsx-runtime');
40
40
  var TagName = "div";
@@ -42,8 +42,7 @@ var CollectionRendererContext = _react.createContext.call(void 0, null);
42
42
  function createTask() {
43
43
  let raf = 0;
44
44
  const run = (cb) => {
45
- if (raf)
46
- return;
45
+ if (raf) return;
47
46
  raf = requestAnimationFrame(() => {
48
47
  raf = 0;
49
48
  cb();
@@ -61,15 +60,11 @@ function findNearestIndex(items, target, getValue) {
61
60
  while (left <= right) {
62
61
  const index = (left + right) / 2 | 0;
63
62
  const value = getValue(index);
64
- if (value === target)
65
- return index;
66
- else if (value < target)
67
- left = index + 1;
68
- else
69
- right = index - 1;
63
+ if (value === target) return index;
64
+ else if (value < target) left = index + 1;
65
+ else right = index - 1;
70
66
  }
71
- if (left > 0)
72
- return left - 1;
67
+ if (left > 0) return left - 1;
73
68
  return 0;
74
69
  }
75
70
  function getItemsLength(items) {
@@ -89,15 +84,12 @@ function getItemId(item, index, baseId) {
89
84
  }
90
85
  function getItem(items, index) {
91
86
  if (typeof items === "number") {
92
- if (index >= items)
93
- return null;
87
+ if (index >= items) return null;
94
88
  return {};
95
89
  }
96
90
  const item = items[index];
97
- if (!item)
98
- return null;
99
- if (typeof item === "object")
100
- return item;
91
+ if (!item) return null;
92
+ if (typeof item === "object") return item;
101
93
  return { value: item };
102
94
  }
103
95
  function getItemSize(item, horizontal, fallbackElement) {
@@ -108,8 +100,7 @@ function getItemSize(item, horizontal, fallbackElement) {
108
100
  const style = itemObject.style;
109
101
  if (style) {
110
102
  const size = style[prop];
111
- if (typeof size === "number")
112
- return size;
103
+ if (typeof size === "number") return size;
113
104
  }
114
105
  const items = itemObject.items;
115
106
  if (items == null ? void 0 : items.length) {
@@ -125,8 +116,7 @@ function getItemSize(item, horizontal, fallbackElement) {
125
116
  (sum, item2) => sum + getItemSize(item2, horizontal),
126
117
  initialSize
127
118
  );
128
- if (totalSize !== initialSize)
129
- return totalSize;
119
+ if (totalSize !== initialSize) return totalSize;
130
120
  }
131
121
  const element = fallbackElement !== false ? itemObject.element || fallbackElement : null;
132
122
  if (element == null ? void 0 : element.isConnected) {
@@ -165,19 +155,16 @@ function getScrollOffset(scroller, horizontal) {
165
155
  }
166
156
  function getViewport(scroller) {
167
157
  const { defaultView, documentElement } = scroller.ownerDocument;
168
- if (scroller === documentElement)
169
- return defaultView;
158
+ if (scroller === documentElement) return defaultView;
170
159
  return scroller;
171
160
  }
172
161
  function useScroller(rendererRef) {
173
162
  const [scroller, setScroller] = _react.useState.call(void 0, null);
174
163
  _react.useEffect.call(void 0, () => {
175
164
  const renderer = rendererRef == null ? void 0 : rendererRef.current;
176
- if (!renderer)
177
- return;
165
+ if (!renderer) return;
178
166
  const scroller2 = _dom.getScrollingElement.call(void 0, renderer);
179
- if (!scroller2)
180
- return;
167
+ if (!scroller2) return;
181
168
  setScroller(scroller2);
182
169
  }, [rendererRef]);
183
170
  return scroller;
@@ -207,29 +194,24 @@ function getOffsets(renderer, scroller, horizontal) {
207
194
  function getItemsEnd(props) {
208
195
  const length = getItemsLength(props.items);
209
196
  const totalPadding = props.paddingStart + props.paddingEnd;
210
- if (!length)
211
- return totalPadding;
197
+ if (!length) return totalPadding;
212
198
  const lastIndex = length - 1;
213
199
  const totalGap = lastIndex * props.gap;
214
200
  if (props.itemSize != null) {
215
201
  return length * props.itemSize + totalGap + totalPadding;
216
202
  }
217
203
  const defaultEnd = length * props.estimatedItemSize + totalGap + totalPadding;
218
- if (!props.baseId)
219
- return defaultEnd;
204
+ if (!props.baseId) return defaultEnd;
220
205
  const lastItem = getItem(props.items, lastIndex);
221
206
  const lastItemId = getItemId(lastItem, lastIndex, props.baseId);
222
207
  const lastItemData = props.data.get(lastItemId);
223
- if (lastItemData == null ? void 0 : lastItemData.end)
224
- return lastItemData.end + props.paddingEnd;
225
- if (!Array.isArray(props.items))
226
- return defaultEnd;
208
+ if (lastItemData == null ? void 0 : lastItemData.end) return lastItemData.end + props.paddingEnd;
209
+ if (!Array.isArray(props.items)) return defaultEnd;
227
210
  const end = props.items.reduce(
228
211
  (sum, item) => sum + getItemSize(item, props.horizontal, false),
229
212
  0
230
213
  );
231
- if (!end)
232
- return defaultEnd;
214
+ if (!end) return defaultEnd;
233
215
  return end + totalGap + totalPadding;
234
216
  }
235
217
  function getData(props) {
@@ -287,7 +269,7 @@ function useCollectionRenderer(_a) {
287
269
  renderOnScroll = true,
288
270
  renderOnResize = !!renderOnScroll,
289
271
  children: renderItem
290
- } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, [
272
+ } = _b, props = _3IVNQNIVcjs.__objRest.call(void 0, _b, [
291
273
  "store",
292
274
  "items",
293
275
  "initialItems",
@@ -305,9 +287,9 @@ function useCollectionRenderer(_a) {
305
287
  "children"
306
288
  ]);
307
289
  var _a2, _b2;
308
- const context = _WKI4JZZHcjs.useCollectionContext.call(void 0, );
290
+ const context = _55G3CDVQcjs.useCollectionContext.call(void 0, );
309
291
  store = store || context;
310
- const items = _IATQHLZTcjs.useStoreState.call(void 0,
292
+ const items = _PULY27HQcjs.useStoreState.call(void 0,
311
293
  store,
312
294
  (state) => itemsProp != null ? itemsProp : state == null ? void 0 : state.items
313
295
  );
@@ -323,32 +305,27 @@ function useCollectionRenderer(_a) {
323
305
  const orientation = (_a2 = orientationProp != null ? orientationProp : parent == null ? void 0 : parent.orientation) != null ? _a2 : "vertical";
324
306
  const overscan = (_b2 = overscanProp != null ? overscanProp : parent == null ? void 0 : parent.overscan) != null ? _b2 : 1;
325
307
  const ref = _react.useRef.call(void 0, null);
326
- const baseId = _QFX6UW2Fcjs.useId.call(void 0, props.id);
308
+ const baseId = _OUWHJLQHcjs.useId.call(void 0, props.id);
327
309
  const horizontal = orientation === "horizontal";
328
310
  const elements = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), []);
329
- const [elementsUpdated, updateElements] = _QFX6UW2Fcjs.useForceUpdate.call(void 0, );
311
+ const [elementsUpdated, updateElements] = _OUWHJLQHcjs.useForceUpdate.call(void 0, );
330
312
  const [defaultVisibleIndices, setVisibleIndices] = _react.useState.call(void 0, () => {
331
- if (!initialItems)
332
- return [];
313
+ if (!initialItems) return [];
333
314
  const length = getItemsLength(items);
334
315
  const initialLength = Math.min(length, Math.abs(initialItems));
335
316
  return Array.from({ length: initialLength }, (_, index) => {
336
- if (initialItems < 0)
337
- return length - index - 1;
317
+ if (initialItems < 0) return length - index - 1;
338
318
  return index;
339
319
  });
340
320
  });
341
321
  const visibleIndices = _react.useMemo.call(void 0, () => {
342
- if (!persistentIndices)
343
- return defaultVisibleIndices;
322
+ if (!persistentIndices) return defaultVisibleIndices;
344
323
  const nextIndices = defaultVisibleIndices.slice();
345
- persistentIndices.forEach((index) => {
346
- if (index < 0)
347
- return;
348
- if (nextIndices.includes(index))
349
- return;
324
+ for (const index of persistentIndices) {
325
+ if (index < 0) continue;
326
+ if (nextIndices.includes(index)) continue;
350
327
  nextIndices.push(index);
351
- });
328
+ }
352
329
  nextIndices.sort((a, b) => a - b);
353
330
  if (_misc.shallowEqual.call(void 0, defaultVisibleIndices, nextIndices)) {
354
331
  return defaultVisibleIndices;
@@ -356,13 +333,10 @@ function useCollectionRenderer(_a) {
356
333
  return nextIndices;
357
334
  }, [defaultVisibleIndices, persistentIndices]);
358
335
  const [data, setData] = _react.useState.call(void 0, () => {
359
- if (!baseId)
360
- return /* @__PURE__ */ new Map();
336
+ if (!baseId) return /* @__PURE__ */ new Map();
361
337
  const data2 = (parentData == null ? void 0 : parentData.get(baseId)) || /* @__PURE__ */ new Map();
362
- if (itemSize != null)
363
- return data2;
364
- if (!items)
365
- return data2;
338
+ if (itemSize != null) return data2;
339
+ if (!items) return data2;
366
340
  const nextData = getData({
367
341
  baseId,
368
342
  items,
@@ -400,17 +374,13 @@ function useCollectionRenderer(_a) {
400
374
  paddingEnd
401
375
  ]);
402
376
  _react.useEffect.call(void 0, () => {
403
- if (!baseId)
404
- return;
377
+ if (!baseId) return;
405
378
  parentData == null ? void 0 : parentData.set(baseId, data);
406
379
  }, [baseId, parentData, data]);
407
380
  _react.useEffect.call(void 0, () => {
408
- if (itemSize != null)
409
- return;
410
- if (!baseId)
411
- return;
412
- if (!items)
413
- return;
381
+ if (itemSize != null) return;
382
+ if (!baseId) return;
383
+ if (!items) return;
414
384
  const nextData = getData({
415
385
  baseId,
416
386
  items,
@@ -441,21 +411,16 @@ function useCollectionRenderer(_a) {
441
411
  const offsetsRef = _react.useRef.call(void 0, { start: 0, end: 0 });
442
412
  const processVisibleIndices = _react.useCallback.call(void 0, () => {
443
413
  const offsets = offsetsRef.current;
444
- if (!items)
445
- return;
446
- if (!baseId)
447
- return;
448
- if (!offsets.end)
449
- return;
450
- if (!data.size && !itemSize)
451
- return;
414
+ if (!items) return;
415
+ if (!baseId) return;
416
+ if (!offsets.end) return;
417
+ if (!data.size && !itemSize) return;
452
418
  const length = getItemsLength(items);
453
419
  const getItemOffset = (index, prop = "start") => {
454
420
  var _a3;
455
421
  if (itemSize) {
456
422
  const start2 = itemSize * index + gap * index + paddingStart;
457
- if (prop === "start")
458
- return start2;
423
+ if (prop === "start") return start2;
459
424
  return start2 + itemSize;
460
425
  }
461
426
  const item = getItem(items, index);
@@ -476,8 +441,7 @@ function useCollectionRenderer(_a) {
476
441
  (_, index) => index + start
477
442
  );
478
443
  setVisibleIndices((prevIndices) => {
479
- if (_misc.shallowEqual.call(void 0, prevIndices, indices))
480
- return prevIndices;
444
+ if (_misc.shallowEqual.call(void 0, prevIndices, indices)) return prevIndices;
481
445
  return indices;
482
446
  });
483
447
  }, [
@@ -491,34 +455,27 @@ function useCollectionRenderer(_a) {
491
455
  overscan
492
456
  ]);
493
457
  _react.useEffect.call(void 0, processVisibleIndices, [processVisibleIndices]);
494
- const processVisibleIndicesEvent = _QFX6UW2Fcjs.useEvent.call(void 0, processVisibleIndices);
458
+ const processVisibleIndicesEvent = _OUWHJLQHcjs.useEvent.call(void 0, processVisibleIndices);
495
459
  _react.useEffect.call(void 0, () => {
496
460
  const renderer = ref.current;
497
- if (!renderer)
498
- return;
499
- if (!scroller)
500
- return;
461
+ if (!renderer) return;
462
+ if (!scroller) return;
501
463
  offsetsRef.current = getOffsets(renderer, scroller, horizontal);
502
464
  processVisibleIndicesEvent();
503
465
  }, [scroller, horizontal, processVisibleIndicesEvent]);
504
466
  const mayRenderOnScroll = !!renderOnScroll;
505
- const renderOnScrollProp = _QFX6UW2Fcjs.useBooleanEvent.call(void 0, renderOnScroll);
467
+ const renderOnScrollProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0, renderOnScroll);
506
468
  _react.useEffect.call(void 0, () => {
507
- if (!mayRenderOnScroll)
508
- return;
469
+ if (!mayRenderOnScroll) return;
509
470
  const renderer = ref.current;
510
- if (!renderer)
511
- return;
512
- if (!scroller)
513
- return;
471
+ if (!renderer) return;
472
+ if (!scroller) return;
514
473
  const viewport = getViewport(scroller);
515
- if (!viewport)
516
- return;
474
+ if (!viewport) return;
517
475
  const task = createTask();
518
476
  const onScroll = (event) => {
519
477
  task.run(() => {
520
- if (!renderOnScrollProp(event))
521
- return;
478
+ if (!renderOnScrollProp(event)) return;
522
479
  offsetsRef.current = getOffsets(renderer, scroller, horizontal);
523
480
  processVisibleIndicesEvent();
524
481
  });
@@ -536,22 +493,17 @@ function useCollectionRenderer(_a) {
536
493
  processVisibleIndicesEvent
537
494
  ]);
538
495
  const mayRenderOnResize = !!renderOnResize;
539
- const renderOnResizeProp = _QFX6UW2Fcjs.useBooleanEvent.call(void 0, renderOnResize);
496
+ const renderOnResizeProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0, renderOnResize);
540
497
  _react.useEffect.call(void 0, () => {
541
- if (!mayRenderOnResize)
542
- return;
498
+ if (!mayRenderOnResize) return;
543
499
  const renderer = ref.current;
544
- if (!renderer)
545
- return;
546
- if (!scroller)
547
- return;
500
+ if (!renderer) return;
501
+ if (!scroller) return;
548
502
  const viewport = getViewport(scroller);
549
- if (!viewport)
550
- return;
503
+ if (!viewport) return;
551
504
  const task = createTask();
552
505
  if (viewport === scroller) {
553
- if (typeof ResizeObserver !== "function")
554
- return;
506
+ if (typeof ResizeObserver !== "function") return;
555
507
  let firstRun = true;
556
508
  const observer = new ResizeObserver(() => {
557
509
  if (firstRun) {
@@ -559,8 +511,7 @@ function useCollectionRenderer(_a) {
559
511
  return;
560
512
  }
561
513
  task.run(() => {
562
- if (!renderOnResizeProp(scroller))
563
- return;
514
+ if (!renderOnResizeProp(scroller)) return;
564
515
  offsetsRef.current = getOffsets(renderer, scroller, horizontal);
565
516
  processVisibleIndicesEvent();
566
517
  });
@@ -573,8 +524,7 @@ function useCollectionRenderer(_a) {
573
524
  }
574
525
  const onResize = () => {
575
526
  task.run(() => {
576
- if (!renderOnResizeProp(scroller))
577
- return;
527
+ if (!renderOnResizeProp(scroller)) return;
578
528
  offsetsRef.current = getOffsets(renderer, scroller, horizontal);
579
529
  processVisibleIndicesEvent();
580
530
  });
@@ -592,16 +542,12 @@ function useCollectionRenderer(_a) {
592
542
  processVisibleIndicesEvent
593
543
  ]);
594
544
  _react.useEffect.call(void 0, () => {
595
- if (typeof IntersectionObserver !== "function")
596
- return;
545
+ if (typeof IntersectionObserver !== "function") return;
597
546
  const renderer = ref.current;
598
- if (!renderer)
599
- return;
600
- if (!scroller)
601
- return;
547
+ if (!renderer) return;
548
+ if (!scroller) return;
602
549
  const viewport = getViewport(scroller);
603
- if (!viewport)
604
- return;
550
+ if (!viewport) return;
605
551
  const observer = new IntersectionObserver(
606
552
  () => {
607
553
  offsetsRef.current = getOffsets(renderer, scroller, horizontal);
@@ -615,18 +561,15 @@ function useCollectionRenderer(_a) {
615
561
  };
616
562
  }, [scroller, processVisibleIndicesEvent]);
617
563
  const elementObserver = _react.useMemo.call(void 0, () => {
618
- if (typeof ResizeObserver !== "function")
619
- return;
564
+ if (typeof ResizeObserver !== "function") return;
620
565
  return new ResizeObserver(() => {
621
566
  _reactdom.flushSync.call(void 0, updateElements);
622
567
  });
623
568
  }, [updateElements]);
624
569
  const itemRef = _react.useCallback.call(void 0,
625
570
  (element) => {
626
- if (!element)
627
- return;
628
- if (itemSize)
629
- return;
571
+ if (!element) return;
572
+ if (itemSize) return;
630
573
  updateElements();
631
574
  elements.set(element.id, element);
632
575
  elementObserver == null ? void 0 : elementObserver.observe(element);
@@ -651,22 +594,19 @@ function useCollectionRenderer(_a) {
651
594
  if (itemSize) {
652
595
  baseItemProps.style[horizontal ? "width" : "height"] = itemSize;
653
596
  }
654
- if (item == null)
655
- return baseItemProps;
597
+ if (item == null) return baseItemProps;
656
598
  const itemProps = getItemObject(item);
657
- return _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, itemProps), baseItemProps), {
658
- style: _AV6KTKLEcjs.__spreadValues.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, itemProps.style), baseItemProps.style)
599
+ return _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, itemProps), baseItemProps), {
600
+ style: _3IVNQNIVcjs.__spreadValues.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, itemProps.style), baseItemProps.style)
659
601
  });
660
602
  },
661
603
  [baseId, data, itemSize, paddingStart, gap, horizontal, itemRef]
662
604
  );
663
605
  const itemsProps = _react.useMemo.call(void 0, () => {
664
606
  return visibleIndices.map((index) => {
665
- if (index < 0)
666
- return;
607
+ if (index < 0) return;
667
608
  const item = getItem(items, index);
668
- if (!item)
669
- return;
609
+ if (!item) return;
670
610
  return getItemProps(item, index);
671
611
  }).filter((value) => value != null);
672
612
  }, [items, visibleIndices, getItemProps]);
@@ -676,7 +616,7 @@ function useCollectionRenderer(_a) {
676
616
  const styleProp = props.style;
677
617
  const sizeProperty = horizontal ? "width" : "height";
678
618
  const style = _react.useMemo.call(void 0,
679
- () => _AV6KTKLEcjs.__spreadValues.call(void 0, {
619
+ () => _3IVNQNIVcjs.__spreadValues.call(void 0, {
680
620
  flex: "none",
681
621
  position: "relative",
682
622
  [sizeProperty]: totalSize
@@ -688,22 +628,22 @@ function useCollectionRenderer(_a) {
688
628
  () => ({ store, orientation, overscan, childrenData }),
689
629
  [store, orientation, overscan, childrenData]
690
630
  );
691
- props = _QFX6UW2Fcjs.useWrapElement.call(void 0,
631
+ props = _OUWHJLQHcjs.useWrapElement.call(void 0,
692
632
  props,
693
633
  (element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CollectionRendererContext.Provider, { value: providerValue, children: element }),
694
634
  [providerValue]
695
635
  );
696
- props = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
636
+ props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {
697
637
  id: baseId
698
638
  }, props), {
699
639
  style,
700
- ref: _QFX6UW2Fcjs.useMergeRefs.call(void 0, ref, props.ref)
640
+ ref: _OUWHJLQHcjs.useMergeRefs.call(void 0, ref, props.ref)
701
641
  });
702
- return _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {}, props), { children });
642
+ return _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, props), { children });
703
643
  }
704
- var CollectionRenderer = _R2YVMKBRcjs.forwardRef.call(void 0, function CollectionRenderer2(props) {
644
+ var CollectionRenderer = _AWEKOM65cjs.forwardRef.call(void 0, function CollectionRenderer2(props) {
705
645
  const htmlProps = useCollectionRenderer(props);
706
- return _R2YVMKBRcjs.createElement.call(void 0, TagName, htmlProps);
646
+ return _AWEKOM65cjs.createElement.call(void 0, TagName, htmlProps);
707
647
  });
708
648
  var getCollectionRendererItem = getItem;
709
649
  var getCollectionRendererItemId = getItemId;
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- var _WKI4JZZHcjs = require('./WKI4JZZH.cjs');
5
+ var _55G3CDVQcjs = require('./55G3CDVQ.cjs');
6
6
 
7
7
 
8
- var _R2YVMKBRcjs = require('./R2YVMKBR.cjs');
8
+ var _AWEKOM65cjs = require('./AWEKOM65.cjs');
9
9
 
10
10
  // src/form/form-context.tsx
11
- var ctx = _R2YVMKBRcjs.createStoreContext.call(void 0,
12
- [_WKI4JZZHcjs.CollectionContextProvider],
13
- [_WKI4JZZHcjs.CollectionScopedContextProvider]
11
+ var ctx = _AWEKOM65cjs.createStoreContext.call(void 0,
12
+ [_55G3CDVQcjs.CollectionContextProvider],
13
+ [_55G3CDVQcjs.CollectionScopedContextProvider]
14
14
  );
15
15
  var useFormContext = ctx.useContext;
16
16
  var useFormScopedContext = ctx.useScopedContext;
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _JE2SKI3Ecjs = require('./JE2SKI3E.cjs');
4
+ var _5XC2EBLVcjs = require('./5XC2EBLV.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _R2YVMKBRcjs = require('./R2YVMKBR.cjs');
9
+ var _AWEKOM65cjs = require('./AWEKOM65.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _AV6KTKLEcjs = require('./AV6KTKLE.cjs');
14
+ var _3IVNQNIVcjs = require('./3IVNQNIV.cjs');
15
15
 
16
16
  // src/popover/popover-disclosure-arrow.tsx
17
- var _react = require('react');
18
17
  var _misc = require('@ariakit/core/utils/misc');
18
+ var _react = require('react');
19
19
  var _jsxruntime = require('react/jsx-runtime');
20
20
  var TagName = "span";
21
21
  var pointsMap = {
@@ -24,9 +24,9 @@ var pointsMap = {
24
24
  bottom: "4,6 8,10 12,6",
25
25
  left: "10,4 6,8 10,12"
26
26
  };
27
- var usePopoverDisclosureArrow = _R2YVMKBRcjs.createHook.call(void 0, function usePopoverDisclosureArrow2(_a) {
28
- var _b = _a, { store, placement } = _b, props = _AV6KTKLEcjs.__objRest.call(void 0, _b, ["store", "placement"]);
29
- const context = _JE2SKI3Ecjs.usePopoverContext.call(void 0, );
27
+ var usePopoverDisclosureArrow = _AWEKOM65cjs.createHook.call(void 0, function usePopoverDisclosureArrow2(_a) {
28
+ var _b = _a, { store, placement } = _b, props = _3IVNQNIVcjs.__objRest.call(void 0, _b, ["store", "placement"]);
29
+ const context = _5XC2EBLVcjs.usePopoverContext.call(void 0, );
30
30
  store = store || context;
31
31
  _misc.invariant.call(void 0,
32
32
  store,
@@ -53,11 +53,11 @@ var usePopoverDisclosureArrow = _R2YVMKBRcjs.createHook.call(void 0, function us
53
53
  ),
54
54
  [points]
55
55
  );
56
- props = _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
56
+ props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {
57
57
  children,
58
58
  "aria-hidden": true
59
59
  }, props), {
60
- style: _AV6KTKLEcjs.__spreadValues.call(void 0, {
60
+ style: _3IVNQNIVcjs.__spreadValues.call(void 0, {
61
61
  width: "1em",
62
62
  height: "1em",
63
63
  pointerEvents: "none"
@@ -65,10 +65,10 @@ var usePopoverDisclosureArrow = _R2YVMKBRcjs.createHook.call(void 0, function us
65
65
  });
66
66
  return _misc.removeUndefinedValues.call(void 0, props);
67
67
  });
68
- var PopoverDisclosureArrow = _R2YVMKBRcjs.forwardRef.call(void 0,
68
+ var PopoverDisclosureArrow = _AWEKOM65cjs.forwardRef.call(void 0,
69
69
  function PopoverDisclosureArrow2(props) {
70
70
  const htmlProps = usePopoverDisclosureArrow(props);
71
- return _R2YVMKBRcjs.createElement.call(void 0, TagName, htmlProps);
71
+ return _AWEKOM65cjs.createElement.call(void 0, TagName, htmlProps);
72
72
  }
73
73
  );
74
74