@luxfi/ui 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (744) hide show
  1. package/dist/3d-button.cjs +298 -0
  2. package/dist/3d-button.d.ts +52 -0
  3. package/dist/3d-button.d.ts.map +1 -0
  4. package/dist/3d-button.js +273 -0
  5. package/dist/3d-card.cjs +236 -0
  6. package/dist/3d-card.d.ts +29 -0
  7. package/dist/3d-card.d.ts.map +1 -0
  8. package/dist/3d-card.js +209 -0
  9. package/dist/3d-carousel.cjs +375 -0
  10. package/dist/3d-carousel.d.ts +26 -0
  11. package/dist/3d-carousel.d.ts.map +1 -0
  12. package/dist/3d-carousel.js +348 -0
  13. package/dist/3d-grid.cjs +360 -0
  14. package/dist/3d-grid.d.ts +49 -0
  15. package/dist/3d-grid.d.ts.map +1 -0
  16. package/dist/3d-grid.js +335 -0
  17. package/dist/3d-marquee.cjs +8669 -0
  18. package/dist/3d-marquee.d.ts +65 -0
  19. package/dist/3d-marquee.d.ts.map +1 -0
  20. package/dist/3d-marquee.js +8645 -0
  21. package/dist/3d-model-viewer.cjs +909 -0
  22. package/dist/3d-model-viewer.d.ts +45 -0
  23. package/dist/3d-model-viewer.d.ts.map +1 -0
  24. package/dist/3d-model-viewer.js +886 -0
  25. package/dist/3d-pin.cjs +46 -0
  26. package/dist/3d-pin.d.ts +8 -0
  27. package/dist/3d-pin.d.ts.map +1 -0
  28. package/dist/3d-pin.js +24 -0
  29. package/dist/3d-scene.cjs +439 -0
  30. package/dist/3d-scene.d.ts +76 -0
  31. package/dist/3d-scene.d.ts.map +1 -0
  32. package/dist/3d-scene.js +407 -0
  33. package/dist/3d-text.cjs +367 -0
  34. package/dist/3d-text.d.ts +62 -0
  35. package/dist/3d-text.d.ts.map +1 -0
  36. package/dist/3d-text.js +341 -0
  37. package/dist/advanced-chart.cjs +53 -0
  38. package/dist/advanced-chart.d.ts +6 -0
  39. package/dist/advanced-chart.d.ts.map +1 -0
  40. package/dist/advanced-chart.js +51 -0
  41. package/dist/advanced-navigation-bar.cjs +459 -0
  42. package/dist/advanced-navigation-bar.d.ts +14 -0
  43. package/dist/advanced-navigation-bar.d.ts.map +1 -0
  44. package/dist/advanced-navigation-bar.js +437 -0
  45. package/dist/ai-actions.cjs +57 -0
  46. package/dist/ai-actions.d.ts +14 -0
  47. package/dist/ai-actions.d.ts.map +1 -0
  48. package/dist/ai-actions.js +35 -0
  49. package/dist/ai-agents.cjs +1764 -0
  50. package/dist/ai-agents.d.ts +56 -0
  51. package/dist/ai-agents.d.ts.map +1 -0
  52. package/dist/ai-agents.js +1740 -0
  53. package/dist/ai-assistant.cjs +907 -0
  54. package/dist/ai-assistant.d.ts +28 -0
  55. package/dist/ai-assistant.d.ts.map +1 -0
  56. package/dist/ai-assistant.js +886 -0
  57. package/dist/ai-chat.cjs +1165 -0
  58. package/dist/ai-chat.d.ts +56 -0
  59. package/dist/ai-chat.d.ts.map +1 -0
  60. package/dist/ai-chat.js +1141 -0
  61. package/dist/ai-code.cjs +1866 -0
  62. package/dist/ai-code.d.ts +58 -0
  63. package/dist/ai-code.d.ts.map +1 -0
  64. package/dist/ai-code.js +1841 -0
  65. package/dist/ai-model-selector-navigation-bar.cjs +59 -0
  66. package/dist/ai-model-selector-navigation-bar.d.ts +15 -0
  67. package/dist/ai-model-selector-navigation-bar.d.ts.map +1 -0
  68. package/dist/ai-model-selector-navigation-bar.js +37 -0
  69. package/dist/ai-models.cjs +41 -0
  70. package/dist/ai-models.d.ts +15 -0
  71. package/dist/ai-models.d.ts.map +1 -0
  72. package/dist/ai-models.js +19 -0
  73. package/dist/ai-playground.cjs +1110 -0
  74. package/dist/ai-playground.d.ts +66 -0
  75. package/dist/ai-playground.d.ts.map +1 -0
  76. package/dist/ai-playground.js +1088 -0
  77. package/dist/ai-tools.cjs +1043 -0
  78. package/dist/ai-tools.d.ts +23 -0
  79. package/dist/ai-tools.d.ts.map +1 -0
  80. package/dist/ai-tools.js +1022 -0
  81. package/dist/ai-vision.cjs +1831 -0
  82. package/dist/ai-vision.d.ts +74 -0
  83. package/dist/ai-vision.d.ts.map +1 -0
  84. package/dist/ai-vision.js +1810 -0
  85. package/dist/ai-voice-settings.cjs +1511 -0
  86. package/dist/ai-voice-settings.d.ts +100 -0
  87. package/dist/ai-voice-settings.d.ts.map +1 -0
  88. package/dist/ai-voice-settings.js +1478 -0
  89. package/dist/ai-voice.cjs +1522 -0
  90. package/dist/ai-voice.d.ts +72 -0
  91. package/dist/ai-voice.d.ts.map +1 -0
  92. package/dist/ai-voice.js +1501 -0
  93. package/dist/alert.cjs +13 -142
  94. package/dist/alert.js +14 -143
  95. package/dist/android.cjs +127 -0
  96. package/dist/android.d.ts +19 -0
  97. package/dist/android.d.ts.map +1 -0
  98. package/dist/android.js +104 -0
  99. package/dist/animated-background.cjs +8830 -0
  100. package/dist/animated-background.d.ts +103 -0
  101. package/dist/animated-background.d.ts.map +1 -0
  102. package/dist/animated-background.js +8824 -0
  103. package/dist/animated-beam.cjs +8438 -0
  104. package/dist/animated-beam.d.ts +15 -0
  105. package/dist/animated-beam.d.ts.map +1 -0
  106. package/dist/animated-beam.js +8417 -0
  107. package/dist/animated-cursor.cjs +269 -0
  108. package/dist/animated-cursor.d.ts +70 -0
  109. package/dist/animated-cursor.d.ts.map +1 -0
  110. package/dist/animated-cursor.js +264 -0
  111. package/dist/animated-icon.cjs +8927 -0
  112. package/dist/animated-icon.d.ts +119 -0
  113. package/dist/animated-icon.d.ts.map +1 -0
  114. package/dist/animated-icon.js +8902 -0
  115. package/dist/animated-list.cjs +9226 -0
  116. package/dist/animated-list.d.ts +126 -0
  117. package/dist/animated-list.d.ts.map +1 -0
  118. package/dist/animated-list.js +9201 -0
  119. package/dist/animated-number.cjs +8773 -0
  120. package/dist/animated-number.d.ts +127 -0
  121. package/dist/animated-number.d.ts.map +1 -0
  122. package/dist/animated-number.js +8767 -0
  123. package/dist/animated-testimonials.cjs +8653 -0
  124. package/dist/animated-testimonials.d.ts +17 -0
  125. package/dist/animated-testimonials.d.ts.map +1 -0
  126. package/dist/animated-testimonials.js +8632 -0
  127. package/dist/animated-text.cjs +8914 -0
  128. package/dist/animated-text.d.ts +65 -0
  129. package/dist/animated-text.d.ts.map +1 -0
  130. package/dist/animated-text.js +8890 -0
  131. package/dist/animated-tooltip.cjs +8624 -0
  132. package/dist/animated-tooltip.d.ts +9 -0
  133. package/dist/animated-tooltip.d.ts.map +1 -0
  134. package/dist/animated-tooltip.js +8603 -0
  135. package/dist/announcement.cjs +465 -0
  136. package/dist/announcement.d.ts +9 -0
  137. package/dist/announcement.d.ts.map +1 -0
  138. package/dist/announcement.js +443 -0
  139. package/dist/app-switcher-navigation-bar.cjs +470 -0
  140. package/dist/app-switcher-navigation-bar.d.ts +15 -0
  141. package/dist/app-switcher-navigation-bar.d.ts.map +1 -0
  142. package/dist/app-switcher-navigation-bar.js +448 -0
  143. package/dist/apple-cards-carousel.cjs +9356 -0
  144. package/dist/apple-cards-carousel.d.ts +36 -0
  145. package/dist/apple-cards-carousel.d.ts.map +1 -0
  146. package/dist/apple-cards-carousel.js +9334 -0
  147. package/dist/apple-hello-effect.cjs +8380 -0
  148. package/dist/apple-hello-effect.d.ts +8 -0
  149. package/dist/apple-hello-effect.d.ts.map +1 -0
  150. package/dist/apple-hello-effect.js +8359 -0
  151. package/dist/auth.cjs +6 -5
  152. package/dist/auth.d.ts.map +1 -1
  153. package/dist/auth.js +6 -5
  154. package/dist/badge.cjs +28 -164
  155. package/dist/badge.d.ts +2 -5
  156. package/dist/badge.d.ts.map +1 -1
  157. package/dist/badge.js +29 -165
  158. package/dist/bank.d.ts +6 -6
  159. package/dist/banner.cjs +78 -0
  160. package/dist/banner.d.ts +20 -0
  161. package/dist/banner.d.ts.map +1 -0
  162. package/dist/banner.js +55 -0
  163. package/dist/breadcrumb-and-filters-navigation-bar.cjs +51 -0
  164. package/dist/breadcrumb-and-filters-navigation-bar.d.ts +10 -0
  165. package/dist/breadcrumb-and-filters-navigation-bar.d.ts.map +1 -0
  166. package/dist/breadcrumb-and-filters-navigation-bar.js +29 -0
  167. package/dist/breadcrumb-navigation-bar.cjs +37 -0
  168. package/dist/breadcrumb-navigation-bar.d.ts +10 -0
  169. package/dist/breadcrumb-navigation-bar.d.ts.map +1 -0
  170. package/dist/breadcrumb-navigation-bar.js +15 -0
  171. package/dist/button.cjs +21 -150
  172. package/dist/button.d.ts +1 -1
  173. package/dist/button.d.ts.map +1 -1
  174. package/dist/button.js +21 -150
  175. package/dist/calendar.cjs +55 -0
  176. package/dist/calendar.d.ts +9 -0
  177. package/dist/calendar.d.ts.map +1 -0
  178. package/dist/calendar.js +53 -0
  179. package/dist/centered-logo-navigation-bar.cjs +37 -0
  180. package/dist/centered-logo-navigation-bar.d.ts +15 -0
  181. package/dist/centered-logo-navigation-bar.d.ts.map +1 -0
  182. package/dist/centered-logo-navigation-bar.js +15 -0
  183. package/dist/chart.cjs +266 -0
  184. package/dist/chart.d.ts +52 -0
  185. package/dist/chart.d.ts.map +1 -0
  186. package/dist/chart.js +238 -0
  187. package/dist/choicebox.cjs +77 -0
  188. package/dist/choicebox.d.ts +15 -0
  189. package/dist/choicebox.d.ts.map +1 -0
  190. package/dist/choicebox.js +55 -0
  191. package/dist/chrome.cjs +36 -30
  192. package/dist/chrome.d.ts.map +1 -1
  193. package/dist/chrome.js +37 -31
  194. package/dist/code-block.cjs +871 -0
  195. package/dist/code-block.d.ts +38 -0
  196. package/dist/code-block.d.ts.map +1 -0
  197. package/dist/code-block.js +849 -0
  198. package/dist/code-compare.cjs +1714 -0
  199. package/dist/code-compare.d.ts +46 -0
  200. package/dist/code-compare.d.ts.map +1 -0
  201. package/dist/code-compare.js +1692 -0
  202. package/dist/code-diff.cjs +1073 -0
  203. package/dist/code-diff.d.ts +42 -0
  204. package/dist/code-diff.d.ts.map +1 -0
  205. package/dist/code-diff.js +1051 -0
  206. package/dist/code-editor.cjs +641 -0
  207. package/dist/code-editor.d.ts +23 -0
  208. package/dist/code-editor.d.ts.map +1 -0
  209. package/dist/code-editor.js +616 -0
  210. package/dist/code-explorer.cjs +729 -0
  211. package/dist/code-explorer.d.ts +41 -0
  212. package/dist/code-explorer.d.ts.map +1 -0
  213. package/dist/code-explorer.js +707 -0
  214. package/dist/code-preview.cjs +1349 -0
  215. package/dist/code-preview.d.ts +38 -0
  216. package/dist/code-preview.d.ts.map +1 -0
  217. package/dist/code-preview.js +1327 -0
  218. package/dist/code-snippet.cjs +920 -0
  219. package/dist/code-snippet.d.ts +48 -0
  220. package/dist/code-snippet.d.ts.map +1 -0
  221. package/dist/code-snippet.js +897 -0
  222. package/dist/code-tabs.cjs +76 -0
  223. package/dist/code-tabs.d.ts +12 -0
  224. package/dist/code-tabs.d.ts.map +1 -0
  225. package/dist/code-tabs.js +54 -0
  226. package/dist/code-terminal.cjs +894 -0
  227. package/dist/code-terminal.d.ts +48 -0
  228. package/dist/code-terminal.d.ts.map +1 -0
  229. package/dist/code-terminal.js +872 -0
  230. package/dist/collaboration-navigation-bar.cjs +49 -0
  231. package/dist/collaboration-navigation-bar.d.ts +11 -0
  232. package/dist/collaboration-navigation-bar.d.ts.map +1 -0
  233. package/dist/collaboration-navigation-bar.js +27 -0
  234. package/dist/collapsible.cjs +34 -155
  235. package/dist/collapsible.d.ts.map +1 -1
  236. package/dist/collapsible.js +34 -155
  237. package/dist/color-picker.cjs +516 -0
  238. package/dist/color-picker.d.ts +10 -0
  239. package/dist/color-picker.d.ts.map +1 -0
  240. package/dist/color-picker.js +495 -0
  241. package/dist/combobox.cjs +488 -0
  242. package/dist/combobox.d.ts +13 -0
  243. package/dist/combobox.d.ts.map +1 -0
  244. package/dist/combobox.js +466 -0
  245. package/dist/communication-navigation-bar.cjs +438 -0
  246. package/dist/communication-navigation-bar.d.ts +7 -0
  247. package/dist/communication-navigation-bar.d.ts.map +1 -0
  248. package/dist/communication-navigation-bar.js +416 -0
  249. package/dist/company-profile.cjs +46 -0
  250. package/dist/company-profile.d.ts +10 -0
  251. package/dist/company-profile.d.ts.map +1 -0
  252. package/dist/company-profile.js +44 -0
  253. package/dist/comparison.cjs +60 -0
  254. package/dist/comparison.d.ts +16 -0
  255. package/dist/comparison.d.ts.map +1 -0
  256. package/dist/comparison.js +38 -0
  257. package/dist/context-switcher-navigation-bar.cjs +51 -0
  258. package/dist/context-switcher-navigation-bar.d.ts +10 -0
  259. package/dist/context-switcher-navigation-bar.d.ts.map +1 -0
  260. package/dist/context-switcher-navigation-bar.js +29 -0
  261. package/dist/credit-card.cjs +77 -0
  262. package/dist/credit-card.d.ts +11 -0
  263. package/dist/credit-card.d.ts.map +1 -0
  264. package/dist/credit-card.js +55 -0
  265. package/dist/crypto-screener.cjs +43 -0
  266. package/dist/crypto-screener.d.ts +4 -0
  267. package/dist/crypto-screener.d.ts.map +1 -0
  268. package/dist/crypto-screener.js +41 -0
  269. package/dist/cursor.cjs +71 -0
  270. package/dist/cursor.d.ts +9 -0
  271. package/dist/cursor.d.ts.map +1 -0
  272. package/dist/cursor.js +49 -0
  273. package/dist/dashboard-navigation-bar.cjs +441 -0
  274. package/dist/dashboard-navigation-bar.d.ts +11 -0
  275. package/dist/dashboard-navigation-bar.d.ts.map +1 -0
  276. package/dist/dashboard-navigation-bar.js +419 -0
  277. package/dist/dialog-stack.cjs +460 -0
  278. package/dist/dialog-stack.d.ts +13 -0
  279. package/dist/dialog-stack.d.ts.map +1 -0
  280. package/dist/dialog-stack.js +438 -0
  281. package/dist/dialog.cjs +12 -11
  282. package/dist/dialog.d.ts +1 -1
  283. package/dist/dialog.d.ts.map +1 -1
  284. package/dist/dialog.js +12 -11
  285. package/dist/direction.cjs +26 -0
  286. package/dist/direction.d.ts +20 -0
  287. package/dist/direction.d.ts.map +1 -0
  288. package/dist/direction.js +23 -0
  289. package/dist/dock.cjs +8675 -0
  290. package/dist/dock.d.ts +20 -0
  291. package/dist/dock.d.ts.map +1 -0
  292. package/dist/dock.js +8653 -0
  293. package/dist/dropzone.cjs +116 -0
  294. package/dist/dropzone.d.ts +11 -0
  295. package/dist/dropzone.d.ts.map +1 -0
  296. package/dist/dropzone.js +94 -0
  297. package/dist/e-commerce-navigation-bar.cjs +442 -0
  298. package/dist/e-commerce-navigation-bar.d.ts +12 -0
  299. package/dist/e-commerce-navigation-bar.d.ts.map +1 -0
  300. package/dist/e-commerce-navigation-bar.js +420 -0
  301. package/dist/editor.cjs +497 -0
  302. package/dist/editor.d.ts +9 -0
  303. package/dist/editor.d.ts.map +1 -0
  304. package/dist/editor.js +475 -0
  305. package/dist/empty.cjs +117 -0
  306. package/dist/empty.d.ts +18 -0
  307. package/dist/empty.d.ts.map +1 -0
  308. package/dist/empty.js +110 -0
  309. package/dist/engine.cjs +91 -0
  310. package/dist/engine.js +86 -0
  311. package/dist/field.cjs +2 -1
  312. package/dist/field.d.ts.map +1 -1
  313. package/dist/field.js +3 -2
  314. package/dist/financials.cjs +66 -0
  315. package/dist/financials.d.ts +12 -0
  316. package/dist/financials.d.ts.map +1 -0
  317. package/dist/financials.js +64 -0
  318. package/dist/forex-screener.cjs +44 -0
  319. package/dist/forex-screener.d.ts +4 -0
  320. package/dist/forex-screener.d.ts.map +1 -0
  321. package/dist/forex-screener.js +42 -0
  322. package/dist/gantt.cjs +65 -0
  323. package/dist/gantt.d.ts +13 -0
  324. package/dist/gantt.d.ts.map +1 -0
  325. package/dist/gantt.js +43 -0
  326. package/dist/grid-pattern.cjs +327 -0
  327. package/dist/grid-pattern.d.ts +111 -0
  328. package/dist/grid-pattern.d.ts.map +1 -0
  329. package/dist/grid-pattern.js +304 -0
  330. package/dist/hooks/use-mobile.d.ts +3 -0
  331. package/dist/hooks/use-mobile.d.ts.map +1 -0
  332. package/dist/icon-button.cjs +13 -142
  333. package/dist/icon-button.js +14 -143
  334. package/dist/icon-navigation-bar.cjs +48 -0
  335. package/dist/icon-navigation-bar.d.ts +11 -0
  336. package/dist/icon-navigation-bar.d.ts.map +1 -0
  337. package/dist/icon-navigation-bar.js +26 -0
  338. package/dist/image-crop.cjs +482 -0
  339. package/dist/image-crop.d.ts +9 -0
  340. package/dist/image-crop.d.ts.map +1 -0
  341. package/dist/image-crop.js +460 -0
  342. package/dist/image-zoom.cjs +77 -0
  343. package/dist/image-zoom.d.ts +7 -0
  344. package/dist/image-zoom.d.ts.map +1 -0
  345. package/dist/image-zoom.js +55 -0
  346. package/dist/image.cjs +15 -143
  347. package/dist/image.d.ts.map +1 -1
  348. package/dist/image.js +16 -144
  349. package/dist/index.cjs +30274 -1201
  350. package/dist/index.d.ts +121 -0
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +30006 -1220
  353. package/dist/ink.cjs +17 -0
  354. package/dist/ink.js +15 -0
  355. package/dist/input-otp.cjs +72 -0
  356. package/dist/input-otp.d.ts +35 -0
  357. package/dist/input-otp.d.ts.map +1 -0
  358. package/dist/input-otp.js +47 -0
  359. package/dist/iphone-15-pro.cjs +61 -0
  360. package/dist/iphone-15-pro.d.ts +9 -0
  361. package/dist/iphone-15-pro.d.ts.map +1 -0
  362. package/dist/iphone-15-pro.js +39 -0
  363. package/dist/item.cjs +215 -0
  364. package/dist/item.d.ts +41 -0
  365. package/dist/item.d.ts.map +1 -0
  366. package/dist/item.js +200 -0
  367. package/dist/kanban.cjs +1354 -0
  368. package/dist/kanban.d.ts +36 -0
  369. package/dist/kanban.d.ts.map +1 -0
  370. package/dist/kanban.js +1330 -0
  371. package/dist/kbd.cjs +40 -0
  372. package/dist/kbd.d.ts +4 -0
  373. package/dist/kbd.d.ts.map +1 -0
  374. package/dist/kbd.js +37 -0
  375. package/dist/limelight-nav-navigation-bar.cjs +51 -0
  376. package/dist/limelight-nav-navigation-bar.d.ts +10 -0
  377. package/dist/limelight-nav-navigation-bar.d.ts.map +1 -0
  378. package/dist/limelight-nav-navigation-bar.js +29 -0
  379. package/dist/limelight-nav.cjs +570 -0
  380. package/dist/limelight-nav.d.ts +10 -0
  381. package/dist/limelight-nav.d.ts.map +1 -0
  382. package/dist/limelight-nav.js +549 -0
  383. package/dist/link.cjs +29 -152
  384. package/dist/link.js +30 -153
  385. package/dist/list.cjs +35 -0
  386. package/dist/list.d.ts +5 -0
  387. package/dist/list.d.ts.map +1 -0
  388. package/dist/list.js +12 -0
  389. package/dist/magnetic.cjs +63 -0
  390. package/dist/magnetic.d.ts +8 -0
  391. package/dist/magnetic.d.ts.map +1 -0
  392. package/dist/magnetic.js +41 -0
  393. package/dist/market-overview.cjs +102 -0
  394. package/dist/market-overview.d.ts +4 -0
  395. package/dist/market-overview.d.ts.map +1 -0
  396. package/dist/market-overview.js +100 -0
  397. package/dist/marquee.cjs +67 -0
  398. package/dist/marquee.d.ts +10 -0
  399. package/dist/marquee.d.ts.map +1 -0
  400. package/dist/marquee.js +45 -0
  401. package/dist/menu-dock.cjs +64 -0
  402. package/dist/menu-dock.d.ts +14 -0
  403. package/dist/menu-dock.d.ts.map +1 -0
  404. package/dist/menu-dock.js +42 -0
  405. package/dist/menubar.cjs +116 -0
  406. package/dist/menubar.d.ts +30 -0
  407. package/dist/menubar.d.ts.map +1 -0
  408. package/dist/menubar.js +61 -0
  409. package/dist/message-dock.cjs +480 -0
  410. package/dist/message-dock.d.ts +15 -0
  411. package/dist/message-dock.d.ts.map +1 -0
  412. package/dist/message-dock.js +458 -0
  413. package/dist/mini-calendar.cjs +505 -0
  414. package/dist/mini-calendar.d.ts +10 -0
  415. package/dist/mini-calendar.d.ts.map +1 -0
  416. package/dist/mini-calendar.js +483 -0
  417. package/dist/minimal-tiptap.cjs +48 -0
  418. package/dist/minimal-tiptap.d.ts +8 -0
  419. package/dist/minimal-tiptap.d.ts.map +1 -0
  420. package/dist/minimal-tiptap.js +26 -0
  421. package/dist/motion-highlight.cjs +71 -0
  422. package/dist/motion-highlight.d.ts +7 -0
  423. package/dist/motion-highlight.d.ts.map +1 -0
  424. package/dist/motion-highlight.js +49 -0
  425. package/dist/music-player.cjs +810 -0
  426. package/dist/music-player.d.ts +18 -0
  427. package/dist/music-player.d.ts.map +1 -0
  428. package/dist/music-player.js +788 -0
  429. package/dist/native-select.cjs +82 -0
  430. package/dist/native-select.d.ts +9 -0
  431. package/dist/native-select.d.ts.map +1 -0
  432. package/dist/native-select.js +58 -0
  433. package/dist/news-timeline.cjs +42 -0
  434. package/dist/news-timeline.d.ts +4 -0
  435. package/dist/news-timeline.d.ts.map +1 -0
  436. package/dist/news-timeline.js +40 -0
  437. package/dist/order-entry.cjs +141 -0
  438. package/dist/order-entry.d.ts +15 -0
  439. package/dist/order-entry.d.ts.map +1 -0
  440. package/dist/order-entry.js +136 -0
  441. package/dist/orders-history.cjs +83 -0
  442. package/dist/orders-history.d.ts +18 -0
  443. package/dist/orders-history.d.ts.map +1 -0
  444. package/dist/orders-history.js +78 -0
  445. package/dist/pagination.cjs +132 -0
  446. package/dist/pagination.d.ts +29 -0
  447. package/dist/pagination.d.ts.map +1 -0
  448. package/dist/pagination.js +104 -0
  449. package/dist/particles-background.cjs +159 -0
  450. package/dist/particles-background.d.ts +18 -0
  451. package/dist/particles-background.d.ts.map +1 -0
  452. package/dist/particles-background.js +157 -0
  453. package/dist/pill.cjs +80 -0
  454. package/dist/pill.d.ts +21 -0
  455. package/dist/pill.d.ts.map +1 -0
  456. package/dist/pill.js +57 -0
  457. package/dist/pixel-image.cjs +71 -0
  458. package/dist/pixel-image.d.ts +8 -0
  459. package/dist/pixel-image.d.ts.map +1 -0
  460. package/dist/pixel-image.js +49 -0
  461. package/dist/popover.cjs +11 -9
  462. package/dist/popover.d.ts.map +1 -1
  463. package/dist/popover.js +11 -9
  464. package/dist/positions-list.cjs +98 -0
  465. package/dist/positions-list.d.ts +13 -0
  466. package/dist/positions-list.d.ts.map +1 -0
  467. package/dist/positions-list.js +93 -0
  468. package/dist/progress-circle.cjs +2 -1
  469. package/dist/progress-circle.d.ts.map +1 -1
  470. package/dist/progress-circle.js +2 -1
  471. package/dist/pulse-animation.cjs +8741 -0
  472. package/dist/pulse-animation.d.ts +155 -0
  473. package/dist/pulse-animation.d.ts.map +1 -0
  474. package/dist/pulse-animation.js +8732 -0
  475. package/dist/qr-code.cjs +65 -0
  476. package/dist/qr-code.d.ts +21 -0
  477. package/dist/qr-code.d.ts.map +1 -0
  478. package/dist/qr-code.js +43 -0
  479. package/dist/relative-time.cjs +88 -0
  480. package/dist/relative-time.d.ts +9 -0
  481. package/dist/relative-time.d.ts.map +1 -0
  482. package/dist/relative-time.js +66 -0
  483. package/dist/resizable.cjs +61 -0
  484. package/dist/resizable.d.ts +24 -0
  485. package/dist/resizable.d.ts.map +1 -0
  486. package/dist/resizable.js +37 -0
  487. package/dist/reveal-animation.cjs +8791 -0
  488. package/dist/reveal-animation.d.ts +134 -0
  489. package/dist/reveal-animation.d.ts.map +1 -0
  490. package/dist/reveal-animation.js +8779 -0
  491. package/dist/safari.cjs +90 -0
  492. package/dist/safari.d.ts +9 -0
  493. package/dist/safari.d.ts.map +1 -0
  494. package/dist/safari.js +68 -0
  495. package/dist/sandbox.cjs +94 -0
  496. package/dist/sandbox.d.ts +9 -0
  497. package/dist/sandbox.d.ts.map +1 -0
  498. package/dist/sandbox.js +72 -0
  499. package/dist/search-and-toggle-navigation-bar.cjs +51 -0
  500. package/dist/search-and-toggle-navigation-bar.d.ts +10 -0
  501. package/dist/search-and-toggle-navigation-bar.d.ts.map +1 -0
  502. package/dist/search-and-toggle-navigation-bar.js +29 -0
  503. package/dist/select.cjs +34 -160
  504. package/dist/select.d.ts.map +1 -1
  505. package/dist/select.js +34 -160
  506. package/dist/sidebar.cjs +1134 -0
  507. package/dist/sidebar.d.ts +80 -0
  508. package/dist/sidebar.d.ts.map +1 -0
  509. package/dist/sidebar.js +1090 -0
  510. package/dist/simple-navigation-bar.cjs +45 -0
  511. package/dist/simple-navigation-bar.d.ts +11 -0
  512. package/dist/simple-navigation-bar.d.ts.map +1 -0
  513. package/dist/simple-navigation-bar.js +23 -0
  514. package/dist/skeleton.cjs +14 -143
  515. package/dist/skeleton.d.ts +2 -41
  516. package/dist/skeleton.d.ts.map +1 -1
  517. package/dist/skeleton.js +15 -144
  518. package/dist/slider.d.ts +1 -0
  519. package/dist/slider.d.ts.map +1 -1
  520. package/dist/status-dashboard-navigation-bar.cjs +51 -0
  521. package/dist/status-dashboard-navigation-bar.d.ts +10 -0
  522. package/dist/status-dashboard-navigation-bar.d.ts.map +1 -0
  523. package/dist/status-dashboard-navigation-bar.js +29 -0
  524. package/dist/status.cjs +85 -0
  525. package/dist/status.d.ts +23 -0
  526. package/dist/status.d.ts.map +1 -0
  527. package/dist/status.js +62 -0
  528. package/dist/stock-screener.cjs +44 -0
  529. package/dist/stock-screener.d.ts +4 -0
  530. package/dist/stock-screener.d.ts.map +1 -0
  531. package/dist/stock-screener.js +42 -0
  532. package/dist/switch.cjs +1 -1
  533. package/dist/switch.d.ts +1 -3
  534. package/dist/switch.d.ts.map +1 -1
  535. package/dist/switch.js +1 -1
  536. package/dist/symbol-info.cjs +44 -0
  537. package/dist/symbol-info.d.ts +9 -0
  538. package/dist/symbol-info.d.ts.map +1 -0
  539. package/dist/symbol-info.js +42 -0
  540. package/dist/table.cjs +53 -167
  541. package/dist/table.d.ts.map +1 -1
  542. package/dist/table.js +53 -167
  543. package/dist/tag.cjs +13 -142
  544. package/dist/tag.js +14 -143
  545. package/dist/tags.cjs +385 -0
  546. package/dist/tags.d.ts +13 -0
  547. package/dist/tags.d.ts.map +1 -0
  548. package/dist/tags.js +364 -0
  549. package/dist/team-switcher-navigation-bar.cjs +51 -0
  550. package/dist/team-switcher-navigation-bar.d.ts +10 -0
  551. package/dist/team-switcher-navigation-bar.d.ts.map +1 -0
  552. package/dist/team-switcher-navigation-bar.js +29 -0
  553. package/dist/technical-analysis.cjs +69 -0
  554. package/dist/technical-analysis.d.ts +13 -0
  555. package/dist/technical-analysis.d.ts.map +1 -0
  556. package/dist/technical-analysis.js +67 -0
  557. package/dist/terminal.cjs +372 -0
  558. package/dist/terminal.d.ts +21 -0
  559. package/dist/terminal.d.ts.map +1 -0
  560. package/dist/terminal.js +350 -0
  561. package/dist/ticker-tape.cjs +54 -0
  562. package/dist/ticker-tape.d.ts +4 -0
  563. package/dist/ticker-tape.d.ts.map +1 -0
  564. package/dist/ticker-tape.js +52 -0
  565. package/dist/ticker.cjs +66 -0
  566. package/dist/ticker.d.ts +10 -0
  567. package/dist/ticker.d.ts.map +1 -0
  568. package/dist/ticker.js +44 -0
  569. package/dist/timeline.cjs +317 -0
  570. package/dist/timeline.d.ts +20 -0
  571. package/dist/timeline.d.ts.map +1 -0
  572. package/dist/timeline.js +295 -0
  573. package/dist/toggle.cjs +62 -0
  574. package/dist/toggle.d.ts +26 -0
  575. package/dist/toggle.d.ts.map +1 -0
  576. package/dist/toggle.js +57 -0
  577. package/dist/trading-panel.cjs +212 -0
  578. package/dist/trading-panel.d.ts +7 -0
  579. package/dist/trading-panel.d.ts.map +1 -0
  580. package/dist/trading-panel.js +207 -0
  581. package/dist/two-tier-navigation-bar.cjs +51 -0
  582. package/dist/two-tier-navigation-bar.d.ts +10 -0
  583. package/dist/two-tier-navigation-bar.d.ts.map +1 -0
  584. package/dist/two-tier-navigation-bar.js +29 -0
  585. package/dist/underline-navigation-bar.cjs +51 -0
  586. package/dist/underline-navigation-bar.d.ts +10 -0
  587. package/dist/underline-navigation-bar.d.ts.map +1 -0
  588. package/dist/underline-navigation-bar.js +29 -0
  589. package/dist/youtube-pip-player.cjs +489 -0
  590. package/dist/youtube-pip-player.d.ts +41 -0
  591. package/dist/youtube-pip-player.d.ts.map +1 -0
  592. package/dist/youtube-pip-player.js +466 -0
  593. package/package.json +755 -54
  594. package/src/3d-button.tsx +346 -0
  595. package/src/3d-card.tsx +271 -0
  596. package/src/3d-carousel.tsx +444 -0
  597. package/src/3d-grid.tsx +448 -0
  598. package/src/3d-marquee.tsx +422 -0
  599. package/src/3d-model-viewer.tsx +659 -0
  600. package/src/3d-pin.tsx +37 -0
  601. package/src/3d-scene.tsx +629 -0
  602. package/src/3d-text.tsx +442 -0
  603. package/src/advanced-chart.tsx +63 -0
  604. package/src/advanced-navigation-bar.tsx +83 -0
  605. package/src/ai-actions.tsx +60 -0
  606. package/src/ai-agents.tsx +1174 -0
  607. package/src/ai-assistant.tsx +227 -0
  608. package/src/ai-chat.tsx +554 -0
  609. package/src/ai-code.tsx +1331 -0
  610. package/src/ai-model-selector-navigation-bar.tsx +78 -0
  611. package/src/ai-models.tsx +58 -0
  612. package/src/ai-playground.tsx +429 -0
  613. package/src/ai-tools.tsx +383 -0
  614. package/src/ai-vision.tsx +1220 -0
  615. package/src/ai-voice-settings.tsx +726 -0
  616. package/src/ai-voice.tsx +735 -0
  617. package/src/android.tsx +92 -0
  618. package/src/animated-background.tsx +625 -0
  619. package/src/animated-beam.tsx +110 -0
  620. package/src/animated-cursor.tsx +406 -0
  621. package/src/animated-icon.tsx +520 -0
  622. package/src/animated-list.tsx +508 -0
  623. package/src/animated-number.tsx +485 -0
  624. package/src/animated-testimonials.tsx +119 -0
  625. package/src/animated-text.tsx +481 -0
  626. package/src/animated-tooltip.tsx +54 -0
  627. package/src/announcement.tsx +55 -0
  628. package/src/app-switcher-navigation-bar.tsx +76 -0
  629. package/src/apple-cards-carousel.tsx +349 -0
  630. package/src/apple-hello-effect.tsx +50 -0
  631. package/src/auth.tsx +9 -8
  632. package/src/avatar.tsx +1 -1
  633. package/src/badge.tsx +27 -30
  634. package/src/banner.tsx +62 -0
  635. package/src/breadcrumb-and-filters-navigation-bar.tsx +40 -0
  636. package/src/breadcrumb-navigation-bar.tsx +43 -0
  637. package/src/button.tsx +10 -9
  638. package/src/calendar.tsx +62 -0
  639. package/src/centered-logo-navigation-bar.tsx +43 -0
  640. package/src/chart.tsx +372 -0
  641. package/src/choicebox.tsx +89 -0
  642. package/src/chrome.tsx +41 -40
  643. package/src/code-block.tsx +278 -0
  644. package/src/code-compare.tsx +551 -0
  645. package/src/code-diff.tsx +573 -0
  646. package/src/code-editor.tsx +250 -0
  647. package/src/code-explorer.tsx +403 -0
  648. package/src/code-preview.tsx +488 -0
  649. package/src/code-snippet.tsx +336 -0
  650. package/src/code-tabs.tsx +78 -0
  651. package/src/code-terminal.tsx +530 -0
  652. package/src/collaboration-navigation-bar.tsx +50 -0
  653. package/src/collapsible.tsx +3 -2
  654. package/src/color-picker.tsx +68 -0
  655. package/src/combobox.tsx +87 -0
  656. package/src/communication-navigation-bar.tsx +42 -0
  657. package/src/company-profile.tsx +67 -0
  658. package/src/comparison.tsx +68 -0
  659. package/src/context-switcher-navigation-bar.tsx +39 -0
  660. package/src/credit-card.tsx +72 -0
  661. package/src/crypto-screener.tsx +57 -0
  662. package/src/cursor.tsx +61 -0
  663. package/src/dashboard-navigation-bar.tsx +49 -0
  664. package/src/dialog-stack.tsx +55 -0
  665. package/src/dialog.tsx +16 -15
  666. package/src/direction.tsx +40 -0
  667. package/src/dock.tsx +172 -0
  668. package/src/dropzone.tsx +106 -0
  669. package/src/e-commerce-navigation-bar.tsx +54 -0
  670. package/src/editor.tsx +85 -0
  671. package/src/empty.tsx +117 -0
  672. package/src/field.tsx +2 -1
  673. package/src/financials.tsx +85 -0
  674. package/src/forex-screener.tsx +58 -0
  675. package/src/gantt.tsx +68 -0
  676. package/src/grid-pattern.tsx +353 -0
  677. package/src/hooks/use-mobile.ts +29 -0
  678. package/src/icon-navigation-bar.tsx +36 -0
  679. package/src/image-crop.tsx +67 -0
  680. package/src/image-zoom.tsx +64 -0
  681. package/src/image.tsx +2 -1
  682. package/src/index.ts +123 -0
  683. package/src/input-otp.tsx +72 -0
  684. package/src/iphone-15-pro.tsx +69 -0
  685. package/src/item.tsx +193 -0
  686. package/src/kanban.tsx +772 -0
  687. package/src/kbd.tsx +32 -0
  688. package/src/limelight-nav-navigation-bar.tsx +39 -0
  689. package/src/limelight-nav.tsx +101 -0
  690. package/src/link.tsx +18 -18
  691. package/src/list.tsx +22 -0
  692. package/src/magnetic.tsx +54 -0
  693. package/src/market-overview.tsx +116 -0
  694. package/src/marquee.tsx +62 -0
  695. package/src/menu-dock.tsx +56 -0
  696. package/src/menubar.tsx +149 -0
  697. package/src/message-dock.tsx +89 -0
  698. package/src/mini-calendar.tsx +121 -0
  699. package/src/minimal-tiptap.tsx +32 -0
  700. package/src/motion-highlight.tsx +55 -0
  701. package/src/music-player.tsx +413 -0
  702. package/src/native-select.tsx +63 -0
  703. package/src/news-timeline.tsx +56 -0
  704. package/src/order-entry.tsx +162 -0
  705. package/src/orders-history.tsx +115 -0
  706. package/src/pagination.tsx +118 -0
  707. package/src/particles-background.tsx +225 -0
  708. package/src/pill.tsx +61 -0
  709. package/src/pixel-image.tsx +64 -0
  710. package/src/popover.tsx +10 -9
  711. package/src/positions-list.tsx +108 -0
  712. package/src/progress-circle.tsx +2 -1
  713. package/src/pulse-animation.tsx +606 -0
  714. package/src/qr-code.tsx +64 -0
  715. package/src/relative-time.tsx +84 -0
  716. package/src/resizable.tsx +46 -0
  717. package/src/reveal-animation.tsx +532 -0
  718. package/src/safari.tsx +115 -0
  719. package/src/sandbox.tsx +83 -0
  720. package/src/search-and-toggle-navigation-bar.tsx +39 -0
  721. package/src/select.tsx +31 -30
  722. package/src/sidebar.tsx +723 -0
  723. package/src/simple-navigation-bar.tsx +39 -0
  724. package/src/skeleton.tsx +20 -168
  725. package/src/slider.tsx +1 -0
  726. package/src/status-dashboard-navigation-bar.tsx +39 -0
  727. package/src/status.tsx +63 -0
  728. package/src/stock-screener.tsx +58 -0
  729. package/src/switch.tsx +2 -2
  730. package/src/symbol-info.tsx +64 -0
  731. package/src/table.tsx +26 -25
  732. package/src/tags.tsx +62 -0
  733. package/src/team-switcher-navigation-bar.tsx +39 -0
  734. package/src/technical-analysis.tsx +99 -0
  735. package/src/terminal.tsx +399 -0
  736. package/src/ticker-tape.tsx +68 -0
  737. package/src/ticker.tsx +52 -0
  738. package/src/timeline.tsx +412 -0
  739. package/src/toggle.tsx +84 -0
  740. package/src/trading-panel.tsx +262 -0
  741. package/src/two-tier-navigation-bar.tsx +39 -0
  742. package/src/underline-navigation-bar.tsx +39 -0
  743. package/src/youtube-pip-player.tsx +606 -0
  744. package/tokens.css +11 -0
@@ -0,0 +1,1090 @@
1
+ "use client";
2
+ import { Box, sx, cn, variants, TooltipProvider, Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription, Slot, Tooltip, TooltipTrigger, TooltipContent } from '@hanzo/ui';
3
+ import * as React2 from 'react';
4
+ import React2__default, { useState, useEffect } from 'react';
5
+ import { PanelLeftIcon } from 'lucide-react';
6
+ import { styled, View, Input as Input$1, Separator as Separator$1 } from '@hanzo/gui';
7
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
+
9
+ var PHONE = "(max-width: 767px)";
10
+ function useIsMobile() {
11
+ const [narrow, setNarrow] = useState(false);
12
+ useEffect(() => {
13
+ const q = window.matchMedia(PHONE);
14
+ const read = () => setNarrow(q.matches);
15
+ read();
16
+ q.addEventListener("change", read);
17
+ return () => q.removeEventListener("change", read);
18
+ }, []);
19
+ return narrow;
20
+ }
21
+ var SKELETON_CLASSES = "lux-skeleton rounded-sm";
22
+ var Skeleton = React2.forwardRef(
23
+ function Skeleton2(props, ref) {
24
+ const { loading = true, asChild, className, children, style, ...rest } = props;
25
+ if (!loading) {
26
+ if (asChild && React2.isValidElement(children)) return children;
27
+ return /* @__PURE__ */ jsx(Box, { ref, className, style, ...rest, children });
28
+ }
29
+ return /* @__PURE__ */ jsx(
30
+ "div",
31
+ {
32
+ ref,
33
+ "data-loading": true,
34
+ ...sx(
35
+ SKELETON_CLASSES,
36
+ asChild || children ? "[&_*]:invisible" : "min-h-5",
37
+ className
38
+ ),
39
+ style,
40
+ ...rest,
41
+ children
42
+ }
43
+ );
44
+ }
45
+ );
46
+ React2.forwardRef(
47
+ function SkeletonCircle2(props, ref) {
48
+ const { size = 40, loading = true, className, ...rest } = props;
49
+ const dimension = typeof size === "number" ? `${size}px` : size;
50
+ return /* @__PURE__ */ jsx(
51
+ Skeleton,
52
+ {
53
+ ref,
54
+ loading,
55
+ ...sx("rounded-full shrink-0", className),
56
+ style: { width: dimension, height: dimension, ...rest.style },
57
+ ...rest
58
+ }
59
+ );
60
+ }
61
+ );
62
+ React2.forwardRef(
63
+ function SkeletonText2(props, ref) {
64
+ const { noOfLines = 3, loading = true, className, ...rest } = props;
65
+ 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(
66
+ Skeleton,
67
+ {
68
+ loading,
69
+ ...sx(cn("h-4", index === noOfLines - 1 && "max-w-[80%]"))
70
+ },
71
+ index
72
+ )) });
73
+ }
74
+ );
75
+ var SpinnerFrame = styled(View, {
76
+ name: "ButtonSpinner",
77
+ render: /* @__PURE__ */ jsx("span", {}),
78
+ width: 16,
79
+ height: 16,
80
+ borderRadius: 1e3,
81
+ borderWidth: 2,
82
+ borderColor: "currentColor",
83
+ borderBottomColor: "transparent",
84
+ borderLeftColor: "transparent"
85
+ });
86
+ function Spinner({ className }) {
87
+ return /* @__PURE__ */ jsx(
88
+ SpinnerFrame,
89
+ {
90
+ role: "status",
91
+ "aria-label": "Loading",
92
+ className: [
93
+ "animate-spin",
94
+ className
95
+ ].filter(Boolean).join(" ")
96
+ }
97
+ );
98
+ }
99
+ var ButtonFrame = styled(View, {
100
+ name: "LuxButton",
101
+ render: /* @__PURE__ */ jsx("button", { type: "button" }),
102
+ role: "button",
103
+ tabIndex: 0,
104
+ cursor: "pointer",
105
+ userSelect: "none",
106
+ display: "inline-flex",
107
+ alignItems: "center",
108
+ justifyContent: "center",
109
+ gap: 0,
110
+ overflow: "hidden",
111
+ borderRadius: 6,
112
+ // Whitespace nowrap via className since hanzogui doesn't have a direct token
113
+ // Transition via className
114
+ variants: {
115
+ size: {
116
+ "2xs": { paddingHorizontal: 8, height: 20, minWidth: 20, fontSize: 12, borderRadius: 4, gap: 4 },
117
+ xs: { paddingHorizontal: 8, height: 24, minWidth: 24, fontSize: 14, borderRadius: 4, gap: 4 },
118
+ sm: { paddingHorizontal: 12, height: 32, minWidth: 32, fontSize: 14, borderRadius: 6, gap: 4 },
119
+ md: { paddingHorizontal: 12, height: 40, minWidth: 40, fontSize: 16, borderRadius: 6, gap: 8 }
120
+ },
121
+ disabled: {
122
+ true: {
123
+ opacity: 0.2,
124
+ cursor: "not-allowed",
125
+ pointerEvents: "none"
126
+ }
127
+ }
128
+ },
129
+ defaultVariants: {
130
+ size: "md"
131
+ }
132
+ });
133
+ var VARIANT_CLASSES = {
134
+ solid: [
135
+ "bg-[var(--color-button-solid-bg)] text-[var(--color-button-solid-text)]",
136
+ "hover:bg-[var(--color-hover)]",
137
+ "data-[expanded]:bg-[var(--color-hover)]"
138
+ ].join(" "),
139
+ solid_danger: [
140
+ "bg-[var(--color-button-danger-bg)] text-[var(--color-button-danger-fg)]",
141
+ "hover:bg-[var(--color-button-danger-bg-hover)]",
142
+ "data-[expanded]:bg-[var(--color-button-danger-bg-hover)]"
143
+ ].join(" "),
144
+ outline: [
145
+ "border-2 border-solid bg-transparent",
146
+ "text-[var(--color-button-outline-fg)] border-[var(--color-button-outline-fg)]",
147
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]"
148
+ ].join(" "),
149
+ outline_danger: [
150
+ "border-2 border-solid bg-transparent",
151
+ "text-[var(--color-button-danger-bg)] border-[var(--color-button-danger-bg)]",
152
+ "hover:bg-transparent hover:text-[var(--color-button-danger-bg-hover)] hover:border-[var(--color-button-danger-bg-hover)]"
153
+ ].join(" "),
154
+ dropdown: [
155
+ "border-2 border-solid bg-transparent",
156
+ "text-[var(--color-button-dropdown-fg)] border-[var(--color-button-dropdown-border)]",
157
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
158
+ "data-[expanded]:bg-transparent data-[expanded]:text-[var(--color-hover)] data-[expanded]:border-[var(--color-hover)]",
159
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
160
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
161
+ "data-[selected]:hover:text-[var(--color-hover)] data-[selected]:hover:border-transparent",
162
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
163
+ ].join(" "),
164
+ header: [
165
+ "bg-transparent border-2 border-solid",
166
+ "text-[var(--color-button-header-fg)] border-[var(--color-button-header-border)]",
167
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
168
+ "data-[selected]:bg-[var(--color-button-header-bg-selected)]",
169
+ "data-[selected]:text-[var(--color-button-header-fg-selected)] data-[selected]:border-transparent data-[selected]:border-0",
170
+ "data-[selected]:hover:bg-[var(--color-button-header-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
171
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
172
+ "data-[selected]:data-[highlighted]:bg-[var(--color-button-header-bg-highlighted)]",
173
+ "data-[selected]:data-[highlighted]:text-[var(--color-button-header-fg-highlighted)]",
174
+ "data-[selected]:data-[highlighted]:border-transparent data-[selected]:data-[highlighted]:border-0",
175
+ "data-[selected]:data-[highlighted]:hover:bg-[var(--color-button-header-bg-highlighted)]",
176
+ "data-[selected]:data-[highlighted]:hover:text-[var(--color-hover)]",
177
+ "data-[selected]:data-[highlighted]:data-[expanded]:text-[var(--color-hover)]"
178
+ ].join(" "),
179
+ hero: [
180
+ "bg-[var(--color-button-hero-bg)] text-[var(--color-button-hero-fg)]",
181
+ "hover:bg-[var(--color-button-hero-bg-hover)] hover:text-[var(--color-button-hero-fg-hover)]",
182
+ "data-[selected]:bg-[var(--color-button-hero-bg-selected)] data-[selected]:text-[var(--color-button-hero-fg-selected)]",
183
+ "data-[selected]:hover:bg-[var(--color-button-hero-bg-selected)] data-[selected]:hover:text-[var(--color-hover)]",
184
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]"
185
+ ].join(" "),
186
+ segmented: [
187
+ "bg-transparent border-2 border-solid rounded-none",
188
+ "text-[var(--color-button-segmented-fg)] border-[var(--color-selected-control-bg)]",
189
+ "hover:text-[var(--color-hover)]",
190
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
191
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-selected-control-text)]",
192
+ "[&:not(:last-child)]:border-r-0 data-[selected]:[&:not(:last-child)]:border-r-2",
193
+ "data-[selected]+*:border-l-0",
194
+ "first:rounded-l-md last:rounded-r-md"
195
+ ].join(" "),
196
+ plain: "bg-transparent text-inherit border-none hover:bg-transparent",
197
+ subtle: [
198
+ "bg-[var(--color-button-subtle-bg)] text-[var(--color-button-subtle-fg)]",
199
+ "hover:bg-[var(--color-button-subtle-bg)] hover:text-[var(--color-hover)]",
200
+ "disabled:bg-[var(--color-button-subtle-bg)] disabled:text-[var(--color-button-subtle-fg)]"
201
+ ].join(" "),
202
+ link: [
203
+ "bg-transparent text-[var(--color-link-primary)] border-none font-normal",
204
+ "px-0 h-auto",
205
+ "hover:bg-transparent hover:text-[var(--color-link-primary-hover)]",
206
+ "disabled:text-[var(--color-text-secondary)]"
207
+ ].join(" "),
208
+ icon_secondary: [
209
+ "bg-transparent text-[var(--color-icon-secondary)] border-none",
210
+ "hover:text-[var(--color-hover)]",
211
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
212
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
213
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
214
+ "data-[expanded]:text-[var(--color-hover)]"
215
+ ].join(" "),
216
+ icon_background: [
217
+ "bg-[var(--color-button-icon-background-bg)] text-[var(--color-icon-secondary)] border-none",
218
+ "hover:text-[var(--color-hover)]",
219
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)]",
220
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)] data-[selected]:hover:text-[var(--color-hover)]",
221
+ "data-[selected]:data-[expanded]:text-[var(--color-hover)]",
222
+ "data-[expanded]:text-[var(--color-hover)]"
223
+ ].join(" "),
224
+ pagination: [
225
+ "border-2 border-solid bg-transparent",
226
+ "text-[var(--color-button-pagination-fg)] border-[var(--color-button-pagination-border)]",
227
+ "hover:bg-transparent hover:text-[var(--color-hover)] hover:border-[var(--color-hover)]",
228
+ "data-[selected]:bg-[var(--color-selected-control-bg)] data-[selected]:text-[var(--color-selected-control-text)] data-[selected]:border-transparent",
229
+ "data-[selected]:hover:bg-[var(--color-selected-control-bg)]",
230
+ "data-[selected]:hover:text-[var(--color-selected-control-text)] data-[selected]:hover:border-transparent"
231
+ ].join(" ")
232
+ };
233
+ var BASE_CLASSES = "font-semibold whitespace-nowrap transition-colors duration-150";
234
+ var SP = 4;
235
+ function buildShimStyle(props) {
236
+ const s = { ...props.style };
237
+ if (props.mt !== void 0) s.marginTop = typeof props.mt === "number" ? `${props.mt * SP}px` : props.mt;
238
+ if (props.ml !== void 0) s.marginLeft = typeof props.ml === "number" ? `${props.ml * SP}px` : props.ml;
239
+ if (props.mr !== void 0) s.marginRight = typeof props.mr === "number" ? `${props.mr * SP}px` : props.mr;
240
+ if (props.px !== void 0) {
241
+ const v = typeof props.px === "number" ? `${props.px * SP}px` : props.px;
242
+ s.paddingLeft = v;
243
+ s.paddingRight = v;
244
+ }
245
+ if (props.py !== void 0) {
246
+ const v = typeof props.py === "number" ? `${props.py * SP}px` : props.py;
247
+ s.paddingTop = v;
248
+ s.paddingBottom = v;
249
+ }
250
+ if (props.fontWeight !== void 0) s.fontWeight = props.fontWeight;
251
+ if (props.gap !== void 0) s.gap = typeof props.gap === "number" ? `${props.gap * SP}px` : props.gap;
252
+ if (props.flexShrink !== void 0) s.flexShrink = props.flexShrink;
253
+ if (props.columnGap !== void 0) s.columnGap = typeof props.columnGap === "number" ? `${props.columnGap * SP}px` : props.columnGap;
254
+ if (props.gridColumn !== void 0) s.gridColumn = typeof props.gridColumn === "number" ? String(props.gridColumn) : props.gridColumn;
255
+ if (props.gridRow) s.gridRow = props.gridRow;
256
+ if (props.justifySelf) s.justifySelf = props.justifySelf;
257
+ if (props.alignSelf) s.alignSelf = props.alignSelf;
258
+ if (props.h) s.height = props.h;
259
+ if (props.w) s.width = props.w;
260
+ if (props.display) s.display = props.display;
261
+ if (props.borderBottomRightRadius !== void 0) s.borderBottomRightRadius = typeof props.borderBottomRightRadius === "number" ? `${props.borderBottomRightRadius}px` : props.borderBottomRightRadius;
262
+ if (props.borderTopRightRadius !== void 0) s.borderTopRightRadius = typeof props.borderTopRightRadius === "number" ? `${props.borderTopRightRadius}px` : props.borderTopRightRadius;
263
+ return Object.keys(s).length > 0 ? s : void 0;
264
+ }
265
+ var Button = React2.forwardRef(
266
+ function Button2(props, ref) {
267
+ const {
268
+ className,
269
+ variant = "solid",
270
+ size = "md",
271
+ asChild = false,
272
+ loading = false,
273
+ loadingText,
274
+ loadingSkeleton = false,
275
+ expanded,
276
+ selected,
277
+ highlighted,
278
+ disabled,
279
+ children,
280
+ style: styleProp,
281
+ // Strip Chakra style props
282
+ mt,
283
+ ml,
284
+ mr,
285
+ px,
286
+ py,
287
+ fontWeight,
288
+ gap,
289
+ flexShrink,
290
+ columnGap,
291
+ gridColumn,
292
+ gridRow,
293
+ justifySelf,
294
+ alignSelf,
295
+ textStyle: _textStyle,
296
+ h,
297
+ w,
298
+ display,
299
+ borderBottomRightRadius,
300
+ borderTopRightRadius,
301
+ ...rest
302
+ } = props;
303
+ const mergedStyle = buildShimStyle({
304
+ style: styleProp,
305
+ mt,
306
+ ml,
307
+ mr,
308
+ px,
309
+ py,
310
+ fontWeight,
311
+ gap,
312
+ flexShrink,
313
+ columnGap,
314
+ gridColumn,
315
+ gridRow,
316
+ justifySelf,
317
+ alignSelf,
318
+ h,
319
+ w,
320
+ display,
321
+ borderBottomRightRadius,
322
+ borderTopRightRadius
323
+ });
324
+ const dataAttrs = {};
325
+ if (expanded) dataAttrs["data-expanded"] = true;
326
+ if (selected) dataAttrs["data-selected"] = true;
327
+ if (highlighted) dataAttrs["data-highlighted"] = true;
328
+ if (loadingSkeleton) dataAttrs["data-loading-skeleton"] = true;
329
+ const isDisabled = !loadingSkeleton && (loading || disabled);
330
+ const inner = loading ? /* @__PURE__ */ jsxs(Fragment, { children: [
331
+ /* @__PURE__ */ jsx(Spinner, {}),
332
+ loadingText != null && /* @__PURE__ */ jsx("span", { style: { marginLeft: 8 }, children: loadingText })
333
+ ] }) : children;
334
+ const variantClass = VARIANT_CLASSES[variant] ?? VARIANT_CLASSES.solid;
335
+ const combinedClassName = [BASE_CLASSES, variantClass, className].filter(Boolean).join(" ");
336
+ const button = /* @__PURE__ */ jsx(
337
+ ButtonFrame,
338
+ {
339
+ ref,
340
+ size,
341
+ disabled: isDisabled || void 0,
342
+ asChild: asChild || void 0,
343
+ className: combinedClassName,
344
+ style: mergedStyle,
345
+ ...dataAttrs,
346
+ ...rest,
347
+ children: inner
348
+ }
349
+ );
350
+ if (loadingSkeleton) {
351
+ return /* @__PURE__ */ jsx(Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
352
+ }
353
+ return button;
354
+ }
355
+ );
356
+ React2.forwardRef(
357
+ function ButtonGroup2(props, ref) {
358
+ const { className, ...rest } = props;
359
+ return /* @__PURE__ */ jsx(
360
+ Box,
361
+ {
362
+ ref,
363
+ className: ["inline-flex", className].filter(Boolean).join(" "),
364
+ role: "group",
365
+ ...rest
366
+ }
367
+ );
368
+ }
369
+ );
370
+ React2.forwardRef(
371
+ function ButtonGroupRadio2(props, ref) {
372
+ const {
373
+ children,
374
+ onChange,
375
+ variant = "segmented",
376
+ defaultValue,
377
+ loading = false,
378
+ equalWidth = false,
379
+ className,
380
+ ...rest
381
+ } = props;
382
+ const firstChildValue = React2.useMemo(() => {
383
+ const firstChild = Array.isArray(children) ? children[0] : void 0;
384
+ return typeof firstChild?.props.value === "string" ? firstChild.props.value : void 0;
385
+ }, [children]);
386
+ const [value, setValue] = React2.useState(defaultValue ?? firstChildValue);
387
+ const handleItemClick = React2.useCallback((event) => {
388
+ const v = event.currentTarget.value;
389
+ setValue(v);
390
+ onChange?.(v);
391
+ }, [onChange]);
392
+ const clonedChildren = React2.Children.map(children, (child) => {
393
+ return React2.cloneElement(child, {
394
+ onClick: handleItemClick,
395
+ selected: value === child.props.value,
396
+ variant
397
+ });
398
+ });
399
+ const childrenLength = React2.Children.count(children);
400
+ return /* @__PURE__ */ jsx(Skeleton, { loading, children: /* @__PURE__ */ jsx(
401
+ Box,
402
+ {
403
+ ref,
404
+ className: [
405
+ "inline-flex gap-0",
406
+ equalWidth ? "grid" : "",
407
+ className
408
+ ].filter(Boolean).join(" "),
409
+ style: equalWidth ? { gridTemplateColumns: `repeat(${childrenLength}, 1fr)` } : void 0,
410
+ role: "group",
411
+ ...rest,
412
+ children: clonedChildren
413
+ }
414
+ ) });
415
+ }
416
+ );
417
+ var SIZE = {
418
+ xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
419
+ sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
420
+ md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
421
+ lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
422
+ "2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
423
+ };
424
+ var VARIANT = {
425
+ outline: { borderWidth: 1, borderStyle: "solid" },
426
+ filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
427
+ unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
428
+ };
429
+ var CONTROL = {
430
+ width: "100%",
431
+ outlineWidth: 0,
432
+ backgroundColor: "var(--color-input-bg)",
433
+ color: "var(--color-input-fg)",
434
+ borderColor: "var(--color-input-border)",
435
+ hoverStyle: { borderColor: "var(--color-input-border-hover)" },
436
+ focusStyle: { borderColor: "var(--color-input-border-focus)" },
437
+ disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
438
+ };
439
+ var Input = React2__default.forwardRef(
440
+ ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
441
+ const handleChange = React2__default.useCallback(
442
+ (event) => {
443
+ onChange?.(event);
444
+ onChangeText?.(event.target.value);
445
+ },
446
+ [onChange, onChangeText]
447
+ );
448
+ return /* @__PURE__ */ jsx(
449
+ Input$1,
450
+ {
451
+ ref,
452
+ unstyled: true,
453
+ className: className ? `lux-control ${className}` : "lux-control",
454
+ ...CONTROL,
455
+ ...SIZE[size],
456
+ ...VARIANT[variant],
457
+ ...rest,
458
+ onChange: handleChange
459
+ }
460
+ );
461
+ }
462
+ );
463
+ Input.displayName = "Input";
464
+ var WEIGHT = { xs: 0.5, sm: 1, md: 2, lg: 3 };
465
+ var Separator = React2__default.forwardRef(
466
+ function Separator2({ orientation = "horizontal", variant = "solid", size = "sm", ...rest }, ref) {
467
+ const vertical = orientation === "vertical";
468
+ return /* @__PURE__ */ jsx(
469
+ Separator$1,
470
+ {
471
+ ref,
472
+ vertical,
473
+ role: "separator",
474
+ "aria-orientation": orientation,
475
+ borderWidth: 0,
476
+ borderStyle: variant,
477
+ borderColor: "var(--color-border-divider)",
478
+ ...vertical ? { borderLeftWidth: WEIGHT[size], alignSelf: "stretch", height: "auto", width: 0 } : { borderTopWidth: WEIGHT[size], width: "100%" },
479
+ ...rest
480
+ }
481
+ );
482
+ }
483
+ );
484
+ var SIDEBAR_COOKIE_NAME = "sidebar_state";
485
+ var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
486
+ var SIDEBAR_WIDTH = "16rem";
487
+ var SIDEBAR_WIDTH_MOBILE = "18rem";
488
+ var SIDEBAR_WIDTH_ICON = "3rem";
489
+ var SIDEBAR_KEYBOARD_SHORTCUT = "b";
490
+ var SidebarContext = React2.createContext(null);
491
+ function useSidebar() {
492
+ const context = React2.useContext(SidebarContext);
493
+ if (!context) {
494
+ throw new Error("useSidebar must be used within a SidebarProvider.");
495
+ }
496
+ return context;
497
+ }
498
+ function SidebarProvider({
499
+ defaultOpen = true,
500
+ open: openProp,
501
+ onOpenChange: setOpenProp,
502
+ className,
503
+ style,
504
+ children,
505
+ ...props
506
+ }) {
507
+ const isMobile = useIsMobile();
508
+ const [openMobile, setOpenMobile] = React2.useState(false);
509
+ const [_open, _setOpen] = React2.useState(defaultOpen);
510
+ const open = openProp ?? _open;
511
+ const setOpen = React2.useCallback(
512
+ (value) => {
513
+ const openState = typeof value === "function" ? value(open) : value;
514
+ if (setOpenProp) {
515
+ setOpenProp(openState);
516
+ } else {
517
+ _setOpen(openState);
518
+ }
519
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
520
+ },
521
+ [setOpenProp, open]
522
+ );
523
+ const toggleSidebar = React2.useCallback(() => {
524
+ return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
525
+ }, [isMobile, setOpen, setOpenMobile]);
526
+ React2.useEffect(() => {
527
+ const handleKeyDown = (event) => {
528
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
529
+ event.preventDefault();
530
+ toggleSidebar();
531
+ }
532
+ };
533
+ window.addEventListener("keydown", handleKeyDown);
534
+ return () => window.removeEventListener("keydown", handleKeyDown);
535
+ }, [toggleSidebar]);
536
+ const state = open ? "expanded" : "collapsed";
537
+ const contextValue = React2.useMemo(
538
+ () => ({
539
+ state,
540
+ open,
541
+ setOpen,
542
+ isMobile,
543
+ openMobile,
544
+ setOpenMobile,
545
+ toggleSidebar
546
+ }),
547
+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
548
+ );
549
+ return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TooltipProvider, { delay: 0, children: /* @__PURE__ */ jsx(
550
+ Box,
551
+ {
552
+ "data-slot": "sidebar-wrapper",
553
+ style: {
554
+ "--sidebar-width": SIDEBAR_WIDTH,
555
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
556
+ ...style
557
+ },
558
+ className: cn(
559
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
560
+ className
561
+ ),
562
+ ...props,
563
+ children
564
+ }
565
+ ) }) });
566
+ }
567
+ function Sidebar({
568
+ side = "left",
569
+ variant = "sidebar",
570
+ collapsible = "offcanvas",
571
+ className,
572
+ children,
573
+ ...props
574
+ }) {
575
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
576
+ if (collapsible === "none") {
577
+ return /* @__PURE__ */ jsx(
578
+ Box,
579
+ {
580
+ "data-slot": "sidebar",
581
+ className: cn(
582
+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
583
+ className
584
+ ),
585
+ ...props,
586
+ children
587
+ }
588
+ );
589
+ }
590
+ if (isMobile) {
591
+ return /* @__PURE__ */ jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, children: /* @__PURE__ */ jsxs(
592
+ SheetContent,
593
+ {
594
+ "data-sidebar": "sidebar",
595
+ "data-slot": "sidebar",
596
+ "data-mobile": "true",
597
+ className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
598
+ style: {
599
+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE
600
+ },
601
+ side,
602
+ children: [
603
+ /* @__PURE__ */ jsxs(SheetHeader, { className: "sr-only", children: [
604
+ /* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }),
605
+ /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })
606
+ ] }),
607
+ /* @__PURE__ */ jsx(Box, { className: "flex h-full w-full flex-col", children })
608
+ ]
609
+ }
610
+ ) });
611
+ }
612
+ return /* @__PURE__ */ jsxs(
613
+ Box,
614
+ {
615
+ className: "group peer text-sidebar-foreground hidden md:block",
616
+ "data-state": state,
617
+ "data-collapsible": state === "collapsed" ? collapsible : "",
618
+ "data-variant": variant,
619
+ "data-side": side,
620
+ "data-slot": "sidebar",
621
+ children: [
622
+ /* @__PURE__ */ jsx(
623
+ Box,
624
+ {
625
+ "data-slot": "sidebar-gap",
626
+ className: cn(
627
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
628
+ "group-data-[collapsible=offcanvas]:w-0",
629
+ "group-data-[side=right]:rotate-180",
630
+ variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
631
+ )
632
+ }
633
+ ),
634
+ /* @__PURE__ */ jsx(
635
+ Box,
636
+ {
637
+ "data-slot": "sidebar-container",
638
+ className: cn(
639
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
640
+ side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
641
+ // Adjust the padding for floating and inset variants.
642
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
643
+ className
644
+ ),
645
+ ...props,
646
+ children: /* @__PURE__ */ jsx(
647
+ Box,
648
+ {
649
+ "data-sidebar": "sidebar",
650
+ "data-slot": "sidebar-inner",
651
+ className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
652
+ children
653
+ }
654
+ )
655
+ }
656
+ )
657
+ ]
658
+ }
659
+ );
660
+ }
661
+ function SidebarTrigger({
662
+ className,
663
+ onClick,
664
+ ...props
665
+ }) {
666
+ const { toggleSidebar } = useSidebar();
667
+ return /* @__PURE__ */ jsxs(
668
+ Button,
669
+ {
670
+ "data-sidebar": "trigger",
671
+ "data-slot": "sidebar-trigger",
672
+ variant: "ghost",
673
+ size: "icon",
674
+ ...sx(cn("size-7", className)),
675
+ onClick: (event) => {
676
+ onClick?.(event);
677
+ toggleSidebar();
678
+ },
679
+ ...props,
680
+ children: [
681
+ /* @__PURE__ */ jsx(PanelLeftIcon, {}),
682
+ /* @__PURE__ */ jsx(Box, { tag: "span", className: "sr-only", children: "Toggle Sidebar" })
683
+ ]
684
+ }
685
+ );
686
+ }
687
+ function SidebarRail({ className, ...props }) {
688
+ const { toggleSidebar } = useSidebar();
689
+ return /* @__PURE__ */ jsx(
690
+ Box,
691
+ {
692
+ tag: "button",
693
+ "data-sidebar": "rail",
694
+ "data-slot": "sidebar-rail",
695
+ "aria-label": "Toggle Sidebar",
696
+ tabIndex: -1,
697
+ onClick: toggleSidebar,
698
+ title: "Toggle Sidebar",
699
+ className: cn(
700
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
701
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
702
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
703
+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
704
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
705
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
706
+ className
707
+ ),
708
+ ...props
709
+ }
710
+ );
711
+ }
712
+ function SidebarInset({ className, ...props }) {
713
+ return /* @__PURE__ */ jsx(
714
+ Box,
715
+ {
716
+ tag: "main",
717
+ "data-slot": "sidebar-inset",
718
+ className: cn(
719
+ "bg-background relative flex w-full flex-1 flex-col",
720
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
721
+ className
722
+ ),
723
+ ...props
724
+ }
725
+ );
726
+ }
727
+ function SidebarInput({
728
+ className,
729
+ ...props
730
+ }) {
731
+ return /* @__PURE__ */ jsx(
732
+ Input,
733
+ {
734
+ "data-slot": "sidebar-input",
735
+ "data-sidebar": "input",
736
+ ...sx(cn("bg-background h-8 w-full shadow-none", className)),
737
+ ...props
738
+ }
739
+ );
740
+ }
741
+ function SidebarHeader({ className, ...props }) {
742
+ return /* @__PURE__ */ jsx(
743
+ Box,
744
+ {
745
+ "data-slot": "sidebar-header",
746
+ "data-sidebar": "header",
747
+ className: cn("flex flex-col gap-2 p-2", className),
748
+ ...props
749
+ }
750
+ );
751
+ }
752
+ function SidebarFooter({ className, ...props }) {
753
+ return /* @__PURE__ */ jsx(
754
+ Box,
755
+ {
756
+ "data-slot": "sidebar-footer",
757
+ "data-sidebar": "footer",
758
+ className: cn("flex flex-col gap-2 p-2", className),
759
+ ...props
760
+ }
761
+ );
762
+ }
763
+ function SidebarSeparator({
764
+ className,
765
+ ...props
766
+ }) {
767
+ return /* @__PURE__ */ jsx(
768
+ Separator,
769
+ {
770
+ "data-slot": "sidebar-separator",
771
+ "data-sidebar": "separator",
772
+ ...sx(cn("bg-sidebar-border mx-2 w-auto", className)),
773
+ ...props
774
+ }
775
+ );
776
+ }
777
+ function SidebarContent({ className, ...props }) {
778
+ return /* @__PURE__ */ jsx(
779
+ Box,
780
+ {
781
+ "data-slot": "sidebar-content",
782
+ "data-sidebar": "content",
783
+ className: cn(
784
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
785
+ className
786
+ ),
787
+ ...props
788
+ }
789
+ );
790
+ }
791
+ function SidebarGroup({ className, ...props }) {
792
+ return /* @__PURE__ */ jsx(
793
+ Box,
794
+ {
795
+ "data-slot": "sidebar-group",
796
+ "data-sidebar": "group",
797
+ className: cn("relative flex w-full min-w-0 flex-col p-2", className),
798
+ ...props
799
+ }
800
+ );
801
+ }
802
+ function SidebarGroupLabel({
803
+ className,
804
+ asChild = false,
805
+ ...props
806
+ }) {
807
+ const Comp = asChild ? Slot : "div";
808
+ return /* @__PURE__ */ jsx(
809
+ Comp,
810
+ {
811
+ "data-slot": "sidebar-group-label",
812
+ "data-sidebar": "group-label",
813
+ className: cn(
814
+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
815
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
816
+ className
817
+ ),
818
+ ...props
819
+ }
820
+ );
821
+ }
822
+ function SidebarGroupAction({
823
+ className,
824
+ asChild = false,
825
+ ...props
826
+ }) {
827
+ const Comp = asChild ? Slot : "button";
828
+ return /* @__PURE__ */ jsx(
829
+ Comp,
830
+ {
831
+ "data-slot": "sidebar-group-action",
832
+ "data-sidebar": "group-action",
833
+ className: cn(
834
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
835
+ // Increases the hit area of the button on mobile.
836
+ "after:absolute after:-inset-2 md:after:hidden",
837
+ "group-data-[collapsible=icon]:hidden",
838
+ className
839
+ ),
840
+ ...props
841
+ }
842
+ );
843
+ }
844
+ function SidebarGroupContent({
845
+ className,
846
+ ...props
847
+ }) {
848
+ return /* @__PURE__ */ jsx(
849
+ Box,
850
+ {
851
+ "data-slot": "sidebar-group-content",
852
+ "data-sidebar": "group-content",
853
+ className: cn("w-full text-sm", className),
854
+ ...props
855
+ }
856
+ );
857
+ }
858
+ function SidebarMenu({ className, ...props }) {
859
+ return /* @__PURE__ */ jsx(
860
+ Box,
861
+ {
862
+ tag: "ul",
863
+ "data-slot": "sidebar-menu",
864
+ "data-sidebar": "menu",
865
+ className: cn("flex w-full min-w-0 flex-col gap-1", className),
866
+ ...props
867
+ }
868
+ );
869
+ }
870
+ function SidebarMenuItem({ className, ...props }) {
871
+ return /* @__PURE__ */ jsx(
872
+ Box,
873
+ {
874
+ tag: "li",
875
+ "data-slot": "sidebar-menu-item",
876
+ "data-sidebar": "menu-item",
877
+ className: cn("group/menu-item relative", className),
878
+ ...props
879
+ }
880
+ );
881
+ }
882
+ var sidebarMenuButtonVariants = variants(
883
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
884
+ {
885
+ variants: {
886
+ variant: {
887
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
888
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
889
+ },
890
+ size: {
891
+ default: "h-8 text-sm",
892
+ sm: "h-7 text-xs",
893
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
894
+ }
895
+ },
896
+ defaultVariants: {
897
+ variant: "default",
898
+ size: "default"
899
+ }
900
+ }
901
+ );
902
+ function SidebarMenuButton({
903
+ asChild = false,
904
+ isActive = false,
905
+ variant = "default",
906
+ size = "default",
907
+ tooltip,
908
+ className,
909
+ ...props
910
+ }) {
911
+ const Comp = asChild ? Slot : "button";
912
+ const { isMobile, state } = useSidebar();
913
+ const button = /* @__PURE__ */ jsx(
914
+ Comp,
915
+ {
916
+ "data-slot": "sidebar-menu-button",
917
+ "data-sidebar": "menu-button",
918
+ "data-size": size,
919
+ "data-active": isActive,
920
+ className: cn(sidebarMenuButtonVariants({ variant, size }), className),
921
+ ...props
922
+ }
923
+ );
924
+ if (!tooltip) {
925
+ return button;
926
+ }
927
+ if (typeof tooltip === "string") {
928
+ tooltip = {
929
+ children: tooltip
930
+ };
931
+ }
932
+ if (state !== "collapsed" || isMobile) {
933
+ return button;
934
+ }
935
+ return /* @__PURE__ */ jsxs(Tooltip, { placement: "right", children: [
936
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: button }),
937
+ /* @__PURE__ */ jsx(
938
+ TooltipContent,
939
+ {
940
+ ...tooltip
941
+ }
942
+ )
943
+ ] });
944
+ }
945
+ function SidebarMenuAction({
946
+ className,
947
+ asChild = false,
948
+ showOnHover = false,
949
+ ...props
950
+ }) {
951
+ const Comp = asChild ? Slot : "button";
952
+ return /* @__PURE__ */ jsx(
953
+ Comp,
954
+ {
955
+ "data-slot": "sidebar-menu-action",
956
+ "data-sidebar": "menu-action",
957
+ className: cn(
958
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
959
+ // Increases the hit area of the button on mobile.
960
+ "after:absolute after:-inset-2 md:after:hidden",
961
+ "peer-data-[size=sm]/menu-button:top-1",
962
+ "peer-data-[size=default]/menu-button:top-1.5",
963
+ "peer-data-[size=lg]/menu-button:top-2.5",
964
+ "group-data-[collapsible=icon]:hidden",
965
+ showOnHover && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
966
+ className
967
+ ),
968
+ ...props
969
+ }
970
+ );
971
+ }
972
+ function SidebarMenuBadge({
973
+ className,
974
+ ...props
975
+ }) {
976
+ return /* @__PURE__ */ jsx(
977
+ Box,
978
+ {
979
+ "data-slot": "sidebar-menu-badge",
980
+ "data-sidebar": "menu-badge",
981
+ className: cn(
982
+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
983
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
984
+ "peer-data-[size=sm]/menu-button:top-1",
985
+ "peer-data-[size=default]/menu-button:top-1.5",
986
+ "peer-data-[size=lg]/menu-button:top-2.5",
987
+ "group-data-[collapsible=icon]:hidden",
988
+ className
989
+ ),
990
+ ...props
991
+ }
992
+ );
993
+ }
994
+ function SidebarMenuSkeleton({
995
+ className,
996
+ showIcon = false,
997
+ ...props
998
+ }) {
999
+ const width = React2.useMemo(() => {
1000
+ return `${Math.floor(Math.random() * 40) + 50}%`;
1001
+ }, []);
1002
+ return /* @__PURE__ */ jsxs(
1003
+ Box,
1004
+ {
1005
+ "data-slot": "sidebar-menu-skeleton",
1006
+ "data-sidebar": "menu-skeleton",
1007
+ className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
1008
+ ...props,
1009
+ children: [
1010
+ showIcon && /* @__PURE__ */ jsx(
1011
+ Skeleton,
1012
+ {
1013
+ ...sx("size-4 rounded-md"),
1014
+ "data-sidebar": "menu-skeleton-icon"
1015
+ }
1016
+ ),
1017
+ /* @__PURE__ */ jsx(
1018
+ Skeleton,
1019
+ {
1020
+ className: "h-4 max-w-(--skeleton-width) flex-1",
1021
+ "data-sidebar": "menu-skeleton-text",
1022
+ style: {
1023
+ "--skeleton-width": width
1024
+ }
1025
+ }
1026
+ )
1027
+ ]
1028
+ }
1029
+ );
1030
+ }
1031
+ function SidebarMenuSub({ className, ...props }) {
1032
+ return /* @__PURE__ */ jsx(
1033
+ Box,
1034
+ {
1035
+ tag: "ul",
1036
+ "data-slot": "sidebar-menu-sub",
1037
+ "data-sidebar": "menu-sub",
1038
+ className: cn(
1039
+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
1040
+ "group-data-[collapsible=icon]:hidden",
1041
+ className
1042
+ ),
1043
+ ...props
1044
+ }
1045
+ );
1046
+ }
1047
+ function SidebarMenuSubItem({
1048
+ className,
1049
+ ...props
1050
+ }) {
1051
+ return /* @__PURE__ */ jsx(
1052
+ Box,
1053
+ {
1054
+ tag: "li",
1055
+ "data-slot": "sidebar-menu-sub-item",
1056
+ "data-sidebar": "menu-sub-item",
1057
+ className: cn("group/menu-sub-item relative", className),
1058
+ ...props
1059
+ }
1060
+ );
1061
+ }
1062
+ function SidebarMenuSubButton({
1063
+ asChild = false,
1064
+ size = "md",
1065
+ isActive = false,
1066
+ className,
1067
+ ...props
1068
+ }) {
1069
+ const Comp = asChild ? Slot : "a";
1070
+ return /* @__PURE__ */ jsx(
1071
+ Comp,
1072
+ {
1073
+ "data-slot": "sidebar-menu-sub-button",
1074
+ "data-sidebar": "menu-sub-button",
1075
+ "data-size": size,
1076
+ "data-active": isActive,
1077
+ className: cn(
1078
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
1079
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
1080
+ size === "sm" && "text-xs",
1081
+ size === "md" && "text-sm",
1082
+ "group-data-[collapsible=icon]:hidden",
1083
+ className
1084
+ ),
1085
+ ...props
1086
+ }
1087
+ );
1088
+ }
1089
+
1090
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };