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