@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,82 +0,0 @@
1
- import * as i from "react";
2
- import { jsx as f, Fragment as g } from "react/jsx-runtime";
3
- function d(e, n) {
4
- if (typeof e == "function")
5
- return e(n);
6
- e != null && (e.current = n);
7
- }
8
- function m(...e) {
9
- return (n) => {
10
- let r = !1;
11
- const o = e.map((t) => {
12
- const l = d(t, n);
13
- return !r && typeof l == "function" && (r = !0), l;
14
- });
15
- if (r)
16
- return () => {
17
- for (let t = 0; t < o.length; t++) {
18
- const l = o[t];
19
- typeof l == "function" ? l() : d(e[t], null);
20
- }
21
- };
22
- };
23
- }
24
- function x(...e) {
25
- return i.useCallback(m(...e), e);
26
- }
27
- // @__NO_SIDE_EFFECTS__
28
- function C(e) {
29
- const n = /* @__PURE__ */ b(e), r = i.forwardRef((o, t) => {
30
- const { children: l, ...a } = o, s = i.Children.toArray(l), c = s.find(E);
31
- if (c) {
32
- const u = c.props.children, S = s.map((p) => p === c ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : p);
33
- return /* @__PURE__ */ f(n, { ...a, ref: t, children: i.isValidElement(u) ? i.cloneElement(u, void 0, S) : null });
34
- }
35
- return /* @__PURE__ */ f(n, { ...a, ref: t, children: l });
36
- });
37
- return r.displayName = `${e}.Slot`, r;
38
- }
39
- var I = /* @__PURE__ */ C("Slot");
40
- // @__NO_SIDE_EFFECTS__
41
- function b(e) {
42
- const n = i.forwardRef((r, o) => {
43
- const { children: t, ...l } = r;
44
- if (i.isValidElement(t)) {
45
- const a = h(t), s = R(l, t.props);
46
- return t.type !== i.Fragment && (s.ref = o ? m(o, a) : a), i.cloneElement(t, s);
47
- }
48
- return i.Children.count(t) > 1 ? i.Children.only(null) : null;
49
- });
50
- return n.displayName = `${e}.SlotClone`, n;
51
- }
52
- var y = /* @__PURE__ */ Symbol("radix.slottable");
53
- // @__NO_SIDE_EFFECTS__
54
- function V(e) {
55
- const n = ({ children: r }) => /* @__PURE__ */ f(g, { children: r });
56
- return n.displayName = `${e}.Slottable`, n.__radixId = y, n;
57
- }
58
- function E(e) {
59
- return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === y;
60
- }
61
- function R(e, n) {
62
- const r = { ...n };
63
- for (const o in n) {
64
- const t = e[o], l = n[o];
65
- /^on[A-Z]/.test(o) ? t && l ? r[o] = (...s) => {
66
- const c = l(...s);
67
- return t(...s), c;
68
- } : t && (r[o] = t) : o === "style" ? r[o] = { ...t, ...l } : o === "className" && (r[o] = [t, l].filter(Boolean).join(" "));
69
- }
70
- return { ...e, ...r };
71
- }
72
- function h(e) {
73
- let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = n && "isReactWarning" in n && n.isReactWarning;
74
- return r ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
75
- }
76
- export {
77
- I as S,
78
- V as a,
79
- m as b,
80
- C as c,
81
- x as u
82
- };
@@ -1,68 +0,0 @@
1
- import * as u from "react";
2
- import { jsx as C } from "react/jsx-runtime";
3
- function $(t, c) {
4
- const n = u.createContext(c), p = (r) => {
5
- const { children: e, ...o } = r, s = u.useMemo(() => o, Object.values(o));
6
- return /* @__PURE__ */ C(n.Provider, { value: s, children: e });
7
- };
8
- p.displayName = t + "Provider";
9
- function i(r) {
10
- const e = u.useContext(n);
11
- if (e) return e;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${t}\``);
14
- }
15
- return [p, i];
16
- }
17
- function w(t, c = []) {
18
- let n = [];
19
- function p(r, e) {
20
- const o = u.createContext(e), s = n.length;
21
- n = [...n, e];
22
- const d = (x) => {
23
- const { scope: m, children: v, ...a } = x, S = m?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
24
- return /* @__PURE__ */ C(S.Provider, { value: h, children: v });
25
- };
26
- d.displayName = r + "Provider";
27
- function f(x, m) {
28
- const v = m?.[t]?.[s] || o, a = u.useContext(v);
29
- if (a) return a;
30
- if (e !== void 0) return e;
31
- throw new Error(`\`${x}\` must be used within \`${r}\``);
32
- }
33
- return [d, f];
34
- }
35
- const i = () => {
36
- const r = n.map((e) => u.createContext(e));
37
- return function(o) {
38
- const s = o?.[t] || r;
39
- return u.useMemo(
40
- () => ({ [`__scope${t}`]: { ...o, [t]: s } }),
41
- [o, s]
42
- );
43
- };
44
- };
45
- return i.scopeName = t, [p, P(i, ...c)];
46
- }
47
- function P(...t) {
48
- const c = t[0];
49
- if (t.length === 1) return c;
50
- const n = () => {
51
- const p = t.map((i) => ({
52
- useScope: i(),
53
- scopeName: i.scopeName
54
- }));
55
- return function(r) {
56
- const e = p.reduce((o, { useScope: s, scopeName: d }) => {
57
- const x = s(r)[`__scope${d}`];
58
- return { ...o, ...x };
59
- }, {});
60
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
61
- };
62
- };
63
- return n.scopeName = c.scopeName, n;
64
- }
65
- export {
66
- $ as a,
67
- w as c
68
- };
@@ -1,49 +0,0 @@
1
- import r from "react";
2
- import { c as y } from "./index-DFZozV_h.js";
3
- import { u as M, c as x } from "./index-D2LZVjSn.js";
4
- import { jsx as d } from "react/jsx-runtime";
5
- function D(s) {
6
- const f = s + "CollectionProvider", [A, N] = y(f), [_, m] = A(
7
- f,
8
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
9
- ), p = (c) => {
10
- const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
11
- return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
12
- };
13
- p.displayName = f;
14
- const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
15
- (c, e) => {
16
- const { scope: l, children: o } = c, t = m(a, l), n = M(e, t.collectionRef);
17
- return /* @__PURE__ */ d(E, { ref: n, children: o });
18
- }
19
- );
20
- C.displayName = a;
21
- const u = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(u), I = r.forwardRef(
22
- (c, e) => {
23
- const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = m(u, l);
24
- return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => {
25
- i.itemMap.delete(n);
26
- })), /* @__PURE__ */ d(T, { [R]: "", ref: S, children: o });
27
- }
28
- );
29
- I.displayName = u;
30
- function O(c) {
31
- const e = m(s + "CollectionConsumer", c);
32
- return r.useCallback(() => {
33
- const o = e.collectionRef.current;
34
- if (!o) return [];
35
- const t = Array.from(o.querySelectorAll(`[${R}]`));
36
- return Array.from(e.itemMap.values()).sort(
37
- (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
38
- );
39
- }, [e.collectionRef, e.itemMap]);
40
- }
41
- return [
42
- { Provider: p, Slot: C, ItemSlot: I },
43
- O,
44
- N
45
- ];
46
- }
47
- export {
48
- D as c
49
- };
@@ -1,36 +0,0 @@
1
- import * as c from "react";
2
- import * as f from "react-dom";
3
- import { c as p } from "./index-D2LZVjSn.js";
4
- import { jsx as l } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], h = u.reduce((t, i) => {
24
- const o = p(`Primitive.${i}`), r = c.forwardRef((e, s) => {
25
- const { asChild: a, ...m } = e, n = a ? o : i;
26
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...m, ref: s });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
30
- function w(t, i) {
31
- t && f.flushSync(() => t.dispatchEvent(i));
32
- }
33
- export {
34
- h as P,
35
- w as d
36
- };
@@ -1,144 +0,0 @@
1
- import * as r from "react";
2
- import { c as p } from "./index-B695uy69.js";
3
- import { P as h, d as k } from "./index-DLohNuco.js";
4
- import { u as T } from "./index-D2LZVjSn.js";
5
- import { u as b } from "./index-0ioNhtNM.js";
6
- import { jsx as P } from "react/jsx-runtime";
7
- import M from "react-dom";
8
- import { u as U } from "./index-CCKe-Mpx.js";
9
- function z(n, e = globalThis?.document) {
10
- const t = b(n);
11
- r.useEffect(() => {
12
- const o = (s) => {
13
- s.key === "Escape" && t(s);
14
- };
15
- return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
16
- }, [t, e]);
17
- }
18
- var H = "DismissableLayer", y = "dismissableLayer.update", K = "dismissableLayer.pointerDownOutside", j = "dismissableLayer.focusOutside", R, B = r.createContext({
19
- layers: /* @__PURE__ */ new Set(),
20
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
21
- branches: /* @__PURE__ */ new Set()
22
- }), X = r.forwardRef(
23
- (n, e) => {
24
- const {
25
- disableOutsidePointerEvents: t = !1,
26
- onEscapeKeyDown: o,
27
- onPointerDownOutside: s,
28
- onFocusOutside: a,
29
- onInteractOutside: d,
30
- onDismiss: l,
31
- ...E
32
- } = n, c = r.useContext(B), [u, F] = r.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, I] = r.useState({}), S = T(e, (i) => F(i)), D = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = D.indexOf(A), O = u ? D.indexOf(u) : -1, W = c.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= N, _ = G((i) => {
33
- const v = i.target, w = [...c.branches].some((m) => m.contains(v));
34
- !L || w || (s?.(i), d?.(i), i.defaultPrevented || l?.());
35
- }, f), C = J((i) => {
36
- const v = i.target;
37
- [...c.branches].some((m) => m.contains(v)) || (a?.(i), d?.(i), i.defaultPrevented || l?.());
38
- }, f);
39
- return z((i) => {
40
- O === c.layers.size - 1 && (o?.(i), !i.defaultPrevented && l && (i.preventDefault(), l()));
41
- }, f), r.useEffect(() => {
42
- if (u)
43
- return t && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (R = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), g(), () => {
44
- t && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = R);
45
- };
46
- }, [u, f, t, c]), r.useEffect(() => () => {
47
- u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), g());
48
- }, [u, c]), r.useEffect(() => {
49
- const i = () => I({});
50
- return document.addEventListener(y, i), () => document.removeEventListener(y, i);
51
- }, []), /* @__PURE__ */ P(
52
- h.div,
53
- {
54
- ...E,
55
- ref: S,
56
- style: {
57
- pointerEvents: W ? L ? "auto" : "none" : void 0,
58
- ...n.style
59
- },
60
- onFocusCapture: p(n.onFocusCapture, C.onFocusCapture),
61
- onBlurCapture: p(n.onBlurCapture, C.onBlurCapture),
62
- onPointerDownCapture: p(
63
- n.onPointerDownCapture,
64
- _.onPointerDownCapture
65
- )
66
- }
67
- );
68
- }
69
- );
70
- X.displayName = H;
71
- var Y = "DismissableLayerBranch", q = r.forwardRef((n, e) => {
72
- const t = r.useContext(B), o = r.useRef(null), s = T(e, o);
73
- return r.useEffect(() => {
74
- const a = o.current;
75
- if (a)
76
- return t.branches.add(a), () => {
77
- t.branches.delete(a);
78
- };
79
- }, [t.branches]), /* @__PURE__ */ P(h.div, { ...n, ref: s });
80
- });
81
- q.displayName = Y;
82
- function G(n, e = globalThis?.document) {
83
- const t = b(n), o = r.useRef(!1), s = r.useRef(() => {
84
- });
85
- return r.useEffect(() => {
86
- const a = (l) => {
87
- if (l.target && !o.current) {
88
- let E = function() {
89
- x(
90
- K,
91
- t,
92
- c,
93
- { discrete: !0 }
94
- );
95
- };
96
- const c = { originalEvent: l };
97
- l.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = E, e.addEventListener("click", s.current, { once: !0 })) : E();
98
- } else
99
- e.removeEventListener("click", s.current);
100
- o.current = !1;
101
- }, d = window.setTimeout(() => {
102
- e.addEventListener("pointerdown", a);
103
- }, 0);
104
- return () => {
105
- window.clearTimeout(d), e.removeEventListener("pointerdown", a), e.removeEventListener("click", s.current);
106
- };
107
- }, [e, t]), {
108
- // ensures we check React component tree (not just DOM tree)
109
- onPointerDownCapture: () => o.current = !0
110
- };
111
- }
112
- function J(n, e = globalThis?.document) {
113
- const t = b(n), o = r.useRef(!1);
114
- return r.useEffect(() => {
115
- const s = (a) => {
116
- a.target && !o.current && x(j, t, { originalEvent: a }, {
117
- discrete: !1
118
- });
119
- };
120
- return e.addEventListener("focusin", s), () => e.removeEventListener("focusin", s);
121
- }, [e, t]), {
122
- onFocusCapture: () => o.current = !0,
123
- onBlurCapture: () => o.current = !1
124
- };
125
- }
126
- function g() {
127
- const n = new CustomEvent(y);
128
- document.dispatchEvent(n);
129
- }
130
- function x(n, e, t, { discrete: o }) {
131
- const s = t.originalEvent.target, a = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
132
- e && s.addEventListener(n, e, { once: !0 }), o ? k(s, a) : s.dispatchEvent(a);
133
- }
134
- var Q = "Portal", V = r.forwardRef((n, e) => {
135
- const { container: t, ...o } = n, [s, a] = r.useState(!1);
136
- U(() => a(!0), []);
137
- const d = t || s && globalThis?.document?.body;
138
- return d ? M.createPortal(/* @__PURE__ */ P(h.div, { ...o, ref: e }), d) : null;
139
- });
140
- V.displayName = Q;
141
- export {
142
- X as D,
143
- V as P
144
- };
@@ -1,119 +0,0 @@
1
- import * as o from "react";
2
- import { c as O } from "./index-B695uy69.js";
3
- import { c as S } from "./index-DFZozV_h.js";
4
- import { u as D } from "./index-437EL2iq.js";
5
- import { u as M } from "./index-CCKe-Mpx.js";
6
- import { u as L } from "./index-D2LZVjSn.js";
7
- import { P as v } from "./index-DLohNuco.js";
8
- import { P as k } from "./index-BaLuVb4t.js";
9
- import { u as F } from "./index-Cv867SGx.js";
10
- import { jsx as c } from "react/jsx-runtime";
11
- var f = "Collapsible", [B, W] = S(f), [G, g] = B(f), T = o.forwardRef(
12
- (e, r) => {
13
- const {
14
- __scopeCollapsible: s,
15
- open: a,
16
- defaultOpen: t,
17
- disabled: l,
18
- onOpenChange: i,
19
- ...m
20
- } = e, [d, p] = D({
21
- prop: a,
22
- defaultProp: t ?? !1,
23
- onChange: i,
24
- caller: f
25
- });
26
- return /* @__PURE__ */ c(
27
- G,
28
- {
29
- scope: s,
30
- disabled: l,
31
- contentId: F(),
32
- open: d,
33
- onOpenToggle: o.useCallback(() => p((C) => !C), [p]),
34
- children: /* @__PURE__ */ c(
35
- v.div,
36
- {
37
- "data-state": h(d),
38
- "data-disabled": l ? "" : void 0,
39
- ...m,
40
- ref: r
41
- }
42
- )
43
- }
44
- );
45
- }
46
- );
47
- T.displayName = f;
48
- var w = "CollapsibleTrigger", A = o.forwardRef(
49
- (e, r) => {
50
- const { __scopeCollapsible: s, ...a } = e, t = g(w, s);
51
- return /* @__PURE__ */ c(
52
- v.button,
53
- {
54
- type: "button",
55
- "aria-controls": t.contentId,
56
- "aria-expanded": t.open || !1,
57
- "data-state": h(t.open),
58
- "data-disabled": t.disabled ? "" : void 0,
59
- disabled: t.disabled,
60
- ...a,
61
- ref: r,
62
- onClick: O(e.onClick, t.onOpenToggle)
63
- }
64
- );
65
- }
66
- );
67
- A.displayName = w;
68
- var R = "CollapsibleContent", I = o.forwardRef(
69
- (e, r) => {
70
- const { forceMount: s, ...a } = e, t = g(R, e.__scopeCollapsible);
71
- return /* @__PURE__ */ c(k, { present: s || t.open, children: ({ present: l }) => /* @__PURE__ */ c($, { ...a, ref: r, present: l }) });
72
- }
73
- );
74
- I.displayName = R;
75
- var $ = o.forwardRef((e, r) => {
76
- const { __scopeCollapsible: s, present: a, children: t, ...l } = e, i = g(R, s), [m, d] = o.useState(a), p = o.useRef(null), C = L(r, p), P = o.useRef(0), y = P.current, x = o.useRef(0), N = x.current, b = i.open || m, _ = o.useRef(b), u = o.useRef(void 0);
77
- return o.useEffect(() => {
78
- const n = requestAnimationFrame(() => _.current = !1);
79
- return () => cancelAnimationFrame(n);
80
- }, []), M(() => {
81
- const n = p.current;
82
- if (n) {
83
- u.current = u.current || {
84
- transitionDuration: n.style.transitionDuration,
85
- animationName: n.style.animationName
86
- }, n.style.transitionDuration = "0s", n.style.animationName = "none";
87
- const E = n.getBoundingClientRect();
88
- P.current = E.height, x.current = E.width, _.current || (n.style.transitionDuration = u.current.transitionDuration, n.style.animationName = u.current.animationName), d(a);
89
- }
90
- }, [i.open, a]), /* @__PURE__ */ c(
91
- v.div,
92
- {
93
- "data-state": h(i.open),
94
- "data-disabled": i.disabled ? "" : void 0,
95
- id: i.contentId,
96
- hidden: !b,
97
- ...l,
98
- ref: C,
99
- style: {
100
- "--radix-collapsible-content-height": y ? `${y}px` : void 0,
101
- "--radix-collapsible-content-width": N ? `${N}px` : void 0,
102
- ...e.style
103
- },
104
- children: b && t
105
- }
106
- );
107
- });
108
- function h(e) {
109
- return e ? "open" : "closed";
110
- }
111
- var X = T, Y = A, Z = I;
112
- export {
113
- A as C,
114
- X as R,
115
- Y as T,
116
- I as a,
117
- Z as b,
118
- W as c
119
- };
@@ -1,181 +0,0 @@
1
- import * as s from "react";
2
- import { c as p } from "./index-B695uy69.js";
3
- import { c as V } from "./index-DJQkmo5O.js";
4
- import { u as j } from "./index-D2LZVjSn.js";
5
- import { c as z } from "./index-DFZozV_h.js";
6
- import { u as q } from "./index-Cv867SGx.js";
7
- import { P as G } from "./index-DLohNuco.js";
8
- import { u as J } from "./index-0ioNhtNM.js";
9
- import { u as Q } from "./index-437EL2iq.js";
10
- import { u as W } from "./index-ByaXH_ih.js";
11
- import { jsx as d } from "react/jsx-runtime";
12
- var y = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [P, N, Z] = V(I), [$, Fe] = z(
13
- I,
14
- [Z]
15
- ), [ee, oe] = $(I), O = s.forwardRef(
16
- (e, r) => /* @__PURE__ */ d(P.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(P.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(te, { ...e, ref: r }) }) })
17
- );
18
- O.displayName = I;
19
- var te = s.forwardRef((e, r) => {
20
- const {
21
- __scopeRovingFocusGroup: c,
22
- orientation: o,
23
- loop: T = !1,
24
- dir: w,
25
- currentTabStopId: v,
26
- defaultCurrentTabStopId: C,
27
- onCurrentTabStopIdChange: S,
28
- onEntryFocus: m,
29
- preventScrollOnEntryFocus: a = !1,
30
- ...b
31
- } = e, F = s.useRef(null), g = j(r, F), R = W(w), [E, t] = Q({
32
- prop: v,
33
- defaultProp: C ?? null,
34
- onChange: S,
35
- caller: I
36
- }), [i, h] = s.useState(!1), u = J(m), l = N(c), A = s.useRef(!1), [L, D] = s.useState(0);
37
- return s.useEffect(() => {
38
- const n = F.current;
39
- if (n)
40
- return n.addEventListener(y, u), () => n.removeEventListener(y, u);
41
- }, [u]), /* @__PURE__ */ d(
42
- ee,
43
- {
44
- scope: c,
45
- orientation: o,
46
- dir: R,
47
- loop: T,
48
- currentTabStopId: E,
49
- onItemFocus: s.useCallback(
50
- (n) => t(n),
51
- [t]
52
- ),
53
- onItemShiftTab: s.useCallback(() => h(!0), []),
54
- onFocusableItemAdd: s.useCallback(
55
- () => D((n) => n + 1),
56
- []
57
- ),
58
- onFocusableItemRemove: s.useCallback(
59
- () => D((n) => n - 1),
60
- []
61
- ),
62
- children: /* @__PURE__ */ d(
63
- G.div,
64
- {
65
- tabIndex: i || L === 0 ? -1 : 0,
66
- "data-orientation": o,
67
- ...b,
68
- ref: g,
69
- style: { outline: "none", ...e.style },
70
- onMouseDown: p(e.onMouseDown, () => {
71
- A.current = !0;
72
- }),
73
- onFocus: p(e.onFocus, (n) => {
74
- const U = !A.current;
75
- if (n.target === n.currentTarget && U && !i) {
76
- const x = new CustomEvent(y, X);
77
- if (n.currentTarget.dispatchEvent(x), !x.defaultPrevented) {
78
- const _ = l().filter((f) => f.focusable), B = _.find((f) => f.active), Y = _.find((f) => f.id === E), H = [B, Y, ..._].filter(
79
- Boolean
80
- ).map((f) => f.ref.current);
81
- k(H, a);
82
- }
83
- }
84
- A.current = !1;
85
- }),
86
- onBlur: p(e.onBlur, () => h(!1))
87
- }
88
- )
89
- }
90
- );
91
- }), K = "RovingFocusGroupItem", M = s.forwardRef(
92
- (e, r) => {
93
- const {
94
- __scopeRovingFocusGroup: c,
95
- focusable: o = !0,
96
- active: T = !1,
97
- tabStopId: w,
98
- children: v,
99
- ...C
100
- } = e, S = q(), m = w || S, a = oe(K, c), b = a.currentTabStopId === m, F = N(c), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = a;
101
- return s.useEffect(() => {
102
- if (o)
103
- return g(), () => R();
104
- }, [o, g, R]), /* @__PURE__ */ d(
105
- P.ItemSlot,
106
- {
107
- scope: c,
108
- id: m,
109
- focusable: o,
110
- active: T,
111
- children: /* @__PURE__ */ d(
112
- G.span,
113
- {
114
- tabIndex: b ? 0 : -1,
115
- "data-orientation": a.orientation,
116
- ...C,
117
- ref: r,
118
- onMouseDown: p(e.onMouseDown, (t) => {
119
- o ? a.onItemFocus(m) : t.preventDefault();
120
- }),
121
- onFocus: p(e.onFocus, () => a.onItemFocus(m)),
122
- onKeyDown: p(e.onKeyDown, (t) => {
123
- if (t.key === "Tab" && t.shiftKey) {
124
- a.onItemShiftTab();
125
- return;
126
- }
127
- if (t.target !== t.currentTarget) return;
128
- const i = se(t, a.orientation, a.dir);
129
- if (i !== void 0) {
130
- if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
131
- t.preventDefault();
132
- let u = F().filter((l) => l.focusable).map((l) => l.ref.current);
133
- if (i === "last") u.reverse();
134
- else if (i === "prev" || i === "next") {
135
- i === "prev" && u.reverse();
136
- const l = u.indexOf(t.currentTarget);
137
- u = a.loop ? ce(u, l + 1) : u.slice(l + 1);
138
- }
139
- setTimeout(() => k(u));
140
- }
141
- }),
142
- children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
143
- }
144
- )
145
- }
146
- );
147
- }
148
- );
149
- M.displayName = K;
150
- var re = {
151
- ArrowLeft: "prev",
152
- ArrowUp: "prev",
153
- ArrowRight: "next",
154
- ArrowDown: "next",
155
- PageUp: "first",
156
- Home: "first",
157
- PageDown: "last",
158
- End: "last"
159
- };
160
- function ne(e, r) {
161
- return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
162
- }
163
- function se(e, r, c) {
164
- const o = ne(e.key, c);
165
- if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
166
- return re[o];
167
- }
168
- function k(e, r = !1) {
169
- const c = document.activeElement;
170
- for (const o of e)
171
- if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
172
- }
173
- function ce(e, r) {
174
- return e.map((c, o) => e[(r + o) % e.length]);
175
- }
176
- var ge = O, Re = M;
177
- export {
178
- Re as I,
179
- ge as R,
180
- Fe as c
181
- };