@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
@@ -1,1179 +0,0 @@
1
- "use client";
2
- import { t as e } from "./chunk-Dqa2HsxW.js";
3
- import { t } from "./useIsoLayoutEffect-CKOv1bV_.js";
4
- import { c as n, f as r, o as i, s as a, t as o, u as s } from "./useRenderElement-CmuWsiNa.js";
5
- import { t as c } from "./useStableCallback-CqEVb76s.js";
6
- import { S as l, _ as u, s as d, t as f } from "./createBaseUIEventDetails-ChcQXp54.js";
7
- import { n as p } from "./useBaseUiId-DOm5ACje.js";
8
- import { i as m, o as h, t as g } from "./useOpenChangeComplete-DjMFUwhi.js";
9
- import { a as _, c as v, d as y, f as b, g as x, m as S, p as ee, t as te, y as ne } from "./floating-ui.utils.dom-5U5b4xPf.js";
10
- import { a as C } from "./detectBrowser-FBYSu3xM.js";
11
- import { a as re } from "./constants-VB9bsA8p.js";
12
- import { n as w, r as ie, t as T } from "./shadowDom-C-4Ejp9R.js";
13
- import { i as ae, n as oe, o as se, t as E } from "./shim-ieZ_MRlN.js";
14
- import { r as D, t as O } from "./event-DWcDp5kt.js";
15
- import { c as ce } from "./composite-HOje5ugx.js";
16
- import { t as k } from "./owner-BrzQrszh.js";
17
- import { t as A } from "./addEventListener-B4Gs94GY.js";
18
- import { n as le, t as ue } from "./useTimeout-B1x6NSZb.js";
19
- import { t as j } from "./visuallyHidden-CEAV1xeA.js";
20
- import * as M from "react";
21
- import { jsx as N, jsxs as P } from "react/jsx-runtime";
22
- import * as F from "react-dom";
23
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js
24
- function de(e, t, n = !0) {
25
- return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...de(e, t.id, n)]);
26
- }
27
- function I(e, t) {
28
- let n = [], r = e.find((e) => e.id === t)?.parentId;
29
- for (; r;) {
30
- let t = e.find((e) => e.id === r);
31
- r = t?.parentId, t && (n = n.concat(t));
32
- }
33
- return n;
34
- }
35
- //#endregion
36
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js
37
- var L = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
38
- function R(e) {
39
- let t = e.assignedSlot;
40
- if (t) return t;
41
- if (e.parentElement) return e.parentElement;
42
- let n = e.getRootNode();
43
- return x(n) ? n.host : null;
44
- }
45
- function z(e) {
46
- for (let t of Array.from(e.children)) if (_(t) === "summary") return t;
47
- return null;
48
- }
49
- function B(e, t) {
50
- let n = z(t);
51
- return !!n && (e === n || w(n, e));
52
- }
53
- function V(e) {
54
- let t = e ? _(e) : "";
55
- return e != null && e.matches(L) && (t !== "summary" || e.parentElement != null && _(e.parentElement) === "details" && z(e.parentElement) === e) && (t !== "details" || z(e) == null) && (t !== "input" || e.type !== "hidden");
56
- }
57
- function H(e) {
58
- if (!V(e) || !e.isConnected || e.matches(":disabled")) return !1;
59
- for (let t = e; t; t = R(t)) {
60
- let n = t !== e, r = _(t) === "slot";
61
- if (t.hasAttribute("inert") || n && _(t) === "details" && !t.open && !B(e, t) || t.hasAttribute("hidden") || !r && !U(t, n)) return !1;
62
- }
63
- return !0;
64
- }
65
- function U(e, t) {
66
- let n = te(e);
67
- return t ? n.display !== "none" : ce(e, n);
68
- }
69
- function W(e) {
70
- let t = e.tabIndex;
71
- if (t < 0) {
72
- let t = _(e);
73
- if (t === "details" || t === "audio" || t === "video" || b(e) && e.isContentEditable) return 0;
74
- }
75
- return t;
76
- }
77
- function G(e) {
78
- if (_(e) !== "input") return null;
79
- let t = e;
80
- return t.type === "radio" && t.name !== "" ? t : null;
81
- }
82
- function K(e, t) {
83
- let n = G(e);
84
- if (!n) return !0;
85
- let r = t.find((e) => {
86
- let t = G(e);
87
- return t?.name === n.name && t.form === n.form && t.checked;
88
- });
89
- return r ? r === n : t.find((e) => {
90
- let t = G(e);
91
- return t?.name === n.name && t.form === n.form;
92
- }) === n;
93
- }
94
- function q(e) {
95
- if (b(e) && _(e) === "slot") {
96
- let t = e.assignedElements({ flatten: !0 });
97
- if (t.length > 0) return t;
98
- }
99
- return b(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
100
- }
101
- function J(e, t) {
102
- q(e).forEach((e) => {
103
- V(e) && t.push(e), J(e, t);
104
- });
105
- }
106
- function Y(e, t, n) {
107
- q(e).forEach((e) => {
108
- b(e) && e.matches(t) && n.push(e), Y(e, t, n);
109
- });
110
- }
111
- function fe(e) {
112
- return H(e) && W(e) >= 0;
113
- }
114
- function pe(e) {
115
- let t = [];
116
- return J(e, t), t.filter(H);
117
- }
118
- function X(e) {
119
- let t = pe(e);
120
- return t.filter((e) => W(e) >= 0 && K(e, t));
121
- }
122
- function me(e, t) {
123
- let n = X(e), r = n.length;
124
- if (r === 0) return;
125
- let i = T(k(e)), a = n.indexOf(i);
126
- return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
127
- }
128
- function he(e) {
129
- return me(k(e).body, 1) || e;
130
- }
131
- function ge(e) {
132
- return me(k(e).body, -1) || e;
133
- }
134
- function _e(e, t) {
135
- if (!e) return null;
136
- let n = X(k(e).body), r = n.length;
137
- if (r === 0) return null;
138
- let i = n.indexOf(e);
139
- return i === -1 ? null : n[(i + t + r) % r];
140
- }
141
- function ve(e) {
142
- return _e(e, 1);
143
- }
144
- function ye(e) {
145
- return _e(e, -1);
146
- }
147
- function Z(e, t) {
148
- let n = t || e.currentTarget, r = e.relatedTarget;
149
- return !r || !w(n, r);
150
- }
151
- function be(e) {
152
- X(e).forEach((e) => {
153
- e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
154
- });
155
- }
156
- function xe(e) {
157
- let t = [];
158
- Y(e, "[data-tabindex]", t), t.forEach((e) => {
159
- let t = e.dataset.tabindex;
160
- delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
161
- });
162
- }
163
- //#endregion
164
- //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/useOnFirstRender.js
165
- function Se(e) {
166
- let t = M.useRef(!0);
167
- t.current && (t.current = !1, e());
168
- }
169
- //#endregion
170
- //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/mergeCleanups.js
171
- function Q(...e) {
172
- return () => {
173
- for (let t = 0; t < e.length; t += 1) {
174
- let n = e[t];
175
- n && n();
176
- }
177
- };
178
- }
179
- //#endregion
180
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/utils/FocusGuard.js
181
- var Ce = /*#__PURE__*/ M.forwardRef(function(e, n) {
182
- let [r, i] = M.useState();
183
- t(() => {
184
- C && i("button");
185
- }, []);
186
- let a = {
187
- tabIndex: 0,
188
- role: r
189
- };
190
- return /*#__PURE__*/ N("span", {
191
- ...e,
192
- ref: n,
193
- style: j,
194
- "aria-hidden": r ? void 0 : !0,
195
- ...a,
196
- "data-base-ui-focus-guard": ""
197
- });
198
- });
199
- process.env.NODE_ENV !== "production" && (Ce.displayName = "FocusGuard");
200
- //#endregion
201
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
202
- function we(e) {
203
- return `data-base-ui-${e}`;
204
- }
205
- //#endregion
206
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/internals/constants.js
207
- var Te = { style: { transition: "none" } }, Ee = "data-base-ui-click-trigger", De = { fallbackAxisSide: "none" }, Oe = { fallbackAxisSide: "end" }, ke = {
208
- clipPath: "inset(50%)",
209
- position: "fixed",
210
- top: 0,
211
- left: 0
212
- }, Ae = /*#__PURE__*/ M.createContext(null);
213
- process.env.NODE_ENV !== "production" && (Ae.displayName = "PortalContext");
214
- var je = () => M.useContext(Ae), Me = we("portal");
215
- function Ne(e = {}) {
216
- let { ref: n, container: r, componentProps: a = i, elementProps: s } = e, l = p(), u = je()?.portalNode, [d, f] = M.useState(null), [m, h] = M.useState(null), g = c((e) => {
217
- e !== null && h(e);
218
- }), _ = M.useRef(null);
219
- t(() => {
220
- if (r === null) {
221
- _.current && (_.current = null, h(null), f(null));
222
- return;
223
- }
224
- if (l == null) return;
225
- let e = (r && (S(r) ? r : r.current)) ?? u ?? document.body;
226
- if (e == null) {
227
- _.current && (_.current = null, h(null), f(null));
228
- return;
229
- }
230
- _.current !== e && (_.current = e, h(null), f(e));
231
- }, [
232
- r,
233
- u,
234
- l
235
- ]);
236
- let v = o("div", a, {
237
- ref: [n, g],
238
- props: [{
239
- id: l,
240
- [Me]: ""
241
- }, s]
242
- });
243
- return {
244
- portalNode: m,
245
- portalSubtree: d && v ? /*#__PURE__*/ F.createPortal(v, d) : null
246
- };
247
- }
248
- var Pe = /*#__PURE__*/ M.forwardRef(function(e, t) {
249
- let { render: n, className: r, style: i, children: a, container: o, renderGuards: s, ...c } = e, { portalNode: l, portalSubtree: u } = Ne({
250
- container: o,
251
- ref: t,
252
- componentProps: e,
253
- elementProps: c
254
- }), d = M.useRef(null), p = M.useRef(null), m = M.useRef(null), h = M.useRef(null), [g, _] = M.useState(null), v = M.useRef(!1), y = g?.modal, b = g?.open, x = typeof s == "boolean" ? s : !!g && !g.modal && g.open && !!l;
255
- M.useEffect(() => {
256
- if (!l || y) return;
257
- function e(e) {
258
- l && e.relatedTarget && Z(e) && (e.type === "focusin" ? v.current &&= (xe(l), !1) : (be(l), v.current = !0));
259
- }
260
- return Q(A(l, "focusin", e, !0), A(l, "focusout", e, !0));
261
- }, [l, y]), M.useEffect(() => {
262
- !l || b !== !1 || (xe(l), v.current = !1);
263
- }, [b, l]);
264
- let S = M.useMemo(() => ({
265
- beforeOutsideRef: d,
266
- afterOutsideRef: p,
267
- beforeInsideRef: m,
268
- afterInsideRef: h,
269
- portalNode: l,
270
- setFocusManagerState: _
271
- }), [l]);
272
- return /*#__PURE__*/ P(M.Fragment, { children: [u, /*#__PURE__*/ P(Ae.Provider, {
273
- value: S,
274
- children: [
275
- x && l && /*#__PURE__*/ N(Ce, {
276
- "data-type": "outside",
277
- ref: d,
278
- onFocus: (e) => {
279
- Z(e, l) ? m.current?.focus() : ge(g ? g.domReference : null)?.focus();
280
- }
281
- }),
282
- x && l && /*#__PURE__*/ N("span", {
283
- "aria-owns": l.id,
284
- style: ke
285
- }),
286
- l && /*#__PURE__*/ F.createPortal(a, l),
287
- x && l && /*#__PURE__*/ N(Ce, {
288
- "data-type": "outside",
289
- ref: p,
290
- onFocus: (e) => {
291
- Z(e, l) ? h.current?.focus() : (he(g ? g.domReference : null)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, f("focus-out", e.nativeEvent)));
292
- }
293
- })
294
- ]
295
- })] });
296
- });
297
- process.env.NODE_ENV !== "production" && (Pe.displayName = "FloatingPortal");
298
- //#endregion
299
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.js
300
- function Fe() {
301
- let e = /* @__PURE__ */ new Map();
302
- return {
303
- emit(t, n) {
304
- e.get(t)?.forEach((e) => e(n));
305
- },
306
- on(t, n) {
307
- e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
308
- },
309
- off(t, n) {
310
- e.get(t)?.delete(n);
311
- }
312
- };
313
- }
314
- //#endregion
315
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.js
316
- var Ie = class {
317
- nodesRef = { current: [] };
318
- events = Fe();
319
- addNode(e) {
320
- this.nodesRef.current.push(e);
321
- }
322
- removeNode(e) {
323
- let t = this.nodesRef.current.findIndex((t) => t === e);
324
- t !== -1 && this.nodesRef.current.splice(t, 1);
325
- }
326
- }, Le = /*#__PURE__*/ M.createContext(null);
327
- process.env.NODE_ENV !== "production" && (Le.displayName = "FloatingNodeContext");
328
- var Re = /*#__PURE__*/ M.createContext(null);
329
- process.env.NODE_ENV !== "production" && (Re.displayName = "FloatingTreeContext");
330
- var ze = () => M.useContext(Le)?.id || null, Be = (e) => {
331
- let t = M.useContext(Re);
332
- return e ?? t;
333
- };
334
- function Ve(e) {
335
- let n = p(), r = Be(e), i = ze();
336
- return t(() => {
337
- if (!n) return;
338
- let e = {
339
- id: n,
340
- parentId: i
341
- };
342
- return r?.addNode(e), () => {
343
- r?.removeNode(e);
344
- };
345
- }, [
346
- r,
347
- n,
348
- i
349
- ]), n;
350
- }
351
- function He(e) {
352
- let { children: t, id: n } = e, r = ze();
353
- return /*#__PURE__*/ N(Le.Provider, {
354
- value: M.useMemo(() => ({
355
- id: n,
356
- parentId: r
357
- }), [n, r]),
358
- children: t
359
- });
360
- }
361
- function Ue(e) {
362
- let { children: t, externalTree: n } = e, i = r(() => n ?? new Ie()).current;
363
- return /*#__PURE__*/ N(Re.Provider, {
364
- value: i,
365
- children: t
366
- });
367
- }
368
- //#endregion
369
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js
370
- var We = {
371
- intentional: "onClick",
372
- sloppy: "onPointerDown"
373
- };
374
- function Ge() {
375
- return !1;
376
- }
377
- function Ke(e) {
378
- return {
379
- escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
380
- outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
381
- };
382
- }
383
- function qe(e, t = {}) {
384
- let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o = Ge, referencePressEvent: s = "sloppy", bubbles: p, externalTree: m } = t, h = "rootStore" in e ? e.rootStore : e, g = h.useState("open"), _ = h.useState("floatingElement"), { dataRef: S } = h.context, C = Be(m), re = c(typeof i == "function" ? i : () => !1), T = typeof i == "function" ? re : i, oe = T !== !1, E = c(() => a), { escapeKey: O, outsidePress: ce } = Ke(p), j = M.useRef(!1), N = M.useRef(!1), P = M.useRef(!1), F = M.useRef(!1), I = M.useRef(""), L = M.useRef(null), R = le(), z = le(), B = c(() => {
385
- z.clear(), S.current.insideReactTree = !1;
386
- }), V = c((e) => {
387
- let t = S.current.floatingContext?.nodeId;
388
- return (C ? de(C.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
389
- }), H = c((e) => ae(e, h.select("floatingElement")) || ae(e, h.select("domReferenceElement"))), U = c((e) => {
390
- o() && h.setOpen(!1, f(l, e.nativeEvent));
391
- }), W = c((e) => {
392
- if (!g || !n || !r || e.key !== "Escape" || F.current || !O && V("__escapeKeyBubbles")) return;
393
- let t = f(d, D(e) ? e.nativeEvent : e);
394
- h.setOpen(!1, t), t.isCanceled || e.preventDefault(), !O && !t.isPropagationAllowed && e.stopPropagation();
395
- }), G = c(() => {
396
- S.current.insideReactTree = !0, z.start(0, B);
397
- }), K = c((e) => {
398
- if (!g || !n || e.button !== 0) return;
399
- let t = ie(e.nativeEvent);
400
- w(h.select("floatingElement"), t) && (j.current || (j.current = !0, N.current = !1));
401
- }), q = c((e) => {
402
- !g || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && j.current && (N.current = !0);
403
- });
404
- M.useEffect(() => {
405
- if (!g || !n) return;
406
- S.current.__escapeKeyBubbles = O, S.current.__outsidePressBubbles = ce;
407
- let e = new ue(), t = new ue();
408
- function i() {
409
- e.clear(), F.current = !0;
410
- }
411
- function a() {
412
- e.start(ne() ? 5 : 0, () => {
413
- F.current = !1;
414
- });
415
- }
416
- function o() {
417
- P.current = !0, t.start(0, () => {
418
- P.current = !1;
419
- });
420
- }
421
- function s() {
422
- j.current = !1, N.current = !1;
423
- }
424
- function c() {
425
- let e = I.current, t = e === "pen" || !e ? "mouse" : e, n = E(), r = typeof n == "function" ? n() : n;
426
- return typeof r == "string" ? r : r[t];
427
- }
428
- function l(e) {
429
- let t = c();
430
- return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
431
- }
432
- function d(e) {
433
- let t = S.current.floatingContext?.nodeId, n = C && de(C.nodesRef.current, t).some((t) => ae(e, t.context?.elements.floating));
434
- return H(e) || n;
435
- }
436
- function p(e) {
437
- if (l(e)) {
438
- e.type !== "click" && !H(e) && (t.clear(), P.current = !1), B();
439
- return;
440
- }
441
- if (S.current.insideReactTree) {
442
- B();
443
- return;
444
- }
445
- let n = ie(e), r = `[${we("inert")}]`, i = y(n) ? n.getRootNode() : null, a = Array.from((x(i) ? i : k(h.select("floatingElement"))).querySelectorAll(r)), o = h.context.triggerElements;
446
- if (n && (o.hasElement(n) || o.hasMatchingElement((e) => w(e, n)))) return;
447
- let s = y(n) ? n : null;
448
- for (; s && !ee(s);) {
449
- let e = v(s);
450
- if (ee(e) || !y(e)) break;
451
- s = e;
452
- }
453
- if (!(a.length && y(n) && !se(n) && !w(n, h.select("floatingElement")) && a.every((e) => !w(s, e)))) {
454
- if (b(n) && !("touches" in e)) {
455
- let t = ee(n), r = te(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;
456
- if (u || d) return;
457
- }
458
- if (!d(e)) {
459
- if (c() === "intentional" && P.current) {
460
- t.clear(), P.current = !1;
461
- return;
462
- }
463
- typeof T == "function" && !T(e) || V("__outsidePressBubbles") || (h.setOpen(!1, f(u, e)), B());
464
- }
465
- }
466
- }
467
- function m(e) {
468
- c() !== "sloppy" || e.pointerType === "touch" || !h.select("open") || !n || H(e) || p(e);
469
- }
470
- function re(e) {
471
- if (c() !== "sloppy" || !h.select("open") || !n || H(e)) return;
472
- let t = e.touches[0];
473
- t && (L.current = {
474
- startTime: Date.now(),
475
- startX: t.clientX,
476
- startY: t.clientY,
477
- dismissOnTouchEnd: !1,
478
- dismissOnMouseDown: !0
479
- }, R.start(1e3, () => {
480
- L.current && (L.current.dismissOnTouchEnd = !1, L.current.dismissOnMouseDown = !1);
481
- }));
482
- }
483
- function D(e, t) {
484
- let n = ie(e);
485
- if (!n) return;
486
- let r = A(n, e.type, () => {
487
- t(e), r();
488
- });
489
- }
490
- function le(e) {
491
- I.current = "touch", D(e, re);
492
- }
493
- function M(e) {
494
- R.clear(), e.type === "pointerdown" && (I.current = e.pointerType), !(e.type === "mousedown" && L.current && !L.current.dismissOnMouseDown) && D(e, (e) => {
495
- e.type === "pointerdown" ? m(e) : p(e);
496
- });
497
- }
498
- function z(e) {
499
- if (!j.current) return;
500
- let n = N.current;
501
- if (s(), c() === "intentional") {
502
- if (e.type === "pointercancel") {
503
- n && o();
504
- return;
505
- }
506
- if (!d(e)) {
507
- if (n) {
508
- o();
509
- return;
510
- }
511
- typeof T == "function" && !T(e) || (t.clear(), P.current = !0, B());
512
- }
513
- }
514
- }
515
- function U(e) {
516
- if (c() !== "sloppy" || !L.current || H(e)) return;
517
- let t = e.touches[0];
518
- if (!t) return;
519
- let n = Math.abs(t.clientX - L.current.startX), r = Math.abs(t.clientY - L.current.startY), i = Math.sqrt(n * n + r * r);
520
- i > 5 && (L.current.dismissOnTouchEnd = !0), i > 10 && (p(e), R.clear(), L.current = null);
521
- }
522
- function G(e) {
523
- D(e, U);
524
- }
525
- function K(e) {
526
- c() !== "sloppy" || !L.current || H(e) || (L.current.dismissOnTouchEnd && p(e), R.clear(), L.current = null);
527
- }
528
- function q(e) {
529
- D(e, K);
530
- }
531
- let J = k(_), Y = Q(r && Q(A(J, "keydown", W), A(J, "compositionstart", i), A(J, "compositionend", a)), oe && Q(A(J, "click", M, !0), A(J, "pointerdown", M, !0), A(J, "pointerup", z, !0), A(J, "pointercancel", z, !0), A(J, "mousedown", M, !0), A(J, "mouseup", z, !0), A(J, "touchstart", le, !0), A(J, "touchmove", G, !0), A(J, "touchend", q, !0)));
532
- return () => {
533
- Y(), e.clear(), t.clear(), s(), P.current = !1;
534
- };
535
- }, [
536
- S,
537
- _,
538
- r,
539
- oe,
540
- T,
541
- g,
542
- n,
543
- O,
544
- ce,
545
- W,
546
- B,
547
- E,
548
- V,
549
- H,
550
- C,
551
- h,
552
- R
553
- ]), M.useEffect(B, [T, B]);
554
- let J = M.useMemo(() => ({
555
- onKeyDown: W,
556
- [We[s]]: U,
557
- ...s !== "intentional" && { onClick: U }
558
- }), [
559
- W,
560
- U,
561
- s
562
- ]), Y = M.useMemo(() => ({
563
- onKeyDown: W,
564
- onPointerDown: q,
565
- onMouseDown: q,
566
- onClickCapture: G,
567
- onMouseDownCapture(e) {
568
- G(), K(e);
569
- },
570
- onPointerDownCapture(e) {
571
- G(), K(e);
572
- },
573
- onMouseUpCapture: G,
574
- onTouchEndCapture: G,
575
- onTouchMoveCapture: G
576
- }), [
577
- W,
578
- G,
579
- K,
580
- q
581
- ]);
582
- return M.useMemo(() => n ? {
583
- reference: J,
584
- floating: Y,
585
- trigger: J
586
- } : {}, [
587
- n,
588
- J,
589
- Y
590
- ]);
591
- }
592
- //#endregion
593
- //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/createSelector.js
594
- var $ = (e, t, n, r, i, a, ...o) => {
595
- if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? s(1) : "Unsupported number of selectors");
596
- let c;
597
- if (e && t && n && r && i && a) c = (o, s, c, l) => a(e(o, s, c, l), t(o, s, c, l), n(o, s, c, l), r(o, s, c, l), i(o, s, c, l), s, c, l);
598
- else if (e && t && n && r && i) c = (a, o, s, c) => i(e(a, o, s, c), t(a, o, s, c), n(a, o, s, c), r(a, o, s, c), o, s, c);
599
- else if (e && t && n && r) c = (i, a, o, s) => r(e(i, a, o, s), t(i, a, o, s), n(i, a, o, s), a, o, s);
600
- else if (e && t && n) c = (r, i, a, o) => n(e(r, i, a, o), t(r, i, a, o), i, a, o);
601
- else if (e && t) c = (n, r, i, a) => t(e(n, r, i, a), r, i, a);
602
- else if (e) c = e;
603
- else throw Error("Missing arguments");
604
- return c;
605
- }, Je = /* @__PURE__ */ e(((e) => {
606
- var t = oe(), n = E();
607
- function r(e, t) {
608
- return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
609
- }
610
- var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;
611
- e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
612
- var d = o(null);
613
- if (d.current === null) {
614
- var f = {
615
- hasValue: !1,
616
- value: null
617
- };
618
- d.current = f;
619
- } else f = d.current;
620
- d = c(function() {
621
- function e(e) {
622
- if (!a) {
623
- if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
624
- var t = f.value;
625
- if (u(t, e)) return s = t;
626
- }
627
- return s = e;
628
- }
629
- if (t = s, i(o, e)) return t;
630
- var n = r(e);
631
- return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
632
- }
633
- var a = !1, o, s, c = n === void 0 ? null : n;
634
- return [function() {
635
- return e(t());
636
- }, c === null ? void 0 : function() {
637
- return e(c());
638
- }];
639
- }, [
640
- t,
641
- n,
642
- r,
643
- u
644
- ]);
645
- var p = a(e, d[0], d[1]);
646
- return s(function() {
647
- f.hasValue = !0, f.value = p;
648
- }, [p]), l(p), p;
649
- };
650
- })), Ye = /* @__PURE__ */ e(((e) => {
651
- process.env.NODE_ENV !== "production" && (function() {
652
- function t(e, t) {
653
- return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
654
- }
655
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
656
- var n = oe(), r = E(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
657
- e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
658
- var d = o(null);
659
- if (d.current === null) {
660
- var f = {
661
- hasValue: !1,
662
- value: null
663
- };
664
- d.current = f;
665
- } else f = d.current;
666
- d = c(function() {
667
- function e(e) {
668
- if (!a) {
669
- if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
670
- var t = f.value;
671
- if (u(t, e)) return s = t;
672
- }
673
- return s = e;
674
- }
675
- if (t = s, i(o, e)) return t;
676
- var n = r(e);
677
- return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
678
- }
679
- var a = !1, o, s, c = n === void 0 ? null : n;
680
- return [function() {
681
- return e(t());
682
- }, c === null ? void 0 : function() {
683
- return e(c());
684
- }];
685
- }, [
686
- t,
687
- n,
688
- r,
689
- u
690
- ]);
691
- var p = a(e, d[0], d[1]);
692
- return s(function() {
693
- f.hasValue = !0, f.value = p;
694
- }, [p]), l(p), p;
695
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
696
- })();
697
- })), Xe = /* @__PURE__ */ e(((e, t) => {
698
- process.env.NODE_ENV === "production" ? t.exports = Je() : t.exports = Ye();
699
- })), Ze = E(), Qe = Xe(), $e = [], et = void 0;
700
- function tt() {
701
- return et;
702
- }
703
- function nt(e) {
704
- $e.push(e);
705
- }
706
- function rt(e) {
707
- let t = (t, n) => {
708
- let i = r(at).current, a;
709
- try {
710
- et = i;
711
- for (let e of $e) e.before(i);
712
- a = e(t, n);
713
- for (let e of $e) e.after(i);
714
- i.didInitialize = !0;
715
- } finally {
716
- et = void 0;
717
- }
718
- return a;
719
- };
720
- return t.displayName = e.displayName || e.name, t;
721
- }
722
- function it(e) {
723
- return /*#__PURE__*/ M.forwardRef(rt(e));
724
- }
725
- function at() {
726
- return { didInitialize: !1 };
727
- }
728
- //#endregion
729
- //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/useStore.js
730
- var ot = n(19) ? lt : ut;
731
- function st(e, t, n, r, i) {
732
- return ot(e, t, n, r, i);
733
- }
734
- function ct(e, t, n, r, i) {
735
- let a = M.useCallback(() => t(e.getSnapshot(), n, r, i), [
736
- e,
737
- t,
738
- n,
739
- r,
740
- i
741
- ]);
742
- return (0, Ze.useSyncExternalStore)(e.subscribe, a, a);
743
- }
744
- nt({
745
- before(e) {
746
- e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
747
- let t = !1;
748
- for (let n = 0; n < e.syncHooks.length; n += 1) {
749
- let r = e.syncHooks[n], i = r.selector(r.store.state, r.a1, r.a2, r.a3);
750
- (r.didChange || !Object.is(r.value, i)) && (t = !0, r.value = i, r.didChange = !1);
751
- }
752
- return t && (e.syncTick += 1), e.syncTick;
753
- });
754
- },
755
- after(e) {
756
- e.syncHooks.length > 0 && (e.didChangeStore && (e.didChangeStore = !1, e.subscribe = (t) => {
757
- let n = /* @__PURE__ */ new Set();
758
- for (let t of e.syncHooks) n.add(t.store);
759
- let r = [];
760
- for (let e of n) r.push(e.subscribe(t));
761
- return () => {
762
- for (let e of r) e();
763
- };
764
- }), (0, Ze.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
765
- }
766
- });
767
- function lt(e, t, n, r, i) {
768
- let a = tt();
769
- if (!a) return ct(e, t, n, r, i);
770
- let o = a.syncIndex;
771
- a.syncIndex += 1;
772
- let s;
773
- return a.didInitialize ? (s = a.syncHooks[o], (s.store !== e || s.selector !== t || !Object.is(s.a1, n) || !Object.is(s.a2, r) || !Object.is(s.a3, i)) && (s.store !== e && (a.didChangeStore = !0), s.store = e, s.selector = t, s.a1 = n, s.a2 = r, s.a3 = i, s.didChange = !0)) : (s = {
774
- store: e,
775
- selector: t,
776
- a1: n,
777
- a2: r,
778
- a3: i,
779
- value: t(e.getSnapshot(), n, r, i),
780
- didChange: !1
781
- }, a.syncHooks.push(s)), s.value;
782
- }
783
- function ut(e, t, n, r, i) {
784
- return (0, Qe.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
785
- }
786
- //#endregion
787
- //#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/Store.js
788
- var dt = class {
789
- constructor(e) {
790
- this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
791
- }
792
- subscribe = (e) => (this.listeners.add(e), () => {
793
- this.listeners.delete(e);
794
- });
795
- getSnapshot = () => this.state;
796
- setState(e) {
797
- if (this.state === e) return;
798
- this.state = e, this.updateTick += 1;
799
- let t = this.updateTick;
800
- for (let n of this.listeners) {
801
- if (t !== this.updateTick) return;
802
- n(e);
803
- }
804
- }
805
- update(e) {
806
- for (let t in e) if (!Object.is(this.state[t], e[t])) {
807
- this.setState({
808
- ...this.state,
809
- ...e
810
- });
811
- return;
812
- }
813
- }
814
- set(e, t) {
815
- Object.is(this.state[e], t) || this.setState({
816
- ...this.state,
817
- [e]: t
818
- });
819
- }
820
- notifyAll() {
821
- let e = { ...this.state };
822
- this.setState(e);
823
- }
824
- use(e, t, n, r) {
825
- return st(this, e, t, n, r);
826
- }
827
- }, ft = class extends dt {
828
- constructor(e, t = {}, n) {
829
- super(e), this.context = t, this.selectors = n;
830
- }
831
- useSyncedValue(e, n) {
832
- M.useDebugValue(e);
833
- let r = this;
834
- t(() => {
835
- r.state[e] !== n && r.set(e, n);
836
- }, [
837
- r,
838
- e,
839
- n
840
- ]);
841
- }
842
- useSyncedValueWithCleanup(e, n) {
843
- let r = this;
844
- t(() => (r.state[e] !== n && r.set(e, n), () => {
845
- r.set(e, void 0);
846
- }), [
847
- r,
848
- e,
849
- n
850
- ]);
851
- }
852
- useSyncedValues(e) {
853
- let n = this;
854
- if (process.env.NODE_ENV !== "production") {
855
- M.useDebugValue(e, (e) => Object.keys(e));
856
- let t = M.useRef(Object.keys(e)).current, n = Object.keys(e);
857
- (t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
858
- }
859
- t(() => {
860
- n.update(e);
861
- }, [n, ...Object.values(e)]);
862
- }
863
- useControlledProp(e, n) {
864
- M.useDebugValue(e);
865
- let r = this, i = n !== void 0;
866
- if (t(() => {
867
- i && !Object.is(r.state[e], n) && r.setState({
868
- ...r.state,
869
- [e]: n
870
- });
871
- }, [
872
- r,
873
- e,
874
- n,
875
- i
876
- ]), process.env.NODE_ENV !== "production") {
877
- let t = this.controlledValues ??= /* @__PURE__ */ new Map();
878
- t.has(e) || t.set(e, i);
879
- let n = t.get(e);
880
- n !== void 0 && n !== i && console.error(`A component is changing the ${i ? "" : "un"}controlled state of ${e.toString()} to be ${i ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
881
- }
882
- }
883
- select(e, t, n, r) {
884
- let i = this.selectors[e];
885
- return i(this.state, t, n, r);
886
- }
887
- useState(e, t, n, r) {
888
- return M.useDebugValue(e), st(this, this.selectors[e], t, n, r);
889
- }
890
- useContextCallback(e, t) {
891
- M.useDebugValue(e);
892
- let n = c(t ?? a);
893
- this.context[e] = n;
894
- }
895
- useStateSetter(e) {
896
- let t = M.useRef(void 0);
897
- return t.current === void 0 && (t.current = (t) => {
898
- this.set(e, t);
899
- }), t.current;
900
- }
901
- observe(e, t) {
902
- let n;
903
- n = typeof e == "function" ? e : this.selectors[e];
904
- let r = n(this.state);
905
- return t(r, r, this), this.subscribe((e) => {
906
- let i = n(e);
907
- if (!Object.is(r, i)) {
908
- let e = r;
909
- r = i, t(i, e, this);
910
- }
911
- });
912
- }
913
- }, pt = {
914
- open: $((e) => e.open),
915
- transitionStatus: $((e) => e.transitionStatus),
916
- domReferenceElement: $((e) => e.domReferenceElement),
917
- referenceElement: $((e) => e.positionReference ?? e.referenceElement),
918
- floatingElement: $((e) => e.floatingElement),
919
- floatingId: $((e) => e.floatingId)
920
- }, mt = class extends ft {
921
- constructor(e) {
922
- let { syncOnly: t, nested: n, onOpenChange: r, triggerElements: i, ...a } = e;
923
- super({
924
- ...a,
925
- positionReference: a.referenceElement,
926
- domReferenceElement: a.referenceElement
927
- }, {
928
- onOpenChange: r,
929
- dataRef: { current: {} },
930
- events: Fe(),
931
- nested: n,
932
- triggerElements: i
933
- }, pt), this.syncOnly = t;
934
- }
935
- syncOpenEvent = (e, t) => {
936
- (!e || !this.state.open || t != null && O(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
937
- };
938
- dispatchOpenChange = (e, t) => {
939
- this.syncOpenEvent(e, t.event);
940
- let n = {
941
- open: e,
942
- reason: t.reason,
943
- nativeEvent: t.event,
944
- nested: this.context.nested,
945
- triggerElement: t.trigger
946
- };
947
- this.context.events.emit("openchange", n);
948
- };
949
- setOpen = (e, t) => {
950
- if (this.syncOnly) {
951
- this.context.onOpenChange?.(e, t);
952
- return;
953
- }
954
- this.dispatchOpenChange(e, t), this.context.onOpenChange?.(e, t);
955
- };
956
- };
957
- //#endregion
958
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
959
- function ht(e) {
960
- let { popupStore: n, treatPopupAsFloatingElement: r = !1, floatingRootContext: i, floatingId: a, nested: o, onOpenChange: s } = e, c = n.useState("open"), l = n.useState("activeTriggerElement"), u = n.useState(r ? "popupElement" : "positionerElement"), d = n.context.triggerElements, f = s, p = M.useRef(null);
961
- i === void 0 && p.current === null && (p.current = new mt({
962
- open: c,
963
- transitionStatus: void 0,
964
- referenceElement: l,
965
- floatingElement: u,
966
- triggerElements: d,
967
- onOpenChange: f,
968
- floatingId: a,
969
- syncOnly: !0,
970
- nested: o
971
- }));
972
- let m = i ?? p.current;
973
- return n.useSyncedValue("floatingId", a), t(() => {
974
- let e = {
975
- open: c,
976
- floatingId: a,
977
- referenceElement: l,
978
- floatingElement: u
979
- };
980
- y(l) && (e.domReferenceElement = l), m.state.positionReference === m.state.referenceElement && (e.positionReference = l), m.update(e);
981
- }, [
982
- c,
983
- a,
984
- l,
985
- u,
986
- m
987
- ]), m.context.onOpenChange = f, m.context.nested = o, m;
988
- }
989
- //#endregion
990
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
991
- var gt = {
992
- tabIndex: -1,
993
- [re]: ""
994
- };
995
- function _t(e, t, n = !1) {
996
- let r = p(), i = ze() != null, a = M.useRef(null);
997
- e === void 0 && a.current === null && (a.current = t(r, i));
998
- let o = e ?? a.current;
999
- return ht({
1000
- popupStore: o,
1001
- treatPopupAsFloatingElement: n,
1002
- floatingRootContext: o.state.floatingRootContext,
1003
- floatingId: r,
1004
- nested: i,
1005
- onOpenChange: o.setOpen
1006
- }), {
1007
- store: o,
1008
- internalStore: a.current
1009
- };
1010
- }
1011
- function vt(e, t) {
1012
- let n = M.useRef(null), r = M.useRef(null);
1013
- return M.useCallback((i) => {
1014
- if (e === void 0) return;
1015
- let a = !1;
1016
- if (n.current !== null) {
1017
- let e = n.current, i = r.current, o = t.context.triggerElements.getById(e);
1018
- i && o === i && (t.context.triggerElements.delete(e), a = !0), n.current = null, r.current = null;
1019
- }
1020
- if (i !== null && (n.current = e, r.current = i, t.context.triggerElements.add(e, i), a = !0), a) {
1021
- let e = t.context.triggerElements.size;
1022
- t.select("open") && t.state.triggerCount !== e && t.set("triggerCount", e);
1023
- }
1024
- }, [t, e]);
1025
- }
1026
- function yt(e, t, n) {
1027
- let r = n?.id ?? null;
1028
- (r || t) && (e.activeTriggerId = r, e.activeTriggerElement = n ?? null);
1029
- }
1030
- function bt(e, n, r, i) {
1031
- let a = r.useState("isMountedByTrigger", e), o = vt(e, r), s = c((t) => {
1032
- if (o(t), !t) return;
1033
- let n = r.select("open"), a = r.select("activeTriggerId");
1034
- if (a === e) {
1035
- r.update({
1036
- activeTriggerElement: t,
1037
- ...n ? i : null
1038
- });
1039
- return;
1040
- }
1041
- a == null && n && r.update({
1042
- activeTriggerId: e,
1043
- activeTriggerElement: t,
1044
- ...i
1045
- });
1046
- });
1047
- return t(() => {
1048
- a && r.update({
1049
- activeTriggerElement: n.current,
1050
- ...i
1051
- });
1052
- }, [
1053
- a,
1054
- r,
1055
- n,
1056
- ...Object.values(i)
1057
- ]), {
1058
- registerTrigger: s,
1059
- isMountedByThisTrigger: a
1060
- };
1061
- }
1062
- function xt(e) {
1063
- let n = e.useState("open");
1064
- t(() => {
1065
- if (!n) {
1066
- e.state.triggerCount !== 0 && e.set("triggerCount", 0);
1067
- return;
1068
- }
1069
- let t = e.context.triggerElements.size, r = {};
1070
- if (e.state.triggerCount !== t && (r.triggerCount = t), !e.select("activeTriggerId") && t === 1) {
1071
- let t = e.context.triggerElements.entries().next();
1072
- if (!t.done) {
1073
- let [e, n] = t.value;
1074
- r.activeTriggerId = e, r.activeTriggerElement = n;
1075
- }
1076
- }
1077
- (r.triggerCount !== void 0 || r.activeTriggerId !== void 0) && e.update(r);
1078
- }, [
1079
- n,
1080
- e,
1081
- e.useState("triggerCount")
1082
- ]);
1083
- }
1084
- function St(e, t, n) {
1085
- let { mounted: r, setMounted: i, transitionStatus: a } = h(e);
1086
- t.useSyncedValues({
1087
- mounted: r,
1088
- transitionStatus: a
1089
- });
1090
- let o = c(() => {
1091
- i(!1), t.update({
1092
- activeTriggerId: null,
1093
- activeTriggerElement: null,
1094
- mounted: !1,
1095
- preventUnmountingOnClose: !1
1096
- }), n?.(), t.context.onOpenChangeComplete?.(!1);
1097
- }), s = t.useState("preventUnmountingOnClose");
1098
- return g({
1099
- enabled: r && !e && !s,
1100
- open: e,
1101
- ref: t.context.popupRef,
1102
- onComplete() {
1103
- e || o();
1104
- }
1105
- }), {
1106
- forceUnmount: o,
1107
- transitionStatus: a
1108
- };
1109
- }
1110
- function Ct(e, n) {
1111
- e.useSyncedValues(n), t(() => () => {
1112
- e.update({
1113
- activeTriggerProps: i,
1114
- inactiveTriggerProps: i,
1115
- popupProps: i
1116
- });
1117
- }, [e]);
1118
- }
1119
- function wt(e, n) {
1120
- t(() => {
1121
- !n && e.state.openMethod !== null && e.set("openMethod", null);
1122
- }, [n, e]), t(() => () => {
1123
- e.state.openMethod !== null && e.set("openMethod", null);
1124
- }, [e]);
1125
- }
1126
- //#endregion
1127
- //#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.js
1128
- var Tt = class {
1129
- constructor() {
1130
- this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
1131
- }
1132
- add(e, t) {
1133
- let n = this.idMap.get(e);
1134
- 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.");
1135
- }
1136
- delete(e) {
1137
- let t = this.idMap.get(e);
1138
- t && (this.elementsSet.delete(t), this.idMap.delete(e));
1139
- }
1140
- hasElement(e) {
1141
- return this.elementsSet.has(e);
1142
- }
1143
- hasMatchingElement(e) {
1144
- for (let t of this.elementsSet) if (e(t)) return !0;
1145
- return !1;
1146
- }
1147
- getById(e) {
1148
- return this.idMap.get(e);
1149
- }
1150
- entries() {
1151
- return this.idMap.entries();
1152
- }
1153
- elements() {
1154
- return this.elementsSet.values();
1155
- }
1156
- get size() {
1157
- return this.idMap.size;
1158
- }
1159
- }, Et = function(e) {
1160
- return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = m.startingStyle] = "startingStyle", e[e.endingStyle = m.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
1161
- }({}), Dt = /*#__PURE__*/ function(e) {
1162
- return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
1163
- }({}), Ot = { [Dt.popupOpen]: "" }, kt = {
1164
- [Dt.popupOpen]: "",
1165
- [Dt.pressed]: ""
1166
- }, At = { [Et.open]: "" }, jt = { [Et.closed]: "" }, Mt = { [Et.anchorHidden]: "" }, Nt = { open(e) {
1167
- return e ? Ot : null;
1168
- } }, Pt = { open(e) {
1169
- return e ? kt : null;
1170
- } }, Ft = {
1171
- open(e) {
1172
- return e ? At : jt;
1173
- },
1174
- anchorHidden(e) {
1175
- return e ? Mt : null;
1176
- }
1177
- };
1178
- //#endregion
1179
- export { Ie as A, Q as B, $ as C, Ve as D, Ue as E, Te as F, ve as G, pe as H, De as I, fe as J, ye as K, Oe as L, Ne as M, je as N, ze as O, Ee as P, we as R, it as S, He as T, he as U, Se as V, ge as W, I as X, X as Y, de as Z, mt as _, Nt as a, st as b, yt as c, Ct as d, wt as f, ht as g, vt as h, Pt as i, Pe as j, Be as k, xt as l, bt as m, Dt as n, Tt as o, _t as p, Z as q, Ft as r, gt as s, Et as t, St as u, ft as v, qe as w, rt as x, dt as y, Ce as z };