@arcadeai/design-system 3.39.1 → 3.39.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-CniPsjzP.js +30 -0
- package/dist/CompositeList-yq5K_yj6.js +81 -0
- package/dist/CompositeRoot-Dy-5A-Je.js +206 -0
- package/dist/DialogRoot-DDokfJcO.js +57 -0
- package/dist/DialogTrigger-CFUE8YsM.js +402 -0
- package/dist/DirectionContext-BSOheMwC.js +10 -0
- package/dist/FieldItemContext-CF2fRwBC.js +12 -0
- package/dist/FloatingPortalLite-BHsRx4XN.js +29 -0
- package/dist/InternalBackdrop-BVEfe6O1.js +610 -0
- package/dist/LabelableContext-Dzw1DWuj.js +171 -0
- package/dist/Separator-CswSYAXX.js +25 -0
- package/dist/ToolbarRootContext-D7EsmJ5f.js +10 -0
- package/dist/andromeeda-B-gfN00q.js +4 -0
- package/dist/angular-html-dA1qUKRV.js +32 -0
- package/dist/angular-ts-CXyBC0vY.js +21 -0
- package/dist/apl-CjNiDgad.js +3 -3
- package/dist/assets/images/arcade-grid.d.ts.map +1 -1
- package/dist/assets/images/arcade-grid.js +1 -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--3ZkKqYU.js +18 -0
- package/dist/astro-CFFExE8Q.js +5 -5
- package/dist/aurora-x-B56eICma.js +4 -0
- package/dist/ayu-dark-DJSOaKig.js +4 -0
- package/dist/ayu-light-BPfFt4v-.js +4 -0
- package/dist/ayu-mirage-DmPLRBj7.js +4 -0
- package/dist/blade-BoRuQEEj.js +20 -0
- package/dist/blade-D0HyNvCw.js +4 -4
- package/dist/c-C4SM8H98.js +6 -0
- package/dist/cairo-DM6WF2e3.js +1 -1
- package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
- package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
- package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
- package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
- package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
- package/dist/clamp-BxE4ZAuA.js +17 -0
- package/dist/cobol-HihOMwht.js +1 -1
- package/dist/coffee-D8Swy5yR.js +8 -0
- package/dist/components/index.js +665 -646
- package/dist/components/ui/atoms/accordion.d.ts +9 -7
- package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
- package/dist/components/ui/atoms/accordion.js +454 -243
- package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
- package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +149 -183
- package/dist/components/ui/atoms/alert.d.ts +2 -1
- package/dist/components/ui/atoms/alert.d.ts.map +1 -1
- package/dist/components/ui/atoms/alert.js +36 -25
- package/dist/components/ui/atoms/avatar.d.ts +10 -5
- package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
- package/dist/components/ui/atoms/avatar.js +198 -205
- package/dist/components/ui/atoms/badge.d.ts +4 -5
- package/dist/components/ui/atoms/badge.d.ts.map +1 -1
- package/dist/components/ui/atoms/badge.js +31 -22
- package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
- package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/atoms/breadcrumb.js +46 -29
- package/dist/components/ui/atoms/button.d.ts +4 -6
- package/dist/components/ui/atoms/button.d.ts.map +1 -1
- package/dist/components/ui/atoms/button.js +59 -28
- package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
- package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
- package/dist/components/ui/atoms/byoc-badge.js +14 -8
- package/dist/components/ui/atoms/calendar.d.ts +6 -16
- package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
- package/dist/components/ui/atoms/calendar.js +1 -1
- package/dist/components/ui/atoms/card.d.ts +4 -2
- package/dist/components/ui/atoms/card.d.ts.map +1 -1
- package/dist/components/ui/atoms/card.js +46 -35
- package/dist/components/ui/atoms/chart.d.ts +24 -48
- package/dist/components/ui/atoms/chart.d.ts.map +1 -1
- package/dist/components/ui/atoms/chart.js +179 -148
- package/dist/components/ui/atoms/checkbox.d.ts +2 -3
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +269 -249
- package/dist/components/ui/atoms/code-block.js +1 -1
- package/dist/components/ui/atoms/collapsible.d.ts +5 -5
- package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
- package/dist/components/ui/atoms/collapsible.js +208 -23
- package/dist/components/ui/atoms/command.d.ts +4 -3
- package/dist/components/ui/atoms/command.d.ts.map +1 -1
- package/dist/components/ui/atoms/command.js +1655 -348
- package/dist/components/ui/atoms/dialog.d.ts +12 -10
- package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
- package/dist/components/ui/atoms/dialog.js +91 -80
- package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
- package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
- package/dist/components/ui/atoms/form.d.ts +5 -3
- package/dist/components/ui/atoms/form.d.ts.map +1 -1
- package/dist/components/ui/atoms/form.js +36 -42
- package/dist/components/ui/atoms/hover-card.d.ts +5 -6
- package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
- package/dist/components/ui/atoms/hover-card.js +355 -193
- package/dist/components/ui/atoms/index.d.ts +1 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +566 -547
- package/dist/components/ui/atoms/input-group.d.ts +20 -0
- package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
- package/dist/components/ui/atoms/input-group.js +136 -0
- package/dist/components/ui/atoms/input.d.ts.map +1 -1
- package/dist/components/ui/atoms/input.js +113 -13
- package/dist/components/ui/atoms/label.d.ts +1 -2
- package/dist/components/ui/atoms/label.d.ts.map +1 -1
- package/dist/components/ui/atoms/label.js +18 -31
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
- package/dist/components/ui/atoms/popover.d.ts +8 -6
- package/dist/components/ui/atoms/popover.d.ts.map +1 -1
- package/dist/components/ui/atoms/popover.js +617 -245
- package/dist/components/ui/atoms/pro-badge.js +1 -1
- package/dist/components/ui/atoms/progress.d.ts +7 -4
- package/dist/components/ui/atoms/progress.d.ts.map +1 -1
- package/dist/components/ui/atoms/progress.js +236 -92
- package/dist/components/ui/atoms/radio-group.d.ts +4 -4
- package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
- package/dist/components/ui/atoms/radio-group.js +355 -251
- package/dist/components/ui/atoms/resizable.d.ts +3 -4
- package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
- package/dist/components/ui/atoms/resizable.js +25 -27
- package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
- package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/atoms/scroll-area.js +611 -526
- package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
- package/dist/components/ui/atoms/scroll-button.js +27 -22
- package/dist/components/ui/atoms/select.d.ts +11 -11
- package/dist/components/ui/atoms/select.d.ts.map +1 -1
- package/dist/components/ui/atoms/select.js +1525 -889
- package/dist/components/ui/atoms/separator.d.ts +2 -3
- package/dist/components/ui/atoms/separator.d.ts.map +1 -1
- package/dist/components/ui/atoms/separator.js +16 -35
- package/dist/components/ui/atoms/sheet.d.ts +9 -9
- package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
- package/dist/components/ui/atoms/sheet.js +65 -64
- package/dist/components/ui/atoms/sidebar.d.ts +9 -15
- package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
- package/dist/components/ui/atoms/sidebar.js +288 -283
- package/dist/components/ui/atoms/skeleton.js +4 -4
- package/dist/components/ui/atoms/slider.d.ts +2 -3
- package/dist/components/ui/atoms/slider.d.ts.map +1 -1
- package/dist/components/ui/atoms/slider.js +886 -440
- package/dist/components/ui/atoms/switch.d.ts +4 -5
- package/dist/components/ui/atoms/switch.d.ts.map +1 -1
- package/dist/components/ui/atoms/switch.js +218 -151
- package/dist/components/ui/atoms/table.d.ts +2 -4
- package/dist/components/ui/atoms/table.d.ts.map +1 -1
- package/dist/components/ui/atoms/table.js +35 -36
- package/dist/components/ui/atoms/tabs.d.ts +11 -7
- package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
- package/dist/components/ui/atoms/tabs.js +492 -186
- package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
- package/dist/components/ui/atoms/textarea.js +7 -7
- package/dist/components/ui/atoms/toggle.d.ts +2 -3
- package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
- package/dist/components/ui/atoms/toggle.js +92 -45
- package/dist/components/ui/atoms/tooltip.d.ts +6 -9
- package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
- package/dist/components/ui/atoms/tooltip.js +625 -343
- package/dist/components/ui/atoms/view-tools-control.js +16 -15
- package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
- package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
- package/dist/components/ui/atoms/virtualized-grid.js +365 -333
- package/dist/components/ui/index.js +665 -646
- package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
- package/dist/components/ui/molecules/chat-history-item.js +47 -40
- package/dist/components/ui/molecules/command-bar.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
- package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +26 -24
- package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +17 -11
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/message.d.ts +2 -3
- package/dist/components/ui/molecules/message.d.ts.map +1 -1
- package/dist/components/ui/molecules/message.js +10 -16
- package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
- package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
- package/dist/components/ui/molecules/prompt-input.js +21 -22
- package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +3 -3
- package/dist/components/ui/molecules/steps-progress.js +1 -0
- package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +60 -47
- 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.d.ts.map +1 -1
- package/dist/components/ui/molecules/user-nav.js +62 -57
- package/dist/components/ui/templates/auth-template.js +5 -5
- package/dist/composite-BASdnlNo.js +220 -0
- package/dist/composite-BSpUD7nI.js +66 -0
- package/dist/cpp-CA4iM_wM.js +18 -0
- package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
- package/dist/crystal-CRJyc4G-.js +4 -4
- package/dist/css-M7EaDHN_.js +6 -0
- package/dist/csv-B7yqA61e.js +6 -0
- package/dist/dark-plus-B4vfALTw.js +4 -0
- package/dist/detectBrowser-Dn2N72k1.js +42 -0
- package/dist/dracula-Cb59ZzY3.js +4 -0
- package/dist/dracula-soft-aaEmszbU.js +4 -0
- package/dist/edge-BYQkOzbF.js +1 -1
- package/dist/element-DSo91iOi.js +88 -0
- package/dist/elm-BtNbw_Cd.js +1 -1
- package/dist/erlang-DNcDT8Hi.js +1 -1
- package/dist/event-BCa0Un_3.js +30 -0
- package/dist/everforest-dark-CLp_21RJ.js +4 -0
- package/dist/everforest-light-CZ0NCAAv.js +4 -0
- package/dist/floating-ui.utils-48URp89E.js +126 -0
- package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
- package/dist/fsharp-CYOiIVNx.js +1 -1
- package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
- package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
- package/dist/git-rebase-ZWUFO_T4.js +1 -1
- package/dist/github-dark-BD3lImVS.js +4 -0
- package/dist/github-dark-default-ID_nBUwl.js +4 -0
- package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
- package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
- package/dist/github-light-W396yAFe.js +4 -0
- package/dist/github-light-default-DCAQ2px1.js +4 -0
- package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
- package/dist/glimmer-js-DkxNrfPT.js +2 -2
- package/dist/glimmer-ts-D6YZEmK_.js +2 -2
- package/dist/glsl-CgdqkyFp.js +8 -0
- package/dist/graphql-Bv26LTzG.js +14 -0
- package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
- package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
- package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
- package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
- package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
- package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
- package/dist/hack-ItRNKiEb.js +1 -1
- package/dist/haml-B1t5q1Sv.js +10 -0
- package/dist/haml-NZLVzu_R.js +1 -1
- package/dist/handlebars-B2fb61mr.js +14 -0
- package/dist/handlebars-mxStpSE7.js +2 -2
- package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +11 -12
- package/dist/horizon-PFtq58ZB.js +4 -0
- package/dist/horizon-bright-2WzHy-Vo.js +4 -0
- package/dist/houston-BEqUWhHr.js +4 -0
- package/dist/html-B50bmoVb.js +1 -1
- package/dist/html-CPZ3oZQ7.js +10 -0
- package/dist/html-derivative-B2qv7eyt.js +8 -0
- package/dist/http-BQ2t9cn1.js +14 -0
- package/dist/hurl-RyCMCa80.js +12 -0
- package/dist/imba-DpB-wtPB.js +6 -0
- package/dist/index-3rscXtm3.js +4708 -0
- package/dist/inertValue-kpZZDBEy.js +7 -0
- package/dist/integrations/rhf/index.js +6 -5
- package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
- package/dist/java-CbphP4lz.js +6 -0
- package/dist/javascript-CgYd5l7W.js +6 -0
- package/dist/jinja-DFCUirAg.js +11 -0
- package/dist/jison-CTEI_s6O.js +8 -0
- package/dist/json-B5-prx4F.js +6 -0
- package/dist/json5-CZ8R1oUY.js +6 -0
- package/dist/jsonc-DMboCKBJ.js +6 -0
- package/dist/jsonl-YgIUi4Dg.js +6 -0
- package/dist/jsx-D4q4E1UD.js +6 -0
- package/dist/julia-2ubi2n9a.js +16 -0
- package/dist/just-CEK2SJ_k.js +4 -4
- package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
- package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
- package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
- package/dist/laserwave-B_2VVKNJ.js +4 -0
- package/dist/less-MoGo8xoS.js +6 -0
- package/dist/light-plus-IB4fPeJj.js +4 -0
- package/dist/liquid-CHzkx3jT.js +2 -2
- package/dist/lua-Bp3IRv7I.js +1 -1
- package/dist/main.js +691 -672
- package/dist/markdown-B-zRtm0x.js +6 -0
- package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
- package/dist/marko-BlmC3dqW.js +14 -0
- package/dist/marko-CJBA24Ri.js +2 -2
- package/dist/material-theme-CjsSdYF2.js +4 -0
- package/dist/material-theme-darker-DEk0vgdS.js +4 -0
- package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
- package/dist/material-theme-ocean-DK6jm24j.js +4 -0
- package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
- package/dist/mdc-C9YSUwVC.js +2 -2
- package/dist/mdc-CLNk3q28.js +12 -0
- package/dist/mdx-CiUWpBB_.js +6 -0
- package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
- package/dist/min-dark-CJcHUHwu.js +4 -0
- package/dist/min-light-BAN2UR75.js +4 -0
- package/dist/monokai-BbXwpjKl.js +4 -0
- package/dist/night-owl-csViJ7u4.js +4 -0
- package/dist/night-owl-light-BC-NuMC3.js +4 -0
- package/dist/nim-QAjRdh9w.js +5 -5
- package/dist/nord-B8Sq-VQ0.js +4 -0
- package/dist/one-dark-pro-DTdrcl-J.js +4 -0
- package/dist/one-light-kPHTChCU.js +4 -0
- package/dist/owner-rKN292Q9.js +6 -0
- package/dist/perl-DkVrgJBg.js +3 -3
- package/dist/php-BIzsF_5x.js +4 -4
- package/dist/php-Kn-vgdBD.js +18 -0
- package/dist/plastic-DDweBgVs.js +4 -0
- package/dist/poimandres-Dqvs16BQ.js +4 -0
- package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
- package/dist/postcss-CwL8bLZI.js +6 -0
- package/dist/pug-CTOOvSEH.js +12 -0
- package/dist/pug-XOw9Q1Ho.js +1 -1
- package/dist/python-jjYlTiSH.js +6 -0
- package/dist/qml-rTNXsquU.js +1 -1
- package/dist/r-C8zl4zMO.js +6 -0
- package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
- package/dist/red-DBDwQkX-.js +4 -0
- package/dist/regexp-Dpy_RgoJ.js +6 -0
- package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
- package/dist/rose-pine-DGHrTu7e.js +4 -0
- package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
- package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
- package/dist/rst-DM32Wy3O.js +5 -5
- package/dist/ruby-BeqCs27h.js +8 -8
- package/dist/safePolygon-CJcmMc0u.js +389 -0
- package/dist/safeReact-DKq-628G.js +7 -0
- package/dist/sas-fpEvgATw.js +1 -1
- package/dist/sass-BmupNt-w.js +6 -0
- package/dist/scss-BZYVIVaN.js +8 -0
- package/dist/serializeValue-BebmSzW3.js +14 -0
- package/dist/shellscript-fMxXshxv.js +6 -0
- package/dist/shellsession-DiDJNQdy.js +1 -1
- package/dist/slack-dark-noeC6QPl.js +4 -0
- package/dist/slack-ochin-3_2idqLR.js +4 -0
- package/dist/snazzy-light-B9cV359v.js +4 -0
- package/dist/solarized-dark-B6X0ILWr.js +4 -0
- package/dist/solarized-light-LxOemn3c.js +4 -0
- package/dist/sql-D30Zid36.js +6 -0
- package/dist/stata-B8c5fTjX.js +1 -1
- package/dist/styles-DU5BO7fS.js +16 -0
- package/dist/stylus-BoBcEBjx.js +6 -0
- package/dist/surrealql-CQi7GQN7.js +1 -1
- package/dist/svelte-b9PAcyUe.js +14 -0
- package/dist/svelte-rYri41WT.js +3 -3
- package/dist/synthwave-84-DzQeMpV0.js +4 -0
- package/dist/templ-Crs9Ui8q.js +1 -1
- package/dist/tex-AHxmLTL0.js +1 -1
- package/dist/tokyo-night-CLM-V_Re.js +4 -0
- package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
- package/dist/ts-tags-CP1b-4Z2.js +41 -0
- package/dist/ts-tags-ioVe2PKw.js +5 -5
- package/dist/tsx-QNpb2qLW.js +6 -0
- package/dist/twig-DwV2Fi4L.js +2 -2
- package/dist/typescript-AhniRyfZ.js +6 -0
- package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
- package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
- package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
- package/dist/useButton-JYPKQKj4.js +150 -0
- package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
- package/dist/useCompositeItem-D00ALGkT.js +35 -0
- package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
- package/dist/useControlled-Sx-_x7Sz.js +32 -0
- package/dist/useFocus-Aj9ShMQu.js +97 -0
- package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
- package/dist/useLabelableId-DF_d91GP.js +44 -0
- package/dist/useOnFirstRender-B4aruaIA.js +9 -0
- package/dist/useOnMount-JHtE6teb.js +9 -0
- package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
- package/dist/useRender-BNXBkp2o.js +7 -0
- package/dist/useRenderElement-DNB2vtF1.js +274 -0
- package/dist/useRole-N-RCRzo1.js +76 -0
- package/dist/useStableCallback-CudqoENs.js +33 -0
- package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
- package/dist/useTimeout-DAqPwigF.js +33 -0
- package/dist/useValueAsRef-LhoZc6As.js +20 -0
- package/dist/useValueChanged-Bissqjjn.js +15 -0
- package/dist/valueToPercent-BBgE4D3L.js +27 -0
- package/dist/vesper-BmV7KiQ0.js +4 -0
- package/dist/visuallyHidden-PuyyGHVF.js +22 -0
- package/dist/vitesse-black-CxZz3C4s.js +4 -0
- package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
- package/dist/vitesse-light-BDJohtUr.js +4 -0
- package/dist/vue-CY6W2ID0.js +31 -0
- package/dist/vue-DXEmyXn9.js +3 -3
- package/dist/vue-html-DYXHAJ2G.js +8 -0
- package/dist/vue-vine-D41-N99t.js +4 -4
- package/dist/vue-vine-DiWTpMwZ.js +18 -0
- package/dist/wasm-3y0A1Y71.js +6 -0
- package/dist/wasm-Dm9SFfrx.js +7 -0
- package/dist/web-BbvN_Lei.js +2846 -0
- package/dist/wgsl-SXl3EZUN.js +6 -0
- package/dist/wit-Cw0CTVY0.js +6 -0
- package/dist/xml-CNXGTZ6Z.js +8 -0
- package/dist/xsl-BmSZphgC.js +1 -1
- package/dist/yaml-DZqZ2PBD.js +6 -0
- package/package.json +37 -34
- package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
- package/dist/index-0ioNhtNM.js +0 -10
- package/dist/index-437EL2iq.js +0 -52
- package/dist/index-B695uy69.js +0 -9
- package/dist/index-BEZCAdXQ.js +0 -1568
- package/dist/index-BGQepRFJ.js +0 -27
- package/dist/index-BZPx6jYI.js +0 -8
- package/dist/index-BaLuVb4t.js +0 -70
- package/dist/index-Bw62B28F.js +0 -31
- package/dist/index-By-GFSsC.js +0 -245
- package/dist/index-ByaXH_ih.js +0 -10
- package/dist/index-CCKe-Mpx.js +0 -6
- package/dist/index-Cv867SGx.js +0 -13
- package/dist/index-CvA4FcaC.js +0 -677
- package/dist/index-D2LZVjSn.js +0 -82
- package/dist/index-DFZozV_h.js +0 -68
- package/dist/index-DJQkmo5O.js +0 -49
- package/dist/index-DLohNuco.js +0 -36
- package/dist/index-DrFfdHac.js +0 -144
- package/dist/index-DrlYGDRT.js +0 -119
- package/dist/index-Dz8CQngS.js +0 -181
- package/dist/index-cd1ceFJg.js +0 -6973
- package/dist/index-rKs9bXHr.js +0 -6
- package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
- package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
- package/dist/web-BwFNdl01.js +0 -697
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as u } from "./useRenderElement-DNB2vtF1.js";
|
|
3
|
+
import { u as h } from "./useOnMount-JHtE6teb.js";
|
|
4
|
+
const s = null;
|
|
5
|
+
let l = globalThis.requestAnimationFrame;
|
|
6
|
+
class o {
|
|
7
|
+
/* This implementation uses an array as a backing data-structure for frame callbacks.
|
|
8
|
+
* It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
|
|
9
|
+
* never calls the native `cancelAnimationFrame` if there are no frames left. This can
|
|
10
|
+
* be much more efficient if there is a call pattern that alterns as
|
|
11
|
+
* "request-cancel-request-cancel-…".
|
|
12
|
+
* But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
|
|
13
|
+
* frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
|
|
14
|
+
callbacks = [];
|
|
15
|
+
callbacksCount = 0;
|
|
16
|
+
nextId = 1;
|
|
17
|
+
startId = 1;
|
|
18
|
+
isScheduled = !1;
|
|
19
|
+
tick = (t) => {
|
|
20
|
+
this.isScheduled = !1;
|
|
21
|
+
const e = this.callbacks, i = this.callbacksCount;
|
|
22
|
+
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, i > 0)
|
|
23
|
+
for (let r = 0; r < e.length; r += 1)
|
|
24
|
+
e[r]?.(t);
|
|
25
|
+
};
|
|
26
|
+
request(t) {
|
|
27
|
+
const e = this.nextId;
|
|
28
|
+
this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
|
|
29
|
+
const i = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
|
|
30
|
+
return (!this.isScheduled || i) && (requestAnimationFrame(this.tick), this.isScheduled = !0), e;
|
|
31
|
+
}
|
|
32
|
+
cancel(t) {
|
|
33
|
+
const e = t - this.startId;
|
|
34
|
+
e < 0 || e >= this.callbacks.length || (this.callbacks[e] = null, this.callbacksCount -= 1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const c = new o();
|
|
38
|
+
class a {
|
|
39
|
+
static create() {
|
|
40
|
+
return new a();
|
|
41
|
+
}
|
|
42
|
+
static request(t) {
|
|
43
|
+
return c.request(t);
|
|
44
|
+
}
|
|
45
|
+
static cancel(t) {
|
|
46
|
+
return c.cancel(t);
|
|
47
|
+
}
|
|
48
|
+
currentId = s;
|
|
49
|
+
/**
|
|
50
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
51
|
+
*/
|
|
52
|
+
request(t) {
|
|
53
|
+
this.cancel(), this.currentId = c.request(() => {
|
|
54
|
+
this.currentId = s, t();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
cancel = () => {
|
|
58
|
+
this.currentId !== s && (c.cancel(this.currentId), this.currentId = s);
|
|
59
|
+
};
|
|
60
|
+
disposeEffect = () => this.cancel;
|
|
61
|
+
}
|
|
62
|
+
function k() {
|
|
63
|
+
const n = u(a.create).current;
|
|
64
|
+
return h(n.disposeEffect), n;
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
a as A,
|
|
68
|
+
k as u
|
|
69
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { u as l } from "./useIsoLayoutEffect-DpJo20by.js";
|
|
4
|
+
import { u as c } from "./useBaseUiId-C8Dq0BQq.js";
|
|
5
|
+
function y(e, n, t, r = !0, i) {
|
|
6
|
+
const [a, f] = o.useState(), d = c(i ? `${i}-label` : void 0), u = e ?? n ?? a;
|
|
7
|
+
return l(() => {
|
|
8
|
+
const s = e || n || !r ? void 0 : m(t.current, d);
|
|
9
|
+
a !== s && f(s);
|
|
10
|
+
}), u;
|
|
11
|
+
}
|
|
12
|
+
function m(e, n) {
|
|
13
|
+
const t = L(e);
|
|
14
|
+
if (t)
|
|
15
|
+
return !t.id && n && (t.id = n), t.id || void 0;
|
|
16
|
+
}
|
|
17
|
+
function L(e) {
|
|
18
|
+
if (!e)
|
|
19
|
+
return;
|
|
20
|
+
const n = e.parentElement;
|
|
21
|
+
if (n && n.tagName === "LABEL")
|
|
22
|
+
return n;
|
|
23
|
+
const t = e.id;
|
|
24
|
+
if (t) {
|
|
25
|
+
const i = e.nextElementSibling;
|
|
26
|
+
if (i && i.htmlFor === t)
|
|
27
|
+
return i;
|
|
28
|
+
}
|
|
29
|
+
const r = e.labels;
|
|
30
|
+
return r && r[0];
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
y as u
|
|
34
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { S as f } from "./safeReact-DKq-628G.js";
|
|
4
|
+
let a = 0;
|
|
5
|
+
function l(t, e = "mui") {
|
|
6
|
+
const [u, o] = s.useState(t), c = t || u;
|
|
7
|
+
return s.useEffect(() => {
|
|
8
|
+
u == null && (a += 1, o(`${e}-${a}`));
|
|
9
|
+
}, [u, e]), c;
|
|
10
|
+
}
|
|
11
|
+
const n = f.useId;
|
|
12
|
+
function d(t, e) {
|
|
13
|
+
if (n !== void 0) {
|
|
14
|
+
const u = n();
|
|
15
|
+
return t ?? (e ? `${e}-${u}` : u);
|
|
16
|
+
}
|
|
17
|
+
return l(t, e);
|
|
18
|
+
}
|
|
19
|
+
function r(t) {
|
|
20
|
+
return d(t, "base-ui");
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
d as a,
|
|
24
|
+
r as u
|
|
25
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { i as H } from "./floating-ui.utils.dom-jr2suqy2.js";
|
|
4
|
+
import { u as W } from "./useStableCallback-CudqoENs.js";
|
|
5
|
+
import { S as N } from "./safeReact-DKq-628G.js";
|
|
6
|
+
import { u as _ } from "./useIsoLayoutEffect-DpJo20by.js";
|
|
7
|
+
import { f as $, m as v, d as I } from "./useRenderElement-DNB2vtF1.js";
|
|
8
|
+
let C;
|
|
9
|
+
process.env.NODE_ENV !== "production" && (C = /* @__PURE__ */ new Set());
|
|
10
|
+
function P(...n) {
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
const t = n.join(" ");
|
|
13
|
+
C.has(t) || (C.add(t), console.error(`Base UI: ${t}`));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const R = /* @__PURE__ */ f.createContext(void 0);
|
|
17
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "CompositeRootContext");
|
|
18
|
+
function A(n = !1) {
|
|
19
|
+
const t = f.useContext(R);
|
|
20
|
+
if (t === void 0 && !n)
|
|
21
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : $(16));
|
|
22
|
+
return t;
|
|
23
|
+
}
|
|
24
|
+
function L(n) {
|
|
25
|
+
const {
|
|
26
|
+
focusableWhenDisabled: t,
|
|
27
|
+
disabled: a,
|
|
28
|
+
composite: p = !1,
|
|
29
|
+
tabIndex: o = 0,
|
|
30
|
+
isNativeButton: c
|
|
31
|
+
} = n, l = p && t !== !1, b = p && t === !1;
|
|
32
|
+
return {
|
|
33
|
+
props: f.useMemo(() => {
|
|
34
|
+
const s = {
|
|
35
|
+
// allow Tabbing away from focusableWhenDisabled elements
|
|
36
|
+
onKeyDown(d) {
|
|
37
|
+
a && t && d.key !== "Tab" && d.preventDefault();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return p || (s.tabIndex = o, !c && a && (s.tabIndex = t ? o : -1)), (c && (t || l) || !c && a) && (s["aria-disabled"] = a), c && (!t || b) && (s.disabled = a), s;
|
|
41
|
+
}, [p, a, t, l, b, c, o])
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function X(n = {}) {
|
|
45
|
+
const {
|
|
46
|
+
disabled: t = !1,
|
|
47
|
+
focusableWhenDisabled: a,
|
|
48
|
+
tabIndex: p = 0,
|
|
49
|
+
native: o = !0,
|
|
50
|
+
composite: c
|
|
51
|
+
} = n, l = f.useRef(null), b = A(!0), i = c ?? b !== void 0, {
|
|
52
|
+
props: s
|
|
53
|
+
} = L({
|
|
54
|
+
focusableWhenDisabled: a,
|
|
55
|
+
disabled: t,
|
|
56
|
+
composite: i,
|
|
57
|
+
tabIndex: p,
|
|
58
|
+
isNativeButton: o
|
|
59
|
+
});
|
|
60
|
+
process.env.NODE_ENV !== "production" && f.useEffect(() => {
|
|
61
|
+
if (!l.current)
|
|
62
|
+
return;
|
|
63
|
+
const r = g(l.current);
|
|
64
|
+
if (o) {
|
|
65
|
+
if (!r) {
|
|
66
|
+
const u = N.captureOwnerStack?.() || "";
|
|
67
|
+
P(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${u}`);
|
|
68
|
+
}
|
|
69
|
+
} else if (r) {
|
|
70
|
+
const u = N.captureOwnerStack?.() || "";
|
|
71
|
+
P(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${u}`);
|
|
72
|
+
}
|
|
73
|
+
}, [o]);
|
|
74
|
+
const d = f.useCallback(() => {
|
|
75
|
+
const r = l.current;
|
|
76
|
+
g(r) && i && t && s.disabled === void 0 && r.disabled && (r.disabled = !1);
|
|
77
|
+
}, [t, s.disabled, i]);
|
|
78
|
+
_(d, [d]);
|
|
79
|
+
const O = f.useCallback((r = {}) => {
|
|
80
|
+
const {
|
|
81
|
+
onClick: u,
|
|
82
|
+
onMouseDown: D,
|
|
83
|
+
onKeyUp: U,
|
|
84
|
+
onKeyDown: K,
|
|
85
|
+
onPointerDown: S,
|
|
86
|
+
...M
|
|
87
|
+
} = r;
|
|
88
|
+
return v({
|
|
89
|
+
type: o ? "button" : void 0,
|
|
90
|
+
onClick(e) {
|
|
91
|
+
if (t) {
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
u?.(e);
|
|
96
|
+
},
|
|
97
|
+
onMouseDown(e) {
|
|
98
|
+
t || D?.(e);
|
|
99
|
+
},
|
|
100
|
+
onKeyDown(e) {
|
|
101
|
+
if (t || (I(e), K?.(e), e.baseUIHandlerPrevented))
|
|
102
|
+
return;
|
|
103
|
+
const x = e.target === e.currentTarget, m = e.currentTarget, k = g(m), w = !o && F(m), E = x && (o ? k : !w), y = e.key === "Enter", B = e.key === " ", h = m.getAttribute("role"), V = h?.startsWith("menuitem") || h === "option" || h === "gridcell";
|
|
104
|
+
if (x && i && B) {
|
|
105
|
+
if (e.defaultPrevented && V)
|
|
106
|
+
return;
|
|
107
|
+
e.preventDefault(), w || o && k ? (m.click(), e.preventBaseUIHandler()) : E && (u?.(e), e.preventBaseUIHandler());
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
E && (!o && (B || y) && e.preventDefault(), !o && y && u?.(e));
|
|
111
|
+
},
|
|
112
|
+
onKeyUp(e) {
|
|
113
|
+
if (!t) {
|
|
114
|
+
if (I(e), U?.(e), e.target === e.currentTarget && o && i && g(e.currentTarget) && e.key === " ") {
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
e.baseUIHandlerPrevented || e.target === e.currentTarget && !o && !i && e.key === " " && u?.(e);
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
onPointerDown(e) {
|
|
122
|
+
if (t) {
|
|
123
|
+
e.preventDefault();
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
S?.(e);
|
|
127
|
+
}
|
|
128
|
+
}, o ? void 0 : {
|
|
129
|
+
role: "button"
|
|
130
|
+
}, s, M);
|
|
131
|
+
}, [t, s, i, o]), T = W((r) => {
|
|
132
|
+
l.current = r, d();
|
|
133
|
+
});
|
|
134
|
+
return {
|
|
135
|
+
getButtonProps: O,
|
|
136
|
+
buttonRef: T
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function g(n) {
|
|
140
|
+
return H(n) && n.tagName === "BUTTON";
|
|
141
|
+
}
|
|
142
|
+
function F(n) {
|
|
143
|
+
return !!(n?.tagName === "A" && n?.href);
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
R as C,
|
|
147
|
+
X as a,
|
|
148
|
+
P as e,
|
|
149
|
+
A as u
|
|
150
|
+
};
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { u as k } from "./useControlled-Sx-_x7Sz.js";
|
|
4
|
+
import { u as I } from "./useIsoLayoutEffect-DpJo20by.js";
|
|
5
|
+
import { u as W } from "./useStableCallback-CudqoENs.js";
|
|
6
|
+
import { u as K } from "./useBaseUiId-C8Dq0BQq.js";
|
|
7
|
+
import { c as B, a as z, n as G } from "./createBaseUIEventDetails-CqidROtw.js";
|
|
8
|
+
import { u as J, b as Q, T as q } from "./useOpenChangeComplete-DkeH9FGJ.js";
|
|
9
|
+
import { f as X, w as Y, c as Z } from "./useRenderElement-DNB2vtF1.js";
|
|
10
|
+
import { u as $ } from "./useOnMount-JHtE6teb.js";
|
|
11
|
+
import { u as ee, A as m } from "./useAnimationFrame-DIc6eFHa.js";
|
|
12
|
+
function he(t) {
|
|
13
|
+
const {
|
|
14
|
+
open: r,
|
|
15
|
+
defaultOpen: o,
|
|
16
|
+
onOpenChange: _,
|
|
17
|
+
disabled: T
|
|
18
|
+
} = t, g = r !== void 0, [p, R] = k({
|
|
19
|
+
controlled: r,
|
|
20
|
+
default: o,
|
|
21
|
+
name: "Collapsible",
|
|
22
|
+
state: "open"
|
|
23
|
+
}), {
|
|
24
|
+
mounted: y,
|
|
25
|
+
setMounted: h,
|
|
26
|
+
transitionStatus: l
|
|
27
|
+
} = J(p, !0, !0), [a, b] = s.useState(p), [{
|
|
28
|
+
height: d,
|
|
29
|
+
width: S
|
|
30
|
+
}, M] = s.useState({
|
|
31
|
+
height: void 0,
|
|
32
|
+
width: void 0
|
|
33
|
+
}), N = K(), [P, x] = s.useState(), H = P ?? N, [E, A] = s.useState(!1), [v, w] = s.useState(!1), F = s.useRef(null), c = s.useRef(null), L = s.useRef(null), C = s.useRef(null), e = Q(C, !1), u = W((i) => {
|
|
34
|
+
const n = !p, f = B(z, i.nativeEvent);
|
|
35
|
+
if (_(n, f), f.isCanceled)
|
|
36
|
+
return;
|
|
37
|
+
const O = C.current;
|
|
38
|
+
c.current === "css-animation" && O != null && O.style.removeProperty("animation-name"), !E && !v && (c.current != null && c.current !== "css-animation" && !y && n && h(!0), c.current === "css-animation" && (!a && n && b(!0), !y && n && h(!0))), R(n), c.current === "none" && y && !n && h(!1);
|
|
39
|
+
});
|
|
40
|
+
return I(() => {
|
|
41
|
+
g && c.current === "none" && !v && !p && h(!1);
|
|
42
|
+
}, [g, v, p, r, h]), s.useMemo(() => ({
|
|
43
|
+
abortControllerRef: F,
|
|
44
|
+
animationTypeRef: c,
|
|
45
|
+
disabled: T,
|
|
46
|
+
handleTrigger: u,
|
|
47
|
+
height: d,
|
|
48
|
+
mounted: y,
|
|
49
|
+
open: p,
|
|
50
|
+
panelId: H,
|
|
51
|
+
panelRef: C,
|
|
52
|
+
runOnceAnimationsFinish: e,
|
|
53
|
+
setDimensions: M,
|
|
54
|
+
setHiddenUntilFound: A,
|
|
55
|
+
setKeepMounted: w,
|
|
56
|
+
setMounted: h,
|
|
57
|
+
setOpen: R,
|
|
58
|
+
setPanelIdState: x,
|
|
59
|
+
setVisible: b,
|
|
60
|
+
transitionDimensionRef: L,
|
|
61
|
+
transitionStatus: l,
|
|
62
|
+
visible: a,
|
|
63
|
+
width: S
|
|
64
|
+
}), [F, c, T, u, d, y, p, H, C, e, M, A, w, h, R, b, L, l, a, S]);
|
|
65
|
+
}
|
|
66
|
+
const U = /* @__PURE__ */ s.createContext(void 0);
|
|
67
|
+
process.env.NODE_ENV !== "production" && (U.displayName = "CollapsibleRootContext");
|
|
68
|
+
function ye() {
|
|
69
|
+
const t = s.useContext(U);
|
|
70
|
+
if (t === void 0)
|
|
71
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." : X(15));
|
|
72
|
+
return t;
|
|
73
|
+
}
|
|
74
|
+
let D = (function(t) {
|
|
75
|
+
return t.open = "data-open", t.closed = "data-closed", t[t.startingStyle = q.startingStyle] = "startingStyle", t[t.endingStyle = q.endingStyle] = "endingStyle", t;
|
|
76
|
+
})({}), te = /* @__PURE__ */ (function(t) {
|
|
77
|
+
return t.panelOpen = "data-panel-open", t;
|
|
78
|
+
})({});
|
|
79
|
+
const ne = {
|
|
80
|
+
[D.open]: ""
|
|
81
|
+
}, re = {
|
|
82
|
+
[D.closed]: ""
|
|
83
|
+
}, ge = {
|
|
84
|
+
open(t) {
|
|
85
|
+
return t ? {
|
|
86
|
+
[te.panelOpen]: ""
|
|
87
|
+
} : null;
|
|
88
|
+
}
|
|
89
|
+
}, be = {
|
|
90
|
+
open(t) {
|
|
91
|
+
return t ? ne : re;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
let ie = /* @__PURE__ */ (function(t) {
|
|
95
|
+
return t.disabled = "data-disabled", t.orientation = "data-orientation", t;
|
|
96
|
+
})({});
|
|
97
|
+
function Se(t) {
|
|
98
|
+
const {
|
|
99
|
+
abortControllerRef: r,
|
|
100
|
+
animationTypeRef: o,
|
|
101
|
+
externalRef: _,
|
|
102
|
+
height: T,
|
|
103
|
+
hiddenUntilFound: g,
|
|
104
|
+
keepMounted: p,
|
|
105
|
+
id: R,
|
|
106
|
+
mounted: y,
|
|
107
|
+
onOpenChange: h,
|
|
108
|
+
open: l,
|
|
109
|
+
panelRef: a,
|
|
110
|
+
runOnceAnimationsFinish: b,
|
|
111
|
+
setDimensions: d,
|
|
112
|
+
setMounted: S,
|
|
113
|
+
setOpen: M,
|
|
114
|
+
setVisible: N,
|
|
115
|
+
transitionDimensionRef: P,
|
|
116
|
+
visible: x,
|
|
117
|
+
width: H
|
|
118
|
+
} = t, E = s.useRef(!1), A = s.useRef(null), v = s.useRef(l), w = s.useRef(l), F = ee(), c = s.useMemo(() => o.current === "css-animation" ? !x : !l && !y, [l, y, x, o]), L = W((e) => {
|
|
119
|
+
if (!e)
|
|
120
|
+
return;
|
|
121
|
+
if (o.current == null || P.current == null) {
|
|
122
|
+
const n = getComputedStyle(e), f = n.animationName !== "none" && n.animationName !== "", O = n.transitionDuration !== "0s" && n.transitionDuration !== "";
|
|
123
|
+
f && O ? process.env.NODE_ENV !== "production" && Y("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.", "Only one of either animation type should be used.") : n.animationName === "none" && n.transitionDuration !== "0s" ? o.current = "css-transition" : n.animationName !== "none" && n.transitionDuration === "0s" ? o.current = "css-animation" : o.current = "none", e.getAttribute(ie.orientation) === "horizontal" || n.transitionProperty.indexOf("width") > -1 ? P.current = "width" : P.current = "height";
|
|
124
|
+
}
|
|
125
|
+
if (o.current !== "css-transition")
|
|
126
|
+
return;
|
|
127
|
+
(T === void 0 || H === void 0) && (d({
|
|
128
|
+
height: e.scrollHeight,
|
|
129
|
+
width: e.scrollWidth
|
|
130
|
+
}), w.current && e.style.setProperty("transition-duration", "0s"));
|
|
131
|
+
let u = -1, i = -1;
|
|
132
|
+
return u = m.request(() => {
|
|
133
|
+
w.current = !1, i = m.request(() => {
|
|
134
|
+
setTimeout(() => {
|
|
135
|
+
e.style.removeProperty("transition-duration");
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}), () => {
|
|
139
|
+
m.cancel(u), m.cancel(i);
|
|
140
|
+
};
|
|
141
|
+
}), C = Z(_, a, L);
|
|
142
|
+
return I(() => {
|
|
143
|
+
if (o.current !== "css-transition")
|
|
144
|
+
return;
|
|
145
|
+
const e = a.current;
|
|
146
|
+
if (!e)
|
|
147
|
+
return;
|
|
148
|
+
let u = -1;
|
|
149
|
+
if (r.current != null && (r.current.abort(), r.current = null), l) {
|
|
150
|
+
const i = {
|
|
151
|
+
"justify-content": e.style.justifyContent,
|
|
152
|
+
"align-items": e.style.alignItems,
|
|
153
|
+
"align-content": e.style.alignContent,
|
|
154
|
+
"justify-items": e.style.justifyItems
|
|
155
|
+
};
|
|
156
|
+
Object.keys(i).forEach((n) => {
|
|
157
|
+
e.style.setProperty(n, "initial", "important");
|
|
158
|
+
}), !w.current && !p && e.setAttribute(D.startingStyle, ""), d({
|
|
159
|
+
height: e.scrollHeight,
|
|
160
|
+
width: e.scrollWidth
|
|
161
|
+
}), u = m.request(() => {
|
|
162
|
+
Object.entries(i).forEach(([n, f]) => {
|
|
163
|
+
f === "" ? e.style.removeProperty(n) : e.style.setProperty(n, f);
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
} else {
|
|
167
|
+
if (e.scrollHeight === 0 && e.scrollWidth === 0)
|
|
168
|
+
return;
|
|
169
|
+
d({
|
|
170
|
+
height: e.scrollHeight,
|
|
171
|
+
width: e.scrollWidth
|
|
172
|
+
});
|
|
173
|
+
const i = new AbortController();
|
|
174
|
+
r.current = i;
|
|
175
|
+
const n = i.signal;
|
|
176
|
+
let f = null;
|
|
177
|
+
const O = D.endingStyle;
|
|
178
|
+
return f = new MutationObserver((V) => {
|
|
179
|
+
V.some((j) => j.type === "attributes" && j.attributeName === O) && (f?.disconnect(), f = null, b(() => {
|
|
180
|
+
d({
|
|
181
|
+
height: 0,
|
|
182
|
+
width: 0
|
|
183
|
+
}), e.style.removeProperty("content-visibility"), S(!1), r.current === i && (r.current = null);
|
|
184
|
+
}, n));
|
|
185
|
+
}), f.observe(e, {
|
|
186
|
+
attributes: !0,
|
|
187
|
+
attributeFilter: [O]
|
|
188
|
+
}), () => {
|
|
189
|
+
f?.disconnect(), F.cancel(), r.current === i && (i.abort(), r.current = null);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
return () => {
|
|
193
|
+
m.cancel(u);
|
|
194
|
+
};
|
|
195
|
+
}, [r, o, F, g, p, y, l, a, b, d, S]), I(() => {
|
|
196
|
+
if (o.current !== "css-animation")
|
|
197
|
+
return;
|
|
198
|
+
const e = a.current;
|
|
199
|
+
e && (A.current = e.style.animationName || A.current, e.style.setProperty("animation-name", "none"), d({
|
|
200
|
+
height: e.scrollHeight,
|
|
201
|
+
width: e.scrollWidth
|
|
202
|
+
}), !v.current && !E.current && e.style.removeProperty("animation-name"), l ? (r.current != null && (r.current.abort(), r.current = null), S(!0), N(!0)) : (r.current = new AbortController(), b(() => {
|
|
203
|
+
S(!1), N(!1), r.current = null;
|
|
204
|
+
}, r.current.signal)));
|
|
205
|
+
}, [r, o, l, a, b, d, S, N, x]), $(() => {
|
|
206
|
+
const e = m.request(() => {
|
|
207
|
+
v.current = !1;
|
|
208
|
+
});
|
|
209
|
+
return () => m.cancel(e);
|
|
210
|
+
}), I(() => {
|
|
211
|
+
if (!g)
|
|
212
|
+
return;
|
|
213
|
+
const e = a.current;
|
|
214
|
+
if (!e)
|
|
215
|
+
return;
|
|
216
|
+
let u = -1, i = -1;
|
|
217
|
+
return l && E.current && (e.style.transitionDuration = "0s", d({
|
|
218
|
+
height: e.scrollHeight,
|
|
219
|
+
width: e.scrollWidth
|
|
220
|
+
}), u = m.request(() => {
|
|
221
|
+
E.current = !1, i = m.request(() => {
|
|
222
|
+
setTimeout(() => {
|
|
223
|
+
e.style.removeProperty("transition-duration");
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
})), () => {
|
|
227
|
+
m.cancel(u), m.cancel(i);
|
|
228
|
+
};
|
|
229
|
+
}, [g, l, a, d]), I(() => {
|
|
230
|
+
const e = a.current;
|
|
231
|
+
e && g && c && (e.setAttribute("hidden", "until-found"), o.current === "css-transition" && e.setAttribute(D.startingStyle, ""));
|
|
232
|
+
}, [g, c, o, a]), s.useEffect(function() {
|
|
233
|
+
const u = a.current;
|
|
234
|
+
if (!u)
|
|
235
|
+
return;
|
|
236
|
+
function i(n) {
|
|
237
|
+
E.current = !0, M(!0), h(!0, B(G, n));
|
|
238
|
+
}
|
|
239
|
+
return u.addEventListener("beforematch", i), () => {
|
|
240
|
+
u.removeEventListener("beforematch", i);
|
|
241
|
+
};
|
|
242
|
+
}, [h, a, M]), s.useMemo(() => ({
|
|
243
|
+
props: {
|
|
244
|
+
hidden: c,
|
|
245
|
+
id: R,
|
|
246
|
+
ref: C
|
|
247
|
+
}
|
|
248
|
+
}), [c, R, C]);
|
|
249
|
+
}
|
|
250
|
+
export {
|
|
251
|
+
U as C,
|
|
252
|
+
ye as a,
|
|
253
|
+
Se as b,
|
|
254
|
+
be as c,
|
|
255
|
+
ge as t,
|
|
256
|
+
he as u
|
|
257
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { c as f } from "./useRenderElement-DNB2vtF1.js";
|
|
4
|
+
import { u as p } from "./useButton-JYPKQKj4.js";
|
|
5
|
+
import { u as h } from "./useCompositeListItem-CYQrZg5-.js";
|
|
6
|
+
function I(m = {}) {
|
|
7
|
+
const {
|
|
8
|
+
highlightItemOnHover: s,
|
|
9
|
+
highlightedIndex: u,
|
|
10
|
+
onHighlightedIndexChange: i
|
|
11
|
+
} = p(), {
|
|
12
|
+
ref: c,
|
|
13
|
+
index: e
|
|
14
|
+
} = h(m), t = u === e, n = r.useRef(null), a = f(c, n);
|
|
15
|
+
return {
|
|
16
|
+
compositeProps: r.useMemo(() => ({
|
|
17
|
+
tabIndex: t ? 0 : -1,
|
|
18
|
+
onFocus() {
|
|
19
|
+
i(e);
|
|
20
|
+
},
|
|
21
|
+
onMouseMove() {
|
|
22
|
+
const o = n.current;
|
|
23
|
+
if (!s || !o)
|
|
24
|
+
return;
|
|
25
|
+
const d = o.hasAttribute("disabled") || o.ariaDisabled === "true";
|
|
26
|
+
!t && !d && o.focus();
|
|
27
|
+
}
|
|
28
|
+
}), [t, i, e, s]),
|
|
29
|
+
compositeRef: a,
|
|
30
|
+
index: e
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
I as u
|
|
35
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { u as g } from "./useIsoLayoutEffect-DpJo20by.js";
|
|
4
|
+
const L = /* @__PURE__ */ n.createContext({
|
|
5
|
+
register: () => {
|
|
6
|
+
},
|
|
7
|
+
unregister: () => {
|
|
8
|
+
},
|
|
9
|
+
subscribeMapChange: () => () => {
|
|
10
|
+
},
|
|
11
|
+
elementsRef: {
|
|
12
|
+
current: []
|
|
13
|
+
},
|
|
14
|
+
nextIndexRef: {
|
|
15
|
+
current: 0
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "CompositeListContext");
|
|
19
|
+
function N() {
|
|
20
|
+
return n.useContext(L);
|
|
21
|
+
}
|
|
22
|
+
let O = /* @__PURE__ */ (function(t) {
|
|
23
|
+
return t[t.None = 0] = "None", t[t.GuessFromOrder = 1] = "GuessFromOrder", t;
|
|
24
|
+
})({});
|
|
25
|
+
function F(t = {}) {
|
|
26
|
+
const {
|
|
27
|
+
label: i,
|
|
28
|
+
metadata: l,
|
|
29
|
+
textRef: a,
|
|
30
|
+
indexGuessBehavior: I,
|
|
31
|
+
index: u
|
|
32
|
+
} = t, {
|
|
33
|
+
register: d,
|
|
34
|
+
unregister: x,
|
|
35
|
+
subscribeMapChange: m,
|
|
36
|
+
elementsRef: C,
|
|
37
|
+
labelsRef: c,
|
|
38
|
+
nextIndexRef: p
|
|
39
|
+
} = N(), f = n.useRef(-1), [r, R] = n.useState(u ?? (I === O.GuessFromOrder ? () => {
|
|
40
|
+
if (f.current === -1) {
|
|
41
|
+
const e = p.current;
|
|
42
|
+
p.current += 1, f.current = e;
|
|
43
|
+
}
|
|
44
|
+
return f.current;
|
|
45
|
+
} : -1)), s = n.useRef(null), b = n.useCallback((e) => {
|
|
46
|
+
if (s.current = e, r !== -1 && e !== null && (C.current[r] = e, c)) {
|
|
47
|
+
const o = i !== void 0;
|
|
48
|
+
c.current[r] = o ? i : a?.current?.textContent ?? e.textContent;
|
|
49
|
+
}
|
|
50
|
+
}, [r, C, c, i, a]);
|
|
51
|
+
return g(() => {
|
|
52
|
+
if (u != null)
|
|
53
|
+
return;
|
|
54
|
+
const e = s.current;
|
|
55
|
+
if (e)
|
|
56
|
+
return d(e, l), () => {
|
|
57
|
+
x(e);
|
|
58
|
+
};
|
|
59
|
+
}, [u, d, x, l]), g(() => {
|
|
60
|
+
if (u == null)
|
|
61
|
+
return m((e) => {
|
|
62
|
+
const o = s.current ? e.get(s.current)?.index : null;
|
|
63
|
+
o != null && R(o);
|
|
64
|
+
});
|
|
65
|
+
}, [u, m, R]), n.useMemo(() => ({
|
|
66
|
+
ref: b,
|
|
67
|
+
index: r
|
|
68
|
+
}), [r, b]);
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
L as C,
|
|
72
|
+
O as I,
|
|
73
|
+
F as u
|
|
74
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
function d({
|
|
4
|
+
controlled: o,
|
|
5
|
+
default: s,
|
|
6
|
+
name: t,
|
|
7
|
+
state: i = "value"
|
|
8
|
+
}) {
|
|
9
|
+
const {
|
|
10
|
+
current: e
|
|
11
|
+
} = n.useRef(o !== void 0), [l, c] = n.useState(s), u = e ? o : l;
|
|
12
|
+
if (process.env.NODE_ENV !== "production") {
|
|
13
|
+
n.useEffect(() => {
|
|
14
|
+
e !== (o !== void 0) && console.error([`Base UI: A component is changing the ${e ? "" : "un"}controlled ${i} state of ${t} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
15
|
+
`));
|
|
16
|
+
}, [i, t, o]);
|
|
17
|
+
const {
|
|
18
|
+
current: r
|
|
19
|
+
} = n.useRef(s);
|
|
20
|
+
n.useEffect(() => {
|
|
21
|
+
!e && JSON.stringify(r) !== JSON.stringify(s) && console.error([`Base UI: A component is changing the default ${i} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
22
|
+
`));
|
|
23
|
+
}, [JSON.stringify(s)]);
|
|
24
|
+
}
|
|
25
|
+
const f = n.useCallback((r) => {
|
|
26
|
+
e || c(r);
|
|
27
|
+
}, []);
|
|
28
|
+
return [u, f];
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
d as u
|
|
32
|
+
};
|