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