@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,489 +0,0 @@
1
- import { Context } from "radix-ui/internal";
2
- import type { ComponentProps, ReactNode } from "react";
3
- import { useId, useMemo } from "react";
4
-
5
- // ── Context: ProgressCircleProvider ──────────────────────────────────────────────────────────────────────────────────
6
-
7
- const PROGRESS_CIRCLE_PROVIDER_NAME = "ProgressCircleProvider";
8
-
9
- type ScopedProps<P> = P & { __scopeProgressCircle?: Context.Scope };
10
-
11
- /**
12
- * Defines color thresholds based on progress values
13
- */
14
- interface Threshold {
15
- /**
16
- * Background color to be applied
17
- */
18
- background: string;
19
-
20
- /**
21
- * Foreground color to be applied
22
- */
23
- color: string;
24
-
25
- /**
26
- * The value at which this threshold becomes active
27
- */
28
- value: number;
29
- }
30
-
31
- /**
32
- * Props for the ProgressCircleProvider context
33
- */
34
- interface ProgressCircleContextValue {
35
- /**
36
- * Center coordinate of the circle (half of size)
37
- */
38
- center: number;
39
-
40
- /**
41
- * Total circumference of the circle for stroke calculations
42
- */
43
- circumference: number;
44
-
45
- /**
46
- * Clamped progress value, undefined for indeterminate state
47
- */
48
- clampedValue: number | undefined;
49
-
50
- /**
51
- * Unique identifier for the progress circle
52
- */
53
- id: string;
54
-
55
- /**
56
- * Maximum progress value
57
- */
58
- max: number;
59
-
60
- /**
61
- * Minimum progress value
62
- */
63
- min: number;
64
-
65
- /**
66
- * Radius of the circle for SVG rendering
67
- */
68
- radius: number;
69
-
70
- /**
71
- * CSS transform for rotating the progress indicator
72
- */
73
- rotationTransform: string;
74
-
75
- /**
76
- * Size of the progress circle in pixels
77
- */
78
- size: number;
79
-
80
- /**
81
- * Stroke dash offset for progress visualization
82
- */
83
- strokeDashoffset: number;
84
-
85
- /**
86
- * Width of the stroke for the progress circle
87
- */
88
- strokeWidth: number;
89
-
90
- /**
91
- * Threshold configuration for color changes
92
- */
93
- threshold: Threshold | undefined;
94
-
95
- /**
96
- * Raw progress value (can be null/undefined for indeterminate)
97
- */
98
- value: null | number | undefined;
99
-
100
- /**
101
- * Text representation of the current value for accessibility
102
- */
103
- valueText: string;
104
- }
105
-
106
- const [createProgressCircleContext, createProgressCircleScope] =
107
- Context.createContextScope(PROGRESS_CIRCLE_PROVIDER_NAME);
108
-
109
- const [ProgressCircleContextProvider, useProgressCircleContext] =
110
- createProgressCircleContext<ProgressCircleContextValue>(PROGRESS_CIRCLE_PROVIDER_NAME);
111
-
112
- // ── Component: ProgressCircleProvider ────────────────────────────────────────────────────────────────────────────────
113
-
114
- /**
115
- * @since 0.3.16-canary.0
116
- */
117
- interface ProgressCircleProviderProps {
118
- /**
119
- * React children to be rendered inside the progress circle
120
- */
121
- children: ReactNode;
122
-
123
- /**
124
- * Custom function to format the numeric value for display
125
- */
126
- formatValue?: (value: number) => string;
127
-
128
- /**
129
- * Unique identifier for the progress circle component
130
- */
131
- id?: string;
132
-
133
- /**
134
- * Maximum value of the progress (defaults to 100)
135
- */
136
- max?: number;
137
-
138
- /**
139
- * Minimum value of the progress (defaults to 0)
140
- */
141
- min?: number;
142
-
143
- /**
144
- * Size of the progress circle in pixels
145
- */
146
- size?: number;
147
-
148
- /**
149
- * Starting angle of the progress circle in degrees (0 = top)
150
- */
151
- startAngle?: number;
152
-
153
- /**
154
- * Width of the progress circle's stroke in pixels
155
- */
156
- strokeWidth?: number;
157
-
158
- /**
159
- * Array of threshold configurations for different value ranges
160
- */
161
- thresholds?: Array<Threshold>;
162
-
163
- /**
164
- * Current progress value (null for indeterminate state)
165
- */
166
- value?: null | number;
167
- }
168
-
169
- /**
170
- * Provides context for the ProgressCircle component
171
- *
172
- * Manages calculations for rendering the circular progress indicator,
173
- * including value clamping, sizing, thresholds, and indeterminate state.
174
- *
175
- * @example
176
- * ```tsx
177
- * <ProgressCircleProvider
178
- * value={75}
179
- * min={0}
180
- * max={100}
181
- * size={64}
182
- * thresholds={[
183
- * { value: 30, color: 'red', background: 'pink' },
184
- * { value: 70, color: 'yellow', background: 'lightyellow' },
185
- * { value: 100, color: 'green', background: 'lightgreen' }
186
- * ]}
187
- * >
188
- * <ProgressCircleSVG>
189
- * <ProgressCircleIndicator />
190
- * <ProgressCircleTrack />
191
- * </ProgressCircleSVG>
192
- * <ProgressCircleValue />
193
- * </ProgressCircleProvider>
194
- * ```
195
- *
196
- * @since 0.3.16-canary.0
197
- */
198
- function ProgressCircleProvider({
199
- __scopeProgressCircle,
200
- children,
201
- formatValue,
202
- id: propertyId,
203
- max = 100,
204
- min = 0,
205
- size = 48,
206
- startAngle = -90,
207
- strokeWidth = 4,
208
- thresholds,
209
- value,
210
- }: ScopedProps<ProgressCircleProviderProps>): ReactNode {
211
- const uniqueId = useId();
212
- const id = propertyId ?? uniqueId;
213
-
214
- // Ensure size and stroke width are non-negative
215
- const validSize = Math.max(0, size);
216
- const validStrokeWidth = Math.max(0, strokeWidth);
217
- const validStartAngle = startAngle % 360;
218
-
219
- // Validate min and max, swap if min > max
220
- let validMin = min;
221
- let validMax = max;
222
-
223
- if (validMin > validMax) {
224
- [validMin, validMax] = [validMax, validMin];
225
- }
226
-
227
- // Handle indeterminate state
228
- const isIndeterminate = value === null || value === undefined;
229
- const clampedValue = isIndeterminate ? undefined : clamp(validMin, validMax, value);
230
- const range = validMax - validMin;
231
- const percentage = clampedValue !== undefined && range > 0 ? ((clampedValue - validMin) / range) * 100 : 0;
232
- const valueText =
233
- clampedValue !== undefined && formatValue ? formatValue(clampedValue) : `${Math.round(percentage).toString()}%`;
234
-
235
- // Sort thresholds by value
236
- const sortedThresholds = useMemo(
237
- () => (thresholds && thresholds.length > 0 ? [...thresholds].toSorted((a, b) => a.value - b.value) : []),
238
- [thresholds],
239
- );
240
-
241
- // Determine an active threshold based on a clamped value
242
- const threshold = useMemo(() => {
243
- if (clampedValue === undefined) {
244
- return;
245
- }
246
-
247
- for (const sortedThreshold of sortedThresholds) {
248
- if (clampedValue <= sortedThreshold.value) {
249
- return sortedThreshold;
250
- }
251
- }
252
-
253
- return sortedThresholds.at(-1);
254
- }, [sortedThresholds, clampedValue]);
255
-
256
- // Calculate circle properties
257
- const center = validSize / 2;
258
- const radius = Math.max(0, center - validStrokeWidth / 2);
259
- const circumference = 2 * Math.PI * radius;
260
- const strokeDashoffset = circumference - (percentage / 100) * circumference;
261
- const rotationTransform = `rotate(${validStartAngle.toString()}, 0, 0)`;
262
-
263
- return (
264
- <ProgressCircleContextProvider
265
- center={center}
266
- circumference={circumference}
267
- clampedValue={clampedValue} // Undefined for indeterminate
268
- id={id}
269
- max={validMax}
270
- min={validMin}
271
- radius={radius}
272
- rotationTransform={rotationTransform}
273
- scope={__scopeProgressCircle}
274
- size={validSize}
275
- strokeDashoffset={strokeDashoffset}
276
- strokeWidth={validStrokeWidth}
277
- threshold={threshold}
278
- value={value ?? 0}
279
- valueText={valueText}
280
- >
281
- {children}
282
- </ProgressCircleContextProvider>
283
- );
284
- }
285
-
286
- // ── Component: ProgressCircle ────────────────────────────────────────────────────────────────────────────────────────
287
-
288
- /**
289
- * @since 0.3.16-canary.0
290
- */
291
- type ProgressCircleProps = ComponentProps<"div">;
292
-
293
- /**
294
- * Root component for the progress circle
295
- *
296
- * Serves as a wrapper for other progress circle components.
297
- *
298
- * @since 0.3.16-canary.0
299
- */
300
- function ProgressCircle({ __scopeProgressCircle, ...props }: ScopedProps<ProgressCircleProps>): ReactNode {
301
- return <div {...props} />;
302
- }
303
-
304
- // ── Component: ProgressCircleSVG ─────────────────────────────────────────────────────────────────────────────────────
305
-
306
- const PROGRESS_CIRCLE_SVG_NAME = "ProgressCircleSVG";
307
-
308
- /**
309
- * @since 0.3.16-canary.0
310
- */
311
- type ProgressCircleSVGProps = ComponentProps<"svg">;
312
-
313
- /**
314
- * SVG container for the progress circle
315
- *
316
- * Renders the SVG with accessibility attributes and supports indeterminate state.
317
- *
318
- * @since 0.3.16-canary.0
319
- */
320
- function ProgressCircleSVG({ __scopeProgressCircle, ...props }: ScopedProps<ProgressCircleSVGProps>): ReactNode {
321
- const { clampedValue, id, max, min, size, valueText } = useProgressCircleContext(
322
- PROGRESS_CIRCLE_SVG_NAME,
323
- __scopeProgressCircle,
324
- );
325
-
326
- return (
327
- <svg
328
- aria-label="Progress"
329
- aria-valuemax={max}
330
- aria-valuemin={min}
331
- aria-valuenow={clampedValue} // Undefined for indeterminate state
332
- aria-valuetext={clampedValue === undefined ? undefined : valueText}
333
- height={size}
334
- id={id}
335
- role="progressbar"
336
- viewBox={`0 0 ${size.toString()} ${size.toString()}`}
337
- width={size}
338
- {...props}
339
- />
340
- );
341
- }
342
-
343
- // ── Component: ProgressCircleTrack ───────────────────────────────────────────────────────────────────────────────────
344
-
345
- const PROGRESS_CIRCLE_TRACK_NAME = "ProgressCircleTrack";
346
-
347
- /**
348
- * @since 0.3.16-canary.0
349
- */
350
- type ProgressCircleTrackProps = ComponentProps<"circle">;
351
-
352
- /**
353
- * Background circle for the progress indicator
354
- *
355
- * Renders the static track of the progress circle.
356
- *
357
- * @since 0.3.16-canary.0
358
- */
359
- function ProgressCircleTrack({ __scopeProgressCircle, ...props }: ScopedProps<ProgressCircleTrackProps>): ReactNode {
360
- const { center, radius, strokeWidth, threshold } = useProgressCircleContext(
361
- PROGRESS_CIRCLE_TRACK_NAME,
362
- __scopeProgressCircle,
363
- );
364
-
365
- return (
366
- <circle
367
- cx={center}
368
- cy={center}
369
- fill="transparent"
370
- r={radius}
371
- stroke={threshold?.background ?? "currentColor"}
372
- strokeWidth={strokeWidth}
373
- {...props}
374
- />
375
- );
376
- }
377
-
378
- // ── Component: ProgressCircleIndicator ───────────────────────────────────────────────────────────────────────────────
379
-
380
- const PROGRESS_CIRCLE_INDICATOR_NAME = "ProgressCircleIndicator";
381
-
382
- /**
383
- * @since 0.3.16-canary.0
384
- */
385
- type ProgressCircleIndicatorProps = ComponentProps<"circle">;
386
-
387
- /**
388
- * Foreground circle showing progress
389
- *
390
- * Renders the dynamic progress indicator with stroke dash properties.
391
- *
392
- * @since 0.3.16-canary.0
393
- */
394
- function ProgressCircleIndicator({
395
- __scopeProgressCircle,
396
- ...props
397
- }: ScopedProps<ProgressCircleIndicatorProps>): ReactNode {
398
- const { center, circumference, radius, rotationTransform, strokeDashoffset, strokeWidth, threshold } =
399
- useProgressCircleContext(PROGRESS_CIRCLE_INDICATOR_NAME, __scopeProgressCircle);
400
-
401
- return (
402
- <circle
403
- cx={center}
404
- cy={center}
405
- fill="transparent"
406
- r={radius}
407
- stroke={threshold?.color ?? "currentColor"}
408
- strokeDasharray={circumference}
409
- strokeDashoffset={strokeDashoffset}
410
- strokeLinecap="round"
411
- strokeWidth={strokeWidth}
412
- transform={rotationTransform}
413
- {...props}
414
- />
415
- );
416
- }
417
-
418
- // ── Component: ProgressCircleValue ───────────────────────────────────────────────────────────────────────────────────
419
-
420
- const PROGRESS_CIRCLE_VALUE_NAME = "ProgressCircleValue";
421
-
422
- /**
423
- * @since 0.3.16-canary.0
424
- */
425
- interface ProgressCircleValueProps extends Omit<ComponentProps<"div">, "children"> {
426
- children?: ((context: { value: number | undefined; valueText: string }) => ReactNode) | ReactNode;
427
- }
428
-
429
- /**
430
- * Displays the current progress value
431
- *
432
- * Supports custom content or default value text rendering.
433
- *
434
- * @since 0.3.16-canary.0
435
- */
436
- function ProgressCircleValue({
437
- __scopeProgressCircle,
438
- children,
439
- ...props
440
- }: ScopedProps<ProgressCircleValueProps>): ReactNode {
441
- const { clampedValue, valueText } = useProgressCircleContext(PROGRESS_CIRCLE_VALUE_NAME, __scopeProgressCircle);
442
-
443
- if (typeof children === "function") {
444
- return children({ value: clampedValue, valueText });
445
- }
446
-
447
- return <div {...props}>{children ?? valueText}</div>;
448
- }
449
-
450
- // ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────
451
-
452
- /**
453
- * Clamps a value within a specified min/max range
454
- *
455
- * @param min - Minimum value
456
- * @param max - Maximum value
457
- * @param value - Value to clamp
458
- * @returns Clamped value
459
- */
460
- function clamp(min: number, max: number, value: number): number {
461
- return Math.min(max, Math.max(min, value));
462
- }
463
-
464
- // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
465
-
466
- export {
467
- createProgressCircleScope,
468
- ProgressCircleIndicator as Indicator,
469
- ProgressCircle,
470
- ProgressCircleIndicator,
471
- ProgressCircleProvider,
472
- ProgressCircleSVG,
473
- ProgressCircleTrack,
474
- ProgressCircleValue,
475
- ProgressCircleProvider as Provider,
476
- ProgressCircle as Root,
477
- ProgressCircleSVG as SVG,
478
- ProgressCircleTrack as Track,
479
- ProgressCircleValue as Value,
480
- };
481
-
482
- export type {
483
- ProgressCircleIndicatorProps,
484
- ProgressCircleProps,
485
- ProgressCircleProviderProps,
486
- ProgressCircleSVGProps,
487
- ProgressCircleTrackProps,
488
- ProgressCircleValueProps,
489
- };
@@ -1,30 +0,0 @@
1
- import type { VariantProps } from "#/lib/utils";
2
- import { tv } from "#/lib/utils";
3
-
4
- // ── Variant: Alert ───────────────────────────────────────────────────────────────────────────────────────────────────
5
-
6
- /**
7
- * @since 0.3.16-canary.0
8
- */
9
- const alertVariants = tv({
10
- base: "group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
11
- defaultVariants: {
12
- variant: "default",
13
- },
14
- variants: {
15
- variant: {
16
- default: "bg-card text-card-foreground",
17
- destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",
18
- },
19
- },
20
- });
21
-
22
- /**
23
- * @since 0.3.16-canary.0
24
- */
25
- type AlertVariants = VariantProps<typeof alertVariants>;
26
-
27
- // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
28
-
29
- export { alertVariants };
30
- export type { AlertVariants };
@@ -1,67 +0,0 @@
1
- import type { VariantProps } from "#/lib/utils";
2
- import { tv } from "#/lib/utils";
3
-
4
- // ── Variant: Attachment ──────────────────────────────────────────────────────────────────────────────────────────────
5
-
6
- /**
7
- * File/media attachment card. Size drives padding for the media and content
8
- * slots; orientation switches between a horizontal row and a vertical tile.
9
- *
10
- * @since 0.5.0-canary.3
11
- */
12
- const attachmentVariants = tv({
13
- base: "group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed",
14
- defaultVariants: {
15
- orientation: "horizontal",
16
- size: "default",
17
- },
18
- variants: {
19
- size: {
20
- default:
21
- "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",
22
- sm: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",
23
- xs: "gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1",
24
- },
25
- orientation: {
26
- horizontal: "min-w-40 items-center",
27
- vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30",
28
- },
29
- },
30
- });
31
-
32
- /**
33
- * @since 0.5.0-canary.3
34
- */
35
- type AttachmentVariants = VariantProps<typeof attachmentVariants>;
36
-
37
- // ── Variant: AttachmentMedia ─────────────────────────────────────────────────────────────────────────────────────────
38
-
39
- /**
40
- * Media thumbnail — an icon tile or a cover image that reacts to attachment
41
- * size, orientation, and upload state via the parent `group/attachment`.
42
- *
43
- * @since 0.5.0-canary.3
44
- */
45
- const attachmentMediaVariants = tv({
46
- base: "relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5",
47
- defaultVariants: {
48
- variant: "icon",
49
- },
50
- variants: {
51
- variant: {
52
- icon: "",
53
- image:
54
- "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover",
55
- },
56
- },
57
- });
58
-
59
- /**
60
- * @since 0.5.0-canary.3
61
- */
62
- type AttachmentMediaVariants = VariantProps<typeof attachmentMediaVariants>;
63
-
64
- // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
65
-
66
- export { attachmentMediaVariants, attachmentVariants };
67
- export type { AttachmentMediaVariants, AttachmentVariants };
@@ -1,35 +0,0 @@
1
- import type { VariantProps } from "#/lib/utils";
2
- import { tv } from "#/lib/utils";
3
-
4
- // ── Variant: Badge ───────────────────────────────────────────────────────────────────────────────────────────────────
5
-
6
- /**
7
- * @since 0.3.16-canary.0
8
- */
9
- const badgeVariants = tv({
10
- base: "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
11
- defaultVariants: {
12
- variant: "default",
13
- },
14
- variants: {
15
- variant: {
16
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
17
- destructive:
18
- "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
19
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
20
- link: "text-primary underline-offset-4 hover:underline",
21
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
22
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
23
- },
24
- },
25
- });
26
-
27
- /**
28
- * @since 0.3.16-canary.0
29
- */
30
- type BadgeVariants = VariantProps<typeof badgeVariants>;
31
-
32
- // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
33
-
34
- export { badgeVariants };
35
- export type { BadgeVariants };
@@ -1,75 +0,0 @@
1
- import type { VariantProps } from "#/lib/utils";
2
- import { tv } from "#/lib/utils";
3
-
4
- // ── Variant: Bubble ──────────────────────────────────────────────────────────────────────────────────────────────────
5
-
6
- /**
7
- * Chat bubble surface. Variants paint the nested `bubble-content`, so the color
8
- * follows the message author regardless of alignment.
9
- *
10
- * @since 0.5.0-canary.3
11
- */
12
- const bubbleVariants = tv({
13
- base: "group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",
14
- defaultVariants: {
15
- variant: "default",
16
- },
17
- variants: {
18
- variant: {
19
- default:
20
- "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
21
- secondary:
22
- "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
23
- muted:
24
- "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
25
- tinted:
26
- "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
27
- outline:
28
- "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
29
- ghost:
30
- "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",
31
- destructive:
32
- "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30",
33
- },
34
- },
35
- });
36
-
37
- /**
38
- * @since 0.5.0-canary.3
39
- */
40
- type BubbleVariants = VariantProps<typeof bubbleVariants>;
41
-
42
- // ── Variant: BubbleReactions ─────────────────────────────────────────────────────────────────────────────────────────
43
-
44
- /**
45
- * Reaction pill anchored to a bubble corner.
46
- *
47
- * @since 0.5.0-canary.3
48
- */
49
- const bubbleReactionsVariants = tv({
50
- base: "absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0",
51
- defaultVariants: {
52
- align: "end",
53
- side: "bottom",
54
- },
55
- variants: {
56
- side: {
57
- top: "top-0 -translate-y-3/4",
58
- bottom: "bottom-0 translate-y-3/4",
59
- },
60
- align: {
61
- start: "start-3",
62
- end: "end-3",
63
- },
64
- },
65
- });
66
-
67
- /**
68
- * @since 0.5.0-canary.3
69
- */
70
- type BubbleReactionsVariants = VariantProps<typeof bubbleReactionsVariants>;
71
-
72
- // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
73
-
74
- export { bubbleReactionsVariants, bubbleVariants };
75
- export type { BubbleReactionsVariants, BubbleVariants };