@arcadeai/design-system 5.0.1 → 5.0.2

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 (329) hide show
  1. package/dist/{CompositeItem-BWqRobLN.js → CompositeItem-RsjiqT-t.js} +3 -3
  2. package/dist/{CompositeList-DJUJLDbx.js → CompositeList-BUPONQmB.js} +5 -5
  3. package/dist/CompositeRoot-B_7HJZA1.js +166 -0
  4. package/dist/DialogRoot-xodRxCJ6.js +9 -0
  5. package/dist/DialogTrigger-BRWKaMYv.js +370 -0
  6. package/dist/{DirectionContext-B4CbbM--.js → DirectionContext-OzWG1tsQ.js} +1 -1
  7. package/dist/{FieldItemContext-4qBxodsW.js → FieldItemContext-C6kLzkCC.js} +1 -1
  8. package/dist/{FloatingPortalLite-B1JyBlt0.js → FloatingPortalLite-e0IaokaG.js} +2 -2
  9. package/dist/{LabelableContext-Q1Z-xUI9.js → LabelableContext-C6DIbcnY.js} +34 -18
  10. package/dist/{Separator-CgntgfMd.js → Separator-CJ3Gn6wf.js} +2 -2
  11. package/dist/{StickToBottom-CU0d65a_.js → StickToBottom-Bh9VDiPm.js} +3 -3
  12. package/dist/Toggle-waFXW8db.js +74 -0
  13. package/dist/{ToolbarRootContext-DVNA8Vkb.js → ToolbarRootContext-CDm74ob9.js} +2 -2
  14. package/dist/accordion-DimUia61.js +314 -0
  15. package/dist/{addEventListener-B4Gs94GY.js → addEventListener-BlQH_qk1.js} +1 -1
  16. package/dist/{alert-dialog-tBMDYzJ3.js → alert-dialog-BiDZwtP2.js} +4 -4
  17. package/dist/{angular-html-BDzibLIk.js → angular-html-CmQQGj3Q.js} +2 -2
  18. package/dist/{angular-html-D85fwMJh.js → angular-html-DkEUN79G.js} +2 -2
  19. package/dist/{angular-ts-D81F0-9A.js → angular-ts-4H9Tgcds.js} +2 -2
  20. package/dist/{angular-ts-C3bnauCX.js → angular-ts-wkihi9GZ.js} +2 -2
  21. package/dist/{apl-92oxg4m4.js → apl-C_-_9Ip6.js} +5 -5
  22. package/dist/assets/icons/microsoft-power-bi.js +88 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/tokens.css +1 -1
  25. package/dist/assets/variables.css +1 -1
  26. package/dist/{astro-BmZ7vV4W.js → astro-DKp4HZqy.js} +5 -5
  27. package/dist/{astro-Up1TtKOj.js → astro-nonP8tBz.js} +4 -4
  28. package/dist/{avatar-BSYWkGGc.js → avatar-B-lhJ-Gz.js} +35 -36
  29. package/dist/{blade-CpVdu14g.js → blade-6azK5Bl7.js} +6 -6
  30. package/dist/{blade-CsxOO3tZ.js → blade-Bm1wiaIl.js} +7 -7
  31. package/dist/{button-BNOmhdpM.js → button-BdQxLUOB.js} +3 -3
  32. package/dist/{c-CoKjrVSd.js → c-BLhjukKD.js} +1 -1
  33. package/dist/{c-DtxJex1m.js → c-D23WKKVZ.js} +1 -1
  34. package/dist/{calendar-DizaWURn.js → calendar-Ctzadwv-.js} +98 -97
  35. package/dist/checkbox-CZViOGvt.js +273 -0
  36. package/dist/{clamp-DQAQAGkj.js → clamp-DV0oJUnl.js} +2 -2
  37. package/dist/{cobol-DW9I8MrZ.js → cobol-cEewS-ES.js} +2 -2
  38. package/dist/{coffee-IcWixSuh.js → coffee-BWa7CtjQ.js} +1 -1
  39. package/dist/{coffee-B9lToztK.js → coffee-QapU4XnI.js} +1 -1
  40. package/dist/{collapsible-Dt__KKUJ.js → collapsible-DlF1q_cg.js} +14 -14
  41. package/dist/{command-ChimIUHM.js → command-DC-ESQ0C.js} +25 -25
  42. package/dist/components/index.js +147 -146
  43. package/dist/components/ui/atoms/accordion.js +1 -1
  44. package/dist/components/ui/atoms/alert-dialog.js +1 -1
  45. package/dist/components/ui/atoms/avatar.js +1 -1
  46. package/dist/components/ui/atoms/badge.js +2 -2
  47. package/dist/components/ui/atoms/breadcrumb.js +2 -2
  48. package/dist/components/ui/atoms/button.js +1 -1
  49. package/dist/components/ui/atoms/calendar.js +1 -1
  50. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  51. package/dist/components/ui/atoms/chart.js +7 -7
  52. package/dist/components/ui/atoms/chat-container.js +1 -1
  53. package/dist/components/ui/atoms/checkbox.js +1 -1
  54. package/dist/components/ui/atoms/code-block.js +1 -1
  55. package/dist/components/ui/atoms/collapsible.js +1 -1
  56. package/dist/components/ui/atoms/command.js +1 -1
  57. package/dist/components/ui/atoms/compute-flow-paths.js +16 -16
  58. package/dist/components/ui/atoms/copy-button.js +1 -1
  59. package/dist/components/ui/atoms/dialog.js +3 -3
  60. package/dist/components/ui/atoms/dropdown-menu.js +1 -1
  61. package/dist/components/ui/atoms/form.d.ts +1 -1
  62. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  63. package/dist/components/ui/atoms/hover-card.js +1 -1
  64. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  65. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  66. package/dist/components/ui/atoms/icons/index.js +63 -62
  67. package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts +4 -0
  68. package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts.map +1 -0
  69. package/dist/components/ui/atoms/icons/microsoft-power-bi.js +82 -0
  70. package/dist/components/ui/atoms/index.js +104 -103
  71. package/dist/components/ui/atoms/input-group.js +2 -2
  72. package/dist/components/ui/atoms/input.js +1 -1
  73. package/dist/components/ui/atoms/json-highlight.d.ts +2 -2
  74. package/dist/components/ui/atoms/json-highlight.d.ts.map +1 -1
  75. package/dist/components/ui/atoms/markdown.js +1 -1
  76. package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
  77. package/dist/components/ui/atoms/popover.js +1 -1
  78. package/dist/components/ui/atoms/progress.js +1 -1
  79. package/dist/components/ui/atoms/radio-group.js +1 -1
  80. package/dist/components/ui/atoms/resizable.js +1 -1
  81. package/dist/components/ui/atoms/scroll-area.js +1 -1
  82. package/dist/components/ui/atoms/scroll-button.js +3 -3
  83. package/dist/components/ui/atoms/select.js +1 -1
  84. package/dist/components/ui/atoms/separator.js +1 -1
  85. package/dist/components/ui/atoms/sheet.js +3 -3
  86. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  87. package/dist/components/ui/atoms/sidebar.js +5 -5
  88. package/dist/components/ui/atoms/slider.js +1 -1
  89. package/dist/components/ui/atoms/sparkle-burst.d.ts.map +1 -1
  90. package/dist/components/ui/atoms/switch.js +1 -1
  91. package/dist/components/ui/atoms/tabs.js +1 -1
  92. package/dist/components/ui/atoms/toggle-group.js +1 -1
  93. package/dist/components/ui/atoms/toggle.js +1 -1
  94. package/dist/components/ui/atoms/tooltip.js +1 -1
  95. package/dist/components/ui/atoms/view-tools-control.js +1 -1
  96. package/dist/components/ui/atoms/virtualized-grid.js +1 -1
  97. package/dist/components/ui/blocks/demo.js +4 -4
  98. package/dist/components/ui/index.js +147 -146
  99. package/dist/components/ui/molecules/chat-history-item.js +1 -1
  100. package/dist/components/ui/molecules/client-secret-field.js +2 -2
  101. package/dist/components/ui/molecules/command-bar.js +1 -1
  102. package/dist/components/ui/molecules/confirm-popover.js +2 -2
  103. package/dist/components/ui/molecules/date-time-picker.js +4 -4
  104. package/dist/components/ui/molecules/index.js +1 -1
  105. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +4 -4
  106. package/dist/components/ui/molecules/mcp-server-picker/category-filter.js +1 -1
  107. package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +2 -2
  108. package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
  109. package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts.map +1 -1
  110. package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
  111. package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +1 -1
  112. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +2 -2
  113. package/dist/components/ui/molecules/mcp-server-picker/server-card.js +1 -1
  114. package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
  115. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.js +1 -1
  116. package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +1 -1
  117. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  118. package/dist/components/ui/molecules/message.js +3 -3
  119. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  120. package/dist/components/ui/molecules/prompt-input.js +1 -1
  121. package/dist/components/ui/molecules/requirement-badges.js +1 -1
  122. package/dist/components/ui/molecules/steps-progress.js +1 -1
  123. package/dist/components/ui/molecules/tool-call-accordion.d.ts.map +1 -1
  124. package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
  125. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  126. package/dist/components/ui/molecules/tool-card.js +3 -3
  127. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  128. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  129. package/dist/components/ui/molecules/user-nav.js +3 -3
  130. package/dist/components/ui/organisms/mcp-selection-summary-bar.js +1 -1
  131. package/dist/components/ui/pages/login-page.js +1 -1
  132. package/dist/composite-B-tEa-Zg.js +169 -0
  133. package/dist/{composite-BlDfbDkL.js → composite-COXvAbcT.js} +5 -5
  134. package/dist/constants-ouS7wtUt.js +5 -0
  135. package/dist/{cpp-BLc8IWxi.js → cpp-BBpqpcUG.js} +4 -4
  136. package/dist/{cpp-BEQCV3s5.js → cpp-CenmDznH.js} +3 -3
  137. package/dist/{createBaseUIEventDetails-ChcQXp54.js → createBaseUIEventDetails-C_dwdqj4.js} +3 -3
  138. package/dist/{crystal-Bpo57dB-.js → crystal-Cjt-cWZ3.js} +6 -6
  139. package/dist/{css-DSy_xl5Z.js → css-BT0UpMRG.js} +1 -1
  140. package/dist/{css-DcJEitGa.js → css-QsZubv6P.js} +1 -1
  141. package/dist/{dropdown-menu-dsg43mOw.js → dropdown-menu-CWWN1cXs.js} +515 -520
  142. package/dist/{edge-Crbn4Nhk.js → edge-nqxIbnup.js} +3 -3
  143. package/dist/{elixir-CIj8u1AY.js → elixir-IwV7soxp.js} +1 -1
  144. package/dist/{elm-CfYD1d_e.js → elm-Ogf1arfY.js} +1 -1
  145. package/dist/engine-ChH4dTze.js +6 -0
  146. package/dist/{erb-BJQo6_56.js → erb-BBpN-Ldx.js} +2 -2
  147. package/dist/{error-CAd3pM3X.js → error-C8bGkT0l.js} +1 -1
  148. package/dist/getPseudoElementBounds-D_dlkPnQ.js +345 -0
  149. package/dist/{git-rebase-DVA6p9-5.js → git-rebase-CqAmS_sI.js} +1 -1
  150. package/dist/{glimmer-js-DVJpm-CV.js → glimmer-js-C7DUODof.js} +4 -4
  151. package/dist/{glimmer-ts-kH8c2RJ9.js → glimmer-ts-DI4G9vW_.js} +4 -4
  152. package/dist/{glsl-Ckye8FrQ.js → glsl-CUfKtNbE.js} +2 -2
  153. package/dist/{glsl-7eSg02Gr.js → glsl-Cq85X97E.js} +2 -2
  154. package/dist/{graphql-CE7EXOgY.js → graphql-BCsR6dTa.js} +4 -4
  155. package/dist/{graphql-DEzE15R4.js → graphql-BsbTr8W_.js} +5 -5
  156. package/dist/{hack-o7fvIqt8.js → hack-bqdf8rRJ.js} +2 -2
  157. package/dist/{haml-BP5AnOwP.js → haml-BJXnS8Xp.js} +2 -2
  158. package/dist/{haml-C5GSorf3.js → haml-CWQgvV8s.js} +3 -3
  159. package/dist/{handlebars-Bhpj_d0s.js → handlebars-CKAb2CPX.js} +4 -4
  160. package/dist/{handlebars-BjC-t2fq.js → handlebars-DMloI5gH.js} +3 -3
  161. package/dist/{highlighted-body-OFNGDK62-BoSFtT5s.js → highlighted-body-OFNGDK62-BegvjYf8.js} +1 -1
  162. package/dist/{hover-card-z1GPavWa.js → hover-card-GELKDadU.js} +145 -157
  163. package/dist/{html-Ct25QrQu.js → html-CwG5RUst.js} +3 -3
  164. package/dist/{html-D4w9Dm28.js → html-DKmZbgBt.js} +3 -3
  165. package/dist/{html-derivative-Bj-VxhMx.js → html-derivative-B4jNkpq7.js} +1 -1
  166. package/dist/{html-derivative-DSKrIQn9.js → html-derivative-l83Yr46D.js} +1 -1
  167. package/dist/{http-BCk9QAjz.js → http-BFAjFcZG.js} +2 -2
  168. package/dist/{http-d-m0Mc7D.js → http-BhDBVFaP.js} +4 -4
  169. package/dist/{hurl-DWxVzahG.js → hurl-CjzrrhSW.js} +2 -2
  170. package/dist/{hurl-DfTnDfTu.js → hurl-DAdF3com.js} +2 -2
  171. package/dist/inertValue-BhczR0H5.js +7 -0
  172. package/dist/input-DZfZK6b1.js +91 -0
  173. package/dist/{isElementDisabled-Cibvw8mz.js → isElementDisabled-C1rd9-Ym.js} +1 -1
  174. package/dist/{java-CuIj5nvv.js → java-C_vVq3dw.js} +1 -1
  175. package/dist/{java-BKNJluE5.js → java-Ci5_G7qk.js} +1 -1
  176. package/dist/{javascript-C_3Wy_Gj.js → javascript-CV4d78q9.js} +1 -1
  177. package/dist/{javascript-Da2xmRTV.js → javascript-DIVSilR9.js} +1 -1
  178. package/dist/{jinja-DhkDj1Xi.js → jinja-Bs1LO7X2.js} +1 -1
  179. package/dist/{jinja-C8xQEEYN.js → jinja-Bwrf5aV2.js} +1 -1
  180. package/dist/{jison-CShmv6Fb.js → jison-C6eal2rW.js} +1 -1
  181. package/dist/{jison-CyKFq-6a.js → jison-Td0S7BdY.js} +1 -1
  182. package/dist/{json-Df3TJ3vS.js → json-BE9zjWXC.js} +1 -1
  183. package/dist/{jsx-CfQ2JFaq.js → jsx-Ba8CJaAV.js} +1 -1
  184. package/dist/{jsx-D0xGKDLn.js → jsx-DCFvZzWu.js} +1 -1
  185. package/dist/{julia-BMAFK3Gd.js → julia-Bm175Gof.js} +3 -3
  186. package/dist/{julia-BN-I8ZOK.js → julia-Bunkrw5e.js} +4 -4
  187. package/dist/{just-YBnaWXEe.js → just-1Pxadbli.js} +5 -5
  188. package/dist/{latex-C_OKc6Tr.js → latex-_x2UAXwa.js} +1 -1
  189. package/dist/lib/utils.d.ts.map +1 -1
  190. package/dist/{lib-BeKETz9d.js → lib-_PLIHaUp.js} +623 -633
  191. package/dist/{liquid-BK9PRBL0.js → liquid-kYbXB26r.js} +4 -4
  192. package/dist/{lua-BLio8ECy.js → lua-CaVsjDyr.js} +2 -2
  193. package/dist/main.js +153 -152
  194. package/dist/{markdown-D3ExE6yF.js → markdown-BzQfFDNF.js} +2608 -2632
  195. package/dist/{marko-Fde_uU3F.js → marko-B5ZroO9K.js} +3 -3
  196. package/dist/{marko-DYmCev7q.js → marko-D0_WatvF.js} +3 -3
  197. package/dist/{mdc-wawAspAJ.js → mdc-Bv4e6tBf.js} +2 -2
  198. package/dist/{mdc-D7QSJBKx.js → mdc-Dh_sTTi8.js} +1 -1
  199. package/dist/mermaid-GHXKKRXX-B2aW3mwU.js +3 -0
  200. package/dist/metadata/oauth-providers.d.ts.map +1 -1
  201. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  202. package/dist/metadata/toolkit-icons.js +95 -93
  203. package/dist/metadata/toolkits.d.ts.map +1 -1
  204. package/dist/metadata/toolkits.js +13 -0
  205. package/dist/{nginx-WcmIS9lz.js → nginx-DKKP1Jsz.js} +1 -1
  206. package/dist/{nim-C_JBe3PW.js → nim-BeBji0Kd.js} +6 -6
  207. package/dist/owner-CyZnQOKt.js +6 -0
  208. package/dist/{perl-DxzDgnFP.js → perl-d6FT-kBo.js} +5 -5
  209. package/dist/{php-h4fQX9du.js → php-5ErYmDX1.js} +5 -5
  210. package/dist/{php-BslXz14x.js → php-DrB8vlsq.js} +6 -6
  211. package/dist/popover-Cne_hQUh.js +489 -0
  212. package/dist/{popupStateMapping-PdIQcWEz.js → popupStateMapping-C8W76brO.js} +461 -419
  213. package/dist/{progress-TdXkokPe.js → progress-D71iUjvg.js} +14 -14
  214. package/dist/{pug-yS-UC2lD.js → pug-DyZNXutA.js} +3 -3
  215. package/dist/{pug-CxpNRXGa.js → pug-pOLqHjih.js} +3 -3
  216. package/dist/{qml-tenACNq4.js → qml-Dox9P6il.js} +1 -1
  217. package/dist/{r-DdU4yNZO.js → r-CqHzjuOx.js} +1 -1
  218. package/dist/radio-group-CTqA-p0w.js +333 -0
  219. package/dist/{razor-D5yYWriQ.js → razor-BJnzh0vV.js} +1 -1
  220. package/dist/{regexp-Dnzoo8L8.js → regexp-BHMFwNmq.js} +1 -1
  221. package/dist/{regexp-BusfBBwF.js → regexp-Cr4z7tOG.js} +1 -1
  222. package/dist/{resizable-DkYW5Uwh.js → resizable-7RrCRLzm.js} +25 -22
  223. package/dist/resolveAriaLabelledBy-ChNE6KfK.js +15 -0
  224. package/dist/{rst-C-dkSMvp.js → rst-BBCY8q7E.js} +6 -6
  225. package/dist/{ruby-7kZgYYwi.js → ruby-B3ETTR3m.js} +12 -12
  226. package/dist/{safePolygon-CscU2iWL.js → safePolygon-os2F06tc.js} +109 -105
  227. package/dist/{sas-DtHo0e4p.js → sas-DUv_h98D.js} +1 -1
  228. package/dist/scroll-area-C0KbhRES.js +588 -0
  229. package/dist/{scrollEdges-VoRBF4DB.js → scrollEdges-CHZpP0us.js} +2 -2
  230. package/dist/{scss-bso_k44A.js → scss-CkVrpEfa.js} +2 -2
  231. package/dist/{scss-DaY16nmX.js → scss-CvRlGoAc.js} +2 -2
  232. package/dist/select-RvAj5g6e.js +1360 -0
  233. package/dist/{serializeValue-kHY7UUsW.js → serializeValue-CRwtWeFH.js} +1 -1
  234. package/dist/{shadowDom-C-4Ejp9R.js → shadowDom-BACsbimN.js} +1 -1
  235. package/dist/shared-q5mxNamF.js +24 -0
  236. package/dist/{shellscript-BWxNrzSf.js → shellscript-CxvlkwLY.js} +1 -1
  237. package/dist/{shellsession-IETTXW5g.js → shellsession-CgzvDd-J.js} +1 -1
  238. package/dist/{shim-ieZ_MRlN.js → shim-BX-2V17R.js} +6 -7
  239. package/dist/slider-Bhn1ogwZ.js +827 -0
  240. package/dist/{soy-33Xu8yiH.js → soy-BsfKKN9o.js} +1 -1
  241. package/dist/{sql-B432xaB7.js → sql-BHUsfCgB.js} +1 -1
  242. package/dist/{sql-8d8R_FnS.js → sql-DG63OdWS.js} +1 -1
  243. package/dist/{stata-B5wF29_Y.js → stata--mbf8UFb.js} +1 -1
  244. package/dist/{store-Bdrhndby.js → store-C-KXBzZ0.js} +9 -9
  245. package/dist/{surrealql-DYHeSEsk.js → surrealql-DhODgRt6.js} +1 -1
  246. package/dist/{svelte-BiN7hc1M.js → svelte-C7x6u-8L.js} +3 -3
  247. package/dist/{svelte-wsTs0hbr.js → svelte-DycOh1Oc.js} +3 -3
  248. package/dist/{switch-CP9j-8px.js → switch-D8M0xvzp.js} +65 -65
  249. package/dist/{tabs-C7JA8G0W.js → tabs-ttkDuwww.js} +181 -181
  250. package/dist/{templ-DEwqY_Qt.js → templ-MSt5oh4r.js} +2 -2
  251. package/dist/{tex-Bi7DoImG.js → tex-CVgVV9NK.js} +1 -1
  252. package/dist/toggle-group-CL_MBwuU.js +96 -0
  253. package/dist/{tooltip-34vRSwJG.js → tooltip-ZIywOFGf.js} +210 -196
  254. package/dist/{ts-tags-BK3ScQNp.js → ts-tags-Ck_QbMh4.js} +7 -7
  255. package/dist/{ts-tags-DOmIyh9G.js → ts-tags-DQKwVH4e.js} +7 -7
  256. package/dist/{tsx-D2IQdrsN.js → tsx-BfWxCQIa.js} +1 -1
  257. package/dist/{tsx-oo1y-gXD.js → tsx-DH8_xVXA.js} +1 -1
  258. package/dist/{twig-DxRYLs_L.js → twig-nd7fXiJI.js} +5 -5
  259. package/dist/{typescript-CWrXW5hv.js → typescript-Btp0Nz7Q.js} +1 -1
  260. package/dist/{typescript-C40nYMtR.js → typescript-CT-dRuB-.js} +1 -1
  261. package/dist/{ui-BaLLCKkd.js → ui-CttBuHXi.js} +2 -2
  262. package/dist/{useAnchoredPopupScrollLock-C8wRjuy0.js → useAnchoredPopupScrollLock-a2b_Frjv.js} +4 -4
  263. package/dist/{useAnimationFrame-xwbX87TY.js → useAnimationFrame-jkCXMP_8.js} +3 -3
  264. package/dist/{useAriaLabelledBy-DKl6aNOD.js → useAriaLabelledBy-WyUZP7Yf.js} +3 -3
  265. package/dist/{useBaseUiId-DOm5ACje.js → useBaseUiId-voePHgyX.js} +3 -3
  266. package/dist/{useButton-AXffhTAZ.js → useButton-DjF6Owsn.js} +7 -7
  267. package/dist/{useCollapsiblePanel-B7ERXY1c.js → useCollapsiblePanel-B6XZh6zH.js} +27 -24
  268. package/dist/{useCompositeItem-DA_RDTEI.js → useCompositeItem-JoGwOIGJ.js} +6 -11
  269. package/dist/{useCompositeListItem-xM6vOR9-.js → useCompositeListItem-C8B8UyMD.js} +5 -5
  270. package/dist/{useControlled-ZBScq72P.js → useControlled-Bu1mahWG.js} +2 -2
  271. package/dist/useFocus-DwJfNYN6.js +98 -0
  272. package/dist/{useIsoLayoutEffect-CKOv1bV_.js → useIsoLayoutEffect-4LGv3HzC.js} +1 -1
  273. package/dist/{useLabelableId-Dgoo7-Ly.js → useLabelableId-CC2YaILf.js} +6 -6
  274. package/dist/{useOnMount-Dirf6DNj.js → useOnMount-Chlmm7JB.js} +1 -1
  275. package/dist/{useOpenChangeComplete-DjMFUwhi.js → useOpenChangeComplete-Bs6gnxd9.js} +8 -8
  276. package/dist/useOpenInteractionType-DQhvPqO3.js +611 -0
  277. package/dist/{usePositioner-D65mUNMo.js → usePositioner-DkeyI5Le.js} +152 -152
  278. package/dist/useRender-D_s7850Q.js +7 -0
  279. package/dist/{useRenderElement-CmuWsiNa.js → useRenderElement-BToElZ97.js} +13 -13
  280. package/dist/{useStableCallback-CqEVb76s.js → useStableCallback-CrM0Nb2q.js} +3 -3
  281. package/dist/{useTimeout-B1x6NSZb.js → useTimeout-B0afjWAz.js} +3 -3
  282. package/dist/useTriggerFocusGuards-Qi8iK-AK.js +37 -0
  283. package/dist/{useValueAsRef-CCU3eUYq.js → useValueAsRef-CfO5zn2c.js} +3 -3
  284. package/dist/useValueChanged-26zHg3aX.js +15 -0
  285. package/dist/valueToPercent-BBx6BqbS.js +29 -0
  286. package/dist/{virtualized-grid-BQNJg029.js → virtualized-grid-DLNjqTNm.js} +16 -7
  287. package/dist/{visuallyHidden-CEAV1xeA.js → visuallyHidden-Cq5CW65k.js} +1 -1
  288. package/dist/{vue-COUaRKLt.js → vue-BMjk7Gaz.js} +5 -5
  289. package/dist/{vue-BEPn_TF_.js → vue-BoZyu9mR.js} +6 -6
  290. package/dist/{vue-html-CEiB3REn.js → vue-html-Dyr-sgcn.js} +1 -1
  291. package/dist/{vue-html-DjKFzwWo.js → vue-html-Fc3KYSrO.js} +1 -1
  292. package/dist/{vue-vine-D0Lpd94a.js → vue-vine-B-mxBKB2.js} +3 -3
  293. package/dist/{vue-vine-D6cSZo1M.js → vue-vine-BDclOuCR.js} +3 -3
  294. package/dist/{web-DF40pCMx.js → web-CqfgwsJY.js} +43 -43
  295. package/dist/{xml-DRTU1nx4.js → xml-CSo_-m7_.js} +2 -2
  296. package/dist/{xml-DL5p3-50.js → xml-tkp62giI.js} +2 -2
  297. package/dist/{xsl-3eu75y43.js → xsl-Dmc5gKQo.js} +1 -1
  298. package/dist/{yaml-6pzV2NiB.js → yaml-9hw4TgNw.js} +1 -1
  299. package/package.json +30 -30
  300. package/dist/CompositeRoot-BIh8l7ys.js +0 -179
  301. package/dist/DialogRoot-eVsH835b.js +0 -9
  302. package/dist/DialogTrigger-BuKadcdL.js +0 -379
  303. package/dist/FormContext-4NSsO4w6.js +0 -17
  304. package/dist/Toggle-CyMSF-Z7.js +0 -70
  305. package/dist/accordion-D-o5VBR2.js +0 -374
  306. package/dist/checkbox-CfF6tabe.js +0 -270
  307. package/dist/composite-HOje5ugx.js +0 -276
  308. package/dist/constants-VB9bsA8p.js +0 -4
  309. package/dist/detectBrowser-FBYSu3xM.js +0 -32
  310. package/dist/event-DWcDp5kt.js +0 -24
  311. package/dist/getPseudoElementBounds-DarjR4tH.js +0 -355
  312. package/dist/inertValue-C36grUTu.js +0 -7
  313. package/dist/input-CSc-AfAa.js +0 -91
  314. package/dist/mermaid-GHXKKRXX-B8Qglwis.js +0 -3
  315. package/dist/owner-BrzQrszh.js +0 -6
  316. package/dist/popover-CXSOUeVQ.js +0 -501
  317. package/dist/radio-group-Cc5ftdVj.js +0 -333
  318. package/dist/resolveAriaLabelledBy-DR9UHvi-.js +0 -10
  319. package/dist/scroll-area-53KPfESS.js +0 -559
  320. package/dist/select-CPTT__cT.js +0 -1363
  321. package/dist/slider-CN3uEkeD.js +0 -822
  322. package/dist/toggle-group-CDYMBO0F.js +0 -87
  323. package/dist/useFocus-DzHCrvH6.js +0 -97
  324. package/dist/useOpenInteractionType-D-ymktmc.js +0 -612
  325. package/dist/useRender-B4Oazk_w.js +0 -7
  326. package/dist/useTriggerFocusGuards-D1QlFlDK.js +0 -37
  327. package/dist/useValueChanged-j5e75XB6.js +0 -15
  328. package/dist/valueToPercent-9aZaNeTG.js +0 -24
  329. /package/dist/{chunk-Dqa2HsxW.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
@@ -0,0 +1,611 @@
1
+ "use client";
2
+ import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
3
+ import { l as t, o as n, s as r } from "./useRenderElement-BToElZ97.js";
4
+ import { t as i } from "./useStableCallback-CrM0Nb2q.js";
5
+ import { S as a, c as o, t as s } from "./createBaseUIEventDetails-C_dwdqj4.js";
6
+ import { n as c, t as l } from "./useAnimationFrame-jkCXMP_8.js";
7
+ import { r as u } from "./useOpenChangeComplete-Bs6gnxd9.js";
8
+ import { a as d, f, g as p, h as m, l as h } from "./floating-ui.utils.dom-5U5b4xPf.js";
9
+ import { t as g } from "./addEventListener-BlQH_qk1.js";
10
+ import { t as _ } from "./useValueAsRef-CfO5zn2c.js";
11
+ import { t as v } from "./owner-CyZnQOKt.js";
12
+ import { $ as y, G as b, H as ee, K as te, L as ne, N as re, Q as ie, U as ae, W as oe, X as se, Z as ce, et as le, q as ue } from "./popupStateMapping-C8W76brO.js";
13
+ import { A as de, M as fe, O as x, P as pe, i as me, j as he } from "./composite-B-tEa-Zg.js";
14
+ import { t as ge } from "./engine-ChH4dTze.js";
15
+ import { n as _e, t as S } from "./useTimeout-B0afjWAz.js";
16
+ import { n as C, r as w, t as T } from "./shadowDom-BACsbimN.js";
17
+ import { c as ve, l as ye, r as be } from "./shim-BX-2V17R.js";
18
+ import { t as E } from "./useValueChanged-26zHg3aX.js";
19
+ import * as D from "react";
20
+ import { jsx as xe, jsxs as Se } from "react/jsx-runtime";
21
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/useScrollLock.mjs
22
+ var Ce = {}, we = {}, Te = "";
23
+ function O(e) {
24
+ if (typeof document > "u") return !1;
25
+ let t = v(e);
26
+ return h(t).innerWidth - t.documentElement.clientWidth > 0;
27
+ }
28
+ function k(e) {
29
+ if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
30
+ let t = v(e), n = t.documentElement, r = t.body, i = m(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
31
+ n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
32
+ let s = i.offsetWidth;
33
+ i.style.overflowY = "hidden";
34
+ let c = i.offsetWidth;
35
+ return i.style.overflowY = a, n.style.scrollbarGutter = o, s === c;
36
+ }
37
+ function A(e) {
38
+ let t = v(e), n = t.documentElement, r = t.body, i = m(n) ? n : r, a = {
39
+ overflowY: i.style.overflowY,
40
+ overflowX: i.style.overflowX
41
+ };
42
+ return Object.assign(i.style, {
43
+ overflowY: "hidden",
44
+ overflowX: "hidden"
45
+ }), () => {
46
+ Object.assign(i.style, a);
47
+ };
48
+ }
49
+ function j(e) {
50
+ let t = v(e), n = t.documentElement, r = t.body, i = h(n), a = 0, o = 0, s = !1, c = l.create();
51
+ if (ge && (i.visualViewport?.scale ?? 1) !== 1) return () => {};
52
+ function u() {
53
+ let t = i.getComputedStyle(n), c = i.getComputedStyle(r), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
54
+ a = n.scrollTop, o = n.scrollLeft, Ce = {
55
+ scrollbarGutter: n.style.scrollbarGutter,
56
+ overflowY: n.style.overflowY,
57
+ overflowX: n.style.overflowX
58
+ }, Te = n.style.scrollBehavior, we = {
59
+ position: r.style.position,
60
+ height: r.style.height,
61
+ width: r.style.width,
62
+ boxSizing: r.style.boxSizing,
63
+ overflowY: r.style.overflowY,
64
+ overflowX: r.style.overflowX,
65
+ scrollBehavior: r.style.scrollBehavior
66
+ };
67
+ let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || c.overflowY === "scroll", p = t.overflowX === "scroll" || c.overflowX === "scroll", h = Math.max(0, i.innerWidth - r.clientWidth), g = Math.max(0, i.innerHeight - r.clientHeight), _ = parseFloat(c.marginTop) + parseFloat(c.marginBottom), v = parseFloat(c.marginLeft) + parseFloat(c.marginRight), y = m(n) ? n : r;
68
+ if (s = k(e), s) {
69
+ n.style.scrollbarGutter = l, y.style.overflowY = "hidden", y.style.overflowX = "hidden";
70
+ return;
71
+ }
72
+ Object.assign(n.style, {
73
+ scrollbarGutter: l,
74
+ overflowY: "hidden",
75
+ overflowX: "hidden"
76
+ }), (u || f) && (n.style.overflowY = "scroll"), (d || p) && (n.style.overflowX = "scroll"), Object.assign(r.style, {
77
+ position: "relative",
78
+ height: _ || g ? `calc(100dvh - ${_ + g}px)` : "100dvh",
79
+ width: v || h ? `calc(100vw - ${v + h}px)` : "100vw",
80
+ boxSizing: "border-box",
81
+ overflow: "hidden",
82
+ scrollBehavior: "unset"
83
+ }), r.scrollTop = a, r.scrollLeft = o, n.setAttribute("data-base-ui-scroll-locked", ""), n.style.scrollBehavior = "unset";
84
+ }
85
+ function d() {
86
+ Object.assign(n.style, Ce), Object.assign(r.style, we), s || (n.scrollTop = a, n.scrollLeft = o, n.removeAttribute("data-base-ui-scroll-locked"), n.style.scrollBehavior = Te);
87
+ }
88
+ function f() {
89
+ d(), c.request(u);
90
+ }
91
+ u();
92
+ let p = g(i, "resize", f);
93
+ return () => {
94
+ c.cancel(), d(), typeof i.removeEventListener == "function" && p();
95
+ };
96
+ }
97
+ var M = new class {
98
+ lockCount = 0;
99
+ restore = null;
100
+ timeoutLock = S.create();
101
+ timeoutUnlock = S.create();
102
+ acquire(e) {
103
+ return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
104
+ }
105
+ release = () => {
106
+ --this.lockCount, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
107
+ };
108
+ unlock = () => {
109
+ this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
110
+ };
111
+ lock(e) {
112
+ if (this.lockCount === 0 || this.restore !== null) return;
113
+ let t = v(e).documentElement, n = h(t).getComputedStyle(t).overflowY;
114
+ if (n === "hidden" || n === "clip") {
115
+ this.restore = r;
116
+ return;
117
+ }
118
+ let i = pe || !O(e);
119
+ this.restore = i ? A(e) : j(e);
120
+ }
121
+ }();
122
+ function N(t = !0, n = null) {
123
+ e(() => {
124
+ if (t) return M.acquire(n);
125
+ }, [t, n]);
126
+ }
127
+ //#endregion
128
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
129
+ var P = 0;
130
+ function F(e, t = {}) {
131
+ let { preventScroll: n = !1, sync: i = !1, shouldFocus: a } = t;
132
+ cancelAnimationFrame(P);
133
+ function o() {
134
+ a && !a() || e?.focus({ preventScroll: n });
135
+ }
136
+ if (i) return o(), r;
137
+ let s = requestAnimationFrame(o);
138
+ return P = s, () => {
139
+ P === s && (cancelAnimationFrame(s), P = 0);
140
+ };
141
+ }
142
+ //#endregion
143
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs
144
+ var I = {
145
+ inert: /* @__PURE__ */ new WeakMap(),
146
+ "aria-hidden": /* @__PURE__ */ new WeakMap()
147
+ }, L = "data-base-ui-inert", R = {
148
+ inert: /* @__PURE__ */ new WeakSet(),
149
+ "aria-hidden": /* @__PURE__ */ new WeakSet()
150
+ }, z = /* @__PURE__ */ new WeakMap(), B = 0;
151
+ function Ee(e) {
152
+ return R[e];
153
+ }
154
+ function V(e) {
155
+ return e ? p(e) ? e.host : V(e.parentNode) : null;
156
+ }
157
+ var H = (e, t) => t.map((t) => {
158
+ if (e.contains(t)) return t;
159
+ let n = V(t);
160
+ return e.contains(n) ? n : null;
161
+ }).filter((e) => e != null), U = (e) => {
162
+ let t = /* @__PURE__ */ new Set();
163
+ return e.forEach((e) => {
164
+ let n = e;
165
+ for (; n && !t.has(n);) t.add(n), n = n.parentNode;
166
+ }), t;
167
+ }, W = (e, t, n) => {
168
+ let r = [], i = (e) => {
169
+ !e || n.has(e) || Array.from(e.children).forEach((e) => {
170
+ d(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
171
+ });
172
+ };
173
+ return i(e), r;
174
+ };
175
+ function G(e, t, n, r, { mark: i = !0 }) {
176
+ let a = null;
177
+ r ? a = "inert" : n && (a = "aria-hidden");
178
+ let o = null, s = null, c = H(t, e), l = i ? W(t, U(c), new Set(c)) : [], u = [], d = [];
179
+ if (a) {
180
+ let e = I[a], n = Ee(a);
181
+ s = n, o = e;
182
+ let r = H(t, Array.from(t.querySelectorAll("[aria-live]"))), i = c.concat(r);
183
+ W(t, U(i), new Set(i)).forEach((t) => {
184
+ let r = t.getAttribute(a), i = r !== null && r !== "false", o = (e.get(t) || 0) + 1;
185
+ e.set(t, o), u.push(t), o === 1 && i && n.add(t), i || t.setAttribute(a, a === "inert" ? "" : "true");
186
+ });
187
+ }
188
+ return i && l.forEach((e) => {
189
+ let t = (z.get(e) || 0) + 1;
190
+ z.set(e, t), d.push(e), t === 1 && e.setAttribute(L, "");
191
+ }), B += 1, () => {
192
+ o && u.forEach((e) => {
193
+ let t = (o.get(e) || 0) - 1;
194
+ o.set(e, t), t || (!s?.has(e) && a && e.removeAttribute(a), s?.delete(e));
195
+ }), i && d.forEach((e) => {
196
+ let t = (z.get(e) || 0) - 1;
197
+ z.set(e, t), t || e.removeAttribute(L);
198
+ }), --B, B || (I.inert = /* @__PURE__ */ new WeakMap(), I["aria-hidden"] = /* @__PURE__ */ new WeakMap(), R.inert = /* @__PURE__ */ new WeakSet(), R["aria-hidden"] = /* @__PURE__ */ new WeakSet(), z = /* @__PURE__ */ new WeakMap());
199
+ };
200
+ }
201
+ function De(e, t = {}) {
202
+ let { ariaHidden: n = !1, inert: r = !1, mark: i = !0 } = t, a = v(e[0]).body;
203
+ return G(e, a, n, r, { mark: i });
204
+ }
205
+ //#endregion
206
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
207
+ function Oe(e, t) {
208
+ let n = h(w(e));
209
+ return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
210
+ }
211
+ var ke = 20, K = [];
212
+ function Ae() {
213
+ K = K.filter((e) => e.deref()?.isConnected);
214
+ }
215
+ function je(e) {
216
+ Ae(), e && d(e) !== "body" && (K.push(new WeakRef(e)), K.length > ke && (K = K.slice(-20)));
217
+ }
218
+ function Me() {
219
+ return Ae(), K[K.length - 1]?.deref();
220
+ }
221
+ function Ne(e) {
222
+ return e ? ce(e) ? e : ie(e)[0] || e : null;
223
+ }
224
+ function Pe(e) {
225
+ if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !e.getAttribute("role")?.includes("dialog")) return;
226
+ let t = b(e).filter((e) => {
227
+ let t = e.getAttribute("data-tabindex") || "";
228
+ return ce(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
229
+ }), n = e.getAttribute("tabindex");
230
+ t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
231
+ }
232
+ function q(n) {
233
+ let { context: r, children: a, disabled: l = !1, initialFocus: p = !0, returnFocus: m = !0, restoreFocus: h = !1, modal: b = !0, closeOnFocusOut: x = !0, openInteractionType: pe = "", nextFocusableElement: S, previousFocusableElement: E, beforeContentFocusGuardRef: Ce, externalTree: we, getInsideElements: Te } = n, O = "rootStore" in r ? r.rootStore : r, k = O.useState("open"), A = O.useState("domReferenceElement"), j = O.useState("floatingElement"), { events: M, dataRef: N } = O.context, P = i(() => N.current.floatingContext?.nodeId), I = p === !1, L = ve(A) && I, R = _(p), z = _(m), B = _(pe), Ee = _(k), V = re(we), H = ne(), U = D.useRef(!1), W = D.useRef(!1), G = D.useRef(!1), ke = D.useRef(null), K = D.useRef(""), q = D.useRef(""), J = D.useRef(null), Y = D.useRef(null), Fe = t(J, Ce, H?.beforeInsideRef), Ie = t(Y, H?.afterInsideRef), Le = _e(), X = _e(), Re = c(), ze = H != null, Z = be(j), Q = i((e = Z) => e ? ie(e) : []), $ = i(() => Te?.().filter((e) => e != null) ?? []);
234
+ D.useEffect(() => {
235
+ if (l || !b) return;
236
+ function e(e) {
237
+ e.key === "Tab" && C(Z, T(v(Z))) && Q().length === 0 && !L && fe(e);
238
+ }
239
+ return g(v(Z), "keydown", e);
240
+ }, [
241
+ l,
242
+ Z,
243
+ b,
244
+ L,
245
+ Q
246
+ ]), D.useEffect(() => {
247
+ if (l || !k) return;
248
+ let e = v(Z);
249
+ function t() {
250
+ G.current = !1;
251
+ }
252
+ function n(e) {
253
+ let t = w(e), n = $(), r = C(j, t) || C(A, t) || C(H?.portalNode, t) || n.some((e) => e === t || C(e, t));
254
+ G.current = !r, q.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (W.current = !0, X.start(0, () => {
255
+ W.current = !1;
256
+ }));
257
+ }
258
+ function r() {
259
+ q.current = "keyboard";
260
+ }
261
+ return le(g(e, "pointerdown", n, !0), g(e, "pointerup", t, !0), g(e, "pointercancel", t, !0), g(e, "keydown", r, !0), t);
262
+ }, [
263
+ l,
264
+ j,
265
+ A,
266
+ Z,
267
+ k,
268
+ H,
269
+ X,
270
+ $
271
+ ]), D.useEffect(() => {
272
+ if (l || !x) return;
273
+ let e = v(Z);
274
+ function t() {
275
+ W.current = !0, X.start(0, () => {
276
+ W.current = !1;
277
+ });
278
+ }
279
+ function n(e) {
280
+ let t = w(e);
281
+ ce(t) && (ke.current = t);
282
+ }
283
+ function r(t) {
284
+ let n = t.relatedTarget, r = t.currentTarget, i = w(t);
285
+ b && n == null && i != null && C(j, i) && je(i), queueMicrotask(() => {
286
+ let a = P(), c = O.context.triggerElements, l = $(), d = n?.hasAttribute(ee("focus-guard")) && [
287
+ J.current,
288
+ Y.current,
289
+ H?.beforeInsideRef.current,
290
+ H?.afterInsideRef.current,
291
+ H?.beforeOutsideRef.current,
292
+ H?.afterOutsideRef.current,
293
+ u(E),
294
+ u(S)
295
+ ].includes(n), p = !(C(A, n) || C(j, n) || C(n, j) || C(H?.portalNode, n) || l.some((e) => e === n || C(e, n)) || n != null && c.hasElement(n) || c.hasMatchingElement((e) => C(e, n)) || d || V && (oe(V.nodesRef.current, a).find((e) => C(e.context?.elements.floating, n) || C(e.context?.elements.domReference, n)) || ae(V.nodesRef.current, a).find((e) => [e.context?.elements.floating, be(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
296
+ if (r === A && Z && Pe(Z), h && r !== A && !me(i) && T(e) === e.body) {
297
+ if (f(Z) && (Z.focus(), h === "popup")) {
298
+ Re.request(() => {
299
+ Z.focus();
300
+ });
301
+ return;
302
+ }
303
+ let e = Q(), t = ke.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || Z;
304
+ f(n) && n.focus();
305
+ }
306
+ if (N.current.insideReactTree) {
307
+ N.current.insideReactTree = !1;
308
+ return;
309
+ }
310
+ (L || !b) && n && p && !W.current && (L || n !== Me()) && (U.current = !0, O.setOpen(!1, s(o, t)));
311
+ });
312
+ }
313
+ function i() {
314
+ G.current || (N.current.insideReactTree = !0, Le.start(0, () => {
315
+ N.current.insideReactTree = !1;
316
+ }));
317
+ }
318
+ let a = f(A) ? A : null;
319
+ if (!(!j && !a)) return le(a && g(a, "focusout", r), a && g(a, "pointerdown", t), j && g(j, "focusin", n), j && g(j, "focusout", r), j && H && g(j, "focusout", i, !0));
320
+ }, [
321
+ l,
322
+ A,
323
+ j,
324
+ Z,
325
+ b,
326
+ V,
327
+ H,
328
+ O,
329
+ x,
330
+ h,
331
+ Q,
332
+ L,
333
+ P,
334
+ N,
335
+ Le,
336
+ X,
337
+ Re,
338
+ S,
339
+ E,
340
+ $
341
+ ]), D.useEffect(() => {
342
+ if (l || !j || !k) return;
343
+ let e = Array.from(H?.portalNode?.querySelectorAll(`[${ee("portal")}]`) || []), t = (V ? ae(V.nodesRef.current, P()) : []).find((e) => ve(e.context?.elements.domReference || null))?.context?.elements.domReference, n = De([
344
+ j,
345
+ ...e,
346
+ J.current,
347
+ Y.current,
348
+ H?.beforeOutsideRef.current,
349
+ H?.afterOutsideRef.current,
350
+ ...$(),
351
+ t,
352
+ u(E),
353
+ u(S),
354
+ L ? A : null
355
+ ].filter((e) => e != null), {
356
+ ariaHidden: b || L,
357
+ mark: !1
358
+ }), r = De([j, ...e].filter((e) => e != null));
359
+ return () => {
360
+ r(), n();
361
+ };
362
+ }, [
363
+ k,
364
+ l,
365
+ A,
366
+ j,
367
+ b,
368
+ H,
369
+ L,
370
+ V,
371
+ P,
372
+ S,
373
+ E,
374
+ $
375
+ ]), e(() => {
376
+ if (!k || l || !f(Z)) return;
377
+ let e = v(Z), t = T(e);
378
+ queueMicrotask(() => {
379
+ let n = R.current, r = typeof n == "function" ? n(B.current || "") : n;
380
+ if (r === void 0 || r === !1 || C(Z, t)) return;
381
+ let i = null, a = () => (i ??= Q(Z), i[0] || Z), o;
382
+ o = r === !0 || r === null ? a() : u(r), o ||= a();
383
+ let s = C(Z, T(e));
384
+ F(o, {
385
+ preventScroll: o === Z,
386
+ shouldFocus() {
387
+ if (!Ee.current) return !1;
388
+ if (s) return !0;
389
+ let t = T(e);
390
+ return !(t !== o && C(Z, t));
391
+ }
392
+ });
393
+ });
394
+ }, [
395
+ l,
396
+ k,
397
+ Z,
398
+ Q,
399
+ R,
400
+ B,
401
+ Ee
402
+ ]), e(() => {
403
+ if (l || !Z) return;
404
+ let e = v(Z), t = T(e), n = B.current == null;
405
+ je(t);
406
+ function r(e) {
407
+ if (e.open || (K.current = Oe(e.nativeEvent, q.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (U.current = !0), e.reason === "outside-press") if (e.nested) U.current = !1;
408
+ else if (de(e.nativeEvent) || he(e.nativeEvent)) U.current = !1;
409
+ else {
410
+ let e = !1;
411
+ v(Z).createElement("div").focus({ get preventScroll() {
412
+ return e = !0, !1;
413
+ } }), e ? U.current = !1 : U.current = !0;
414
+ }
415
+ }
416
+ M.on("openchange", r);
417
+ function i() {
418
+ let e = z.current, r = typeof e == "function" ? e(K.current) : e;
419
+ if (r === void 0 || r === !1) return null;
420
+ r === null && (r = !0);
421
+ let i = A?.isConnected ? A : null, a = t?.isConnected && d(t) !== "body" ? t : null, o = n ? a || i : i || a;
422
+ return o ||= Me() || null, typeof r == "boolean" ? o : u(r) || o || null;
423
+ }
424
+ return () => {
425
+ M.off("openchange", r);
426
+ let t = T(e), n = $(), a = C(j, t) || n.some((e) => e === t || C(e, t)) || V && oe(V.nodesRef.current, P(), !1).some((e) => C(e.context?.elements.floating, t)), o = z.current, s = i();
427
+ queueMicrotask(() => {
428
+ let n = Ne(s), r = typeof o != "boolean";
429
+ o && !U.current && f(n) && (!(!r && n !== t && t !== e.body) || a) && n.focus({ preventScroll: !0 }), U.current = !1;
430
+ });
431
+ };
432
+ }, [
433
+ l,
434
+ j,
435
+ Z,
436
+ z,
437
+ B,
438
+ M,
439
+ V,
440
+ A,
441
+ P,
442
+ $
443
+ ]), e(() => {
444
+ if (!ge || k || !j) return;
445
+ let e = T(v(j));
446
+ !f(e) || !ye(e) || C(j, e) && e.blur();
447
+ }, [k, j]), e(() => {
448
+ if (!(l || !H)) return H.setFocusManagerState({
449
+ modal: b,
450
+ closeOnFocusOut: x,
451
+ open: k,
452
+ onOpenChange: O.setOpen,
453
+ domReference: A
454
+ }), () => {
455
+ H.setFocusManagerState(null);
456
+ };
457
+ }, [
458
+ l,
459
+ H,
460
+ b,
461
+ k,
462
+ O,
463
+ x,
464
+ A
465
+ ]), e(() => {
466
+ if (!(l || !Z)) return Pe(Z), () => {
467
+ queueMicrotask(Ae);
468
+ };
469
+ }, [l, Z]);
470
+ let Be = !l && (b ? !L : !0) && (ze || b);
471
+ return /*#__PURE__*/ Se(D.Fragment, { children: [
472
+ Be && /*#__PURE__*/ xe(y, {
473
+ "data-type": "inside",
474
+ ref: Fe,
475
+ onFocus: (e) => {
476
+ if (b) {
477
+ let e = Q();
478
+ F(e[e.length - 1]);
479
+ } else H?.portalNode && (U.current = !1, se(e, H.portalNode) ? te(A)?.focus() : u(E ?? H.beforeOutsideRef)?.focus());
480
+ }
481
+ }),
482
+ a,
483
+ Be && /*#__PURE__*/ xe(y, {
484
+ "data-type": "inside",
485
+ ref: Ie,
486
+ onFocus: (e) => {
487
+ b ? F(Q()[0]) : H?.portalNode && (x && (U.current = !0), se(e, H.portalNode) ? ue(A)?.focus() : u(S ?? H.afterOutsideRef)?.focus());
488
+ }
489
+ })
490
+ ] });
491
+ }
492
+ //#endregion
493
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useClick.mjs
494
+ function J(e, t = {}) {
495
+ let { enabled: r = !0, event: i = "click", toggle: o = !0, ignoreMouse: l = !1, stickIfOpen: u = !0, touchOpenDelay: d = 0, reason: f = a } = t, p = "rootStore" in e ? e.rootStore : e, m = p.context.dataRef, h = D.useRef(void 0), g = c(), _ = _e(), v = D.useMemo(() => {
496
+ function e(e, t, n, r) {
497
+ let i = s(f, t, n);
498
+ e && r === "touch" && d > 0 ? _.start(d, () => {
499
+ p.setOpen(!0, i);
500
+ }) : p.setOpen(e, i);
501
+ }
502
+ function t(e, t, n) {
503
+ let r = m.current.openEvent, i = p.select("domReferenceElement") !== t;
504
+ return e && i || !e || !o ? !0 : r && u ? !n(r.type) : !1;
505
+ }
506
+ return {
507
+ onPointerDown(e) {
508
+ h.current = e.pointerType;
509
+ },
510
+ onMouseDown(n) {
511
+ let r = h.current, a = n.nativeEvent, o = p.select("open");
512
+ if (n.button !== 0 || i === "click" || x(r, !0) && l) return;
513
+ let s = t(o, n.currentTarget, (e) => e === "click" || e === "mousedown"), c = w(a);
514
+ if (ye(c)) {
515
+ e(s, a, c, r);
516
+ return;
517
+ }
518
+ let u = n.currentTarget;
519
+ g.request(() => {
520
+ e(s, a, u, r);
521
+ });
522
+ },
523
+ onClick(n) {
524
+ if (i === "mousedown-only") return;
525
+ let r = h.current;
526
+ if (i === "mousedown" && r) {
527
+ h.current = void 0;
528
+ return;
529
+ }
530
+ x(r, !0) && l || e(t(p.select("open"), n.currentTarget, (e) => e === "click" || e === "mousedown" || e === "keydown" || e === "keyup"), n.nativeEvent, n.currentTarget, r);
531
+ },
532
+ onKeyDown() {
533
+ h.current = void 0;
534
+ }
535
+ };
536
+ }, [
537
+ m,
538
+ i,
539
+ l,
540
+ f,
541
+ p,
542
+ u,
543
+ o,
544
+ g,
545
+ _,
546
+ d
547
+ ]);
548
+ return D.useMemo(() => r ? { reference: v } : n, [r, v]);
549
+ }
550
+ //#endregion
551
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/InternalBackdrop.mjs
552
+ var Y = /*#__PURE__*/ D.forwardRef(function(e, t) {
553
+ let { cutout: n, ...r } = e, i;
554
+ if (n) {
555
+ let e = n.getBoundingClientRect();
556
+ i = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`;
557
+ }
558
+ return /*#__PURE__*/ xe("div", {
559
+ ref: t,
560
+ role: "presentation",
561
+ "data-base-ui-inert": "",
562
+ ...r,
563
+ style: {
564
+ position: "fixed",
565
+ inset: 0,
566
+ userSelect: "none",
567
+ WebkitUserSelect: "none",
568
+ clipPath: i
569
+ }
570
+ });
571
+ });
572
+ process.env.NODE_ENV !== "production" && (Y.displayName = "InternalBackdrop");
573
+ //#endregion
574
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/useEnhancedClickHandler.mjs
575
+ function Fe(e) {
576
+ let t = D.useRef(""), n = D.useCallback((n) => {
577
+ n.defaultPrevented || (t.current = n.pointerType, e(n, n.pointerType));
578
+ }, [e]);
579
+ return {
580
+ onClick: D.useCallback((n) => {
581
+ if (n.detail === 0) {
582
+ e(n, "keyboard");
583
+ return;
584
+ }
585
+ "pointerType" in n ? e(n, n.pointerType) : e(n, t.current), t.current = "";
586
+ }, [e]),
587
+ onPointerDown: n
588
+ };
589
+ }
590
+ //#endregion
591
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/useOpenInteractionType.mjs
592
+ function Ie(e, t) {
593
+ let { onClick: n, onPointerDown: r } = Fe(i((n, r) => {
594
+ (typeof e == "function" ? e() : e) || t(r || (pe ? "touch" : ""));
595
+ }));
596
+ return D.useMemo(() => ({
597
+ onClick: n,
598
+ onPointerDown: r
599
+ }), [n, r]);
600
+ }
601
+ function Le(e) {
602
+ let [t, n] = D.useState(null), r = Ie(e, n);
603
+ return E(e, (t) => {
604
+ t && !e && n(null);
605
+ }), D.useMemo(() => ({
606
+ openMethod: t,
607
+ triggerProps: r
608
+ }), [t, r]);
609
+ }
610
+ //#endregion
611
+ export { q as a, J as i, Ie as n, F as o, Y as r, N as s, Le as t };