@arcadeai/design-system 5.0.1 → 5.3.0

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