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