@codefast/ui 0.9.0 → 0.9.2

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 (579) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +1 -1
  3. package/README.md +78 -39
  4. package/dist/components/accordion.d.ts +1 -2
  5. package/dist/components/accordion.js +1 -2
  6. package/dist/components/alert-dialog.d.ts +1 -2
  7. package/dist/components/alert-dialog.js +1 -2
  8. package/dist/components/alert.d.ts +1 -2
  9. package/dist/components/alert.js +1 -2
  10. package/dist/components/aspect-ratio.d.ts +1 -2
  11. package/dist/components/aspect-ratio.js +1 -2
  12. package/dist/components/attachment.d.ts +1 -2
  13. package/dist/components/attachment.js +1 -2
  14. package/dist/components/avatar.d.ts +1 -2
  15. package/dist/components/avatar.js +1 -2
  16. package/dist/components/badge.d.ts +1 -2
  17. package/dist/components/badge.js +1 -2
  18. package/dist/components/breadcrumb.d.ts +1 -2
  19. package/dist/components/breadcrumb.js +1 -2
  20. package/dist/components/bubble.d.ts +1 -2
  21. package/dist/components/bubble.js +1 -2
  22. package/dist/components/button-group.d.ts +1 -2
  23. package/dist/components/button-group.js +1 -2
  24. package/dist/components/button.d.ts +1 -2
  25. package/dist/components/button.js +1 -2
  26. package/dist/components/calendar.d.ts +2 -3
  27. package/dist/components/calendar.js +1 -2
  28. package/dist/components/card.d.ts +1 -2
  29. package/dist/components/card.js +1 -2
  30. package/dist/components/carousel.d.ts +1 -2
  31. package/dist/components/carousel.js +1 -2
  32. package/dist/components/chart.d.ts +1 -2
  33. package/dist/components/chart.js +1 -2
  34. package/dist/components/checkbox-cards.d.ts +1 -2
  35. package/dist/components/checkbox-cards.js +1 -2
  36. package/dist/components/checkbox-group.d.ts +1 -2
  37. package/dist/components/checkbox-group.js +1 -2
  38. package/dist/components/checkbox.d.ts +1 -2
  39. package/dist/components/checkbox.js +1 -2
  40. package/dist/components/collapsible.d.ts +1 -2
  41. package/dist/components/collapsible.js +1 -2
  42. package/dist/components/command.d.ts +1 -2
  43. package/dist/components/command.js +1 -2
  44. package/dist/components/context-menu.d.ts +2 -3
  45. package/dist/components/context-menu.js +3 -4
  46. package/dist/components/dialog.d.ts +1 -2
  47. package/dist/components/dialog.js +1 -2
  48. package/dist/components/direction.d.ts +1 -2
  49. package/dist/components/direction.js +1 -2
  50. package/dist/components/drawer.d.ts +1 -2
  51. package/dist/components/drawer.js +1 -2
  52. package/dist/components/dropdown-menu.d.ts +2 -3
  53. package/dist/components/dropdown-menu.js +3 -4
  54. package/dist/components/empty.d.ts +1 -2
  55. package/dist/components/empty.js +1 -2
  56. package/dist/components/field.d.ts +1 -2
  57. package/dist/components/field.js +1 -2
  58. package/dist/components/form.d.ts +1 -2
  59. package/dist/components/form.js +1 -2
  60. package/dist/components/hover-card.d.ts +1 -2
  61. package/dist/components/hover-card.js +1 -2
  62. package/dist/components/input-group.d.ts +1 -2
  63. package/dist/components/input-group.js +1 -2
  64. package/dist/components/input-number.d.ts +1 -2
  65. package/dist/components/input-number.js +1 -2
  66. package/dist/components/input-otp.d.ts +1 -2
  67. package/dist/components/input-otp.js +1 -2
  68. package/dist/components/input-password.d.ts +1 -2
  69. package/dist/components/input-password.js +1 -2
  70. package/dist/components/input-search.d.ts +1 -2
  71. package/dist/components/input-search.js +2 -3
  72. package/dist/components/input.d.ts +1 -2
  73. package/dist/components/input.js +1 -2
  74. package/dist/components/item.d.ts +1 -2
  75. package/dist/components/item.js +1 -2
  76. package/dist/components/kbd.d.ts +1 -2
  77. package/dist/components/kbd.js +1 -2
  78. package/dist/components/label.d.ts +1 -2
  79. package/dist/components/label.js +1 -2
  80. package/dist/components/marker.d.ts +1 -2
  81. package/dist/components/marker.js +1 -2
  82. package/dist/components/menubar.d.ts +2 -3
  83. package/dist/components/menubar.js +3 -4
  84. package/dist/components/message-scroller.d.ts +1 -2
  85. package/dist/components/message-scroller.js +1 -2
  86. package/dist/components/message.d.ts +1 -2
  87. package/dist/components/message.js +1 -2
  88. package/dist/components/native-select.d.ts +1 -2
  89. package/dist/components/native-select.js +1 -2
  90. package/dist/components/navigation-menu.d.ts +1 -2
  91. package/dist/components/navigation-menu.js +1 -2
  92. package/dist/components/pagination.d.ts +1 -2
  93. package/dist/components/pagination.js +1 -2
  94. package/dist/components/popover.d.ts +1 -2
  95. package/dist/components/popover.js +1 -2
  96. package/dist/components/progress-circle.d.ts +1 -2
  97. package/dist/components/progress-circle.js +1 -2
  98. package/dist/components/progress.d.ts +1 -2
  99. package/dist/components/progress.js +1 -2
  100. package/dist/components/radio-cards.d.ts +1 -2
  101. package/dist/components/radio-cards.js +1 -2
  102. package/dist/components/radio-group.d.ts +1 -2
  103. package/dist/components/radio-group.js +1 -2
  104. package/dist/components/radio.d.ts +1 -2
  105. package/dist/components/radio.js +1 -2
  106. package/dist/components/resizable.d.ts +1 -2
  107. package/dist/components/resizable.js +1 -2
  108. package/dist/components/scroll-area.d.ts +1 -2
  109. package/dist/components/scroll-area.js +2 -3
  110. package/dist/components/select.d.ts +1 -2
  111. package/dist/components/select.js +1 -2
  112. package/dist/components/separator.d.ts +1 -2
  113. package/dist/components/separator.js +2 -3
  114. package/dist/components/sheet.d.ts +1 -2
  115. package/dist/components/sheet.js +1 -2
  116. package/dist/components/sidebar.d.ts +1 -2
  117. package/dist/components/sidebar.js +1 -2
  118. package/dist/components/skeleton.d.ts +1 -2
  119. package/dist/components/skeleton.js +1 -2
  120. package/dist/components/slider.d.ts +1 -2
  121. package/dist/components/slider.js +2 -3
  122. package/dist/components/sonner.d.ts +1 -2
  123. package/dist/components/sonner.js +1 -2
  124. package/dist/components/spinner.d.ts +1 -2
  125. package/dist/components/spinner.js +1 -2
  126. package/dist/components/switch.d.ts +1 -2
  127. package/dist/components/switch.js +1 -2
  128. package/dist/components/table.d.ts +1 -2
  129. package/dist/components/table.js +1 -2
  130. package/dist/components/tabs.d.ts +1 -2
  131. package/dist/components/tabs.js +1 -2
  132. package/dist/components/textarea.d.ts +1 -2
  133. package/dist/components/textarea.js +1 -2
  134. package/dist/components/toggle-group.d.ts +1 -2
  135. package/dist/components/toggle-group.js +1 -2
  136. package/dist/components/toggle.d.ts +1 -2
  137. package/dist/components/toggle.js +1 -2
  138. package/dist/components/tooltip.d.ts +1 -2
  139. package/dist/components/tooltip.js +1 -2
  140. package/dist/hooks/use-animated-value.d.ts +1 -2
  141. package/dist/hooks/use-animated-value.js +1 -2
  142. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -2
  143. package/dist/hooks/use-copy-to-clipboard.js +1 -2
  144. package/dist/hooks/use-has-hydrated.d.ts +1 -2
  145. package/dist/hooks/use-has-hydrated.js +1 -2
  146. package/dist/hooks/use-is-mobile.d.ts +1 -2
  147. package/dist/hooks/use-is-mobile.js +1 -2
  148. package/dist/hooks/use-latest.d.ts +1 -2
  149. package/dist/hooks/use-latest.js +1 -2
  150. package/dist/hooks/use-media-query.d.ts +1 -2
  151. package/dist/hooks/use-media-query.js +1 -2
  152. package/dist/hooks/use-message-scroller-commands.d.ts +1 -2
  153. package/dist/hooks/use-message-scroller-commands.js +1 -2
  154. package/dist/hooks/use-message-scroller-controller.d.ts +1 -2
  155. package/dist/hooks/use-message-scroller-controller.js +1 -2
  156. package/dist/hooks/use-message-scroller-refs.d.ts +2 -3
  157. package/dist/hooks/use-message-scroller-refs.js +1 -2
  158. package/dist/hooks/use-mutation-observer.d.ts +1 -2
  159. package/dist/hooks/use-mutation-observer.js +1 -2
  160. package/dist/hooks/use-pagination.d.ts +1 -2
  161. package/dist/hooks/use-pagination.js +1 -2
  162. package/dist/index.d.ts +1 -2
  163. package/dist/index.js +1 -2
  164. package/dist/lib/message-scroller/geometry.d.ts +1 -2
  165. package/dist/lib/message-scroller/geometry.js +1 -2
  166. package/dist/lib/message-scroller/stores.d.ts +1 -2
  167. package/dist/lib/message-scroller/stores.js +1 -2
  168. package/dist/lib/message-scroller/types.d.ts +4 -5
  169. package/dist/lib/message-scroller/types.js +1 -2
  170. package/dist/lib/use-render.d.ts +2 -3
  171. package/dist/lib/use-render.js +1 -2
  172. package/dist/lib/utils.d.ts +1 -2
  173. package/dist/lib/utils.js +1 -2
  174. package/dist/primitives/checkbox-group.d.ts +2 -3
  175. package/dist/primitives/checkbox-group.js +3 -4
  176. package/dist/primitives/input-number.d.ts +1 -2
  177. package/dist/primitives/input-number.js +2 -3
  178. package/dist/primitives/input.d.ts +1 -2
  179. package/dist/primitives/input.js +1 -2
  180. package/dist/primitives/message-scroller.d.ts +1 -2
  181. package/dist/primitives/message-scroller.js +1 -2
  182. package/dist/primitives/progress-circle.d.ts +1 -2
  183. package/dist/primitives/progress-circle.js +1 -2
  184. package/dist/variants/alert.d.ts +1 -2
  185. package/dist/variants/alert.js +1 -2
  186. package/dist/variants/attachment.d.ts +1 -2
  187. package/dist/variants/attachment.js +1 -2
  188. package/dist/variants/badge.d.ts +1 -2
  189. package/dist/variants/badge.js +1 -2
  190. package/dist/variants/bubble.d.ts +1 -2
  191. package/dist/variants/bubble.js +1 -2
  192. package/dist/variants/button-group.d.ts +1 -2
  193. package/dist/variants/button-group.js +1 -2
  194. package/dist/variants/button.d.ts +1 -2
  195. package/dist/variants/button.js +1 -2
  196. package/dist/variants/empty.d.ts +1 -2
  197. package/dist/variants/empty.js +1 -2
  198. package/dist/variants/field.d.ts +1 -2
  199. package/dist/variants/field.js +1 -2
  200. package/dist/variants/input-group.d.ts +1 -2
  201. package/dist/variants/input-group.js +1 -2
  202. package/dist/variants/item.d.ts +1 -2
  203. package/dist/variants/item.js +1 -2
  204. package/dist/variants/marker.d.ts +1 -2
  205. package/dist/variants/marker.js +1 -2
  206. package/dist/variants/navigation-menu.d.ts +1 -2
  207. package/dist/variants/navigation-menu.js +1 -2
  208. package/dist/variants/progress-circle.d.ts +1 -2
  209. package/dist/variants/progress-circle.js +1 -2
  210. package/dist/variants/scroll-area.d.ts +1 -2
  211. package/dist/variants/scroll-area.js +1 -2
  212. package/dist/variants/separator.d.ts +1 -2
  213. package/dist/variants/separator.js +1 -2
  214. package/dist/variants/sheet.d.ts +1 -2
  215. package/dist/variants/sheet.js +1 -2
  216. package/dist/variants/sidebar.d.ts +1 -2
  217. package/dist/variants/sidebar.js +1 -2
  218. package/dist/variants/tabs.d.ts +1 -2
  219. package/dist/variants/tabs.js +1 -2
  220. package/dist/variants/toggle.d.ts +1 -2
  221. package/dist/variants/toggle.js +1 -2
  222. package/package.json +6 -160
  223. package/dist/components/accordion.d.ts.map +0 -1
  224. package/dist/components/accordion.js.map +0 -1
  225. package/dist/components/alert-dialog.d.ts.map +0 -1
  226. package/dist/components/alert-dialog.js.map +0 -1
  227. package/dist/components/alert.d.ts.map +0 -1
  228. package/dist/components/alert.js.map +0 -1
  229. package/dist/components/aspect-ratio.d.ts.map +0 -1
  230. package/dist/components/aspect-ratio.js.map +0 -1
  231. package/dist/components/attachment.d.ts.map +0 -1
  232. package/dist/components/attachment.js.map +0 -1
  233. package/dist/components/avatar.d.ts.map +0 -1
  234. package/dist/components/avatar.js.map +0 -1
  235. package/dist/components/badge.d.ts.map +0 -1
  236. package/dist/components/badge.js.map +0 -1
  237. package/dist/components/breadcrumb.d.ts.map +0 -1
  238. package/dist/components/breadcrumb.js.map +0 -1
  239. package/dist/components/bubble.d.ts.map +0 -1
  240. package/dist/components/bubble.js.map +0 -1
  241. package/dist/components/button-group.d.ts.map +0 -1
  242. package/dist/components/button-group.js.map +0 -1
  243. package/dist/components/button.d.ts.map +0 -1
  244. package/dist/components/button.js.map +0 -1
  245. package/dist/components/calendar.d.ts.map +0 -1
  246. package/dist/components/calendar.js.map +0 -1
  247. package/dist/components/card.d.ts.map +0 -1
  248. package/dist/components/card.js.map +0 -1
  249. package/dist/components/carousel.d.ts.map +0 -1
  250. package/dist/components/carousel.js.map +0 -1
  251. package/dist/components/chart.d.ts.map +0 -1
  252. package/dist/components/chart.js.map +0 -1
  253. package/dist/components/checkbox-cards.d.ts.map +0 -1
  254. package/dist/components/checkbox-cards.js.map +0 -1
  255. package/dist/components/checkbox-group.d.ts.map +0 -1
  256. package/dist/components/checkbox-group.js.map +0 -1
  257. package/dist/components/checkbox.d.ts.map +0 -1
  258. package/dist/components/checkbox.js.map +0 -1
  259. package/dist/components/collapsible.d.ts.map +0 -1
  260. package/dist/components/collapsible.js.map +0 -1
  261. package/dist/components/command.d.ts.map +0 -1
  262. package/dist/components/command.js.map +0 -1
  263. package/dist/components/context-menu.d.ts.map +0 -1
  264. package/dist/components/context-menu.js.map +0 -1
  265. package/dist/components/dialog.d.ts.map +0 -1
  266. package/dist/components/dialog.js.map +0 -1
  267. package/dist/components/direction.d.ts.map +0 -1
  268. package/dist/components/direction.js.map +0 -1
  269. package/dist/components/drawer.d.ts.map +0 -1
  270. package/dist/components/drawer.js.map +0 -1
  271. package/dist/components/dropdown-menu.d.ts.map +0 -1
  272. package/dist/components/dropdown-menu.js.map +0 -1
  273. package/dist/components/empty.d.ts.map +0 -1
  274. package/dist/components/empty.js.map +0 -1
  275. package/dist/components/field.d.ts.map +0 -1
  276. package/dist/components/field.js.map +0 -1
  277. package/dist/components/form.d.ts.map +0 -1
  278. package/dist/components/form.js.map +0 -1
  279. package/dist/components/hover-card.d.ts.map +0 -1
  280. package/dist/components/hover-card.js.map +0 -1
  281. package/dist/components/input-group.d.ts.map +0 -1
  282. package/dist/components/input-group.js.map +0 -1
  283. package/dist/components/input-number.d.ts.map +0 -1
  284. package/dist/components/input-number.js.map +0 -1
  285. package/dist/components/input-otp.d.ts.map +0 -1
  286. package/dist/components/input-otp.js.map +0 -1
  287. package/dist/components/input-password.d.ts.map +0 -1
  288. package/dist/components/input-password.js.map +0 -1
  289. package/dist/components/input-search.d.ts.map +0 -1
  290. package/dist/components/input-search.js.map +0 -1
  291. package/dist/components/input.d.ts.map +0 -1
  292. package/dist/components/input.js.map +0 -1
  293. package/dist/components/item.d.ts.map +0 -1
  294. package/dist/components/item.js.map +0 -1
  295. package/dist/components/kbd.d.ts.map +0 -1
  296. package/dist/components/kbd.js.map +0 -1
  297. package/dist/components/label.d.ts.map +0 -1
  298. package/dist/components/label.js.map +0 -1
  299. package/dist/components/marker.d.ts.map +0 -1
  300. package/dist/components/marker.js.map +0 -1
  301. package/dist/components/menubar.d.ts.map +0 -1
  302. package/dist/components/menubar.js.map +0 -1
  303. package/dist/components/message-scroller.d.ts.map +0 -1
  304. package/dist/components/message-scroller.js.map +0 -1
  305. package/dist/components/message.d.ts.map +0 -1
  306. package/dist/components/message.js.map +0 -1
  307. package/dist/components/native-select.d.ts.map +0 -1
  308. package/dist/components/native-select.js.map +0 -1
  309. package/dist/components/navigation-menu.d.ts.map +0 -1
  310. package/dist/components/navigation-menu.js.map +0 -1
  311. package/dist/components/pagination.d.ts.map +0 -1
  312. package/dist/components/pagination.js.map +0 -1
  313. package/dist/components/popover.d.ts.map +0 -1
  314. package/dist/components/popover.js.map +0 -1
  315. package/dist/components/progress-circle.d.ts.map +0 -1
  316. package/dist/components/progress-circle.js.map +0 -1
  317. package/dist/components/progress.d.ts.map +0 -1
  318. package/dist/components/progress.js.map +0 -1
  319. package/dist/components/radio-cards.d.ts.map +0 -1
  320. package/dist/components/radio-cards.js.map +0 -1
  321. package/dist/components/radio-group.d.ts.map +0 -1
  322. package/dist/components/radio-group.js.map +0 -1
  323. package/dist/components/radio.d.ts.map +0 -1
  324. package/dist/components/radio.js.map +0 -1
  325. package/dist/components/resizable.d.ts.map +0 -1
  326. package/dist/components/resizable.js.map +0 -1
  327. package/dist/components/scroll-area.d.ts.map +0 -1
  328. package/dist/components/scroll-area.js.map +0 -1
  329. package/dist/components/select.d.ts.map +0 -1
  330. package/dist/components/select.js.map +0 -1
  331. package/dist/components/separator.d.ts.map +0 -1
  332. package/dist/components/separator.js.map +0 -1
  333. package/dist/components/sheet.d.ts.map +0 -1
  334. package/dist/components/sheet.js.map +0 -1
  335. package/dist/components/sidebar.d.ts.map +0 -1
  336. package/dist/components/sidebar.js.map +0 -1
  337. package/dist/components/skeleton.d.ts.map +0 -1
  338. package/dist/components/skeleton.js.map +0 -1
  339. package/dist/components/slider.d.ts.map +0 -1
  340. package/dist/components/slider.js.map +0 -1
  341. package/dist/components/sonner.d.ts.map +0 -1
  342. package/dist/components/sonner.js.map +0 -1
  343. package/dist/components/spinner.d.ts.map +0 -1
  344. package/dist/components/spinner.js.map +0 -1
  345. package/dist/components/switch.d.ts.map +0 -1
  346. package/dist/components/switch.js.map +0 -1
  347. package/dist/components/table.d.ts.map +0 -1
  348. package/dist/components/table.js.map +0 -1
  349. package/dist/components/tabs.d.ts.map +0 -1
  350. package/dist/components/tabs.js.map +0 -1
  351. package/dist/components/textarea.d.ts.map +0 -1
  352. package/dist/components/textarea.js.map +0 -1
  353. package/dist/components/toggle-group.d.ts.map +0 -1
  354. package/dist/components/toggle-group.js.map +0 -1
  355. package/dist/components/toggle.d.ts.map +0 -1
  356. package/dist/components/toggle.js.map +0 -1
  357. package/dist/components/tooltip.d.ts.map +0 -1
  358. package/dist/components/tooltip.js.map +0 -1
  359. package/dist/hooks/use-animated-value.d.ts.map +0 -1
  360. package/dist/hooks/use-animated-value.js.map +0 -1
  361. package/dist/hooks/use-copy-to-clipboard.d.ts.map +0 -1
  362. package/dist/hooks/use-copy-to-clipboard.js.map +0 -1
  363. package/dist/hooks/use-has-hydrated.d.ts.map +0 -1
  364. package/dist/hooks/use-has-hydrated.js.map +0 -1
  365. package/dist/hooks/use-is-mobile.d.ts.map +0 -1
  366. package/dist/hooks/use-is-mobile.js.map +0 -1
  367. package/dist/hooks/use-latest.d.ts.map +0 -1
  368. package/dist/hooks/use-latest.js.map +0 -1
  369. package/dist/hooks/use-media-query.d.ts.map +0 -1
  370. package/dist/hooks/use-media-query.js.map +0 -1
  371. package/dist/hooks/use-message-scroller-commands.d.ts.map +0 -1
  372. package/dist/hooks/use-message-scroller-commands.js.map +0 -1
  373. package/dist/hooks/use-message-scroller-controller.d.ts.map +0 -1
  374. package/dist/hooks/use-message-scroller-controller.js.map +0 -1
  375. package/dist/hooks/use-message-scroller-refs.d.ts.map +0 -1
  376. package/dist/hooks/use-message-scroller-refs.js.map +0 -1
  377. package/dist/hooks/use-mutation-observer.d.ts.map +0 -1
  378. package/dist/hooks/use-mutation-observer.js.map +0 -1
  379. package/dist/hooks/use-pagination.d.ts.map +0 -1
  380. package/dist/hooks/use-pagination.js.map +0 -1
  381. package/dist/index.d.ts.map +0 -1
  382. package/dist/index.js.map +0 -1
  383. package/dist/lib/message-scroller/geometry.d.ts.map +0 -1
  384. package/dist/lib/message-scroller/geometry.js.map +0 -1
  385. package/dist/lib/message-scroller/stores.d.ts.map +0 -1
  386. package/dist/lib/message-scroller/stores.js.map +0 -1
  387. package/dist/lib/message-scroller/types.d.ts.map +0 -1
  388. package/dist/lib/message-scroller/types.js.map +0 -1
  389. package/dist/lib/use-render.d.ts.map +0 -1
  390. package/dist/lib/use-render.js.map +0 -1
  391. package/dist/lib/utils.d.ts.map +0 -1
  392. package/dist/lib/utils.js.map +0 -1
  393. package/dist/primitives/checkbox-group.d.ts.map +0 -1
  394. package/dist/primitives/checkbox-group.js.map +0 -1
  395. package/dist/primitives/input-number.d.ts.map +0 -1
  396. package/dist/primitives/input-number.js.map +0 -1
  397. package/dist/primitives/input.d.ts.map +0 -1
  398. package/dist/primitives/input.js.map +0 -1
  399. package/dist/primitives/message-scroller.d.ts.map +0 -1
  400. package/dist/primitives/message-scroller.js.map +0 -1
  401. package/dist/primitives/progress-circle.d.ts.map +0 -1
  402. package/dist/primitives/progress-circle.js.map +0 -1
  403. package/dist/variants/alert.d.ts.map +0 -1
  404. package/dist/variants/alert.js.map +0 -1
  405. package/dist/variants/attachment.d.ts.map +0 -1
  406. package/dist/variants/attachment.js.map +0 -1
  407. package/dist/variants/badge.d.ts.map +0 -1
  408. package/dist/variants/badge.js.map +0 -1
  409. package/dist/variants/bubble.d.ts.map +0 -1
  410. package/dist/variants/bubble.js.map +0 -1
  411. package/dist/variants/button-group.d.ts.map +0 -1
  412. package/dist/variants/button-group.js.map +0 -1
  413. package/dist/variants/button.d.ts.map +0 -1
  414. package/dist/variants/button.js.map +0 -1
  415. package/dist/variants/empty.d.ts.map +0 -1
  416. package/dist/variants/empty.js.map +0 -1
  417. package/dist/variants/field.d.ts.map +0 -1
  418. package/dist/variants/field.js.map +0 -1
  419. package/dist/variants/input-group.d.ts.map +0 -1
  420. package/dist/variants/input-group.js.map +0 -1
  421. package/dist/variants/item.d.ts.map +0 -1
  422. package/dist/variants/item.js.map +0 -1
  423. package/dist/variants/marker.d.ts.map +0 -1
  424. package/dist/variants/marker.js.map +0 -1
  425. package/dist/variants/navigation-menu.d.ts.map +0 -1
  426. package/dist/variants/navigation-menu.js.map +0 -1
  427. package/dist/variants/progress-circle.d.ts.map +0 -1
  428. package/dist/variants/progress-circle.js.map +0 -1
  429. package/dist/variants/scroll-area.d.ts.map +0 -1
  430. package/dist/variants/scroll-area.js.map +0 -1
  431. package/dist/variants/separator.d.ts.map +0 -1
  432. package/dist/variants/separator.js.map +0 -1
  433. package/dist/variants/sheet.d.ts.map +0 -1
  434. package/dist/variants/sheet.js.map +0 -1
  435. package/dist/variants/sidebar.d.ts.map +0 -1
  436. package/dist/variants/sidebar.js.map +0 -1
  437. package/dist/variants/tabs.d.ts.map +0 -1
  438. package/dist/variants/tabs.js.map +0 -1
  439. package/dist/variants/toggle.d.ts.map +0 -1
  440. package/dist/variants/toggle.js.map +0 -1
  441. package/src/components/accordion.tsx +0 -104
  442. package/src/components/alert-dialog.tsx +0 -274
  443. package/src/components/alert.tsx +0 -84
  444. package/src/components/aspect-ratio.tsx +0 -21
  445. package/src/components/attachment.tsx +0 -264
  446. package/src/components/avatar.tsx +0 -157
  447. package/src/components/badge.tsx +0 -31
  448. package/src/components/breadcrumb.tsx +0 -170
  449. package/src/components/bubble.tsx +0 -106
  450. package/src/components/button-group.tsx +0 -89
  451. package/src/components/button.tsx +0 -51
  452. package/src/components/calendar.tsx +0 -210
  453. package/src/components/card.tsx +0 -153
  454. package/src/components/carousel.tsx +0 -344
  455. package/src/components/chart.tsx +0 -514
  456. package/src/components/checkbox-cards.tsx +0 -67
  457. package/src/components/checkbox-group.tsx +0 -55
  458. package/src/components/checkbox.tsx +0 -41
  459. package/src/components/collapsible.tsx +0 -49
  460. package/src/components/command.tsx +0 -276
  461. package/src/components/context-menu.tsx +0 -378
  462. package/src/components/dialog.tsx +0 -226
  463. package/src/components/direction.tsx +0 -28
  464. package/src/components/drawer.tsx +0 -191
  465. package/src/components/dropdown-menu.tsx +0 -387
  466. package/src/components/empty.tsx +0 -141
  467. package/src/components/field.tsx +0 -307
  468. package/src/components/form.tsx +0 -238
  469. package/src/components/hover-card.tsx +0 -83
  470. package/src/components/input-group.tsx +0 -171
  471. package/src/components/input-number.tsx +0 -191
  472. package/src/components/input-otp.tsx +0 -122
  473. package/src/components/input-password.tsx +0 -46
  474. package/src/components/input-search.tsx +0 -77
  475. package/src/components/input.tsx +0 -32
  476. package/src/components/item.tsx +0 -244
  477. package/src/components/kbd.tsx +0 -43
  478. package/src/components/label.tsx +0 -32
  479. package/src/components/marker.tsx +0 -86
  480. package/src/components/menubar.tsx +0 -406
  481. package/src/components/message-scroller.tsx +0 -199
  482. package/src/components/message.tsx +0 -159
  483. package/src/components/native-select.tsx +0 -79
  484. package/src/components/navigation-menu.tsx +0 -217
  485. package/src/components/pagination.tsx +0 -182
  486. package/src/components/popover.tsx +0 -152
  487. package/src/components/progress-circle.tsx +0 -179
  488. package/src/components/progress.tsx +0 -37
  489. package/src/components/radio-cards.tsx +0 -60
  490. package/src/components/radio-group.tsx +0 -55
  491. package/src/components/radio.tsx +0 -36
  492. package/src/components/resizable.tsx +0 -70
  493. package/src/components/scroll-area.tsx +0 -87
  494. package/src/components/select.tsx +0 -274
  495. package/src/components/separator.tsx +0 -54
  496. package/src/components/sheet.tsx +0 -221
  497. package/src/components/sidebar.tsx +0 -891
  498. package/src/components/skeleton.tsx +0 -31
  499. package/src/components/slider.tsx +0 -62
  500. package/src/components/sonner.tsx +0 -53
  501. package/src/components/spinner.tsx +0 -62
  502. package/src/components/switch.tsx +0 -40
  503. package/src/components/table.tsx +0 -165
  504. package/src/components/tabs.tsx +0 -100
  505. package/src/components/textarea.tsx +0 -31
  506. package/src/components/toggle-group.tsx +0 -129
  507. package/src/components/toggle.tsx +0 -26
  508. package/src/components/tooltip.tsx +0 -103
  509. package/src/css/foundation/base.css +0 -68
  510. package/src/css/foundation/motion.css +0 -65
  511. package/src/css/foundation/source.css +0 -10
  512. package/src/css/foundation/tokens.css +0 -83
  513. package/src/css/foundation/utilities.css +0 -451
  514. package/src/css/foundation/variants.css +0 -108
  515. package/src/css/preset.css +0 -14
  516. package/src/css/style.css +0 -11
  517. package/src/css/themes/amber.css +0 -105
  518. package/src/css/themes/blue.css +0 -105
  519. package/src/css/themes/cyan.css +0 -105
  520. package/src/css/themes/emerald.css +0 -105
  521. package/src/css/themes/fuchsia.css +0 -105
  522. package/src/css/themes/gray.css +0 -105
  523. package/src/css/themes/green.css +0 -105
  524. package/src/css/themes/indigo.css +0 -105
  525. package/src/css/themes/lime.css +0 -105
  526. package/src/css/themes/neutral.css +0 -105
  527. package/src/css/themes/orange.css +0 -105
  528. package/src/css/themes/pink.css +0 -105
  529. package/src/css/themes/purple.css +0 -105
  530. package/src/css/themes/red.css +0 -105
  531. package/src/css/themes/rose.css +0 -105
  532. package/src/css/themes/sky.css +0 -105
  533. package/src/css/themes/slate.css +0 -105
  534. package/src/css/themes/stone.css +0 -105
  535. package/src/css/themes/teal.css +0 -105
  536. package/src/css/themes/violet.css +0 -105
  537. package/src/css/themes/yellow.css +0 -105
  538. package/src/css/themes/zinc.css +0 -105
  539. package/src/hooks/use-animated-value.ts +0 -95
  540. package/src/hooks/use-copy-to-clipboard.ts +0 -58
  541. package/src/hooks/use-has-hydrated.ts +0 -22
  542. package/src/hooks/use-is-mobile.ts +0 -25
  543. package/src/hooks/use-latest.ts +0 -23
  544. package/src/hooks/use-media-query.ts +0 -69
  545. package/src/hooks/use-message-scroller-commands.ts +0 -351
  546. package/src/hooks/use-message-scroller-controller.ts +0 -733
  547. package/src/hooks/use-message-scroller-refs.ts +0 -163
  548. package/src/hooks/use-mutation-observer.ts +0 -51
  549. package/src/hooks/use-pagination.ts +0 -166
  550. package/src/index.ts +0 -751
  551. package/src/lib/message-scroller/geometry.ts +0 -401
  552. package/src/lib/message-scroller/stores.ts +0 -88
  553. package/src/lib/message-scroller/types.ts +0 -349
  554. package/src/lib/use-render.ts +0 -201
  555. package/src/lib/utils.ts +0 -5
  556. package/src/primitives/checkbox-group.tsx +0 -335
  557. package/src/primitives/input-number.tsx +0 -1030
  558. package/src/primitives/input.tsx +0 -221
  559. package/src/primitives/message-scroller.tsx +0 -414
  560. package/src/primitives/progress-circle.tsx +0 -489
  561. package/src/variants/alert.ts +0 -30
  562. package/src/variants/attachment.ts +0 -67
  563. package/src/variants/badge.ts +0 -35
  564. package/src/variants/bubble.ts +0 -75
  565. package/src/variants/button-group.ts +0 -32
  566. package/src/variants/button.ts +0 -51
  567. package/src/variants/empty.ts +0 -30
  568. package/src/variants/field.ts +0 -33
  569. package/src/variants/input-group.ts +0 -72
  570. package/src/variants/item.ts +0 -62
  571. package/src/variants/marker.ts +0 -34
  572. package/src/variants/navigation-menu.ts +0 -21
  573. package/src/variants/progress-circle.ts +0 -42
  574. package/src/variants/scroll-area.ts +0 -69
  575. package/src/variants/separator.ts +0 -36
  576. package/src/variants/sheet.ts +0 -33
  577. package/src/variants/sidebar.ts +0 -37
  578. package/src/variants/tabs.ts +0 -30
  579. package/src/variants/toggle.ts +0 -36
@@ -1,105 +0,0 @@
1
- /* -------------------------------------------------------------------------
2
- * Violet theme
3
- *
4
- * Color tokens for the violet palette across the light (`:root`) and
5
- * `.dark` variants. Trailing comments note the source
6
- * palette swatch for each value.
7
- * ------------------------------------------------------------------------- */
8
-
9
- :root {
10
- /* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
11
-
12
- --background: oklch(1 0 0); /* --color-zinc-50 */
13
- --foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
14
-
15
- --primary: oklch(0.541 0.281 293.009); /* --color-violet-600 */
16
- --primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
17
-
18
- --secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
19
- --secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
20
-
21
- --destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
22
-
23
- --muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
24
- --muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
25
-
26
- --accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
27
- --accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
28
-
29
- --popover: oklch(1 0 0); /* --color-zinc-50 */
30
- --popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
31
-
32
- --card: oklch(1 0 0); /* --color-zinc-50 */
33
- --card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
34
-
35
- /* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
36
-
37
- --border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
38
- --input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
39
- --ring: oklch(0.702 0.183 293.541); /* --color-violet-400 */
40
-
41
- /* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
42
-
43
- --sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
44
- --sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
45
- --sidebar-primary: oklch(0.541 0.281 293.009); /* --color-violet-600 */
46
- --sidebar-primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
47
- --sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
48
- --sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
49
- --sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
50
- --sidebar-ring: oklch(0.702 0.183 293.541); /* --color-violet-400 */
51
-
52
- /* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
53
-
54
- --chart-1: oklch(0.811 0.111 293.571); /* --color-violet-300 */
55
- --chart-2: oklch(0.606 0.25 292.717); /* --color-violet-500 */
56
- --chart-3: oklch(0.541 0.281 293.009); /* --color-violet-600 */
57
- --chart-4: oklch(0.491 0.27 292.581); /* --color-violet-700 */
58
- --chart-5: oklch(0.432 0.232 292.759); /* --color-violet-800 */
59
- }
60
-
61
- .dark {
62
- /* Dark variant — overrides the light tokens above. */
63
-
64
- --background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
65
- --foreground: oklch(0.985 0 0); /* --color-zinc-50 */
66
-
67
- --primary: oklch(0.606 0.25 292.717); /* --color-violet-500 */
68
- --primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
69
-
70
- --secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
71
- --secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
72
-
73
- --destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
74
-
75
- --muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
76
- --muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
77
-
78
- --accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
79
- --accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
80
-
81
- --popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
82
- --popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
83
-
84
- --card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
85
- --card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
86
-
87
- --border: oklch(1 0 0 / 10%); /* --color-white */
88
- --input: oklch(1 0 0 / 15%); /* --color-white */
89
- --ring: oklch(0.38 0.189 293.745); /* --color-violet-900 */
90
-
91
- --sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
92
- --sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
93
- --sidebar-primary: oklch(0.606 0.25 292.717); /* --color-violet-500 */
94
- --sidebar-primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
95
- --sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
96
- --sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
97
- --sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
98
- --sidebar-ring: oklch(0.38 0.189 293.745); /* --color-violet-900 */
99
-
100
- --chart-1: oklch(0.811 0.111 293.571); /* --color-violet-300 */
101
- --chart-2: oklch(0.606 0.25 292.717); /* --color-violet-500 */
102
- --chart-3: oklch(0.541 0.281 293.009); /* --color-violet-600 */
103
- --chart-4: oklch(0.491 0.27 292.581); /* --color-violet-700 */
104
- --chart-5: oklch(0.432 0.232 292.759); /* --color-violet-800 */
105
- }
@@ -1,105 +0,0 @@
1
- /* -------------------------------------------------------------------------
2
- * Yellow theme
3
- *
4
- * Color tokens for the yellow palette across the light (`:root`) and
5
- * `.dark` variants. Trailing comments note the source
6
- * palette swatch for each value.
7
- * ------------------------------------------------------------------------- */
8
-
9
- :root {
10
- /* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
11
-
12
- --background: oklch(1 0 0); /* --color-zinc-50 */
13
- --foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
14
-
15
- --primary: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
16
- --primary-foreground: oklch(0.987 0.026 102.212); /* --color-yellow-50 */
17
-
18
- --secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
19
- --secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
20
-
21
- --destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
22
-
23
- --muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
24
- --muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
25
-
26
- --accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
27
- --accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
28
-
29
- --popover: oklch(1 0 0); /* --color-zinc-50 */
30
- --popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
31
-
32
- --card: oklch(1 0 0); /* --color-zinc-50 */
33
- --card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
34
-
35
- /* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
36
-
37
- --border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
38
- --input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
39
- --ring: oklch(0.852 0.199 91.936); /* --color-yellow-400 */
40
-
41
- /* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
42
-
43
- --sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
44
- --sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
45
- --sidebar-primary: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
46
- --sidebar-primary-foreground: oklch(0.987 0.026 102.212); /* --color-yellow-50 */
47
- --sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
48
- --sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
49
- --sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
50
- --sidebar-ring: oklch(0.852 0.199 91.936); /* --color-yellow-400 */
51
-
52
- /* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
53
-
54
- --chart-1: oklch(0.905 0.182 98.111); /* --color-yellow-300 */
55
- --chart-2: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
56
- --chart-3: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
57
- --chart-4: oklch(0.554 0.135 66.442); /* --color-yellow-700 */
58
- --chart-5: oklch(0.476 0.114 61.907); /* --color-yellow-800 */
59
- }
60
-
61
- .dark {
62
- /* Dark variant — overrides the light tokens above. */
63
-
64
- --background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
65
- --foreground: oklch(0.985 0 0); /* --color-zinc-50 */
66
-
67
- --primary: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
68
- --primary-foreground: oklch(0.421 0.095 57.708); /* --color-yellow-900 */
69
-
70
- --secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
71
- --secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
72
-
73
- --destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
74
-
75
- --muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
76
- --muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
77
-
78
- --accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
79
- --accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
80
-
81
- --popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
82
- --popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
83
-
84
- --card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
85
- --card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
86
-
87
- --border: oklch(1 0 0 / 10%); /* --color-white */
88
- --input: oklch(1 0 0 / 15%); /* --color-white */
89
- --ring: oklch(0.421 0.095 57.708); /* --color-yellow-900 */
90
-
91
- --sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
92
- --sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
93
- --sidebar-primary: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
94
- --sidebar-primary-foreground: oklch(0.987 0.026 102.212); /* --color-yellow-50 */
95
- --sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
96
- --sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
97
- --sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
98
- --sidebar-ring: oklch(0.421 0.095 57.708); /* --color-yellow-900 */
99
-
100
- --chart-1: oklch(0.905 0.182 98.111); /* --color-yellow-300 */
101
- --chart-2: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
102
- --chart-3: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
103
- --chart-4: oklch(0.554 0.135 66.442); /* --color-yellow-700 */
104
- --chart-5: oklch(0.476 0.114 61.907); /* --color-yellow-800 */
105
- }
@@ -1,105 +0,0 @@
1
- /* -------------------------------------------------------------------------
2
- * Zinc theme
3
- *
4
- * Color tokens for the zinc palette across the light (`:root`) and
5
- * `.dark` variants. Trailing comments note the source
6
- * palette swatch for each value.
7
- * ------------------------------------------------------------------------- */
8
-
9
- :root {
10
- /* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
11
-
12
- --background: oklch(1 0 0); /* --color-zinc-50 */
13
- --foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
14
-
15
- --primary: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
16
- --primary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
17
-
18
- --secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
19
- --secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
20
-
21
- --destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
22
-
23
- --muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
24
- --muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
25
-
26
- --accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
27
- --accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
28
-
29
- --popover: oklch(1 0 0); /* --color-zinc-50 */
30
- --popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
31
-
32
- --card: oklch(1 0 0); /* --color-zinc-50 */
33
- --card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
34
-
35
- /* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
36
-
37
- --border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
38
- --input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
39
- --ring: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
40
-
41
- /* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
42
-
43
- --sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
44
- --sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
45
- --sidebar-primary: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
46
- --sidebar-primary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
47
- --sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
48
- --sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
49
- --sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
50
- --sidebar-ring: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
51
-
52
- /* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
53
-
54
- --chart-1: oklch(0.646 0.222 41.116); /* --color-orange-600 */
55
- --chart-2: oklch(0.6 0.118 184.704); /* --color-teal-600 */
56
- --chart-3: oklch(0.398 0.07 227.392); /* --color-cyan-900 */
57
- --chart-4: oklch(0.828 0.189 84.429); /* --color-amber-400 */
58
- --chart-5: oklch(0.769 0.188 70.08); /* --color-amber-500 */
59
- }
60
-
61
- .dark {
62
- /* Dark variant — overrides the light tokens above. */
63
-
64
- --background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
65
- --foreground: oklch(0.985 0 0); /* --color-zinc-50 */
66
-
67
- --primary: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
68
- --primary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
69
-
70
- --secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
71
- --secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
72
-
73
- --destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
74
-
75
- --muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
76
- --muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
77
-
78
- --accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
79
- --accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
80
-
81
- --popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
82
- --popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
83
-
84
- --card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
85
- --card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
86
-
87
- --border: oklch(1 0 0 / 10%); /* --color-white */
88
- --input: oklch(1 0 0 / 15%); /* --color-white */
89
- --ring: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
90
-
91
- --sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
92
- --sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
93
- --sidebar-primary: oklch(0.488 0.243 264.376); /* --color-blue-700 */
94
- --sidebar-primary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
95
- --sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
96
- --sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
97
- --sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
98
- --sidebar-ring: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
99
-
100
- --chart-1: oklch(0.488 0.243 264.376); /* --color-blue-700 */
101
- --chart-2: oklch(0.696 0.17 162.48); /* --color-emerald-500 */
102
- --chart-3: oklch(0.769 0.188 70.08); /* --color-amber-500 */
103
- --chart-4: oklch(0.627 0.265 303.9); /* --color-purple-500 */
104
- --chart-5: oklch(0.645 0.246 16.439); /* --color-rose-500 */
105
- }
@@ -1,95 +0,0 @@
1
- import { useEffect, useRef, useState } from "react";
2
-
3
- /**
4
- * Produces a smoothly animated numeric value in response to changes.
5
- *
6
- * Applies a time-based easing (easeOutQuad) between the current and target values
7
- * over the specified duration. When disabled, the value updates immediately.
8
- *
9
- * @param targetValue - Target number to animate toward; null resolves to 0.
10
- * @param duration - Animation duration in milliseconds.
11
- * @param animated - When false, bypasses animation and sets the value directly.
12
- * @returns The current (rounded) animated value.
13
- *
14
- * @example
15
- * ```tsx
16
- * const value = useAnimatedValue(75, 1000, true);
17
- * return <div>{value}%</div>;
18
- * ```
19
- *
20
- * @since 0.3.16-canary.0
21
- */
22
- export function useAnimatedValue(targetValue: null | number, duration: number, animated?: boolean): number {
23
- // Default to 0 when targetValue is null
24
- const actualTargetValue = targetValue ?? 0;
25
-
26
- // Current animated output
27
- const [animatedValue, setAnimatedValue] = useState(actualTargetValue);
28
-
29
- // Prevent stale closures inside RAF loop
30
- const animatedValueRef = useRef(actualTargetValue);
31
-
32
- // Animate only when asked and there is a positive window; otherwise the target is shown directly.
33
- const shouldAnimate = animated === true && duration > 0;
34
-
35
- // Pin the state to the target while animation is off, so re-enabling eases from the shown value.
36
- if (!shouldAnimate && animatedValue !== actualTargetValue) {
37
- setAnimatedValue(actualTargetValue);
38
- }
39
-
40
- useEffect(() => {
41
- if (!shouldAnimate) {
42
- animatedValueRef.current = actualTargetValue;
43
-
44
- return;
45
- }
46
-
47
- // Starting value
48
- const currentValue = animatedValueRef.current;
49
-
50
- // Total delta across the animation
51
- const valueRange = actualTargetValue - currentValue;
52
-
53
- if (valueRange === 0) {
54
- return;
55
- }
56
-
57
- // Start timestamp
58
- const startTime = performance.now();
59
-
60
- // requestAnimationFrame id for cleanup
61
- let animationFrame: number;
62
-
63
- // RAF step
64
- const animateValue = (currentTime: number): void => {
65
- // Elapsed milliseconds
66
- const elapsedTime = currentTime - startTime;
67
-
68
- if (elapsedTime >= duration) {
69
- animatedValueRef.current = actualTargetValue;
70
- setAnimatedValue(actualTargetValue);
71
- } else {
72
- // Linear progress (0..1)
73
- const progress = elapsedTime / duration;
74
-
75
- // easeOutQuad easing
76
- const easeProgress = 1 - (1 - progress) * (1 - progress);
77
-
78
- // Interpolated value
79
- const nextValue = currentValue + valueRange * easeProgress;
80
-
81
- animatedValueRef.current = nextValue;
82
- setAnimatedValue(nextValue);
83
- animationFrame = requestAnimationFrame(animateValue);
84
- }
85
- };
86
-
87
- animationFrame = requestAnimationFrame(animateValue);
88
-
89
- return (): void => {
90
- cancelAnimationFrame(animationFrame);
91
- };
92
- }, [actualTargetValue, duration, shouldAnimate]);
93
-
94
- return Math.round(animatedValue);
95
- }
@@ -1,58 +0,0 @@
1
- import { useState } from "react";
2
-
3
- /**
4
- * Provides clipboard copy capability with a transient copied state.
5
- *
6
- * Internally uses the Clipboard API when available and sets a temporary
7
- * `isCopied` flag for UI feedback. A custom callback may be invoked upon copy.
8
- *
9
- * @param options - Configuration options.
10
- * - onCopy: Callback invoked after a successful copy.
11
- * - timeout: Duration in milliseconds to keep `isCopied` true. Defaults to 2000.
12
- * @returns An object with a `copyToClipboard` function and an `isCopied` flag.
13
- *
14
- * @example
15
- * ```tsx
16
- * const { copyToClipboard, isCopied } = useCopyToClipboard({ timeout: 1500 });
17
- * <button onClick={() => copyToClipboard("Hello")}>{isCopied ? "Copied" : "Copy"}</button>
18
- * ```
19
- *
20
- * @since 0.3.16-canary.0
21
- */
22
- export function useCopyToClipboard({ onCopy, timeout = 2000 }: { onCopy?: () => void; timeout?: number } = {}): {
23
- copyToClipboard: (value: string) => Promise<void>;
24
- isCopied: boolean;
25
- } {
26
- const [isCopied, setIsCopied] = useState(false);
27
-
28
- const copyToClipboard = async (value: string): Promise<void> => {
29
- if (
30
- typeof window === "undefined" ||
31
- !("clipboard" in navigator) ||
32
- typeof navigator.clipboard.writeText !== "function"
33
- ) {
34
- return;
35
- }
36
-
37
- if (!value) {
38
- return;
39
- }
40
-
41
- try {
42
- await navigator.clipboard.writeText(value);
43
- setIsCopied(true);
44
-
45
- if (onCopy) {
46
- onCopy();
47
- }
48
-
49
- setTimeout(() => {
50
- setIsCopied(false);
51
- }, timeout);
52
- } catch (error) {
53
- console.error(error);
54
- }
55
- };
56
-
57
- return { copyToClipboard, isCopied };
58
- }
@@ -1,22 +0,0 @@
1
- import { useSyncExternalStore } from "react";
2
-
3
- const emptySubscribe = (): (() => void) => () => {};
4
-
5
- /**
6
- * Reports `false` during SSR and the first client render, then `true` once hydrated.
7
- *
8
- * Client-only UI (a restored preference, viewport readouts) must match the server
9
- * markup on the first paint to avoid a hydration mismatch, so components gate on
10
- * this flag instead of a mount effect.
11
- *
12
- * @since 0.8.0
13
- */
14
- function useHasHydrated(): boolean {
15
- return useSyncExternalStore(
16
- emptySubscribe,
17
- () => true,
18
- () => false,
19
- );
20
- }
21
-
22
- export { useHasHydrated };
@@ -1,25 +0,0 @@
1
- import { useMediaQuery } from "#/hooks/use-media-query";
2
-
3
- /**
4
- * Determines whether the current viewport should be treated as mobile.
5
- *
6
- * Uses {@link useMediaQuery} to evaluate a max-width media query derived from the
7
- * provided breakpoint. By default, widths below 768px are considered mobile.
8
- *
9
- * @param mobileBreakpoint - Pixel width used as the mobile breakpoint. Values strictly
10
- * less than this breakpoint are treated as mobile. Defaults to 768.
11
- * @returns true when the viewport width is less than the given breakpoint; otherwise false.
12
- *
13
- * @example
14
- * ```tsx
15
- * const isMobile = useIsMobile();
16
- * if (isMobile) {
17
- * // Render compact layout
18
- * }
19
- * ```
20
- *
21
- * @since 0.3.16-canary.0
22
- */
23
- export function useIsMobile(mobileBreakpoint = 768): boolean {
24
- return useMediaQuery(`(max-width: ${(mobileBreakpoint - 1).toString()}px)`);
25
- }
@@ -1,23 +0,0 @@
1
- import type { RefObject } from "react";
2
- import { useLayoutEffect, useRef } from "react";
3
-
4
- /**
5
- * Returns a ref that always holds the latest value.
6
- *
7
- * The mirror runs in a layout effect, so every post-commit reader — later layout
8
- * effects, MutationObserver callbacks, event handlers — sees the current render's
9
- * value without a forbidden write during render.
10
- *
11
- * @since 0.5.0-canary.3
12
- */
13
- function useLatest<Value>(value: Value): RefObject<Value> {
14
- const ref = useRef(value);
15
-
16
- useLayoutEffect(() => {
17
- ref.current = value;
18
- }, [value]);
19
-
20
- return ref;
21
- }
22
-
23
- export { useLatest };
@@ -1,69 +0,0 @@
1
- import { useEffect, useState } from "react";
2
-
3
- /**
4
- * Event handler for MediaQueryList changes.
5
- *
6
- * @param event - Media query change event providing the updated match status.
7
- */
8
- type MediaQueryChangeHandler = (event: MediaQueryListEvent) => void;
9
-
10
- /**
11
- * Subscribe to a CSS media query and receive its match state.
12
- *
13
- * Evaluates the query immediately (when supported) and updates on changes
14
- * via an event listener.
15
- *
16
- * @param query - A valid media query string (e.g., "(max-width: 768px)").
17
- * @returns true when the media query currently matches; otherwise false.
18
- *
19
- * @example
20
- * ```tsx
21
- * const isNarrow = useMediaQuery("(max-width: 768px)");
22
- * ```
23
- *
24
- * @since 0.3.16-canary.0
25
- */
26
- export function useMediaQuery(query: string): boolean {
27
- /**
28
- * State to store whether the query matches.
29
- * The initial value is calculated based on the current window state.
30
- */
31
- const [matches, setMatches] = useState<boolean>(() => {
32
- // Ensure initial state matches current media query status
33
- if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
34
- return window.matchMedia(query).matches;
35
- }
36
-
37
- return false;
38
- });
39
-
40
- useEffect(() => {
41
- // Only run in a browser environment where matchMedia is available
42
- if (typeof window === "undefined") {
43
- return;
44
- }
45
-
46
- /**
47
- * MediaQueryList to evaluate and observe the provided query.
48
- */
49
- const mediaQueryList = window.matchMedia(query);
50
-
51
- /**
52
- * Update state when the media query status changes.
53
- */
54
- const onChange: MediaQueryChangeHandler = (event): void => {
55
- setMatches(event.matches);
56
- };
57
-
58
- mediaQueryList.addEventListener("change", onChange);
59
-
60
- /**
61
- * Removes the event listener on unmount or when the query changes.
62
- */
63
- return (): void => {
64
- mediaQueryList.removeEventListener("change", onChange);
65
- };
66
- }, [query]);
67
-
68
- return matches;
69
- }