@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,218 +1,524 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as V } from "react/jsx-runtime";
|
|
3
|
+
import { c as it } from "../../../index-UgeK3A8s.js";
|
|
4
|
+
import { cn as H } from "../../../lib/utils.js";
|
|
5
|
+
import * as e from "react";
|
|
6
|
+
import { u as st } from "../../../useControlled-Sx-_x7Sz.js";
|
|
7
|
+
import { u as j } from "../../../useIsoLayoutEffect-DpJo20by.js";
|
|
8
|
+
import { u as B } from "../../../useStableCallback-CudqoENs.js";
|
|
9
|
+
import { f as tt, u as K, b as ut } from "../../../useRenderElement-DNB2vtF1.js";
|
|
10
|
+
import { C as ct } from "../../../CompositeList-yq5K_yj6.js";
|
|
11
|
+
import { u as lt } from "../../../DirectionContext-BSOheMwC.js";
|
|
12
|
+
import { i as dt } from "../../../inertValue-kpZZDBEy.js";
|
|
13
|
+
import { u as et } from "../../../useBaseUiId-C8Dq0BQq.js";
|
|
14
|
+
import { T as G, u as ft, a as bt, t as pt } from "../../../useOpenChangeComplete-DkeH9FGJ.js";
|
|
15
|
+
import { u as gt } from "../../../useCompositeListItem-CYQrZg5-.js";
|
|
16
|
+
import { A as vt, C as mt } from "../../../CompositeRoot-Dy-5A-Je.js";
|
|
17
|
+
import { o as J } from "../../../owner-rKN292Q9.js";
|
|
18
|
+
import { u as ht } from "../../../useCompositeItem-D00ALGkT.js";
|
|
19
|
+
import { c as Q, n as X } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
20
|
+
import { a as Tt } from "../../../useButton-JYPKQKj4.js";
|
|
21
|
+
import { a as xt, c as Et } from "../../../element-DSo91iOi.js";
|
|
22
|
+
const Y = /* @__PURE__ */ e.createContext(void 0);
|
|
23
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "TabsRootContext");
|
|
24
|
+
function W() {
|
|
25
|
+
const t = e.useContext(Y);
|
|
26
|
+
if (t === void 0)
|
|
27
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : tt(64));
|
|
28
|
+
return t;
|
|
29
|
+
}
|
|
30
|
+
let Rt = /* @__PURE__ */ (function(t) {
|
|
31
|
+
return t.activationDirection = "data-activation-direction", t.orientation = "data-orientation", t;
|
|
32
|
+
})({});
|
|
33
|
+
const $ = {
|
|
34
|
+
tabActivationDirection: (t) => ({
|
|
35
|
+
[Rt.activationDirection]: t
|
|
36
|
+
})
|
|
37
|
+
}, nt = /* @__PURE__ */ e.forwardRef(function(o, u) {
|
|
38
|
+
const {
|
|
39
|
+
className: R,
|
|
40
|
+
defaultValue: n = 0,
|
|
41
|
+
onValueChange: c,
|
|
42
|
+
orientation: r = "horizontal",
|
|
43
|
+
render: T,
|
|
44
|
+
value: b,
|
|
45
|
+
...x
|
|
46
|
+
} = o, I = lt(), P = Object.hasOwn(o, "defaultValue"), L = e.useRef([]), [w, l] = e.useState(() => /* @__PURE__ */ new Map()), [d, p] = st({
|
|
47
|
+
controlled: b,
|
|
48
|
+
default: n,
|
|
49
|
+
name: "Tabs",
|
|
50
|
+
state: "value"
|
|
51
|
+
}), S = b !== void 0, [i, E] = e.useState(() => /* @__PURE__ */ new Map()), [C, D] = e.useState("none"), M = B((a, f) => {
|
|
52
|
+
c?.(a, f), !f.isCanceled && (p(a), D(f.activationDirection));
|
|
53
|
+
}), v = B((a, f) => {
|
|
54
|
+
l((m) => {
|
|
55
|
+
if (m.get(a) === f)
|
|
56
|
+
return m;
|
|
57
|
+
const z = new Map(m);
|
|
58
|
+
return z.set(a, f), z;
|
|
30
59
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
}), g = B((a, f) => {
|
|
61
|
+
l((m) => {
|
|
62
|
+
if (!m.has(a) || m.get(a) !== f)
|
|
63
|
+
return m;
|
|
64
|
+
const z = new Map(m);
|
|
65
|
+
return z.delete(a), z;
|
|
66
|
+
});
|
|
67
|
+
}), y = e.useCallback((a) => w.get(a), [w]), O = e.useCallback((a) => {
|
|
68
|
+
for (const f of i.values())
|
|
69
|
+
if (a === f?.value)
|
|
70
|
+
return f?.id;
|
|
71
|
+
}, [i]), k = e.useCallback((a) => {
|
|
72
|
+
if (a === void 0)
|
|
73
|
+
return null;
|
|
74
|
+
for (const [f, m] of i.entries())
|
|
75
|
+
if (m != null && a === (m.value ?? m.index))
|
|
76
|
+
return f;
|
|
77
|
+
return null;
|
|
78
|
+
}, [i]), A = e.useMemo(() => ({
|
|
79
|
+
direction: I,
|
|
80
|
+
getTabElementBySelectedValue: k,
|
|
81
|
+
getTabIdByPanelValue: O,
|
|
82
|
+
getTabPanelIdByValue: y,
|
|
83
|
+
onValueChange: M,
|
|
84
|
+
orientation: r,
|
|
85
|
+
registerMountedTabPanel: v,
|
|
86
|
+
setTabMap: E,
|
|
87
|
+
unregisterMountedTabPanel: g,
|
|
88
|
+
tabActivationDirection: C,
|
|
89
|
+
value: d
|
|
90
|
+
}), [I, k, O, y, M, r, v, E, g, C, d]), s = e.useMemo(() => {
|
|
91
|
+
for (const a of i.values())
|
|
92
|
+
if (a != null && a.value === d)
|
|
93
|
+
return a;
|
|
94
|
+
}, [i, d]), N = e.useMemo(() => {
|
|
95
|
+
for (const a of i.values())
|
|
96
|
+
if (a != null && !a.disabled)
|
|
97
|
+
return a.value;
|
|
98
|
+
}, [i]);
|
|
99
|
+
j(() => {
|
|
100
|
+
if (S || i.size === 0)
|
|
101
|
+
return;
|
|
102
|
+
const a = s?.disabled, f = s == null && d !== null;
|
|
103
|
+
if (P && a && d === n || !a && !f)
|
|
104
|
+
return;
|
|
105
|
+
const z = N ?? null;
|
|
106
|
+
d !== z && (p(z), D("none"));
|
|
107
|
+
}, [n, N, P, S, s, D, p, i, d]);
|
|
108
|
+
const F = K("div", o, {
|
|
109
|
+
state: {
|
|
110
|
+
orientation: r,
|
|
111
|
+
tabActivationDirection: C
|
|
112
|
+
},
|
|
113
|
+
ref: u,
|
|
114
|
+
props: x,
|
|
115
|
+
stateAttributesMapping: $
|
|
116
|
+
});
|
|
117
|
+
return /* @__PURE__ */ V(Y.Provider, {
|
|
118
|
+
value: A,
|
|
119
|
+
children: /* @__PURE__ */ V(ct, {
|
|
120
|
+
elementsRef: L,
|
|
121
|
+
children: F
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
process.env.NODE_ENV !== "production" && (nt.displayName = "TabsRoot");
|
|
126
|
+
const q = /* @__PURE__ */ e.createContext(void 0);
|
|
127
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "TabsListContext");
|
|
128
|
+
function Ct() {
|
|
129
|
+
const t = e.useContext(q);
|
|
130
|
+
if (t === void 0)
|
|
131
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : tt(65));
|
|
132
|
+
return t;
|
|
133
|
+
}
|
|
134
|
+
const at = /* @__PURE__ */ e.forwardRef(function(o, u) {
|
|
135
|
+
const {
|
|
136
|
+
className: R,
|
|
137
|
+
disabled: n = !1,
|
|
138
|
+
render: c,
|
|
139
|
+
value: r,
|
|
140
|
+
id: T,
|
|
141
|
+
nativeButton: b = !0,
|
|
142
|
+
...x
|
|
143
|
+
} = o, {
|
|
144
|
+
value: I,
|
|
145
|
+
getTabPanelIdByValue: P,
|
|
146
|
+
orientation: L
|
|
147
|
+
} = W(), {
|
|
148
|
+
activateOnFocus: w,
|
|
149
|
+
highlightedTabIndex: l,
|
|
150
|
+
onTabActivation: d,
|
|
151
|
+
registerTabResizeObserverElement: p,
|
|
152
|
+
setHighlightedTabIndex: S,
|
|
153
|
+
tabsListElement: i
|
|
154
|
+
} = Ct(), E = et(T), C = e.useMemo(() => ({
|
|
155
|
+
disabled: n,
|
|
156
|
+
id: E,
|
|
157
|
+
value: r
|
|
158
|
+
}), [n, E, r]), {
|
|
159
|
+
compositeProps: D,
|
|
160
|
+
compositeRef: M,
|
|
161
|
+
index: v
|
|
162
|
+
// hook is used instead of the CompositeItem component
|
|
163
|
+
// because the index is needed for Tab internals
|
|
164
|
+
} = ht({
|
|
165
|
+
metadata: C
|
|
166
|
+
}), g = r === I, y = e.useRef(!1), O = e.useRef(null);
|
|
167
|
+
e.useEffect(() => {
|
|
168
|
+
const h = O.current;
|
|
169
|
+
if (h)
|
|
170
|
+
return p(h);
|
|
171
|
+
}, [p]), j(() => {
|
|
172
|
+
if (y.current) {
|
|
173
|
+
y.current = !1;
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (!(g && v > -1 && l !== v))
|
|
177
|
+
return;
|
|
178
|
+
const h = i;
|
|
179
|
+
if (h != null) {
|
|
180
|
+
const U = xt(J(h));
|
|
181
|
+
if (U && Et(h, U))
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
n || S(v);
|
|
185
|
+
}, [g, v, l, S, n, i]);
|
|
186
|
+
const {
|
|
187
|
+
getButtonProps: k,
|
|
188
|
+
buttonRef: A
|
|
189
|
+
} = Tt({
|
|
190
|
+
disabled: n,
|
|
191
|
+
native: b,
|
|
192
|
+
focusableWhenDisabled: !0
|
|
193
|
+
}), s = P(r), N = e.useRef(!1), _ = e.useRef(!1);
|
|
194
|
+
function F(h) {
|
|
195
|
+
g || n || d(r, Q(X, h.nativeEvent, void 0, {
|
|
196
|
+
activationDirection: "none"
|
|
197
|
+
}));
|
|
52
198
|
}
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return /* @__PURE__ */ n(
|
|
59
|
-
k,
|
|
60
|
-
{
|
|
61
|
-
asChild: !0,
|
|
62
|
-
...o,
|
|
63
|
-
orientation: d.orientation,
|
|
64
|
-
dir: d.dir,
|
|
65
|
-
loop: a,
|
|
66
|
-
children: /* @__PURE__ */ n(
|
|
67
|
-
p.div,
|
|
68
|
-
{
|
|
69
|
-
role: "tablist",
|
|
70
|
-
"aria-orientation": d.orientation,
|
|
71
|
-
...i,
|
|
72
|
-
ref: t
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
);
|
|
199
|
+
function a(h) {
|
|
200
|
+
g || (v > -1 && !n && S(v), !n && w && (!N.current || // keyboard or touch focus
|
|
201
|
+
N.current && _.current) && d(r, Q(X, h.nativeEvent, void 0, {
|
|
202
|
+
activationDirection: "none"
|
|
203
|
+
})));
|
|
77
204
|
}
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
focusable: !i,
|
|
89
|
-
active: s,
|
|
90
|
-
children: /* @__PURE__ */ n(
|
|
91
|
-
p.button,
|
|
92
|
-
{
|
|
93
|
-
type: "button",
|
|
94
|
-
role: "tab",
|
|
95
|
-
"aria-selected": s,
|
|
96
|
-
"aria-controls": v,
|
|
97
|
-
"data-state": s ? "active" : "inactive",
|
|
98
|
-
"data-disabled": i ? "" : void 0,
|
|
99
|
-
disabled: i,
|
|
100
|
-
id: b,
|
|
101
|
-
...d,
|
|
102
|
-
ref: t,
|
|
103
|
-
onMouseDown: T(e.onMouseDown, (r) => {
|
|
104
|
-
!i && r.button === 0 && r.ctrlKey === !1 ? o.onValueChange(a) : r.preventDefault();
|
|
105
|
-
}),
|
|
106
|
-
onKeyDown: T(e.onKeyDown, (r) => {
|
|
107
|
-
[" ", "Enter"].includes(r.key) && o.onValueChange(a);
|
|
108
|
-
}),
|
|
109
|
-
onFocus: T(e.onFocus, () => {
|
|
110
|
-
const r = o.activationMode !== "manual";
|
|
111
|
-
!s && !i && r && o.onValueChange(a);
|
|
112
|
-
})
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
);
|
|
205
|
+
function f(h) {
|
|
206
|
+
if (g || n)
|
|
207
|
+
return;
|
|
208
|
+
N.current = !0;
|
|
209
|
+
function U() {
|
|
210
|
+
N.current = !1, _.current = !1;
|
|
211
|
+
}
|
|
212
|
+
(!h.button || h.button === 0) && (_.current = !0, J(h.currentTarget).addEventListener("pointerup", U, {
|
|
213
|
+
once: !0
|
|
214
|
+
}));
|
|
117
215
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
...o,
|
|
137
|
-
ref: t,
|
|
138
|
-
style: {
|
|
139
|
-
...e.style,
|
|
140
|
-
animationDuration: r.current ? "0s" : void 0
|
|
141
|
-
},
|
|
142
|
-
children: l && d
|
|
216
|
+
return K("button", o, {
|
|
217
|
+
state: {
|
|
218
|
+
disabled: n,
|
|
219
|
+
active: g,
|
|
220
|
+
orientation: L
|
|
221
|
+
},
|
|
222
|
+
ref: [u, A, M, O],
|
|
223
|
+
props: [D, {
|
|
224
|
+
role: "tab",
|
|
225
|
+
"aria-controls": s,
|
|
226
|
+
"aria-selected": g,
|
|
227
|
+
id: E,
|
|
228
|
+
onClick: F,
|
|
229
|
+
onFocus: a,
|
|
230
|
+
onPointerDown: f,
|
|
231
|
+
[vt]: g ? "" : void 0,
|
|
232
|
+
onKeyDownCapture() {
|
|
233
|
+
y.current = !0;
|
|
143
234
|
}
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
return
|
|
235
|
+
}, x, k]
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
process.env.NODE_ENV !== "production" && (at.displayName = "TabsTab");
|
|
239
|
+
let Mt = (function(t) {
|
|
240
|
+
return t.index = "data-index", t.activationDirection = "data-activation-direction", t.orientation = "data-orientation", t.hidden = "data-hidden", t[t.startingStyle = G.startingStyle] = "startingStyle", t[t.endingStyle = G.endingStyle] = "endingStyle", t;
|
|
241
|
+
})({});
|
|
242
|
+
const yt = {
|
|
243
|
+
...$,
|
|
244
|
+
...pt
|
|
245
|
+
}, ot = /* @__PURE__ */ e.forwardRef(function(o, u) {
|
|
246
|
+
const {
|
|
247
|
+
className: R,
|
|
248
|
+
value: n,
|
|
249
|
+
render: c,
|
|
250
|
+
keepMounted: r = !1,
|
|
251
|
+
...T
|
|
252
|
+
} = o, {
|
|
253
|
+
value: b,
|
|
254
|
+
getTabIdByPanelValue: x,
|
|
255
|
+
orientation: I,
|
|
256
|
+
tabActivationDirection: P,
|
|
257
|
+
registerMountedTabPanel: L,
|
|
258
|
+
unregisterMountedTabPanel: w
|
|
259
|
+
} = W(), l = et(), d = e.useMemo(() => ({
|
|
260
|
+
id: l,
|
|
261
|
+
value: n
|
|
262
|
+
}), [l, n]), {
|
|
263
|
+
ref: p,
|
|
264
|
+
index: S
|
|
265
|
+
} = gt({
|
|
266
|
+
metadata: d
|
|
267
|
+
}), i = n === b, {
|
|
268
|
+
mounted: E,
|
|
269
|
+
transitionStatus: C,
|
|
270
|
+
setMounted: D
|
|
271
|
+
} = ft(i), M = !E, v = x(n), g = {
|
|
272
|
+
hidden: M,
|
|
273
|
+
orientation: I,
|
|
274
|
+
tabActivationDirection: P,
|
|
275
|
+
transitionStatus: C
|
|
276
|
+
}, y = e.useRef(null), O = K("div", o, {
|
|
277
|
+
state: g,
|
|
278
|
+
ref: [u, p, y],
|
|
279
|
+
props: [{
|
|
280
|
+
"aria-labelledby": v,
|
|
281
|
+
hidden: M,
|
|
282
|
+
id: l,
|
|
283
|
+
role: "tabpanel",
|
|
284
|
+
tabIndex: i ? 0 : -1,
|
|
285
|
+
inert: dt(!i),
|
|
286
|
+
[Mt.index]: S
|
|
287
|
+
}, T],
|
|
288
|
+
stateAttributesMapping: yt
|
|
289
|
+
});
|
|
290
|
+
return bt({
|
|
291
|
+
open: i,
|
|
292
|
+
ref: y,
|
|
293
|
+
onComplete() {
|
|
294
|
+
i || D(!1);
|
|
295
|
+
}
|
|
296
|
+
}), j(() => {
|
|
297
|
+
if (!(M && !r) && l != null)
|
|
298
|
+
return L(n, l), () => {
|
|
299
|
+
w(n, l);
|
|
300
|
+
};
|
|
301
|
+
}, [M, r, n, l, L, w]), r || E ? O : null;
|
|
302
|
+
});
|
|
303
|
+
process.env.NODE_ENV !== "production" && (ot.displayName = "TabsPanel");
|
|
304
|
+
const rt = /* @__PURE__ */ e.forwardRef(function(o, u) {
|
|
305
|
+
const {
|
|
306
|
+
activateOnFocus: R = !1,
|
|
307
|
+
className: n,
|
|
308
|
+
loopFocus: c = !0,
|
|
309
|
+
render: r,
|
|
310
|
+
...T
|
|
311
|
+
} = o, {
|
|
312
|
+
getTabElementBySelectedValue: b,
|
|
313
|
+
onValueChange: x,
|
|
314
|
+
orientation: I,
|
|
315
|
+
value: P,
|
|
316
|
+
setTabMap: L,
|
|
317
|
+
tabActivationDirection: w
|
|
318
|
+
} = W(), [l, d] = e.useState(0), [p, S] = e.useState(null), i = e.useRef(/* @__PURE__ */ new Set()), E = e.useRef(/* @__PURE__ */ new Set()), C = e.useRef(null), D = B(() => {
|
|
319
|
+
i.current.forEach((s) => {
|
|
320
|
+
s();
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
e.useEffect(() => {
|
|
324
|
+
if (typeof ResizeObserver > "u")
|
|
325
|
+
return;
|
|
326
|
+
const s = new ResizeObserver(() => {
|
|
327
|
+
i.current.size && D();
|
|
328
|
+
});
|
|
329
|
+
return C.current = s, p && s.observe(p), E.current.forEach((N) => {
|
|
330
|
+
s.observe(N);
|
|
331
|
+
}), () => {
|
|
332
|
+
s.disconnect(), C.current = null;
|
|
333
|
+
};
|
|
334
|
+
}, [p, D]);
|
|
335
|
+
const M = B((s) => (i.current.add(s), () => {
|
|
336
|
+
i.current.delete(s);
|
|
337
|
+
})), v = B((s) => (E.current.add(s), C.current?.observe(s), () => {
|
|
338
|
+
E.current.delete(s), C.current?.unobserve(s);
|
|
339
|
+
})), g = Nt(
|
|
340
|
+
P,
|
|
341
|
+
// the old value
|
|
342
|
+
I,
|
|
343
|
+
p,
|
|
344
|
+
b
|
|
345
|
+
), y = B((s, N) => {
|
|
346
|
+
if (s !== P) {
|
|
347
|
+
const _ = g(s);
|
|
348
|
+
N.activationDirection = _, x(s, N);
|
|
349
|
+
}
|
|
350
|
+
}), O = {
|
|
351
|
+
orientation: I,
|
|
352
|
+
tabActivationDirection: w
|
|
353
|
+
}, k = {
|
|
354
|
+
"aria-orientation": I === "vertical" ? "vertical" : void 0,
|
|
355
|
+
role: "tablist"
|
|
356
|
+
}, A = e.useMemo(() => ({
|
|
357
|
+
activateOnFocus: R,
|
|
358
|
+
highlightedTabIndex: l,
|
|
359
|
+
registerIndicatorUpdateListener: M,
|
|
360
|
+
registerTabResizeObserverElement: v,
|
|
361
|
+
onTabActivation: y,
|
|
362
|
+
setHighlightedTabIndex: d,
|
|
363
|
+
tabsListElement: p
|
|
364
|
+
}), [R, l, M, v, y, d, p]);
|
|
365
|
+
return /* @__PURE__ */ V(q.Provider, {
|
|
366
|
+
value: A,
|
|
367
|
+
children: /* @__PURE__ */ V(mt, {
|
|
368
|
+
render: r,
|
|
369
|
+
className: n,
|
|
370
|
+
state: O,
|
|
371
|
+
refs: [u, S],
|
|
372
|
+
props: [k, T],
|
|
373
|
+
stateAttributesMapping: $,
|
|
374
|
+
highlightedIndex: l,
|
|
375
|
+
enableHomeAndEndKeys: !0,
|
|
376
|
+
loopFocus: c,
|
|
377
|
+
orientation: I,
|
|
378
|
+
onHighlightedIndexChange: d,
|
|
379
|
+
onMapChange: L,
|
|
380
|
+
disabledIndices: ut
|
|
381
|
+
})
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
process.env.NODE_ENV !== "production" && (rt.displayName = "TabsList");
|
|
385
|
+
function Z(t, o) {
|
|
386
|
+
const {
|
|
387
|
+
left: u,
|
|
388
|
+
top: R
|
|
389
|
+
} = t.getBoundingClientRect(), {
|
|
390
|
+
left: n,
|
|
391
|
+
top: c
|
|
392
|
+
} = o.getBoundingClientRect(), r = u - n, T = R - c;
|
|
393
|
+
return {
|
|
394
|
+
left: r,
|
|
395
|
+
top: T
|
|
396
|
+
};
|
|
150
397
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
398
|
+
function Nt(t, o, u, R) {
|
|
399
|
+
const [n, c] = e.useState(null);
|
|
400
|
+
return j(() => {
|
|
401
|
+
if (t == null || u == null) {
|
|
402
|
+
c(null);
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
const r = R(t);
|
|
406
|
+
if (r == null) {
|
|
407
|
+
c(null);
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
const {
|
|
411
|
+
left: T,
|
|
412
|
+
top: b
|
|
413
|
+
} = Z(r, u);
|
|
414
|
+
c(o === "horizontal" ? T : b);
|
|
415
|
+
}, [o, R, u, t]), e.useCallback((r) => {
|
|
416
|
+
if (r === t)
|
|
417
|
+
return "none";
|
|
418
|
+
if (r == null)
|
|
419
|
+
return c(null), "none";
|
|
420
|
+
if (r != null && u != null) {
|
|
421
|
+
const T = R(r);
|
|
422
|
+
if (T != null) {
|
|
423
|
+
const {
|
|
424
|
+
left: b,
|
|
425
|
+
top: x
|
|
426
|
+
} = Z(T, u);
|
|
427
|
+
if (n == null)
|
|
428
|
+
return c(o === "horizontal" ? b : x), "none";
|
|
429
|
+
if (o === "horizontal") {
|
|
430
|
+
if (b < n)
|
|
431
|
+
return c(b), "left";
|
|
432
|
+
if (b > n)
|
|
433
|
+
return c(b), "right";
|
|
434
|
+
} else {
|
|
435
|
+
if (x < n)
|
|
436
|
+
return c(x), "up";
|
|
437
|
+
if (x > n)
|
|
438
|
+
return c(x), "down";
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return "none";
|
|
443
|
+
}, [R, o, n, u, t]);
|
|
153
444
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
...
|
|
445
|
+
function qt({
|
|
446
|
+
className: t,
|
|
447
|
+
orientation: o = "horizontal",
|
|
448
|
+
...u
|
|
158
449
|
}) {
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
|
|
450
|
+
return /* @__PURE__ */ V(
|
|
451
|
+
nt,
|
|
161
452
|
{
|
|
162
|
-
className:
|
|
453
|
+
className: H(
|
|
454
|
+
"group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
|
|
455
|
+
t
|
|
456
|
+
),
|
|
163
457
|
"data-slot": "tabs",
|
|
164
|
-
|
|
458
|
+
orientation: o,
|
|
459
|
+
...u
|
|
165
460
|
}
|
|
166
461
|
);
|
|
167
462
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
463
|
+
const It = it(
|
|
464
|
+
"group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground data-[variant=line]:rounded-none group-data-[orientation=horizontal]/tabs:h-8 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
|
|
465
|
+
{
|
|
466
|
+
variants: {
|
|
467
|
+
variant: {
|
|
468
|
+
default: "bg-muted",
|
|
469
|
+
line: "gap-1 bg-transparent"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
defaultVariants: {
|
|
473
|
+
variant: "default"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
);
|
|
477
|
+
function Gt({
|
|
478
|
+
className: t,
|
|
479
|
+
variant: o = "default",
|
|
480
|
+
...u
|
|
171
481
|
}) {
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
|
|
482
|
+
return /* @__PURE__ */ V(
|
|
483
|
+
rt,
|
|
174
484
|
{
|
|
175
|
-
className:
|
|
176
|
-
"inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",
|
|
177
|
-
e
|
|
178
|
-
),
|
|
485
|
+
className: H(It({ variant: o }), t),
|
|
179
486
|
"data-slot": "tabs-list",
|
|
180
|
-
|
|
487
|
+
"data-variant": o,
|
|
488
|
+
...u
|
|
181
489
|
}
|
|
182
490
|
);
|
|
183
491
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}) {
|
|
188
|
-
return /* @__PURE__ */ n(
|
|
189
|
-
K,
|
|
492
|
+
function Jt({ className: t, ...o }) {
|
|
493
|
+
return /* @__PURE__ */ V(
|
|
494
|
+
at,
|
|
190
495
|
{
|
|
191
|
-
className:
|
|
192
|
-
"inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-
|
|
193
|
-
|
|
496
|
+
className: H(
|
|
497
|
+
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-1.5 py-0.5 font-medium text-foreground/60 text-sm transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
498
|
+
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
|
|
499
|
+
"data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
|
|
500
|
+
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
|
|
501
|
+
t
|
|
194
502
|
),
|
|
195
503
|
"data-slot": "tabs-trigger",
|
|
196
|
-
...
|
|
504
|
+
...o
|
|
197
505
|
}
|
|
198
506
|
);
|
|
199
507
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}) {
|
|
204
|
-
return /* @__PURE__ */ n(
|
|
205
|
-
B,
|
|
508
|
+
function Qt({ className: t, ...o }) {
|
|
509
|
+
return /* @__PURE__ */ V(
|
|
510
|
+
ot,
|
|
206
511
|
{
|
|
207
|
-
className:
|
|
512
|
+
className: H("flex-1 text-sm outline-none", t),
|
|
208
513
|
"data-slot": "tabs-content",
|
|
209
|
-
...
|
|
514
|
+
...o
|
|
210
515
|
}
|
|
211
516
|
);
|
|
212
517
|
}
|
|
213
518
|
export {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
519
|
+
qt as Tabs,
|
|
520
|
+
Qt as TabsContent,
|
|
521
|
+
Gt as TabsList,
|
|
522
|
+
Jt as TabsTrigger,
|
|
523
|
+
It as tabsListVariants
|
|
218
524
|
};
|