@luxfi/ui 8.0.0 → 8.2.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 (1276) 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/accordion.d.ts.map +1 -1
  38. package/dist/advanced-chart.cjs +53 -0
  39. package/dist/advanced-chart.d.ts +6 -0
  40. package/dist/advanced-chart.d.ts.map +1 -0
  41. package/dist/advanced-chart.js +51 -0
  42. package/dist/advanced-navigation-bar.cjs +459 -0
  43. package/dist/advanced-navigation-bar.d.ts +14 -0
  44. package/dist/advanced-navigation-bar.d.ts.map +1 -0
  45. package/dist/advanced-navigation-bar.js +437 -0
  46. package/dist/ai-actions.cjs +57 -0
  47. package/dist/ai-actions.d.ts +14 -0
  48. package/dist/ai-actions.d.ts.map +1 -0
  49. package/dist/ai-actions.js +35 -0
  50. package/dist/ai-agents.cjs +1764 -0
  51. package/dist/ai-agents.d.ts +56 -0
  52. package/dist/ai-agents.d.ts.map +1 -0
  53. package/dist/ai-agents.js +1740 -0
  54. package/dist/ai-assistant.cjs +907 -0
  55. package/dist/ai-assistant.d.ts +28 -0
  56. package/dist/ai-assistant.d.ts.map +1 -0
  57. package/dist/ai-assistant.js +886 -0
  58. package/dist/ai-chat.cjs +1165 -0
  59. package/dist/ai-chat.d.ts +56 -0
  60. package/dist/ai-chat.d.ts.map +1 -0
  61. package/dist/ai-chat.js +1141 -0
  62. package/dist/ai-code.cjs +1866 -0
  63. package/dist/ai-code.d.ts +58 -0
  64. package/dist/ai-code.d.ts.map +1 -0
  65. package/dist/ai-code.js +1841 -0
  66. package/dist/ai-model-selector-navigation-bar.cjs +59 -0
  67. package/dist/ai-model-selector-navigation-bar.d.ts +15 -0
  68. package/dist/ai-model-selector-navigation-bar.d.ts.map +1 -0
  69. package/dist/ai-model-selector-navigation-bar.js +37 -0
  70. package/dist/ai-models.cjs +41 -0
  71. package/dist/ai-models.d.ts +15 -0
  72. package/dist/ai-models.d.ts.map +1 -0
  73. package/dist/ai-models.js +19 -0
  74. package/dist/ai-playground.cjs +1110 -0
  75. package/dist/ai-playground.d.ts +67 -0
  76. package/dist/ai-playground.d.ts.map +1 -0
  77. package/dist/ai-playground.js +1088 -0
  78. package/dist/ai-tools.cjs +1043 -0
  79. package/dist/ai-tools.d.ts +23 -0
  80. package/dist/ai-tools.d.ts.map +1 -0
  81. package/dist/ai-tools.js +1022 -0
  82. package/dist/ai-vision.cjs +1831 -0
  83. package/dist/ai-vision.d.ts +74 -0
  84. package/dist/ai-vision.d.ts.map +1 -0
  85. package/dist/ai-vision.js +1810 -0
  86. package/dist/ai-voice-settings.cjs +1511 -0
  87. package/dist/ai-voice-settings.d.ts +100 -0
  88. package/dist/ai-voice-settings.d.ts.map +1 -0
  89. package/dist/ai-voice-settings.js +1478 -0
  90. package/dist/ai-voice.cjs +1522 -0
  91. package/dist/ai-voice.d.ts +51 -0
  92. package/dist/ai-voice.d.ts.map +1 -0
  93. package/dist/ai-voice.js +1501 -0
  94. package/dist/alert.cjs +13 -142
  95. package/dist/alert.js +14 -143
  96. package/dist/android.cjs +127 -0
  97. package/dist/android.d.ts +19 -0
  98. package/dist/android.d.ts.map +1 -0
  99. package/dist/android.js +104 -0
  100. package/dist/animated-background.cjs +8830 -0
  101. package/dist/animated-background.d.ts +103 -0
  102. package/dist/animated-background.d.ts.map +1 -0
  103. package/dist/animated-background.js +8824 -0
  104. package/dist/animated-beam.cjs +8438 -0
  105. package/dist/animated-beam.d.ts +15 -0
  106. package/dist/animated-beam.d.ts.map +1 -0
  107. package/dist/animated-beam.js +8417 -0
  108. package/dist/animated-cursor.cjs +269 -0
  109. package/dist/animated-cursor.d.ts +71 -0
  110. package/dist/animated-cursor.d.ts.map +1 -0
  111. package/dist/animated-cursor.js +264 -0
  112. package/dist/animated-icon.cjs +8927 -0
  113. package/dist/animated-icon.d.ts +119 -0
  114. package/dist/animated-icon.d.ts.map +1 -0
  115. package/dist/animated-icon.js +8902 -0
  116. package/dist/animated-list.cjs +9226 -0
  117. package/dist/animated-list.d.ts +126 -0
  118. package/dist/animated-list.d.ts.map +1 -0
  119. package/dist/animated-list.js +9201 -0
  120. package/dist/animated-number.cjs +8773 -0
  121. package/dist/animated-number.d.ts +127 -0
  122. package/dist/animated-number.d.ts.map +1 -0
  123. package/dist/animated-number.js +8767 -0
  124. package/dist/animated-testimonials.cjs +8653 -0
  125. package/dist/animated-testimonials.d.ts +17 -0
  126. package/dist/animated-testimonials.d.ts.map +1 -0
  127. package/dist/animated-testimonials.js +8632 -0
  128. package/dist/animated-text.cjs +8914 -0
  129. package/dist/animated-text.d.ts +65 -0
  130. package/dist/animated-text.d.ts.map +1 -0
  131. package/dist/animated-text.js +8890 -0
  132. package/dist/animated-tooltip.cjs +8624 -0
  133. package/dist/animated-tooltip.d.ts +9 -0
  134. package/dist/animated-tooltip.d.ts.map +1 -0
  135. package/dist/animated-tooltip.js +8603 -0
  136. package/dist/announcement.cjs +465 -0
  137. package/dist/announcement.d.ts +9 -0
  138. package/dist/announcement.d.ts.map +1 -0
  139. package/dist/announcement.js +443 -0
  140. package/dist/app-switcher-navigation-bar.cjs +470 -0
  141. package/dist/app-switcher-navigation-bar.d.ts +15 -0
  142. package/dist/app-switcher-navigation-bar.d.ts.map +1 -0
  143. package/dist/app-switcher-navigation-bar.js +448 -0
  144. package/dist/apple-cards-carousel.cjs +9356 -0
  145. package/dist/apple-cards-carousel.d.ts +36 -0
  146. package/dist/apple-cards-carousel.d.ts.map +1 -0
  147. package/dist/apple-cards-carousel.js +9334 -0
  148. package/dist/apple-hello-effect.cjs +8380 -0
  149. package/dist/apple-hello-effect.d.ts +8 -0
  150. package/dist/apple-hello-effect.d.ts.map +1 -0
  151. package/dist/apple-hello-effect.js +8359 -0
  152. package/dist/auth.cjs +6 -5
  153. package/dist/auth.d.ts.map +1 -1
  154. package/dist/auth.js +6 -5
  155. package/dist/badge.cjs +28 -164
  156. package/dist/badge.d.ts +2 -5
  157. package/dist/badge.d.ts.map +1 -1
  158. package/dist/badge.js +29 -165
  159. package/dist/bank.d.ts +31 -31
  160. package/dist/bank.d.ts.map +1 -1
  161. package/dist/banner.cjs +78 -0
  162. package/dist/banner.d.ts +20 -0
  163. package/dist/banner.d.ts.map +1 -0
  164. package/dist/banner.js +55 -0
  165. package/dist/breadcrumb-and-filters-navigation-bar.cjs +51 -0
  166. package/dist/breadcrumb-and-filters-navigation-bar.d.ts +10 -0
  167. package/dist/breadcrumb-and-filters-navigation-bar.d.ts.map +1 -0
  168. package/dist/breadcrumb-and-filters-navigation-bar.js +29 -0
  169. package/dist/breadcrumb-navigation-bar.cjs +37 -0
  170. package/dist/breadcrumb-navigation-bar.d.ts +10 -0
  171. package/dist/breadcrumb-navigation-bar.d.ts.map +1 -0
  172. package/dist/breadcrumb-navigation-bar.js +15 -0
  173. package/dist/button.cjs +21 -150
  174. package/dist/button.d.ts +1 -1
  175. package/dist/button.d.ts.map +1 -1
  176. package/dist/button.js +21 -150
  177. package/dist/calendar.cjs +55 -0
  178. package/dist/calendar.d.ts +9 -0
  179. package/dist/calendar.d.ts.map +1 -0
  180. package/dist/calendar.js +53 -0
  181. package/dist/centered-logo-navigation-bar.cjs +37 -0
  182. package/dist/centered-logo-navigation-bar.d.ts +15 -0
  183. package/dist/centered-logo-navigation-bar.d.ts.map +1 -0
  184. package/dist/centered-logo-navigation-bar.js +15 -0
  185. package/dist/chart.cjs +266 -0
  186. package/dist/chart.d.ts +52 -0
  187. package/dist/chart.d.ts.map +1 -0
  188. package/dist/chart.js +238 -0
  189. package/dist/choicebox.cjs +77 -0
  190. package/dist/choicebox.d.ts +15 -0
  191. package/dist/choicebox.d.ts.map +1 -0
  192. package/dist/choicebox.js +55 -0
  193. package/dist/chrome.cjs +36 -30
  194. package/dist/chrome.d.ts.map +1 -1
  195. package/dist/chrome.js +37 -31
  196. package/dist/code-block.cjs +871 -0
  197. package/dist/code-block.d.ts +38 -0
  198. package/dist/code-block.d.ts.map +1 -0
  199. package/dist/code-block.js +849 -0
  200. package/dist/code-compare.cjs +1714 -0
  201. package/dist/code-compare.d.ts +46 -0
  202. package/dist/code-compare.d.ts.map +1 -0
  203. package/dist/code-compare.js +1692 -0
  204. package/dist/code-diff.cjs +1073 -0
  205. package/dist/code-diff.d.ts +42 -0
  206. package/dist/code-diff.d.ts.map +1 -0
  207. package/dist/code-diff.js +1051 -0
  208. package/dist/code-editor.cjs +641 -0
  209. package/dist/code-editor.d.ts +23 -0
  210. package/dist/code-editor.d.ts.map +1 -0
  211. package/dist/code-editor.js +616 -0
  212. package/dist/code-explorer.cjs +729 -0
  213. package/dist/code-explorer.d.ts +41 -0
  214. package/dist/code-explorer.d.ts.map +1 -0
  215. package/dist/code-explorer.js +707 -0
  216. package/dist/code-preview.cjs +1349 -0
  217. package/dist/code-preview.d.ts +38 -0
  218. package/dist/code-preview.d.ts.map +1 -0
  219. package/dist/code-preview.js +1327 -0
  220. package/dist/code-snippet.cjs +920 -0
  221. package/dist/code-snippet.d.ts +48 -0
  222. package/dist/code-snippet.d.ts.map +1 -0
  223. package/dist/code-snippet.js +897 -0
  224. package/dist/code-tabs.cjs +76 -0
  225. package/dist/code-tabs.d.ts +12 -0
  226. package/dist/code-tabs.d.ts.map +1 -0
  227. package/dist/code-tabs.js +54 -0
  228. package/dist/code-terminal.cjs +894 -0
  229. package/dist/code-terminal.d.ts +48 -0
  230. package/dist/code-terminal.d.ts.map +1 -0
  231. package/dist/code-terminal.js +872 -0
  232. package/dist/collaboration-navigation-bar.cjs +49 -0
  233. package/dist/collaboration-navigation-bar.d.ts +11 -0
  234. package/dist/collaboration-navigation-bar.d.ts.map +1 -0
  235. package/dist/collaboration-navigation-bar.js +27 -0
  236. package/dist/collapsible.cjs +34 -155
  237. package/dist/collapsible.d.ts +2 -2
  238. package/dist/collapsible.d.ts.map +1 -1
  239. package/dist/collapsible.js +34 -155
  240. package/dist/color-mode.d.ts +1 -1
  241. package/dist/color-mode.d.ts.map +1 -1
  242. package/dist/color-picker.cjs +516 -0
  243. package/dist/color-picker.d.ts +10 -0
  244. package/dist/color-picker.d.ts.map +1 -0
  245. package/dist/color-picker.js +495 -0
  246. package/dist/combobox.cjs +488 -0
  247. package/dist/combobox.d.ts +14 -0
  248. package/dist/combobox.d.ts.map +1 -0
  249. package/dist/combobox.js +466 -0
  250. package/dist/communication-navigation-bar.cjs +438 -0
  251. package/dist/communication-navigation-bar.d.ts +7 -0
  252. package/dist/communication-navigation-bar.d.ts.map +1 -0
  253. package/dist/communication-navigation-bar.js +416 -0
  254. package/dist/company-profile.cjs +46 -0
  255. package/dist/company-profile.d.ts +10 -0
  256. package/dist/company-profile.d.ts.map +1 -0
  257. package/dist/company-profile.js +44 -0
  258. package/dist/comparison.cjs +60 -0
  259. package/dist/comparison.d.ts +16 -0
  260. package/dist/comparison.d.ts.map +1 -0
  261. package/dist/comparison.js +38 -0
  262. package/dist/context-switcher-navigation-bar.cjs +51 -0
  263. package/dist/context-switcher-navigation-bar.d.ts +10 -0
  264. package/dist/context-switcher-navigation-bar.d.ts.map +1 -0
  265. package/dist/context-switcher-navigation-bar.js +29 -0
  266. package/dist/credit-card.cjs +77 -0
  267. package/dist/credit-card.d.ts +11 -0
  268. package/dist/credit-card.d.ts.map +1 -0
  269. package/dist/credit-card.js +55 -0
  270. package/dist/crypto-screener.cjs +43 -0
  271. package/dist/crypto-screener.d.ts +4 -0
  272. package/dist/crypto-screener.d.ts.map +1 -0
  273. package/dist/crypto-screener.js +41 -0
  274. package/dist/cursor.cjs +71 -0
  275. package/dist/cursor.d.ts +9 -0
  276. package/dist/cursor.d.ts.map +1 -0
  277. package/dist/cursor.js +49 -0
  278. package/dist/dashboard-navigation-bar.cjs +441 -0
  279. package/dist/dashboard-navigation-bar.d.ts +11 -0
  280. package/dist/dashboard-navigation-bar.d.ts.map +1 -0
  281. package/dist/dashboard-navigation-bar.js +419 -0
  282. package/dist/dialog-stack.cjs +460 -0
  283. package/dist/dialog-stack.d.ts +13 -0
  284. package/dist/dialog-stack.d.ts.map +1 -0
  285. package/dist/dialog-stack.js +438 -0
  286. package/dist/dialog.cjs +12 -11
  287. package/dist/dialog.d.ts +1 -1
  288. package/dist/dialog.d.ts.map +1 -1
  289. package/dist/dialog.js +12 -11
  290. package/dist/direction.cjs +26 -0
  291. package/dist/direction.d.ts +20 -0
  292. package/dist/direction.d.ts.map +1 -0
  293. package/dist/direction.js +23 -0
  294. package/dist/dock.cjs +8675 -0
  295. package/dist/dock.d.ts +20 -0
  296. package/dist/dock.d.ts.map +1 -0
  297. package/dist/dock.js +8653 -0
  298. package/dist/drawer.d.ts +6 -6
  299. package/dist/drawer.d.ts.map +1 -1
  300. package/dist/dropzone.cjs +116 -0
  301. package/dist/dropzone.d.ts +11 -0
  302. package/dist/dropzone.d.ts.map +1 -0
  303. package/dist/dropzone.js +94 -0
  304. package/dist/e-commerce-navigation-bar.cjs +442 -0
  305. package/dist/e-commerce-navigation-bar.d.ts +12 -0
  306. package/dist/e-commerce-navigation-bar.d.ts.map +1 -0
  307. package/dist/e-commerce-navigation-bar.js +420 -0
  308. package/dist/editor.cjs +497 -0
  309. package/dist/editor.d.ts +9 -0
  310. package/dist/editor.d.ts.map +1 -0
  311. package/dist/editor.js +475 -0
  312. package/dist/empty.cjs +117 -0
  313. package/dist/empty.d.ts +18 -0
  314. package/dist/empty.d.ts.map +1 -0
  315. package/dist/empty.js +110 -0
  316. package/dist/engine.cjs +91 -0
  317. package/dist/engine.js +86 -0
  318. package/dist/field.cjs +2 -1
  319. package/dist/field.d.ts.map +1 -1
  320. package/dist/field.js +3 -2
  321. package/dist/financials.cjs +66 -0
  322. package/dist/financials.d.ts +12 -0
  323. package/dist/financials.d.ts.map +1 -0
  324. package/dist/financials.js +64 -0
  325. package/dist/forex-screener.cjs +44 -0
  326. package/dist/forex-screener.d.ts +4 -0
  327. package/dist/forex-screener.d.ts.map +1 -0
  328. package/dist/forex-screener.js +42 -0
  329. package/dist/gantt.cjs +65 -0
  330. package/dist/gantt.d.ts +13 -0
  331. package/dist/gantt.d.ts.map +1 -0
  332. package/dist/gantt.js +43 -0
  333. package/dist/grid-pattern.cjs +327 -0
  334. package/dist/grid-pattern.d.ts +111 -0
  335. package/dist/grid-pattern.d.ts.map +1 -0
  336. package/dist/grid-pattern.js +304 -0
  337. package/dist/hooks/use-mobile.cjs +22 -0
  338. package/dist/hooks/use-mobile.d.ts +3 -0
  339. package/dist/hooks/use-mobile.d.ts.map +1 -0
  340. package/dist/hooks/use-mobile.js +17 -0
  341. package/dist/iam.d.ts.map +1 -1
  342. package/dist/icon-button.cjs +13 -142
  343. package/dist/icon-button.js +14 -143
  344. package/dist/icon-navigation-bar.cjs +48 -0
  345. package/dist/icon-navigation-bar.d.ts +11 -0
  346. package/dist/icon-navigation-bar.d.ts.map +1 -0
  347. package/dist/icon-navigation-bar.js +26 -0
  348. package/dist/identity.d.ts.map +1 -1
  349. package/dist/image-crop.cjs +482 -0
  350. package/dist/image-crop.d.ts +9 -0
  351. package/dist/image-crop.d.ts.map +1 -0
  352. package/dist/image-crop.js +460 -0
  353. package/dist/image-zoom.cjs +77 -0
  354. package/dist/image-zoom.d.ts +7 -0
  355. package/dist/image-zoom.d.ts.map +1 -0
  356. package/dist/image-zoom.js +55 -0
  357. package/dist/image.cjs +15 -143
  358. package/dist/image.d.ts.map +1 -1
  359. package/dist/image.js +16 -144
  360. package/dist/index.cjs +30274 -1201
  361. package/dist/index.d.ts +121 -0
  362. package/dist/index.d.ts.map +1 -1
  363. package/dist/index.js +30006 -1220
  364. package/dist/ink.cjs +17 -0
  365. package/dist/ink.d.ts.map +1 -1
  366. package/dist/ink.js +15 -0
  367. package/dist/input-otp.cjs +72 -0
  368. package/dist/input-otp.d.ts +35 -0
  369. package/dist/input-otp.d.ts.map +1 -0
  370. package/dist/input-otp.js +47 -0
  371. package/dist/input.d.ts +7 -7
  372. package/dist/input.d.ts.map +1 -1
  373. package/dist/iphone-15-pro.cjs +61 -0
  374. package/dist/iphone-15-pro.d.ts +9 -0
  375. package/dist/iphone-15-pro.d.ts.map +1 -0
  376. package/dist/iphone-15-pro.js +39 -0
  377. package/dist/item.cjs +215 -0
  378. package/dist/item.d.ts +41 -0
  379. package/dist/item.d.ts.map +1 -0
  380. package/dist/item.js +200 -0
  381. package/dist/kanban.cjs +1354 -0
  382. package/dist/kanban.d.ts +37 -0
  383. package/dist/kanban.d.ts.map +1 -0
  384. package/dist/kanban.js +1330 -0
  385. package/dist/kbd.cjs +40 -0
  386. package/dist/kbd.d.ts +4 -0
  387. package/dist/kbd.d.ts.map +1 -0
  388. package/dist/kbd.js +37 -0
  389. package/dist/limelight-nav-navigation-bar.cjs +51 -0
  390. package/dist/limelight-nav-navigation-bar.d.ts +10 -0
  391. package/dist/limelight-nav-navigation-bar.d.ts.map +1 -0
  392. package/dist/limelight-nav-navigation-bar.js +29 -0
  393. package/dist/limelight-nav.cjs +570 -0
  394. package/dist/limelight-nav.d.ts +10 -0
  395. package/dist/limelight-nav.d.ts.map +1 -0
  396. package/dist/limelight-nav.js +549 -0
  397. package/dist/link.cjs +29 -152
  398. package/dist/link.d.ts +1 -1
  399. package/dist/link.d.ts.map +1 -1
  400. package/dist/link.js +30 -153
  401. package/dist/list.cjs +35 -0
  402. package/dist/list.d.ts +5 -0
  403. package/dist/list.d.ts.map +1 -0
  404. package/dist/list.js +12 -0
  405. package/dist/lux.config.d.ts +88 -88
  406. package/dist/lux.config.d.ts.map +1 -1
  407. package/dist/magnetic.cjs +63 -0
  408. package/dist/magnetic.d.ts +8 -0
  409. package/dist/magnetic.d.ts.map +1 -0
  410. package/dist/magnetic.js +41 -0
  411. package/dist/market-overview.cjs +102 -0
  412. package/dist/market-overview.d.ts +4 -0
  413. package/dist/market-overview.d.ts.map +1 -0
  414. package/dist/market-overview.js +100 -0
  415. package/dist/marquee.cjs +67 -0
  416. package/dist/marquee.d.ts +10 -0
  417. package/dist/marquee.d.ts.map +1 -0
  418. package/dist/marquee.js +45 -0
  419. package/dist/menu-dock.cjs +64 -0
  420. package/dist/menu-dock.d.ts +14 -0
  421. package/dist/menu-dock.d.ts.map +1 -0
  422. package/dist/menu-dock.js +42 -0
  423. package/dist/menu.d.ts.map +1 -1
  424. package/dist/menubar.cjs +116 -0
  425. package/dist/menubar.d.ts +30 -0
  426. package/dist/menubar.d.ts.map +1 -0
  427. package/dist/menubar.js +61 -0
  428. package/dist/message-dock.cjs +480 -0
  429. package/dist/message-dock.d.ts +15 -0
  430. package/dist/message-dock.d.ts.map +1 -0
  431. package/dist/message-dock.js +458 -0
  432. package/dist/mini-calendar.cjs +505 -0
  433. package/dist/mini-calendar.d.ts +10 -0
  434. package/dist/mini-calendar.d.ts.map +1 -0
  435. package/dist/mini-calendar.js +483 -0
  436. package/dist/minimal-tiptap.cjs +48 -0
  437. package/dist/minimal-tiptap.d.ts +8 -0
  438. package/dist/minimal-tiptap.d.ts.map +1 -0
  439. package/dist/minimal-tiptap.js +26 -0
  440. package/dist/motion-highlight.cjs +71 -0
  441. package/dist/motion-highlight.d.ts +7 -0
  442. package/dist/motion-highlight.d.ts.map +1 -0
  443. package/dist/motion-highlight.js +49 -0
  444. package/dist/music-player.cjs +810 -0
  445. package/dist/music-player.d.ts +19 -0
  446. package/dist/music-player.d.ts.map +1 -0
  447. package/dist/music-player.js +788 -0
  448. package/dist/native-select.cjs +82 -0
  449. package/dist/native-select.d.ts +9 -0
  450. package/dist/native-select.d.ts.map +1 -0
  451. package/dist/native-select.js +58 -0
  452. package/dist/news-timeline.cjs +42 -0
  453. package/dist/news-timeline.d.ts +4 -0
  454. package/dist/news-timeline.d.ts.map +1 -0
  455. package/dist/news-timeline.js +40 -0
  456. package/dist/order-entry.cjs +141 -0
  457. package/dist/order-entry.d.ts +15 -0
  458. package/dist/order-entry.d.ts.map +1 -0
  459. package/dist/order-entry.js +136 -0
  460. package/dist/orders-history.cjs +83 -0
  461. package/dist/orders-history.d.ts +18 -0
  462. package/dist/orders-history.d.ts.map +1 -0
  463. package/dist/orders-history.js +78 -0
  464. package/dist/pagination.cjs +132 -0
  465. package/dist/pagination.d.ts +29 -0
  466. package/dist/pagination.d.ts.map +1 -0
  467. package/dist/pagination.js +104 -0
  468. package/dist/particles-background.cjs +159 -0
  469. package/dist/particles-background.d.ts +19 -0
  470. package/dist/particles-background.d.ts.map +1 -0
  471. package/dist/particles-background.js +157 -0
  472. package/dist/pill.cjs +80 -0
  473. package/dist/pill.d.ts +21 -0
  474. package/dist/pill.d.ts.map +1 -0
  475. package/dist/pill.js +57 -0
  476. package/dist/pixel-image.cjs +71 -0
  477. package/dist/pixel-image.d.ts +8 -0
  478. package/dist/pixel-image.d.ts.map +1 -0
  479. package/dist/pixel-image.js +49 -0
  480. package/dist/popover.cjs +11 -9
  481. package/dist/popover.d.ts.map +1 -1
  482. package/dist/popover.js +11 -9
  483. package/dist/positions-list.cjs +98 -0
  484. package/dist/positions-list.d.ts +13 -0
  485. package/dist/positions-list.d.ts.map +1 -0
  486. package/dist/positions-list.js +93 -0
  487. package/dist/progress-circle.cjs +2 -1
  488. package/dist/progress-circle.d.ts.map +1 -1
  489. package/dist/progress-circle.js +2 -1
  490. package/dist/progress.d.ts.map +1 -1
  491. package/dist/provider.d.ts.map +1 -1
  492. package/dist/pulse-animation.cjs +8741 -0
  493. package/dist/pulse-animation.d.ts +155 -0
  494. package/dist/pulse-animation.d.ts.map +1 -0
  495. package/dist/pulse-animation.js +8732 -0
  496. package/dist/qr-code.cjs +65 -0
  497. package/dist/qr-code.d.ts +21 -0
  498. package/dist/qr-code.d.ts.map +1 -0
  499. package/dist/qr-code.js +43 -0
  500. package/dist/radio.d.ts.map +1 -1
  501. package/dist/relative-time.cjs +88 -0
  502. package/dist/relative-time.d.ts +9 -0
  503. package/dist/relative-time.d.ts.map +1 -0
  504. package/dist/relative-time.js +66 -0
  505. package/dist/resizable.cjs +61 -0
  506. package/dist/resizable.d.ts +24 -0
  507. package/dist/resizable.d.ts.map +1 -0
  508. package/dist/resizable.js +37 -0
  509. package/dist/reveal-animation.cjs +8791 -0
  510. package/dist/reveal-animation.d.ts +134 -0
  511. package/dist/reveal-animation.d.ts.map +1 -0
  512. package/dist/reveal-animation.js +8779 -0
  513. package/dist/safari.cjs +90 -0
  514. package/dist/safari.d.ts +9 -0
  515. package/dist/safari.d.ts.map +1 -0
  516. package/dist/safari.js +68 -0
  517. package/dist/sandbox.cjs +94 -0
  518. package/dist/sandbox.d.ts +9 -0
  519. package/dist/sandbox.d.ts.map +1 -0
  520. package/dist/sandbox.js +72 -0
  521. package/dist/search-and-toggle-navigation-bar.cjs +51 -0
  522. package/dist/search-and-toggle-navigation-bar.d.ts +10 -0
  523. package/dist/search-and-toggle-navigation-bar.d.ts.map +1 -0
  524. package/dist/search-and-toggle-navigation-bar.js +29 -0
  525. package/dist/select.cjs +34 -160
  526. package/dist/select.d.ts.map +1 -1
  527. package/dist/select.js +34 -160
  528. package/dist/sidebar.cjs +1134 -0
  529. package/dist/sidebar.d.ts +80 -0
  530. package/dist/sidebar.d.ts.map +1 -0
  531. package/dist/sidebar.js +1090 -0
  532. package/dist/simple-navigation-bar.cjs +45 -0
  533. package/dist/simple-navigation-bar.d.ts +11 -0
  534. package/dist/simple-navigation-bar.d.ts.map +1 -0
  535. package/dist/simple-navigation-bar.js +23 -0
  536. package/dist/site/commerce/ui/conf.cjs +15 -0
  537. package/dist/site/commerce/ui/conf.d.ts +12 -0
  538. package/dist/site/commerce/ui/conf.d.ts.map +1 -0
  539. package/dist/site/commerce/ui/conf.js +13 -0
  540. package/dist/site/commerce/ui/context.cjs +280 -0
  541. package/dist/site/commerce/ui/context.d.ts +7 -0
  542. package/dist/site/commerce/ui/context.d.ts.map +1 -0
  543. package/dist/site/commerce/ui/context.js +276 -0
  544. package/dist/site/commerce/ui/store.cjs +205 -0
  545. package/dist/site/commerce/ui/store.d.ts +81 -0
  546. package/dist/site/commerce/ui/store.d.ts.map +1 -0
  547. package/dist/site/commerce/ui/store.js +203 -0
  548. package/dist/site/components/access-code-input.cjs +52 -0
  549. package/dist/site/components/access-code-input.d.ts +8 -0
  550. package/dist/site/components/access-code-input.d.ts.map +1 -0
  551. package/dist/site/components/access-code-input.js +50 -0
  552. package/dist/site/components/analytics.cjs +52 -0
  553. package/dist/site/components/analytics.d.ts +3 -0
  554. package/dist/site/components/analytics.d.ts.map +1 -0
  555. package/dist/site/components/analytics.js +46 -0
  556. package/dist/site/components/auth/callback.cjs +31 -0
  557. package/dist/site/components/auth/callback.d.ts +9 -0
  558. package/dist/site/components/auth/callback.d.ts.map +1 -0
  559. package/dist/site/components/auth/callback.js +29 -0
  560. package/dist/site/components/auth/login-panel.cjs +131 -0
  561. package/dist/site/components/auth/login-panel.css +4 -0
  562. package/dist/site/components/auth/login-panel.d.ts +12 -0
  563. package/dist/site/components/auth/login-panel.d.ts.map +1 -0
  564. package/dist/site/components/auth/login-panel.js +124 -0
  565. package/dist/site/components/auth/login.cjs +35 -0
  566. package/dist/site/components/auth/login.d.ts +13 -0
  567. package/dist/site/components/auth/login.d.ts.map +1 -0
  568. package/dist/site/components/auth/login.js +33 -0
  569. package/dist/site/components/auth/provider.cjs +20 -0
  570. package/dist/site/components/auth/provider.d.ts +6 -0
  571. package/dist/site/components/auth/provider.d.ts.map +1 -0
  572. package/dist/site/components/auth/provider.js +18 -0
  573. package/dist/site/components/auth/resume.cjs +15 -0
  574. package/dist/site/components/auth/resume.d.ts +4 -0
  575. package/dist/site/components/auth/resume.d.ts.map +1 -0
  576. package/dist/site/components/auth/resume.js +12 -0
  577. package/dist/site/components/auth/widget.cjs +63 -0
  578. package/dist/site/components/auth/widget.d.ts +13 -0
  579. package/dist/site/components/auth/widget.d.ts.map +1 -0
  580. package/dist/site/components/auth/widget.js +61 -0
  581. package/dist/site/components/back-button.cjs +36 -0
  582. package/dist/site/components/back-button.d.ts +17 -0
  583. package/dist/site/components/back-button.d.ts.map +1 -0
  584. package/dist/site/components/back-button.js +34 -0
  585. package/dist/site/components/chat-widget.cjs +67 -0
  586. package/dist/site/components/chat-widget.d.ts +12 -0
  587. package/dist/site/components/chat-widget.d.ts.map +1 -0
  588. package/dist/site/components/chat-widget.js +61 -0
  589. package/dist/site/components/commerce/bag-button.cjs +79 -0
  590. package/dist/site/components/commerce/bag-button.css +4 -0
  591. package/dist/site/components/commerce/bag-button.d.ts +16 -0
  592. package/dist/site/components/commerce/bag-button.d.ts.map +1 -0
  593. package/dist/site/components/commerce/bag-button.js +77 -0
  594. package/dist/site/components/commerce/buy-button.cjs +31 -0
  595. package/dist/site/components/commerce/buy-button.d.ts +11 -0
  596. package/dist/site/components/commerce/buy-button.d.ts.map +1 -0
  597. package/dist/site/components/commerce/buy-button.js +29 -0
  598. package/dist/site/components/commerce/checkout-button.cjs +116 -0
  599. package/dist/site/components/commerce/checkout-button.css +4 -0
  600. package/dist/site/components/commerce/checkout-button.d.ts +13 -0
  601. package/dist/site/components/commerce/checkout-button.d.ts.map +1 -0
  602. package/dist/site/components/commerce/checkout-button.js +114 -0
  603. package/dist/site/components/commerce/checkout-panel/cart-accordian.cjs +50 -0
  604. package/dist/site/components/commerce/checkout-panel/cart-accordian.d.ts +11 -0
  605. package/dist/site/components/commerce/checkout-panel/cart-accordian.d.ts.map +1 -0
  606. package/dist/site/components/commerce/checkout-panel/cart-accordian.js +48 -0
  607. package/dist/site/components/commerce/checkout-panel/checkout-panel-props.cjs +2 -0
  608. package/dist/site/components/commerce/checkout-panel/checkout-panel-props.d.ts +8 -0
  609. package/dist/site/components/commerce/checkout-panel/checkout-panel-props.d.ts.map +1 -0
  610. package/dist/site/components/commerce/checkout-panel/checkout-panel-props.js +1 -0
  611. package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.cjs +30 -0
  612. package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.d.ts +10 -0
  613. package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.d.ts.map +1 -0
  614. package/dist/site/components/commerce/checkout-panel/desktop-bag-carousel.js +28 -0
  615. package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +235 -0
  616. package/dist/site/components/commerce/checkout-panel/desktop-cp.css +132 -0
  617. package/dist/site/components/commerce/checkout-panel/desktop-cp.d.ts +5 -0
  618. package/dist/site/components/commerce/checkout-panel/desktop-cp.d.ts.map +1 -0
  619. package/dist/site/components/commerce/checkout-panel/desktop-cp.js +229 -0
  620. package/dist/site/components/commerce/checkout-panel/index.cjs +502 -0
  621. package/dist/site/components/commerce/checkout-panel/index.css +132 -0
  622. package/dist/site/components/commerce/checkout-panel/index.d.ts +6 -0
  623. package/dist/site/components/commerce/checkout-panel/index.d.ts.map +1 -0
  624. package/dist/site/components/commerce/checkout-panel/index.js +496 -0
  625. package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +295 -0
  626. package/dist/site/components/commerce/checkout-panel/mobile-cp.css +132 -0
  627. package/dist/site/components/commerce/checkout-panel/mobile-cp.d.ts +5 -0
  628. package/dist/site/components/commerce/checkout-panel/mobile-cp.d.ts.map +1 -0
  629. package/dist/site/components/commerce/checkout-panel/mobile-cp.js +289 -0
  630. package/dist/site/components/commerce/checkout-panel/policy-links.cjs +25 -0
  631. package/dist/site/components/commerce/checkout-panel/policy-links.d.ts +6 -0
  632. package/dist/site/components/commerce/checkout-panel/policy-links.d.ts.map +1 -0
  633. package/dist/site/components/commerce/checkout-panel/policy-links.js +19 -0
  634. package/dist/site/components/commerce/checkout-panel/steps-indicator.cjs +27 -0
  635. package/dist/site/components/commerce/checkout-panel/steps-indicator.d.ts +7 -0
  636. package/dist/site/components/commerce/checkout-panel/steps-indicator.d.ts.map +1 -0
  637. package/dist/site/components/commerce/checkout-panel/steps-indicator.js +25 -0
  638. package/dist/site/components/commerce/checkout-panel/thank-you.cjs +25 -0
  639. package/dist/site/components/commerce/checkout-panel/thank-you.d.ts +5 -0
  640. package/dist/site/components/commerce/checkout-panel/thank-you.d.ts.map +1 -0
  641. package/dist/site/components/commerce/checkout-panel/thank-you.js +19 -0
  642. package/dist/site/components/commerce/desktop-bag-popup.cjs +72 -0
  643. package/dist/site/components/commerce/desktop-bag-popup.css +4 -0
  644. package/dist/site/components/commerce/desktop-bag-popup.d.ts +8 -0
  645. package/dist/site/components/commerce/desktop-bag-popup.d.ts.map +1 -0
  646. package/dist/site/components/commerce/desktop-bag-popup.js +70 -0
  647. package/dist/site/components/commerce/drawer/index.cjs +361 -0
  648. package/dist/site/components/commerce/drawer/index.css +132 -0
  649. package/dist/site/components/commerce/drawer/index.d.ts +4 -0
  650. package/dist/site/components/commerce/drawer/index.d.ts.map +1 -0
  651. package/dist/site/components/commerce/drawer/index.js +359 -0
  652. package/dist/site/components/commerce/drawer/micro.cjs +230 -0
  653. package/dist/site/components/commerce/drawer/micro.css +4 -0
  654. package/dist/site/components/commerce/drawer/micro.d.ts +8 -0
  655. package/dist/site/components/commerce/drawer/micro.d.ts.map +1 -0
  656. package/dist/site/components/commerce/drawer/micro.js +228 -0
  657. package/dist/site/components/commerce/drawer/shell.cjs +78 -0
  658. package/dist/site/components/commerce/drawer/shell.css +127 -0
  659. package/dist/site/components/commerce/drawer/shell.d.ts +9 -0
  660. package/dist/site/components/commerce/drawer/shell.d.ts.map +1 -0
  661. package/dist/site/components/commerce/drawer/shell.js +76 -0
  662. package/dist/site/components/contact-dialog/contact-form.cjs +70 -0
  663. package/dist/site/components/contact-dialog/contact-form.d.ts +13 -0
  664. package/dist/site/components/contact-dialog/contact-form.d.ts.map +1 -0
  665. package/dist/site/components/contact-dialog/contact-form.js +64 -0
  666. package/dist/site/components/contact-dialog/disclaimer.cjs +15 -0
  667. package/dist/site/components/contact-dialog/disclaimer.d.ts +4 -0
  668. package/dist/site/components/contact-dialog/disclaimer.d.ts.map +1 -0
  669. package/dist/site/components/contact-dialog/disclaimer.js +13 -0
  670. package/dist/site/components/contact-dialog/index.cjs +113 -0
  671. package/dist/site/components/contact-dialog/index.d.ts +5 -0
  672. package/dist/site/components/contact-dialog/index.d.ts.map +1 -0
  673. package/dist/site/components/contact-dialog/index.js +107 -0
  674. package/dist/site/components/copyright.cjs +24 -0
  675. package/dist/site/components/copyright.d.ts +6 -0
  676. package/dist/site/components/copyright.d.ts.map +1 -0
  677. package/dist/site/components/copyright.js +22 -0
  678. package/dist/site/components/drawer-margin.cjs +35 -0
  679. package/dist/site/components/drawer-margin.d.ts +6 -0
  680. package/dist/site/components/drawer-margin.d.ts.map +1 -0
  681. package/dist/site/components/drawer-margin.js +33 -0
  682. package/dist/site/components/footer-nav.cjs +22 -0
  683. package/dist/site/components/footer-nav.d.ts +9 -0
  684. package/dist/site/components/footer-nav.d.ts.map +1 -0
  685. package/dist/site/components/footer-nav.js +20 -0
  686. package/dist/site/components/footer.cjs +132 -0
  687. package/dist/site/components/footer.d.ts +9 -0
  688. package/dist/site/components/footer.d.ts.map +1 -0
  689. package/dist/site/components/footer.js +126 -0
  690. package/dist/site/components/header/desktop-nav-menu.cjs +170 -0
  691. package/dist/site/components/header/desktop-nav-menu.d.ts +9 -0
  692. package/dist/site/components/header/desktop-nav-menu.d.ts.map +1 -0
  693. package/dist/site/components/header/desktop-nav-menu.js +145 -0
  694. package/dist/site/components/header/desktop.cjs +405 -0
  695. package/dist/site/components/header/desktop.css +4 -0
  696. package/dist/site/components/header/desktop.d.ts +13 -0
  697. package/dist/site/components/header/desktop.d.ts.map +1 -0
  698. package/dist/site/components/header/desktop.js +381 -0
  699. package/dist/site/components/header/index.cjs +717 -0
  700. package/dist/site/components/header/index.css +132 -0
  701. package/dist/site/components/header/index.d.ts +11 -0
  702. package/dist/site/components/header/index.d.ts.map +1 -0
  703. package/dist/site/components/header/index.js +693 -0
  704. package/dist/site/components/header/mobile-bag-drawer.cjs +114 -0
  705. package/dist/site/components/header/mobile-bag-drawer.css +4 -0
  706. package/dist/site/components/header/mobile-bag-drawer.d.ts +9 -0
  707. package/dist/site/components/header/mobile-bag-drawer.d.ts.map +1 -0
  708. package/dist/site/components/header/mobile-bag-drawer.js +112 -0
  709. package/dist/site/components/header/mobile-menu-toggle-button.cjs +30 -0
  710. package/dist/site/components/header/mobile-menu-toggle-button.d.ts +8 -0
  711. package/dist/site/components/header/mobile-menu-toggle-button.d.ts.map +1 -0
  712. package/dist/site/components/header/mobile-menu-toggle-button.js +28 -0
  713. package/dist/site/components/header/mobile-nav-menu-ai.cjs +66 -0
  714. package/dist/site/components/header/mobile-nav-menu-ai.css +132 -0
  715. package/dist/site/components/header/mobile-nav-menu-ai.d.ts +7 -0
  716. package/dist/site/components/header/mobile-nav-menu-ai.d.ts.map +1 -0
  717. package/dist/site/components/header/mobile-nav-menu-ai.js +60 -0
  718. package/dist/site/components/header/mobile-nav-menu-item.cjs +98 -0
  719. package/dist/site/components/header/mobile-nav-menu-item.css +132 -0
  720. package/dist/site/components/header/mobile-nav-menu-item.d.ts +8 -0
  721. package/dist/site/components/header/mobile-nav-menu-item.d.ts.map +1 -0
  722. package/dist/site/components/header/mobile-nav-menu-item.js +92 -0
  723. package/dist/site/components/header/mobile-nav-menu.cjs +175 -0
  724. package/dist/site/components/header/mobile-nav-menu.css +132 -0
  725. package/dist/site/components/header/mobile-nav-menu.d.ts +14 -0
  726. package/dist/site/components/header/mobile-nav-menu.d.ts.map +1 -0
  727. package/dist/site/components/header/mobile-nav-menu.js +169 -0
  728. package/dist/site/components/header/mobile.cjs +447 -0
  729. package/dist/site/components/header/mobile.css +132 -0
  730. package/dist/site/components/header/mobile.d.ts +12 -0
  731. package/dist/site/components/header/mobile.d.ts.map +1 -0
  732. package/dist/site/components/header/mobile.js +441 -0
  733. package/dist/site/components/header/theme-toggle.cjs +28 -0
  734. package/dist/site/components/header/theme-toggle.d.ts +4 -0
  735. package/dist/site/components/header/theme-toggle.d.ts.map +1 -0
  736. package/dist/site/components/header/theme-toggle.js +26 -0
  737. package/dist/site/components/icons/avatar.cjs +12 -0
  738. package/dist/site/components/icons/avatar.d.ts +5 -0
  739. package/dist/site/components/icons/avatar.d.ts.map +1 -0
  740. package/dist/site/components/icons/avatar.js +10 -0
  741. package/dist/site/components/icons/bag-icon.cjs +9 -0
  742. package/dist/site/components/icons/bag-icon.d.ts +5 -0
  743. package/dist/site/components/icons/bag-icon.d.ts.map +1 -0
  744. package/dist/site/components/icons/bag-icon.js +7 -0
  745. package/dist/site/components/icons/index.cjs +39 -0
  746. package/dist/site/components/icons/index.css +4 -0
  747. package/dist/site/components/icons/index.d.ts +6 -0
  748. package/dist/site/components/icons/index.d.ts.map +1 -0
  749. package/dist/site/components/icons/index.js +33 -0
  750. package/dist/site/components/icons/left-arrow.cjs +9 -0
  751. package/dist/site/components/icons/left-arrow.d.ts +5 -0
  752. package/dist/site/components/icons/left-arrow.d.ts.map +1 -0
  753. package/dist/site/components/icons/left-arrow.js +7 -0
  754. package/dist/site/components/icons/right-arrow.cjs +9 -0
  755. package/dist/site/components/icons/right-arrow.d.ts +5 -0
  756. package/dist/site/components/icons/right-arrow.d.ts.map +1 -0
  757. package/dist/site/components/icons/right-arrow.js +7 -0
  758. package/dist/site/components/icons/social-icon.cjs +24 -0
  759. package/dist/site/components/icons/social-icon.css +4 -0
  760. package/dist/site/components/icons/social-icon.d.ts +10 -0
  761. package/dist/site/components/icons/social-icon.d.ts.map +1 -0
  762. package/dist/site/components/icons/social-icon.js +22 -0
  763. package/dist/site/components/index.cjs +2004 -0
  764. package/dist/site/components/index.css +132 -0
  765. package/dist/site/components/index.d.ts +24 -0
  766. package/dist/site/components/index.d.ts.map +1 -0
  767. package/dist/site/components/index.js +1952 -0
  768. package/dist/site/components/logo.cjs +37 -0
  769. package/dist/site/components/logo.d.ts +23 -0
  770. package/dist/site/components/logo.d.ts.map +1 -0
  771. package/dist/site/components/logo.js +31 -0
  772. package/dist/site/components/main.cjs +22 -0
  773. package/dist/site/components/main.d.ts +9 -0
  774. package/dist/site/components/main.d.ts.map +1 -0
  775. package/dist/site/components/main.js +20 -0
  776. package/dist/site/components/mini-chart/index.cjs +94 -0
  777. package/dist/site/components/mini-chart/index.d.ts +3 -0
  778. package/dist/site/components/mini-chart/index.d.ts.map +1 -0
  779. package/dist/site/components/mini-chart/index.js +92 -0
  780. package/dist/site/components/mini-chart/mini-chart-props.cjs +2 -0
  781. package/dist/site/components/mini-chart/mini-chart-props.d.ts +33 -0
  782. package/dist/site/components/mini-chart/mini-chart-props.d.ts.map +1 -0
  783. package/dist/site/components/mini-chart/mini-chart-props.js +1 -0
  784. package/dist/site/components/mini-chart/mini-chart.cjs +80 -0
  785. package/dist/site/components/mini-chart/mini-chart.d.ts +5 -0
  786. package/dist/site/components/mini-chart/mini-chart.d.ts.map +1 -0
  787. package/dist/site/components/mini-chart/mini-chart.js +78 -0
  788. package/dist/site/components/mini-chart/wrapper.cjs +94 -0
  789. package/dist/site/components/mini-chart/wrapper.d.ts +7 -0
  790. package/dist/site/components/mini-chart/wrapper.d.ts.map +1 -0
  791. package/dist/site/components/mini-chart/wrapper.js +92 -0
  792. package/dist/site/components/not-found/index.cjs +844 -0
  793. package/dist/site/components/not-found/index.css +132 -0
  794. package/dist/site/components/not-found/index.d.ts +8 -0
  795. package/dist/site/components/not-found/index.d.ts.map +1 -0
  796. package/dist/site/components/not-found/index.js +820 -0
  797. package/dist/site/components/security/index.cjs +857 -0
  798. package/dist/site/components/security/index.css +132 -0
  799. package/dist/site/components/security/index.d.ts +9 -0
  800. package/dist/site/components/security/index.d.ts.map +1 -0
  801. package/dist/site/components/security/index.js +833 -0
  802. package/dist/site/components/tooltip.cjs +28 -0
  803. package/dist/site/components/tooltip.d.ts +11 -0
  804. package/dist/site/components/tooltip.d.ts.map +1 -0
  805. package/dist/site/components/tooltip.js +26 -0
  806. package/dist/site/next/analytics/fpixel.cjs +14 -0
  807. package/dist/site/next/analytics/fpixel.d.ts +9 -0
  808. package/dist/site/next/analytics/fpixel.d.ts.map +1 -0
  809. package/dist/site/next/analytics/fpixel.js +10 -0
  810. package/dist/site/next/analytics/google-analytics.cjs +8 -0
  811. package/dist/site/next/analytics/google-analytics.d.ts +8 -0
  812. package/dist/site/next/analytics/google-analytics.d.ts.map +1 -0
  813. package/dist/site/next/analytics/google-analytics.js +6 -0
  814. package/dist/site/next/analytics/index.cjs +57 -0
  815. package/dist/site/next/analytics/index.d.ts +4 -0
  816. package/dist/site/next/analytics/index.d.ts.map +1 -0
  817. package/dist/site/next/analytics/index.js +49 -0
  818. package/dist/site/next/analytics/pixel-analytics.cjs +59 -0
  819. package/dist/site/next/analytics/pixel-analytics.d.ts +5 -0
  820. package/dist/site/next/analytics/pixel-analytics.d.ts.map +1 -0
  821. package/dist/site/next/analytics/pixel-analytics.js +52 -0
  822. package/dist/site/next/font/font-desc.cjs +2 -0
  823. package/dist/site/next/font/font-desc.d.ts +19 -0
  824. package/dist/site/next/font/font-desc.d.ts.map +1 -0
  825. package/dist/site/next/font/font-desc.js +1 -0
  826. package/dist/site/next/font/fonts.cjs +42 -0
  827. package/dist/site/next/font/fonts.d.ts +4 -0
  828. package/dist/site/next/font/fonts.d.ts.map +1 -0
  829. package/dist/site/next/font/fonts.js +40 -0
  830. package/dist/site/next/font/get-app-router-font-classes.cjs +96 -0
  831. package/dist/site/next/font/get-app-router-font-classes.d.ts +15 -0
  832. package/dist/site/next/font/get-app-router-font-classes.d.ts.map +1 -0
  833. package/dist/site/next/font/get-app-router-font-classes.js +90 -0
  834. package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.cjs +90 -0
  835. package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.d.ts +8 -0
  836. package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.d.ts.map +1 -0
  837. package/dist/site/next/font/load-and-return-lux-next-fonts-on-import.js +84 -0
  838. package/dist/site/next/font/next-font-desc.cjs +2 -0
  839. package/dist/site/next/font/next-font-desc.d.ts +20 -0
  840. package/dist/site/next/font/next-font-desc.d.ts.map +1 -0
  841. package/dist/site/next/font/next-font-desc.js +1 -0
  842. package/dist/site/next/font/pages-router-font-vars.cjs +100 -0
  843. package/dist/site/next/font/pages-router-font-vars.d.ts +3 -0
  844. package/dist/site/next/font/pages-router-font-vars.d.ts.map +1 -0
  845. package/dist/site/next/font/pages-router-font-vars.js +94 -0
  846. package/dist/site/next/head-metadata/index.cjs +139 -0
  847. package/dist/site/next/head-metadata/index.d.ts +12 -0
  848. package/dist/site/next/head-metadata/index.d.ts.map +1 -0
  849. package/dist/site/next/head-metadata/index.js +129 -0
  850. package/dist/site/next/head-metadata/next-metadata.cjs +2 -0
  851. package/dist/site/next/head-metadata/next-metadata.d.ts +48 -0
  852. package/dist/site/next/head-metadata/next-metadata.d.ts.map +1 -0
  853. package/dist/site/next/head-metadata/next-metadata.js +1 -0
  854. package/dist/site/next/index.cjs +147 -0
  855. package/dist/site/next/index.d.ts +3 -0
  856. package/dist/site/next/index.d.ts.map +1 -0
  857. package/dist/site/next/index.js +140 -0
  858. package/dist/site/next/middleware/determine-device-mw.cjs +17 -0
  859. package/dist/site/next/middleware/determine-device-mw.d.ts +4 -0
  860. package/dist/site/next/middleware/determine-device-mw.d.ts.map +1 -0
  861. package/dist/site/next/middleware/determine-device-mw.js +15 -0
  862. package/dist/site/root-layout/index.cjs +1574 -0
  863. package/dist/site/root-layout/index.css +374 -0
  864. package/dist/site/root-layout/index.d.ts +20 -0
  865. package/dist/site/root-layout/index.d.ts.map +1 -0
  866. package/dist/site/root-layout/index.js +1547 -0
  867. package/dist/site/site-def/footer/community.cjs +77 -0
  868. package/dist/site/site-def/footer/community.css +4 -0
  869. package/dist/site/site-def/footer/community.d.ts +13 -0
  870. package/dist/site/site-def/footer/community.d.ts.map +1 -0
  871. package/dist/site/site-def/footer/community.js +75 -0
  872. package/dist/site/site-def/footer/company.cjs +40 -0
  873. package/dist/site/site-def/footer/company.d.ts +23 -0
  874. package/dist/site/site-def/footer/company.d.ts.map +1 -0
  875. package/dist/site/site-def/footer/company.js +38 -0
  876. package/dist/site/site-def/footer/ecosystem.cjs +40 -0
  877. package/dist/site/site-def/footer/ecosystem.d.ts +11 -0
  878. package/dist/site/site-def/footer/ecosystem.d.ts.map +1 -0
  879. package/dist/site/site-def/footer/ecosystem.js +38 -0
  880. package/dist/site/site-def/footer/index.cjs +228 -0
  881. package/dist/site/site-def/footer/index.css +4 -0
  882. package/dist/site/site-def/footer/index.d.ts +16 -0
  883. package/dist/site/site-def/footer/index.d.ts.map +1 -0
  884. package/dist/site/site-def/footer/index.js +220 -0
  885. package/dist/site/site-def/footer/legal.cjs +24 -0
  886. package/dist/site/site-def/footer/legal.d.ts +5 -0
  887. package/dist/site/site-def/footer/legal.d.ts.map +1 -0
  888. package/dist/site/site-def/footer/legal.js +21 -0
  889. package/dist/site/site-def/footer/network.cjs +48 -0
  890. package/dist/site/site-def/footer/network.d.ts +11 -0
  891. package/dist/site/site-def/footer/network.d.ts.map +1 -0
  892. package/dist/site/site-def/footer/network.js +46 -0
  893. package/dist/site/site-def/index.cjs +627 -0
  894. package/dist/site/site-def/index.css +4 -0
  895. package/dist/site/site-def/index.d.ts +5 -0
  896. package/dist/site/site-def/index.d.ts.map +1 -0
  897. package/dist/site/site-def/index.js +624 -0
  898. package/dist/site/site-def/main-nav.cjs +393 -0
  899. package/dist/site/site-def/main-nav.d.ts +46 -0
  900. package/dist/site/site-def/main-nav.d.ts.map +1 -0
  901. package/dist/site/site-def/main-nav.js +391 -0
  902. package/dist/site/types/chatbot-config.cjs +2 -0
  903. package/dist/site/types/chatbot-config.d.ts +6 -0
  904. package/dist/site/types/chatbot-config.d.ts.map +1 -0
  905. package/dist/site/types/chatbot-config.js +1 -0
  906. package/dist/site/types/chatbot-suggested-question.cjs +2 -0
  907. package/dist/site/types/chatbot-suggested-question.d.ts +7 -0
  908. package/dist/site/types/chatbot-suggested-question.d.ts.map +1 -0
  909. package/dist/site/types/chatbot-suggested-question.js +1 -0
  910. package/dist/site/types/contact-info.cjs +2 -0
  911. package/dist/site/types/contact-info.d.ts +7 -0
  912. package/dist/site/types/contact-info.d.ts.map +1 -0
  913. package/dist/site/types/contact-info.js +1 -0
  914. package/dist/site/types/index.cjs +2 -0
  915. package/dist/site/types/index.d.ts +5 -0
  916. package/dist/site/types/index.d.ts.map +1 -0
  917. package/dist/site/types/index.js +1 -0
  918. package/dist/site/types/site-def.cjs +2 -0
  919. package/dist/site/types/site-def.d.ts +41 -0
  920. package/dist/site/types/site-def.d.ts.map +1 -0
  921. package/dist/site/types/site-def.js +1 -0
  922. package/dist/site/util/index.cjs +11 -0
  923. package/dist/site/util/index.d.ts +2 -0
  924. package/dist/site/util/index.d.ts.map +1 -0
  925. package/dist/site/util/index.js +9 -0
  926. package/dist/skeleton.cjs +14 -143
  927. package/dist/skeleton.d.ts +3 -42
  928. package/dist/skeleton.d.ts.map +1 -1
  929. package/dist/skeleton.js +15 -144
  930. package/dist/slider.d.ts +1 -0
  931. package/dist/slider.d.ts.map +1 -1
  932. package/dist/status-dashboard-navigation-bar.cjs +51 -0
  933. package/dist/status-dashboard-navigation-bar.d.ts +10 -0
  934. package/dist/status-dashboard-navigation-bar.d.ts.map +1 -0
  935. package/dist/status-dashboard-navigation-bar.js +29 -0
  936. package/dist/status.cjs +85 -0
  937. package/dist/status.d.ts +23 -0
  938. package/dist/status.d.ts.map +1 -0
  939. package/dist/status.js +62 -0
  940. package/dist/stock-screener.cjs +44 -0
  941. package/dist/stock-screener.d.ts +4 -0
  942. package/dist/stock-screener.d.ts.map +1 -0
  943. package/dist/stock-screener.js +42 -0
  944. package/dist/switch.cjs +1 -1
  945. package/dist/switch.d.ts +1 -3
  946. package/dist/switch.d.ts.map +1 -1
  947. package/dist/switch.js +1 -1
  948. package/dist/symbol-info.cjs +44 -0
  949. package/dist/symbol-info.d.ts +9 -0
  950. package/dist/symbol-info.d.ts.map +1 -0
  951. package/dist/symbol-info.js +42 -0
  952. package/dist/table.cjs +53 -167
  953. package/dist/table.d.ts +2 -2
  954. package/dist/table.d.ts.map +1 -1
  955. package/dist/table.js +53 -167
  956. package/dist/tabs.d.ts.map +1 -1
  957. package/dist/tag.cjs +13 -142
  958. package/dist/tag.js +14 -143
  959. package/dist/tags.cjs +385 -0
  960. package/dist/tags.d.ts +13 -0
  961. package/dist/tags.d.ts.map +1 -0
  962. package/dist/tags.js +364 -0
  963. package/dist/team-switcher-navigation-bar.cjs +51 -0
  964. package/dist/team-switcher-navigation-bar.d.ts +10 -0
  965. package/dist/team-switcher-navigation-bar.d.ts.map +1 -0
  966. package/dist/team-switcher-navigation-bar.js +29 -0
  967. package/dist/technical-analysis.cjs +69 -0
  968. package/dist/technical-analysis.d.ts +13 -0
  969. package/dist/technical-analysis.d.ts.map +1 -0
  970. package/dist/technical-analysis.js +67 -0
  971. package/dist/terminal.cjs +372 -0
  972. package/dist/terminal.d.ts +21 -0
  973. package/dist/terminal.d.ts.map +1 -0
  974. package/dist/terminal.js +350 -0
  975. package/dist/ticker-tape.cjs +54 -0
  976. package/dist/ticker-tape.d.ts +4 -0
  977. package/dist/ticker-tape.d.ts.map +1 -0
  978. package/dist/ticker-tape.js +52 -0
  979. package/dist/ticker.cjs +66 -0
  980. package/dist/ticker.d.ts +10 -0
  981. package/dist/ticker.d.ts.map +1 -0
  982. package/dist/ticker.js +44 -0
  983. package/dist/timeline.cjs +317 -0
  984. package/dist/timeline.d.ts +20 -0
  985. package/dist/timeline.d.ts.map +1 -0
  986. package/dist/timeline.js +295 -0
  987. package/dist/toaster.d.ts +6 -3
  988. package/dist/toaster.d.ts.map +1 -1
  989. package/dist/toggle.cjs +62 -0
  990. package/dist/toggle.d.ts +26 -0
  991. package/dist/toggle.d.ts.map +1 -0
  992. package/dist/toggle.js +57 -0
  993. package/dist/trading-panel.cjs +212 -0
  994. package/dist/trading-panel.d.ts +7 -0
  995. package/dist/trading-panel.d.ts.map +1 -0
  996. package/dist/trading-panel.js +207 -0
  997. package/dist/two-tier-navigation-bar.cjs +51 -0
  998. package/dist/two-tier-navigation-bar.d.ts +10 -0
  999. package/dist/two-tier-navigation-bar.d.ts.map +1 -0
  1000. package/dist/two-tier-navigation-bar.js +29 -0
  1001. package/dist/underline-navigation-bar.cjs +51 -0
  1002. package/dist/underline-navigation-bar.d.ts +10 -0
  1003. package/dist/underline-navigation-bar.d.ts.map +1 -0
  1004. package/dist/underline-navigation-bar.js +29 -0
  1005. package/dist/utils/cn.cjs +10 -0
  1006. package/dist/utils/cn.js +1 -0
  1007. package/dist/white-label.d.ts +5 -5
  1008. package/dist/white-label.d.ts.map +1 -1
  1009. package/dist/youtube-pip-player.cjs +489 -0
  1010. package/dist/youtube-pip-player.d.ts +41 -0
  1011. package/dist/youtube-pip-player.d.ts.map +1 -0
  1012. package/dist/youtube-pip-player.js +466 -0
  1013. package/package.json +826 -72
  1014. package/src/3d-button.tsx +346 -0
  1015. package/src/3d-card.tsx +271 -0
  1016. package/src/3d-carousel.tsx +444 -0
  1017. package/src/3d-grid.tsx +448 -0
  1018. package/src/3d-marquee.tsx +422 -0
  1019. package/src/3d-model-viewer.tsx +659 -0
  1020. package/src/3d-pin.tsx +37 -0
  1021. package/src/3d-scene.tsx +629 -0
  1022. package/src/3d-text.tsx +442 -0
  1023. package/src/advanced-chart.tsx +63 -0
  1024. package/src/advanced-navigation-bar.tsx +83 -0
  1025. package/src/ai-actions.tsx +60 -0
  1026. package/src/ai-agents.tsx +1174 -0
  1027. package/src/ai-assistant.tsx +227 -0
  1028. package/src/ai-chat.tsx +554 -0
  1029. package/src/ai-code.tsx +1331 -0
  1030. package/src/ai-model-selector-navigation-bar.tsx +78 -0
  1031. package/src/ai-models.tsx +58 -0
  1032. package/src/ai-playground.tsx +429 -0
  1033. package/src/ai-tools.tsx +383 -0
  1034. package/src/ai-vision.tsx +1220 -0
  1035. package/src/ai-voice-settings.tsx +726 -0
  1036. package/src/ai-voice.tsx +711 -0
  1037. package/src/android.tsx +92 -0
  1038. package/src/animated-background.tsx +625 -0
  1039. package/src/animated-beam.tsx +110 -0
  1040. package/src/animated-cursor.tsx +406 -0
  1041. package/src/animated-icon.tsx +520 -0
  1042. package/src/animated-list.tsx +508 -0
  1043. package/src/animated-number.tsx +485 -0
  1044. package/src/animated-testimonials.tsx +119 -0
  1045. package/src/animated-text.tsx +481 -0
  1046. package/src/animated-tooltip.tsx +54 -0
  1047. package/src/announcement.tsx +55 -0
  1048. package/src/app-switcher-navigation-bar.tsx +76 -0
  1049. package/src/apple-cards-carousel.tsx +349 -0
  1050. package/src/apple-hello-effect.tsx +50 -0
  1051. package/src/auth.tsx +9 -8
  1052. package/src/avatar.tsx +1 -1
  1053. package/src/badge.tsx +27 -30
  1054. package/src/banner.tsx +62 -0
  1055. package/src/breadcrumb-and-filters-navigation-bar.tsx +40 -0
  1056. package/src/breadcrumb-navigation-bar.tsx +43 -0
  1057. package/src/button.tsx +10 -9
  1058. package/src/calendar.tsx +62 -0
  1059. package/src/centered-logo-navigation-bar.tsx +43 -0
  1060. package/src/chart.tsx +372 -0
  1061. package/src/choicebox.tsx +89 -0
  1062. package/src/chrome.tsx +41 -40
  1063. package/src/code-block.tsx +278 -0
  1064. package/src/code-compare.tsx +551 -0
  1065. package/src/code-diff.tsx +573 -0
  1066. package/src/code-editor.tsx +250 -0
  1067. package/src/code-explorer.tsx +403 -0
  1068. package/src/code-preview.tsx +488 -0
  1069. package/src/code-snippet.tsx +336 -0
  1070. package/src/code-tabs.tsx +78 -0
  1071. package/src/code-terminal.tsx +530 -0
  1072. package/src/collaboration-navigation-bar.tsx +50 -0
  1073. package/src/collapsible.tsx +3 -2
  1074. package/src/color-picker.tsx +68 -0
  1075. package/src/combobox.tsx +87 -0
  1076. package/src/communication-navigation-bar.tsx +42 -0
  1077. package/src/company-profile.tsx +67 -0
  1078. package/src/comparison.tsx +68 -0
  1079. package/src/context-switcher-navigation-bar.tsx +39 -0
  1080. package/src/credit-card.tsx +72 -0
  1081. package/src/crypto-screener.tsx +57 -0
  1082. package/src/cursor.tsx +61 -0
  1083. package/src/dashboard-navigation-bar.tsx +49 -0
  1084. package/src/dialog-stack.tsx +55 -0
  1085. package/src/dialog.tsx +16 -15
  1086. package/src/direction.tsx +40 -0
  1087. package/src/dock.tsx +172 -0
  1088. package/src/dropzone.tsx +106 -0
  1089. package/src/e-commerce-navigation-bar.tsx +54 -0
  1090. package/src/editor.tsx +85 -0
  1091. package/src/empty.tsx +117 -0
  1092. package/src/field.tsx +2 -1
  1093. package/src/financials.tsx +85 -0
  1094. package/src/forex-screener.tsx +58 -0
  1095. package/src/gantt.tsx +68 -0
  1096. package/src/grid-pattern.tsx +353 -0
  1097. package/src/hooks/use-mobile.ts +29 -0
  1098. package/src/icon-navigation-bar.tsx +36 -0
  1099. package/src/image-crop.tsx +67 -0
  1100. package/src/image-zoom.tsx +64 -0
  1101. package/src/image.tsx +2 -1
  1102. package/src/index.ts +123 -0
  1103. package/src/input-otp.tsx +72 -0
  1104. package/src/iphone-15-pro.tsx +69 -0
  1105. package/src/item.tsx +193 -0
  1106. package/src/kanban.tsx +772 -0
  1107. package/src/kbd.tsx +32 -0
  1108. package/src/limelight-nav-navigation-bar.tsx +39 -0
  1109. package/src/limelight-nav.tsx +101 -0
  1110. package/src/link.tsx +18 -18
  1111. package/src/list.tsx +22 -0
  1112. package/src/magnetic.tsx +54 -0
  1113. package/src/market-overview.tsx +116 -0
  1114. package/src/marquee.tsx +62 -0
  1115. package/src/menu-dock.tsx +56 -0
  1116. package/src/menubar.tsx +149 -0
  1117. package/src/message-dock.tsx +89 -0
  1118. package/src/mini-calendar.tsx +121 -0
  1119. package/src/minimal-tiptap.tsx +32 -0
  1120. package/src/motion-highlight.tsx +55 -0
  1121. package/src/music-player.tsx +413 -0
  1122. package/src/native-select.tsx +63 -0
  1123. package/src/news-timeline.tsx +56 -0
  1124. package/src/order-entry.tsx +162 -0
  1125. package/src/orders-history.tsx +115 -0
  1126. package/src/pagination.tsx +118 -0
  1127. package/src/particles-background.tsx +225 -0
  1128. package/src/pill.tsx +61 -0
  1129. package/src/pixel-image.tsx +64 -0
  1130. package/src/popover.tsx +10 -9
  1131. package/src/positions-list.tsx +108 -0
  1132. package/src/progress-circle.tsx +2 -1
  1133. package/src/pulse-animation.tsx +606 -0
  1134. package/src/qr-code.tsx +64 -0
  1135. package/src/relative-time.tsx +84 -0
  1136. package/src/resizable.tsx +46 -0
  1137. package/src/reveal-animation.tsx +532 -0
  1138. package/src/safari.tsx +115 -0
  1139. package/src/sandbox.tsx +83 -0
  1140. package/src/search-and-toggle-navigation-bar.tsx +39 -0
  1141. package/src/select.tsx +31 -30
  1142. package/src/sidebar.tsx +723 -0
  1143. package/src/simple-navigation-bar.tsx +39 -0
  1144. package/src/site/commerce/ui/conf.ts +13 -0
  1145. package/src/site/commerce/ui/context.tsx +120 -0
  1146. package/src/site/commerce/ui/store.ts +295 -0
  1147. package/src/site/components/access-code-input.tsx +70 -0
  1148. package/src/site/components/analytics.tsx +14 -0
  1149. package/src/site/components/auth/callback.tsx +40 -0
  1150. package/src/site/components/auth/login-panel.tsx +83 -0
  1151. package/src/site/components/auth/login.tsx +47 -0
  1152. package/src/site/components/auth/provider.tsx +34 -0
  1153. package/src/site/components/auth/resume.ts +16 -0
  1154. package/src/site/components/auth/widget.tsx +80 -0
  1155. package/src/site/components/back-button.tsx +46 -0
  1156. package/src/site/components/chat-widget.tsx +83 -0
  1157. package/src/site/components/commerce/bag-button.tsx +99 -0
  1158. package/src/site/components/commerce/buy-button.tsx +33 -0
  1159. package/src/site/components/commerce/checkout-button.tsx +131 -0
  1160. package/src/site/components/commerce/checkout-panel/cart-accordian.tsx +65 -0
  1161. package/src/site/components/commerce/checkout-panel/checkout-panel-props.ts +10 -0
  1162. package/src/site/components/commerce/checkout-panel/desktop-bag-carousel.tsx +36 -0
  1163. package/src/site/components/commerce/checkout-panel/desktop-cp.tsx +82 -0
  1164. package/src/site/components/commerce/checkout-panel/index.tsx +126 -0
  1165. package/src/site/components/commerce/checkout-panel/mobile-cp.tsx +67 -0
  1166. package/src/site/components/commerce/checkout-panel/policy-links.tsx +24 -0
  1167. package/src/site/components/commerce/checkout-panel/steps-indicator.tsx +39 -0
  1168. package/src/site/components/commerce/checkout-panel/thank-you.tsx +18 -0
  1169. package/src/site/components/commerce/desktop-bag-popup.tsx +78 -0
  1170. package/src/site/components/commerce/drawer/index.tsx +88 -0
  1171. package/src/site/components/commerce/drawer/micro.tsx +145 -0
  1172. package/src/site/components/commerce/drawer/shell.tsx +83 -0
  1173. package/src/site/components/contact-dialog/contact-form.tsx +109 -0
  1174. package/src/site/components/contact-dialog/disclaimer.tsx +13 -0
  1175. package/src/site/components/contact-dialog/index.tsx +64 -0
  1176. package/src/site/components/copyright.tsx +22 -0
  1177. package/src/site/components/drawer-margin.tsx +28 -0
  1178. package/src/site/components/footer-nav.tsx +31 -0
  1179. package/src/site/components/footer.tsx +72 -0
  1180. package/src/site/components/header/desktop-nav-menu.tsx +202 -0
  1181. package/src/site/components/header/desktop.tsx +65 -0
  1182. package/src/site/components/header/index.tsx +50 -0
  1183. package/src/site/components/header/mobile-bag-drawer.tsx +51 -0
  1184. package/src/site/components/header/mobile-menu-toggle-button.tsx +34 -0
  1185. package/src/site/components/header/mobile-nav-menu-ai.tsx +52 -0
  1186. package/src/site/components/header/mobile-nav-menu-item.tsx +48 -0
  1187. package/src/site/components/header/mobile-nav-menu.tsx +103 -0
  1188. package/src/site/components/header/mobile.tsx +169 -0
  1189. package/src/site/components/header/theme-toggle.tsx +26 -0
  1190. package/src/site/components/icons/avatar.tsx +11 -0
  1191. package/src/site/components/icons/bag-icon.tsx +10 -0
  1192. package/src/site/components/icons/index.ts +5 -0
  1193. package/src/site/components/icons/left-arrow.tsx +11 -0
  1194. package/src/site/components/icons/right-arrow.tsx +10 -0
  1195. package/src/site/components/icons/social-icon.tsx +35 -0
  1196. package/src/site/components/icons/social-svg.css +3 -0
  1197. package/src/site/components/index.ts +26 -0
  1198. package/src/site/components/logo.tsx +65 -0
  1199. package/src/site/components/main.tsx +26 -0
  1200. package/src/site/components/mini-chart/index.tsx +8 -0
  1201. package/src/site/components/mini-chart/mini-chart-props.ts +44 -0
  1202. package/src/site/components/mini-chart/mini-chart.tsx +86 -0
  1203. package/src/site/components/mini-chart/wrapper.tsx +23 -0
  1204. package/src/site/components/not-found/index.tsx +28 -0
  1205. package/src/site/components/security/index.tsx +55 -0
  1206. package/src/site/components/tooltip.tsx +31 -0
  1207. package/src/site/next/analytics/fpixel.ts +16 -0
  1208. package/src/site/next/analytics/google-analytics.ts +14 -0
  1209. package/src/site/next/analytics/index.ts +3 -0
  1210. package/src/site/next/analytics/pixel-analytics.tsx +55 -0
  1211. package/src/site/next/font/font-desc.ts +18 -0
  1212. package/src/site/next/font/fonts.ts +40 -0
  1213. package/src/site/next/font/get-app-router-font-classes.ts +19 -0
  1214. package/src/site/next/font/load-and-return-lux-next-fonts-on-import.ts +60 -0
  1215. package/src/site/next/font/local/InterVariable-Italic.ttf +0 -0
  1216. package/src/site/next/font/local/InterVariable-Italic.woff2 +0 -0
  1217. package/src/site/next/font/local/InterVariable.ttf +0 -0
  1218. package/src/site/next/font/local/InterVariable.woff2 +0 -0
  1219. package/src/site/next/font/local/Zen-Variable.woff2 +0 -0
  1220. package/src/site/next/font/next-font-desc.ts +29 -0
  1221. package/src/site/next/font/pages-router-font-vars.tsx +18 -0
  1222. package/src/site/next/head-metadata/index.tsx +209 -0
  1223. package/src/site/next/head-metadata/next-metadata.ts +49 -0
  1224. package/src/site/next/index.ts +2 -0
  1225. package/src/site/next/middleware/determine-device-mw.ts +16 -0
  1226. package/src/site/root-layout/WHY_THIS_IS_SEPARATE.txt +2 -0
  1227. package/src/site/root-layout/index.tsx +125 -0
  1228. package/src/site/site-def/footer/community.tsx +58 -0
  1229. package/src/site/site-def/footer/company.ts +37 -0
  1230. package/src/site/site-def/footer/ecosystem.ts +37 -0
  1231. package/src/site/site-def/footer/index.tsx +26 -0
  1232. package/src/site/site-def/footer/legal.ts +28 -0
  1233. package/src/site/site-def/footer/network.ts +45 -0
  1234. package/src/site/site-def/footer/svg/warpcast-logo.svg +12 -0
  1235. package/src/site/site-def/index.ts +4 -0
  1236. package/src/site/site-def/main-nav.tsx +460 -0
  1237. package/src/site/style/cart-animation.css +29 -0
  1238. package/src/site/style/checkout-animation.css +23 -0
  1239. package/src/site/style/drawer-handle-overrides.css +160 -0
  1240. package/src/site/style/fonts/COPY_TO_PUBLIC_FOR_NON_NEXT.txt +0 -0
  1241. package/src/site/style/fonts/InterVariable-Italic.ttf +0 -0
  1242. package/src/site/style/fonts/InterVariable-Italic.woff2 +0 -0
  1243. package/src/site/style/fonts/InterVariable.ttf +0 -0
  1244. package/src/site/style/fonts/InterVariable.woff2 +0 -0
  1245. package/src/site/style/fonts/Zen-Variable.woff2 +0 -0
  1246. package/src/site/style/lux-colors.css +84 -0
  1247. package/src/site/style/lux-fonts.css +24 -0
  1248. package/src/site/style/lux-global-non-next.css +52 -0
  1249. package/src/site/style/lux-global.css +135 -0
  1250. package/src/site/types/chatbot-config.ts +7 -0
  1251. package/src/site/types/chatbot-suggested-question.ts +7 -0
  1252. package/src/site/types/contact-info.ts +11 -0
  1253. package/src/site/types/index.ts +4 -0
  1254. package/src/site/types/site-def.ts +53 -0
  1255. package/src/site/util/index.ts +11 -0
  1256. package/src/skeleton.tsx +20 -168
  1257. package/src/slider.tsx +1 -0
  1258. package/src/status-dashboard-navigation-bar.tsx +39 -0
  1259. package/src/status.tsx +63 -0
  1260. package/src/stock-screener.tsx +58 -0
  1261. package/src/switch.tsx +2 -2
  1262. package/src/symbol-info.tsx +64 -0
  1263. package/src/table.tsx +26 -25
  1264. package/src/tags.tsx +62 -0
  1265. package/src/team-switcher-navigation-bar.tsx +39 -0
  1266. package/src/technical-analysis.tsx +99 -0
  1267. package/src/terminal.tsx +399 -0
  1268. package/src/ticker-tape.tsx +68 -0
  1269. package/src/ticker.tsx +52 -0
  1270. package/src/timeline.tsx +412 -0
  1271. package/src/toggle.tsx +84 -0
  1272. package/src/trading-panel.tsx +262 -0
  1273. package/src/two-tier-navigation-bar.tsx +39 -0
  1274. package/src/underline-navigation-bar.tsx +39 -0
  1275. package/src/youtube-pip-player.tsx +606 -0
  1276. package/tokens.css +11 -0
@@ -0,0 +1,1831 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var React10 = require('react');
5
+ var lucideReact = require('lucide-react');
6
+ var sonner = require('sonner');
7
+ var ui = require('@hanzo/ui');
8
+ var gui = require('@hanzo/gui');
9
+ var jsxRuntime = require('react/jsx-runtime');
10
+ var usehooks = require('@uidotdev/usehooks');
11
+
12
+ function _interopNamespace(e) {
13
+ if (e && e.__esModule) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
22
+ });
23
+ }
24
+ });
25
+ }
26
+ n.default = e;
27
+ return Object.freeze(n);
28
+ }
29
+
30
+ var React10__namespace = /*#__PURE__*/_interopNamespace(React10);
31
+
32
+ var SKELETON_CLASSES = "lux-skeleton rounded-sm";
33
+ var Skeleton = React10__namespace.forwardRef(
34
+ function Skeleton2(props, ref) {
35
+ const { loading = true, asChild, className, children, style, ...rest } = props;
36
+ if (!loading) {
37
+ if (asChild && React10__namespace.isValidElement(children)) return children;
38
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className, style, ...rest, children });
39
+ }
40
+ return /* @__PURE__ */ jsxRuntime.jsx(
41
+ "div",
42
+ {
43
+ ref,
44
+ "data-loading": true,
45
+ ...ui.sx(
46
+ SKELETON_CLASSES,
47
+ asChild || children ? "[&_*]:invisible" : "min-h-5",
48
+ className
49
+ ),
50
+ style,
51
+ ...rest,
52
+ children
53
+ }
54
+ );
55
+ }
56
+ );
57
+ React10__namespace.forwardRef(
58
+ function SkeletonCircle2(props, ref) {
59
+ const { size = 40, loading = true, className, ...rest } = props;
60
+ const dimension = typeof size === "number" ? `${size}px` : size;
61
+ return /* @__PURE__ */ jsxRuntime.jsx(
62
+ Skeleton,
63
+ {
64
+ ref,
65
+ loading,
66
+ ...ui.sx("rounded-full shrink-0", className),
67
+ style: { width: dimension, height: dimension, ...rest.style },
68
+ ...rest
69
+ }
70
+ );
71
+ }
72
+ );
73
+ React10__namespace.forwardRef(
74
+ function SkeletonText2(props, ref) {
75
+ const { noOfLines = 3, loading = true, className, ...rest } = props;
76
+ 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(
77
+ Skeleton,
78
+ {
79
+ loading,
80
+ ...ui.sx(ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
81
+ },
82
+ index
83
+ )) });
84
+ }
85
+ );
86
+ var ink = (children, Wrap = gui.Text, props = {}) => {
87
+ let hasText = false;
88
+ React10.Children.forEach(children, (child) => {
89
+ if (typeof child === "string" || typeof child === "number") hasText = true;
90
+ });
91
+ if (!hasText) return children;
92
+ return React10.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React10.createElement(Wrap, props, child) : child);
93
+ };
94
+ var TOUCH_PX = 1024;
95
+ function useBelow(px) {
96
+ const [below, setBelow] = React10__namespace.useState(false);
97
+ React10__namespace.useEffect(() => {
98
+ const mql = window.matchMedia(`(max-width: ${px - 1}px)`);
99
+ const apply = () => setBelow(mql.matches);
100
+ apply();
101
+ mql.addEventListener("change", apply);
102
+ return () => mql.removeEventListener("change", apply);
103
+ }, [px]);
104
+ return below;
105
+ }
106
+ var useIsTouch = () => useBelow(TOUCH_PX);
107
+ function mapPlacement(p) {
108
+ if (!p) return void 0;
109
+ return p;
110
+ }
111
+ var Tooltip = React10__namespace.forwardRef(
112
+ function Tooltip2(props, ref) {
113
+ const {
114
+ showArrow: showArrowProp,
115
+ onOpenChange,
116
+ variant,
117
+ selected,
118
+ children,
119
+ disabled,
120
+ disableOnMobile,
121
+ content,
122
+ contentProps,
123
+ defaultOpen = false,
124
+ triggerProps,
125
+ closeDelay = 100,
126
+ openDelay = 100,
127
+ interactive,
128
+ positioning
129
+ } = props;
130
+ const [open, setOpen] = React10__namespace.useState(defaultOpen);
131
+ const timeoutRef = React10__namespace.useRef(null);
132
+ const isMobile = useIsTouch();
133
+ const handleOpenChange = React10__namespace.useCallback((nextOpen) => {
134
+ setOpen(nextOpen);
135
+ onOpenChange?.({ open: nextOpen });
136
+ }, [onOpenChange]);
137
+ const handleOpenChangeManual = React10__namespace.useCallback((nextOpen) => {
138
+ timeoutRef.current && window.clearTimeout(timeoutRef.current);
139
+ timeoutRef.current = window.setTimeout(() => {
140
+ setOpen(nextOpen);
141
+ onOpenChange?.({ open: nextOpen });
142
+ }, nextOpen ? openDelay : closeDelay);
143
+ }, [closeDelay, openDelay, onOpenChange]);
144
+ const handleClickAway = React10__namespace.useCallback(() => {
145
+ if (open) handleOpenChangeManual(false);
146
+ }, [open, handleOpenChangeManual]);
147
+ const triggerRef = usehooks.useClickAway(handleClickAway);
148
+ const handleTriggerClick = React10__namespace.useCallback(() => {
149
+ handleOpenChangeManual(!open);
150
+ }, [handleOpenChangeManual, open]);
151
+ const handleContentClick = React10__namespace.useCallback((event) => {
152
+ event.stopPropagation();
153
+ if (interactive) {
154
+ const closestLink = event.target?.closest("a");
155
+ if (closestLink) {
156
+ handleOpenChangeManual(false);
157
+ }
158
+ }
159
+ }, [interactive, handleOpenChangeManual]);
160
+ React10__namespace.useEffect(() => {
161
+ return () => {
162
+ if (timeoutRef.current) {
163
+ clearTimeout(timeoutRef.current);
164
+ }
165
+ };
166
+ }, []);
167
+ if (disabled || disableOnMobile && isMobile) return children;
168
+ const defaultShowArrow = variant === "popover" ? false : true;
169
+ const showArrow = showArrowProp !== void 0 ? showArrowProp : defaultShowArrow;
170
+ const isPopover = variant === "popover";
171
+ const placement = mapPlacement(positioning?.placement) ?? "top";
172
+ const offset = positioning?.offset?.mainAxis ?? 4;
173
+ return /* @__PURE__ */ jsxRuntime.jsx(gui.TooltipGroup, { delay: openDelay, children: /* @__PURE__ */ jsxRuntime.jsxs(
174
+ gui.Tooltip,
175
+ {
176
+ open,
177
+ onOpenChange: handleOpenChange,
178
+ delay: { open: openDelay, close: closeDelay },
179
+ placement,
180
+ offset,
181
+ unstyled: true,
182
+ children: [
183
+ /* @__PURE__ */ jsxRuntime.jsx(
184
+ gui.Tooltip.Trigger,
185
+ {
186
+ ref: triggerRef,
187
+ asChild: true,
188
+ ...isMobile ? { onClick: handleTriggerClick } : {},
189
+ ...triggerProps,
190
+ children
191
+ }
192
+ ),
193
+ /* @__PURE__ */ jsxRuntime.jsxs(
194
+ gui.Tooltip.Content,
195
+ {
196
+ ref,
197
+ unstyled: true,
198
+ zIndex: 9999,
199
+ overflow: "hidden",
200
+ borderRadius: 8,
201
+ paddingHorizontal: 12,
202
+ paddingVertical: 8,
203
+ maxWidth: isPopover ? 384 : 320,
204
+ backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)",
205
+ transition: "quick",
206
+ enterStyle: { opacity: 0, scale: 0.95 },
207
+ exitStyle: { opacity: 0, scale: 0.95 },
208
+ ...isPopover ? {
209
+ borderWidth: 1,
210
+ borderColor: "var(--color-border-divider)",
211
+ shadowColor: "var(--shadow-popover)"
212
+ } : {},
213
+ onClick: interactive ? handleContentClick : void 0,
214
+ ...selected ? { "data-selected": true } : {},
215
+ ...contentProps,
216
+ children: [
217
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(
218
+ gui.Tooltip.Arrow,
219
+ {
220
+ unstyled: true,
221
+ backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)"
222
+ }
223
+ ),
224
+ ink(content, void 0, {
225
+ fontSize: 14,
226
+ color: isPopover ? "var(--color-text-primary)" : "var(--color-tooltip-fg)"
227
+ })
228
+ ]
229
+ }
230
+ )
231
+ ]
232
+ }
233
+ ) });
234
+ }
235
+ );
236
+ function TruncatedTextTooltip({ label, children }) {
237
+ return /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { content: label, positioning: { placement: "top" }, children });
238
+ }
239
+ var SIZE = {
240
+ sm: { padding: 4, height: 18, minHeight: 18 },
241
+ md: { paddingHorizontal: 4, paddingVertical: 2, minHeight: 24 },
242
+ lg: { paddingHorizontal: 8, paddingVertical: 4, minHeight: 28 }
243
+ };
244
+ var SIZE_TEXT = {
245
+ sm: { fontSize: 12, fontWeight: "500" },
246
+ md: { fontSize: 14, fontWeight: "500" },
247
+ lg: { fontSize: 14, fontWeight: "600" }
248
+ };
249
+ var COLOR_PALETTE = {
250
+ gray: { bg: "var(--color-badge-gray-bg)", fg: "var(--color-badge-gray-fg)" },
251
+ green: { bg: "var(--color-badge-green-bg)", fg: "var(--color-badge-green-fg)" },
252
+ red: { bg: "var(--color-badge-red-bg)", fg: "var(--color-badge-red-fg)" },
253
+ purple: { bg: "var(--color-badge-purple-bg)", fg: "var(--color-badge-purple-fg)" },
254
+ orange: { bg: "var(--color-badge-orange-bg)", fg: "var(--color-badge-orange-fg)" },
255
+ blue: { bg: "var(--color-badge-blue-bg)", fg: "var(--color-badge-blue-fg)" },
256
+ yellow: { bg: "var(--color-badge-yellow-bg)", fg: "var(--color-badge-yellow-fg)" },
257
+ teal: { bg: "var(--color-badge-teal-bg)", fg: "var(--color-badge-teal-fg)" },
258
+ cyan: { bg: "var(--color-badge-cyan-bg)", fg: "var(--color-badge-cyan-fg)" },
259
+ pink: { bg: "var(--color-badge-pink-bg)", fg: "var(--color-badge-pink-fg)" },
260
+ purple_alt: { bg: "var(--color-badge-purple-alt-bg)", fg: "var(--color-badge-purple-alt-fg)" },
261
+ blue_alt: { bg: "var(--color-badge-blue-alt-bg)", fg: "var(--color-badge-blue-alt-fg)" },
262
+ bright_gray: { bg: "var(--color-badge-bright-gray-bg)", fg: "var(--color-badge-bright-gray-fg)" },
263
+ bright_green: { bg: "var(--color-badge-bright-green-bg)", fg: "var(--color-badge-bright-green-fg)" },
264
+ bright_red: { bg: "var(--color-badge-bright-red-bg)", fg: "var(--color-badge-bright-red-fg)" },
265
+ bright_blue: { bg: "var(--color-badge-bright-blue-bg)", fg: "var(--color-badge-bright-blue-fg)" },
266
+ bright_yellow: { bg: "var(--color-badge-bright-yellow-bg)", fg: "var(--color-badge-bright-yellow-fg)" },
267
+ bright_teal: { bg: "var(--color-badge-bright-teal-bg)", fg: "var(--color-badge-bright-teal-fg)" },
268
+ bright_cyan: { bg: "var(--color-badge-bright-cyan-bg)", fg: "var(--color-badge-bright-cyan-fg)" },
269
+ bright_orange: { bg: "var(--color-badge-bright-orange-bg)", fg: "var(--color-badge-bright-orange-fg)" },
270
+ bright_purple: { bg: "var(--color-badge-bright-purple-bg)", fg: "var(--color-badge-bright-purple-fg)" },
271
+ bright_pink: { bg: "var(--color-badge-bright-pink-bg)", fg: "var(--color-badge-bright-pink-fg)" }
272
+ };
273
+ var TONE = {
274
+ subtle: (p) => ({ backgroundColor: p.bg, color: p.fg, borderWidth: 0 }),
275
+ solid: (p) => ({ backgroundColor: p.fg, color: p.bg, borderWidth: 0 }),
276
+ outline: (p) => ({
277
+ backgroundColor: "transparent",
278
+ color: p.fg,
279
+ borderWidth: 1,
280
+ borderColor: p.fg
281
+ })
282
+ };
283
+ var Badge = React10__namespace.default.forwardRef(
284
+ function Badge2(props, ref) {
285
+ const {
286
+ loading,
287
+ startElement,
288
+ children,
289
+ truncated = false,
290
+ endElement,
291
+ variant = "subtle",
292
+ size = "md",
293
+ colorPalette = "gray",
294
+ className,
295
+ style: badgeStyle,
296
+ ...rest
297
+ } = props;
298
+ const palette = COLOR_PALETTE[colorPalette];
299
+ const tone = TONE[variant](palette);
300
+ const child = children ? (
301
+ // `ellipsis` is gui Text's own built-in variant for single-line
302
+ // truncation — it expands to the same overflow/text-overflow/
303
+ // white-space/max-width rule Tailwind's `text-ellipsis` did, but
304
+ // through the component's own variants (guaranteed to compile),
305
+ // rather than naming each longhand as a separate style prop.
306
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { ellipsis: true, ...SIZE_TEXT[size], color: tone.color, children })
307
+ ) : null;
308
+ const childrenElement = truncated ? /* @__PURE__ */ jsxRuntime.jsx(TruncatedTextTooltip, { label: children, children: child }) : child;
309
+ const badgeElement = /* @__PURE__ */ jsxRuntime.jsxs(
310
+ gui.XStack,
311
+ {
312
+ ref,
313
+ render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
314
+ display: "inline-flex",
315
+ alignItems: "center",
316
+ alignSelf: "flex-start",
317
+ borderRadius: 2,
318
+ gap: 4,
319
+ maxWidth: "100%",
320
+ userSelect: "text",
321
+ ...SIZE[size],
322
+ ...tone,
323
+ className,
324
+ style: badgeStyle,
325
+ ...rest,
326
+ children: [
327
+ startElement,
328
+ childrenElement,
329
+ endElement
330
+ ]
331
+ }
332
+ );
333
+ if (loading) {
334
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, asChild: true, children: badgeElement });
335
+ }
336
+ return badgeElement;
337
+ }
338
+ );
339
+ var SpinnerFrame = gui.styled(gui.View, {
340
+ name: "ButtonSpinner",
341
+ render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
342
+ width: 16,
343
+ height: 16,
344
+ borderRadius: 1e3,
345
+ borderWidth: 2,
346
+ borderColor: "currentColor",
347
+ borderBottomColor: "transparent",
348
+ borderLeftColor: "transparent"
349
+ });
350
+ function Spinner({ className }) {
351
+ return /* @__PURE__ */ jsxRuntime.jsx(
352
+ SpinnerFrame,
353
+ {
354
+ role: "status",
355
+ "aria-label": "Loading",
356
+ className: [
357
+ "animate-spin",
358
+ className
359
+ ].filter(Boolean).join(" ")
360
+ }
361
+ );
362
+ }
363
+ var ButtonFrame = gui.styled(gui.View, {
364
+ name: "LuxButton",
365
+ render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button" }),
366
+ role: "button",
367
+ tabIndex: 0,
368
+ cursor: "pointer",
369
+ userSelect: "none",
370
+ display: "inline-flex",
371
+ alignItems: "center",
372
+ justifyContent: "center",
373
+ gap: 0,
374
+ overflow: "hidden",
375
+ borderRadius: 6,
376
+ // Whitespace nowrap via className since hanzogui doesn't have a direct token
377
+ // Transition via className
378
+ variants: {
379
+ size: {
380
+ "2xs": { paddingHorizontal: 8, height: 20, minWidth: 20, fontSize: 12, borderRadius: 4, gap: 4 },
381
+ xs: { paddingHorizontal: 8, height: 24, minWidth: 24, fontSize: 14, borderRadius: 4, gap: 4 },
382
+ sm: { paddingHorizontal: 12, height: 32, minWidth: 32, fontSize: 14, borderRadius: 6, gap: 4 },
383
+ md: { paddingHorizontal: 12, height: 40, minWidth: 40, fontSize: 16, borderRadius: 6, gap: 8 }
384
+ },
385
+ disabled: {
386
+ true: {
387
+ opacity: 0.2,
388
+ cursor: "not-allowed",
389
+ pointerEvents: "none"
390
+ }
391
+ }
392
+ },
393
+ defaultVariants: {
394
+ size: "md"
395
+ }
396
+ });
397
+ var VARIANT_CLASSES = {
398
+ solid: [
399
+ "bg-[var(--color-button-solid-bg)] text-[var(--color-button-solid-text)]",
400
+ "hover:bg-[var(--color-hover)]",
401
+ "data-[expanded]:bg-[var(--color-hover)]"
402
+ ].join(" "),
403
+ solid_danger: [
404
+ "bg-[var(--color-button-danger-bg)] text-[var(--color-button-danger-fg)]",
405
+ "hover:bg-[var(--color-button-danger-bg-hover)]",
406
+ "data-[expanded]:bg-[var(--color-button-danger-bg-hover)]"
407
+ ].join(" "),
408
+ outline: [
409
+ "border-2 border-solid bg-transparent",
410
+ "text-[var(--color-button-outline-fg)] border-[var(--color-button-outline-fg)]",
411
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]"
412
+ ].join(" "),
413
+ outline_danger: [
414
+ "border-2 border-solid bg-transparent",
415
+ "text-[var(--color-button-danger-bg)] border-[var(--color-button-danger-bg)]",
416
+ "hover:bg-transparent hover:text-[var(--color-button-danger-bg-hover)] hover:border-[var(--color-button-danger-bg-hover)]"
417
+ ].join(" "),
418
+ dropdown: [
419
+ "border-2 border-solid bg-transparent",
420
+ "text-[var(--color-button-dropdown-fg)] border-[var(--color-button-dropdown-border)]",
421
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
422
+ "data-[expanded]:bg-transparent data-[expanded]:text-[var(--color-hover)] data-[expanded]:border-[var(--color-hover)]",
423
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
424
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
425
+ "data-[selected]:hover:text-[var(--color-hover)] data-[selected]:hover:border-transparent",
426
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
427
+ ].join(" "),
428
+ header: [
429
+ "bg-transparent border-2 border-solid",
430
+ "text-[var(--color-button-header-fg)] border-[var(--color-button-header-border)]",
431
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
432
+ "data-[selected]:bg-[var(--color-button-header-bg-selected)]",
433
+ "data-[selected]:text-[var(--color-button-header-fg-selected)] data-[selected]:border-transparent data-[selected]:border-0",
434
+ "data-[selected]:hover:bg-[var(--color-button-header-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
435
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
436
+ "data-[selected]:data-[highlighted]:bg-[var(--color-button-header-bg-highlighted)]",
437
+ "data-[selected]:data-[highlighted]:text-[var(--color-button-header-fg-highlighted)]",
438
+ "data-[selected]:data-[highlighted]:border-transparent data-[selected]:data-[highlighted]:border-0",
439
+ "data-[selected]:data-[highlighted]:hover:bg-[var(--color-button-header-bg-highlighted)]",
440
+ "data-[selected]:data-[highlighted]:hover:text-[var(--color-hover)]",
441
+ "data-[selected]:data-[highlighted]:data-[expanded]:text-[var(--color-hover)]"
442
+ ].join(" "),
443
+ hero: [
444
+ "bg-[var(--color-button-hero-bg)] text-[var(--color-button-hero-fg)]",
445
+ "hover:bg-[var(--color-button-hero-bg-hover)] hover:text-[var(--color-button-hero-fg-hover)]",
446
+ "data-[selected]:bg-[var(--color-button-hero-bg-selected)] data-[selected]:text-[var(--color-button-hero-fg-selected)]",
447
+ "data-[selected]:hover:bg-[var(--color-button-hero-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
448
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
449
+ ].join(" "),
450
+ segmented: [
451
+ "bg-transparent border-2 border-solid rounded-none",
452
+ "text-[var(--color-button-segmented-fg)] border-[var(--color-selected-control-bg)]",
453
+ "hover:text-[var(--color-hover)]",
454
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
455
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-selected-control-text)]",
456
+ "[&:not(:last-child)]:border-r-0 data-[selected]:[&:not(:last-child)]:border-r-2",
457
+ "data-[selected]+*:border-l-0",
458
+ "first:rounded-l-md last:rounded-r-md"
459
+ ].join(" "),
460
+ plain: "bg-transparent text-inherit border-none hover:bg-transparent",
461
+ subtle: [
462
+ "bg-[var(--color-button-subtle-bg)] text-[var(--color-button-subtle-fg)]",
463
+ "hover:bg-[var(--color-button-subtle-bg)] hover:text-[var(--color-hover)]",
464
+ "disabled:bg-[var(--color-button-subtle-bg)] disabled:text-[var(--color-button-subtle-fg)]"
465
+ ].join(" "),
466
+ link: [
467
+ "bg-transparent text-[var(--color-link-primary)] border-none font-normal",
468
+ "px-0 h-auto",
469
+ "hover:bg-transparent hover:text-[var(--color-link-primary-hover)]",
470
+ "disabled:text-[var(--color-text-secondary)]"
471
+ ].join(" "),
472
+ icon_secondary: [
473
+ "bg-transparent text-[var(--color-icon-secondary)] border-none",
474
+ "hover:text-[var(--color-hover)]",
475
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
476
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
477
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
478
+ "data-[expanded]:text-[var(--color-hover)]"
479
+ ].join(" "),
480
+ icon_background: [
481
+ "bg-[var(--color-button-icon-background-bg)] text-[var(--color-icon-secondary)] border-none",
482
+ "hover:text-[var(--color-hover)]",
483
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
484
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
485
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
486
+ "data-[expanded]:text-[var(--color-hover)]"
487
+ ].join(" "),
488
+ pagination: [
489
+ "border-2 border-solid bg-transparent",
490
+ "text-[var(--color-button-pagination-fg)] border-[var(--color-button-pagination-border)]",
491
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
492
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
493
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
494
+ "data-[selected]:hover:text-[var(--color-selected-control-text)] data-[selected]:hover:border-transparent"
495
+ ].join(" ")
496
+ };
497
+ var BASE_CLASSES = "font-semibold whitespace-nowrap transition-colors duration-150";
498
+ var SP = 4;
499
+ function buildShimStyle(props) {
500
+ const s = { ...props.style };
501
+ if (props.mt !== void 0) s.marginTop = typeof props.mt === "number" ? `${props.mt * SP}px` : props.mt;
502
+ if (props.ml !== void 0) s.marginLeft = typeof props.ml === "number" ? `${props.ml * SP}px` : props.ml;
503
+ if (props.mr !== void 0) s.marginRight = typeof props.mr === "number" ? `${props.mr * SP}px` : props.mr;
504
+ if (props.px !== void 0) {
505
+ const v = typeof props.px === "number" ? `${props.px * SP}px` : props.px;
506
+ s.paddingLeft = v;
507
+ s.paddingRight = v;
508
+ }
509
+ if (props.py !== void 0) {
510
+ const v = typeof props.py === "number" ? `${props.py * SP}px` : props.py;
511
+ s.paddingTop = v;
512
+ s.paddingBottom = v;
513
+ }
514
+ if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
515
+ if (props.gap !== void 0) s.gap = typeof props.gap === "number" ? `${props.gap * SP}px` : props.gap;
516
+ if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
517
+ if (props.columnGap !== void 0) s.columnGap = typeof props.columnGap === "number" ? `${props.columnGap * SP}px` : props.columnGap;
518
+ if (props.gridColumn !== void 0) s.gridColumn = typeof props.gridColumn === "number" ? String(props.gridColumn) : props.gridColumn;
519
+ if (props.gridRow) s.gridRow = props.gridRow;
520
+ if (props.justifySelf) s.justifySelf = props.justifySelf;
521
+ if (props.alignSelf) s.alignSelf = props.alignSelf;
522
+ if (props.h) s.height = props.h;
523
+ if (props.w) s.width = props.w;
524
+ if (props.display) s.display = props.display;
525
+ if (props.borderBottomRightRadius !== void 0) s.borderBottomRightRadius = typeof props.borderBottomRightRadius === "number" ? `${props.borderBottomRightRadius}px` : props.borderBottomRightRadius;
526
+ if (props.borderTopRightRadius !== void 0) s.borderTopRightRadius = typeof props.borderTopRightRadius === "number" ? `${props.borderTopRightRadius}px` : props.borderTopRightRadius;
527
+ return Object.keys(s).length > 0 ? s : void 0;
528
+ }
529
+ var Button = React10__namespace.forwardRef(
530
+ function Button2(props, ref) {
531
+ const {
532
+ className,
533
+ variant = "solid",
534
+ size = "md",
535
+ asChild = false,
536
+ loading = false,
537
+ loadingText,
538
+ loadingSkeleton = false,
539
+ expanded,
540
+ selected,
541
+ highlighted,
542
+ disabled,
543
+ children,
544
+ style: styleProp,
545
+ // Strip Chakra style props
546
+ mt,
547
+ ml,
548
+ mr,
549
+ px,
550
+ py,
551
+ fontWeight,
552
+ gap,
553
+ flexShrink,
554
+ columnGap,
555
+ gridColumn,
556
+ gridRow,
557
+ justifySelf,
558
+ alignSelf,
559
+ textStyle: _textStyle,
560
+ h,
561
+ w,
562
+ display,
563
+ borderBottomRightRadius,
564
+ borderTopRightRadius,
565
+ ...rest
566
+ } = props;
567
+ const mergedStyle = buildShimStyle({
568
+ style: styleProp,
569
+ mt,
570
+ ml,
571
+ mr,
572
+ px,
573
+ py,
574
+ fontWeight,
575
+ gap,
576
+ flexShrink,
577
+ columnGap,
578
+ gridColumn,
579
+ gridRow,
580
+ justifySelf,
581
+ alignSelf,
582
+ h,
583
+ w,
584
+ display,
585
+ borderBottomRightRadius,
586
+ borderTopRightRadius
587
+ });
588
+ const dataAttrs = {};
589
+ if (expanded) dataAttrs["data-expanded"] = true;
590
+ if (selected) dataAttrs["data-selected"] = true;
591
+ if (highlighted) dataAttrs["data-highlighted"] = true;
592
+ if (loadingSkeleton) dataAttrs["data-loading-skeleton"] = true;
593
+ const isDisabled = !loadingSkeleton && (loading || disabled);
594
+ const inner = loading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
595
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}),
596
+ loadingText != null && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginLeft: 8 }, children: loadingText })
597
+ ] }) : children;
598
+ const variantClass = VARIANT_CLASSES[variant] ?? VARIANT_CLASSES.solid;
599
+ const combinedClassName = [BASE_CLASSES, variantClass, className].filter(Boolean).join(" ");
600
+ const button = /* @__PURE__ */ jsxRuntime.jsx(
601
+ ButtonFrame,
602
+ {
603
+ ref,
604
+ size,
605
+ disabled: isDisabled || void 0,
606
+ asChild: asChild || void 0,
607
+ className: combinedClassName,
608
+ style: mergedStyle,
609
+ ...dataAttrs,
610
+ ...rest,
611
+ children: inner
612
+ }
613
+ );
614
+ if (loadingSkeleton) {
615
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
616
+ }
617
+ return button;
618
+ }
619
+ );
620
+ React10__namespace.forwardRef(
621
+ function ButtonGroup2(props, ref) {
622
+ const { className, ...rest } = props;
623
+ return /* @__PURE__ */ jsxRuntime.jsx(
624
+ ui.Box,
625
+ {
626
+ ref,
627
+ className: ["inline-flex", className].filter(Boolean).join(" "),
628
+ role: "group",
629
+ ...rest
630
+ }
631
+ );
632
+ }
633
+ );
634
+ React10__namespace.forwardRef(
635
+ function ButtonGroupRadio2(props, ref) {
636
+ const {
637
+ children,
638
+ onChange,
639
+ variant = "segmented",
640
+ defaultValue,
641
+ loading = false,
642
+ equalWidth = false,
643
+ className,
644
+ ...rest
645
+ } = props;
646
+ const firstChildValue = React10__namespace.useMemo(() => {
647
+ const firstChild = Array.isArray(children) ? children[0] : void 0;
648
+ return typeof firstChild?.props.value === "string" ? firstChild.props.value : void 0;
649
+ }, [children]);
650
+ const [value, setValue] = React10__namespace.useState(defaultValue ?? firstChildValue);
651
+ const handleItemClick = React10__namespace.useCallback((event) => {
652
+ const v = event.currentTarget.value;
653
+ setValue(v);
654
+ onChange?.(v);
655
+ }, [onChange]);
656
+ const clonedChildren = React10__namespace.Children.map(children, (child) => {
657
+ return React10__namespace.cloneElement(child, {
658
+ onClick: handleItemClick,
659
+ selected: value === child.props.value,
660
+ variant
661
+ });
662
+ });
663
+ const childrenLength = React10__namespace.Children.count(children);
664
+ return /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsx(
665
+ ui.Box,
666
+ {
667
+ ref,
668
+ className: [
669
+ "inline-flex gap-0",
670
+ equalWidth ? "grid" : "",
671
+ className
672
+ ].filter(Boolean).join(" "),
673
+ style: equalWidth ? { gridTemplateColumns: `repeat(${childrenLength}, 1fr)` } : void 0,
674
+ role: "group",
675
+ ...rest,
676
+ children: clonedChildren
677
+ }
678
+ ) });
679
+ }
680
+ );
681
+ var SIZE2 = {
682
+ xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
683
+ sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
684
+ md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
685
+ lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
686
+ "2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
687
+ };
688
+ var VARIANT = {
689
+ outline: { borderWidth: 1, borderStyle: "solid" },
690
+ filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
691
+ unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
692
+ };
693
+ var CONTROL = {
694
+ width: "100%",
695
+ outlineWidth: 0,
696
+ backgroundColor: "var(--color-input-bg)",
697
+ color: "var(--color-input-fg)",
698
+ borderColor: "var(--color-input-border)",
699
+ hoverStyle: { borderColor: "var(--color-input-border-hover)" },
700
+ focusStyle: { borderColor: "var(--color-input-border-focus)" },
701
+ disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
702
+ };
703
+ var Input = React10__namespace.default.forwardRef(
704
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
705
+ const handleChange = React10__namespace.default.useCallback(
706
+ (event) => {
707
+ onChange?.(event);
708
+ onChangeText?.(event.target.value);
709
+ },
710
+ [onChange, onChangeText]
711
+ );
712
+ return /* @__PURE__ */ jsxRuntime.jsx(
713
+ gui.Input,
714
+ {
715
+ ref,
716
+ unstyled: true,
717
+ className: className ? `lux-control ${className}` : "lux-control",
718
+ ...CONTROL,
719
+ ...SIZE2[size],
720
+ ...VARIANT[variant],
721
+ ...rest,
722
+ onChange: handleChange
723
+ }
724
+ );
725
+ }
726
+ );
727
+ Input.displayName = "Input";
728
+ var MUTED = "var(--color-text-secondary)";
729
+ var TRACK = "var(--color-border-divider)";
730
+ var ACTIVE = "var(--color-link-primary)";
731
+ var ACTIVE_HOVER = "var(--color-link-primary-hover)";
732
+ var WHITE = "var(--color-white)";
733
+ var Slider = React10__namespace.forwardRef(
734
+ function Slider2(props, ref) {
735
+ const {
736
+ marks: marksProp,
737
+ label,
738
+ showValue,
739
+ value,
740
+ defaultValue,
741
+ min = 0,
742
+ max = 100,
743
+ step,
744
+ disabled,
745
+ orientation = "horizontal",
746
+ name,
747
+ onValueChange,
748
+ onValueCommit,
749
+ className
750
+ } = props;
751
+ const resolvedValue = defaultValue ?? value;
752
+ const marks = marksProp?.map((mark) => {
753
+ if (typeof mark === "number") return { value: mark, label: void 0 };
754
+ return mark;
755
+ });
756
+ const hasMarkLabel = Boolean(marks?.some((mark) => mark.label));
757
+ const latest = React10__namespace.useRef(value ?? defaultValue ?? []);
758
+ const handleValueChange = React10__namespace.useCallback((next) => {
759
+ latest.current = next;
760
+ onValueChange?.(next);
761
+ }, [onValueChange]);
762
+ const handleSlideEnd = React10__namespace.useCallback(() => {
763
+ onValueCommit?.(latest.current);
764
+ }, [onValueCommit]);
765
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { className, gap: 4, children: [
766
+ label && !showValue && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 14, fontWeight: "500", color: MUTED, children: label }),
767
+ label && showValue && /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { alignItems: "center", justifyContent: "space-between", children: [
768
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 14, fontWeight: "500", color: MUTED, children: label }),
769
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 14, color: MUTED, children: (value ?? defaultValue ?? [])?.join(", ") })
770
+ ] }),
771
+ /* @__PURE__ */ jsxRuntime.jsxs(
772
+ gui.Slider,
773
+ {
774
+ ref,
775
+ position: "relative",
776
+ flexDirection: "row",
777
+ width: "100%",
778
+ userSelect: "none",
779
+ alignItems: "center",
780
+ marginBottom: hasMarkLabel ? 24 : 0,
781
+ value,
782
+ defaultValue,
783
+ min,
784
+ max,
785
+ step,
786
+ disabled,
787
+ orientation,
788
+ name,
789
+ onValueChange: handleValueChange,
790
+ onSlideEnd: handleSlideEnd,
791
+ children: [
792
+ /* @__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 }) }),
793
+ resolvedValue?.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
794
+ gui.Slider.Thumb,
795
+ {
796
+ index,
797
+ unstyled: true,
798
+ width: 20,
799
+ height: 20,
800
+ borderRadius: 9999,
801
+ borderWidth: 2,
802
+ borderColor: ACTIVE,
803
+ backgroundColor: WHITE,
804
+ boxShadow: "var(--shadow-sm)",
805
+ transition: "quick",
806
+ hoverStyle: { borderColor: ACTIVE_HOVER },
807
+ focusStyle: { outlineWidth: 2, outlineStyle: "solid", outlineColor: ACTIVE, outlineOffset: 2 },
808
+ disabledStyle: { pointerEvents: "none", opacity: 0.5 }
809
+ },
810
+ index
811
+ ))
812
+ ]
813
+ }
814
+ ),
815
+ /* @__PURE__ */ jsxRuntime.jsx(SliderMarks, { marks, min, max })
816
+ ] });
817
+ }
818
+ );
819
+ function SliderMarks(props) {
820
+ const { marks, min, max } = props;
821
+ if (!marks?.length) return null;
822
+ const range = max - min;
823
+ return /* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "relative", width: "100%", height: 16, children: marks.map((mark, index) => {
824
+ const percent = (mark.value - min) / range * 100;
825
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.View, { position: "absolute", left: `${percent}%`, alignItems: "center", children: [
826
+ /* @__PURE__ */ jsxRuntime.jsx(gui.View, { width: 2, height: 6, backgroundColor: TRACK }),
827
+ mark.label != null && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { marginTop: 2, fontSize: 12, color: MUTED, children: mark.label })
828
+ ] }, index);
829
+ }) });
830
+ }
831
+ var NOOP = () => {
832
+ };
833
+ var SIZE3 = {
834
+ sm: { width: 28, height: 16, thumb: 12, label: 12 },
835
+ md: { width: 36, height: 20, thumb: 16, label: 14 },
836
+ lg: { width: 44, height: 24, thumb: 20, label: 16 }
837
+ };
838
+ var TRACK_ON = "var(--color-text-primary)";
839
+ var TRACK_OFF = "var(--color-switch-bg)";
840
+ var OUTLINE = "var(--color-gray-500)";
841
+ var WHITE2 = "var(--color-white)";
842
+ var SwitchBase = React10__namespace.forwardRef(
843
+ function Switch(props, ref) {
844
+ const {
845
+ inputProps,
846
+ children,
847
+ rootRef,
848
+ labelProps,
849
+ trackLabel,
850
+ thumbLabel,
851
+ checked: checkedProp,
852
+ defaultChecked,
853
+ onCheckedChange,
854
+ onChange,
855
+ disabled = false,
856
+ size = "md",
857
+ direction,
858
+ ...rest
859
+ } = props;
860
+ const [internalChecked, setInternalChecked] = React10__namespace.useState(defaultChecked ?? false);
861
+ const isControlled = checkedProp !== void 0;
862
+ const checkedState = isControlled ? checkedProp : internalChecked;
863
+ const handleCheckedChange = React10__namespace.useCallback(
864
+ (nextChecked) => {
865
+ if (!isControlled) {
866
+ setInternalChecked(nextChecked);
867
+ }
868
+ onCheckedChange?.(nextChecked);
869
+ },
870
+ [isControlled, onCheckedChange]
871
+ );
872
+ const s = SIZE3[size];
873
+ const isRtl = direction === "rtl";
874
+ return /* @__PURE__ */ jsxRuntime.jsxs(
875
+ gui.Label,
876
+ {
877
+ ref: rootRef,
878
+ unstyled: true,
879
+ flexDirection: isRtl ? "row-reverse" : "row",
880
+ alignItems: "center",
881
+ gap: 8,
882
+ cursor: disabled ? "not-allowed" : "pointer",
883
+ userSelect: "none",
884
+ opacity: disabled ? 0.5 : 1,
885
+ onChange,
886
+ "data-disabled": disabled || void 0,
887
+ ...rest,
888
+ children: [
889
+ /* @__PURE__ */ jsxRuntime.jsxs(
890
+ gui.Switch,
891
+ {
892
+ unstyled: true,
893
+ checked: checkedState,
894
+ onCheckedChange: handleCheckedChange,
895
+ disabled,
896
+ position: "relative",
897
+ flexShrink: 0,
898
+ alignItems: "center",
899
+ width: s.width,
900
+ height: s.height,
901
+ borderRadius: 9999,
902
+ backgroundColor: checkedState ? TRACK_ON : TRACK_OFF,
903
+ transition: "quick",
904
+ focusStyle: { outlineWidth: 2, outlineStyle: "solid", outlineColor: OUTLINE, outlineOffset: 2 },
905
+ children: [
906
+ trackLabel && /* @__PURE__ */ jsxRuntime.jsx(
907
+ gui.Text,
908
+ {
909
+ position: "absolute",
910
+ width: "100%",
911
+ textAlign: "center",
912
+ fontSize: 8,
913
+ fontWeight: "700",
914
+ color: WHITE2,
915
+ pointerEvents: "none",
916
+ children: checkedState ? trackLabel.on : trackLabel.off
917
+ }
918
+ ),
919
+ /* @__PURE__ */ jsxRuntime.jsx(
920
+ gui.Switch.Thumb,
921
+ {
922
+ unstyled: true,
923
+ "data-thumb": true,
924
+ transition: "quicker",
925
+ width: s.thumb,
926
+ height: s.thumb,
927
+ borderRadius: 9999,
928
+ backgroundColor: WHITE2,
929
+ boxShadow: "var(--shadow-sm)",
930
+ children: thumbLabel && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { width: "100%", height: "100%", textAlign: "center", fontSize: 8, children: checkedState ? thumbLabel.on : thumbLabel.off })
931
+ }
932
+ )
933
+ ]
934
+ }
935
+ ),
936
+ /* @__PURE__ */ jsxRuntime.jsx(gui.VisuallyHidden, { children: /* @__PURE__ */ jsxRuntime.jsx(
937
+ "input",
938
+ {
939
+ ref,
940
+ type: "checkbox",
941
+ checked: checkedState,
942
+ disabled,
943
+ tabIndex: -1,
944
+ "aria-hidden": true,
945
+ onChange: NOOP,
946
+ ...inputProps
947
+ }
948
+ ) }),
949
+ children != null && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { ...labelProps, fontSize: s.label, children })
950
+ ]
951
+ }
952
+ );
953
+ }
954
+ );
955
+ var Switch2 = SwitchBase;
956
+ var SIZE4 = {
957
+ xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
958
+ sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
959
+ md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
960
+ lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$6", borderRadius: 8 },
961
+ "2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$7", borderRadius: 8 }
962
+ };
963
+ var Textarea = React10__namespace.default.forwardRef(
964
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
965
+ const handleChange = React10__namespace.default.useCallback(
966
+ (event) => {
967
+ onChange?.(event);
968
+ onChangeText?.(event.target.value);
969
+ },
970
+ [onChange, onChangeText]
971
+ );
972
+ return /* @__PURE__ */ jsxRuntime.jsx(
973
+ gui.TextArea,
974
+ {
975
+ ref,
976
+ unstyled: true,
977
+ className: className ? `lux-control ${className}` : "lux-control",
978
+ ...CONTROL,
979
+ ...SIZE4[size],
980
+ ...VARIANT[variant],
981
+ ...rest,
982
+ onChange: handleChange
983
+ }
984
+ );
985
+ }
986
+ );
987
+ Textarea.displayName = "Textarea";
988
+ var CanvasOverlay = ({
989
+ imageRef,
990
+ results,
991
+ showBoundingBoxes,
992
+ showConfidence,
993
+ minConfidence,
994
+ selectedTypes
995
+ }) => {
996
+ const canvasRef = React10__namespace.useRef(null);
997
+ React10__namespace.useEffect(() => {
998
+ if (!canvasRef.current || !imageRef.current || !results) return;
999
+ const canvas = canvasRef.current;
1000
+ const ctx = canvas.getContext("2d");
1001
+ const image = imageRef.current;
1002
+ if (!ctx) return;
1003
+ canvas.width = image.naturalWidth;
1004
+ canvas.height = image.naturalHeight;
1005
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
1006
+ if (showBoundingBoxes && results.objects && selectedTypes.includes("objects")) {
1007
+ results.objects.filter((obj) => obj.confidence >= minConfidence).forEach((obj) => {
1008
+ ctx.strokeStyle = obj.color || "#3b82f6";
1009
+ ctx.lineWidth = 3;
1010
+ ctx.strokeRect(obj.x, obj.y, obj.width, obj.height);
1011
+ if (showConfidence) {
1012
+ ctx.fillStyle = obj.color || "#3b82f6";
1013
+ ctx.font = "14px Inter, sans-serif";
1014
+ const text = `${obj.label} (${Math.round(obj.confidence * 100)}%)`;
1015
+ const textWidth = ctx.measureText(text).width;
1016
+ ctx.fillRect(obj.x, obj.y - 25, textWidth + 10, 25);
1017
+ ctx.fillStyle = "white";
1018
+ ctx.fillText(text, obj.x + 5, obj.y - 8);
1019
+ }
1020
+ });
1021
+ }
1022
+ if (showBoundingBoxes && results.text && selectedTypes.includes("text")) {
1023
+ results.text.filter((text) => text.confidence >= minConfidence).forEach((textItem) => {
1024
+ ctx.strokeStyle = "#10b981";
1025
+ ctx.lineWidth = 2;
1026
+ ctx.strokeRect(
1027
+ textItem.boundingBox.x,
1028
+ textItem.boundingBox.y,
1029
+ textItem.boundingBox.width,
1030
+ textItem.boundingBox.height
1031
+ );
1032
+ if (showConfidence) {
1033
+ ctx.fillStyle = "#10b981";
1034
+ ctx.font = "12px Inter, sans-serif";
1035
+ const text = `OCR (${Math.round(textItem.confidence * 100)}%)`;
1036
+ ctx.fillRect(
1037
+ textItem.boundingBox.x,
1038
+ textItem.boundingBox.y - 20,
1039
+ 80,
1040
+ 20
1041
+ );
1042
+ ctx.fillStyle = "white";
1043
+ ctx.fillText(
1044
+ text,
1045
+ textItem.boundingBox.x + 5,
1046
+ textItem.boundingBox.y - 6
1047
+ );
1048
+ }
1049
+ });
1050
+ }
1051
+ if (showBoundingBoxes && results.faces && selectedTypes.includes("faces")) {
1052
+ results.faces.filter((face) => face.confidence >= minConfidence).forEach((face) => {
1053
+ ctx.strokeStyle = "#f59e0b";
1054
+ ctx.lineWidth = 3;
1055
+ ctx.strokeRect(
1056
+ face.boundingBox.x,
1057
+ face.boundingBox.y,
1058
+ face.boundingBox.width,
1059
+ face.boundingBox.height
1060
+ );
1061
+ if (showConfidence) {
1062
+ ctx.fillStyle = "#f59e0b";
1063
+ ctx.font = "14px Inter, sans-serif";
1064
+ const text = `Face (${Math.round(face.confidence * 100)}%)`;
1065
+ const textWidth = ctx.measureText(text).width;
1066
+ ctx.fillRect(
1067
+ face.boundingBox.x,
1068
+ face.boundingBox.y - 25,
1069
+ textWidth + 10,
1070
+ 25
1071
+ );
1072
+ ctx.fillStyle = "white";
1073
+ ctx.fillText(text, face.boundingBox.x + 5, face.boundingBox.y - 8);
1074
+ }
1075
+ if (face.landmarks) {
1076
+ ctx.fillStyle = "#f59e0b";
1077
+ face.landmarks.forEach((landmark) => {
1078
+ ctx.beginPath();
1079
+ ctx.arc(landmark.x, landmark.y, 2, 0, 2 * Math.PI);
1080
+ ctx.fill();
1081
+ });
1082
+ }
1083
+ });
1084
+ }
1085
+ }, [
1086
+ imageRef,
1087
+ results,
1088
+ showBoundingBoxes,
1089
+ showConfidence,
1090
+ minConfidence,
1091
+ selectedTypes
1092
+ ]);
1093
+ return /* @__PURE__ */ jsxRuntime.jsx(
1094
+ "canvas",
1095
+ {
1096
+ ref: canvasRef,
1097
+ className: "absolute inset-0 pointer-events-none",
1098
+ style: {
1099
+ width: imageRef.current?.offsetWidth || "100%",
1100
+ height: imageRef.current?.offsetHeight || "100%"
1101
+ }
1102
+ }
1103
+ );
1104
+ };
1105
+ var ResultsPanel = ({
1106
+ results,
1107
+ isAnalyzing,
1108
+ onExport
1109
+ }) => {
1110
+ const copyToClipboard = (text) => {
1111
+ navigator.clipboard.writeText(text);
1112
+ };
1113
+ const exportResults = (format) => {
1114
+ if (!results) return;
1115
+ onExport(format);
1116
+ };
1117
+ if (isAnalyzing) {
1118
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center justify-center h-64", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center", children: [
1119
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-8 w-8 animate-spin mx-auto mb-4") }),
1120
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "Analyzing image..." })
1121
+ ] }) });
1122
+ }
1123
+ if (!results) {
1124
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center justify-center h-64", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center", children: [
1125
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { style: ui.css("h-8 w-8 mx-auto mb-4 text-muted-foreground") }),
1126
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "Upload an image to see analysis results" })
1127
+ ] }) });
1128
+ }
1129
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-4", children: [
1130
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1131
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h3", className: "text-lg font-semibold", children: "Analysis Results" }),
1132
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
1133
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "sm", children: [
1134
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { style: ui.css("h-4 w-4 mr-2") }),
1135
+ "Export"
1136
+ ] }) }),
1137
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuContent, { children: [
1138
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onClick: () => exportResults("json"), children: [
1139
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { style: ui.css("h-4 w-4 mr-2") }),
1140
+ "Export as JSON"
1141
+ ] }),
1142
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onClick: () => exportResults("pdf"), children: [
1143
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { style: ui.css("h-4 w-4 mr-2") }),
1144
+ "Export as PDF"
1145
+ ] })
1146
+ ] })
1147
+ ] })
1148
+ ] }),
1149
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Tabs, { defaultValue: "overview", ...ui.sx("w-full"), children: [
1150
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.TabsList, { ...ui.sx("grid w-full grid-cols-4"), children: [
1151
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "overview", children: "Overview" }),
1152
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "objects", children: "Objects" }),
1153
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "text", children: "Text" }),
1154
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "details", children: "Details" })
1155
+ ] }),
1156
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.TabsContent, { value: "overview", ...ui.sx("space-y-4"), children: [
1157
+ results.description && /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1158
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("text-sm flex items-center"), children: [
1159
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { style: ui.css("h-4 w-4 mr-2") }),
1160
+ "Scene Description"
1161
+ ] }) }),
1162
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { children: [
1163
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm", children: results.description }),
1164
+ /* @__PURE__ */ jsxRuntime.jsx(
1165
+ Button,
1166
+ {
1167
+ variant: "ghost",
1168
+ size: "sm",
1169
+ ...ui.sx("mt-2 h-6 px-2"),
1170
+ onClick: () => copyToClipboard(results.description),
1171
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { style: ui.css("h-3 w-3") })
1172
+ }
1173
+ )
1174
+ ] })
1175
+ ] }),
1176
+ results.tags && results.tags.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1177
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("text-sm flex items-center"), children: [
1178
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Tag, { style: ui.css("h-4 w-4 mr-2") }),
1179
+ "Tags"
1180
+ ] }) }),
1181
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-2", children: results.tags.map((tag, index) => /* @__PURE__ */ jsxRuntime.jsxs(Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: [
1182
+ tag.label,
1183
+ " (",
1184
+ Math.round(tag.confidence * 100),
1185
+ "%)"
1186
+ ] }, index)) }) })
1187
+ ] }),
1188
+ results.sentiment && /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1189
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("text-sm flex items-center"), children: [
1190
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Smile, { style: ui.css("h-4 w-4 mr-2") }),
1191
+ "Sentiment Analysis"
1192
+ ] }) }),
1193
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1194
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1195
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm", children: "Emotion:" }),
1196
+ /* @__PURE__ */ jsxRuntime.jsx(Badge, { children: results.sentiment.emotion })
1197
+ ] }),
1198
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1199
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm", children: "Confidence:" }),
1200
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "span", className: "text-sm", children: [
1201
+ Math.round(results.sentiment.confidence * 100),
1202
+ "%"
1203
+ ] })
1204
+ ] })
1205
+ ] }) })
1206
+ ] })
1207
+ ] }),
1208
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "objects", ...ui.sx("space-y-4"), children: results.objects && results.objects.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ...ui.sx("h-64"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2", children: results.objects.map((obj, index) => /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { ...ui.sx("p-3"), children: [
1209
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1210
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
1211
+ /* @__PURE__ */ jsxRuntime.jsx(
1212
+ ui.Box,
1213
+ {
1214
+ className: "w-3 h-3 rounded-sm",
1215
+ style: { backgroundColor: obj.color || "#3b82f6" }
1216
+ }
1217
+ ),
1218
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: obj.label })
1219
+ ] }),
1220
+ /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: "outline", children: [
1221
+ Math.round(obj.confidence * 100),
1222
+ "%"
1223
+ ] })
1224
+ ] }),
1225
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-xs text-muted-foreground mt-1", children: [
1226
+ "Position: (",
1227
+ obj.x,
1228
+ ", ",
1229
+ obj.y,
1230
+ ") Size: ",
1231
+ obj.width,
1232
+ "\xD7",
1233
+ obj.height
1234
+ ] })
1235
+ ] }) }, index)) }) }) : /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center py-8", children: [
1236
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Target, { style: ui.css("h-8 w-8 mx-auto mb-2 text-muted-foreground") }),
1237
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "No objects detected" })
1238
+ ] }) }),
1239
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "text", ...ui.sx("space-y-4"), children: results.text && results.text.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ...ui.sx("h-64"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2", children: results.text.map((textItem, index) => /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { ...ui.sx("p-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-start justify-between", children: [
1240
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex-1", children: [
1241
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm font-medium", children: textItem.text }),
1242
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-xs text-muted-foreground mt-1", children: [
1243
+ "Confidence: ",
1244
+ Math.round(textItem.confidence * 100),
1245
+ "%"
1246
+ ] })
1247
+ ] }),
1248
+ /* @__PURE__ */ jsxRuntime.jsx(
1249
+ Button,
1250
+ {
1251
+ variant: "ghost",
1252
+ size: "sm",
1253
+ ...ui.sx("h-6 w-6 p-0"),
1254
+ onClick: () => copyToClipboard(textItem.text),
1255
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { style: ui.css("h-3 w-3") })
1256
+ }
1257
+ )
1258
+ ] }) }) }, index)) }) }) : /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center py-8", children: [
1259
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Type, { style: ui.css("h-8 w-8 mx-auto mb-2 text-muted-foreground") }),
1260
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "No text detected" })
1261
+ ] }) }),
1262
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.TabsContent, { value: "details", ...ui.sx("space-y-4"), children: [
1263
+ results.colors && results.colors.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1264
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("text-sm flex items-center"), children: [
1265
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Palette, { style: ui.css("h-4 w-4 mr-2") }),
1266
+ "Color Palette"
1267
+ ] }) }),
1268
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2", children: results.colors.map((color, index) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-3", children: [
1269
+ /* @__PURE__ */ jsxRuntime.jsx(
1270
+ ui.Box,
1271
+ {
1272
+ className: "w-6 h-6 rounded border",
1273
+ style: { backgroundColor: color.color }
1274
+ }
1275
+ ),
1276
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex-1", children: [
1277
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-sm font-medium", children: color.color }),
1278
+ color.name && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-xs text-muted-foreground", children: color.name })
1279
+ ] }),
1280
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-sm", children: [
1281
+ color.percentage.toFixed(1),
1282
+ "%"
1283
+ ] })
1284
+ ] }, index)) }) })
1285
+ ] }),
1286
+ results.faces && results.faces.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1287
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("text-sm flex items-center"), children: [
1288
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Smile, { style: ui.css("h-4 w-4 mr-2") }),
1289
+ "Face Detection"
1290
+ ] }) }),
1291
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-3", children: results.faces.map((face, index) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1292
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1293
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "span", className: "text-sm font-medium", children: [
1294
+ "Face ",
1295
+ index + 1
1296
+ ] }),
1297
+ /* @__PURE__ */ jsxRuntime.jsxs(Badge, { variant: "outline", children: [
1298
+ Math.round(face.confidence * 100),
1299
+ "%"
1300
+ ] })
1301
+ ] }),
1302
+ face.age && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-sm", children: [
1303
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-muted-foreground", children: "Age:" }),
1304
+ " ~",
1305
+ face.age
1306
+ ] }),
1307
+ face.gender && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-sm", children: [
1308
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-muted-foreground", children: "Gender:" }),
1309
+ " ",
1310
+ face.gender
1311
+ ] }),
1312
+ face.emotion && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-sm", children: [
1313
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-muted-foreground", children: "Emotion:" }),
1314
+ " ",
1315
+ face.emotion
1316
+ ] })
1317
+ ] }, index)) }) })
1318
+ ] }),
1319
+ results.metadata && /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { children: [
1320
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("text-sm flex items-center"), children: [
1321
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BarChart3, { style: ui.css("h-4 w-4 mr-2") }),
1322
+ "Image Metadata"
1323
+ ] }) }),
1324
+ /* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2 text-sm", children: [
1325
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between", children: [
1326
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-muted-foreground", children: "Dimensions:" }),
1327
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1328
+ results.metadata.width,
1329
+ " \xD7 ",
1330
+ results.metadata.height
1331
+ ] })
1332
+ ] }),
1333
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between", children: [
1334
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-muted-foreground", children: "Format:" }),
1335
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: results.metadata.format.toUpperCase() })
1336
+ ] }),
1337
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between", children: [
1338
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-muted-foreground", children: "Size:" }),
1339
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
1340
+ (results.metadata.size / 1024 / 1024).toFixed(2),
1341
+ " MB"
1342
+ ] })
1343
+ ] })
1344
+ ] }) })
1345
+ ] })
1346
+ ] })
1347
+ ] })
1348
+ ] });
1349
+ };
1350
+ var AIVision = React10__namespace.forwardRef(
1351
+ ({
1352
+ className,
1353
+ onAnalysis,
1354
+ capabilities = [
1355
+ "object-detection",
1356
+ "scene-description",
1357
+ "ocr",
1358
+ "color-analysis",
1359
+ "tagging"
1360
+ ],
1361
+ maxFileSize = 10 * 1024 * 1024,
1362
+ // 10MB
1363
+ acceptedFormats = ["image/jpeg", "image/png", "image/webp", "image/gif"],
1364
+ apiEndpoint = "/api/vision",
1365
+ apiKey,
1366
+ defaultImage,
1367
+ enableCamera = true,
1368
+ enableUrl = true,
1369
+ enableGeneration = false,
1370
+ enableEditing = false,
1371
+ showConfidence = true,
1372
+ minConfidence = 0.5,
1373
+ ...props
1374
+ }, ref) => {
1375
+ const [currentImage, setCurrentImage] = React10__namespace.useState(
1376
+ defaultImage || null
1377
+ );
1378
+ const [isAnalyzing, setIsAnalyzing] = React10__namespace.useState(false);
1379
+ const [results, setResults] = React10__namespace.useState(null);
1380
+ const [isDragging, setIsDragging] = React10__namespace.useState(false);
1381
+ const [urlInput, setUrlInput] = React10__namespace.useState("");
1382
+ const [showBoundingBoxes, setShowBoundingBoxes] = React10__namespace.useState(true);
1383
+ const [confidenceThreshold, setConfidenceThreshold] = React10__namespace.useState(minConfidence);
1384
+ const [selectedTypes, setSelectedTypes] = React10__namespace.useState([
1385
+ "objects",
1386
+ "text",
1387
+ "faces"
1388
+ ]);
1389
+ const [generationPrompt, setGenerationPrompt] = React10__namespace.useState("");
1390
+ const [isGenerating, setIsGenerating] = React10__namespace.useState(false);
1391
+ const fileInputRef = React10__namespace.useRef(null);
1392
+ const imageRef = React10__namespace.useRef(null);
1393
+ const videoRef = React10__namespace.useRef(null);
1394
+ const [isCameraActive, setIsCameraActive] = React10__namespace.useState(false);
1395
+ const analyzeImage = async (imageData) => {
1396
+ setIsAnalyzing(true);
1397
+ await new Promise((resolve) => setTimeout(resolve, 2e3));
1398
+ const mockResults = {
1399
+ objects: [
1400
+ {
1401
+ x: 100,
1402
+ y: 150,
1403
+ width: 200,
1404
+ height: 150,
1405
+ confidence: 0.95,
1406
+ label: "Person",
1407
+ color: "#3b82f6"
1408
+ },
1409
+ {
1410
+ x: 350,
1411
+ y: 200,
1412
+ width: 120,
1413
+ height: 80,
1414
+ confidence: 0.87,
1415
+ label: "Car",
1416
+ color: "#ef4444"
1417
+ }
1418
+ ],
1419
+ description: "A street scene with a person walking next to a parked car. The image appears to be taken during daytime with good lighting conditions.",
1420
+ text: [
1421
+ {
1422
+ text: "STOP",
1423
+ confidence: 0.96,
1424
+ boundingBox: {
1425
+ x: 50,
1426
+ y: 50,
1427
+ width: 80,
1428
+ height: 30,
1429
+ confidence: 0.96,
1430
+ label: "STOP"
1431
+ }
1432
+ }
1433
+ ],
1434
+ colors: [
1435
+ { color: "#2563eb", percentage: 25.3, name: "Blue" },
1436
+ { color: "#dc2626", percentage: 18.7, name: "Red" },
1437
+ { color: "#16a34a", percentage: 15.2, name: "Green" },
1438
+ { color: "#6b7280", percentage: 41.8, name: "Gray" }
1439
+ ],
1440
+ tags: [
1441
+ { label: "outdoor", confidence: 0.98 },
1442
+ { label: "street", confidence: 0.92 },
1443
+ { label: "urban", confidence: 0.85 },
1444
+ { label: "daytime", confidence: 0.89 }
1445
+ ],
1446
+ faces: [
1447
+ {
1448
+ boundingBox: {
1449
+ x: 120,
1450
+ y: 160,
1451
+ width: 60,
1452
+ height: 80,
1453
+ confidence: 0.94,
1454
+ label: "Face"
1455
+ },
1456
+ confidence: 0.94,
1457
+ age: 35,
1458
+ gender: "male",
1459
+ emotion: "neutral"
1460
+ }
1461
+ ],
1462
+ sentiment: {
1463
+ emotion: "neutral",
1464
+ confidence: 0.76,
1465
+ valence: 0.2,
1466
+ arousal: 0.1
1467
+ },
1468
+ metadata: {
1469
+ width: 800,
1470
+ height: 600,
1471
+ format: "jpeg",
1472
+ size: 1024 * 500
1473
+ // 500KB
1474
+ }
1475
+ };
1476
+ setIsAnalyzing(false);
1477
+ return mockResults;
1478
+ };
1479
+ const handleFileUpload = async (files) => {
1480
+ if (!files || files.length === 0) return;
1481
+ const file = files[0];
1482
+ if (!acceptedFormats.includes(file.type)) {
1483
+ sonner.toast.error("Unsupported file format", {
1484
+ description: `Please use: ${acceptedFormats.join(", ")}`
1485
+ });
1486
+ return;
1487
+ }
1488
+ if (file.size > maxFileSize) {
1489
+ sonner.toast.error("File too large", {
1490
+ description: `Maximum size: ${maxFileSize / 1024 / 1024}MB`
1491
+ });
1492
+ return;
1493
+ }
1494
+ const imageUrl = URL.createObjectURL(file);
1495
+ setCurrentImage(imageUrl);
1496
+ try {
1497
+ const results2 = await analyzeImage(imageUrl);
1498
+ setResults(results2);
1499
+ onAnalysis?.(results2);
1500
+ } catch (error) {
1501
+ console.error("Analysis failed:", error);
1502
+ sonner.toast.error("Failed to analyze image", {
1503
+ description: "Please try again",
1504
+ action: {
1505
+ label: "Retry",
1506
+ onClick: () => handleFileUpload(files)
1507
+ }
1508
+ });
1509
+ }
1510
+ };
1511
+ const handleUrlSubmit = async () => {
1512
+ if (!urlInput.trim()) return;
1513
+ try {
1514
+ new URL(urlInput);
1515
+ setCurrentImage(urlInput);
1516
+ const results2 = await analyzeImage(urlInput);
1517
+ setResults(results2);
1518
+ onAnalysis?.(results2);
1519
+ } catch (error) {
1520
+ sonner.toast.error("Invalid URL or failed to load image", {
1521
+ description: "Please check the URL and try again",
1522
+ action: {
1523
+ label: "Retry",
1524
+ onClick: () => handleUrlSubmit()
1525
+ }
1526
+ });
1527
+ }
1528
+ };
1529
+ const startCamera = async () => {
1530
+ try {
1531
+ const stream = await navigator.mediaDevices.getUserMedia({
1532
+ video: { width: 640, height: 480 }
1533
+ });
1534
+ if (videoRef.current) {
1535
+ videoRef.current.srcObject = stream;
1536
+ setIsCameraActive(true);
1537
+ }
1538
+ } catch (error) {
1539
+ sonner.toast.error("Failed to access camera", {
1540
+ description: "Please check camera permissions"
1541
+ });
1542
+ }
1543
+ };
1544
+ const capturePhoto = () => {
1545
+ if (!videoRef.current) return;
1546
+ const canvas = document.createElement("canvas");
1547
+ const video = videoRef.current;
1548
+ canvas.width = video.videoWidth;
1549
+ canvas.height = video.videoHeight;
1550
+ const ctx = canvas.getContext("2d");
1551
+ ctx?.drawImage(video, 0, 0);
1552
+ const imageData = canvas.toDataURL("image/jpeg");
1553
+ setCurrentImage(imageData);
1554
+ const stream = video.srcObject;
1555
+ stream?.getTracks().forEach((track) => track.stop());
1556
+ setIsCameraActive(false);
1557
+ analyzeImage().then((results2) => {
1558
+ setResults(results2);
1559
+ onAnalysis?.(results2);
1560
+ });
1561
+ };
1562
+ const handleDragOver = (e) => {
1563
+ e.preventDefault();
1564
+ setIsDragging(true);
1565
+ };
1566
+ const handleDragLeave = (e) => {
1567
+ e.preventDefault();
1568
+ setIsDragging(false);
1569
+ };
1570
+ const handleDrop = (e) => {
1571
+ e.preventDefault();
1572
+ setIsDragging(false);
1573
+ handleFileUpload(e.dataTransfer.files);
1574
+ };
1575
+ const generateImage = async () => {
1576
+ if (!generationPrompt.trim()) return;
1577
+ setIsGenerating(true);
1578
+ await new Promise((resolve) => setTimeout(resolve, 3e3));
1579
+ const generatedUrl = `https://picsum.photos/800/600?random=${Date.now()}`;
1580
+ setCurrentImage(generatedUrl);
1581
+ setIsGenerating(false);
1582
+ const results2 = await analyzeImage();
1583
+ setResults(results2);
1584
+ onAnalysis?.(results2);
1585
+ };
1586
+ const exportResults = (format) => {
1587
+ if (!results) return;
1588
+ if (format === "json") {
1589
+ const dataStr = JSON.stringify(results, null, 2);
1590
+ const dataBlob = new Blob([dataStr], { type: "application/json" });
1591
+ const url = URL.createObjectURL(dataBlob);
1592
+ const link = document.createElement("a");
1593
+ link.href = url;
1594
+ link.download = "vision-analysis.json";
1595
+ link.click();
1596
+ URL.revokeObjectURL(url);
1597
+ sonner.toast.success("Analysis exported", {
1598
+ description: "JSON file has been downloaded"
1599
+ });
1600
+ } else if (format === "pdf") {
1601
+ sonner.toast.info("PDF export not available", {
1602
+ description: "This feature is not implemented in the demo"
1603
+ });
1604
+ }
1605
+ };
1606
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1607
+ ui.Box,
1608
+ {
1609
+ ref,
1610
+ className: ui.cn("flex flex-col h-full", className),
1611
+ ...props,
1612
+ children: [
1613
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "border-b p-4", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
1614
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1615
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h2", className: "text-lg font-semibold", children: "AI Vision" }),
1616
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "Analyze images with AI-powered computer vision" })
1617
+ ] }),
1618
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
1619
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "bounding-boxes", ...ui.sx("text-sm"), children: "Show Overlays" }),
1620
+ /* @__PURE__ */ jsxRuntime.jsx(
1621
+ Switch2,
1622
+ {
1623
+ id: "bounding-boxes",
1624
+ checked: showBoundingBoxes,
1625
+ onCheckedChange: setShowBoundingBoxes
1626
+ }
1627
+ )
1628
+ ] })
1629
+ ] }) }),
1630
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-1 overflow-hidden", children: [
1631
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex-1 flex flex-col", children: [
1632
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "border-b p-4", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Tabs, { defaultValue: "upload", ...ui.sx("w-full"), children: [
1633
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.TabsList, { ...ui.sx("grid w-full grid-cols-4"), children: [
1634
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "upload", children: "Upload" }),
1635
+ enableUrl && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "url", children: "URL" }),
1636
+ enableCamera && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "camera", children: "Camera" }),
1637
+ enableGeneration && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "generate", children: "Generate" })
1638
+ ] }),
1639
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "upload", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(
1640
+ ui.Box,
1641
+ {
1642
+ className: ui.cn(
1643
+ "border-2 border-dashed rounded-lg p-8 text-center transition-colors",
1644
+ isDragging ? "border-primary bg-primary/10" : "border-muted-foreground/25",
1645
+ "hover:border-primary/50"
1646
+ ),
1647
+ onDragOver: handleDragOver,
1648
+ onDragLeave: handleDragLeave,
1649
+ onDrop: handleDrop,
1650
+ onClick: () => fileInputRef.current?.click(),
1651
+ children: [
1652
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { style: ui.css("h-10 w-10 mx-auto mb-4 text-muted-foreground") }),
1653
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm font-medium mb-2", children: "Drop an image here or click to upload" }),
1654
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "p", className: "text-xs text-muted-foreground", children: [
1655
+ "Supports:",
1656
+ " ",
1657
+ acceptedFormats.map((f) => f.split("/")[1]).join(", "),
1658
+ "(Max: ",
1659
+ maxFileSize / 1024 / 1024,
1660
+ "MB)"
1661
+ ] }),
1662
+ /* @__PURE__ */ jsxRuntime.jsx(
1663
+ ui.Box,
1664
+ {
1665
+ tag: "input",
1666
+ ref: fileInputRef,
1667
+ type: "file",
1668
+ accept: acceptedFormats.join(","),
1669
+ onChange: (e) => handleFileUpload(e.target.files),
1670
+ className: "hidden"
1671
+ }
1672
+ )
1673
+ ]
1674
+ }
1675
+ ) }),
1676
+ enableUrl && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "url", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex space-x-2", children: [
1677
+ /* @__PURE__ */ jsxRuntime.jsx(
1678
+ Input,
1679
+ {
1680
+ placeholder: "Enter image URL...",
1681
+ value: urlInput,
1682
+ onChange: (e) => setUrlInput(e.target.value),
1683
+ onKeyDown: (e) => e.key === "Enter" && handleUrlSubmit()
1684
+ }
1685
+ ),
1686
+ /* @__PURE__ */ jsxRuntime.jsx(
1687
+ Button,
1688
+ {
1689
+ onClick: handleUrlSubmit,
1690
+ disabled: !urlInput.trim(),
1691
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link, { style: ui.css("h-4 w-4") })
1692
+ }
1693
+ )
1694
+ ] }) }),
1695
+ enableCamera && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "camera", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-4", children: !isCameraActive ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { onClick: startCamera, ...ui.sx("w-full"), children: [
1696
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { style: ui.css("h-4 w-4 mr-2") }),
1697
+ "Start Camera"
1698
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1699
+ /* @__PURE__ */ jsxRuntime.jsx(
1700
+ "video",
1701
+ {
1702
+ ref: videoRef,
1703
+ autoPlay: true,
1704
+ playsInline: true,
1705
+ className: "w-full rounded-lg border"
1706
+ }
1707
+ ),
1708
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: capturePhoto, ...ui.sx("w-full"), children: "Capture Photo" })
1709
+ ] }) }) }),
1710
+ enableGeneration && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "generate", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-3", children: [
1711
+ /* @__PURE__ */ jsxRuntime.jsx(
1712
+ Textarea,
1713
+ {
1714
+ placeholder: "Describe the image you want to generate...",
1715
+ value: generationPrompt,
1716
+ onChange: (e) => setGenerationPrompt(e.target.value),
1717
+ ...ui.sx("min-h-20")
1718
+ }
1719
+ ),
1720
+ /* @__PURE__ */ jsxRuntime.jsx(
1721
+ Button,
1722
+ {
1723
+ onClick: generateImage,
1724
+ disabled: !generationPrompt.trim() || isGenerating,
1725
+ ...ui.sx("w-full"),
1726
+ children: isGenerating ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1727
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-4 w-4 mr-2 animate-spin") }),
1728
+ "Generating..."
1729
+ ] }) : "Generate Image"
1730
+ }
1731
+ )
1732
+ ] }) })
1733
+ ] }) }),
1734
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex-1 p-4", children: currentImage ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "relative h-full border rounded-lg overflow-hidden", children: [
1735
+ /* @__PURE__ */ jsxRuntime.jsx(
1736
+ ui.Box,
1737
+ {
1738
+ tag: "img",
1739
+ ref: imageRef,
1740
+ src: currentImage,
1741
+ alt: "Analysis target",
1742
+ className: "w-full h-full object-contain",
1743
+ onLoad: () => {
1744
+ if (results) {
1745
+ setShowBoundingBoxes((prev) => !prev);
1746
+ setTimeout(() => setShowBoundingBoxes(true), 10);
1747
+ }
1748
+ }
1749
+ }
1750
+ ),
1751
+ results && showBoundingBoxes && /* @__PURE__ */ jsxRuntime.jsx(
1752
+ CanvasOverlay,
1753
+ {
1754
+ imageRef,
1755
+ results,
1756
+ showBoundingBoxes,
1757
+ showConfidence,
1758
+ minConfidence: confidenceThreshold,
1759
+ selectedTypes
1760
+ }
1761
+ )
1762
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "h-full border-2 border-dashed rounded-lg flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center", children: [
1763
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { style: ui.css("h-12 w-12 mx-auto mb-4 text-muted-foreground") }),
1764
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-lg font-medium mb-2", children: "No image selected" }),
1765
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-muted-foreground", children: "Upload an image to start analysis" })
1766
+ ] }) }) })
1767
+ ] }),
1768
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "w-96 border-l flex flex-col", children: [
1769
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "p-4 border-b", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-4", children: [
1770
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1771
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Label, { ...ui.sx("text-sm"), children: [
1772
+ "Confidence Threshold:",
1773
+ " ",
1774
+ Math.round(confidenceThreshold * 100),
1775
+ "%"
1776
+ ] }),
1777
+ /* @__PURE__ */ jsxRuntime.jsx(
1778
+ Slider,
1779
+ {
1780
+ value: [confidenceThreshold],
1781
+ onValueChange: ([value]) => setConfidenceThreshold(value),
1782
+ max: 1,
1783
+ min: 0,
1784
+ step: 0.05,
1785
+ ...ui.sx("w-full")
1786
+ }
1787
+ )
1788
+ ] }),
1789
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
1790
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { ...ui.sx("text-sm"), children: "Show Detection Types" }),
1791
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-2", children: [
1792
+ { key: "objects", label: "Objects", icon: lucideReact.Target },
1793
+ { key: "text", label: "Text", icon: lucideReact.Type },
1794
+ { key: "faces", label: "Faces", icon: lucideReact.Smile }
1795
+ ].map(({ key, label, icon: Icon }) => /* @__PURE__ */ jsxRuntime.jsxs(
1796
+ Button,
1797
+ {
1798
+ variant: selectedTypes.includes(key) ? "default" : "outline",
1799
+ size: "sm",
1800
+ onClick: () => {
1801
+ setSelectedTypes(
1802
+ (prev) => prev.includes(key) ? prev.filter((t) => t !== key) : [...prev, key]
1803
+ );
1804
+ },
1805
+ children: [
1806
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { style: ui.css("h-3 w-3 mr-1") }),
1807
+ label
1808
+ ]
1809
+ },
1810
+ key
1811
+ )) })
1812
+ ] })
1813
+ ] }) }),
1814
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ...ui.sx("h-full p-4"), children: /* @__PURE__ */ jsxRuntime.jsx(
1815
+ ResultsPanel,
1816
+ {
1817
+ results,
1818
+ isAnalyzing,
1819
+ onExport: exportResults
1820
+ }
1821
+ ) }) })
1822
+ ] })
1823
+ ] })
1824
+ ]
1825
+ }
1826
+ );
1827
+ }
1828
+ );
1829
+ AIVision.displayName = "AIVision";
1830
+
1831
+ exports.AIVision = AIVision;