@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.
- package/dist/{CompositeItem-BWqRobLN.js → CompositeItem-RsjiqT-t.js} +3 -3
- package/dist/{CompositeList-DJUJLDbx.js → CompositeList-BUPONQmB.js} +5 -5
- package/dist/CompositeRoot-B_7HJZA1.js +166 -0
- package/dist/DialogRoot-xodRxCJ6.js +9 -0
- package/dist/DialogTrigger-BRWKaMYv.js +370 -0
- package/dist/{DirectionContext-B4CbbM--.js → DirectionContext-OzWG1tsQ.js} +1 -1
- package/dist/{FieldItemContext-4qBxodsW.js → FieldItemContext-C6kLzkCC.js} +1 -1
- package/dist/{FloatingPortalLite-B1JyBlt0.js → FloatingPortalLite-e0IaokaG.js} +2 -2
- package/dist/{LabelableContext-Q1Z-xUI9.js → LabelableContext-C6DIbcnY.js} +34 -18
- package/dist/{Separator-CgntgfMd.js → Separator-CJ3Gn6wf.js} +2 -2
- package/dist/{StickToBottom-CU0d65a_.js → StickToBottom-Bh9VDiPm.js} +3 -3
- package/dist/Toggle-waFXW8db.js +74 -0
- package/dist/{ToolbarRootContext-DVNA8Vkb.js → ToolbarRootContext-CDm74ob9.js} +2 -2
- package/dist/accordion-DimUia61.js +314 -0
- package/dist/{addEventListener-B4Gs94GY.js → addEventListener-BlQH_qk1.js} +1 -1
- package/dist/{alert-dialog-tBMDYzJ3.js → alert-dialog-BiDZwtP2.js} +4 -4
- package/dist/{angular-html-BDzibLIk.js → angular-html-CmQQGj3Q.js} +2 -2
- package/dist/{angular-html-D85fwMJh.js → angular-html-DkEUN79G.js} +2 -2
- package/dist/{angular-ts-D81F0-9A.js → angular-ts-4H9Tgcds.js} +2 -2
- package/dist/{angular-ts-C3bnauCX.js → angular-ts-wkihi9GZ.js} +2 -2
- package/dist/{apl-92oxg4m4.js → apl-C_-_9Ip6.js} +5 -5
- package/dist/assets/icons/microsoft-power-bi.js +88 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/{astro-BmZ7vV4W.js → astro-DKp4HZqy.js} +5 -5
- package/dist/{astro-Up1TtKOj.js → astro-nonP8tBz.js} +4 -4
- package/dist/{avatar-BSYWkGGc.js → avatar-B-lhJ-Gz.js} +35 -36
- package/dist/{blade-CpVdu14g.js → blade-6azK5Bl7.js} +6 -6
- package/dist/{blade-CsxOO3tZ.js → blade-Bm1wiaIl.js} +7 -7
- package/dist/{button-BNOmhdpM.js → button-BdQxLUOB.js} +3 -3
- package/dist/{c-CoKjrVSd.js → c-BLhjukKD.js} +1 -1
- package/dist/{c-DtxJex1m.js → c-D23WKKVZ.js} +1 -1
- package/dist/{calendar-DizaWURn.js → calendar-Ctzadwv-.js} +98 -97
- package/dist/checkbox-CZViOGvt.js +273 -0
- package/dist/{clamp-DQAQAGkj.js → clamp-DV0oJUnl.js} +2 -2
- package/dist/{cobol-DW9I8MrZ.js → cobol-cEewS-ES.js} +2 -2
- package/dist/{coffee-IcWixSuh.js → coffee-BWa7CtjQ.js} +1 -1
- package/dist/{coffee-B9lToztK.js → coffee-QapU4XnI.js} +1 -1
- package/dist/{collapsible-Dt__KKUJ.js → collapsible-DlF1q_cg.js} +14 -14
- package/dist/{command-ChimIUHM.js → command-DC-ESQ0C.js} +25 -25
- package/dist/components/index.js +147 -146
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar.js +1 -1
- package/dist/components/ui/atoms/badge.js +2 -2
- package/dist/components/ui/atoms/breadcrumb.js +2 -2
- package/dist/components/ui/atoms/button.js +1 -1
- package/dist/components/ui/atoms/calendar.js +1 -1
- package/dist/components/ui/atoms/chart.d.ts.map +1 -1
- package/dist/components/ui/atoms/chart.js +7 -7
- package/dist/components/ui/atoms/chat-container.js +1 -1
- package/dist/components/ui/atoms/checkbox.js +1 -1
- package/dist/components/ui/atoms/code-block.js +1 -1
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.js +1 -1
- package/dist/components/ui/atoms/compute-flow-paths.js +16 -16
- package/dist/components/ui/atoms/copy-button.js +1 -1
- package/dist/components/ui/atoms/dialog.js +3 -3
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/form.d.ts +1 -1
- package/dist/components/ui/atoms/form.d.ts.map +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +63 -62
- package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts +4 -0
- package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/microsoft-power-bi.js +82 -0
- package/dist/components/ui/atoms/index.js +104 -103
- package/dist/components/ui/atoms/input-group.js +2 -2
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/json-highlight.d.ts +2 -2
- package/dist/components/ui/atoms/json-highlight.d.ts.map +1 -1
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/progress.js +1 -1
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +3 -3
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/separator.js +1 -1
- package/dist/components/ui/atoms/sheet.js +3 -3
- package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
- package/dist/components/ui/atoms/sidebar.js +5 -5
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/sparkle-burst.d.ts.map +1 -1
- package/dist/components/ui/atoms/switch.js +1 -1
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/toggle-group.js +1 -1
- package/dist/components/ui/atoms/toggle.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/atoms/view-tools-control.js +1 -1
- package/dist/components/ui/atoms/virtualized-grid.js +1 -1
- package/dist/components/ui/blocks/demo.js +4 -4
- package/dist/components/ui/index.js +147 -146
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/client-secret-field.js +2 -2
- package/dist/components/ui/molecules/command-bar.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +2 -2
- package/dist/components/ui/molecules/date-time-picker.js +4 -4
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +4 -4
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +5 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.js +26 -32
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +1 -1
- package/dist/components/ui/molecules/message.d.ts.map +1 -1
- package/dist/components/ui/molecules/message.js +3 -3
- package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/steps-progress.js +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +3 -3
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/user-nav.js +3 -3
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +30 -29
- package/dist/components/ui/pages/login-page.js +1 -1
- package/dist/composite-B-tEa-Zg.js +169 -0
- package/dist/{composite-BlDfbDkL.js → composite-COXvAbcT.js} +5 -5
- package/dist/constants-ouS7wtUt.js +5 -0
- package/dist/{cpp-BLc8IWxi.js → cpp-BBpqpcUG.js} +4 -4
- package/dist/{cpp-BEQCV3s5.js → cpp-CenmDznH.js} +3 -3
- package/dist/{createBaseUIEventDetails-ChcQXp54.js → createBaseUIEventDetails-C_dwdqj4.js} +3 -3
- package/dist/{crystal-Bpo57dB-.js → crystal-Cjt-cWZ3.js} +6 -6
- package/dist/{css-DSy_xl5Z.js → css-BT0UpMRG.js} +1 -1
- package/dist/{css-DcJEitGa.js → css-QsZubv6P.js} +1 -1
- package/dist/{dropdown-menu-dsg43mOw.js → dropdown-menu-CWWN1cXs.js} +515 -520
- package/dist/{edge-Crbn4Nhk.js → edge-nqxIbnup.js} +3 -3
- package/dist/{elixir-CIj8u1AY.js → elixir-IwV7soxp.js} +1 -1
- package/dist/{elm-CfYD1d_e.js → elm-Ogf1arfY.js} +1 -1
- package/dist/engine-ChH4dTze.js +6 -0
- package/dist/{erb-BJQo6_56.js → erb-BBpN-Ldx.js} +2 -2
- package/dist/{error-CAd3pM3X.js → error-C8bGkT0l.js} +1 -1
- package/dist/getPseudoElementBounds-D_dlkPnQ.js +345 -0
- package/dist/{git-rebase-DVA6p9-5.js → git-rebase-CqAmS_sI.js} +1 -1
- package/dist/{glimmer-js-DVJpm-CV.js → glimmer-js-C7DUODof.js} +4 -4
- package/dist/{glimmer-ts-kH8c2RJ9.js → glimmer-ts-DI4G9vW_.js} +4 -4
- package/dist/{glsl-Ckye8FrQ.js → glsl-CUfKtNbE.js} +2 -2
- package/dist/{glsl-7eSg02Gr.js → glsl-Cq85X97E.js} +2 -2
- package/dist/{graphql-CE7EXOgY.js → graphql-BCsR6dTa.js} +4 -4
- package/dist/{graphql-DEzE15R4.js → graphql-BsbTr8W_.js} +5 -5
- package/dist/{hack-o7fvIqt8.js → hack-bqdf8rRJ.js} +2 -2
- package/dist/{haml-BP5AnOwP.js → haml-BJXnS8Xp.js} +2 -2
- package/dist/{haml-C5GSorf3.js → haml-CWQgvV8s.js} +3 -3
- package/dist/{handlebars-Bhpj_d0s.js → handlebars-CKAb2CPX.js} +4 -4
- package/dist/{handlebars-BjC-t2fq.js → handlebars-DMloI5gH.js} +3 -3
- package/dist/{highlighted-body-OFNGDK62-BoSFtT5s.js → highlighted-body-OFNGDK62-BegvjYf8.js} +1 -1
- package/dist/{hover-card-z1GPavWa.js → hover-card-GELKDadU.js} +145 -157
- package/dist/{html-Ct25QrQu.js → html-CwG5RUst.js} +3 -3
- package/dist/{html-D4w9Dm28.js → html-DKmZbgBt.js} +3 -3
- package/dist/{html-derivative-Bj-VxhMx.js → html-derivative-B4jNkpq7.js} +1 -1
- package/dist/{html-derivative-DSKrIQn9.js → html-derivative-l83Yr46D.js} +1 -1
- package/dist/{http-BCk9QAjz.js → http-BFAjFcZG.js} +2 -2
- package/dist/{http-d-m0Mc7D.js → http-BhDBVFaP.js} +4 -4
- package/dist/{hurl-DWxVzahG.js → hurl-CjzrrhSW.js} +2 -2
- package/dist/{hurl-DfTnDfTu.js → hurl-DAdF3com.js} +2 -2
- package/dist/inertValue-BhczR0H5.js +7 -0
- package/dist/input-DZfZK6b1.js +91 -0
- package/dist/{isElementDisabled-Cibvw8mz.js → isElementDisabled-C1rd9-Ym.js} +1 -1
- package/dist/{java-CuIj5nvv.js → java-C_vVq3dw.js} +1 -1
- package/dist/{java-BKNJluE5.js → java-Ci5_G7qk.js} +1 -1
- package/dist/{javascript-C_3Wy_Gj.js → javascript-CV4d78q9.js} +1 -1
- package/dist/{javascript-Da2xmRTV.js → javascript-DIVSilR9.js} +1 -1
- package/dist/{jinja-DhkDj1Xi.js → jinja-Bs1LO7X2.js} +1 -1
- package/dist/{jinja-C8xQEEYN.js → jinja-Bwrf5aV2.js} +1 -1
- package/dist/{jison-CShmv6Fb.js → jison-C6eal2rW.js} +1 -1
- package/dist/{jison-CyKFq-6a.js → jison-Td0S7BdY.js} +1 -1
- package/dist/{json-Df3TJ3vS.js → json-BE9zjWXC.js} +1 -1
- package/dist/{jsx-CfQ2JFaq.js → jsx-Ba8CJaAV.js} +1 -1
- package/dist/{jsx-D0xGKDLn.js → jsx-DCFvZzWu.js} +1 -1
- package/dist/{julia-BMAFK3Gd.js → julia-Bm175Gof.js} +3 -3
- package/dist/{julia-BN-I8ZOK.js → julia-Bunkrw5e.js} +4 -4
- package/dist/{just-YBnaWXEe.js → just-1Pxadbli.js} +5 -5
- package/dist/{latex-C_OKc6Tr.js → latex-_x2UAXwa.js} +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/{lib-BeKETz9d.js → lib-_PLIHaUp.js} +623 -633
- package/dist/{liquid-BK9PRBL0.js → liquid-kYbXB26r.js} +4 -4
- package/dist/{lua-BLio8ECy.js → lua-CaVsjDyr.js} +2 -2
- package/dist/main.js +153 -152
- package/dist/{markdown-D3ExE6yF.js → markdown-BzQfFDNF.js} +2608 -2632
- package/dist/{marko-Fde_uU3F.js → marko-B5ZroO9K.js} +3 -3
- package/dist/{marko-DYmCev7q.js → marko-D0_WatvF.js} +3 -3
- package/dist/{mdc-wawAspAJ.js → mdc-Bv4e6tBf.js} +2 -2
- package/dist/{mdc-D7QSJBKx.js → mdc-Dh_sTTi8.js} +1 -1
- package/dist/mermaid-GHXKKRXX-B2aW3mwU.js +3 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +95 -93
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/dist/{nginx-WcmIS9lz.js → nginx-DKKP1Jsz.js} +1 -1
- package/dist/{nim-C_JBe3PW.js → nim-BeBji0Kd.js} +6 -6
- package/dist/owner-CyZnQOKt.js +6 -0
- package/dist/{perl-DxzDgnFP.js → perl-d6FT-kBo.js} +5 -5
- package/dist/{php-h4fQX9du.js → php-5ErYmDX1.js} +5 -5
- package/dist/{php-BslXz14x.js → php-DrB8vlsq.js} +6 -6
- package/dist/popover-Cne_hQUh.js +489 -0
- package/dist/{popupStateMapping-PdIQcWEz.js → popupStateMapping-C8W76brO.js} +461 -419
- package/dist/{progress-TdXkokPe.js → progress-D71iUjvg.js} +14 -14
- package/dist/{pug-yS-UC2lD.js → pug-DyZNXutA.js} +3 -3
- package/dist/{pug-CxpNRXGa.js → pug-pOLqHjih.js} +3 -3
- package/dist/{qml-tenACNq4.js → qml-Dox9P6il.js} +1 -1
- package/dist/{r-DdU4yNZO.js → r-CqHzjuOx.js} +1 -1
- package/dist/radio-group-CTqA-p0w.js +333 -0
- package/dist/{razor-D5yYWriQ.js → razor-BJnzh0vV.js} +1 -1
- package/dist/{regexp-Dnzoo8L8.js → regexp-BHMFwNmq.js} +1 -1
- package/dist/{regexp-BusfBBwF.js → regexp-Cr4z7tOG.js} +1 -1
- package/dist/{resizable-DkYW5Uwh.js → resizable-7RrCRLzm.js} +25 -22
- package/dist/resolveAriaLabelledBy-ChNE6KfK.js +15 -0
- package/dist/{rst-C-dkSMvp.js → rst-BBCY8q7E.js} +6 -6
- package/dist/{ruby-7kZgYYwi.js → ruby-B3ETTR3m.js} +12 -12
- package/dist/{safePolygon-CscU2iWL.js → safePolygon-os2F06tc.js} +109 -105
- package/dist/{sas-DtHo0e4p.js → sas-DUv_h98D.js} +1 -1
- package/dist/scroll-area-C0KbhRES.js +588 -0
- package/dist/{scrollEdges-VoRBF4DB.js → scrollEdges-CHZpP0us.js} +2 -2
- package/dist/{scss-bso_k44A.js → scss-CkVrpEfa.js} +2 -2
- package/dist/{scss-DaY16nmX.js → scss-CvRlGoAc.js} +2 -2
- package/dist/select-RvAj5g6e.js +1360 -0
- package/dist/{serializeValue-kHY7UUsW.js → serializeValue-CRwtWeFH.js} +1 -1
- package/dist/{shadowDom-C-4Ejp9R.js → shadowDom-BACsbimN.js} +1 -1
- package/dist/shared-q5mxNamF.js +24 -0
- package/dist/{shellscript-BWxNrzSf.js → shellscript-CxvlkwLY.js} +1 -1
- package/dist/{shellsession-IETTXW5g.js → shellsession-CgzvDd-J.js} +1 -1
- package/dist/{shim-ieZ_MRlN.js → shim-BX-2V17R.js} +6 -7
- package/dist/slider-Bhn1ogwZ.js +827 -0
- package/dist/{soy-33Xu8yiH.js → soy-BsfKKN9o.js} +1 -1
- package/dist/{sql-B432xaB7.js → sql-BHUsfCgB.js} +1 -1
- package/dist/{sql-8d8R_FnS.js → sql-DG63OdWS.js} +1 -1
- package/dist/{stata-B5wF29_Y.js → stata--mbf8UFb.js} +1 -1
- package/dist/{store-Bdrhndby.js → store-C-KXBzZ0.js} +9 -9
- package/dist/{surrealql-DYHeSEsk.js → surrealql-DhODgRt6.js} +1 -1
- package/dist/{svelte-BiN7hc1M.js → svelte-C7x6u-8L.js} +3 -3
- package/dist/{svelte-wsTs0hbr.js → svelte-DycOh1Oc.js} +3 -3
- package/dist/{switch-CP9j-8px.js → switch-D8M0xvzp.js} +65 -65
- package/dist/{tabs-C7JA8G0W.js → tabs-ttkDuwww.js} +181 -181
- package/dist/{templ-DEwqY_Qt.js → templ-MSt5oh4r.js} +2 -2
- package/dist/{tex-Bi7DoImG.js → tex-CVgVV9NK.js} +1 -1
- package/dist/toggle-group-CL_MBwuU.js +96 -0
- package/dist/{tooltip-34vRSwJG.js → tooltip-ZIywOFGf.js} +210 -196
- package/dist/{ts-tags-BK3ScQNp.js → ts-tags-Ck_QbMh4.js} +7 -7
- package/dist/{ts-tags-DOmIyh9G.js → ts-tags-DQKwVH4e.js} +7 -7
- package/dist/{tsx-D2IQdrsN.js → tsx-BfWxCQIa.js} +1 -1
- package/dist/{tsx-oo1y-gXD.js → tsx-DH8_xVXA.js} +1 -1
- package/dist/{twig-DxRYLs_L.js → twig-nd7fXiJI.js} +5 -5
- package/dist/{typescript-CWrXW5hv.js → typescript-Btp0Nz7Q.js} +1 -1
- package/dist/{typescript-C40nYMtR.js → typescript-CT-dRuB-.js} +1 -1
- package/dist/{ui-BaLLCKkd.js → ui-CttBuHXi.js} +2 -2
- package/dist/{useAnchoredPopupScrollLock-C8wRjuy0.js → useAnchoredPopupScrollLock-a2b_Frjv.js} +4 -4
- package/dist/{useAnimationFrame-xwbX87TY.js → useAnimationFrame-jkCXMP_8.js} +3 -3
- package/dist/{useAriaLabelledBy-DKl6aNOD.js → useAriaLabelledBy-WyUZP7Yf.js} +3 -3
- package/dist/{useBaseUiId-DOm5ACje.js → useBaseUiId-voePHgyX.js} +3 -3
- package/dist/{useButton-AXffhTAZ.js → useButton-DjF6Owsn.js} +7 -7
- package/dist/{useCollapsiblePanel-B7ERXY1c.js → useCollapsiblePanel-B6XZh6zH.js} +27 -24
- package/dist/{useCompositeItem-DA_RDTEI.js → useCompositeItem-JoGwOIGJ.js} +6 -11
- package/dist/{useCompositeListItem-xM6vOR9-.js → useCompositeListItem-C8B8UyMD.js} +5 -5
- package/dist/{useControlled-ZBScq72P.js → useControlled-Bu1mahWG.js} +2 -2
- package/dist/useFocus-DwJfNYN6.js +98 -0
- package/dist/{useIsoLayoutEffect-CKOv1bV_.js → useIsoLayoutEffect-4LGv3HzC.js} +1 -1
- package/dist/{useLabelableId-Dgoo7-Ly.js → useLabelableId-CC2YaILf.js} +6 -6
- package/dist/{useOnMount-Dirf6DNj.js → useOnMount-Chlmm7JB.js} +1 -1
- package/dist/{useOpenChangeComplete-DjMFUwhi.js → useOpenChangeComplete-Bs6gnxd9.js} +8 -8
- package/dist/useOpenInteractionType-DQhvPqO3.js +611 -0
- package/dist/{usePositioner-D65mUNMo.js → usePositioner-DkeyI5Le.js} +152 -152
- package/dist/useRender-D_s7850Q.js +7 -0
- package/dist/{useRenderElement-CmuWsiNa.js → useRenderElement-BToElZ97.js} +13 -13
- package/dist/{useStableCallback-CqEVb76s.js → useStableCallback-CrM0Nb2q.js} +3 -3
- package/dist/{useTimeout-B1x6NSZb.js → useTimeout-B0afjWAz.js} +3 -3
- package/dist/useTriggerFocusGuards-Qi8iK-AK.js +37 -0
- package/dist/{useValueAsRef-CCU3eUYq.js → useValueAsRef-CfO5zn2c.js} +3 -3
- package/dist/useValueChanged-26zHg3aX.js +15 -0
- package/dist/valueToPercent-BBx6BqbS.js +29 -0
- package/dist/{virtualized-grid-BQNJg029.js → virtualized-grid-DLNjqTNm.js} +16 -7
- package/dist/{visuallyHidden-CEAV1xeA.js → visuallyHidden-Cq5CW65k.js} +1 -1
- package/dist/{vue-COUaRKLt.js → vue-BMjk7Gaz.js} +5 -5
- package/dist/{vue-BEPn_TF_.js → vue-BoZyu9mR.js} +6 -6
- package/dist/{vue-html-CEiB3REn.js → vue-html-Dyr-sgcn.js} +1 -1
- package/dist/{vue-html-DjKFzwWo.js → vue-html-Fc3KYSrO.js} +1 -1
- package/dist/{vue-vine-D0Lpd94a.js → vue-vine-B-mxBKB2.js} +3 -3
- package/dist/{vue-vine-D6cSZo1M.js → vue-vine-BDclOuCR.js} +3 -3
- package/dist/{web-DF40pCMx.js → web-CqfgwsJY.js} +43 -43
- package/dist/{xml-DRTU1nx4.js → xml-CSo_-m7_.js} +2 -2
- package/dist/{xml-DL5p3-50.js → xml-tkp62giI.js} +2 -2
- package/dist/{xsl-3eu75y43.js → xsl-Dmc5gKQo.js} +1 -1
- package/dist/{yaml-6pzV2NiB.js → yaml-9hw4TgNw.js} +1 -1
- package/package.json +30 -30
- package/dist/CompositeRoot-BIh8l7ys.js +0 -179
- package/dist/DialogRoot-eVsH835b.js +0 -9
- package/dist/DialogTrigger-BuKadcdL.js +0 -379
- package/dist/FormContext-4NSsO4w6.js +0 -17
- package/dist/Toggle-CyMSF-Z7.js +0 -70
- package/dist/accordion-D-o5VBR2.js +0 -374
- package/dist/checkbox-CfF6tabe.js +0 -270
- package/dist/composite-HOje5ugx.js +0 -276
- package/dist/constants-VB9bsA8p.js +0 -4
- package/dist/detectBrowser-FBYSu3xM.js +0 -32
- package/dist/event-DWcDp5kt.js +0 -24
- package/dist/getPseudoElementBounds-DarjR4tH.js +0 -355
- package/dist/inertValue-C36grUTu.js +0 -7
- package/dist/input-CSc-AfAa.js +0 -91
- package/dist/mermaid-GHXKKRXX-B8Qglwis.js +0 -3
- package/dist/owner-BrzQrszh.js +0 -6
- package/dist/popover-CXSOUeVQ.js +0 -501
- package/dist/radio-group-Cc5ftdVj.js +0 -333
- package/dist/resolveAriaLabelledBy-DR9UHvi-.js +0 -10
- package/dist/scroll-area-53KPfESS.js +0 -559
- package/dist/select-CPTT__cT.js +0 -1363
- package/dist/slider-CN3uEkeD.js +0 -822
- package/dist/toggle-group-CDYMBO0F.js +0 -87
- package/dist/useFocus-DzHCrvH6.js +0 -97
- package/dist/useOpenInteractionType-D-ymktmc.js +0 -612
- package/dist/useRender-B4Oazk_w.js +0 -7
- package/dist/useTriggerFocusGuards-D1QlFlDK.js +0 -37
- package/dist/useValueChanged-j5e75XB6.js +0 -15
- package/dist/valueToPercent-9aZaNeTG.js +0 -24
- /package/dist/{chunk-Dqa2HsxW.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
|
@@ -1,303 +1,305 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./
|
|
3
|
-
import { t } from "./useIsoLayoutEffect-
|
|
4
|
-
import { c as n, f as r, o as i, s as a, t as o, u as s } from "./useRenderElement-
|
|
5
|
-
import { t as c } from "./useStableCallback-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { a as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as A } from "./
|
|
18
|
-
import {
|
|
19
|
-
import { t as j } from "./visuallyHidden-CEAV1xeA.js";
|
|
2
|
+
import { t as e } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
3
|
+
import { t } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
4
|
+
import { c as n, f as r, o as i, s as a, t as o, u as s } from "./useRenderElement-BToElZ97.js";
|
|
5
|
+
import { t as c } from "./useStableCallback-CrM0Nb2q.js";
|
|
6
|
+
import { n as l } from "./useBaseUiId-voePHgyX.js";
|
|
7
|
+
import { S as u, _ as d, g as f, s as p, t as m, x as h } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
8
|
+
import { i as g, o as _, t as v } from "./useOpenChangeComplete-Bs6gnxd9.js";
|
|
9
|
+
import { a as y, c as ee, d as b, f as x, g as te, m as S, p as ne, t as re } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
10
|
+
import { t as C } from "./addEventListener-BlQH_qk1.js";
|
|
11
|
+
import { t as w } from "./owner-CyZnQOKt.js";
|
|
12
|
+
import { D as ie, N as ae, i as T, k as oe } from "./composite-B-tEa-Zg.js";
|
|
13
|
+
import { t as se } from "./engine-ChH4dTze.js";
|
|
14
|
+
import { a as ce } from "./constants-ouS7wtUt.js";
|
|
15
|
+
import { n as E, t as le } from "./useTimeout-B0afjWAz.js";
|
|
16
|
+
import { n as D, r as ue, t as O } from "./shadowDom-BACsbimN.js";
|
|
17
|
+
import { i as de, n as k, o as fe, t as A } from "./shim-BX-2V17R.js";
|
|
18
|
+
import { t as j } from "./visuallyHidden-Cq5CW65k.js";
|
|
20
19
|
import * as M from "react";
|
|
21
20
|
import { jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
22
21
|
import * as F from "react-dom";
|
|
23
|
-
//#region ../../node_modules/.bun/@base-ui+
|
|
24
|
-
function
|
|
25
|
-
|
|
22
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/useOnFirstRender.mjs
|
|
23
|
+
function I(e) {
|
|
24
|
+
let t = M.useRef(!0);
|
|
25
|
+
t.current && (t.current = !1, e());
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/platform/screen-reader.mjs
|
|
29
|
+
var L = ae;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/mergeCleanups.mjs
|
|
32
|
+
function R(...e) {
|
|
33
|
+
return () => {
|
|
34
|
+
for (let t = 0; t < e.length; t += 1) {
|
|
35
|
+
let n = e[t];
|
|
36
|
+
n && n();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
34
39
|
}
|
|
35
40
|
//#endregion
|
|
36
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
37
|
-
var
|
|
38
|
-
|
|
41
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/FocusGuard.mjs
|
|
42
|
+
var z = /*#__PURE__*/ M.forwardRef(function(e, n) {
|
|
43
|
+
let [r, i] = M.useState();
|
|
44
|
+
t(() => {
|
|
45
|
+
L && se && i("button");
|
|
46
|
+
}, []);
|
|
47
|
+
let a = {
|
|
48
|
+
tabIndex: 0,
|
|
49
|
+
role: r
|
|
50
|
+
};
|
|
51
|
+
return /*#__PURE__*/ N("span", {
|
|
52
|
+
...e,
|
|
53
|
+
ref: n,
|
|
54
|
+
style: j,
|
|
55
|
+
"aria-hidden": r ? void 0 : !0,
|
|
56
|
+
...a,
|
|
57
|
+
"data-base-ui-focus-guard": ""
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
process.env.NODE_ENV !== "production" && (z.displayName = "FocusGuard");
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs
|
|
63
|
+
var B = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
|
|
64
|
+
function V(e) {
|
|
39
65
|
let t = e.assignedSlot;
|
|
40
66
|
if (t) return t;
|
|
41
67
|
if (e.parentElement) return e.parentElement;
|
|
42
68
|
let n = e.getRootNode();
|
|
43
|
-
return
|
|
69
|
+
return te(n) ? n.host : null;
|
|
44
70
|
}
|
|
45
|
-
function
|
|
46
|
-
for (let t of Array.from(e.children)) if (
|
|
71
|
+
function H(e) {
|
|
72
|
+
for (let t of Array.from(e.children)) if (y(t) === "summary") return t;
|
|
47
73
|
return null;
|
|
48
74
|
}
|
|
49
|
-
function
|
|
50
|
-
let n =
|
|
51
|
-
return !!n && (e === n ||
|
|
75
|
+
function U(e, t) {
|
|
76
|
+
let n = H(t);
|
|
77
|
+
return !!n && (e === n || D(n, e));
|
|
52
78
|
}
|
|
53
|
-
function
|
|
54
|
-
let t = e ?
|
|
55
|
-
return e != null && e.matches(
|
|
79
|
+
function W(e) {
|
|
80
|
+
let t = e ? y(e) : "";
|
|
81
|
+
return e != null && e.matches(B) && (t !== "summary" || e.parentElement != null && y(e.parentElement) === "details" && H(e.parentElement) === e) && (t !== "details" || H(e) == null) && (t !== "input" || e.type !== "hidden");
|
|
56
82
|
}
|
|
57
|
-
function
|
|
58
|
-
if (!
|
|
59
|
-
for (let t = e; t; t =
|
|
60
|
-
let n = t !== e, r =
|
|
61
|
-
if (t.hasAttribute("inert") || n &&
|
|
83
|
+
function G(e) {
|
|
84
|
+
if (!W(e) || !e.isConnected || e.matches(":disabled")) return !1;
|
|
85
|
+
for (let t = e; t; t = V(t)) {
|
|
86
|
+
let n = t !== e, r = y(t) === "slot";
|
|
87
|
+
if (t.hasAttribute("inert") || n && y(t) === "details" && !t.open && !U(e, t) || t.hasAttribute("hidden") || !r && !K(t, n)) return !1;
|
|
62
88
|
}
|
|
63
89
|
return !0;
|
|
64
90
|
}
|
|
65
|
-
function
|
|
66
|
-
let n =
|
|
67
|
-
return t ? n.display !== "none" :
|
|
91
|
+
function K(e, t) {
|
|
92
|
+
let n = re(e);
|
|
93
|
+
return t ? n.display !== "none" : T(e, n);
|
|
68
94
|
}
|
|
69
|
-
function
|
|
95
|
+
function q(e) {
|
|
70
96
|
let t = e.tabIndex;
|
|
71
97
|
if (t < 0) {
|
|
72
|
-
let t =
|
|
73
|
-
if (t === "details" || t === "audio" || t === "video" ||
|
|
98
|
+
let t = y(e);
|
|
99
|
+
if (t === "details" || t === "audio" || t === "video" || x(e) && e.isContentEditable) return 0;
|
|
74
100
|
}
|
|
75
101
|
return t;
|
|
76
102
|
}
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
103
|
+
function J(e) {
|
|
104
|
+
if (y(e) !== "input") return null;
|
|
79
105
|
let t = e;
|
|
80
106
|
return t.type === "radio" && t.name !== "" ? t : null;
|
|
81
107
|
}
|
|
82
|
-
function
|
|
83
|
-
let n =
|
|
108
|
+
function pe(e, t) {
|
|
109
|
+
let n = J(e);
|
|
84
110
|
if (!n) return !0;
|
|
85
111
|
let r = t.find((e) => {
|
|
86
|
-
let t =
|
|
112
|
+
let t = J(e);
|
|
87
113
|
return t?.name === n.name && t.form === n.form && t.checked;
|
|
88
114
|
});
|
|
89
115
|
return r ? r === n : t.find((e) => {
|
|
90
|
-
let t =
|
|
116
|
+
let t = J(e);
|
|
91
117
|
return t?.name === n.name && t.form === n.form;
|
|
92
118
|
}) === n;
|
|
93
119
|
}
|
|
94
|
-
function
|
|
95
|
-
if (
|
|
120
|
+
function me(e) {
|
|
121
|
+
if (x(e) && y(e) === "slot") {
|
|
96
122
|
let t = e.assignedElements({ flatten: !0 });
|
|
97
123
|
if (t.length > 0) return t;
|
|
98
124
|
}
|
|
99
|
-
return
|
|
125
|
+
return x(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
|
|
100
126
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
103
|
-
|
|
127
|
+
function he(e, t) {
|
|
128
|
+
me(e).forEach((e) => {
|
|
129
|
+
W(e) && t.push(e), he(e, t);
|
|
104
130
|
});
|
|
105
131
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
|
|
132
|
+
function ge(e, t, n) {
|
|
133
|
+
me(e).forEach((e) => {
|
|
134
|
+
x(e) && e.matches(t) && n.push(e), ge(e, t, n);
|
|
109
135
|
});
|
|
110
136
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
137
|
+
function _e(e) {
|
|
138
|
+
return G(e) && q(e) >= 0;
|
|
113
139
|
}
|
|
114
|
-
function
|
|
140
|
+
function ve(e) {
|
|
115
141
|
let t = [];
|
|
116
|
-
return
|
|
142
|
+
return he(e, t), t.filter(G);
|
|
117
143
|
}
|
|
118
|
-
function
|
|
119
|
-
let t =
|
|
120
|
-
return t.filter((e) =>
|
|
144
|
+
function Y(e) {
|
|
145
|
+
let t = ve(e);
|
|
146
|
+
return t.filter((e) => q(e) >= 0 && pe(e, t));
|
|
121
147
|
}
|
|
122
|
-
function
|
|
123
|
-
let n =
|
|
148
|
+
function ye(e, t) {
|
|
149
|
+
let n = Y(e), r = n.length;
|
|
124
150
|
if (r === 0) return;
|
|
125
|
-
let i =
|
|
151
|
+
let i = O(w(e)), a = n.indexOf(i);
|
|
126
152
|
return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
|
|
127
153
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
154
|
+
function be(e) {
|
|
155
|
+
return ye(w(e).body, 1) || e;
|
|
130
156
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
157
|
+
function xe(e) {
|
|
158
|
+
return ye(w(e).body, -1) || e;
|
|
133
159
|
}
|
|
134
|
-
function
|
|
160
|
+
function Se(e, t) {
|
|
135
161
|
if (!e) return null;
|
|
136
|
-
let n =
|
|
162
|
+
let n = Y(w(e).body), r = n.length;
|
|
137
163
|
if (r === 0) return null;
|
|
138
164
|
let i = n.indexOf(e);
|
|
139
165
|
return i === -1 ? null : n[(i + t + r) % r];
|
|
140
166
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
167
|
+
function Ce(e) {
|
|
168
|
+
return Se(e, 1);
|
|
143
169
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
170
|
+
function we(e) {
|
|
171
|
+
return Se(e, -1);
|
|
146
172
|
}
|
|
147
|
-
function
|
|
173
|
+
function X(e, t) {
|
|
148
174
|
let n = t || e.currentTarget, r = e.relatedTarget;
|
|
149
|
-
return !r || !
|
|
175
|
+
return !r || !D(n, r);
|
|
150
176
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
177
|
+
function Te(e) {
|
|
178
|
+
Y(e).forEach((e) => {
|
|
153
179
|
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
154
180
|
});
|
|
155
181
|
}
|
|
156
|
-
function
|
|
182
|
+
function Ee(e) {
|
|
157
183
|
let t = [];
|
|
158
|
-
|
|
184
|
+
ge(e, "[data-tabindex]", t), t.forEach((e) => {
|
|
159
185
|
let t = e.dataset.tabindex;
|
|
160
186
|
delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
|
|
161
187
|
});
|
|
162
188
|
}
|
|
163
189
|
//#endregion
|
|
164
|
-
//#region ../../node_modules/.bun/@base-ui+
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
t.current && (t.current = !1, e());
|
|
190
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
|
|
191
|
+
function Z(e, t, n = !0) {
|
|
192
|
+
return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...Z(e, t.id, n)]);
|
|
168
193
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
};
|
|
194
|
+
function De(e, t) {
|
|
195
|
+
let n = [], r = e.find((e) => e.id === t)?.parentId;
|
|
196
|
+
for (; r;) {
|
|
197
|
+
let t = e.find((e) => e.id === r);
|
|
198
|
+
r = t?.parentId, t && (n = n.concat(t));
|
|
199
|
+
}
|
|
200
|
+
return n;
|
|
178
201
|
}
|
|
179
202
|
//#endregion
|
|
180
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
181
|
-
|
|
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
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs
|
|
204
|
+
function Oe(e) {
|
|
203
205
|
return `data-base-ui-${e}`;
|
|
204
206
|
}
|
|
205
207
|
//#endregion
|
|
206
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
207
|
-
var
|
|
208
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/constants.mjs
|
|
209
|
+
var ke = { style: { transition: "none" } }, Ae = "data-base-ui-click-trigger", je = { fallbackAxisSide: "none" }, Me = { fallbackAxisSide: "end" }, Ne = {
|
|
208
210
|
clipPath: "inset(50%)",
|
|
209
211
|
position: "fixed",
|
|
210
212
|
top: 0,
|
|
211
213
|
left: 0
|
|
212
|
-
},
|
|
213
|
-
process.env.NODE_ENV !== "production" && (
|
|
214
|
-
var
|
|
215
|
-
function
|
|
216
|
-
let { ref: n, container: r, componentProps: a = i, elementProps: s } = e,
|
|
214
|
+
}, Pe = /*#__PURE__*/ M.createContext(null);
|
|
215
|
+
process.env.NODE_ENV !== "production" && (Pe.displayName = "PortalContext");
|
|
216
|
+
var Fe = () => M.useContext(Pe), Ie = Oe("portal");
|
|
217
|
+
function Le(e = {}) {
|
|
218
|
+
let { ref: n, container: r, componentProps: a = i, elementProps: s } = e, u = l(), d = Fe()?.portalNode, [f, p] = M.useState(null), [m, h] = M.useState(null), g = c((e) => {
|
|
217
219
|
e !== null && h(e);
|
|
218
220
|
}), _ = M.useRef(null);
|
|
219
221
|
t(() => {
|
|
220
222
|
if (r === null) {
|
|
221
|
-
_.current && (_.current = null, h(null),
|
|
223
|
+
_.current && (_.current = null, h(null), p(null));
|
|
222
224
|
return;
|
|
223
225
|
}
|
|
224
|
-
if (
|
|
225
|
-
let e = (r && (S(r) ? r : r.current)) ??
|
|
226
|
+
if (u == null) return;
|
|
227
|
+
let e = (r && (S(r) ? r : r.current)) ?? d ?? document.body;
|
|
226
228
|
if (e == null) {
|
|
227
|
-
_.current && (_.current = null, h(null),
|
|
229
|
+
_.current && (_.current = null, h(null), p(null));
|
|
228
230
|
return;
|
|
229
231
|
}
|
|
230
|
-
_.current !== e && (_.current = e, h(null),
|
|
232
|
+
_.current !== e && (_.current = e, h(null), p(e));
|
|
231
233
|
}, [
|
|
232
234
|
r,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
d,
|
|
236
|
+
u
|
|
235
237
|
]);
|
|
236
238
|
let v = o("div", a, {
|
|
237
239
|
ref: [n, g],
|
|
238
240
|
props: [{
|
|
239
|
-
id:
|
|
240
|
-
[
|
|
241
|
+
id: u,
|
|
242
|
+
[Ie]: ""
|
|
241
243
|
}, s]
|
|
242
244
|
});
|
|
243
245
|
return {
|
|
244
246
|
portalNode: m,
|
|
245
|
-
portalSubtree:
|
|
247
|
+
portalSubtree: f && v ? /*#__PURE__*/ F.createPortal(v, f) : null
|
|
246
248
|
};
|
|
247
249
|
}
|
|
248
|
-
var
|
|
249
|
-
let { render:
|
|
250
|
-
container:
|
|
251
|
-
ref:
|
|
250
|
+
var Re = /*#__PURE__*/ M.forwardRef(function(e, n) {
|
|
251
|
+
let { render: r, className: i, style: a, children: o, container: s, renderGuards: c, ...l } = e, { portalNode: u, portalSubtree: d } = Le({
|
|
252
|
+
container: s,
|
|
253
|
+
ref: n,
|
|
252
254
|
componentProps: e,
|
|
253
|
-
elementProps:
|
|
254
|
-
}),
|
|
255
|
+
elementProps: l
|
|
256
|
+
}), f = M.useRef(null), p = M.useRef(null), h = M.useRef(null), g = M.useRef(null), [_, v] = M.useState(null), y = M.useRef(!1), ee = _?.modal, b = _?.open, x = typeof c == "boolean" ? c : !!_ && !_.modal && _.open && !!u;
|
|
255
257
|
M.useEffect(() => {
|
|
256
|
-
if (!
|
|
258
|
+
if (!u || ee) return;
|
|
257
259
|
function e(e) {
|
|
258
|
-
|
|
260
|
+
u && e.relatedTarget && X(e) && (e.type === "focusin" ? y.current &&= (Ee(u), !1) : (Te(u), y.current = !0));
|
|
259
261
|
}
|
|
260
|
-
return
|
|
261
|
-
}, [
|
|
262
|
-
!
|
|
263
|
-
}, [b,
|
|
264
|
-
let
|
|
265
|
-
beforeOutsideRef:
|
|
262
|
+
return R(C(u, "focusin", e, !0), C(u, "focusout", e, !0));
|
|
263
|
+
}, [u, ee]), t(() => {
|
|
264
|
+
!u || b !== !0 || !y.current || (Ee(u), y.current = !1);
|
|
265
|
+
}, [b, u]);
|
|
266
|
+
let te = M.useMemo(() => ({
|
|
267
|
+
beforeOutsideRef: f,
|
|
266
268
|
afterOutsideRef: p,
|
|
267
|
-
beforeInsideRef:
|
|
268
|
-
afterInsideRef:
|
|
269
|
-
portalNode:
|
|
270
|
-
setFocusManagerState:
|
|
271
|
-
}), [
|
|
272
|
-
return /*#__PURE__*/ P(M.Fragment, { children: [
|
|
273
|
-
value:
|
|
269
|
+
beforeInsideRef: h,
|
|
270
|
+
afterInsideRef: g,
|
|
271
|
+
portalNode: u,
|
|
272
|
+
setFocusManagerState: v
|
|
273
|
+
}), [u]);
|
|
274
|
+
return /*#__PURE__*/ P(M.Fragment, { children: [d, /*#__PURE__*/ P(Pe.Provider, {
|
|
275
|
+
value: te,
|
|
274
276
|
children: [
|
|
275
|
-
x &&
|
|
277
|
+
x && u && /*#__PURE__*/ N(z, {
|
|
276
278
|
"data-type": "outside",
|
|
277
|
-
ref:
|
|
279
|
+
ref: f,
|
|
278
280
|
onFocus: (e) => {
|
|
279
|
-
|
|
281
|
+
X(e, u) ? h.current?.focus() : xe(_ ? _.domReference : null)?.focus();
|
|
280
282
|
}
|
|
281
283
|
}),
|
|
282
|
-
x &&
|
|
283
|
-
"aria-owns":
|
|
284
|
-
style:
|
|
284
|
+
x && u && /*#__PURE__*/ N("span", {
|
|
285
|
+
"aria-owns": u.id,
|
|
286
|
+
style: Ne
|
|
285
287
|
}),
|
|
286
|
-
|
|
287
|
-
x &&
|
|
288
|
+
u && /*#__PURE__*/ F.createPortal(o, u),
|
|
289
|
+
x && u && /*#__PURE__*/ N(z, {
|
|
288
290
|
"data-type": "outside",
|
|
289
291
|
ref: p,
|
|
290
292
|
onFocus: (e) => {
|
|
291
|
-
|
|
293
|
+
X(e, u) ? g.current?.focus() : (be(_ ? _.domReference : null)?.focus(), _?.closeOnFocusOut && _?.onOpenChange(!1, m("focus-out", e.nativeEvent)));
|
|
292
294
|
}
|
|
293
295
|
})
|
|
294
296
|
]
|
|
295
297
|
})] });
|
|
296
298
|
});
|
|
297
|
-
process.env.NODE_ENV !== "production" && (
|
|
299
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "FloatingPortal");
|
|
298
300
|
//#endregion
|
|
299
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
300
|
-
function
|
|
301
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
|
|
302
|
+
function ze() {
|
|
301
303
|
let e = /* @__PURE__ */ new Map();
|
|
302
304
|
return {
|
|
303
305
|
emit(t, n) {
|
|
@@ -312,10 +314,10 @@ function Fe() {
|
|
|
312
314
|
};
|
|
313
315
|
}
|
|
314
316
|
//#endregion
|
|
315
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
316
|
-
var
|
|
317
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/components/FloatingTreeStore.mjs
|
|
318
|
+
var Be = class {
|
|
317
319
|
nodesRef = { current: [] };
|
|
318
|
-
events =
|
|
320
|
+
events = ze();
|
|
319
321
|
addNode(e) {
|
|
320
322
|
this.nodesRef.current.push(e);
|
|
321
323
|
}
|
|
@@ -323,16 +325,16 @@ var Ie = class {
|
|
|
323
325
|
let t = this.nodesRef.current.findIndex((t) => t === e);
|
|
324
326
|
t !== -1 && this.nodesRef.current.splice(t, 1);
|
|
325
327
|
}
|
|
326
|
-
},
|
|
327
|
-
process.env.NODE_ENV !== "production" && (
|
|
328
|
-
var
|
|
329
|
-
process.env.NODE_ENV !== "production" && (
|
|
330
|
-
var
|
|
331
|
-
let t = M.useContext(
|
|
328
|
+
}, Ve = /*#__PURE__*/ M.createContext(null);
|
|
329
|
+
process.env.NODE_ENV !== "production" && (Ve.displayName = "FloatingNodeContext");
|
|
330
|
+
var He = /*#__PURE__*/ M.createContext(null);
|
|
331
|
+
process.env.NODE_ENV !== "production" && (He.displayName = "FloatingTreeContext");
|
|
332
|
+
var Q = () => M.useContext(Ve)?.id || null, Ue = (e) => {
|
|
333
|
+
let t = M.useContext(He);
|
|
332
334
|
return e ?? t;
|
|
333
335
|
};
|
|
334
|
-
function
|
|
335
|
-
let n =
|
|
336
|
+
function We(e) {
|
|
337
|
+
let n = l(), r = Ue(e), i = Q();
|
|
336
338
|
return t(() => {
|
|
337
339
|
if (!n) return;
|
|
338
340
|
let e = {
|
|
@@ -348,9 +350,9 @@ function Ve(e) {
|
|
|
348
350
|
i
|
|
349
351
|
]), n;
|
|
350
352
|
}
|
|
351
|
-
function
|
|
352
|
-
let { children: t, id: n } = e, r =
|
|
353
|
-
return /*#__PURE__*/ N(
|
|
353
|
+
function Ge(e) {
|
|
354
|
+
let { children: t, id: n } = e, r = Q();
|
|
355
|
+
return /*#__PURE__*/ N(Ve.Provider, {
|
|
354
356
|
value: M.useMemo(() => ({
|
|
355
357
|
id: n,
|
|
356
358
|
parentId: r
|
|
@@ -358,239 +360,231 @@ function He(e) {
|
|
|
358
360
|
children: t
|
|
359
361
|
});
|
|
360
362
|
}
|
|
361
|
-
function
|
|
362
|
-
let { children: t, externalTree: n } = e, i = r(() => n ?? new
|
|
363
|
-
return /*#__PURE__*/ N(
|
|
363
|
+
function Ke(e) {
|
|
364
|
+
let { children: t, externalTree: n } = e, i = r(() => n ?? new Be()).current;
|
|
365
|
+
return /*#__PURE__*/ N(He.Provider, {
|
|
364
366
|
value: i,
|
|
365
367
|
children: t
|
|
366
368
|
});
|
|
367
369
|
}
|
|
368
370
|
//#endregion
|
|
369
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
370
|
-
|
|
371
|
-
intentional: "onClick",
|
|
372
|
-
sloppy: "onPointerDown"
|
|
373
|
-
};
|
|
374
|
-
function Ge() {
|
|
371
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useDismiss.mjs
|
|
372
|
+
function qe() {
|
|
375
373
|
return !1;
|
|
376
374
|
}
|
|
377
|
-
function
|
|
375
|
+
function Je(e) {
|
|
378
376
|
return {
|
|
379
377
|
escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
|
|
380
378
|
outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
|
|
381
379
|
};
|
|
382
380
|
}
|
|
383
|
-
function
|
|
384
|
-
let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o =
|
|
385
|
-
|
|
386
|
-
}),
|
|
387
|
-
let t =
|
|
388
|
-
return (
|
|
389
|
-
}),
|
|
390
|
-
o() &&
|
|
381
|
+
function Ye(e, t = {}) {
|
|
382
|
+
let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o = qe, bubbles: s, externalTree: l } = t, f = "rootStore" in e ? e.rootStore : e, h = f.useState("open"), g = f.useState("floatingElement"), { dataRef: _ } = f.context, v = Ue(l), y = c(typeof i == "function" ? i : () => !1), S = typeof i == "function" ? y : i, ie = S !== !1, ae = c(() => a), { escapeKey: T, outsidePress: ce } = Je(s), O = M.useRef(!1), k = M.useRef(!1), A = M.useRef(!1), j = M.useRef(!1), N = M.useRef(""), P = M.useRef(null), F = E(), I = E(), L = c(() => {
|
|
383
|
+
I.clear(), _.current.insideReactTree = !1;
|
|
384
|
+
}), z = c((e) => {
|
|
385
|
+
let t = _.current.floatingContext?.nodeId;
|
|
386
|
+
return (v ? Z(v.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
|
|
387
|
+
}), B = c((e) => de(e, f.select("floatingElement")) || de(e, f.select("domReferenceElement"))), V = c((e) => {
|
|
388
|
+
o() && f.setOpen(!1, m(u, e.nativeEvent));
|
|
389
|
+
}), H = c((e) => {
|
|
390
|
+
if (!h || !n || !r || e.key !== "Escape" || j.current || !T && z("__escapeKeyBubbles")) return;
|
|
391
|
+
let t = m(p, oe(e) ? e.nativeEvent : e);
|
|
392
|
+
f.setOpen(!1, t), t.isCanceled || e.preventDefault(), !T && !t.isPropagationAllowed && e.stopPropagation();
|
|
393
|
+
}), U = c(() => {
|
|
394
|
+
_.current.insideReactTree = !0, I.start(0, L);
|
|
391
395
|
}), W = c((e) => {
|
|
392
|
-
if (!
|
|
393
|
-
let t =
|
|
394
|
-
|
|
395
|
-
}), G = c(() => {
|
|
396
|
-
|
|
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);
|
|
396
|
+
if (!h || !n || e.button !== 0) return;
|
|
397
|
+
let t = ue(e.nativeEvent);
|
|
398
|
+
D(f.select("floatingElement"), t) && (O.current || (O.current = !0, k.current = !1));
|
|
399
|
+
}), G = c((e) => {
|
|
400
|
+
!h || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && O.current && (k.current = !0);
|
|
403
401
|
});
|
|
404
402
|
M.useEffect(() => {
|
|
405
|
-
if (!
|
|
406
|
-
|
|
407
|
-
let e = new
|
|
403
|
+
if (!h || !n) return;
|
|
404
|
+
_.current.__escapeKeyBubbles = T, _.current.__outsidePressBubbles = ce;
|
|
405
|
+
let e = new le(), t = new le();
|
|
408
406
|
function i() {
|
|
409
|
-
e.clear(),
|
|
407
|
+
e.clear(), j.current = !0;
|
|
410
408
|
}
|
|
411
409
|
function a() {
|
|
412
|
-
e.start(
|
|
413
|
-
|
|
410
|
+
e.start(se ? 5 : 0, () => {
|
|
411
|
+
j.current = !1;
|
|
414
412
|
});
|
|
415
413
|
}
|
|
416
414
|
function o() {
|
|
417
|
-
|
|
418
|
-
|
|
415
|
+
A.current = !0, t.start(0, () => {
|
|
416
|
+
A.current = !1;
|
|
419
417
|
});
|
|
420
418
|
}
|
|
421
419
|
function s() {
|
|
422
|
-
|
|
420
|
+
O.current = !1, k.current = !1;
|
|
423
421
|
}
|
|
424
422
|
function c() {
|
|
425
|
-
let e =
|
|
423
|
+
let e = N.current, t = e === "pen" || !e ? "mouse" : e, n = ae(), r = typeof n == "function" ? n() : n;
|
|
426
424
|
return typeof r == "string" ? r : r[t];
|
|
427
425
|
}
|
|
428
426
|
function l(e) {
|
|
429
427
|
let t = c();
|
|
430
428
|
return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
|
|
431
429
|
}
|
|
432
|
-
function
|
|
433
|
-
let t =
|
|
434
|
-
return
|
|
430
|
+
function u(e) {
|
|
431
|
+
let t = _.current.floatingContext?.nodeId, n = v && Z(v.nodesRef.current, t).some((t) => de(e, t.context?.elements.floating));
|
|
432
|
+
return B(e) || n;
|
|
435
433
|
}
|
|
436
434
|
function p(e) {
|
|
437
435
|
if (l(e)) {
|
|
438
|
-
e.type !== "click" && !
|
|
436
|
+
e.type !== "click" && !B(e) && (t.clear(), A.current = !1), L();
|
|
439
437
|
return;
|
|
440
438
|
}
|
|
441
|
-
if (
|
|
442
|
-
|
|
439
|
+
if (_.current.insideReactTree) {
|
|
440
|
+
L();
|
|
443
441
|
return;
|
|
444
442
|
}
|
|
445
|
-
let n =
|
|
446
|
-
if (n && (o.hasElement(n) || o.hasMatchingElement((e) =>
|
|
447
|
-
let s =
|
|
448
|
-
for (; s && !
|
|
449
|
-
let e =
|
|
450
|
-
if (
|
|
443
|
+
let n = ue(e), r = `[${Oe("inert")}]`, i = b(n) ? n.getRootNode() : null, a = Array.from((te(i) ? i : w(f.select("floatingElement"))).querySelectorAll(r)), o = f.context.triggerElements;
|
|
444
|
+
if (n && (o.hasElement(n) || o.hasMatchingElement((e) => D(e, n)))) return;
|
|
445
|
+
let s = b(n) ? n : null;
|
|
446
|
+
for (; s && !ne(s);) {
|
|
447
|
+
let e = ee(s);
|
|
448
|
+
if (ne(e) || !b(e)) break;
|
|
451
449
|
s = e;
|
|
452
450
|
}
|
|
453
|
-
if (!(a.length &&
|
|
454
|
-
if (
|
|
455
|
-
let t =
|
|
451
|
+
if (!(a.length && b(n) && !fe(n) && !D(n, f.select("floatingElement")) && a.every((e) => !D(s, e)))) {
|
|
452
|
+
if (x(n) && !("touches" in e)) {
|
|
453
|
+
let t = ne(n), r = re(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
454
|
if (u || d) return;
|
|
457
455
|
}
|
|
458
|
-
if (!
|
|
459
|
-
if (c() === "intentional" &&
|
|
460
|
-
t.clear(),
|
|
456
|
+
if (!u(e)) {
|
|
457
|
+
if (c() === "intentional" && A.current) {
|
|
458
|
+
t.clear(), A.current = !1;
|
|
461
459
|
return;
|
|
462
460
|
}
|
|
463
|
-
typeof
|
|
461
|
+
typeof S == "function" && !S(e) || z("__outsidePressBubbles") || (f.setOpen(!1, m(d, e)), L());
|
|
464
462
|
}
|
|
465
463
|
}
|
|
466
464
|
}
|
|
467
|
-
function
|
|
468
|
-
c() !== "sloppy" || e.pointerType === "touch" || !
|
|
465
|
+
function y(e) {
|
|
466
|
+
c() !== "sloppy" || e.pointerType === "touch" || !f.select("open") || !n || B(e) || p(e);
|
|
469
467
|
}
|
|
470
|
-
function
|
|
471
|
-
if (c() !== "sloppy" || !
|
|
468
|
+
function oe(e) {
|
|
469
|
+
if (c() !== "sloppy" || !f.select("open") || !n || B(e)) return;
|
|
472
470
|
let t = e.touches[0];
|
|
473
|
-
t && (
|
|
471
|
+
t && (P.current = {
|
|
474
472
|
startTime: Date.now(),
|
|
475
473
|
startX: t.clientX,
|
|
476
474
|
startY: t.clientY,
|
|
477
475
|
dismissOnTouchEnd: !1,
|
|
478
476
|
dismissOnMouseDown: !0
|
|
479
|
-
},
|
|
480
|
-
|
|
477
|
+
}, F.start(1e3, () => {
|
|
478
|
+
P.current && (P.current.dismissOnTouchEnd = !1, P.current.dismissOnMouseDown = !1);
|
|
481
479
|
}));
|
|
482
480
|
}
|
|
483
|
-
function
|
|
484
|
-
let n =
|
|
481
|
+
function E(e, t) {
|
|
482
|
+
let n = ue(e);
|
|
485
483
|
if (!n) return;
|
|
486
|
-
let r =
|
|
484
|
+
let r = C(n, e.type, () => {
|
|
487
485
|
t(e), r();
|
|
488
486
|
});
|
|
489
487
|
}
|
|
490
|
-
function le(e) {
|
|
491
|
-
I.current = "touch", D(e, re);
|
|
492
|
-
}
|
|
493
488
|
function M(e) {
|
|
494
|
-
|
|
495
|
-
|
|
489
|
+
N.current = "touch", E(e, oe);
|
|
490
|
+
}
|
|
491
|
+
function I(e) {
|
|
492
|
+
F.clear(), e.type === "pointerdown" && (N.current = e.pointerType), !(e.type === "mousedown" && P.current && !P.current.dismissOnMouseDown) && E(e, (e) => {
|
|
493
|
+
e.type === "pointerdown" ? y(e) : p(e);
|
|
496
494
|
});
|
|
497
495
|
}
|
|
498
|
-
function
|
|
499
|
-
if (!
|
|
500
|
-
let n =
|
|
496
|
+
function V(e) {
|
|
497
|
+
if (!O.current) return;
|
|
498
|
+
let n = k.current;
|
|
501
499
|
if (s(), c() === "intentional") {
|
|
502
500
|
if (e.type === "pointercancel") {
|
|
503
501
|
n && o();
|
|
504
502
|
return;
|
|
505
503
|
}
|
|
506
|
-
if (!
|
|
504
|
+
if (!u(e)) {
|
|
507
505
|
if (n) {
|
|
508
506
|
o();
|
|
509
507
|
return;
|
|
510
508
|
}
|
|
511
|
-
typeof
|
|
509
|
+
typeof S == "function" && !S(e) || (t.clear(), A.current = !0, L());
|
|
512
510
|
}
|
|
513
511
|
}
|
|
514
512
|
}
|
|
515
513
|
function U(e) {
|
|
516
|
-
if (c() !== "sloppy" || !
|
|
514
|
+
if (c() !== "sloppy" || !P.current || B(e)) return;
|
|
517
515
|
let t = e.touches[0];
|
|
518
516
|
if (!t) return;
|
|
519
|
-
let n = Math.abs(t.clientX -
|
|
520
|
-
i > 5 && (
|
|
517
|
+
let n = Math.abs(t.clientX - P.current.startX), r = Math.abs(t.clientY - P.current.startY), i = Math.sqrt(n * n + r * r);
|
|
518
|
+
i > 5 && (P.current.dismissOnTouchEnd = !0), i > 10 && (p(e), F.clear(), P.current = null);
|
|
519
|
+
}
|
|
520
|
+
function W(e) {
|
|
521
|
+
E(e, U);
|
|
521
522
|
}
|
|
522
523
|
function G(e) {
|
|
523
|
-
|
|
524
|
+
c() !== "sloppy" || !P.current || B(e) || (P.current.dismissOnTouchEnd && p(e), F.clear(), P.current = null);
|
|
524
525
|
}
|
|
525
526
|
function K(e) {
|
|
526
|
-
|
|
527
|
+
E(e, G);
|
|
527
528
|
}
|
|
528
|
-
|
|
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)));
|
|
529
|
+
let q = w(g), J = R(r && R(C(q, "keydown", H), C(q, "compositionstart", i), C(q, "compositionend", a)), ie && R(C(q, "click", I, !0), C(q, "pointerdown", I, !0), C(q, "pointerup", V, !0), C(q, "pointercancel", V, !0), C(q, "mousedown", I, !0), C(q, "mouseup", V, !0), C(q, "touchstart", M, !0), C(q, "touchmove", W, !0), C(q, "touchend", K, !0)));
|
|
532
530
|
return () => {
|
|
533
|
-
|
|
531
|
+
J(), e.clear(), t.clear(), s(), A.current = !1;
|
|
534
532
|
};
|
|
535
533
|
}, [
|
|
536
|
-
S,
|
|
537
534
|
_,
|
|
538
|
-
r,
|
|
539
|
-
oe,
|
|
540
|
-
T,
|
|
541
535
|
g,
|
|
536
|
+
r,
|
|
537
|
+
ie,
|
|
538
|
+
S,
|
|
539
|
+
h,
|
|
542
540
|
n,
|
|
543
|
-
|
|
541
|
+
T,
|
|
544
542
|
ce,
|
|
545
|
-
W,
|
|
546
|
-
B,
|
|
547
|
-
E,
|
|
548
|
-
V,
|
|
549
543
|
H,
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
]),
|
|
563
|
-
onKeyDown:
|
|
564
|
-
onPointerDown:
|
|
565
|
-
onMouseDown:
|
|
566
|
-
onClickCapture:
|
|
544
|
+
L,
|
|
545
|
+
ae,
|
|
546
|
+
z,
|
|
547
|
+
B,
|
|
548
|
+
v,
|
|
549
|
+
f,
|
|
550
|
+
F
|
|
551
|
+
]), M.useEffect(L, [S, L]);
|
|
552
|
+
let K = M.useMemo(() => ({
|
|
553
|
+
onKeyDown: H,
|
|
554
|
+
onPointerDown: V,
|
|
555
|
+
onClick: V
|
|
556
|
+
}), [H, V]), q = M.useMemo(() => ({
|
|
557
|
+
onKeyDown: H,
|
|
558
|
+
onPointerDown: G,
|
|
559
|
+
onMouseDown: G,
|
|
560
|
+
onClickCapture: U,
|
|
567
561
|
onMouseDownCapture(e) {
|
|
568
|
-
|
|
562
|
+
U(), W(e);
|
|
569
563
|
},
|
|
570
564
|
onPointerDownCapture(e) {
|
|
571
|
-
|
|
565
|
+
U(), W(e);
|
|
572
566
|
},
|
|
573
|
-
onMouseUpCapture:
|
|
574
|
-
onTouchEndCapture:
|
|
575
|
-
onTouchMoveCapture:
|
|
567
|
+
onMouseUpCapture: U,
|
|
568
|
+
onTouchEndCapture: U,
|
|
569
|
+
onTouchMoveCapture: U
|
|
576
570
|
}), [
|
|
571
|
+
H,
|
|
572
|
+
U,
|
|
577
573
|
W,
|
|
578
|
-
G
|
|
579
|
-
K,
|
|
580
|
-
q
|
|
574
|
+
G
|
|
581
575
|
]);
|
|
582
576
|
return M.useMemo(() => n ? {
|
|
583
|
-
reference:
|
|
584
|
-
floating:
|
|
585
|
-
trigger:
|
|
577
|
+
reference: K,
|
|
578
|
+
floating: q,
|
|
579
|
+
trigger: K
|
|
586
580
|
} : {}, [
|
|
587
581
|
n,
|
|
588
|
-
|
|
589
|
-
|
|
582
|
+
K,
|
|
583
|
+
q
|
|
590
584
|
]);
|
|
591
585
|
}
|
|
592
586
|
//#endregion
|
|
593
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.
|
|
587
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/store/createSelector.mjs
|
|
594
588
|
var $ = (e, t, n, r, i, a, ...o) => {
|
|
595
589
|
if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? s(1) : "Unsupported number of selectors");
|
|
596
590
|
let c;
|
|
@@ -602,8 +596,8 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
602
596
|
else if (e) c = e;
|
|
603
597
|
else throw Error("Missing arguments");
|
|
604
598
|
return c;
|
|
605
|
-
},
|
|
606
|
-
var t =
|
|
599
|
+
}, Xe = /* @__PURE__ */ e(((e) => {
|
|
600
|
+
var t = k(), n = A();
|
|
607
601
|
function r(e, t) {
|
|
608
602
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
609
603
|
}
|
|
@@ -647,13 +641,13 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
647
641
|
f.hasValue = !0, f.value = p;
|
|
648
642
|
}, [p]), l(p), p;
|
|
649
643
|
};
|
|
650
|
-
})),
|
|
644
|
+
})), Ze = /* @__PURE__ */ e(((e) => {
|
|
651
645
|
process.env.NODE_ENV !== "production" && (function() {
|
|
652
646
|
function t(e, t) {
|
|
653
647
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
654
648
|
}
|
|
655
649
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
656
|
-
var n =
|
|
650
|
+
var n = k(), r = A(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
|
|
657
651
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
|
|
658
652
|
var d = o(null);
|
|
659
653
|
if (d.current === null) {
|
|
@@ -694,44 +688,44 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
694
688
|
}, [p]), l(p), p;
|
|
695
689
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
696
690
|
})();
|
|
697
|
-
})),
|
|
698
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
699
|
-
})),
|
|
700
|
-
function
|
|
701
|
-
return
|
|
691
|
+
})), Qe = /* @__PURE__ */ e(((e, t) => {
|
|
692
|
+
process.env.NODE_ENV === "production" ? t.exports = Xe() : t.exports = Ze();
|
|
693
|
+
})), $e = A(), et = Qe(), tt = [], nt = void 0;
|
|
694
|
+
function rt() {
|
|
695
|
+
return nt;
|
|
702
696
|
}
|
|
703
|
-
function
|
|
704
|
-
|
|
697
|
+
function it(e) {
|
|
698
|
+
tt.push(e);
|
|
705
699
|
}
|
|
706
|
-
function
|
|
700
|
+
function at(e) {
|
|
707
701
|
let t = (t, n) => {
|
|
708
|
-
let i = r(
|
|
702
|
+
let i = r(st).current, a;
|
|
709
703
|
try {
|
|
710
|
-
|
|
711
|
-
for (let e of
|
|
704
|
+
nt = i;
|
|
705
|
+
for (let e of tt) e.before(i);
|
|
712
706
|
a = e(t, n);
|
|
713
|
-
for (let e of
|
|
707
|
+
for (let e of tt) e.after(i);
|
|
714
708
|
i.didInitialize = !0;
|
|
715
709
|
} finally {
|
|
716
|
-
|
|
710
|
+
nt = void 0;
|
|
717
711
|
}
|
|
718
712
|
return a;
|
|
719
713
|
};
|
|
720
714
|
return t.displayName = e.displayName || e.name, t;
|
|
721
715
|
}
|
|
722
|
-
function
|
|
723
|
-
return /*#__PURE__*/ M.forwardRef(
|
|
716
|
+
function ot(e) {
|
|
717
|
+
return /*#__PURE__*/ M.forwardRef(at(e));
|
|
724
718
|
}
|
|
725
|
-
function
|
|
719
|
+
function st() {
|
|
726
720
|
return { didInitialize: !1 };
|
|
727
721
|
}
|
|
728
722
|
//#endregion
|
|
729
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.
|
|
730
|
-
var
|
|
731
|
-
function
|
|
732
|
-
return
|
|
723
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/store/useStore.mjs
|
|
724
|
+
var ct = n(19) ? dt : ft;
|
|
725
|
+
function lt(e, t, n, r, i) {
|
|
726
|
+
return ct(e, t, n, r, i);
|
|
733
727
|
}
|
|
734
|
-
function
|
|
728
|
+
function ut(e, t, n, r, i) {
|
|
735
729
|
let a = M.useCallback(() => t(e.getSnapshot(), n, r, i), [
|
|
736
730
|
e,
|
|
737
731
|
t,
|
|
@@ -739,15 +733,15 @@ function ct(e, t, n, r, i) {
|
|
|
739
733
|
r,
|
|
740
734
|
i
|
|
741
735
|
]);
|
|
742
|
-
return (0,
|
|
736
|
+
return (0, $e.useSyncExternalStore)(e.subscribe, a, a);
|
|
743
737
|
}
|
|
744
|
-
|
|
738
|
+
it({
|
|
745
739
|
before(e) {
|
|
746
740
|
e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
|
|
747
741
|
let t = !1;
|
|
748
742
|
for (let n = 0; n < e.syncHooks.length; n += 1) {
|
|
749
743
|
let r = e.syncHooks[n], i = r.selector(r.store.state, r.a1, r.a2, r.a3);
|
|
750
|
-
|
|
744
|
+
Object.is(r.value, i) || (t = !0, r.value = i);
|
|
751
745
|
}
|
|
752
746
|
return t && (e.syncTick += 1), e.syncTick;
|
|
753
747
|
});
|
|
@@ -761,31 +755,30 @@ nt({
|
|
|
761
755
|
return () => {
|
|
762
756
|
for (let e of r) e();
|
|
763
757
|
};
|
|
764
|
-
}), (0,
|
|
758
|
+
}), (0, $e.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
765
759
|
}
|
|
766
760
|
});
|
|
767
|
-
function
|
|
768
|
-
let a =
|
|
769
|
-
if (!a) return
|
|
761
|
+
function dt(e, t, n, r, i) {
|
|
762
|
+
let a = rt();
|
|
763
|
+
if (!a) return ut(e, t, n, r, i);
|
|
770
764
|
let o = a.syncIndex;
|
|
771
765
|
a.syncIndex += 1;
|
|
772
766
|
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.
|
|
767
|
+
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.value = t(e.getSnapshot(), n, r, i))) : (s = {
|
|
774
768
|
store: e,
|
|
775
769
|
selector: t,
|
|
776
770
|
a1: n,
|
|
777
771
|
a2: r,
|
|
778
772
|
a3: i,
|
|
779
|
-
value: t(e.getSnapshot(), n, r, i)
|
|
780
|
-
didChange: !1
|
|
773
|
+
value: t(e.getSnapshot(), n, r, i)
|
|
781
774
|
}, a.syncHooks.push(s)), s.value;
|
|
782
775
|
}
|
|
783
|
-
function
|
|
784
|
-
return (0,
|
|
776
|
+
function ft(e, t, n, r, i) {
|
|
777
|
+
return (0, et.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
785
778
|
}
|
|
786
779
|
//#endregion
|
|
787
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.
|
|
788
|
-
var
|
|
780
|
+
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/store/Store.mjs
|
|
781
|
+
var pt = class {
|
|
789
782
|
constructor(e) {
|
|
790
783
|
this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
791
784
|
}
|
|
@@ -822,9 +815,9 @@ var dt = class {
|
|
|
822
815
|
this.setState(e);
|
|
823
816
|
}
|
|
824
817
|
use(e, t, n, r) {
|
|
825
|
-
return
|
|
818
|
+
return lt(this, e, t, n, r);
|
|
826
819
|
}
|
|
827
|
-
},
|
|
820
|
+
}, mt = class extends pt {
|
|
828
821
|
constructor(e, t = {}, n) {
|
|
829
822
|
super(e), this.context = t, this.selectors = n;
|
|
830
823
|
}
|
|
@@ -885,7 +878,7 @@ var dt = class {
|
|
|
885
878
|
return i(this.state, t, n, r);
|
|
886
879
|
}
|
|
887
880
|
useState(e, t, n, r) {
|
|
888
|
-
return M.useDebugValue(e),
|
|
881
|
+
return M.useDebugValue(e), lt(this, this.selectors[e], t, n, r);
|
|
889
882
|
}
|
|
890
883
|
useContextCallback(e, t) {
|
|
891
884
|
M.useDebugValue(e);
|
|
@@ -910,14 +903,14 @@ var dt = class {
|
|
|
910
903
|
}
|
|
911
904
|
});
|
|
912
905
|
}
|
|
913
|
-
},
|
|
906
|
+
}, ht = {
|
|
914
907
|
open: $((e) => e.open),
|
|
915
908
|
transitionStatus: $((e) => e.transitionStatus),
|
|
916
909
|
domReferenceElement: $((e) => e.domReferenceElement),
|
|
917
910
|
referenceElement: $((e) => e.positionReference ?? e.referenceElement),
|
|
918
911
|
floatingElement: $((e) => e.floatingElement),
|
|
919
912
|
floatingId: $((e) => e.floatingId)
|
|
920
|
-
},
|
|
913
|
+
}, gt = class extends mt {
|
|
921
914
|
constructor(e) {
|
|
922
915
|
let { syncOnly: t, nested: n, onOpenChange: r, triggerElements: i, ...a } = e;
|
|
923
916
|
super({
|
|
@@ -927,13 +920,13 @@ var dt = class {
|
|
|
927
920
|
}, {
|
|
928
921
|
onOpenChange: r,
|
|
929
922
|
dataRef: { current: {} },
|
|
930
|
-
events:
|
|
923
|
+
events: ze(),
|
|
931
924
|
nested: n,
|
|
932
925
|
triggerElements: i
|
|
933
|
-
},
|
|
926
|
+
}, ht), this.syncOnly = t;
|
|
934
927
|
}
|
|
935
928
|
syncOpenEvent = (e, t) => {
|
|
936
|
-
(!e || !this.state.open || t != null &&
|
|
929
|
+
(!e || !this.state.open || t != null && ie(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
|
|
937
930
|
};
|
|
938
931
|
dispatchOpenChange = (e, t) => {
|
|
939
932
|
this.syncOpenEvent(e, t.event);
|
|
@@ -955,10 +948,10 @@ var dt = class {
|
|
|
955
948
|
};
|
|
956
949
|
};
|
|
957
950
|
//#endregion
|
|
958
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
959
|
-
function
|
|
951
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs
|
|
952
|
+
function _t(e) {
|
|
960
953
|
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
|
|
954
|
+
i === void 0 && p.current === null && (p.current = new gt({
|
|
962
955
|
open: c,
|
|
963
956
|
transitionStatus: void 0,
|
|
964
957
|
referenceElement: l,
|
|
@@ -977,7 +970,7 @@ function ht(e) {
|
|
|
977
970
|
referenceElement: l,
|
|
978
971
|
floatingElement: u
|
|
979
972
|
};
|
|
980
|
-
|
|
973
|
+
b(l) && (e.domReferenceElement = l), m.state.positionReference === m.state.referenceElement && (e.positionReference = l), m.update(e);
|
|
981
974
|
}, [
|
|
982
975
|
c,
|
|
983
976
|
a,
|
|
@@ -987,16 +980,19 @@ function ht(e) {
|
|
|
987
980
|
]), m.context.onOpenChange = f, m.context.nested = o, m;
|
|
988
981
|
}
|
|
989
982
|
//#endregion
|
|
990
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
991
|
-
var
|
|
983
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
|
|
984
|
+
var vt = {
|
|
992
985
|
tabIndex: -1,
|
|
993
|
-
[
|
|
986
|
+
[ce]: ""
|
|
994
987
|
};
|
|
995
|
-
function
|
|
996
|
-
|
|
988
|
+
function yt(e) {
|
|
989
|
+
return (t) => t === "touch" ? e.current : !0;
|
|
990
|
+
}
|
|
991
|
+
function bt(e, t, n = !1) {
|
|
992
|
+
let r = l(), i = Q() != null, a = M.useRef(null);
|
|
997
993
|
e === void 0 && a.current === null && (a.current = t(r, i));
|
|
998
994
|
let o = e ?? a.current;
|
|
999
|
-
return
|
|
995
|
+
return _t({
|
|
1000
996
|
popupStore: o,
|
|
1001
997
|
treatPopupAsFloatingElement: n,
|
|
1002
998
|
floatingRootContext: o.state.floatingRootContext,
|
|
@@ -1008,7 +1004,7 @@ function _t(e, t, n = !1) {
|
|
|
1008
1004
|
internalStore: a.current
|
|
1009
1005
|
};
|
|
1010
1006
|
}
|
|
1011
|
-
function
|
|
1007
|
+
function xt(e, t) {
|
|
1012
1008
|
let n = M.useRef(null), r = M.useRef(null);
|
|
1013
1009
|
return M.useCallback((i) => {
|
|
1014
1010
|
if (e === void 0) return;
|
|
@@ -1023,12 +1019,42 @@ function vt(e, t) {
|
|
|
1023
1019
|
}
|
|
1024
1020
|
}, [t, e]);
|
|
1025
1021
|
}
|
|
1026
|
-
function
|
|
1027
|
-
|
|
1028
|
-
|
|
1022
|
+
function St(e, t, n, r = !1) {
|
|
1023
|
+
t ? e.preventUnmountingOnClose = !1 : r && (e.preventUnmountingOnClose = !0);
|
|
1024
|
+
let i = n?.id ?? null;
|
|
1025
|
+
(i || t) && (e.activeTriggerId = i, e.activeTriggerElement = n ?? null);
|
|
1029
1026
|
}
|
|
1030
|
-
function
|
|
1031
|
-
let
|
|
1027
|
+
function Ct(e) {
|
|
1028
|
+
let t = !1;
|
|
1029
|
+
return e.preventUnmountOnClose = () => {
|
|
1030
|
+
t = !0;
|
|
1031
|
+
}, () => t;
|
|
1032
|
+
}
|
|
1033
|
+
function wt(e, t, n, r = {}) {
|
|
1034
|
+
let i = n.reason, a = i === h, o = t && i === "trigger-focus", s = !t && (i === "trigger-press" || i === "escape-key"), c = Ct(n);
|
|
1035
|
+
if (e.context.onOpenChange?.(t, n), n.isCanceled) return;
|
|
1036
|
+
r.onBeforeDispatch?.(), e.state.floatingRootContext.dispatchOpenChange(t, n);
|
|
1037
|
+
let l = () => {
|
|
1038
|
+
let i = {
|
|
1039
|
+
...r.extraState,
|
|
1040
|
+
open: t
|
|
1041
|
+
};
|
|
1042
|
+
o ? i.instantType = "focus" : s ? i.instantType = "dismiss" : a && (i.instantType = void 0), St(i, t, n.trigger, c()), e.update(i);
|
|
1043
|
+
};
|
|
1044
|
+
a ? F.flushSync(l) : l();
|
|
1045
|
+
}
|
|
1046
|
+
function Tt(e, t, n, r) {
|
|
1047
|
+
I(() => {
|
|
1048
|
+
t === void 0 && e.state.open === !1 && n && (e.state = {
|
|
1049
|
+
...e.state,
|
|
1050
|
+
open: !0,
|
|
1051
|
+
activeTriggerId: r,
|
|
1052
|
+
preventUnmountingOnClose: !1
|
|
1053
|
+
});
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
function Et(e, n, r, i) {
|
|
1057
|
+
let a = r.useState("isMountedByTrigger", e), o = xt(e, r), s = c((t) => {
|
|
1032
1058
|
if (o(t), !t) return;
|
|
1033
1059
|
let n = r.select("open"), a = r.select("activeTriggerId");
|
|
1034
1060
|
if (a === e) {
|
|
@@ -1059,55 +1085,71 @@ function bt(e, n, r, i) {
|
|
|
1059
1085
|
isMountedByThisTrigger: a
|
|
1060
1086
|
};
|
|
1061
1087
|
}
|
|
1062
|
-
function
|
|
1063
|
-
let n = e.useState("open");
|
|
1088
|
+
function Dt(e, n = {}) {
|
|
1089
|
+
let { closeOnActiveTriggerUnmount: r = !1 } = n, i = e.useState("open");
|
|
1064
1090
|
t(() => {
|
|
1065
|
-
if (!
|
|
1091
|
+
if (!i) {
|
|
1066
1092
|
e.state.triggerCount !== 0 && e.set("triggerCount", 0);
|
|
1067
1093
|
return;
|
|
1068
1094
|
}
|
|
1069
|
-
let t = e.context.triggerElements.size,
|
|
1070
|
-
|
|
1095
|
+
let t = e.context.triggerElements.size, n = {};
|
|
1096
|
+
e.state.triggerCount !== t && (n.triggerCount = t);
|
|
1097
|
+
let a = e.select("activeTriggerId"), o = null;
|
|
1098
|
+
if (a) {
|
|
1099
|
+
let t = e.context.triggerElements.getById(a);
|
|
1100
|
+
t ? t !== e.state.activeTriggerElement && (n.activeTriggerElement = t) : o = a;
|
|
1101
|
+
}
|
|
1102
|
+
if (!o && !a && t === 1) {
|
|
1071
1103
|
let t = e.context.triggerElements.entries().next();
|
|
1072
1104
|
if (!t.done) {
|
|
1073
|
-
let [e,
|
|
1074
|
-
|
|
1105
|
+
let [e, r] = t.value;
|
|
1106
|
+
n.activeTriggerId = e, n.activeTriggerElement = r;
|
|
1075
1107
|
}
|
|
1076
1108
|
}
|
|
1077
|
-
(
|
|
1109
|
+
(n.triggerCount !== void 0 || n.activeTriggerId !== void 0 || n.activeTriggerElement !== void 0) && e.update(n), o && r && queueMicrotask(() => {
|
|
1110
|
+
if (e.select("open") && e.select("activeTriggerId") === o && !e.context.triggerElements.getById(o)) {
|
|
1111
|
+
let t = m(f);
|
|
1112
|
+
e.setOpen(!1, t), t.isCanceled || e.update({
|
|
1113
|
+
activeTriggerId: null,
|
|
1114
|
+
activeTriggerElement: null
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1078
1118
|
}, [
|
|
1079
|
-
|
|
1119
|
+
i,
|
|
1080
1120
|
e,
|
|
1081
|
-
e.useState("triggerCount")
|
|
1121
|
+
e.useState("triggerCount"),
|
|
1122
|
+
r
|
|
1082
1123
|
]);
|
|
1083
1124
|
}
|
|
1084
|
-
function
|
|
1085
|
-
let { mounted: r, setMounted: i, transitionStatus: a } =
|
|
1125
|
+
function Ot(e, t, n) {
|
|
1126
|
+
let { mounted: r, setMounted: i, transitionStatus: a } = _(e), o = t.useState("preventUnmountingOnClose"), s = e ? !1 : o;
|
|
1086
1127
|
t.useSyncedValues({
|
|
1087
1128
|
mounted: r,
|
|
1088
|
-
transitionStatus: a
|
|
1129
|
+
transitionStatus: a,
|
|
1130
|
+
preventUnmountingOnClose: s
|
|
1089
1131
|
});
|
|
1090
|
-
let
|
|
1132
|
+
let l = c(() => {
|
|
1091
1133
|
i(!1), t.update({
|
|
1092
1134
|
activeTriggerId: null,
|
|
1093
1135
|
activeTriggerElement: null,
|
|
1094
1136
|
mounted: !1,
|
|
1095
1137
|
preventUnmountingOnClose: !1
|
|
1096
1138
|
}), n?.(), t.context.onOpenChangeComplete?.(!1);
|
|
1097
|
-
})
|
|
1098
|
-
return
|
|
1139
|
+
});
|
|
1140
|
+
return v({
|
|
1099
1141
|
enabled: r && !e && !s,
|
|
1100
1142
|
open: e,
|
|
1101
1143
|
ref: t.context.popupRef,
|
|
1102
1144
|
onComplete() {
|
|
1103
|
-
e ||
|
|
1145
|
+
e || l();
|
|
1104
1146
|
}
|
|
1105
1147
|
}), {
|
|
1106
|
-
forceUnmount:
|
|
1148
|
+
forceUnmount: l,
|
|
1107
1149
|
transitionStatus: a
|
|
1108
1150
|
};
|
|
1109
1151
|
}
|
|
1110
|
-
function
|
|
1152
|
+
function kt(e, n) {
|
|
1111
1153
|
e.useSyncedValues(n), t(() => () => {
|
|
1112
1154
|
e.update({
|
|
1113
1155
|
activeTriggerProps: i,
|
|
@@ -1116,7 +1158,7 @@ function Ct(e, n) {
|
|
|
1116
1158
|
});
|
|
1117
1159
|
}, [e]);
|
|
1118
1160
|
}
|
|
1119
|
-
function
|
|
1161
|
+
function At(e, n) {
|
|
1120
1162
|
t(() => {
|
|
1121
1163
|
!n && e.state.openMethod !== null && e.set("openMethod", null);
|
|
1122
1164
|
}, [n, e]), t(() => () => {
|
|
@@ -1124,8 +1166,8 @@ function wt(e, n) {
|
|
|
1124
1166
|
}, [e]);
|
|
1125
1167
|
}
|
|
1126
1168
|
//#endregion
|
|
1127
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
1128
|
-
var
|
|
1169
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
|
|
1170
|
+
var jt = class {
|
|
1129
1171
|
constructor() {
|
|
1130
1172
|
this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
|
|
1131
1173
|
}
|
|
@@ -1156,24 +1198,24 @@ var Tt = class {
|
|
|
1156
1198
|
get size() {
|
|
1157
1199
|
return this.idMap.size;
|
|
1158
1200
|
}
|
|
1159
|
-
},
|
|
1160
|
-
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle =
|
|
1161
|
-
}({}),
|
|
1201
|
+
}, Mt = function(e) {
|
|
1202
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = g.startingStyle] = "startingStyle", e[e.endingStyle = g.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
1203
|
+
}({}), Nt = /*#__PURE__*/ function(e) {
|
|
1162
1204
|
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
1163
|
-
}({}),
|
|
1164
|
-
[
|
|
1165
|
-
[
|
|
1166
|
-
},
|
|
1167
|
-
return e ?
|
|
1168
|
-
} },
|
|
1169
|
-
return e ?
|
|
1170
|
-
} },
|
|
1205
|
+
}({}), Pt = { [Nt.popupOpen]: "" }, Ft = {
|
|
1206
|
+
[Nt.popupOpen]: "",
|
|
1207
|
+
[Nt.pressed]: ""
|
|
1208
|
+
}, It = { [Mt.open]: "" }, Lt = { [Mt.closed]: "" }, Rt = { [Mt.anchorHidden]: "" }, zt = { open(e) {
|
|
1209
|
+
return e ? Pt : null;
|
|
1210
|
+
} }, Bt = { open(e) {
|
|
1211
|
+
return e ? Ft : null;
|
|
1212
|
+
} }, Vt = {
|
|
1171
1213
|
open(e) {
|
|
1172
|
-
return e ?
|
|
1214
|
+
return e ? It : Lt;
|
|
1173
1215
|
},
|
|
1174
1216
|
anchorHidden(e) {
|
|
1175
|
-
return e ?
|
|
1217
|
+
return e ? Rt : null;
|
|
1176
1218
|
}
|
|
1177
1219
|
};
|
|
1178
1220
|
//#endregion
|
|
1179
|
-
export {
|
|
1221
|
+
export { z as $, Ke as A, je as B, pt as C, $ as D, ot as E, Re as F, ve as G, Oe as H, Le as I, Ce as J, be as K, Fe as L, Q as M, Ue as N, Ye as O, Be as P, Y as Q, Ae as R, mt as S, at as T, De as U, Me as V, Z as W, X, we as Y, _e as Z, bt as _, zt as a, _t as b, wt as c, St as d, R as et, Dt as f, At as g, kt as h, Bt as i, We as j, Ge as k, Ct as l, Ot as m, Nt as n, jt as o, Tt as p, xe as q, Vt as r, vt as s, Mt as t, I as tt, yt as u, Et as v, lt as w, gt as x, xt as y, ke as z };
|