@arcadeai/design-system 5.0.1 → 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.js +1 -1
- 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.js +1 -1
- 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,22 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./useIsoLayoutEffect-
|
|
3
|
-
import { o as t, r as n, t as r, u as i } from "./useRenderElement-
|
|
4
|
-
import { t as a } from "./useStableCallback-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { a as
|
|
8
|
-
import { d
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { i as
|
|
13
|
-
import { n as ae, r as oe, t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
2
|
+
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
|
+
import { o as t, r as n, t as r, u as i } from "./useRenderElement-BToElZ97.js";
|
|
4
|
+
import { t as a } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
+
import { t as o } from "./useBaseUiId-voePHgyX.js";
|
|
6
|
+
import { l as s, t as c } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
7
|
+
import { a as l, t as u } from "./useOpenChangeComplete-Bs6gnxd9.js";
|
|
8
|
+
import { d } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
9
|
+
import { cn as f } from "./lib/utils.js";
|
|
10
|
+
import { A as p, D as m, E as h, O as g, S as _, T as v, V as y, _ as b, a as x, c as S, f as C, h as w, j as T, k as E, m as D, o as O, p as k, r as A, s as j, v as M } from "./popupStateMapping-C8W76brO.js";
|
|
11
|
+
import { n as N, r as P, t as ee } from "./safePolygon-os2F06tc.js";
|
|
12
|
+
import { i as te, n as ne, r as re, t as ie } from "./usePositioner-DkeyI5Le.js";
|
|
13
|
+
import { n as ae, r as oe, t as F } from "./store-C-KXBzZ0.js";
|
|
14
|
+
import { t as se } from "./useFocus-DwJfNYN6.js";
|
|
15
|
+
import { t as ce } from "./FloatingPortalLite-e0IaokaG.js";
|
|
16
16
|
import * as I from "react";
|
|
17
|
-
import { jsx as L, jsxs as
|
|
18
|
-
|
|
19
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/utils/popups/inlineRect.js
|
|
17
|
+
import { jsx as L, jsxs as le } from "react/jsx-runtime";
|
|
18
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/utils/popups/inlineRect.mjs
|
|
20
19
|
function R(e, t, n, r) {
|
|
21
20
|
return {
|
|
22
21
|
left: e,
|
|
@@ -29,7 +28,7 @@ function R(e, t, n, r) {
|
|
|
29
28
|
height: r - t
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function ue(e) {
|
|
33
32
|
return {
|
|
34
33
|
left: e.left,
|
|
35
34
|
top: e.top,
|
|
@@ -42,7 +41,7 @@ function fe(e) {
|
|
|
42
41
|
function z(e) {
|
|
43
42
|
let t = [], n, r = Infinity, i = Infinity, a = -Infinity, o = -Infinity;
|
|
44
43
|
for (let s of Array.from(e).sort((e, t) => e.top - t.top)) {
|
|
45
|
-
if (r = Math.min(r, s.left), i = Math.min(i, s.top), a = Math.max(a, s.right), o = Math.max(o, s.bottom), !n || s.top - n.top > n.height / 2) t.push(
|
|
44
|
+
if (r = Math.min(r, s.left), i = Math.min(i, s.top), a = Math.max(a, s.right), o = Math.max(o, s.bottom), !n || s.top - n.top > n.height / 2) t.push(ue(s));
|
|
46
45
|
else {
|
|
47
46
|
let e = t[t.length - 1];
|
|
48
47
|
e.left = Math.min(e.left, s.left), e.right = Math.max(e.right, s.right), e.bottom = Math.max(e.bottom, s.bottom), e.width = e.right - e.left, e.height = e.bottom - e.top;
|
|
@@ -60,7 +59,7 @@ function B(e, t, n) {
|
|
|
60
59
|
function V(e) {
|
|
61
60
|
return R(e.left, e.top, e.right, e.bottom);
|
|
62
61
|
}
|
|
63
|
-
function
|
|
62
|
+
function H(e, t, n) {
|
|
64
63
|
let { lines: r } = z(e.getClientRects());
|
|
65
64
|
if (r.length < 2) return;
|
|
66
65
|
let i = B(r, t, n);
|
|
@@ -71,7 +70,7 @@ function pe(e, t, n) {
|
|
|
71
70
|
element: e
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
|
-
function
|
|
73
|
+
function de(e, t, n) {
|
|
75
74
|
let { lines: r, fallback: i } = z(e.getClientRects());
|
|
76
75
|
if (r.length < 2) return null;
|
|
77
76
|
let a = n?.x, o = n?.y, s = t[0];
|
|
@@ -93,12 +92,12 @@ function me(e, t, n) {
|
|
|
93
92
|
}
|
|
94
93
|
return R(l, f.top, u, p.bottom);
|
|
95
94
|
}
|
|
96
|
-
function
|
|
97
|
-
return "contextElement" in e && e.contextElement ? e.contextElement :
|
|
95
|
+
function fe(e) {
|
|
96
|
+
return "contextElement" in e && e.contextElement ? e.contextElement : d(e) ? e : void 0;
|
|
98
97
|
}
|
|
99
|
-
function
|
|
98
|
+
function pe(e, t) {
|
|
100
99
|
function n(t) {
|
|
101
|
-
|
|
100
|
+
U(e, t.currentTarget, t.clientX, t.clientY);
|
|
102
101
|
}
|
|
103
102
|
function r(e) {
|
|
104
103
|
t || n(e);
|
|
@@ -107,21 +106,21 @@ function ge(e, t) {
|
|
|
107
106
|
onFocus() {
|
|
108
107
|
e.current = void 0;
|
|
109
108
|
},
|
|
110
|
-
onMouseEnter:
|
|
109
|
+
onMouseEnter: r,
|
|
111
110
|
onMouseMove: r
|
|
112
111
|
};
|
|
113
112
|
}
|
|
114
|
-
function
|
|
115
|
-
let i =
|
|
113
|
+
function U(e, t, n, r) {
|
|
114
|
+
let i = H(t, n, r);
|
|
116
115
|
return e.current = i, i;
|
|
117
116
|
}
|
|
118
|
-
function
|
|
117
|
+
function me(e) {
|
|
119
118
|
return {
|
|
120
119
|
name: "inline",
|
|
121
120
|
async fn(t) {
|
|
122
121
|
let n = t.elements.reference;
|
|
123
122
|
if (typeof n?.getClientRects != "function") return {};
|
|
124
|
-
let r =
|
|
123
|
+
let r = fe(n), i = e.current, a = i?.element === n || i?.element === r ? i : void 0, o = de(n, t.placement, a);
|
|
125
124
|
if (!o || typeof t.platform.getElementRects != "function") return {};
|
|
126
125
|
let s = await t.platform.getElementRects({
|
|
127
126
|
reference: {
|
|
@@ -138,24 +137,24 @@ function _e(e) {
|
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
//#endregion
|
|
141
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
142
|
-
var
|
|
143
|
-
process.env.NODE_ENV !== "production" && (
|
|
144
|
-
function
|
|
145
|
-
let t = I.useContext(
|
|
140
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/root/PreviewCardContext.mjs
|
|
141
|
+
var W = /*#__PURE__*/ I.createContext(void 0);
|
|
142
|
+
process.env.NODE_ENV !== "production" && (W.displayName = "PreviewCardRootContext");
|
|
143
|
+
function G(e) {
|
|
144
|
+
let t = I.useContext(W);
|
|
146
145
|
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? i(50) : "Base UI: PreviewCardRootContext is missing. PreviewCard parts must be placed within <PreviewCard.Root>.");
|
|
147
146
|
return t;
|
|
148
147
|
}
|
|
149
148
|
//#endregion
|
|
150
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
151
|
-
var
|
|
149
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/store/PreviewCardStore.mjs
|
|
150
|
+
var he = {
|
|
152
151
|
...oe,
|
|
153
|
-
instantType:
|
|
154
|
-
hasViewport:
|
|
155
|
-
},
|
|
152
|
+
instantType: m((e) => e.instantType),
|
|
153
|
+
hasViewport: m((e) => e.hasViewport)
|
|
154
|
+
}, ge = class e extends _ {
|
|
156
155
|
constructor(e, t, n = !1) {
|
|
157
|
-
let r = new
|
|
158
|
-
...
|
|
156
|
+
let r = new O(), i = {
|
|
157
|
+
..._e(),
|
|
159
158
|
...e
|
|
160
159
|
};
|
|
161
160
|
i.floatingRootContext = ae(r, t, n), super(i, {
|
|
@@ -165,50 +164,39 @@ var ve = {
|
|
|
165
164
|
triggerElements: r,
|
|
166
165
|
closeDelayRef: { current: 300 },
|
|
167
166
|
inlineRectCoordsRef: { current: void 0 }
|
|
168
|
-
},
|
|
167
|
+
}, he);
|
|
169
168
|
}
|
|
170
169
|
setOpen = (e, t) => {
|
|
171
|
-
let
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
e && r && t.trigger && "clientX" in o && "clientY" in o && this.context.inlineRectCoordsRef.current?.element !== t.trigger && H(this.context.inlineRectCoordsRef, t.trigger, o.clientX, o.clientY), this.state.floatingRootContext.dispatchOpenChange(e, t);
|
|
177
|
-
let s = () => {
|
|
178
|
-
let r = { open: e };
|
|
179
|
-
i ? r.instantType = "focus" : a ? r.instantType = "dismiss" : n === "trigger-hover" && (r.instantType = void 0), x(r, e, t.trigger), this.update(r);
|
|
180
|
-
};
|
|
181
|
-
r ? de.flushSync(s) : s();
|
|
170
|
+
let { inlineRectCoordsRef: n } = this.context;
|
|
171
|
+
S(this, e, t, { onBeforeDispatch() {
|
|
172
|
+
let r = t.event;
|
|
173
|
+
e && t.reason === "trigger-hover" && t.trigger && "clientX" in r && "clientY" in r && n.current?.element !== t.trigger && U(n, t.trigger, r.clientX, r.clientY);
|
|
174
|
+
} });
|
|
182
175
|
};
|
|
183
176
|
static useStore(t, n) {
|
|
184
|
-
return
|
|
177
|
+
return b(t, (t, r) => new e(n, t, r)).store;
|
|
185
178
|
}
|
|
186
179
|
};
|
|
187
|
-
function
|
|
180
|
+
function _e() {
|
|
188
181
|
return {
|
|
189
|
-
...
|
|
182
|
+
...F(),
|
|
190
183
|
instantType: void 0,
|
|
191
184
|
hasViewport: !1
|
|
192
185
|
};
|
|
193
186
|
}
|
|
194
187
|
//#endregion
|
|
195
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
196
|
-
function
|
|
197
|
-
let { open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, actionsRef:
|
|
188
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/root/PreviewCardRoot.mjs
|
|
189
|
+
function K(t) {
|
|
190
|
+
let { open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, actionsRef: o, handle: l, triggerId: u, defaultTriggerId: d = null, children: f } = t, p = ge.useStore(l?.store, {
|
|
198
191
|
open: r,
|
|
199
192
|
openProp: n,
|
|
200
193
|
activeTriggerId: d,
|
|
201
194
|
triggerIdProp: u
|
|
202
195
|
});
|
|
203
|
-
|
|
204
|
-
n === void 0 && p.state.open === !1 && r === !0 && p.update({
|
|
205
|
-
open: !0,
|
|
206
|
-
activeTriggerId: d
|
|
207
|
-
});
|
|
208
|
-
}), p.useControlledProp("openProp", n), p.useControlledProp("triggerIdProp", u), p.useContextCallback("onOpenChange", i), p.useContextCallback("onOpenChangeComplete", a);
|
|
196
|
+
k(p, n, r, d), p.useControlledProp("openProp", n), p.useControlledProp("triggerIdProp", u), p.useContextCallback("onOpenChange", i), p.useContextCallback("onOpenChangeComplete", a);
|
|
209
197
|
let m = p.useState("open"), h = p.useState("activeTriggerId"), g = p.useState("mounted"), _ = p.useState("payload");
|
|
210
|
-
C(p);
|
|
211
|
-
let { forceUnmount: v } =
|
|
198
|
+
C(p, { closeOnActiveTriggerUnmount: !0 });
|
|
199
|
+
let { forceUnmount: v } = D(m, p, () => {
|
|
212
200
|
p.context.inlineRectCoordsRef.current = void 0;
|
|
213
201
|
});
|
|
214
202
|
e(() => {
|
|
@@ -218,114 +206,114 @@ function G(t) {
|
|
|
218
206
|
h,
|
|
219
207
|
m
|
|
220
208
|
]);
|
|
221
|
-
let
|
|
222
|
-
p.setOpen(!1, s
|
|
209
|
+
let y = I.useCallback(() => {
|
|
210
|
+
p.setOpen(!1, c(s));
|
|
223
211
|
}, [p]);
|
|
224
|
-
I.useImperativeHandle(
|
|
212
|
+
I.useImperativeHandle(o, () => ({
|
|
225
213
|
unmount: v,
|
|
226
|
-
close:
|
|
227
|
-
}), [v,
|
|
228
|
-
let
|
|
229
|
-
return /*#__PURE__*/
|
|
214
|
+
close: y
|
|
215
|
+
}), [v, y]);
|
|
216
|
+
let b = m || g;
|
|
217
|
+
return /*#__PURE__*/ le(W.Provider, {
|
|
230
218
|
value: p,
|
|
231
|
-
children: [
|
|
219
|
+
children: [b && /*#__PURE__*/ L(ve, { store: p }), typeof f == "function" ? f({ payload: _ }) : f]
|
|
232
220
|
});
|
|
233
221
|
}
|
|
234
|
-
function
|
|
235
|
-
let r =
|
|
236
|
-
return
|
|
222
|
+
function ve({ store: e }) {
|
|
223
|
+
let r = g(e.useState("floatingRootContext"));
|
|
224
|
+
return w(e, {
|
|
237
225
|
activeTriggerProps: r.reference ?? t,
|
|
238
226
|
inactiveTriggerProps: r.trigger ?? t,
|
|
239
|
-
popupProps: I.useMemo(() => n(
|
|
227
|
+
popupProps: I.useMemo(() => n(j, r.floating), [r.floating])
|
|
240
228
|
}), null;
|
|
241
229
|
}
|
|
242
|
-
var
|
|
243
|
-
return
|
|
230
|
+
var q = v(function(e) {
|
|
231
|
+
return G(!0) ? /*#__PURE__*/ L(K, { ...e }) : /*#__PURE__*/ L(p, { children: /*#__PURE__*/ L(K, { ...e }) });
|
|
244
232
|
});
|
|
245
|
-
process.env.NODE_ENV !== "production" && (
|
|
233
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "PreviewCardRoot");
|
|
246
234
|
//#endregion
|
|
247
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
248
|
-
var
|
|
249
|
-
process.env.NODE_ENV !== "production" && (
|
|
250
|
-
function
|
|
251
|
-
let e = I.useContext(
|
|
235
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/portal/PreviewCardPortalContext.mjs
|
|
236
|
+
var J = /*#__PURE__*/ I.createContext(void 0);
|
|
237
|
+
process.env.NODE_ENV !== "production" && (J.displayName = "PreviewCardPortalContext");
|
|
238
|
+
function ye() {
|
|
239
|
+
let e = I.useContext(J);
|
|
252
240
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? i(48) : "Base UI: <PreviewCard.Portal> is missing.");
|
|
253
241
|
return e;
|
|
254
242
|
}
|
|
255
243
|
//#endregion
|
|
256
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
257
|
-
var
|
|
244
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/portal/PreviewCardPortal.mjs
|
|
245
|
+
var Y = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
258
246
|
let { keepMounted: n = !1, ...r } = e;
|
|
259
|
-
return
|
|
247
|
+
return G().useState("mounted") || n ? /*#__PURE__*/ L(J.Provider, {
|
|
260
248
|
value: n,
|
|
261
|
-
children: /*#__PURE__*/ L(
|
|
249
|
+
children: /*#__PURE__*/ L(ce, {
|
|
262
250
|
ref: t,
|
|
263
251
|
...r
|
|
264
252
|
})
|
|
265
253
|
}) : null;
|
|
266
254
|
});
|
|
267
|
-
process.env.NODE_ENV !== "production" && (
|
|
255
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "PreviewCardPortal");
|
|
268
256
|
//#endregion
|
|
269
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
270
|
-
var
|
|
271
|
-
let { render: a, className:
|
|
257
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/trigger/PreviewCardTrigger.mjs
|
|
258
|
+
var X = h(function(t, n) {
|
|
259
|
+
let { render: a, className: s, delay: c, closeDelay: l, id: u, payload: d, handle: f, style: p, ...m } = t, h = G(!0), g = f?.store ?? h;
|
|
272
260
|
if (!g) throw Error(process.env.NODE_ENV === "production" ? i(89) : "Base UI: <PreviewCard.Trigger> must be either used within a <PreviewCard.Root> component or provided with a handle.");
|
|
273
|
-
let _ =
|
|
261
|
+
let _ = o(u), v = g.useState("isTriggerActive", _), y = g.useState("isOpenedByTrigger", _), b = g.useState("floatingRootContext"), S = g.context.inlineRectCoordsRef, C = I.useRef(null), w = c ?? 600, T = l ?? 300, { registerTrigger: E, isMountedByThisTrigger: D } = M(_, C, g, { payload: d });
|
|
274
262
|
e(() => {
|
|
275
|
-
|
|
263
|
+
D && (g.context.closeDelayRef.current = T);
|
|
276
264
|
}, [
|
|
277
265
|
g,
|
|
278
|
-
|
|
279
|
-
|
|
266
|
+
D,
|
|
267
|
+
T
|
|
280
268
|
]);
|
|
281
|
-
let
|
|
269
|
+
let O = N(b, {
|
|
282
270
|
mouseOnly: !0,
|
|
283
271
|
move: !1,
|
|
284
|
-
handleClose:
|
|
272
|
+
handleClose: ee(),
|
|
285
273
|
delay: () => ({
|
|
286
|
-
open:
|
|
287
|
-
close:
|
|
274
|
+
open: w,
|
|
275
|
+
close: T
|
|
288
276
|
}),
|
|
289
277
|
triggerElementRef: C,
|
|
290
278
|
isActiveTrigger: v,
|
|
291
279
|
isClosing: () => g.select("transitionStatus") === "ending"
|
|
292
|
-
}),
|
|
280
|
+
}), k = se(b, { delay: w }), A = { open: y }, j = g.useState("triggerProps", D), P = pe(S, y);
|
|
293
281
|
return r("a", t, {
|
|
294
|
-
state:
|
|
282
|
+
state: A,
|
|
295
283
|
ref: [
|
|
296
284
|
n,
|
|
297
|
-
|
|
285
|
+
E,
|
|
298
286
|
C
|
|
299
287
|
],
|
|
300
288
|
props: [
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
289
|
+
O,
|
|
290
|
+
k.reference,
|
|
291
|
+
j,
|
|
292
|
+
P,
|
|
305
293
|
{ id: _ },
|
|
306
294
|
m
|
|
307
295
|
],
|
|
308
|
-
stateAttributesMapping:
|
|
296
|
+
stateAttributesMapping: x
|
|
309
297
|
});
|
|
310
298
|
});
|
|
311
|
-
process.env.NODE_ENV !== "production" && (
|
|
299
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "PreviewCardTrigger");
|
|
312
300
|
//#endregion
|
|
313
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
314
|
-
var
|
|
315
|
-
process.env.NODE_ENV !== "production" && (
|
|
316
|
-
function
|
|
317
|
-
let e = I.useContext(
|
|
301
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositionerContext.mjs
|
|
302
|
+
var Z = /*#__PURE__*/ I.createContext(void 0);
|
|
303
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "PreviewCardPositionerContext");
|
|
304
|
+
function be() {
|
|
305
|
+
let e = I.useContext(Z);
|
|
318
306
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? i(49) : "Base UI: <PreviewCard.Popup> and <PreviewCard.Arrow> must be used within the <PreviewCard.Positioner> component");
|
|
319
307
|
return e;
|
|
320
308
|
}
|
|
321
309
|
//#endregion
|
|
322
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
310
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositioner.mjs
|
|
323
311
|
var Q = /*#__PURE__*/ I.forwardRef(function(t, n) {
|
|
324
|
-
let { render: r, className: i, anchor: a, positionMethod: o = "absolute", side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: p = 5, sticky:
|
|
312
|
+
let { render: r, className: i, anchor: a, positionMethod: o = "absolute", side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: h = !1, collisionAvoidance: g = y, style: _, ...v } = t, b = G(), x = ye(), S = T(), C = b.useState("open"), w = b.useState("mounted"), D = b.useState("floatingRootContext"), O = b.useState("instantType"), k = b.useState("transitionStatus"), A = b.useState("hasViewport"), j = b.context.inlineRectCoordsRef, M = re({
|
|
325
313
|
anchor: a,
|
|
326
314
|
floatingRootContext: D,
|
|
327
315
|
positionMethod: o,
|
|
328
|
-
mounted:
|
|
316
|
+
mounted: w,
|
|
329
317
|
side: s,
|
|
330
318
|
sideOffset: l,
|
|
331
319
|
align: c,
|
|
@@ -333,23 +321,23 @@ var Q = /*#__PURE__*/ I.forwardRef(function(t, n) {
|
|
|
333
321
|
arrowPadding: p,
|
|
334
322
|
collisionBoundary: d,
|
|
335
323
|
collisionPadding: f,
|
|
336
|
-
sticky:
|
|
337
|
-
disableAnchorTracking:
|
|
338
|
-
keepMounted:
|
|
339
|
-
nodeId:
|
|
340
|
-
collisionAvoidance:
|
|
341
|
-
adaptiveOrigin: A ?
|
|
342
|
-
inline:
|
|
324
|
+
sticky: m,
|
|
325
|
+
disableAnchorTracking: h,
|
|
326
|
+
keepMounted: x,
|
|
327
|
+
nodeId: S,
|
|
328
|
+
collisionAvoidance: g,
|
|
329
|
+
adaptiveOrigin: A ? te : void 0,
|
|
330
|
+
inline: me(j)
|
|
343
331
|
}), N = M.update;
|
|
344
332
|
e(() => {
|
|
345
|
-
|
|
333
|
+
C && w && N();
|
|
346
334
|
}, [
|
|
347
|
-
|
|
348
|
-
|
|
335
|
+
C,
|
|
336
|
+
w,
|
|
349
337
|
N
|
|
350
338
|
]);
|
|
351
339
|
let P = ie(t, {
|
|
352
|
-
open:
|
|
340
|
+
open: C,
|
|
353
341
|
side: M.side,
|
|
354
342
|
align: M.align,
|
|
355
343
|
anchorHidden: M.anchorHidden,
|
|
@@ -357,38 +345,38 @@ var Q = /*#__PURE__*/ I.forwardRef(function(t, n) {
|
|
|
357
345
|
}, {
|
|
358
346
|
styles: M.positionerStyles,
|
|
359
347
|
transitionStatus: k,
|
|
360
|
-
props:
|
|
361
|
-
refs: [n,
|
|
362
|
-
hidden: !
|
|
363
|
-
inert: !
|
|
348
|
+
props: v,
|
|
349
|
+
refs: [n, b.useStateSetter("positionerElement")],
|
|
350
|
+
hidden: !w,
|
|
351
|
+
inert: !C
|
|
364
352
|
});
|
|
365
|
-
return /*#__PURE__*/ L(
|
|
353
|
+
return /*#__PURE__*/ L(Z.Provider, {
|
|
366
354
|
value: M,
|
|
367
|
-
children: /*#__PURE__*/ L(
|
|
368
|
-
id:
|
|
355
|
+
children: /*#__PURE__*/ L(E, {
|
|
356
|
+
id: S,
|
|
369
357
|
children: P
|
|
370
358
|
})
|
|
371
359
|
});
|
|
372
360
|
});
|
|
373
361
|
process.env.NODE_ENV !== "production" && (Q.displayName = "PreviewCardPositioner");
|
|
374
362
|
//#endregion
|
|
375
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.
|
|
376
|
-
var
|
|
377
|
-
...
|
|
378
|
-
...
|
|
363
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/preview-card/popup/PreviewCardPopup.mjs
|
|
364
|
+
var xe = {
|
|
365
|
+
...A,
|
|
366
|
+
...l
|
|
379
367
|
}, $ = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
380
|
-
let { className: n, render: i, style: o, ...s } = e, c =
|
|
381
|
-
return
|
|
368
|
+
let { className: n, render: i, style: o, ...s } = e, c = G(), { side: l, align: d } = be(), f = c.useState("open"), p = c.useState("instantType"), m = c.useState("transitionStatus"), h = c.useState("popupProps"), g = c.useState("floatingRootContext");
|
|
369
|
+
return u({
|
|
382
370
|
open: f,
|
|
383
371
|
ref: c.context.popupRef,
|
|
384
372
|
onComplete() {
|
|
385
373
|
f && c.context.onOpenChangeComplete?.(!0);
|
|
386
374
|
}
|
|
387
|
-
}),
|
|
375
|
+
}), P(g, { closeDelay: a(() => c.context.closeDelayRef.current) }), r("div", e, {
|
|
388
376
|
state: {
|
|
389
377
|
open: f,
|
|
390
378
|
side: l,
|
|
391
|
-
align:
|
|
379
|
+
align: d,
|
|
392
380
|
instant: p,
|
|
393
381
|
transitionStatus: m
|
|
394
382
|
},
|
|
@@ -399,29 +387,29 @@ var Ce = {
|
|
|
399
387
|
],
|
|
400
388
|
props: [
|
|
401
389
|
h,
|
|
402
|
-
|
|
390
|
+
ne(m),
|
|
403
391
|
s
|
|
404
392
|
],
|
|
405
|
-
stateAttributesMapping:
|
|
393
|
+
stateAttributesMapping: xe
|
|
406
394
|
});
|
|
407
395
|
});
|
|
408
396
|
process.env.NODE_ENV !== "production" && ($.displayName = "PreviewCardPopup");
|
|
409
397
|
//#endregion
|
|
410
398
|
//#region lib/components/ui/atoms/hover-card.tsx
|
|
411
|
-
function
|
|
412
|
-
return /* @__PURE__ */ L(
|
|
399
|
+
function Se({ ...e }) {
|
|
400
|
+
return /* @__PURE__ */ L(q, {
|
|
413
401
|
"data-slot": "hover-card",
|
|
414
402
|
...e
|
|
415
403
|
});
|
|
416
404
|
}
|
|
417
|
-
function
|
|
418
|
-
return /* @__PURE__ */ L(
|
|
405
|
+
function Ce({ ...e }) {
|
|
406
|
+
return /* @__PURE__ */ L(X, {
|
|
419
407
|
"data-slot": "hover-card-trigger",
|
|
420
408
|
...e
|
|
421
409
|
});
|
|
422
410
|
}
|
|
423
|
-
function
|
|
424
|
-
return /* @__PURE__ */ L(
|
|
411
|
+
function we({ className: e, side: t = "bottom", sideOffset: n = 4, align: r = "center", alignOffset: i = 4, ...a }) {
|
|
412
|
+
return /* @__PURE__ */ L(Y, {
|
|
425
413
|
"data-slot": "hover-card-portal",
|
|
426
414
|
children: /* @__PURE__ */ L(Q, {
|
|
427
415
|
align: r,
|
|
@@ -430,7 +418,7 @@ function Ee({ className: e, side: t = "bottom", sideOffset: n = 4, align: r = "c
|
|
|
430
418
|
side: t,
|
|
431
419
|
sideOffset: n,
|
|
432
420
|
children: /* @__PURE__ */ L($, {
|
|
433
|
-
className:
|
|
421
|
+
className: f("data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-4 text-popover-foreground text-sm shadow-md outline-hidden ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in", e),
|
|
434
422
|
"data-slot": "hover-card-content",
|
|
435
423
|
...a
|
|
436
424
|
})
|
|
@@ -438,4 +426,4 @@ function Ee({ className: e, side: t = "bottom", sideOffset: n = 4, align: r = "c
|
|
|
438
426
|
});
|
|
439
427
|
}
|
|
440
428
|
//#endregion
|
|
441
|
-
export {
|
|
429
|
+
export { we as n, Ce as r, Se as t };
|