@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,559 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./useIsoLayoutEffect-CKOv1bV_.js";
|
|
3
|
-
import { t, u as n } from "./useRenderElement-CmuWsiNa.js";
|
|
4
|
-
import { t as r } from "./useStableCallback-CqEVb76s.js";
|
|
5
|
-
import { t as i } from "./DirectionContext-B4CbbM--.js";
|
|
6
|
-
import { t as a } from "./useBaseUiId-DOm5ACje.js";
|
|
7
|
-
import { o } from "./detectBrowser-FBYSu3xM.js";
|
|
8
|
-
import { n as s, r as c } from "./shadowDom-C-4Ejp9R.js";
|
|
9
|
-
import { t as l } from "./addEventListener-B4Gs94GY.js";
|
|
10
|
-
import { cn as u } from "./lib/utils.js";
|
|
11
|
-
import { n as d } from "./useTimeout-B1x6NSZb.js";
|
|
12
|
-
import { n as f, r as p } from "./scrollEdges-VoRBF4DB.js";
|
|
13
|
-
import { n as ee, t as m } from "./clamp-DQAQAGkj.js";
|
|
14
|
-
import * as h from "react";
|
|
15
|
-
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
16
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootContext.js
|
|
17
|
-
var v = /*#__PURE__*/ h.createContext(void 0);
|
|
18
|
-
process.env.NODE_ENV !== "production" && (v.displayName = "ScrollAreaRootContext");
|
|
19
|
-
function y() {
|
|
20
|
-
let e = h.useContext(v);
|
|
21
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? n(53) : "Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>.");
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootCssVars.js
|
|
26
|
-
var te = /*#__PURE__*/ function(e) {
|
|
27
|
-
return e.scrollAreaCornerHeight = "--scroll-area-corner-height", e.scrollAreaCornerWidth = "--scroll-area-corner-width", e;
|
|
28
|
-
}({});
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/utils/getOffset.js
|
|
31
|
-
function b(e, t, n) {
|
|
32
|
-
if (!e) return 0;
|
|
33
|
-
let r = getComputedStyle(e), i = n === "x" ? "Inline" : "Block";
|
|
34
|
-
return n === "x" && t === "margin" ? parseFloat(r[`${t}InlineStart`]) * 2 : parseFloat(r[`${t}${i}Start`]) + parseFloat(r[`${t}${i}End`]);
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarDataAttributes.js
|
|
38
|
-
var x = /*#__PURE__*/ function(e) {
|
|
39
|
-
return e.orientation = "data-orientation", e.hovering = "data-hovering", e.scrolling = "data-scrolling", e.hasOverflowX = "data-has-overflow-x", e.hasOverflowY = "data-has-overflow-y", e.overflowXStart = "data-overflow-x-start", e.overflowXEnd = "data-overflow-x-end", e.overflowYStart = "data-overflow-y-start", e.overflowYEnd = "data-overflow-y-end", e;
|
|
40
|
-
}({}), S = /*#__PURE__*/ function(e) {
|
|
41
|
-
return e.scrolling = "data-scrolling", e.hasOverflowX = "data-has-overflow-x", e.hasOverflowY = "data-has-overflow-y", e.overflowXStart = "data-overflow-x-start", e.overflowXEnd = "data-overflow-x-end", e.overflowYStart = "data-overflow-y-start", e.overflowYEnd = "data-overflow-y-end", e;
|
|
42
|
-
}({}), C = {
|
|
43
|
-
hasOverflowX: (e) => e ? { [S.hasOverflowX]: "" } : null,
|
|
44
|
-
hasOverflowY: (e) => e ? { [S.hasOverflowY]: "" } : null,
|
|
45
|
-
overflowXStart: (e) => e ? { [S.overflowXStart]: "" } : null,
|
|
46
|
-
overflowXEnd: (e) => e ? { [S.overflowXEnd]: "" } : null,
|
|
47
|
-
overflowYStart: (e) => e ? { [S.overflowYStart]: "" } : null,
|
|
48
|
-
overflowYEnd: (e) => e ? { [S.overflowYEnd]: "" } : null,
|
|
49
|
-
cornerHidden: () => null
|
|
50
|
-
}, w = {
|
|
51
|
-
x: 0,
|
|
52
|
-
y: 0
|
|
53
|
-
}, T = {
|
|
54
|
-
width: 0,
|
|
55
|
-
height: 0
|
|
56
|
-
}, E = {
|
|
57
|
-
xStart: !1,
|
|
58
|
-
xEnd: !1,
|
|
59
|
-
yStart: !1,
|
|
60
|
-
yEnd: !1
|
|
61
|
-
}, ne = {
|
|
62
|
-
x: !0,
|
|
63
|
-
y: !0,
|
|
64
|
-
corner: !0
|
|
65
|
-
}, D = /*#__PURE__*/ h.forwardRef(function(e, n) {
|
|
66
|
-
let { render: i, className: o, overflowEdgeThreshold: c, style: l, ...u } = e, f = re(c), m = a(), g = d(), y = d(), { nonce: S, disableStyleElements: D } = ee(), [O, k] = h.useState(!1), [A, j] = h.useState(!1), [M, N] = h.useState(!1), [P, F] = h.useState(!1), [I, L] = h.useState(!1), [R, z] = h.useState(T), [B, V] = h.useState(T), [H, ie] = h.useState(E), [U, W] = h.useState(ne), G = h.useRef(null), K = h.useRef(null), q = h.useRef(null), J = h.useRef(null), Y = h.useRef(null), X = h.useRef(null), ae = h.useRef(null), oe = h.useRef(!1), se = h.useRef(0), ce = h.useRef(0), le = h.useRef(0), ue = h.useRef(0), Z = h.useRef("vertical"), Q = h.useRef(w), de = r((e) => {
|
|
67
|
-
let t = e.x - Q.current.x, n = e.y - Q.current.y;
|
|
68
|
-
Q.current = e, n !== 0 && (N(!0), g.start(500, () => {
|
|
69
|
-
N(!1);
|
|
70
|
-
})), t !== 0 && (j(!0), y.start(500, () => {
|
|
71
|
-
j(!1);
|
|
72
|
-
}));
|
|
73
|
-
}), $ = r((e) => {
|
|
74
|
-
e.button === 0 && (oe.current = !0, se.current = e.clientY, ce.current = e.clientX, Z.current = e.currentTarget.getAttribute(x.orientation), K.current && (le.current = K.current.scrollTop, ue.current = K.current.scrollLeft), Y.current && Z.current === "vertical" && Y.current.setPointerCapture(e.pointerId), X.current && Z.current === "horizontal" && X.current.setPointerCapture(e.pointerId));
|
|
75
|
-
}), fe = r((e) => {
|
|
76
|
-
if (!oe.current) return;
|
|
77
|
-
let t = e.clientY - se.current, n = e.clientX - ce.current;
|
|
78
|
-
if (K.current) {
|
|
79
|
-
let r = K.current.scrollHeight, i = K.current.clientHeight, a = K.current.scrollWidth, o = K.current.clientWidth;
|
|
80
|
-
if (Y.current && q.current && Z.current === "vertical") {
|
|
81
|
-
let n = b(q.current, "padding", "y"), a = b(Y.current, "margin", "y"), o = Y.current.offsetHeight, s = t / (q.current.offsetHeight - o - n - a);
|
|
82
|
-
K.current.scrollTop = le.current + s * (r - i), e.preventDefault(), N(!0), g.start(500, () => {
|
|
83
|
-
N(!1);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
if (X.current && J.current && Z.current === "horizontal") {
|
|
87
|
-
let t = b(J.current, "padding", "x"), r = b(X.current, "margin", "x"), i = X.current.offsetWidth, s = n / (J.current.offsetWidth - i - t - r);
|
|
88
|
-
K.current.scrollLeft = ue.current + s * (a - o), e.preventDefault(), j(!0), y.start(500, () => {
|
|
89
|
-
j(!1);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}), pe = r((e) => {
|
|
94
|
-
oe.current = !1, Y.current && Z.current === "vertical" && Y.current.releasePointerCapture(e.pointerId), X.current && Z.current === "horizontal" && X.current.releasePointerCapture(e.pointerId);
|
|
95
|
-
});
|
|
96
|
-
function me(e) {
|
|
97
|
-
F(e.pointerType === "touch");
|
|
98
|
-
}
|
|
99
|
-
function he(e) {
|
|
100
|
-
me(e), e.pointerType !== "touch" && k(s(G.current, e.target));
|
|
101
|
-
}
|
|
102
|
-
let ge = h.useMemo(() => ({
|
|
103
|
-
scrolling: A || M,
|
|
104
|
-
hasOverflowX: !U.x,
|
|
105
|
-
hasOverflowY: !U.y,
|
|
106
|
-
overflowXStart: H.xStart,
|
|
107
|
-
overflowXEnd: H.xEnd,
|
|
108
|
-
overflowYStart: H.yStart,
|
|
109
|
-
overflowYEnd: H.yEnd,
|
|
110
|
-
cornerHidden: U.corner
|
|
111
|
-
}), [
|
|
112
|
-
A,
|
|
113
|
-
M,
|
|
114
|
-
U.x,
|
|
115
|
-
U.y,
|
|
116
|
-
U.corner,
|
|
117
|
-
H
|
|
118
|
-
]), _e = {
|
|
119
|
-
role: "presentation",
|
|
120
|
-
onPointerEnter: he,
|
|
121
|
-
onPointerMove: he,
|
|
122
|
-
onPointerDown: me,
|
|
123
|
-
onPointerLeave() {
|
|
124
|
-
k(!1);
|
|
125
|
-
},
|
|
126
|
-
style: {
|
|
127
|
-
position: "relative",
|
|
128
|
-
[te.scrollAreaCornerHeight]: `${R.height}px`,
|
|
129
|
-
[te.scrollAreaCornerWidth]: `${R.width}px`
|
|
130
|
-
}
|
|
131
|
-
}, ve = t("div", e, {
|
|
132
|
-
state: ge,
|
|
133
|
-
ref: [n, G],
|
|
134
|
-
props: [_e, u],
|
|
135
|
-
stateAttributesMapping: C
|
|
136
|
-
}), ye = h.useMemo(() => ({
|
|
137
|
-
handlePointerDown: $,
|
|
138
|
-
handlePointerMove: fe,
|
|
139
|
-
handlePointerUp: pe,
|
|
140
|
-
handleScroll: de,
|
|
141
|
-
cornerSize: R,
|
|
142
|
-
setCornerSize: z,
|
|
143
|
-
thumbSize: B,
|
|
144
|
-
setThumbSize: V,
|
|
145
|
-
hasMeasuredScrollbar: I,
|
|
146
|
-
setHasMeasuredScrollbar: L,
|
|
147
|
-
touchModality: P,
|
|
148
|
-
cornerRef: ae,
|
|
149
|
-
scrollingX: A,
|
|
150
|
-
setScrollingX: j,
|
|
151
|
-
scrollingY: M,
|
|
152
|
-
setScrollingY: N,
|
|
153
|
-
hovering: O,
|
|
154
|
-
setHovering: k,
|
|
155
|
-
viewportRef: K,
|
|
156
|
-
rootRef: G,
|
|
157
|
-
scrollbarYRef: q,
|
|
158
|
-
scrollbarXRef: J,
|
|
159
|
-
thumbYRef: Y,
|
|
160
|
-
thumbXRef: X,
|
|
161
|
-
rootId: m,
|
|
162
|
-
hiddenState: U,
|
|
163
|
-
setHiddenState: W,
|
|
164
|
-
overflowEdges: H,
|
|
165
|
-
setOverflowEdges: ie,
|
|
166
|
-
viewportState: ge,
|
|
167
|
-
overflowEdgeThreshold: f
|
|
168
|
-
}), [
|
|
169
|
-
$,
|
|
170
|
-
fe,
|
|
171
|
-
pe,
|
|
172
|
-
de,
|
|
173
|
-
R,
|
|
174
|
-
B,
|
|
175
|
-
I,
|
|
176
|
-
P,
|
|
177
|
-
A,
|
|
178
|
-
j,
|
|
179
|
-
M,
|
|
180
|
-
N,
|
|
181
|
-
O,
|
|
182
|
-
k,
|
|
183
|
-
m,
|
|
184
|
-
U,
|
|
185
|
-
H,
|
|
186
|
-
ge,
|
|
187
|
-
f
|
|
188
|
-
]);
|
|
189
|
-
return /*#__PURE__*/ _(v.Provider, {
|
|
190
|
-
value: ye,
|
|
191
|
-
children: [!D && p.getElement(S), ve]
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
process.env.NODE_ENV !== "production" && (D.displayName = "ScrollAreaRoot");
|
|
195
|
-
function re(e) {
|
|
196
|
-
if (typeof e == "number") {
|
|
197
|
-
let t = Math.max(0, e);
|
|
198
|
-
return {
|
|
199
|
-
xStart: t,
|
|
200
|
-
xEnd: t,
|
|
201
|
-
yStart: t,
|
|
202
|
-
yEnd: t
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
return {
|
|
206
|
-
xStart: Math.max(0, e?.xStart || 0),
|
|
207
|
-
xEnd: Math.max(0, e?.xEnd || 0),
|
|
208
|
-
yStart: Math.max(0, e?.yStart || 0),
|
|
209
|
-
yEnd: Math.max(0, e?.yEnd || 0)
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
//#endregion
|
|
213
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportContext.js
|
|
214
|
-
var O = /*#__PURE__*/ h.createContext(void 0);
|
|
215
|
-
process.env.NODE_ENV !== "production" && (O.displayName = "ScrollAreaViewportContext");
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportCssVars.js
|
|
218
|
-
var k = /*#__PURE__*/ function(e) {
|
|
219
|
-
return e.scrollAreaOverflowXStart = "--scroll-area-overflow-x-start", e.scrollAreaOverflowXEnd = "--scroll-area-overflow-x-end", e.scrollAreaOverflowYStart = "--scroll-area-overflow-y-start", e.scrollAreaOverflowYEnd = "--scroll-area-overflow-y-end", e;
|
|
220
|
-
}({}), A = !1;
|
|
221
|
-
function j() {
|
|
222
|
-
A || o || (typeof CSS < "u" && "registerProperty" in CSS && [
|
|
223
|
-
k.scrollAreaOverflowXStart,
|
|
224
|
-
k.scrollAreaOverflowXEnd,
|
|
225
|
-
k.scrollAreaOverflowYStart,
|
|
226
|
-
k.scrollAreaOverflowYEnd
|
|
227
|
-
].forEach((e) => {
|
|
228
|
-
try {
|
|
229
|
-
CSS.registerProperty({
|
|
230
|
-
name: e,
|
|
231
|
-
syntax: "<length>",
|
|
232
|
-
inherits: !1,
|
|
233
|
-
initialValue: "0px"
|
|
234
|
-
});
|
|
235
|
-
} catch {}
|
|
236
|
-
}), A = !0);
|
|
237
|
-
}
|
|
238
|
-
var M = /*#__PURE__*/ h.forwardRef(function(n, a) {
|
|
239
|
-
let { render: o, className: s, style: c, ...l } = n, { viewportRef: u, scrollbarYRef: ee, scrollbarXRef: _, thumbYRef: v, thumbXRef: te, cornerRef: x, cornerSize: S, setCornerSize: w, setThumbSize: T, rootId: E, setHiddenState: ne, hiddenState: D, setHasMeasuredScrollbar: re, handleScroll: A, setHovering: M, setOverflowEdges: F, overflowEdges: I, overflowEdgeThreshold: L, scrollingX: R, scrollingY: z } = y(), B = i(), V = h.useRef(!0), H = h.useRef([
|
|
240
|
-
NaN,
|
|
241
|
-
NaN,
|
|
242
|
-
NaN,
|
|
243
|
-
NaN
|
|
244
|
-
]), ie = d(), U = d(), W = r(() => {
|
|
245
|
-
let e = u.current, t = ee.current, n = _.current, r = v.current, i = te.current, a = x.current;
|
|
246
|
-
if (!e) return;
|
|
247
|
-
let o = e.scrollHeight, s = e.scrollWidth, c = e.clientHeight, l = e.clientWidth, d = e.scrollTop, p = e.scrollLeft, h = H.current, g = Number.isNaN(h[0]);
|
|
248
|
-
if (h[0] = c, h[1] = o, h[2] = l, h[3] = s, g && re(!0), o === 0 || s === 0) return;
|
|
249
|
-
let y = N(e), C = y.y, E = y.x, D = l / s, O = c / o, A = Math.max(0, s - l), j = Math.max(0, o - c), M = 0, I = 0;
|
|
250
|
-
if (!E) {
|
|
251
|
-
let e = 0;
|
|
252
|
-
e = m(B === "rtl" ? -p : p, 0, A), M = f(e, A), I = A - M;
|
|
253
|
-
}
|
|
254
|
-
let R = C ? 0 : m(d, 0, j), z = C ? 0 : f(R, j), V = C ? 0 : j - z, ie = E ? 0 : l, U = C ? 0 : c, W = 0, G = 0;
|
|
255
|
-
!E && !C && (W = t?.offsetWidth || 0, G = n?.offsetHeight || 0);
|
|
256
|
-
let K = S.width === 0 && S.height === 0, q = K ? W : 0, J = K ? G : 0, Y = b(n, "padding", "x"), X = b(t, "padding", "y"), ae = b(i, "margin", "x"), oe = b(r, "margin", "y"), se = ie - Y - ae, ce = U - X - oe, le = n ? Math.min(n.offsetWidth - q, se) : se, ue = t ? Math.min(t.offsetHeight - J, ce) : ce, Z = Math.max(16, le * D), Q = Math.max(16, ue * O);
|
|
257
|
-
if (T((e) => e.height === Q && e.width === Z ? e : {
|
|
258
|
-
width: Z,
|
|
259
|
-
height: Q
|
|
260
|
-
}), t && r) {
|
|
261
|
-
let e = t.offsetHeight - Q - X - oe, n = o - c, i = n === 0 ? 0 : d / n, a = Math.min(e, Math.max(0, i * e));
|
|
262
|
-
r.style.transform = `translate3d(0,${a}px,0)`;
|
|
263
|
-
}
|
|
264
|
-
if (n && i) {
|
|
265
|
-
let e = n.offsetWidth - Z - Y - ae, t = s - l, r = t === 0 ? 0 : p / t, a = B === "rtl" ? m(r * e, -e, 0) : m(r * e, 0, e);
|
|
266
|
-
i.style.transform = `translate3d(${a}px,0,0)`;
|
|
267
|
-
}
|
|
268
|
-
let de = [
|
|
269
|
-
[k.scrollAreaOverflowXStart, M],
|
|
270
|
-
[k.scrollAreaOverflowXEnd, I],
|
|
271
|
-
[k.scrollAreaOverflowYStart, z],
|
|
272
|
-
[k.scrollAreaOverflowYEnd, V]
|
|
273
|
-
];
|
|
274
|
-
for (let [t, n] of de) e.style.setProperty(t, `${n}px`);
|
|
275
|
-
a && (E || C ? w({
|
|
276
|
-
width: 0,
|
|
277
|
-
height: 0
|
|
278
|
-
}) : !E && !C && w({
|
|
279
|
-
width: W,
|
|
280
|
-
height: G
|
|
281
|
-
})), ne((e) => P(e, y));
|
|
282
|
-
let $ = {
|
|
283
|
-
xStart: !E && M > L.xStart,
|
|
284
|
-
xEnd: !E && I > L.xEnd,
|
|
285
|
-
yStart: !C && z > L.yStart,
|
|
286
|
-
yEnd: !C && V > L.yEnd
|
|
287
|
-
};
|
|
288
|
-
F((e) => e.xStart === $.xStart && e.xEnd === $.xEnd && e.yStart === $.yStart && e.yEnd === $.yEnd ? e : $);
|
|
289
|
-
});
|
|
290
|
-
e(() => {
|
|
291
|
-
u.current && j();
|
|
292
|
-
}, [u]), e(() => {
|
|
293
|
-
queueMicrotask(W);
|
|
294
|
-
}, [
|
|
295
|
-
W,
|
|
296
|
-
D,
|
|
297
|
-
B
|
|
298
|
-
]), e(() => {
|
|
299
|
-
u.current?.matches(":hover") && M(!0);
|
|
300
|
-
}, [u, M]), h.useEffect(() => {
|
|
301
|
-
let e = u.current;
|
|
302
|
-
if (typeof ResizeObserver > "u" || !e) return;
|
|
303
|
-
let t = !1, n = new ResizeObserver(() => {
|
|
304
|
-
if (!t) {
|
|
305
|
-
t = !0;
|
|
306
|
-
let n = H.current;
|
|
307
|
-
if (n[0] === e.clientHeight && n[1] === e.scrollHeight && n[2] === e.clientWidth && n[3] === e.scrollWidth) return;
|
|
308
|
-
}
|
|
309
|
-
W();
|
|
310
|
-
});
|
|
311
|
-
return n.observe(e), U.start(0, () => {
|
|
312
|
-
let t = e.getAnimations({ subtree: !0 });
|
|
313
|
-
t.length !== 0 && Promise.allSettled(t.map((e) => e.finished)).then(W).catch(() => {});
|
|
314
|
-
}), () => {
|
|
315
|
-
n.disconnect(), U.clear();
|
|
316
|
-
};
|
|
317
|
-
}, [
|
|
318
|
-
W,
|
|
319
|
-
u,
|
|
320
|
-
U
|
|
321
|
-
]);
|
|
322
|
-
function G() {
|
|
323
|
-
V.current = !1;
|
|
324
|
-
}
|
|
325
|
-
let K = {
|
|
326
|
-
role: "presentation",
|
|
327
|
-
...E && { "data-id": `${E}-viewport` },
|
|
328
|
-
tabIndex: D.x && D.y ? -1 : 0,
|
|
329
|
-
className: p.className,
|
|
330
|
-
style: { overflow: "scroll" },
|
|
331
|
-
onScroll() {
|
|
332
|
-
u.current && (W(), V.current || A({
|
|
333
|
-
x: u.current.scrollLeft,
|
|
334
|
-
y: u.current.scrollTop
|
|
335
|
-
}), ie.start(100, () => {
|
|
336
|
-
V.current = !0;
|
|
337
|
-
}));
|
|
338
|
-
},
|
|
339
|
-
onWheel: G,
|
|
340
|
-
onTouchMove: G,
|
|
341
|
-
onPointerMove: G,
|
|
342
|
-
onPointerEnter: G,
|
|
343
|
-
onKeyDown: G
|
|
344
|
-
}, q = h.useMemo(() => ({
|
|
345
|
-
scrolling: R || z,
|
|
346
|
-
hasOverflowX: !D.x,
|
|
347
|
-
hasOverflowY: !D.y,
|
|
348
|
-
overflowXStart: I.xStart,
|
|
349
|
-
overflowXEnd: I.xEnd,
|
|
350
|
-
overflowYStart: I.yStart,
|
|
351
|
-
overflowYEnd: I.yEnd,
|
|
352
|
-
cornerHidden: D.corner
|
|
353
|
-
}), [
|
|
354
|
-
R,
|
|
355
|
-
z,
|
|
356
|
-
D.x,
|
|
357
|
-
D.y,
|
|
358
|
-
D.corner,
|
|
359
|
-
I
|
|
360
|
-
]), J = t("div", n, {
|
|
361
|
-
ref: [a, u],
|
|
362
|
-
state: q,
|
|
363
|
-
props: [K, l],
|
|
364
|
-
stateAttributesMapping: C
|
|
365
|
-
}), Y = h.useMemo(() => ({ computeThumbPosition: W }), [W]);
|
|
366
|
-
return /*#__PURE__*/ g(O.Provider, {
|
|
367
|
-
value: Y,
|
|
368
|
-
children: J
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "ScrollAreaViewport");
|
|
372
|
-
function N(e) {
|
|
373
|
-
let t = e.clientHeight >= e.scrollHeight, n = e.clientWidth >= e.scrollWidth;
|
|
374
|
-
return {
|
|
375
|
-
y: t,
|
|
376
|
-
x: n,
|
|
377
|
-
corner: t || n
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
function P(e, t) {
|
|
381
|
-
return e.y === t.y && e.x === t.x && e.corner === t.corner ? e : t;
|
|
382
|
-
}
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarContext.js
|
|
385
|
-
var F = /*#__PURE__*/ h.createContext(void 0);
|
|
386
|
-
process.env.NODE_ENV !== "production" && (F.displayName = "ScrollAreaScrollbarContext");
|
|
387
|
-
function I() {
|
|
388
|
-
let e = h.useContext(F);
|
|
389
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? n(54) : "Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>.");
|
|
390
|
-
return e;
|
|
391
|
-
}
|
|
392
|
-
//#endregion
|
|
393
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarCssVars.js
|
|
394
|
-
var L = /*#__PURE__*/ function(e) {
|
|
395
|
-
return e.scrollAreaThumbHeight = "--scroll-area-thumb-height", e.scrollAreaThumbWidth = "--scroll-area-thumb-width", e;
|
|
396
|
-
}({}), R = /*#__PURE__*/ h.forwardRef(function(e, n) {
|
|
397
|
-
let { render: r, className: a, orientation: o = "vertical", keepMounted: u = !1, style: d, ...f } = e, { hovering: p, scrollingX: ee, scrollingY: m, hiddenState: _, overflowEdges: v, scrollbarYRef: x, scrollbarXRef: S, viewportRef: w, thumbYRef: T, thumbXRef: E, handlePointerDown: ne, handlePointerUp: D, rootId: re, thumbSize: O, hasMeasuredScrollbar: k } = y(), A = {
|
|
398
|
-
hovering: p,
|
|
399
|
-
scrolling: {
|
|
400
|
-
horizontal: ee,
|
|
401
|
-
vertical: m
|
|
402
|
-
}[o],
|
|
403
|
-
orientation: o,
|
|
404
|
-
hasOverflowX: !_.x,
|
|
405
|
-
hasOverflowY: !_.y,
|
|
406
|
-
overflowXStart: v.xStart,
|
|
407
|
-
overflowXEnd: v.xEnd,
|
|
408
|
-
overflowYStart: v.yStart,
|
|
409
|
-
overflowYEnd: v.yEnd,
|
|
410
|
-
cornerHidden: _.corner
|
|
411
|
-
}, j = i(), M = !k && !u, N = o === "vertical" ? _.y : _.x, P = u || !N;
|
|
412
|
-
h.useEffect(() => {
|
|
413
|
-
if (!P) return;
|
|
414
|
-
let e = w.current, t = o === "vertical" ? x.current : S.current;
|
|
415
|
-
if (!t) return;
|
|
416
|
-
function n(n) {
|
|
417
|
-
if (!e || !t || n.ctrlKey) return;
|
|
418
|
-
n.preventDefault();
|
|
419
|
-
let r = o === "horizontal", i = r ? "scrollLeft" : "scrollTop", a = r ? n.deltaX : n.deltaY, s = r ? e.scrollWidth - e.clientWidth : e.scrollHeight - e.clientHeight, c = r && j === "rtl" ? -s : 0, l = r && j === "rtl" ? 0 : s, u = e[i];
|
|
420
|
-
u <= c && a < 0 || u >= l && a > 0 || (e[i] = Math.min(l, Math.max(c, u + a)));
|
|
421
|
-
}
|
|
422
|
-
return l(t, "wheel", n, { passive: !1 });
|
|
423
|
-
}, [
|
|
424
|
-
j,
|
|
425
|
-
o,
|
|
426
|
-
S,
|
|
427
|
-
x,
|
|
428
|
-
P,
|
|
429
|
-
w
|
|
430
|
-
]);
|
|
431
|
-
let I = {
|
|
432
|
-
...re && { "data-id": `${re}-scrollbar` },
|
|
433
|
-
onPointerDown(e) {
|
|
434
|
-
if (e.button !== 0) return;
|
|
435
|
-
let t = c(e.nativeEvent), n = o === "vertical" ? T.current : E.current;
|
|
436
|
-
if (!(n && s(n, t)) && w.current) {
|
|
437
|
-
if (T.current && x.current && o === "vertical") {
|
|
438
|
-
let t = b(T.current, "margin", "y"), n = b(x.current, "padding", "y"), r = T.current.offsetHeight, i = x.current.getBoundingClientRect(), a = e.clientY - i.top - r / 2 - n + t / 2, o = w.current.scrollHeight, s = w.current.clientHeight, c = a / (x.current.offsetHeight - r - n - t) * (o - s);
|
|
439
|
-
w.current.scrollTop = c;
|
|
440
|
-
}
|
|
441
|
-
if (E.current && S.current && o === "horizontal") {
|
|
442
|
-
let t = b(E.current, "margin", "x"), n = b(S.current, "padding", "x"), r = E.current.offsetWidth, i = S.current.getBoundingClientRect(), a = e.clientX - i.left - r / 2 - n + t / 2, o = w.current.scrollWidth, s = w.current.clientWidth, c = a / (S.current.offsetWidth - r - n - t), l;
|
|
443
|
-
j === "rtl" ? (l = (1 - c) * (o - s), w.current.scrollLeft <= 0 && (l = -l)) : l = c * (o - s), w.current.scrollLeft = l;
|
|
444
|
-
}
|
|
445
|
-
ne(e);
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
onPointerUp: D,
|
|
449
|
-
style: {
|
|
450
|
-
position: "absolute",
|
|
451
|
-
touchAction: "none",
|
|
452
|
-
WebkitUserSelect: "none",
|
|
453
|
-
userSelect: "none",
|
|
454
|
-
visibility: M ? "hidden" : void 0,
|
|
455
|
-
...o === "vertical" && {
|
|
456
|
-
top: 0,
|
|
457
|
-
bottom: `var(${te.scrollAreaCornerHeight})`,
|
|
458
|
-
insetInlineEnd: 0,
|
|
459
|
-
[L.scrollAreaThumbHeight]: `${O.height}px`
|
|
460
|
-
},
|
|
461
|
-
...o === "horizontal" && {
|
|
462
|
-
insetInlineStart: 0,
|
|
463
|
-
insetInlineEnd: `var(${te.scrollAreaCornerWidth})`,
|
|
464
|
-
bottom: 0,
|
|
465
|
-
[L.scrollAreaThumbWidth]: `${O.width}px`
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}, R = t("div", e, {
|
|
469
|
-
ref: [n, o === "vertical" ? x : S],
|
|
470
|
-
state: A,
|
|
471
|
-
props: [I, f],
|
|
472
|
-
stateAttributesMapping: C
|
|
473
|
-
}), z = h.useMemo(() => ({ orientation: o }), [o]);
|
|
474
|
-
return P ? /*#__PURE__*/ g(F.Provider, {
|
|
475
|
-
value: z,
|
|
476
|
-
children: R
|
|
477
|
-
}) : null;
|
|
478
|
-
});
|
|
479
|
-
process.env.NODE_ENV !== "production" && (R.displayName = "ScrollAreaScrollbar");
|
|
480
|
-
//#endregion
|
|
481
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/thumb/ScrollAreaThumb.js
|
|
482
|
-
var z = /*#__PURE__*/ h.forwardRef(function(e, n) {
|
|
483
|
-
let { render: r, className: i, style: a, ...o } = e, { thumbYRef: s, thumbXRef: c, handlePointerDown: l, handlePointerMove: u, handlePointerUp: d, setScrollingX: f, setScrollingY: p, hasMeasuredScrollbar: ee } = y(), { orientation: m } = I();
|
|
484
|
-
return t("div", e, {
|
|
485
|
-
ref: [n, m === "vertical" ? s : c],
|
|
486
|
-
state: { orientation: m },
|
|
487
|
-
props: [{
|
|
488
|
-
onPointerDown: l,
|
|
489
|
-
onPointerMove: u,
|
|
490
|
-
onPointerUp(e) {
|
|
491
|
-
m === "vertical" && p(!1), m === "horizontal" && f(!1), d(e);
|
|
492
|
-
},
|
|
493
|
-
style: {
|
|
494
|
-
visibility: ee ? void 0 : "hidden",
|
|
495
|
-
...m === "vertical" && { height: `var(${L.scrollAreaThumbHeight})` },
|
|
496
|
-
...m === "horizontal" && { width: `var(${L.scrollAreaThumbWidth})` }
|
|
497
|
-
}
|
|
498
|
-
}, o]
|
|
499
|
-
});
|
|
500
|
-
});
|
|
501
|
-
process.env.NODE_ENV !== "production" && (z.displayName = "ScrollAreaThumb");
|
|
502
|
-
//#endregion
|
|
503
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/scroll-area/corner/ScrollAreaCorner.js
|
|
504
|
-
var B = /*#__PURE__*/ h.forwardRef(function(e, n) {
|
|
505
|
-
let { render: r, className: i, style: a, ...o } = e, { cornerRef: s, cornerSize: c, hiddenState: l } = y(), u = t("div", e, {
|
|
506
|
-
ref: [n, s],
|
|
507
|
-
props: [{ style: {
|
|
508
|
-
position: "absolute",
|
|
509
|
-
bottom: 0,
|
|
510
|
-
insetInlineEnd: 0,
|
|
511
|
-
width: c.width,
|
|
512
|
-
height: c.height
|
|
513
|
-
} }, o]
|
|
514
|
-
});
|
|
515
|
-
return l.corner ? null : u;
|
|
516
|
-
});
|
|
517
|
-
process.env.NODE_ENV !== "production" && (B.displayName = "ScrollAreaCorner");
|
|
518
|
-
//#endregion
|
|
519
|
-
//#region lib/components/ui/atoms/scroll-area.tsx
|
|
520
|
-
var V = {
|
|
521
|
-
always: "",
|
|
522
|
-
auto: "",
|
|
523
|
-
hover: "opacity-0 data-hovering:opacity-100 data-scrolling:opacity-100 transition-opacity duration-150",
|
|
524
|
-
scroll: "opacity-0 data-scrolling:opacity-100 transition-opacity duration-150"
|
|
525
|
-
};
|
|
526
|
-
function H({ className: e, children: t, type: n = "auto", orientation: r = "vertical", ...i }) {
|
|
527
|
-
return /* @__PURE__ */ _(D, {
|
|
528
|
-
className: u("relative", e),
|
|
529
|
-
"data-slot": "scroll-area",
|
|
530
|
-
...i,
|
|
531
|
-
children: [
|
|
532
|
-
/* @__PURE__ */ g(M, {
|
|
533
|
-
className: "size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
534
|
-
"data-slot": "scroll-area-viewport",
|
|
535
|
-
children: t
|
|
536
|
-
}),
|
|
537
|
-
(r === "both" ? ["vertical", "horizontal"] : [r]).map((e) => /* @__PURE__ */ g(ie, {
|
|
538
|
-
className: V[n],
|
|
539
|
-
orientation: e
|
|
540
|
-
}, e)),
|
|
541
|
-
/* @__PURE__ */ g(B, {})
|
|
542
|
-
]
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
function ie({ className: e, orientation: t = "vertical", ...n }) {
|
|
546
|
-
return /* @__PURE__ */ g(R, {
|
|
547
|
-
className: u("flex touch-none select-none p-px transition-colors data-[orientation=horizontal]:h-2.5 data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2.5 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:border-t data-[orientation=horizontal]:border-t-transparent data-[orientation=vertical]:border-l data-[orientation=vertical]:border-l-transparent", e),
|
|
548
|
-
"data-orientation": t,
|
|
549
|
-
"data-slot": "scroll-area-scrollbar",
|
|
550
|
-
orientation: t,
|
|
551
|
-
...n,
|
|
552
|
-
children: /* @__PURE__ */ g(z, {
|
|
553
|
-
className: "relative flex-1 rounded-full bg-border",
|
|
554
|
-
"data-slot": "scroll-area-thumb"
|
|
555
|
-
})
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
//#endregion
|
|
559
|
-
export { ie as n, H as t };
|