@arcadeai/design-system 3.39.1 → 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 (414) 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/images/arcade-grid.d.ts.map +1 -1
  18. package/dist/assets/images/arcade-grid.js +1 -0
  19. package/dist/assets/index.css +1 -1
  20. package/dist/assets/tokens.css +1 -1
  21. package/dist/assets/variables.css +1 -1
  22. package/dist/astro--3ZkKqYU.js +18 -0
  23. package/dist/astro-CFFExE8Q.js +5 -5
  24. package/dist/aurora-x-B56eICma.js +4 -0
  25. package/dist/ayu-dark-DJSOaKig.js +4 -0
  26. package/dist/ayu-light-BPfFt4v-.js +4 -0
  27. package/dist/ayu-mirage-DmPLRBj7.js +4 -0
  28. package/dist/blade-BoRuQEEj.js +20 -0
  29. package/dist/blade-D0HyNvCw.js +4 -4
  30. package/dist/c-C4SM8H98.js +6 -0
  31. package/dist/cairo-DM6WF2e3.js +1 -1
  32. package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
  33. package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
  34. package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
  35. package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
  36. package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
  37. package/dist/clamp-BxE4ZAuA.js +17 -0
  38. package/dist/cobol-HihOMwht.js +1 -1
  39. package/dist/coffee-D8Swy5yR.js +8 -0
  40. package/dist/components/index.js +665 -646
  41. package/dist/components/ui/atoms/accordion.d.ts +9 -7
  42. package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
  43. package/dist/components/ui/atoms/accordion.js +454 -243
  44. package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
  45. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
  46. package/dist/components/ui/atoms/alert-dialog.js +149 -183
  47. package/dist/components/ui/atoms/alert.d.ts +2 -1
  48. package/dist/components/ui/atoms/alert.d.ts.map +1 -1
  49. package/dist/components/ui/atoms/alert.js +36 -25
  50. package/dist/components/ui/atoms/avatar.d.ts +10 -5
  51. package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
  52. package/dist/components/ui/atoms/avatar.js +198 -205
  53. package/dist/components/ui/atoms/badge.d.ts +4 -5
  54. package/dist/components/ui/atoms/badge.d.ts.map +1 -1
  55. package/dist/components/ui/atoms/badge.js +31 -22
  56. package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
  57. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
  58. package/dist/components/ui/atoms/breadcrumb.js +46 -29
  59. package/dist/components/ui/atoms/button.d.ts +4 -6
  60. package/dist/components/ui/atoms/button.d.ts.map +1 -1
  61. package/dist/components/ui/atoms/button.js +59 -28
  62. package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
  63. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
  64. package/dist/components/ui/atoms/byoc-badge.js +14 -8
  65. package/dist/components/ui/atoms/calendar.d.ts +6 -16
  66. package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
  67. package/dist/components/ui/atoms/calendar.js +1 -1
  68. package/dist/components/ui/atoms/card.d.ts +4 -2
  69. package/dist/components/ui/atoms/card.d.ts.map +1 -1
  70. package/dist/components/ui/atoms/card.js +46 -35
  71. package/dist/components/ui/atoms/chart.d.ts +24 -48
  72. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  73. package/dist/components/ui/atoms/chart.js +179 -148
  74. package/dist/components/ui/atoms/checkbox.d.ts +2 -3
  75. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  76. package/dist/components/ui/atoms/checkbox.js +269 -249
  77. package/dist/components/ui/atoms/code-block.js +1 -1
  78. package/dist/components/ui/atoms/collapsible.d.ts +5 -5
  79. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
  80. package/dist/components/ui/atoms/collapsible.js +208 -23
  81. package/dist/components/ui/atoms/command.d.ts +4 -3
  82. package/dist/components/ui/atoms/command.d.ts.map +1 -1
  83. package/dist/components/ui/atoms/command.js +1655 -348
  84. package/dist/components/ui/atoms/dialog.d.ts +12 -10
  85. package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
  86. package/dist/components/ui/atoms/dialog.js +91 -80
  87. package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
  88. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
  89. package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
  90. package/dist/components/ui/atoms/form.d.ts +5 -3
  91. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  92. package/dist/components/ui/atoms/form.js +36 -42
  93. package/dist/components/ui/atoms/hover-card.d.ts +5 -6
  94. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
  95. package/dist/components/ui/atoms/hover-card.js +355 -193
  96. package/dist/components/ui/atoms/index.d.ts +1 -0
  97. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  98. package/dist/components/ui/atoms/index.js +566 -547
  99. package/dist/components/ui/atoms/input-group.d.ts +20 -0
  100. package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
  101. package/dist/components/ui/atoms/input-group.js +136 -0
  102. package/dist/components/ui/atoms/input.d.ts.map +1 -1
  103. package/dist/components/ui/atoms/input.js +113 -13
  104. package/dist/components/ui/atoms/label.d.ts +1 -2
  105. package/dist/components/ui/atoms/label.d.ts.map +1 -1
  106. package/dist/components/ui/atoms/label.js +18 -31
  107. package/dist/components/ui/atoms/markdown.js +1 -1
  108. package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
  109. package/dist/components/ui/atoms/popover.d.ts +8 -6
  110. package/dist/components/ui/atoms/popover.d.ts.map +1 -1
  111. package/dist/components/ui/atoms/popover.js +617 -245
  112. package/dist/components/ui/atoms/pro-badge.js +1 -1
  113. package/dist/components/ui/atoms/progress.d.ts +7 -4
  114. package/dist/components/ui/atoms/progress.d.ts.map +1 -1
  115. package/dist/components/ui/atoms/progress.js +236 -92
  116. package/dist/components/ui/atoms/radio-group.d.ts +4 -4
  117. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
  118. package/dist/components/ui/atoms/radio-group.js +355 -251
  119. package/dist/components/ui/atoms/resizable.d.ts +3 -4
  120. package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
  121. package/dist/components/ui/atoms/resizable.js +25 -27
  122. package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
  123. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
  124. package/dist/components/ui/atoms/scroll-area.js +611 -526
  125. package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
  126. package/dist/components/ui/atoms/scroll-button.js +27 -22
  127. package/dist/components/ui/atoms/select.d.ts +11 -11
  128. package/dist/components/ui/atoms/select.d.ts.map +1 -1
  129. package/dist/components/ui/atoms/select.js +1525 -889
  130. package/dist/components/ui/atoms/separator.d.ts +2 -3
  131. package/dist/components/ui/atoms/separator.d.ts.map +1 -1
  132. package/dist/components/ui/atoms/separator.js +16 -35
  133. package/dist/components/ui/atoms/sheet.d.ts +9 -9
  134. package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
  135. package/dist/components/ui/atoms/sheet.js +65 -64
  136. package/dist/components/ui/atoms/sidebar.d.ts +9 -15
  137. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  138. package/dist/components/ui/atoms/sidebar.js +288 -283
  139. package/dist/components/ui/atoms/skeleton.js +4 -4
  140. package/dist/components/ui/atoms/slider.d.ts +2 -3
  141. package/dist/components/ui/atoms/slider.d.ts.map +1 -1
  142. package/dist/components/ui/atoms/slider.js +886 -440
  143. package/dist/components/ui/atoms/switch.d.ts +4 -5
  144. package/dist/components/ui/atoms/switch.d.ts.map +1 -1
  145. package/dist/components/ui/atoms/switch.js +218 -151
  146. package/dist/components/ui/atoms/table.d.ts +2 -4
  147. package/dist/components/ui/atoms/table.d.ts.map +1 -1
  148. package/dist/components/ui/atoms/table.js +35 -36
  149. package/dist/components/ui/atoms/tabs.d.ts +11 -7
  150. package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
  151. package/dist/components/ui/atoms/tabs.js +492 -186
  152. package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
  153. package/dist/components/ui/atoms/textarea.js +7 -7
  154. package/dist/components/ui/atoms/toggle.d.ts +2 -3
  155. package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
  156. package/dist/components/ui/atoms/toggle.js +92 -45
  157. package/dist/components/ui/atoms/tooltip.d.ts +6 -9
  158. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
  159. package/dist/components/ui/atoms/tooltip.js +625 -343
  160. package/dist/components/ui/atoms/view-tools-control.js +16 -15
  161. package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
  162. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  163. package/dist/components/ui/atoms/virtualized-grid.js +365 -333
  164. package/dist/components/ui/index.js +665 -646
  165. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
  166. package/dist/components/ui/molecules/chat-history-item.js +47 -40
  167. package/dist/components/ui/molecules/command-bar.js +1 -1
  168. package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
  169. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
  170. package/dist/components/ui/molecules/confirm-popover.js +26 -24
  171. package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
  172. package/dist/components/ui/molecules/date-time-picker.js +17 -11
  173. package/dist/components/ui/molecules/index.js +1 -1
  174. package/dist/components/ui/molecules/message.d.ts +2 -3
  175. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  176. package/dist/components/ui/molecules/message.js +10 -16
  177. package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
  178. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  179. package/dist/components/ui/molecules/prompt-input.js +21 -22
  180. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
  181. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  182. package/dist/components/ui/molecules/steps-progress.js +1 -0
  183. package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
  184. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  185. package/dist/components/ui/molecules/tool-card.js +60 -47
  186. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  187. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  188. package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
  189. package/dist/components/ui/molecules/user-nav.js +62 -57
  190. package/dist/components/ui/templates/auth-template.js +5 -5
  191. package/dist/composite-BASdnlNo.js +220 -0
  192. package/dist/composite-BSpUD7nI.js +66 -0
  193. package/dist/cpp-CA4iM_wM.js +18 -0
  194. package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
  195. package/dist/crystal-CRJyc4G-.js +4 -4
  196. package/dist/css-M7EaDHN_.js +6 -0
  197. package/dist/csv-B7yqA61e.js +6 -0
  198. package/dist/dark-plus-B4vfALTw.js +4 -0
  199. package/dist/detectBrowser-Dn2N72k1.js +42 -0
  200. package/dist/dracula-Cb59ZzY3.js +4 -0
  201. package/dist/dracula-soft-aaEmszbU.js +4 -0
  202. package/dist/edge-BYQkOzbF.js +1 -1
  203. package/dist/element-DSo91iOi.js +88 -0
  204. package/dist/elm-BtNbw_Cd.js +1 -1
  205. package/dist/erlang-DNcDT8Hi.js +1 -1
  206. package/dist/event-BCa0Un_3.js +30 -0
  207. package/dist/everforest-dark-CLp_21RJ.js +4 -0
  208. package/dist/everforest-light-CZ0NCAAv.js +4 -0
  209. package/dist/floating-ui.utils-48URp89E.js +126 -0
  210. package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
  211. package/dist/fsharp-CYOiIVNx.js +1 -1
  212. package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
  213. package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
  214. package/dist/git-rebase-ZWUFO_T4.js +1 -1
  215. package/dist/github-dark-BD3lImVS.js +4 -0
  216. package/dist/github-dark-default-ID_nBUwl.js +4 -0
  217. package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
  218. package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
  219. package/dist/github-light-W396yAFe.js +4 -0
  220. package/dist/github-light-default-DCAQ2px1.js +4 -0
  221. package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
  222. package/dist/glimmer-js-DkxNrfPT.js +2 -2
  223. package/dist/glimmer-ts-D6YZEmK_.js +2 -2
  224. package/dist/glsl-CgdqkyFp.js +8 -0
  225. package/dist/graphql-Bv26LTzG.js +14 -0
  226. package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
  227. package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
  228. package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
  229. package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
  230. package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
  231. package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
  232. package/dist/hack-ItRNKiEb.js +1 -1
  233. package/dist/haml-B1t5q1Sv.js +10 -0
  234. package/dist/haml-NZLVzu_R.js +1 -1
  235. package/dist/handlebars-B2fb61mr.js +14 -0
  236. package/dist/handlebars-mxStpSE7.js +2 -2
  237. package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
  238. package/dist/hooks/use-mobile.d.ts.map +1 -1
  239. package/dist/hooks/use-mobile.js +11 -12
  240. package/dist/horizon-PFtq58ZB.js +4 -0
  241. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  242. package/dist/houston-BEqUWhHr.js +4 -0
  243. package/dist/html-B50bmoVb.js +1 -1
  244. package/dist/html-CPZ3oZQ7.js +10 -0
  245. package/dist/html-derivative-B2qv7eyt.js +8 -0
  246. package/dist/http-BQ2t9cn1.js +14 -0
  247. package/dist/hurl-RyCMCa80.js +12 -0
  248. package/dist/imba-DpB-wtPB.js +6 -0
  249. package/dist/index-3rscXtm3.js +4708 -0
  250. package/dist/inertValue-kpZZDBEy.js +7 -0
  251. package/dist/integrations/rhf/index.js +6 -5
  252. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  253. package/dist/java-CbphP4lz.js +6 -0
  254. package/dist/javascript-CgYd5l7W.js +6 -0
  255. package/dist/jinja-DFCUirAg.js +11 -0
  256. package/dist/jison-CTEI_s6O.js +8 -0
  257. package/dist/json-B5-prx4F.js +6 -0
  258. package/dist/json5-CZ8R1oUY.js +6 -0
  259. package/dist/jsonc-DMboCKBJ.js +6 -0
  260. package/dist/jsonl-YgIUi4Dg.js +6 -0
  261. package/dist/jsx-D4q4E1UD.js +6 -0
  262. package/dist/julia-2ubi2n9a.js +16 -0
  263. package/dist/just-CEK2SJ_k.js +4 -4
  264. package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
  265. package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
  266. package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
  267. package/dist/laserwave-B_2VVKNJ.js +4 -0
  268. package/dist/less-MoGo8xoS.js +6 -0
  269. package/dist/light-plus-IB4fPeJj.js +4 -0
  270. package/dist/liquid-CHzkx3jT.js +2 -2
  271. package/dist/lua-Bp3IRv7I.js +1 -1
  272. package/dist/main.js +691 -672
  273. package/dist/markdown-B-zRtm0x.js +6 -0
  274. package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
  275. package/dist/marko-BlmC3dqW.js +14 -0
  276. package/dist/marko-CJBA24Ri.js +2 -2
  277. package/dist/material-theme-CjsSdYF2.js +4 -0
  278. package/dist/material-theme-darker-DEk0vgdS.js +4 -0
  279. package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
  280. package/dist/material-theme-ocean-DK6jm24j.js +4 -0
  281. package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
  282. package/dist/mdc-C9YSUwVC.js +2 -2
  283. package/dist/mdc-CLNk3q28.js +12 -0
  284. package/dist/mdx-CiUWpBB_.js +6 -0
  285. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
  286. package/dist/min-dark-CJcHUHwu.js +4 -0
  287. package/dist/min-light-BAN2UR75.js +4 -0
  288. package/dist/monokai-BbXwpjKl.js +4 -0
  289. package/dist/night-owl-csViJ7u4.js +4 -0
  290. package/dist/night-owl-light-BC-NuMC3.js +4 -0
  291. package/dist/nim-QAjRdh9w.js +5 -5
  292. package/dist/nord-B8Sq-VQ0.js +4 -0
  293. package/dist/one-dark-pro-DTdrcl-J.js +4 -0
  294. package/dist/one-light-kPHTChCU.js +4 -0
  295. package/dist/owner-rKN292Q9.js +6 -0
  296. package/dist/perl-DkVrgJBg.js +3 -3
  297. package/dist/php-BIzsF_5x.js +4 -4
  298. package/dist/php-Kn-vgdBD.js +18 -0
  299. package/dist/plastic-DDweBgVs.js +4 -0
  300. package/dist/poimandres-Dqvs16BQ.js +4 -0
  301. package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
  302. package/dist/postcss-CwL8bLZI.js +6 -0
  303. package/dist/pug-CTOOvSEH.js +12 -0
  304. package/dist/pug-XOw9Q1Ho.js +1 -1
  305. package/dist/python-jjYlTiSH.js +6 -0
  306. package/dist/qml-rTNXsquU.js +1 -1
  307. package/dist/r-C8zl4zMO.js +6 -0
  308. package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
  309. package/dist/red-DBDwQkX-.js +4 -0
  310. package/dist/regexp-Dpy_RgoJ.js +6 -0
  311. package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
  312. package/dist/rose-pine-DGHrTu7e.js +4 -0
  313. package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
  314. package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
  315. package/dist/rst-DM32Wy3O.js +5 -5
  316. package/dist/ruby-BeqCs27h.js +8 -8
  317. package/dist/safePolygon-CJcmMc0u.js +389 -0
  318. package/dist/safeReact-DKq-628G.js +7 -0
  319. package/dist/sas-fpEvgATw.js +1 -1
  320. package/dist/sass-BmupNt-w.js +6 -0
  321. package/dist/scss-BZYVIVaN.js +8 -0
  322. package/dist/serializeValue-BebmSzW3.js +14 -0
  323. package/dist/shellscript-fMxXshxv.js +6 -0
  324. package/dist/shellsession-DiDJNQdy.js +1 -1
  325. package/dist/slack-dark-noeC6QPl.js +4 -0
  326. package/dist/slack-ochin-3_2idqLR.js +4 -0
  327. package/dist/snazzy-light-B9cV359v.js +4 -0
  328. package/dist/solarized-dark-B6X0ILWr.js +4 -0
  329. package/dist/solarized-light-LxOemn3c.js +4 -0
  330. package/dist/sql-D30Zid36.js +6 -0
  331. package/dist/stata-B8c5fTjX.js +1 -1
  332. package/dist/styles-DU5BO7fS.js +16 -0
  333. package/dist/stylus-BoBcEBjx.js +6 -0
  334. package/dist/surrealql-CQi7GQN7.js +1 -1
  335. package/dist/svelte-b9PAcyUe.js +14 -0
  336. package/dist/svelte-rYri41WT.js +3 -3
  337. package/dist/synthwave-84-DzQeMpV0.js +4 -0
  338. package/dist/templ-Crs9Ui8q.js +1 -1
  339. package/dist/tex-AHxmLTL0.js +1 -1
  340. package/dist/tokyo-night-CLM-V_Re.js +4 -0
  341. package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
  342. package/dist/ts-tags-CP1b-4Z2.js +41 -0
  343. package/dist/ts-tags-ioVe2PKw.js +5 -5
  344. package/dist/tsx-QNpb2qLW.js +6 -0
  345. package/dist/twig-DwV2Fi4L.js +2 -2
  346. package/dist/typescript-AhniRyfZ.js +6 -0
  347. package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
  348. package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
  349. package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
  350. package/dist/useButton-JYPKQKj4.js +150 -0
  351. package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
  352. package/dist/useCompositeItem-D00ALGkT.js +35 -0
  353. package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
  354. package/dist/useControlled-Sx-_x7Sz.js +32 -0
  355. package/dist/useFocus-Aj9ShMQu.js +97 -0
  356. package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
  357. package/dist/useLabelableId-DF_d91GP.js +44 -0
  358. package/dist/useOnFirstRender-B4aruaIA.js +9 -0
  359. package/dist/useOnMount-JHtE6teb.js +9 -0
  360. package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
  361. package/dist/useRender-BNXBkp2o.js +7 -0
  362. package/dist/useRenderElement-DNB2vtF1.js +274 -0
  363. package/dist/useRole-N-RCRzo1.js +76 -0
  364. package/dist/useStableCallback-CudqoENs.js +33 -0
  365. package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
  366. package/dist/useTimeout-DAqPwigF.js +33 -0
  367. package/dist/useValueAsRef-LhoZc6As.js +20 -0
  368. package/dist/useValueChanged-Bissqjjn.js +15 -0
  369. package/dist/valueToPercent-BBgE4D3L.js +27 -0
  370. package/dist/vesper-BmV7KiQ0.js +4 -0
  371. package/dist/visuallyHidden-PuyyGHVF.js +22 -0
  372. package/dist/vitesse-black-CxZz3C4s.js +4 -0
  373. package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
  374. package/dist/vitesse-light-BDJohtUr.js +4 -0
  375. package/dist/vue-CY6W2ID0.js +31 -0
  376. package/dist/vue-DXEmyXn9.js +3 -3
  377. package/dist/vue-html-DYXHAJ2G.js +8 -0
  378. package/dist/vue-vine-D41-N99t.js +4 -4
  379. package/dist/vue-vine-DiWTpMwZ.js +18 -0
  380. package/dist/wasm-3y0A1Y71.js +6 -0
  381. package/dist/wasm-Dm9SFfrx.js +7 -0
  382. package/dist/web-BbvN_Lei.js +2846 -0
  383. package/dist/wgsl-SXl3EZUN.js +6 -0
  384. package/dist/wit-Cw0CTVY0.js +6 -0
  385. package/dist/xml-CNXGTZ6Z.js +8 -0
  386. package/dist/xsl-BmSZphgC.js +1 -1
  387. package/dist/yaml-DZqZ2PBD.js +6 -0
  388. package/package.json +37 -34
  389. package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
  390. package/dist/index-0ioNhtNM.js +0 -10
  391. package/dist/index-437EL2iq.js +0 -52
  392. package/dist/index-B695uy69.js +0 -9
  393. package/dist/index-BEZCAdXQ.js +0 -1568
  394. package/dist/index-BGQepRFJ.js +0 -27
  395. package/dist/index-BZPx6jYI.js +0 -8
  396. package/dist/index-BaLuVb4t.js +0 -70
  397. package/dist/index-Bw62B28F.js +0 -31
  398. package/dist/index-By-GFSsC.js +0 -245
  399. package/dist/index-ByaXH_ih.js +0 -10
  400. package/dist/index-CCKe-Mpx.js +0 -6
  401. package/dist/index-Cv867SGx.js +0 -13
  402. package/dist/index-CvA4FcaC.js +0 -677
  403. package/dist/index-D2LZVjSn.js +0 -82
  404. package/dist/index-DFZozV_h.js +0 -68
  405. package/dist/index-DJQkmo5O.js +0 -49
  406. package/dist/index-DLohNuco.js +0 -36
  407. package/dist/index-DrFfdHac.js +0 -144
  408. package/dist/index-DrlYGDRT.js +0 -119
  409. package/dist/index-Dz8CQngS.js +0 -181
  410. package/dist/index-cd1ceFJg.js +0 -6973
  411. package/dist/index-rKs9bXHr.js +0 -6
  412. package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
  413. package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
  414. package/dist/web-BwFNdl01.js +0 -697
@@ -1,263 +1,635 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { cn as L } from "../../../lib/utils.js";
3
- import * as i from "react";
4
- import { c as P } from "../../../index-B695uy69.js";
5
- import { u as O, c as z } from "../../../index-D2LZVjSn.js";
6
- import { c as G } from "../../../index-DFZozV_h.js";
7
- import { P as H, D as K } from "../../../index-DrFfdHac.js";
8
- import { h as j, R as U, u as V, F as W } from "../../../index-CvA4FcaC.js";
9
- import { u as Z } from "../../../index-Cv867SGx.js";
10
- import { R as q, A as _, c as x, C as B, a as J } from "../../../index-BEZCAdXQ.js";
11
- import { P as w } from "../../../index-BaLuVb4t.js";
12
- import { P as b } from "../../../index-DLohNuco.js";
13
- import { u as Q } from "../../../index-437EL2iq.js";
14
- var C = "Popover", [E] = G(C, [
15
- x
16
- ]), m = x(), [X, u] = E(C), F = (o) => {
17
- const {
18
- __scopePopover: n,
19
- children: e,
20
- open: a,
21
- defaultOpen: t,
22
- onOpenChange: r,
23
- modal: c = !1
24
- } = o, p = m(n), f = i.useRef(null), [v, g] = i.useState(!1), [h, l] = Q({
25
- prop: a,
26
- defaultProp: t ?? !1,
27
- onChange: r,
28
- caller: C
29
- });
30
- return /* @__PURE__ */ s(q, { ...p, children: /* @__PURE__ */ s(
31
- X,
32
- {
33
- scope: n,
34
- contentId: Z(),
35
- triggerRef: f,
36
- open: h,
37
- onOpenChange: l,
38
- onOpenToggle: i.useCallback(() => l((R) => !R), [l]),
39
- hasCustomAnchor: v,
40
- onCustomAnchorAdd: i.useCallback(() => g(!0), []),
41
- onCustomAnchorRemove: i.useCallback(() => g(!1), []),
42
- modal: c,
43
- children: e
44
- }
45
- ) });
46
- };
47
- F.displayName = C;
48
- var N = "PopoverAnchor", S = i.forwardRef(
49
- (o, n) => {
50
- const { __scopePopover: e, ...a } = o, t = u(N, e), r = m(e), { onCustomAnchorAdd: c, onCustomAnchorRemove: p } = t;
51
- return i.useEffect(() => (c(), () => p()), [c, p]), /* @__PURE__ */ s(_, { ...r, ...a, ref: n });
52
- }
53
- );
54
- S.displayName = N;
55
- var y = "PopoverTrigger", D = i.forwardRef(
56
- (o, n) => {
57
- const { __scopePopover: e, ...a } = o, t = u(y, e), r = m(e), c = O(n, t.triggerRef), p = /* @__PURE__ */ s(
58
- b.button,
59
- {
60
- type: "button",
61
- "aria-haspopup": "dialog",
62
- "aria-expanded": t.open,
63
- "aria-controls": t.contentId,
64
- "data-state": $(t.open),
65
- ...a,
66
- ref: c,
67
- onClick: P(o.onClick, t.onOpenToggle)
68
- }
69
- );
70
- return t.hasCustomAnchor ? p : /* @__PURE__ */ s(_, { asChild: !0, ...r, children: p });
71
- }
72
- );
73
- D.displayName = y;
74
- var A = "PopoverPortal", [Y, oo] = E(A, {
75
- forceMount: void 0
76
- }), M = (o) => {
77
- const { __scopePopover: n, forceMount: e, children: a, container: t } = o, r = u(A, n);
78
- return /* @__PURE__ */ s(Y, { scope: n, forceMount: e, children: /* @__PURE__ */ s(w, { present: e || r.open, children: /* @__PURE__ */ s(H, { asChild: !0, container: t, children: a }) }) });
1
+ "use client";
2
+ import { jsx as a, jsxs as ue } from "react/jsx-runtime";
3
+ import { cn as $ } from "../../../lib/utils.js";
4
+ import * as n from "react";
5
+ import { u as Te, a as Re, b as be, I as Se, F as Oe } from "../../../InternalBackdrop-BVEfe6O1.js";
6
+ import { u as Ie } from "../../../useOnFirstRender-B4aruaIA.js";
7
+ import { f as Y, a as xe, u as K } from "../../../useRenderElement-DNB2vtF1.js";
8
+ import * as J from "react-dom";
9
+ import { T as ye } from "../../../useTimeout-DAqPwigF.js";
10
+ import { u as Ne } from "../../../useOnMount-JHtE6teb.js";
11
+ import { R as Fe, P as Me, A as ke, d as R, o as we, p as De, q as le, u as Ve, B as _e, r as Ae, C as Be, E as He, j as Ue, G as Ge, k as Le, i as ce, z as Ke, s as ze, v as je, w as $e, x as de } from "../../../popupStateMapping-BT9Y_jIq.js";
12
+ import { p as Ye, c as qe, a as We, b as Je, u as Qe, d as Xe } from "../../../useSyncedFloatingRootContext-Bc90zSTy.js";
13
+ import { b as q, a as Q, e as Ze, f as X, c as Z, i as et } from "../../../createBaseUIEventDetails-CqidROtw.js";
14
+ import { u as tt } from "../../../useRole-N-RCRzo1.js";
15
+ import { u as ee } from "../../../useStableCallback-CudqoENs.js";
16
+ import { a as ot } from "../../../useButton-JYPKQKj4.js";
17
+ import { u as te } from "../../../useBaseUiId-C8Dq0BQq.js";
18
+ import { u as nt, s as st, a as rt } from "../../../safePolygon-CJcmMc0u.js";
19
+ import { c as it } from "../../../element-DSo91iOi.js";
20
+ import { i as at } from "../../../inertValue-kpZZDBEy.js";
21
+ import { u as oe } from "../../../useIsoLayoutEffect-DpJo20by.js";
22
+ import { u as ct, a as pt, g as fe } from "../../../getDisabledMountTransitionStyles-fmnaQYVj.js";
23
+ import { b as ut, a as lt, t as dt } from "../../../useOpenChangeComplete-DkeH9FGJ.js";
24
+ import { i as ft } from "../../../floating-ui.utils.dom-jr2suqy2.js";
25
+ import { C as gt } from "../../../composite-BSpUD7nI.js";
26
+ import { u as mt } from "../../../ToolbarRootContext-D7EsmJ5f.js";
27
+ const ne = /* @__PURE__ */ n.createContext(void 0);
28
+ process.env.NODE_ENV !== "production" && (ne.displayName = "PopoverRootContext");
29
+ function U(e) {
30
+ const t = n.useContext(ne);
31
+ if (t === void 0 && !e)
32
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>." : Y(47));
33
+ return t;
34
+ }
35
+ function vt() {
36
+ return {
37
+ ...qe(),
38
+ disabled: !1,
39
+ modal: !1,
40
+ instantType: void 0,
41
+ openMethod: null,
42
+ openChangeReason: null,
43
+ titleElementId: void 0,
44
+ descriptionElementId: void 0,
45
+ stickIfOpen: !0,
46
+ nested: !1,
47
+ openOnHover: !1,
48
+ closeDelay: 0,
49
+ hasViewport: !1
50
+ };
51
+ }
52
+ const Pt = {
53
+ ...Ye,
54
+ disabled: R((e) => e.disabled),
55
+ instantType: R((e) => e.instantType),
56
+ openMethod: R((e) => e.openMethod),
57
+ openChangeReason: R((e) => e.openChangeReason),
58
+ modal: R((e) => e.modal),
59
+ stickIfOpen: R((e) => e.stickIfOpen),
60
+ titleElementId: R((e) => e.titleElementId),
61
+ descriptionElementId: R((e) => e.descriptionElementId),
62
+ openOnHover: R((e) => e.openOnHover),
63
+ closeDelay: R((e) => e.closeDelay),
64
+ hasViewport: R((e) => e.hasViewport)
79
65
  };
80
- M.displayName = A;
81
- var d = "PopoverContent", T = i.forwardRef(
82
- (o, n) => {
83
- const e = oo(d, o.__scopePopover), { forceMount: a = e.forceMount, ...t } = o, r = u(d, o.__scopePopover);
84
- return /* @__PURE__ */ s(w, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s(to, { ...t, ref: n }) : /* @__PURE__ */ s(ro, { ...t, ref: n }) });
66
+ class se extends Fe {
67
+ constructor(t) {
68
+ const o = {
69
+ ...vt(),
70
+ ...t
71
+ };
72
+ o.open && t?.mounted === void 0 && (o.mounted = !0), super(o, {
73
+ popupRef: /* @__PURE__ */ n.createRef(),
74
+ backdropRef: /* @__PURE__ */ n.createRef(),
75
+ internalBackdropRef: /* @__PURE__ */ n.createRef(),
76
+ onOpenChange: void 0,
77
+ onOpenChangeComplete: void 0,
78
+ triggerFocusTargetRef: /* @__PURE__ */ n.createRef(),
79
+ beforeContentFocusGuardRef: /* @__PURE__ */ n.createRef(),
80
+ stickIfOpenTimeout: new ye(),
81
+ triggerElements: new Me()
82
+ }, Pt);
85
83
  }
86
- );
87
- T.displayName = d;
88
- var eo = z("PopoverContent.RemoveScroll"), to = i.forwardRef(
89
- (o, n) => {
90
- const e = u(d, o.__scopePopover), a = i.useRef(null), t = O(n, a), r = i.useRef(!1);
91
- return i.useEffect(() => {
92
- const c = a.current;
93
- if (c) return j(c);
94
- }, []), /* @__PURE__ */ s(U, { as: eo, allowPinchZoom: !0, children: /* @__PURE__ */ s(
95
- k,
96
- {
97
- ...o,
98
- ref: t,
99
- trapFocus: e.open,
100
- disableOutsidePointerEvents: !0,
101
- onCloseAutoFocus: P(o.onCloseAutoFocus, (c) => {
102
- c.preventDefault(), r.current || e.triggerRef.current?.focus();
103
- }),
104
- onPointerDownOutside: P(
105
- o.onPointerDownOutside,
106
- (c) => {
107
- const p = c.detail.originalEvent, f = p.button === 0 && p.ctrlKey === !0, v = p.button === 2 || f;
108
- r.current = v;
109
- },
110
- { checkForDefaultPrevented: !1 }
111
- ),
112
- onFocusOutside: P(
113
- o.onFocusOutside,
114
- (c) => c.preventDefault(),
115
- { checkForDefaultPrevented: !1 }
116
- )
117
- }
118
- ) });
84
+ setOpen = (t, o) => {
85
+ const d = o.reason === q, l = o.reason === Q && o.event.detail === 0, c = !t && (o.reason === Ze || o.reason == null);
86
+ if (o.preventUnmountOnClose = () => {
87
+ this.set("preventUnmountingOnClose", !0);
88
+ }, this.context.onOpenChange?.(t, o), o.isCanceled)
89
+ return;
90
+ const u = {
91
+ open: t,
92
+ nativeEvent: o.event,
93
+ reason: o.reason,
94
+ nested: this.state.nested,
95
+ triggerElement: o.trigger
96
+ };
97
+ this.state.floatingRootContext.context.events?.emit("openchange", u);
98
+ const s = () => {
99
+ const v = {
100
+ open: t,
101
+ openChangeReason: o.reason
102
+ }, r = o.trigger?.id ?? null;
103
+ (r || t) && (v.activeTriggerId = r, v.activeTriggerElement = o.trigger ?? null), this.update(v);
104
+ };
105
+ d ? (this.set("stickIfOpen", !0), this.context.stickIfOpenTimeout.start(ke, () => {
106
+ this.set("stickIfOpen", !1);
107
+ }), J.flushSync(s)) : s(), l || c ? this.set("instantType", l ? "click" : "dismiss") : o.reason === X ? this.set("instantType", "focus") : this.set("instantType", void 0);
108
+ };
109
+ static useStore(t, o) {
110
+ const d = xe(() => new se(o)).current, l = t ?? d;
111
+ return Ne(d.disposeEffect), l;
119
112
  }
120
- ), ro = i.forwardRef(
121
- (o, n) => {
122
- const e = u(d, o.__scopePopover), a = i.useRef(!1), t = i.useRef(!1);
123
- return /* @__PURE__ */ s(
124
- k,
125
- {
126
- ...o,
127
- ref: n,
128
- trapFocus: !1,
129
- disableOutsidePointerEvents: !1,
130
- onCloseAutoFocus: (r) => {
131
- o.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || e.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, t.current = !1;
132
- },
133
- onInteractOutside: (r) => {
134
- o.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (t.current = !0));
135
- const c = r.target;
136
- e.triggerRef.current?.contains(c) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && t.current && r.preventDefault();
137
- }
113
+ disposeEffect = () => this.context.stickIfOpenTimeout.disposeEffect();
114
+ }
115
+ function pe({
116
+ props: e
117
+ }) {
118
+ const {
119
+ children: t,
120
+ open: o,
121
+ defaultOpen: d = !1,
122
+ onOpenChange: l,
123
+ onOpenChangeComplete: c,
124
+ modal: u = !1,
125
+ handle: f,
126
+ triggerId: s,
127
+ defaultTriggerId: v = null
128
+ } = e, r = se.useStore(f?.store, {
129
+ modal: u,
130
+ open: d,
131
+ openProp: o,
132
+ activeTriggerId: v,
133
+ triggerIdProp: s
134
+ });
135
+ Ie(() => {
136
+ o === void 0 && r.state.open === !1 && d === !0 && r.update({
137
+ open: !0,
138
+ activeTriggerId: v
139
+ });
140
+ }), r.useControlledProp("openProp", o), r.useControlledProp("triggerIdProp", s);
141
+ const C = r.useState("open"), w = r.useState("positionerElement"), S = r.useState("payload"), D = r.useState("openChangeReason");
142
+ r.useContextCallback("onOpenChange", l), r.useContextCallback("onOpenChangeComplete", c);
143
+ const {
144
+ openMethod: p,
145
+ triggerProps: m
146
+ } = Te(C);
147
+ We(r);
148
+ const {
149
+ forceUnmount: O
150
+ } = Je(C, r, () => {
151
+ r.update({
152
+ stickIfOpen: !0,
153
+ openChangeReason: null
154
+ });
155
+ });
156
+ Re(C && u === !0 && D !== q && p !== "touch", w), n.useEffect(() => {
157
+ C || r.context.stickIfOpenTimeout.clear();
158
+ }, [r, C]);
159
+ const i = n.useCallback((H) => {
160
+ const x = Z(H);
161
+ return x.preventUnmountOnClose = () => {
162
+ r.set("preventUnmountingOnClose", !0);
163
+ }, x;
164
+ }, [r]), y = n.useCallback(() => {
165
+ r.setOpen(!1, i(et));
166
+ }, [r, i]);
167
+ n.useImperativeHandle(e.actionsRef, () => ({
168
+ unmount: O,
169
+ close: y
170
+ }), [O, y]);
171
+ const h = Qe({
172
+ popupStore: r,
173
+ onOpenChange: r.setOpen
174
+ }), N = De(h, {
175
+ outsidePressEvent: {
176
+ // Ensure `aria-hidden` on outside elements is removed immediately
177
+ // on outside press when trapping focus.
178
+ mouse: u === "trap-focus" ? "sloppy" : "intentional",
179
+ touch: "sloppy"
180
+ }
181
+ }), b = tt(h), {
182
+ getReferenceProps: P,
183
+ getFloatingProps: I,
184
+ getTriggerProps: F
185
+ } = le([N, b]), V = n.useMemo(() => P(m), [P, m]), _ = n.useMemo(() => F(m), [F, m]), A = n.useMemo(() => I(), [I]);
186
+ r.useSyncedValues({
187
+ modal: u,
188
+ openMethod: p,
189
+ activeTriggerProps: V,
190
+ inactiveTriggerProps: _,
191
+ popupProps: A,
192
+ floatingRootContext: h,
193
+ nested: Ve() != null
194
+ });
195
+ const B = n.useMemo(() => ({
196
+ store: r
197
+ }), [r]);
198
+ return /* @__PURE__ */ a(ne.Provider, {
199
+ value: B,
200
+ children: typeof t == "function" ? t({
201
+ payload: S
202
+ }) : t
203
+ });
204
+ }
205
+ function ht(e) {
206
+ return U(!0) ? /* @__PURE__ */ a(pe, {
207
+ props: e
208
+ }) : /* @__PURE__ */ a(we, {
209
+ children: /* @__PURE__ */ a(pe, {
210
+ props: e
211
+ })
212
+ });
213
+ }
214
+ const Ct = 300, ge = /* @__PURE__ */ n.forwardRef(function(t, o) {
215
+ const {
216
+ render: d,
217
+ className: l,
218
+ disabled: c = !1,
219
+ nativeButton: u = !0,
220
+ handle: f,
221
+ payload: s,
222
+ openOnHover: v = !1,
223
+ delay: r = Ct,
224
+ closeDelay: C = 0,
225
+ id: w,
226
+ ...S
227
+ } = t, D = U(!0), p = f?.store ?? D?.store;
228
+ if (!p)
229
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : Y(74));
230
+ const m = te(w), O = p.useState("isTriggerActive", m), i = p.useState("floatingRootContext"), y = p.useState("isOpenedByTrigger", m), h = n.useRef(null), {
231
+ registerTrigger: N,
232
+ isMountedByThisTrigger: b
233
+ } = Xe(m, h, p, {
234
+ payload: s,
235
+ disabled: c,
236
+ openOnHover: v,
237
+ closeDelay: C
238
+ }), P = p.useState("openChangeReason"), I = p.useState("stickIfOpen"), F = p.useState("openMethod"), V = nt(i, {
239
+ enabled: i != null && v && (F !== "touch" || P !== Q),
240
+ mouseOnly: !0,
241
+ move: !1,
242
+ handleClose: st(),
243
+ restMs: r,
244
+ delay: {
245
+ close: C
246
+ },
247
+ triggerElementRef: h,
248
+ isActiveTrigger: O
249
+ }), _ = be(i, {
250
+ enabled: i != null,
251
+ stickIfOpen: I
252
+ }), A = le([_]), B = p.useState("triggerProps", b), H = {
253
+ disabled: c,
254
+ open: y
255
+ }, {
256
+ getButtonProps: x,
257
+ buttonRef: G
258
+ } = ot({
259
+ disabled: c,
260
+ native: u
261
+ }), M = n.useMemo(() => ({
262
+ open(T) {
263
+ return T && P === Q ? _e.open(T) : Ae.open(T);
264
+ }
265
+ }), [P]), E = K("button", t, {
266
+ state: H,
267
+ ref: [G, o, N, h],
268
+ props: [A.getReferenceProps(), V, B, {
269
+ [Be]: "",
270
+ id: m
271
+ }, S, x],
272
+ stateAttributesMapping: M
273
+ }), k = n.useRef(null), z = ee((T) => {
274
+ J.flushSync(() => {
275
+ p.setOpen(!1, Z(X, T.nativeEvent, T.currentTarget));
276
+ }), He(k.current)?.focus();
277
+ }), W = ee((T) => {
278
+ const L = p.select("positionerElement");
279
+ if (L && Ue(T, L))
280
+ p.context.beforeContentFocusGuardRef.current?.focus();
281
+ else {
282
+ J.flushSync(() => {
283
+ p.setOpen(!1, Z(X, T.nativeEvent, T.currentTarget));
284
+ });
285
+ let g = Ge(p.context.triggerFocusTargetRef.current || h.current);
286
+ for (; g !== null && it(L, g); ) {
287
+ const j = g;
288
+ if (g = Le(g), g === j)
289
+ break;
138
290
  }
139
- );
140
- }
141
- ), k = i.forwardRef(
142
- (o, n) => {
143
- const {
144
- __scopePopover: e,
145
- trapFocus: a,
146
- onOpenAutoFocus: t,
147
- onCloseAutoFocus: r,
148
- disableOutsidePointerEvents: c,
149
- onEscapeKeyDown: p,
150
- onPointerDownOutside: f,
151
- onFocusOutside: v,
152
- onInteractOutside: g,
153
- ...h
154
- } = o, l = u(d, e), R = m(e);
155
- return V(), /* @__PURE__ */ s(
156
- W,
157
- {
158
- asChild: !0,
159
- loop: !0,
160
- trapped: a,
161
- onMountAutoFocus: t,
162
- onUnmountAutoFocus: r,
163
- children: /* @__PURE__ */ s(
164
- K,
165
- {
166
- asChild: !0,
167
- disableOutsidePointerEvents: c,
168
- onInteractOutside: g,
169
- onEscapeKeyDown: p,
170
- onPointerDownOutside: f,
171
- onFocusOutside: v,
172
- onDismiss: () => l.onOpenChange(!1),
173
- children: /* @__PURE__ */ s(
174
- B,
175
- {
176
- "data-state": $(l.open),
177
- role: "dialog",
178
- id: l.contentId,
179
- ...R,
180
- ...h,
181
- ref: n,
182
- style: {
183
- ...h.style,
184
- "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
185
- "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
186
- "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
187
- "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
188
- "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
189
- }
190
- }
191
- )
192
- }
193
- )
291
+ g?.focus();
292
+ }
293
+ });
294
+ return O ? /* @__PURE__ */ ue(n.Fragment, {
295
+ children: [/* @__PURE__ */ a(ce, {
296
+ ref: k,
297
+ onFocus: z
298
+ }), /* @__PURE__ */ a(n.Fragment, {
299
+ children: E
300
+ }, m), /* @__PURE__ */ a(ce, {
301
+ ref: p.context.triggerFocusTargetRef,
302
+ onFocus: W
303
+ })]
304
+ }) : /* @__PURE__ */ a(n.Fragment, {
305
+ children: E
306
+ }, m);
307
+ });
308
+ process.env.NODE_ENV !== "production" && (ge.displayName = "PopoverTrigger");
309
+ const re = /* @__PURE__ */ n.createContext(void 0);
310
+ process.env.NODE_ENV !== "production" && (re.displayName = "PopoverPortalContext");
311
+ function Et() {
312
+ const e = n.useContext(re);
313
+ if (e === void 0)
314
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." : Y(45));
315
+ return e;
316
+ }
317
+ const me = /* @__PURE__ */ n.forwardRef(function(t, o) {
318
+ const {
319
+ keepMounted: d = !1,
320
+ ...l
321
+ } = t, {
322
+ store: c
323
+ } = U();
324
+ return c.useState("mounted") || d ? /* @__PURE__ */ a(re.Provider, {
325
+ value: d,
326
+ children: /* @__PURE__ */ a(Ke, {
327
+ ref: o,
328
+ ...l
329
+ })
330
+ }) : null;
331
+ });
332
+ process.env.NODE_ENV !== "production" && (me.displayName = "PopoverPortal");
333
+ const ie = /* @__PURE__ */ n.createContext(void 0);
334
+ process.env.NODE_ENV !== "production" && (ie.displayName = "PopoverPositionerContext");
335
+ function Tt() {
336
+ const e = n.useContext(ie);
337
+ if (!e)
338
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>." : Y(46));
339
+ return e;
340
+ }
341
+ const ve = /* @__PURE__ */ n.forwardRef(function(t, o) {
342
+ const {
343
+ render: d,
344
+ className: l,
345
+ anchor: c,
346
+ positionMethod: u = "absolute",
347
+ side: f = "bottom",
348
+ align: s = "center",
349
+ sideOffset: v = 0,
350
+ alignOffset: r = 0,
351
+ collisionBoundary: C = "clipping-ancestors",
352
+ collisionPadding: w = 5,
353
+ arrowPadding: S = 5,
354
+ sticky: D = !1,
355
+ disableAnchorTracking: p = !1,
356
+ collisionAvoidance: m = ze,
357
+ ...O
358
+ } = t, {
359
+ store: i
360
+ } = U(), y = Et(), h = je(), N = i.useState("floatingRootContext"), b = i.useState("mounted"), P = i.useState("open"), I = i.useState("openChangeReason"), F = i.useState("activeTriggerElement"), V = i.useState("modal"), _ = i.useState("positionerElement"), A = i.useState("instantType"), B = i.useState("transitionStatus"), H = i.useState("hasViewport"), x = n.useRef(null), G = ut(_, !1, !1), M = ct({
361
+ anchor: c,
362
+ floatingRootContext: N,
363
+ positionMethod: u,
364
+ mounted: b,
365
+ side: f,
366
+ sideOffset: v,
367
+ align: s,
368
+ alignOffset: r,
369
+ arrowPadding: S,
370
+ collisionBoundary: C,
371
+ collisionPadding: w,
372
+ sticky: D,
373
+ disableAnchorTracking: p,
374
+ keepMounted: y,
375
+ nodeId: h,
376
+ collisionAvoidance: m,
377
+ adaptiveOrigin: H ? pt : void 0
378
+ }), E = n.useMemo(() => {
379
+ const g = {};
380
+ return P || (g.pointerEvents = "none"), {
381
+ role: "presentation",
382
+ hidden: !b,
383
+ style: {
384
+ ...M.positionerStyles,
385
+ ...g
194
386
  }
195
- );
387
+ };
388
+ }, [P, b, M.positionerStyles]), k = n.useMemo(() => ({
389
+ props: E,
390
+ ...M
391
+ }), [E, M]), z = N.useState("domReferenceElement");
392
+ oe(() => {
393
+ const g = z, j = x.current;
394
+ if (g && (x.current = g), j && g && g !== j) {
395
+ i.set("instantType", void 0);
396
+ const ae = new AbortController();
397
+ return G(() => {
398
+ i.set("instantType", "trigger-change");
399
+ }, ae.signal), () => {
400
+ ae.abort();
401
+ };
402
+ }
403
+ }, [z, G, i]);
404
+ const W = {
405
+ open: P,
406
+ side: k.side,
407
+ align: k.align,
408
+ anchorHidden: k.anchorHidden,
409
+ instant: A
410
+ }, T = n.useCallback((g) => {
411
+ i.set("positionerElement", g);
412
+ }, [i]), L = K("div", t, {
413
+ state: W,
414
+ props: [k.props, fe(B), O],
415
+ ref: [o, T],
416
+ stateAttributesMapping: de
417
+ });
418
+ return /* @__PURE__ */ ue(ie.Provider, {
419
+ value: k,
420
+ children: [b && V === !0 && I !== q && /* @__PURE__ */ a(Se, {
421
+ ref: i.context.internalBackdropRef,
422
+ inert: at(!P),
423
+ cutout: F
424
+ }), /* @__PURE__ */ a($e, {
425
+ id: h,
426
+ children: L
427
+ })]
428
+ });
429
+ });
430
+ process.env.NODE_ENV !== "production" && (ve.displayName = "PopoverPositioner");
431
+ const Pe = /* @__PURE__ */ n.createContext(void 0);
432
+ process.env.NODE_ENV !== "production" && (Pe.displayName = "ClosePartContext");
433
+ function Rt() {
434
+ const [e, t] = n.useState(0), o = ee(() => (t((l) => l + 1), () => {
435
+ t((l) => Math.max(0, l - 1));
436
+ }));
437
+ return {
438
+ context: n.useMemo(() => ({
439
+ register: o
440
+ }), [o]),
441
+ hasClosePart: e > 0
442
+ };
443
+ }
444
+ function bt(e) {
445
+ const {
446
+ value: t,
447
+ children: o
448
+ } = e;
449
+ return /* @__PURE__ */ a(Pe.Provider, {
450
+ value: t,
451
+ children: o
452
+ });
453
+ }
454
+ const St = {
455
+ ...de,
456
+ ...dt
457
+ }, he = /* @__PURE__ */ n.forwardRef(function(t, o) {
458
+ const {
459
+ className: d,
460
+ render: l,
461
+ initialFocus: c,
462
+ finalFocus: u,
463
+ ...f
464
+ } = t, {
465
+ store: s
466
+ } = U(), v = Tt(), r = mt() != null, {
467
+ context: C,
468
+ hasClosePart: w
469
+ } = Rt(), S = s.useState("open"), D = s.useState("openMethod"), p = s.useState("instantType"), m = s.useState("transitionStatus"), O = s.useState("popupProps"), i = s.useState("titleElementId"), y = s.useState("descriptionElementId"), h = s.useState("modal"), N = s.useState("mounted"), b = s.useState("openChangeReason"), P = s.useState("activeTriggerElement"), I = s.useState("floatingRootContext");
470
+ lt({
471
+ open: S,
472
+ ref: s.context.popupRef,
473
+ onComplete() {
474
+ S && s.context.onOpenChangeComplete?.(!0);
475
+ }
476
+ });
477
+ const F = s.useState("disabled"), V = s.useState("openOnHover"), _ = s.useState("closeDelay");
478
+ rt(I, {
479
+ enabled: V && !F,
480
+ closeDelay: _
481
+ });
482
+ function A(E) {
483
+ return E === "touch" ? s.context.popupRef.current : !0;
196
484
  }
197
- ), I = "PopoverClose", no = i.forwardRef(
198
- (o, n) => {
199
- const { __scopePopover: e, ...a } = o, t = u(I, e);
200
- return /* @__PURE__ */ s(
201
- b.button,
202
- {
203
- type: "button",
204
- ...a,
205
- ref: n,
206
- onClick: P(o.onClick, () => t.onOpenChange(!1))
485
+ const B = c === void 0 ? A : c, H = {
486
+ open: S,
487
+ side: v.side,
488
+ align: v.align,
489
+ instant: p,
490
+ transitionStatus: m
491
+ }, x = h !== !1 && w, G = n.useCallback((E) => {
492
+ s.set("popupElement", E);
493
+ }, [s]), M = K("div", t, {
494
+ state: H,
495
+ ref: [o, s.context.popupRef, G],
496
+ props: [O, {
497
+ "aria-labelledby": i,
498
+ "aria-describedby": y,
499
+ onKeyDown(E) {
500
+ r && gt.has(E.key) && E.stopPropagation();
207
501
  }
208
- );
209
- }
210
- );
211
- no.displayName = I;
212
- var ao = "PopoverArrow", so = i.forwardRef(
213
- (o, n) => {
214
- const { __scopePopover: e, ...a } = o, t = m(e);
215
- return /* @__PURE__ */ s(J, { ...t, ...a, ref: n });
216
- }
217
- );
218
- so.displayName = ao;
219
- function $(o) {
220
- return o ? "open" : "closed";
221
- }
222
- var co = F, io = S, po = D, uo = M, lo = T;
223
- function wo({
224
- ...o
225
- }) {
226
- return /* @__PURE__ */ s(co, { "data-slot": "popover", ...o });
502
+ }, fe(m), f],
503
+ stateAttributesMapping: St
504
+ });
505
+ return /* @__PURE__ */ a(Oe, {
506
+ context: I,
507
+ openInteractionType: D,
508
+ modal: x,
509
+ disabled: !N || b === q,
510
+ initialFocus: B,
511
+ returnFocus: u,
512
+ restoreFocus: "popup",
513
+ previousFocusableElement: ft(P) ? P : void 0,
514
+ nextFocusableElement: s.context.triggerFocusTargetRef,
515
+ beforeContentFocusGuardRef: s.context.beforeContentFocusGuardRef,
516
+ children: /* @__PURE__ */ a(bt, {
517
+ value: C,
518
+ children: M
519
+ })
520
+ });
521
+ });
522
+ process.env.NODE_ENV !== "production" && (he.displayName = "PopoverPopup");
523
+ const Ce = /* @__PURE__ */ n.forwardRef(function(t, o) {
524
+ const {
525
+ render: d,
526
+ className: l,
527
+ ...c
528
+ } = t, {
529
+ store: u
530
+ } = U(), f = te(c.id);
531
+ return oe(() => (u.set("titleElementId", f), () => {
532
+ u.set("titleElementId", void 0);
533
+ }), [u, f]), K("h2", t, {
534
+ ref: o,
535
+ props: [{
536
+ id: f
537
+ }, c]
538
+ });
539
+ });
540
+ process.env.NODE_ENV !== "production" && (Ce.displayName = "PopoverTitle");
541
+ const Ee = /* @__PURE__ */ n.forwardRef(function(t, o) {
542
+ const {
543
+ render: d,
544
+ className: l,
545
+ ...c
546
+ } = t, {
547
+ store: u
548
+ } = U(), f = te(c.id);
549
+ return oe(() => (u.set("descriptionElementId", f), () => {
550
+ u.set("descriptionElementId", void 0);
551
+ }), [u, f]), K("p", t, {
552
+ ref: o,
553
+ props: [{
554
+ id: f
555
+ }, c]
556
+ });
557
+ });
558
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "PopoverDescription");
559
+ function qt({ ...e }) {
560
+ return /* @__PURE__ */ a(ht, { "data-slot": "popover", ...e });
227
561
  }
228
- function bo({
229
- ...o
230
- }) {
231
- return /* @__PURE__ */ s(po, { "data-slot": "popover-trigger", ...o });
562
+ function Wt({ ...e }) {
563
+ return /* @__PURE__ */ a(ge, { "data-slot": "popover-trigger", ...e });
232
564
  }
233
- function Eo({
234
- className: o,
235
- align: n = "center",
236
- sideOffset: e = 4,
237
- ...a
565
+ function Jt({
566
+ className: e,
567
+ align: t = "center",
568
+ alignOffset: o = 0,
569
+ side: d = "bottom",
570
+ sideOffset: l = 4,
571
+ ...c
238
572
  }) {
239
- return /* @__PURE__ */ s(uo, { children: /* @__PURE__ */ s(
240
- lo,
573
+ return /* @__PURE__ */ a(me, { children: /* @__PURE__ */ a(
574
+ ve,
241
575
  {
242
- align: n,
243
- className: L(
244
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",
245
- o
246
- ),
247
- "data-slot": "popover-content",
248
- sideOffset: e,
249
- ...a
576
+ align: t,
577
+ alignOffset: o,
578
+ className: "isolate z-50",
579
+ side: d,
580
+ sideOffset: l,
581
+ children: /* @__PURE__ */ a(
582
+ he,
583
+ {
584
+ className: $(
585
+ "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-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-popover-foreground text-sm shadow-md outline-hidden ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",
586
+ e
587
+ ),
588
+ "data-slot": "popover-content",
589
+ ...c
590
+ }
591
+ )
250
592
  }
251
593
  ) });
252
594
  }
253
- function Fo({
254
- ...o
595
+ function Qt({ className: e, ...t }) {
596
+ return /* @__PURE__ */ a(
597
+ "div",
598
+ {
599
+ className: $("flex flex-col gap-1 text-sm", e),
600
+ "data-slot": "popover-header",
601
+ ...t
602
+ }
603
+ );
604
+ }
605
+ function Xt({ className: e, ...t }) {
606
+ return /* @__PURE__ */ a(
607
+ Ce,
608
+ {
609
+ className: $("font-medium", e),
610
+ "data-slot": "popover-title",
611
+ ...t
612
+ }
613
+ );
614
+ }
615
+ function Zt({
616
+ className: e,
617
+ ...t
255
618
  }) {
256
- return /* @__PURE__ */ s(io, { "data-slot": "popover-anchor", ...o });
619
+ return /* @__PURE__ */ a(
620
+ Ee,
621
+ {
622
+ className: $("text-muted-foreground", e),
623
+ "data-slot": "popover-description",
624
+ ...t
625
+ }
626
+ );
257
627
  }
258
628
  export {
259
- wo as Popover,
260
- Fo as PopoverAnchor,
261
- Eo as PopoverContent,
262
- bo as PopoverTrigger
629
+ qt as Popover,
630
+ Jt as PopoverContent,
631
+ Zt as PopoverDescription,
632
+ Qt as PopoverHeader,
633
+ Xt as PopoverTitle,
634
+ Wt as PopoverTrigger
263
635
  };