@luxfi/ui 8.0.0 → 8.1.0

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 (744) hide show
  1. package/dist/3d-button.cjs +298 -0
  2. package/dist/3d-button.d.ts +52 -0
  3. package/dist/3d-button.d.ts.map +1 -0
  4. package/dist/3d-button.js +273 -0
  5. package/dist/3d-card.cjs +236 -0
  6. package/dist/3d-card.d.ts +29 -0
  7. package/dist/3d-card.d.ts.map +1 -0
  8. package/dist/3d-card.js +209 -0
  9. package/dist/3d-carousel.cjs +375 -0
  10. package/dist/3d-carousel.d.ts +26 -0
  11. package/dist/3d-carousel.d.ts.map +1 -0
  12. package/dist/3d-carousel.js +348 -0
  13. package/dist/3d-grid.cjs +360 -0
  14. package/dist/3d-grid.d.ts +49 -0
  15. package/dist/3d-grid.d.ts.map +1 -0
  16. package/dist/3d-grid.js +335 -0
  17. package/dist/3d-marquee.cjs +8669 -0
  18. package/dist/3d-marquee.d.ts +65 -0
  19. package/dist/3d-marquee.d.ts.map +1 -0
  20. package/dist/3d-marquee.js +8645 -0
  21. package/dist/3d-model-viewer.cjs +909 -0
  22. package/dist/3d-model-viewer.d.ts +45 -0
  23. package/dist/3d-model-viewer.d.ts.map +1 -0
  24. package/dist/3d-model-viewer.js +886 -0
  25. package/dist/3d-pin.cjs +46 -0
  26. package/dist/3d-pin.d.ts +8 -0
  27. package/dist/3d-pin.d.ts.map +1 -0
  28. package/dist/3d-pin.js +24 -0
  29. package/dist/3d-scene.cjs +439 -0
  30. package/dist/3d-scene.d.ts +76 -0
  31. package/dist/3d-scene.d.ts.map +1 -0
  32. package/dist/3d-scene.js +407 -0
  33. package/dist/3d-text.cjs +367 -0
  34. package/dist/3d-text.d.ts +62 -0
  35. package/dist/3d-text.d.ts.map +1 -0
  36. package/dist/3d-text.js +341 -0
  37. package/dist/advanced-chart.cjs +53 -0
  38. package/dist/advanced-chart.d.ts +6 -0
  39. package/dist/advanced-chart.d.ts.map +1 -0
  40. package/dist/advanced-chart.js +51 -0
  41. package/dist/advanced-navigation-bar.cjs +459 -0
  42. package/dist/advanced-navigation-bar.d.ts +14 -0
  43. package/dist/advanced-navigation-bar.d.ts.map +1 -0
  44. package/dist/advanced-navigation-bar.js +437 -0
  45. package/dist/ai-actions.cjs +57 -0
  46. package/dist/ai-actions.d.ts +14 -0
  47. package/dist/ai-actions.d.ts.map +1 -0
  48. package/dist/ai-actions.js +35 -0
  49. package/dist/ai-agents.cjs +1764 -0
  50. package/dist/ai-agents.d.ts +56 -0
  51. package/dist/ai-agents.d.ts.map +1 -0
  52. package/dist/ai-agents.js +1740 -0
  53. package/dist/ai-assistant.cjs +907 -0
  54. package/dist/ai-assistant.d.ts +28 -0
  55. package/dist/ai-assistant.d.ts.map +1 -0
  56. package/dist/ai-assistant.js +886 -0
  57. package/dist/ai-chat.cjs +1165 -0
  58. package/dist/ai-chat.d.ts +56 -0
  59. package/dist/ai-chat.d.ts.map +1 -0
  60. package/dist/ai-chat.js +1141 -0
  61. package/dist/ai-code.cjs +1866 -0
  62. package/dist/ai-code.d.ts +58 -0
  63. package/dist/ai-code.d.ts.map +1 -0
  64. package/dist/ai-code.js +1841 -0
  65. package/dist/ai-model-selector-navigation-bar.cjs +59 -0
  66. package/dist/ai-model-selector-navigation-bar.d.ts +15 -0
  67. package/dist/ai-model-selector-navigation-bar.d.ts.map +1 -0
  68. package/dist/ai-model-selector-navigation-bar.js +37 -0
  69. package/dist/ai-models.cjs +41 -0
  70. package/dist/ai-models.d.ts +15 -0
  71. package/dist/ai-models.d.ts.map +1 -0
  72. package/dist/ai-models.js +19 -0
  73. package/dist/ai-playground.cjs +1110 -0
  74. package/dist/ai-playground.d.ts +66 -0
  75. package/dist/ai-playground.d.ts.map +1 -0
  76. package/dist/ai-playground.js +1088 -0
  77. package/dist/ai-tools.cjs +1043 -0
  78. package/dist/ai-tools.d.ts +23 -0
  79. package/dist/ai-tools.d.ts.map +1 -0
  80. package/dist/ai-tools.js +1022 -0
  81. package/dist/ai-vision.cjs +1831 -0
  82. package/dist/ai-vision.d.ts +74 -0
  83. package/dist/ai-vision.d.ts.map +1 -0
  84. package/dist/ai-vision.js +1810 -0
  85. package/dist/ai-voice-settings.cjs +1511 -0
  86. package/dist/ai-voice-settings.d.ts +100 -0
  87. package/dist/ai-voice-settings.d.ts.map +1 -0
  88. package/dist/ai-voice-settings.js +1478 -0
  89. package/dist/ai-voice.cjs +1522 -0
  90. package/dist/ai-voice.d.ts +72 -0
  91. package/dist/ai-voice.d.ts.map +1 -0
  92. package/dist/ai-voice.js +1501 -0
  93. package/dist/alert.cjs +13 -142
  94. package/dist/alert.js +14 -143
  95. package/dist/android.cjs +127 -0
  96. package/dist/android.d.ts +19 -0
  97. package/dist/android.d.ts.map +1 -0
  98. package/dist/android.js +104 -0
  99. package/dist/animated-background.cjs +8830 -0
  100. package/dist/animated-background.d.ts +103 -0
  101. package/dist/animated-background.d.ts.map +1 -0
  102. package/dist/animated-background.js +8824 -0
  103. package/dist/animated-beam.cjs +8438 -0
  104. package/dist/animated-beam.d.ts +15 -0
  105. package/dist/animated-beam.d.ts.map +1 -0
  106. package/dist/animated-beam.js +8417 -0
  107. package/dist/animated-cursor.cjs +269 -0
  108. package/dist/animated-cursor.d.ts +70 -0
  109. package/dist/animated-cursor.d.ts.map +1 -0
  110. package/dist/animated-cursor.js +264 -0
  111. package/dist/animated-icon.cjs +8927 -0
  112. package/dist/animated-icon.d.ts +119 -0
  113. package/dist/animated-icon.d.ts.map +1 -0
  114. package/dist/animated-icon.js +8902 -0
  115. package/dist/animated-list.cjs +9226 -0
  116. package/dist/animated-list.d.ts +126 -0
  117. package/dist/animated-list.d.ts.map +1 -0
  118. package/dist/animated-list.js +9201 -0
  119. package/dist/animated-number.cjs +8773 -0
  120. package/dist/animated-number.d.ts +127 -0
  121. package/dist/animated-number.d.ts.map +1 -0
  122. package/dist/animated-number.js +8767 -0
  123. package/dist/animated-testimonials.cjs +8653 -0
  124. package/dist/animated-testimonials.d.ts +17 -0
  125. package/dist/animated-testimonials.d.ts.map +1 -0
  126. package/dist/animated-testimonials.js +8632 -0
  127. package/dist/animated-text.cjs +8914 -0
  128. package/dist/animated-text.d.ts +65 -0
  129. package/dist/animated-text.d.ts.map +1 -0
  130. package/dist/animated-text.js +8890 -0
  131. package/dist/animated-tooltip.cjs +8624 -0
  132. package/dist/animated-tooltip.d.ts +9 -0
  133. package/dist/animated-tooltip.d.ts.map +1 -0
  134. package/dist/animated-tooltip.js +8603 -0
  135. package/dist/announcement.cjs +465 -0
  136. package/dist/announcement.d.ts +9 -0
  137. package/dist/announcement.d.ts.map +1 -0
  138. package/dist/announcement.js +443 -0
  139. package/dist/app-switcher-navigation-bar.cjs +470 -0
  140. package/dist/app-switcher-navigation-bar.d.ts +15 -0
  141. package/dist/app-switcher-navigation-bar.d.ts.map +1 -0
  142. package/dist/app-switcher-navigation-bar.js +448 -0
  143. package/dist/apple-cards-carousel.cjs +9356 -0
  144. package/dist/apple-cards-carousel.d.ts +36 -0
  145. package/dist/apple-cards-carousel.d.ts.map +1 -0
  146. package/dist/apple-cards-carousel.js +9334 -0
  147. package/dist/apple-hello-effect.cjs +8380 -0
  148. package/dist/apple-hello-effect.d.ts +8 -0
  149. package/dist/apple-hello-effect.d.ts.map +1 -0
  150. package/dist/apple-hello-effect.js +8359 -0
  151. package/dist/auth.cjs +6 -5
  152. package/dist/auth.d.ts.map +1 -1
  153. package/dist/auth.js +6 -5
  154. package/dist/badge.cjs +28 -164
  155. package/dist/badge.d.ts +2 -5
  156. package/dist/badge.d.ts.map +1 -1
  157. package/dist/badge.js +29 -165
  158. package/dist/bank.d.ts +6 -6
  159. package/dist/banner.cjs +78 -0
  160. package/dist/banner.d.ts +20 -0
  161. package/dist/banner.d.ts.map +1 -0
  162. package/dist/banner.js +55 -0
  163. package/dist/breadcrumb-and-filters-navigation-bar.cjs +51 -0
  164. package/dist/breadcrumb-and-filters-navigation-bar.d.ts +10 -0
  165. package/dist/breadcrumb-and-filters-navigation-bar.d.ts.map +1 -0
  166. package/dist/breadcrumb-and-filters-navigation-bar.js +29 -0
  167. package/dist/breadcrumb-navigation-bar.cjs +37 -0
  168. package/dist/breadcrumb-navigation-bar.d.ts +10 -0
  169. package/dist/breadcrumb-navigation-bar.d.ts.map +1 -0
  170. package/dist/breadcrumb-navigation-bar.js +15 -0
  171. package/dist/button.cjs +21 -150
  172. package/dist/button.d.ts +1 -1
  173. package/dist/button.d.ts.map +1 -1
  174. package/dist/button.js +21 -150
  175. package/dist/calendar.cjs +55 -0
  176. package/dist/calendar.d.ts +9 -0
  177. package/dist/calendar.d.ts.map +1 -0
  178. package/dist/calendar.js +53 -0
  179. package/dist/centered-logo-navigation-bar.cjs +37 -0
  180. package/dist/centered-logo-navigation-bar.d.ts +15 -0
  181. package/dist/centered-logo-navigation-bar.d.ts.map +1 -0
  182. package/dist/centered-logo-navigation-bar.js +15 -0
  183. package/dist/chart.cjs +266 -0
  184. package/dist/chart.d.ts +52 -0
  185. package/dist/chart.d.ts.map +1 -0
  186. package/dist/chart.js +238 -0
  187. package/dist/choicebox.cjs +77 -0
  188. package/dist/choicebox.d.ts +15 -0
  189. package/dist/choicebox.d.ts.map +1 -0
  190. package/dist/choicebox.js +55 -0
  191. package/dist/chrome.cjs +36 -30
  192. package/dist/chrome.d.ts.map +1 -1
  193. package/dist/chrome.js +37 -31
  194. package/dist/code-block.cjs +871 -0
  195. package/dist/code-block.d.ts +38 -0
  196. package/dist/code-block.d.ts.map +1 -0
  197. package/dist/code-block.js +849 -0
  198. package/dist/code-compare.cjs +1714 -0
  199. package/dist/code-compare.d.ts +46 -0
  200. package/dist/code-compare.d.ts.map +1 -0
  201. package/dist/code-compare.js +1692 -0
  202. package/dist/code-diff.cjs +1073 -0
  203. package/dist/code-diff.d.ts +42 -0
  204. package/dist/code-diff.d.ts.map +1 -0
  205. package/dist/code-diff.js +1051 -0
  206. package/dist/code-editor.cjs +641 -0
  207. package/dist/code-editor.d.ts +23 -0
  208. package/dist/code-editor.d.ts.map +1 -0
  209. package/dist/code-editor.js +616 -0
  210. package/dist/code-explorer.cjs +729 -0
  211. package/dist/code-explorer.d.ts +41 -0
  212. package/dist/code-explorer.d.ts.map +1 -0
  213. package/dist/code-explorer.js +707 -0
  214. package/dist/code-preview.cjs +1349 -0
  215. package/dist/code-preview.d.ts +38 -0
  216. package/dist/code-preview.d.ts.map +1 -0
  217. package/dist/code-preview.js +1327 -0
  218. package/dist/code-snippet.cjs +920 -0
  219. package/dist/code-snippet.d.ts +48 -0
  220. package/dist/code-snippet.d.ts.map +1 -0
  221. package/dist/code-snippet.js +897 -0
  222. package/dist/code-tabs.cjs +76 -0
  223. package/dist/code-tabs.d.ts +12 -0
  224. package/dist/code-tabs.d.ts.map +1 -0
  225. package/dist/code-tabs.js +54 -0
  226. package/dist/code-terminal.cjs +894 -0
  227. package/dist/code-terminal.d.ts +48 -0
  228. package/dist/code-terminal.d.ts.map +1 -0
  229. package/dist/code-terminal.js +872 -0
  230. package/dist/collaboration-navigation-bar.cjs +49 -0
  231. package/dist/collaboration-navigation-bar.d.ts +11 -0
  232. package/dist/collaboration-navigation-bar.d.ts.map +1 -0
  233. package/dist/collaboration-navigation-bar.js +27 -0
  234. package/dist/collapsible.cjs +34 -155
  235. package/dist/collapsible.d.ts.map +1 -1
  236. package/dist/collapsible.js +34 -155
  237. package/dist/color-picker.cjs +516 -0
  238. package/dist/color-picker.d.ts +10 -0
  239. package/dist/color-picker.d.ts.map +1 -0
  240. package/dist/color-picker.js +495 -0
  241. package/dist/combobox.cjs +488 -0
  242. package/dist/combobox.d.ts +13 -0
  243. package/dist/combobox.d.ts.map +1 -0
  244. package/dist/combobox.js +466 -0
  245. package/dist/communication-navigation-bar.cjs +438 -0
  246. package/dist/communication-navigation-bar.d.ts +7 -0
  247. package/dist/communication-navigation-bar.d.ts.map +1 -0
  248. package/dist/communication-navigation-bar.js +416 -0
  249. package/dist/company-profile.cjs +46 -0
  250. package/dist/company-profile.d.ts +10 -0
  251. package/dist/company-profile.d.ts.map +1 -0
  252. package/dist/company-profile.js +44 -0
  253. package/dist/comparison.cjs +60 -0
  254. package/dist/comparison.d.ts +16 -0
  255. package/dist/comparison.d.ts.map +1 -0
  256. package/dist/comparison.js +38 -0
  257. package/dist/context-switcher-navigation-bar.cjs +51 -0
  258. package/dist/context-switcher-navigation-bar.d.ts +10 -0
  259. package/dist/context-switcher-navigation-bar.d.ts.map +1 -0
  260. package/dist/context-switcher-navigation-bar.js +29 -0
  261. package/dist/credit-card.cjs +77 -0
  262. package/dist/credit-card.d.ts +11 -0
  263. package/dist/credit-card.d.ts.map +1 -0
  264. package/dist/credit-card.js +55 -0
  265. package/dist/crypto-screener.cjs +43 -0
  266. package/dist/crypto-screener.d.ts +4 -0
  267. package/dist/crypto-screener.d.ts.map +1 -0
  268. package/dist/crypto-screener.js +41 -0
  269. package/dist/cursor.cjs +71 -0
  270. package/dist/cursor.d.ts +9 -0
  271. package/dist/cursor.d.ts.map +1 -0
  272. package/dist/cursor.js +49 -0
  273. package/dist/dashboard-navigation-bar.cjs +441 -0
  274. package/dist/dashboard-navigation-bar.d.ts +11 -0
  275. package/dist/dashboard-navigation-bar.d.ts.map +1 -0
  276. package/dist/dashboard-navigation-bar.js +419 -0
  277. package/dist/dialog-stack.cjs +460 -0
  278. package/dist/dialog-stack.d.ts +13 -0
  279. package/dist/dialog-stack.d.ts.map +1 -0
  280. package/dist/dialog-stack.js +438 -0
  281. package/dist/dialog.cjs +12 -11
  282. package/dist/dialog.d.ts +1 -1
  283. package/dist/dialog.d.ts.map +1 -1
  284. package/dist/dialog.js +12 -11
  285. package/dist/direction.cjs +26 -0
  286. package/dist/direction.d.ts +20 -0
  287. package/dist/direction.d.ts.map +1 -0
  288. package/dist/direction.js +23 -0
  289. package/dist/dock.cjs +8675 -0
  290. package/dist/dock.d.ts +20 -0
  291. package/dist/dock.d.ts.map +1 -0
  292. package/dist/dock.js +8653 -0
  293. package/dist/dropzone.cjs +116 -0
  294. package/dist/dropzone.d.ts +11 -0
  295. package/dist/dropzone.d.ts.map +1 -0
  296. package/dist/dropzone.js +94 -0
  297. package/dist/e-commerce-navigation-bar.cjs +442 -0
  298. package/dist/e-commerce-navigation-bar.d.ts +12 -0
  299. package/dist/e-commerce-navigation-bar.d.ts.map +1 -0
  300. package/dist/e-commerce-navigation-bar.js +420 -0
  301. package/dist/editor.cjs +497 -0
  302. package/dist/editor.d.ts +9 -0
  303. package/dist/editor.d.ts.map +1 -0
  304. package/dist/editor.js +475 -0
  305. package/dist/empty.cjs +117 -0
  306. package/dist/empty.d.ts +18 -0
  307. package/dist/empty.d.ts.map +1 -0
  308. package/dist/empty.js +110 -0
  309. package/dist/engine.cjs +91 -0
  310. package/dist/engine.js +86 -0
  311. package/dist/field.cjs +2 -1
  312. package/dist/field.d.ts.map +1 -1
  313. package/dist/field.js +3 -2
  314. package/dist/financials.cjs +66 -0
  315. package/dist/financials.d.ts +12 -0
  316. package/dist/financials.d.ts.map +1 -0
  317. package/dist/financials.js +64 -0
  318. package/dist/forex-screener.cjs +44 -0
  319. package/dist/forex-screener.d.ts +4 -0
  320. package/dist/forex-screener.d.ts.map +1 -0
  321. package/dist/forex-screener.js +42 -0
  322. package/dist/gantt.cjs +65 -0
  323. package/dist/gantt.d.ts +13 -0
  324. package/dist/gantt.d.ts.map +1 -0
  325. package/dist/gantt.js +43 -0
  326. package/dist/grid-pattern.cjs +327 -0
  327. package/dist/grid-pattern.d.ts +111 -0
  328. package/dist/grid-pattern.d.ts.map +1 -0
  329. package/dist/grid-pattern.js +304 -0
  330. package/dist/hooks/use-mobile.d.ts +3 -0
  331. package/dist/hooks/use-mobile.d.ts.map +1 -0
  332. package/dist/icon-button.cjs +13 -142
  333. package/dist/icon-button.js +14 -143
  334. package/dist/icon-navigation-bar.cjs +48 -0
  335. package/dist/icon-navigation-bar.d.ts +11 -0
  336. package/dist/icon-navigation-bar.d.ts.map +1 -0
  337. package/dist/icon-navigation-bar.js +26 -0
  338. package/dist/image-crop.cjs +482 -0
  339. package/dist/image-crop.d.ts +9 -0
  340. package/dist/image-crop.d.ts.map +1 -0
  341. package/dist/image-crop.js +460 -0
  342. package/dist/image-zoom.cjs +77 -0
  343. package/dist/image-zoom.d.ts +7 -0
  344. package/dist/image-zoom.d.ts.map +1 -0
  345. package/dist/image-zoom.js +55 -0
  346. package/dist/image.cjs +15 -143
  347. package/dist/image.d.ts.map +1 -1
  348. package/dist/image.js +16 -144
  349. package/dist/index.cjs +30274 -1201
  350. package/dist/index.d.ts +121 -0
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +30006 -1220
  353. package/dist/ink.cjs +17 -0
  354. package/dist/ink.js +15 -0
  355. package/dist/input-otp.cjs +72 -0
  356. package/dist/input-otp.d.ts +35 -0
  357. package/dist/input-otp.d.ts.map +1 -0
  358. package/dist/input-otp.js +47 -0
  359. package/dist/iphone-15-pro.cjs +61 -0
  360. package/dist/iphone-15-pro.d.ts +9 -0
  361. package/dist/iphone-15-pro.d.ts.map +1 -0
  362. package/dist/iphone-15-pro.js +39 -0
  363. package/dist/item.cjs +215 -0
  364. package/dist/item.d.ts +41 -0
  365. package/dist/item.d.ts.map +1 -0
  366. package/dist/item.js +200 -0
  367. package/dist/kanban.cjs +1354 -0
  368. package/dist/kanban.d.ts +36 -0
  369. package/dist/kanban.d.ts.map +1 -0
  370. package/dist/kanban.js +1330 -0
  371. package/dist/kbd.cjs +40 -0
  372. package/dist/kbd.d.ts +4 -0
  373. package/dist/kbd.d.ts.map +1 -0
  374. package/dist/kbd.js +37 -0
  375. package/dist/limelight-nav-navigation-bar.cjs +51 -0
  376. package/dist/limelight-nav-navigation-bar.d.ts +10 -0
  377. package/dist/limelight-nav-navigation-bar.d.ts.map +1 -0
  378. package/dist/limelight-nav-navigation-bar.js +29 -0
  379. package/dist/limelight-nav.cjs +570 -0
  380. package/dist/limelight-nav.d.ts +10 -0
  381. package/dist/limelight-nav.d.ts.map +1 -0
  382. package/dist/limelight-nav.js +549 -0
  383. package/dist/link.cjs +29 -152
  384. package/dist/link.js +30 -153
  385. package/dist/list.cjs +35 -0
  386. package/dist/list.d.ts +5 -0
  387. package/dist/list.d.ts.map +1 -0
  388. package/dist/list.js +12 -0
  389. package/dist/magnetic.cjs +63 -0
  390. package/dist/magnetic.d.ts +8 -0
  391. package/dist/magnetic.d.ts.map +1 -0
  392. package/dist/magnetic.js +41 -0
  393. package/dist/market-overview.cjs +102 -0
  394. package/dist/market-overview.d.ts +4 -0
  395. package/dist/market-overview.d.ts.map +1 -0
  396. package/dist/market-overview.js +100 -0
  397. package/dist/marquee.cjs +67 -0
  398. package/dist/marquee.d.ts +10 -0
  399. package/dist/marquee.d.ts.map +1 -0
  400. package/dist/marquee.js +45 -0
  401. package/dist/menu-dock.cjs +64 -0
  402. package/dist/menu-dock.d.ts +14 -0
  403. package/dist/menu-dock.d.ts.map +1 -0
  404. package/dist/menu-dock.js +42 -0
  405. package/dist/menubar.cjs +116 -0
  406. package/dist/menubar.d.ts +30 -0
  407. package/dist/menubar.d.ts.map +1 -0
  408. package/dist/menubar.js +61 -0
  409. package/dist/message-dock.cjs +480 -0
  410. package/dist/message-dock.d.ts +15 -0
  411. package/dist/message-dock.d.ts.map +1 -0
  412. package/dist/message-dock.js +458 -0
  413. package/dist/mini-calendar.cjs +505 -0
  414. package/dist/mini-calendar.d.ts +10 -0
  415. package/dist/mini-calendar.d.ts.map +1 -0
  416. package/dist/mini-calendar.js +483 -0
  417. package/dist/minimal-tiptap.cjs +48 -0
  418. package/dist/minimal-tiptap.d.ts +8 -0
  419. package/dist/minimal-tiptap.d.ts.map +1 -0
  420. package/dist/minimal-tiptap.js +26 -0
  421. package/dist/motion-highlight.cjs +71 -0
  422. package/dist/motion-highlight.d.ts +7 -0
  423. package/dist/motion-highlight.d.ts.map +1 -0
  424. package/dist/motion-highlight.js +49 -0
  425. package/dist/music-player.cjs +810 -0
  426. package/dist/music-player.d.ts +18 -0
  427. package/dist/music-player.d.ts.map +1 -0
  428. package/dist/music-player.js +788 -0
  429. package/dist/native-select.cjs +82 -0
  430. package/dist/native-select.d.ts +9 -0
  431. package/dist/native-select.d.ts.map +1 -0
  432. package/dist/native-select.js +58 -0
  433. package/dist/news-timeline.cjs +42 -0
  434. package/dist/news-timeline.d.ts +4 -0
  435. package/dist/news-timeline.d.ts.map +1 -0
  436. package/dist/news-timeline.js +40 -0
  437. package/dist/order-entry.cjs +141 -0
  438. package/dist/order-entry.d.ts +15 -0
  439. package/dist/order-entry.d.ts.map +1 -0
  440. package/dist/order-entry.js +136 -0
  441. package/dist/orders-history.cjs +83 -0
  442. package/dist/orders-history.d.ts +18 -0
  443. package/dist/orders-history.d.ts.map +1 -0
  444. package/dist/orders-history.js +78 -0
  445. package/dist/pagination.cjs +132 -0
  446. package/dist/pagination.d.ts +29 -0
  447. package/dist/pagination.d.ts.map +1 -0
  448. package/dist/pagination.js +104 -0
  449. package/dist/particles-background.cjs +159 -0
  450. package/dist/particles-background.d.ts +18 -0
  451. package/dist/particles-background.d.ts.map +1 -0
  452. package/dist/particles-background.js +157 -0
  453. package/dist/pill.cjs +80 -0
  454. package/dist/pill.d.ts +21 -0
  455. package/dist/pill.d.ts.map +1 -0
  456. package/dist/pill.js +57 -0
  457. package/dist/pixel-image.cjs +71 -0
  458. package/dist/pixel-image.d.ts +8 -0
  459. package/dist/pixel-image.d.ts.map +1 -0
  460. package/dist/pixel-image.js +49 -0
  461. package/dist/popover.cjs +11 -9
  462. package/dist/popover.d.ts.map +1 -1
  463. package/dist/popover.js +11 -9
  464. package/dist/positions-list.cjs +98 -0
  465. package/dist/positions-list.d.ts +13 -0
  466. package/dist/positions-list.d.ts.map +1 -0
  467. package/dist/positions-list.js +93 -0
  468. package/dist/progress-circle.cjs +2 -1
  469. package/dist/progress-circle.d.ts.map +1 -1
  470. package/dist/progress-circle.js +2 -1
  471. package/dist/pulse-animation.cjs +8741 -0
  472. package/dist/pulse-animation.d.ts +155 -0
  473. package/dist/pulse-animation.d.ts.map +1 -0
  474. package/dist/pulse-animation.js +8732 -0
  475. package/dist/qr-code.cjs +65 -0
  476. package/dist/qr-code.d.ts +21 -0
  477. package/dist/qr-code.d.ts.map +1 -0
  478. package/dist/qr-code.js +43 -0
  479. package/dist/relative-time.cjs +88 -0
  480. package/dist/relative-time.d.ts +9 -0
  481. package/dist/relative-time.d.ts.map +1 -0
  482. package/dist/relative-time.js +66 -0
  483. package/dist/resizable.cjs +61 -0
  484. package/dist/resizable.d.ts +24 -0
  485. package/dist/resizable.d.ts.map +1 -0
  486. package/dist/resizable.js +37 -0
  487. package/dist/reveal-animation.cjs +8791 -0
  488. package/dist/reveal-animation.d.ts +134 -0
  489. package/dist/reveal-animation.d.ts.map +1 -0
  490. package/dist/reveal-animation.js +8779 -0
  491. package/dist/safari.cjs +90 -0
  492. package/dist/safari.d.ts +9 -0
  493. package/dist/safari.d.ts.map +1 -0
  494. package/dist/safari.js +68 -0
  495. package/dist/sandbox.cjs +94 -0
  496. package/dist/sandbox.d.ts +9 -0
  497. package/dist/sandbox.d.ts.map +1 -0
  498. package/dist/sandbox.js +72 -0
  499. package/dist/search-and-toggle-navigation-bar.cjs +51 -0
  500. package/dist/search-and-toggle-navigation-bar.d.ts +10 -0
  501. package/dist/search-and-toggle-navigation-bar.d.ts.map +1 -0
  502. package/dist/search-and-toggle-navigation-bar.js +29 -0
  503. package/dist/select.cjs +34 -160
  504. package/dist/select.d.ts.map +1 -1
  505. package/dist/select.js +34 -160
  506. package/dist/sidebar.cjs +1134 -0
  507. package/dist/sidebar.d.ts +80 -0
  508. package/dist/sidebar.d.ts.map +1 -0
  509. package/dist/sidebar.js +1090 -0
  510. package/dist/simple-navigation-bar.cjs +45 -0
  511. package/dist/simple-navigation-bar.d.ts +11 -0
  512. package/dist/simple-navigation-bar.d.ts.map +1 -0
  513. package/dist/simple-navigation-bar.js +23 -0
  514. package/dist/skeleton.cjs +14 -143
  515. package/dist/skeleton.d.ts +2 -41
  516. package/dist/skeleton.d.ts.map +1 -1
  517. package/dist/skeleton.js +15 -144
  518. package/dist/slider.d.ts +1 -0
  519. package/dist/slider.d.ts.map +1 -1
  520. package/dist/status-dashboard-navigation-bar.cjs +51 -0
  521. package/dist/status-dashboard-navigation-bar.d.ts +10 -0
  522. package/dist/status-dashboard-navigation-bar.d.ts.map +1 -0
  523. package/dist/status-dashboard-navigation-bar.js +29 -0
  524. package/dist/status.cjs +85 -0
  525. package/dist/status.d.ts +23 -0
  526. package/dist/status.d.ts.map +1 -0
  527. package/dist/status.js +62 -0
  528. package/dist/stock-screener.cjs +44 -0
  529. package/dist/stock-screener.d.ts +4 -0
  530. package/dist/stock-screener.d.ts.map +1 -0
  531. package/dist/stock-screener.js +42 -0
  532. package/dist/switch.cjs +1 -1
  533. package/dist/switch.d.ts +1 -3
  534. package/dist/switch.d.ts.map +1 -1
  535. package/dist/switch.js +1 -1
  536. package/dist/symbol-info.cjs +44 -0
  537. package/dist/symbol-info.d.ts +9 -0
  538. package/dist/symbol-info.d.ts.map +1 -0
  539. package/dist/symbol-info.js +42 -0
  540. package/dist/table.cjs +53 -167
  541. package/dist/table.d.ts.map +1 -1
  542. package/dist/table.js +53 -167
  543. package/dist/tag.cjs +13 -142
  544. package/dist/tag.js +14 -143
  545. package/dist/tags.cjs +385 -0
  546. package/dist/tags.d.ts +13 -0
  547. package/dist/tags.d.ts.map +1 -0
  548. package/dist/tags.js +364 -0
  549. package/dist/team-switcher-navigation-bar.cjs +51 -0
  550. package/dist/team-switcher-navigation-bar.d.ts +10 -0
  551. package/dist/team-switcher-navigation-bar.d.ts.map +1 -0
  552. package/dist/team-switcher-navigation-bar.js +29 -0
  553. package/dist/technical-analysis.cjs +69 -0
  554. package/dist/technical-analysis.d.ts +13 -0
  555. package/dist/technical-analysis.d.ts.map +1 -0
  556. package/dist/technical-analysis.js +67 -0
  557. package/dist/terminal.cjs +372 -0
  558. package/dist/terminal.d.ts +21 -0
  559. package/dist/terminal.d.ts.map +1 -0
  560. package/dist/terminal.js +350 -0
  561. package/dist/ticker-tape.cjs +54 -0
  562. package/dist/ticker-tape.d.ts +4 -0
  563. package/dist/ticker-tape.d.ts.map +1 -0
  564. package/dist/ticker-tape.js +52 -0
  565. package/dist/ticker.cjs +66 -0
  566. package/dist/ticker.d.ts +10 -0
  567. package/dist/ticker.d.ts.map +1 -0
  568. package/dist/ticker.js +44 -0
  569. package/dist/timeline.cjs +317 -0
  570. package/dist/timeline.d.ts +20 -0
  571. package/dist/timeline.d.ts.map +1 -0
  572. package/dist/timeline.js +295 -0
  573. package/dist/toggle.cjs +62 -0
  574. package/dist/toggle.d.ts +26 -0
  575. package/dist/toggle.d.ts.map +1 -0
  576. package/dist/toggle.js +57 -0
  577. package/dist/trading-panel.cjs +212 -0
  578. package/dist/trading-panel.d.ts +7 -0
  579. package/dist/trading-panel.d.ts.map +1 -0
  580. package/dist/trading-panel.js +207 -0
  581. package/dist/two-tier-navigation-bar.cjs +51 -0
  582. package/dist/two-tier-navigation-bar.d.ts +10 -0
  583. package/dist/two-tier-navigation-bar.d.ts.map +1 -0
  584. package/dist/two-tier-navigation-bar.js +29 -0
  585. package/dist/underline-navigation-bar.cjs +51 -0
  586. package/dist/underline-navigation-bar.d.ts +10 -0
  587. package/dist/underline-navigation-bar.d.ts.map +1 -0
  588. package/dist/underline-navigation-bar.js +29 -0
  589. package/dist/youtube-pip-player.cjs +489 -0
  590. package/dist/youtube-pip-player.d.ts +41 -0
  591. package/dist/youtube-pip-player.d.ts.map +1 -0
  592. package/dist/youtube-pip-player.js +466 -0
  593. package/package.json +755 -54
  594. package/src/3d-button.tsx +346 -0
  595. package/src/3d-card.tsx +271 -0
  596. package/src/3d-carousel.tsx +444 -0
  597. package/src/3d-grid.tsx +448 -0
  598. package/src/3d-marquee.tsx +422 -0
  599. package/src/3d-model-viewer.tsx +659 -0
  600. package/src/3d-pin.tsx +37 -0
  601. package/src/3d-scene.tsx +629 -0
  602. package/src/3d-text.tsx +442 -0
  603. package/src/advanced-chart.tsx +63 -0
  604. package/src/advanced-navigation-bar.tsx +83 -0
  605. package/src/ai-actions.tsx +60 -0
  606. package/src/ai-agents.tsx +1174 -0
  607. package/src/ai-assistant.tsx +227 -0
  608. package/src/ai-chat.tsx +554 -0
  609. package/src/ai-code.tsx +1331 -0
  610. package/src/ai-model-selector-navigation-bar.tsx +78 -0
  611. package/src/ai-models.tsx +58 -0
  612. package/src/ai-playground.tsx +429 -0
  613. package/src/ai-tools.tsx +383 -0
  614. package/src/ai-vision.tsx +1220 -0
  615. package/src/ai-voice-settings.tsx +726 -0
  616. package/src/ai-voice.tsx +735 -0
  617. package/src/android.tsx +92 -0
  618. package/src/animated-background.tsx +625 -0
  619. package/src/animated-beam.tsx +110 -0
  620. package/src/animated-cursor.tsx +406 -0
  621. package/src/animated-icon.tsx +520 -0
  622. package/src/animated-list.tsx +508 -0
  623. package/src/animated-number.tsx +485 -0
  624. package/src/animated-testimonials.tsx +119 -0
  625. package/src/animated-text.tsx +481 -0
  626. package/src/animated-tooltip.tsx +54 -0
  627. package/src/announcement.tsx +55 -0
  628. package/src/app-switcher-navigation-bar.tsx +76 -0
  629. package/src/apple-cards-carousel.tsx +349 -0
  630. package/src/apple-hello-effect.tsx +50 -0
  631. package/src/auth.tsx +9 -8
  632. package/src/avatar.tsx +1 -1
  633. package/src/badge.tsx +27 -30
  634. package/src/banner.tsx +62 -0
  635. package/src/breadcrumb-and-filters-navigation-bar.tsx +40 -0
  636. package/src/breadcrumb-navigation-bar.tsx +43 -0
  637. package/src/button.tsx +10 -9
  638. package/src/calendar.tsx +62 -0
  639. package/src/centered-logo-navigation-bar.tsx +43 -0
  640. package/src/chart.tsx +372 -0
  641. package/src/choicebox.tsx +89 -0
  642. package/src/chrome.tsx +41 -40
  643. package/src/code-block.tsx +278 -0
  644. package/src/code-compare.tsx +551 -0
  645. package/src/code-diff.tsx +573 -0
  646. package/src/code-editor.tsx +250 -0
  647. package/src/code-explorer.tsx +403 -0
  648. package/src/code-preview.tsx +488 -0
  649. package/src/code-snippet.tsx +336 -0
  650. package/src/code-tabs.tsx +78 -0
  651. package/src/code-terminal.tsx +530 -0
  652. package/src/collaboration-navigation-bar.tsx +50 -0
  653. package/src/collapsible.tsx +3 -2
  654. package/src/color-picker.tsx +68 -0
  655. package/src/combobox.tsx +87 -0
  656. package/src/communication-navigation-bar.tsx +42 -0
  657. package/src/company-profile.tsx +67 -0
  658. package/src/comparison.tsx +68 -0
  659. package/src/context-switcher-navigation-bar.tsx +39 -0
  660. package/src/credit-card.tsx +72 -0
  661. package/src/crypto-screener.tsx +57 -0
  662. package/src/cursor.tsx +61 -0
  663. package/src/dashboard-navigation-bar.tsx +49 -0
  664. package/src/dialog-stack.tsx +55 -0
  665. package/src/dialog.tsx +16 -15
  666. package/src/direction.tsx +40 -0
  667. package/src/dock.tsx +172 -0
  668. package/src/dropzone.tsx +106 -0
  669. package/src/e-commerce-navigation-bar.tsx +54 -0
  670. package/src/editor.tsx +85 -0
  671. package/src/empty.tsx +117 -0
  672. package/src/field.tsx +2 -1
  673. package/src/financials.tsx +85 -0
  674. package/src/forex-screener.tsx +58 -0
  675. package/src/gantt.tsx +68 -0
  676. package/src/grid-pattern.tsx +353 -0
  677. package/src/hooks/use-mobile.ts +29 -0
  678. package/src/icon-navigation-bar.tsx +36 -0
  679. package/src/image-crop.tsx +67 -0
  680. package/src/image-zoom.tsx +64 -0
  681. package/src/image.tsx +2 -1
  682. package/src/index.ts +123 -0
  683. package/src/input-otp.tsx +72 -0
  684. package/src/iphone-15-pro.tsx +69 -0
  685. package/src/item.tsx +193 -0
  686. package/src/kanban.tsx +772 -0
  687. package/src/kbd.tsx +32 -0
  688. package/src/limelight-nav-navigation-bar.tsx +39 -0
  689. package/src/limelight-nav.tsx +101 -0
  690. package/src/link.tsx +18 -18
  691. package/src/list.tsx +22 -0
  692. package/src/magnetic.tsx +54 -0
  693. package/src/market-overview.tsx +116 -0
  694. package/src/marquee.tsx +62 -0
  695. package/src/menu-dock.tsx +56 -0
  696. package/src/menubar.tsx +149 -0
  697. package/src/message-dock.tsx +89 -0
  698. package/src/mini-calendar.tsx +121 -0
  699. package/src/minimal-tiptap.tsx +32 -0
  700. package/src/motion-highlight.tsx +55 -0
  701. package/src/music-player.tsx +413 -0
  702. package/src/native-select.tsx +63 -0
  703. package/src/news-timeline.tsx +56 -0
  704. package/src/order-entry.tsx +162 -0
  705. package/src/orders-history.tsx +115 -0
  706. package/src/pagination.tsx +118 -0
  707. package/src/particles-background.tsx +225 -0
  708. package/src/pill.tsx +61 -0
  709. package/src/pixel-image.tsx +64 -0
  710. package/src/popover.tsx +10 -9
  711. package/src/positions-list.tsx +108 -0
  712. package/src/progress-circle.tsx +2 -1
  713. package/src/pulse-animation.tsx +606 -0
  714. package/src/qr-code.tsx +64 -0
  715. package/src/relative-time.tsx +84 -0
  716. package/src/resizable.tsx +46 -0
  717. package/src/reveal-animation.tsx +532 -0
  718. package/src/safari.tsx +115 -0
  719. package/src/sandbox.tsx +83 -0
  720. package/src/search-and-toggle-navigation-bar.tsx +39 -0
  721. package/src/select.tsx +31 -30
  722. package/src/sidebar.tsx +723 -0
  723. package/src/simple-navigation-bar.tsx +39 -0
  724. package/src/skeleton.tsx +20 -168
  725. package/src/slider.tsx +1 -0
  726. package/src/status-dashboard-navigation-bar.tsx +39 -0
  727. package/src/status.tsx +63 -0
  728. package/src/stock-screener.tsx +58 -0
  729. package/src/switch.tsx +2 -2
  730. package/src/symbol-info.tsx +64 -0
  731. package/src/table.tsx +26 -25
  732. package/src/tags.tsx +62 -0
  733. package/src/team-switcher-navigation-bar.tsx +39 -0
  734. package/src/technical-analysis.tsx +99 -0
  735. package/src/terminal.tsx +399 -0
  736. package/src/ticker-tape.tsx +68 -0
  737. package/src/ticker.tsx +52 -0
  738. package/src/timeline.tsx +412 -0
  739. package/src/toggle.tsx +84 -0
  740. package/src/trading-panel.tsx +262 -0
  741. package/src/two-tier-navigation-bar.tsx +39 -0
  742. package/src/underline-navigation-bar.tsx +39 -0
  743. package/src/youtube-pip-player.tsx +606 -0
  744. package/tokens.css +11 -0
@@ -0,0 +1,1764 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var React3 = require('react');
7
+ var lucideReact = require('lucide-react');
8
+ var ui = require('@hanzo/ui');
9
+ var gui = require('@hanzo/gui');
10
+ var jsxRuntime = require('react/jsx-runtime');
11
+ var usehooks = require('@uidotdev/usehooks');
12
+
13
+ function _interopNamespace(e) {
14
+ if (e && e.__esModule) return e;
15
+ var n = Object.create(null);
16
+ if (e) {
17
+ Object.keys(e).forEach(function (k) {
18
+ if (k !== 'default') {
19
+ var d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function () { return e[k]; }
23
+ });
24
+ }
25
+ });
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
32
+
33
+ var SKELETON_CLASSES = "lux-skeleton rounded-sm";
34
+ var Skeleton = React3__namespace.forwardRef(
35
+ function Skeleton2(props, ref) {
36
+ const { loading = true, asChild, className, children, style, ...rest } = props;
37
+ if (!loading) {
38
+ if (asChild && React3__namespace.isValidElement(children)) return children;
39
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className, style, ...rest, children });
40
+ }
41
+ return /* @__PURE__ */ jsxRuntime.jsx(
42
+ "div",
43
+ {
44
+ ref,
45
+ "data-loading": true,
46
+ ...ui.sx(
47
+ SKELETON_CLASSES,
48
+ asChild || children ? "[&_*]:invisible" : "min-h-5",
49
+ className
50
+ ),
51
+ style,
52
+ ...rest,
53
+ children
54
+ }
55
+ );
56
+ }
57
+ );
58
+ React3__namespace.forwardRef(
59
+ function SkeletonCircle2(props, ref) {
60
+ const { size = 40, loading = true, className, ...rest } = props;
61
+ const dimension = typeof size === "number" ? `${size}px` : size;
62
+ return /* @__PURE__ */ jsxRuntime.jsx(
63
+ Skeleton,
64
+ {
65
+ ref,
66
+ loading,
67
+ ...ui.sx("rounded-full shrink-0", className),
68
+ style: { width: dimension, height: dimension, ...rest.style },
69
+ ...rest
70
+ }
71
+ );
72
+ }
73
+ );
74
+ React3__namespace.forwardRef(
75
+ function SkeletonText2(props, ref) {
76
+ const { noOfLines = 3, loading = true, className, ...rest } = props;
77
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className: ui.cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
78
+ Skeleton,
79
+ {
80
+ loading,
81
+ ...ui.sx(ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
82
+ },
83
+ index
84
+ )) });
85
+ }
86
+ );
87
+ var ink = (children, Wrap = gui.Text, props = {}) => {
88
+ let hasText = false;
89
+ React3.Children.forEach(children, (child) => {
90
+ if (typeof child === "string" || typeof child === "number") hasText = true;
91
+ });
92
+ if (!hasText) return children;
93
+ return React3.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React3.createElement(Wrap, props, child) : child);
94
+ };
95
+ var TOUCH_PX = 1024;
96
+ function useBelow(px) {
97
+ const [below, setBelow] = React3__namespace.useState(false);
98
+ React3__namespace.useEffect(() => {
99
+ const mql = window.matchMedia(`(max-width: ${px - 1}px)`);
100
+ const apply = () => setBelow(mql.matches);
101
+ apply();
102
+ mql.addEventListener("change", apply);
103
+ return () => mql.removeEventListener("change", apply);
104
+ }, [px]);
105
+ return below;
106
+ }
107
+ var useIsTouch = () => useBelow(TOUCH_PX);
108
+ function mapPlacement(p) {
109
+ if (!p) return void 0;
110
+ return p;
111
+ }
112
+ var Tooltip = React3__namespace.forwardRef(
113
+ function Tooltip2(props, ref) {
114
+ const {
115
+ showArrow: showArrowProp,
116
+ onOpenChange,
117
+ variant,
118
+ selected,
119
+ children,
120
+ disabled,
121
+ disableOnMobile,
122
+ content,
123
+ contentProps,
124
+ defaultOpen = false,
125
+ triggerProps,
126
+ closeDelay = 100,
127
+ openDelay = 100,
128
+ interactive,
129
+ positioning
130
+ } = props;
131
+ const [open, setOpen] = React3__namespace.useState(defaultOpen);
132
+ const timeoutRef = React3__namespace.useRef(null);
133
+ const isMobile = useIsTouch();
134
+ const handleOpenChange = React3__namespace.useCallback((nextOpen) => {
135
+ setOpen(nextOpen);
136
+ onOpenChange?.({ open: nextOpen });
137
+ }, [onOpenChange]);
138
+ const handleOpenChangeManual = React3__namespace.useCallback((nextOpen) => {
139
+ timeoutRef.current && window.clearTimeout(timeoutRef.current);
140
+ timeoutRef.current = window.setTimeout(() => {
141
+ setOpen(nextOpen);
142
+ onOpenChange?.({ open: nextOpen });
143
+ }, nextOpen ? openDelay : closeDelay);
144
+ }, [closeDelay, openDelay, onOpenChange]);
145
+ const handleClickAway = React3__namespace.useCallback(() => {
146
+ if (open) handleOpenChangeManual(false);
147
+ }, [open, handleOpenChangeManual]);
148
+ const triggerRef = usehooks.useClickAway(handleClickAway);
149
+ const handleTriggerClick = React3__namespace.useCallback(() => {
150
+ handleOpenChangeManual(!open);
151
+ }, [handleOpenChangeManual, open]);
152
+ const handleContentClick = React3__namespace.useCallback((event) => {
153
+ event.stopPropagation();
154
+ if (interactive) {
155
+ const closestLink = event.target?.closest("a");
156
+ if (closestLink) {
157
+ handleOpenChangeManual(false);
158
+ }
159
+ }
160
+ }, [interactive, handleOpenChangeManual]);
161
+ React3__namespace.useEffect(() => {
162
+ return () => {
163
+ if (timeoutRef.current) {
164
+ clearTimeout(timeoutRef.current);
165
+ }
166
+ };
167
+ }, []);
168
+ if (disabled || disableOnMobile && isMobile) return children;
169
+ const defaultShowArrow = variant === "popover" ? false : true;
170
+ const showArrow = showArrowProp !== void 0 ? showArrowProp : defaultShowArrow;
171
+ const isPopover = variant === "popover";
172
+ const placement = mapPlacement(positioning?.placement) ?? "top";
173
+ const offset = positioning?.offset?.mainAxis ?? 4;
174
+ return /* @__PURE__ */ jsxRuntime.jsx(gui.TooltipGroup, { delay: openDelay, children: /* @__PURE__ */ jsxRuntime.jsxs(
175
+ gui.Tooltip,
176
+ {
177
+ open,
178
+ onOpenChange: handleOpenChange,
179
+ delay: { open: openDelay, close: closeDelay },
180
+ placement,
181
+ offset,
182
+ unstyled: true,
183
+ children: [
184
+ /* @__PURE__ */ jsxRuntime.jsx(
185
+ gui.Tooltip.Trigger,
186
+ {
187
+ ref: triggerRef,
188
+ asChild: true,
189
+ ...isMobile ? { onClick: handleTriggerClick } : {},
190
+ ...triggerProps,
191
+ children
192
+ }
193
+ ),
194
+ /* @__PURE__ */ jsxRuntime.jsxs(
195
+ gui.Tooltip.Content,
196
+ {
197
+ ref,
198
+ unstyled: true,
199
+ zIndex: 9999,
200
+ overflow: "hidden",
201
+ borderRadius: 8,
202
+ paddingHorizontal: 12,
203
+ paddingVertical: 8,
204
+ maxWidth: isPopover ? 384 : 320,
205
+ backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)",
206
+ transition: "quick",
207
+ enterStyle: { opacity: 0, scale: 0.95 },
208
+ exitStyle: { opacity: 0, scale: 0.95 },
209
+ ...isPopover ? {
210
+ borderWidth: 1,
211
+ borderColor: "var(--color-border-divider)",
212
+ shadowColor: "var(--shadow-popover)"
213
+ } : {},
214
+ onClick: interactive ? handleContentClick : void 0,
215
+ ...selected ? { "data-selected": true } : {},
216
+ ...contentProps,
217
+ children: [
218
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(
219
+ gui.Tooltip.Arrow,
220
+ {
221
+ unstyled: true,
222
+ backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)"
223
+ }
224
+ ),
225
+ ink(content, void 0, {
226
+ fontSize: 14,
227
+ color: isPopover ? "var(--color-text-primary)" : "var(--color-tooltip-fg)"
228
+ })
229
+ ]
230
+ }
231
+ )
232
+ ]
233
+ }
234
+ ) });
235
+ }
236
+ );
237
+ function TruncatedTextTooltip({ label, children }) {
238
+ return /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { content: label, positioning: { placement: "top" }, children });
239
+ }
240
+ var SIZE = {
241
+ sm: { padding: 4, height: 18, minHeight: 18 },
242
+ md: { paddingHorizontal: 4, paddingVertical: 2, minHeight: 24 },
243
+ lg: { paddingHorizontal: 8, paddingVertical: 4, minHeight: 28 }
244
+ };
245
+ var SIZE_TEXT = {
246
+ sm: { fontSize: 12, fontWeight: "500" },
247
+ md: { fontSize: 14, fontWeight: "500" },
248
+ lg: { fontSize: 14, fontWeight: "600" }
249
+ };
250
+ var COLOR_PALETTE = {
251
+ gray: { bg: "var(--color-badge-gray-bg)", fg: "var(--color-badge-gray-fg)" },
252
+ green: { bg: "var(--color-badge-green-bg)", fg: "var(--color-badge-green-fg)" },
253
+ red: { bg: "var(--color-badge-red-bg)", fg: "var(--color-badge-red-fg)" },
254
+ purple: { bg: "var(--color-badge-purple-bg)", fg: "var(--color-badge-purple-fg)" },
255
+ orange: { bg: "var(--color-badge-orange-bg)", fg: "var(--color-badge-orange-fg)" },
256
+ blue: { bg: "var(--color-badge-blue-bg)", fg: "var(--color-badge-blue-fg)" },
257
+ yellow: { bg: "var(--color-badge-yellow-bg)", fg: "var(--color-badge-yellow-fg)" },
258
+ teal: { bg: "var(--color-badge-teal-bg)", fg: "var(--color-badge-teal-fg)" },
259
+ cyan: { bg: "var(--color-badge-cyan-bg)", fg: "var(--color-badge-cyan-fg)" },
260
+ pink: { bg: "var(--color-badge-pink-bg)", fg: "var(--color-badge-pink-fg)" },
261
+ purple_alt: { bg: "var(--color-badge-purple-alt-bg)", fg: "var(--color-badge-purple-alt-fg)" },
262
+ blue_alt: { bg: "var(--color-badge-blue-alt-bg)", fg: "var(--color-badge-blue-alt-fg)" },
263
+ bright_gray: { bg: "var(--color-badge-bright-gray-bg)", fg: "var(--color-badge-bright-gray-fg)" },
264
+ bright_green: { bg: "var(--color-badge-bright-green-bg)", fg: "var(--color-badge-bright-green-fg)" },
265
+ bright_red: { bg: "var(--color-badge-bright-red-bg)", fg: "var(--color-badge-bright-red-fg)" },
266
+ bright_blue: { bg: "var(--color-badge-bright-blue-bg)", fg: "var(--color-badge-bright-blue-fg)" },
267
+ bright_yellow: { bg: "var(--color-badge-bright-yellow-bg)", fg: "var(--color-badge-bright-yellow-fg)" },
268
+ bright_teal: { bg: "var(--color-badge-bright-teal-bg)", fg: "var(--color-badge-bright-teal-fg)" },
269
+ bright_cyan: { bg: "var(--color-badge-bright-cyan-bg)", fg: "var(--color-badge-bright-cyan-fg)" },
270
+ bright_orange: { bg: "var(--color-badge-bright-orange-bg)", fg: "var(--color-badge-bright-orange-fg)" },
271
+ bright_purple: { bg: "var(--color-badge-bright-purple-bg)", fg: "var(--color-badge-bright-purple-fg)" },
272
+ bright_pink: { bg: "var(--color-badge-bright-pink-bg)", fg: "var(--color-badge-bright-pink-fg)" }
273
+ };
274
+ var TONE = {
275
+ subtle: (p) => ({ backgroundColor: p.bg, color: p.fg, borderWidth: 0 }),
276
+ solid: (p) => ({ backgroundColor: p.fg, color: p.bg, borderWidth: 0 }),
277
+ outline: (p) => ({
278
+ backgroundColor: "transparent",
279
+ color: p.fg,
280
+ borderWidth: 1,
281
+ borderColor: p.fg
282
+ })
283
+ };
284
+ var Badge = React3__namespace.default.forwardRef(
285
+ function Badge2(props, ref) {
286
+ const {
287
+ loading,
288
+ startElement,
289
+ children,
290
+ truncated = false,
291
+ endElement,
292
+ variant = "subtle",
293
+ size = "md",
294
+ colorPalette = "gray",
295
+ className,
296
+ style: badgeStyle,
297
+ ...rest
298
+ } = props;
299
+ const palette = COLOR_PALETTE[colorPalette];
300
+ const tone = TONE[variant](palette);
301
+ const child = children ? (
302
+ // `ellipsis` is gui Text's own built-in variant for single-line
303
+ // truncation — it expands to the same overflow/text-overflow/
304
+ // white-space/max-width rule Tailwind's `text-ellipsis` did, but
305
+ // through the component's own variants (guaranteed to compile),
306
+ // rather than naming each longhand as a separate style prop.
307
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { ellipsis: true, ...SIZE_TEXT[size], color: tone.color, children })
308
+ ) : null;
309
+ const childrenElement = truncated ? /* @__PURE__ */ jsxRuntime.jsx(TruncatedTextTooltip, { label: children, children: child }) : child;
310
+ const badgeElement = /* @__PURE__ */ jsxRuntime.jsxs(
311
+ gui.XStack,
312
+ {
313
+ ref,
314
+ render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
315
+ display: "inline-flex",
316
+ alignItems: "center",
317
+ alignSelf: "flex-start",
318
+ borderRadius: 2,
319
+ gap: 4,
320
+ maxWidth: "100%",
321
+ userSelect: "text",
322
+ ...SIZE[size],
323
+ ...tone,
324
+ className,
325
+ style: badgeStyle,
326
+ ...rest,
327
+ children: [
328
+ startElement,
329
+ childrenElement,
330
+ endElement
331
+ ]
332
+ }
333
+ );
334
+ if (loading) {
335
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, asChild: true, children: badgeElement });
336
+ }
337
+ return badgeElement;
338
+ }
339
+ );
340
+ var SpinnerFrame = gui.styled(gui.View, {
341
+ name: "ButtonSpinner",
342
+ render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
343
+ width: 16,
344
+ height: 16,
345
+ borderRadius: 1e3,
346
+ borderWidth: 2,
347
+ borderColor: "currentColor",
348
+ borderBottomColor: "transparent",
349
+ borderLeftColor: "transparent"
350
+ });
351
+ function Spinner({ className }) {
352
+ return /* @__PURE__ */ jsxRuntime.jsx(
353
+ SpinnerFrame,
354
+ {
355
+ role: "status",
356
+ "aria-label": "Loading",
357
+ className: [
358
+ "animate-spin",
359
+ className
360
+ ].filter(Boolean).join(" ")
361
+ }
362
+ );
363
+ }
364
+ var ButtonFrame = gui.styled(gui.View, {
365
+ name: "LuxButton",
366
+ render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button" }),
367
+ role: "button",
368
+ tabIndex: 0,
369
+ cursor: "pointer",
370
+ userSelect: "none",
371
+ display: "inline-flex",
372
+ alignItems: "center",
373
+ justifyContent: "center",
374
+ gap: 0,
375
+ overflow: "hidden",
376
+ borderRadius: 6,
377
+ // Whitespace nowrap via className since hanzogui doesn't have a direct token
378
+ // Transition via className
379
+ variants: {
380
+ size: {
381
+ "2xs": { paddingHorizontal: 8, height: 20, minWidth: 20, fontSize: 12, borderRadius: 4, gap: 4 },
382
+ xs: { paddingHorizontal: 8, height: 24, minWidth: 24, fontSize: 14, borderRadius: 4, gap: 4 },
383
+ sm: { paddingHorizontal: 12, height: 32, minWidth: 32, fontSize: 14, borderRadius: 6, gap: 4 },
384
+ md: { paddingHorizontal: 12, height: 40, minWidth: 40, fontSize: 16, borderRadius: 6, gap: 8 }
385
+ },
386
+ disabled: {
387
+ true: {
388
+ opacity: 0.2,
389
+ cursor: "not-allowed",
390
+ pointerEvents: "none"
391
+ }
392
+ }
393
+ },
394
+ defaultVariants: {
395
+ size: "md"
396
+ }
397
+ });
398
+ var VARIANT_CLASSES = {
399
+ solid: [
400
+ "bg-[var(--color-button-solid-bg)] text-[var(--color-button-solid-text)]",
401
+ "hover:bg-[var(--color-hover)]",
402
+ "data-[expanded]:bg-[var(--color-hover)]"
403
+ ].join(" "),
404
+ solid_danger: [
405
+ "bg-[var(--color-button-danger-bg)] text-[var(--color-button-danger-fg)]",
406
+ "hover:bg-[var(--color-button-danger-bg-hover)]",
407
+ "data-[expanded]:bg-[var(--color-button-danger-bg-hover)]"
408
+ ].join(" "),
409
+ outline: [
410
+ "border-2 border-solid bg-transparent",
411
+ "text-[var(--color-button-outline-fg)] border-[var(--color-button-outline-fg)]",
412
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]"
413
+ ].join(" "),
414
+ outline_danger: [
415
+ "border-2 border-solid bg-transparent",
416
+ "text-[var(--color-button-danger-bg)] border-[var(--color-button-danger-bg)]",
417
+ "hover:bg-transparent hover:text-[var(--color-button-danger-bg-hover)] hover:border-[var(--color-button-danger-bg-hover)]"
418
+ ].join(" "),
419
+ dropdown: [
420
+ "border-2 border-solid bg-transparent",
421
+ "text-[var(--color-button-dropdown-fg)] border-[var(--color-button-dropdown-border)]",
422
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
423
+ "data-[expanded]:bg-transparent data-[expanded]:text-[var(--color-hover)] data-[expanded]:border-[var(--color-hover)]",
424
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
425
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
426
+ "data-[selected]:hover:text-[var(--color-hover)] data-[selected]:hover:border-transparent",
427
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
428
+ ].join(" "),
429
+ header: [
430
+ "bg-transparent border-2 border-solid",
431
+ "text-[var(--color-button-header-fg)] border-[var(--color-button-header-border)]",
432
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
433
+ "data-[selected]:bg-[var(--color-button-header-bg-selected)]",
434
+ "data-[selected]:text-[var(--color-button-header-fg-selected)] data-[selected]:border-transparent data-[selected]:border-0",
435
+ "data-[selected]:hover:bg-[var(--color-button-header-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
436
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
437
+ "data-[selected]:data-[highlighted]:bg-[var(--color-button-header-bg-highlighted)]",
438
+ "data-[selected]:data-[highlighted]:text-[var(--color-button-header-fg-highlighted)]",
439
+ "data-[selected]:data-[highlighted]:border-transparent data-[selected]:data-[highlighted]:border-0",
440
+ "data-[selected]:data-[highlighted]:hover:bg-[var(--color-button-header-bg-highlighted)]",
441
+ "data-[selected]:data-[highlighted]:hover:text-[var(--color-hover)]",
442
+ "data-[selected]:data-[highlighted]:data-[expanded]:text-[var(--color-hover)]"
443
+ ].join(" "),
444
+ hero: [
445
+ "bg-[var(--color-button-hero-bg)] text-[var(--color-button-hero-fg)]",
446
+ "hover:bg-[var(--color-button-hero-bg-hover)] hover:text-[var(--color-button-hero-fg-hover)]",
447
+ "data-[selected]:bg-[var(--color-button-hero-bg-selected)] data-[selected]:text-[var(--color-button-hero-fg-selected)]",
448
+ "data-[selected]:hover:bg-[var(--color-button-hero-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
449
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
450
+ ].join(" "),
451
+ segmented: [
452
+ "bg-transparent border-2 border-solid rounded-none",
453
+ "text-[var(--color-button-segmented-fg)] border-[var(--color-selected-control-bg)]",
454
+ "hover:text-[var(--color-hover)]",
455
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
456
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-selected-control-text)]",
457
+ "[&:not(:last-child)]:border-r-0 data-[selected]:[&:not(:last-child)]:border-r-2",
458
+ "data-[selected]+*:border-l-0",
459
+ "first:rounded-l-md last:rounded-r-md"
460
+ ].join(" "),
461
+ plain: "bg-transparent text-inherit border-none hover:bg-transparent",
462
+ subtle: [
463
+ "bg-[var(--color-button-subtle-bg)] text-[var(--color-button-subtle-fg)]",
464
+ "hover:bg-[var(--color-button-subtle-bg)] hover:text-[var(--color-hover)]",
465
+ "disabled:bg-[var(--color-button-subtle-bg)] disabled:text-[var(--color-button-subtle-fg)]"
466
+ ].join(" "),
467
+ link: [
468
+ "bg-transparent text-[var(--color-link-primary)] border-none font-normal",
469
+ "px-0 h-auto",
470
+ "hover:bg-transparent hover:text-[var(--color-link-primary-hover)]",
471
+ "disabled:text-[var(--color-text-secondary)]"
472
+ ].join(" "),
473
+ icon_secondary: [
474
+ "bg-transparent text-[var(--color-icon-secondary)] border-none",
475
+ "hover:text-[var(--color-hover)]",
476
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
477
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
478
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
479
+ "data-[expanded]:text-[var(--color-hover)]"
480
+ ].join(" "),
481
+ icon_background: [
482
+ "bg-[var(--color-button-icon-background-bg)] text-[var(--color-icon-secondary)] border-none",
483
+ "hover:text-[var(--color-hover)]",
484
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
485
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
486
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
487
+ "data-[expanded]:text-[var(--color-hover)]"
488
+ ].join(" "),
489
+ pagination: [
490
+ "border-2 border-solid bg-transparent",
491
+ "text-[var(--color-button-pagination-fg)] border-[var(--color-button-pagination-border)]",
492
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
493
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
494
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
495
+ "data-[selected]:hover:text-[var(--color-selected-control-text)] data-[selected]:hover:border-transparent"
496
+ ].join(" ")
497
+ };
498
+ var BASE_CLASSES = "font-semibold whitespace-nowrap transition-colors duration-150";
499
+ var SP = 4;
500
+ function buildShimStyle(props) {
501
+ const s = { ...props.style };
502
+ if (props.mt !== void 0) s.marginTop = typeof props.mt === "number" ? `${props.mt * SP}px` : props.mt;
503
+ if (props.ml !== void 0) s.marginLeft = typeof props.ml === "number" ? `${props.ml * SP}px` : props.ml;
504
+ if (props.mr !== void 0) s.marginRight = typeof props.mr === "number" ? `${props.mr * SP}px` : props.mr;
505
+ if (props.px !== void 0) {
506
+ const v = typeof props.px === "number" ? `${props.px * SP}px` : props.px;
507
+ s.paddingLeft = v;
508
+ s.paddingRight = v;
509
+ }
510
+ if (props.py !== void 0) {
511
+ const v = typeof props.py === "number" ? `${props.py * SP}px` : props.py;
512
+ s.paddingTop = v;
513
+ s.paddingBottom = v;
514
+ }
515
+ if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
516
+ if (props.gap !== void 0) s.gap = typeof props.gap === "number" ? `${props.gap * SP}px` : props.gap;
517
+ if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
518
+ if (props.columnGap !== void 0) s.columnGap = typeof props.columnGap === "number" ? `${props.columnGap * SP}px` : props.columnGap;
519
+ if (props.gridColumn !== void 0) s.gridColumn = typeof props.gridColumn === "number" ? String(props.gridColumn) : props.gridColumn;
520
+ if (props.gridRow) s.gridRow = props.gridRow;
521
+ if (props.justifySelf) s.justifySelf = props.justifySelf;
522
+ if (props.alignSelf) s.alignSelf = props.alignSelf;
523
+ if (props.h) s.height = props.h;
524
+ if (props.w) s.width = props.w;
525
+ if (props.display) s.display = props.display;
526
+ if (props.borderBottomRightRadius !== void 0) s.borderBottomRightRadius = typeof props.borderBottomRightRadius === "number" ? `${props.borderBottomRightRadius}px` : props.borderBottomRightRadius;
527
+ if (props.borderTopRightRadius !== void 0) s.borderTopRightRadius = typeof props.borderTopRightRadius === "number" ? `${props.borderTopRightRadius}px` : props.borderTopRightRadius;
528
+ return Object.keys(s).length > 0 ? s : void 0;
529
+ }
530
+ var Button = React3__namespace.forwardRef(
531
+ function Button2(props, ref) {
532
+ const {
533
+ className,
534
+ variant = "solid",
535
+ size = "md",
536
+ asChild = false,
537
+ loading = false,
538
+ loadingText,
539
+ loadingSkeleton = false,
540
+ expanded,
541
+ selected,
542
+ highlighted,
543
+ disabled,
544
+ children,
545
+ style: styleProp,
546
+ // Strip Chakra style props
547
+ mt,
548
+ ml,
549
+ mr,
550
+ px,
551
+ py,
552
+ fontWeight,
553
+ gap,
554
+ flexShrink,
555
+ columnGap,
556
+ gridColumn,
557
+ gridRow,
558
+ justifySelf,
559
+ alignSelf,
560
+ textStyle: _textStyle,
561
+ h,
562
+ w,
563
+ display,
564
+ borderBottomRightRadius,
565
+ borderTopRightRadius,
566
+ ...rest
567
+ } = props;
568
+ const mergedStyle = buildShimStyle({
569
+ style: styleProp,
570
+ mt,
571
+ ml,
572
+ mr,
573
+ px,
574
+ py,
575
+ fontWeight,
576
+ gap,
577
+ flexShrink,
578
+ columnGap,
579
+ gridColumn,
580
+ gridRow,
581
+ justifySelf,
582
+ alignSelf,
583
+ h,
584
+ w,
585
+ display,
586
+ borderBottomRightRadius,
587
+ borderTopRightRadius
588
+ });
589
+ const dataAttrs = {};
590
+ if (expanded) dataAttrs["data-expanded"] = true;
591
+ if (selected) dataAttrs["data-selected"] = true;
592
+ if (highlighted) dataAttrs["data-highlighted"] = true;
593
+ if (loadingSkeleton) dataAttrs["data-loading-skeleton"] = true;
594
+ const isDisabled = !loadingSkeleton && (loading || disabled);
595
+ const inner = loading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
596
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}),
597
+ loadingText != null && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginLeft: 8 }, children: loadingText })
598
+ ] }) : children;
599
+ const variantClass = VARIANT_CLASSES[variant] ?? VARIANT_CLASSES.solid;
600
+ const combinedClassName = [BASE_CLASSES, variantClass, className].filter(Boolean).join(" ");
601
+ const button = /* @__PURE__ */ jsxRuntime.jsx(
602
+ ButtonFrame,
603
+ {
604
+ ref,
605
+ size,
606
+ disabled: isDisabled || void 0,
607
+ asChild: asChild || void 0,
608
+ className: combinedClassName,
609
+ style: mergedStyle,
610
+ ...dataAttrs,
611
+ ...rest,
612
+ children: inner
613
+ }
614
+ );
615
+ if (loadingSkeleton) {
616
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
617
+ }
618
+ return button;
619
+ }
620
+ );
621
+ React3__namespace.forwardRef(
622
+ function ButtonGroup2(props, ref) {
623
+ const { className, ...rest } = props;
624
+ return /* @__PURE__ */ jsxRuntime.jsx(
625
+ ui.Box,
626
+ {
627
+ ref,
628
+ className: ["inline-flex", className].filter(Boolean).join(" "),
629
+ role: "group",
630
+ ...rest
631
+ }
632
+ );
633
+ }
634
+ );
635
+ React3__namespace.forwardRef(
636
+ function ButtonGroupRadio2(props, ref) {
637
+ const {
638
+ children,
639
+ onChange,
640
+ variant = "segmented",
641
+ defaultValue,
642
+ loading = false,
643
+ equalWidth = false,
644
+ className,
645
+ ...rest
646
+ } = props;
647
+ const firstChildValue = React3__namespace.useMemo(() => {
648
+ const firstChild = Array.isArray(children) ? children[0] : void 0;
649
+ return typeof firstChild?.props.value === "string" ? firstChild.props.value : void 0;
650
+ }, [children]);
651
+ const [value, setValue] = React3__namespace.useState(defaultValue ?? firstChildValue);
652
+ const handleItemClick = React3__namespace.useCallback((event) => {
653
+ const v = event.currentTarget.value;
654
+ setValue(v);
655
+ onChange?.(v);
656
+ }, [onChange]);
657
+ const clonedChildren = React3__namespace.Children.map(children, (child) => {
658
+ return React3__namespace.cloneElement(child, {
659
+ onClick: handleItemClick,
660
+ selected: value === child.props.value,
661
+ variant
662
+ });
663
+ });
664
+ const childrenLength = React3__namespace.Children.count(children);
665
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsx(
666
+ ui.Box,
667
+ {
668
+ ref,
669
+ className: [
670
+ "inline-flex gap-0",
671
+ equalWidth ? "grid" : "",
672
+ className
673
+ ].filter(Boolean).join(" "),
674
+ style: equalWidth ? { gridTemplateColumns: `repeat(${childrenLength}, 1fr)` } : void 0,
675
+ role: "group",
676
+ ...rest,
677
+ children: clonedChildren
678
+ }
679
+ ) });
680
+ }
681
+ );
682
+ var SIZE2 = {
683
+ xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
684
+ sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
685
+ md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
686
+ lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
687
+ "2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
688
+ };
689
+ var VARIANT = {
690
+ outline: { borderWidth: 1, borderStyle: "solid" },
691
+ filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
692
+ unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
693
+ };
694
+ var CONTROL = {
695
+ width: "100%",
696
+ outlineWidth: 0,
697
+ backgroundColor: "var(--color-input-bg)",
698
+ color: "var(--color-input-fg)",
699
+ borderColor: "var(--color-input-border)",
700
+ hoverStyle: { borderColor: "var(--color-input-border-hover)" },
701
+ focusStyle: { borderColor: "var(--color-input-border-focus)" },
702
+ disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
703
+ };
704
+ var Input = React3__namespace.default.forwardRef(
705
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
706
+ const handleChange = React3__namespace.default.useCallback(
707
+ (event) => {
708
+ onChange?.(event);
709
+ onChangeText?.(event.target.value);
710
+ },
711
+ [onChange, onChangeText]
712
+ );
713
+ return /* @__PURE__ */ jsxRuntime.jsx(
714
+ gui.Input,
715
+ {
716
+ ref,
717
+ unstyled: true,
718
+ className: className ? `lux-control ${className}` : "lux-control",
719
+ ...CONTROL,
720
+ ...SIZE2[size],
721
+ ...VARIANT[variant],
722
+ ...rest,
723
+ onChange: handleChange
724
+ }
725
+ );
726
+ }
727
+ );
728
+ Input.displayName = "Input";
729
+ var SIZE3 = {
730
+ sm: 4,
731
+ md: 8,
732
+ lg: 12,
733
+ xl: 16
734
+ };
735
+ function normalizeValue(value, min, max) {
736
+ if (value == null) return 0;
737
+ if (max <= min) return 0;
738
+ return Math.round((value - min) / (max - min) * 100);
739
+ }
740
+ var Progress = React3__namespace.forwardRef(
741
+ function Progress2(props, ref) {
742
+ const {
743
+ value,
744
+ min = 0,
745
+ max = 100,
746
+ size = "md",
747
+ color,
748
+ trackProps,
749
+ style,
750
+ w,
751
+ flex,
752
+ ...rest
753
+ } = props;
754
+ const percent = normalizeValue(value, min, max);
755
+ const trackStyle = {
756
+ ...trackProps?.style,
757
+ ...trackProps?.borderStartRadius !== void 0 && {
758
+ borderStartStartRadius: trackProps.borderStartRadius,
759
+ borderEndStartRadius: trackProps.borderStartRadius
760
+ },
761
+ ...trackProps?.borderEndRadius !== void 0 && {
762
+ borderStartEndRadius: trackProps.borderEndRadius,
763
+ borderEndEndRadius: trackProps.borderEndRadius
764
+ }
765
+ };
766
+ const rootStyle = {
767
+ position: "relative",
768
+ ...style,
769
+ ...w !== void 0 && { width: w === "full" ? "100%" : w },
770
+ ...flex !== void 0 && { flex }
771
+ };
772
+ return /* @__PURE__ */ jsxRuntime.jsx(
773
+ "div",
774
+ {
775
+ ref,
776
+ style: rootStyle,
777
+ ...rest,
778
+ children: /* @__PURE__ */ jsxRuntime.jsx(
779
+ gui.Progress,
780
+ {
781
+ value: percent,
782
+ max: 100,
783
+ unstyled: true,
784
+ className: trackProps?.className,
785
+ width: "100%",
786
+ overflow: "hidden",
787
+ borderRadius: 9999,
788
+ height: SIZE3[size],
789
+ backgroundColor: "var(--color-progress-track)",
790
+ style: trackStyle,
791
+ children: /* @__PURE__ */ jsxRuntime.jsx(
792
+ gui.Progress.Indicator,
793
+ {
794
+ unstyled: true,
795
+ transition: "slow",
796
+ height: "100%",
797
+ borderRadius: 9999,
798
+ backgroundColor: color ? void 0 : "var(--color-progress-indicator)",
799
+ style: {
800
+ ...color && { backgroundColor: `var(--color-${color.replace(".", "-")}, ${color})` }
801
+ }
802
+ }
803
+ )
804
+ }
805
+ )
806
+ }
807
+ );
808
+ }
809
+ );
810
+ var WEIGHT = { xs: 0.5, sm: 1, md: 2, lg: 3 };
811
+ var Separator = React3__namespace.default.forwardRef(
812
+ function Separator2({ orientation = "horizontal", variant = "solid", size = "sm", ...rest }, ref) {
813
+ const vertical = orientation === "vertical";
814
+ return /* @__PURE__ */ jsxRuntime.jsx(
815
+ gui.Separator,
816
+ {
817
+ ref,
818
+ vertical,
819
+ role: "separator",
820
+ "aria-orientation": orientation,
821
+ borderWidth: 0,
822
+ borderStyle: variant,
823
+ borderColor: "var(--color-border-divider)",
824
+ ...vertical ? { borderLeftWidth: WEIGHT[size], alignSelf: "stretch", height: "auto", width: 0 } : { borderTopWidth: WEIGHT[size], width: "100%" },
825
+ ...rest
826
+ }
827
+ );
828
+ }
829
+ );
830
+ var SIZE4 = {
831
+ xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
832
+ sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
833
+ md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
834
+ lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$6", borderRadius: 8 },
835
+ "2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$7", borderRadius: 8 }
836
+ };
837
+ var Textarea = React3__namespace.default.forwardRef(
838
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
839
+ const handleChange = React3__namespace.default.useCallback(
840
+ (event) => {
841
+ onChange?.(event);
842
+ onChangeText?.(event.target.value);
843
+ },
844
+ [onChange, onChangeText]
845
+ );
846
+ return /* @__PURE__ */ jsxRuntime.jsx(
847
+ gui.TextArea,
848
+ {
849
+ ref,
850
+ unstyled: true,
851
+ className: className ? `lux-control ${className}` : "lux-control",
852
+ ...CONTROL,
853
+ ...SIZE4[size],
854
+ ...VARIANT[variant],
855
+ ...rest,
856
+ onChange: handleChange
857
+ }
858
+ );
859
+ }
860
+ );
861
+ Textarea.displayName = "Textarea";
862
+ var agentTypeConfig = {
863
+ research: {
864
+ icon: lucideReact.Search,
865
+ color: "bg-[var(--color-link-primary)]",
866
+ capabilities: [
867
+ "web-search",
868
+ "data-analysis",
869
+ "fact-checking",
870
+ "source-validation"
871
+ ]
872
+ },
873
+ code: {
874
+ icon: lucideReact.Code,
875
+ color: "bg-[var(--lux-state-success)]",
876
+ capabilities: ["code-generation", "debugging", "testing", "optimization"]
877
+ },
878
+ analysis: {
879
+ icon: lucideReact.Brain,
880
+ color: "bg-[var(--color-link-primary)]",
881
+ capabilities: [
882
+ "data-processing",
883
+ "pattern-recognition",
884
+ "insights",
885
+ "reporting"
886
+ ]
887
+ },
888
+ creative: {
889
+ icon: lucideReact.Palette,
890
+ color: "bg-[var(--color-link-primary)]",
891
+ capabilities: [
892
+ "content-creation",
893
+ "design",
894
+ "brainstorming",
895
+ "storytelling"
896
+ ]
897
+ },
898
+ automation: {
899
+ icon: lucideReact.Zap,
900
+ color: "bg-[var(--lux-state-notice)]",
901
+ capabilities: [
902
+ "workflow-execution",
903
+ "api-integration",
904
+ "scheduling",
905
+ "monitoring"
906
+ ]
907
+ }
908
+ };
909
+ var CommunicationFlow = ({ connections, agents }) => {
910
+ const [activeFlows, setActiveFlows] = React3.useState([]);
911
+ React3.useEffect(() => {
912
+ const interval = setInterval(() => {
913
+ if (connections.length > 0) {
914
+ const randomConnection = connections[Math.floor(Math.random() * connections.length)];
915
+ setActiveFlows((prev) => [...prev, randomConnection.id]);
916
+ setTimeout(() => {
917
+ setActiveFlows(
918
+ (prev) => prev.filter((id) => id !== randomConnection.id)
919
+ );
920
+ }, 2e3);
921
+ }
922
+ }, 3e3);
923
+ return () => clearInterval(interval);
924
+ }, [connections]);
925
+ return /* @__PURE__ */ jsxRuntime.jsx(
926
+ "svg",
927
+ {
928
+ className: "absolute inset-0 w-full h-full pointer-events-none z-10",
929
+ style: { overflow: "visible" },
930
+ children: connections.map((connection) => {
931
+ const sourceAgent = agents.find((a) => a.id === connection.source);
932
+ const targetAgent = agents.find((a) => a.id === connection.target);
933
+ if (!sourceAgent || !targetAgent) return null;
934
+ const isActive = activeFlows.includes(connection.id);
935
+ return /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
936
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx(
937
+ "marker",
938
+ {
939
+ id: `arrowhead-${connection.id}`,
940
+ markerWidth: "10",
941
+ markerHeight: "7",
942
+ refX: "10",
943
+ refY: "3.5",
944
+ orient: "auto",
945
+ children: /* @__PURE__ */ jsxRuntime.jsx(
946
+ "polygon",
947
+ {
948
+ points: "0 0, 10 3.5, 0 7",
949
+ fill: isActive ? "#3b82f6" : "#94a3b8"
950
+ }
951
+ )
952
+ }
953
+ ) }),
954
+ /* @__PURE__ */ jsxRuntime.jsx(
955
+ "line",
956
+ {
957
+ x1: sourceAgent.position.x + 50,
958
+ y1: sourceAgent.position.y + 50,
959
+ x2: targetAgent.position.x + 50,
960
+ y2: targetAgent.position.y + 50,
961
+ stroke: isActive ? "#3b82f6" : "#94a3b8",
962
+ strokeWidth: isActive ? "3" : "2",
963
+ strokeDasharray: isActive ? "5,5" : "0",
964
+ markerEnd: `url(#arrowhead-${connection.id})`,
965
+ className: isActive ? "animate-pulse" : "",
966
+ style: ui.css(isActive ? "animate-pulse" : "")
967
+ }
968
+ ),
969
+ isActive && /* @__PURE__ */ jsxRuntime.jsx("circle", { r: "4", fill: "#3b82f6", className: "animate-pulse", style: ui.css("animate-pulse"), children: /* @__PURE__ */ jsxRuntime.jsx(
970
+ "animateMotion",
971
+ {
972
+ dur: "2s",
973
+ repeatCount: "1",
974
+ path: `M${sourceAgent.position.x + 50},${sourceAgent.position.y + 50} L${targetAgent.position.x + 50},${targetAgent.position.y + 50}`
975
+ }
976
+ ) })
977
+ ] }, connection.id);
978
+ })
979
+ }
980
+ );
981
+ };
982
+ var AgentCard = ({
983
+ agent,
984
+ isSelected,
985
+ onSelect,
986
+ onEdit,
987
+ onDelete,
988
+ onDrag,
989
+ isDragging
990
+ }) => {
991
+ const dragRef = React3.useRef(null);
992
+ const [isDragActive, setIsDragActive] = React3.useState(false);
993
+ const config = agentTypeConfig[agent.type];
994
+ const Icon = config.icon;
995
+ const handleMouseDown = React3.useCallback(
996
+ (e) => {
997
+ if (!onDrag) return;
998
+ setIsDragActive(true);
999
+ const startX = e.clientX - agent.position.x;
1000
+ const startY = e.clientY - agent.position.y;
1001
+ const handleMouseMove = (e2) => {
1002
+ const newX = e2.clientX - startX;
1003
+ const newY = e2.clientY - startY;
1004
+ onDrag({ x: Math.max(0, newX), y: Math.max(0, newY) });
1005
+ };
1006
+ const handleMouseUp = () => {
1007
+ setIsDragActive(false);
1008
+ document.removeEventListener("mousemove", handleMouseMove);
1009
+ document.removeEventListener("mouseup", handleMouseUp);
1010
+ };
1011
+ document.addEventListener("mousemove", handleMouseMove);
1012
+ document.addEventListener("mouseup", handleMouseUp);
1013
+ },
1014
+ [agent.position, onDrag]
1015
+ );
1016
+ const getStatusColor = (status) => {
1017
+ switch (status) {
1018
+ case "idle":
1019
+ return "bg-[var(--color-bg-body)]";
1020
+ case "working":
1021
+ return "bg-[var(--color-link-primary)]";
1022
+ case "completed":
1023
+ return "bg-[var(--lux-state-success)]";
1024
+ case "error":
1025
+ return "bg-[var(--lux-state-error)]";
1026
+ default:
1027
+ return "bg-[var(--color-bg-body)]";
1028
+ }
1029
+ };
1030
+ const getStatusIcon = (status) => {
1031
+ switch (status) {
1032
+ case "idle":
1033
+ return lucideReact.Clock;
1034
+ case "working":
1035
+ return lucideReact.Activity;
1036
+ case "completed":
1037
+ return lucideReact.CheckCircle;
1038
+ case "error":
1039
+ return lucideReact.AlertCircle;
1040
+ default:
1041
+ return lucideReact.Clock;
1042
+ }
1043
+ };
1044
+ const StatusIcon = getStatusIcon(agent.status);
1045
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1046
+ ui.Card,
1047
+ {
1048
+ ref: dragRef,
1049
+ className: ui.cn(
1050
+ "absolute w-64 transition-all duration-200 cursor-move select-none",
1051
+ isSelected && "ring-2 ring-[var(--color-link-primary)]",
1052
+ isDragActive && "shadow-lg scale-105",
1053
+ isDragging && "opacity-50"
1054
+ ),
1055
+ style: {
1056
+ left: agent.position.x,
1057
+ top: agent.position.y,
1058
+ transform: isDragActive ? "scale(1.05)" : "scale(1)"
1059
+ },
1060
+ onMouseDown: handleMouseDown,
1061
+ onClick: onSelect,
1062
+ children: [
1063
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-2"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1064
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
1065
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: ui.cn("p-2 rounded-lg text-white", config.color), children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { style: ui.css("h-4 w-4") }) }),
1066
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1067
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { ...ui.sx("text-sm"), children: agent.name }),
1068
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardDescription, { ...ui.sx("text-xs capitalize"), children: [
1069
+ agent.type,
1070
+ " Agent"
1071
+ ] })
1072
+ ] })
1073
+ ] }),
1074
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-1", children: [
1075
+ /* @__PURE__ */ jsxRuntime.jsx(
1076
+ Button,
1077
+ {
1078
+ variant: "ghost",
1079
+ size: "sm",
1080
+ onClick: (e) => {
1081
+ e.stopPropagation();
1082
+ onEdit?.();
1083
+ },
1084
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Edit, { style: ui.css("h-3 w-3") })
1085
+ }
1086
+ ),
1087
+ /* @__PURE__ */ jsxRuntime.jsx(
1088
+ Button,
1089
+ {
1090
+ variant: "ghost",
1091
+ size: "sm",
1092
+ onClick: (e) => {
1093
+ e.stopPropagation();
1094
+ onDelete?.();
1095
+ },
1096
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { style: ui.css("h-3 w-3") })
1097
+ }
1098
+ )
1099
+ ] })
1100
+ ] }) }),
1101
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { ...ui.sx("space-y-2"), children: [
1102
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
1103
+ /* @__PURE__ */ jsxRuntime.jsx(StatusIcon, { style: ui.css(ui.cn("h-3 w-3", getStatusColor(agent.status))) }),
1104
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs font-medium capitalize", children: agent.status })
1105
+ ] }),
1106
+ agent.currentTask && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "bg-muted p-2 rounded text-xs", children: [
1107
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-medium", children: agent.currentTask.title }),
1108
+ /* @__PURE__ */ jsxRuntime.jsx(Progress, { value: agent.currentTask.progress, ...ui.sx("mt-1 h-1") })
1109
+ ] }),
1110
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-wrap gap-1", children: [
1111
+ agent.capabilities.slice(0, 3).map((capability) => /* @__PURE__ */ jsxRuntime.jsx(Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: capability }, capability)),
1112
+ agent.capabilities.length > 3 && /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: "outline", ...ui.sx("text-xs"), children: [
1113
+ "+",
1114
+ agent.capabilities.length - 3
1115
+ ] })
1116
+ ] }),
1117
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between text-xs text-muted-foreground", children: [
1118
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1119
+ "Tasks: ",
1120
+ agent.performance.tasksCompleted
1121
+ ] }),
1122
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1123
+ "Success: ",
1124
+ agent.performance.successRate,
1125
+ "%"
1126
+ ] })
1127
+ ] })
1128
+ ] })
1129
+ ]
1130
+ }
1131
+ );
1132
+ };
1133
+ var CreateAgentDialog = ({ onAgentCreate }) => {
1134
+ const [open, setOpen] = React3.useState(false);
1135
+ const [formData, setFormData] = React3.useState({
1136
+ name: "",
1137
+ type: "research",
1138
+ description: "",
1139
+ capabilities: []
1140
+ });
1141
+ const handleSubmit = () => {
1142
+ if (!formData.name) return;
1143
+ onAgentCreate({
1144
+ name: formData.name,
1145
+ type: formData.type,
1146
+ status: "idle",
1147
+ capabilities: formData.capabilities.length > 0 ? formData.capabilities : agentTypeConfig[formData.type].capabilities,
1148
+ connections: [],
1149
+ description: formData.description
1150
+ });
1151
+ setFormData({
1152
+ name: "",
1153
+ type: "research",
1154
+ description: "",
1155
+ capabilities: []
1156
+ });
1157
+ setOpen(false);
1158
+ };
1159
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open, onOpenChange: setOpen, children: [
1160
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { children: [
1161
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { style: ui.css("h-4 w-4 mr-2") }),
1162
+ "Create Agent"
1163
+ ] }) }),
1164
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { children: [
1165
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogHeader, { children: [
1166
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Create New Agent" }),
1167
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "Configure a new AI agent for your workflow" })
1168
+ ] }),
1169
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-4", children: [
1170
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1171
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "name", children: "Agent Name" }),
1172
+ /* @__PURE__ */ jsxRuntime.jsx(
1173
+ Input,
1174
+ {
1175
+ id: "name",
1176
+ value: formData.name,
1177
+ onChange: (e) => setFormData((prev) => ({ ...prev, name: e.target.value })),
1178
+ placeholder: "Enter agent name"
1179
+ }
1180
+ )
1181
+ ] }),
1182
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1183
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "type", children: "Agent Type" }),
1184
+ /* @__PURE__ */ jsxRuntime.jsxs(
1185
+ ui.Select,
1186
+ {
1187
+ value: formData.type,
1188
+ onValueChange: (value) => setFormData((prev) => ({ ...prev, type: value })),
1189
+ children: [
1190
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.SelectValue, {}) }),
1191
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectContent, { children: Object.entries(agentTypeConfig).map(([type, config]) => {
1192
+ const Icon = config.icon;
1193
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: type, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
1194
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { style: ui.css("h-4 w-4") }),
1195
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "capitalize", children: type })
1196
+ ] }) }, type);
1197
+ }) })
1198
+ ]
1199
+ }
1200
+ )
1201
+ ] }),
1202
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1203
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "description", children: "Description" }),
1204
+ /* @__PURE__ */ jsxRuntime.jsx(
1205
+ Textarea,
1206
+ {
1207
+ id: "description",
1208
+ value: formData.description,
1209
+ onChange: (e) => setFormData((prev) => ({
1210
+ ...prev,
1211
+ description: e.target.value
1212
+ })),
1213
+ placeholder: "Describe the agent's purpose and role"
1214
+ }
1215
+ )
1216
+ ] }),
1217
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-end gap-2", children: [
1218
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
1219
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: handleSubmit, disabled: !formData.name, children: "Create Agent" })
1220
+ ] })
1221
+ ] })
1222
+ ] })
1223
+ ] });
1224
+ };
1225
+ var TaskAssignmentDialog = ({ agents, onTaskAssign }) => {
1226
+ const [open, setOpen] = React3.useState(false);
1227
+ const [taskData, setTaskData] = React3.useState({
1228
+ title: "",
1229
+ description: "",
1230
+ priority: "medium",
1231
+ assignedTo: "",
1232
+ estimatedTime: 0
1233
+ });
1234
+ const handleSubmit = () => {
1235
+ if (!taskData.title || !taskData.assignedTo) return;
1236
+ const task = {
1237
+ id: crypto.randomUUID(),
1238
+ title: taskData.title,
1239
+ description: taskData.description,
1240
+ priority: taskData.priority,
1241
+ status: "pending",
1242
+ progress: 0,
1243
+ createdAt: /* @__PURE__ */ new Date(),
1244
+ estimatedTime: taskData.estimatedTime || void 0
1245
+ };
1246
+ onTaskAssign(task, taskData.assignedTo);
1247
+ setTaskData({
1248
+ title: "",
1249
+ description: "",
1250
+ priority: "medium",
1251
+ assignedTo: "",
1252
+ estimatedTime: 0
1253
+ });
1254
+ setOpen(false);
1255
+ };
1256
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open, onOpenChange: setOpen, children: [
1257
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", children: [
1258
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { style: ui.css("h-4 w-4 mr-2") }),
1259
+ "Assign Task"
1260
+ ] }) }),
1261
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { children: [
1262
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogHeader, { children: [
1263
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Assign New Task" }),
1264
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "Create and assign a task to an agent" })
1265
+ ] }),
1266
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-4", children: [
1267
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1268
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "title", children: "Task Title" }),
1269
+ /* @__PURE__ */ jsxRuntime.jsx(
1270
+ Input,
1271
+ {
1272
+ id: "title",
1273
+ value: taskData.title,
1274
+ onChange: (e) => setTaskData((prev) => ({ ...prev, title: e.target.value })),
1275
+ placeholder: "Enter task title"
1276
+ }
1277
+ )
1278
+ ] }),
1279
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1280
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "description", children: "Description" }),
1281
+ /* @__PURE__ */ jsxRuntime.jsx(
1282
+ Textarea,
1283
+ {
1284
+ id: "description",
1285
+ value: taskData.description,
1286
+ onChange: (e) => setTaskData((prev) => ({
1287
+ ...prev,
1288
+ description: e.target.value
1289
+ })),
1290
+ placeholder: "Describe the task requirements"
1291
+ }
1292
+ )
1293
+ ] }),
1294
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-4", children: [
1295
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex-1", children: [
1296
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "priority", children: "Priority" }),
1297
+ /* @__PURE__ */ jsxRuntime.jsxs(
1298
+ ui.Select,
1299
+ {
1300
+ value: taskData.priority,
1301
+ onValueChange: (value) => setTaskData((prev) => ({ ...prev, priority: value })),
1302
+ children: [
1303
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.SelectValue, {}) }),
1304
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.SelectContent, { children: [
1305
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "low", children: "Low" }),
1306
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "medium", children: "Medium" }),
1307
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "high", children: "High" })
1308
+ ] })
1309
+ ]
1310
+ }
1311
+ )
1312
+ ] }),
1313
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex-1", children: [
1314
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "estimatedTime", children: "Estimated Time (hours)" }),
1315
+ /* @__PURE__ */ jsxRuntime.jsx(
1316
+ Input,
1317
+ {
1318
+ id: "estimatedTime",
1319
+ type: "number",
1320
+ value: taskData.estimatedTime,
1321
+ onChange: (e) => setTaskData((prev) => ({
1322
+ ...prev,
1323
+ estimatedTime: parseInt(e.target.value) || 0
1324
+ })),
1325
+ placeholder: "0"
1326
+ }
1327
+ )
1328
+ ] })
1329
+ ] }),
1330
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1331
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assignedTo", children: "Assign to Agent" }),
1332
+ /* @__PURE__ */ jsxRuntime.jsxs(
1333
+ ui.Select,
1334
+ {
1335
+ value: taskData.assignedTo,
1336
+ onValueChange: (value) => setTaskData((prev) => ({ ...prev, assignedTo: value })),
1337
+ children: [
1338
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.SelectValue, { placeholder: "Select an agent" }) }),
1339
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectContent, { children: agents.filter((agent) => agent.status === "idle").map((agent) => /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: agent.id, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
1340
+ /* @__PURE__ */ jsxRuntime.jsx(
1341
+ ui.Box,
1342
+ {
1343
+ className: ui.cn(
1344
+ "w-2 h-2 rounded-full",
1345
+ agentTypeConfig[agent.type].color
1346
+ )
1347
+ }
1348
+ ),
1349
+ agent.name
1350
+ ] }) }, agent.id)) })
1351
+ ]
1352
+ }
1353
+ )
1354
+ ] }),
1355
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-end gap-2", children: [
1356
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
1357
+ /* @__PURE__ */ jsxRuntime.jsx(
1358
+ Button,
1359
+ {
1360
+ onClick: handleSubmit,
1361
+ disabled: !taskData.title || !taskData.assignedTo,
1362
+ children: "Assign Task"
1363
+ }
1364
+ )
1365
+ ] })
1366
+ ] })
1367
+ ] })
1368
+ ] });
1369
+ };
1370
+ var AIAgents = ({
1371
+ agents: initialAgents = [],
1372
+ onAgentCreate,
1373
+ onTaskAssign,
1374
+ onWorkflowSave,
1375
+ workflowMode = "custom",
1376
+ className
1377
+ }) => {
1378
+ const [agents, setAgents] = React3.useState(initialAgents);
1379
+ const [connections, setConnections] = React3.useState([]);
1380
+ const [selectedAgent, setSelectedAgent] = React3.useState(null);
1381
+ const [isWorkflowRunning, setIsWorkflowRunning] = React3.useState(false);
1382
+ const workflowRef = React3.useRef(null);
1383
+ React3.useEffect(() => {
1384
+ if (initialAgents.length === 0) {
1385
+ const defaultAgents = [
1386
+ {
1387
+ id: "1",
1388
+ name: "Research Assistant",
1389
+ type: "research",
1390
+ capabilities: ["web-search", "data-analysis", "fact-checking"],
1391
+ status: "idle",
1392
+ position: { x: 50, y: 50 },
1393
+ connections: ["2"],
1394
+ performance: {
1395
+ tasksCompleted: 12,
1396
+ successRate: 95,
1397
+ avgCompletionTime: 45
1398
+ }
1399
+ },
1400
+ {
1401
+ id: "2",
1402
+ name: "Code Generator",
1403
+ type: "code",
1404
+ capabilities: ["code-generation", "debugging", "testing"],
1405
+ status: "working",
1406
+ position: { x: 400, y: 50 },
1407
+ connections: ["3"],
1408
+ currentTask: {
1409
+ id: "t1",
1410
+ title: "Generate React Component",
1411
+ description: "Create a reusable button component",
1412
+ priority: "high",
1413
+ status: "in-progress",
1414
+ progress: 65,
1415
+ createdAt: /* @__PURE__ */ new Date()
1416
+ },
1417
+ performance: {
1418
+ tasksCompleted: 8,
1419
+ successRate: 90,
1420
+ avgCompletionTime: 38
1421
+ }
1422
+ },
1423
+ {
1424
+ id: "3",
1425
+ name: "Quality Analyst",
1426
+ type: "analysis",
1427
+ capabilities: ["code-review", "performance-analysis", "testing"],
1428
+ status: "idle",
1429
+ position: { x: 750, y: 50 },
1430
+ connections: [],
1431
+ performance: {
1432
+ tasksCompleted: 15,
1433
+ successRate: 98,
1434
+ avgCompletionTime: 25
1435
+ }
1436
+ }
1437
+ ];
1438
+ setAgents(defaultAgents);
1439
+ const defaultConnections = [
1440
+ { id: "c1", source: "1", target: "2", animated: true },
1441
+ { id: "c2", source: "2", target: "3", animated: true }
1442
+ ];
1443
+ setConnections(defaultConnections);
1444
+ }
1445
+ }, [initialAgents]);
1446
+ const handleAgentCreate = (agentData) => {
1447
+ const newAgent = {
1448
+ ...agentData,
1449
+ id: crypto.randomUUID(),
1450
+ position: { x: 100 + agents.length * 300, y: 100 },
1451
+ performance: {
1452
+ tasksCompleted: 0,
1453
+ successRate: 100,
1454
+ avgCompletionTime: 0
1455
+ }
1456
+ };
1457
+ setAgents((prev) => [...prev, newAgent]);
1458
+ onAgentCreate?.(agentData);
1459
+ };
1460
+ const handleTaskAssign = (task, agentId) => {
1461
+ setAgents(
1462
+ (prev) => prev.map(
1463
+ (agent) => agent.id === agentId ? { ...agent, currentTask: task, status: "working" } : agent
1464
+ )
1465
+ );
1466
+ onTaskAssign?.(task, agentId);
1467
+ const progressInterval = setInterval(() => {
1468
+ setAgents(
1469
+ (prev) => prev.map((agent) => {
1470
+ if (agent.id === agentId && agent.currentTask) {
1471
+ const newProgress = Math.min(agent.currentTask.progress + 10, 100);
1472
+ const updatedTask = { ...agent.currentTask, progress: newProgress };
1473
+ if (newProgress === 100) {
1474
+ clearInterval(progressInterval);
1475
+ return {
1476
+ ...agent,
1477
+ currentTask: void 0,
1478
+ status: "completed",
1479
+ performance: {
1480
+ ...agent.performance,
1481
+ tasksCompleted: agent.performance.tasksCompleted + 1
1482
+ }
1483
+ };
1484
+ }
1485
+ return { ...agent, currentTask: updatedTask };
1486
+ }
1487
+ return agent;
1488
+ })
1489
+ );
1490
+ }, 2e3);
1491
+ };
1492
+ const handleAgentDrag = (agentId, position) => {
1493
+ setAgents(
1494
+ (prev) => prev.map(
1495
+ (agent) => agent.id === agentId ? { ...agent, position } : agent
1496
+ )
1497
+ );
1498
+ };
1499
+ const handleDeleteAgent = (agentId) => {
1500
+ setAgents((prev) => prev.filter((agent) => agent.id !== agentId));
1501
+ setConnections(
1502
+ (prev) => prev.filter((conn) => conn.source !== agentId && conn.target !== agentId)
1503
+ );
1504
+ if (selectedAgent === agentId) {
1505
+ setSelectedAgent(null);
1506
+ }
1507
+ };
1508
+ const handleWorkflowToggle = () => {
1509
+ setIsWorkflowRunning(!isWorkflowRunning);
1510
+ if (!isWorkflowRunning) {
1511
+ agents.forEach((agent, index) => {
1512
+ setTimeout(() => {
1513
+ setAgents(
1514
+ (prev) => prev.map(
1515
+ (a) => a.id === agent.id ? { ...a, status: "working" } : a
1516
+ )
1517
+ );
1518
+ }, index * 1e3);
1519
+ });
1520
+ } else {
1521
+ setAgents(
1522
+ (prev) => prev.map((agent) => ({ ...agent, status: "idle" }))
1523
+ );
1524
+ }
1525
+ };
1526
+ const handleSaveWorkflow = () => {
1527
+ const workflow = { agents, connections };
1528
+ onWorkflowSave?.(workflow);
1529
+ };
1530
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: ui.cn("w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Tabs, { defaultValue: "workflow", ...ui.sx("w-full h-full"), children: [
1531
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between p-4 border-b", children: [
1532
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.TabsList, { children: [
1533
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "workflow", children: "Workflow Designer" }),
1534
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "agents", children: "Agent Manager" }),
1535
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "monitoring", children: "Monitoring" })
1536
+ ] }),
1537
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
1538
+ /* @__PURE__ */ jsxRuntime.jsx(CreateAgentDialog, { onAgentCreate: handleAgentCreate }),
1539
+ /* @__PURE__ */ jsxRuntime.jsx(
1540
+ TaskAssignmentDialog,
1541
+ {
1542
+ agents,
1543
+ onTaskAssign: handleTaskAssign
1544
+ }
1545
+ ),
1546
+ /* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical", ...ui.sx("h-6") }),
1547
+ /* @__PURE__ */ jsxRuntime.jsx(
1548
+ Button,
1549
+ {
1550
+ variant: isWorkflowRunning ? "destructive" : "default",
1551
+ onClick: handleWorkflowToggle,
1552
+ children: isWorkflowRunning ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1553
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleStop, { style: ui.css("h-4 w-4 mr-2") }),
1554
+ "Stop Workflow"
1555
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1556
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { style: ui.css("h-4 w-4 mr-2") }),
1557
+ "Run Workflow"
1558
+ ] })
1559
+ }
1560
+ ),
1561
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", onClick: handleSaveWorkflow, children: "Save Workflow" })
1562
+ ] })
1563
+ ] }),
1564
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "workflow", ...ui.sx("flex-1 p-0"), children: /* @__PURE__ */ jsxRuntime.jsxs(
1565
+ ui.Box,
1566
+ {
1567
+ ref: workflowRef,
1568
+ className: "relative w-full h-[600px] bg-muted/20 overflow-hidden",
1569
+ style: {
1570
+ backgroundImage: `radial-gradient(circle, #e5e7eb 1px, transparent 1px)`,
1571
+ backgroundSize: "20px 20px"
1572
+ },
1573
+ children: [
1574
+ /* @__PURE__ */ jsxRuntime.jsx(CommunicationFlow, { connections, agents }),
1575
+ agents.map((agent) => /* @__PURE__ */ jsxRuntime.jsx(
1576
+ AgentCard,
1577
+ {
1578
+ agent,
1579
+ isSelected: selectedAgent === agent.id,
1580
+ onSelect: () => setSelectedAgent(agent.id),
1581
+ onEdit: () => {
1582
+ },
1583
+ onDelete: () => handleDeleteAgent(agent.id),
1584
+ onDrag: (position) => handleAgentDrag(agent.id, position)
1585
+ },
1586
+ agent.id
1587
+ )),
1588
+ agents.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "absolute inset-0 flex items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center", children: [
1589
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { style: ui.css("h-12 w-12 mx-auto mb-4") }),
1590
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h3", className: "text-lg font-medium", children: "No Agents Created" }),
1591
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm", children: "Create your first AI agent to get started" })
1592
+ ] }) })
1593
+ ]
1594
+ }
1595
+ ) }),
1596
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "agents", ...ui.sx("flex-1 p-4"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: agents.map((agent) => {
1597
+ const config = agentTypeConfig[agent.type];
1598
+ const Icon = config.icon;
1599
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1600
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-3", children: [
1601
+ /* @__PURE__ */ jsxRuntime.jsx(
1602
+ ui.Box,
1603
+ {
1604
+ className: ui.cn(
1605
+ "p-3 rounded-lg text-white",
1606
+ config.color
1607
+ ),
1608
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { style: ui.css("h-5 w-5") })
1609
+ }
1610
+ ),
1611
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1612
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { ...ui.sx("text-lg"), children: agent.name }),
1613
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardDescription, { ...ui.sx("capitalize"), children: [
1614
+ agent.type,
1615
+ " Agent"
1616
+ ] })
1617
+ ] })
1618
+ ] }) }),
1619
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { ...ui.sx("space-y-4"), children: [
1620
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1621
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: "Status" }),
1622
+ /* @__PURE__ */ jsxRuntime.jsx(
1623
+ Badge,
1624
+ {
1625
+ colorPalette: agent.status === "working" ? "gray" : "gray",
1626
+ ...ui.sx("capitalize"),
1627
+ children: agent.status
1628
+ }
1629
+ )
1630
+ ] }),
1631
+ agent.currentTask && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1632
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-sm font-medium", children: "Current Task" }),
1633
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "bg-muted p-3 rounded-lg", children: [
1634
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-medium text-sm", children: agent.currentTask.title }),
1635
+ /* @__PURE__ */ jsxRuntime.jsx(
1636
+ Progress,
1637
+ {
1638
+ value: agent.currentTask.progress,
1639
+ ...ui.sx("mt-2")
1640
+ }
1641
+ ),
1642
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-xs text-muted-foreground mt-1", children: [
1643
+ agent.currentTask.progress,
1644
+ "% Complete"
1645
+ ] })
1646
+ ] })
1647
+ ] }),
1648
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1649
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-sm font-medium", children: "Capabilities" }),
1650
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-1", children: agent.capabilities.map((capability) => /* @__PURE__ */ jsxRuntime.jsx(
1651
+ Badge,
1652
+ {
1653
+ variant: "outline",
1654
+ ...ui.sx("text-xs"),
1655
+ children: capability
1656
+ },
1657
+ capability
1658
+ )) })
1659
+ ] }),
1660
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "grid grid-cols-3 gap-2 text-center", children: [
1661
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1662
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-lg font-bold", children: agent.performance.tasksCompleted }),
1663
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs text-muted-foreground", children: "Tasks" })
1664
+ ] }),
1665
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1666
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-lg font-bold", children: [
1667
+ agent.performance.successRate,
1668
+ "%"
1669
+ ] }),
1670
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs text-muted-foreground", children: "Success" })
1671
+ ] }),
1672
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1673
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-lg font-bold", children: [
1674
+ agent.performance.avgCompletionTime,
1675
+ "m"
1676
+ ] }),
1677
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs text-muted-foreground", children: "Avg Time" })
1678
+ ] })
1679
+ ] })
1680
+ ] })
1681
+ ] }, agent.id);
1682
+ }) }) }),
1683
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "monitoring", ...ui.sx("flex-1 p-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: [
1684
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1685
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("flex items-center gap-2"), children: [
1686
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Activity, { style: ui.css("h-5 w-5") }),
1687
+ "System Overview"
1688
+ ] }) }),
1689
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { ...ui.sx("space-y-4"), children: [
1690
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "grid grid-cols-2 gap-4", children: [
1691
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center p-4 bg-muted rounded-lg", children: [
1692
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-2xl font-bold", children: agents.length }),
1693
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-sm text-muted-foreground", children: "Total Agents" })
1694
+ ] }),
1695
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center p-4 bg-muted rounded-lg", children: [
1696
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-2xl font-bold", children: agents.filter((a) => a.status === "working").length }),
1697
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-sm text-muted-foreground", children: "Active" })
1698
+ ] })
1699
+ ] }),
1700
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1701
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between text-sm", children: [
1702
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Workflow Status" }),
1703
+ /* @__PURE__ */ jsxRuntime.jsx(
1704
+ Badge,
1705
+ {
1706
+ colorPalette: isWorkflowRunning ? "gray" : "gray",
1707
+ children: isWorkflowRunning ? "Running" : "Stopped"
1708
+ }
1709
+ )
1710
+ ] }),
1711
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between text-sm", children: [
1712
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Connected Agents" }),
1713
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1714
+ connections.length,
1715
+ " connections"
1716
+ ] })
1717
+ ] })
1718
+ ] })
1719
+ ] })
1720
+ ] }),
1721
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1722
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("flex items-center gap-2"), children: [
1723
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Network, { style: ui.css("h-5 w-5") }),
1724
+ "Agent Performance"
1725
+ ] }) }),
1726
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ...ui.sx("h-64"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-3", children: agents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
1727
+ ui.Box,
1728
+ {
1729
+ className: "flex items-center justify-between p-3 bg-muted rounded-lg",
1730
+ children: [
1731
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-3", children: [
1732
+ /* @__PURE__ */ jsxRuntime.jsx(
1733
+ ui.Box,
1734
+ {
1735
+ className: ui.cn(
1736
+ "w-3 h-3 rounded-full",
1737
+ agentTypeConfig[agent.type].color
1738
+ )
1739
+ }
1740
+ ),
1741
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1742
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-medium text-sm", children: agent.name }),
1743
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs text-muted-foreground capitalize", children: agent.type })
1744
+ ] })
1745
+ ] }),
1746
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-right", children: [
1747
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-sm font-medium", children: [
1748
+ agent.performance.successRate,
1749
+ "%"
1750
+ ] }),
1751
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs text-muted-foreground", children: "success rate" })
1752
+ ] })
1753
+ ]
1754
+ },
1755
+ agent.id
1756
+ )) }) }) })
1757
+ ] })
1758
+ ] }) })
1759
+ ] }) });
1760
+ };
1761
+ var ai_agents_default = AIAgents;
1762
+
1763
+ exports.AIAgents = AIAgents;
1764
+ exports.default = ai_agents_default;