@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
package/dist/select-CPTT__cT.js
DELETED
|
@@ -1,1363 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./useControlled-ZBScq72P.js";
|
|
3
|
-
import { t } from "./useIsoLayoutEffect-CKOv1bV_.js";
|
|
4
|
-
import { a as n, f as r, l as i, o as a, r as o, t as s, u as c } from "./useRenderElement-CmuWsiNa.js";
|
|
5
|
-
import { t as l } from "./useStableCallback-CqEVb76s.js";
|
|
6
|
-
import { n as u, t as d } from "./useCompositeListItem-xM6vOR9-.js";
|
|
7
|
-
import { t as f } from "./CompositeList-DJUJLDbx.js";
|
|
8
|
-
import { t as p } from "./DirectionContext-B4CbbM--.js";
|
|
9
|
-
import { C as m, f as h, g, r as _, t as v } from "./createBaseUIEventDetails-ChcQXp54.js";
|
|
10
|
-
import { t as y } from "./useBaseUiId-DOm5ACje.js";
|
|
11
|
-
import { n as b } from "./useAnimationFrame-xwbX87TY.js";
|
|
12
|
-
import { a as x, o as S, t as ee } from "./useOpenChangeComplete-DjMFUwhi.js";
|
|
13
|
-
import { l as C } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
14
|
-
import { t as w } from "./useButton-AXffhTAZ.js";
|
|
15
|
-
import { o as T } from "./detectBrowser-FBYSu3xM.js";
|
|
16
|
-
import { n as E } from "./shadowDom-C-4Ejp9R.js";
|
|
17
|
-
import { r as te } from "./shim-ieZ_MRlN.js";
|
|
18
|
-
import { C as D, I as O, V as ne, a as k, b as A, i as j, j as M, r as N, s as P, w as F, y as I } from "./popupStateMapping-PdIQcWEz.js";
|
|
19
|
-
import { i as L } from "./event-DWcDp5kt.js";
|
|
20
|
-
import { O as re } from "./composite-HOje5ugx.js";
|
|
21
|
-
import { t as ie } from "./owner-BrzQrszh.js";
|
|
22
|
-
import { o as ae } from "./composite-BlDfbDkL.js";
|
|
23
|
-
import { t as oe } from "./addEventListener-B4Gs94GY.js";
|
|
24
|
-
import { t as se } from "./useValueAsRef-CCU3eUYq.js";
|
|
25
|
-
import { cn as R } from "./lib/utils.js";
|
|
26
|
-
import { n as z } from "./useTimeout-B1x6NSZb.js";
|
|
27
|
-
import { a as ce, i as B, r as le, t as V } from "./useOpenInteractionType-D-ymktmc.js";
|
|
28
|
-
import { n as H, t as U } from "./visuallyHidden-CEAV1xeA.js";
|
|
29
|
-
import { a as ue, n as de, o as W, r as G, t as fe } from "./usePositioner-D65mUNMo.js";
|
|
30
|
-
import { n as pe, r as me, t as K } from "./getPseudoElementBounds-DarjR4tH.js";
|
|
31
|
-
import { t as he } from "./inertValue-C36grUTu.js";
|
|
32
|
-
import { t as ge } from "./useValueChanged-j5e75XB6.js";
|
|
33
|
-
import { t as _e } from "./useAnchoredPopupScrollLock-C8wRjuy0.js";
|
|
34
|
-
import { t as q } from "./ToolbarRootContext-DVNA8Vkb.js";
|
|
35
|
-
import { i as ve, n as ye, r as be, t as J } from "./LabelableContext-Q1Z-xUI9.js";
|
|
36
|
-
import { t as xe } from "./FormContext-4NSsO4w6.js";
|
|
37
|
-
import { t as Se } from "./Separator-CgntgfMd.js";
|
|
38
|
-
import { t as Ce } from "./useLabelableId-Dgoo7-Ly.js";
|
|
39
|
-
import { t as we } from "./serializeValue-kHY7UUsW.js";
|
|
40
|
-
import { n as Te, r as Ee, t as De } from "./scrollEdges-VoRBF4DB.js";
|
|
41
|
-
import { n as Oe, t as ke } from "./clamp-DQAQAGkj.js";
|
|
42
|
-
import { n as Ae } from "./resolveAriaLabelledBy-DR9UHvi-.js";
|
|
43
|
-
import * as Y from "react";
|
|
44
|
-
import { jsx as X, jsxs as je } from "react/jsx-runtime";
|
|
45
|
-
import { CheckIcon as Me, ChevronDownIcon as Ne, ChevronUpIcon as Pe } from "lucide-react";
|
|
46
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/usePreviousValue.js
|
|
47
|
-
function Fe(e) {
|
|
48
|
-
let [t, n] = Y.useState({
|
|
49
|
-
current: e,
|
|
50
|
-
previous: null
|
|
51
|
-
});
|
|
52
|
-
return e !== t.current && n({
|
|
53
|
-
current: e,
|
|
54
|
-
previous: t.current
|
|
55
|
-
}), t.previous;
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/root/SelectRootContext.js
|
|
59
|
-
var Ie = /*#__PURE__*/ Y.createContext(null);
|
|
60
|
-
process.env.NODE_ENV !== "production" && (Ie.displayName = "SelectRootContext");
|
|
61
|
-
var Le = /*#__PURE__*/ Y.createContext(null);
|
|
62
|
-
process.env.NODE_ENV !== "production" && (Le.displayName = "SelectFloatingContext");
|
|
63
|
-
function Z() {
|
|
64
|
-
let e = Y.useContext(Ie);
|
|
65
|
-
if (e === null) throw Error(process.env.NODE_ENV === "production" ? c(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
66
|
-
return e;
|
|
67
|
-
}
|
|
68
|
-
function Re() {
|
|
69
|
-
let e = Y.useContext(Le);
|
|
70
|
-
if (e === null) throw Error(process.env.NODE_ENV === "production" ? c(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
|
|
71
|
-
return e;
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/internals/itemEquality.js
|
|
75
|
-
var ze = (e, t) => Object.is(e, t);
|
|
76
|
-
function Be(e, t, n) {
|
|
77
|
-
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
78
|
-
}
|
|
79
|
-
function Ve(e, t, n) {
|
|
80
|
-
return !e || e.length === 0 ? !1 : e.some((e) => e === void 0 ? !1 : Be(t, e, n));
|
|
81
|
-
}
|
|
82
|
-
function He(e, t, n) {
|
|
83
|
-
return !e || e.length === 0 ? -1 : e.findIndex((e) => e === void 0 ? !1 : Be(e, t, n));
|
|
84
|
-
}
|
|
85
|
-
function Ue(e, t, n) {
|
|
86
|
-
return e.filter((e) => !Be(t, e, n));
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/internals/resolveValueLabel.js
|
|
90
|
-
function We(e) {
|
|
91
|
-
return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
|
|
92
|
-
}
|
|
93
|
-
function Ge(e) {
|
|
94
|
-
if (!Array.isArray(e)) return e != null && "null" in e;
|
|
95
|
-
let t = e;
|
|
96
|
-
if (We(t)) {
|
|
97
|
-
for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
|
|
98
|
-
return !1;
|
|
99
|
-
}
|
|
100
|
-
for (let e of t) if (e && e.value == null && e.label != null) return !0;
|
|
101
|
-
return !1;
|
|
102
|
-
}
|
|
103
|
-
function Ke(e, t) {
|
|
104
|
-
if (t && e != null) return t(e) ?? "";
|
|
105
|
-
if (e && typeof e == "object") {
|
|
106
|
-
if ("label" in e && e.label != null) return String(e.label);
|
|
107
|
-
if ("value" in e) return String(e.value);
|
|
108
|
-
}
|
|
109
|
-
return we(e);
|
|
110
|
-
}
|
|
111
|
-
function qe(e, t) {
|
|
112
|
-
return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? we(e.value) : we(e);
|
|
113
|
-
}
|
|
114
|
-
function Je(e, t, n) {
|
|
115
|
-
function r() {
|
|
116
|
-
return Ke(e, n);
|
|
117
|
-
}
|
|
118
|
-
if (n && e != null) return n(e);
|
|
119
|
-
if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
|
|
120
|
-
if (t && !Array.isArray(t)) return t[e] ?? r();
|
|
121
|
-
if (Array.isArray(t)) {
|
|
122
|
-
let n = t, i = We(n) ? n.flatMap((e) => e.items) : n;
|
|
123
|
-
if (typeof e != "object" || !e) {
|
|
124
|
-
let t = i.find((t) => t.value === e);
|
|
125
|
-
return t && t.label != null ? t.label : r();
|
|
126
|
-
}
|
|
127
|
-
if ("value" in e) {
|
|
128
|
-
let t = i.find((t) => t && t.value === e.value);
|
|
129
|
-
if (t && t.label != null) return t.label;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return r();
|
|
133
|
-
}
|
|
134
|
-
function Ye(e, t, n) {
|
|
135
|
-
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ X(Y.Fragment, { children: Je(r, t, n) }, i)), e), []);
|
|
136
|
-
}
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/store.js
|
|
139
|
-
var Q = {
|
|
140
|
-
id: D((e) => e.id),
|
|
141
|
-
labelId: D((e) => e.labelId),
|
|
142
|
-
modal: D((e) => e.modal),
|
|
143
|
-
multiple: D((e) => e.multiple),
|
|
144
|
-
items: D((e) => e.items),
|
|
145
|
-
itemToStringLabel: D((e) => e.itemToStringLabel),
|
|
146
|
-
itemToStringValue: D((e) => e.itemToStringValue),
|
|
147
|
-
isItemEqualToValue: D((e) => e.isItemEqualToValue),
|
|
148
|
-
value: D((e) => e.value),
|
|
149
|
-
hasSelectedValue: D((e) => {
|
|
150
|
-
let { value: t, multiple: n, itemToStringValue: r } = e;
|
|
151
|
-
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : qe(t, r) !== "";
|
|
152
|
-
}),
|
|
153
|
-
hasNullItemLabel: D((e, t) => t ? Ge(e.items) : !1),
|
|
154
|
-
open: D((e) => e.open),
|
|
155
|
-
mounted: D((e) => e.mounted),
|
|
156
|
-
forceMount: D((e) => e.forceMount),
|
|
157
|
-
transitionStatus: D((e) => e.transitionStatus),
|
|
158
|
-
openMethod: D((e) => e.openMethod),
|
|
159
|
-
activeIndex: D((e) => e.activeIndex),
|
|
160
|
-
selectedIndex: D((e) => e.selectedIndex),
|
|
161
|
-
isActive: D((e, t) => e.activeIndex === t),
|
|
162
|
-
isSelected: D((e, t, n) => {
|
|
163
|
-
let r = e.isItemEqualToValue, i = e.value;
|
|
164
|
-
return e.multiple ? Array.isArray(i) && i.some((e) => Be(n, e, r)) : e.selectedIndex === t && e.selectedIndex !== null ? !0 : Be(n, i, r);
|
|
165
|
-
}),
|
|
166
|
-
isSelectedByFocus: D((e, t) => e.selectedIndex === t),
|
|
167
|
-
popupProps: D((e) => e.popupProps),
|
|
168
|
-
triggerProps: D((e) => e.triggerProps),
|
|
169
|
-
triggerElement: D((e) => e.triggerElement),
|
|
170
|
-
positionerElement: D((e) => e.positionerElement),
|
|
171
|
-
listElement: D((e) => e.listElement),
|
|
172
|
-
popupSide: D((e) => e.popupSide),
|
|
173
|
-
scrollUpArrowVisible: D((e) => e.scrollUpArrowVisible),
|
|
174
|
-
scrollDownArrowVisible: D((e) => e.scrollDownArrowVisible),
|
|
175
|
-
hasScrollArrows: D((e) => e.hasScrollArrows)
|
|
176
|
-
};
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
|
|
179
|
-
function Xe(s) {
|
|
180
|
-
let { id: c, value: u, defaultValue: d = null, onValueChange: f, open: p, defaultOpen: m = !1, onOpenChange: h, name: _, form: y, autoComplete: b, disabled: x = !1, readOnly: C = !1, required: w = !1, modal: T = !0, actionsRef: E, inputRef: te, onOpenChangeComplete: D, items: O, multiple: k = !1, itemToStringLabel: j, itemToStringValue: M, isItemEqualToValue: N = ze, highlightItemOnHover: L = !0, children: re } = s, { clearErrors: ie } = xe(), { setDirty: ae, setTouched: oe, setFocused: R, shouldValidateOnChange: z, validityData: ce, setFilled: le, name: de, disabled: W, validation: G, validationMode: fe } = be(), K = Ce({ id: c }), he = W || x, _e = de ?? _, [q, ve] = e({
|
|
181
|
-
controlled: u,
|
|
182
|
-
default: k ? d ?? n : d,
|
|
183
|
-
name: "Select",
|
|
184
|
-
state: "value"
|
|
185
|
-
}), [J, Se] = e({
|
|
186
|
-
controlled: p,
|
|
187
|
-
default: m,
|
|
188
|
-
name: "Select",
|
|
189
|
-
state: "open"
|
|
190
|
-
}), we = Y.useRef([]), Ee = Y.useRef([]), Oe = Y.useRef(null), ke = Y.useRef(null), Ae = Y.useRef(0), Me = Y.useRef(null), Ne = Y.useRef([]), Pe = Y.useRef(!1), Z = Y.useRef(!1), Re = Y.useRef(null), Be = Y.useRef(null), Ve = Y.useRef({
|
|
191
|
-
allowSelectedMouseUp: !1,
|
|
192
|
-
allowUnselectedMouseUp: !1,
|
|
193
|
-
dragY: 0
|
|
194
|
-
}), Ue = Y.useRef(!1), { mounted: We, setMounted: Ge, transitionStatus: Je } = S(J), { openMethod: Ye, triggerProps: Xe } = V(J), $ = r(() => new I({
|
|
195
|
-
id: K,
|
|
196
|
-
labelId: void 0,
|
|
197
|
-
modal: T,
|
|
198
|
-
multiple: k,
|
|
199
|
-
itemToStringLabel: j,
|
|
200
|
-
itemToStringValue: M,
|
|
201
|
-
isItemEqualToValue: N,
|
|
202
|
-
value: q,
|
|
203
|
-
open: J,
|
|
204
|
-
mounted: We,
|
|
205
|
-
transitionStatus: Je,
|
|
206
|
-
items: O,
|
|
207
|
-
forceMount: !1,
|
|
208
|
-
openMethod: null,
|
|
209
|
-
activeIndex: null,
|
|
210
|
-
selectedIndex: null,
|
|
211
|
-
popupProps: {},
|
|
212
|
-
triggerProps: {},
|
|
213
|
-
triggerElement: null,
|
|
214
|
-
positionerElement: null,
|
|
215
|
-
listElement: null,
|
|
216
|
-
popupSide: null,
|
|
217
|
-
scrollUpArrowVisible: !1,
|
|
218
|
-
scrollDownArrowVisible: !1,
|
|
219
|
-
hasScrollArrows: !1
|
|
220
|
-
})).current, Ze = A($, Q.activeIndex), Qe = A($, Q.selectedIndex), $e = A($, Q.triggerElement), et = A($, Q.positionerElement), tt = Fe(Ye), nt = Ye ?? tt, rt = Y.useMemo(() => k && Array.isArray(q) && q.length === 0 ? "" : qe(q, M), [
|
|
221
|
-
k,
|
|
222
|
-
q,
|
|
223
|
-
M
|
|
224
|
-
]), it = Y.useMemo(() => k && Array.isArray(q) ? q.map((e) => qe(e, M)) : qe(q, M), [
|
|
225
|
-
k,
|
|
226
|
-
q,
|
|
227
|
-
M
|
|
228
|
-
]);
|
|
229
|
-
ye(se($.state.triggerElement), K, q, l(() => it));
|
|
230
|
-
let at = Y.useRef(q), ot = k ? Array.isArray(q) && q.length > 0 : q != null;
|
|
231
|
-
t(() => {
|
|
232
|
-
q !== at.current && $.set("forceMount", !0);
|
|
233
|
-
}, [$, q]), t(() => {
|
|
234
|
-
le(ot);
|
|
235
|
-
}, [ot, le]), t(function() {
|
|
236
|
-
let e = Ne.current, t;
|
|
237
|
-
if (k) {
|
|
238
|
-
let n = Array.isArray(q) ? q : [];
|
|
239
|
-
if (n.length === 0) t = null;
|
|
240
|
-
else {
|
|
241
|
-
let r = n[n.length - 1], i = He(e, r, N);
|
|
242
|
-
t = i === -1 ? null : i;
|
|
243
|
-
}
|
|
244
|
-
} else {
|
|
245
|
-
let n = He(e, q, N);
|
|
246
|
-
t = n === -1 ? null : n;
|
|
247
|
-
}
|
|
248
|
-
t === null && (Be.current = null), !J && $.set("selectedIndex", t);
|
|
249
|
-
}, [
|
|
250
|
-
ot,
|
|
251
|
-
k,
|
|
252
|
-
J,
|
|
253
|
-
q,
|
|
254
|
-
Ne,
|
|
255
|
-
N,
|
|
256
|
-
$,
|
|
257
|
-
Be
|
|
258
|
-
]), ge(q, () => {
|
|
259
|
-
ie(_e), ae(q !== ce.initialValue), z() ? G.commit(q) : G.commit(q, !0);
|
|
260
|
-
});
|
|
261
|
-
let st = l((e, t) => {
|
|
262
|
-
if (h?.(e, t), !t.isCanceled && (Se(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (oe(!0), R(!1), fe === "onBlur" && G.commit(q)), !e && $.state.activeIndex !== null)) {
|
|
263
|
-
let e = we.current[$.state.activeIndex];
|
|
264
|
-
queueMicrotask(() => {
|
|
265
|
-
e?.setAttribute("tabindex", "-1");
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
}), ct = l(() => {
|
|
269
|
-
Ge(!1), $.update({
|
|
270
|
-
activeIndex: null,
|
|
271
|
-
openMethod: null
|
|
272
|
-
}), D?.(!1);
|
|
273
|
-
});
|
|
274
|
-
ee({
|
|
275
|
-
enabled: !E,
|
|
276
|
-
open: J,
|
|
277
|
-
ref: Oe,
|
|
278
|
-
onComplete() {
|
|
279
|
-
J || ct();
|
|
280
|
-
}
|
|
281
|
-
}), Y.useImperativeHandle(E, () => ({ unmount: ct }), [ct]);
|
|
282
|
-
let lt = l((e, t) => {
|
|
283
|
-
f?.(e, t), !t.isCanceled && ve(e);
|
|
284
|
-
}), ut = l(() => {
|
|
285
|
-
let e = $.state.listElement || Oe.current;
|
|
286
|
-
if (!e) return;
|
|
287
|
-
let t = De(e.scrollHeight, e.clientHeight), n = Te(e.scrollTop, t), r = n > 0, i = n < t;
|
|
288
|
-
$.state.scrollUpArrowVisible !== r && $.set("scrollUpArrowVisible", r), $.state.scrollDownArrowVisible !== i && $.set("scrollDownArrowVisible", i);
|
|
289
|
-
}), dt = ue({
|
|
290
|
-
open: J,
|
|
291
|
-
onOpenChange: st,
|
|
292
|
-
elements: {
|
|
293
|
-
reference: $e,
|
|
294
|
-
floating: et
|
|
295
|
-
}
|
|
296
|
-
}), ft = B(dt, {
|
|
297
|
-
enabled: !C && !he,
|
|
298
|
-
event: "mousedown"
|
|
299
|
-
}), pt = F(dt), mt = me(dt, {
|
|
300
|
-
enabled: !C && !he,
|
|
301
|
-
listRef: we,
|
|
302
|
-
activeIndex: Ze,
|
|
303
|
-
selectedIndex: Qe,
|
|
304
|
-
disabledIndices: n,
|
|
305
|
-
onNavigate(e) {
|
|
306
|
-
e === null && !J || $.set("activeIndex", e);
|
|
307
|
-
},
|
|
308
|
-
focusItemOnHover: L
|
|
309
|
-
}), ht = pe(dt, {
|
|
310
|
-
enabled: !C && !he && (J || !k),
|
|
311
|
-
listRef: Ee,
|
|
312
|
-
activeIndex: Ze,
|
|
313
|
-
selectedIndex: Qe,
|
|
314
|
-
onMatch(e) {
|
|
315
|
-
J ? $.set("activeIndex", e) : lt(Ne.current[e], v("none"));
|
|
316
|
-
},
|
|
317
|
-
onTyping(e) {
|
|
318
|
-
Pe.current = e;
|
|
319
|
-
}
|
|
320
|
-
}), gt = Y.useMemo(() => {
|
|
321
|
-
let e = o(ht.reference, mt.reference, pt.reference, ft.reference, Xe);
|
|
322
|
-
return K && (e.id = K), e;
|
|
323
|
-
}, [
|
|
324
|
-
ft.reference,
|
|
325
|
-
ht.reference,
|
|
326
|
-
mt.reference,
|
|
327
|
-
pt.reference,
|
|
328
|
-
Xe,
|
|
329
|
-
K
|
|
330
|
-
]), _t = Y.useMemo(() => o(P, ht.floating, mt.floating, pt.floating), [
|
|
331
|
-
ht.floating,
|
|
332
|
-
mt.floating,
|
|
333
|
-
pt.floating
|
|
334
|
-
]), vt = mt.item ?? a;
|
|
335
|
-
ne(() => {
|
|
336
|
-
$.update({
|
|
337
|
-
popupProps: _t,
|
|
338
|
-
triggerProps: gt
|
|
339
|
-
});
|
|
340
|
-
}), t(() => {
|
|
341
|
-
$.update({
|
|
342
|
-
id: K,
|
|
343
|
-
modal: T,
|
|
344
|
-
multiple: k,
|
|
345
|
-
value: q,
|
|
346
|
-
open: J,
|
|
347
|
-
mounted: We,
|
|
348
|
-
transitionStatus: Je,
|
|
349
|
-
popupProps: _t,
|
|
350
|
-
triggerProps: gt,
|
|
351
|
-
items: O,
|
|
352
|
-
itemToStringLabel: j,
|
|
353
|
-
itemToStringValue: M,
|
|
354
|
-
isItemEqualToValue: N,
|
|
355
|
-
openMethod: nt
|
|
356
|
-
});
|
|
357
|
-
}, [
|
|
358
|
-
$,
|
|
359
|
-
K,
|
|
360
|
-
T,
|
|
361
|
-
k,
|
|
362
|
-
q,
|
|
363
|
-
J,
|
|
364
|
-
We,
|
|
365
|
-
Je,
|
|
366
|
-
_t,
|
|
367
|
-
gt,
|
|
368
|
-
O,
|
|
369
|
-
j,
|
|
370
|
-
M,
|
|
371
|
-
N,
|
|
372
|
-
nt
|
|
373
|
-
]);
|
|
374
|
-
let yt = Y.useMemo(() => ({
|
|
375
|
-
store: $,
|
|
376
|
-
name: _e,
|
|
377
|
-
required: w,
|
|
378
|
-
disabled: he,
|
|
379
|
-
readOnly: C,
|
|
380
|
-
multiple: k,
|
|
381
|
-
highlightItemOnHover: L,
|
|
382
|
-
setValue: lt,
|
|
383
|
-
setOpen: st,
|
|
384
|
-
listRef: we,
|
|
385
|
-
popupRef: Oe,
|
|
386
|
-
scrollHandlerRef: ke,
|
|
387
|
-
handleScrollArrowVisibility: ut,
|
|
388
|
-
scrollArrowsMountedCountRef: Ae,
|
|
389
|
-
itemProps: vt,
|
|
390
|
-
events: dt.context.events,
|
|
391
|
-
valueRef: Me,
|
|
392
|
-
valuesRef: Ne,
|
|
393
|
-
labelsRef: Ee,
|
|
394
|
-
typingRef: Pe,
|
|
395
|
-
selectionRef: Ve,
|
|
396
|
-
firstItemTextRef: Re,
|
|
397
|
-
selectedItemTextRef: Be,
|
|
398
|
-
validation: G,
|
|
399
|
-
onOpenChangeComplete: D,
|
|
400
|
-
keyboardActiveRef: Z,
|
|
401
|
-
alignItemWithTriggerActiveRef: Ue,
|
|
402
|
-
initialValueRef: at
|
|
403
|
-
}), [
|
|
404
|
-
$,
|
|
405
|
-
_e,
|
|
406
|
-
w,
|
|
407
|
-
he,
|
|
408
|
-
C,
|
|
409
|
-
k,
|
|
410
|
-
L,
|
|
411
|
-
lt,
|
|
412
|
-
st,
|
|
413
|
-
vt,
|
|
414
|
-
dt.context.events,
|
|
415
|
-
G,
|
|
416
|
-
D,
|
|
417
|
-
ut
|
|
418
|
-
]), bt = i(te, G.inputRef), xt = k && Array.isArray(q) && q.length > 0, St = k ? void 0 : _e, Ct = Y.useMemo(() => !k || !Array.isArray(q) || !_e ? null : q.map((e) => {
|
|
419
|
-
let t = qe(e, M);
|
|
420
|
-
return /*#__PURE__*/ X("input", {
|
|
421
|
-
type: "hidden",
|
|
422
|
-
form: y,
|
|
423
|
-
name: _e,
|
|
424
|
-
value: t
|
|
425
|
-
}, t);
|
|
426
|
-
}), [
|
|
427
|
-
k,
|
|
428
|
-
q,
|
|
429
|
-
y,
|
|
430
|
-
_e,
|
|
431
|
-
M
|
|
432
|
-
]);
|
|
433
|
-
return /*#__PURE__*/ X(Ie.Provider, {
|
|
434
|
-
value: yt,
|
|
435
|
-
children: /*#__PURE__*/ je(Le.Provider, {
|
|
436
|
-
value: dt,
|
|
437
|
-
children: [
|
|
438
|
-
re,
|
|
439
|
-
/*#__PURE__*/ X("input", {
|
|
440
|
-
...G.getInputValidationProps({
|
|
441
|
-
onFocus() {
|
|
442
|
-
$.state.triggerElement?.focus({ focusVisible: !0 });
|
|
443
|
-
},
|
|
444
|
-
onChange(e) {
|
|
445
|
-
if (e.nativeEvent.defaultPrevented || he || C) {
|
|
446
|
-
e.preventBaseUIHandler?.();
|
|
447
|
-
return;
|
|
448
|
-
}
|
|
449
|
-
let t = e.currentTarget.value, n = v(g, e.nativeEvent);
|
|
450
|
-
function r() {
|
|
451
|
-
if (k) return;
|
|
452
|
-
let e = Ne.current.find((e) => qe(e, M).toLowerCase() === t.toLowerCase() || Ke(e, j).toLowerCase() === t.toLowerCase());
|
|
453
|
-
e != null && (ae(e !== ce.initialValue), lt(e, n), z() && G.commit(e));
|
|
454
|
-
}
|
|
455
|
-
$.set("forceMount", !0), queueMicrotask(r);
|
|
456
|
-
}
|
|
457
|
-
}),
|
|
458
|
-
id: K && St == null ? `${K}-hidden-input` : void 0,
|
|
459
|
-
form: y,
|
|
460
|
-
name: St,
|
|
461
|
-
autoComplete: b,
|
|
462
|
-
value: rt,
|
|
463
|
-
disabled: he,
|
|
464
|
-
required: w && !xt,
|
|
465
|
-
readOnly: C,
|
|
466
|
-
ref: bt,
|
|
467
|
-
style: _e ? H : U,
|
|
468
|
-
tabIndex: -1,
|
|
469
|
-
"aria-hidden": !0,
|
|
470
|
-
suppressHydrationWarning: !0
|
|
471
|
-
}),
|
|
472
|
-
Ct
|
|
473
|
-
]
|
|
474
|
-
})
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
//#endregion
|
|
478
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
|
|
479
|
-
var $ = 2, Ze = 400, Qe = {
|
|
480
|
-
...j,
|
|
481
|
-
...ve,
|
|
482
|
-
popupSide: (e) => e ? { "data-popup-side": e } : null,
|
|
483
|
-
value: () => null
|
|
484
|
-
}, $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
485
|
-
let { render: n, className: r, id: a, disabled: c = !1, nativeButton: u = !0, style: d, ...f } = e, { setTouched: p, setFocused: m, validationMode: h, state: y, disabled: b } = be(), { labelId: x } = J(), { store: S, setOpen: ee, selectionRef: C, validation: T, readOnly: D, required: O, alignItemWithTriggerActiveRef: ne, disabled: k, keyboardActiveRef: j } = Z(), M = b || k || c, N = A(S, Q.open), P = A(S, Q.mounted), F = A(S, Q.value), I = A(S, Q.triggerProps), L = A(S, Q.positionerElement), re = A(S, Q.listElement), ae = A(S, Q.popupSide), oe = A(S, Q.id), R = A(S, Q.labelId), ce = A(S, Q.hasSelectedValue), B = P && L ? ae : null, le = a ?? oe, V = Ae(x, R);
|
|
486
|
-
Ce({ id: le });
|
|
487
|
-
let H = se(L), U = Y.useRef(null), { getButtonProps: ue, buttonRef: de } = w({
|
|
488
|
-
disabled: M,
|
|
489
|
-
native: u
|
|
490
|
-
}), W = i(t, U, de, l((e) => {
|
|
491
|
-
S.set("triggerElement", e);
|
|
492
|
-
})), G = z(), fe = z(), pe = z();
|
|
493
|
-
Y.useEffect(() => {
|
|
494
|
-
if (N) return pe.start(Ze, () => {
|
|
495
|
-
C.current.allowUnselectedMouseUp = !0, C.current.allowSelectedMouseUp = !0;
|
|
496
|
-
}), () => {
|
|
497
|
-
pe.clear();
|
|
498
|
-
};
|
|
499
|
-
C.current = {
|
|
500
|
-
allowSelectedMouseUp: !1,
|
|
501
|
-
allowUnselectedMouseUp: !1,
|
|
502
|
-
dragY: 0
|
|
503
|
-
}, fe.clear();
|
|
504
|
-
}, [
|
|
505
|
-
N,
|
|
506
|
-
C,
|
|
507
|
-
fe,
|
|
508
|
-
pe
|
|
509
|
-
]);
|
|
510
|
-
let me = o(I, {
|
|
511
|
-
id: le,
|
|
512
|
-
role: "combobox",
|
|
513
|
-
"aria-expanded": N ? "true" : "false",
|
|
514
|
-
"aria-haspopup": "listbox",
|
|
515
|
-
"aria-controls": N ? re?.id ?? te(L)?.id : void 0,
|
|
516
|
-
"aria-labelledby": V,
|
|
517
|
-
"aria-readonly": D || void 0,
|
|
518
|
-
"aria-required": O || void 0,
|
|
519
|
-
tabIndex: M ? -1 : 0,
|
|
520
|
-
ref: W,
|
|
521
|
-
onFocus(e) {
|
|
522
|
-
m(!0), N && ne.current && ee(!1, v(g, e.nativeEvent)), G.start(0, () => {
|
|
523
|
-
S.set("forceMount", !0);
|
|
524
|
-
});
|
|
525
|
-
},
|
|
526
|
-
onBlur(e) {
|
|
527
|
-
E(L, e.relatedTarget) || (p(!0), m(!1), h === "onBlur" && T.commit(F));
|
|
528
|
-
},
|
|
529
|
-
onPointerMove() {
|
|
530
|
-
j.current = !1;
|
|
531
|
-
},
|
|
532
|
-
onKeyDown() {
|
|
533
|
-
j.current = !0;
|
|
534
|
-
},
|
|
535
|
-
onMouseDown(e) {
|
|
536
|
-
if (N) return;
|
|
537
|
-
let t = ie(e.currentTarget);
|
|
538
|
-
function n(e) {
|
|
539
|
-
if (!U.current) return;
|
|
540
|
-
let t = e.target;
|
|
541
|
-
if (E(U.current, t) || E(H.current, t) || t === U.current) return;
|
|
542
|
-
let n = K(U.current);
|
|
543
|
-
e.clientX >= n.left - $ && e.clientX <= n.right + $ && e.clientY >= n.top - $ && e.clientY <= n.bottom + $ || ee(!1, v(_, e));
|
|
544
|
-
}
|
|
545
|
-
fe.start(0, () => {
|
|
546
|
-
t.addEventListener("mouseup", n, { once: !0 });
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
}, T.getValidationProps, f, ue);
|
|
550
|
-
me.role = "combobox";
|
|
551
|
-
let he = {
|
|
552
|
-
...y,
|
|
553
|
-
open: N,
|
|
554
|
-
disabled: M,
|
|
555
|
-
value: F,
|
|
556
|
-
readOnly: D,
|
|
557
|
-
popupSide: B,
|
|
558
|
-
placeholder: !ce
|
|
559
|
-
};
|
|
560
|
-
return s("button", e, {
|
|
561
|
-
ref: [t, U],
|
|
562
|
-
state: he,
|
|
563
|
-
stateAttributesMapping: Qe,
|
|
564
|
-
props: me
|
|
565
|
-
});
|
|
566
|
-
});
|
|
567
|
-
process.env.NODE_ENV !== "production" && ($e.displayName = "SelectTrigger");
|
|
568
|
-
//#endregion
|
|
569
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/value/SelectValue.js
|
|
570
|
-
var et = { value: () => null }, tt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
571
|
-
let { className: n, render: r, children: i, placeholder: a, style: o, ...c } = e, { store: l, valueRef: u } = Z(), d = A(l, Q.value), f = A(l, Q.items), p = A(l, Q.itemToStringLabel), m = A(l, Q.hasSelectedValue), h = !m && a != null && i == null, g = A(l, Q.hasNullItemLabel, h), _ = {
|
|
572
|
-
value: d,
|
|
573
|
-
placeholder: !m
|
|
574
|
-
}, v = null;
|
|
575
|
-
return v = typeof i == "function" ? i(d) : i ?? (!m && a != null && !g ? a : Array.isArray(d) ? Ye(d, f, p) : Je(d, f, p)), s("span", e, {
|
|
576
|
-
state: _,
|
|
577
|
-
ref: [t, u],
|
|
578
|
-
props: [{ children: v }, c],
|
|
579
|
-
stateAttributesMapping: et
|
|
580
|
-
});
|
|
581
|
-
});
|
|
582
|
-
process.env.NODE_ENV !== "production" && (tt.displayName = "SelectValue");
|
|
583
|
-
//#endregion
|
|
584
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
|
|
585
|
-
var nt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
586
|
-
let { render: n, className: r, style: i, ...a } = e, { store: o } = Z();
|
|
587
|
-
return s("span", e, {
|
|
588
|
-
state: { open: A(o, Q.open) },
|
|
589
|
-
ref: t,
|
|
590
|
-
props: [{
|
|
591
|
-
"aria-hidden": !0,
|
|
592
|
-
children: "▼"
|
|
593
|
-
}, a],
|
|
594
|
-
stateAttributesMapping: k
|
|
595
|
-
});
|
|
596
|
-
});
|
|
597
|
-
process.env.NODE_ENV !== "production" && (nt.displayName = "SelectIcon");
|
|
598
|
-
//#endregion
|
|
599
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/portal/SelectPortalContext.js
|
|
600
|
-
var rt = /*#__PURE__*/ Y.createContext(void 0);
|
|
601
|
-
process.env.NODE_ENV !== "production" && (rt.displayName = "SelectPortalContext");
|
|
602
|
-
//#endregion
|
|
603
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
|
|
604
|
-
var it = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
605
|
-
let { store: n } = Z(), r = A(n, Q.mounted), i = A(n, Q.forceMount);
|
|
606
|
-
return r || i ? /*#__PURE__*/ X(rt.Provider, {
|
|
607
|
-
value: !0,
|
|
608
|
-
children: /*#__PURE__*/ X(M, {
|
|
609
|
-
ref: t,
|
|
610
|
-
...e
|
|
611
|
-
})
|
|
612
|
-
}) : null;
|
|
613
|
-
});
|
|
614
|
-
process.env.NODE_ENV !== "production" && (it.displayName = "SelectPortal");
|
|
615
|
-
//#endregion
|
|
616
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js
|
|
617
|
-
var at = /*#__PURE__*/ Y.createContext(void 0);
|
|
618
|
-
process.env.NODE_ENV !== "production" && (at.displayName = "SelectPositionerContext");
|
|
619
|
-
function ot() {
|
|
620
|
-
let e = Y.useContext(at);
|
|
621
|
-
if (!e) throw Error(process.env.NODE_ENV === "production" ? c(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
622
|
-
return e;
|
|
623
|
-
}
|
|
624
|
-
//#endregion
|
|
625
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/popup/utils.js
|
|
626
|
-
function st(e, t) {
|
|
627
|
-
e && Object.assign(e.style, t);
|
|
628
|
-
}
|
|
629
|
-
var ct = {
|
|
630
|
-
position: "relative",
|
|
631
|
-
maxHeight: "100%",
|
|
632
|
-
overflowX: "hidden",
|
|
633
|
-
overflowY: "auto"
|
|
634
|
-
}, lt = { position: "fixed" }, ut = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
635
|
-
let { anchor: r, positionMethod: i = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: u = 0, alignOffset: d = 0, collisionBoundary: p = "clipping-ancestors", collisionPadding: m, arrowPadding: h = 5, sticky: _ = !1, disableAnchorTracking: y, alignItemWithTrigger: b = !0, collisionAvoidance: x = O, style: S, ...ee } = e, { store: C, listRef: w, labelsRef: T, alignItemWithTriggerActiveRef: E, selectedItemTextRef: te, valuesRef: D, initialValueRef: ne, popupRef: k, setValue: j } = Z(), M = Re(), N = A(C, Q.open), P = A(C, Q.mounted), F = A(C, Q.modal), I = A(C, Q.value), L = A(C, Q.openMethod), re = A(C, Q.positionerElement), ie = A(C, Q.triggerElement), ae = A(C, Q.isItemEqualToValue), oe = A(C, Q.transitionStatus), se = Y.useRef(null), R = Y.useRef(null), [z, ce] = Y.useState(b), B = P && z && L !== "touch";
|
|
636
|
-
!P && z !== b && ce(b), t(() => {
|
|
637
|
-
P || (Q.scrollUpArrowVisible(C.state) && C.set("scrollUpArrowVisible", !1), Q.scrollDownArrowVisible(C.state) && C.set("scrollDownArrowVisible", !1));
|
|
638
|
-
}, [C, P]), Y.useImperativeHandle(E, () => B), _e((B || F) && N, L === "touch", re, ie);
|
|
639
|
-
let V = G({
|
|
640
|
-
anchor: r,
|
|
641
|
-
floatingRootContext: M,
|
|
642
|
-
positionMethod: i,
|
|
643
|
-
mounted: P,
|
|
644
|
-
side: s,
|
|
645
|
-
sideOffset: u,
|
|
646
|
-
align: c,
|
|
647
|
-
alignOffset: d,
|
|
648
|
-
arrowPadding: h,
|
|
649
|
-
collisionBoundary: p,
|
|
650
|
-
collisionPadding: m,
|
|
651
|
-
sticky: _,
|
|
652
|
-
disableAnchorTracking: y ?? B,
|
|
653
|
-
collisionAvoidance: x,
|
|
654
|
-
keepMounted: !0
|
|
655
|
-
}), H = B ? "none" : V.side, U = B ? lt : V.positionerStyles, ue = {
|
|
656
|
-
open: N,
|
|
657
|
-
side: H,
|
|
658
|
-
align: V.align,
|
|
659
|
-
anchorHidden: V.anchorHidden
|
|
660
|
-
};
|
|
661
|
-
t(() => {
|
|
662
|
-
C.set("popupSide", V.side);
|
|
663
|
-
}, [C, V.side]);
|
|
664
|
-
let de = fe(e, ue, {
|
|
665
|
-
styles: U,
|
|
666
|
-
transitionStatus: oe,
|
|
667
|
-
props: ee,
|
|
668
|
-
refs: [n, l((e) => {
|
|
669
|
-
C.set("positionerElement", e);
|
|
670
|
-
})],
|
|
671
|
-
hidden: !P,
|
|
672
|
-
inert: !N
|
|
673
|
-
}), W = Y.useRef(0), pe = l((e) => {
|
|
674
|
-
if (e.size === 0 && W.current === 0 || D.current.length === 0) return;
|
|
675
|
-
let t = W.current;
|
|
676
|
-
if (W.current = e.size, e.size === t) return;
|
|
677
|
-
let n = v(g);
|
|
678
|
-
if (t !== 0 && !C.state.multiple && I !== null && He(D.current, I, ae) === -1) {
|
|
679
|
-
let e = ne.current, t = e != null && He(D.current, e, ae) !== -1 ? e : null;
|
|
680
|
-
j(t, n), t === null && (C.set("selectedIndex", null), te.current = null);
|
|
681
|
-
}
|
|
682
|
-
if (t !== 0 && C.state.multiple && Array.isArray(I)) {
|
|
683
|
-
let e = (e) => He(D.current, e, ae) !== -1, t = I.filter((t) => e(t));
|
|
684
|
-
(t.length !== I.length || t.some((e) => !Ve(I, e, ae))) && (j(t, n), t.length === 0 && (C.set("selectedIndex", null), te.current = null));
|
|
685
|
-
}
|
|
686
|
-
if (N && B) {
|
|
687
|
-
C.update({
|
|
688
|
-
scrollUpArrowVisible: !1,
|
|
689
|
-
scrollDownArrowVisible: !1
|
|
690
|
-
});
|
|
691
|
-
let e = { height: "" };
|
|
692
|
-
st(re, e), st(k.current, e);
|
|
693
|
-
}
|
|
694
|
-
}), me = Y.useMemo(() => ({
|
|
695
|
-
...V,
|
|
696
|
-
side: H,
|
|
697
|
-
alignItemWithTriggerActive: B,
|
|
698
|
-
setControlledAlignItemWithTrigger: ce,
|
|
699
|
-
scrollUpArrowRef: se,
|
|
700
|
-
scrollDownArrowRef: R
|
|
701
|
-
}), [
|
|
702
|
-
V,
|
|
703
|
-
H,
|
|
704
|
-
B,
|
|
705
|
-
ce
|
|
706
|
-
]);
|
|
707
|
-
return /*#__PURE__*/ X(f, {
|
|
708
|
-
elementsRef: w,
|
|
709
|
-
labelsRef: T,
|
|
710
|
-
onMapChange: pe,
|
|
711
|
-
children: /*#__PURE__*/ je(at.Provider, {
|
|
712
|
-
value: me,
|
|
713
|
-
children: [P && F && /*#__PURE__*/ X(le, {
|
|
714
|
-
inert: he(!N),
|
|
715
|
-
cutout: ie
|
|
716
|
-
}), de]
|
|
717
|
-
})
|
|
718
|
-
});
|
|
719
|
-
});
|
|
720
|
-
process.env.NODE_ENV !== "production" && (ut.displayName = "SelectPositioner");
|
|
721
|
-
//#endregion
|
|
722
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
|
|
723
|
-
var dt = {
|
|
724
|
-
...N,
|
|
725
|
-
...x
|
|
726
|
-
}, ft = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
727
|
-
let { render: r, className: i, style: a, finalFocus: o, ...c } = e, { store: u, popupRef: d, onOpenChangeComplete: f, setOpen: h, valueRef: g, firstItemTextRef: _, selectedItemTextRef: y, keyboardActiveRef: x, multiple: S, handleScrollArrowVisibility: w, scrollHandlerRef: E, listRef: te, highlightItemOnHover: D } = Z(), { side: O, align: ne, alignItemWithTriggerActive: k, isPositioned: j, setControlledAlignItemWithTrigger: M, scrollDownArrowRef: N, scrollUpArrowRef: P } = ot(), F = q(!0) != null, I = Re(), L = p(), { nonce: re, disableStyleElements: se } = Oe(), R = A(u, Q.id), z = A(u, Q.open), B = A(u, Q.mounted), le = A(u, Q.popupProps), V = A(u, Q.transitionStatus), H = A(u, Q.triggerElement), U = A(u, Q.positionerElement), ue = A(u, Q.listElement), W = Y.useRef(!1), G = Y.useRef(!1), fe = Y.useRef({}), pe = b(), me = l((e) => {
|
|
728
|
-
if (!U || !d.current || !G.current) return;
|
|
729
|
-
if (W.current || !k) {
|
|
730
|
-
w();
|
|
731
|
-
return;
|
|
732
|
-
}
|
|
733
|
-
let t = U.style.top === "0px", n = U.style.bottom === "0px";
|
|
734
|
-
if (!t && !n) {
|
|
735
|
-
w();
|
|
736
|
-
return;
|
|
737
|
-
}
|
|
738
|
-
let r = ht(U), i = gt(U.getBoundingClientRect().height, "y", r), a = ie(U), o = getComputedStyle(U), s = parseFloat(o.marginTop), c = parseFloat(o.marginBottom), l = pt(getComputedStyle(d.current)), u = Math.min(a.documentElement.clientHeight - s - c, l), f = e.scrollTop, p = mt(e), m = 0, h = null, g = !1, _ = !1, v = (e) => {
|
|
739
|
-
U.style.height = `${e}px`;
|
|
740
|
-
}, y = (t, n) => {
|
|
741
|
-
let r = ke(t, 0, u - i);
|
|
742
|
-
r > 0 && v(i + r), e.scrollTop = n, u - (i + r) <= 1 && (W.current = !0), w();
|
|
743
|
-
}, b = t ? p - f : f, x = Math.min(i + b, u);
|
|
744
|
-
if (m = x, b <= 1) {
|
|
745
|
-
y(b, t ? p : 0);
|
|
746
|
-
return;
|
|
747
|
-
}
|
|
748
|
-
if (u - x > 1 ? t ? _ = !0 : h = 0 : (g = !0, n && f < p && (h = f - (b - (i + b - u)))), m = Math.ceil(m), m !== 0 && v(m), _ || h != null) {
|
|
749
|
-
let t = mt(e), n = _ ? t : ke(h, 0, t);
|
|
750
|
-
Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
|
|
751
|
-
}
|
|
752
|
-
(g || m >= u - 1) && (W.current = !0), w();
|
|
753
|
-
});
|
|
754
|
-
Y.useImperativeHandle(E, () => me, [me]), ee({
|
|
755
|
-
open: z,
|
|
756
|
-
ref: d,
|
|
757
|
-
onComplete() {
|
|
758
|
-
z && f?.(!0);
|
|
759
|
-
}
|
|
760
|
-
});
|
|
761
|
-
let K = {
|
|
762
|
-
open: z,
|
|
763
|
-
transitionStatus: V,
|
|
764
|
-
side: O,
|
|
765
|
-
align: ne
|
|
766
|
-
};
|
|
767
|
-
t(() => {
|
|
768
|
-
!U || !d.current || Object.keys(fe.current).length || (fe.current = {
|
|
769
|
-
top: U.style.top || "0",
|
|
770
|
-
left: U.style.left || "0",
|
|
771
|
-
right: U.style.right,
|
|
772
|
-
height: U.style.height,
|
|
773
|
-
bottom: U.style.bottom,
|
|
774
|
-
minHeight: U.style.minHeight,
|
|
775
|
-
maxHeight: U.style.maxHeight,
|
|
776
|
-
marginTop: U.style.marginTop,
|
|
777
|
-
marginBottom: U.style.marginBottom
|
|
778
|
-
});
|
|
779
|
-
}, [d, U]), t(() => {
|
|
780
|
-
z || k || (G.current = !1, W.current = !1, st(U, fe.current));
|
|
781
|
-
}, [
|
|
782
|
-
z,
|
|
783
|
-
k,
|
|
784
|
-
U,
|
|
785
|
-
d
|
|
786
|
-
]), t(() => {
|
|
787
|
-
let e = d.current;
|
|
788
|
-
if (!z || !H || !U || !e || k && !j || u.state.transitionStatus === "ending") return;
|
|
789
|
-
if (!k) {
|
|
790
|
-
G.current = !0, pe.request(w), e.style.removeProperty("--transform-origin");
|
|
791
|
-
return;
|
|
792
|
-
}
|
|
793
|
-
let t = yt(e);
|
|
794
|
-
e.style.removeProperty("--transform-origin");
|
|
795
|
-
try {
|
|
796
|
-
let t = y.current;
|
|
797
|
-
t?.isConnected || (t = !Q.hasSelectedValue(u.state) && _.current?.isConnected ? _.current : null);
|
|
798
|
-
let n = g.current, r = getComputedStyle(U), i = getComputedStyle(e), a = ie(H), o = C(U), s = ht(H), c = _t(H.getBoundingClientRect(), s), l = _t(U.getBoundingClientRect(), s), d = c.height, f = ue || e, p = f.scrollHeight, m = parseFloat(i.borderBottomWidth), h = parseFloat(r.marginTop) || 10, v = parseFloat(r.marginBottom) || 10, b = parseFloat(r.minHeight) || 100, x = pt(i), S = a.documentElement.clientHeight - h - v, ee = a.documentElement.clientWidth, E = S - c.bottom + d, O, ne = L === "rtl" ? c.right - l.width : c.left, k = 0;
|
|
799
|
-
if (t && n) {
|
|
800
|
-
let e = _t(n.getBoundingClientRect(), s);
|
|
801
|
-
O = _t(t.getBoundingClientRect(), s), ne = l.left + (L === "rtl" ? e.right - O.right : e.left - O.left);
|
|
802
|
-
let r = e.top - c.top + e.height / 2;
|
|
803
|
-
k = O.top - l.top + O.height / 2 - r;
|
|
804
|
-
}
|
|
805
|
-
let A = E + k + v + m, j = Math.min(S, A), N = S - h - v, P = A - j, F = ee - 5;
|
|
806
|
-
U.style.left = `${ke(ne, 5, F - l.width)}px`, U.style.height = `${j}px`, U.style.maxHeight = "auto", U.style.marginTop = `${h}px`, U.style.marginBottom = `${v}px`, e.style.height = "100%";
|
|
807
|
-
let I = mt(f), re = P >= I - 1;
|
|
808
|
-
re && (j = Math.min(S, l.height) - (P - I));
|
|
809
|
-
let ae = c.top < 20 || c.bottom > S - 20 || Math.ceil(j) + 1 < Math.min(p, b), oe = (o.visualViewport?.scale ?? 1) !== 1 && T;
|
|
810
|
-
if (ae || oe) {
|
|
811
|
-
G.current = !0, st(U, fe.current), M(!1);
|
|
812
|
-
return;
|
|
813
|
-
}
|
|
814
|
-
let se = Math.max(b, j);
|
|
815
|
-
if (re) {
|
|
816
|
-
let e = Math.max(0, S - A);
|
|
817
|
-
U.style.top = l.height >= N ? "0" : `${e}px`, U.style.height = `${j}px`, f.scrollTop = mt(f);
|
|
818
|
-
} else U.style.bottom = "0", f.scrollTop = P;
|
|
819
|
-
if (O) {
|
|
820
|
-
let t = l.top, n = l.height, r = O.top + O.height / 2, i = ke(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
821
|
-
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
822
|
-
}
|
|
823
|
-
(se === S || j >= x) && (W.current = !0), w(), D && u.state.selectedIndex === null && u.state.activeIndex === null && te.current[0] != null && u.set("activeIndex", 0), G.current = !0;
|
|
824
|
-
} finally {
|
|
825
|
-
t();
|
|
826
|
-
}
|
|
827
|
-
}, [
|
|
828
|
-
u,
|
|
829
|
-
z,
|
|
830
|
-
U,
|
|
831
|
-
H,
|
|
832
|
-
g,
|
|
833
|
-
_,
|
|
834
|
-
y,
|
|
835
|
-
d,
|
|
836
|
-
w,
|
|
837
|
-
k,
|
|
838
|
-
M,
|
|
839
|
-
pe,
|
|
840
|
-
N,
|
|
841
|
-
P,
|
|
842
|
-
ue,
|
|
843
|
-
te,
|
|
844
|
-
D,
|
|
845
|
-
L,
|
|
846
|
-
j
|
|
847
|
-
]), Y.useEffect(() => {
|
|
848
|
-
if (!k || !U || !z) return;
|
|
849
|
-
let e = C(U);
|
|
850
|
-
function t(e) {
|
|
851
|
-
h(!1, v(m, e));
|
|
852
|
-
}
|
|
853
|
-
return oe(e, "resize", t);
|
|
854
|
-
}, [
|
|
855
|
-
h,
|
|
856
|
-
k,
|
|
857
|
-
U,
|
|
858
|
-
z
|
|
859
|
-
]);
|
|
860
|
-
let he = {
|
|
861
|
-
...ue ? {
|
|
862
|
-
role: "presentation",
|
|
863
|
-
"aria-orientation": void 0
|
|
864
|
-
} : {
|
|
865
|
-
role: "listbox",
|
|
866
|
-
"aria-multiselectable": S || void 0,
|
|
867
|
-
id: `${R}-list`
|
|
868
|
-
},
|
|
869
|
-
onKeyDown(e) {
|
|
870
|
-
x.current = !0, F && ae.has(e.key) && e.stopPropagation();
|
|
871
|
-
},
|
|
872
|
-
onMouseMove() {
|
|
873
|
-
x.current = !1;
|
|
874
|
-
},
|
|
875
|
-
onScroll(e) {
|
|
876
|
-
ue || me(e.currentTarget);
|
|
877
|
-
},
|
|
878
|
-
...k && { style: ue ? { height: "100%" } : ct }
|
|
879
|
-
}, ge = s("div", e, {
|
|
880
|
-
ref: [n, d],
|
|
881
|
-
state: K,
|
|
882
|
-
stateAttributesMapping: dt,
|
|
883
|
-
props: [
|
|
884
|
-
le,
|
|
885
|
-
he,
|
|
886
|
-
de(V),
|
|
887
|
-
{ className: !ue && k ? Ee.className : void 0 },
|
|
888
|
-
c
|
|
889
|
-
]
|
|
890
|
-
});
|
|
891
|
-
return /*#__PURE__*/ je(Y.Fragment, { children: [!se && Ee.getElement(re), /*#__PURE__*/ X(ce, {
|
|
892
|
-
context: I,
|
|
893
|
-
modal: !1,
|
|
894
|
-
disabled: !B,
|
|
895
|
-
returnFocus: o,
|
|
896
|
-
restoreFocus: !0,
|
|
897
|
-
children: ge
|
|
898
|
-
})] });
|
|
899
|
-
});
|
|
900
|
-
process.env.NODE_ENV !== "production" && (ft.displayName = "SelectPopup");
|
|
901
|
-
function pt(e) {
|
|
902
|
-
let t = e.maxHeight || "";
|
|
903
|
-
return t.endsWith("px") && parseFloat(t) || Infinity;
|
|
904
|
-
}
|
|
905
|
-
function mt(e) {
|
|
906
|
-
return De(e.scrollHeight, e.clientHeight);
|
|
907
|
-
}
|
|
908
|
-
function ht(e) {
|
|
909
|
-
return W.getScale(e);
|
|
910
|
-
}
|
|
911
|
-
function gt(e, t, n) {
|
|
912
|
-
return e / n[t];
|
|
913
|
-
}
|
|
914
|
-
function _t(e, t) {
|
|
915
|
-
return re({
|
|
916
|
-
x: gt(e.x, "x", t),
|
|
917
|
-
y: gt(e.y, "y", t),
|
|
918
|
-
width: gt(e.width, "x", t),
|
|
919
|
-
height: gt(e.height, "y", t)
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
var vt = [
|
|
923
|
-
["transform", "none"],
|
|
924
|
-
["scale", "1"],
|
|
925
|
-
["translate", "0 0"]
|
|
926
|
-
];
|
|
927
|
-
function yt(e) {
|
|
928
|
-
let { style: t } = e, n = {};
|
|
929
|
-
for (let [e, r] of vt) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
|
|
930
|
-
return () => {
|
|
931
|
-
for (let [e] of vt) {
|
|
932
|
-
let r = n[e];
|
|
933
|
-
r ? t.setProperty(e, r) : t.removeProperty(e);
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
|
-
}
|
|
937
|
-
//#endregion
|
|
938
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/list/SelectList.js
|
|
939
|
-
var bt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
940
|
-
let { render: n, className: r, style: i, ...a } = e, { store: o, scrollHandlerRef: c } = Z(), { alignItemWithTriggerActive: u } = ot(), d = A(o, Q.hasScrollArrows), f = A(o, Q.openMethod), p = A(o, Q.multiple), m = {
|
|
941
|
-
id: `${A(o, Q.id)}-list`,
|
|
942
|
-
role: "listbox",
|
|
943
|
-
"aria-multiselectable": p || void 0,
|
|
944
|
-
onScroll(e) {
|
|
945
|
-
c.current?.(e.currentTarget);
|
|
946
|
-
},
|
|
947
|
-
...u && { style: ct },
|
|
948
|
-
className: d && f !== "touch" ? Ee.className : void 0
|
|
949
|
-
};
|
|
950
|
-
return s("div", e, {
|
|
951
|
-
ref: [t, l((e) => {
|
|
952
|
-
o.set("listElement", e);
|
|
953
|
-
})],
|
|
954
|
-
props: [m, a]
|
|
955
|
-
});
|
|
956
|
-
});
|
|
957
|
-
process.env.NODE_ENV !== "production" && (bt.displayName = "SelectList");
|
|
958
|
-
//#endregion
|
|
959
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/item/SelectItemContext.js
|
|
960
|
-
var xt = /*#__PURE__*/ Y.createContext(void 0);
|
|
961
|
-
process.env.NODE_ENV !== "production" && (xt.displayName = "SelectItemContext");
|
|
962
|
-
function St() {
|
|
963
|
-
let e = Y.useContext(xt);
|
|
964
|
-
if (!e) throw Error(process.env.NODE_ENV === "production" ? c(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
|
|
965
|
-
return e;
|
|
966
|
-
}
|
|
967
|
-
//#endregion
|
|
968
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/item/SelectItem.js
|
|
969
|
-
var Ct = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
970
|
-
let { render: r, className: i, style: a, value: o = null, label: c, disabled: l = !1, nativeButton: f = !1, ...p } = e, m = Y.useRef(null), g = u({
|
|
971
|
-
label: c,
|
|
972
|
-
textRef: m,
|
|
973
|
-
indexGuessBehavior: d.GuessFromOrder
|
|
974
|
-
}), { store: _, itemProps: y, setOpen: b, setValue: x, selectionRef: S, typingRef: ee, valuesRef: C, multiple: T, selectedItemTextRef: E } = Z(), te = A(_, Q.isActive, g.index), D = A(_, Q.isSelected, g.index, o), O = A(_, Q.isSelectedByFocus, g.index), ne = A(_, Q.isItemEqualToValue), k = g.index, j = k !== -1, M = Y.useRef(null);
|
|
975
|
-
t(() => {
|
|
976
|
-
if (!j) return;
|
|
977
|
-
let e = C.current;
|
|
978
|
-
return e[k] = o, () => {
|
|
979
|
-
delete e[k];
|
|
980
|
-
};
|
|
981
|
-
}, [
|
|
982
|
-
j,
|
|
983
|
-
k,
|
|
984
|
-
o,
|
|
985
|
-
C
|
|
986
|
-
]), t(() => {
|
|
987
|
-
if (!j) return;
|
|
988
|
-
let e = _.state.value, t = e;
|
|
989
|
-
T && Array.isArray(e) && e.length > 0 && (t = e[e.length - 1]), t !== void 0 && Be(o, t, ne) && (_.set("selectedIndex", k), m.current && (E.current = m.current));
|
|
990
|
-
}, [
|
|
991
|
-
j,
|
|
992
|
-
k,
|
|
993
|
-
T,
|
|
994
|
-
ne,
|
|
995
|
-
_,
|
|
996
|
-
o,
|
|
997
|
-
E
|
|
998
|
-
]);
|
|
999
|
-
let N = Y.useRef(null), P = Y.useRef("mouse"), F = Y.useRef(!1), { getButtonProps: I, buttonRef: re } = w({
|
|
1000
|
-
disabled: l,
|
|
1001
|
-
focusableWhenDisabled: !0,
|
|
1002
|
-
native: f,
|
|
1003
|
-
composite: !0
|
|
1004
|
-
}), ie = {
|
|
1005
|
-
disabled: l,
|
|
1006
|
-
selected: D,
|
|
1007
|
-
highlighted: te
|
|
1008
|
-
};
|
|
1009
|
-
function ae(e) {
|
|
1010
|
-
let t = _.state.value;
|
|
1011
|
-
if (T) {
|
|
1012
|
-
let n = Array.isArray(t) ? t : [];
|
|
1013
|
-
x(D ? Ue(n, o, ne) : [...n, o], v(h, e));
|
|
1014
|
-
} else x(o, v(h, e)), b(!1, v(h, e));
|
|
1015
|
-
}
|
|
1016
|
-
function oe() {
|
|
1017
|
-
S.current.dragY = 0;
|
|
1018
|
-
}
|
|
1019
|
-
let se = {
|
|
1020
|
-
role: "option",
|
|
1021
|
-
"aria-selected": D,
|
|
1022
|
-
tabIndex: te ? 0 : -1,
|
|
1023
|
-
onKeyDown(e) {
|
|
1024
|
-
N.current = e.key, _.set("activeIndex", k), e.key === " " && ee.current && e.preventDefault();
|
|
1025
|
-
},
|
|
1026
|
-
onClick(e) {
|
|
1027
|
-
let t = e.type === "click" && P.current !== "touch", n = e.nativeEvent.pointerType, r = t && L(e.nativeEvent) && (n !== void 0 || te), i = t && !r && !F.current;
|
|
1028
|
-
F.current = !1, !(e.type === "keydown" && N.current === null) && (l || e.type === "keydown" && N.current === " " && ee.current || i || (N.current = null, ae(e.nativeEvent)));
|
|
1029
|
-
},
|
|
1030
|
-
onPointerEnter(e) {
|
|
1031
|
-
P.current = e.pointerType;
|
|
1032
|
-
},
|
|
1033
|
-
onPointerMove(e) {
|
|
1034
|
-
if (e.pointerType === "mouse" && e.buttons === 1) {
|
|
1035
|
-
let t = S.current;
|
|
1036
|
-
t.dragY += e.movementY, t.dragY ** 2 >= 64 && (t.allowUnselectedMouseUp = !0);
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
onPointerDown(e) {
|
|
1040
|
-
P.current = e.pointerType, F.current = !0, oe();
|
|
1041
|
-
},
|
|
1042
|
-
onMouseUp() {
|
|
1043
|
-
if (oe(), l || P.current === "touch" || F.current) return;
|
|
1044
|
-
let e = !S.current.allowSelectedMouseUp && D, t = !S.current.allowUnselectedMouseUp && !D;
|
|
1045
|
-
e || t || (F.current = !0, M.current?.click(), F.current = !1);
|
|
1046
|
-
}
|
|
1047
|
-
}, R = s("div", e, {
|
|
1048
|
-
ref: [
|
|
1049
|
-
re,
|
|
1050
|
-
n,
|
|
1051
|
-
g.ref,
|
|
1052
|
-
M
|
|
1053
|
-
],
|
|
1054
|
-
state: ie,
|
|
1055
|
-
props: [
|
|
1056
|
-
y,
|
|
1057
|
-
se,
|
|
1058
|
-
p,
|
|
1059
|
-
I
|
|
1060
|
-
]
|
|
1061
|
-
}), z = Y.useMemo(() => ({
|
|
1062
|
-
selected: D,
|
|
1063
|
-
index: k,
|
|
1064
|
-
textRef: m,
|
|
1065
|
-
selectedByFocus: O,
|
|
1066
|
-
hasRegistered: j
|
|
1067
|
-
}), [
|
|
1068
|
-
D,
|
|
1069
|
-
k,
|
|
1070
|
-
m,
|
|
1071
|
-
O,
|
|
1072
|
-
j
|
|
1073
|
-
]);
|
|
1074
|
-
return /*#__PURE__*/ X(xt.Provider, {
|
|
1075
|
-
value: z,
|
|
1076
|
-
children: R
|
|
1077
|
-
});
|
|
1078
|
-
}));
|
|
1079
|
-
process.env.NODE_ENV !== "production" && (Ct.displayName = "SelectItem");
|
|
1080
|
-
//#endregion
|
|
1081
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/item-indicator/SelectItemIndicator.js
|
|
1082
|
-
var wt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1083
|
-
let n = e.keepMounted ?? !1, { selected: r } = St();
|
|
1084
|
-
return n || r ? /*#__PURE__*/ X(Tt, {
|
|
1085
|
-
...e,
|
|
1086
|
-
ref: t
|
|
1087
|
-
}) : null;
|
|
1088
|
-
});
|
|
1089
|
-
process.env.NODE_ENV !== "production" && (wt.displayName = "SelectItemIndicator");
|
|
1090
|
-
var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, t) => {
|
|
1091
|
-
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: c } = St(), l = Y.useRef(null), { transitionStatus: u, setMounted: d } = S(c), f = s("span", e, {
|
|
1092
|
-
ref: [t, l],
|
|
1093
|
-
state: {
|
|
1094
|
-
selected: c,
|
|
1095
|
-
transitionStatus: u
|
|
1096
|
-
},
|
|
1097
|
-
props: [{
|
|
1098
|
-
"aria-hidden": !0,
|
|
1099
|
-
children: "✔️"
|
|
1100
|
-
}, o],
|
|
1101
|
-
stateAttributesMapping: x
|
|
1102
|
-
});
|
|
1103
|
-
return ee({
|
|
1104
|
-
open: c,
|
|
1105
|
-
ref: l,
|
|
1106
|
-
onComplete() {
|
|
1107
|
-
c || d(!1);
|
|
1108
|
-
}
|
|
1109
|
-
}), f;
|
|
1110
|
-
}));
|
|
1111
|
-
process.env.NODE_ENV !== "production" && (Tt.displayName = "Inner");
|
|
1112
|
-
//#endregion
|
|
1113
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/item-text/SelectItemText.js
|
|
1114
|
-
var Et = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1115
|
-
let { index: n, textRef: r, selectedByFocus: i, hasRegistered: a } = St(), { firstItemTextRef: o, selectedItemTextRef: c } = Z(), { render: l, className: u, style: d, ...f } = e;
|
|
1116
|
-
return s("div", e, {
|
|
1117
|
-
ref: [
|
|
1118
|
-
Y.useCallback((e) => {
|
|
1119
|
-
e && (a && n === 0 && (o.current = e), a && i && (c.current = e));
|
|
1120
|
-
}, [
|
|
1121
|
-
o,
|
|
1122
|
-
c,
|
|
1123
|
-
n,
|
|
1124
|
-
i,
|
|
1125
|
-
a
|
|
1126
|
-
]),
|
|
1127
|
-
t,
|
|
1128
|
-
r
|
|
1129
|
-
],
|
|
1130
|
-
props: f
|
|
1131
|
-
});
|
|
1132
|
-
}));
|
|
1133
|
-
process.env.NODE_ENV !== "production" && (Et.displayName = "SelectItemText");
|
|
1134
|
-
//#endregion
|
|
1135
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
|
|
1136
|
-
var Dt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
1137
|
-
let { render: r, className: i, style: a, direction: o, keepMounted: c = !1, ...l } = e, u = o === "up", { store: d, popupRef: f, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = ot(), y = A(d, u ? Q.scrollUpArrowVisible : Q.scrollDownArrowVisible), b = A(d, Q.openMethod), x = y && b !== "touch", C = z(), w = u ? v : _, { transitionStatus: T, setMounted: E } = S(x);
|
|
1138
|
-
t(() => (h.current += 1, d.state.hasScrollArrows || d.set("hasScrollArrows", !0), () => {
|
|
1139
|
-
h.current = Math.max(0, h.current - 1), h.current === 0 && d.state.hasScrollArrows && d.set("hasScrollArrows", !1);
|
|
1140
|
-
}), [d, h]), ee({
|
|
1141
|
-
open: x,
|
|
1142
|
-
ref: w,
|
|
1143
|
-
onComplete() {
|
|
1144
|
-
x || E(!1);
|
|
1145
|
-
}
|
|
1146
|
-
});
|
|
1147
|
-
let te = s("div", e, {
|
|
1148
|
-
ref: [n, w],
|
|
1149
|
-
state: {
|
|
1150
|
-
direction: o,
|
|
1151
|
-
visible: x,
|
|
1152
|
-
side: g,
|
|
1153
|
-
transitionStatus: T
|
|
1154
|
-
},
|
|
1155
|
-
props: [{
|
|
1156
|
-
"aria-hidden": !0,
|
|
1157
|
-
children: u ? "▲" : "▼",
|
|
1158
|
-
style: { position: "absolute" },
|
|
1159
|
-
onMouseMove(e) {
|
|
1160
|
-
if (e.movementX === 0 && e.movementY === 0 || C.isStarted()) return;
|
|
1161
|
-
d.set("activeIndex", null);
|
|
1162
|
-
function t() {
|
|
1163
|
-
let e = d.state.listElement ?? f.current;
|
|
1164
|
-
if (!e) return;
|
|
1165
|
-
d.set("activeIndex", null), m();
|
|
1166
|
-
let n = De(e.scrollHeight, e.clientHeight), r = Te(e.scrollTop, n), i = r === (u ? 0 : n), a = p.current;
|
|
1167
|
-
if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && d.set(u ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
|
|
1168
|
-
C.clear();
|
|
1169
|
-
return;
|
|
1170
|
-
}
|
|
1171
|
-
if (a.length > 0) {
|
|
1172
|
-
let t = w.current?.offsetHeight || 0;
|
|
1173
|
-
e.scrollTop = Ot(a, u, r, e.clientHeight, t, n);
|
|
1174
|
-
}
|
|
1175
|
-
C.start(40, t);
|
|
1176
|
-
}
|
|
1177
|
-
C.start(40, t);
|
|
1178
|
-
},
|
|
1179
|
-
onMouseLeave() {
|
|
1180
|
-
C.clear();
|
|
1181
|
-
}
|
|
1182
|
-
}, l]
|
|
1183
|
-
});
|
|
1184
|
-
return x || c ? te : null;
|
|
1185
|
-
});
|
|
1186
|
-
process.env.NODE_ENV !== "production" && (Dt.displayName = "SelectScrollArrow");
|
|
1187
|
-
function Ot(e, t, n, r, i, a) {
|
|
1188
|
-
if (t) {
|
|
1189
|
-
let t = 0, r = n + i - 1;
|
|
1190
|
-
for (let n = 0; n < e.length; n += 1) {
|
|
1191
|
-
let i = e[n];
|
|
1192
|
-
if (i && i.offsetTop >= r) {
|
|
1193
|
-
t = n;
|
|
1194
|
-
break;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
let o = Math.max(0, t - 1), s = e[o];
|
|
1198
|
-
return o < t && s ? Te(s.offsetTop - i, a) : 0;
|
|
1199
|
-
}
|
|
1200
|
-
let o = e.length - 1, s = n + r - i + 1;
|
|
1201
|
-
for (let t = 0; t < e.length; t += 1) {
|
|
1202
|
-
let n = e[t];
|
|
1203
|
-
if (n && n.offsetTop + n.offsetHeight > s) {
|
|
1204
|
-
o = Math.max(0, t - 1);
|
|
1205
|
-
break;
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
let c = Math.min(e.length - 1, o + 1), l = e[c];
|
|
1209
|
-
return c > o && l ? Te(l.offsetTop + l.offsetHeight - r + i, a) : a;
|
|
1210
|
-
}
|
|
1211
|
-
//#endregion
|
|
1212
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/scroll-down-arrow/SelectScrollDownArrow.js
|
|
1213
|
-
var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1214
|
-
return /*#__PURE__*/ X(Dt, {
|
|
1215
|
-
...e,
|
|
1216
|
-
ref: t,
|
|
1217
|
-
direction: "down"
|
|
1218
|
-
});
|
|
1219
|
-
});
|
|
1220
|
-
process.env.NODE_ENV !== "production" && (kt.displayName = "SelectScrollDownArrow");
|
|
1221
|
-
//#endregion
|
|
1222
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/scroll-up-arrow/SelectScrollUpArrow.js
|
|
1223
|
-
var At = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1224
|
-
return /*#__PURE__*/ X(Dt, {
|
|
1225
|
-
...e,
|
|
1226
|
-
ref: t,
|
|
1227
|
-
direction: "up"
|
|
1228
|
-
});
|
|
1229
|
-
});
|
|
1230
|
-
process.env.NODE_ENV !== "production" && (At.displayName = "SelectScrollUpArrow");
|
|
1231
|
-
//#endregion
|
|
1232
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/group/SelectGroupContext.js
|
|
1233
|
-
var jt = /*#__PURE__*/ Y.createContext(void 0);
|
|
1234
|
-
process.env.NODE_ENV !== "production" && (jt.displayName = "SelectGroupContext");
|
|
1235
|
-
function Mt() {
|
|
1236
|
-
let e = Y.useContext(jt);
|
|
1237
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? c(56) : "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.");
|
|
1238
|
-
return e;
|
|
1239
|
-
}
|
|
1240
|
-
//#endregion
|
|
1241
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/group/SelectGroup.js
|
|
1242
|
-
var Nt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1243
|
-
let { render: n, className: r, style: i, ...a } = e, [o, c] = Y.useState(), l = Y.useMemo(() => ({
|
|
1244
|
-
labelId: o,
|
|
1245
|
-
setLabelId: c
|
|
1246
|
-
}), [o, c]), u = s("div", e, {
|
|
1247
|
-
ref: t,
|
|
1248
|
-
props: [{
|
|
1249
|
-
role: "group",
|
|
1250
|
-
"aria-labelledby": o
|
|
1251
|
-
}, a]
|
|
1252
|
-
});
|
|
1253
|
-
return /*#__PURE__*/ X(jt.Provider, {
|
|
1254
|
-
value: l,
|
|
1255
|
-
children: u
|
|
1256
|
-
});
|
|
1257
|
-
});
|
|
1258
|
-
process.env.NODE_ENV !== "production" && (Nt.displayName = "SelectGroup");
|
|
1259
|
-
//#endregion
|
|
1260
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/select/group-label/SelectGroupLabel.js
|
|
1261
|
-
var Pt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
1262
|
-
let { render: r, className: i, style: a, id: o, ...c } = e, { setLabelId: l } = Mt(), u = y(o);
|
|
1263
|
-
return t(() => {
|
|
1264
|
-
l(u);
|
|
1265
|
-
}, [u, l]), s("div", e, {
|
|
1266
|
-
ref: n,
|
|
1267
|
-
props: [{ id: u }, c]
|
|
1268
|
-
});
|
|
1269
|
-
});
|
|
1270
|
-
process.env.NODE_ENV !== "production" && (Pt.displayName = "SelectGroupLabel");
|
|
1271
|
-
//#endregion
|
|
1272
|
-
//#region lib/components/ui/atoms/select.tsx
|
|
1273
|
-
var Ft = Xe;
|
|
1274
|
-
function It({ className: e, ...t }) {
|
|
1275
|
-
return /* @__PURE__ */ X(Nt, {
|
|
1276
|
-
className: R("scroll-my-1 p-1", e),
|
|
1277
|
-
"data-slot": "select-group",
|
|
1278
|
-
...t
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
function Lt({ className: e, ...t }) {
|
|
1282
|
-
return /* @__PURE__ */ X(tt, {
|
|
1283
|
-
className: R("flex flex-1 text-left", e),
|
|
1284
|
-
"data-slot": "select-value",
|
|
1285
|
-
...t
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
function Rt({ className: e, size: t = "default", children: n, ...r }) {
|
|
1289
|
-
return /* @__PURE__ */ je($e, {
|
|
1290
|
-
className: R("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
1291
|
-
"data-size": t,
|
|
1292
|
-
"data-slot": "select-trigger",
|
|
1293
|
-
...r,
|
|
1294
|
-
children: [n, /* @__PURE__ */ X(nt, { render: /* @__PURE__ */ X(Ne, { className: "pointer-events-none size-4 text-muted-foreground" }) })]
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
function zt({ className: e, children: t, side: n = "bottom", sideOffset: r = 4, align: i = "center", alignOffset: a = 0, alignItemWithTrigger: o = !1, ...s }) {
|
|
1298
|
-
return /* @__PURE__ */ X(it, { children: /* @__PURE__ */ X(ut, {
|
|
1299
|
-
align: i,
|
|
1300
|
-
alignItemWithTrigger: o,
|
|
1301
|
-
alignOffset: a,
|
|
1302
|
-
className: "isolate z-50",
|
|
1303
|
-
side: n,
|
|
1304
|
-
sideOffset: r,
|
|
1305
|
-
children: /* @__PURE__ */ je(ft, {
|
|
1306
|
-
className: R("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 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-closed:animate-out data-open:animate-in", e),
|
|
1307
|
-
"data-align-trigger": o,
|
|
1308
|
-
"data-slot": "select-content",
|
|
1309
|
-
...s,
|
|
1310
|
-
children: [
|
|
1311
|
-
/* @__PURE__ */ X(Ut, {}),
|
|
1312
|
-
/* @__PURE__ */ X(bt, { children: t }),
|
|
1313
|
-
/* @__PURE__ */ X(Wt, {})
|
|
1314
|
-
]
|
|
1315
|
-
})
|
|
1316
|
-
}) });
|
|
1317
|
-
}
|
|
1318
|
-
function Bt({ className: e, ...t }) {
|
|
1319
|
-
return /* @__PURE__ */ X(Pt, {
|
|
1320
|
-
className: R("px-2 py-1.5 text-muted-foreground text-xs", e),
|
|
1321
|
-
"data-slot": "select-label",
|
|
1322
|
-
...t
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
function Vt({ className: e, children: t, ...n }) {
|
|
1326
|
-
return /* @__PURE__ */ je(Ct, {
|
|
1327
|
-
className: R("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
1328
|
-
"data-slot": "select-item",
|
|
1329
|
-
...n,
|
|
1330
|
-
children: [/* @__PURE__ */ X(Et, {
|
|
1331
|
-
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
1332
|
-
children: t
|
|
1333
|
-
}), /* @__PURE__ */ X(wt, {
|
|
1334
|
-
render: /* @__PURE__ */ X("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
1335
|
-
children: /* @__PURE__ */ X(Me, { className: "pointer-events-none" })
|
|
1336
|
-
})]
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
function Ht({ className: e, ...t }) {
|
|
1340
|
-
return /* @__PURE__ */ X(Se, {
|
|
1341
|
-
className: R("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
1342
|
-
"data-slot": "select-separator",
|
|
1343
|
-
...t
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
function Ut({ className: e, ...t }) {
|
|
1347
|
-
return /* @__PURE__ */ X(At, {
|
|
1348
|
-
className: R("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1349
|
-
"data-slot": "select-scroll-up-button",
|
|
1350
|
-
...t,
|
|
1351
|
-
children: /* @__PURE__ */ X(Pe, {})
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
function Wt({ className: e, ...t }) {
|
|
1355
|
-
return /* @__PURE__ */ X(kt, {
|
|
1356
|
-
className: R("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1357
|
-
"data-slot": "select-scroll-down-button",
|
|
1358
|
-
...t,
|
|
1359
|
-
children: /* @__PURE__ */ X(Ne, {})
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
//#endregion
|
|
1363
|
-
export { Bt as a, Ht as c, Vt as i, Rt as l, zt as n, Wt as o, It as r, Ut as s, Ft as t, Lt as u };
|