@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,285 +1,496 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { u as
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as R, jsxs as le } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronDownIcon as ue, ChevronUpIcon as pe } from "lucide-react";
|
|
4
|
+
import { cn as H } from "../../../lib/utils.js";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { u as fe } from "../../../useControlled-Sx-_x7Sz.js";
|
|
7
|
+
import { u as W } from "../../../useStableCallback-CudqoENs.js";
|
|
8
|
+
import { u as U } from "../../../useIsoLayoutEffect-DpJo20by.js";
|
|
9
|
+
import { f as Y, w as J, u as F, c as me } from "../../../useRenderElement-DNB2vtF1.js";
|
|
10
|
+
import { C as ge } from "../../../CompositeList-yq5K_yj6.js";
|
|
11
|
+
import { u as he } from "../../../DirectionContext-BSOheMwC.js";
|
|
12
|
+
import { c as be, n as xe } from "../../../createBaseUIEventDetails-CqidROtw.js";
|
|
13
|
+
import { c as ve, u as Ce, C as Ne, a as Q, t as Re, b as Ae } from "../../../useCollapsiblePanel-9pDlDh3R.js";
|
|
14
|
+
import { t as Ee, a as Me } from "../../../useOpenChangeComplete-DkeH9FGJ.js";
|
|
15
|
+
import { u as q } from "../../../useBaseUiId-C8Dq0BQq.js";
|
|
16
|
+
import { u as Ie } from "../../../useCompositeListItem-CYQrZg5-.js";
|
|
17
|
+
import { i as z } from "../../../isElementDisabled-Cbd8W9kH.js";
|
|
18
|
+
import { b as X, e as Z, c as ee, d as ne, H as Oe, E as Pe } from "../../../composite-BSpUD7nI.js";
|
|
19
|
+
import { a as we } from "../../../useButton-JYPKQKj4.js";
|
|
20
|
+
import { s as Ve } from "../../../event-BCa0Un_3.js";
|
|
21
|
+
const B = /* @__PURE__ */ o.createContext(void 0);
|
|
22
|
+
process.env.NODE_ENV !== "production" && (B.displayName = "AccordionRootContext");
|
|
23
|
+
function K() {
|
|
24
|
+
const e = o.useContext(B);
|
|
25
|
+
if (e === void 0)
|
|
26
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>." : Y(10));
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
const ke = {
|
|
30
|
+
value: () => null
|
|
31
|
+
}, te = /* @__PURE__ */ o.forwardRef(function(n, r) {
|
|
32
|
+
const {
|
|
33
|
+
render: A,
|
|
34
|
+
className: h,
|
|
35
|
+
disabled: i = !1,
|
|
36
|
+
hiddenUntilFound: p,
|
|
37
|
+
keepMounted: E,
|
|
38
|
+
loopFocus: y = !0,
|
|
39
|
+
onValueChange: D,
|
|
40
|
+
multiple: M = !1,
|
|
41
|
+
orientation: b = "vertical",
|
|
42
|
+
value: w,
|
|
43
|
+
defaultValue: I,
|
|
44
|
+
...V
|
|
45
|
+
} = n, m = he();
|
|
46
|
+
process.env.NODE_ENV !== "production" && U(() => {
|
|
47
|
+
p && E === !1 && J("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.");
|
|
48
|
+
}, [p, E]);
|
|
49
|
+
const O = o.useMemo(() => {
|
|
50
|
+
if (w === void 0)
|
|
51
|
+
return I ?? [];
|
|
52
|
+
}, [w, I]), x = W(D), l = o.useRef([]), [a, u] = fe({
|
|
53
|
+
controlled: w,
|
|
54
|
+
default: O,
|
|
55
|
+
name: "Accordion",
|
|
56
|
+
state: "value"
|
|
57
|
+
}), t = W((C, _) => {
|
|
58
|
+
const d = be(xe);
|
|
59
|
+
if (M)
|
|
60
|
+
if (_) {
|
|
61
|
+
const s = a.slice();
|
|
62
|
+
if (s.push(C), x(s, d), d.isCanceled)
|
|
63
|
+
return;
|
|
64
|
+
u(s);
|
|
65
|
+
} else {
|
|
66
|
+
const s = a.filter((f) => f !== C);
|
|
67
|
+
if (x(s, d), d.isCanceled)
|
|
68
|
+
return;
|
|
69
|
+
u(s);
|
|
50
70
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
71
|
+
else {
|
|
72
|
+
const s = a[0] === C ? [] : [C];
|
|
73
|
+
if (x(s, d), d.isCanceled)
|
|
74
|
+
return;
|
|
75
|
+
u(s);
|
|
76
|
+
}
|
|
77
|
+
}), v = o.useMemo(() => ({
|
|
78
|
+
value: a,
|
|
79
|
+
disabled: i,
|
|
80
|
+
orientation: b
|
|
81
|
+
}), [a, i, b]), k = o.useMemo(() => ({
|
|
82
|
+
accordionItemRefs: l,
|
|
83
|
+
direction: m,
|
|
84
|
+
disabled: i,
|
|
85
|
+
handleValueChange: t,
|
|
86
|
+
hiddenUntilFound: p ?? !1,
|
|
87
|
+
keepMounted: E ?? !1,
|
|
88
|
+
loopFocus: y,
|
|
89
|
+
orientation: b,
|
|
90
|
+
state: v,
|
|
91
|
+
value: a
|
|
92
|
+
}), [m, i, t, p, E, y, b, v, a]), P = F("div", n, {
|
|
93
|
+
state: v,
|
|
94
|
+
ref: r,
|
|
95
|
+
props: [{
|
|
96
|
+
dir: m,
|
|
97
|
+
role: "region"
|
|
98
|
+
}, V],
|
|
99
|
+
stateAttributesMapping: ke
|
|
100
|
+
});
|
|
101
|
+
return /* @__PURE__ */ R(B.Provider, {
|
|
102
|
+
value: k,
|
|
103
|
+
children: /* @__PURE__ */ R(ge, {
|
|
104
|
+
elementsRef: l,
|
|
105
|
+
children: P
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
process.env.NODE_ENV !== "production" && (te.displayName = "AccordionRoot");
|
|
110
|
+
const L = /* @__PURE__ */ o.createContext(void 0);
|
|
111
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "AccordionItemContext");
|
|
112
|
+
function $() {
|
|
113
|
+
const e = o.useContext(L);
|
|
114
|
+
if (e === void 0)
|
|
115
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>." : Y(9));
|
|
116
|
+
return e;
|
|
117
|
+
}
|
|
118
|
+
let ye = /* @__PURE__ */ (function(e) {
|
|
119
|
+
return e.index = "data-index", e.disabled = "data-disabled", e.open = "data-open", e;
|
|
120
|
+
})({});
|
|
121
|
+
const j = {
|
|
122
|
+
...ve,
|
|
123
|
+
index: (e) => Number.isInteger(e) ? {
|
|
124
|
+
[ye.index]: String(e)
|
|
125
|
+
} : null,
|
|
126
|
+
...Ee,
|
|
127
|
+
value: () => null
|
|
128
|
+
}, oe = /* @__PURE__ */ o.forwardRef(function(n, r) {
|
|
54
129
|
const {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
130
|
+
className: A,
|
|
131
|
+
disabled: h = !1,
|
|
132
|
+
onOpenChange: i,
|
|
133
|
+
render: p,
|
|
134
|
+
value: E,
|
|
135
|
+
...y
|
|
136
|
+
} = n, {
|
|
137
|
+
ref: D,
|
|
138
|
+
index: M
|
|
139
|
+
} = Ie(), b = me(r, D), {
|
|
140
|
+
disabled: w,
|
|
141
|
+
handleValueChange: I,
|
|
142
|
+
state: V,
|
|
143
|
+
value: m
|
|
144
|
+
} = K(), O = q(), x = E ?? O, l = h || w, a = o.useMemo(() => {
|
|
145
|
+
if (!m)
|
|
146
|
+
return !1;
|
|
147
|
+
for (let f = 0; f < m.length; f += 1)
|
|
148
|
+
if (m[f] === x)
|
|
149
|
+
return !0;
|
|
150
|
+
return !1;
|
|
151
|
+
}, [m, x]), u = W((f, N) => {
|
|
152
|
+
i?.(f, N), !N.isCanceled && I(x, f);
|
|
153
|
+
}), t = Ce({
|
|
154
|
+
open: a,
|
|
155
|
+
onOpenChange: u,
|
|
156
|
+
disabled: l
|
|
157
|
+
}), v = o.useMemo(() => ({
|
|
158
|
+
open: t.open,
|
|
159
|
+
disabled: t.disabled,
|
|
160
|
+
hidden: !t.mounted,
|
|
161
|
+
transitionStatus: t.transitionStatus
|
|
162
|
+
}), [t.open, t.disabled, t.mounted, t.transitionStatus]), k = o.useMemo(() => ({
|
|
163
|
+
...t,
|
|
164
|
+
onOpenChange: u,
|
|
165
|
+
state: v
|
|
166
|
+
}), [t, v, u]), P = o.useMemo(() => ({
|
|
167
|
+
...V,
|
|
168
|
+
index: M,
|
|
169
|
+
disabled: l,
|
|
170
|
+
open: a
|
|
171
|
+
}), [l, M, a, V]), [C, _] = o.useState(q()), d = o.useMemo(() => ({
|
|
172
|
+
open: a,
|
|
173
|
+
state: P,
|
|
174
|
+
setTriggerId: _,
|
|
175
|
+
triggerId: C
|
|
176
|
+
}), [a, P, _, C]), s = F("div", n, {
|
|
177
|
+
state: P,
|
|
178
|
+
ref: b,
|
|
179
|
+
props: y,
|
|
180
|
+
stateAttributesMapping: j
|
|
181
|
+
});
|
|
182
|
+
return /* @__PURE__ */ R(Ne.Provider, {
|
|
183
|
+
value: k,
|
|
184
|
+
children: /* @__PURE__ */ R(L.Provider, {
|
|
185
|
+
value: d,
|
|
186
|
+
children: s
|
|
187
|
+
})
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "AccordionItem");
|
|
191
|
+
const ie = /* @__PURE__ */ o.forwardRef(function(n, r) {
|
|
192
|
+
const {
|
|
193
|
+
render: A,
|
|
194
|
+
className: h,
|
|
195
|
+
...i
|
|
196
|
+
} = n, {
|
|
197
|
+
state: p
|
|
198
|
+
} = $();
|
|
199
|
+
return F("h3", n, {
|
|
200
|
+
state: p,
|
|
201
|
+
ref: r,
|
|
202
|
+
props: i,
|
|
203
|
+
stateAttributesMapping: j
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "AccordionHeader");
|
|
207
|
+
const De = /* @__PURE__ */ new Set([X, Z, ee, ne, Oe, Pe]);
|
|
208
|
+
function _e(e) {
|
|
209
|
+
const {
|
|
210
|
+
current: n
|
|
211
|
+
} = e, r = [];
|
|
212
|
+
for (let A = 0; A < n.length; A += 1) {
|
|
213
|
+
const h = n[A];
|
|
214
|
+
if (!z(h)) {
|
|
215
|
+
const i = h?.querySelector('[type="button"], [role="button"]');
|
|
216
|
+
i && !z(i) && r.push(i);
|
|
80
217
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
218
|
+
}
|
|
219
|
+
return r;
|
|
220
|
+
}
|
|
221
|
+
const re = /* @__PURE__ */ o.forwardRef(function(n, r) {
|
|
222
|
+
const {
|
|
223
|
+
disabled: A,
|
|
224
|
+
className: h,
|
|
225
|
+
id: i,
|
|
226
|
+
render: p,
|
|
227
|
+
nativeButton: E = !0,
|
|
228
|
+
...y
|
|
229
|
+
} = n, {
|
|
230
|
+
panelId: D,
|
|
231
|
+
open: M,
|
|
232
|
+
handleTrigger: b,
|
|
233
|
+
disabled: w
|
|
234
|
+
} = Q(), I = A ?? w, {
|
|
235
|
+
getButtonProps: V,
|
|
236
|
+
buttonRef: m
|
|
237
|
+
} = we({
|
|
238
|
+
disabled: I,
|
|
239
|
+
focusableWhenDisabled: !0,
|
|
240
|
+
native: E,
|
|
241
|
+
composite: !0
|
|
242
|
+
}), {
|
|
243
|
+
accordionItemRefs: O,
|
|
244
|
+
direction: x,
|
|
245
|
+
loopFocus: l,
|
|
246
|
+
orientation: a
|
|
247
|
+
} = K(), u = x === "rtl", t = a === "horizontal", {
|
|
248
|
+
state: v,
|
|
249
|
+
setTriggerId: k,
|
|
250
|
+
triggerId: P
|
|
251
|
+
} = $();
|
|
252
|
+
U(() => (i && k(i), () => {
|
|
253
|
+
k(void 0);
|
|
254
|
+
}), [i, k]);
|
|
255
|
+
const C = o.useMemo(() => ({
|
|
256
|
+
"aria-controls": M ? D : void 0,
|
|
257
|
+
"aria-expanded": M,
|
|
258
|
+
id: P,
|
|
259
|
+
tabIndex: 0,
|
|
260
|
+
onClick: b,
|
|
261
|
+
onKeyDown(d) {
|
|
262
|
+
if (!De.has(d.key))
|
|
263
|
+
return;
|
|
264
|
+
Ve(d);
|
|
265
|
+
const s = _e(O), N = s.length - 1;
|
|
266
|
+
let c = -1;
|
|
267
|
+
const g = s.indexOf(d.target);
|
|
268
|
+
function T() {
|
|
269
|
+
l ? c = g + 1 > N ? 0 : g + 1 : c = Math.min(g + 1, N);
|
|
270
|
+
}
|
|
271
|
+
function S() {
|
|
272
|
+
l ? c = g === 0 ? N : g - 1 : c = g - 1;
|
|
273
|
+
}
|
|
274
|
+
switch (d.key) {
|
|
275
|
+
case X:
|
|
276
|
+
t || T();
|
|
98
277
|
break;
|
|
99
|
-
case
|
|
100
|
-
|
|
278
|
+
case Z:
|
|
279
|
+
t || S();
|
|
101
280
|
break;
|
|
102
|
-
case
|
|
103
|
-
|
|
281
|
+
case ee:
|
|
282
|
+
t && (u ? S() : T());
|
|
104
283
|
break;
|
|
105
|
-
case
|
|
106
|
-
|
|
284
|
+
case ne:
|
|
285
|
+
t && (u ? T() : S());
|
|
107
286
|
break;
|
|
108
|
-
case "
|
|
109
|
-
|
|
287
|
+
case "Home":
|
|
288
|
+
c = 0;
|
|
110
289
|
break;
|
|
111
|
-
case "
|
|
112
|
-
|
|
290
|
+
case "End":
|
|
291
|
+
c = N;
|
|
113
292
|
break;
|
|
114
293
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
|
|
294
|
+
c > -1 && s[c].focus();
|
|
295
|
+
}
|
|
296
|
+
}), [O, b, P, t, u, l, M, D]);
|
|
297
|
+
return F("button", n, {
|
|
298
|
+
state: v,
|
|
299
|
+
ref: [r, m],
|
|
300
|
+
props: [C, y, V],
|
|
301
|
+
stateAttributesMapping: Re
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "AccordionTrigger");
|
|
305
|
+
let G = /* @__PURE__ */ (function(e) {
|
|
306
|
+
return e.accordionPanelHeight = "--accordion-panel-height", e.accordionPanelWidth = "--accordion-panel-width", e;
|
|
307
|
+
})({});
|
|
308
|
+
const se = /* @__PURE__ */ o.forwardRef(function(n, r) {
|
|
309
|
+
const {
|
|
310
|
+
className: A,
|
|
311
|
+
hiddenUntilFound: h,
|
|
312
|
+
keepMounted: i,
|
|
313
|
+
id: p,
|
|
314
|
+
render: E,
|
|
315
|
+
...y
|
|
316
|
+
} = n, {
|
|
317
|
+
hiddenUntilFound: D,
|
|
318
|
+
keepMounted: M
|
|
319
|
+
} = K(), {
|
|
320
|
+
abortControllerRef: b,
|
|
321
|
+
animationTypeRef: w,
|
|
322
|
+
height: I,
|
|
323
|
+
mounted: V,
|
|
324
|
+
onOpenChange: m,
|
|
325
|
+
open: O,
|
|
326
|
+
panelId: x,
|
|
327
|
+
panelRef: l,
|
|
328
|
+
runOnceAnimationsFinish: a,
|
|
329
|
+
setDimensions: u,
|
|
330
|
+
setHiddenUntilFound: t,
|
|
331
|
+
setKeepMounted: v,
|
|
332
|
+
setMounted: k,
|
|
333
|
+
setOpen: P,
|
|
334
|
+
setVisible: C,
|
|
335
|
+
transitionDimensionRef: _,
|
|
336
|
+
visible: d,
|
|
337
|
+
width: s,
|
|
338
|
+
setPanelIdState: f,
|
|
339
|
+
transitionStatus: N
|
|
340
|
+
} = Q(), c = h ?? D, g = i ?? M;
|
|
341
|
+
process.env.NODE_ENV !== "production" && U(() => {
|
|
342
|
+
i === !1 && c && J("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.");
|
|
343
|
+
}, [c, i]), U(() => {
|
|
344
|
+
if (p)
|
|
345
|
+
return f(p), () => {
|
|
346
|
+
f(void 0);
|
|
347
|
+
};
|
|
348
|
+
}, [p, f]), U(() => {
|
|
349
|
+
t(c);
|
|
350
|
+
}, [t, c]), U(() => {
|
|
351
|
+
v(g);
|
|
352
|
+
}, [v, g]), Me({
|
|
353
|
+
open: O && N === "idle",
|
|
354
|
+
ref: l,
|
|
355
|
+
onComplete() {
|
|
356
|
+
O && u({
|
|
357
|
+
width: void 0,
|
|
358
|
+
height: void 0
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
const {
|
|
363
|
+
props: T
|
|
364
|
+
} = Ae({
|
|
365
|
+
abortControllerRef: b,
|
|
366
|
+
animationTypeRef: w,
|
|
367
|
+
externalRef: r,
|
|
368
|
+
height: I,
|
|
369
|
+
hiddenUntilFound: c,
|
|
370
|
+
id: p ?? x,
|
|
371
|
+
keepMounted: g,
|
|
372
|
+
mounted: V,
|
|
373
|
+
onOpenChange: m,
|
|
374
|
+
open: O,
|
|
375
|
+
panelRef: l,
|
|
376
|
+
runOnceAnimationsFinish: a,
|
|
377
|
+
setDimensions: u,
|
|
378
|
+
setMounted: k,
|
|
379
|
+
setOpen: P,
|
|
380
|
+
setVisible: C,
|
|
381
|
+
transitionDimensionRef: _,
|
|
382
|
+
visible: d,
|
|
383
|
+
width: s
|
|
384
|
+
}), {
|
|
385
|
+
state: S,
|
|
386
|
+
triggerId: ae
|
|
387
|
+
} = $(), de = o.useMemo(() => ({
|
|
388
|
+
...S,
|
|
389
|
+
transitionStatus: N
|
|
390
|
+
}), [S, N]), ce = F("div", n, {
|
|
391
|
+
state: de,
|
|
392
|
+
ref: [r, l],
|
|
393
|
+
props: [T, {
|
|
394
|
+
"aria-labelledby": ae,
|
|
395
|
+
role: "region",
|
|
396
|
+
style: {
|
|
397
|
+
[G.accordionPanelHeight]: I === void 0 ? "auto" : `${I}px`,
|
|
398
|
+
[G.accordionPanelWidth]: s === void 0 ? "auto" : `${s}px`
|
|
217
399
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
);
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
var Ae = H, ge = z, Ce = G, be = U, he = q;
|
|
226
|
-
function Oe({
|
|
227
|
-
...e
|
|
228
|
-
}) {
|
|
229
|
-
return /* @__PURE__ */ t(Ae, { "data-slot": "accordion", ...e });
|
|
230
|
-
}
|
|
231
|
-
function Me({
|
|
400
|
+
}, y],
|
|
401
|
+
stateAttributesMapping: j
|
|
402
|
+
});
|
|
403
|
+
return g || c || !g && V ? ce : null;
|
|
404
|
+
});
|
|
405
|
+
process.env.NODE_ENV !== "production" && (se.displayName = "AccordionPanel");
|
|
406
|
+
function en({
|
|
232
407
|
className: e,
|
|
233
|
-
|
|
408
|
+
type: n,
|
|
409
|
+
multiple: r,
|
|
410
|
+
collapsible: A,
|
|
411
|
+
...h
|
|
234
412
|
}) {
|
|
235
|
-
return /* @__PURE__ */
|
|
236
|
-
|
|
413
|
+
return /* @__PURE__ */ R(
|
|
414
|
+
te,
|
|
415
|
+
{
|
|
416
|
+
className: H("flex w-full flex-col", e),
|
|
417
|
+
"data-slot": "accordion",
|
|
418
|
+
multiple: r ?? n === "multiple",
|
|
419
|
+
...h
|
|
420
|
+
}
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
function nn({ className: e, ...n }) {
|
|
424
|
+
return /* @__PURE__ */ R(
|
|
425
|
+
oe,
|
|
237
426
|
{
|
|
238
|
-
className:
|
|
427
|
+
className: H("not-last:border-b", e),
|
|
239
428
|
"data-slot": "accordion-item",
|
|
240
429
|
...n
|
|
241
430
|
}
|
|
242
431
|
);
|
|
243
432
|
}
|
|
244
|
-
function
|
|
433
|
+
function tn({
|
|
245
434
|
className: e,
|
|
246
435
|
children: n,
|
|
247
|
-
...
|
|
436
|
+
...r
|
|
248
437
|
}) {
|
|
249
|
-
return /* @__PURE__ */
|
|
250
|
-
|
|
438
|
+
return /* @__PURE__ */ R(ie, { className: "flex", children: /* @__PURE__ */ le(
|
|
439
|
+
re,
|
|
251
440
|
{
|
|
252
|
-
className:
|
|
253
|
-
"flex flex-1 items-start justify-between
|
|
441
|
+
className: H(
|
|
442
|
+
"group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left font-medium text-sm outline-none transition-all hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
|
|
254
443
|
e
|
|
255
444
|
),
|
|
256
445
|
"data-slot": "accordion-trigger",
|
|
257
|
-
...
|
|
446
|
+
...r,
|
|
258
447
|
children: [
|
|
259
448
|
n,
|
|
260
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ R(
|
|
450
|
+
ue,
|
|
451
|
+
{
|
|
452
|
+
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden",
|
|
453
|
+
"data-slot": "accordion-trigger-icon"
|
|
454
|
+
}
|
|
455
|
+
),
|
|
456
|
+
/* @__PURE__ */ R(
|
|
457
|
+
pe,
|
|
458
|
+
{
|
|
459
|
+
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline",
|
|
460
|
+
"data-slot": "accordion-trigger-icon"
|
|
461
|
+
}
|
|
462
|
+
)
|
|
261
463
|
]
|
|
262
464
|
}
|
|
263
465
|
) });
|
|
264
466
|
}
|
|
265
|
-
function
|
|
467
|
+
function on({
|
|
266
468
|
className: e,
|
|
267
469
|
children: n,
|
|
268
|
-
...
|
|
470
|
+
...r
|
|
269
471
|
}) {
|
|
270
|
-
return /* @__PURE__ */
|
|
271
|
-
|
|
472
|
+
return /* @__PURE__ */ R(
|
|
473
|
+
se,
|
|
272
474
|
{
|
|
273
|
-
className: "overflow-hidden text-sm data-
|
|
475
|
+
className: "overflow-hidden text-sm data-closed:animate-accordion-up data-open:animate-accordion-down",
|
|
274
476
|
"data-slot": "accordion-content",
|
|
275
|
-
...
|
|
276
|
-
children: /* @__PURE__ */
|
|
477
|
+
...r,
|
|
478
|
+
children: /* @__PURE__ */ R(
|
|
479
|
+
"div",
|
|
480
|
+
{
|
|
481
|
+
className: H(
|
|
482
|
+
"h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
|
|
483
|
+
e
|
|
484
|
+
),
|
|
485
|
+
children: n
|
|
486
|
+
}
|
|
487
|
+
)
|
|
277
488
|
}
|
|
278
489
|
);
|
|
279
490
|
}
|
|
280
491
|
export {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
492
|
+
en as Accordion,
|
|
493
|
+
on as AccordionContent,
|
|
494
|
+
nn as AccordionItem,
|
|
495
|
+
tn as AccordionTrigger
|
|
285
496
|
};
|