@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.
Files changed (425) hide show
  1. package/dist/CompositeItem-CniPsjzP.js +30 -0
  2. package/dist/CompositeList-yq5K_yj6.js +81 -0
  3. package/dist/CompositeRoot-Dy-5A-Je.js +206 -0
  4. package/dist/DialogRoot-DDokfJcO.js +57 -0
  5. package/dist/DialogTrigger-CFUE8YsM.js +402 -0
  6. package/dist/DirectionContext-BSOheMwC.js +10 -0
  7. package/dist/FieldItemContext-CF2fRwBC.js +12 -0
  8. package/dist/FloatingPortalLite-BHsRx4XN.js +29 -0
  9. package/dist/InternalBackdrop-BVEfe6O1.js +610 -0
  10. package/dist/LabelableContext-Dzw1DWuj.js +171 -0
  11. package/dist/Separator-CswSYAXX.js +25 -0
  12. package/dist/ToolbarRootContext-D7EsmJ5f.js +10 -0
  13. package/dist/andromeeda-B-gfN00q.js +4 -0
  14. package/dist/angular-html-dA1qUKRV.js +32 -0
  15. package/dist/angular-ts-CXyBC0vY.js +21 -0
  16. package/dist/apl-CjNiDgad.js +3 -3
  17. package/dist/assets/icons/telegram.js +10 -0
  18. package/dist/assets/images/arcade-grid.d.ts.map +1 -1
  19. package/dist/assets/images/arcade-grid.js +1 -0
  20. package/dist/assets/index.css +1 -1
  21. package/dist/assets/tokens.css +1 -1
  22. package/dist/assets/variables.css +1 -1
  23. package/dist/astro--3ZkKqYU.js +18 -0
  24. package/dist/astro-CFFExE8Q.js +5 -5
  25. package/dist/aurora-x-B56eICma.js +4 -0
  26. package/dist/ayu-dark-DJSOaKig.js +4 -0
  27. package/dist/ayu-light-BPfFt4v-.js +4 -0
  28. package/dist/ayu-mirage-DmPLRBj7.js +4 -0
  29. package/dist/blade-BoRuQEEj.js +20 -0
  30. package/dist/blade-D0HyNvCw.js +4 -4
  31. package/dist/c-C4SM8H98.js +6 -0
  32. package/dist/cairo-DM6WF2e3.js +1 -1
  33. package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
  34. package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
  35. package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
  36. package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
  37. package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
  38. package/dist/clamp-BxE4ZAuA.js +17 -0
  39. package/dist/cobol-HihOMwht.js +1 -1
  40. package/dist/coffee-D8Swy5yR.js +8 -0
  41. package/dist/components/index.js +665 -644
  42. package/dist/components/ui/atoms/accordion.d.ts +9 -7
  43. package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
  44. package/dist/components/ui/atoms/accordion.js +454 -243
  45. package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
  46. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
  47. package/dist/components/ui/atoms/alert-dialog.js +149 -183
  48. package/dist/components/ui/atoms/alert.d.ts +2 -1
  49. package/dist/components/ui/atoms/alert.d.ts.map +1 -1
  50. package/dist/components/ui/atoms/alert.js +36 -25
  51. package/dist/components/ui/atoms/avatar.d.ts +10 -5
  52. package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
  53. package/dist/components/ui/atoms/avatar.js +198 -205
  54. package/dist/components/ui/atoms/badge.d.ts +4 -5
  55. package/dist/components/ui/atoms/badge.d.ts.map +1 -1
  56. package/dist/components/ui/atoms/badge.js +31 -22
  57. package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
  58. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
  59. package/dist/components/ui/atoms/breadcrumb.js +46 -29
  60. package/dist/components/ui/atoms/button.d.ts +4 -6
  61. package/dist/components/ui/atoms/button.d.ts.map +1 -1
  62. package/dist/components/ui/atoms/button.js +59 -28
  63. package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
  64. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
  65. package/dist/components/ui/atoms/byoc-badge.js +14 -8
  66. package/dist/components/ui/atoms/calendar.d.ts +6 -16
  67. package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
  68. package/dist/components/ui/atoms/calendar.js +1 -1
  69. package/dist/components/ui/atoms/card.d.ts +4 -2
  70. package/dist/components/ui/atoms/card.d.ts.map +1 -1
  71. package/dist/components/ui/atoms/card.js +46 -35
  72. package/dist/components/ui/atoms/chart.d.ts +24 -48
  73. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  74. package/dist/components/ui/atoms/chart.js +179 -148
  75. package/dist/components/ui/atoms/checkbox.d.ts +2 -3
  76. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  77. package/dist/components/ui/atoms/checkbox.js +269 -249
  78. package/dist/components/ui/atoms/code-block.js +1 -1
  79. package/dist/components/ui/atoms/collapsible.d.ts +5 -5
  80. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
  81. package/dist/components/ui/atoms/collapsible.js +208 -23
  82. package/dist/components/ui/atoms/command.d.ts +4 -3
  83. package/dist/components/ui/atoms/command.d.ts.map +1 -1
  84. package/dist/components/ui/atoms/command.js +1655 -348
  85. package/dist/components/ui/atoms/dialog.d.ts +12 -10
  86. package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
  87. package/dist/components/ui/atoms/dialog.js +91 -80
  88. package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
  89. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
  90. package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
  91. package/dist/components/ui/atoms/form.d.ts +5 -3
  92. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  93. package/dist/components/ui/atoms/form.js +36 -42
  94. package/dist/components/ui/atoms/hover-card.d.ts +5 -6
  95. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
  96. package/dist/components/ui/atoms/hover-card.js +355 -193
  97. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  98. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  99. package/dist/components/ui/atoms/icons/index.js +58 -56
  100. package/dist/components/ui/atoms/icons/telegram.d.ts +4 -0
  101. package/dist/components/ui/atoms/icons/telegram.d.ts.map +1 -0
  102. package/dist/components/ui/atoms/icons/telegram.js +37 -0
  103. package/dist/components/ui/atoms/index.d.ts +1 -0
  104. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  105. package/dist/components/ui/atoms/index.js +566 -545
  106. package/dist/components/ui/atoms/input-group.d.ts +20 -0
  107. package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
  108. package/dist/components/ui/atoms/input-group.js +136 -0
  109. package/dist/components/ui/atoms/input.d.ts.map +1 -1
  110. package/dist/components/ui/atoms/input.js +113 -13
  111. package/dist/components/ui/atoms/label.d.ts +1 -2
  112. package/dist/components/ui/atoms/label.d.ts.map +1 -1
  113. package/dist/components/ui/atoms/label.js +18 -31
  114. package/dist/components/ui/atoms/markdown.js +1 -1
  115. package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
  116. package/dist/components/ui/atoms/popover.d.ts +8 -6
  117. package/dist/components/ui/atoms/popover.d.ts.map +1 -1
  118. package/dist/components/ui/atoms/popover.js +617 -245
  119. package/dist/components/ui/atoms/pro-badge.js +1 -1
  120. package/dist/components/ui/atoms/progress.d.ts +7 -4
  121. package/dist/components/ui/atoms/progress.d.ts.map +1 -1
  122. package/dist/components/ui/atoms/progress.js +236 -92
  123. package/dist/components/ui/atoms/radio-group.d.ts +4 -4
  124. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
  125. package/dist/components/ui/atoms/radio-group.js +355 -251
  126. package/dist/components/ui/atoms/resizable.d.ts +3 -4
  127. package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
  128. package/dist/components/ui/atoms/resizable.js +25 -27
  129. package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
  130. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
  131. package/dist/components/ui/atoms/scroll-area.js +611 -526
  132. package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
  133. package/dist/components/ui/atoms/scroll-button.js +27 -22
  134. package/dist/components/ui/atoms/select.d.ts +11 -11
  135. package/dist/components/ui/atoms/select.d.ts.map +1 -1
  136. package/dist/components/ui/atoms/select.js +1525 -889
  137. package/dist/components/ui/atoms/separator.d.ts +2 -3
  138. package/dist/components/ui/atoms/separator.d.ts.map +1 -1
  139. package/dist/components/ui/atoms/separator.js +16 -35
  140. package/dist/components/ui/atoms/sheet.d.ts +9 -9
  141. package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
  142. package/dist/components/ui/atoms/sheet.js +65 -64
  143. package/dist/components/ui/atoms/sidebar.d.ts +9 -15
  144. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  145. package/dist/components/ui/atoms/sidebar.js +288 -283
  146. package/dist/components/ui/atoms/skeleton.js +4 -4
  147. package/dist/components/ui/atoms/slider.d.ts +2 -3
  148. package/dist/components/ui/atoms/slider.d.ts.map +1 -1
  149. package/dist/components/ui/atoms/slider.js +886 -440
  150. package/dist/components/ui/atoms/switch.d.ts +4 -5
  151. package/dist/components/ui/atoms/switch.d.ts.map +1 -1
  152. package/dist/components/ui/atoms/switch.js +218 -151
  153. package/dist/components/ui/atoms/table.d.ts +2 -4
  154. package/dist/components/ui/atoms/table.d.ts.map +1 -1
  155. package/dist/components/ui/atoms/table.js +35 -36
  156. package/dist/components/ui/atoms/tabs.d.ts +11 -7
  157. package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
  158. package/dist/components/ui/atoms/tabs.js +492 -186
  159. package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
  160. package/dist/components/ui/atoms/textarea.js +7 -7
  161. package/dist/components/ui/atoms/toggle.d.ts +2 -3
  162. package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
  163. package/dist/components/ui/atoms/toggle.js +92 -45
  164. package/dist/components/ui/atoms/tooltip.d.ts +6 -9
  165. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
  166. package/dist/components/ui/atoms/tooltip.js +625 -343
  167. package/dist/components/ui/atoms/view-tools-control.js +16 -15
  168. package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
  169. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  170. package/dist/components/ui/atoms/virtualized-grid.js +365 -333
  171. package/dist/components/ui/index.js +665 -644
  172. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
  173. package/dist/components/ui/molecules/chat-history-item.js +47 -40
  174. package/dist/components/ui/molecules/command-bar.js +1 -1
  175. package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
  176. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
  177. package/dist/components/ui/molecules/confirm-popover.js +26 -24
  178. package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
  179. package/dist/components/ui/molecules/date-time-picker.js +17 -11
  180. package/dist/components/ui/molecules/index.js +1 -1
  181. package/dist/components/ui/molecules/message.d.ts +2 -3
  182. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  183. package/dist/components/ui/molecules/message.js +10 -16
  184. package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
  185. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  186. package/dist/components/ui/molecules/prompt-input.js +21 -22
  187. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
  188. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  189. package/dist/components/ui/molecules/steps-progress.js +1 -0
  190. package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
  191. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  192. package/dist/components/ui/molecules/tool-card.js +60 -47
  193. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  194. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  195. package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
  196. package/dist/components/ui/molecules/user-nav.js +62 -57
  197. package/dist/components/ui/templates/auth-template.js +5 -5
  198. package/dist/composite-BASdnlNo.js +220 -0
  199. package/dist/composite-BSpUD7nI.js +66 -0
  200. package/dist/cpp-CA4iM_wM.js +18 -0
  201. package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
  202. package/dist/crystal-CRJyc4G-.js +4 -4
  203. package/dist/css-M7EaDHN_.js +6 -0
  204. package/dist/csv-B7yqA61e.js +6 -0
  205. package/dist/dark-plus-B4vfALTw.js +4 -0
  206. package/dist/detectBrowser-Dn2N72k1.js +42 -0
  207. package/dist/dracula-Cb59ZzY3.js +4 -0
  208. package/dist/dracula-soft-aaEmszbU.js +4 -0
  209. package/dist/edge-BYQkOzbF.js +1 -1
  210. package/dist/element-DSo91iOi.js +88 -0
  211. package/dist/elm-BtNbw_Cd.js +1 -1
  212. package/dist/erlang-DNcDT8Hi.js +1 -1
  213. package/dist/event-BCa0Un_3.js +30 -0
  214. package/dist/everforest-dark-CLp_21RJ.js +4 -0
  215. package/dist/everforest-light-CZ0NCAAv.js +4 -0
  216. package/dist/floating-ui.utils-48URp89E.js +126 -0
  217. package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
  218. package/dist/fsharp-CYOiIVNx.js +1 -1
  219. package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
  220. package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
  221. package/dist/git-rebase-ZWUFO_T4.js +1 -1
  222. package/dist/github-dark-BD3lImVS.js +4 -0
  223. package/dist/github-dark-default-ID_nBUwl.js +4 -0
  224. package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
  225. package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
  226. package/dist/github-light-W396yAFe.js +4 -0
  227. package/dist/github-light-default-DCAQ2px1.js +4 -0
  228. package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
  229. package/dist/glimmer-js-DkxNrfPT.js +2 -2
  230. package/dist/glimmer-ts-D6YZEmK_.js +2 -2
  231. package/dist/glsl-CgdqkyFp.js +8 -0
  232. package/dist/graphql-Bv26LTzG.js +14 -0
  233. package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
  234. package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
  235. package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
  236. package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
  237. package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
  238. package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
  239. package/dist/hack-ItRNKiEb.js +1 -1
  240. package/dist/haml-B1t5q1Sv.js +10 -0
  241. package/dist/haml-NZLVzu_R.js +1 -1
  242. package/dist/handlebars-B2fb61mr.js +14 -0
  243. package/dist/handlebars-mxStpSE7.js +2 -2
  244. package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
  245. package/dist/hooks/use-mobile.d.ts.map +1 -1
  246. package/dist/hooks/use-mobile.js +11 -12
  247. package/dist/horizon-PFtq58ZB.js +4 -0
  248. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  249. package/dist/houston-BEqUWhHr.js +4 -0
  250. package/dist/html-B50bmoVb.js +1 -1
  251. package/dist/html-CPZ3oZQ7.js +10 -0
  252. package/dist/html-derivative-B2qv7eyt.js +8 -0
  253. package/dist/http-BQ2t9cn1.js +14 -0
  254. package/dist/hurl-RyCMCa80.js +12 -0
  255. package/dist/imba-DpB-wtPB.js +6 -0
  256. package/dist/index-3rscXtm3.js +4708 -0
  257. package/dist/inertValue-kpZZDBEy.js +7 -0
  258. package/dist/integrations/rhf/index.js +6 -5
  259. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  260. package/dist/java-CbphP4lz.js +6 -0
  261. package/dist/javascript-CgYd5l7W.js +6 -0
  262. package/dist/jinja-DFCUirAg.js +11 -0
  263. package/dist/jison-CTEI_s6O.js +8 -0
  264. package/dist/json-B5-prx4F.js +6 -0
  265. package/dist/json5-CZ8R1oUY.js +6 -0
  266. package/dist/jsonc-DMboCKBJ.js +6 -0
  267. package/dist/jsonl-YgIUi4Dg.js +6 -0
  268. package/dist/jsx-D4q4E1UD.js +6 -0
  269. package/dist/julia-2ubi2n9a.js +16 -0
  270. package/dist/just-CEK2SJ_k.js +4 -4
  271. package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
  272. package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
  273. package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
  274. package/dist/laserwave-B_2VVKNJ.js +4 -0
  275. package/dist/less-MoGo8xoS.js +6 -0
  276. package/dist/light-plus-IB4fPeJj.js +4 -0
  277. package/dist/liquid-CHzkx3jT.js +2 -2
  278. package/dist/lua-Bp3IRv7I.js +1 -1
  279. package/dist/main.js +691 -670
  280. package/dist/markdown-B-zRtm0x.js +6 -0
  281. package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
  282. package/dist/marko-BlmC3dqW.js +14 -0
  283. package/dist/marko-CJBA24Ri.js +2 -2
  284. package/dist/material-theme-CjsSdYF2.js +4 -0
  285. package/dist/material-theme-darker-DEk0vgdS.js +4 -0
  286. package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
  287. package/dist/material-theme-ocean-DK6jm24j.js +4 -0
  288. package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
  289. package/dist/mdc-C9YSUwVC.js +2 -2
  290. package/dist/mdc-CLNk3q28.js +12 -0
  291. package/dist/mdx-CiUWpBB_.js +6 -0
  292. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
  293. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  294. package/dist/metadata/toolkit-icons.js +40 -38
  295. package/dist/metadata/toolkits.d.ts.map +1 -1
  296. package/dist/metadata/toolkits.js +13 -0
  297. package/dist/min-dark-CJcHUHwu.js +4 -0
  298. package/dist/min-light-BAN2UR75.js +4 -0
  299. package/dist/monokai-BbXwpjKl.js +4 -0
  300. package/dist/night-owl-csViJ7u4.js +4 -0
  301. package/dist/night-owl-light-BC-NuMC3.js +4 -0
  302. package/dist/nim-QAjRdh9w.js +5 -5
  303. package/dist/nord-B8Sq-VQ0.js +4 -0
  304. package/dist/one-dark-pro-DTdrcl-J.js +4 -0
  305. package/dist/one-light-kPHTChCU.js +4 -0
  306. package/dist/owner-rKN292Q9.js +6 -0
  307. package/dist/perl-DkVrgJBg.js +3 -3
  308. package/dist/php-BIzsF_5x.js +4 -4
  309. package/dist/php-Kn-vgdBD.js +18 -0
  310. package/dist/plastic-DDweBgVs.js +4 -0
  311. package/dist/poimandres-Dqvs16BQ.js +4 -0
  312. package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
  313. package/dist/postcss-CwL8bLZI.js +6 -0
  314. package/dist/pug-CTOOvSEH.js +12 -0
  315. package/dist/pug-XOw9Q1Ho.js +1 -1
  316. package/dist/python-jjYlTiSH.js +6 -0
  317. package/dist/qml-rTNXsquU.js +1 -1
  318. package/dist/r-C8zl4zMO.js +6 -0
  319. package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
  320. package/dist/red-DBDwQkX-.js +4 -0
  321. package/dist/regexp-Dpy_RgoJ.js +6 -0
  322. package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
  323. package/dist/rose-pine-DGHrTu7e.js +4 -0
  324. package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
  325. package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
  326. package/dist/rst-DM32Wy3O.js +5 -5
  327. package/dist/ruby-BeqCs27h.js +8 -8
  328. package/dist/safePolygon-CJcmMc0u.js +389 -0
  329. package/dist/safeReact-DKq-628G.js +7 -0
  330. package/dist/sas-fpEvgATw.js +1 -1
  331. package/dist/sass-BmupNt-w.js +6 -0
  332. package/dist/scss-BZYVIVaN.js +8 -0
  333. package/dist/serializeValue-BebmSzW3.js +14 -0
  334. package/dist/shellscript-fMxXshxv.js +6 -0
  335. package/dist/shellsession-DiDJNQdy.js +1 -1
  336. package/dist/slack-dark-noeC6QPl.js +4 -0
  337. package/dist/slack-ochin-3_2idqLR.js +4 -0
  338. package/dist/snazzy-light-B9cV359v.js +4 -0
  339. package/dist/solarized-dark-B6X0ILWr.js +4 -0
  340. package/dist/solarized-light-LxOemn3c.js +4 -0
  341. package/dist/sql-D30Zid36.js +6 -0
  342. package/dist/stata-B8c5fTjX.js +1 -1
  343. package/dist/styles-DU5BO7fS.js +16 -0
  344. package/dist/stylus-BoBcEBjx.js +6 -0
  345. package/dist/surrealql-CQi7GQN7.js +1 -1
  346. package/dist/svelte-b9PAcyUe.js +14 -0
  347. package/dist/svelte-rYri41WT.js +3 -3
  348. package/dist/synthwave-84-DzQeMpV0.js +4 -0
  349. package/dist/templ-Crs9Ui8q.js +1 -1
  350. package/dist/tex-AHxmLTL0.js +1 -1
  351. package/dist/tokyo-night-CLM-V_Re.js +4 -0
  352. package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
  353. package/dist/ts-tags-CP1b-4Z2.js +41 -0
  354. package/dist/ts-tags-ioVe2PKw.js +5 -5
  355. package/dist/tsx-QNpb2qLW.js +6 -0
  356. package/dist/twig-DwV2Fi4L.js +2 -2
  357. package/dist/typescript-AhniRyfZ.js +6 -0
  358. package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
  359. package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
  360. package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
  361. package/dist/useButton-JYPKQKj4.js +150 -0
  362. package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
  363. package/dist/useCompositeItem-D00ALGkT.js +35 -0
  364. package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
  365. package/dist/useControlled-Sx-_x7Sz.js +32 -0
  366. package/dist/useFocus-Aj9ShMQu.js +97 -0
  367. package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
  368. package/dist/useLabelableId-DF_d91GP.js +44 -0
  369. package/dist/useOnFirstRender-B4aruaIA.js +9 -0
  370. package/dist/useOnMount-JHtE6teb.js +9 -0
  371. package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
  372. package/dist/useRender-BNXBkp2o.js +7 -0
  373. package/dist/useRenderElement-DNB2vtF1.js +274 -0
  374. package/dist/useRole-N-RCRzo1.js +76 -0
  375. package/dist/useStableCallback-CudqoENs.js +33 -0
  376. package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
  377. package/dist/useTimeout-DAqPwigF.js +33 -0
  378. package/dist/useValueAsRef-LhoZc6As.js +20 -0
  379. package/dist/useValueChanged-Bissqjjn.js +15 -0
  380. package/dist/valueToPercent-BBgE4D3L.js +27 -0
  381. package/dist/vesper-BmV7KiQ0.js +4 -0
  382. package/dist/visuallyHidden-PuyyGHVF.js +22 -0
  383. package/dist/vitesse-black-CxZz3C4s.js +4 -0
  384. package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
  385. package/dist/vitesse-light-BDJohtUr.js +4 -0
  386. package/dist/vue-CY6W2ID0.js +31 -0
  387. package/dist/vue-DXEmyXn9.js +3 -3
  388. package/dist/vue-html-DYXHAJ2G.js +8 -0
  389. package/dist/vue-vine-D41-N99t.js +4 -4
  390. package/dist/vue-vine-DiWTpMwZ.js +18 -0
  391. package/dist/wasm-3y0A1Y71.js +6 -0
  392. package/dist/wasm-Dm9SFfrx.js +7 -0
  393. package/dist/web-BbvN_Lei.js +2846 -0
  394. package/dist/wgsl-SXl3EZUN.js +6 -0
  395. package/dist/wit-Cw0CTVY0.js +6 -0
  396. package/dist/xml-CNXGTZ6Z.js +8 -0
  397. package/dist/xsl-BmSZphgC.js +1 -1
  398. package/dist/yaml-DZqZ2PBD.js +6 -0
  399. package/package.json +37 -34
  400. package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
  401. package/dist/index-0ioNhtNM.js +0 -10
  402. package/dist/index-437EL2iq.js +0 -52
  403. package/dist/index-B695uy69.js +0 -9
  404. package/dist/index-BEZCAdXQ.js +0 -1568
  405. package/dist/index-BGQepRFJ.js +0 -27
  406. package/dist/index-BZPx6jYI.js +0 -8
  407. package/dist/index-BaLuVb4t.js +0 -70
  408. package/dist/index-Bw62B28F.js +0 -31
  409. package/dist/index-By-GFSsC.js +0 -245
  410. package/dist/index-ByaXH_ih.js +0 -10
  411. package/dist/index-CCKe-Mpx.js +0 -6
  412. package/dist/index-Cv867SGx.js +0 -13
  413. package/dist/index-CvA4FcaC.js +0 -677
  414. package/dist/index-D2LZVjSn.js +0 -82
  415. package/dist/index-DFZozV_h.js +0 -68
  416. package/dist/index-DJQkmo5O.js +0 -49
  417. package/dist/index-DLohNuco.js +0 -36
  418. package/dist/index-DrFfdHac.js +0 -144
  419. package/dist/index-DrlYGDRT.js +0 -119
  420. package/dist/index-Dz8CQngS.js +0 -181
  421. package/dist/index-cd1ceFJg.js +0 -6973
  422. package/dist/index-rKs9bXHr.js +0 -6
  423. package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
  424. package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
  425. package/dist/web-BwFNdl01.js +0 -697
@@ -1,218 +1,524 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { cn as m } from "../../../lib/utils.js";
3
- import * as f from "react";
4
- import { c as T } from "../../../index-B695uy69.js";
5
- import { c as S } from "../../../index-DFZozV_h.js";
6
- import { R as k, I as E, c as h } from "../../../index-Dz8CQngS.js";
7
- import { P as F } from "../../../index-BaLuVb4t.js";
8
- import { P as p } from "../../../index-DLohNuco.js";
9
- import { u as $ } from "../../../index-ByaXH_ih.js";
10
- import { u as D } from "../../../index-437EL2iq.js";
11
- import { u as V } from "../../../index-Cv867SGx.js";
12
- var g = "Tabs", [G] = S(g, [
13
- h
14
- ]), C = h(), [L, x] = G(g), I = f.forwardRef(
15
- (e, t) => {
16
- const {
17
- __scopeTabs: c,
18
- value: a,
19
- onValueChange: i,
20
- defaultValue: d,
21
- orientation: o = "horizontal",
22
- dir: u,
23
- activationMode: b = "automatic",
24
- ...v
25
- } = e, s = $(u), [r, l] = D({
26
- prop: a,
27
- onChange: i,
28
- defaultProp: d ?? "",
29
- caller: g
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
- return /* @__PURE__ */ n(
32
- L,
33
- {
34
- scope: c,
35
- baseId: V(),
36
- value: r,
37
- onValueChange: l,
38
- orientation: o,
39
- dir: s,
40
- activationMode: b,
41
- children: /* @__PURE__ */ n(
42
- p.div,
43
- {
44
- dir: s,
45
- "data-orientation": o,
46
- ...v,
47
- ref: t
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
- I.displayName = g;
55
- var y = "TabsList", _ = f.forwardRef(
56
- (e, t) => {
57
- const { __scopeTabs: c, loop: a = !0, ...i } = e, d = x(y, c), o = C(c);
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
- _.displayName = y;
80
- var N = "TabsTrigger", R = f.forwardRef(
81
- (e, t) => {
82
- const { __scopeTabs: c, value: a, disabled: i = !1, ...d } = e, o = x(N, c), u = C(c), b = P(o.baseId, a), v = M(o.baseId, a), s = a === o.value;
83
- return /* @__PURE__ */ n(
84
- E,
85
- {
86
- asChild: !0,
87
- ...u,
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
- R.displayName = N;
120
- var w = "TabsContent", A = f.forwardRef(
121
- (e, t) => {
122
- const { __scopeTabs: c, value: a, forceMount: i, children: d, ...o } = e, u = x(w, c), b = P(u.baseId, a), v = M(u.baseId, a), s = a === u.value, r = f.useRef(s);
123
- return f.useEffect(() => {
124
- const l = requestAnimationFrame(() => r.current = !1);
125
- return () => cancelAnimationFrame(l);
126
- }, []), /* @__PURE__ */ n(F, { present: i || s, children: ({ present: l }) => /* @__PURE__ */ n(
127
- p.div,
128
- {
129
- "data-state": s ? "active" : "inactive",
130
- "data-orientation": u.orientation,
131
- role: "tabpanel",
132
- "aria-labelledby": b,
133
- hidden: !l,
134
- id: v,
135
- tabIndex: 0,
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
- A.displayName = w;
148
- function P(e, t) {
149
- return `${e}-trigger-${t}`;
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 M(e, t) {
152
- return `${e}-content-${t}`;
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
- var j = I, z = _, K = R, B = A;
155
- function ee({
156
- className: e,
157
- ...t
445
+ function qt({
446
+ className: t,
447
+ orientation: o = "horizontal",
448
+ ...u
158
449
  }) {
159
- return /* @__PURE__ */ n(
160
- j,
450
+ return /* @__PURE__ */ V(
451
+ nt,
161
452
  {
162
- className: m("flex flex-col gap-2", e),
453
+ className: H(
454
+ "group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
455
+ t
456
+ ),
163
457
  "data-slot": "tabs",
164
- ...t
458
+ orientation: o,
459
+ ...u
165
460
  }
166
461
  );
167
462
  }
168
- function te({
169
- className: e,
170
- ...t
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__ */ n(
173
- z,
482
+ return /* @__PURE__ */ V(
483
+ rt,
174
484
  {
175
- className: m(
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
- ...t
487
+ "data-variant": o,
488
+ ...u
181
489
  }
182
490
  );
183
491
  }
184
- function ae({
185
- className: e,
186
- ...t
187
- }) {
188
- return /* @__PURE__ */ n(
189
- K,
492
+ function Jt({ className: t, ...o }) {
493
+ return /* @__PURE__ */ V(
494
+ at,
190
495
  {
191
- className: m(
192
- "inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] 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 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
193
- e
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
- ...t
504
+ ...o
197
505
  }
198
506
  );
199
507
  }
200
- function oe({
201
- className: e,
202
- ...t
203
- }) {
204
- return /* @__PURE__ */ n(
205
- B,
508
+ function Qt({ className: t, ...o }) {
509
+ return /* @__PURE__ */ V(
510
+ ot,
206
511
  {
207
- className: m("flex-1 outline-none", e),
512
+ className: H("flex-1 text-sm outline-none", t),
208
513
  "data-slot": "tabs-content",
209
- ...t
514
+ ...o
210
515
  }
211
516
  );
212
517
  }
213
518
  export {
214
- ee as Tabs,
215
- oe as TabsContent,
216
- te as TabsList,
217
- ae as TabsTrigger
519
+ qt as Tabs,
520
+ Qt as TabsContent,
521
+ Gt as TabsList,
522
+ Jt as TabsTrigger,
523
+ It as tabsListVariants
218
524
  };