@codefast/ui 0.5.0-canary.4 → 0.5.0-canary.6

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 (695) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/README.md +59 -355
  3. package/dist/components/accordion.d.ts +37 -0
  4. package/dist/components/accordion.d.ts.map +1 -0
  5. package/dist/components/accordion.js +33 -0
  6. package/dist/components/accordion.js.map +1 -0
  7. package/dist/components/alert-dialog.d.ts +102 -0
  8. package/dist/components/alert-dialog.d.ts.map +1 -0
  9. package/dist/components/alert-dialog.js +75 -0
  10. package/dist/components/alert-dialog.js.map +1 -0
  11. package/dist/components/alert.d.ts +38 -0
  12. package/dist/components/alert.d.ts.map +1 -0
  13. package/dist/components/alert.js +32 -0
  14. package/dist/components/alert.js.map +1 -0
  15. package/dist/components/aspect-ratio.d.ts +13 -0
  16. package/dist/components/aspect-ratio.d.ts.map +1 -0
  17. package/dist/components/aspect-ratio.js +13 -0
  18. package/dist/components/aspect-ratio.js.map +1 -0
  19. package/dist/components/{attachment.d.mts → attachment.d.ts} +21 -55
  20. package/dist/components/attachment.d.ts.map +1 -0
  21. package/dist/components/attachment.js +65 -0
  22. package/dist/components/attachment.js.map +1 -0
  23. package/dist/components/avatar.d.ts +55 -0
  24. package/dist/components/avatar.d.ts.map +1 -0
  25. package/dist/components/avatar.js +44 -0
  26. package/dist/components/avatar.js.map +1 -0
  27. package/dist/components/badge.d.ts +15 -0
  28. package/dist/components/badge.d.ts.map +1 -0
  29. package/dist/components/badge.js +15 -0
  30. package/dist/components/badge.js.map +1 -0
  31. package/dist/components/breadcrumb.d.ts +62 -0
  32. package/dist/components/breadcrumb.d.ts.map +1 -0
  33. package/dist/components/breadcrumb.js +52 -0
  34. package/dist/components/breadcrumb.js.map +1 -0
  35. package/dist/components/bubble.d.ts +50 -0
  36. package/dist/components/bubble.d.ts.map +1 -0
  37. package/dist/components/bubble.js +34 -0
  38. package/dist/components/bubble.js.map +1 -0
  39. package/dist/components/button-group.d.ts +32 -0
  40. package/dist/components/button-group.d.ts.map +1 -0
  41. package/dist/components/button-group.js +29 -0
  42. package/dist/components/button-group.js.map +1 -0
  43. package/dist/components/button.d.ts +16 -0
  44. package/dist/components/button.d.ts.map +1 -0
  45. package/dist/components/button.js +18 -0
  46. package/dist/components/button.js.map +1 -0
  47. package/dist/components/calendar.d.ts +27 -0
  48. package/dist/components/calendar.d.ts.map +1 -0
  49. package/dist/components/calendar.js +96 -0
  50. package/dist/components/calendar.js.map +1 -0
  51. package/dist/components/card.d.ts +62 -0
  52. package/dist/components/card.d.ts.map +1 -0
  53. package/dist/components/card.js +49 -0
  54. package/dist/components/card.js.map +1 -0
  55. package/dist/components/{carousel.d.mts → carousel.d.ts} +25 -52
  56. package/dist/components/carousel.d.ts.map +1 -0
  57. package/dist/components/carousel.js +137 -0
  58. package/dist/components/carousel.js.map +1 -0
  59. package/dist/components/chart.d.ts +101 -0
  60. package/dist/components/chart.d.ts.map +1 -0
  61. package/dist/components/chart.js +217 -0
  62. package/dist/components/chart.js.map +1 -0
  63. package/dist/components/checkbox-cards.d.ts +23 -0
  64. package/dist/components/checkbox-cards.d.ts.map +1 -0
  65. package/dist/components/checkbox-cards.js +22 -0
  66. package/dist/components/checkbox-cards.js.map +1 -0
  67. package/dist/components/checkbox-group.d.ts +21 -0
  68. package/dist/components/checkbox-group.d.ts.map +1 -0
  69. package/dist/components/checkbox-group.js +21 -0
  70. package/dist/components/checkbox-group.js.map +1 -0
  71. package/dist/components/checkbox.d.ts +13 -0
  72. package/dist/components/checkbox.d.ts.map +1 -0
  73. package/dist/components/checkbox.js +15 -0
  74. package/dist/components/checkbox.js.map +1 -0
  75. package/dist/components/collapsible.d.ts +29 -0
  76. package/dist/components/collapsible.d.ts.map +1 -0
  77. package/dist/components/collapsible.js +25 -0
  78. package/dist/components/collapsible.js.map +1 -0
  79. package/dist/components/command.d.ts +91 -0
  80. package/dist/components/command.d.ts.map +1 -0
  81. package/dist/components/command.js +71 -0
  82. package/dist/components/command.js.map +1 -0
  83. package/dist/components/context-menu.d.ts +136 -0
  84. package/dist/components/context-menu.d.ts.map +1 -0
  85. package/dist/components/context-menu.js +99 -0
  86. package/dist/components/context-menu.js.map +1 -0
  87. package/dist/components/dialog.d.ts +86 -0
  88. package/dist/components/dialog.d.ts.map +1 -0
  89. package/dist/components/dialog.js +64 -0
  90. package/dist/components/dialog.js.map +1 -0
  91. package/dist/components/direction.d.ts +19 -0
  92. package/dist/components/direction.d.ts.map +1 -0
  93. package/dist/components/direction.js +17 -0
  94. package/dist/components/direction.js.map +1 -0
  95. package/dist/components/drawer.d.ts +74 -0
  96. package/dist/components/drawer.d.ts.map +1 -0
  97. package/dist/components/drawer.js +57 -0
  98. package/dist/components/drawer.js.map +1 -0
  99. package/dist/components/dropdown-menu.d.ts +136 -0
  100. package/dist/components/dropdown-menu.d.ts.map +1 -0
  101. package/dist/components/dropdown-menu.js +99 -0
  102. package/dist/components/dropdown-menu.js.map +1 -0
  103. package/dist/components/empty.d.ts +53 -0
  104. package/dist/components/empty.d.ts.map +1 -0
  105. package/dist/components/empty.js +44 -0
  106. package/dist/components/empty.js.map +1 -0
  107. package/dist/components/field.d.ts +95 -0
  108. package/dist/components/field.d.ts.map +1 -0
  109. package/dist/components/field.js +86 -0
  110. package/dist/components/field.js.map +1 -0
  111. package/dist/components/{form.d.mts → form.d.ts} +15 -33
  112. package/dist/components/form.d.ts.map +1 -0
  113. package/dist/components/form.js +97 -0
  114. package/dist/components/form.js.map +1 -0
  115. package/dist/components/hover-card.d.ts +37 -0
  116. package/dist/components/hover-card.d.ts.map +1 -0
  117. package/dist/components/hover-card.js +32 -0
  118. package/dist/components/hover-card.js.map +1 -0
  119. package/dist/components/input-group.d.ts +56 -0
  120. package/dist/components/input-group.d.ts.map +1 -0
  121. package/dist/components/input-group.js +56 -0
  122. package/dist/components/input-group.js.map +1 -0
  123. package/dist/components/input-number.d.ts +60 -0
  124. package/dist/components/input-number.d.ts.map +1 -0
  125. package/dist/components/input-number.js +68 -0
  126. package/dist/components/input-number.js.map +1 -0
  127. package/dist/components/input-otp.d.ts +40 -0
  128. package/dist/components/input-otp.d.ts.map +1 -0
  129. package/dist/components/input-otp.js +41 -0
  130. package/dist/components/input-otp.js.map +1 -0
  131. package/dist/components/input-password.d.ts +13 -0
  132. package/dist/components/input-password.d.ts.map +1 -0
  133. package/dist/components/input-password.js +19 -0
  134. package/dist/components/input-password.js.map +1 -0
  135. package/dist/components/input-search.d.ts +17 -0
  136. package/dist/components/input-search.d.ts.map +1 -0
  137. package/dist/components/input-search.js +24 -0
  138. package/dist/components/input-search.js.map +1 -0
  139. package/dist/components/input.d.ts +12 -0
  140. package/dist/components/input.d.ts.map +1 -0
  141. package/dist/components/input.js +13 -0
  142. package/dist/components/input.js.map +1 -0
  143. package/dist/components/item.d.ts +88 -0
  144. package/dist/components/item.d.ts.map +1 -0
  145. package/dist/components/item.js +71 -0
  146. package/dist/components/item.js.map +1 -0
  147. package/dist/components/kbd.d.ts +20 -0
  148. package/dist/components/kbd.d.ts.map +1 -0
  149. package/dist/components/kbd.js +19 -0
  150. package/dist/components/kbd.js.map +1 -0
  151. package/dist/components/label.d.ts +13 -0
  152. package/dist/components/label.d.ts.map +1 -0
  153. package/dist/components/label.js +14 -0
  154. package/dist/components/label.js.map +1 -0
  155. package/dist/components/{marker.d.mts → marker.d.ts} +9 -21
  156. package/dist/components/marker.d.ts.map +1 -0
  157. package/dist/components/marker.js +28 -0
  158. package/dist/components/marker.js.map +1 -0
  159. package/dist/components/menubar.d.ts +144 -0
  160. package/dist/components/menubar.d.ts.map +1 -0
  161. package/dist/components/menubar.js +105 -0
  162. package/dist/components/menubar.js.map +1 -0
  163. package/dist/components/message-scroller.d.ts +67 -0
  164. package/dist/components/message-scroller.d.ts.map +1 -0
  165. package/dist/components/message-scroller.js +46 -0
  166. package/dist/components/message-scroller.js.map +1 -0
  167. package/dist/components/{message.d.mts → message.d.ts} +11 -31
  168. package/dist/components/message.d.ts.map +1 -0
  169. package/dist/components/message.js +43 -0
  170. package/dist/components/message.js.map +1 -0
  171. package/dist/components/native-select.d.ts +30 -0
  172. package/dist/components/native-select.d.ts.map +1 -0
  173. package/dist/components/native-select.js +26 -0
  174. package/dist/components/native-select.js.map +1 -0
  175. package/dist/components/navigation-menu.d.ts +71 -0
  176. package/dist/components/navigation-menu.d.ts.map +1 -0
  177. package/dist/components/navigation-menu.js +58 -0
  178. package/dist/components/navigation-menu.js.map +1 -0
  179. package/dist/components/pagination.d.ts +70 -0
  180. package/dist/components/pagination.d.ts.map +1 -0
  181. package/dist/components/pagination.js +51 -0
  182. package/dist/components/pagination.js.map +1 -0
  183. package/dist/components/popover.d.ts +69 -0
  184. package/dist/components/popover.d.ts.map +1 -0
  185. package/dist/components/popover.js +56 -0
  186. package/dist/components/popover.js.map +1 -0
  187. package/dist/components/progress-circle.d.ts +72 -0
  188. package/dist/components/progress-circle.d.ts.map +1 -0
  189. package/dist/components/progress-circle.js +58 -0
  190. package/dist/components/progress-circle.js.map +1 -0
  191. package/dist/components/progress.d.ts +13 -0
  192. package/dist/components/progress.d.ts.map +1 -0
  193. package/dist/components/progress.js +16 -0
  194. package/dist/components/progress.js.map +1 -0
  195. package/dist/components/radio-cards.d.ts +21 -0
  196. package/dist/components/radio-cards.d.ts.map +1 -0
  197. package/dist/components/radio-cards.js +21 -0
  198. package/dist/components/radio-cards.js.map +1 -0
  199. package/dist/components/radio-group.d.ts +21 -0
  200. package/dist/components/radio-group.d.ts.map +1 -0
  201. package/dist/components/radio-group.js +20 -0
  202. package/dist/components/radio-group.js.map +1 -0
  203. package/dist/components/radio.d.ts +14 -0
  204. package/dist/components/radio.d.ts.map +1 -0
  205. package/dist/components/radio.js +14 -0
  206. package/dist/components/radio.js.map +1 -0
  207. package/dist/components/resizable.d.ts +31 -0
  208. package/dist/components/resizable.d.ts.map +1 -0
  209. package/dist/components/resizable.js +26 -0
  210. package/dist/components/resizable.js.map +1 -0
  211. package/dist/components/scroll-area.d.ts +27 -0
  212. package/dist/components/scroll-area.d.ts.map +1 -0
  213. package/dist/components/scroll-area.js +29 -0
  214. package/dist/components/scroll-area.js.map +1 -0
  215. package/dist/components/select.d.ts +87 -0
  216. package/dist/components/select.d.ts.map +1 -0
  217. package/dist/components/select.js +70 -0
  218. package/dist/components/select.js.map +1 -0
  219. package/dist/components/separator.d.ts +23 -0
  220. package/dist/components/separator.d.ts.map +1 -0
  221. package/dist/components/separator.js +21 -0
  222. package/dist/components/separator.js.map +1 -0
  223. package/dist/components/sheet.d.ts +88 -0
  224. package/dist/components/sheet.d.ts.map +1 -0
  225. package/dist/components/sheet.js +69 -0
  226. package/dist/components/sheet.js.map +1 -0
  227. package/dist/components/sidebar.d.ts +231 -0
  228. package/dist/components/sidebar.d.ts.map +1 -0
  229. package/dist/components/sidebar.js +279 -0
  230. package/dist/components/sidebar.js.map +1 -0
  231. package/dist/components/skeleton.d.ts +12 -0
  232. package/dist/components/skeleton.d.ts.map +1 -0
  233. package/dist/components/skeleton.js +13 -0
  234. package/dist/components/skeleton.js.map +1 -0
  235. package/dist/components/slider.d.ts +13 -0
  236. package/dist/components/slider.d.ts.map +1 -0
  237. package/dist/components/slider.js +21 -0
  238. package/dist/components/slider.js.map +1 -0
  239. package/dist/components/sonner.d.ts +14 -0
  240. package/dist/components/sonner.d.ts.map +1 -0
  241. package/dist/components/sonner.js +32 -0
  242. package/dist/components/sonner.js.map +1 -0
  243. package/dist/components/spinner.d.ts +14 -0
  244. package/dist/components/spinner.d.ts.map +1 -0
  245. package/dist/components/spinner.js +30 -0
  246. package/dist/components/spinner.js.map +1 -0
  247. package/dist/components/switch.d.ts +15 -0
  248. package/dist/components/switch.d.ts.map +1 -0
  249. package/dist/components/switch.js +14 -0
  250. package/dist/components/switch.js.map +1 -0
  251. package/dist/components/table.d.ts +68 -0
  252. package/dist/components/table.d.ts.map +1 -0
  253. package/dist/components/table.js +55 -0
  254. package/dist/components/table.js.map +1 -0
  255. package/dist/components/tabs.d.ts +38 -0
  256. package/dist/components/tabs.d.ts.map +1 -0
  257. package/dist/components/tabs.js +33 -0
  258. package/dist/components/tabs.js.map +1 -0
  259. package/dist/components/textarea.d.ts +12 -0
  260. package/dist/components/textarea.d.ts.map +1 -0
  261. package/dist/components/textarea.js +13 -0
  262. package/dist/components/textarea.js.map +1 -0
  263. package/dist/components/toggle-group.d.ts +30 -0
  264. package/dist/components/toggle-group.d.ts.map +1 -0
  265. package/dist/components/toggle-group.js +42 -0
  266. package/dist/components/toggle-group.js.map +1 -0
  267. package/dist/components/toggle.d.ts +15 -0
  268. package/dist/components/toggle.d.ts.map +1 -0
  269. package/dist/components/toggle.js +14 -0
  270. package/dist/components/toggle.js.map +1 -0
  271. package/dist/components/tooltip.d.ts +45 -0
  272. package/dist/components/tooltip.d.ts.map +1 -0
  273. package/dist/components/tooltip.js +38 -0
  274. package/dist/components/tooltip.js.map +1 -0
  275. package/dist/hooks/{use-animated-value.d.mts → use-animated-value.d.ts} +2 -4
  276. package/dist/hooks/use-animated-value.d.ts.map +1 -0
  277. package/dist/hooks/use-animated-value.js +73 -0
  278. package/dist/hooks/use-animated-value.js.map +1 -0
  279. package/dist/hooks/{use-copy-to-clipboard.d.mts → use-copy-to-clipboard.d.ts} +6 -11
  280. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
  281. package/dist/hooks/use-copy-to-clipboard.js +48 -0
  282. package/dist/hooks/use-copy-to-clipboard.js.map +1 -0
  283. package/dist/hooks/{use-is-mobile.d.mts → use-is-mobile.d.ts} +2 -4
  284. package/dist/hooks/use-is-mobile.d.ts.map +1 -0
  285. package/dist/hooks/use-is-mobile.js +25 -0
  286. package/dist/hooks/use-is-mobile.js.map +1 -0
  287. package/dist/hooks/{use-media-query.d.mts → use-media-query.d.ts} +2 -4
  288. package/dist/hooks/use-media-query.d.ts.map +1 -0
  289. package/dist/hooks/use-media-query.js +55 -0
  290. package/dist/hooks/use-media-query.js.map +1 -0
  291. package/dist/hooks/use-message-scroller-commands.d.ts +22 -0
  292. package/dist/hooks/use-message-scroller-commands.d.ts.map +1 -0
  293. package/dist/hooks/use-message-scroller-commands.js +190 -0
  294. package/dist/hooks/use-message-scroller-commands.js.map +1 -0
  295. package/dist/hooks/use-message-scroller-controller.d.ts +12 -0
  296. package/dist/hooks/use-message-scroller-controller.d.ts.map +1 -0
  297. package/dist/hooks/use-message-scroller-controller.js +471 -0
  298. package/dist/hooks/use-message-scroller-controller.js.map +1 -0
  299. package/dist/hooks/use-message-scroller-refs.d.ts +54 -0
  300. package/dist/hooks/use-message-scroller-refs.d.ts.map +1 -0
  301. package/dist/hooks/use-message-scroller-refs.js +88 -0
  302. package/dist/hooks/use-message-scroller-refs.js.map +1 -0
  303. package/dist/hooks/{use-mutation-observer.d.mts → use-mutation-observer.d.ts} +3 -6
  304. package/dist/hooks/use-mutation-observer.d.ts.map +1 -0
  305. package/dist/hooks/use-mutation-observer.js +42 -0
  306. package/dist/hooks/use-mutation-observer.js.map +1 -0
  307. package/dist/hooks/{use-pagination.d.mts → use-pagination.d.ts} +21 -28
  308. package/dist/hooks/use-pagination.d.ts.map +1 -0
  309. package/dist/hooks/use-pagination.js +117 -0
  310. package/dist/hooks/use-pagination.js.map +1 -0
  311. package/dist/index.d.ts +181 -0
  312. package/dist/index.d.ts.map +1 -0
  313. package/dist/index.js +94 -0
  314. package/dist/index.js.map +1 -0
  315. package/dist/lib/message-scroller/{geometry.d.mts → geometry.d.ts} +40 -73
  316. package/dist/lib/message-scroller/geometry.d.ts.map +1 -0
  317. package/dist/lib/message-scroller/geometry.js +246 -0
  318. package/dist/lib/message-scroller/geometry.js.map +1 -0
  319. package/dist/lib/message-scroller/{stores.d.mts → stores.d.ts} +3 -5
  320. package/dist/lib/message-scroller/stores.d.ts.map +1 -0
  321. package/dist/lib/message-scroller/stores.js +64 -0
  322. package/dist/lib/message-scroller/stores.js.map +1 -0
  323. package/dist/lib/message-scroller/types.d.ts +170 -0
  324. package/dist/lib/message-scroller/types.d.ts.map +1 -0
  325. package/dist/lib/message-scroller/types.js +66 -0
  326. package/dist/lib/message-scroller/types.js.map +1 -0
  327. package/dist/lib/message-scroller/{utils.d.mts → utils.d.ts} +2 -3
  328. package/dist/lib/message-scroller/utils.d.ts.map +1 -0
  329. package/dist/lib/message-scroller/utils.js +11 -0
  330. package/dist/lib/message-scroller/utils.js.map +1 -0
  331. package/dist/lib/{use-render.d.mts → use-render.d.ts} +14 -19
  332. package/dist/lib/use-render.d.ts.map +1 -0
  333. package/dist/lib/use-render.js +119 -0
  334. package/dist/lib/use-render.js.map +1 -0
  335. package/dist/lib/utils.d.ts +5 -0
  336. package/dist/lib/utils.d.ts.map +1 -0
  337. package/dist/lib/{utils.mjs → utils.js} +1 -0
  338. package/dist/lib/utils.js.map +1 -0
  339. package/dist/primitives/checkbox-group.d.ts +135 -0
  340. package/dist/primitives/checkbox-group.d.ts.map +1 -0
  341. package/dist/primitives/checkbox-group.js +120 -0
  342. package/dist/primitives/checkbox-group.js.map +1 -0
  343. package/dist/primitives/input-number.d.ts +109 -0
  344. package/dist/primitives/input-number.d.ts.map +1 -0
  345. package/dist/primitives/input-number.js +532 -0
  346. package/dist/primitives/input-number.js.map +1 -0
  347. package/dist/primitives/input.d.ts +77 -0
  348. package/dist/primitives/input.d.ts.map +1 -0
  349. package/dist/primitives/input.js +83 -0
  350. package/dist/primitives/input.js.map +1 -0
  351. package/dist/primitives/message-scroller.d.ts +43 -0
  352. package/dist/primitives/message-scroller.d.ts.map +1 -0
  353. package/dist/primitives/message-scroller.js +210 -0
  354. package/dist/primitives/message-scroller.js.map +1 -0
  355. package/dist/primitives/progress-circle.d.ts +166 -0
  356. package/dist/primitives/progress-circle.d.ts.map +1 -0
  357. package/dist/primitives/progress-circle.js +171 -0
  358. package/dist/primitives/progress-circle.js.map +1 -0
  359. package/dist/variants/{alert.d.mts → alert.d.ts} +8 -9
  360. package/dist/variants/alert.d.ts.map +1 -0
  361. package/dist/variants/alert.js +24 -0
  362. package/dist/variants/alert.js.map +1 -0
  363. package/dist/variants/{attachment.d.mts → attachment.d.ts} +17 -18
  364. package/dist/variants/attachment.d.ts.map +1 -0
  365. package/dist/variants/attachment.js +54 -0
  366. package/dist/variants/attachment.js.map +1 -0
  367. package/dist/variants/badge.d.ts +21 -0
  368. package/dist/variants/badge.d.ts.map +1 -0
  369. package/dist/variants/badge.js +28 -0
  370. package/dist/variants/badge.js.map +1 -0
  371. package/dist/variants/{bubble.d.mts → bubble.d.ts} +21 -22
  372. package/dist/variants/bubble.d.ts.map +1 -0
  373. package/dist/variants/bubble.js +57 -0
  374. package/dist/variants/bubble.js.map +1 -0
  375. package/dist/variants/{button-group.d.mts → button-group.d.ts} +8 -9
  376. package/dist/variants/button-group.d.ts.map +1 -0
  377. package/dist/variants/button-group.js +24 -0
  378. package/dist/variants/button-group.js.map +1 -0
  379. package/dist/variants/button.d.ts +31 -0
  380. package/dist/variants/button.d.ts.map +1 -0
  381. package/dist/variants/button.js +39 -0
  382. package/dist/variants/button.js.map +1 -0
  383. package/dist/variants/{empty.d.mts → empty.d.ts} +8 -9
  384. package/dist/variants/empty.d.ts.map +1 -0
  385. package/dist/variants/empty.js +24 -0
  386. package/dist/variants/empty.js.map +1 -0
  387. package/dist/variants/field.d.ts +18 -0
  388. package/dist/variants/field.d.ts.map +1 -0
  389. package/dist/variants/field.js +25 -0
  390. package/dist/variants/field.js.map +1 -0
  391. package/dist/variants/{input-group.d.mts → input-group.d.ts} +16 -17
  392. package/dist/variants/input-group.d.ts.map +1 -0
  393. package/dist/variants/input-group.js +55 -0
  394. package/dist/variants/input-group.js.map +1 -0
  395. package/dist/variants/{item.d.mts → item.d.ts} +19 -20
  396. package/dist/variants/item.d.ts.map +1 -0
  397. package/dist/variants/item.js +50 -0
  398. package/dist/variants/item.js.map +1 -0
  399. package/dist/variants/{marker.d.mts → marker.d.ts} +9 -10
  400. package/dist/variants/marker.d.ts.map +1 -0
  401. package/dist/variants/marker.js +27 -0
  402. package/dist/variants/marker.js.map +1 -0
  403. package/dist/variants/{navigation-menu.d.mts → navigation-menu.d.ts} +4 -5
  404. package/dist/variants/navigation-menu.d.ts.map +1 -0
  405. package/dist/variants/navigation-menu.js +15 -0
  406. package/dist/variants/navigation-menu.js.map +1 -0
  407. package/dist/variants/progress-circle.d.ts +51 -0
  408. package/dist/variants/progress-circle.d.ts.map +1 -0
  409. package/dist/variants/progress-circle.js +36 -0
  410. package/dist/variants/progress-circle.js.map +1 -0
  411. package/dist/variants/scroll-area.d.ts +23 -0
  412. package/dist/variants/scroll-area.d.ts.map +1 -0
  413. package/dist/variants/scroll-area.js +63 -0
  414. package/dist/variants/scroll-area.js.map +1 -0
  415. package/dist/variants/separator.d.ts +22 -0
  416. package/dist/variants/separator.d.ts.map +1 -0
  417. package/dist/variants/separator.js +30 -0
  418. package/dist/variants/separator.js.map +1 -0
  419. package/dist/variants/sheet.d.ts +19 -0
  420. package/dist/variants/sheet.d.ts.map +1 -0
  421. package/dist/variants/sheet.js +26 -0
  422. package/dist/variants/sheet.js.map +1 -0
  423. package/dist/variants/sidebar.d.ts +22 -0
  424. package/dist/variants/sidebar.d.ts.map +1 -0
  425. package/dist/variants/sidebar.js +30 -0
  426. package/dist/variants/sidebar.js.map +1 -0
  427. package/dist/variants/{tabs.d.mts → tabs.d.ts} +8 -9
  428. package/dist/variants/tabs.d.ts.map +1 -0
  429. package/dist/variants/tabs.js +24 -0
  430. package/dist/variants/tabs.js.map +1 -0
  431. package/dist/variants/toggle.d.ts +22 -0
  432. package/dist/variants/toggle.d.ts.map +1 -0
  433. package/dist/variants/toggle.js +30 -0
  434. package/dist/variants/toggle.js.map +1 -0
  435. package/package.json +253 -262
  436. package/src/components/accordion.tsx +3 -3
  437. package/src/components/alert-dialog.tsx +7 -7
  438. package/src/components/alert.tsx +1 -1
  439. package/src/components/aspect-ratio.tsx +1 -1
  440. package/src/components/attachment.tsx +1 -1
  441. package/src/components/avatar.tsx +1 -1
  442. package/src/components/badge.tsx +1 -1
  443. package/src/components/breadcrumb.tsx +3 -6
  444. package/src/components/bubble.tsx +1 -1
  445. package/src/components/button-group.tsx +2 -2
  446. package/src/components/button.tsx +1 -1
  447. package/src/components/calendar.tsx +2 -2
  448. package/src/components/card.tsx +2 -2
  449. package/src/components/checkbox-cards.tsx +2 -2
  450. package/src/components/checkbox.tsx +1 -1
  451. package/src/components/collapsible.tsx +1 -1
  452. package/src/components/context-menu.tsx +8 -8
  453. package/src/components/dialog.tsx +9 -6
  454. package/src/components/direction.tsx +1 -1
  455. package/src/components/drawer.tsx +3 -3
  456. package/src/components/dropdown-menu.tsx +8 -8
  457. package/src/components/empty.tsx +3 -3
  458. package/src/components/field.tsx +5 -5
  459. package/src/components/form.tsx +2 -2
  460. package/src/components/hover-card.tsx +2 -2
  461. package/src/components/input-group.tsx +2 -2
  462. package/src/components/input-number.tsx +166 -112
  463. package/src/components/input-otp.tsx +2 -2
  464. package/src/components/input.tsx +1 -1
  465. package/src/components/item.tsx +1 -1
  466. package/src/components/label.tsx +1 -1
  467. package/src/components/marker.tsx +1 -1
  468. package/src/components/menubar.tsx +12 -12
  469. package/src/components/native-select.tsx +1 -1
  470. package/src/components/navigation-menu.tsx +3 -3
  471. package/src/components/pagination.tsx +4 -4
  472. package/src/components/popover.tsx +3 -3
  473. package/src/components/progress.tsx +2 -2
  474. package/src/components/radio-cards.tsx +3 -3
  475. package/src/components/radio-group.tsx +2 -2
  476. package/src/components/scroll-area.tsx +1 -1
  477. package/src/components/select.tsx +5 -5
  478. package/src/components/separator.tsx +1 -1
  479. package/src/components/sheet.tsx +4 -4
  480. package/src/components/sidebar.tsx +11 -4
  481. package/src/components/slider.tsx +3 -3
  482. package/src/components/spinner.tsx +1 -1
  483. package/src/components/switch.tsx +1 -1
  484. package/src/components/tabs.tsx +2 -2
  485. package/src/components/textarea.tsx +1 -1
  486. package/src/components/toggle-group.tsx +3 -3
  487. package/src/components/toggle.tsx +1 -1
  488. package/src/components/tooltip.tsx +1 -1
  489. package/src/lib/message-scroller/geometry.ts +6 -2
  490. package/src/lib/message-scroller/stores.ts +2 -2
  491. package/src/primitives/checkbox-group.tsx +5 -6
  492. package/src/primitives/input-number.tsx +122 -43
  493. package/src/variants/alert.ts +1 -1
  494. package/src/variants/button-group.ts +3 -3
  495. package/src/variants/button.ts +9 -10
  496. package/src/variants/empty.ts +1 -1
  497. package/src/variants/field.ts +3 -3
  498. package/src/variants/input-group.ts +3 -3
  499. package/src/variants/item.ts +2 -2
  500. package/src/variants/navigation-menu.ts +1 -1
  501. package/src/variants/tabs.ts +1 -1
  502. package/src/variants/toggle.ts +4 -4
  503. package/dist/components/accordion.d.mts +0 -52
  504. package/dist/components/accordion.mjs +0 -65
  505. package/dist/components/alert-dialog.d.mts +0 -135
  506. package/dist/components/alert-dialog.mjs +0 -130
  507. package/dist/components/alert.d.mts +0 -51
  508. package/dist/components/alert.mjs +0 -50
  509. package/dist/components/aspect-ratio.d.mts +0 -16
  510. package/dist/components/aspect-ratio.mjs +0 -14
  511. package/dist/components/attachment.mjs +0 -112
  512. package/dist/components/avatar.d.mts +0 -75
  513. package/dist/components/avatar.mjs +0 -67
  514. package/dist/components/badge.d.mts +0 -21
  515. package/dist/components/badge.mjs +0 -20
  516. package/dist/components/breadcrumb.d.mts +0 -85
  517. package/dist/components/breadcrumb.mjs +0 -89
  518. package/dist/components/bubble.d.mts +0 -67
  519. package/dist/components/bubble.mjs +0 -58
  520. package/dist/components/button-group.d.mts +0 -45
  521. package/dist/components/button-group.mjs +0 -43
  522. package/dist/components/button.d.mts +0 -24
  523. package/dist/components/button.mjs +0 -35
  524. package/dist/components/calendar.d.mts +0 -43
  525. package/dist/components/calendar.mjs +0 -117
  526. package/dist/components/card.d.mts +0 -85
  527. package/dist/components/card.mjs +0 -76
  528. package/dist/components/carousel.mjs +0 -172
  529. package/dist/components/chart.d.mts +0 -135
  530. package/dist/components/chart.mjs +0 -214
  531. package/dist/components/checkbox-cards.d.mts +0 -29
  532. package/dist/components/checkbox-cards.mjs +0 -36
  533. package/dist/components/checkbox-group.d.mts +0 -28
  534. package/dist/components/checkbox-group.mjs +0 -32
  535. package/dist/components/checkbox.d.mts +0 -17
  536. package/dist/components/checkbox.mjs +0 -22
  537. package/dist/components/collapsible.d.mts +0 -36
  538. package/dist/components/collapsible.mjs +0 -32
  539. package/dist/components/command.d.mts +0 -127
  540. package/dist/components/command.mjs +0 -125
  541. package/dist/components/context-menu.d.mts +0 -188
  542. package/dist/components/context-menu.mjs +0 -172
  543. package/dist/components/dialog.d.mts +0 -115
  544. package/dist/components/dialog.mjs +0 -121
  545. package/dist/components/direction.d.mts +0 -24
  546. package/dist/components/direction.mjs +0 -18
  547. package/dist/components/drawer.d.mts +0 -101
  548. package/dist/components/drawer.mjs +0 -97
  549. package/dist/components/dropdown-menu.d.mts +0 -189
  550. package/dist/components/dropdown-menu.mjs +0 -178
  551. package/dist/components/empty.d.mts +0 -73
  552. package/dist/components/empty.mjs +0 -70
  553. package/dist/components/field.d.mts +0 -131
  554. package/dist/components/field.mjs +0 -135
  555. package/dist/components/form.mjs +0 -113
  556. package/dist/components/hover-card.d.mts +0 -50
  557. package/dist/components/hover-card.mjs +0 -49
  558. package/dist/components/input-group.d.mts +0 -79
  559. package/dist/components/input-group.mjs +0 -87
  560. package/dist/components/input-number.d.mts +0 -36
  561. package/dist/components/input-number.mjs +0 -86
  562. package/dist/components/input-otp.d.mts +0 -53
  563. package/dist/components/input-otp.mjs +0 -62
  564. package/dist/components/input-password.d.mts +0 -19
  565. package/dist/components/input-password.mjs +0 -38
  566. package/dist/components/input-search.d.mts +0 -26
  567. package/dist/components/input-search.mjs +0 -51
  568. package/dist/components/input.d.mts +0 -17
  569. package/dist/components/input.mjs +0 -16
  570. package/dist/components/item.d.mts +0 -123
  571. package/dist/components/item.mjs +0 -120
  572. package/dist/components/kbd.d.mts +0 -27
  573. package/dist/components/kbd.mjs +0 -25
  574. package/dist/components/label.d.mts +0 -17
  575. package/dist/components/label.mjs +0 -16
  576. package/dist/components/marker.mjs +0 -42
  577. package/dist/components/menubar.d.mts +0 -202
  578. package/dist/components/menubar.mjs +0 -188
  579. package/dist/components/message-scroller.d.mts +0 -89
  580. package/dist/components/message-scroller.mjs +0 -77
  581. package/dist/components/message.mjs +0 -66
  582. package/dist/components/native-select.d.mts +0 -41
  583. package/dist/components/native-select.mjs +0 -46
  584. package/dist/components/navigation-menu.d.mts +0 -100
  585. package/dist/components/navigation-menu.mjs +0 -103
  586. package/dist/components/pagination.d.mts +0 -94
  587. package/dist/components/pagination.mjs +0 -107
  588. package/dist/components/popover.d.mts +0 -93
  589. package/dist/components/popover.mjs +0 -88
  590. package/dist/components/progress-circle.d.mts +0 -89
  591. package/dist/components/progress-circle.mjs +0 -80
  592. package/dist/components/progress.d.mts +0 -18
  593. package/dist/components/progress.mjs +0 -21
  594. package/dist/components/radio-cards.d.mts +0 -26
  595. package/dist/components/radio-cards.mjs +0 -35
  596. package/dist/components/radio-group.d.mts +0 -28
  597. package/dist/components/radio-group.mjs +0 -31
  598. package/dist/components/radio.d.mts +0 -20
  599. package/dist/components/radio.mjs +0 -18
  600. package/dist/components/resizable.d.mts +0 -41
  601. package/dist/components/resizable.mjs +0 -36
  602. package/dist/components/scroll-area.d.mts +0 -39
  603. package/dist/components/scroll-area.mjs +0 -56
  604. package/dist/components/select.d.mts +0 -122
  605. package/dist/components/select.mjs +0 -131
  606. package/dist/components/separator.d.mts +0 -32
  607. package/dist/components/separator.mjs +0 -33
  608. package/dist/components/sheet.d.mts +0 -119
  609. package/dist/components/sheet.mjs +0 -123
  610. package/dist/components/sidebar.d.mts +0 -320
  611. package/dist/components/sidebar.mjs +0 -414
  612. package/dist/components/skeleton.d.mts +0 -16
  613. package/dist/components/skeleton.mjs +0 -15
  614. package/dist/components/slider.d.mts +0 -21
  615. package/dist/components/slider.mjs +0 -41
  616. package/dist/components/sonner.d.mts +0 -16
  617. package/dist/components/sonner.mjs +0 -32
  618. package/dist/components/spinner.d.mts +0 -20
  619. package/dist/components/spinner.mjs +0 -42
  620. package/dist/components/switch.d.mts +0 -20
  621. package/dist/components/switch.mjs +0 -21
  622. package/dist/components/table.d.mts +0 -93
  623. package/dist/components/table.mjs +0 -89
  624. package/dist/components/tabs.d.mts +0 -53
  625. package/dist/components/tabs.mjs +0 -53
  626. package/dist/components/textarea.d.mts +0 -16
  627. package/dist/components/textarea.mjs +0 -15
  628. package/dist/components/toggle-group.d.mts +0 -46
  629. package/dist/components/toggle-group.mjs +0 -58
  630. package/dist/components/toggle.d.mts +0 -20
  631. package/dist/components/toggle.mjs +0 -20
  632. package/dist/components/tooltip.d.mts +0 -61
  633. package/dist/components/tooltip.mjs +0 -59
  634. package/dist/hooks/use-animated-value.mjs +0 -65
  635. package/dist/hooks/use-copy-to-clipboard.mjs +0 -44
  636. package/dist/hooks/use-is-mobile.mjs +0 -27
  637. package/dist/hooks/use-media-query.mjs +0 -51
  638. package/dist/hooks/use-message-scroller-commands.d.mts +0 -39
  639. package/dist/hooks/use-message-scroller-commands.mjs +0 -165
  640. package/dist/hooks/use-message-scroller-controller.d.mts +0 -19
  641. package/dist/hooks/use-message-scroller-controller.mjs +0 -382
  642. package/dist/hooks/use-message-scroller-refs.d.mts +0 -60
  643. package/dist/hooks/use-message-scroller-refs.mjs +0 -77
  644. package/dist/hooks/use-mutation-observer.mjs +0 -42
  645. package/dist/hooks/use-pagination.mjs +0 -122
  646. package/dist/index.d.mts +0 -96
  647. package/dist/index.mjs +0 -95
  648. package/dist/lib/message-scroller/geometry.mjs +0 -199
  649. package/dist/lib/message-scroller/stores.mjs +0 -52
  650. package/dist/lib/message-scroller/types.d.mts +0 -171
  651. package/dist/lib/message-scroller/types.mjs +0 -53
  652. package/dist/lib/message-scroller/utils.mjs +0 -12
  653. package/dist/lib/use-render.mjs +0 -84
  654. package/dist/lib/utils.d.mts +0 -2
  655. package/dist/primitives/checkbox-group.d.mts +0 -154
  656. package/dist/primitives/checkbox-group.mjs +0 -137
  657. package/dist/primitives/input-number.d.mts +0 -119
  658. package/dist/primitives/input-number.mjs +0 -532
  659. package/dist/primitives/input.d.mts +0 -81
  660. package/dist/primitives/input.mjs +0 -80
  661. package/dist/primitives/message-scroller.d.mts +0 -88
  662. package/dist/primitives/message-scroller.mjs +0 -240
  663. package/dist/primitives/progress-circle.d.mts +0 -195
  664. package/dist/primitives/progress-circle.mjs +0 -189
  665. package/dist/variants/alert.mjs +0 -15
  666. package/dist/variants/attachment.mjs +0 -42
  667. package/dist/variants/badge.d.mts +0 -22
  668. package/dist/variants/badge.mjs +0 -19
  669. package/dist/variants/bubble.mjs +0 -45
  670. package/dist/variants/button-group.mjs +0 -15
  671. package/dist/variants/button.d.mts +0 -32
  672. package/dist/variants/button.mjs +0 -34
  673. package/dist/variants/empty.mjs +0 -15
  674. package/dist/variants/field.d.mts +0 -19
  675. package/dist/variants/field.mjs +0 -16
  676. package/dist/variants/input-group.mjs +0 -34
  677. package/dist/variants/input-number.d.mts +0 -45
  678. package/dist/variants/input-number.mjs +0 -40
  679. package/dist/variants/item.mjs +0 -38
  680. package/dist/variants/marker.mjs +0 -18
  681. package/dist/variants/navigation-menu.mjs +0 -8
  682. package/dist/variants/progress-circle.d.mts +0 -52
  683. package/dist/variants/progress-circle.mjs +0 -45
  684. package/dist/variants/scroll-area.d.mts +0 -24
  685. package/dist/variants/scroll-area.mjs +0 -58
  686. package/dist/variants/separator.d.mts +0 -23
  687. package/dist/variants/separator.mjs +0 -25
  688. package/dist/variants/sheet.d.mts +0 -20
  689. package/dist/variants/sheet.mjs +0 -17
  690. package/dist/variants/sidebar.d.mts +0 -23
  691. package/dist/variants/sidebar.mjs +0 -25
  692. package/dist/variants/tabs.mjs +0 -15
  693. package/dist/variants/toggle.d.mts +0 -23
  694. package/dist/variants/toggle.mjs +0 -25
  695. package/src/variants/input-number.ts +0 -65
@@ -0,0 +1,171 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Context } from "radix-ui/internal";
3
+ import { useId, useMemo } from "react";
4
+ /* -----------------------------------------------------------------------------
5
+ * Context: ProgressCircleProvider
6
+ * --------------------------------------------------------------------------- */
7
+ const PROGRESS_CIRCLE_PROVIDER_NAME = "ProgressCircleProvider";
8
+ const [createProgressCircleContext, createProgressCircleScope] = Context.createContextScope(PROGRESS_CIRCLE_PROVIDER_NAME);
9
+ const [ProgressCircleContextProvider, useProgressCircleContext] = createProgressCircleContext(PROGRESS_CIRCLE_PROVIDER_NAME);
10
+ /**
11
+ * Provides context for the ProgressCircle component
12
+ *
13
+ * Manages calculations for rendering the circular progress indicator,
14
+ * including value clamping, sizing, thresholds, and indeterminate state.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * <ProgressCircleProvider
19
+ * value={75}
20
+ * min={0}
21
+ * max={100}
22
+ * size={64}
23
+ * thresholds={[
24
+ * { value: 30, color: 'red', background: 'pink' },
25
+ * { value: 70, color: 'yellow', background: 'lightyellow' },
26
+ * { value: 100, color: 'green', background: 'lightgreen' }
27
+ * ]}
28
+ * >
29
+ * <ProgressCircleSVG>
30
+ * <ProgressCircleIndicator />
31
+ * <ProgressCircleTrack />
32
+ * </ProgressCircleSVG>
33
+ * <ProgressCircleValue />
34
+ * </ProgressCircleProvider>
35
+ * ```
36
+ *
37
+ * @since 0.3.16-canary.0
38
+ */
39
+ function ProgressCircleProvider({ __scopeProgressCircle, children, formatValue, id: propertyId, max = 100, min = 0, size = 48, startAngle = -90, strokeWidth = 4, thresholds, value, }) {
40
+ const uniqueId = useId();
41
+ const id = propertyId ?? uniqueId;
42
+ // Ensure size and stroke width are non-negative
43
+ const validSize = Math.max(0, size);
44
+ const validStrokeWidth = Math.max(0, strokeWidth);
45
+ const validStartAngle = startAngle % 360;
46
+ // Validate min and max, swap if min > max
47
+ let validMin = min;
48
+ let validMax = max;
49
+ if (validMin > validMax) {
50
+ [validMin, validMax] = [validMax, validMin];
51
+ }
52
+ // Handle indeterminate state
53
+ const isIndeterminate = value === null || value === undefined;
54
+ const clampedValue = isIndeterminate ? undefined : clamp(validMin, validMax, value);
55
+ const range = validMax - validMin;
56
+ const percentage = clampedValue !== undefined && range > 0 ? ((clampedValue - validMin) / range) * 100 : 0;
57
+ const valueText = clampedValue !== undefined && formatValue ? formatValue(clampedValue) : `${Math.round(percentage).toString()}%`;
58
+ // Sort thresholds by value
59
+ const sortedThresholds = useMemo(() => (thresholds && thresholds.length > 0 ? [...thresholds].toSorted((a, b) => a.value - b.value) : []), [thresholds]);
60
+ // Determine an active threshold based on a clamped value
61
+ const threshold = useMemo(() => {
62
+ if (clampedValue === undefined) {
63
+ return;
64
+ }
65
+ for (const sortedThreshold of sortedThresholds) {
66
+ if (clampedValue <= sortedThreshold.value) {
67
+ return sortedThreshold;
68
+ }
69
+ }
70
+ return sortedThresholds.at(-1);
71
+ }, [sortedThresholds, clampedValue]);
72
+ // Calculate circle properties
73
+ const center = validSize / 2;
74
+ const radius = Math.max(0, center - validStrokeWidth / 2);
75
+ const circumference = 2 * Math.PI * radius;
76
+ const strokeDashoffset = circumference - (percentage / 100) * circumference;
77
+ const rotationTransform = `rotate(${validStartAngle.toString()}, 0, 0)`;
78
+ return (_jsx(ProgressCircleContextProvider, { center: center, circumference: circumference, clampedValue: clampedValue, id: id, max: validMax, min: validMin, radius: radius, rotationTransform: rotationTransform, scope: __scopeProgressCircle, size: validSize, strokeDashoffset: strokeDashoffset, strokeWidth: validStrokeWidth, threshold: threshold, value: value ?? 0, valueText: valueText, children: children }));
79
+ }
80
+ /**
81
+ * Root component for the progress circle
82
+ *
83
+ * Serves as a wrapper for other progress circle components.
84
+ *
85
+ * @since 0.3.16-canary.0
86
+ */
87
+ function ProgressCircle({ __scopeProgressCircle, ...props }) {
88
+ return _jsx("div", { ...props });
89
+ }
90
+ /* -----------------------------------------------------------------------------
91
+ * Component: ProgressCircleSVG
92
+ * --------------------------------------------------------------------------- */
93
+ const PROGRESS_CIRCLE_SVG_NAME = "ProgressCircleSVG";
94
+ /**
95
+ * SVG container for the progress circle
96
+ *
97
+ * Renders the SVG with accessibility attributes and supports indeterminate state.
98
+ *
99
+ * @since 0.3.16-canary.0
100
+ */
101
+ function ProgressCircleSVG({ __scopeProgressCircle, ...props }) {
102
+ const { clampedValue, id, max, min, size, valueText } = useProgressCircleContext(PROGRESS_CIRCLE_SVG_NAME, __scopeProgressCircle);
103
+ return (_jsx("svg", { "aria-label": "Progress", "aria-valuemax": max, "aria-valuemin": min, "aria-valuenow": clampedValue, "aria-valuetext": clampedValue === undefined ? undefined : valueText, height: size, id: id, role: "progressbar", viewBox: `0 0 ${size.toString()} ${size.toString()}`, width: size, ...props }));
104
+ }
105
+ /* -----------------------------------------------------------------------------
106
+ * Component: ProgressCircleTrack
107
+ * --------------------------------------------------------------------------- */
108
+ const PROGRESS_CIRCLE_TRACK_NAME = "ProgressCircleTrack";
109
+ /**
110
+ * Background circle for the progress indicator
111
+ *
112
+ * Renders the static track of the progress circle.
113
+ *
114
+ * @since 0.3.16-canary.0
115
+ */
116
+ function ProgressCircleTrack({ __scopeProgressCircle, ...props }) {
117
+ const { center, radius, strokeWidth, threshold } = useProgressCircleContext(PROGRESS_CIRCLE_TRACK_NAME, __scopeProgressCircle);
118
+ return (_jsx("circle", { cx: center, cy: center, fill: "transparent", r: radius, stroke: threshold?.background ?? "currentColor", strokeWidth: strokeWidth, ...props }));
119
+ }
120
+ /* -----------------------------------------------------------------------------
121
+ * Component: ProgressCircleIndicator
122
+ * --------------------------------------------------------------------------- */
123
+ const PROGRESS_CIRCLE_INDICATOR_NAME = "ProgressCircleIndicator";
124
+ /**
125
+ * Foreground circle showing progress
126
+ *
127
+ * Renders the dynamic progress indicator with stroke dash properties.
128
+ *
129
+ * @since 0.3.16-canary.0
130
+ */
131
+ function ProgressCircleIndicator({ __scopeProgressCircle, ...props }) {
132
+ const { center, circumference, radius, rotationTransform, strokeDashoffset, strokeWidth, threshold } = useProgressCircleContext(PROGRESS_CIRCLE_INDICATOR_NAME, __scopeProgressCircle);
133
+ return (_jsx("circle", { cx: center, cy: center, fill: "transparent", r: radius, stroke: threshold?.color ?? "currentColor", strokeDasharray: circumference, strokeDashoffset: strokeDashoffset, strokeLinecap: "round", strokeWidth: strokeWidth, transform: rotationTransform, ...props }));
134
+ }
135
+ /* -----------------------------------------------------------------------------
136
+ * Component: ProgressCircleValue
137
+ * --------------------------------------------------------------------------- */
138
+ const PROGRESS_CIRCLE_VALUE_NAME = "ProgressCircleValue";
139
+ /**
140
+ * Displays the current progress value
141
+ *
142
+ * Supports custom content or default value text rendering.
143
+ *
144
+ * @since 0.3.16-canary.0
145
+ */
146
+ function ProgressCircleValue({ __scopeProgressCircle, children, ...props }) {
147
+ const { clampedValue, valueText } = useProgressCircleContext(PROGRESS_CIRCLE_VALUE_NAME, __scopeProgressCircle);
148
+ if (typeof children === "function") {
149
+ return children({ value: clampedValue, valueText });
150
+ }
151
+ return _jsx("div", { ...props, children: children ?? valueText });
152
+ }
153
+ /* -----------------------------------------------------------------------------
154
+ * Helpers
155
+ * -------------------------------------------------------------------------- */
156
+ /**
157
+ * Clamps a value within a specified min/max range
158
+ *
159
+ * @param min - Minimum value
160
+ * @param max - Maximum value
161
+ * @param value - Value to clamp
162
+ * @returns Clamped value
163
+ */
164
+ function clamp(min, max, value) {
165
+ return Math.min(max, Math.max(min, value));
166
+ }
167
+ /* -----------------------------------------------------------------------------
168
+ * Exports
169
+ * -------------------------------------------------------------------------- */
170
+ export { createProgressCircleScope, ProgressCircleIndicator as Indicator, ProgressCircle, ProgressCircleIndicator, ProgressCircleProvider, ProgressCircleSVG, ProgressCircleTrack, ProgressCircleValue, ProgressCircleProvider as Provider, ProgressCircle as Root, ProgressCircleSVG as SVG, ProgressCircleTrack as Track, ProgressCircleValue as Value, };
171
+ //# sourceMappingURL=progress-circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-circle.js","sourceRoot":"","sources":["../../src/primitives/progress-circle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAA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AAiB,IAAI,GAAG,EACxB,mBAAmB,IAAI,KAAK,EAC5B,mBAAmB,IAAI,KAAK,GAC7B,CAAC"}
@@ -1,18 +1,17 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
-
3
- //#region src/variants/alert.d.ts
1
+ import type { VariantProps } from "#/lib/utils";
4
2
  /**
5
3
  * @since 0.3.16-canary.0
6
4
  */
7
5
  declare const alertVariants: import("@codefast/tailwind-variants").VariantResolver<{
8
- variant: {
9
- default: string;
10
- destructive: string;
11
- };
6
+ variant: {
7
+ default: string;
8
+ destructive: string;
9
+ };
12
10
  }, Record<string, never>>;
13
11
  /**
14
12
  * @since 0.3.16-canary.0
15
13
  */
16
14
  type AlertVariants = VariantProps<typeof alertVariants>;
17
- //#endregion
18
- export { type AlertVariants, alertVariants };
15
+ export { alertVariants };
16
+ export type { AlertVariants };
17
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/variants/alert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,aAAa;;QAOb,OAAO;QACP,WAAW;;yBAGf,CAAC;AAEH;;GAEG;AACH,KAAK,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAMxD,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { tv } from "#/lib/utils";
2
+ /* -----------------------------------------------------------------------------
3
+ * Variant: Alert
4
+ * -------------------------------------------------------------------------- */
5
+ /**
6
+ * @since 0.3.16-canary.0
7
+ */
8
+ const alertVariants = tv({
9
+ 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",
10
+ defaultVariants: {
11
+ variant: "default",
12
+ },
13
+ variants: {
14
+ variant: {
15
+ default: "bg-card text-card-foreground",
16
+ destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",
17
+ },
18
+ },
19
+ });
20
+ /* -----------------------------------------------------------------------------
21
+ * Exports
22
+ * -------------------------------------------------------------------------- */
23
+ export { alertVariants };
24
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/variants/alert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,EAAE,4TAA4T;IAClU,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,8BAA8B;YACvC,WAAW,EAAE,mGAAmG;SACjH;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,6 +1,4 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
-
3
- //#region src/variants/attachment.d.ts
1
+ import type { VariantProps } from "#/lib/utils";
4
2
  /**
5
3
  * File/media attachment card. Size drives padding for the media and content
6
4
  * slots; orientation switches between a horizontal row and a vertical tile.
@@ -8,15 +6,15 @@ import { VariantProps } from "../lib/utils.mjs";
8
6
  * @since 0.5.0-canary.3
9
7
  */
10
8
  declare const attachmentVariants: import("@codefast/tailwind-variants").VariantResolver<{
11
- size: {
12
- default: string;
13
- sm: string;
14
- xs: string;
15
- };
16
- orientation: {
17
- horizontal: string;
18
- vertical: string;
19
- };
9
+ size: {
10
+ default: string;
11
+ sm: string;
12
+ xs: string;
13
+ };
14
+ orientation: {
15
+ horizontal: string;
16
+ vertical: string;
17
+ };
20
18
  }, Record<string, never>>;
21
19
  /**
22
20
  * @since 0.5.0-canary.3
@@ -29,14 +27,15 @@ type AttachmentVariants = VariantProps<typeof attachmentVariants>;
29
27
  * @since 0.5.0-canary.3
30
28
  */
31
29
  declare const attachmentMediaVariants: import("@codefast/tailwind-variants").VariantResolver<{
32
- variant: {
33
- icon: string;
34
- image: string;
35
- };
30
+ variant: {
31
+ icon: string;
32
+ image: string;
33
+ };
36
34
  }, Record<string, never>>;
37
35
  /**
38
36
  * @since 0.5.0-canary.3
39
37
  */
40
38
  type AttachmentMediaVariants = VariantProps<typeof attachmentMediaVariants>;
41
- //#endregion
42
- export { type AttachmentMediaVariants, type AttachmentVariants, attachmentMediaVariants, attachmentVariants };
39
+ export { attachmentMediaVariants, attachmentVariants };
40
+ export type { AttachmentMediaVariants, AttachmentVariants };
41
+ //# sourceMappingURL=attachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/variants/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB;;QAQlB,OAAO;QAEP,EAAE;QACF,EAAE;;;QAGF,UAAU;QACV,QAAQ;;yBAGZ,CAAC;AAEH;;GAEG;AACH,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAMlE;;;;;GAKG;AACH,QAAA,MAAM,uBAAuB;;QAOvB,IAAI;QACJ,KAAK;;yBAIT,CAAC;AAEH;;GAEG;AACH,KAAK,uBAAuB,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAM5E,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,CAAC;AACvD,YAAY,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { tv } from "#/lib/utils";
2
+ /* -----------------------------------------------------------------------------
3
+ * Variant: Attachment
4
+ * -------------------------------------------------------------------------- */
5
+ /**
6
+ * File/media attachment card. Size drives padding for the media and content
7
+ * slots; orientation switches between a horizontal row and a vertical tile.
8
+ *
9
+ * @since 0.5.0-canary.3
10
+ */
11
+ const attachmentVariants = tv({
12
+ 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",
13
+ defaultVariants: {
14
+ orientation: "horizontal",
15
+ size: "default",
16
+ },
17
+ variants: {
18
+ size: {
19
+ default: "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",
20
+ 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",
21
+ 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",
22
+ },
23
+ orientation: {
24
+ horizontal: "min-w-40 items-center",
25
+ vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30",
26
+ },
27
+ },
28
+ });
29
+ /* -----------------------------------------------------------------------------
30
+ * Variant: AttachmentMedia
31
+ * -------------------------------------------------------------------------- */
32
+ /**
33
+ * Media thumbnail — an icon tile or a cover image that reacts to attachment
34
+ * size, orientation, and upload state via the parent `group/attachment`.
35
+ *
36
+ * @since 0.5.0-canary.3
37
+ */
38
+ const attachmentMediaVariants = tv({
39
+ 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",
40
+ defaultVariants: {
41
+ variant: "icon",
42
+ },
43
+ variants: {
44
+ variant: {
45
+ icon: "",
46
+ image: "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",
47
+ },
48
+ },
49
+ });
50
+ /* -----------------------------------------------------------------------------
51
+ * Exports
52
+ * -------------------------------------------------------------------------- */
53
+ export { attachmentMediaVariants, attachmentVariants };
54
+ //# sourceMappingURL=attachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../src/variants/attachment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC5B,IAAI,EAAE,uSAAuS;IAC7S,eAAe,EAAE;QACf,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EACL,sIAAsI;YACxI,EAAE,EAAE,0IAA0I;YAC9I,EAAE,EAAE,mJAAmJ;SACxJ;QACD,WAAW,EAAE;YACX,UAAU,EAAE,uBAAuB;YACnC,QAAQ,EAAE,uDAAuD;SAClE;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF;;;;;GAKG;AACH,MAAM,uBAAuB,GAAG,EAAE,CAAC;IACjC,IAAI,EAAE,krBAAkrB;IACxrB,eAAe,EAAE;QACf,OAAO,EAAE,MAAM;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,EAAE;YACR,KAAK,EACH,oKAAoK;SACvK;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { VariantProps } from "#/lib/utils";
2
+ /**
3
+ * @since 0.3.16-canary.0
4
+ */
5
+ declare const badgeVariants: import("@codefast/tailwind-variants").VariantResolver<{
6
+ variant: {
7
+ default: string;
8
+ destructive: string;
9
+ ghost: string;
10
+ link: string;
11
+ outline: string;
12
+ secondary: string;
13
+ };
14
+ }, Record<string, never>>;
15
+ /**
16
+ * @since 0.3.16-canary.0
17
+ */
18
+ type BadgeVariants = VariantProps<typeof badgeVariants>;
19
+ export { badgeVariants };
20
+ export type { BadgeVariants };
21
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/variants/badge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,aAAa;;QAOb,OAAO;QACP,WAAW;QAEX,KAAK;QACL,IAAI;QACJ,OAAO;QACP,SAAS;;yBAGb,CAAC;AAEH;;GAEG;AACH,KAAK,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAMxD,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { tv } from "#/lib/utils";
2
+ /* -----------------------------------------------------------------------------
3
+ * Variant: Badge
4
+ * -------------------------------------------------------------------------- */
5
+ /**
6
+ * @since 0.3.16-canary.0
7
+ */
8
+ const badgeVariants = tv({
9
+ 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!",
10
+ defaultVariants: {
11
+ variant: "default",
12
+ },
13
+ variants: {
14
+ variant: {
15
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
16
+ destructive: "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",
17
+ ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
18
+ link: "text-primary underline-offset-4 hover:underline",
19
+ outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
20
+ secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
21
+ },
22
+ },
23
+ });
24
+ /* -----------------------------------------------------------------------------
25
+ * Exports
26
+ * -------------------------------------------------------------------------- */
27
+ export { badgeVariants };
28
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../src/variants/badge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,EAAE,weAAwe;IAC9e,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,4DAA4D;YACrE,WAAW,EACT,gKAAgK;YAClK,KAAK,EAAE,mEAAmE;YAC1E,IAAI,EAAE,iDAAiD;YACvD,OAAO,EAAE,kFAAkF;YAC3F,SAAS,EAAE,kEAAkE;SAC9E;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,6 +1,4 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
-
3
- //#region src/variants/bubble.d.ts
1
+ import type { VariantProps } from "#/lib/utils";
4
2
  /**
5
3
  * Chat bubble surface. Variants paint the nested `bubble-content`, so the color
6
4
  * follows the message author regardless of alignment.
@@ -8,15 +6,15 @@ import { VariantProps } from "../lib/utils.mjs";
8
6
  * @since 0.5.0-canary.3
9
7
  */
10
8
  declare const bubbleVariants: import("@codefast/tailwind-variants").VariantResolver<{
11
- variant: {
12
- default: string;
13
- secondary: string;
14
- muted: string;
15
- tinted: string;
16
- outline: string;
17
- ghost: string;
18
- destructive: string;
19
- };
9
+ variant: {
10
+ default: string;
11
+ secondary: string;
12
+ muted: string;
13
+ tinted: string;
14
+ outline: string;
15
+ ghost: string;
16
+ destructive: string;
17
+ };
20
18
  }, Record<string, never>>;
21
19
  /**
22
20
  * @since 0.5.0-canary.3
@@ -28,18 +26,19 @@ type BubbleVariants = VariantProps<typeof bubbleVariants>;
28
26
  * @since 0.5.0-canary.3
29
27
  */
30
28
  declare const bubbleReactionsVariants: import("@codefast/tailwind-variants").VariantResolver<{
31
- side: {
32
- top: string;
33
- bottom: string;
34
- };
35
- align: {
36
- start: string;
37
- end: string;
38
- };
29
+ side: {
30
+ top: string;
31
+ bottom: string;
32
+ };
33
+ align: {
34
+ start: string;
35
+ end: string;
36
+ };
39
37
  }, Record<string, never>>;
40
38
  /**
41
39
  * @since 0.5.0-canary.3
42
40
  */
43
41
  type BubbleReactionsVariants = VariantProps<typeof bubbleReactionsVariants>;
44
- //#endregion
45
- export { type BubbleReactionsVariants, type BubbleVariants, bubbleReactionsVariants, bubbleVariants };
42
+ export { bubbleReactionsVariants, bubbleVariants };
43
+ export type { BubbleReactionsVariants, BubbleVariants };
44
+ //# sourceMappingURL=bubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bubble.d.ts","sourceRoot":"","sources":["../../src/variants/bubble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;;;;GAKG;AACH,QAAA,MAAM,cAAc;;QAOd,OAAO;QAEP,SAAS;QAET,KAAK;QAEL,MAAM;QAEN,OAAO;QAEP,KAAK;QAEL,WAAW;;yBAIf,CAAC;AAEH;;GAEG;AACH,KAAK,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAM1D;;;;GAIG;AACH,QAAA,MAAM,uBAAuB;;QAQvB,GAAG;QACH,MAAM;;;QAGN,KAAK;QACL,GAAG;;yBAGP,CAAC;AAEH;;GAEG;AACH,KAAK,uBAAuB,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAM5E,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC;AACnD,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { tv } from "#/lib/utils";
2
+ /* -----------------------------------------------------------------------------
3
+ * Variant: Bubble
4
+ * -------------------------------------------------------------------------- */
5
+ /**
6
+ * Chat bubble surface. Variants paint the nested `bubble-content`, so the color
7
+ * follows the message author regardless of alignment.
8
+ *
9
+ * @since 0.5.0-canary.3
10
+ */
11
+ const bubbleVariants = tv({
12
+ 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",
13
+ defaultVariants: {
14
+ variant: "default",
15
+ },
16
+ variants: {
17
+ variant: {
18
+ default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
19
+ secondary: "*: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%)]",
20
+ muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
21
+ tinted: "*: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)]",
22
+ outline: "*: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",
23
+ ghost: "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",
24
+ destructive: "*: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",
25
+ },
26
+ },
27
+ });
28
+ /* -----------------------------------------------------------------------------
29
+ * Variant: BubbleReactions
30
+ * -------------------------------------------------------------------------- */
31
+ /**
32
+ * Reaction pill anchored to a bubble corner.
33
+ *
34
+ * @since 0.5.0-canary.3
35
+ */
36
+ const bubbleReactionsVariants = tv({
37
+ 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",
38
+ defaultVariants: {
39
+ align: "end",
40
+ side: "bottom",
41
+ },
42
+ variants: {
43
+ side: {
44
+ top: "top-0 -translate-y-3/4",
45
+ bottom: "bottom-0 translate-y-3/4",
46
+ },
47
+ align: {
48
+ start: "start-3",
49
+ end: "end-3",
50
+ },
51
+ },
52
+ });
53
+ /* -----------------------------------------------------------------------------
54
+ * Exports
55
+ * -------------------------------------------------------------------------- */
56
+ export { bubbleReactionsVariants, bubbleVariants };
57
+ //# sourceMappingURL=bubble.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bubble.js","sourceRoot":"","sources":["../../src/variants/bubble.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;;;;GAKG;AACH,MAAM,cAAc,GAAG,EAAE,CAAC;IACxB,IAAI,EAAE,uKAAuK;IAC7K,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,8JAA8J;YAChK,SAAS,EACP,mNAAmN;YACrN,KAAK,EACH,oJAAoJ;YACtJ,MAAM,EACJ,iaAAia;YACna,OAAO,EACL,uRAAuR;YACzR,KAAK,EACH,oUAAoU;YACtU,WAAW,EACT,+RAA+R;SAClS;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,EAAE,CAAC;IACjC,IAAI,EAAE,mJAAmJ;IACzJ,eAAe,EAAE;QACf,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,QAAQ;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,GAAG,EAAE,wBAAwB;YAC7B,MAAM,EAAE,0BAA0B;SACnC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,OAAO;SACb;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC"}
@@ -1,18 +1,17 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
-
3
- //#region src/variants/button-group.d.ts
1
+ import type { VariantProps } from "#/lib/utils";
4
2
  /**
5
3
  * @since 0.3.16-canary.0
6
4
  */
7
5
  declare const buttonGroupVariants: import("@codefast/tailwind-variants").VariantResolver<{
8
- orientation: {
9
- horizontal: string;
10
- vertical: string;
11
- };
6
+ orientation: {
7
+ horizontal: string;
8
+ vertical: string;
9
+ };
12
10
  }, Record<string, never>>;
13
11
  /**
14
12
  * @since 0.3.16-canary.0
15
13
  */
16
14
  type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;
17
- //#endregion
18
- export { type ButtonGroupVariants, buttonGroupVariants };
15
+ export { buttonGroupVariants };
16
+ export type { ButtonGroupVariants };
17
+ //# sourceMappingURL=button-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../src/variants/button-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,mBAAmB;;QAOnB,UAAU;QAEV,QAAQ;;yBAIZ,CAAC;AAEH;;GAEG;AACH,KAAK,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMpE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { tv } from "#/lib/utils";
2
+ /* -----------------------------------------------------------------------------
3
+ * Variant: ButtonGroup
4
+ * -------------------------------------------------------------------------- */
5
+ /**
6
+ * @since 0.3.16-canary.0
7
+ */
8
+ const buttonGroupVariants = tv({
9
+ base: "group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
10
+ defaultVariants: {
11
+ orientation: "horizontal",
12
+ },
13
+ variants: {
14
+ orientation: {
15
+ horizontal: "[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!",
16
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!",
17
+ },
18
+ },
19
+ });
20
+ /* -----------------------------------------------------------------------------
21
+ * Exports
22
+ * -------------------------------------------------------------------------- */
23
+ export { buttonGroupVariants };
24
+ //# sourceMappingURL=button-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.js","sourceRoot":"","sources":["../../src/variants/button-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,mBAAmB,GAAG,EAAE,CAAC;IAC7B,IAAI,EAAE,6SAA6S;IACnT,eAAe,EAAE;QACf,WAAW,EAAE,YAAY;KAC1B;IACD,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,UAAU,EACR,uKAAuK;YACzK,QAAQ,EACN,gLAAgL;SACnL;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}