@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
@@ -1,276 +0,0 @@
1
- import { t as e } from "./floating-ui.utils.dom-5U5b4xPf.js";
2
- import "./constants-VB9bsA8p.js";
3
- import { o as t } from "./event-DWcDp5kt.js";
4
- //#region ../../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
5
- var n = [
6
- "top",
7
- "right",
8
- "bottom",
9
- "left"
10
- ], r = Math.min, i = Math.max, a = Math.round, o = Math.floor, s = (e) => ({
11
- x: e,
12
- y: e
13
- }), c = {
14
- left: "right",
15
- right: "left",
16
- bottom: "top",
17
- top: "bottom"
18
- };
19
- function l(e, t, n) {
20
- return i(e, r(t, n));
21
- }
22
- function u(e, t) {
23
- return typeof e == "function" ? e(t) : e;
24
- }
25
- function d(e) {
26
- return e.split("-")[0];
27
- }
28
- function f(e) {
29
- return e.split("-")[1];
30
- }
31
- function p(e) {
32
- return e === "x" ? "y" : "x";
33
- }
34
- function m(e) {
35
- return e === "y" ? "height" : "width";
36
- }
37
- function h(e) {
38
- let t = e[0];
39
- return t === "t" || t === "b" ? "y" : "x";
40
- }
41
- function g(e) {
42
- return p(h(e));
43
- }
44
- function _(e, t, n) {
45
- n === void 0 && (n = !1);
46
- let r = f(e), i = g(e), a = m(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
47
- return t.reference[a] > t.floating[a] && (o = E(o)), [o, E(o)];
48
- }
49
- function v(e) {
50
- let t = E(e);
51
- return [
52
- y(e),
53
- t,
54
- y(t)
55
- ];
56
- }
57
- function y(e) {
58
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
59
- }
60
- var b = ["left", "right"], x = ["right", "left"], S = ["top", "bottom"], C = ["bottom", "top"];
61
- function w(e, t, n) {
62
- switch (e) {
63
- case "top":
64
- case "bottom": return n ? t ? x : b : t ? b : x;
65
- case "left":
66
- case "right": return t ? S : C;
67
- default: return [];
68
- }
69
- }
70
- function T(e, t, n, r) {
71
- let i = f(e), a = w(d(e), n === "start", r);
72
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(y)))), a;
73
- }
74
- function E(e) {
75
- let t = d(e);
76
- return c[t] + e.slice(t.length);
77
- }
78
- function D(e) {
79
- return {
80
- top: 0,
81
- right: 0,
82
- bottom: 0,
83
- left: 0,
84
- ...e
85
- };
86
- }
87
- function O(e) {
88
- return typeof e == "number" ? {
89
- top: e,
90
- right: e,
91
- bottom: e,
92
- left: e
93
- } : D(e);
94
- }
95
- function k(e) {
96
- let { x: t, y: n, width: r, height: i } = e;
97
- return {
98
- width: r,
99
- height: i,
100
- top: n,
101
- left: t,
102
- right: t + r,
103
- bottom: n + i,
104
- x: t,
105
- y: n
106
- };
107
- }
108
- //#endregion
109
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js
110
- function A(e, t, n) {
111
- return Math.floor(e / t) !== n;
112
- }
113
- function j(e, t) {
114
- return t < 0 || t >= e.length;
115
- }
116
- function M(e, t) {
117
- return P(e.current, { disabledIndices: t });
118
- }
119
- function N(e, t) {
120
- return P(e.current, {
121
- decrement: !0,
122
- startingIndex: e.current.length,
123
- disabledIndices: t
124
- });
125
- }
126
- function P(e, { startingIndex: t = -1, decrement: n = !1, disabledIndices: r, amount: i = 1 } = {}) {
127
- let a = t;
128
- do
129
- a += n ? -i : i;
130
- while (a >= 0 && a <= e.length - 1 && z(e, a, r));
131
- return a;
132
- }
133
- function F(e, { event: n, orientation: r, loopFocus: i, onLoop: a, rtl: s, cols: c, disabledIndices: l, minIndex: u, maxIndex: d, prevIndex: f, stopEvent: p = !1 }) {
134
- let m = f, h;
135
- if (n.key === "ArrowUp" ? h = "up" : n.key === "ArrowDown" && (h = "down"), h) {
136
- let r = [], s = [], g = !1, _ = 0;
137
- {
138
- let t = null, n = -1;
139
- e.forEach((e, i) => {
140
- if (e == null) return;
141
- _ += 1;
142
- let a = e.closest("[role=\"row\"]");
143
- a && (g = !0), (a !== t || n === -1) && (t = a, n += 1, r[n] = []), r[n].push(i), s[i] = n;
144
- });
145
- }
146
- let v = !1, y = 0;
147
- if (g) for (let e of r) {
148
- let t = e.length;
149
- t > y && (y = t), t !== c && (v = !0);
150
- }
151
- let b = v && _ < e.length, x = y || c, S = (t) => {
152
- if (!v || f === -1) return;
153
- let o = s[f];
154
- if (o == null) return;
155
- let c = r[o].indexOf(f), u = t === "up" ? -1 : 1;
156
- for (let t = o + u, d = 0; d < r.length; d += 1, t += u) {
157
- if (t < 0 || t >= r.length) {
158
- if (!i || b) return;
159
- if (t = t < 0 ? r.length - 1 : 0, a) {
160
- let e = Math.min(c, r[t].length - 1);
161
- t = s[a(n, f, r[t][e] ?? r[t][0])] ?? t;
162
- }
163
- }
164
- let o = r[t];
165
- for (let t = Math.min(c, o.length - 1); t >= 0; --t) {
166
- let n = o[t];
167
- if (!z(e, n, l)) return n;
168
- }
169
- }
170
- }, C = (t) => {
171
- if (!b || f === -1) return;
172
- let n = f % x, r = t === "up" ? -x : x, a = d - d % x, s = o(d / x) + 1;
173
- for (let t = f - n + r, o = 0; o < s; o += 1, t += r) {
174
- if (t < 0 || t > d) {
175
- if (!i) return;
176
- t = t < 0 ? a : 0;
177
- }
178
- let r = Math.min(t + x - 1, d);
179
- for (let i = Math.min(t + n, r); i >= t; --i) if (!z(e, i, l)) return i;
180
- }
181
- };
182
- p && t(n);
183
- let w = S(h) ?? C(h);
184
- if (w !== void 0) m = w;
185
- else if (f === -1) m = h === "up" ? d : u;
186
- else if (m = P(e, {
187
- startingIndex: f,
188
- amount: x,
189
- decrement: h === "up",
190
- disabledIndices: l
191
- }), i) {
192
- if (h === "up" && (f - x < u || m < 0)) {
193
- let e = f % x, t = d % x, r = d - (t - e);
194
- m = t === e ? d : t > e ? r : r - x, a && (m = a(n, f, m));
195
- }
196
- h === "down" && f + x > d && (m = P(e, {
197
- startingIndex: f % x - x,
198
- amount: x,
199
- disabledIndices: l
200
- }), a && (m = a(n, f, m)));
201
- }
202
- j(e, m) && (m = f);
203
- }
204
- if (r === "both") {
205
- let r = o(f / c);
206
- n.key === (s ? "ArrowLeft" : "ArrowRight") && (p && t(n), f % c === c - 1 ? i && (m = P(e, {
207
- startingIndex: f - f % c - 1,
208
- disabledIndices: l
209
- }), a && (m = a(n, f, m))) : (m = P(e, {
210
- startingIndex: f,
211
- disabledIndices: l
212
- }), i && A(m, c, r) && (m = P(e, {
213
- startingIndex: f - f % c - 1,
214
- disabledIndices: l
215
- }), a && (m = a(n, f, m)))), A(m, c, r) && (m = f)), n.key === (s ? "ArrowRight" : "ArrowLeft") && (p && t(n), f % c === 0 ? i && (m = P(e, {
216
- startingIndex: f + (c - f % c),
217
- decrement: !0,
218
- disabledIndices: l
219
- }), a && (m = a(n, f, m))) : (m = P(e, {
220
- startingIndex: f,
221
- decrement: !0,
222
- disabledIndices: l
223
- }), i && A(m, c, r) && (m = P(e, {
224
- startingIndex: f + (c - f % c),
225
- decrement: !0,
226
- disabledIndices: l
227
- }), a && (m = a(n, f, m)))), A(m, c, r) && (m = f));
228
- let u = o(d / c) === r;
229
- j(e, m) && (i && u ? (m = n.key === (s ? "ArrowRight" : "ArrowLeft") ? d : P(e, {
230
- startingIndex: f - f % c - 1,
231
- disabledIndices: l
232
- }), a && (m = a(n, f, m))) : m = f);
233
- }
234
- return m;
235
- }
236
- function I(e, t, n) {
237
- let r = [], i = 0;
238
- return e.forEach(({ width: e, height: a }, o) => {
239
- if (e > t && process.env.NODE_ENV !== "production") throw Error(`[Floating UI]: Invalid grid - item width at index ${o} is greater than grid columns`);
240
- let s = !1;
241
- for (n && (i = 0); !s;) {
242
- let n = [];
243
- for (let r = 0; r < e; r += 1) for (let e = 0; e < a; e += 1) n.push(i + r + e * t);
244
- i % t + e <= t && n.every((e) => r[e] == null) ? (n.forEach((e) => {
245
- r[e] = o;
246
- }), s = !0) : i += 1;
247
- }
248
- }), [...r];
249
- }
250
- function L(e, t, n, r, i) {
251
- if (e === -1) return -1;
252
- let a = n.indexOf(e), o = t[e];
253
- switch (i) {
254
- case "tl": return a;
255
- case "tr": return o ? a + o.width - 1 : a;
256
- case "bl": return o ? a + (o.height - 1) * r : a;
257
- case "br": return n.lastIndexOf(e);
258
- default: return -1;
259
- }
260
- }
261
- function R(e, t) {
262
- return t.flatMap((t, n) => e.includes(t) ? [n] : []);
263
- }
264
- function z(e, t, n) {
265
- if (typeof n == "function" ? n(t) : n?.includes(t) ?? !1) return !0;
266
- let r = e[t];
267
- return r ? V(r) ? !n && (r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true") : !0 : !1;
268
- }
269
- function B(e) {
270
- return e.visibility === "hidden" || e.visibility === "collapse";
271
- }
272
- function V(t, n = t ? e(t) : null) {
273
- return !t || !t.isConnected || !n || B(n) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : n.display !== "none" && n.display !== "contents";
274
- }
275
- //#endregion
276
- export { n as A, O as C, r as D, i as E, k as O, E as S, h as T, _, F as a, p as b, V as c, l as d, s as f, g, f as h, R as i, a as k, j as l, o as m, P as n, N as o, u as p, L as r, M as s, I as t, z as u, m as v, d as w, T as x, v as y };
@@ -1,4 +0,0 @@
1
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js
2
- var e = "data-base-ui-focusable", t = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", n = "ArrowLeft", r = "ArrowRight", i = "ArrowUp", a = "ArrowDown";
3
- //#endregion
4
- export { e as a, i, n, t as o, r, a as t };
@@ -1,32 +0,0 @@
1
- //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/detectBrowser.js
2
- var e = typeof navigator < "u", t = u(), n = f(), r = d(), i = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), a = t.platform === "MacIntel" && t.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(t.platform);
3
- e && /firefox/i.test(r);
4
- var o = e && /apple/i.test(navigator.vendor);
5
- e && /Edg/i.test(r);
6
- var s = e && /android/i.test(n) || /android/i.test(r), c = e && n.toLowerCase().startsWith("mac") && !navigator.maxTouchPoints, l = r.includes("jsdom/");
7
- function u() {
8
- if (!e) return {
9
- platform: "",
10
- maxTouchPoints: -1
11
- };
12
- let t = navigator.userAgentData;
13
- return t?.platform ? {
14
- platform: t.platform,
15
- maxTouchPoints: navigator.maxTouchPoints
16
- } : {
17
- platform: navigator.platform ?? "",
18
- maxTouchPoints: navigator.maxTouchPoints ?? -1
19
- };
20
- }
21
- function d() {
22
- if (!e) return "";
23
- let t = navigator.userAgentData;
24
- return t && Array.isArray(t.brands) ? t.brands.map(({ brand: e, version: t }) => `${e}/${t}`).join(" ") : navigator.userAgent;
25
- }
26
- function f() {
27
- if (!e) return "";
28
- let t = navigator.userAgentData;
29
- return t?.platform ? t.platform : navigator.platform ?? "";
30
- }
31
- //#endregion
32
- export { o as a, c as i, a as n, i as o, l as r, s as t };
@@ -1,24 +0,0 @@
1
- import { r as e, t } from "./detectBrowser-FBYSu3xM.js";
2
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js
3
- function n(e) {
4
- e.preventDefault(), e.stopPropagation();
5
- }
6
- function r(e) {
7
- return "nativeEvent" in e;
8
- }
9
- function i(e) {
10
- return e.pointerType === "" && e.isTrusted ? !0 : t && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
11
- }
12
- function a(n) {
13
- return e ? !1 : !t && n.width === 0 && n.height === 0 || t && n.width === 1 && n.height === 1 && n.pressure === 0 && n.detail === 0 && n.pointerType === "mouse" || n.width < 1 && n.height < 1 && n.pressure === 0 && n.detail === 0 && n.pointerType === "touch";
14
- }
15
- function o(e, t) {
16
- let n = ["mouse", "pen"];
17
- return t || n.push("", void 0), n.includes(e);
18
- }
19
- function s(e) {
20
- let t = e.type;
21
- return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
22
- }
23
- //#endregion
24
- export { a, i, o as n, n as o, r, s as t };
@@ -1,355 +0,0 @@
1
- "use client";
2
- import { t as e } from "./useIsoLayoutEffect-CKOv1bV_.js";
3
- import { t } from "./useStableCallback-CqEVb76s.js";
4
- import { c as n, m as r, t as i } from "./createBaseUIEventDetails-ChcQXp54.js";
5
- import { n as a } from "./useAnimationFrame-xwbX87TY.js";
6
- import { f as o, l as s } from "./floating-ui.utils.dom-5U5b4xPf.js";
7
- import { i as c, n as l, r as u, t as d } from "./constants-VB9bsA8p.js";
8
- import { n as f, r as p, t as m } from "./shadowDom-C-4Ejp9R.js";
9
- import { c as h, r as g } from "./shim-ieZ_MRlN.js";
10
- import { O as _, k as v } from "./popupStateMapping-PdIQcWEz.js";
11
- import { a as ee, i as te, o as y } from "./event-DWcDp5kt.js";
12
- import { a as b, c as x, i as ne, l as re, n as S, o as ie, r as ae, s as oe, t as se, u as ce } from "./composite-HOje5ugx.js";
13
- import { t as le } from "./owner-BrzQrszh.js";
14
- import { t as C } from "./useValueAsRef-CCU3eUYq.js";
15
- import { n as w } from "./useTimeout-B1x6NSZb.js";
16
- import { o as ue } from "./useOpenInteractionType-D-ymktmc.js";
17
- import * as T from "react";
18
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js
19
- var E = "Escape";
20
- function D(e, t, n) {
21
- switch (e) {
22
- case "vertical": return t;
23
- case "horizontal": return n;
24
- default: return t || n;
25
- }
26
- }
27
- function O(e, t) {
28
- return D(t, e === "ArrowUp" || e === "ArrowDown", e === "ArrowLeft" || e === "ArrowRight");
29
- }
30
- function de(e, t, n) {
31
- return D(t, e === "ArrowDown", n ? e === "ArrowLeft" : e === "ArrowRight") || e === "Enter" || e === " " || e === "";
32
- }
33
- function fe(e, t, n) {
34
- return D(t, n ? e === l : e === u, e === d);
35
- }
36
- function pe(e, t, n, r) {
37
- return t === "both" || t === "horizontal" && r && r > 1 ? e === E : D(t, n ? e === u : e === l, e === c);
38
- }
39
- function k(s, c) {
40
- let { listRef: l, activeIndex: u, onNavigate: d = () => {}, enabled: x = !0, selectedIndex: w = null, allowEscape: E = !1, loopFocus: D = !1, nested: k = !1, rtl: A = !1, virtual: j = !1, focusItemOnOpen: M = "auto", focusItemOnHover: me = !0, openOnArrowKeyDown: he = !0, disabledIndices: N = void 0, orientation: P = "vertical", parentOrientation: ge, cols: F = 1, id: _e, resetOnPointerLeave: ve = !0, externalTree: ye } = c;
41
- process.env.NODE_ENV !== "production" && (E && (D || console.warn("`useListNavigation` looping must be enabled to allow escaping."), j || console.warn("`useListNavigation` must be virtual to allow escaping.")), P === "vertical" && F > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", "be either \"horizontal\" or \"both\"."));
42
- let I = "rootStore" in s ? s.rootStore : s, L = I.useState("open"), R = I.useState("floatingElement"), z = I.useState("domReferenceElement"), be = I.context.dataRef, xe = g(R), Se = h(z), B = C(xe), Ce = _(), V = v(ye), H = T.useRef(M), U = T.useRef(w ?? -1), W = T.useRef(null), G = T.useRef(!0), K = t((e) => {
43
- d(U.current === -1 ? null : U.current, e);
44
- }), we = T.useRef(K), q = T.useRef(!!R), Te = T.useRef(L), J = T.useRef(!1), Y = T.useRef(!1), Ee = T.useRef(null), De = C(N), X = C(L), Z = C(w), Oe = C(ve), ke = a(), Ae = a(), je = t(() => {
45
- function e(e) {
46
- j ? V?.events.emit("virtualfocus", e) : Ee.current = ue(e, {
47
- sync: J.current,
48
- preventScroll: !0
49
- });
50
- }
51
- let t = l.current[U.current], n = Y.current;
52
- t && e(t), (J.current ? (e) => e() : (e) => ke.request(e))(() => {
53
- let r = l.current[U.current] || t;
54
- r && (t || e(r), Fe && (n || !G.current) && r.scrollIntoView?.({
55
- block: "nearest",
56
- inline: "nearest"
57
- }));
58
- });
59
- });
60
- e(() => {
61
- be.current.orientation = P;
62
- }, [be, P]), e(() => {
63
- x && (L && R ? (U.current = w ?? -1, H.current && w != null && (Y.current = !0, K())) : q.current && (U.current = -1, we.current()));
64
- }, [
65
- x,
66
- L,
67
- R,
68
- w,
69
- K
70
- ]), e(() => {
71
- if (x) {
72
- if (!L) {
73
- J.current = !1;
74
- return;
75
- }
76
- if (R) if (u == null) {
77
- if (J.current = !1, Z.current != null) return;
78
- if (q.current && (U.current = -1, je()), (!Te.current || !q.current) && H.current && (W.current != null || H.current === !0 && W.current == null)) {
79
- let e = 0, t = () => {
80
- l.current[0] == null ? (e < 2 && (e ? (e) => Ae.request(e) : queueMicrotask)(t), e += 1) : (U.current = W.current == null || de(W.current, P, A) || k ? oe(l) : ie(l), W.current = null, K());
81
- };
82
- t();
83
- }
84
- } else re(l.current, u) || (U.current = u, je(), Y.current = !1);
85
- }
86
- }, [
87
- x,
88
- L,
89
- R,
90
- u,
91
- Z,
92
- k,
93
- l,
94
- P,
95
- A,
96
- K,
97
- je,
98
- Ae
99
- ]), e(() => {
100
- if (!x || R || !V || j || !q.current) return;
101
- let e = V.nodesRef.current, t = e.find((e) => e.id === Ce)?.context?.elements.floating, n = m(le(R)), r = e.some((e) => e.context && f(e.context.elements.floating, n));
102
- t && !r && G.current && t.focus({ preventScroll: !0 });
103
- }, [
104
- x,
105
- R,
106
- V,
107
- Ce,
108
- j
109
- ]), e(() => {
110
- we.current = K, Te.current = L, q.current = !!R;
111
- }), e(() => {
112
- L || (W.current = null, H.current = M);
113
- }, [L, M]);
114
- let Me = u != null, Ne = t((e) => {
115
- if (!X.current) return;
116
- let t = l.current.indexOf(e.currentTarget);
117
- t !== -1 && (U.current !== t || u !== t) && (U.current = t, K(e));
118
- }), Q = t(() => ge ?? V?.nodesRef.current.find((e) => e.id === Ce)?.context?.dataRef?.current.orientation), Pe = t(() => oe(l, De.current)), $ = t((e) => {
119
- if (G.current = !1, J.current = !0, e.which === 229 || !X.current && e.currentTarget === B.current) return;
120
- if (k && pe(e.key, P, A, F)) {
121
- O(e.key, Q()) || y(e), I.setOpen(!1, i(r, e.nativeEvent)), o(z) && (j ? V?.events.emit("virtualfocus", z) : z.focus());
122
- return;
123
- }
124
- let t = U.current, n = oe(l, N), a = ie(l, N);
125
- if (Se || (e.key === "Home" && (y(e), U.current = n, K(e)), e.key === "End" && (y(e), U.current = a, K(e))), F > 1) {
126
- let t = Array.from({ length: l.current.length }, () => ({
127
- width: 1,
128
- height: 1
129
- })), r = se(t, F, !1), i = r.findIndex((e) => e != null && !ce(l.current, e, N)), o = r.reduce((e, t, n) => t != null && !ce(l.current, t, N) ? n : e, -1), s = r[b(r.map((e) => e == null ? null : l.current[e]), {
130
- event: e,
131
- orientation: P,
132
- loopFocus: D,
133
- rtl: A,
134
- cols: F,
135
- disabledIndices: ne([...(typeof N == "function" ? null : N) || l.current.map((e, t) => ce(l.current, t, N) ? t : void 0), void 0], r),
136
- minIndex: i,
137
- maxIndex: o,
138
- prevIndex: ae(U.current > a ? n : U.current, t, r, F, e.key === "ArrowDown" ? "bl" : e.key === (A ? "ArrowLeft" : "ArrowRight") ? "tr" : "tl"),
139
- stopEvent: !0
140
- })];
141
- if (s != null && (U.current = s, K(e)), P === "both") return;
142
- }
143
- if (O(e.key, P)) {
144
- if (y(e), L && !j && m(e.currentTarget.ownerDocument) === e.currentTarget) {
145
- U.current = de(e.key, P, A) ? n : a, K(e);
146
- return;
147
- }
148
- de(e.key, P, A) ? D ? t >= a ? E && t !== l.current.length ? U.current = -1 : (J.current = !1, U.current = n) : U.current = S(l.current, {
149
- startingIndex: t,
150
- disabledIndices: N
151
- }) : U.current = Math.min(a, S(l.current, {
152
- startingIndex: t,
153
- disabledIndices: N
154
- })) : D ? t <= n ? E && t !== -1 ? U.current = l.current.length : (J.current = !1, U.current = a) : U.current = S(l.current, {
155
- startingIndex: t,
156
- decrement: !0,
157
- disabledIndices: N
158
- }) : U.current = Math.max(n, S(l.current, {
159
- startingIndex: t,
160
- decrement: !0,
161
- disabledIndices: N
162
- })), re(l.current, U.current) && (U.current = -1), K(e);
163
- }
164
- }), Fe = T.useMemo(() => ({
165
- onFocus(e) {
166
- J.current = !0, Ne(e);
167
- },
168
- onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
169
- onMouseMove(e) {
170
- J.current = !0, Y.current = !1, me && Ne(e);
171
- },
172
- onPointerLeave(e) {
173
- if (!X.current || !G.current || e.pointerType === "touch") return;
174
- J.current = !0;
175
- let t = e.relatedTarget;
176
- if (!(!me || l.current.includes(t)) && Oe.current && (Ee.current?.(), Ee.current = null, U.current = -1, K(e), !j)) {
177
- let e = B.current, t = m(le(e));
178
- e && f(e, t) && e.focus({ preventScroll: !0 });
179
- }
180
- }
181
- }), [
182
- Ne,
183
- X,
184
- B,
185
- me,
186
- l,
187
- K,
188
- Oe,
189
- j
190
- ]), Ie = T.useMemo(() => j && L && Me && { "aria-activedescendant": `${_e}-${u}` }, [
191
- j,
192
- L,
193
- Me,
194
- _e,
195
- u
196
- ]), Le = T.useMemo(() => ({
197
- "aria-orientation": P === "both" ? void 0 : P,
198
- ...Se ? {} : Ie,
199
- onKeyDown(e) {
200
- if (e.key === "Tab" && e.shiftKey && L && !j) {
201
- let t = p(e.nativeEvent);
202
- if (t && !f(B.current, t)) return;
203
- y(e), I.setOpen(!1, i(n, e.nativeEvent)), o(z) && z.focus();
204
- return;
205
- }
206
- $(e);
207
- },
208
- onPointerMove() {
209
- G.current = !0;
210
- }
211
- }), [
212
- Ie,
213
- $,
214
- B,
215
- P,
216
- Se,
217
- I,
218
- L,
219
- j,
220
- z
221
- ]), Re = T.useMemo(() => {
222
- function e(e) {
223
- I.setOpen(!0, i(r, e.nativeEvent, e.currentTarget));
224
- }
225
- function t(e) {
226
- M === "auto" && te(e.nativeEvent) && (H.current = !j);
227
- }
228
- function n(e) {
229
- H.current = M, M === "auto" && ee(e.nativeEvent) && (H.current = !0);
230
- }
231
- return {
232
- onKeyDown(t) {
233
- let n = I.select("open");
234
- G.current = !1;
235
- let r = t.key.startsWith("Arrow"), i = fe(t.key, Q(), A), a = O(t.key, P), o = (k ? i : a) || t.key === "Enter" || t.key.trim() === "";
236
- if (j && n) return $(t);
237
- if (!(!n && !he && r)) {
238
- if (o) {
239
- let e = O(t.key, Q());
240
- W.current = k && e ? null : t.key;
241
- }
242
- if (k) {
243
- i && (y(t), n ? (U.current = Pe(), K(t)) : e(t));
244
- return;
245
- }
246
- a && (Z.current != null && (U.current = Z.current), y(t), !n && he ? e(t) : $(t), n && K(t));
247
- }
248
- },
249
- onFocus(e) {
250
- I.select("open") && !j && (U.current = -1, K(e));
251
- },
252
- onPointerDown: n,
253
- onPointerEnter: n,
254
- onMouseDown: t,
255
- onClick: t
256
- };
257
- }, [
258
- $,
259
- M,
260
- Pe,
261
- k,
262
- K,
263
- I,
264
- he,
265
- P,
266
- Q,
267
- A,
268
- Z,
269
- j
270
- ]), ze = T.useMemo(() => ({
271
- ...Ie,
272
- ...Re
273
- }), [Ie, Re]);
274
- return T.useMemo(() => x ? {
275
- reference: ze,
276
- floating: Le,
277
- item: Fe,
278
- trigger: Re
279
- } : {}, [
280
- x,
281
- ze,
282
- Le,
283
- Re,
284
- Fe
285
- ]);
286
- }
287
- //#endregion
288
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js
289
- function A(n, r) {
290
- let { listRef: i, elementsRef: a, activeIndex: o, onMatch: s, onTyping: c, enabled: l = !0, resetMs: u = 750, selectedIndex: d = null } = r, p = "rootStore" in n ? n.rootStore : n, m = p.useState("open"), h = w(), g = T.useRef(""), _ = T.useRef(d ?? o ?? -1), v = T.useRef(null), ee = t((e) => {
291
- function t(e) {
292
- let t = a?.current[e];
293
- return !t || x(t);
294
- }
295
- function n(e, n, r = 0) {
296
- if (e.length === 0) return -1;
297
- let i = (r % e.length + e.length) % e.length, a = n.toLocaleLowerCase();
298
- for (let n = 0; n < e.length; n += 1) {
299
- let r = (i + n) % e.length;
300
- if (!(!e[r]?.toLocaleLowerCase().startsWith(a) || !t(r))) return r;
301
- }
302
- return -1;
303
- }
304
- let r = i.current;
305
- if (g.current.length > 0 && e.key === " " && (y(e), c?.(!0)), g.current.length > 0 && g.current[0] !== " " && n(r, g.current) === -1 && e.key !== " " && c?.(!1), r == null || e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) return;
306
- m && e.key !== " " && (y(e), c?.(!0));
307
- let l = g.current === "";
308
- l && (_.current = d ?? o ?? -1), r.every((e) => e ? e[0]?.toLocaleLowerCase() !== e[1]?.toLocaleLowerCase() : !0) && g.current === e.key && (g.current = "", _.current = v.current), g.current += e.key, h.start(u, () => {
309
- g.current = "", _.current = v.current, c?.(!1);
310
- });
311
- let f = ((l ? d ?? o ?? -1 : _.current) ?? 0) + 1, p = n(r, g.current, f);
312
- p === -1 ? e.key !== " " && (g.current = "", c?.(!1)) : (s?.(p), v.current = p);
313
- }), te = t((e) => {
314
- let t = e.relatedTarget, n = p.select("domReferenceElement"), r = p.select("floatingElement");
315
- f(n, t) || f(r, t) || (h.clear(), g.current = "", _.current = v.current, c?.(!1));
316
- });
317
- e(() => {
318
- !m && d !== null || (h.clear(), v.current = null, g.current !== "" && (g.current = ""));
319
- }, [
320
- m,
321
- d,
322
- h
323
- ]), e(() => {
324
- m && g.current === "" && (_.current = d ?? o ?? -1);
325
- }, [
326
- m,
327
- d,
328
- o
329
- ]);
330
- let b = T.useMemo(() => ({
331
- onKeyDown: ee,
332
- onBlur: te
333
- }), [ee, te]);
334
- return T.useMemo(() => l ? {
335
- reference: b,
336
- floating: b
337
- } : {}, [l, b]);
338
- }
339
- //#endregion
340
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js
341
- function j(e) {
342
- let t = e.getBoundingClientRect();
343
- if (process.env.NODE_ENV !== "production") return t;
344
- let n = s(e), r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
345
- if (!(r.content !== "none" || i.content !== "none")) return t;
346
- let a = parseFloat(r.width) || 0, o = parseFloat(r.height) || 0, c = parseFloat(i.width) || 0, l = parseFloat(i.height) || 0, u = Math.max(t.width, a, c), d = Math.max(t.height, o, l), f = u - t.width, p = d - t.height;
347
- return {
348
- left: t.left - f / 2,
349
- right: t.right + f / 2,
350
- top: t.top - p / 2,
351
- bottom: t.bottom + p / 2
352
- };
353
- }
354
- //#endregion
355
- export { A as n, k as r, j as t };