@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,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./useIsoLayoutEffect-
|
|
3
|
-
import { f as t, o as n, t as r } from "./useRenderElement-
|
|
4
|
-
import { t as i } from "./useStableCallback-
|
|
5
|
-
import { t as a } from "./DirectionContext-
|
|
6
|
-
import { n as o } from "./useBaseUiId-
|
|
2
|
+
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
|
+
import { f as t, o as n, t as r } from "./useRenderElement-BToElZ97.js";
|
|
4
|
+
import { t as i } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
+
import { t as a } from "./DirectionContext-OzWG1tsQ.js";
|
|
6
|
+
import { n as o } from "./useBaseUiId-voePHgyX.js";
|
|
7
7
|
import { _ as s, a as c, c as l, d as u, f as d, h as f, i as p, l as m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, y as C } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { t as w } from "./useValueAsRef-CfO5zn2c.js";
|
|
9
|
+
import { t as T } from "./owner-CyZnQOKt.js";
|
|
10
|
+
import { M as E, N as D, o as O, r as k, x as A, z as j } from "./popupStateMapping-C8W76brO.js";
|
|
11
|
+
import { C as M, E as N, S as P, T as F, _ as ee, b as I, c as L, d as R, f as z, g as te, h as ne, l as B, m as re, p as ie, s as ae, u as V, v as oe, w as H, x as U, y as se } from "./composite-B-tEa-Zg.js";
|
|
12
12
|
import * as W from "react";
|
|
13
13
|
import { useLayoutEffect as ce } from "react";
|
|
14
14
|
import * as le from "react-dom";
|
|
15
15
|
//#region ../../node_modules/.bun/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
16
16
|
function ue(e, t, n) {
|
|
17
|
-
let { reference: r, floating: i } = e, a =
|
|
17
|
+
let { reference: r, floating: i } = e, a = U(t), o = z(t), s = re(o), c = I(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
18
18
|
switch (c) {
|
|
19
19
|
case "top":
|
|
20
20
|
p = {
|
|
@@ -45,7 +45,7 @@ function ue(e, t, n) {
|
|
|
45
45
|
y: r.y
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
switch (
|
|
48
|
+
switch (R(t)) {
|
|
49
49
|
case "start":
|
|
50
50
|
p[o] -= f * (n && l ? -1 : 1);
|
|
51
51
|
break;
|
|
@@ -57,7 +57,7 @@ function ue(e, t, n) {
|
|
|
57
57
|
}
|
|
58
58
|
async function G(e, t) {
|
|
59
59
|
t === void 0 && (t = {});
|
|
60
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = B(t, e), p =
|
|
60
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = B(t, e), p = se(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = H(await i.getClippingRect({
|
|
61
61
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
62
62
|
boundary: c,
|
|
63
63
|
rootBoundary: l,
|
|
@@ -70,7 +70,7 @@ async function G(e, t) {
|
|
|
70
70
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
71
71
|
x: 1,
|
|
72
72
|
y: 1
|
|
73
|
-
}, y =
|
|
73
|
+
}, y = H(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
74
74
|
elements: o,
|
|
75
75
|
rect: g,
|
|
76
76
|
offsetParent: _,
|
|
@@ -133,11 +133,11 @@ var de = 50, fe = async (e, t, n) => {
|
|
|
133
133
|
var n;
|
|
134
134
|
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = B(e, t);
|
|
135
135
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
136
|
-
let g =
|
|
137
|
-
!d && x && b.push(...
|
|
136
|
+
let g = I(r), _ = U(o), v = I(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [oe(o)] : ne(o)), x = p !== "none";
|
|
137
|
+
!d && x && b.push(...ee(o, m, p, y));
|
|
138
138
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
139
139
|
if (l && w.push(C[g]), u) {
|
|
140
|
-
let e =
|
|
140
|
+
let e = ie(r, a, y);
|
|
141
141
|
w.push(C[e[0]], C[e[1]]);
|
|
142
142
|
}
|
|
143
143
|
if (T = [...T, {
|
|
@@ -145,7 +145,7 @@ var de = 50, fe = async (e, t, n) => {
|
|
|
145
145
|
overflows: w
|
|
146
146
|
}], !w.every((e) => e <= 0)) {
|
|
147
147
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
148
|
-
if (t && (!(u === "alignment" && _ !==
|
|
148
|
+
if (t && (!(u === "alignment" && _ !== U(t)) || T.every((e) => U(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
149
149
|
data: {
|
|
150
150
|
index: e,
|
|
151
151
|
overflows: T
|
|
@@ -157,7 +157,7 @@ var de = 50, fe = async (e, t, n) => {
|
|
|
157
157
|
case "bestFit": {
|
|
158
158
|
let e = T.filter((e) => {
|
|
159
159
|
if (x) {
|
|
160
|
-
let t =
|
|
160
|
+
let t = U(e.placement);
|
|
161
161
|
return t === _ || t === "y";
|
|
162
162
|
}
|
|
163
163
|
return !0;
|
|
@@ -184,7 +184,7 @@ function me(e, t) {
|
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
function he(e) {
|
|
187
|
-
return
|
|
187
|
+
return N.some((t) => e[t] >= 0);
|
|
188
188
|
}
|
|
189
189
|
var K = function(e) {
|
|
190
190
|
return e === void 0 && (e = {}), {
|
|
@@ -219,7 +219,7 @@ var K = function(e) {
|
|
|
219
219
|
};
|
|
220
220
|
}, q = /*#__PURE__*/ new Set(["left", "top"]);
|
|
221
221
|
async function ge(e, t) {
|
|
222
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
222
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = I(n), s = R(n), c = U(n) === "y", l = q.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = B(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
223
223
|
mainAxis: d,
|
|
224
224
|
crossAxis: 0,
|
|
225
225
|
alignmentAxis: null
|
|
@@ -267,14 +267,14 @@ var _e = function(e) {
|
|
|
267
267
|
} }, ...l } = B(e, t), u = {
|
|
268
268
|
x: n,
|
|
269
269
|
y: r
|
|
270
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
270
|
+
}, d = await a.detectOverflow(t, l), f = U(I(i)), p = te(f), m = u[p], h = u[f];
|
|
271
271
|
if (o) {
|
|
272
272
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
273
|
-
m =
|
|
273
|
+
m = ae(n, m, r);
|
|
274
274
|
}
|
|
275
275
|
if (s) {
|
|
276
276
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
277
|
-
h =
|
|
277
|
+
h = ae(n, h, r);
|
|
278
278
|
}
|
|
279
279
|
let g = c.fn({
|
|
280
280
|
...t,
|
|
@@ -301,7 +301,7 @@ var _e = function(e) {
|
|
|
301
301
|
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = B(e, t), u = {
|
|
302
302
|
x: n,
|
|
303
303
|
y: r
|
|
304
|
-
}, d =
|
|
304
|
+
}, d = U(i), f = te(d), p = u[f], m = u[d], h = B(s, t), g = typeof h == "number" ? {
|
|
305
305
|
mainAxis: h,
|
|
306
306
|
crossAxis: 0
|
|
307
307
|
} : {
|
|
@@ -314,7 +314,7 @@ var _e = function(e) {
|
|
|
314
314
|
p < t ? p = t : p > n && (p = n);
|
|
315
315
|
}
|
|
316
316
|
if (l) {
|
|
317
|
-
let e = f === "y" ? "width" : "height", t = q.has(
|
|
317
|
+
let e = f === "y" ? "width" : "height", t = q.has(I(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
318
318
|
m < n ? m = n : m > r && (m = r);
|
|
319
319
|
}
|
|
320
320
|
return {
|
|
@@ -329,12 +329,12 @@ var _e = function(e) {
|
|
|
329
329
|
options: e,
|
|
330
330
|
async fn(t) {
|
|
331
331
|
var n, r;
|
|
332
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = B(e, t), u = await o.detectOverflow(t, l), d =
|
|
332
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = B(e, t), u = await o.detectOverflow(t, l), d = I(i), f = R(i), p = U(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
333
333
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
334
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
334
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = M(h - u[g], v), x = M(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
335
335
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
336
|
-
let e =
|
|
337
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
336
|
+
let e = P(u.left, 0), t = P(u.right, 0), n = P(u.top, 0), r = P(u.bottom, 0);
|
|
337
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : P(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : P(u.top, u.bottom));
|
|
338
338
|
}
|
|
339
339
|
await c({
|
|
340
340
|
...t,
|
|
@@ -349,7 +349,7 @@ var _e = function(e) {
|
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region ../../node_modules/.bun/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
351
351
|
function be(e) {
|
|
352
|
-
let t = b(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = d(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
352
|
+
let t = b(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = d(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = F(n) !== a || F(r) !== o;
|
|
353
353
|
return s && (n = a, r = o), {
|
|
354
354
|
width: n,
|
|
355
355
|
height: r,
|
|
@@ -361,14 +361,14 @@ function Y(e) {
|
|
|
361
361
|
}
|
|
362
362
|
function X(e) {
|
|
363
363
|
let t = Y(e);
|
|
364
|
-
if (!d(t)) return
|
|
365
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = be(t), o = (a ?
|
|
364
|
+
if (!d(t)) return L(1);
|
|
365
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = be(t), o = (a ? F(n.width) : n.width) / r, s = (a ? F(n.height) : n.height) / i;
|
|
366
366
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
367
367
|
x: o,
|
|
368
368
|
y: s
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
var xe = /*#__PURE__*/
|
|
371
|
+
var xe = /*#__PURE__*/ L(0);
|
|
372
372
|
function Se(e) {
|
|
373
373
|
let t = m(e);
|
|
374
374
|
return !C() || !t.visualViewport ? xe : {
|
|
@@ -381,9 +381,9 @@ function Ce(e, t, n) {
|
|
|
381
381
|
}
|
|
382
382
|
function Z(e, t, n, r) {
|
|
383
383
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
384
|
-
let i = e.getBoundingClientRect(), a = Y(e), o =
|
|
384
|
+
let i = e.getBoundingClientRect(), a = Y(e), o = L(1);
|
|
385
385
|
t && (r ? u(r) && (o = X(r)) : o = X(e));
|
|
386
|
-
let s = Ce(a, n, r) ? Se(a) :
|
|
386
|
+
let s = Ce(a, n, r) ? Se(a) : L(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, d = i.width / o.x, f = i.height / o.y;
|
|
387
387
|
if (a) {
|
|
388
388
|
let e = m(a), t = r && u(r) ? m(r) : r, n = e, i = p(n);
|
|
389
389
|
for (; i && r && t !== n;) {
|
|
@@ -391,7 +391,7 @@ function Z(e, t, n, r) {
|
|
|
391
391
|
c *= e.x, l *= e.y, d *= e.x, f *= e.y, c += a, l += o, n = m(i), i = p(n);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return H({
|
|
395
395
|
width: d,
|
|
396
396
|
height: f,
|
|
397
397
|
x: c,
|
|
@@ -415,12 +415,12 @@ function we(e) {
|
|
|
415
415
|
let l = {
|
|
416
416
|
scrollLeft: 0,
|
|
417
417
|
scrollTop: 0
|
|
418
|
-
}, u =
|
|
418
|
+
}, u = L(1), p = L(0), m = d(r);
|
|
419
419
|
if ((m || !m && !a) && ((c(r) !== "body" || f(o)) && (l = g(r)), m)) {
|
|
420
420
|
let e = Z(r);
|
|
421
421
|
u = X(r), p.x = e.x + r.clientLeft, p.y = e.y + r.clientTop;
|
|
422
422
|
}
|
|
423
|
-
let h = o && !m && !a ? $(o, l) :
|
|
423
|
+
let h = o && !m && !a ? $(o, l) : L(0);
|
|
424
424
|
return {
|
|
425
425
|
width: n.width * u.x,
|
|
426
426
|
height: n.height * u.y,
|
|
@@ -432,8 +432,8 @@ function Te(e) {
|
|
|
432
432
|
return Array.from(e.getClientRects());
|
|
433
433
|
}
|
|
434
434
|
function Ee(e) {
|
|
435
|
-
let t = v(e), n = g(e), r = e.ownerDocument.body, i =
|
|
436
|
-
return b(r).direction === "rtl" && (o +=
|
|
435
|
+
let t = v(e), n = g(e), r = e.ownerDocument.body, i = P(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = P(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Q(e), s = -n.scrollTop;
|
|
436
|
+
return b(r).direction === "rtl" && (o += P(t.clientWidth, r.clientWidth) - i), {
|
|
437
437
|
width: i,
|
|
438
438
|
height: a,
|
|
439
439
|
x: o,
|
|
@@ -461,7 +461,7 @@ function Oe(e, t) {
|
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
function ke(e, t) {
|
|
464
|
-
let n = Z(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = d(e) ? X(e) :
|
|
464
|
+
let n = Z(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = d(e) ? X(e) : L(1);
|
|
465
465
|
return {
|
|
466
466
|
width: e.clientWidth * a.x,
|
|
467
467
|
height: e.clientHeight * a.y,
|
|
@@ -483,7 +483,7 @@ function Ae(e, t, n) {
|
|
|
483
483
|
height: t.height
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
return
|
|
486
|
+
return H(r);
|
|
487
487
|
}
|
|
488
488
|
function je(e, t) {
|
|
489
489
|
let n = l(e);
|
|
@@ -503,7 +503,7 @@ function Ne(e) {
|
|
|
503
503
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? S(t) ? [] : Me(t, this._c) : [].concat(n), r], o = Ae(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
504
504
|
for (let e = 1; e < a.length; e++) {
|
|
505
505
|
let n = Ae(t, a[e], i);
|
|
506
|
-
s =
|
|
506
|
+
s = P(n.top, s), c = M(n.right, c), l = M(n.bottom, l), u = P(n.left, u);
|
|
507
507
|
}
|
|
508
508
|
return {
|
|
509
509
|
width: c - u,
|
|
@@ -523,7 +523,7 @@ function Fe(e, t, n) {
|
|
|
523
523
|
let r = d(t), i = v(t), a = n === "fixed", o = Z(e, !0, a, t), s = {
|
|
524
524
|
scrollLeft: 0,
|
|
525
525
|
scrollTop: 0
|
|
526
|
-
}, l =
|
|
526
|
+
}, l = L(0);
|
|
527
527
|
function u() {
|
|
528
528
|
l.x = Q(i);
|
|
529
529
|
}
|
|
@@ -532,7 +532,7 @@ function Fe(e, t, n) {
|
|
|
532
532
|
l.x = e.x + t.clientLeft, l.y = e.y + t.clientTop;
|
|
533
533
|
} else i && u();
|
|
534
534
|
a && !r && i && u();
|
|
535
|
-
let p = i && !r && !a ? $(i, s) :
|
|
535
|
+
let p = i && !r && !a ? $(i, s) : L(0);
|
|
536
536
|
return {
|
|
537
537
|
x: o.left + s.scrollLeft - l.x - p.x,
|
|
538
538
|
y: o.top + s.scrollTop - l.y - p.y,
|
|
@@ -604,9 +604,9 @@ function Ue(e, t) {
|
|
|
604
604
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
605
605
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
606
606
|
if (s || t(), !f || !p) return;
|
|
607
|
-
let m =
|
|
607
|
+
let m = V(d), h = V(i.clientWidth - (u + f)), g = V(i.clientHeight - (d + p)), _ = V(u), v = {
|
|
608
608
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
609
|
-
threshold:
|
|
609
|
+
threshold: P(0, M(1, c)) || 1
|
|
610
610
|
}, y = !0;
|
|
611
611
|
function b(t) {
|
|
612
612
|
let n = t[0].intersectionRatio;
|
|
@@ -763,26 +763,26 @@ function rt(e) {
|
|
|
763
763
|
E,
|
|
764
764
|
T
|
|
765
765
|
]);
|
|
766
|
-
let
|
|
766
|
+
let j = W.useMemo(() => ({
|
|
767
767
|
reference: S,
|
|
768
768
|
floating: C,
|
|
769
769
|
setReference: v,
|
|
770
770
|
setFloating: y
|
|
771
|
-
}), [v, y]),
|
|
771
|
+
}), [v, y]), M = W.useMemo(() => ({
|
|
772
772
|
reference: b,
|
|
773
773
|
floating: x
|
|
774
|
-
}), [b, x]),
|
|
774
|
+
}), [b, x]), N = W.useMemo(() => {
|
|
775
775
|
let e = {
|
|
776
776
|
position: n,
|
|
777
777
|
left: 0,
|
|
778
778
|
top: 0
|
|
779
779
|
};
|
|
780
|
-
if (!
|
|
781
|
-
let t = tt(
|
|
780
|
+
if (!M.floating) return e;
|
|
781
|
+
let t = tt(M.floating, u.x), r = tt(M.floating, u.y);
|
|
782
782
|
return s ? {
|
|
783
783
|
...e,
|
|
784
784
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
785
|
-
...et(
|
|
785
|
+
...et(M.floating) >= 1.5 && { willChange: "transform" }
|
|
786
786
|
} : {
|
|
787
787
|
position: n,
|
|
788
788
|
left: t,
|
|
@@ -791,22 +791,22 @@ function rt(e) {
|
|
|
791
791
|
}, [
|
|
792
792
|
n,
|
|
793
793
|
s,
|
|
794
|
-
|
|
794
|
+
M.floating,
|
|
795
795
|
u.x,
|
|
796
796
|
u.y
|
|
797
797
|
]);
|
|
798
798
|
return W.useMemo(() => ({
|
|
799
799
|
...u,
|
|
800
800
|
update: k,
|
|
801
|
-
refs:
|
|
802
|
-
elements:
|
|
803
|
-
floatingStyles:
|
|
801
|
+
refs: j,
|
|
802
|
+
elements: M,
|
|
803
|
+
floatingStyles: N
|
|
804
804
|
}), [
|
|
805
805
|
u,
|
|
806
806
|
k,
|
|
807
|
-
ee,
|
|
808
807
|
j,
|
|
809
|
-
M
|
|
808
|
+
M,
|
|
809
|
+
N
|
|
810
810
|
]);
|
|
811
811
|
}
|
|
812
812
|
var it = (e, t) => {
|
|
@@ -849,14 +849,14 @@ var it = (e, t) => {
|
|
|
849
849
|
};
|
|
850
850
|
};
|
|
851
851
|
//#endregion
|
|
852
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
852
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useFloatingRootContext.mjs
|
|
853
853
|
function ut(n) {
|
|
854
|
-
let { open: r = !1, onOpenChange: i, elements: a = {} } = n, s = o(), c =
|
|
854
|
+
let { open: r = !1, onOpenChange: i, elements: a = {} } = n, s = o(), c = E() != null;
|
|
855
855
|
if (process.env.NODE_ENV !== "production") {
|
|
856
856
|
let e = a.reference;
|
|
857
857
|
e && !u(e) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
|
|
858
858
|
}
|
|
859
|
-
let l = t(() => new
|
|
859
|
+
let l = t(() => new A({
|
|
860
860
|
open: r,
|
|
861
861
|
transitionStatus: void 0,
|
|
862
862
|
onOpenChange: i,
|
|
@@ -882,7 +882,7 @@ function ut(n) {
|
|
|
882
882
|
]), l.context.onOpenChange = i, l.context.nested = c, l;
|
|
883
883
|
}
|
|
884
884
|
//#endregion
|
|
885
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
885
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/hooks/useFloating.mjs
|
|
886
886
|
function dt(t = {}) {
|
|
887
887
|
let { nodeId: n, externalTree: r } = t, i = ut(t), a = t.rootContext || i, o = a.useState("referenceElement"), s = a.useState("floatingElement"), c = a.useState("domReferenceElement"), l = a.useState("open"), d = a.useState("floatingId"), [f, p] = W.useState(null), [m, h] = W.useState(void 0), [g, _] = W.useState(void 0), v = W.useRef(null), y = D(r), b = W.useMemo(() => ({
|
|
888
888
|
reference: o,
|
|
@@ -966,25 +966,25 @@ function dt(t = {}) {
|
|
|
966
966
|
]);
|
|
967
967
|
}
|
|
968
968
|
//#endregion
|
|
969
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
969
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/floating-ui-react/middleware/arrow.mjs
|
|
970
970
|
var ft = (e) => ({
|
|
971
971
|
name: "arrow",
|
|
972
972
|
options: e,
|
|
973
973
|
async fn(t) {
|
|
974
974
|
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0, offsetParent: d = "real" } = B(e, t) || {};
|
|
975
975
|
if (l == null) return {};
|
|
976
|
-
let f =
|
|
976
|
+
let f = se(u), p = {
|
|
977
977
|
x: n,
|
|
978
978
|
y: r
|
|
979
|
-
}, m =
|
|
979
|
+
}, m = z(i), h = re(m), g = await o.getDimensions(l), _ = m === "y", v = _ ? "top" : "left", y = _ ? "bottom" : "right", b = _ ? "clientHeight" : "clientWidth", x = a.reference[h] + a.reference[m] - p[m] - a.floating[h], S = p[m] - a.reference[m], C = d === "real" ? await o.getOffsetParent?.(l) : s.floating, w = s.floating[b] || a.floating[h];
|
|
980
980
|
(!w || !await o.isElement?.(C)) && (w = s.floating[b] || a.floating[h]);
|
|
981
|
-
let T = x / 2 - S / 2, E = w / 2 - g[h] / 2 - 1, D = Math.min(f[v], E), O = Math.min(f[y], E), k = D, A = w - g[h] - O, j = w / 2 - g[h] / 2 + T, M =
|
|
981
|
+
let T = x / 2 - S / 2, E = w / 2 - g[h] / 2 - 1, D = Math.min(f[v], E), O = Math.min(f[y], E), k = D, A = w - g[h] - O, j = w / 2 - g[h] / 2 + T, M = ae(k, j, A), N = !c.arrow && R(i) != null && j !== M && a.reference[h] / 2 - (j < k ? D : O) - g[h] / 2 < 0, P = N ? j < k ? j - k : j - A : 0;
|
|
982
982
|
return {
|
|
983
|
-
[m]: p[m] +
|
|
983
|
+
[m]: p[m] + P,
|
|
984
984
|
data: {
|
|
985
985
|
[m]: M,
|
|
986
|
-
centerOffset: j - M -
|
|
987
|
-
...N && { alignmentOffset:
|
|
986
|
+
centerOffset: j - M - P,
|
|
987
|
+
...N && { alignmentOffset: P }
|
|
988
988
|
},
|
|
989
989
|
reset: N
|
|
990
990
|
};
|
|
@@ -992,23 +992,23 @@ var ft = (e) => ({
|
|
|
992
992
|
}), pt = (e, t) => ({
|
|
993
993
|
...ft(e),
|
|
994
994
|
options: [e, t]
|
|
995
|
-
}), mt = {
|
|
995
|
+
}), mt = lt().fn, ht = {
|
|
996
996
|
name: "hide",
|
|
997
997
|
async fn(e) {
|
|
998
998
|
let { width: t, height: n, x: r, y: i } = e.rects.reference, a = t === 0 && n === 0 && r === 0 && i === 0;
|
|
999
|
-
return { data: { referenceHidden: (await
|
|
999
|
+
return { data: { referenceHidden: (await mt(e)).data?.referenceHidden || a } };
|
|
1000
1000
|
}
|
|
1001
|
-
},
|
|
1001
|
+
}, gt = {
|
|
1002
1002
|
sideX: "left",
|
|
1003
1003
|
sideY: "top"
|
|
1004
|
-
},
|
|
1004
|
+
}, _t = {
|
|
1005
1005
|
name: "adaptiveOrigin",
|
|
1006
1006
|
async fn(e) {
|
|
1007
1007
|
let { x: t, y: n, rects: { floating: r }, elements: { floating: i }, platform: a, strategy: o, placement: s } = e, c = m(i), l = c.getComputedStyle(i);
|
|
1008
1008
|
if (!(l.transitionDuration !== "0s" && l.transitionDuration !== "")) return {
|
|
1009
1009
|
x: t,
|
|
1010
1010
|
y: n,
|
|
1011
|
-
data:
|
|
1011
|
+
data: gt
|
|
1012
1012
|
};
|
|
1013
1013
|
let u = await a.getOffsetParent?.(i), d = {
|
|
1014
1014
|
width: 0,
|
|
@@ -1019,15 +1019,15 @@ var ft = (e) => ({
|
|
|
1019
1019
|
height: c.visualViewport.height
|
|
1020
1020
|
};
|
|
1021
1021
|
else if (u === c) {
|
|
1022
|
-
let e =
|
|
1022
|
+
let e = T(i);
|
|
1023
1023
|
d = {
|
|
1024
1024
|
width: e.documentElement.clientWidth,
|
|
1025
1025
|
height: e.documentElement.clientHeight
|
|
1026
1026
|
};
|
|
1027
1027
|
} else await a.isElement?.(u) && (d = await a.getDimensions(u));
|
|
1028
|
-
let f =
|
|
1028
|
+
let f = I(s), p = t, h = n;
|
|
1029
1029
|
f === "left" && (p = d.width - (t + r.width)), f === "top" && (h = d.height - (n + r.height));
|
|
1030
|
-
let g = f === "left" ? "right" :
|
|
1030
|
+
let g = f === "left" ? "right" : gt.sideX, _ = f === "top" ? "bottom" : gt.sideY;
|
|
1031
1031
|
return {
|
|
1032
1032
|
x: p,
|
|
1033
1033
|
y: h,
|
|
@@ -1039,8 +1039,8 @@ var ft = (e) => ({
|
|
|
1039
1039
|
}
|
|
1040
1040
|
};
|
|
1041
1041
|
//#endregion
|
|
1042
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
1043
|
-
function
|
|
1042
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/useAnchorPositioning.mjs
|
|
1043
|
+
function vt(e, t, n) {
|
|
1044
1044
|
let r = e === "inline-start" || e === "inline-end";
|
|
1045
1045
|
return {
|
|
1046
1046
|
top: "top",
|
|
@@ -1049,11 +1049,11 @@ function _t(e, t, n) {
|
|
|
1049
1049
|
left: r ? n ? "inline-end" : "inline-start" : "left"
|
|
1050
1050
|
}[t];
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function yt(e, t, n) {
|
|
1053
1053
|
let { rects: r, placement: i } = e;
|
|
1054
1054
|
return {
|
|
1055
|
-
side:
|
|
1056
|
-
align:
|
|
1055
|
+
side: vt(t, I(i), n),
|
|
1056
|
+
align: R(i) || "center",
|
|
1057
1057
|
anchor: {
|
|
1058
1058
|
width: r.reference.width,
|
|
1059
1059
|
height: r.reference.height
|
|
@@ -1064,34 +1064,34 @@ function vt(e, t, n) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1068
|
-
let { anchor: n, positionMethod: r = "absolute", side: o = "bottom", sideOffset: s = 0, align: c = "center", alignOffset: l = 0, collisionBoundary: u, collisionPadding: d = 5, sticky: f = !1, arrowPadding: p = 5, disableAnchorTracking: h = !1, inline: g, keepMounted: _ = !1, floatingRootContext: v, mounted: y, collisionAvoidance: b, shiftCrossAxis: x = !1, nodeId: S, adaptiveOrigin: C, lazyFlip:
|
|
1069
|
-
!y &&
|
|
1070
|
-
let
|
|
1067
|
+
function bt(t) {
|
|
1068
|
+
let { anchor: n, positionMethod: r = "absolute", side: o = "bottom", sideOffset: s = 0, align: c = "center", alignOffset: l = 0, collisionBoundary: u, collisionPadding: d = 5, sticky: f = !1, arrowPadding: p = 5, disableAnchorTracking: h = !1, inline: g, keepMounted: _ = !1, floatingRootContext: v, mounted: y, collisionAvoidance: b, shiftCrossAxis: x = !1, nodeId: S, adaptiveOrigin: C, lazyFlip: E = !1, externalTree: D } = t, [O, k] = W.useState(null);
|
|
1069
|
+
!y && O !== null && k(null);
|
|
1070
|
+
let A = b.side || "flip", j = b.align || "flip", M = b.fallbackAxisSide || "end", N = typeof n == "function" ? n : void 0, P = i(N), F = N ? P : n, ee = w(n), L = w(y), z = a() === "rtl", te = O || {
|
|
1071
1071
|
top: "top",
|
|
1072
1072
|
right: "right",
|
|
1073
1073
|
bottom: "bottom",
|
|
1074
1074
|
left: "left",
|
|
1075
|
-
"inline-end":
|
|
1076
|
-
"inline-start":
|
|
1077
|
-
}[o],
|
|
1078
|
-
typeof
|
|
1079
|
-
top:
|
|
1080
|
-
right:
|
|
1081
|
-
bottom:
|
|
1082
|
-
left:
|
|
1083
|
-
} :
|
|
1084
|
-
top: (
|
|
1085
|
-
right: (
|
|
1086
|
-
bottom: (
|
|
1087
|
-
left: (
|
|
1075
|
+
"inline-end": z ? "left" : "right",
|
|
1076
|
+
"inline-start": z ? "right" : "left"
|
|
1077
|
+
}[o], ne = c === "center" ? te : `${te}-${c}`, B = d, re = +(o === "bottom"), ie = +(o === "top"), ae = +(o === "right"), V = +(o === "left");
|
|
1078
|
+
typeof B == "number" ? B = {
|
|
1079
|
+
top: B + re,
|
|
1080
|
+
right: B + V,
|
|
1081
|
+
bottom: B + ie,
|
|
1082
|
+
left: B + ae
|
|
1083
|
+
} : B &&= {
|
|
1084
|
+
top: (B.top || 0) + re,
|
|
1085
|
+
right: (B.right || 0) + V,
|
|
1086
|
+
bottom: (B.bottom || 0) + ie,
|
|
1087
|
+
left: (B.left || 0) + ae
|
|
1088
1088
|
};
|
|
1089
|
-
let
|
|
1089
|
+
let oe = {
|
|
1090
1090
|
boundary: u === "clipping-ancestors" ? "clippingAncestors" : u,
|
|
1091
|
-
padding:
|
|
1092
|
-
},
|
|
1091
|
+
padding: B
|
|
1092
|
+
}, H = W.useRef(null), se = w(s), ce = w(l), le = typeof s == "function" ? 0 : s, ue = typeof l == "function" ? 0 : l, G = [];
|
|
1093
1093
|
g && G.push(g), G.push(it((e) => {
|
|
1094
|
-
let t =
|
|
1094
|
+
let t = yt(e, o, z), n = typeof se.current == "function" ? se.current(t) : se.current, r = typeof ce.current == "function" ? ce.current(t) : ce.current;
|
|
1095
1095
|
return {
|
|
1096
1096
|
mainAxis: n,
|
|
1097
1097
|
crossAxis: r,
|
|
@@ -1100,62 +1100,62 @@ function yt(t) {
|
|
|
1100
1100
|
}, [
|
|
1101
1101
|
le,
|
|
1102
1102
|
ue,
|
|
1103
|
-
|
|
1103
|
+
z,
|
|
1104
1104
|
o
|
|
1105
1105
|
]));
|
|
1106
|
-
let de =
|
|
1107
|
-
...
|
|
1106
|
+
let de = j === "none" && A !== "shift", fe = !de && (f || x || A === "shift"), pe = A === "none" ? null : st({
|
|
1107
|
+
...oe,
|
|
1108
1108
|
padding: {
|
|
1109
|
-
top:
|
|
1110
|
-
right:
|
|
1111
|
-
bottom:
|
|
1112
|
-
left:
|
|
1109
|
+
top: B.top + 1,
|
|
1110
|
+
right: B.right + 1,
|
|
1111
|
+
bottom: B.bottom + 1,
|
|
1112
|
+
left: B.left + 1
|
|
1113
1113
|
},
|
|
1114
|
-
mainAxis: !x &&
|
|
1115
|
-
crossAxis:
|
|
1116
|
-
fallbackAxisSideDirection:
|
|
1114
|
+
mainAxis: !x && A === "flip",
|
|
1115
|
+
crossAxis: j === "flip" ? "alignment" : !1,
|
|
1116
|
+
fallbackAxisSideDirection: M
|
|
1117
1117
|
}), me = de ? null : at((e) => {
|
|
1118
|
-
let t =
|
|
1118
|
+
let t = T(e.elements.floating).documentElement;
|
|
1119
1119
|
return {
|
|
1120
|
-
...
|
|
1120
|
+
...oe,
|
|
1121
1121
|
rootBoundary: x ? {
|
|
1122
1122
|
x: 0,
|
|
1123
1123
|
y: 0,
|
|
1124
1124
|
width: t.clientWidth,
|
|
1125
1125
|
height: t.clientHeight
|
|
1126
1126
|
} : void 0,
|
|
1127
|
-
mainAxis:
|
|
1127
|
+
mainAxis: j !== "none",
|
|
1128
1128
|
crossAxis: fe,
|
|
1129
1129
|
limiter: f || x ? void 0 : ot((e) => {
|
|
1130
|
-
if (!
|
|
1131
|
-
let { width: t, height: n } =
|
|
1130
|
+
if (!H.current) return {};
|
|
1131
|
+
let { width: t, height: n } = H.current.getBoundingClientRect(), r = U(I(e.placement)), i = r === "y" ? t : n, a = r === "y" ? B.left + B.right : B.top + B.bottom;
|
|
1132
1132
|
return { offset: i / 2 + a / 2 };
|
|
1133
1133
|
})
|
|
1134
1134
|
};
|
|
1135
1135
|
}, [
|
|
1136
|
-
|
|
1136
|
+
oe,
|
|
1137
1137
|
f,
|
|
1138
1138
|
x,
|
|
1139
|
-
|
|
1140
|
-
|
|
1139
|
+
B,
|
|
1140
|
+
j
|
|
1141
1141
|
]);
|
|
1142
|
-
|
|
1143
|
-
...
|
|
1142
|
+
A === "shift" || j === "shift" || c === "center" ? G.push(me, pe) : G.push(pe, me), G.push(ct({
|
|
1143
|
+
...oe,
|
|
1144
1144
|
apply({ elements: { floating: e }, availableWidth: t, availableHeight: n, rects: r }) {
|
|
1145
|
-
if (!
|
|
1145
|
+
if (!L.current) return;
|
|
1146
1146
|
let i = e.style;
|
|
1147
1147
|
i.setProperty("--available-width", `${t}px`), i.setProperty("--available-height", `${n}px`);
|
|
1148
1148
|
let a = m(e).devicePixelRatio || 1, { x: o, y: s, width: c, height: l } = r.reference, u = (Math.round((o + c) * a) - Math.round(o * a)) / a, d = (Math.round((s + l) * a) - Math.round(s * a)) / a;
|
|
1149
1149
|
i.setProperty("--anchor-width", `${u}px`), i.setProperty("--anchor-height", `${d}px`);
|
|
1150
1150
|
}
|
|
1151
1151
|
}), pt((e) => ({
|
|
1152
|
-
element:
|
|
1152
|
+
element: H.current || T(e.elements.floating).createElement("div"),
|
|
1153
1153
|
padding: p,
|
|
1154
1154
|
offsetParent: "floating"
|
|
1155
1155
|
}), [p]), {
|
|
1156
1156
|
name: "transformOrigin",
|
|
1157
1157
|
fn(e) {
|
|
1158
|
-
let { elements: t, middlewareData: n, placement: r, rects: i, y: a } = e, c =
|
|
1158
|
+
let { elements: t, middlewareData: n, placement: r, rects: i, y: a } = e, c = I(r), l = U(c), u = H.current, d = n.arrow?.x || 0, f = n.arrow?.y || 0, p = u?.clientWidth || 0, m = u?.clientHeight || 0, h = d + p / 2, g = f + m / 2, _ = Math.abs(n.shift?.y || 0), v = i.reference.height / 2, y = typeof s == "function" ? s(yt(e, o, z)) : s, b = _ > y, x = {
|
|
1159
1159
|
top: `${h}px calc(100% + ${y}px)`,
|
|
1160
1160
|
bottom: `${h}px ${-y}px`,
|
|
1161
1161
|
left: `calc(100% + ${y}px) ${g}px`,
|
|
@@ -1163,7 +1163,7 @@ function yt(t) {
|
|
|
1163
1163
|
}[c], S = `${h}px ${i.reference.y + v - a}px`;
|
|
1164
1164
|
return t.floating.style.setProperty("--transform-origin", fe && l === "y" && b ? S : x), {};
|
|
1165
1165
|
}
|
|
1166
|
-
},
|
|
1166
|
+
}, ht, C), e(() => {
|
|
1167
1167
|
!y && v && v.update({
|
|
1168
1168
|
referenceElement: null,
|
|
1169
1169
|
floatingElement: null,
|
|
@@ -1177,13 +1177,13 @@ function yt(t) {
|
|
|
1177
1177
|
}), [h]), { refs: K, elements: q, x: ge, y: _e, middlewareData: J, update: ve, placement: ye, context: be, isPositioned: Y, floatingStyles: X } = dt({
|
|
1178
1178
|
rootContext: v,
|
|
1179
1179
|
open: _ ? y : void 0,
|
|
1180
|
-
placement:
|
|
1180
|
+
placement: ne,
|
|
1181
1181
|
middleware: G,
|
|
1182
1182
|
strategy: r,
|
|
1183
1183
|
whileElementsMounted: _ ? void 0 : (...e) => We(...e, he),
|
|
1184
1184
|
nodeId: S,
|
|
1185
|
-
externalTree:
|
|
1186
|
-
}), { sideX: xe, sideY: Se } = J.adaptiveOrigin ||
|
|
1185
|
+
externalTree: D
|
|
1186
|
+
}), { sideX: xe, sideY: Se } = J.adaptiveOrigin || gt, Ce = Y ? r : "fixed", Z = W.useMemo(() => {
|
|
1187
1187
|
let e = C ? {
|
|
1188
1188
|
position: Ce,
|
|
1189
1189
|
[xe]: ge,
|
|
@@ -1205,24 +1205,24 @@ function yt(t) {
|
|
|
1205
1205
|
]), Q = W.useRef(null);
|
|
1206
1206
|
e(() => {
|
|
1207
1207
|
if (!y) return;
|
|
1208
|
-
let e =
|
|
1208
|
+
let e = ee.current, t = typeof e == "function" ? e() : e, n = (xt(t) ? t.current : t) || null;
|
|
1209
1209
|
n !== Q.current && (K.setPositionReference(n), Q.current = n);
|
|
1210
1210
|
}, [
|
|
1211
1211
|
y,
|
|
1212
1212
|
K,
|
|
1213
|
-
|
|
1214
|
-
|
|
1213
|
+
F,
|
|
1214
|
+
ee
|
|
1215
1215
|
]), W.useEffect(() => {
|
|
1216
1216
|
if (!y) return;
|
|
1217
|
-
let e =
|
|
1218
|
-
typeof e != "function" &&
|
|
1217
|
+
let e = ee.current;
|
|
1218
|
+
typeof e != "function" && xt(e) && e.current !== Q.current && (K.setPositionReference(e.current), Q.current = e.current);
|
|
1219
1219
|
}, [
|
|
1220
1220
|
y,
|
|
1221
1221
|
K,
|
|
1222
|
-
|
|
1223
|
-
|
|
1222
|
+
F,
|
|
1223
|
+
ee
|
|
1224
1224
|
]), W.useEffect(() => {
|
|
1225
|
-
if (_ && y && q.
|
|
1225
|
+
if (_ && y && q.reference && q.floating) return We(q.reference, q.floating, ve, he);
|
|
1226
1226
|
}, [
|
|
1227
1227
|
_,
|
|
1228
1228
|
y,
|
|
@@ -1230,11 +1230,11 @@ function yt(t) {
|
|
|
1230
1230
|
ve,
|
|
1231
1231
|
he
|
|
1232
1232
|
]);
|
|
1233
|
-
let $ =
|
|
1233
|
+
let $ = I(ye), we = vt(o, $, z), Te = R(ye) || "center", Ee = !!J.hide?.referenceHidden;
|
|
1234
1234
|
e(() => {
|
|
1235
|
-
|
|
1235
|
+
E && y && Y && k($);
|
|
1236
1236
|
}, [
|
|
1237
|
-
|
|
1237
|
+
E,
|
|
1238
1238
|
y,
|
|
1239
1239
|
Y,
|
|
1240
1240
|
$
|
|
@@ -1247,7 +1247,7 @@ function yt(t) {
|
|
|
1247
1247
|
return W.useMemo(() => ({
|
|
1248
1248
|
positionerStyles: Z,
|
|
1249
1249
|
arrowStyles: De,
|
|
1250
|
-
arrowRef:
|
|
1250
|
+
arrowRef: H,
|
|
1251
1251
|
arrowUncentered: Oe,
|
|
1252
1252
|
side: we,
|
|
1253
1253
|
align: Te,
|
|
@@ -1260,7 +1260,7 @@ function yt(t) {
|
|
|
1260
1260
|
}), [
|
|
1261
1261
|
Z,
|
|
1262
1262
|
De,
|
|
1263
|
-
|
|
1263
|
+
H,
|
|
1264
1264
|
Oe,
|
|
1265
1265
|
we,
|
|
1266
1266
|
Te,
|
|
@@ -1272,17 +1272,17 @@ function yt(t) {
|
|
|
1272
1272
|
ve
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function xt(e) {
|
|
1276
1276
|
return e != null && "current" in e;
|
|
1277
1277
|
}
|
|
1278
1278
|
//#endregion
|
|
1279
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
1280
|
-
function
|
|
1281
|
-
return e === "starting" ?
|
|
1279
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/getDisabledMountTransitionStyles.mjs
|
|
1280
|
+
function St(e) {
|
|
1281
|
+
return e === "starting" ? j : n;
|
|
1282
1282
|
}
|
|
1283
1283
|
//#endregion
|
|
1284
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
1285
|
-
function
|
|
1284
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/usePositioner.mjs
|
|
1285
|
+
function Ct(e, t, { styles: n, transitionStatus: i, props: a, refs: o, hidden: s, inert: c = !1 }) {
|
|
1286
1286
|
let l = { ...n };
|
|
1287
1287
|
return c && (l.pointerEvents = "none"), r("div", e, {
|
|
1288
1288
|
state: t,
|
|
@@ -1293,11 +1293,11 @@ function St(e, t, { styles: n, transitionStatus: i, props: a, refs: o, hidden: s
|
|
|
1293
1293
|
hidden: s,
|
|
1294
1294
|
style: l
|
|
1295
1295
|
},
|
|
1296
|
-
|
|
1296
|
+
St(i),
|
|
1297
1297
|
a
|
|
1298
1298
|
],
|
|
1299
1299
|
stateAttributesMapping: k
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
1302
|
//#endregion
|
|
1303
|
-
export { ut as a,
|
|
1303
|
+
export { ut as a, _t as i, St as n, Ve as o, bt as r, Ct as t };
|