@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,643 @@
1
+ "use client";
2
+ import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
3
+ import { f as t, o as n } from "./useRenderElement-BToElZ97.js";
4
+ import { t as r } from "./useStableCallback-CrM0Nb2q.js";
5
+ import { t as i } from "./useId-Bzr7_bed.js";
6
+ import { S as a, _ as o, g as s, s as c, t as l, x as u } from "./createBaseUIEventDetails-C_dwdqj4.js";
7
+ import { t as d } from "./useTransitionStatus-CCIoL5RH.js";
8
+ import { i as f, t as p } from "./useOpenChangeComplete-CVIwfcpl.js";
9
+ import { c as m, d as h, f as ee, g as te, p as g, t as ne } from "./floating-ui.utils.dom-5U5b4xPf.js";
10
+ import { t as _ } from "./addEventListener-BlQH_qk1.js";
11
+ import { t as re } from "./owner-CyZnQOKt.js";
12
+ import { D as v, k as ie } from "./composite-B-tEa-Zg.js";
13
+ import { t as ae } from "./engine-ChH4dTze.js";
14
+ import { E as oe, g as se, o as y, t as b } from "./ReactStore-C3H8e2ha.js";
15
+ import { a as x } from "./constants-ouS7wtUt.js";
16
+ import { n as S, t as ce } from "./useTimeout-B0afjWAz.js";
17
+ import { n as C, r as le } from "./shadowDom-BACsbimN.js";
18
+ import { i as w, o as ue } from "./shim-BX-2V17R.js";
19
+ import * as T from "react";
20
+ import { jsx as E } from "react/jsx-runtime";
21
+ import * as D from "react-dom";
22
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/useOnFirstRender.mjs
23
+ function O(e) {
24
+ let t = T.useRef(!0);
25
+ t.current && (t.current = !1, e());
26
+ }
27
+ //#endregion
28
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
29
+ function k(e, t, n = !0) {
30
+ return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...k(e, t.id, n)]);
31
+ }
32
+ function de(e, t) {
33
+ let n = [], r = e.find((e) => e.id === t)?.parentId;
34
+ for (; r;) {
35
+ let t = e.find((e) => e.id === r);
36
+ r = t?.parentId, t && (n = n.concat(t));
37
+ }
38
+ return n;
39
+ }
40
+ //#endregion
41
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
42
+ function A() {
43
+ let e = /* @__PURE__ */ new Map();
44
+ return {
45
+ emit(t, n) {
46
+ e.get(t)?.forEach((e) => e(n));
47
+ },
48
+ on(t, n) {
49
+ e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
50
+ },
51
+ off(t, n) {
52
+ e.get(t)?.delete(n);
53
+ }
54
+ };
55
+ }
56
+ //#endregion
57
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingTreeStore.mjs
58
+ var j = class {
59
+ nodesRef = { current: [] };
60
+ events = A();
61
+ addNode(e) {
62
+ this.nodesRef.current.push(e);
63
+ }
64
+ removeNode(e) {
65
+ let t = this.nodesRef.current.findIndex((t) => t === e);
66
+ t !== -1 && this.nodesRef.current.splice(t, 1);
67
+ }
68
+ }, M = /*#__PURE__*/ T.createContext(null);
69
+ process.env.NODE_ENV !== "production" && (M.displayName = "FloatingNodeContext");
70
+ var N = /*#__PURE__*/ T.createContext(null);
71
+ process.env.NODE_ENV !== "production" && (N.displayName = "FloatingTreeContext");
72
+ var P = () => T.useContext(M)?.id || null, F = (e) => {
73
+ let t = T.useContext(N);
74
+ return e ?? t;
75
+ };
76
+ function I(t) {
77
+ let n = i(), r = F(t), a = P();
78
+ return e(() => {
79
+ if (!n) return;
80
+ let e = {
81
+ id: n,
82
+ parentId: a
83
+ };
84
+ return r?.addNode(e), () => {
85
+ r?.removeNode(e);
86
+ };
87
+ }, [
88
+ r,
89
+ n,
90
+ a
91
+ ]), n;
92
+ }
93
+ function L(e) {
94
+ let { children: t, id: n } = e, r = P();
95
+ return /*#__PURE__*/ E(M.Provider, {
96
+ value: T.useMemo(() => ({
97
+ id: n,
98
+ parentId: r
99
+ }), [n, r]),
100
+ children: t
101
+ });
102
+ }
103
+ function R(e) {
104
+ let { children: n, externalTree: r } = e, i = t(() => r ?? new j()).current;
105
+ return /*#__PURE__*/ E(N.Provider, {
106
+ value: i,
107
+ children: n
108
+ });
109
+ }
110
+ //#endregion
111
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useDismiss.mjs
112
+ function z() {
113
+ return !1;
114
+ }
115
+ function fe(e) {
116
+ return {
117
+ escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
118
+ outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
119
+ };
120
+ }
121
+ function B(e, t = {}) {
122
+ let { enabled: n = !0, escapeKey: i = !0, outsidePress: s = !0, outsidePressEvent: u = "sloppy", referencePress: d = z, bubbles: f, externalTree: p } = t, v = "rootStore" in e ? e.rootStore : e, y = v.useState("open"), b = v.useState("floatingElement"), { dataRef: x } = v.context, E = F(p), D = r(typeof s == "function" ? s : () => !1), O = typeof s == "function" ? D : s, de = O !== !1, A = r(() => u), { escapeKey: j, outsidePress: M } = fe(f), N = T.useRef(!1), P = T.useRef(!1), I = T.useRef(!1), L = T.useRef(!1), R = T.useRef(""), B = T.useRef(null), V = S(), H = S(), U = r(() => {
123
+ H.clear(), x.current.insideReactTree = !1;
124
+ }), W = r((e) => {
125
+ let t = x.current.floatingContext?.nodeId;
126
+ return (E ? k(E.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
127
+ }), G = r((e) => w(e, v.select("floatingElement")) || w(e, v.select("domReferenceElement"))), K = r((e) => {
128
+ d() && v.setOpen(!1, l(a, e.nativeEvent));
129
+ }), q = r((e) => {
130
+ if (!y || !n || !i || e.key !== "Escape" || L.current || !j && W("__escapeKeyBubbles")) return;
131
+ let t = l(c, ie(e) ? e.nativeEvent : e);
132
+ v.setOpen(!1, t), t.isCanceled || e.preventDefault(), !j && !t.isPropagationAllowed && e.stopPropagation();
133
+ }), J = r(() => {
134
+ x.current.insideReactTree = !0, H.start(0, U);
135
+ }), Y = r((e) => {
136
+ if (!y || !n || e.button !== 0) return;
137
+ let t = le(e.nativeEvent);
138
+ C(v.select("floatingElement"), t) && (N.current || (N.current = !0, P.current = !1));
139
+ }), X = r((e) => {
140
+ !y || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && N.current && (P.current = !0);
141
+ });
142
+ T.useEffect(() => {
143
+ if (!y || !n) return;
144
+ x.current.__escapeKeyBubbles = j, x.current.__outsidePressBubbles = M;
145
+ let e = new ce(), t = new ce();
146
+ function r() {
147
+ e.clear(), L.current = !0;
148
+ }
149
+ function a() {
150
+ e.start(ae ? 5 : 0, () => {
151
+ L.current = !1;
152
+ });
153
+ }
154
+ function s() {
155
+ I.current = !0, t.start(0, () => {
156
+ I.current = !1;
157
+ });
158
+ }
159
+ function c() {
160
+ N.current = !1, P.current = !1;
161
+ }
162
+ function u() {
163
+ let e = R.current, t = e === "pen" || !e ? "mouse" : e, n = A(), r = typeof n == "function" ? n() : n;
164
+ return typeof r == "string" ? r : r[t];
165
+ }
166
+ function d(e) {
167
+ let t = u();
168
+ return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
169
+ }
170
+ function f(e) {
171
+ let t = x.current.floatingContext?.nodeId, n = E && k(E.nodesRef.current, t).some((t) => w(e, t.context?.elements.floating));
172
+ return G(e) || n;
173
+ }
174
+ function p(e) {
175
+ if (d(e)) {
176
+ e.type !== "click" && !G(e) && (t.clear(), I.current = !1), U();
177
+ return;
178
+ }
179
+ if (x.current.insideReactTree) {
180
+ U();
181
+ return;
182
+ }
183
+ let n = le(e), r = `[${se("inert")}]`, i = h(n) ? n.getRootNode() : null, a = Array.from((te(i) ? i : re(v.select("floatingElement"))).querySelectorAll(r)), s = v.context.triggerElements;
184
+ if (n && (s.hasElement(n) || s.hasMatchingElement((e) => C(e, n)))) return;
185
+ let c = h(n) ? n : null;
186
+ for (; c && !g(c);) {
187
+ let e = m(c);
188
+ if (g(e) || !h(e)) break;
189
+ c = e;
190
+ }
191
+ if (!(a.length && h(n) && !ue(n) && !C(n, v.select("floatingElement")) && a.every((e) => !C(c, e)))) {
192
+ if (ee(n) && !("touches" in e)) {
193
+ let t = g(n), r = ne(n), i = /auto|scroll/, a = t || i.test(r.overflowX), o = t || i.test(r.overflowY), s = a && n.clientWidth > 0 && n.scrollWidth > n.clientWidth, c = o && n.clientHeight > 0 && n.scrollHeight > n.clientHeight, l = r.direction === "rtl", u = c && (l ? e.offsetX <= n.offsetWidth - n.clientWidth : e.offsetX > n.clientWidth), d = s && e.offsetY > n.clientHeight;
194
+ if (u || d) return;
195
+ }
196
+ if (!f(e)) {
197
+ if (u() === "intentional" && I.current) {
198
+ t.clear(), I.current = !1;
199
+ return;
200
+ }
201
+ typeof O == "function" && !O(e) || W("__outsidePressBubbles") || (v.setOpen(!1, l(o, e)), U());
202
+ }
203
+ }
204
+ }
205
+ function ie(e) {
206
+ u() !== "sloppy" || e.pointerType === "touch" || !v.select("open") || !n || G(e) || p(e);
207
+ }
208
+ function S(e) {
209
+ if (u() !== "sloppy" || !v.select("open") || !n || G(e)) return;
210
+ let t = e.touches[0];
211
+ t && (B.current = {
212
+ startTime: Date.now(),
213
+ startX: t.clientX,
214
+ startY: t.clientY,
215
+ dismissOnTouchEnd: !1,
216
+ dismissOnMouseDown: !0
217
+ }, V.start(1e3, () => {
218
+ B.current && (B.current.dismissOnTouchEnd = !1, B.current.dismissOnMouseDown = !1);
219
+ }));
220
+ }
221
+ function T(e, t) {
222
+ let n = le(e);
223
+ if (!n) return;
224
+ let r = _(n, e.type, () => {
225
+ t(e), r();
226
+ });
227
+ }
228
+ function D(e) {
229
+ R.current = "touch", T(e, S);
230
+ }
231
+ function F(e) {
232
+ V.clear(), e.type === "pointerdown" && (R.current = e.pointerType), !(e.type === "mousedown" && B.current && !B.current.dismissOnMouseDown) && T(e, (e) => {
233
+ e.type === "pointerdown" ? ie(e) : p(e);
234
+ });
235
+ }
236
+ function z(e) {
237
+ if (!N.current) return;
238
+ let n = P.current;
239
+ if (c(), u() === "intentional") {
240
+ if (e.type === "pointercancel") {
241
+ n && s();
242
+ return;
243
+ }
244
+ if (!f(e)) {
245
+ if (n) {
246
+ s();
247
+ return;
248
+ }
249
+ typeof O == "function" && !O(e) || (t.clear(), I.current = !0, U());
250
+ }
251
+ }
252
+ }
253
+ function fe(e) {
254
+ if (u() !== "sloppy" || !B.current || G(e)) return;
255
+ let t = e.touches[0];
256
+ if (!t) return;
257
+ let n = Math.abs(t.clientX - B.current.startX), r = Math.abs(t.clientY - B.current.startY), i = Math.sqrt(n * n + r * r);
258
+ i > 5 && (B.current.dismissOnTouchEnd = !0), i > 10 && (p(e), V.clear(), B.current = null);
259
+ }
260
+ function H(e) {
261
+ T(e, fe);
262
+ }
263
+ function K(e) {
264
+ u() !== "sloppy" || !B.current || G(e) || (B.current.dismissOnTouchEnd && p(e), V.clear(), B.current = null);
265
+ }
266
+ function J(e) {
267
+ T(e, K);
268
+ }
269
+ let Y = re(b), X = oe(i && oe(_(Y, "keydown", q), _(Y, "compositionstart", r), _(Y, "compositionend", a)), de && oe(_(Y, "click", F, !0), _(Y, "pointerdown", F, !0), _(Y, "pointerup", z, !0), _(Y, "pointercancel", z, !0), _(Y, "mousedown", F, !0), _(Y, "mouseup", z, !0), _(Y, "touchstart", D, !0), _(Y, "touchmove", H, !0), _(Y, "touchend", J, !0)));
270
+ return () => {
271
+ X(), e.clear(), t.clear(), c(), I.current = !1;
272
+ };
273
+ }, [
274
+ x,
275
+ b,
276
+ i,
277
+ de,
278
+ O,
279
+ y,
280
+ n,
281
+ j,
282
+ M,
283
+ q,
284
+ U,
285
+ A,
286
+ W,
287
+ G,
288
+ E,
289
+ v,
290
+ V
291
+ ]), T.useEffect(U, [O, U]);
292
+ let Z = T.useMemo(() => ({
293
+ onKeyDown: q,
294
+ onPointerDown: K,
295
+ onClick: K
296
+ }), [q, K]), pe = T.useMemo(() => ({
297
+ onKeyDown: q,
298
+ onPointerDown: X,
299
+ onMouseDown: X,
300
+ onClickCapture: J,
301
+ onMouseDownCapture(e) {
302
+ J(), Y(e);
303
+ },
304
+ onPointerDownCapture(e) {
305
+ J(), Y(e);
306
+ },
307
+ onMouseUpCapture: J,
308
+ onTouchEndCapture: J,
309
+ onTouchMoveCapture: J
310
+ }), [
311
+ q,
312
+ J,
313
+ Y,
314
+ X
315
+ ]);
316
+ return T.useMemo(() => n ? {
317
+ reference: Z,
318
+ floating: pe,
319
+ trigger: Z
320
+ } : {}, [
321
+ n,
322
+ Z,
323
+ pe
324
+ ]);
325
+ }
326
+ //#endregion
327
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
328
+ var V = {
329
+ open: y((e) => e.open),
330
+ transitionStatus: y((e) => e.transitionStatus),
331
+ domReferenceElement: y((e) => e.domReferenceElement),
332
+ referenceElement: y((e) => e.positionReference ?? e.referenceElement),
333
+ floatingElement: y((e) => e.floatingElement),
334
+ floatingId: y((e) => e.floatingId)
335
+ }, H = class extends b {
336
+ constructor(e) {
337
+ let { syncOnly: t, nested: n, onOpenChange: r, triggerElements: i, ...a } = e;
338
+ super({
339
+ ...a,
340
+ positionReference: a.referenceElement,
341
+ domReferenceElement: a.referenceElement
342
+ }, {
343
+ onOpenChange: r,
344
+ dataRef: { current: {} },
345
+ events: A(),
346
+ nested: n,
347
+ triggerElements: i
348
+ }, V), this.syncOnly = t;
349
+ }
350
+ syncOpenEvent = (e, t) => {
351
+ (!e || !this.state.open || t != null && v(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
352
+ };
353
+ dispatchOpenChange = (e, t) => {
354
+ this.syncOpenEvent(e, t.event);
355
+ let n = {
356
+ open: e,
357
+ reason: t.reason,
358
+ nativeEvent: t.event,
359
+ nested: this.context.nested,
360
+ triggerElement: t.trigger
361
+ };
362
+ this.context.events.emit("openchange", n);
363
+ };
364
+ setOpen = (e, t) => {
365
+ if (this.syncOnly) {
366
+ this.context.onOpenChange?.(e, t);
367
+ return;
368
+ }
369
+ this.dispatchOpenChange(e, t), this.context.onOpenChange?.(e, t);
370
+ };
371
+ };
372
+ //#endregion
373
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs
374
+ function U(t) {
375
+ let { popupStore: n, treatPopupAsFloatingElement: r = !1, floatingRootContext: i, floatingId: a, nested: o, onOpenChange: s } = t, c = n.useState("open"), l = n.useState("activeTriggerElement"), u = n.useState(r ? "popupElement" : "positionerElement"), d = n.context.triggerElements, f = s, p = T.useRef(null);
376
+ i === void 0 && p.current === null && (p.current = new H({
377
+ open: c,
378
+ transitionStatus: void 0,
379
+ referenceElement: l,
380
+ floatingElement: u,
381
+ triggerElements: d,
382
+ onOpenChange: f,
383
+ floatingId: a,
384
+ syncOnly: !0,
385
+ nested: o
386
+ }));
387
+ let m = i ?? p.current;
388
+ return n.useSyncedValue("floatingId", a), e(() => {
389
+ let e = {
390
+ open: c,
391
+ floatingId: a,
392
+ referenceElement: l,
393
+ floatingElement: u
394
+ };
395
+ h(l) && (e.domReferenceElement = l), m.state.positionReference === m.state.referenceElement && (e.positionReference = l), m.update(e);
396
+ }, [
397
+ c,
398
+ a,
399
+ l,
400
+ u,
401
+ m
402
+ ]), m.context.onOpenChange = f, m.context.nested = o, m;
403
+ }
404
+ //#endregion
405
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
406
+ var W = {
407
+ tabIndex: -1,
408
+ [x]: ""
409
+ };
410
+ function G(e) {
411
+ return (t) => t === "touch" ? e.current : !0;
412
+ }
413
+ function K(e, t, n = !1) {
414
+ let r = i(), a = P() != null, o = T.useRef(null);
415
+ e === void 0 && o.current === null && (o.current = t(r, a));
416
+ let s = e ?? o.current;
417
+ return U({
418
+ popupStore: s,
419
+ treatPopupAsFloatingElement: n,
420
+ floatingRootContext: s.state.floatingRootContext,
421
+ floatingId: r,
422
+ nested: a,
423
+ onOpenChange: s.setOpen
424
+ }), {
425
+ store: s,
426
+ internalStore: o.current
427
+ };
428
+ }
429
+ function q(e, t) {
430
+ let n = T.useRef(null), r = T.useRef(null);
431
+ return T.useCallback((i) => {
432
+ if (e === void 0) return;
433
+ let a = !1;
434
+ if (n.current !== null) {
435
+ let e = n.current, i = r.current, o = t.context.triggerElements.getById(e);
436
+ i && o === i && (t.context.triggerElements.delete(e), a = !0), n.current = null, r.current = null;
437
+ }
438
+ if (i !== null && (n.current = e, r.current = i, t.context.triggerElements.add(e, i), a = !0), a) {
439
+ let e = t.context.triggerElements.size;
440
+ t.select("open") && t.state.triggerCount !== e && t.set("triggerCount", e);
441
+ }
442
+ }, [t, e]);
443
+ }
444
+ function J(e, t, n, r = !1) {
445
+ t ? e.preventUnmountingOnClose = !1 : r && (e.preventUnmountingOnClose = !0);
446
+ let i = n?.id ?? null;
447
+ (i || t) && (e.activeTriggerId = i, e.activeTriggerElement = n ?? null);
448
+ }
449
+ function Y(e) {
450
+ let t = !1;
451
+ return e.preventUnmountOnClose = () => {
452
+ t = !0;
453
+ }, () => t;
454
+ }
455
+ function X(e, t, n, r = {}) {
456
+ let i = n.reason, a = i === u, o = t && i === "trigger-focus", s = !t && (i === "trigger-press" || i === "escape-key"), c = Y(n);
457
+ if (e.context.onOpenChange?.(t, n), n.isCanceled) return;
458
+ r.onBeforeDispatch?.(), e.state.floatingRootContext.dispatchOpenChange(t, n);
459
+ let l = () => {
460
+ let i = {
461
+ ...r.extraState,
462
+ open: t
463
+ };
464
+ o ? i.instantType = "focus" : s ? i.instantType = "dismiss" : a && (i.instantType = void 0), J(i, t, n.trigger, c()), e.update(i);
465
+ };
466
+ a ? D.flushSync(l) : l();
467
+ }
468
+ function Z(e, t, n, r) {
469
+ O(() => {
470
+ t === void 0 && e.state.open === !1 && n && (e.state = {
471
+ ...e.state,
472
+ open: !0,
473
+ activeTriggerId: r,
474
+ preventUnmountingOnClose: !1
475
+ });
476
+ });
477
+ }
478
+ function pe(t, n, i, a) {
479
+ let o = i.useState("isMountedByTrigger", t), s = q(t, i), c = r((e) => {
480
+ if (s(e), !e) return;
481
+ let n = i.select("open"), r = i.select("activeTriggerId");
482
+ if (r === t) {
483
+ i.update({
484
+ activeTriggerElement: e,
485
+ ...n ? a : null
486
+ });
487
+ return;
488
+ }
489
+ r == null && n && i.update({
490
+ activeTriggerId: t,
491
+ activeTriggerElement: e,
492
+ ...a
493
+ });
494
+ });
495
+ return e(() => {
496
+ o && i.update({
497
+ activeTriggerElement: n.current,
498
+ ...a
499
+ });
500
+ }, [
501
+ o,
502
+ i,
503
+ n,
504
+ ...Object.values(a)
505
+ ]), {
506
+ registerTrigger: c,
507
+ isMountedByThisTrigger: o
508
+ };
509
+ }
510
+ function me(t, n = {}) {
511
+ let { closeOnActiveTriggerUnmount: r = !1 } = n, i = t.useState("open");
512
+ e(() => {
513
+ if (!i) {
514
+ t.state.triggerCount !== 0 && t.set("triggerCount", 0);
515
+ return;
516
+ }
517
+ let e = t.context.triggerElements.size, n = {};
518
+ t.state.triggerCount !== e && (n.triggerCount = e);
519
+ let a = t.select("activeTriggerId"), o = null;
520
+ if (a) {
521
+ let e = t.context.triggerElements.getById(a);
522
+ e ? e !== t.state.activeTriggerElement && (n.activeTriggerElement = e) : o = a;
523
+ }
524
+ if (!o && !a && e === 1) {
525
+ let e = t.context.triggerElements.entries().next();
526
+ if (!e.done) {
527
+ let [t, r] = e.value;
528
+ n.activeTriggerId = t, n.activeTriggerElement = r;
529
+ }
530
+ }
531
+ (n.triggerCount !== void 0 || n.activeTriggerId !== void 0 || n.activeTriggerElement !== void 0) && t.update(n), o && r && queueMicrotask(() => {
532
+ if (t.select("open") && t.select("activeTriggerId") === o && !t.context.triggerElements.getById(o)) {
533
+ let e = l(s);
534
+ t.setOpen(!1, e), e.isCanceled || t.update({
535
+ activeTriggerId: null,
536
+ activeTriggerElement: null
537
+ });
538
+ }
539
+ });
540
+ }, [
541
+ i,
542
+ t,
543
+ t.useState("triggerCount"),
544
+ r
545
+ ]);
546
+ }
547
+ function he(e, t, n) {
548
+ let { mounted: i, setMounted: a, transitionStatus: o } = d(e), s = t.useState("preventUnmountingOnClose"), c = e ? !1 : s;
549
+ t.useSyncedValues({
550
+ mounted: i,
551
+ transitionStatus: o,
552
+ preventUnmountingOnClose: c
553
+ });
554
+ let l = r(() => {
555
+ a(!1), t.update({
556
+ activeTriggerId: null,
557
+ activeTriggerElement: null,
558
+ mounted: !1,
559
+ preventUnmountingOnClose: !1
560
+ }), n?.(), t.context.onOpenChangeComplete?.(!1);
561
+ });
562
+ return p({
563
+ enabled: i && !e && !c,
564
+ open: e,
565
+ ref: t.context.popupRef,
566
+ onComplete() {
567
+ e || l();
568
+ }
569
+ }), {
570
+ forceUnmount: l,
571
+ transitionStatus: o
572
+ };
573
+ }
574
+ function ge(t, r) {
575
+ t.useSyncedValues(r), e(() => () => {
576
+ t.update({
577
+ activeTriggerProps: n,
578
+ inactiveTriggerProps: n,
579
+ popupProps: n
580
+ });
581
+ }, [t]);
582
+ }
583
+ function _e(t, n) {
584
+ e(() => {
585
+ !n && t.state.openMethod !== null && t.set("openMethod", null);
586
+ }, [n, t]), e(() => () => {
587
+ t.state.openMethod !== null && t.set("openMethod", null);
588
+ }, [t]);
589
+ }
590
+ //#endregion
591
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
592
+ var ve = class {
593
+ constructor() {
594
+ this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
595
+ }
596
+ add(e, t) {
597
+ let n = this.idMap.get(e);
598
+ if (n !== t && (n !== void 0 && this.elementsSet.delete(n), this.elementsSet.add(t), this.idMap.set(e, t), process.env.NODE_ENV !== "production" && this.elementsSet.size !== this.idMap.size)) throw Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
599
+ }
600
+ delete(e) {
601
+ let t = this.idMap.get(e);
602
+ t && (this.elementsSet.delete(t), this.idMap.delete(e));
603
+ }
604
+ hasElement(e) {
605
+ return this.elementsSet.has(e);
606
+ }
607
+ hasMatchingElement(e) {
608
+ for (let t of this.elementsSet) if (e(t)) return !0;
609
+ return !1;
610
+ }
611
+ getById(e) {
612
+ return this.idMap.get(e);
613
+ }
614
+ entries() {
615
+ return this.idMap.entries();
616
+ }
617
+ elements() {
618
+ return this.elementsSet.values();
619
+ }
620
+ get size() {
621
+ return this.idMap.size;
622
+ }
623
+ }, Q = function(e) {
624
+ return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = f.startingStyle] = "startingStyle", e[e.endingStyle = f.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
625
+ }({}), $ = /*#__PURE__*/ function(e) {
626
+ return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
627
+ }({}), ye = { [$.popupOpen]: "" }, be = {
628
+ [$.popupOpen]: "",
629
+ [$.pressed]: ""
630
+ }, xe = { [Q.open]: "" }, Se = { [Q.closed]: "" }, Ce = { [Q.anchorHidden]: "" }, we = { open(e) {
631
+ return e ? ye : null;
632
+ } }, Te = { open(e) {
633
+ return e ? be : null;
634
+ } }, Ee = {
635
+ open(e) {
636
+ return e ? xe : Se;
637
+ },
638
+ anchorHidden(e) {
639
+ return e ? Ce : null;
640
+ }
641
+ };
642
+ //#endregion
643
+ export { k as A, L as C, F as D, P as E, j as O, B as S, I as T, K as _, we as a, U as b, X as c, J as d, me as f, _e as g, ge as h, Te as i, O as j, de as k, Y as l, he as m, $ as n, ve as o, Z as p, Ee as r, W as s, Q as t, G as u, pe as v, R as w, H as x, q as y };