@arcadeai/design-system 5.0.0 → 5.0.2

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