@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/slider-CN3uEkeD.js
DELETED
|
@@ -1,822 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./useControlled-ZBScq72P.js";
|
|
3
|
-
import { t } from "./useIsoLayoutEffect-CKOv1bV_.js";
|
|
4
|
-
import { d as n, l as r, r as i, s as a, t as o, u as s } from "./useRenderElement-CmuWsiNa.js";
|
|
5
|
-
import { t as c } from "./useStableCallback-CqEVb76s.js";
|
|
6
|
-
import { n as l } from "./useCompositeListItem-xM6vOR9-.js";
|
|
7
|
-
import { t as u } from "./CompositeList-DJUJLDbx.js";
|
|
8
|
-
import { t as d } from "./DirectionContext-B4CbbM--.js";
|
|
9
|
-
import { d as f, n as p, o as m, p as h, t as g, y as _ } from "./createBaseUIEventDetails-ChcQXp54.js";
|
|
10
|
-
import { t as v } from "./useBaseUiId-DOm5ACje.js";
|
|
11
|
-
import { n as ee } from "./useAnimationFrame-xwbX87TY.js";
|
|
12
|
-
import { d as y, l as b } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
13
|
-
import { n as te, r as x, t as S } from "./shadowDom-C-4Ejp9R.js";
|
|
14
|
-
import { t as C, u as ne } from "./shim-ieZ_MRlN.js";
|
|
15
|
-
import { t as re } from "./owner-BrzQrszh.js";
|
|
16
|
-
import { a as ie, d as ae, f as w, i as T, o as E, r as oe, s as se, t as ce } from "./composite-BlDfbDkL.js";
|
|
17
|
-
import { t as le } from "./addEventListener-B4Gs94GY.js";
|
|
18
|
-
import { t as ue } from "./useValueAsRef-CCU3eUYq.js";
|
|
19
|
-
import { cn as de } from "./lib/utils.js";
|
|
20
|
-
import { t as fe } from "./visuallyHidden-CEAV1xeA.js";
|
|
21
|
-
import { t as pe } from "./useValueChanged-j5e75XB6.js";
|
|
22
|
-
import { i as me, n as he, r as ge, t as D } from "./LabelableContext-Q1Z-xUI9.js";
|
|
23
|
-
import { t as O } from "./FormContext-4NSsO4w6.js";
|
|
24
|
-
import { t as _e } from "./useLabelableId-Dgoo7-Ly.js";
|
|
25
|
-
import { n as ve, t as k } from "./valueToPercent-9aZaNeTG.js";
|
|
26
|
-
import { n as A, t as j } from "./clamp-DQAQAGkj.js";
|
|
27
|
-
import { n as ye, t as be } from "./resolveAriaLabelledBy-DR9UHvi-.js";
|
|
28
|
-
import * as M from "react";
|
|
29
|
-
import { jsx as N, jsxs as xe } from "react/jsx-runtime";
|
|
30
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/internals/areArraysEqual.js
|
|
31
|
-
function P(e, t, n = (e, t) => e === t) {
|
|
32
|
-
return e.length === t.length && e.every((e, r) => n(e, t[r]));
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/asc.js
|
|
36
|
-
function F(e, t) {
|
|
37
|
-
return e - t;
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/replaceArrayItemAtIndex.js
|
|
41
|
-
function I(e, t, n) {
|
|
42
|
-
let r = e.slice();
|
|
43
|
-
return r[t] = n, r.sort(F);
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/getSliderValue.js
|
|
47
|
-
function Se(e, t, n, r, i, a) {
|
|
48
|
-
let o = e;
|
|
49
|
-
return o = j(o, n, r), i && (o = I(a, t, j(o, a[t - 1] || -Infinity, a[t + 1] || Infinity))), o;
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/validateMinimumDistance.js
|
|
53
|
-
function Ce(e, t, n) {
|
|
54
|
-
if (!Array.isArray(e)) return !0;
|
|
55
|
-
let r = e.reduce((e, t, n, r) => (n === r.length - 1 || e.push(Math.abs(t - r[n + 1])), e), []);
|
|
56
|
-
return Math.min(...r) >= t * n;
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/root/stateAttributesMapping.js
|
|
60
|
-
var we = {
|
|
61
|
-
activeThumbIndex: () => null,
|
|
62
|
-
max: () => null,
|
|
63
|
-
min: () => null,
|
|
64
|
-
minStepsBetweenValues: () => null,
|
|
65
|
-
step: () => null,
|
|
66
|
-
values: () => null,
|
|
67
|
-
...me
|
|
68
|
-
}, L = /*#__PURE__*/ M.createContext(void 0);
|
|
69
|
-
process.env.NODE_ENV !== "production" && (L.displayName = "SliderRootContext");
|
|
70
|
-
function Te() {
|
|
71
|
-
let e = M.useContext(L);
|
|
72
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? s(62) : "Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>.");
|
|
73
|
-
return e;
|
|
74
|
-
}
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/root/SliderRoot.js
|
|
77
|
-
function R(e) {
|
|
78
|
-
return "key" in e ? h : f;
|
|
79
|
-
}
|
|
80
|
-
function Ee(e, t) {
|
|
81
|
-
return typeof e == "number" && typeof t == "number" ? e === t : Array.isArray(e) && Array.isArray(t) ? P(e, t) : !1;
|
|
82
|
-
}
|
|
83
|
-
var z = /*#__PURE__*/ M.forwardRef(function(r, i) {
|
|
84
|
-
let { "aria-labelledby": a, className: s, defaultValue: l, disabled: d = !1, id: f, format: m, largeStep: h = 10, locale: _, render: ee, max: y = 100, min: b = 0, minStepsBetweenValues: x = 0, form: C, name: ne, onValueChange: ie, onValueCommitted: ae, orientation: w = "horizontal", step: T = 1, thumbCollisionBehavior: E = "push", thumbAlignment: oe = "center", value: se, style: ce, ...le } = r, de = v(f), fe = be(de), me = c(ie), _e = c(ae), { clearErrors: ve } = O(), { state: k, disabled: A, name: xe, setTouched: I, setDirty: Te, validityData: z, shouldValidateOnChange: De, validation: B } = ge(), { labelId: Oe } = D(), [V, ke] = M.useState(), Ae = a ?? ye(Oe, V), H = A || d, U = xe ?? ne, [W, je] = e({
|
|
85
|
-
controlled: se,
|
|
86
|
-
default: l ?? b,
|
|
87
|
-
name: "Slider"
|
|
88
|
-
}), Me = M.useRef(null), G = M.useRef(null), K = M.useRef([]), Ne = M.useRef(null), Pe = M.useRef(null), Fe = M.useRef(-1), Ie = M.useRef(null), Le = M.useRef(null), q = M.useRef("none"), Re = ue(m), [J, Y] = M.useState(-1), [X, ze] = M.useState(-1), [Be, Ve] = M.useState(!1), [Z, He] = M.useState(() => /* @__PURE__ */ new Map()), [Ue, We] = M.useState([void 0, void 0]), Ge = c((e) => {
|
|
89
|
-
Y(e), e !== -1 && ze(e);
|
|
90
|
-
});
|
|
91
|
-
he(G, de, W), pe(W, () => {
|
|
92
|
-
ve(U), De() ? B.commit(W) : B.commit(W, !0);
|
|
93
|
-
let e = z.initialValue, t;
|
|
94
|
-
t = Array.isArray(W) && Array.isArray(e) ? !P(W, e) : W !== e, Te(t);
|
|
95
|
-
});
|
|
96
|
-
let Ke = c((e) => {
|
|
97
|
-
e && (G.current = e);
|
|
98
|
-
}), qe = Array.isArray(W), Je = M.useMemo(() => qe ? W.slice().sort(F) : [j(W, b, y)], [
|
|
99
|
-
y,
|
|
100
|
-
b,
|
|
101
|
-
qe,
|
|
102
|
-
W
|
|
103
|
-
]), Q = c((e, t) => {
|
|
104
|
-
if (Number.isNaN(e) || Ee(e, W)) return;
|
|
105
|
-
let n = t ?? g("none", void 0, void 0, { activeThumbIndex: -1 });
|
|
106
|
-
q.current = n.reason;
|
|
107
|
-
let r = n.event, i = new (r.constructor ?? Event)(r.type, r);
|
|
108
|
-
Object.defineProperty(i, "target", {
|
|
109
|
-
writable: !0,
|
|
110
|
-
value: {
|
|
111
|
-
value: e,
|
|
112
|
-
name: U
|
|
113
|
-
}
|
|
114
|
-
}), n.event = i, Le.current = e, me(e, n), !n.isCanceled && je(e);
|
|
115
|
-
}), Ye = c((e, t, n) => {
|
|
116
|
-
let r = Se(e, t, b, y, qe, Je);
|
|
117
|
-
if (Ce(r, T, x)) {
|
|
118
|
-
let e = R(n);
|
|
119
|
-
Q(r, g(e, n.nativeEvent, void 0, { activeThumbIndex: t })), I(!0), _e(Le.current ?? r, p(e, n.nativeEvent));
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
process.env.NODE_ENV !== "production" && b >= y && n("Slider `max` must be greater than `min`."), t(() => {
|
|
123
|
-
let e = S(re(Me.current));
|
|
124
|
-
H && te(Me.current, e) && e.blur();
|
|
125
|
-
}, [H]), H && J !== -1 && Ge(-1);
|
|
126
|
-
let $ = M.useMemo(() => ({
|
|
127
|
-
...k,
|
|
128
|
-
activeThumbIndex: J,
|
|
129
|
-
disabled: H,
|
|
130
|
-
dragging: Be,
|
|
131
|
-
orientation: w,
|
|
132
|
-
max: y,
|
|
133
|
-
min: b,
|
|
134
|
-
minStepsBetweenValues: x,
|
|
135
|
-
step: T,
|
|
136
|
-
values: Je
|
|
137
|
-
}), [
|
|
138
|
-
k,
|
|
139
|
-
J,
|
|
140
|
-
H,
|
|
141
|
-
Be,
|
|
142
|
-
y,
|
|
143
|
-
b,
|
|
144
|
-
x,
|
|
145
|
-
w,
|
|
146
|
-
T,
|
|
147
|
-
Je
|
|
148
|
-
]), Xe = M.useMemo(() => ({
|
|
149
|
-
active: J,
|
|
150
|
-
controlRef: G,
|
|
151
|
-
disabled: H,
|
|
152
|
-
dragging: Be,
|
|
153
|
-
validation: B,
|
|
154
|
-
formatOptionsRef: Re,
|
|
155
|
-
handleInputChange: Ye,
|
|
156
|
-
indicatorPosition: Ue,
|
|
157
|
-
inset: oe !== "center",
|
|
158
|
-
labelId: Ae,
|
|
159
|
-
rootLabelId: fe,
|
|
160
|
-
largeStep: h,
|
|
161
|
-
lastUsedThumbIndex: X,
|
|
162
|
-
lastChangedValueRef: Le,
|
|
163
|
-
lastChangeReasonRef: q,
|
|
164
|
-
form: C,
|
|
165
|
-
locale: _,
|
|
166
|
-
max: y,
|
|
167
|
-
min: b,
|
|
168
|
-
minStepsBetweenValues: x,
|
|
169
|
-
name: U,
|
|
170
|
-
onValueCommitted: _e,
|
|
171
|
-
orientation: w,
|
|
172
|
-
pressedInputRef: Ne,
|
|
173
|
-
pressedThumbCenterOffsetRef: Pe,
|
|
174
|
-
pressedThumbIndexRef: Fe,
|
|
175
|
-
pressedValuesRef: Ie,
|
|
176
|
-
registerFieldControlRef: Ke,
|
|
177
|
-
renderBeforeHydration: oe === "edge",
|
|
178
|
-
setActive: Ge,
|
|
179
|
-
setDragging: Ve,
|
|
180
|
-
setIndicatorPosition: We,
|
|
181
|
-
setLabelId: ke,
|
|
182
|
-
setValue: Q,
|
|
183
|
-
state: $,
|
|
184
|
-
step: T,
|
|
185
|
-
thumbCollisionBehavior: E,
|
|
186
|
-
thumbMap: Z,
|
|
187
|
-
thumbRefs: K,
|
|
188
|
-
values: Je
|
|
189
|
-
}), [
|
|
190
|
-
J,
|
|
191
|
-
G,
|
|
192
|
-
Ae,
|
|
193
|
-
fe,
|
|
194
|
-
H,
|
|
195
|
-
Be,
|
|
196
|
-
B,
|
|
197
|
-
Re,
|
|
198
|
-
Ye,
|
|
199
|
-
Ue,
|
|
200
|
-
h,
|
|
201
|
-
X,
|
|
202
|
-
Le,
|
|
203
|
-
q,
|
|
204
|
-
C,
|
|
205
|
-
_,
|
|
206
|
-
y,
|
|
207
|
-
b,
|
|
208
|
-
x,
|
|
209
|
-
U,
|
|
210
|
-
_e,
|
|
211
|
-
w,
|
|
212
|
-
Ne,
|
|
213
|
-
Pe,
|
|
214
|
-
Fe,
|
|
215
|
-
Ie,
|
|
216
|
-
Ke,
|
|
217
|
-
Ge,
|
|
218
|
-
Ve,
|
|
219
|
-
We,
|
|
220
|
-
ke,
|
|
221
|
-
Q,
|
|
222
|
-
$,
|
|
223
|
-
T,
|
|
224
|
-
E,
|
|
225
|
-
oe,
|
|
226
|
-
Z,
|
|
227
|
-
K,
|
|
228
|
-
Je
|
|
229
|
-
]), Ze = o("div", r, {
|
|
230
|
-
state: $,
|
|
231
|
-
ref: [i, Me],
|
|
232
|
-
props: [
|
|
233
|
-
{
|
|
234
|
-
"aria-labelledby": Ae,
|
|
235
|
-
id: de,
|
|
236
|
-
role: "group"
|
|
237
|
-
},
|
|
238
|
-
B.getValidationProps,
|
|
239
|
-
le
|
|
240
|
-
],
|
|
241
|
-
stateAttributesMapping: we
|
|
242
|
-
});
|
|
243
|
-
return /*#__PURE__*/ N(L.Provider, {
|
|
244
|
-
value: Xe,
|
|
245
|
-
children: /*#__PURE__*/ N(u, {
|
|
246
|
-
elementsRef: K,
|
|
247
|
-
onMapChange: He,
|
|
248
|
-
children: Ze
|
|
249
|
-
})
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
process.env.NODE_ENV !== "production" && (z.displayName = "SliderRoot");
|
|
253
|
-
//#endregion
|
|
254
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/getMidpoint.js
|
|
255
|
-
function De(e) {
|
|
256
|
-
let t = e.getBoundingClientRect();
|
|
257
|
-
return {
|
|
258
|
-
x: (t.left + t.right) / 2,
|
|
259
|
-
y: (t.top + t.bottom) / 2
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/roundValueToStep.js
|
|
264
|
-
function B(e) {
|
|
265
|
-
if (e === 0) return 0;
|
|
266
|
-
if (Math.abs(e) < 1) {
|
|
267
|
-
let t = e.toExponential().split("e-"), n = t[0].split(".")[1];
|
|
268
|
-
return (n ? n.length : 0) + parseInt(t[1], 10);
|
|
269
|
-
}
|
|
270
|
-
let t = e.toString().split(".")[1];
|
|
271
|
-
return t ? t.length : 0;
|
|
272
|
-
}
|
|
273
|
-
function Oe(e, t, n) {
|
|
274
|
-
let r = Math.round((e - n) / t) * t + n;
|
|
275
|
-
return Number(r.toFixed(Math.max(B(t), B(n))));
|
|
276
|
-
}
|
|
277
|
-
//#endregion
|
|
278
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/getPushedThumbValues.js
|
|
279
|
-
function V({ values: e, index: t, nextValue: n, min: r, max: i, step: a, minStepsBetweenValues: o, initialValues: s }) {
|
|
280
|
-
if (e.length === 0) return [];
|
|
281
|
-
let c = e.slice(), l = a * o, u = c.length - 1, d = s ?? e;
|
|
282
|
-
c[t] = j(n, r + t * l, i - (u - t) * l);
|
|
283
|
-
for (let e = t + 1; e <= u; e += 1) {
|
|
284
|
-
let t = c[e - 1] + l, n = i - (u - e) * l, r = d[e] ?? c[e], a = Math.max(c[e], t);
|
|
285
|
-
r < a && (a = Math.max(r, t)), c[e] = j(a, t, n);
|
|
286
|
-
}
|
|
287
|
-
for (let e = t - 1; e >= 0; --e) {
|
|
288
|
-
let t = c[e + 1] - l, n = r + e * l, i = d[e] ?? c[e], a = Math.min(c[e], t);
|
|
289
|
-
i > a && (a = Math.min(i, t)), c[e] = j(a, n, t);
|
|
290
|
-
}
|
|
291
|
-
for (let e = 0; e <= u; e += 1) c[e] = Number(c[e].toFixed(12));
|
|
292
|
-
return c;
|
|
293
|
-
}
|
|
294
|
-
//#endregion
|
|
295
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/utils/resolveThumbCollision.js
|
|
296
|
-
function ke({ behavior: e, values: t, currentValues: n, initialValues: r, pressedIndex: i, nextValue: a, min: o, max: s, step: c, minStepsBetweenValues: l }) {
|
|
297
|
-
let u = n ?? t, d = r ?? t;
|
|
298
|
-
if (!(u.length > 1)) return {
|
|
299
|
-
value: a,
|
|
300
|
-
thumbIndex: 0,
|
|
301
|
-
didSwap: !1
|
|
302
|
-
};
|
|
303
|
-
let f = c * l;
|
|
304
|
-
switch (e) {
|
|
305
|
-
case "swap": {
|
|
306
|
-
let e = u[i], t = 1e-7, n = u.slice(), r = n[i - 1], p = n[i + 1], m = j(a, r == null ? o : r + f, p == null ? s : p - f), h = Number(m.toFixed(12));
|
|
307
|
-
n[i] = h;
|
|
308
|
-
let g = a > e, _ = a < e, v = g && p != null && a >= p - t, ee = _ && r != null && a <= r + t;
|
|
309
|
-
if (!v && !ee) return {
|
|
310
|
-
value: n,
|
|
311
|
-
thumbIndex: i,
|
|
312
|
-
didSwap: !1
|
|
313
|
-
};
|
|
314
|
-
let y = v ? i + 1 : i - 1, b = n.map((e, t) => t === i ? h : d[t] ?? u[t]), te = a;
|
|
315
|
-
te = v ? Math.max(a, n[y]) : Math.min(a, n[y]);
|
|
316
|
-
let x = V({
|
|
317
|
-
values: n,
|
|
318
|
-
index: y,
|
|
319
|
-
nextValue: te,
|
|
320
|
-
min: o,
|
|
321
|
-
max: s,
|
|
322
|
-
step: c,
|
|
323
|
-
minStepsBetweenValues: l,
|
|
324
|
-
initialValues: b
|
|
325
|
-
}), S = v ? y - 1 : y + 1;
|
|
326
|
-
if (S >= 0 && S < x.length) {
|
|
327
|
-
let e = x[S - 1], t = x[S + 1], n = e == null ? o : e + f;
|
|
328
|
-
n = Math.max(n, o + S * f);
|
|
329
|
-
let r = t == null ? s : t - f;
|
|
330
|
-
r = Math.min(r, s - (x.length - 1 - S) * f);
|
|
331
|
-
let i = j(h, n, r);
|
|
332
|
-
x[S] = Number(i.toFixed(12));
|
|
333
|
-
}
|
|
334
|
-
return {
|
|
335
|
-
value: x,
|
|
336
|
-
thumbIndex: y,
|
|
337
|
-
didSwap: !0
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
case "push": return {
|
|
341
|
-
value: V({
|
|
342
|
-
values: u,
|
|
343
|
-
index: i,
|
|
344
|
-
nextValue: a,
|
|
345
|
-
min: o,
|
|
346
|
-
max: s,
|
|
347
|
-
step: c,
|
|
348
|
-
minStepsBetweenValues: l
|
|
349
|
-
}),
|
|
350
|
-
thumbIndex: i,
|
|
351
|
-
didSwap: !1
|
|
352
|
-
};
|
|
353
|
-
default: {
|
|
354
|
-
let e = u.slice(), t = e[i - 1], n = e[i + 1], r = j(a, t == null ? o : t + f, n == null ? s : n - f);
|
|
355
|
-
return e[i] = Number(r.toFixed(12)), {
|
|
356
|
-
value: e,
|
|
357
|
-
thumbIndex: i,
|
|
358
|
-
didSwap: !1
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/control/SliderControl.js
|
|
365
|
-
var Ae = 2;
|
|
366
|
-
function H(e, t) {
|
|
367
|
-
if (!e) return {
|
|
368
|
-
start: 0,
|
|
369
|
-
end: 0
|
|
370
|
-
};
|
|
371
|
-
function n(e) {
|
|
372
|
-
let t = e == null ? 0 : parseFloat(e);
|
|
373
|
-
return Number.isNaN(t) ? 0 : t;
|
|
374
|
-
}
|
|
375
|
-
let r = t ? "Top" : "InlineStart", i = t ? "Bottom" : "InlineEnd";
|
|
376
|
-
return {
|
|
377
|
-
start: n(e[`border${r}Width`]) + n(e[`padding${r}`]),
|
|
378
|
-
end: n(e[`border${i}Width`]) + n(e[`padding${i}`])
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
function U(e, t) {
|
|
382
|
-
if (t.current != null && e.changedTouches) {
|
|
383
|
-
let n = e;
|
|
384
|
-
for (let e = 0; e < n.changedTouches.length; e += 1) {
|
|
385
|
-
let r = n.changedTouches[e];
|
|
386
|
-
if (r.identifier === t.current) return {
|
|
387
|
-
x: r.clientX,
|
|
388
|
-
y: r.clientY
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
return null;
|
|
392
|
-
}
|
|
393
|
-
return {
|
|
394
|
-
x: e.clientX,
|
|
395
|
-
y: e.clientY
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
var W = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
399
|
-
let { render: n, className: r, style: i, ...a } = e, { disabled: s, dragging: l, inset: u, lastChangedValueRef: f, lastChangeReasonRef: h, max: v, min: C, minStepsBetweenValues: ne, onValueCommitted: ie, orientation: ae, pressedInputRef: w, pressedThumbCenterOffsetRef: T, pressedThumbIndexRef: E, pressedValuesRef: oe, registerFieldControlRef: se, renderBeforeHydration: ce, setActive: de, setDragging: fe, setValue: pe, state: me, step: he, thumbCollisionBehavior: ge, thumbRefs: D, values: O } = Te(), _e = d(), ve = O.length > 1, k = ae === "vertical", A = M.useRef(null), ye = M.useRef(null), be = c((e) => {
|
|
400
|
-
e && ye.current == null && (ye.current = b(e).getComputedStyle(e));
|
|
401
|
-
}), N = M.useRef(null), xe = M.useRef(0), P = M.useRef(0), F = ue(O);
|
|
402
|
-
function I(e) {
|
|
403
|
-
E.current !== e && (E.current = e);
|
|
404
|
-
let t = D.current[e];
|
|
405
|
-
if (!t) {
|
|
406
|
-
T.current = null, w.current = null;
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
w.current = t.querySelector("input[type=\"range\"]");
|
|
410
|
-
}
|
|
411
|
-
function Se(e) {
|
|
412
|
-
let t = A.current;
|
|
413
|
-
if (!t) return null;
|
|
414
|
-
let { width: n, height: r, bottom: i, left: a, right: o } = t.getBoundingClientRect(), s = H(ye.current, k), c = P.current, l = (k ? r : n) - s.start - s.end - c * 2, u = T.current ?? 0, d = e.x - u, f = e.y - u, p = j(((k ? i - f - s.end : (_e === "rtl" ? o - d : d - a) - s.start) - c) / l, 0, 1), m = (v - C) * p + C;
|
|
415
|
-
if (m = Oe(m, he, C), m = j(m, C, v), !ve) return {
|
|
416
|
-
value: m,
|
|
417
|
-
thumbIndex: 0,
|
|
418
|
-
didSwap: !1
|
|
419
|
-
};
|
|
420
|
-
let h = E.current;
|
|
421
|
-
if (h < 0) return null;
|
|
422
|
-
let g = ke({
|
|
423
|
-
behavior: ge,
|
|
424
|
-
values: O,
|
|
425
|
-
currentValues: F.current ?? O,
|
|
426
|
-
initialValues: oe.current,
|
|
427
|
-
pressedIndex: h,
|
|
428
|
-
nextValue: m,
|
|
429
|
-
min: C,
|
|
430
|
-
max: v,
|
|
431
|
-
step: he,
|
|
432
|
-
minStepsBetweenValues: ne
|
|
433
|
-
});
|
|
434
|
-
return ge === "swap" && g.didSwap ? I(g.thumbIndex) : E.current = g.thumbIndex, g;
|
|
435
|
-
}
|
|
436
|
-
function L(e) {
|
|
437
|
-
oe.current = ve ? O.slice() : null, F.current = O;
|
|
438
|
-
let t = E.current, n = t;
|
|
439
|
-
if (t > -1 && t < O.length) {
|
|
440
|
-
if (O[t] === v) {
|
|
441
|
-
let e = t;
|
|
442
|
-
for (; e > 0 && O[e - 1] === v;) --e;
|
|
443
|
-
n = e;
|
|
444
|
-
}
|
|
445
|
-
} else {
|
|
446
|
-
let t = k ? "y" : "x", r;
|
|
447
|
-
n = -1;
|
|
448
|
-
for (let i = 0; i < D.current.length; i += 1) {
|
|
449
|
-
let a = D.current[i];
|
|
450
|
-
if (y(a)) {
|
|
451
|
-
let o = De(a), s = Math.abs(e[t] - o[t]);
|
|
452
|
-
(r === void 0 || s <= r) && (n = i, r = s);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
if (n > -1 && n !== t && I(n), u) {
|
|
457
|
-
let e = D.current[n];
|
|
458
|
-
y(e) && (P.current = e.getBoundingClientRect()[k ? "height" : "width"] / 2);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function R(e) {
|
|
462
|
-
let t = D.current?.[e]?.querySelector("input[type=\"range\"]");
|
|
463
|
-
t && t.focus({
|
|
464
|
-
preventScroll: !0,
|
|
465
|
-
focusVisible: !1
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
let Ee = c((e) => {
|
|
469
|
-
let t = U(e, N);
|
|
470
|
-
if (t == null) return;
|
|
471
|
-
if (xe.current += 1, e.type === "pointermove" && e.buttons === 0) {
|
|
472
|
-
z(e);
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
let n = Se(t);
|
|
476
|
-
n != null && Ce(n.value, he, ne) && (!l && xe.current > Ae && fe(!0), pe(n.value, g(m, e, void 0, { activeThumbIndex: n.thumbIndex })), F.current = Array.isArray(n.value) ? n.value : [n.value], n.didSwap && R(n.thumbIndex));
|
|
477
|
-
});
|
|
478
|
-
function z(e) {
|
|
479
|
-
de(-1), fe(!1), w.current = null, T.current = null;
|
|
480
|
-
let t = U(e, N), n = t == null ? null : Se(t);
|
|
481
|
-
if (n != null) {
|
|
482
|
-
let t = h.current;
|
|
483
|
-
ie(f.current ?? n.value, p(t, e));
|
|
484
|
-
}
|
|
485
|
-
"pointerType" in e && A.current?.hasPointerCapture(e.pointerId) && A.current?.releasePointerCapture(e.pointerId), E.current = -1, N.current = null, oe.current = null, V();
|
|
486
|
-
}
|
|
487
|
-
let B = c((e) => {
|
|
488
|
-
if (s) return;
|
|
489
|
-
let t = e.changedTouches[0];
|
|
490
|
-
t != null && (N.current = t.identifier);
|
|
491
|
-
let n = U(e, N);
|
|
492
|
-
if (n != null) {
|
|
493
|
-
L(n);
|
|
494
|
-
let t = Se(n);
|
|
495
|
-
if (t == null) return;
|
|
496
|
-
R(t.thumbIndex), pe(t.value, g(_, e, void 0, { activeThumbIndex: t.thumbIndex })), F.current = Array.isArray(t.value) ? t.value : [t.value], t.didSwap && R(t.thumbIndex);
|
|
497
|
-
}
|
|
498
|
-
xe.current = 0;
|
|
499
|
-
let r = re(A.current);
|
|
500
|
-
r.addEventListener("touchmove", Ee, { passive: !0 }), r.addEventListener("touchend", z, { passive: !0 });
|
|
501
|
-
}), V = c(() => {
|
|
502
|
-
let e = re(A.current);
|
|
503
|
-
e.removeEventListener("pointermove", Ee), e.removeEventListener("pointerup", z), e.removeEventListener("touchmove", Ee), e.removeEventListener("touchend", z), oe.current = null;
|
|
504
|
-
}), W = ee();
|
|
505
|
-
return M.useEffect(() => {
|
|
506
|
-
let e = A.current;
|
|
507
|
-
if (!e) return () => V();
|
|
508
|
-
let t = le(e, "touchstart", B, { passive: !0 });
|
|
509
|
-
return () => {
|
|
510
|
-
t(), W.cancel(), V();
|
|
511
|
-
};
|
|
512
|
-
}, [
|
|
513
|
-
V,
|
|
514
|
-
B,
|
|
515
|
-
A,
|
|
516
|
-
W
|
|
517
|
-
]), M.useEffect(() => {
|
|
518
|
-
s && V();
|
|
519
|
-
}, [s, V]), o("div", e, {
|
|
520
|
-
state: me,
|
|
521
|
-
ref: [
|
|
522
|
-
t,
|
|
523
|
-
se,
|
|
524
|
-
A,
|
|
525
|
-
be
|
|
526
|
-
],
|
|
527
|
-
props: [{
|
|
528
|
-
"data-base-ui-slider-control": ce ? "" : void 0,
|
|
529
|
-
onPointerDown(e) {
|
|
530
|
-
let t = A.current, n = x(e.nativeEvent);
|
|
531
|
-
if (!t || s || e.defaultPrevented || !y(n) || e.button !== 0) return;
|
|
532
|
-
let r = U(e, N);
|
|
533
|
-
if (r != null) {
|
|
534
|
-
L(r);
|
|
535
|
-
let n = Se(r);
|
|
536
|
-
if (n == null) return;
|
|
537
|
-
te(D.current[n.thumbIndex], S(re(t))) ? e.preventDefault() : W.request(() => {
|
|
538
|
-
R(n.thumbIndex);
|
|
539
|
-
}), fe(!0), T.current ?? (pe(n.value, g(_, e.nativeEvent, void 0, { activeThumbIndex: n.thumbIndex })), F.current = Array.isArray(n.value) ? n.value : [n.value], n.didSwap && R(n.thumbIndex));
|
|
540
|
-
}
|
|
541
|
-
e.nativeEvent.pointerId && t.setPointerCapture(e.nativeEvent.pointerId), xe.current = 0;
|
|
542
|
-
let i = re(A.current);
|
|
543
|
-
i.addEventListener("pointermove", Ee, { passive: !0 }), i.addEventListener("pointerup", z, { once: !0 });
|
|
544
|
-
}
|
|
545
|
-
}, a],
|
|
546
|
-
stateAttributesMapping: we
|
|
547
|
-
});
|
|
548
|
-
});
|
|
549
|
-
process.env.NODE_ENV !== "production" && (W.displayName = "SliderControl");
|
|
550
|
-
//#endregion
|
|
551
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/track/SliderTrack.js
|
|
552
|
-
var je = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
553
|
-
let { render: n, className: r, style: i, ...a } = e, { state: s } = Te();
|
|
554
|
-
return o("div", e, {
|
|
555
|
-
state: s,
|
|
556
|
-
ref: t,
|
|
557
|
-
props: [{ style: { position: "relative" } }, a],
|
|
558
|
-
stateAttributesMapping: we
|
|
559
|
-
});
|
|
560
|
-
});
|
|
561
|
-
process.env.NODE_ENV !== "production" && (je.displayName = "SliderTrack");
|
|
562
|
-
//#endregion
|
|
563
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/utils/useIsHydrating.js
|
|
564
|
-
var Me = C();
|
|
565
|
-
function G() {
|
|
566
|
-
return a;
|
|
567
|
-
}
|
|
568
|
-
function K() {
|
|
569
|
-
return !1;
|
|
570
|
-
}
|
|
571
|
-
function Ne() {
|
|
572
|
-
return !0;
|
|
573
|
-
}
|
|
574
|
-
function Pe() {
|
|
575
|
-
return (0, Me.useSyncExternalStore)(G, K, Ne);
|
|
576
|
-
}
|
|
577
|
-
//#endregion
|
|
578
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/thumb/SliderThumbDataAttributes.js
|
|
579
|
-
var Fe = /*#__PURE__*/ function(e) {
|
|
580
|
-
return e.index = "data-index", e.dragging = "data-dragging", e.orientation = "data-orientation", e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.focused = "data-focused", e;
|
|
581
|
-
}({}), Ie = new Set([
|
|
582
|
-
...E,
|
|
583
|
-
w,
|
|
584
|
-
ae
|
|
585
|
-
]);
|
|
586
|
-
function Le(e, t, n, r) {
|
|
587
|
-
if (!(t < 0)) return e.length === 2 ? t === 0 ? `${ve(e[t], r, n)} start range` : `${ve(e[t], r, n)} end range` : n ? ve(e[t], r, n) : void 0;
|
|
588
|
-
}
|
|
589
|
-
function q(e, t, n, r, i) {
|
|
590
|
-
let a = n === 1 ? e + t : e - t;
|
|
591
|
-
return j(Number(a.toFixed(Math.max(B(e), B(t), B(r)))), r, i);
|
|
592
|
-
}
|
|
593
|
-
var Re = /*#__PURE__*/ M.forwardRef(function(e, n) {
|
|
594
|
-
let { render: a, children: s, className: u, "aria-describedby": f, "aria-label": p, "aria-labelledby": m, disabled: h = !1, getAriaLabel: g, getAriaValueText: _, id: ee, index: y, inputRef: te, onBlur: x, onFocus: S, onKeyDown: C, tabIndex: re, style: le, ...ue } = e, { nonce: de } = A(), pe = v(ee), { active: me, lastUsedThumbIndex: he, controlRef: D, disabled: O, validation: j, formatOptionsRef: ye, handleInputChange: be, inset: P, labelId: F, largeStep: I, locale: Ce, max: L, min: R, minStepsBetweenValues: Ee, form: z, name: B, orientation: V, pressedInputRef: ke, pressedThumbCenterOffsetRef: Ae, pressedThumbIndexRef: H, renderBeforeHydration: U, setActive: W, setIndicatorPosition: je, state: Me, step: G, values: K } = Te(), Ne = d(), Re = h || O, J = K.length > 1, Y = V === "vertical", X = Ne === "rtl", { setTouched: ze, setFocused: Be, validationMode: Ve } = ge(), Z = M.useRef(null), He = M.useRef(null), Ue = M.useRef(!1), We = v(), Ge = _e(), Ke = J ? We : Ge, { ref: qe, index: Je } = l({ metadata: M.useMemo(() => ({ inputId: Ke }), [Ke]) }), Q = J ? y ?? Je : 0, Ye = Q === K.length - 1, $ = K[Q], Xe = k($, R, L), [Ze, Qe] = M.useState(), $e = Pe(), et = he >= 0 && he < K.length ? he : -1, tt = c(() => {
|
|
595
|
-
let e = D.current, t = Z.current;
|
|
596
|
-
if (!e || !t) return;
|
|
597
|
-
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i = Y ? "height" : "width", a = r[i] - n[i], o = (n[i] / 2 + a * Xe / 100) / r[i] * 100, s = Number.isFinite(o) ? o : void 0;
|
|
598
|
-
Qe(s), Q === 0 ? je((e) => [s, e[1]]) : Ye && je((e) => [e[0], s]);
|
|
599
|
-
});
|
|
600
|
-
t(() => {
|
|
601
|
-
P && queueMicrotask(tt);
|
|
602
|
-
}, [tt, P]), t(() => {
|
|
603
|
-
P && tt();
|
|
604
|
-
}, [
|
|
605
|
-
tt,
|
|
606
|
-
P,
|
|
607
|
-
Xe
|
|
608
|
-
]), t(() => {
|
|
609
|
-
if (!P) return;
|
|
610
|
-
let e = D.current, t = Z.current;
|
|
611
|
-
if (!e || !t) return;
|
|
612
|
-
let n = b(e).ResizeObserver;
|
|
613
|
-
if (typeof n != "function") return;
|
|
614
|
-
let r = new n(tt);
|
|
615
|
-
return r.observe(e), r.observe(t), () => {
|
|
616
|
-
r.disconnect();
|
|
617
|
-
};
|
|
618
|
-
}, [
|
|
619
|
-
D,
|
|
620
|
-
tt,
|
|
621
|
-
P
|
|
622
|
-
]);
|
|
623
|
-
let nt = Y ? "bottom" : "insetInlineStart", rt = Y ? "left" : "top", it;
|
|
624
|
-
J ? me === Q ? it = 2 : et === Q && (it = 1) : me === Q && (it = 1);
|
|
625
|
-
let at;
|
|
626
|
-
at = P ? {
|
|
627
|
-
"--position": `${Ze ?? 0}%`,
|
|
628
|
-
visibility: U && $e || Ze === void 0 ? "hidden" : void 0,
|
|
629
|
-
position: "absolute",
|
|
630
|
-
[nt]: "var(--position)",
|
|
631
|
-
[rt]: "50%",
|
|
632
|
-
translate: `${(Y || !X ? -1 : 1) * 50}% ${(Y ? 1 : -1) * 50}%`,
|
|
633
|
-
zIndex: it
|
|
634
|
-
} : Number.isFinite(Xe) ? {
|
|
635
|
-
position: "absolute",
|
|
636
|
-
[nt]: `${Xe}%`,
|
|
637
|
-
[rt]: "50%",
|
|
638
|
-
translate: `${(Y || !X ? -1 : 1) * 50}% ${(Y ? 1 : -1) * 50}%`,
|
|
639
|
-
zIndex: it
|
|
640
|
-
} : fe;
|
|
641
|
-
let ot;
|
|
642
|
-
V === "vertical" && (ot = X ? "vertical-rl" : "vertical-lr");
|
|
643
|
-
let st = typeof g == "function" ? g(Q) : p, ct = i({
|
|
644
|
-
"aria-label": st,
|
|
645
|
-
"aria-labelledby": m ?? (st == null ? F : void 0),
|
|
646
|
-
"aria-describedby": f,
|
|
647
|
-
"aria-orientation": V,
|
|
648
|
-
"aria-valuenow": $,
|
|
649
|
-
"aria-valuetext": typeof _ == "function" ? _(ve($, Ce, ye.current ?? void 0), $, Q) : Le(K, Q, ye.current ?? void 0, Ce),
|
|
650
|
-
disabled: Re,
|
|
651
|
-
form: z,
|
|
652
|
-
id: Ke,
|
|
653
|
-
max: L,
|
|
654
|
-
min: R,
|
|
655
|
-
name: B,
|
|
656
|
-
onChange(e) {
|
|
657
|
-
be(e.currentTarget.valueAsNumber, Q, e);
|
|
658
|
-
},
|
|
659
|
-
onFocus(e) {
|
|
660
|
-
let t = Ue.current;
|
|
661
|
-
Ue.current = !1, W(Q), Be(!0), t && e.stopPropagation();
|
|
662
|
-
},
|
|
663
|
-
onBlur(e) {
|
|
664
|
-
if (Ue.current) {
|
|
665
|
-
e.stopPropagation();
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
Z.current && (W(-1), ze(!0), Be(!1), Ve === "onBlur" && j.commit(Se($, Q, R, L, J, K)));
|
|
669
|
-
},
|
|
670
|
-
onKeyDown(e) {
|
|
671
|
-
if (!Ie.has(e.key)) return;
|
|
672
|
-
E.has(e.key) && e.stopPropagation();
|
|
673
|
-
let t = null, n = Oe($, G, R);
|
|
674
|
-
switch (e.key) {
|
|
675
|
-
case ie:
|
|
676
|
-
t = q(n, e.shiftKey ? I : G, 1, R, L);
|
|
677
|
-
break;
|
|
678
|
-
case T:
|
|
679
|
-
t = q(n, e.shiftKey ? I : G, X ? -1 : 1, R, L);
|
|
680
|
-
break;
|
|
681
|
-
case ce:
|
|
682
|
-
t = q(n, e.shiftKey ? I : G, -1, R, L);
|
|
683
|
-
break;
|
|
684
|
-
case oe:
|
|
685
|
-
t = q(n, e.shiftKey ? I : G, X ? 1 : -1, R, L);
|
|
686
|
-
break;
|
|
687
|
-
case w:
|
|
688
|
-
t = q(n, I, 1, R, L);
|
|
689
|
-
break;
|
|
690
|
-
case ae:
|
|
691
|
-
t = q(n, I, -1, R, L);
|
|
692
|
-
break;
|
|
693
|
-
case "End":
|
|
694
|
-
t = L, J && (t = Number.isFinite(K[Q + 1]) ? K[Q + 1] - G * Ee : L);
|
|
695
|
-
break;
|
|
696
|
-
case se:
|
|
697
|
-
t = R, J && (t = Number.isFinite(K[Q - 1]) ? K[Q - 1] + G * Ee : R);
|
|
698
|
-
break;
|
|
699
|
-
default: break;
|
|
700
|
-
}
|
|
701
|
-
if (t !== null) {
|
|
702
|
-
let n = e.currentTarget;
|
|
703
|
-
ne(n) || (Ue.current = !0, n.blur(), n.focus({
|
|
704
|
-
preventScroll: !0,
|
|
705
|
-
focusVisible: !0
|
|
706
|
-
})), be(t, Q, e), e.preventDefault();
|
|
707
|
-
}
|
|
708
|
-
},
|
|
709
|
-
step: G,
|
|
710
|
-
style: {
|
|
711
|
-
...fe,
|
|
712
|
-
width: "100%",
|
|
713
|
-
height: "100%",
|
|
714
|
-
writingMode: ot
|
|
715
|
-
},
|
|
716
|
-
tabIndex: re ?? void 0,
|
|
717
|
-
type: "range",
|
|
718
|
-
value: $ ?? ""
|
|
719
|
-
}, j.getInputValidationProps), lt = r(He, j.inputRef, te);
|
|
720
|
-
return o("div", e, {
|
|
721
|
-
state: Me,
|
|
722
|
-
ref: [
|
|
723
|
-
n,
|
|
724
|
-
qe,
|
|
725
|
-
Z
|
|
726
|
-
],
|
|
727
|
-
props: [{
|
|
728
|
-
[Fe.index]: Q,
|
|
729
|
-
children: /*#__PURE__*/ xe(M.Fragment, { children: [
|
|
730
|
-
s,
|
|
731
|
-
/*#__PURE__*/ N("input", {
|
|
732
|
-
ref: lt,
|
|
733
|
-
...ct,
|
|
734
|
-
suppressHydrationWarning: !0
|
|
735
|
-
}),
|
|
736
|
-
P && $e && U && Ye && /*#__PURE__*/ N("script", {
|
|
737
|
-
nonce: de,
|
|
738
|
-
dangerouslySetInnerHTML: { __html: "!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest(\"[data-base-ui-slider-control]\");if(!e)return;const r=e.querySelector(\"[data-base-ui-slider-indicator]\"),i=e.getBoundingClientRect(),n=\"vertical\"===e.getAttribute(\"data-orientation\")?\"height\":\"width\",o=e.querySelectorAll('input[type=\"range\"]'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute(\"value\")??\"\");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute(\"max\")??\"100\"),g=parseFloat(e.getAttribute(\"min\")??\"0\"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty(\"--position\",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty(\"visibility\"),r&&(0===t?(a=v,r.style.setProperty(\"--start-position\",`${v}%`),l||r.style.removeProperty(\"visibility\")):t===s&&(u=v-(a??0),r.style.setProperty(\"--end-position\",`${v}%`),r.style.setProperty(\"--relative-size\",`${u}%`),r.style.removeProperty(\"visibility\"))))}}();" },
|
|
739
|
-
suppressHydrationWarning: !0
|
|
740
|
-
})
|
|
741
|
-
] }),
|
|
742
|
-
id: pe,
|
|
743
|
-
onBlur: x,
|
|
744
|
-
onFocus: S,
|
|
745
|
-
onPointerDown(e) {
|
|
746
|
-
if (H.current = Q, Z.current != null) {
|
|
747
|
-
let t = V === "horizontal" ? "x" : "y", n = De(Z.current);
|
|
748
|
-
Ae.current = (V === "horizontal" ? e.clientX : e.clientY) - n[t];
|
|
749
|
-
}
|
|
750
|
-
He.current != null && ke.current !== He.current && (ke.current = He.current);
|
|
751
|
-
},
|
|
752
|
-
style: at,
|
|
753
|
-
suppressHydrationWarning: U || void 0
|
|
754
|
-
}, ue],
|
|
755
|
-
stateAttributesMapping: we
|
|
756
|
-
});
|
|
757
|
-
});
|
|
758
|
-
process.env.NODE_ENV !== "production" && (Re.displayName = "SliderThumb");
|
|
759
|
-
//#endregion
|
|
760
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/slider/indicator/SliderIndicator.js
|
|
761
|
-
function J(e, t, n, r, i, a) {
|
|
762
|
-
let o = n === void 0 || t && r === void 0 ? "hidden" : void 0, s = e ? "bottom" : "insetInlineStart", c = e ? "height" : "width", l = {
|
|
763
|
-
visibility: i && a ? "hidden" : o,
|
|
764
|
-
position: e ? "absolute" : "relative",
|
|
765
|
-
[e ? "width" : "height"]: "inherit"
|
|
766
|
-
};
|
|
767
|
-
return l["--start-position"] = `${n ?? 0}%`, t ? (l["--relative-size"] = `${(r ?? 0) - (n ?? 0)}%`, l[s] = "var(--start-position)", l[c] = "var(--relative-size)", l) : (l[s] = 0, l[c] = "var(--start-position)", l);
|
|
768
|
-
}
|
|
769
|
-
function Y(e, t, n, r) {
|
|
770
|
-
let i = e ? "bottom" : "insetInlineStart", a = e ? "height" : "width", o = {
|
|
771
|
-
position: e ? "absolute" : "relative",
|
|
772
|
-
[e ? "width" : "height"]: "inherit"
|
|
773
|
-
};
|
|
774
|
-
if (!t) return o[i] = 0, o[a] = `${n}%`, o;
|
|
775
|
-
let s = r - n;
|
|
776
|
-
return o[i] = `${n}%`, o[a] = `${s}%`, o;
|
|
777
|
-
}
|
|
778
|
-
var X = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
779
|
-
let { render: n, className: r, style: i, ...a } = e, { indicatorPosition: s, inset: c, max: l, min: u, orientation: d, renderBeforeHydration: f, state: p, values: m } = Te(), h = Pe(), g = d === "vertical", _ = m.length > 1, v = c ? J(g, _, s[0], s[1], f, h) : Y(g, _, k(m[0], u, l), k(m[m.length - 1], u, l));
|
|
780
|
-
return o("div", e, {
|
|
781
|
-
state: p,
|
|
782
|
-
ref: t,
|
|
783
|
-
props: [{
|
|
784
|
-
"data-base-ui-slider-indicator": f ? "" : void 0,
|
|
785
|
-
style: v,
|
|
786
|
-
suppressHydrationWarning: f || void 0
|
|
787
|
-
}, a],
|
|
788
|
-
stateAttributesMapping: we
|
|
789
|
-
});
|
|
790
|
-
});
|
|
791
|
-
process.env.NODE_ENV !== "production" && (X.displayName = "SliderIndicator");
|
|
792
|
-
//#endregion
|
|
793
|
-
//#region lib/components/ui/atoms/slider.tsx
|
|
794
|
-
function ze({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, ...a }) {
|
|
795
|
-
let o;
|
|
796
|
-
return o = Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], /* @__PURE__ */ N(z, {
|
|
797
|
-
className: de("w-full data-[orientation=vertical]:h-full", e),
|
|
798
|
-
"data-slot": "slider",
|
|
799
|
-
defaultValue: t,
|
|
800
|
-
max: i,
|
|
801
|
-
min: r,
|
|
802
|
-
thumbAlignment: "edge",
|
|
803
|
-
value: n,
|
|
804
|
-
...a,
|
|
805
|
-
children: /* @__PURE__ */ xe(W, {
|
|
806
|
-
className: "relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-disabled:opacity-50",
|
|
807
|
-
children: [/* @__PURE__ */ N(je, {
|
|
808
|
-
className: "relative h-1.5 w-full grow select-none overflow-hidden rounded-full bg-muted data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",
|
|
809
|
-
"data-slot": "slider-track",
|
|
810
|
-
children: /* @__PURE__ */ N(X, {
|
|
811
|
-
className: "h-full select-none bg-primary data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-full",
|
|
812
|
-
"data-slot": "slider-range"
|
|
813
|
-
})
|
|
814
|
-
}), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ N(Re, {
|
|
815
|
-
className: "relative block size-3 shrink-0 select-none rounded-full border border-primary bg-primary ring-ring/50 transition-[color,box-shadow] after:absolute after:-inset-2 hover:ring-3 focus-visible:outline-hidden focus-visible:ring-3 active:ring-3 disabled:pointer-events-none disabled:opacity-50",
|
|
816
|
-
"data-slot": "slider-thumb"
|
|
817
|
-
}, t))]
|
|
818
|
-
})
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
//#endregion
|
|
822
|
-
export { ze as t };
|