@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
|
@@ -1,376 +1,658 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
isPointerInTransitRef: v,
|
|
43
|
-
onPointerInTransitChange: s.useCallback((d) => {
|
|
44
|
-
v.current = d;
|
|
45
|
-
}, []),
|
|
46
|
-
disableHoverableContent: n,
|
|
47
|
-
children: l
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
z.displayName = F;
|
|
52
|
-
var R = "Tooltip", [ue, _] = O(R), $ = (e) => {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as x, jsxs as fe } from "react/jsx-runtime";
|
|
3
|
+
import { cn as ge } from "../../../lib/utils.js";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { R as me, P as he, d as w, H as ye, p as Ce, q as Te, I as be, J as ve, r as Pe, s as xe, x as j } from "../../../popupStateMapping-BT9Y_jIq.js";
|
|
6
|
+
import { u as Re } from "../../../useOnFirstRender-B4aruaIA.js";
|
|
7
|
+
import { u as _ } from "../../../useIsoLayoutEffect-DpJo20by.js";
|
|
8
|
+
import { f as B, a as Se, u as L } from "../../../useRenderElement-DNB2vtF1.js";
|
|
9
|
+
import { c as G, n as oe, b as Z, t as Ee, a as Oe, e as we, g as Ie, i as Ne } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
10
|
+
import * as De from "react-dom";
|
|
11
|
+
import { p as ke, u as Me, c as Ve, a as Ae, b as _e, d as He } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
|
|
12
|
+
import { g as Ue } from "../../../floating-ui.utils.dom-jr2suqy2.js";
|
|
13
|
+
import { u as ee } from "../../../useStableCallback-CudqoENs.js";
|
|
14
|
+
import { b as Fe } from "../../../event-BCa0Un_3.js";
|
|
15
|
+
import { b as Be, c as Le } from "../../../element-DSo91iOi.js";
|
|
16
|
+
import { u as ze } from "../../../useBaseUiId-C8Dq0BQq.js";
|
|
17
|
+
import { u as Xe, T as Ye } from "../../../useTimeout-DAqPwigF.js";
|
|
18
|
+
import { g as je, u as Ge, s as We, a as $e } from "../../../safePolygon-CJcmMc0u.js";
|
|
19
|
+
import { u as qe } from "../../../useFocus-Aj9ShMQu.js";
|
|
20
|
+
import { F as Je } from "../../../FloatingPortalLite-BHsRx4XN.js";
|
|
21
|
+
import { u as Ke, a as Qe, g as ne } from "../../../getDisabledMountTransitionStyles-fmnaQYVj.js";
|
|
22
|
+
import { a as Ze, t as et } from "../../../useOpenChangeComplete-DkeH9FGJ.js";
|
|
23
|
+
const W = /* @__PURE__ */ i.createContext({
|
|
24
|
+
hasProvider: !1,
|
|
25
|
+
timeoutMs: 0,
|
|
26
|
+
delayRef: {
|
|
27
|
+
current: 0
|
|
28
|
+
},
|
|
29
|
+
initialDelayRef: {
|
|
30
|
+
current: 0
|
|
31
|
+
},
|
|
32
|
+
timeout: new Ye(),
|
|
33
|
+
currentIdRef: {
|
|
34
|
+
current: null
|
|
35
|
+
},
|
|
36
|
+
currentContextRef: {
|
|
37
|
+
current: null
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
process.env.NODE_ENV !== "production" && (W.displayName = "FloatingDelayGroupContext");
|
|
41
|
+
function tt(e) {
|
|
53
42
|
const {
|
|
54
|
-
__scopeTooltip: o,
|
|
55
43
|
children: t,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
a.isOpenDelayedRef.current ? I() : P();
|
|
90
|
-
}, [a.isOpenDelayedRef, I, P]),
|
|
91
|
-
onTriggerLeave: s.useCallback(() => {
|
|
92
|
-
h ? E() : (window.clearTimeout(p.current), p.current = 0);
|
|
93
|
-
}, [E, h]),
|
|
94
|
-
onOpen: P,
|
|
95
|
-
onClose: E,
|
|
96
|
-
disableHoverableContent: h,
|
|
97
|
-
children: t
|
|
44
|
+
delay: o,
|
|
45
|
+
timeoutMs: r = 0
|
|
46
|
+
} = e, a = i.useRef(o), l = i.useRef(o), s = i.useRef(null), u = i.useRef(null), p = Xe();
|
|
47
|
+
return /* @__PURE__ */ x(W.Provider, {
|
|
48
|
+
value: i.useMemo(() => ({
|
|
49
|
+
hasProvider: !0,
|
|
50
|
+
delayRef: a,
|
|
51
|
+
initialDelayRef: l,
|
|
52
|
+
currentIdRef: s,
|
|
53
|
+
timeoutMs: r,
|
|
54
|
+
currentContextRef: u,
|
|
55
|
+
timeout: p
|
|
56
|
+
}), [r, p]),
|
|
57
|
+
children: t
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function ot(e, t = {
|
|
61
|
+
open: !1
|
|
62
|
+
}) {
|
|
63
|
+
const o = "rootStore" in e ? e.rootStore : e, r = o.useState("floatingId"), {
|
|
64
|
+
open: a
|
|
65
|
+
} = t, l = i.useContext(W), {
|
|
66
|
+
currentIdRef: s,
|
|
67
|
+
delayRef: u,
|
|
68
|
+
timeoutMs: p,
|
|
69
|
+
initialDelayRef: c,
|
|
70
|
+
currentContextRef: d,
|
|
71
|
+
hasProvider: g,
|
|
72
|
+
timeout: f
|
|
73
|
+
} = l, [P, n] = i.useState(!1);
|
|
74
|
+
return _(() => {
|
|
75
|
+
function m() {
|
|
76
|
+
n(!1), d.current?.setIsInstantPhase(!1), s.current = null, d.current = null, u.current = c.current;
|
|
98
77
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{
|
|
108
|
-
"aria-describedby": n.open ? n.contentId : void 0,
|
|
109
|
-
"data-state": n.stateAttribute,
|
|
110
|
-
...r,
|
|
111
|
-
ref: a,
|
|
112
|
-
onPointerMove: C(e.onPointerMove, (m) => {
|
|
113
|
-
m.pointerType !== "touch" && !c.current && !l.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
|
|
114
|
-
}),
|
|
115
|
-
onPointerLeave: C(e.onPointerLeave, () => {
|
|
116
|
-
n.onTriggerLeave(), c.current = !1;
|
|
117
|
-
}),
|
|
118
|
-
onPointerDown: C(e.onPointerDown, () => {
|
|
119
|
-
n.open && n.onClose(), d.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
120
|
-
}),
|
|
121
|
-
onFocus: C(e.onFocus, () => {
|
|
122
|
-
d.current || n.onOpen();
|
|
123
|
-
}),
|
|
124
|
-
onBlur: C(e.onBlur, n.onClose),
|
|
125
|
-
onClick: C(e.onClick, n.onClose)
|
|
78
|
+
if (s.current && !a && s.current === r) {
|
|
79
|
+
if (n(!1), p) {
|
|
80
|
+
const b = r;
|
|
81
|
+
return f.start(p, () => {
|
|
82
|
+
o.select("open") || s.current && s.current !== b || m();
|
|
83
|
+
}), () => {
|
|
84
|
+
f.clear();
|
|
85
|
+
};
|
|
126
86
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}, [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
87
|
+
m();
|
|
88
|
+
}
|
|
89
|
+
}, [a, r, s, u, p, c, d, f, o]), _(() => {
|
|
90
|
+
if (!a)
|
|
91
|
+
return;
|
|
92
|
+
const m = d.current, b = s.current;
|
|
93
|
+
f.clear(), d.current = {
|
|
94
|
+
onOpenChange: o.setOpen,
|
|
95
|
+
setIsInstantPhase: n
|
|
96
|
+
}, s.current = r, u.current = {
|
|
97
|
+
open: 0,
|
|
98
|
+
close: je(c.current, "close")
|
|
99
|
+
}, b !== null && b !== r ? (n(!0), m?.setIsInstantPhase(!0), m?.onOpenChange(!1, G(oe))) : (n(!1), m?.setIsInstantPhase(!1));
|
|
100
|
+
}, [a, r, o, s, u, p, c, d, f]), _(() => () => {
|
|
101
|
+
d.current = null;
|
|
102
|
+
}, [d]), i.useMemo(() => ({
|
|
103
|
+
hasProvider: g,
|
|
104
|
+
delayRef: u,
|
|
105
|
+
isInstantPhase: P
|
|
106
|
+
}), [g, u, P]);
|
|
107
|
+
}
|
|
108
|
+
function nt(e, t) {
|
|
109
|
+
let o = null, r = null, a = !1;
|
|
110
|
+
return {
|
|
111
|
+
contextElement: e || void 0,
|
|
112
|
+
getBoundingClientRect() {
|
|
113
|
+
const l = e?.getBoundingClientRect() || {
|
|
114
|
+
width: 0,
|
|
115
|
+
height: 0,
|
|
116
|
+
x: 0,
|
|
117
|
+
y: 0
|
|
118
|
+
}, s = t.axis === "x" || t.axis === "both", u = t.axis === "y" || t.axis === "both", p = ["mouseenter", "mousemove"].includes(t.dataRef.current.openEvent?.type || "") && t.pointerType !== "touch";
|
|
119
|
+
let c = l.width, d = l.height, g = l.x, f = l.y;
|
|
120
|
+
return o == null && t.x && s && (o = l.x - t.x), r == null && t.y && u && (r = l.y - t.y), g -= o || 0, f -= r || 0, c = 0, d = 0, !a || p ? (c = t.axis === "y" ? l.width : 0, d = t.axis === "x" ? l.height : 0, g = s && t.x != null ? t.x : g, f = u && t.y != null ? t.y : f) : a && !p && (d = t.axis === "x" ? l.height : d, c = t.axis === "y" ? l.width : c), a = !0, {
|
|
121
|
+
width: c,
|
|
122
|
+
height: d,
|
|
123
|
+
x: g,
|
|
124
|
+
y: f,
|
|
125
|
+
top: f,
|
|
126
|
+
right: g + c,
|
|
127
|
+
bottom: f + d,
|
|
128
|
+
left: g
|
|
158
129
|
};
|
|
159
130
|
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function te(e) {
|
|
134
|
+
return e != null && e.clientX != null;
|
|
135
|
+
}
|
|
136
|
+
function st(e, t = {}) {
|
|
137
|
+
const o = "rootStore" in e ? e.rootStore : e, r = o.useState("open"), a = o.useState("floatingElement"), l = o.useState("domReferenceElement"), s = o.context.dataRef, {
|
|
138
|
+
enabled: u = !0,
|
|
139
|
+
axis: p = "both"
|
|
140
|
+
} = t, c = i.useRef(!1), d = i.useRef(null), [g, f] = i.useState(), [P, n] = i.useState([]), m = ee((h, v, y) => {
|
|
141
|
+
c.current || s.current.openEvent && !te(s.current.openEvent) || o.set("positionReference", nt(y ?? l, {
|
|
142
|
+
x: h,
|
|
143
|
+
y: v,
|
|
144
|
+
axis: p,
|
|
145
|
+
dataRef: s,
|
|
146
|
+
pointerType: g
|
|
147
|
+
}));
|
|
148
|
+
}), b = ee((h) => {
|
|
149
|
+
r ? d.current || n([]) : m(h.clientX, h.clientY, h.currentTarget);
|
|
150
|
+
}), S = Fe(g) ? a : r, C = i.useCallback(() => {
|
|
151
|
+
if (!S || !u)
|
|
152
|
+
return;
|
|
153
|
+
const h = Ue(a);
|
|
154
|
+
function v(y) {
|
|
155
|
+
const O = Be(y);
|
|
156
|
+
Le(a, O) ? (h.removeEventListener("mousemove", v), d.current = null) : m(y.clientX, y.clientY);
|
|
157
|
+
}
|
|
158
|
+
if (!s.current.openEvent || te(s.current.openEvent)) {
|
|
159
|
+
h.addEventListener("mousemove", v);
|
|
160
|
+
const y = () => {
|
|
161
|
+
h.removeEventListener("mousemove", v), d.current = null;
|
|
165
162
|
};
|
|
166
|
-
return
|
|
163
|
+
return d.current = y, y;
|
|
167
164
|
}
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
return
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
(e, o) => {
|
|
223
|
-
const { __scopeTooltip: t, ...r } = e, n = D(t);
|
|
224
|
-
return me(
|
|
225
|
-
q,
|
|
226
|
-
t
|
|
227
|
-
).isInside ? null : /* @__PURE__ */ u(re, { ...n, ...r, ref: o });
|
|
165
|
+
o.set("positionReference", l);
|
|
166
|
+
}, [S, u, a, s, l, o, m]);
|
|
167
|
+
i.useEffect(() => C(), [C, P]), i.useEffect(() => {
|
|
168
|
+
u && !a && (c.current = !1);
|
|
169
|
+
}, [u, a]), i.useEffect(() => {
|
|
170
|
+
!u && r && (c.current = !0);
|
|
171
|
+
}, [u, r]);
|
|
172
|
+
const R = i.useMemo(() => {
|
|
173
|
+
function h(v) {
|
|
174
|
+
f(v.pointerType);
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
onPointerDown: h,
|
|
178
|
+
onPointerEnter: h,
|
|
179
|
+
onMouseMove: b,
|
|
180
|
+
onMouseEnter: b
|
|
181
|
+
};
|
|
182
|
+
}, [b]);
|
|
183
|
+
return i.useMemo(() => u ? {
|
|
184
|
+
reference: R,
|
|
185
|
+
trigger: R
|
|
186
|
+
} : {}, [u, R]);
|
|
187
|
+
}
|
|
188
|
+
const $ = /* @__PURE__ */ i.createContext(void 0);
|
|
189
|
+
process.env.NODE_ENV !== "production" && ($.displayName = "TooltipRootContext");
|
|
190
|
+
function U(e) {
|
|
191
|
+
const t = i.useContext($);
|
|
192
|
+
if (t === void 0 && !e)
|
|
193
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : B(72));
|
|
194
|
+
return t;
|
|
195
|
+
}
|
|
196
|
+
const rt = {
|
|
197
|
+
...ke,
|
|
198
|
+
disabled: w((e) => e.disabled),
|
|
199
|
+
instantType: w((e) => e.instantType),
|
|
200
|
+
isInstantPhase: w((e) => e.isInstantPhase),
|
|
201
|
+
trackCursorAxis: w((e) => e.trackCursorAxis),
|
|
202
|
+
disableHoverablePopup: w((e) => e.disableHoverablePopup),
|
|
203
|
+
lastOpenChangeReason: w((e) => e.openChangeReason),
|
|
204
|
+
closeOnClick: w((e) => e.closeOnClick),
|
|
205
|
+
closeDelay: w((e) => e.closeDelay),
|
|
206
|
+
hasViewport: w((e) => e.hasViewport)
|
|
207
|
+
};
|
|
208
|
+
class q extends me {
|
|
209
|
+
constructor(t) {
|
|
210
|
+
super({
|
|
211
|
+
...it(),
|
|
212
|
+
...t
|
|
213
|
+
}, {
|
|
214
|
+
popupRef: /* @__PURE__ */ i.createRef(),
|
|
215
|
+
onOpenChange: void 0,
|
|
216
|
+
onOpenChangeComplete: void 0,
|
|
217
|
+
triggerElements: new he()
|
|
218
|
+
}, rt);
|
|
228
219
|
}
|
|
229
|
-
)
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
220
|
+
setOpen = (t, o) => {
|
|
221
|
+
const r = o.reason, a = r === Z, l = t && r === Ee, s = !t && (r === Oe || r === we);
|
|
222
|
+
if (o.preventUnmountOnClose = () => {
|
|
223
|
+
this.set("preventUnmountingOnClose", !0);
|
|
224
|
+
}, this.context.onOpenChange?.(t, o), o.isCanceled)
|
|
225
|
+
return;
|
|
226
|
+
const u = () => {
|
|
227
|
+
const p = {
|
|
228
|
+
open: t,
|
|
229
|
+
openChangeReason: r
|
|
230
|
+
};
|
|
231
|
+
l ? p.instantType = "focus" : s ? p.instantType = "dismiss" : r === Z && (p.instantType = void 0);
|
|
232
|
+
const c = o.trigger?.id ?? null;
|
|
233
|
+
(c || t) && (p.activeTriggerId = c, p.activeTriggerElement = o.trigger ?? null), this.update(p);
|
|
234
|
+
};
|
|
235
|
+
a ? De.flushSync(u) : u();
|
|
236
|
+
};
|
|
237
|
+
static useStore(t, o) {
|
|
238
|
+
const r = Se(() => new q(o)).current, a = t ?? r, l = Me({
|
|
239
|
+
popupStore: a,
|
|
240
|
+
onOpenChange: a.setOpen
|
|
241
|
+
});
|
|
242
|
+
return a.state.floatingRootContext = l, a;
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
);
|
|
260
|
-
break;
|
|
261
|
-
case "left":
|
|
262
|
-
r.push(
|
|
263
|
-
{ x: e.x + t, y: e.y - t },
|
|
264
|
-
{ x: e.x + t, y: e.y + t }
|
|
265
|
-
);
|
|
266
|
-
break;
|
|
267
|
-
case "right":
|
|
268
|
-
r.push(
|
|
269
|
-
{ x: e.x - t, y: e.y - t },
|
|
270
|
-
{ x: e.x - t, y: e.y + t }
|
|
271
|
-
);
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
return r;
|
|
245
|
+
function it() {
|
|
246
|
+
return {
|
|
247
|
+
...Ve(),
|
|
248
|
+
disabled: !1,
|
|
249
|
+
instantType: void 0,
|
|
250
|
+
isInstantPhase: !1,
|
|
251
|
+
trackCursorAxis: "none",
|
|
252
|
+
disableHoverablePopup: !1,
|
|
253
|
+
openChangeReason: null,
|
|
254
|
+
closeOnClick: !0,
|
|
255
|
+
closeDelay: 0,
|
|
256
|
+
hasViewport: !1
|
|
257
|
+
};
|
|
275
258
|
}
|
|
276
|
-
|
|
277
|
-
const {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
259
|
+
const se = ye(function(t) {
|
|
260
|
+
const {
|
|
261
|
+
disabled: o = !1,
|
|
262
|
+
defaultOpen: r = !1,
|
|
263
|
+
open: a,
|
|
264
|
+
disableHoverablePopup: l = !1,
|
|
265
|
+
trackCursorAxis: s = "none",
|
|
266
|
+
actionsRef: u,
|
|
267
|
+
onOpenChange: p,
|
|
268
|
+
onOpenChangeComplete: c,
|
|
269
|
+
handle: d,
|
|
270
|
+
triggerId: g,
|
|
271
|
+
defaultTriggerId: f = null,
|
|
272
|
+
children: P
|
|
273
|
+
} = t, n = q.useStore(d?.store, {
|
|
274
|
+
open: r,
|
|
275
|
+
openProp: a,
|
|
276
|
+
activeTriggerId: f,
|
|
277
|
+
triggerIdProp: g
|
|
278
|
+
});
|
|
279
|
+
Re(() => {
|
|
280
|
+
a === void 0 && n.state.open === !1 && r === !0 && n.update({
|
|
281
|
+
open: !0,
|
|
282
|
+
activeTriggerId: f
|
|
283
|
+
});
|
|
284
|
+
}), n.useControlledProp("openProp", a), n.useControlledProp("triggerIdProp", g), n.useContextCallback("onOpenChange", p), n.useContextCallback("onOpenChangeComplete", c);
|
|
285
|
+
const m = n.useState("open"), b = !o && m, S = n.useState("activeTriggerId"), C = n.useState("payload");
|
|
286
|
+
n.useSyncedValues({
|
|
287
|
+
trackCursorAxis: s,
|
|
288
|
+
disableHoverablePopup: l
|
|
289
|
+
}), _(() => {
|
|
290
|
+
m && o && n.setOpen(!1, G(Ie));
|
|
291
|
+
}, [m, o, n]), n.useSyncedValue("disabled", o), Ae(n);
|
|
292
|
+
const {
|
|
293
|
+
forceUnmount: R,
|
|
294
|
+
transitionStatus: h
|
|
295
|
+
} = _e(b, n), v = n.useState("isInstantPhase"), y = n.useState("instantType"), O = n.useState("lastOpenChangeReason"), I = i.useRef(null);
|
|
296
|
+
_(() => {
|
|
297
|
+
h === "ending" && O === oe || h !== "ending" && v ? (y !== "delay" && (I.current = y), n.set("instantType", "delay")) : I.current !== null && (n.set("instantType", I.current), I.current = null);
|
|
298
|
+
}, [h, v, O, y, n]), _(() => {
|
|
299
|
+
b && S == null && n.set("payload", void 0);
|
|
300
|
+
}, [n, S, b]);
|
|
301
|
+
const E = i.useCallback(() => {
|
|
302
|
+
n.setOpen(!1, at(n, Ne));
|
|
303
|
+
}, [n]);
|
|
304
|
+
i.useImperativeHandle(u, () => ({
|
|
305
|
+
unmount: R,
|
|
306
|
+
close: E
|
|
307
|
+
}), [R, E]);
|
|
308
|
+
const k = n.useState("floatingRootContext"), M = Ce(k, {
|
|
309
|
+
enabled: !o,
|
|
310
|
+
referencePress: () => n.select("closeOnClick")
|
|
311
|
+
}), T = st(k, {
|
|
312
|
+
enabled: !o && s !== "none",
|
|
313
|
+
axis: s === "none" ? void 0 : s
|
|
314
|
+
}), {
|
|
315
|
+
getReferenceProps: N,
|
|
316
|
+
getFloatingProps: D,
|
|
317
|
+
getTriggerProps: V
|
|
318
|
+
} = Te([M, T]), H = i.useMemo(() => N(), [N]), A = i.useMemo(() => V(), [V]), z = i.useMemo(() => D(), [D]);
|
|
319
|
+
return n.useSyncedValues({
|
|
320
|
+
activeTriggerProps: H,
|
|
321
|
+
inactiveTriggerProps: A,
|
|
322
|
+
popupProps: z
|
|
323
|
+
}), /* @__PURE__ */ x($.Provider, {
|
|
324
|
+
value: n,
|
|
325
|
+
children: typeof P == "function" ? P({
|
|
326
|
+
payload: C
|
|
327
|
+
}) : P
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
process.env.NODE_ENV !== "production" && (se.displayName = "TooltipRoot");
|
|
331
|
+
function at(e, t) {
|
|
332
|
+
const o = G(t);
|
|
333
|
+
return o.preventUnmountOnClose = () => {
|
|
334
|
+
e.set("preventUnmountingOnClose", !0);
|
|
335
|
+
}, o;
|
|
284
336
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
const v = o[l], a = o[i], d = v.x, c = v.y, f = a.x, m = a.y;
|
|
290
|
-
c > r != m > r && t < (f - d) * (r - c) / (m - c) + d && (n = !n);
|
|
291
|
-
}
|
|
292
|
-
return n;
|
|
337
|
+
const J = /* @__PURE__ */ i.createContext(void 0);
|
|
338
|
+
process.env.NODE_ENV !== "production" && (J.displayName = "TooltipProviderContext");
|
|
339
|
+
function lt() {
|
|
340
|
+
return i.useContext(J);
|
|
293
341
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
342
|
+
let ut = (function(e) {
|
|
343
|
+
return e[e.popupOpen = be.popupOpen] = "popupOpen", e.triggerDisabled = "data-trigger-disabled", e;
|
|
344
|
+
})({});
|
|
345
|
+
const ct = 600, re = ve(function(t, o) {
|
|
346
|
+
const {
|
|
347
|
+
className: r,
|
|
348
|
+
render: a,
|
|
349
|
+
handle: l,
|
|
350
|
+
payload: s,
|
|
351
|
+
disabled: u,
|
|
352
|
+
delay: p,
|
|
353
|
+
closeOnClick: c = !0,
|
|
354
|
+
closeDelay: d,
|
|
355
|
+
id: g,
|
|
356
|
+
...f
|
|
357
|
+
} = t, P = U(!0), n = l?.store ?? P;
|
|
358
|
+
if (!n)
|
|
359
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle." : B(82));
|
|
360
|
+
const m = ze(g), b = n.useState("isTriggerActive", m), S = n.useState("isOpenedByTrigger", m), C = n.useState("floatingRootContext"), R = i.useRef(null), h = p ?? ct, v = d ?? 0, {
|
|
361
|
+
registerTrigger: y,
|
|
362
|
+
isMountedByThisTrigger: O
|
|
363
|
+
} = He(m, R, n, {
|
|
364
|
+
payload: s,
|
|
365
|
+
closeOnClick: c,
|
|
366
|
+
closeDelay: v
|
|
367
|
+
}), I = lt(), {
|
|
368
|
+
delayRef: E,
|
|
369
|
+
isInstantPhase: k,
|
|
370
|
+
hasProvider: M
|
|
371
|
+
} = ot(C, {
|
|
372
|
+
open: S
|
|
373
|
+
});
|
|
374
|
+
n.useSyncedValue("isInstantPhase", k);
|
|
375
|
+
const T = n.useState("disabled"), N = u ?? T, D = n.useState("trackCursorAxis"), V = n.useState("disableHoverablePopup"), H = Ge(C, {
|
|
376
|
+
enabled: !N,
|
|
377
|
+
mouseOnly: !0,
|
|
378
|
+
move: !1,
|
|
379
|
+
handleClose: !V && D !== "both" ? We() : null,
|
|
380
|
+
restMs() {
|
|
381
|
+
const X = I?.delay, F = typeof E.current == "object" ? E.current.open : void 0;
|
|
382
|
+
let Y = h;
|
|
383
|
+
return M && (F !== 0 ? Y = p ?? X ?? h : Y = 0), Y;
|
|
384
|
+
},
|
|
385
|
+
delay() {
|
|
386
|
+
const X = typeof E.current == "object" ? E.current.close : void 0;
|
|
387
|
+
let F = v;
|
|
388
|
+
return d == null && M && (F = X), {
|
|
389
|
+
close: F
|
|
390
|
+
};
|
|
391
|
+
},
|
|
392
|
+
triggerElementRef: R,
|
|
393
|
+
isActiveTrigger: b
|
|
394
|
+
}), A = qe(C, {
|
|
395
|
+
enabled: !N
|
|
396
|
+
}).reference, z = {
|
|
397
|
+
open: S
|
|
398
|
+
}, pe = n.useState("triggerProps", O);
|
|
399
|
+
return L("button", t, {
|
|
400
|
+
state: z,
|
|
401
|
+
ref: [o, y, R],
|
|
402
|
+
props: [H, A, pe, {
|
|
403
|
+
onPointerDown() {
|
|
404
|
+
n.set("closeOnClick", c);
|
|
405
|
+
},
|
|
406
|
+
id: m,
|
|
407
|
+
[ut.triggerDisabled]: N ? "" : void 0
|
|
408
|
+
}, f],
|
|
409
|
+
stateAttributesMapping: Pe
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "TooltipTrigger");
|
|
413
|
+
const K = /* @__PURE__ */ i.createContext(void 0);
|
|
414
|
+
process.env.NODE_ENV !== "production" && (K.displayName = "TooltipPortalContext");
|
|
415
|
+
function dt() {
|
|
416
|
+
const e = i.useContext(K);
|
|
417
|
+
if (e === void 0)
|
|
418
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Portal> is missing." : B(70));
|
|
419
|
+
return e;
|
|
297
420
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
t.push(n);
|
|
320
|
-
}
|
|
321
|
-
return t.pop(), o.length === 1 && t.length === 1 && o[0].x === t[0].x && o[0].y === t[0].y ? o : o.concat(t);
|
|
421
|
+
const ie = /* @__PURE__ */ i.forwardRef(function(t, o) {
|
|
422
|
+
const {
|
|
423
|
+
keepMounted: r = !1,
|
|
424
|
+
...a
|
|
425
|
+
} = t;
|
|
426
|
+
return U().useState("mounted") || r ? /* @__PURE__ */ x(K.Provider, {
|
|
427
|
+
value: r,
|
|
428
|
+
children: /* @__PURE__ */ x(Je, {
|
|
429
|
+
ref: o,
|
|
430
|
+
...a
|
|
431
|
+
})
|
|
432
|
+
}) : null;
|
|
433
|
+
});
|
|
434
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "TooltipPortal");
|
|
435
|
+
const Q = /* @__PURE__ */ i.createContext(void 0);
|
|
436
|
+
process.env.NODE_ENV !== "production" && (Q.displayName = "TooltipPositionerContext");
|
|
437
|
+
function ae() {
|
|
438
|
+
const e = i.useContext(Q);
|
|
439
|
+
if (e === void 0)
|
|
440
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : B(71));
|
|
441
|
+
return e;
|
|
322
442
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
443
|
+
const le = /* @__PURE__ */ i.forwardRef(function(t, o) {
|
|
444
|
+
const {
|
|
445
|
+
render: r,
|
|
446
|
+
className: a,
|
|
447
|
+
anchor: l,
|
|
448
|
+
positionMethod: s = "absolute",
|
|
449
|
+
side: u = "top",
|
|
450
|
+
align: p = "center",
|
|
451
|
+
sideOffset: c = 0,
|
|
452
|
+
alignOffset: d = 0,
|
|
453
|
+
collisionBoundary: g = "clipping-ancestors",
|
|
454
|
+
collisionPadding: f = 5,
|
|
455
|
+
arrowPadding: P = 5,
|
|
456
|
+
sticky: n = !1,
|
|
457
|
+
disableAnchorTracking: m = !1,
|
|
458
|
+
collisionAvoidance: b = xe,
|
|
459
|
+
...S
|
|
460
|
+
} = t, C = U(), R = dt(), h = C.useState("open"), v = C.useState("mounted"), y = C.useState("trackCursorAxis"), O = C.useState("disableHoverablePopup"), I = C.useState("floatingRootContext"), E = C.useState("instantType"), k = C.useState("transitionStatus"), M = C.useState("hasViewport"), T = Ke({
|
|
461
|
+
anchor: l,
|
|
462
|
+
positionMethod: s,
|
|
463
|
+
floatingRootContext: I,
|
|
464
|
+
mounted: v,
|
|
465
|
+
side: u,
|
|
466
|
+
sideOffset: c,
|
|
467
|
+
align: p,
|
|
468
|
+
alignOffset: d,
|
|
469
|
+
collisionBoundary: g,
|
|
470
|
+
collisionPadding: f,
|
|
471
|
+
sticky: n,
|
|
472
|
+
arrowPadding: P,
|
|
473
|
+
disableAnchorTracking: m,
|
|
474
|
+
keepMounted: R,
|
|
475
|
+
collisionAvoidance: b,
|
|
476
|
+
adaptiveOrigin: M ? Qe : void 0
|
|
477
|
+
}), N = i.useMemo(() => {
|
|
478
|
+
const A = {};
|
|
479
|
+
return (!h || y === "both" || O) && (A.pointerEvents = "none"), {
|
|
480
|
+
role: "presentation",
|
|
481
|
+
hidden: !v,
|
|
482
|
+
style: {
|
|
483
|
+
...T.positionerStyles,
|
|
484
|
+
...A
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
}, [h, y, O, v, T.positionerStyles]), D = i.useMemo(() => ({
|
|
488
|
+
open: h,
|
|
489
|
+
side: T.side,
|
|
490
|
+
align: T.align,
|
|
491
|
+
anchorHidden: T.anchorHidden,
|
|
492
|
+
instant: y !== "none" ? "tracking-cursor" : E
|
|
493
|
+
}), [h, T.side, T.align, T.anchorHidden, y, E]), V = i.useMemo(() => ({
|
|
494
|
+
...D,
|
|
495
|
+
arrowRef: T.arrowRef,
|
|
496
|
+
arrowStyles: T.arrowStyles,
|
|
497
|
+
arrowUncentered: T.arrowUncentered
|
|
498
|
+
}), [D, T.arrowRef, T.arrowStyles, T.arrowUncentered]), H = L("div", t, {
|
|
499
|
+
state: D,
|
|
500
|
+
props: [N, ne(k), S],
|
|
501
|
+
ref: [o, C.useStateSetter("positionerElement")],
|
|
502
|
+
stateAttributesMapping: j
|
|
503
|
+
});
|
|
504
|
+
return /* @__PURE__ */ x(Q.Provider, {
|
|
505
|
+
value: V,
|
|
506
|
+
children: H
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
process.env.NODE_ENV !== "production" && (le.displayName = "TooltipPositioner");
|
|
510
|
+
const pt = {
|
|
511
|
+
...j,
|
|
512
|
+
...et
|
|
513
|
+
}, ue = /* @__PURE__ */ i.forwardRef(function(t, o) {
|
|
514
|
+
const {
|
|
515
|
+
className: r,
|
|
516
|
+
render: a,
|
|
517
|
+
...l
|
|
518
|
+
} = t, s = U(), {
|
|
519
|
+
side: u,
|
|
520
|
+
align: p
|
|
521
|
+
} = ae(), c = s.useState("open"), d = s.useState("instantType"), g = s.useState("transitionStatus"), f = s.useState("popupProps"), P = s.useState("floatingRootContext");
|
|
522
|
+
Ze({
|
|
523
|
+
open: c,
|
|
524
|
+
ref: s.context.popupRef,
|
|
525
|
+
onComplete() {
|
|
526
|
+
c && s.context.onOpenChangeComplete?.(!0);
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
const n = s.useState("disabled"), m = s.useState("closeDelay");
|
|
530
|
+
return $e(P, {
|
|
531
|
+
enabled: !n,
|
|
532
|
+
closeDelay: m
|
|
533
|
+
}), L("div", t, {
|
|
534
|
+
state: {
|
|
535
|
+
open: c,
|
|
536
|
+
side: u,
|
|
537
|
+
align: p,
|
|
538
|
+
instant: d,
|
|
539
|
+
transitionStatus: g
|
|
540
|
+
},
|
|
541
|
+
ref: [o, s.context.popupRef, s.useStateSetter("popupElement")],
|
|
542
|
+
props: [f, ne(g), l],
|
|
543
|
+
stateAttributesMapping: pt
|
|
544
|
+
});
|
|
545
|
+
});
|
|
546
|
+
process.env.NODE_ENV !== "production" && (ue.displayName = "TooltipPopup");
|
|
547
|
+
const ce = /* @__PURE__ */ i.forwardRef(function(t, o) {
|
|
548
|
+
const {
|
|
549
|
+
className: r,
|
|
550
|
+
render: a,
|
|
551
|
+
...l
|
|
552
|
+
} = t, u = U().useState("instantType"), {
|
|
553
|
+
open: p,
|
|
554
|
+
arrowRef: c,
|
|
555
|
+
side: d,
|
|
556
|
+
align: g,
|
|
557
|
+
arrowUncentered: f,
|
|
558
|
+
arrowStyles: P
|
|
559
|
+
} = ae();
|
|
560
|
+
return L("div", t, {
|
|
561
|
+
state: {
|
|
562
|
+
open: p,
|
|
563
|
+
side: d,
|
|
564
|
+
align: g,
|
|
565
|
+
uncentered: f,
|
|
566
|
+
instant: u
|
|
567
|
+
},
|
|
568
|
+
ref: [o, c],
|
|
569
|
+
props: [{
|
|
570
|
+
style: P,
|
|
571
|
+
"aria-hidden": !0
|
|
572
|
+
}, l],
|
|
573
|
+
stateAttributesMapping: j
|
|
574
|
+
});
|
|
575
|
+
});
|
|
576
|
+
process.env.NODE_ENV !== "production" && (ce.displayName = "TooltipArrow");
|
|
577
|
+
const de = function(t) {
|
|
578
|
+
const {
|
|
579
|
+
delay: o,
|
|
580
|
+
closeDelay: r,
|
|
581
|
+
timeout: a = 400
|
|
582
|
+
} = t, l = i.useMemo(() => ({
|
|
583
|
+
delay: o,
|
|
584
|
+
closeDelay: r
|
|
585
|
+
}), [o, r]), s = i.useMemo(() => ({
|
|
586
|
+
open: o,
|
|
587
|
+
close: r
|
|
588
|
+
}), [o, r]);
|
|
589
|
+
return /* @__PURE__ */ x(J.Provider, {
|
|
590
|
+
value: l,
|
|
591
|
+
children: /* @__PURE__ */ x(tt, {
|
|
592
|
+
delay: s,
|
|
593
|
+
timeoutMs: a,
|
|
594
|
+
children: t.children
|
|
595
|
+
})
|
|
596
|
+
});
|
|
597
|
+
};
|
|
598
|
+
process.env.NODE_ENV !== "production" && (de.displayName = "TooltipProvider");
|
|
599
|
+
function Mt({
|
|
600
|
+
delay: e = 0,
|
|
601
|
+
...t
|
|
327
602
|
}) {
|
|
328
|
-
return /* @__PURE__ */
|
|
329
|
-
|
|
603
|
+
return /* @__PURE__ */ x(
|
|
604
|
+
de,
|
|
330
605
|
{
|
|
331
606
|
"data-slot": "tooltip-provider",
|
|
332
|
-
|
|
333
|
-
...
|
|
607
|
+
delay: e,
|
|
608
|
+
...t
|
|
334
609
|
}
|
|
335
610
|
);
|
|
336
611
|
}
|
|
337
|
-
function
|
|
338
|
-
|
|
339
|
-
...o
|
|
340
|
-
}) {
|
|
341
|
-
return /* @__PURE__ */ u(De, { delayDuration: e, children: /* @__PURE__ */ u(Pe, { "data-slot": "tooltip", ...o }) });
|
|
612
|
+
function Vt({ ...e }) {
|
|
613
|
+
return /* @__PURE__ */ x(se, { "data-slot": "tooltip", ...e });
|
|
342
614
|
}
|
|
343
|
-
function
|
|
344
|
-
...e
|
|
345
|
-
}) {
|
|
346
|
-
return /* @__PURE__ */ u(Ee, { "data-slot": "tooltip-trigger", ...e });
|
|
615
|
+
function At({ ...e }) {
|
|
616
|
+
return /* @__PURE__ */ x(re, { "data-slot": "tooltip-trigger", ...e });
|
|
347
617
|
}
|
|
348
|
-
function
|
|
618
|
+
function _t({
|
|
349
619
|
className: e,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
620
|
+
side: t = "top",
|
|
621
|
+
sideOffset: o = 4,
|
|
622
|
+
align: r = "center",
|
|
623
|
+
alignOffset: a = 0,
|
|
624
|
+
children: l,
|
|
625
|
+
...s
|
|
353
626
|
}) {
|
|
354
|
-
return /* @__PURE__ */
|
|
355
|
-
|
|
627
|
+
return /* @__PURE__ */ x(ie, { children: /* @__PURE__ */ x(
|
|
628
|
+
le,
|
|
356
629
|
{
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
"data-slot": "tooltip-content",
|
|
630
|
+
align: r,
|
|
631
|
+
alignOffset: a,
|
|
632
|
+
className: "isolate z-50",
|
|
633
|
+
side: t,
|
|
362
634
|
sideOffset: o,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
635
|
+
children: /* @__PURE__ */ fe(
|
|
636
|
+
ue,
|
|
637
|
+
{
|
|
638
|
+
className: ge(
|
|
639
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 overflow-visible rounded-md border border-foreground/10 bg-background px-3 py-1.5 text-foreground text-xs shadow-md has-data-[slot=kbd]:pr-1.5 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm dark:border-border",
|
|
640
|
+
e
|
|
641
|
+
),
|
|
642
|
+
"data-slot": "tooltip-content",
|
|
643
|
+
...s,
|
|
644
|
+
children: [
|
|
645
|
+
l,
|
|
646
|
+
/* @__PURE__ */ x(ce, { className: "z-50 size-2.5 translate-y-[calc(-50%-1px)] rotate-45 rounded-[2px] border-foreground/10 bg-background fill-background data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-start]:top-1/2! data-[side=left]:top-1/2! data-[side=right]:top-1/2! data-[side=inline-start]:-right-1 data-[side=left]:-right-1 data-[side=top]:-bottom-2.5 data-[side=inline-end]:-left-1 data-[side=right]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:-translate-y-1/2 data-[side=right]:-translate-y-1/2 data-[side=bottom]:border-t data-[side=left]:border-t data-[side=left]:border-r data-[side=top]:border-r data-[side=right]:border-b data-[side=top]:border-b data-[side=bottom]:border-l data-[side=right]:border-l dark:border-border dark:bg-background dark:fill-background" })
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
)
|
|
368
650
|
}
|
|
369
651
|
) });
|
|
370
652
|
}
|
|
371
653
|
export {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
654
|
+
Vt as Tooltip,
|
|
655
|
+
_t as TooltipContent,
|
|
656
|
+
Mt as TooltipProvider,
|
|
657
|
+
At as TooltipTrigger
|
|
376
658
|
};
|