@codefast/ui 0.5.0-canary.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +24 -16
  3. package/dist/components/accordion.d.ts.map +1 -1
  4. package/dist/components/accordion.js +1 -3
  5. package/dist/components/accordion.js.map +1 -1
  6. package/dist/components/alert-dialog.d.ts.map +1 -1
  7. package/dist/components/alert-dialog.js +1 -3
  8. package/dist/components/alert-dialog.js.map +1 -1
  9. package/dist/components/alert.d.ts.map +1 -1
  10. package/dist/components/alert.js +1 -3
  11. package/dist/components/alert.js.map +1 -1
  12. package/dist/components/aspect-ratio.d.ts.map +1 -1
  13. package/dist/components/aspect-ratio.js +1 -3
  14. package/dist/components/aspect-ratio.js.map +1 -1
  15. package/dist/components/attachment.d.ts.map +1 -1
  16. package/dist/components/attachment.js +1 -3
  17. package/dist/components/attachment.js.map +1 -1
  18. package/dist/components/avatar.d.ts.map +1 -1
  19. package/dist/components/avatar.js +1 -3
  20. package/dist/components/avatar.js.map +1 -1
  21. package/dist/components/badge.d.ts.map +1 -1
  22. package/dist/components/badge.js +1 -3
  23. package/dist/components/badge.js.map +1 -1
  24. package/dist/components/breadcrumb.d.ts.map +1 -1
  25. package/dist/components/breadcrumb.js +1 -3
  26. package/dist/components/breadcrumb.js.map +1 -1
  27. package/dist/components/bubble.d.ts.map +1 -1
  28. package/dist/components/bubble.js +1 -3
  29. package/dist/components/bubble.js.map +1 -1
  30. package/dist/components/button-group.d.ts.map +1 -1
  31. package/dist/components/button-group.js +1 -3
  32. package/dist/components/button-group.js.map +1 -1
  33. package/dist/components/button.d.ts.map +1 -1
  34. package/dist/components/button.js +1 -3
  35. package/dist/components/button.js.map +1 -1
  36. package/dist/components/calendar.d.ts.map +1 -1
  37. package/dist/components/calendar.js +4 -12
  38. package/dist/components/calendar.js.map +1 -1
  39. package/dist/components/card.d.ts.map +1 -1
  40. package/dist/components/card.js +1 -3
  41. package/dist/components/card.js.map +1 -1
  42. package/dist/components/carousel.d.ts.map +1 -1
  43. package/dist/components/carousel.js +5 -15
  44. package/dist/components/carousel.js.map +1 -1
  45. package/dist/components/chart.d.ts.map +1 -1
  46. package/dist/components/chart.js +5 -15
  47. package/dist/components/chart.js.map +1 -1
  48. package/dist/components/checkbox-cards.d.ts.map +1 -1
  49. package/dist/components/checkbox-cards.js +1 -3
  50. package/dist/components/checkbox-cards.js.map +1 -1
  51. package/dist/components/checkbox-group.d.ts.map +1 -1
  52. package/dist/components/checkbox-group.js +1 -3
  53. package/dist/components/checkbox-group.js.map +1 -1
  54. package/dist/components/checkbox.d.ts.map +1 -1
  55. package/dist/components/checkbox.js +1 -3
  56. package/dist/components/checkbox.js.map +1 -1
  57. package/dist/components/collapsible.d.ts.map +1 -1
  58. package/dist/components/collapsible.js +1 -3
  59. package/dist/components/collapsible.js.map +1 -1
  60. package/dist/components/command.d.ts.map +1 -1
  61. package/dist/components/command.js +1 -3
  62. package/dist/components/command.js.map +1 -1
  63. package/dist/components/context-menu.d.ts.map +1 -1
  64. package/dist/components/context-menu.js +1 -3
  65. package/dist/components/context-menu.js.map +1 -1
  66. package/dist/components/dialog.d.ts.map +1 -1
  67. package/dist/components/dialog.js +1 -3
  68. package/dist/components/dialog.js.map +1 -1
  69. package/dist/components/direction.d.ts.map +1 -1
  70. package/dist/components/direction.js +1 -3
  71. package/dist/components/direction.js.map +1 -1
  72. package/dist/components/drawer.d.ts.map +1 -1
  73. package/dist/components/drawer.js +1 -3
  74. package/dist/components/drawer.js.map +1 -1
  75. package/dist/components/dropdown-menu.d.ts.map +1 -1
  76. package/dist/components/dropdown-menu.js +1 -3
  77. package/dist/components/dropdown-menu.js.map +1 -1
  78. package/dist/components/empty.d.ts.map +1 -1
  79. package/dist/components/empty.js +1 -3
  80. package/dist/components/empty.js.map +1 -1
  81. package/dist/components/field.d.ts.map +1 -1
  82. package/dist/components/field.js +1 -3
  83. package/dist/components/field.js.map +1 -1
  84. package/dist/components/form.d.ts.map +1 -1
  85. package/dist/components/form.js +5 -15
  86. package/dist/components/form.js.map +1 -1
  87. package/dist/components/hover-card.d.ts.map +1 -1
  88. package/dist/components/hover-card.js +1 -3
  89. package/dist/components/hover-card.js.map +1 -1
  90. package/dist/components/input-group.d.ts.map +1 -1
  91. package/dist/components/input-group.js +1 -3
  92. package/dist/components/input-group.js.map +1 -1
  93. package/dist/components/input-number.d.ts.map +1 -1
  94. package/dist/components/input-number.js +1 -3
  95. package/dist/components/input-number.js.map +1 -1
  96. package/dist/components/input-otp.d.ts.map +1 -1
  97. package/dist/components/input-otp.js +1 -3
  98. package/dist/components/input-otp.js.map +1 -1
  99. package/dist/components/input-password.d.ts.map +1 -1
  100. package/dist/components/input-password.js +1 -3
  101. package/dist/components/input-password.js.map +1 -1
  102. package/dist/components/input-search.d.ts.map +1 -1
  103. package/dist/components/input-search.js +1 -3
  104. package/dist/components/input-search.js.map +1 -1
  105. package/dist/components/input.d.ts.map +1 -1
  106. package/dist/components/input.js +1 -3
  107. package/dist/components/input.js.map +1 -1
  108. package/dist/components/item.d.ts.map +1 -1
  109. package/dist/components/item.js +1 -3
  110. package/dist/components/item.js.map +1 -1
  111. package/dist/components/kbd.d.ts.map +1 -1
  112. package/dist/components/kbd.js +1 -3
  113. package/dist/components/kbd.js.map +1 -1
  114. package/dist/components/label.d.ts.map +1 -1
  115. package/dist/components/label.js +1 -3
  116. package/dist/components/label.js.map +1 -1
  117. package/dist/components/marker.d.ts.map +1 -1
  118. package/dist/components/marker.js +1 -3
  119. package/dist/components/marker.js.map +1 -1
  120. package/dist/components/menubar.d.ts.map +1 -1
  121. package/dist/components/menubar.js +1 -3
  122. package/dist/components/menubar.js.map +1 -1
  123. package/dist/components/message-scroller.d.ts.map +1 -1
  124. package/dist/components/message-scroller.js +1 -3
  125. package/dist/components/message-scroller.js.map +1 -1
  126. package/dist/components/message.d.ts.map +1 -1
  127. package/dist/components/message.js +1 -3
  128. package/dist/components/message.js.map +1 -1
  129. package/dist/components/native-select.d.ts.map +1 -1
  130. package/dist/components/native-select.js +1 -3
  131. package/dist/components/native-select.js.map +1 -1
  132. package/dist/components/navigation-menu.d.ts.map +1 -1
  133. package/dist/components/navigation-menu.js +1 -3
  134. package/dist/components/navigation-menu.js.map +1 -1
  135. package/dist/components/pagination.d.ts.map +1 -1
  136. package/dist/components/pagination.js +1 -3
  137. package/dist/components/pagination.js.map +1 -1
  138. package/dist/components/popover.d.ts.map +1 -1
  139. package/dist/components/popover.js +1 -3
  140. package/dist/components/popover.js.map +1 -1
  141. package/dist/components/progress-circle.d.ts.map +1 -1
  142. package/dist/components/progress-circle.js +3 -7
  143. package/dist/components/progress-circle.js.map +1 -1
  144. package/dist/components/progress.d.ts.map +1 -1
  145. package/dist/components/progress.js +1 -3
  146. package/dist/components/progress.js.map +1 -1
  147. package/dist/components/radio-cards.d.ts.map +1 -1
  148. package/dist/components/radio-cards.js +1 -3
  149. package/dist/components/radio-cards.js.map +1 -1
  150. package/dist/components/radio-group.d.ts.map +1 -1
  151. package/dist/components/radio-group.js +1 -3
  152. package/dist/components/radio-group.js.map +1 -1
  153. package/dist/components/radio.d.ts.map +1 -1
  154. package/dist/components/radio.js +1 -3
  155. package/dist/components/radio.js.map +1 -1
  156. package/dist/components/resizable.d.ts.map +1 -1
  157. package/dist/components/resizable.js +1 -3
  158. package/dist/components/resizable.js.map +1 -1
  159. package/dist/components/scroll-area.d.ts.map +1 -1
  160. package/dist/components/scroll-area.js +2 -6
  161. package/dist/components/scroll-area.js.map +1 -1
  162. package/dist/components/select.d.ts.map +1 -1
  163. package/dist/components/select.js +1 -3
  164. package/dist/components/select.js.map +1 -1
  165. package/dist/components/separator.d.ts.map +1 -1
  166. package/dist/components/separator.js +1 -3
  167. package/dist/components/separator.js.map +1 -1
  168. package/dist/components/sheet.d.ts.map +1 -1
  169. package/dist/components/sheet.js +1 -3
  170. package/dist/components/sheet.js.map +1 -1
  171. package/dist/components/sidebar.d.ts +3 -0
  172. package/dist/components/sidebar.d.ts.map +1 -1
  173. package/dist/components/sidebar.js +9 -20
  174. package/dist/components/sidebar.js.map +1 -1
  175. package/dist/components/skeleton.d.ts.map +1 -1
  176. package/dist/components/skeleton.js +1 -3
  177. package/dist/components/skeleton.js.map +1 -1
  178. package/dist/components/slider.d.ts.map +1 -1
  179. package/dist/components/slider.js +1 -3
  180. package/dist/components/slider.js.map +1 -1
  181. package/dist/components/sonner.d.ts.map +1 -1
  182. package/dist/components/sonner.js +1 -3
  183. package/dist/components/sonner.js.map +1 -1
  184. package/dist/components/spinner.d.ts.map +1 -1
  185. package/dist/components/spinner.js +2 -6
  186. package/dist/components/spinner.js.map +1 -1
  187. package/dist/components/switch.d.ts.map +1 -1
  188. package/dist/components/switch.js +1 -3
  189. package/dist/components/switch.js.map +1 -1
  190. package/dist/components/table.d.ts.map +1 -1
  191. package/dist/components/table.js +1 -3
  192. package/dist/components/table.js.map +1 -1
  193. package/dist/components/tabs.d.ts.map +1 -1
  194. package/dist/components/tabs.js +1 -3
  195. package/dist/components/tabs.js.map +1 -1
  196. package/dist/components/textarea.d.ts.map +1 -1
  197. package/dist/components/textarea.js +1 -3
  198. package/dist/components/textarea.js.map +1 -1
  199. package/dist/components/toggle-group.d.ts.map +1 -1
  200. package/dist/components/toggle-group.js +3 -9
  201. package/dist/components/toggle-group.js.map +1 -1
  202. package/dist/components/toggle.d.ts.map +1 -1
  203. package/dist/components/toggle.js +1 -3
  204. package/dist/components/toggle.js.map +1 -1
  205. package/dist/components/tooltip.d.ts.map +1 -1
  206. package/dist/components/tooltip.js +1 -3
  207. package/dist/components/tooltip.js.map +1 -1
  208. package/dist/hooks/use-animated-value.d.ts +1 -1
  209. package/dist/hooks/use-animated-value.js +1 -1
  210. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
  211. package/dist/hooks/use-copy-to-clipboard.js +1 -1
  212. package/dist/hooks/use-is-mobile.d.ts +1 -1
  213. package/dist/hooks/use-is-mobile.js +1 -1
  214. package/dist/hooks/use-media-query.js +1 -1
  215. package/dist/hooks/use-message-scroller-commands.d.ts +4 -0
  216. package/dist/hooks/use-message-scroller-commands.d.ts.map +1 -1
  217. package/dist/hooks/use-message-scroller-commands.js +4 -3
  218. package/dist/hooks/use-message-scroller-commands.js.map +1 -1
  219. package/dist/hooks/use-message-scroller-controller.d.ts +4 -0
  220. package/dist/hooks/use-message-scroller-controller.d.ts.map +1 -1
  221. package/dist/hooks/use-message-scroller-controller.js +4 -3
  222. package/dist/hooks/use-message-scroller-controller.js.map +1 -1
  223. package/dist/hooks/use-message-scroller-refs.d.ts +7 -0
  224. package/dist/hooks/use-message-scroller-refs.d.ts.map +1 -1
  225. package/dist/hooks/use-message-scroller-refs.js +3 -2
  226. package/dist/hooks/use-message-scroller-refs.js.map +1 -1
  227. package/dist/hooks/use-pagination.d.ts +1 -1
  228. package/dist/hooks/use-pagination.js +1 -1
  229. package/dist/lib/message-scroller/types.d.ts +66 -0
  230. package/dist/lib/message-scroller/types.d.ts.map +1 -1
  231. package/dist/lib/message-scroller/types.js +23 -14
  232. package/dist/lib/message-scroller/types.js.map +1 -1
  233. package/dist/lib/use-render.d.ts +1 -1
  234. package/dist/lib/use-render.js +1 -1
  235. package/dist/primitives/checkbox-group.d.ts.map +1 -1
  236. package/dist/primitives/checkbox-group.js +3 -9
  237. package/dist/primitives/checkbox-group.js.map +1 -1
  238. package/dist/primitives/input-number.d.ts.map +1 -1
  239. package/dist/primitives/input-number.js +5 -15
  240. package/dist/primitives/input-number.js.map +1 -1
  241. package/dist/primitives/input.d.ts.map +1 -1
  242. package/dist/primitives/input.js +3 -9
  243. package/dist/primitives/input.js.map +1 -1
  244. package/dist/primitives/progress-circle.d.ts.map +1 -1
  245. package/dist/primitives/progress-circle.js +7 -21
  246. package/dist/primitives/progress-circle.js.map +1 -1
  247. package/dist/variants/alert.d.ts.map +1 -1
  248. package/dist/variants/alert.js +2 -6
  249. package/dist/variants/alert.js.map +1 -1
  250. package/dist/variants/attachment.d.ts.map +1 -1
  251. package/dist/variants/attachment.js +3 -9
  252. package/dist/variants/attachment.js.map +1 -1
  253. package/dist/variants/badge.d.ts.map +1 -1
  254. package/dist/variants/badge.js +2 -6
  255. package/dist/variants/badge.js.map +1 -1
  256. package/dist/variants/bubble.d.ts.map +1 -1
  257. package/dist/variants/bubble.js +3 -9
  258. package/dist/variants/bubble.js.map +1 -1
  259. package/dist/variants/button-group.d.ts.map +1 -1
  260. package/dist/variants/button-group.js +2 -6
  261. package/dist/variants/button-group.js.map +1 -1
  262. package/dist/variants/button.d.ts.map +1 -1
  263. package/dist/variants/button.js +2 -6
  264. package/dist/variants/button.js.map +1 -1
  265. package/dist/variants/empty.d.ts.map +1 -1
  266. package/dist/variants/empty.js +2 -6
  267. package/dist/variants/empty.js.map +1 -1
  268. package/dist/variants/field.d.ts.map +1 -1
  269. package/dist/variants/field.js +2 -6
  270. package/dist/variants/field.js.map +1 -1
  271. package/dist/variants/input-group.d.ts.map +1 -1
  272. package/dist/variants/input-group.js +4 -12
  273. package/dist/variants/input-group.js.map +1 -1
  274. package/dist/variants/item.d.ts.map +1 -1
  275. package/dist/variants/item.js +3 -9
  276. package/dist/variants/item.js.map +1 -1
  277. package/dist/variants/marker.d.ts.map +1 -1
  278. package/dist/variants/marker.js +2 -6
  279. package/dist/variants/marker.js.map +1 -1
  280. package/dist/variants/navigation-menu.d.ts.map +1 -1
  281. package/dist/variants/navigation-menu.js +2 -6
  282. package/dist/variants/navigation-menu.js.map +1 -1
  283. package/dist/variants/progress-circle.d.ts.map +1 -1
  284. package/dist/variants/progress-circle.js +2 -6
  285. package/dist/variants/progress-circle.js.map +1 -1
  286. package/dist/variants/scroll-area.d.ts.map +1 -1
  287. package/dist/variants/scroll-area.js +2 -6
  288. package/dist/variants/scroll-area.js.map +1 -1
  289. package/dist/variants/separator.d.ts.map +1 -1
  290. package/dist/variants/separator.js +2 -6
  291. package/dist/variants/separator.js.map +1 -1
  292. package/dist/variants/sheet.d.ts.map +1 -1
  293. package/dist/variants/sheet.js +2 -6
  294. package/dist/variants/sheet.js.map +1 -1
  295. package/dist/variants/sidebar.d.ts.map +1 -1
  296. package/dist/variants/sidebar.js +2 -6
  297. package/dist/variants/sidebar.js.map +1 -1
  298. package/dist/variants/tabs.d.ts.map +1 -1
  299. package/dist/variants/tabs.js +2 -6
  300. package/dist/variants/tabs.js.map +1 -1
  301. package/dist/variants/toggle.d.ts.map +1 -1
  302. package/dist/variants/toggle.js +2 -6
  303. package/dist/variants/toggle.js.map +1 -1
  304. package/package.json +11 -10
  305. package/src/components/accordion.tsx +5 -15
  306. package/src/components/alert-dialog.tsx +12 -36
  307. package/src/components/alert.tsx +5 -15
  308. package/src/components/aspect-ratio.tsx +2 -6
  309. package/src/components/attachment.tsx +10 -30
  310. package/src/components/avatar.tsx +7 -21
  311. package/src/components/badge.tsx +2 -6
  312. package/src/components/breadcrumb.tsx +8 -24
  313. package/src/components/bubble.tsx +5 -15
  314. package/src/components/button-group.tsx +4 -12
  315. package/src/components/button.tsx +2 -6
  316. package/src/components/calendar.tsx +6 -18
  317. package/src/components/card.tsx +8 -24
  318. package/src/components/carousel.tsx +7 -21
  319. package/src/components/chart.tsx +11 -33
  320. package/src/components/checkbox-cards.tsx +3 -9
  321. package/src/components/checkbox-group.tsx +3 -9
  322. package/src/components/checkbox.tsx +2 -6
  323. package/src/components/collapsible.tsx +4 -12
  324. package/src/components/command.tsx +11 -33
  325. package/src/components/context-menu.tsx +16 -48
  326. package/src/components/dialog.tsx +10 -30
  327. package/src/components/direction.tsx +2 -6
  328. package/src/components/drawer.tsx +9 -27
  329. package/src/components/dropdown-menu.tsx +16 -48
  330. package/src/components/empty.tsx +7 -21
  331. package/src/components/field.tsx +11 -33
  332. package/src/components/form.tsx +10 -30
  333. package/src/components/hover-card.tsx +5 -15
  334. package/src/components/input-group.tsx +7 -21
  335. package/src/components/input-number.tsx +6 -18
  336. package/src/components/input-otp.tsx +5 -15
  337. package/src/components/input-password.tsx +2 -6
  338. package/src/components/input-search.tsx +2 -6
  339. package/src/components/input.tsx +2 -6
  340. package/src/components/item.tsx +11 -33
  341. package/src/components/kbd.tsx +2 -6
  342. package/src/components/label.tsx +2 -6
  343. package/src/components/marker.tsx +4 -12
  344. package/src/components/menubar.tsx +17 -51
  345. package/src/components/message-scroller.tsx +7 -21
  346. package/src/components/message.tsx +7 -21
  347. package/src/components/native-select.tsx +4 -12
  348. package/src/components/navigation-menu.tsx +9 -27
  349. package/src/components/pagination.tsx +8 -24
  350. package/src/components/popover.tsx +9 -27
  351. package/src/components/progress-circle.tsx +4 -10
  352. package/src/components/progress.tsx +2 -6
  353. package/src/components/radio-cards.tsx +3 -9
  354. package/src/components/radio-group.tsx +3 -9
  355. package/src/components/radio.tsx +2 -6
  356. package/src/components/resizable.tsx +4 -12
  357. package/src/components/scroll-area.tsx +4 -12
  358. package/src/components/select.tsx +11 -33
  359. package/src/components/separator.tsx +3 -9
  360. package/src/components/sheet.tsx +10 -30
  361. package/src/components/sidebar.tsx +28 -77
  362. package/src/components/skeleton.tsx +2 -6
  363. package/src/components/slider.tsx +2 -6
  364. package/src/components/sonner.tsx +2 -6
  365. package/src/components/spinner.tsx +2 -6
  366. package/src/components/switch.tsx +2 -6
  367. package/src/components/table.tsx +9 -27
  368. package/src/components/tabs.tsx +5 -15
  369. package/src/components/textarea.tsx +2 -6
  370. package/src/components/toggle-group.tsx +4 -12
  371. package/src/components/toggle.tsx +2 -6
  372. package/src/components/tooltip.tsx +6 -18
  373. package/src/css/foundation/base.css +3 -9
  374. package/src/css/foundation/motion.css +2 -6
  375. package/src/css/foundation/tokens.css +6 -18
  376. package/src/css/foundation/variants.css +3 -9
  377. package/src/css/themes/amber.css +4 -12
  378. package/src/css/themes/blue.css +4 -12
  379. package/src/css/themes/cyan.css +4 -12
  380. package/src/css/themes/emerald.css +4 -12
  381. package/src/css/themes/fuchsia.css +4 -12
  382. package/src/css/themes/gray.css +4 -12
  383. package/src/css/themes/green.css +4 -12
  384. package/src/css/themes/indigo.css +4 -12
  385. package/src/css/themes/lime.css +4 -12
  386. package/src/css/themes/neutral.css +4 -12
  387. package/src/css/themes/orange.css +4 -12
  388. package/src/css/themes/pink.css +4 -12
  389. package/src/css/themes/purple.css +4 -12
  390. package/src/css/themes/red.css +4 -12
  391. package/src/css/themes/rose.css +4 -12
  392. package/src/css/themes/sky.css +4 -12
  393. package/src/css/themes/slate.css +4 -12
  394. package/src/css/themes/stone.css +4 -12
  395. package/src/css/themes/teal.css +4 -12
  396. package/src/css/themes/violet.css +4 -12
  397. package/src/css/themes/yellow.css +4 -12
  398. package/src/css/themes/zinc.css +4 -12
  399. package/src/hooks/use-animated-value.ts +1 -1
  400. package/src/hooks/use-copy-to-clipboard.ts +1 -1
  401. package/src/hooks/use-is-mobile.ts +1 -1
  402. package/src/hooks/use-media-query.ts +1 -1
  403. package/src/hooks/use-message-scroller-commands.ts +4 -3
  404. package/src/hooks/use-message-scroller-controller.ts +4 -3
  405. package/src/hooks/use-message-scroller-refs.ts +7 -5
  406. package/src/hooks/use-pagination.ts +1 -1
  407. package/src/lib/message-scroller/types.ts +66 -39
  408. package/src/lib/use-render.ts +1 -1
  409. package/src/primitives/checkbox-group.tsx +5 -15
  410. package/src/primitives/input-number.tsx +8 -24
  411. package/src/primitives/input.tsx +3 -9
  412. package/src/primitives/progress-circle.tsx +9 -27
  413. package/src/variants/alert.ts +2 -6
  414. package/src/variants/attachment.ts +3 -9
  415. package/src/variants/badge.ts +2 -6
  416. package/src/variants/bubble.ts +3 -9
  417. package/src/variants/button-group.ts +2 -6
  418. package/src/variants/button.ts +2 -6
  419. package/src/variants/empty.ts +2 -6
  420. package/src/variants/field.ts +2 -6
  421. package/src/variants/input-group.ts +4 -12
  422. package/src/variants/item.ts +3 -9
  423. package/src/variants/marker.ts +2 -6
  424. package/src/variants/navigation-menu.ts +2 -6
  425. package/src/variants/progress-circle.ts +2 -6
  426. package/src/variants/scroll-area.ts +2 -6
  427. package/src/variants/separator.ts +2 -6
  428. package/src/variants/sheet.ts +2 -6
  429. package/src/variants/sidebar.ts +2 -6
  430. package/src/variants/tabs.ts +2 -6
  431. package/src/variants/toggle.ts +2 -6
@@ -6,9 +6,7 @@ import { cn } from "#/lib/utils";
6
6
  import type { AttachmentMediaVariants, AttachmentVariants } from "#/variants/attachment";
7
7
  import { attachmentMediaVariants, attachmentVariants } from "#/variants/attachment";
8
8
 
9
- /* -----------------------------------------------------------------------------
10
- * Component: Attachment
11
- * -------------------------------------------------------------------------- */
9
+ // ── Component: Attachment ────────────────────────────────────────────────────────────────────────────────────────────
12
10
 
13
11
  /**
14
12
  * File/media attachment card. `state` drives the upload lifecycle styling.
@@ -41,9 +39,7 @@ function Attachment({
41
39
  );
42
40
  }
43
41
 
44
- /* -----------------------------------------------------------------------------
45
- * Component: AttachmentMedia
46
- * -------------------------------------------------------------------------- */
42
+ // ── Component: AttachmentMedia ───────────────────────────────────────────────────────────────────────────────────────
47
43
 
48
44
  /**
49
45
  * Thumbnail slot — an icon tile or a cover image.
@@ -66,9 +62,7 @@ function AttachmentMedia({ className, variant = "icon", ...props }: AttachmentMe
66
62
  );
67
63
  }
68
64
 
69
- /* -----------------------------------------------------------------------------
70
- * Component: AttachmentContent
71
- * -------------------------------------------------------------------------- */
65
+ // ── Component: AttachmentContent ─────────────────────────────────────────────────────────────────────────────────────
72
66
 
73
67
  /**
74
68
  * Text column holding the title and description.
@@ -93,9 +87,7 @@ function AttachmentContent({ className, ...props }: AttachmentContentProps): JSX
93
87
  );
94
88
  }
95
89
 
96
- /* -----------------------------------------------------------------------------
97
- * Component: AttachmentTitle
98
- * -------------------------------------------------------------------------- */
90
+ // ── Component: AttachmentTitle ───────────────────────────────────────────────────────────────────────────────────────
99
91
 
100
92
  /**
101
93
  * File name; shimmers while uploading or processing.
@@ -120,9 +112,7 @@ function AttachmentTitle({ className, ...props }: AttachmentTitleProps): JSX.Ele
120
112
  );
121
113
  }
122
114
 
123
- /* -----------------------------------------------------------------------------
124
- * Component: AttachmentDescription
125
- * -------------------------------------------------------------------------- */
115
+ // ── Component: AttachmentDescription ─────────────────────────────────────────────────────────────────────────────────
126
116
 
127
117
  /**
128
118
  * Secondary line (size, type); turns destructive on error.
@@ -147,9 +137,7 @@ function AttachmentDescription({ className, ...props }: AttachmentDescriptionPro
147
137
  );
148
138
  }
149
139
 
150
- /* -----------------------------------------------------------------------------
151
- * Component: AttachmentActions
152
- * -------------------------------------------------------------------------- */
140
+ // ── Component: AttachmentActions ─────────────────────────────────────────────────────────────────────────────────────
153
141
 
154
142
  /**
155
143
  * Action cluster; floats to the top corner in the vertical orientation.
@@ -174,9 +162,7 @@ function AttachmentActions({ className, ...props }: AttachmentActionsProps): JSX
174
162
  );
175
163
  }
176
164
 
177
- /* -----------------------------------------------------------------------------
178
- * Component: AttachmentAction
179
- * -------------------------------------------------------------------------- */
165
+ // ── Component: AttachmentAction ──────────────────────────────────────────────────────────────────────────────────────
180
166
 
181
167
  /**
182
168
  * A single action button; defaults to a ghost icon button.
@@ -200,9 +186,7 @@ function AttachmentAction({ className, size = "icon-xs", variant, ...props }: At
200
186
  );
201
187
  }
202
188
 
203
- /* -----------------------------------------------------------------------------
204
- * Component: AttachmentTrigger
205
- * -------------------------------------------------------------------------- */
189
+ // ── Component: AttachmentTrigger ─────────────────────────────────────────────────────────────────────────────────────
206
190
 
207
191
  /**
208
192
  * Full-card overlay trigger for opening/previewing the attachment.
@@ -229,9 +213,7 @@ function AttachmentTrigger({ asChild = false, className, type, ...props }: Attac
229
213
  );
230
214
  }
231
215
 
232
- /* -----------------------------------------------------------------------------
233
- * Component: AttachmentGroup
234
- * -------------------------------------------------------------------------- */
216
+ // ── Component: AttachmentGroup ───────────────────────────────────────────────────────────────────────────────────────
235
217
 
236
218
  /**
237
219
  * Horizontally scrollable row of attachments with snap and edge fade.
@@ -256,9 +238,7 @@ function AttachmentGroup({ className, ...props }: AttachmentGroupProps): JSX.Ele
256
238
  );
257
239
  }
258
240
 
259
- /* -----------------------------------------------------------------------------
260
- * Exports
261
- * -------------------------------------------------------------------------- */
241
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
262
242
 
263
243
  export {
264
244
  Attachment,
@@ -3,9 +3,7 @@ import type { ComponentProps, JSX } from "react";
3
3
 
4
4
  import { cn } from "#/lib/utils";
5
5
 
6
- /* -----------------------------------------------------------------------------
7
- * Component: Avatar
8
- * -------------------------------------------------------------------------- */
6
+ // ── Component: Avatar ────────────────────────────────────────────────────────────────────────────────────────────────
9
7
 
10
8
  /**
11
9
  * @since 0.3.16-canary.0
@@ -31,9 +29,7 @@ function Avatar({ className, size = "default", ...props }: AvatarProps): JSX.Ele
31
29
  );
32
30
  }
33
31
 
34
- /* -----------------------------------------------------------------------------
35
- * Component: AvatarImage
36
- * -------------------------------------------------------------------------- */
32
+ // ── Component: AvatarImage ───────────────────────────────────────────────────────────────────────────────────────────
37
33
 
38
34
  /**
39
35
  * @since 0.3.16-canary.0
@@ -53,9 +49,7 @@ function AvatarImage({ className, ...props }: AvatarImageProps): JSX.Element {
53
49
  );
54
50
  }
55
51
 
56
- /* -----------------------------------------------------------------------------
57
- * Component: AvatarFallback
58
- * -------------------------------------------------------------------------- */
52
+ // ── Component: AvatarFallback ────────────────────────────────────────────────────────────────────────────────────────
59
53
 
60
54
  /**
61
55
  * @since 0.3.16-canary.0
@@ -78,9 +72,7 @@ function AvatarFallback({ className, ...props }: AvatarFallbackProps): JSX.Eleme
78
72
  );
79
73
  }
80
74
 
81
- /* -----------------------------------------------------------------------------
82
- * Component: AvatarBadge
83
- * -------------------------------------------------------------------------- */
75
+ // ── Component: AvatarBadge ───────────────────────────────────────────────────────────────────────────────────────────
84
76
 
85
77
  /**
86
78
  * @since 0.3.16-canary.0
@@ -106,9 +98,7 @@ function AvatarBadge({ className, ...props }: AvatarBadgeProps): JSX.Element {
106
98
  );
107
99
  }
108
100
 
109
- /* -----------------------------------------------------------------------------
110
- * Component: AvatarGroup
111
- * -------------------------------------------------------------------------- */
101
+ // ── Component: AvatarGroup ───────────────────────────────────────────────────────────────────────────────────────────
112
102
 
113
103
  /**
114
104
  * @since 0.3.16-canary.0
@@ -131,9 +121,7 @@ function AvatarGroup({ className, ...props }: AvatarGroupProps): JSX.Element {
131
121
  );
132
122
  }
133
123
 
134
- /* -----------------------------------------------------------------------------
135
- * Component: AvatarGroupCount
136
- * -------------------------------------------------------------------------- */
124
+ // ── Component: AvatarGroupCount ──────────────────────────────────────────────────────────────────────────────────────
137
125
 
138
126
  /**
139
127
  * @since 0.3.16-canary.0
@@ -156,9 +144,7 @@ function AvatarGroupCount({ className, ...props }: AvatarGroupCountProps): JSX.E
156
144
  );
157
145
  }
158
146
 
159
- /* -----------------------------------------------------------------------------
160
- * Exports
161
- * -------------------------------------------------------------------------- */
147
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
162
148
 
163
149
  export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
164
150
  export type {
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
4
4
  import type { BadgeVariants } from "#/variants/badge";
5
5
  import { badgeVariants } from "#/variants/badge";
6
6
 
7
- /* -----------------------------------------------------------------------------
8
- * Component: Badge
9
- * -------------------------------------------------------------------------- */
7
+ // ── Component: Badge ─────────────────────────────────────────────────────────────────────────────────────────────────
10
8
 
11
9
  /**
12
10
  * @since 0.3.16-canary.0
@@ -26,9 +24,7 @@ function Badge({ asChild = false, className, variant = "default", ...props }: Ba
26
24
  );
27
25
  }
28
26
 
29
- /* -----------------------------------------------------------------------------
30
- * Exports
31
- * -------------------------------------------------------------------------- */
27
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
32
28
 
33
29
  export { Badge };
34
30
 
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
4
4
 
5
5
  import { cn } from "#/lib/utils";
6
6
 
7
- /* -----------------------------------------------------------------------------
8
- * Component: Breadcrumb
9
- * -------------------------------------------------------------------------- */
7
+ // ── Component: Breadcrumb ────────────────────────────────────────────────────────────────────────────────────────────
10
8
 
11
9
  /**
12
10
  * @since 0.3.16-canary.0
@@ -20,9 +18,7 @@ function Breadcrumb({ ...props }: BreadcrumbProps): JSX.Element {
20
18
  return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
21
19
  }
22
20
 
23
- /* -----------------------------------------------------------------------------
24
- * Component: BreadcrumbList
25
- * -------------------------------------------------------------------------- */
21
+ // ── Component: BreadcrumbList ────────────────────────────────────────────────────────────────────────────────────────
26
22
 
27
23
  /**
28
24
  * @since 0.3.16-canary.0
@@ -42,9 +38,7 @@ function BreadcrumbList({ className, ...props }: BreadcrumbListProps): JSX.Eleme
42
38
  );
43
39
  }
44
40
 
45
- /* -----------------------------------------------------------------------------
46
- * Component: BreadcrumbItem
47
- * -------------------------------------------------------------------------- */
41
+ // ── Component: BreadcrumbItem ────────────────────────────────────────────────────────────────────────────────────────
48
42
 
49
43
  /**
50
44
  * @since 0.3.16-canary.0
@@ -58,9 +52,7 @@ function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): JSX.Eleme
58
52
  return <li className={cn("inline-flex items-center gap-1", className)} data-slot="breadcrumb-item" {...props} />;
59
53
  }
60
54
 
61
- /* -----------------------------------------------------------------------------
62
- * Component: BreadcrumbLink
63
- * -------------------------------------------------------------------------- */
55
+ // ── Component: BreadcrumbLink ────────────────────────────────────────────────────────────────────────────────────────
64
56
 
65
57
  /**
66
58
  * @since 0.3.16-canary.0
@@ -84,9 +76,7 @@ function BreadcrumbLink({ asChild, className, ...props }: BreadcrumbLinkProps):
84
76
  );
85
77
  }
86
78
 
87
- /* -----------------------------------------------------------------------------
88
- * Component: BreadcrumbPage
89
- * -------------------------------------------------------------------------- */
79
+ // ── Component: BreadcrumbPage ────────────────────────────────────────────────────────────────────────────────────────
90
80
 
91
81
  /**
92
82
  * @since 0.3.16-canary.0
@@ -109,9 +99,7 @@ function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): JSX.Eleme
109
99
  );
110
100
  }
111
101
 
112
- /* -----------------------------------------------------------------------------
113
- * Component: BreadcrumbSeparator
114
- * -------------------------------------------------------------------------- */
102
+ // ── Component: BreadcrumbSeparator ───────────────────────────────────────────────────────────────────────────────────
115
103
 
116
104
  /**
117
105
  * @since 0.3.16-canary.0
@@ -135,9 +123,7 @@ function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSepara
135
123
  );
136
124
  }
137
125
 
138
- /* -----------------------------------------------------------------------------
139
- * Component: BreadcrumbEllipsis
140
- * -------------------------------------------------------------------------- */
126
+ // ── Component: BreadcrumbEllipsis ────────────────────────────────────────────────────────────────────────────────────
141
127
 
142
128
  /**
143
129
  * @since 0.3.16-canary.0
@@ -162,9 +148,7 @@ function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): J
162
148
  );
163
149
  }
164
150
 
165
- /* -----------------------------------------------------------------------------
166
- * Exports
167
- * -------------------------------------------------------------------------- */
151
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
168
152
 
169
153
  export {
170
154
  Breadcrumb,
@@ -5,9 +5,7 @@ import { cn } from "#/lib/utils";
5
5
  import type { BubbleReactionsVariants, BubbleVariants } from "#/variants/bubble";
6
6
  import { bubbleReactionsVariants, bubbleVariants } from "#/variants/bubble";
7
7
 
8
- /* -----------------------------------------------------------------------------
9
- * Component: BubbleGroup
10
- * -------------------------------------------------------------------------- */
8
+ // ── Component: BubbleGroup ───────────────────────────────────────────────────────────────────────────────────────────
11
9
 
12
10
  /**
13
11
  * Vertical stack of consecutive bubbles from one author.
@@ -23,9 +21,7 @@ function BubbleGroup({ className, ...props }: BubbleGroupProps): JSX.Element {
23
21
  return <div className={cn("flex min-w-0 flex-col gap-2", className)} data-slot="bubble-group" {...props} />;
24
22
  }
25
23
 
26
- /* -----------------------------------------------------------------------------
27
- * Component: Bubble
28
- * -------------------------------------------------------------------------- */
24
+ // ── Component: Bubble ────────────────────────────────────────────────────────────────────────────────────────────────
29
25
 
30
26
  /**
31
27
  * Chat bubble wrapper. `variant` colors the content; `align` sets the side.
@@ -51,9 +47,7 @@ function Bubble({ align = "start", className, variant = "default", ...props }: B
51
47
  );
52
48
  }
53
49
 
54
- /* -----------------------------------------------------------------------------
55
- * Component: BubbleContent
56
- * -------------------------------------------------------------------------- */
50
+ // ── Component: BubbleContent ─────────────────────────────────────────────────────────────────────────────────────────
57
51
 
58
52
  /**
59
53
  * The bubble's colored surface; render as a button/link with `asChild`.
@@ -82,9 +76,7 @@ function BubbleContent({ asChild = false, className, ...props }: BubbleContentPr
82
76
  );
83
77
  }
84
78
 
85
- /* -----------------------------------------------------------------------------
86
- * Component: BubbleReactions
87
- * -------------------------------------------------------------------------- */
79
+ // ── Component: BubbleReactions ───────────────────────────────────────────────────────────────────────────────────────
88
80
 
89
81
  /**
90
82
  * Reaction pill overlapping a bubble corner.
@@ -108,9 +100,7 @@ function BubbleReactions({ align = "end", className, side = "bottom", ...props }
108
100
  );
109
101
  }
110
102
 
111
- /* -----------------------------------------------------------------------------
112
- * Exports
113
- * -------------------------------------------------------------------------- */
103
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
114
104
 
115
105
  export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
116
106
  export type { BubbleContentProps, BubbleGroupProps, BubbleProps, BubbleReactionsProps };
@@ -6,9 +6,7 @@ import { cn } from "#/lib/utils";
6
6
  import type { ButtonGroupVariants } from "#/variants/button-group";
7
7
  import { buttonGroupVariants } from "#/variants/button-group";
8
8
 
9
- /* -----------------------------------------------------------------------------
10
- * Component: ButtonGroup
11
- * -------------------------------------------------------------------------- */
9
+ // ── Component: ButtonGroup ───────────────────────────────────────────────────────────────────────────────────────────
12
10
 
13
11
  /**
14
12
  * @since 0.3.16-canary.0
@@ -30,9 +28,7 @@ function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): JS
30
28
  );
31
29
  }
32
30
 
33
- /* -----------------------------------------------------------------------------
34
- * Component: ButtonGroupText
35
- * -------------------------------------------------------------------------- */
31
+ // ── Component: ButtonGroupText ───────────────────────────────────────────────────────────────────────────────────────
36
32
 
37
33
  /**
38
34
  * @since 0.3.16-canary.0
@@ -58,9 +54,7 @@ function ButtonGroupText({ asChild = false, className, ...props }: ButtonGroupTe
58
54
  );
59
55
  }
60
56
 
61
- /* -----------------------------------------------------------------------------
62
- * Component: ButtonGroupSeparator
63
- * -------------------------------------------------------------------------- */
57
+ // ── Component: ButtonGroupSeparator ──────────────────────────────────────────────────────────────────────────────────
64
58
 
65
59
  /**
66
60
  * @since 0.3.16-canary.0
@@ -88,9 +82,7 @@ function ButtonGroupSeparator({
88
82
  );
89
83
  }
90
84
 
91
- /* -----------------------------------------------------------------------------
92
- * Exports
93
- * -------------------------------------------------------------------------- */
85
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
94
86
 
95
87
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText };
96
88
 
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
4
4
  import type { ButtonVariants } from "#/variants/button";
5
5
  import { buttonVariants } from "#/variants/button";
6
6
 
7
- /* -----------------------------------------------------------------------------
8
- * Component: Button
9
- * -------------------------------------------------------------------------- */
7
+ // ── Component: Button ────────────────────────────────────────────────────────────────────────────────────────────────
10
8
 
11
9
  /**
12
10
  * @since 0.3.16-canary.0
@@ -47,9 +45,7 @@ function Button({ asChild = false, className, size, type = "button", variant, ..
47
45
  );
48
46
  }
49
47
 
50
- /* -----------------------------------------------------------------------------
51
- * Exports
52
- * -------------------------------------------------------------------------- */
48
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
53
49
 
54
50
  export { Button };
55
51
  export type { ButtonProps };
@@ -8,9 +8,7 @@ import { Button } from "#/components/button";
8
8
  import { cn } from "#/lib/utils";
9
9
  import { buttonVariants } from "#/variants/button";
10
10
 
11
- /* -----------------------------------------------------------------------------
12
- * Component: Calendar
13
- * -------------------------------------------------------------------------- */
11
+ // ── Component: Calendar ──────────────────────────────────────────────────────────────────────────────────────────────
14
12
 
15
13
  /**
16
14
  * @since 0.3.16-canary.0
@@ -131,9 +129,7 @@ function Calendar({
131
129
  );
132
130
  }
133
131
 
134
- /* -----------------------------------------------------------------------------
135
- * Component: CalendarChevron (internal)
136
- * -------------------------------------------------------------------------- */
132
+ // ── Component: CalendarChevron (internal) ────────────────────────────────────────────────────────────────────────────
137
133
 
138
134
  function CalendarChevron({ className, orientation, ...props }: ComponentProps<typeof Chevron>): JSX.Element {
139
135
  if (orientation === "left") {
@@ -147,17 +143,13 @@ function CalendarChevron({ className, orientation, ...props }: ComponentProps<ty
147
143
  return <ChevronDownIcon className={cn("size-4", className)} {...props} />;
148
144
  }
149
145
 
150
- /* -----------------------------------------------------------------------------
151
- * Component: CalendarRoot (internal)
152
- * -------------------------------------------------------------------------- */
146
+ // ── Component: CalendarRoot (internal) ───────────────────────────────────────────────────────────────────────────────
153
147
 
154
148
  function CalendarRoot({ rootRef, ...props }: ComponentProps<typeof Root>): JSX.Element {
155
149
  return <div ref={rootRef} data-slot="calendar" {...props} />;
156
150
  }
157
151
 
158
- /* -----------------------------------------------------------------------------
159
- * Component: CalendarWeekNumber (internal)
160
- * -------------------------------------------------------------------------- */
152
+ // ── Component: CalendarWeekNumber (internal) ─────────────────────────────────────────────────────────────────────────
161
153
 
162
154
  function CalendarWeekNumber({ children, ...props }: ComponentProps<typeof WeekNumber>): JSX.Element {
163
155
  return (
@@ -167,9 +159,7 @@ function CalendarWeekNumber({ children, ...props }: ComponentProps<typeof WeekNu
167
159
  );
168
160
  }
169
161
 
170
- /* -----------------------------------------------------------------------------
171
- * Component: CalendarDayButton
172
- * -------------------------------------------------------------------------- */
162
+ // ── Component: CalendarDayButton ─────────────────────────────────────────────────────────────────────────────────────
173
163
 
174
164
  /**
175
165
  * @since 0.3.16-canary.0
@@ -214,9 +204,7 @@ function CalendarDayButton({ className, day, locale, modifiers, ...props }: Cale
214
204
  );
215
205
  }
216
206
 
217
- /* -----------------------------------------------------------------------------
218
- * Exports
219
- * -------------------------------------------------------------------------- */
207
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
220
208
 
221
209
  export { Calendar, CalendarDayButton };
222
210
  export type { CalendarDayButtonProps, CalendarProps };
@@ -2,9 +2,7 @@ import type { ComponentProps, JSX } from "react";
2
2
 
3
3
  import { cn } from "#/lib/utils";
4
4
 
5
- /* -----------------------------------------------------------------------------
6
- * Component: Card
7
- * -------------------------------------------------------------------------- */
5
+ // ── Component: Card ──────────────────────────────────────────────────────────────────────────────────────────────────
8
6
 
9
7
  /**
10
8
  * @since 0.3.16-canary.0
@@ -30,9 +28,7 @@ function Card({ className, size = "default", ...props }: CardProps): JSX.Element
30
28
  );
31
29
  }
32
30
 
33
- /* -----------------------------------------------------------------------------
34
- * Component: CardHeader
35
- * -------------------------------------------------------------------------- */
31
+ // ── Component: CardHeader ────────────────────────────────────────────────────────────────────────────────────────────
36
32
 
37
33
  /**
38
34
  * @since 0.3.16-canary.0
@@ -55,9 +51,7 @@ function CardHeader({ className, ...props }: CardHeaderProps): JSX.Element {
55
51
  );
56
52
  }
57
53
 
58
- /* -----------------------------------------------------------------------------
59
- * Component: CardTitle
60
- * -------------------------------------------------------------------------- */
54
+ // ── Component: CardTitle ─────────────────────────────────────────────────────────────────────────────────────────────
61
55
 
62
56
  /**
63
57
  * @since 0.3.16-canary.0
@@ -77,9 +71,7 @@ function CardTitle({ className, ...props }: CardTitleProps): JSX.Element {
77
71
  );
78
72
  }
79
73
 
80
- /* -----------------------------------------------------------------------------
81
- * Component: CardDescription
82
- * -------------------------------------------------------------------------- */
74
+ // ── Component: CardDescription ───────────────────────────────────────────────────────────────────────────────────────
83
75
 
84
76
  /**
85
77
  * @since 0.3.16-canary.0
@@ -93,9 +85,7 @@ function CardDescription({ className, ...props }: CardDescriptionProps): JSX.Ele
93
85
  return <div className={cn("text-sm text-muted-foreground", className)} data-slot="card-description" {...props} />;
94
86
  }
95
87
 
96
- /* -----------------------------------------------------------------------------
97
- * Component: CardContent
98
- * -------------------------------------------------------------------------- */
88
+ // ── Component: CardContent ───────────────────────────────────────────────────────────────────────────────────────────
99
89
 
100
90
  /**
101
91
  * @since 0.3.16-canary.0
@@ -109,9 +99,7 @@ function CardContent({ className, ...props }: CardContentProps): JSX.Element {
109
99
  return <div className={cn("px-(--card-spacing)", className)} data-slot="card-content" {...props} />;
110
100
  }
111
101
 
112
- /* -----------------------------------------------------------------------------
113
- * Component: CardFooter
114
- * -------------------------------------------------------------------------- */
102
+ // ── Component: CardFooter ────────────────────────────────────────────────────────────────────────────────────────────
115
103
 
116
104
  /**
117
105
  * @since 0.3.16-canary.0
@@ -131,9 +119,7 @@ function CardFooter({ className, ...props }: CardFooterProps): JSX.Element {
131
119
  );
132
120
  }
133
121
 
134
- /* -----------------------------------------------------------------------------
135
- * Component: CardAction
136
- * -------------------------------------------------------------------------- */
122
+ // ── Component: CardAction ────────────────────────────────────────────────────────────────────────────────────────────
137
123
 
138
124
  /**
139
125
  * @since 0.3.16-canary.0
@@ -153,9 +139,7 @@ function CardAction({ className, ...props }: CardActionProps): JSX.Element {
153
139
  );
154
140
  }
155
141
 
156
- /* -----------------------------------------------------------------------------
157
- * Exports
158
- * -------------------------------------------------------------------------- */
142
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
159
143
 
160
144
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
161
145
  export type {
@@ -9,9 +9,7 @@ import { Button } from "#/components/button";
9
9
  import { useDirection } from "#/components/direction";
10
10
  import { cn } from "#/lib/utils";
11
11
 
12
- /* -----------------------------------------------------------------------------
13
- * Context: Carousel
14
- * -------------------------------------------------------------------------- */
12
+ // ── Context: Carousel ────────────────────────────────────────────────────────────────────────────────────────────────
15
13
 
16
14
  const CAROUSEL_NAME = "Carousel";
17
15
 
@@ -45,9 +43,7 @@ type CarouselContextValue = BaseCarouselProps & {
45
43
 
46
44
  const [CarouselContextProvider, useCarouselContext] = createCarouselContext<CarouselContextValue>(CAROUSEL_NAME);
47
45
 
48
- /* -----------------------------------------------------------------------------
49
- * Component: Carousel
50
- * -------------------------------------------------------------------------- */
46
+ // ── Component: Carousel ──────────────────────────────────────────────────────────────────────────────────────────────
51
47
 
52
48
  /**
53
49
  * @since 0.3.16-canary.0
@@ -167,9 +163,7 @@ function Carousel({
167
163
  );
168
164
  }
169
165
 
170
- /* -----------------------------------------------------------------------------
171
- * Component: CarouselContent
172
- * -------------------------------------------------------------------------- */
166
+ // ── Component: CarouselContent ───────────────────────────────────────────────────────────────────────────────────────
173
167
 
174
168
  const CAROUSEL_CONTENT_NAME = "CarouselContent";
175
169
 
@@ -223,9 +217,7 @@ function CarouselContent({
223
217
  );
224
218
  }
225
219
 
226
- /* -----------------------------------------------------------------------------
227
- * Component: CarouselItem
228
- * -------------------------------------------------------------------------- */
220
+ // ── Component: CarouselItem ──────────────────────────────────────────────────────────────────────────────────────────
229
221
 
230
222
  const CAROUSEL_ITEM_NAME = "CarouselItem";
231
223
 
@@ -251,9 +243,7 @@ function CarouselItem({ __scopeCarousel, className, ...props }: ScopedProps<Caro
251
243
  );
252
244
  }
253
245
 
254
- /* -----------------------------------------------------------------------------
255
- * Component: CarouselPrevious
256
- * -------------------------------------------------------------------------- */
246
+ // ── Component: CarouselPrevious ──────────────────────────────────────────────────────────────────────────────────────
257
247
 
258
248
  const CAROUSEL_PREVIOUS_NAME = "CarouselPrevious";
259
249
 
@@ -297,9 +287,7 @@ function CarouselPrevious({
297
287
  );
298
288
  }
299
289
 
300
- /* -----------------------------------------------------------------------------
301
- * Component: CarouselNext
302
- * -------------------------------------------------------------------------- */
290
+ // ── Component: CarouselNext ──────────────────────────────────────────────────────────────────────────────────────────
303
291
 
304
292
  const CAROUSEL_NEXT_NAME = "CarouselNext";
305
293
 
@@ -343,9 +331,7 @@ function CarouselNext({
343
331
  );
344
332
  }
345
333
 
346
- /* -----------------------------------------------------------------------------
347
- * Exports
348
- * -------------------------------------------------------------------------- */
334
+ // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
349
335
 
350
336
  export type {
351
337
  CarouselApi,