@luxfi/ui 7.4.15 → 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 (910) hide show
  1. package/LICENSE.md +21 -0
  2. package/dist/3d-button.cjs +298 -0
  3. package/dist/3d-button.d.ts +52 -0
  4. package/dist/3d-button.d.ts.map +1 -0
  5. package/dist/3d-button.js +273 -0
  6. package/dist/3d-card.cjs +236 -0
  7. package/dist/3d-card.d.ts +29 -0
  8. package/dist/3d-card.d.ts.map +1 -0
  9. package/dist/3d-card.js +209 -0
  10. package/dist/3d-carousel.cjs +375 -0
  11. package/dist/3d-carousel.d.ts +26 -0
  12. package/dist/3d-carousel.d.ts.map +1 -0
  13. package/dist/3d-carousel.js +348 -0
  14. package/dist/3d-grid.cjs +360 -0
  15. package/dist/3d-grid.d.ts +49 -0
  16. package/dist/3d-grid.d.ts.map +1 -0
  17. package/dist/3d-grid.js +335 -0
  18. package/dist/3d-marquee.cjs +8669 -0
  19. package/dist/3d-marquee.d.ts +65 -0
  20. package/dist/3d-marquee.d.ts.map +1 -0
  21. package/dist/3d-marquee.js +8645 -0
  22. package/dist/3d-model-viewer.cjs +909 -0
  23. package/dist/3d-model-viewer.d.ts +45 -0
  24. package/dist/3d-model-viewer.d.ts.map +1 -0
  25. package/dist/3d-model-viewer.js +886 -0
  26. package/dist/3d-pin.cjs +46 -0
  27. package/dist/3d-pin.d.ts +8 -0
  28. package/dist/3d-pin.d.ts.map +1 -0
  29. package/dist/3d-pin.js +24 -0
  30. package/dist/3d-scene.cjs +439 -0
  31. package/dist/3d-scene.d.ts +76 -0
  32. package/dist/3d-scene.d.ts.map +1 -0
  33. package/dist/3d-scene.js +407 -0
  34. package/dist/3d-text.cjs +367 -0
  35. package/dist/3d-text.d.ts +62 -0
  36. package/dist/3d-text.d.ts.map +1 -0
  37. package/dist/3d-text.js +341 -0
  38. package/dist/accordion.d.ts +10 -12
  39. package/dist/accordion.d.ts.map +1 -0
  40. package/dist/advanced-chart.cjs +53 -0
  41. package/dist/advanced-chart.d.ts +6 -0
  42. package/dist/advanced-chart.d.ts.map +1 -0
  43. package/dist/advanced-chart.js +51 -0
  44. package/dist/advanced-navigation-bar.cjs +459 -0
  45. package/dist/advanced-navigation-bar.d.ts +14 -0
  46. package/dist/advanced-navigation-bar.d.ts.map +1 -0
  47. package/dist/advanced-navigation-bar.js +437 -0
  48. package/dist/ai-actions.cjs +57 -0
  49. package/dist/ai-actions.d.ts +14 -0
  50. package/dist/ai-actions.d.ts.map +1 -0
  51. package/dist/ai-actions.js +35 -0
  52. package/dist/ai-agents.cjs +1764 -0
  53. package/dist/ai-agents.d.ts +56 -0
  54. package/dist/ai-agents.d.ts.map +1 -0
  55. package/dist/ai-agents.js +1740 -0
  56. package/dist/ai-assistant.cjs +907 -0
  57. package/dist/ai-assistant.d.ts +28 -0
  58. package/dist/ai-assistant.d.ts.map +1 -0
  59. package/dist/ai-assistant.js +886 -0
  60. package/dist/ai-chat.cjs +1165 -0
  61. package/dist/ai-chat.d.ts +56 -0
  62. package/dist/ai-chat.d.ts.map +1 -0
  63. package/dist/ai-chat.js +1141 -0
  64. package/dist/ai-code.cjs +1866 -0
  65. package/dist/ai-code.d.ts +58 -0
  66. package/dist/ai-code.d.ts.map +1 -0
  67. package/dist/ai-code.js +1841 -0
  68. package/dist/ai-model-selector-navigation-bar.cjs +59 -0
  69. package/dist/ai-model-selector-navigation-bar.d.ts +15 -0
  70. package/dist/ai-model-selector-navigation-bar.d.ts.map +1 -0
  71. package/dist/ai-model-selector-navigation-bar.js +37 -0
  72. package/dist/ai-models.cjs +41 -0
  73. package/dist/ai-models.d.ts +15 -0
  74. package/dist/ai-models.d.ts.map +1 -0
  75. package/dist/ai-models.js +19 -0
  76. package/dist/ai-playground.cjs +1110 -0
  77. package/dist/ai-playground.d.ts +66 -0
  78. package/dist/ai-playground.d.ts.map +1 -0
  79. package/dist/ai-playground.js +1088 -0
  80. package/dist/ai-tools.cjs +1043 -0
  81. package/dist/ai-tools.d.ts +23 -0
  82. package/dist/ai-tools.d.ts.map +1 -0
  83. package/dist/ai-tools.js +1022 -0
  84. package/dist/ai-vision.cjs +1831 -0
  85. package/dist/ai-vision.d.ts +74 -0
  86. package/dist/ai-vision.d.ts.map +1 -0
  87. package/dist/ai-vision.js +1810 -0
  88. package/dist/ai-voice-settings.cjs +1511 -0
  89. package/dist/ai-voice-settings.d.ts +100 -0
  90. package/dist/ai-voice-settings.d.ts.map +1 -0
  91. package/dist/ai-voice-settings.js +1478 -0
  92. package/dist/ai-voice.cjs +1522 -0
  93. package/dist/ai-voice.d.ts +72 -0
  94. package/dist/ai-voice.d.ts.map +1 -0
  95. package/dist/ai-voice.js +1501 -0
  96. package/dist/alert.cjs +14 -147
  97. package/dist/alert.d.ts +4 -5
  98. package/dist/alert.d.ts.map +1 -0
  99. package/dist/alert.js +14 -147
  100. package/dist/android.cjs +127 -0
  101. package/dist/android.d.ts +19 -0
  102. package/dist/android.d.ts.map +1 -0
  103. package/dist/android.js +104 -0
  104. package/dist/animated-background.cjs +8830 -0
  105. package/dist/animated-background.d.ts +103 -0
  106. package/dist/animated-background.d.ts.map +1 -0
  107. package/dist/animated-background.js +8824 -0
  108. package/dist/animated-beam.cjs +8438 -0
  109. package/dist/animated-beam.d.ts +15 -0
  110. package/dist/animated-beam.d.ts.map +1 -0
  111. package/dist/animated-beam.js +8417 -0
  112. package/dist/animated-cursor.cjs +269 -0
  113. package/dist/animated-cursor.d.ts +70 -0
  114. package/dist/animated-cursor.d.ts.map +1 -0
  115. package/dist/animated-cursor.js +264 -0
  116. package/dist/animated-icon.cjs +8927 -0
  117. package/dist/animated-icon.d.ts +119 -0
  118. package/dist/animated-icon.d.ts.map +1 -0
  119. package/dist/animated-icon.js +8902 -0
  120. package/dist/animated-list.cjs +9226 -0
  121. package/dist/animated-list.d.ts +126 -0
  122. package/dist/animated-list.d.ts.map +1 -0
  123. package/dist/animated-list.js +9201 -0
  124. package/dist/animated-number.cjs +8773 -0
  125. package/dist/animated-number.d.ts +127 -0
  126. package/dist/animated-number.d.ts.map +1 -0
  127. package/dist/animated-number.js +8767 -0
  128. package/dist/animated-testimonials.cjs +8653 -0
  129. package/dist/animated-testimonials.d.ts +17 -0
  130. package/dist/animated-testimonials.d.ts.map +1 -0
  131. package/dist/animated-testimonials.js +8632 -0
  132. package/dist/animated-text.cjs +8914 -0
  133. package/dist/animated-text.d.ts +65 -0
  134. package/dist/animated-text.d.ts.map +1 -0
  135. package/dist/animated-text.js +8890 -0
  136. package/dist/animated-tooltip.cjs +8624 -0
  137. package/dist/animated-tooltip.d.ts +9 -0
  138. package/dist/animated-tooltip.d.ts.map +1 -0
  139. package/dist/animated-tooltip.js +8603 -0
  140. package/dist/announcement.cjs +465 -0
  141. package/dist/announcement.d.ts +9 -0
  142. package/dist/announcement.d.ts.map +1 -0
  143. package/dist/announcement.js +443 -0
  144. package/dist/app-switcher-navigation-bar.cjs +470 -0
  145. package/dist/app-switcher-navigation-bar.d.ts +15 -0
  146. package/dist/app-switcher-navigation-bar.d.ts.map +1 -0
  147. package/dist/app-switcher-navigation-bar.js +448 -0
  148. package/dist/apple-cards-carousel.cjs +9356 -0
  149. package/dist/apple-cards-carousel.d.ts +36 -0
  150. package/dist/apple-cards-carousel.d.ts.map +1 -0
  151. package/dist/apple-cards-carousel.js +9334 -0
  152. package/dist/apple-hello-effect.cjs +8380 -0
  153. package/dist/apple-hello-effect.d.ts +8 -0
  154. package/dist/apple-hello-effect.d.ts.map +1 -0
  155. package/dist/apple-hello-effect.js +8359 -0
  156. package/dist/auth.cjs +6 -5
  157. package/dist/auth.d.ts +11 -13
  158. package/dist/auth.d.ts.map +1 -0
  159. package/dist/auth.js +6 -5
  160. package/dist/avatar.d.ts +5 -6
  161. package/dist/avatar.d.ts.map +1 -0
  162. package/dist/badge.cjs +29 -169
  163. package/dist/badge.d.ts +9 -13
  164. package/dist/badge.d.ts.map +1 -0
  165. package/dist/badge.js +29 -169
  166. package/dist/bank.d.ts +42 -47
  167. package/dist/bank.d.ts.map +1 -0
  168. package/dist/banner.cjs +78 -0
  169. package/dist/banner.d.ts +20 -0
  170. package/dist/banner.d.ts.map +1 -0
  171. package/dist/banner.js +55 -0
  172. package/dist/breadcrumb-and-filters-navigation-bar.cjs +51 -0
  173. package/dist/breadcrumb-and-filters-navigation-bar.d.ts +10 -0
  174. package/dist/breadcrumb-and-filters-navigation-bar.d.ts.map +1 -0
  175. package/dist/breadcrumb-and-filters-navigation-bar.js +29 -0
  176. package/dist/breadcrumb-navigation-bar.cjs +37 -0
  177. package/dist/breadcrumb-navigation-bar.d.ts +10 -0
  178. package/dist/breadcrumb-navigation-bar.d.ts.map +1 -0
  179. package/dist/breadcrumb-navigation-bar.js +15 -0
  180. package/dist/button.cjs +21 -154
  181. package/dist/button.d.ts +9 -10
  182. package/dist/button.d.ts.map +1 -0
  183. package/dist/button.js +21 -154
  184. package/dist/calendar.cjs +55 -0
  185. package/dist/calendar.d.ts +9 -0
  186. package/dist/calendar.d.ts.map +1 -0
  187. package/dist/calendar.js +53 -0
  188. package/dist/centered-logo-navigation-bar.cjs +37 -0
  189. package/dist/centered-logo-navigation-bar.d.ts +15 -0
  190. package/dist/centered-logo-navigation-bar.d.ts.map +1 -0
  191. package/dist/centered-logo-navigation-bar.js +15 -0
  192. package/dist/chart.cjs +266 -0
  193. package/dist/chart.d.ts +52 -0
  194. package/dist/chart.d.ts.map +1 -0
  195. package/dist/chart.js +238 -0
  196. package/dist/checkbox.d.ts +6 -7
  197. package/dist/checkbox.d.ts.map +1 -0
  198. package/dist/choicebox.cjs +77 -0
  199. package/dist/choicebox.d.ts +15 -0
  200. package/dist/choicebox.d.ts.map +1 -0
  201. package/dist/choicebox.js +55 -0
  202. package/dist/chrome.cjs +39 -37
  203. package/dist/chrome.d.ts +15 -19
  204. package/dist/chrome.d.ts.map +1 -0
  205. package/dist/chrome.js +37 -35
  206. package/dist/close-button.d.ts +3 -5
  207. package/dist/close-button.d.ts.map +1 -0
  208. package/dist/code-block.cjs +871 -0
  209. package/dist/code-block.d.ts +38 -0
  210. package/dist/code-block.d.ts.map +1 -0
  211. package/dist/code-block.js +849 -0
  212. package/dist/code-compare.cjs +1714 -0
  213. package/dist/code-compare.d.ts +46 -0
  214. package/dist/code-compare.d.ts.map +1 -0
  215. package/dist/code-compare.js +1692 -0
  216. package/dist/code-diff.cjs +1073 -0
  217. package/dist/code-diff.d.ts +42 -0
  218. package/dist/code-diff.d.ts.map +1 -0
  219. package/dist/code-diff.js +1051 -0
  220. package/dist/code-editor.cjs +641 -0
  221. package/dist/code-editor.d.ts +23 -0
  222. package/dist/code-editor.d.ts.map +1 -0
  223. package/dist/code-editor.js +616 -0
  224. package/dist/code-explorer.cjs +729 -0
  225. package/dist/code-explorer.d.ts +41 -0
  226. package/dist/code-explorer.d.ts.map +1 -0
  227. package/dist/code-explorer.js +707 -0
  228. package/dist/code-preview.cjs +1349 -0
  229. package/dist/code-preview.d.ts +38 -0
  230. package/dist/code-preview.d.ts.map +1 -0
  231. package/dist/code-preview.js +1327 -0
  232. package/dist/code-snippet.cjs +920 -0
  233. package/dist/code-snippet.d.ts +48 -0
  234. package/dist/code-snippet.d.ts.map +1 -0
  235. package/dist/code-snippet.js +897 -0
  236. package/dist/code-tabs.cjs +76 -0
  237. package/dist/code-tabs.d.ts +12 -0
  238. package/dist/code-tabs.d.ts.map +1 -0
  239. package/dist/code-tabs.js +54 -0
  240. package/dist/code-terminal.cjs +894 -0
  241. package/dist/code-terminal.d.ts +48 -0
  242. package/dist/code-terminal.d.ts.map +1 -0
  243. package/dist/code-terminal.js +872 -0
  244. package/dist/collaboration-navigation-bar.cjs +49 -0
  245. package/dist/collaboration-navigation-bar.d.ts +11 -0
  246. package/dist/collaboration-navigation-bar.d.ts.map +1 -0
  247. package/dist/collaboration-navigation-bar.js +27 -0
  248. package/dist/collapsible.cjs +45 -170
  249. package/dist/collapsible.d.ts +11 -13
  250. package/dist/collapsible.d.ts.map +1 -0
  251. package/dist/collapsible.js +34 -159
  252. package/dist/color-mode.d.ts +7 -9
  253. package/dist/color-mode.d.ts.map +1 -0
  254. package/dist/color-picker.cjs +516 -0
  255. package/dist/color-picker.d.ts +10 -0
  256. package/dist/color-picker.d.ts.map +1 -0
  257. package/dist/color-picker.js +495 -0
  258. package/dist/combobox.cjs +488 -0
  259. package/dist/combobox.d.ts +13 -0
  260. package/dist/combobox.d.ts.map +1 -0
  261. package/dist/combobox.js +466 -0
  262. package/dist/communication-navigation-bar.cjs +438 -0
  263. package/dist/communication-navigation-bar.d.ts +7 -0
  264. package/dist/communication-navigation-bar.d.ts.map +1 -0
  265. package/dist/communication-navigation-bar.js +416 -0
  266. package/dist/company-profile.cjs +46 -0
  267. package/dist/company-profile.d.ts +10 -0
  268. package/dist/company-profile.d.ts.map +1 -0
  269. package/dist/company-profile.js +44 -0
  270. package/dist/comparison.cjs +60 -0
  271. package/dist/comparison.d.ts +16 -0
  272. package/dist/comparison.d.ts.map +1 -0
  273. package/dist/comparison.js +38 -0
  274. package/dist/context-switcher-navigation-bar.cjs +51 -0
  275. package/dist/context-switcher-navigation-bar.d.ts +10 -0
  276. package/dist/context-switcher-navigation-bar.d.ts.map +1 -0
  277. package/dist/context-switcher-navigation-bar.js +29 -0
  278. package/dist/credit-card.cjs +77 -0
  279. package/dist/credit-card.d.ts +11 -0
  280. package/dist/credit-card.d.ts.map +1 -0
  281. package/dist/credit-card.js +55 -0
  282. package/dist/crypto-screener.cjs +43 -0
  283. package/dist/crypto-screener.d.ts +4 -0
  284. package/dist/crypto-screener.d.ts.map +1 -0
  285. package/dist/crypto-screener.js +41 -0
  286. package/dist/cursor.cjs +71 -0
  287. package/dist/cursor.d.ts +9 -0
  288. package/dist/cursor.d.ts.map +1 -0
  289. package/dist/cursor.js +49 -0
  290. package/dist/dashboard-navigation-bar.cjs +441 -0
  291. package/dist/dashboard-navigation-bar.d.ts +11 -0
  292. package/dist/dashboard-navigation-bar.d.ts.map +1 -0
  293. package/dist/dashboard-navigation-bar.js +419 -0
  294. package/dist/dialog-stack.cjs +460 -0
  295. package/dist/dialog-stack.d.ts +13 -0
  296. package/dist/dialog-stack.d.ts.map +1 -0
  297. package/dist/dialog-stack.js +438 -0
  298. package/dist/dialog.cjs +16 -19
  299. package/dist/dialog.d.ts +49 -53
  300. package/dist/dialog.d.ts.map +1 -0
  301. package/dist/dialog.js +12 -15
  302. package/dist/direction.cjs +26 -0
  303. package/dist/direction.d.ts +20 -0
  304. package/dist/direction.d.ts.map +1 -0
  305. package/dist/direction.js +23 -0
  306. package/dist/dock.cjs +8675 -0
  307. package/dist/dock.d.ts +20 -0
  308. package/dist/dock.d.ts.map +1 -0
  309. package/dist/dock.js +8653 -0
  310. package/dist/drawer.d.ts +33 -38
  311. package/dist/drawer.d.ts.map +1 -0
  312. package/dist/dropzone.cjs +116 -0
  313. package/dist/dropzone.d.ts +11 -0
  314. package/dist/dropzone.d.ts.map +1 -0
  315. package/dist/dropzone.js +94 -0
  316. package/dist/e-commerce-navigation-bar.cjs +442 -0
  317. package/dist/e-commerce-navigation-bar.d.ts +12 -0
  318. package/dist/e-commerce-navigation-bar.d.ts.map +1 -0
  319. package/dist/e-commerce-navigation-bar.js +420 -0
  320. package/dist/editor.cjs +497 -0
  321. package/dist/editor.d.ts +9 -0
  322. package/dist/editor.d.ts.map +1 -0
  323. package/dist/editor.js +475 -0
  324. package/dist/empty-state.d.ts +4 -6
  325. package/dist/empty-state.d.ts.map +1 -0
  326. package/dist/empty.cjs +117 -0
  327. package/dist/empty.d.ts +18 -0
  328. package/dist/empty.d.ts.map +1 -0
  329. package/dist/empty.js +110 -0
  330. package/dist/engine.cjs +91 -0
  331. package/dist/engine.d.ts +35 -0
  332. package/dist/engine.d.ts.map +1 -0
  333. package/dist/engine.js +86 -0
  334. package/dist/expiration-selector.d.ts +4 -6
  335. package/dist/expiration-selector.d.ts.map +1 -0
  336. package/dist/field.cjs +2 -1
  337. package/dist/field.d.ts +5 -7
  338. package/dist/field.d.ts.map +1 -0
  339. package/dist/field.js +3 -2
  340. package/dist/financials.cjs +66 -0
  341. package/dist/financials.d.ts +12 -0
  342. package/dist/financials.d.ts.map +1 -0
  343. package/dist/financials.js +64 -0
  344. package/dist/forex-screener.cjs +44 -0
  345. package/dist/forex-screener.d.ts +4 -0
  346. package/dist/forex-screener.d.ts.map +1 -0
  347. package/dist/forex-screener.js +42 -0
  348. package/dist/gantt.cjs +65 -0
  349. package/dist/gantt.d.ts +13 -0
  350. package/dist/gantt.d.ts.map +1 -0
  351. package/dist/gantt.js +43 -0
  352. package/dist/greeks-display.d.ts +3 -5
  353. package/dist/greeks-display.d.ts.map +1 -0
  354. package/dist/grid-pattern.cjs +327 -0
  355. package/dist/grid-pattern.d.ts +111 -0
  356. package/dist/grid-pattern.d.ts.map +1 -0
  357. package/dist/grid-pattern.js +304 -0
  358. package/dist/gui.d.ts +1 -1
  359. package/dist/gui.d.ts.map +1 -0
  360. package/dist/heading.d.ts +4 -6
  361. package/dist/heading.d.ts.map +1 -0
  362. package/dist/hooks/use-mobile.d.ts +3 -0
  363. package/dist/hooks/use-mobile.d.ts.map +1 -0
  364. package/dist/iam.d.ts +10 -12
  365. package/dist/iam.d.ts.map +1 -0
  366. package/dist/icon-button.cjs +14 -147
  367. package/dist/icon-button.d.ts +4 -5
  368. package/dist/icon-button.d.ts.map +1 -0
  369. package/dist/icon-button.js +14 -147
  370. package/dist/icon-navigation-bar.cjs +48 -0
  371. package/dist/icon-navigation-bar.d.ts +11 -0
  372. package/dist/icon-navigation-bar.d.ts.map +1 -0
  373. package/dist/icon-navigation-bar.js +26 -0
  374. package/dist/icons.d.ts +1 -0
  375. package/dist/icons.d.ts.map +1 -0
  376. package/dist/identity.d.ts +9 -11
  377. package/dist/identity.d.ts.map +1 -0
  378. package/dist/image-crop.cjs +482 -0
  379. package/dist/image-crop.d.ts +9 -0
  380. package/dist/image-crop.d.ts.map +1 -0
  381. package/dist/image-crop.js +460 -0
  382. package/dist/image-zoom.cjs +77 -0
  383. package/dist/image-zoom.d.ts +7 -0
  384. package/dist/image-zoom.d.ts.map +1 -0
  385. package/dist/image-zoom.js +55 -0
  386. package/dist/image.cjs +17 -149
  387. package/dist/image.d.ts +10 -11
  388. package/dist/image.d.ts.map +1 -0
  389. package/dist/image.js +16 -148
  390. package/dist/index.cjs +30299 -1227
  391. package/dist/index.d.ts +207 -60
  392. package/dist/index.d.ts.map +1 -0
  393. package/dist/index.js +30009 -1226
  394. package/dist/ink.cjs +17 -0
  395. package/dist/ink.d.ts +14 -0
  396. package/dist/ink.d.ts.map +1 -0
  397. package/dist/ink.js +15 -0
  398. package/dist/input-group.d.ts +4 -6
  399. package/dist/input-group.d.ts.map +1 -0
  400. package/dist/input-otp.cjs +72 -0
  401. package/dist/input-otp.d.ts +35 -0
  402. package/dist/input-otp.d.ts.map +1 -0
  403. package/dist/input-otp.js +47 -0
  404. package/dist/input.d.ts +8 -9
  405. package/dist/input.d.ts.map +1 -0
  406. package/dist/iphone-15-pro.cjs +61 -0
  407. package/dist/iphone-15-pro.d.ts +9 -0
  408. package/dist/iphone-15-pro.d.ts.map +1 -0
  409. package/dist/iphone-15-pro.js +39 -0
  410. package/dist/item.cjs +215 -0
  411. package/dist/item.d.ts +41 -0
  412. package/dist/item.d.ts.map +1 -0
  413. package/dist/item.js +200 -0
  414. package/dist/kanban.cjs +1354 -0
  415. package/dist/kanban.d.ts +36 -0
  416. package/dist/kanban.d.ts.map +1 -0
  417. package/dist/kanban.js +1330 -0
  418. package/dist/kbd.cjs +40 -0
  419. package/dist/kbd.d.ts +4 -0
  420. package/dist/kbd.d.ts.map +1 -0
  421. package/dist/kbd.js +37 -0
  422. package/dist/limelight-nav-navigation-bar.cjs +51 -0
  423. package/dist/limelight-nav-navigation-bar.d.ts +10 -0
  424. package/dist/limelight-nav-navigation-bar.d.ts.map +1 -0
  425. package/dist/limelight-nav-navigation-bar.js +29 -0
  426. package/dist/limelight-nav.cjs +570 -0
  427. package/dist/limelight-nav.d.ts +10 -0
  428. package/dist/limelight-nav.d.ts.map +1 -0
  429. package/dist/limelight-nav.js +549 -0
  430. package/dist/link.cjs +41 -168
  431. package/dist/link.d.ts +9 -11
  432. package/dist/link.d.ts.map +1 -0
  433. package/dist/link.js +30 -157
  434. package/dist/list.cjs +35 -0
  435. package/dist/list.d.ts +5 -0
  436. package/dist/list.d.ts.map +1 -0
  437. package/dist/list.js +12 -0
  438. package/dist/lux.config.d.ts +521 -524
  439. package/dist/lux.config.d.ts.map +1 -0
  440. package/dist/magnetic.cjs +63 -0
  441. package/dist/magnetic.d.ts +8 -0
  442. package/dist/magnetic.d.ts.map +1 -0
  443. package/dist/magnetic.js +41 -0
  444. package/dist/market-overview.cjs +102 -0
  445. package/dist/market-overview.d.ts +4 -0
  446. package/dist/market-overview.d.ts.map +1 -0
  447. package/dist/market-overview.js +100 -0
  448. package/dist/marquee.cjs +67 -0
  449. package/dist/marquee.d.ts +10 -0
  450. package/dist/marquee.d.ts.map +1 -0
  451. package/dist/marquee.js +45 -0
  452. package/dist/menu-dock.cjs +64 -0
  453. package/dist/menu-dock.d.ts +14 -0
  454. package/dist/menu-dock.d.ts.map +1 -0
  455. package/dist/menu-dock.js +42 -0
  456. package/dist/menu.d.ts +30 -31
  457. package/dist/menu.d.ts.map +1 -0
  458. package/dist/menubar.cjs +116 -0
  459. package/dist/menubar.d.ts +30 -0
  460. package/dist/menubar.d.ts.map +1 -0
  461. package/dist/menubar.js +61 -0
  462. package/dist/message-dock.cjs +480 -0
  463. package/dist/message-dock.d.ts +15 -0
  464. package/dist/message-dock.d.ts.map +1 -0
  465. package/dist/message-dock.js +458 -0
  466. package/dist/mini-calendar.cjs +505 -0
  467. package/dist/mini-calendar.d.ts +10 -0
  468. package/dist/mini-calendar.d.ts.map +1 -0
  469. package/dist/mini-calendar.js +483 -0
  470. package/dist/minimal-tiptap.cjs +48 -0
  471. package/dist/minimal-tiptap.d.ts +8 -0
  472. package/dist/minimal-tiptap.d.ts.map +1 -0
  473. package/dist/minimal-tiptap.js +26 -0
  474. package/dist/motion-highlight.cjs +71 -0
  475. package/dist/motion-highlight.d.ts +7 -0
  476. package/dist/motion-highlight.d.ts.map +1 -0
  477. package/dist/motion-highlight.js +49 -0
  478. package/dist/music-player.cjs +810 -0
  479. package/dist/music-player.d.ts +18 -0
  480. package/dist/music-player.d.ts.map +1 -0
  481. package/dist/music-player.js +788 -0
  482. package/dist/native-select.cjs +82 -0
  483. package/dist/native-select.d.ts +9 -0
  484. package/dist/native-select.d.ts.map +1 -0
  485. package/dist/native-select.js +58 -0
  486. package/dist/news-timeline.cjs +42 -0
  487. package/dist/news-timeline.d.ts +4 -0
  488. package/dist/news-timeline.d.ts.map +1 -0
  489. package/dist/news-timeline.js +40 -0
  490. package/dist/next.d.ts +5 -7
  491. package/dist/next.d.ts.map +1 -0
  492. package/dist/option-chain.d.ts +6 -8
  493. package/dist/option-chain.d.ts.map +1 -0
  494. package/dist/option-position.d.ts +4 -6
  495. package/dist/option-position.d.ts.map +1 -0
  496. package/dist/order-entry.cjs +141 -0
  497. package/dist/order-entry.d.ts +15 -0
  498. package/dist/order-entry.d.ts.map +1 -0
  499. package/dist/order-entry.js +136 -0
  500. package/dist/orders-history.cjs +83 -0
  501. package/dist/orders-history.d.ts +18 -0
  502. package/dist/orders-history.d.ts.map +1 -0
  503. package/dist/orders-history.js +78 -0
  504. package/dist/pagination.cjs +132 -0
  505. package/dist/pagination.d.ts +29 -0
  506. package/dist/pagination.d.ts.map +1 -0
  507. package/dist/pagination.js +104 -0
  508. package/dist/particles-background.cjs +159 -0
  509. package/dist/particles-background.d.ts +18 -0
  510. package/dist/particles-background.d.ts.map +1 -0
  511. package/dist/particles-background.js +157 -0
  512. package/dist/pill.cjs +80 -0
  513. package/dist/pill.d.ts +21 -0
  514. package/dist/pill.d.ts.map +1 -0
  515. package/dist/pill.js +57 -0
  516. package/dist/pin-input.cjs +1 -1
  517. package/dist/pin-input.d.ts +3 -5
  518. package/dist/pin-input.d.ts.map +1 -0
  519. package/dist/pin-input.js +1 -1
  520. package/dist/pixel-image.cjs +71 -0
  521. package/dist/pixel-image.d.ts +8 -0
  522. package/dist/pixel-image.d.ts.map +1 -0
  523. package/dist/pixel-image.js +49 -0
  524. package/dist/pnl-diagram.d.ts +5 -6
  525. package/dist/pnl-diagram.d.ts.map +1 -0
  526. package/dist/popover.cjs +16 -18
  527. package/dist/popover.d.ts +24 -25
  528. package/dist/popover.d.ts.map +1 -0
  529. package/dist/popover.js +11 -13
  530. package/dist/positions-list.cjs +98 -0
  531. package/dist/positions-list.d.ts +13 -0
  532. package/dist/positions-list.d.ts.map +1 -0
  533. package/dist/positions-list.js +93 -0
  534. package/dist/progress-circle.cjs +3 -6
  535. package/dist/progress-circle.d.ts +8 -9
  536. package/dist/progress-circle.d.ts.map +1 -0
  537. package/dist/progress-circle.js +2 -5
  538. package/dist/progress.d.ts +3 -4
  539. package/dist/progress.d.ts.map +1 -0
  540. package/dist/provider.d.ts +8 -10
  541. package/dist/provider.d.ts.map +1 -0
  542. package/dist/pulse-animation.cjs +8741 -0
  543. package/dist/pulse-animation.d.ts +155 -0
  544. package/dist/pulse-animation.d.ts.map +1 -0
  545. package/dist/pulse-animation.js +8732 -0
  546. package/dist/qr-code.cjs +65 -0
  547. package/dist/qr-code.d.ts +21 -0
  548. package/dist/qr-code.d.ts.map +1 -0
  549. package/dist/qr-code.js +43 -0
  550. package/dist/radio.d.ts +6 -7
  551. package/dist/radio.d.ts.map +1 -0
  552. package/dist/rating.d.ts +3 -5
  553. package/dist/rating.d.ts.map +1 -0
  554. package/dist/relative-time.cjs +88 -0
  555. package/dist/relative-time.d.ts +9 -0
  556. package/dist/relative-time.d.ts.map +1 -0
  557. package/dist/relative-time.js +66 -0
  558. package/dist/resizable.cjs +61 -0
  559. package/dist/resizable.d.ts +24 -0
  560. package/dist/resizable.d.ts.map +1 -0
  561. package/dist/resizable.js +37 -0
  562. package/dist/reveal-animation.cjs +8791 -0
  563. package/dist/reveal-animation.d.ts +134 -0
  564. package/dist/reveal-animation.d.ts.map +1 -0
  565. package/dist/reveal-animation.js +8779 -0
  566. package/dist/safari.cjs +90 -0
  567. package/dist/safari.d.ts +9 -0
  568. package/dist/safari.d.ts.map +1 -0
  569. package/dist/safari.js +68 -0
  570. package/dist/sandbox.cjs +94 -0
  571. package/dist/sandbox.d.ts +9 -0
  572. package/dist/sandbox.d.ts.map +1 -0
  573. package/dist/sandbox.js +72 -0
  574. package/dist/search-and-toggle-navigation-bar.cjs +51 -0
  575. package/dist/search-and-toggle-navigation-bar.d.ts +10 -0
  576. package/dist/search-and-toggle-navigation-bar.d.ts.map +1 -0
  577. package/dist/search-and-toggle-navigation-bar.js +29 -0
  578. package/dist/select.cjs +38 -168
  579. package/dist/select.d.ts +38 -41
  580. package/dist/select.d.ts.map +1 -0
  581. package/dist/select.js +34 -164
  582. package/dist/separator.d.ts +5 -6
  583. package/dist/separator.d.ts.map +1 -0
  584. package/dist/sidebar.cjs +1134 -0
  585. package/dist/sidebar.d.ts +80 -0
  586. package/dist/sidebar.d.ts.map +1 -0
  587. package/dist/sidebar.js +1090 -0
  588. package/dist/simple-navigation-bar.cjs +45 -0
  589. package/dist/simple-navigation-bar.d.ts +11 -0
  590. package/dist/simple-navigation-bar.d.ts.map +1 -0
  591. package/dist/simple-navigation-bar.js +23 -0
  592. package/dist/skeleton.cjs +15 -148
  593. package/dist/skeleton.d.ts +11 -53
  594. package/dist/skeleton.d.ts.map +1 -0
  595. package/dist/skeleton.js +15 -148
  596. package/dist/slider.cjs +1 -1
  597. package/dist/slider.d.ts +4 -5
  598. package/dist/slider.d.ts.map +1 -0
  599. package/dist/slider.js +1 -1
  600. package/dist/status-dashboard-navigation-bar.cjs +51 -0
  601. package/dist/status-dashboard-navigation-bar.d.ts +10 -0
  602. package/dist/status-dashboard-navigation-bar.d.ts.map +1 -0
  603. package/dist/status-dashboard-navigation-bar.js +29 -0
  604. package/dist/status.cjs +85 -0
  605. package/dist/status.d.ts +23 -0
  606. package/dist/status.d.ts.map +1 -0
  607. package/dist/status.js +62 -0
  608. package/dist/stock-screener.cjs +44 -0
  609. package/dist/stock-screener.d.ts +4 -0
  610. package/dist/stock-screener.d.ts.map +1 -0
  611. package/dist/stock-screener.js +42 -0
  612. package/dist/strategy-builder.d.ts +6 -8
  613. package/dist/strategy-builder.d.ts.map +1 -0
  614. package/dist/switch.cjs +2 -2
  615. package/dist/switch.d.ts +4 -8
  616. package/dist/switch.d.ts.map +1 -0
  617. package/dist/switch.js +2 -2
  618. package/dist/symbol-info.cjs +44 -0
  619. package/dist/symbol-info.d.ts +9 -0
  620. package/dist/symbol-info.d.ts.map +1 -0
  621. package/dist/symbol-info.js +42 -0
  622. package/dist/table.cjs +74 -192
  623. package/dist/table.d.ts +23 -25
  624. package/dist/table.d.ts.map +1 -0
  625. package/dist/table.js +53 -171
  626. package/dist/tabs.d.ts +12 -13
  627. package/dist/tabs.d.ts.map +1 -0
  628. package/dist/tag.cjs +14 -147
  629. package/dist/tag.d.ts +4 -5
  630. package/dist/tag.d.ts.map +1 -0
  631. package/dist/tag.js +14 -147
  632. package/dist/tags.cjs +385 -0
  633. package/dist/tags.d.ts +13 -0
  634. package/dist/tags.d.ts.map +1 -0
  635. package/dist/tags.js +364 -0
  636. package/dist/team-switcher-navigation-bar.cjs +51 -0
  637. package/dist/team-switcher-navigation-bar.d.ts +10 -0
  638. package/dist/team-switcher-navigation-bar.d.ts.map +1 -0
  639. package/dist/team-switcher-navigation-bar.js +29 -0
  640. package/dist/technical-analysis.cjs +69 -0
  641. package/dist/technical-analysis.d.ts +13 -0
  642. package/dist/technical-analysis.d.ts.map +1 -0
  643. package/dist/technical-analysis.js +67 -0
  644. package/dist/terminal.cjs +372 -0
  645. package/dist/terminal.d.ts +21 -0
  646. package/dist/terminal.d.ts.map +1 -0
  647. package/dist/terminal.js +350 -0
  648. package/dist/textarea.d.ts +5 -6
  649. package/dist/textarea.d.ts.map +1 -0
  650. package/dist/ticker-tape.cjs +54 -0
  651. package/dist/ticker-tape.d.ts +4 -0
  652. package/dist/ticker-tape.d.ts.map +1 -0
  653. package/dist/ticker-tape.js +52 -0
  654. package/dist/ticker.cjs +66 -0
  655. package/dist/ticker.d.ts +10 -0
  656. package/dist/ticker.d.ts.map +1 -0
  657. package/dist/ticker.js +44 -0
  658. package/dist/timeline.cjs +317 -0
  659. package/dist/timeline.d.ts +20 -0
  660. package/dist/timeline.d.ts.map +1 -0
  661. package/dist/timeline.js +295 -0
  662. package/dist/toaster.d.ts +4 -5
  663. package/dist/toaster.d.ts.map +1 -0
  664. package/dist/toggle.cjs +62 -0
  665. package/dist/toggle.d.ts +26 -0
  666. package/dist/toggle.d.ts.map +1 -0
  667. package/dist/toggle.js +57 -0
  668. package/dist/tooltip.d.ts +3 -5
  669. package/dist/tooltip.d.ts.map +1 -0
  670. package/dist/trading-panel.cjs +212 -0
  671. package/dist/trading-panel.d.ts +7 -0
  672. package/dist/trading-panel.d.ts.map +1 -0
  673. package/dist/trading-panel.js +207 -0
  674. package/dist/two-tier-navigation-bar.cjs +51 -0
  675. package/dist/two-tier-navigation-bar.d.ts +10 -0
  676. package/dist/two-tier-navigation-bar.d.ts.map +1 -0
  677. package/dist/two-tier-navigation-bar.js +29 -0
  678. package/dist/underline-navigation-bar.cjs +51 -0
  679. package/dist/underline-navigation-bar.d.ts +10 -0
  680. package/dist/underline-navigation-bar.d.ts.map +1 -0
  681. package/dist/underline-navigation-bar.js +29 -0
  682. package/dist/use-narrow.d.ts +6 -7
  683. package/dist/use-narrow.d.ts.map +1 -0
  684. package/dist/utils/cn.d.ts +2 -0
  685. package/dist/utils/cn.d.ts.map +1 -0
  686. package/dist/utils.cjs +6 -7
  687. package/dist/utils.d.ts +13 -5
  688. package/dist/utils.d.ts.map +1 -0
  689. package/dist/utils.js +1 -9
  690. package/dist/vite.d.ts +3 -3
  691. package/dist/vite.d.ts.map +1 -0
  692. package/dist/white-label.d.ts +12 -12
  693. package/dist/white-label.d.ts.map +1 -0
  694. package/dist/youtube-pip-player.cjs +489 -0
  695. package/dist/youtube-pip-player.d.ts +41 -0
  696. package/dist/youtube-pip-player.d.ts.map +1 -0
  697. package/dist/youtube-pip-player.js +466 -0
  698. package/package.json +769 -66
  699. package/src/3d-button.tsx +346 -0
  700. package/src/3d-card.tsx +271 -0
  701. package/src/3d-carousel.tsx +444 -0
  702. package/src/3d-grid.tsx +448 -0
  703. package/src/3d-marquee.tsx +422 -0
  704. package/src/3d-model-viewer.tsx +659 -0
  705. package/src/3d-pin.tsx +37 -0
  706. package/src/3d-scene.tsx +629 -0
  707. package/src/3d-text.tsx +442 -0
  708. package/src/advanced-chart.tsx +63 -0
  709. package/src/advanced-navigation-bar.tsx +83 -0
  710. package/src/ai-actions.tsx +60 -0
  711. package/src/ai-agents.tsx +1174 -0
  712. package/src/ai-assistant.tsx +227 -0
  713. package/src/ai-chat.tsx +554 -0
  714. package/src/ai-code.tsx +1331 -0
  715. package/src/ai-model-selector-navigation-bar.tsx +78 -0
  716. package/src/ai-models.tsx +58 -0
  717. package/src/ai-playground.tsx +429 -0
  718. package/src/ai-tools.tsx +383 -0
  719. package/src/ai-vision.tsx +1220 -0
  720. package/src/ai-voice-settings.tsx +726 -0
  721. package/src/ai-voice.tsx +735 -0
  722. package/src/android.tsx +92 -0
  723. package/src/animated-background.tsx +625 -0
  724. package/src/animated-beam.tsx +110 -0
  725. package/src/animated-cursor.tsx +406 -0
  726. package/src/animated-icon.tsx +520 -0
  727. package/src/animated-list.tsx +508 -0
  728. package/src/animated-number.tsx +485 -0
  729. package/src/animated-testimonials.tsx +119 -0
  730. package/src/animated-text.tsx +481 -0
  731. package/src/animated-tooltip.tsx +54 -0
  732. package/src/announcement.tsx +55 -0
  733. package/src/app-switcher-navigation-bar.tsx +76 -0
  734. package/src/apple-cards-carousel.tsx +349 -0
  735. package/src/apple-hello-effect.tsx +50 -0
  736. package/src/auth.tsx +9 -8
  737. package/src/avatar.tsx +1 -1
  738. package/src/badge.tsx +27 -30
  739. package/src/banner.tsx +62 -0
  740. package/src/breadcrumb-and-filters-navigation-bar.tsx +40 -0
  741. package/src/breadcrumb-navigation-bar.tsx +43 -0
  742. package/src/button.tsx +10 -9
  743. package/src/calendar.tsx +62 -0
  744. package/src/centered-logo-navigation-bar.tsx +43 -0
  745. package/src/chart.tsx +372 -0
  746. package/src/choicebox.tsx +89 -0
  747. package/src/chrome.tsx +41 -40
  748. package/src/code-block.tsx +278 -0
  749. package/src/code-compare.tsx +551 -0
  750. package/src/code-diff.tsx +573 -0
  751. package/src/code-editor.tsx +250 -0
  752. package/src/code-explorer.tsx +403 -0
  753. package/src/code-preview.tsx +488 -0
  754. package/src/code-snippet.tsx +336 -0
  755. package/src/code-tabs.tsx +78 -0
  756. package/src/code-terminal.tsx +530 -0
  757. package/src/collaboration-navigation-bar.tsx +50 -0
  758. package/src/collapsible.tsx +3 -2
  759. package/src/color-picker.tsx +68 -0
  760. package/src/combobox.tsx +87 -0
  761. package/src/communication-navigation-bar.tsx +42 -0
  762. package/src/company-profile.tsx +67 -0
  763. package/src/comparison.tsx +68 -0
  764. package/src/context-switcher-navigation-bar.tsx +39 -0
  765. package/src/credit-card.tsx +72 -0
  766. package/src/crypto-screener.tsx +57 -0
  767. package/src/cursor.tsx +61 -0
  768. package/src/dashboard-navigation-bar.tsx +49 -0
  769. package/src/dialog-stack.tsx +55 -0
  770. package/src/dialog.tsx +16 -15
  771. package/src/direction.tsx +40 -0
  772. package/src/dock.tsx +172 -0
  773. package/src/dropzone.tsx +106 -0
  774. package/src/e-commerce-navigation-bar.tsx +54 -0
  775. package/src/editor.tsx +85 -0
  776. package/src/empty.tsx +117 -0
  777. package/src/field.tsx +2 -1
  778. package/src/financials.tsx +85 -0
  779. package/src/forex-screener.tsx +58 -0
  780. package/src/gantt.tsx +68 -0
  781. package/src/grid-pattern.tsx +353 -0
  782. package/src/hooks/use-mobile.ts +29 -0
  783. package/src/icon-navigation-bar.tsx +36 -0
  784. package/src/image-crop.tsx +67 -0
  785. package/src/image-zoom.tsx +64 -0
  786. package/src/image.tsx +2 -1
  787. package/src/index.ts +123 -0
  788. package/src/input-otp.tsx +72 -0
  789. package/src/iphone-15-pro.tsx +69 -0
  790. package/src/item.tsx +193 -0
  791. package/src/kanban.tsx +772 -0
  792. package/src/kbd.tsx +32 -0
  793. package/src/limelight-nav-navigation-bar.tsx +39 -0
  794. package/src/limelight-nav.tsx +101 -0
  795. package/src/link.tsx +18 -18
  796. package/src/list.tsx +22 -0
  797. package/src/magnetic.tsx +54 -0
  798. package/src/market-overview.tsx +116 -0
  799. package/src/marquee.tsx +62 -0
  800. package/src/menu-dock.tsx +56 -0
  801. package/src/menubar.tsx +149 -0
  802. package/src/message-dock.tsx +89 -0
  803. package/src/mini-calendar.tsx +121 -0
  804. package/src/minimal-tiptap.tsx +32 -0
  805. package/src/motion-highlight.tsx +55 -0
  806. package/src/music-player.tsx +413 -0
  807. package/src/native-select.tsx +63 -0
  808. package/src/news-timeline.tsx +56 -0
  809. package/src/order-entry.tsx +162 -0
  810. package/src/orders-history.tsx +115 -0
  811. package/src/pagination.tsx +118 -0
  812. package/src/particles-background.tsx +225 -0
  813. package/src/pill.tsx +61 -0
  814. package/src/pin-input.tsx +1 -1
  815. package/src/pixel-image.tsx +64 -0
  816. package/src/popover.tsx +10 -9
  817. package/src/positions-list.tsx +108 -0
  818. package/src/progress-circle.tsx +2 -1
  819. package/src/pulse-animation.tsx +606 -0
  820. package/src/qr-code.tsx +64 -0
  821. package/src/relative-time.tsx +84 -0
  822. package/src/resizable.tsx +46 -0
  823. package/src/reveal-animation.tsx +532 -0
  824. package/src/safari.tsx +115 -0
  825. package/src/sandbox.tsx +83 -0
  826. package/src/search-and-toggle-navigation-bar.tsx +39 -0
  827. package/src/select.tsx +31 -30
  828. package/src/sidebar.tsx +723 -0
  829. package/src/simple-navigation-bar.tsx +39 -0
  830. package/src/skeleton.tsx +20 -168
  831. package/src/slider.tsx +2 -1
  832. package/src/status-dashboard-navigation-bar.tsx +39 -0
  833. package/src/status.tsx +63 -0
  834. package/src/stock-screener.tsx +58 -0
  835. package/src/switch.tsx +3 -3
  836. package/src/symbol-info.tsx +64 -0
  837. package/src/table.tsx +26 -25
  838. package/src/tags.tsx +62 -0
  839. package/src/team-switcher-navigation-bar.tsx +39 -0
  840. package/src/technical-analysis.tsx +99 -0
  841. package/src/terminal.tsx +399 -0
  842. package/src/ticker-tape.tsx +68 -0
  843. package/src/ticker.tsx +52 -0
  844. package/src/timeline.tsx +412 -0
  845. package/src/toggle.tsx +84 -0
  846. package/src/trading-panel.tsx +262 -0
  847. package/src/two-tier-navigation-bar.tsx +39 -0
  848. package/src/underline-navigation-bar.tsx +39 -0
  849. package/src/utils/cn.ts +3 -7
  850. package/src/utils.ts +12 -6
  851. package/src/youtube-pip-player.tsx +606 -0
  852. package/tokens.css +22 -0
  853. package/dist/accordion.d.cts +0 -41
  854. package/dist/alert.d.cts +0 -30
  855. package/dist/auth.d.cts +0 -80
  856. package/dist/avatar.d.cts +0 -25
  857. package/dist/badge.d.cts +0 -19
  858. package/dist/bank.d.cts +0 -83
  859. package/dist/button.d.cts +0 -51
  860. package/dist/checkbox.d.cts +0 -32
  861. package/dist/chrome.d.cts +0 -93
  862. package/dist/close-button.d.cts +0 -9
  863. package/dist/collapsible.d.cts +0 -24
  864. package/dist/color-mode.d.cts +0 -25
  865. package/dist/dialog.d.cts +0 -118
  866. package/dist/drawer.d.cts +0 -69
  867. package/dist/empty-state.d.cts +0 -13
  868. package/dist/expiration-selector.d.cts +0 -16
  869. package/dist/field.d.cts +0 -23
  870. package/dist/greeks-display.d.cts +0 -14
  871. package/dist/gui.d.cts +0 -2
  872. package/dist/heading.d.cts +0 -8
  873. package/dist/iam.d.cts +0 -65
  874. package/dist/icon-button.d.cts +0 -37
  875. package/dist/icons.d.cts +0 -1
  876. package/dist/identity.d.cts +0 -64
  877. package/dist/image.d.cts +0 -57
  878. package/dist/index.d.cts +0 -60
  879. package/dist/input-group.d.cts +0 -17
  880. package/dist/input.d.cts +0 -37
  881. package/dist/link.d.cts +0 -37
  882. package/dist/lux.config.d.cts +0 -981
  883. package/dist/menu.d.cts +0 -68
  884. package/dist/next.d.cts +0 -32
  885. package/dist/option-chain.d.cts +0 -37
  886. package/dist/option-position.d.cts +0 -29
  887. package/dist/pin-input.d.cts +0 -25
  888. package/dist/pnl-diagram.d.cts +0 -11
  889. package/dist/popover.d.cts +0 -73
  890. package/dist/progress-circle.d.cts +0 -47
  891. package/dist/progress.d.cts +0 -28
  892. package/dist/provider.d.cts +0 -25
  893. package/dist/radio.d.cts +0 -53
  894. package/dist/rating.d.cts +0 -14
  895. package/dist/select.d.cts +0 -161
  896. package/dist/separator.d.cts +0 -13
  897. package/dist/skeleton.d.cts +0 -76
  898. package/dist/slider.d.cts +0 -24
  899. package/dist/strategy-builder.d.cts +0 -26
  900. package/dist/switch.d.cts +0 -27
  901. package/dist/table.d.cts +0 -107
  902. package/dist/tabs.d.cts +0 -34
  903. package/dist/tag.d.cts +0 -21
  904. package/dist/textarea.d.cts +0 -13
  905. package/dist/toaster.d.cts +0 -28
  906. package/dist/tooltip.d.cts +0 -38
  907. package/dist/use-narrow.d.cts +0 -12
  908. package/dist/utils.d.cts +0 -5
  909. package/dist/vite.d.cts +0 -29
  910. package/dist/white-label.d.cts +0 -59
@@ -0,0 +1,1110 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var gui = require('@hanzo/gui');
5
+ var React8 = require('react');
6
+ var lucideReact = require('lucide-react');
7
+ var ui = require('@hanzo/ui');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var React8__namespace = /*#__PURE__*/_interopNamespace(React8);
29
+
30
+ var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
31
+ var CloseButtonFrame = gui.styled(gui.View, {
32
+ name: "LuxCloseButton",
33
+ render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close" }),
34
+ role: "button",
35
+ cursor: "pointer",
36
+ display: "inline-flex",
37
+ alignItems: "center",
38
+ justifyContent: "center",
39
+ width: 20,
40
+ height: 20,
41
+ minWidth: 0,
42
+ flexShrink: 1,
43
+ padding: 0,
44
+ borderRadius: 4,
45
+ borderWidth: 0,
46
+ overflow: "hidden",
47
+ backgroundColor: "transparent",
48
+ hoverStyle: {
49
+ backgroundColor: "transparent"
50
+ },
51
+ variants: {
52
+ disabled: {
53
+ true: {
54
+ opacity: 0.4,
55
+ pointerEvents: "none"
56
+ }
57
+ }
58
+ }
59
+ });
60
+ var CloseButton = React8__namespace.forwardRef(function CloseButton2(props, ref) {
61
+ const { variant: _variant, size: _size, className, children, ...rest } = props;
62
+ return /* @__PURE__ */ jsxRuntime.jsx(
63
+ CloseButtonFrame,
64
+ {
65
+ ref,
66
+ className,
67
+ ...rest,
68
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsx(
69
+ "svg",
70
+ {
71
+ width: 20,
72
+ height: 20,
73
+ viewBox: "0 0 20 20",
74
+ fill: "none",
75
+ "aria-hidden": "true",
76
+ children: /* @__PURE__ */ jsxRuntime.jsx(
77
+ "path",
78
+ {
79
+ d: CLOSE_ICON_PATH,
80
+ fill: "currentColor"
81
+ }
82
+ )
83
+ }
84
+ )
85
+ }
86
+ );
87
+ });
88
+ var ink = (children, Wrap = gui.Text, props = {}) => {
89
+ let hasText = false;
90
+ React8.Children.forEach(children, (child) => {
91
+ if (typeof child === "string" || typeof child === "number") hasText = true;
92
+ });
93
+ if (!hasText) return children;
94
+ return React8.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React8.createElement(Wrap, props, child) : child);
95
+ };
96
+ var SKELETON_CLASSES = "lux-skeleton rounded-sm";
97
+ var Skeleton = React8__namespace.forwardRef(
98
+ function Skeleton2(props, ref) {
99
+ const { loading = true, asChild, className, children, style, ...rest } = props;
100
+ if (!loading) {
101
+ if (asChild && React8__namespace.isValidElement(children)) return children;
102
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className, style, ...rest, children });
103
+ }
104
+ return /* @__PURE__ */ jsxRuntime.jsx(
105
+ "div",
106
+ {
107
+ ref,
108
+ "data-loading": true,
109
+ ...ui.sx(
110
+ SKELETON_CLASSES,
111
+ asChild || children ? "[&_*]:invisible" : "min-h-5",
112
+ className
113
+ ),
114
+ style,
115
+ ...rest,
116
+ children
117
+ }
118
+ );
119
+ }
120
+ );
121
+ React8__namespace.forwardRef(
122
+ function SkeletonCircle2(props, ref) {
123
+ const { size = 40, loading = true, className, ...rest } = props;
124
+ const dimension = typeof size === "number" ? `${size}px` : size;
125
+ return /* @__PURE__ */ jsxRuntime.jsx(
126
+ Skeleton,
127
+ {
128
+ ref,
129
+ loading,
130
+ ...ui.sx("rounded-full shrink-0", className),
131
+ style: { width: dimension, height: dimension, ...rest.style },
132
+ ...rest
133
+ }
134
+ );
135
+ }
136
+ );
137
+ React8__namespace.forwardRef(
138
+ function SkeletonText2(props, ref) {
139
+ const { noOfLines = 3, loading = true, className, ...rest } = props;
140
+ 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(
141
+ Skeleton,
142
+ {
143
+ loading,
144
+ ...ui.sx(ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
145
+ },
146
+ index
147
+ )) });
148
+ }
149
+ );
150
+ var IndicatorIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm.75-11.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM9.25 10a.75.75 0 011.5 0v3a.75.75 0 01-1.5 0v-3z" }) });
151
+ var ALERT_BASE = {
152
+ width: "100%",
153
+ position: "relative",
154
+ alignItems: "flex-start",
155
+ borderRadius: 4,
156
+ gap: 8,
157
+ paddingVertical: 8
158
+ };
159
+ var ALERT_FG = "var(--color-alert-fg)";
160
+ var STATUS_BG = {
161
+ info: "var(--color-alert-bg-info)",
162
+ warning: "var(--color-alert-bg-warning)",
163
+ warning_table: "var(--color-alert-bg-warning-table)",
164
+ success: "var(--color-alert-bg-success)",
165
+ error: "var(--color-alert-bg-error)"
166
+ };
167
+ var SIZE = {
168
+ sm: { paddingHorizontal: 8, fontSize: 12 },
169
+ md: { paddingHorizontal: 12, fontSize: 16 }
170
+ };
171
+ var INDICATOR_SIZE = {
172
+ sm: { marginVertical: 0 },
173
+ md: { marginVertical: 2 }
174
+ };
175
+ var Alert = React8__namespace.forwardRef(
176
+ function Alert2(props, ref) {
177
+ const {
178
+ title,
179
+ children,
180
+ icon,
181
+ closable,
182
+ onClose,
183
+ startElement,
184
+ endElement,
185
+ loading,
186
+ size,
187
+ inline = true,
188
+ showIcon = false,
189
+ descriptionProps,
190
+ status = "info",
191
+ className,
192
+ ...rest
193
+ } = props;
194
+ const { whiteSpace: _whiteSpace, mb: _mb, mt: _mt, style: styleProp, ...alertRest } = rest;
195
+ const shimStyle = { ...styleProp };
196
+ if (_whiteSpace) shimStyle.whiteSpace = _whiteSpace;
197
+ if (_mb !== void 0) shimStyle.marginBottom = typeof _mb === "number" ? `${_mb * 4}px` : _mb;
198
+ if (_mt !== void 0) shimStyle.marginTop = typeof _mt === "number" ? `${_mt * 4}px` : _mt;
199
+ const alertStyle = Object.keys(shimStyle).length > 0 ? shimStyle : void 0;
200
+ const [isOpen, setIsOpen] = React8__namespace.useState(true);
201
+ const resolvedSize = size ?? "md";
202
+ const fontSize = SIZE[resolvedSize].fontSize;
203
+ const defaultIcon = /* @__PURE__ */ jsxRuntime.jsx(IndicatorIcon, {});
204
+ const iconElement = (() => {
205
+ if (startElement !== void 0) {
206
+ return startElement;
207
+ }
208
+ if (!showIcon && icon === void 0) {
209
+ return null;
210
+ }
211
+ return /* @__PURE__ */ jsxRuntime.jsx(
212
+ gui.XStack,
213
+ {
214
+ alignItems: "center",
215
+ justifyContent: "center",
216
+ flexShrink: 0,
217
+ width: 20,
218
+ height: 20,
219
+ ...INDICATOR_SIZE[resolvedSize],
220
+ className: "lux-icon",
221
+ style: { color: ALERT_FG },
222
+ children: icon || defaultIcon
223
+ }
224
+ );
225
+ })();
226
+ const handleClose = React8__namespace.useCallback(() => {
227
+ setIsOpen(false);
228
+ onClose?.();
229
+ }, [onClose]);
230
+ if (closable && !isOpen) {
231
+ return null;
232
+ }
233
+ const {
234
+ className: descClassName,
235
+ whiteSpace: descWhiteSpace,
236
+ alignItems: descAlignItems,
237
+ flexDir: descFlexDir,
238
+ flexWrap: descFlexWrap,
239
+ rowGap: descRowGap,
240
+ columnGap: descColumnGap,
241
+ style: descStyleProp,
242
+ ...descRest
243
+ } = descriptionProps ?? {};
244
+ const descStyle = {
245
+ ...descStyleProp,
246
+ ...descWhiteSpace ? { whiteSpace: descWhiteSpace } : {},
247
+ ...descAlignItems ? { alignItems: descAlignItems } : {},
248
+ ...descFlexDir ? { flexDirection: descFlexDir } : {},
249
+ ...descFlexWrap ? { flexWrap: descFlexWrap } : {},
250
+ ...descRowGap !== void 0 ? { rowGap: typeof descRowGap === "number" ? `${descRowGap * 4}px` : descRowGap } : {},
251
+ ...descColumnGap !== void 0 ? { columnGap: typeof descColumnGap === "number" ? `${descColumnGap * 4}px` : descColumnGap } : {}
252
+ };
253
+ const ContentFrame = inline ? gui.XStack : gui.YStack;
254
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsxs(
255
+ gui.XStack,
256
+ {
257
+ ref,
258
+ ...ALERT_BASE,
259
+ paddingHorizontal: SIZE[resolvedSize].paddingHorizontal,
260
+ backgroundColor: STATUS_BG[status],
261
+ className,
262
+ style: alertStyle,
263
+ ...alertRest,
264
+ children: [
265
+ iconElement,
266
+ children ? /* @__PURE__ */ jsxRuntime.jsxs(ContentFrame, { flex: 1, alignItems: inline ? "center" : void 0, children: [
267
+ title && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontWeight: "600", fontSize, color: ALERT_FG, children: title }),
268
+ /* @__PURE__ */ jsxRuntime.jsx(
269
+ gui.XStack,
270
+ {
271
+ flexWrap: "wrap",
272
+ className: descClassName,
273
+ style: Object.keys(descStyle).length > 0 ? descStyle : void 0,
274
+ ...descRest,
275
+ children: ink(children, void 0, { fontSize, color: ALERT_FG })
276
+ }
277
+ )
278
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { flex: 1, fontWeight: "600", fontSize, color: ALERT_FG, children: title }),
279
+ endElement,
280
+ closable && /* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "relative", alignSelf: "flex-start", children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: handleClose }) })
281
+ ]
282
+ }
283
+ ) });
284
+ }
285
+ );
286
+ var SpinnerFrame = gui.styled(gui.View, {
287
+ name: "ButtonSpinner",
288
+ render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
289
+ width: 16,
290
+ height: 16,
291
+ borderRadius: 1e3,
292
+ borderWidth: 2,
293
+ borderColor: "currentColor",
294
+ borderBottomColor: "transparent",
295
+ borderLeftColor: "transparent"
296
+ });
297
+ function Spinner({ className }) {
298
+ return /* @__PURE__ */ jsxRuntime.jsx(
299
+ SpinnerFrame,
300
+ {
301
+ role: "status",
302
+ "aria-label": "Loading",
303
+ className: [
304
+ "animate-spin",
305
+ className
306
+ ].filter(Boolean).join(" ")
307
+ }
308
+ );
309
+ }
310
+ var ButtonFrame = gui.styled(gui.View, {
311
+ name: "LuxButton",
312
+ render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button" }),
313
+ role: "button",
314
+ tabIndex: 0,
315
+ cursor: "pointer",
316
+ userSelect: "none",
317
+ display: "inline-flex",
318
+ alignItems: "center",
319
+ justifyContent: "center",
320
+ gap: 0,
321
+ overflow: "hidden",
322
+ borderRadius: 6,
323
+ // Whitespace nowrap via className since hanzogui doesn't have a direct token
324
+ // Transition via className
325
+ variants: {
326
+ size: {
327
+ "2xs": { paddingHorizontal: 8, height: 20, minWidth: 20, fontSize: 12, borderRadius: 4, gap: 4 },
328
+ xs: { paddingHorizontal: 8, height: 24, minWidth: 24, fontSize: 14, borderRadius: 4, gap: 4 },
329
+ sm: { paddingHorizontal: 12, height: 32, minWidth: 32, fontSize: 14, borderRadius: 6, gap: 4 },
330
+ md: { paddingHorizontal: 12, height: 40, minWidth: 40, fontSize: 16, borderRadius: 6, gap: 8 }
331
+ },
332
+ disabled: {
333
+ true: {
334
+ opacity: 0.2,
335
+ cursor: "not-allowed",
336
+ pointerEvents: "none"
337
+ }
338
+ }
339
+ },
340
+ defaultVariants: {
341
+ size: "md"
342
+ }
343
+ });
344
+ var VARIANT_CLASSES = {
345
+ solid: [
346
+ "bg-[var(--color-button-solid-bg)] text-[var(--color-button-solid-text)]",
347
+ "hover:bg-[var(--color-hover)]",
348
+ "data-[expanded]:bg-[var(--color-hover)]"
349
+ ].join(" "),
350
+ solid_danger: [
351
+ "bg-[var(--color-button-danger-bg)] text-[var(--color-button-danger-fg)]",
352
+ "hover:bg-[var(--color-button-danger-bg-hover)]",
353
+ "data-[expanded]:bg-[var(--color-button-danger-bg-hover)]"
354
+ ].join(" "),
355
+ outline: [
356
+ "border-2 border-solid bg-transparent",
357
+ "text-[var(--color-button-outline-fg)] border-[var(--color-button-outline-fg)]",
358
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]"
359
+ ].join(" "),
360
+ outline_danger: [
361
+ "border-2 border-solid bg-transparent",
362
+ "text-[var(--color-button-danger-bg)] border-[var(--color-button-danger-bg)]",
363
+ "hover:bg-transparent hover:text-[var(--color-button-danger-bg-hover)] hover:border-[var(--color-button-danger-bg-hover)]"
364
+ ].join(" "),
365
+ dropdown: [
366
+ "border-2 border-solid bg-transparent",
367
+ "text-[var(--color-button-dropdown-fg)] border-[var(--color-button-dropdown-border)]",
368
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
369
+ "data-[expanded]:bg-transparent data-[expanded]:text-[var(--color-hover)] data-[expanded]:border-[var(--color-hover)]",
370
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
371
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
372
+ "data-[selected]:hover:text-[var(--color-hover)] data-[selected]:hover:border-transparent",
373
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
374
+ ].join(" "),
375
+ header: [
376
+ "bg-transparent border-2 border-solid",
377
+ "text-[var(--color-button-header-fg)] border-[var(--color-button-header-border)]",
378
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
379
+ "data-[selected]:bg-[var(--color-button-header-bg-selected)]",
380
+ "data-[selected]:text-[var(--color-button-header-fg-selected)] data-[selected]:border-transparent data-[selected]:border-0",
381
+ "data-[selected]:hover:bg-[var(--color-button-header-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
382
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
383
+ "data-[selected]:data-[highlighted]:bg-[var(--color-button-header-bg-highlighted)]",
384
+ "data-[selected]:data-[highlighted]:text-[var(--color-button-header-fg-highlighted)]",
385
+ "data-[selected]:data-[highlighted]:border-transparent data-[selected]:data-[highlighted]:border-0",
386
+ "data-[selected]:data-[highlighted]:hover:bg-[var(--color-button-header-bg-highlighted)]",
387
+ "data-[selected]:data-[highlighted]:hover:text-[var(--color-hover)]",
388
+ "data-[selected]:data-[highlighted]:data-[expanded]:text-[var(--color-hover)]"
389
+ ].join(" "),
390
+ hero: [
391
+ "bg-[var(--color-button-hero-bg)] text-[var(--color-button-hero-fg)]",
392
+ "hover:bg-[var(--color-button-hero-bg-hover)] hover:text-[var(--color-button-hero-fg-hover)]",
393
+ "data-[selected]:bg-[var(--color-button-hero-bg-selected)] data-[selected]:text-[var(--color-button-hero-fg-selected)]",
394
+ "data-[selected]:hover:bg-[var(--color-button-hero-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
395
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
396
+ ].join(" "),
397
+ segmented: [
398
+ "bg-transparent border-2 border-solid rounded-none",
399
+ "text-[var(--color-button-segmented-fg)] border-[var(--color-selected-control-bg)]",
400
+ "hover:text-[var(--color-hover)]",
401
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
402
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-selected-control-text)]",
403
+ "[&:not(:last-child)]:border-r-0 data-[selected]:[&:not(:last-child)]:border-r-2",
404
+ "data-[selected]+*:border-l-0",
405
+ "first:rounded-l-md last:rounded-r-md"
406
+ ].join(" "),
407
+ plain: "bg-transparent text-inherit border-none hover:bg-transparent",
408
+ subtle: [
409
+ "bg-[var(--color-button-subtle-bg)] text-[var(--color-button-subtle-fg)]",
410
+ "hover:bg-[var(--color-button-subtle-bg)] hover:text-[var(--color-hover)]",
411
+ "disabled:bg-[var(--color-button-subtle-bg)] disabled:text-[var(--color-button-subtle-fg)]"
412
+ ].join(" "),
413
+ link: [
414
+ "bg-transparent text-[var(--color-link-primary)] border-none font-normal",
415
+ "px-0 h-auto",
416
+ "hover:bg-transparent hover:text-[var(--color-link-primary-hover)]",
417
+ "disabled:text-[var(--color-text-secondary)]"
418
+ ].join(" "),
419
+ icon_secondary: [
420
+ "bg-transparent text-[var(--color-icon-secondary)] border-none",
421
+ "hover:text-[var(--color-hover)]",
422
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
423
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
424
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
425
+ "data-[expanded]:text-[var(--color-hover)]"
426
+ ].join(" "),
427
+ icon_background: [
428
+ "bg-[var(--color-button-icon-background-bg)] text-[var(--color-icon-secondary)] border-none",
429
+ "hover:text-[var(--color-hover)]",
430
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
431
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
432
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
433
+ "data-[expanded]:text-[var(--color-hover)]"
434
+ ].join(" "),
435
+ pagination: [
436
+ "border-2 border-solid bg-transparent",
437
+ "text-[var(--color-button-pagination-fg)] border-[var(--color-button-pagination-border)]",
438
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
439
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
440
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
441
+ "data-[selected]:hover:text-[var(--color-selected-control-text)] data-[selected]:hover:border-transparent"
442
+ ].join(" ")
443
+ };
444
+ var BASE_CLASSES = "font-semibold whitespace-nowrap transition-colors duration-150";
445
+ var SP = 4;
446
+ function buildShimStyle(props) {
447
+ const s = { ...props.style };
448
+ if (props.mt !== void 0) s.marginTop = typeof props.mt === "number" ? `${props.mt * SP}px` : props.mt;
449
+ if (props.ml !== void 0) s.marginLeft = typeof props.ml === "number" ? `${props.ml * SP}px` : props.ml;
450
+ if (props.mr !== void 0) s.marginRight = typeof props.mr === "number" ? `${props.mr * SP}px` : props.mr;
451
+ if (props.px !== void 0) {
452
+ const v = typeof props.px === "number" ? `${props.px * SP}px` : props.px;
453
+ s.paddingLeft = v;
454
+ s.paddingRight = v;
455
+ }
456
+ if (props.py !== void 0) {
457
+ const v = typeof props.py === "number" ? `${props.py * SP}px` : props.py;
458
+ s.paddingTop = v;
459
+ s.paddingBottom = v;
460
+ }
461
+ if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
462
+ if (props.gap !== void 0) s.gap = typeof props.gap === "number" ? `${props.gap * SP}px` : props.gap;
463
+ if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
464
+ if (props.columnGap !== void 0) s.columnGap = typeof props.columnGap === "number" ? `${props.columnGap * SP}px` : props.columnGap;
465
+ if (props.gridColumn !== void 0) s.gridColumn = typeof props.gridColumn === "number" ? String(props.gridColumn) : props.gridColumn;
466
+ if (props.gridRow) s.gridRow = props.gridRow;
467
+ if (props.justifySelf) s.justifySelf = props.justifySelf;
468
+ if (props.alignSelf) s.alignSelf = props.alignSelf;
469
+ if (props.h) s.height = props.h;
470
+ if (props.w) s.width = props.w;
471
+ if (props.display) s.display = props.display;
472
+ if (props.borderBottomRightRadius !== void 0) s.borderBottomRightRadius = typeof props.borderBottomRightRadius === "number" ? `${props.borderBottomRightRadius}px` : props.borderBottomRightRadius;
473
+ if (props.borderTopRightRadius !== void 0) s.borderTopRightRadius = typeof props.borderTopRightRadius === "number" ? `${props.borderTopRightRadius}px` : props.borderTopRightRadius;
474
+ return Object.keys(s).length > 0 ? s : void 0;
475
+ }
476
+ var Button = React8__namespace.forwardRef(
477
+ function Button2(props, ref) {
478
+ const {
479
+ className,
480
+ variant = "solid",
481
+ size = "md",
482
+ asChild = false,
483
+ loading = false,
484
+ loadingText,
485
+ loadingSkeleton = false,
486
+ expanded,
487
+ selected,
488
+ highlighted,
489
+ disabled,
490
+ children,
491
+ style: styleProp,
492
+ // Strip Chakra style props
493
+ mt,
494
+ ml,
495
+ mr,
496
+ px,
497
+ py,
498
+ fontWeight,
499
+ gap,
500
+ flexShrink,
501
+ columnGap,
502
+ gridColumn,
503
+ gridRow,
504
+ justifySelf,
505
+ alignSelf,
506
+ textStyle: _textStyle,
507
+ h,
508
+ w,
509
+ display,
510
+ borderBottomRightRadius,
511
+ borderTopRightRadius,
512
+ ...rest
513
+ } = props;
514
+ const mergedStyle = buildShimStyle({
515
+ style: styleProp,
516
+ mt,
517
+ ml,
518
+ mr,
519
+ px,
520
+ py,
521
+ fontWeight,
522
+ gap,
523
+ flexShrink,
524
+ columnGap,
525
+ gridColumn,
526
+ gridRow,
527
+ justifySelf,
528
+ alignSelf,
529
+ h,
530
+ w,
531
+ display,
532
+ borderBottomRightRadius,
533
+ borderTopRightRadius
534
+ });
535
+ const dataAttrs = {};
536
+ if (expanded) dataAttrs["data-expanded"] = true;
537
+ if (selected) dataAttrs["data-selected"] = true;
538
+ if (highlighted) dataAttrs["data-highlighted"] = true;
539
+ if (loadingSkeleton) dataAttrs["data-loading-skeleton"] = true;
540
+ const isDisabled = !loadingSkeleton && (loading || disabled);
541
+ const inner = loading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
542
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}),
543
+ loadingText != null && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginLeft: 8 }, children: loadingText })
544
+ ] }) : children;
545
+ const variantClass = VARIANT_CLASSES[variant] ?? VARIANT_CLASSES.solid;
546
+ const combinedClassName = [BASE_CLASSES, variantClass, className].filter(Boolean).join(" ");
547
+ const button = /* @__PURE__ */ jsxRuntime.jsx(
548
+ ButtonFrame,
549
+ {
550
+ ref,
551
+ size,
552
+ disabled: isDisabled || void 0,
553
+ asChild: asChild || void 0,
554
+ className: combinedClassName,
555
+ style: mergedStyle,
556
+ ...dataAttrs,
557
+ ...rest,
558
+ children: inner
559
+ }
560
+ );
561
+ if (loadingSkeleton) {
562
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
563
+ }
564
+ return button;
565
+ }
566
+ );
567
+ React8__namespace.forwardRef(
568
+ function ButtonGroup2(props, ref) {
569
+ const { className, ...rest } = props;
570
+ return /* @__PURE__ */ jsxRuntime.jsx(
571
+ ui.Box,
572
+ {
573
+ ref,
574
+ className: ["inline-flex", className].filter(Boolean).join(" "),
575
+ role: "group",
576
+ ...rest
577
+ }
578
+ );
579
+ }
580
+ );
581
+ React8__namespace.forwardRef(
582
+ function ButtonGroupRadio2(props, ref) {
583
+ const {
584
+ children,
585
+ onChange,
586
+ variant = "segmented",
587
+ defaultValue,
588
+ loading = false,
589
+ equalWidth = false,
590
+ className,
591
+ ...rest
592
+ } = props;
593
+ const firstChildValue = React8__namespace.useMemo(() => {
594
+ const firstChild = Array.isArray(children) ? children[0] : void 0;
595
+ return typeof firstChild?.props.value === "string" ? firstChild.props.value : void 0;
596
+ }, [children]);
597
+ const [value, setValue] = React8__namespace.useState(defaultValue ?? firstChildValue);
598
+ const handleItemClick = React8__namespace.useCallback((event) => {
599
+ const v = event.currentTarget.value;
600
+ setValue(v);
601
+ onChange?.(v);
602
+ }, [onChange]);
603
+ const clonedChildren = React8__namespace.Children.map(children, (child) => {
604
+ return React8__namespace.cloneElement(child, {
605
+ onClick: handleItemClick,
606
+ selected: value === child.props.value,
607
+ variant
608
+ });
609
+ });
610
+ const childrenLength = React8__namespace.Children.count(children);
611
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsx(
612
+ ui.Box,
613
+ {
614
+ ref,
615
+ className: [
616
+ "inline-flex gap-0",
617
+ equalWidth ? "grid" : "",
618
+ className
619
+ ].filter(Boolean).join(" "),
620
+ style: equalWidth ? { gridTemplateColumns: `repeat(${childrenLength}, 1fr)` } : void 0,
621
+ role: "group",
622
+ ...rest,
623
+ children: clonedChildren
624
+ }
625
+ ) });
626
+ }
627
+ );
628
+ var MUTED = "var(--color-text-secondary)";
629
+ var TRACK = "var(--color-border-divider)";
630
+ var ACTIVE = "var(--color-link-primary)";
631
+ var ACTIVE_HOVER = "var(--color-link-primary-hover)";
632
+ var WHITE = "var(--color-white)";
633
+ var Slider = React8__namespace.forwardRef(
634
+ function Slider2(props, ref) {
635
+ const {
636
+ marks: marksProp,
637
+ label,
638
+ showValue,
639
+ value,
640
+ defaultValue,
641
+ min = 0,
642
+ max = 100,
643
+ step,
644
+ disabled,
645
+ orientation = "horizontal",
646
+ name,
647
+ onValueChange,
648
+ onValueCommit,
649
+ className
650
+ } = props;
651
+ const resolvedValue = defaultValue ?? value;
652
+ const marks = marksProp?.map((mark) => {
653
+ if (typeof mark === "number") return { value: mark, label: void 0 };
654
+ return mark;
655
+ });
656
+ const hasMarkLabel = Boolean(marks?.some((mark) => mark.label));
657
+ const latest = React8__namespace.useRef(value ?? defaultValue ?? []);
658
+ const handleValueChange = React8__namespace.useCallback((next) => {
659
+ latest.current = next;
660
+ onValueChange?.(next);
661
+ }, [onValueChange]);
662
+ const handleSlideEnd = React8__namespace.useCallback(() => {
663
+ onValueCommit?.(latest.current);
664
+ }, [onValueCommit]);
665
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { className, gap: 4, children: [
666
+ label && !showValue && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 14, fontWeight: "500", color: MUTED, children: label }),
667
+ label && showValue && /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { alignItems: "center", justifyContent: "space-between", children: [
668
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 14, fontWeight: "500", color: MUTED, children: label }),
669
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 14, color: MUTED, children: (value ?? defaultValue ?? [])?.join(", ") })
670
+ ] }),
671
+ /* @__PURE__ */ jsxRuntime.jsxs(
672
+ gui.Slider,
673
+ {
674
+ ref,
675
+ position: "relative",
676
+ flexDirection: "row",
677
+ width: "100%",
678
+ userSelect: "none",
679
+ alignItems: "center",
680
+ marginBottom: hasMarkLabel ? 24 : 0,
681
+ value,
682
+ defaultValue,
683
+ min,
684
+ max,
685
+ step,
686
+ disabled,
687
+ orientation,
688
+ name,
689
+ onValueChange: handleValueChange,
690
+ onSlideEnd: handleSlideEnd,
691
+ children: [
692
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Slider.Track, { unstyled: true, position: "relative", flexGrow: 1, height: 6, borderRadius: 9999, backgroundColor: TRACK, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Slider.TrackActive, { unstyled: true, position: "absolute", height: "100%", borderRadius: 9999, backgroundColor: ACTIVE }) }),
693
+ resolvedValue?.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
694
+ gui.Slider.Thumb,
695
+ {
696
+ index,
697
+ unstyled: true,
698
+ width: 20,
699
+ height: 20,
700
+ borderRadius: 9999,
701
+ borderWidth: 2,
702
+ borderColor: ACTIVE,
703
+ backgroundColor: WHITE,
704
+ boxShadow: "var(--shadow-sm)",
705
+ transition: "quick",
706
+ hoverStyle: { borderColor: ACTIVE_HOVER },
707
+ focusStyle: { outlineWidth: 2, outlineStyle: "solid", outlineColor: ACTIVE, outlineOffset: 2 },
708
+ disabledStyle: { pointerEvents: "none", opacity: 0.5 }
709
+ },
710
+ index
711
+ ))
712
+ ]
713
+ }
714
+ ),
715
+ /* @__PURE__ */ jsxRuntime.jsx(SliderMarks, { marks, min, max })
716
+ ] });
717
+ }
718
+ );
719
+ function SliderMarks(props) {
720
+ const { marks, min, max } = props;
721
+ if (!marks?.length) return null;
722
+ const range = max - min;
723
+ return /* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "relative", width: "100%", height: 16, children: marks.map((mark, index) => {
724
+ const percent = (mark.value - min) / range * 100;
725
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.View, { position: "absolute", left: `${percent}%`, alignItems: "center", children: [
726
+ /* @__PURE__ */ jsxRuntime.jsx(gui.View, { width: 2, height: 6, backgroundColor: TRACK }),
727
+ mark.label != null && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { marginTop: 2, fontSize: 12, color: MUTED, children: mark.label })
728
+ ] }, index);
729
+ }) });
730
+ }
731
+ var SIZE2 = {
732
+ xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
733
+ sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
734
+ md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
735
+ lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
736
+ "2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
737
+ };
738
+ var VARIANT = {
739
+ outline: { borderWidth: 1, borderStyle: "solid" },
740
+ filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
741
+ unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
742
+ };
743
+ var CONTROL = {
744
+ width: "100%",
745
+ outlineWidth: 0,
746
+ backgroundColor: "var(--color-input-bg)",
747
+ color: "var(--color-input-fg)",
748
+ borderColor: "var(--color-input-border)",
749
+ hoverStyle: { borderColor: "var(--color-input-border-hover)" },
750
+ focusStyle: { borderColor: "var(--color-input-border-focus)" },
751
+ disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
752
+ };
753
+ var Input = React8__namespace.default.forwardRef(
754
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
755
+ const handleChange = React8__namespace.default.useCallback(
756
+ (event) => {
757
+ onChange?.(event);
758
+ onChangeText?.(event.target.value);
759
+ },
760
+ [onChange, onChangeText]
761
+ );
762
+ return /* @__PURE__ */ jsxRuntime.jsx(
763
+ gui.Input,
764
+ {
765
+ ref,
766
+ unstyled: true,
767
+ className: className ? `lux-control ${className}` : "lux-control",
768
+ ...CONTROL,
769
+ ...SIZE2[size],
770
+ ...VARIANT[variant],
771
+ ...rest,
772
+ onChange: handleChange
773
+ }
774
+ );
775
+ }
776
+ );
777
+ Input.displayName = "Input";
778
+ var SIZE3 = {
779
+ xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
780
+ sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
781
+ md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
782
+ lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$6", borderRadius: 8 },
783
+ "2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$7", borderRadius: 8 }
784
+ };
785
+ var Textarea = React8__namespace.default.forwardRef(
786
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
787
+ const handleChange = React8__namespace.default.useCallback(
788
+ (event) => {
789
+ onChange?.(event);
790
+ onChangeText?.(event.target.value);
791
+ },
792
+ [onChange, onChangeText]
793
+ );
794
+ return /* @__PURE__ */ jsxRuntime.jsx(
795
+ gui.TextArea,
796
+ {
797
+ ref,
798
+ unstyled: true,
799
+ className: className ? `lux-control ${className}` : "lux-control",
800
+ ...CONTROL,
801
+ ...SIZE3[size],
802
+ ...VARIANT[variant],
803
+ ...rest,
804
+ onChange: handleChange
805
+ }
806
+ );
807
+ }
808
+ );
809
+ Textarea.displayName = "Textarea";
810
+ var AI_MODELS = [
811
+ { value: "gpt-4", label: "GPT-4", provider: "OpenAI" },
812
+ { value: "gpt-4-turbo", label: "GPT-4 Turbo", provider: "OpenAI" },
813
+ { value: "gpt-3.5-turbo", label: "GPT-3.5 Turbo", provider: "OpenAI" },
814
+ { value: "claude-3-opus", label: "Claude 3 Opus", provider: "Anthropic" },
815
+ { value: "claude-3-sonnet", label: "Claude 3 Sonnet", provider: "Anthropic" },
816
+ { value: "claude-3-haiku", label: "Claude 3 Haiku", provider: "Anthropic" },
817
+ { value: "llama-3-70b", label: "Llama 3 70B", provider: "Meta" },
818
+ { value: "llama-3-8b", label: "Llama 3 8B", provider: "Meta" },
819
+ { value: "mixtral-8x7b", label: "Mixtral 8x7B", provider: "Mistral" },
820
+ { value: "gemini-pro", label: "Gemini Pro", provider: "Google" }
821
+ ];
822
+ function AIPlayground({
823
+ className,
824
+ defaultModel = "gpt-4",
825
+ defaultSystemPrompt = "You are a helpful AI assistant.",
826
+ onSendMessage,
827
+ showSettings = true
828
+ }) {
829
+ const [messages, setMessages] = React8__namespace.useState([]);
830
+ const [input, setInput] = React8__namespace.useState("");
831
+ const [isLoading, setIsLoading] = React8__namespace.useState(false);
832
+ const [error, setError] = React8__namespace.useState(null);
833
+ const [copiedId, setCopiedId] = React8__namespace.useState(null);
834
+ const [showConfig, setShowConfig] = React8__namespace.useState(false);
835
+ const [config, setConfig] = React8__namespace.useState({
836
+ model: defaultModel,
837
+ temperature: 0.7,
838
+ maxTokens: 2e3,
839
+ systemPrompt: defaultSystemPrompt
840
+ });
841
+ const messagesEndRef = React8__namespace.useRef(null);
842
+ const textareaRef = React8__namespace.useRef(null);
843
+ const scrollToBottom = () => {
844
+ messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
845
+ };
846
+ React8__namespace.useEffect(() => {
847
+ scrollToBottom();
848
+ }, [messages]);
849
+ const handleSend = async () => {
850
+ if (!input.trim()) return;
851
+ const userMessage = {
852
+ id: `msg-${Date.now()}`,
853
+ role: "user",
854
+ content: input.trim(),
855
+ timestamp: /* @__PURE__ */ new Date()
856
+ };
857
+ setMessages((prev) => [...prev, userMessage]);
858
+ setInput("");
859
+ setIsLoading(true);
860
+ setError(null);
861
+ try {
862
+ let response;
863
+ if (onSendMessage) {
864
+ response = await onSendMessage(userMessage.content, config);
865
+ } else {
866
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
867
+ response = `This is a mock response from ${config.model}. In a real implementation, this would call your AI API with the following configuration:
868
+
869
+ Model: ${config.model}
870
+ Temperature: ${config.temperature}
871
+ Max Tokens: ${config.maxTokens}
872
+ System Prompt: ${config.systemPrompt}
873
+
874
+ Your message: "${userMessage.content}"`;
875
+ }
876
+ const assistantMessage = {
877
+ id: `msg-${Date.now()}`,
878
+ role: "assistant",
879
+ content: response,
880
+ timestamp: /* @__PURE__ */ new Date(),
881
+ model: config.model
882
+ };
883
+ setMessages((prev) => [...prev, assistantMessage]);
884
+ } catch (err) {
885
+ setError(err instanceof Error ? err.message : "Failed to send message");
886
+ } finally {
887
+ setIsLoading(false);
888
+ setTimeout(() => textareaRef.current?.focus(), 100);
889
+ }
890
+ };
891
+ const handleCopy = async (message) => {
892
+ try {
893
+ await navigator.clipboard.writeText(message.content);
894
+ setCopiedId(message.id);
895
+ setTimeout(() => setCopiedId(null), 2e3);
896
+ } catch {
897
+ setError("Failed to copy to clipboard");
898
+ }
899
+ };
900
+ const handleClear = () => {
901
+ setMessages([]);
902
+ setError(null);
903
+ };
904
+ const handleKeyDown = (e) => {
905
+ if (e.key === "Enter" && !e.shiftKey) {
906
+ e.preventDefault();
907
+ handleSend();
908
+ }
909
+ };
910
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { ...ui.sx(ui.cn("w-full max-w-4xl", className)), children: [
911
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
912
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-1", children: [
913
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("flex items-center gap-2"), children: [
914
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { style: ui.css("h-5 w-5") }),
915
+ "AI Playground"
916
+ ] }),
917
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardDescription, { children: "Interact with various AI models in real-time" })
918
+ ] }),
919
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
920
+ messages.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
921
+ Button,
922
+ {
923
+ variant: "outline",
924
+ size: "sm",
925
+ onClick: handleClear,
926
+ ...ui.sx("h-8"),
927
+ children: [
928
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { style: ui.css("h-4 w-4 mr-1") }),
929
+ "Clear"
930
+ ]
931
+ }
932
+ ),
933
+ showSettings && /* @__PURE__ */ jsxRuntime.jsxs(
934
+ Button,
935
+ {
936
+ variant: "outline",
937
+ size: "sm",
938
+ onClick: () => setShowConfig(!showConfig),
939
+ ...ui.sx("h-8"),
940
+ children: [
941
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings2, { style: ui.css("h-4 w-4 mr-1") }),
942
+ "Settings"
943
+ ]
944
+ }
945
+ )
946
+ ] })
947
+ ] }) }),
948
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { ...ui.sx("space-y-4"), children: [
949
+ showConfig && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "rounded-lg border bg-muted/50 p-4 space-y-4", children: [
950
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "grid gap-4 md:grid-cols-2", children: [
951
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
952
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "model", children: "Model" }),
953
+ /* @__PURE__ */ jsxRuntime.jsxs(
954
+ ui.Select,
955
+ {
956
+ value: config.model,
957
+ onValueChange: (value) => setConfig((prev) => ({ ...prev, model: value })),
958
+ children: [
959
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectTrigger, { id: "model", children: /* @__PURE__ */ jsxRuntime.jsx(ui.SelectValue, {}) }),
960
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectContent, { children: AI_MODELS.map((model) => /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: model.value, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-col", children: [
961
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: model.label }),
962
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs text-muted-foreground", children: model.provider })
963
+ ] }) }, model.value)) })
964
+ ]
965
+ }
966
+ )
967
+ ] }),
968
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
969
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Label, { htmlFor: "max-tokens", children: [
970
+ "Max Tokens: ",
971
+ config.maxTokens
972
+ ] }),
973
+ /* @__PURE__ */ jsxRuntime.jsx(
974
+ Slider,
975
+ {
976
+ id: "max-tokens",
977
+ min: 100,
978
+ max: 4e3,
979
+ step: 100,
980
+ value: [config.maxTokens],
981
+ onValueChange: (value) => setConfig((prev) => ({ ...prev, maxTokens: value[0] })),
982
+ ...ui.sx("w-full")
983
+ }
984
+ )
985
+ ] })
986
+ ] }),
987
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
988
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Label, { htmlFor: "temperature", children: [
989
+ "Temperature: ",
990
+ config.temperature.toFixed(1)
991
+ ] }),
992
+ /* @__PURE__ */ jsxRuntime.jsx(
993
+ Slider,
994
+ {
995
+ id: "temperature",
996
+ min: 0,
997
+ max: 2,
998
+ step: 0.1,
999
+ value: [config.temperature],
1000
+ onValueChange: (value) => setConfig((prev) => ({ ...prev, temperature: value[0] })),
1001
+ ...ui.sx("w-full")
1002
+ }
1003
+ ),
1004
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-xs text-muted-foreground", children: "Lower values make the output more focused and deterministic" })
1005
+ ] }),
1006
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1007
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "system-prompt", children: "System Prompt" }),
1008
+ /* @__PURE__ */ jsxRuntime.jsx(
1009
+ Textarea,
1010
+ {
1011
+ id: "system-prompt",
1012
+ placeholder: "Enter system prompt...",
1013
+ value: config.systemPrompt,
1014
+ onChange: (e) => setConfig((prev) => ({
1015
+ ...prev,
1016
+ systemPrompt: e.target.value
1017
+ })),
1018
+ ...ui.sx("min-h-[80px] resize-none")
1019
+ }
1020
+ )
1021
+ ] })
1022
+ ] }),
1023
+ error && /* @__PURE__ */ jsxRuntime.jsxs(Alert, { children: [
1024
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { style: ui.css("h-4 w-4") }),
1025
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { children: error })
1026
+ ] }),
1027
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "rounded-lg border bg-muted/30 min-h-[300px] max-h-[500px] overflow-y-auto p-4 space-y-4", children: messages.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-col items-center justify-center h-[280px] text-muted-foreground", children: [
1028
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { style: ui.css("h-8 w-8 mb-2 opacity-50") }),
1029
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm", children: "Start a conversation with AI" }),
1030
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "p", className: "text-xs mt-1", children: [
1031
+ "Using ",
1032
+ AI_MODELS.find((m) => m.value === config.model)?.label
1033
+ ] })
1034
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1035
+ messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
1036
+ ui.Box,
1037
+ {
1038
+ className: ui.cn(
1039
+ "flex gap-3",
1040
+ message.role === "user" ? "justify-end" : "justify-start"
1041
+ ),
1042
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
1043
+ ui.Box,
1044
+ {
1045
+ className: ui.cn(
1046
+ "rounded-lg px-4 py-2 max-w-[80%] relative group",
1047
+ message.role === "user" ? "bg-primary text-primary-foreground" : "bg-muted"
1048
+ ),
1049
+ children: [
1050
+ message.role === "assistant" && message.model && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs opacity-70 mb-1", children: AI_MODELS.find((m) => m.value === message.model)?.label }),
1051
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "whitespace-pre-wrap break-words", children: message.content }),
1052
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2 mt-2", children: [
1053
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs opacity-50", children: message.timestamp.toLocaleTimeString() }),
1054
+ /* @__PURE__ */ jsxRuntime.jsx(
1055
+ Button,
1056
+ {
1057
+ variant: "ghost",
1058
+ size: "sm",
1059
+ onClick: () => handleCopy(message),
1060
+ ...ui.sx("h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity"),
1061
+ children: copiedId === message.id ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { style: ui.css("h-3 w-3") }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { style: ui.css("h-3 w-3") })
1062
+ }
1063
+ )
1064
+ ] })
1065
+ ]
1066
+ }
1067
+ )
1068
+ },
1069
+ message.id
1070
+ )),
1071
+ isLoading && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex gap-3", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "rounded-lg px-4 py-2 bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-4 w-4 animate-spin") }) }) }),
1072
+ /* @__PURE__ */ jsxRuntime.jsx("div", { ref: messagesEndRef })
1073
+ ] }) }),
1074
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2", children: [
1075
+ /* @__PURE__ */ jsxRuntime.jsx(
1076
+ Textarea,
1077
+ {
1078
+ ref: textareaRef,
1079
+ placeholder: "Type your message...",
1080
+ value: input,
1081
+ onChange: (e) => setInput(e.target.value),
1082
+ onKeyDown: handleKeyDown,
1083
+ disabled: isLoading,
1084
+ ...ui.sx("min-h-[80px] resize-none flex-1")
1085
+ }
1086
+ ),
1087
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
1088
+ Button,
1089
+ {
1090
+ onClick: handleSend,
1091
+ disabled: !input.trim() || isLoading,
1092
+ ...ui.sx("h-[80px]"),
1093
+ children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-4 w-4 animate-spin") }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Send, { style: ui.css("h-4 w-4") })
1094
+ }
1095
+ ) })
1096
+ ] })
1097
+ ] }),
1098
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardFooter, { ...ui.sx("text-xs text-muted-foreground"), children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
1099
+ "Model: ",
1100
+ AI_MODELS.find((m) => m.value === config.model)?.label,
1101
+ " \u2022 Temperature: ",
1102
+ config.temperature,
1103
+ " \u2022 Max Tokens: ",
1104
+ config.maxTokens
1105
+ ] }) })
1106
+ ] });
1107
+ }
1108
+
1109
+ exports.AIPlayground = AIPlayground;
1110
+ exports.AI_MODELS = AI_MODELS;