@arcadeai/design-system 3.39.0 → 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/icons/telegram.js +10 -0
- 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 -644
- 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/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 +58 -56
- package/dist/components/ui/atoms/icons/telegram.d.ts +4 -0
- package/dist/components/ui/atoms/icons/telegram.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/telegram.js +37 -0
- 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 -545
- 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 -644
- 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 -670
- 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/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +40 -38
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -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,97 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { g as D, a as R, i as k } from "./floating-ui.utils.dom-jr2suqy2.js";
|
|
4
|
+
import { b as x, c as O } from "./detectBrowser-Dn2N72k1.js";
|
|
5
|
+
import { u as S } from "./useTimeout-DAqPwigF.js";
|
|
6
|
+
import { o as A } from "./owner-rKN292Q9.js";
|
|
7
|
+
import { c as b, t as T, a as C, e as B } from "./createBaseUIEventDetails-CqidROtw.js";
|
|
8
|
+
import { c as K } from "./popupStateMapping-BT9Y_jIq.js";
|
|
9
|
+
import { a as F, c as L, i as h, b as P, d as V, m as G } from "./element-DSo91iOi.js";
|
|
10
|
+
const y = x && O;
|
|
11
|
+
function N(d, M = {}) {
|
|
12
|
+
const t = "rootStore" in d ? d.rootStore : d, {
|
|
13
|
+
events: g,
|
|
14
|
+
dataRef: w
|
|
15
|
+
} = t.context, {
|
|
16
|
+
enabled: a = !0,
|
|
17
|
+
delay: l
|
|
18
|
+
} = M, c = u.useRef(!1), f = u.useRef(null), E = S(), p = u.useRef(!0);
|
|
19
|
+
u.useEffect(() => {
|
|
20
|
+
const r = t.select("domReferenceElement");
|
|
21
|
+
if (!a)
|
|
22
|
+
return;
|
|
23
|
+
const e = D(r);
|
|
24
|
+
function n() {
|
|
25
|
+
const o = t.select("domReferenceElement");
|
|
26
|
+
!t.select("open") && k(o) && o === F(A(o)) && (c.current = !0);
|
|
27
|
+
}
|
|
28
|
+
function i() {
|
|
29
|
+
p.current = !0;
|
|
30
|
+
}
|
|
31
|
+
function s() {
|
|
32
|
+
p.current = !1;
|
|
33
|
+
}
|
|
34
|
+
return e.addEventListener("blur", n), y && (e.addEventListener("keydown", i, !0), e.addEventListener("pointerdown", s, !0)), () => {
|
|
35
|
+
e.removeEventListener("blur", n), y && (e.removeEventListener("keydown", i, !0), e.removeEventListener("pointerdown", s, !0));
|
|
36
|
+
};
|
|
37
|
+
}, [t, a]), u.useEffect(() => {
|
|
38
|
+
if (!a)
|
|
39
|
+
return;
|
|
40
|
+
function r(e) {
|
|
41
|
+
if (e.reason === C || e.reason === B) {
|
|
42
|
+
const n = t.select("domReferenceElement");
|
|
43
|
+
R(n) && (f.current = n, c.current = !0);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return g.on("openchange", r), () => {
|
|
47
|
+
g.off("openchange", r);
|
|
48
|
+
};
|
|
49
|
+
}, [g, a, t]);
|
|
50
|
+
const v = u.useMemo(() => ({
|
|
51
|
+
onMouseLeave() {
|
|
52
|
+
c.current = !1, f.current = null;
|
|
53
|
+
},
|
|
54
|
+
onFocus(r) {
|
|
55
|
+
const e = r.currentTarget;
|
|
56
|
+
if (c.current) {
|
|
57
|
+
if (f.current === e)
|
|
58
|
+
return;
|
|
59
|
+
c.current = !1, f.current = null;
|
|
60
|
+
}
|
|
61
|
+
const n = P(r.nativeEvent);
|
|
62
|
+
if (R(n)) {
|
|
63
|
+
if (y && !r.relatedTarget) {
|
|
64
|
+
if (!p.current && !V(n))
|
|
65
|
+
return;
|
|
66
|
+
} else if (!G(n))
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const i = h(r.relatedTarget, t.context.triggerElements), {
|
|
70
|
+
nativeEvent: s,
|
|
71
|
+
currentTarget: o
|
|
72
|
+
} = r, m = typeof l == "function" ? l() : l;
|
|
73
|
+
if (t.select("open") && i || m === 0 || m === void 0) {
|
|
74
|
+
t.setOpen(!0, b(T, s, o));
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
E.start(m, () => {
|
|
78
|
+
c.current || t.setOpen(!0, b(T, s, o));
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
onBlur(r) {
|
|
82
|
+
c.current = !1, f.current = null;
|
|
83
|
+
const e = r.relatedTarget, n = r.nativeEvent, i = R(e) && e.hasAttribute(K("focus-guard")) && e.getAttribute("data-type") === "outside";
|
|
84
|
+
E.start(0, () => {
|
|
85
|
+
const s = t.select("domReferenceElement"), o = F(s ? s.ownerDocument : document);
|
|
86
|
+
!e && o === s || L(w.current.floatingContext?.refs.floating.current, o) || L(s, o) || i || h(e ?? o, t.context.triggerElements) || t.setOpen(!1, b(T, n));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}), [w, t, E, l]);
|
|
90
|
+
return u.useMemo(() => a ? {
|
|
91
|
+
reference: v,
|
|
92
|
+
trigger: v
|
|
93
|
+
} : {}, [a, v]);
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
N as u
|
|
97
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { u as p } from "./useIsoLayoutEffect-DpJo20by.js";
|
|
4
|
+
import { u as R } from "./useStableCallback-CudqoENs.js";
|
|
5
|
+
import { a as E, N as I } from "./useRenderElement-DNB2vtF1.js";
|
|
6
|
+
import { a as x } from "./floating-ui.utils.dom-jr2suqy2.js";
|
|
7
|
+
import { u as C } from "./useBaseUiId-C8Dq0BQq.js";
|
|
8
|
+
import { u as g } from "./LabelableContext-Dzw1DWuj.js";
|
|
9
|
+
function k(b = {}) {
|
|
10
|
+
const {
|
|
11
|
+
id: e,
|
|
12
|
+
implicit: o = !1,
|
|
13
|
+
controlRef: i
|
|
14
|
+
} = b, {
|
|
15
|
+
controlId: c,
|
|
16
|
+
registerControlId: r
|
|
17
|
+
} = g(), u = C(e), a = o ? c : void 0, s = E(() => /* @__PURE__ */ Symbol("labelable-control")), l = f.useRef(!1), d = f.useRef(e != null), n = R(() => {
|
|
18
|
+
!l.current || r === I || (l.current = !1, r(s.current, void 0));
|
|
19
|
+
});
|
|
20
|
+
return p(() => {
|
|
21
|
+
if (r === I)
|
|
22
|
+
return;
|
|
23
|
+
let t;
|
|
24
|
+
if (o) {
|
|
25
|
+
const m = i?.current;
|
|
26
|
+
x(m) && m.closest("label") != null ? t = e ?? null : t = a ?? u;
|
|
27
|
+
} else if (e != null)
|
|
28
|
+
d.current = !0, t = e;
|
|
29
|
+
else if (d.current)
|
|
30
|
+
t = u;
|
|
31
|
+
else {
|
|
32
|
+
n();
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (t === void 0) {
|
|
36
|
+
n();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
l.current = !0, r(s.current, t);
|
|
40
|
+
}, [e, i, a, r, o, u, s, n]), f.useEffect(() => n, [n]), c ?? u;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
k as u
|
|
44
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { u as g } from "./useIsoLayoutEffect-DpJo20by.js";
|
|
4
|
+
import { u as b, A as l } from "./useAnimationFrame-DIc6eFHa.js";
|
|
5
|
+
import { u as S } from "./useStableCallback-CudqoENs.js";
|
|
6
|
+
import * as O from "react-dom";
|
|
7
|
+
function y(t) {
|
|
8
|
+
return t == null ? t : "current" in t ? t.current : t;
|
|
9
|
+
}
|
|
10
|
+
let A = /* @__PURE__ */ (function(t) {
|
|
11
|
+
return t.startingStyle = "data-starting-style", t.endingStyle = "data-ending-style", t;
|
|
12
|
+
})({});
|
|
13
|
+
const C = {
|
|
14
|
+
[A.startingStyle]: ""
|
|
15
|
+
}, p = {
|
|
16
|
+
[A.endingStyle]: ""
|
|
17
|
+
}, N = {
|
|
18
|
+
transitionStatus(t) {
|
|
19
|
+
return t === "starting" ? C : t === "ending" ? p : null;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function v(t, s = !1, u = !0) {
|
|
23
|
+
const e = b();
|
|
24
|
+
return S((r, n = null) => {
|
|
25
|
+
e.cancel();
|
|
26
|
+
function o() {
|
|
27
|
+
O.flushSync(r);
|
|
28
|
+
}
|
|
29
|
+
const i = y(t);
|
|
30
|
+
if (i == null)
|
|
31
|
+
return;
|
|
32
|
+
const c = i;
|
|
33
|
+
if (typeof c.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED)
|
|
34
|
+
r();
|
|
35
|
+
else {
|
|
36
|
+
let h = function() {
|
|
37
|
+
const a = A.startingStyle;
|
|
38
|
+
if (!c.hasAttribute(a)) {
|
|
39
|
+
e.request(d);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const f = new MutationObserver(() => {
|
|
43
|
+
c.hasAttribute(a) || (f.disconnect(), d());
|
|
44
|
+
});
|
|
45
|
+
f.observe(c, {
|
|
46
|
+
attributes: !0,
|
|
47
|
+
attributeFilter: [a]
|
|
48
|
+
}), n?.addEventListener("abort", () => f.disconnect(), {
|
|
49
|
+
once: !0
|
|
50
|
+
});
|
|
51
|
+
}, d = function() {
|
|
52
|
+
Promise.all(c.getAnimations().map((a) => a.finished)).then(() => {
|
|
53
|
+
n?.aborted || o();
|
|
54
|
+
}).catch(() => {
|
|
55
|
+
const a = c.getAnimations();
|
|
56
|
+
if (u) {
|
|
57
|
+
if (n?.aborted)
|
|
58
|
+
return;
|
|
59
|
+
o();
|
|
60
|
+
} else a.length > 0 && a.some((f) => f.pending || f.playState !== "finished") && d();
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
if (s) {
|
|
64
|
+
h();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
e.request(d);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function T(t, s = !1, u = !1) {
|
|
72
|
+
const [e, r] = m.useState(t && s ? "idle" : void 0), [n, o] = m.useState(t);
|
|
73
|
+
return t && !n && (o(!0), r("starting")), !t && n && e !== "ending" && !u && r("ending"), !t && !n && e === "ending" && r(void 0), g(() => {
|
|
74
|
+
if (!t && n && e !== "ending" && u) {
|
|
75
|
+
const i = l.request(() => {
|
|
76
|
+
r("ending");
|
|
77
|
+
});
|
|
78
|
+
return () => {
|
|
79
|
+
l.cancel(i);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}, [t, n, e, u]), g(() => {
|
|
83
|
+
if (!t || s)
|
|
84
|
+
return;
|
|
85
|
+
const i = l.request(() => {
|
|
86
|
+
r(void 0);
|
|
87
|
+
});
|
|
88
|
+
return () => {
|
|
89
|
+
l.cancel(i);
|
|
90
|
+
};
|
|
91
|
+
}, [s, t]), g(() => {
|
|
92
|
+
if (!t || !s)
|
|
93
|
+
return;
|
|
94
|
+
t && n && e !== "idle" && r("starting");
|
|
95
|
+
const i = l.request(() => {
|
|
96
|
+
r("idle");
|
|
97
|
+
});
|
|
98
|
+
return () => {
|
|
99
|
+
l.cancel(i);
|
|
100
|
+
};
|
|
101
|
+
}, [s, t, n, r, e]), m.useMemo(() => ({
|
|
102
|
+
mounted: n,
|
|
103
|
+
setMounted: o,
|
|
104
|
+
transitionStatus: e
|
|
105
|
+
}), [n, e]);
|
|
106
|
+
}
|
|
107
|
+
function _(t) {
|
|
108
|
+
const {
|
|
109
|
+
enabled: s = !0,
|
|
110
|
+
open: u,
|
|
111
|
+
ref: e,
|
|
112
|
+
onComplete: r
|
|
113
|
+
} = t, n = S(r), o = v(e, u, !1);
|
|
114
|
+
m.useEffect(() => {
|
|
115
|
+
if (!s)
|
|
116
|
+
return;
|
|
117
|
+
const i = new AbortController();
|
|
118
|
+
return o(n, i.signal), () => {
|
|
119
|
+
i.abort();
|
|
120
|
+
};
|
|
121
|
+
}, [s, u, n, o]);
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
A as T,
|
|
125
|
+
_ as a,
|
|
126
|
+
v as b,
|
|
127
|
+
y as r,
|
|
128
|
+
N as t,
|
|
129
|
+
T as u
|
|
130
|
+
};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { createElement as g } from "react";
|
|
4
|
+
const v = {};
|
|
5
|
+
function A(e, n) {
|
|
6
|
+
const t = u.useRef(v);
|
|
7
|
+
return t.current === v && (t.current = e(n)), t;
|
|
8
|
+
}
|
|
9
|
+
let m;
|
|
10
|
+
process.env.NODE_ENV !== "production" && (m = /* @__PURE__ */ new Set());
|
|
11
|
+
function U(...e) {
|
|
12
|
+
if (process.env.NODE_ENV !== "production") {
|
|
13
|
+
const n = e.join(" ");
|
|
14
|
+
m.has(n) || (m.add(n), console.warn(`Base UI: ${n}`));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function V(e, n) {
|
|
18
|
+
return function(c, ...r) {
|
|
19
|
+
const o = new URL(e);
|
|
20
|
+
return o.searchParams.set("code", c.toString()), r.forEach((i) => o.searchParams.append("args[]", i)), `${n} error #${c}; visit ${o} for the full message.`;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const j = V("https://base-ui.com/production-error", "Base UI");
|
|
24
|
+
function w(e, n, t, c) {
|
|
25
|
+
const r = A(C).current;
|
|
26
|
+
return M(r, e, n, t, c) && I(r, [e, n, t, c]), r.callback;
|
|
27
|
+
}
|
|
28
|
+
function _(e) {
|
|
29
|
+
const n = A(C).current;
|
|
30
|
+
return T(n, e) && I(n, e), n.callback;
|
|
31
|
+
}
|
|
32
|
+
function C() {
|
|
33
|
+
return {
|
|
34
|
+
callback: null,
|
|
35
|
+
cleanup: null,
|
|
36
|
+
refs: []
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function M(e, n, t, c, r) {
|
|
40
|
+
return e.refs[0] !== n || e.refs[1] !== t || e.refs[2] !== c || e.refs[3] !== r;
|
|
41
|
+
}
|
|
42
|
+
function T(e, n) {
|
|
43
|
+
return e.refs.length !== n.length || e.refs.some((t, c) => t !== n[c]);
|
|
44
|
+
}
|
|
45
|
+
function I(e, n) {
|
|
46
|
+
if (e.refs = n, n.every((t) => t == null)) {
|
|
47
|
+
e.callback = null;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
e.callback = (t) => {
|
|
51
|
+
if (e.cleanup && (e.cleanup(), e.cleanup = null), t != null) {
|
|
52
|
+
const c = Array(n.length).fill(null);
|
|
53
|
+
for (let r = 0; r < n.length; r += 1) {
|
|
54
|
+
const o = n[r];
|
|
55
|
+
if (o != null)
|
|
56
|
+
switch (typeof o) {
|
|
57
|
+
case "function": {
|
|
58
|
+
const i = o(t);
|
|
59
|
+
typeof i == "function" && (c[r] = i);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case "object": {
|
|
63
|
+
o.current = t;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
e.cleanup = () => {
|
|
69
|
+
for (let r = 0; r < n.length; r += 1) {
|
|
70
|
+
const o = n[r];
|
|
71
|
+
if (o != null)
|
|
72
|
+
switch (typeof o) {
|
|
73
|
+
case "function": {
|
|
74
|
+
const i = c[r];
|
|
75
|
+
typeof i == "function" ? i() : o(null);
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
case "object": {
|
|
79
|
+
o.current = null;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const $ = parseInt(u.version, 10);
|
|
89
|
+
function L(e) {
|
|
90
|
+
return $ >= e;
|
|
91
|
+
}
|
|
92
|
+
function N(e) {
|
|
93
|
+
if (!/* @__PURE__ */ u.isValidElement(e))
|
|
94
|
+
return null;
|
|
95
|
+
const n = e, t = n.props;
|
|
96
|
+
return (L(19) ? t?.ref : n.ref) ?? null;
|
|
97
|
+
}
|
|
98
|
+
function h(e, n) {
|
|
99
|
+
if (e && !n)
|
|
100
|
+
return e;
|
|
101
|
+
if (!e && n)
|
|
102
|
+
return n;
|
|
103
|
+
if (e || n)
|
|
104
|
+
return {
|
|
105
|
+
...e,
|
|
106
|
+
...n
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function S(e, n) {
|
|
110
|
+
const t = {};
|
|
111
|
+
for (const c in e) {
|
|
112
|
+
const r = e[c];
|
|
113
|
+
if (n?.hasOwnProperty(c)) {
|
|
114
|
+
const o = n[c](r);
|
|
115
|
+
o != null && Object.assign(t, o);
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
r === !0 ? t[`data-${c.toLowerCase()}`] = "" : r && (t[`data-${c.toLowerCase()}`] = r.toString());
|
|
119
|
+
}
|
|
120
|
+
return t;
|
|
121
|
+
}
|
|
122
|
+
function B(e, n) {
|
|
123
|
+
return typeof e == "function" ? e(n) : e;
|
|
124
|
+
}
|
|
125
|
+
function D(e, n) {
|
|
126
|
+
return typeof e == "function" ? e(n) : e;
|
|
127
|
+
}
|
|
128
|
+
const d = {};
|
|
129
|
+
function Y(e, n, t, c, r) {
|
|
130
|
+
let o = {
|
|
131
|
+
...E(e, d)
|
|
132
|
+
};
|
|
133
|
+
return n && (o = l(o, n)), t && (o = l(o, t)), c && (o = l(o, c)), r && (o = l(o, r)), o;
|
|
134
|
+
}
|
|
135
|
+
function z(e) {
|
|
136
|
+
if (e.length === 0)
|
|
137
|
+
return d;
|
|
138
|
+
if (e.length === 1)
|
|
139
|
+
return E(e[0], d);
|
|
140
|
+
let n = {
|
|
141
|
+
...E(e[0], d)
|
|
142
|
+
};
|
|
143
|
+
for (let t = 1; t < e.length; t += 1)
|
|
144
|
+
n = l(n, e[t]);
|
|
145
|
+
return n;
|
|
146
|
+
}
|
|
147
|
+
function l(e, n) {
|
|
148
|
+
return P(n) ? n(e) : F(e, n);
|
|
149
|
+
}
|
|
150
|
+
function F(e, n) {
|
|
151
|
+
if (!n)
|
|
152
|
+
return e;
|
|
153
|
+
for (const t in n) {
|
|
154
|
+
const c = n[t];
|
|
155
|
+
switch (t) {
|
|
156
|
+
case "style": {
|
|
157
|
+
e[t] = h(e.style, c);
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
case "className": {
|
|
161
|
+
e[t] = R(e.className, c);
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
default:
|
|
165
|
+
G(t, c) ? e[t] = W(e[t], c) : e[t] = c;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return e;
|
|
169
|
+
}
|
|
170
|
+
function G(e, n) {
|
|
171
|
+
const t = e.charCodeAt(0), c = e.charCodeAt(1), r = e.charCodeAt(2);
|
|
172
|
+
return t === 111 && c === 110 && r >= 65 && r <= 90 && (typeof n == "function" || typeof n > "u");
|
|
173
|
+
}
|
|
174
|
+
function P(e) {
|
|
175
|
+
return typeof e == "function";
|
|
176
|
+
}
|
|
177
|
+
function E(e, n) {
|
|
178
|
+
return P(e) ? e(n) : e ?? d;
|
|
179
|
+
}
|
|
180
|
+
function W(e, n) {
|
|
181
|
+
return n ? e ? (t) => {
|
|
182
|
+
if (J(t)) {
|
|
183
|
+
const r = t;
|
|
184
|
+
Z(r);
|
|
185
|
+
const o = n(r);
|
|
186
|
+
return r.baseUIHandlerPrevented || e?.(r), o;
|
|
187
|
+
}
|
|
188
|
+
const c = n(t);
|
|
189
|
+
return e?.(t), c;
|
|
190
|
+
} : n : e;
|
|
191
|
+
}
|
|
192
|
+
function Z(e) {
|
|
193
|
+
return e.preventBaseUIHandler = () => {
|
|
194
|
+
e.baseUIHandlerPrevented = !0;
|
|
195
|
+
}, e;
|
|
196
|
+
}
|
|
197
|
+
function R(e, n) {
|
|
198
|
+
return n ? e ? n + " " + e : n : e;
|
|
199
|
+
}
|
|
200
|
+
function J(e) {
|
|
201
|
+
return e != null && typeof e == "object" && "nativeEvent" in e;
|
|
202
|
+
}
|
|
203
|
+
function ee() {
|
|
204
|
+
}
|
|
205
|
+
const ne = Object.freeze([]), f = Object.freeze({});
|
|
206
|
+
function te(e, n, t = {}) {
|
|
207
|
+
const c = n.render, r = K(n, t);
|
|
208
|
+
if (t.enabled === !1)
|
|
209
|
+
return null;
|
|
210
|
+
const o = t.state ?? f;
|
|
211
|
+
return x(e, c, r, o);
|
|
212
|
+
}
|
|
213
|
+
function K(e, n = {}) {
|
|
214
|
+
const {
|
|
215
|
+
className: t,
|
|
216
|
+
style: c,
|
|
217
|
+
render: r
|
|
218
|
+
} = e, {
|
|
219
|
+
state: o = f,
|
|
220
|
+
ref: i,
|
|
221
|
+
props: p,
|
|
222
|
+
stateAttributesMapping: k,
|
|
223
|
+
enabled: a = !0
|
|
224
|
+
} = n, y = a ? B(t, o) : void 0, b = a ? D(c, o) : void 0, O = a ? S(o, k) : f, s = a ? h(O, Array.isArray(p) ? z(p) : p) ?? f : f;
|
|
225
|
+
return typeof document < "u" && (a ? Array.isArray(i) ? s.ref = _([s.ref, N(r), ...i]) : s.ref = w(s.ref, N(r), i) : w(null, null)), a ? (y !== void 0 && (s.className = R(s.className, y)), b !== void 0 && (s.style = h(s.style, b)), s) : f;
|
|
226
|
+
}
|
|
227
|
+
const q = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
228
|
+
function x(e, n, t, c) {
|
|
229
|
+
if (n) {
|
|
230
|
+
if (typeof n == "function")
|
|
231
|
+
return process.env.NODE_ENV !== "production" && H(n), n(t, c);
|
|
232
|
+
const r = Y(t, n.props);
|
|
233
|
+
r.ref = t.ref;
|
|
234
|
+
let o = n;
|
|
235
|
+
if (o?.$$typeof === q && (o = u.Children.toArray(n)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ u.isValidElement(o))
|
|
236
|
+
throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join(`
|
|
237
|
+
`));
|
|
238
|
+
return /* @__PURE__ */ u.cloneElement(o, r);
|
|
239
|
+
}
|
|
240
|
+
if (e && typeof e == "string")
|
|
241
|
+
return Q(e, t);
|
|
242
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." : j(8));
|
|
243
|
+
}
|
|
244
|
+
function H(e) {
|
|
245
|
+
const n = e.name;
|
|
246
|
+
if (n.length === 0)
|
|
247
|
+
return;
|
|
248
|
+
const t = n.charCodeAt(0);
|
|
249
|
+
t < 65 || t > 90 || U(`The \`render\` prop received a function named \`${n}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
250
|
+
}
|
|
251
|
+
function Q(e, n) {
|
|
252
|
+
return e === "button" ? /* @__PURE__ */ g("button", {
|
|
253
|
+
type: "button",
|
|
254
|
+
...n,
|
|
255
|
+
key: n.key
|
|
256
|
+
}) : e === "img" ? /* @__PURE__ */ g("img", {
|
|
257
|
+
alt: "",
|
|
258
|
+
...n,
|
|
259
|
+
key: n.key
|
|
260
|
+
}) : /* @__PURE__ */ u.createElement(e, n);
|
|
261
|
+
}
|
|
262
|
+
export {
|
|
263
|
+
f as E,
|
|
264
|
+
ee as N,
|
|
265
|
+
A as a,
|
|
266
|
+
ne as b,
|
|
267
|
+
w as c,
|
|
268
|
+
Z as d,
|
|
269
|
+
j as f,
|
|
270
|
+
L as i,
|
|
271
|
+
Y as m,
|
|
272
|
+
te as u,
|
|
273
|
+
U as w
|
|
274
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { a as E } from "./useBaseUiId-C8Dq0BQq.js";
|
|
3
|
+
import { u as P } from "./popupStateMapping-BT9Y_jIq.js";
|
|
4
|
+
import { E as S } from "./useRenderElement-DNB2vtF1.js";
|
|
5
|
+
import { g as F } from "./element-DSo91iOi.js";
|
|
6
|
+
const y = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
7
|
+
function $(c, g = {}) {
|
|
8
|
+
const a = "rootStore" in c ? c.rootStore : c, l = a.useState("open"), u = a.useState("floatingId"), I = a.useState("domReferenceElement"), d = a.useState("floatingElement"), {
|
|
9
|
+
role: o = "dialog"
|
|
10
|
+
} = g, x = E(), s = I?.id || x, t = r.useMemo(() => F(d)?.id || u, [d, u]), e = y.get(o) ?? o, m = P() != null, i = r.useMemo(() => e === "tooltip" || o === "label" ? S : {
|
|
11
|
+
"aria-haspopup": e === "alertdialog" ? "dialog" : e,
|
|
12
|
+
"aria-expanded": "false",
|
|
13
|
+
...e === "listbox" && {
|
|
14
|
+
role: "combobox"
|
|
15
|
+
},
|
|
16
|
+
...e === "menu" && m && {
|
|
17
|
+
role: "menuitem"
|
|
18
|
+
},
|
|
19
|
+
...o === "select" && {
|
|
20
|
+
"aria-autocomplete": "none"
|
|
21
|
+
},
|
|
22
|
+
...o === "combobox" && {
|
|
23
|
+
"aria-autocomplete": "list"
|
|
24
|
+
}
|
|
25
|
+
}, [e, m, o]), p = r.useMemo(() => e === "tooltip" || o === "label" ? {
|
|
26
|
+
[`aria-${o === "label" ? "labelledby" : "describedby"}`]: l ? t : void 0
|
|
27
|
+
} : {
|
|
28
|
+
...i,
|
|
29
|
+
"aria-expanded": l ? "true" : "false",
|
|
30
|
+
"aria-controls": l ? t : void 0,
|
|
31
|
+
...e === "menu" && {
|
|
32
|
+
id: s
|
|
33
|
+
}
|
|
34
|
+
}, [e, t, l, s, o, i]), f = r.useMemo(() => {
|
|
35
|
+
const n = {
|
|
36
|
+
id: t,
|
|
37
|
+
...e && {
|
|
38
|
+
role: e
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return e === "tooltip" || o === "label" ? n : {
|
|
42
|
+
...n,
|
|
43
|
+
...e === "menu" && {
|
|
44
|
+
"aria-labelledby": s
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}, [e, t, s, o]), b = r.useCallback(({
|
|
48
|
+
active: n,
|
|
49
|
+
selected: M
|
|
50
|
+
}) => {
|
|
51
|
+
const R = {
|
|
52
|
+
role: "option",
|
|
53
|
+
...n && {
|
|
54
|
+
id: `${t}-fui-option`
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
switch (o) {
|
|
58
|
+
case "select":
|
|
59
|
+
case "combobox":
|
|
60
|
+
return {
|
|
61
|
+
...R,
|
|
62
|
+
"aria-selected": M
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return {};
|
|
66
|
+
}, [t, o]);
|
|
67
|
+
return r.useMemo(() => ({
|
|
68
|
+
reference: p,
|
|
69
|
+
floating: f,
|
|
70
|
+
item: b,
|
|
71
|
+
trigger: i
|
|
72
|
+
}), [p, f, i, b]);
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
$ as u
|
|
76
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { a as c } from "./useRenderElement-DNB2vtF1.js";
|
|
4
|
+
const n = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], r = (
|
|
5
|
+
// React 17 doesn't have useInsertionEffect.
|
|
6
|
+
n && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
|
|
7
|
+
n !== a.useLayoutEffect ? n : (e) => e()
|
|
8
|
+
);
|
|
9
|
+
function f(e) {
|
|
10
|
+
const t = c(o).current;
|
|
11
|
+
return t.next = e, r(t.effect), t.trampoline;
|
|
12
|
+
}
|
|
13
|
+
function o() {
|
|
14
|
+
const e = {
|
|
15
|
+
next: void 0,
|
|
16
|
+
callback: s,
|
|
17
|
+
trampoline: (...t) => e.callback?.(...t),
|
|
18
|
+
effect: () => {
|
|
19
|
+
e.callback = e.next;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function s() {
|
|
25
|
+
if (process.env.NODE_ENV !== "production")
|
|
26
|
+
throw (
|
|
27
|
+
/* minify-error-disabled */
|
|
28
|
+
new Error("Base UI: Cannot call an event handler while rendering.")
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
f as u
|
|
33
|
+
};
|