@gv-tech/ui-web 2.28.0 → 2.29.1

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 (603) hide show
  1. package/dist/__contracts.d.ts +44 -2
  2. package/dist/__contracts.d.ts.map +1 -1
  3. package/dist/accordion-D5QXSsCK.mjs +248 -0
  4. package/dist/accordion-DjyDOX-h.js +1 -0
  5. package/dist/accordion.cjs +1 -1
  6. package/dist/accordion.d.ts +5 -5
  7. package/dist/accordion.d.ts.map +1 -1
  8. package/dist/accordion.mjs +1 -1
  9. package/dist/alert-dialog-B-a0Wa1M.mjs +182 -0
  10. package/dist/alert-dialog-DYQAhGBC.js +1 -0
  11. package/dist/alert-dialog.cjs +1 -1
  12. package/dist/alert-dialog.d.ts +13 -13
  13. package/dist/alert-dialog.d.ts.map +1 -1
  14. package/dist/alert-dialog.mjs +1 -1
  15. package/dist/alert.cjs +1 -1
  16. package/dist/alert.d.ts +5 -5
  17. package/dist/alert.d.ts.map +1 -1
  18. package/dist/alert.mjs +4 -4
  19. package/dist/aspect-ratio-C-KOOyGP.js +1 -0
  20. package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-s7Ji1MSr.mjs} +10 -9
  21. package/dist/aspect-ratio.cjs +1 -1
  22. package/dist/aspect-ratio.d.ts +2 -2
  23. package/dist/aspect-ratio.d.ts.map +1 -1
  24. package/dist/aspect-ratio.mjs +1 -1
  25. package/dist/attachment.cjs +1 -0
  26. package/dist/attachment.d.ts +23 -0
  27. package/dist/attachment.d.ts.map +1 -0
  28. package/dist/attachment.mjs +101 -0
  29. package/dist/attachment.test.d.ts +2 -0
  30. package/dist/attachment.test.d.ts.map +1 -0
  31. package/dist/avatar-4K3XjhP8.js +1 -0
  32. package/dist/avatar-d8Di248f.mjs +138 -0
  33. package/dist/avatar.cjs +1 -1
  34. package/dist/avatar.d.ts +7 -7
  35. package/dist/avatar.d.ts.map +1 -1
  36. package/dist/avatar.mjs +1 -1
  37. package/dist/badge.cjs +1 -1
  38. package/dist/badge.d.ts +2 -2
  39. package/dist/badge.d.ts.map +1 -1
  40. package/dist/badge.mjs +2 -2
  41. package/dist/breadcrumb.cjs +1 -1
  42. package/dist/breadcrumb.d.ts +7 -7
  43. package/dist/breadcrumb.d.ts.map +1 -1
  44. package/dist/breadcrumb.mjs +25 -27
  45. package/dist/bubble.cjs +1 -0
  46. package/dist/bubble.d.ts +13 -0
  47. package/dist/bubble.d.ts.map +1 -0
  48. package/dist/bubble.mjs +72 -0
  49. package/dist/bubble.test.d.ts +2 -0
  50. package/dist/bubble.test.d.ts.map +1 -0
  51. package/dist/button-group.cjs +1 -1
  52. package/dist/button-group.d.ts +4 -4
  53. package/dist/button-group.d.ts.map +1 -1
  54. package/dist/button-group.mjs +7 -8
  55. package/dist/button.cjs +1 -1
  56. package/dist/button.d.ts +2 -2
  57. package/dist/button.d.ts.map +1 -1
  58. package/dist/button.mjs +7 -7
  59. package/dist/calendar-DFj14O6r.js +1 -0
  60. package/dist/{calendar-Dg6VGycy.mjs → calendar-UW8h9dfh.mjs} +870 -842
  61. package/dist/calendar.cjs +1 -1
  62. package/dist/calendar.d.ts +3 -3
  63. package/dist/calendar.d.ts.map +1 -1
  64. package/dist/calendar.mjs +1 -1
  65. package/dist/card.cjs +1 -1
  66. package/dist/card.d.ts +7 -7
  67. package/dist/card.d.ts.map +1 -1
  68. package/dist/card.mjs +5 -5
  69. package/dist/carousel-CNGpg5df.js +1 -0
  70. package/dist/{carousel-DbDoNdqJ.mjs → carousel-DG9xGJns.mjs} +53 -55
  71. package/dist/carousel.cjs +1 -1
  72. package/dist/carousel.d.ts +6 -6
  73. package/dist/carousel.d.ts.map +1 -1
  74. package/dist/carousel.mjs +1 -1
  75. package/dist/chart.cjs +1 -1
  76. package/dist/chart.d.ts +4 -4
  77. package/dist/chart.d.ts.map +1 -1
  78. package/dist/chart.mjs +1 -1
  79. package/dist/checkbox-BCgbTAdU.js +1 -0
  80. package/dist/checkbox-Dq8VHKDH.mjs +186 -0
  81. package/dist/checkbox.cjs +1 -1
  82. package/dist/checkbox.d.ts +2 -2
  83. package/dist/checkbox.d.ts.map +1 -1
  84. package/dist/checkbox.mjs +1 -1
  85. package/dist/chunk-HBS6WEDP-CQNaACTf.js +1 -0
  86. package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +63 -0
  87. package/dist/collapsible.cjs +1 -1
  88. package/dist/collapsible.d.ts +4 -4
  89. package/dist/collapsible.d.ts.map +1 -1
  90. package/dist/collapsible.mjs +7 -7
  91. package/dist/combobox-CpPIGtPJ.js +4 -0
  92. package/dist/combobox-b4OmCNw1.mjs +5887 -0
  93. package/dist/combobox.cjs +1 -1
  94. package/dist/combobox.d.ts +14 -14
  95. package/dist/combobox.d.ts.map +1 -1
  96. package/dist/combobox.mjs +1 -1
  97. package/dist/command-5hobOyGG.mjs +545 -0
  98. package/dist/command-Dbqnm9kI.js +1 -0
  99. package/dist/command.cjs +1 -1
  100. package/dist/command.d.ts +10 -10
  101. package/dist/command.d.ts.map +1 -1
  102. package/dist/command.mjs +1 -1
  103. package/dist/context-menu-DyTUismw.js +1 -0
  104. package/dist/context-menu-DzzU-_v8.mjs +317 -0
  105. package/dist/context-menu.cjs +1 -1
  106. package/dist/context-menu.d.ts +16 -16
  107. package/dist/context-menu.d.ts.map +1 -1
  108. package/dist/context-menu.mjs +1 -1
  109. package/dist/dialog.cjs +1 -1
  110. package/dist/dialog.d.ts +11 -11
  111. package/dist/dialog.d.ts.map +1 -1
  112. package/dist/dialog.mjs +25 -25
  113. package/dist/direction.cjs +1 -1
  114. package/dist/direction.d.ts +2 -2
  115. package/dist/direction.d.ts.map +1 -1
  116. package/dist/direction.mjs +1 -1
  117. package/dist/dist-1zUKVGvf.js +1 -0
  118. package/dist/dist-B057I8ju.mjs +30 -0
  119. package/dist/dist-BB78QQyQ.mjs +41 -0
  120. package/dist/dist-BBvidwzC.js +1 -0
  121. package/dist/{dist-Cacc4QIh.mjs → dist-BEbV0Hal.mjs} +9 -5
  122. package/dist/dist-BPL7gUpg.mjs +18 -0
  123. package/dist/dist-BTUvBzOm.js +1 -0
  124. package/dist/dist-BU-TFzJf.js +1 -0
  125. package/dist/dist-Bb5W_J2F.mjs +39 -0
  126. package/dist/dist-BbI6NHqR.mjs +23 -0
  127. package/dist/dist-BexAB6yo.mjs +192 -0
  128. package/dist/dist-BgXIqHHq.js +1 -0
  129. package/dist/dist-Bvfb4y_L.mjs +100 -0
  130. package/dist/dist-C8Pm6LRc.js +1 -0
  131. package/dist/dist-CPAF050o.mjs +90 -0
  132. package/dist/dist-CS572Be42.mjs +11 -0
  133. package/dist/dist-CUvxOuXM.mjs +551 -0
  134. package/dist/dist-C_iFkwIX.js +1 -0
  135. package/dist/dist-ClYM7l1t.js +1 -0
  136. package/dist/dist-CpKLY_uZ.mjs +96 -0
  137. package/dist/dist-D1qkELLT.js +1 -0
  138. package/dist/dist-D7-Fky36.js +1 -0
  139. package/dist/dist-DEpkkABT.js +1 -0
  140. package/dist/dist-DI1vapnL.mjs +20 -0
  141. package/dist/dist-DJqkhIXb2.js +1 -0
  142. package/dist/dist-DKXojpVG.js +1 -0
  143. package/dist/dist-DYUvPCPC.js +1 -0
  144. package/dist/dist-DZiOPWLp.js +1 -0
  145. package/dist/dist-DatgTWLz.mjs +202 -0
  146. package/dist/dist-Dm3IQk5b.mjs +685 -0
  147. package/dist/dist-DoivLw3t.js +1 -0
  148. package/dist/dist-Dq-h6VAy.mjs +118 -0
  149. package/dist/dist-Dt6m-kwU.mjs +221 -0
  150. package/dist/dist-E8ieJTBC.mjs +190 -0
  151. package/dist/{dist-C9PlF532.mjs → dist-GazS1kfR.mjs} +1 -1
  152. package/dist/dist-N97cIp0_.js +1 -0
  153. package/dist/dist-OqDzLHTa.mjs +460 -0
  154. package/dist/dist-Qm9hFvM1.js +1 -0
  155. package/dist/dist-UkWa-Arh.mjs +16 -0
  156. package/dist/dist-UnTrOmPV.js +1 -0
  157. package/dist/dist-YAADIsyo.js +1 -0
  158. package/dist/dist-Zs2sjYhL.js +1 -0
  159. package/dist/dist-hFLuJoMi.js +1 -0
  160. package/dist/dist-s7ibhASj.mjs +181 -0
  161. package/dist/dist-vu20fMUK.mjs +93 -0
  162. package/dist/drawer.cjs +1 -1
  163. package/dist/drawer.d.ts +11 -11
  164. package/dist/drawer.d.ts.map +1 -1
  165. package/dist/drawer.mjs +2 -2
  166. package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BqAhn64y.mjs} +109 -143
  167. package/dist/dropdown-menu-BtKOr--r.js +1 -0
  168. package/dist/dropdown-menu.cjs +1 -1
  169. package/dist/dropdown-menu.d.ts +16 -16
  170. package/dist/dropdown-menu.d.ts.map +1 -1
  171. package/dist/dropdown-menu.mjs +1 -1
  172. package/dist/empty.cjs +1 -1
  173. package/dist/empty.d.ts +7 -7
  174. package/dist/empty.d.ts.map +1 -1
  175. package/dist/empty.mjs +2 -2
  176. package/dist/es2015-DbAsWDbs.js +41 -0
  177. package/dist/es2015-DbsmTzuc.mjs +571 -0
  178. package/dist/field.cjs +1 -1
  179. package/dist/field.d.ts +12 -12
  180. package/dist/field.d.ts.map +1 -1
  181. package/dist/field.mjs +6 -7
  182. package/dist/floating-ui.react-dom-BwFRxNGc.js +1 -0
  183. package/dist/{floating-ui.react-dom-DgS_bqyY.mjs → floating-ui.react-dom-CyupHsR6.mjs} +249 -276
  184. package/dist/form.cjs +1 -1
  185. package/dist/form.d.ts +8 -6
  186. package/dist/form.d.ts.map +1 -1
  187. package/dist/form.mjs +8 -8
  188. package/dist/hover-card-DMsxpR9G.mjs +178 -0
  189. package/dist/hover-card-DWXusgiI.js +1 -0
  190. package/dist/hover-card.cjs +1 -1
  191. package/dist/hover-card.d.ts +4 -4
  192. package/dist/hover-card.d.ts.map +1 -1
  193. package/dist/hover-card.mjs +1 -1
  194. package/dist/index.cjs +1 -1
  195. package/dist/index.d.ts +6 -0
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.mjs +40 -34
  198. package/dist/input-group.cjs +1 -1
  199. package/dist/input-group.d.ts +7 -7
  200. package/dist/input-group.d.ts.map +1 -1
  201. package/dist/input-group.mjs +6 -11
  202. package/dist/input-otp-D49Y9VcH.mjs +409 -0
  203. package/dist/input-otp-u3obpt-Q.js +20 -0
  204. package/dist/input-otp.cjs +1 -1
  205. package/dist/input-otp.d.ts +5 -5
  206. package/dist/input-otp.d.ts.map +1 -1
  207. package/dist/input-otp.mjs +1 -1
  208. package/dist/input.cjs +1 -1
  209. package/dist/input.d.ts +1 -1
  210. package/dist/input.d.ts.map +1 -1
  211. package/dist/input.mjs +1 -1
  212. package/dist/item.cjs +1 -1
  213. package/dist/item.d.ts +11 -11
  214. package/dist/item.d.ts.map +1 -1
  215. package/dist/item.mjs +7 -8
  216. package/dist/kbd.cjs +1 -1
  217. package/dist/kbd.d.ts +2 -2
  218. package/dist/kbd.d.ts.map +1 -1
  219. package/dist/kbd.mjs +2 -2
  220. package/dist/label-Dacwh21G.js +1 -0
  221. package/dist/label-DsSICLPc.mjs +28 -0
  222. package/dist/label.cjs +1 -1
  223. package/dist/label.d.ts +2 -2
  224. package/dist/label.d.ts.map +1 -1
  225. package/dist/label.mjs +1 -1
  226. package/dist/marker.cjs +1 -0
  227. package/dist/marker.d.ts +12 -0
  228. package/dist/marker.d.ts.map +1 -0
  229. package/dist/marker.mjs +40 -0
  230. package/dist/marker.test.d.ts +2 -0
  231. package/dist/marker.test.d.ts.map +1 -0
  232. package/dist/menubar-BYNeRuzx.js +1 -0
  233. package/dist/{menubar-BcyqIJgy.mjs → menubar-DZqEj6S1.mjs} +138 -172
  234. package/dist/menubar.cjs +1 -1
  235. package/dist/menubar.d.ts +17 -17
  236. package/dist/menubar.d.ts.map +1 -1
  237. package/dist/menubar.mjs +1 -1
  238. package/dist/message-scroller-CS4t7Ypn.mjs +824 -0
  239. package/dist/message-scroller-DqLu0YI6.js +1 -0
  240. package/dist/message-scroller.cjs +1 -0
  241. package/dist/message-scroller.d.ts +13 -0
  242. package/dist/message-scroller.d.ts.map +1 -0
  243. package/dist/message-scroller.mjs +3 -0
  244. package/dist/message-scroller.test.d.ts +2 -0
  245. package/dist/message-scroller.test.d.ts.map +1 -0
  246. package/dist/message.cjs +1 -0
  247. package/dist/message.d.ts +11 -0
  248. package/dist/message.d.ts.map +1 -0
  249. package/dist/message.mjs +50 -0
  250. package/dist/message.test.d.ts +2 -0
  251. package/dist/message.test.d.ts.map +1 -0
  252. package/dist/native-select.cjs +1 -1
  253. package/dist/native-select.d.ts +3 -3
  254. package/dist/native-select.d.ts.map +1 -1
  255. package/dist/native-select.mjs +12 -12
  256. package/dist/navigation-menu-B36G3O83.js +1 -0
  257. package/dist/navigation-menu-RO6thDOF.mjs +636 -0
  258. package/dist/navigation-menu.cjs +1 -1
  259. package/dist/navigation-menu.d.ts +9 -9
  260. package/dist/navigation-menu.d.ts.map +1 -1
  261. package/dist/navigation-menu.mjs +1 -1
  262. package/dist/pagination.cjs +1 -1
  263. package/dist/pagination.d.ts +8 -8
  264. package/dist/pagination.d.ts.map +1 -1
  265. package/dist/pagination.mjs +42 -35
  266. package/dist/popover-DSBkc70V.mjs +243 -0
  267. package/dist/popover-DUHbvKB8.js +1 -0
  268. package/dist/popover.cjs +1 -1
  269. package/dist/popover.d.ts +8 -8
  270. package/dist/popover.d.ts.map +1 -1
  271. package/dist/popover.mjs +1 -1
  272. package/dist/progress-B9z08UXf.js +6 -0
  273. package/dist/progress-CQ4nQ85t.mjs +92 -0
  274. package/dist/progress.cjs +1 -1
  275. package/dist/progress.d.ts +2 -2
  276. package/dist/progress.d.ts.map +1 -1
  277. package/dist/progress.mjs +1 -1
  278. package/dist/questionnaire-CVED7G7R.mjs +1159 -0
  279. package/dist/questionnaire-PWClWvST.js +1 -0
  280. package/dist/questionnaire.cjs +1 -0
  281. package/dist/questionnaire.d.ts +22 -0
  282. package/dist/questionnaire.d.ts.map +1 -0
  283. package/dist/questionnaire.mjs +4 -0
  284. package/dist/questionnaire.test.d.ts +2 -0
  285. package/dist/questionnaire.test.d.ts.map +1 -0
  286. package/dist/radio-group-Bd3WbH5I.js +1 -0
  287. package/dist/radio-group-TRiAhMZB.mjs +266 -0
  288. package/dist/radio-group.cjs +1 -1
  289. package/dist/radio-group.d.ts +2 -2
  290. package/dist/radio-group.d.ts.map +1 -1
  291. package/dist/radio-group.mjs +1 -1
  292. package/dist/resizable-Cq60hEWB.js +1 -0
  293. package/dist/resizable-Qc8cVUKd.mjs +2857 -0
  294. package/dist/resizable.cjs +1 -1
  295. package/dist/resizable.d.ts +3 -3
  296. package/dist/resizable.d.ts.map +1 -1
  297. package/dist/resizable.mjs +1 -1
  298. package/dist/scroll-area-D6MiNHnJ.mjs +564 -0
  299. package/dist/scroll-area-DFUdJeSZ.js +1 -0
  300. package/dist/scroll-area.cjs +1 -1
  301. package/dist/scroll-area.d.ts +3 -3
  302. package/dist/scroll-area.d.ts.map +1 -1
  303. package/dist/scroll-area.mjs +1 -1
  304. package/dist/scroll-to-top.cjs +1 -1
  305. package/dist/scroll-to-top.d.ts +1 -1
  306. package/dist/scroll-to-top.d.ts.map +1 -1
  307. package/dist/scroll-to-top.mjs +18 -16
  308. package/dist/search.cjs +1 -1
  309. package/dist/search.d.ts +1 -1
  310. package/dist/search.d.ts.map +1 -1
  311. package/dist/search.mjs +17 -17
  312. package/dist/select-BFJUmjvX.mjs +830 -0
  313. package/dist/select-iQFoKU1s.js +1 -0
  314. package/dist/select.cjs +1 -1
  315. package/dist/select.d.ts +11 -11
  316. package/dist/select.d.ts.map +1 -1
  317. package/dist/select.mjs +1 -1
  318. package/dist/separator-2kr96SyF.mjs +40 -0
  319. package/dist/separator-Bo49G2aj.js +1 -0
  320. package/dist/separator.cjs +1 -1
  321. package/dist/separator.d.ts +2 -2
  322. package/dist/separator.d.ts.map +1 -1
  323. package/dist/separator.mjs +1 -1
  324. package/dist/sheet.cjs +1 -1
  325. package/dist/sheet.d.ts +9 -9
  326. package/dist/sheet.d.ts.map +1 -1
  327. package/dist/sheet.mjs +23 -23
  328. package/dist/sidebar-C6O8hLkz.js +1 -0
  329. package/dist/{sidebar-B-sWccYh.mjs → sidebar-DM9ee9wf.mjs} +66 -66
  330. package/dist/sidebar.cjs +1 -1
  331. package/dist/sidebar.d.ts +24 -24
  332. package/dist/sidebar.d.ts.map +1 -1
  333. package/dist/sidebar.mjs +1 -1
  334. package/dist/skeleton.cjs +1 -1
  335. package/dist/skeleton.d.ts +1 -1
  336. package/dist/skeleton.d.ts.map +1 -1
  337. package/dist/skeleton.mjs +1 -1
  338. package/dist/slider-CagVxozY.js +1 -0
  339. package/dist/slider-CdTCoQu1.mjs +485 -0
  340. package/dist/slider.cjs +1 -1
  341. package/dist/slider.d.ts +2 -2
  342. package/dist/slider.d.ts.map +1 -1
  343. package/dist/slider.mjs +1 -1
  344. package/dist/sonner.cjs +1 -1
  345. package/dist/sonner.d.ts +2 -4
  346. package/dist/sonner.d.ts.map +1 -1
  347. package/dist/sonner.mjs +8 -8
  348. package/dist/spinner.cjs +1 -1
  349. package/dist/spinner.d.ts +2 -1
  350. package/dist/spinner.d.ts.map +1 -1
  351. package/dist/spinner.mjs +12 -7
  352. package/dist/support-fab.cjs +1 -1
  353. package/dist/support-fab.d.ts +1 -1
  354. package/dist/support-fab.d.ts.map +1 -1
  355. package/dist/support-fab.mjs +22 -22
  356. package/dist/switch-CoeAC1Wk.js +1 -0
  357. package/dist/switch-zUBdj7jK.mjs +174 -0
  358. package/dist/switch.cjs +1 -1
  359. package/dist/switch.d.ts +2 -2
  360. package/dist/switch.d.ts.map +1 -1
  361. package/dist/switch.mjs +1 -1
  362. package/dist/table-of-contents.cjs +1 -1
  363. package/dist/table-of-contents.d.ts +9 -13
  364. package/dist/table-of-contents.d.ts.map +1 -1
  365. package/dist/table-of-contents.mjs +3 -2
  366. package/dist/table.cjs +1 -1
  367. package/dist/table.d.ts +8 -8
  368. package/dist/table.d.ts.map +1 -1
  369. package/dist/table.mjs +1 -1
  370. package/dist/tabs-DaE9pEbo.mjs +160 -0
  371. package/dist/tabs-TMhXe20x.js +1 -0
  372. package/dist/tabs.cjs +1 -1
  373. package/dist/tabs.d.ts +5 -5
  374. package/dist/tabs.d.ts.map +1 -1
  375. package/dist/tabs.mjs +1 -1
  376. package/dist/text.cjs +1 -1
  377. package/dist/text.d.ts +1 -1
  378. package/dist/text.d.ts.map +1 -1
  379. package/dist/text.mjs +3 -3
  380. package/dist/textarea.cjs +1 -1
  381. package/dist/textarea.d.ts +1 -1
  382. package/dist/textarea.d.ts.map +1 -1
  383. package/dist/textarea.mjs +1 -1
  384. package/dist/theme-provider.d.ts +1 -1
  385. package/dist/theme-provider.d.ts.map +1 -1
  386. package/dist/theme-toggle-3RStptYf.mjs +73 -0
  387. package/dist/theme-toggle-DKh8WFLT.js +1 -0
  388. package/dist/theme-toggle.cjs +1 -1
  389. package/dist/theme-toggle.d.ts +1 -1
  390. package/dist/theme-toggle.d.ts.map +1 -1
  391. package/dist/theme-toggle.mjs +1 -1
  392. package/dist/toast-B0S3F09s.js +1 -0
  393. package/dist/toast-D0Yb-K84.mjs +445 -0
  394. package/dist/toast.cjs +1 -1
  395. package/dist/toast.d.ts +1 -1
  396. package/dist/toast.d.ts.map +1 -1
  397. package/dist/toast.mjs +1 -1
  398. package/dist/{toaster-DfDb2-aI.js → toaster-CX9im8R_.js} +1 -1
  399. package/dist/{toaster-Czhz-ktg.mjs → toaster-gT2b7mfE.mjs} +1 -1
  400. package/dist/toaster.cjs +1 -1
  401. package/dist/toaster.d.ts +1 -1
  402. package/dist/toaster.d.ts.map +1 -1
  403. package/dist/toaster.mjs +1 -1
  404. package/dist/toggle-B0hXPsi7.js +1 -0
  405. package/dist/toggle-BAeKd2N0.mjs +59 -0
  406. package/dist/toggle-group-CEKhUozD.mjs +167 -0
  407. package/dist/toggle-group-htyug3G7.js +1 -0
  408. package/dist/toggle-group.cjs +1 -1
  409. package/dist/toggle-group.d.ts +3 -3
  410. package/dist/toggle-group.d.ts.map +1 -1
  411. package/dist/toggle-group.mjs +1 -1
  412. package/dist/toggle.cjs +1 -1
  413. package/dist/toggle.d.ts +2 -2
  414. package/dist/toggle.d.ts.map +1 -1
  415. package/dist/toggle.mjs +1 -1
  416. package/dist/tooltip-BZazhXDZ.js +1 -0
  417. package/dist/tooltip-R_nK_Qh5.mjs +390 -0
  418. package/dist/tooltip.cjs +1 -1
  419. package/dist/tooltip.d.ts +5 -5
  420. package/dist/tooltip.d.ts.map +1 -1
  421. package/dist/tooltip.mjs +1 -1
  422. package/package.json +18 -16
  423. package/src/__contracts.ts +438 -278
  424. package/src/accordion.tsx +4 -6
  425. package/src/alert-dialog.tsx +6 -7
  426. package/src/alert.tsx +5 -7
  427. package/src/aspect-ratio.tsx +1 -2
  428. package/src/attachment.tsx +202 -0
  429. package/src/avatar.tsx +1 -2
  430. package/src/badge.tsx +2 -3
  431. package/src/breadcrumb.tsx +4 -8
  432. package/src/bubble.tsx +115 -0
  433. package/src/button-group.tsx +7 -8
  434. package/src/button.tsx +7 -9
  435. package/src/calendar.tsx +14 -14
  436. package/src/card.tsx +6 -7
  437. package/src/carousel.tsx +16 -17
  438. package/src/chart.tsx +1 -4
  439. package/src/checkbox.tsx +4 -6
  440. package/src/collapsible.tsx +1 -2
  441. package/src/combobox.tsx +8 -8
  442. package/src/command.tsx +8 -9
  443. package/src/context-menu.tsx +10 -12
  444. package/src/dialog.tsx +6 -7
  445. package/src/direction.tsx +1 -2
  446. package/src/drawer.tsx +3 -5
  447. package/src/dropdown-menu.tsx +10 -12
  448. package/src/empty.tsx +3 -5
  449. package/src/field.tsx +10 -11
  450. package/src/form.tsx +8 -8
  451. package/src/hooks/use-mobile.ts +1 -1
  452. package/src/hover-card.tsx +3 -5
  453. package/src/index.ts +54 -0
  454. package/src/input-group.tsx +14 -22
  455. package/src/input-otp.tsx +5 -6
  456. package/src/input.tsx +2 -4
  457. package/src/item.tsx +11 -12
  458. package/src/kbd.tsx +2 -2
  459. package/src/label.tsx +2 -4
  460. package/src/marker.tsx +61 -0
  461. package/src/menubar.tsx +11 -13
  462. package/src/message-scroller.tsx +133 -0
  463. package/src/message.tsx +85 -0
  464. package/src/native-select.tsx +2 -3
  465. package/src/navigation-menu.tsx +8 -10
  466. package/src/pagination.tsx +11 -10
  467. package/src/popover.tsx +3 -5
  468. package/src/progress.tsx +2 -4
  469. package/src/questionnaire.tsx +333 -0
  470. package/src/radio-group.tsx +2 -3
  471. package/src/resizable.tsx +1 -4
  472. package/src/scroll-area.tsx +3 -5
  473. package/src/scroll-to-top.tsx +7 -2
  474. package/src/search.tsx +2 -1
  475. package/src/select.tsx +8 -10
  476. package/src/separator.tsx +4 -6
  477. package/src/setupTests.ts +9 -9
  478. package/src/sheet.tsx +6 -7
  479. package/src/sidebar.tsx +17 -17
  480. package/src/skeleton.tsx +1 -2
  481. package/src/slider.tsx +5 -7
  482. package/src/sonner.tsx +0 -5
  483. package/src/spinner.tsx +14 -5
  484. package/src/support-fab.tsx +5 -1
  485. package/src/switch.tsx +4 -6
  486. package/src/table-of-contents.tsx +15 -13
  487. package/src/table.tsx +2 -4
  488. package/src/tabs.tsx +9 -11
  489. package/src/text.tsx +4 -4
  490. package/src/textarea.tsx +2 -4
  491. package/src/theme-provider.tsx +1 -1
  492. package/src/theme-toggle.tsx +26 -23
  493. package/src/toast.tsx +3 -4
  494. package/src/toaster.tsx +2 -1
  495. package/src/toggle-group.tsx +5 -6
  496. package/src/toggle.tsx +5 -7
  497. package/src/tooltip.tsx +3 -5
  498. package/dist/accordion-Dd8Hrexd.mjs +0 -244
  499. package/dist/accordion-DdSOiVyo.js +0 -1
  500. package/dist/alert-dialog-B7zX3gJX.js +0 -7
  501. package/dist/alert-dialog-BQoG5g_w.mjs +0 -213
  502. package/dist/aspect-ratio-QD1ZXP2B.js +0 -1
  503. package/dist/avatar-C4onD8-4.mjs +0 -127
  504. package/dist/avatar-ki_M47qG.js +0 -1
  505. package/dist/calendar-D9sapvfY.js +0 -1
  506. package/dist/carousel-6oFHLN7R.js +0 -1
  507. package/dist/checkbox-BLgY82mB.js +0 -1
  508. package/dist/checkbox-Bts_zfqd.mjs +0 -173
  509. package/dist/combobox-6qNx9Wbb.js +0 -4
  510. package/dist/combobox-yDMqxM_J.mjs +0 -5522
  511. package/dist/command-C6wJ5giF.mjs +0 -576
  512. package/dist/command-DCrPL1iW.js +0 -1
  513. package/dist/context-menu-CydUpD4W.mjs +0 -349
  514. package/dist/context-menu-DQ7XuuG5.js +0 -1
  515. package/dist/dist-1C8JOpVg.js +0 -1
  516. package/dist/dist-B1OcuinL.mjs +0 -558
  517. package/dist/dist-BGZDG175.mjs +0 -199
  518. package/dist/dist-BPBwSSyk.mjs +0 -8
  519. package/dist/dist-BPX1UGAz2.js +0 -1
  520. package/dist/dist-BRsDdVlJ.js +0 -1
  521. package/dist/dist-BWwCr-xN.mjs +0 -118
  522. package/dist/dist-BYdcKuDi.mjs +0 -16
  523. package/dist/dist-BlB11V_z.mjs +0 -27
  524. package/dist/dist-Bm8Cuttq.mjs +0 -76
  525. package/dist/dist-Byhx2fDJ.js +0 -1
  526. package/dist/dist-CCXBcfM3.js +0 -1
  527. package/dist/dist-CCokLFyA.mjs +0 -10
  528. package/dist/dist-CDU9vno-.mjs +0 -18
  529. package/dist/dist-CEJNUZGZ.js +0 -1
  530. package/dist/dist-CJolxugc.js +0 -1
  531. package/dist/dist-CQhWBhaI.mjs +0 -91
  532. package/dist/dist-CRLbUj9C.js +0 -1
  533. package/dist/dist-CSkpam6a.js +0 -1
  534. package/dist/dist-CWElW7UD.js +0 -1
  535. package/dist/dist-CXbzwSnE.js +0 -1
  536. package/dist/dist-CYj6O95k.mjs +0 -220
  537. package/dist/dist-C_45sBzc2.js +0 -1
  538. package/dist/dist-Cb7OVHcJ.js +0 -1
  539. package/dist/dist-Ccv5O-Vw.js +0 -1
  540. package/dist/dist-ChuP-5Gb.js +0 -1
  541. package/dist/dist-CiM892Rg.js +0 -1
  542. package/dist/dist-CuMQq0hV.js +0 -1
  543. package/dist/dist-DGzGsPqo2.mjs +0 -6
  544. package/dist/dist-DMnXk8Uo.js +0 -1
  545. package/dist/dist-DPBTfUqI.mjs +0 -96
  546. package/dist/dist-DR0lXVFG.js +0 -1
  547. package/dist/dist-Da7BU5sd.js +0 -5
  548. package/dist/dist-Df2ez-DA.mjs +0 -12
  549. package/dist/dist-DuTFGM_g.mjs +0 -45
  550. package/dist/dist-DynSBUGq.js +0 -1
  551. package/dist/dist-Dz3LbuDd.mjs +0 -60
  552. package/dist/dist-GhACpuJb2.mjs +0 -73
  553. package/dist/dist-N3JLy7yk.mjs +0 -29
  554. package/dist/dist-o4zlRoDG.js +0 -1
  555. package/dist/dist-rGeQfsgN.mjs +0 -66
  556. package/dist/dist-tvb2Wafb.mjs +0 -153
  557. package/dist/dist-xgVOvcNx.mjs +0 -11
  558. package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
  559. package/dist/es2015-BhmbVcui.mjs +0 -701
  560. package/dist/es2015-D22cM8Q_.js +0 -41
  561. package/dist/floating-ui.react-dom-DpCJEf_x.js +0 -1
  562. package/dist/hover-card-CJ-ibpbC.mjs +0 -187
  563. package/dist/hover-card-CK5SjVLL.js +0 -1
  564. package/dist/input-otp-BH_9dVhh.mjs +0 -391
  565. package/dist/input-otp-BibboKMt.js +0 -20
  566. package/dist/label-BXMSoyyu.js +0 -1
  567. package/dist/label-C8GNfPU0.mjs +0 -25
  568. package/dist/menubar-DPxokWFI.js +0 -1
  569. package/dist/navigation-menu-2yE2MUu-.js +0 -1
  570. package/dist/navigation-menu-N8gkxEXE.mjs +0 -628
  571. package/dist/popover-D1AO-E8p.js +0 -1
  572. package/dist/popover-wQACF3ut.mjs +0 -245
  573. package/dist/progress-DPWSEWa5.mjs +0 -86
  574. package/dist/progress-ShXZwOfj.js +0 -6
  575. package/dist/radio-group-CQbZCQmj.mjs +0 -199
  576. package/dist/radio-group-DAEi5vW_.js +0 -1
  577. package/dist/resizable-Cv-mKMKP.js +0 -1
  578. package/dist/resizable-DJSE3e5L.mjs +0 -1561
  579. package/dist/scroll-area-8QcqkHnC.mjs +0 -530
  580. package/dist/scroll-area-Cqqinhxf.js +0 -1
  581. package/dist/select-DdUveoSA.js +0 -1
  582. package/dist/select-yoeH35x2.mjs +0 -778
  583. package/dist/separator-BU1ea5gl.mjs +0 -35
  584. package/dist/separator-DBjErwHf.js +0 -1
  585. package/dist/shim-B5sEfNEJ.js +0 -1
  586. package/dist/shim-DX33EwUw.mjs +0 -91
  587. package/dist/sidebar-DIW-1cin.js +0 -1
  588. package/dist/slider-CCPXejUF.mjs +0 -388
  589. package/dist/slider-w05gD_Ix.js +0 -1
  590. package/dist/switch-CDBqsWQa.mjs +0 -112
  591. package/dist/switch-X2WBJsUu.js +0 -1
  592. package/dist/tabs-DzvgrVzk.js +0 -1
  593. package/dist/tabs-KDeHjVQU.mjs +0 -160
  594. package/dist/theme-toggle-C2Y4bIM3.js +0 -1
  595. package/dist/theme-toggle-clE-HpSS.mjs +0 -64
  596. package/dist/toast-1keyrzem.js +0 -1
  597. package/dist/toast-DVI6jPq5.mjs +0 -428
  598. package/dist/toggle-BGkq5XDM.js +0 -1
  599. package/dist/toggle-BfIIdlA6.mjs +0 -58
  600. package/dist/toggle-group-CbqgoPFU.mjs +0 -167
  601. package/dist/toggle-group-D7hR4BT2.js +0 -1
  602. package/dist/tooltip-CAIbshMk.js +0 -1
  603. package/dist/tooltip-D_o8Z-Ya.mjs +0 -380
package/src/accordion.tsx CHANGED
@@ -1,11 +1,9 @@
1
+ import type { AccordionBaseProps } from '@gv-tech/ui-core';
2
+ import { cn } from 'cn';
3
+ import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
1
4
  import { Accordion as AccordionPrimitive } from 'radix-ui';
2
5
  import * as React from 'react';
3
6
 
4
- import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
5
- import { cn } from './lib/utils';
6
-
7
- import type { AccordionBaseProps } from '@gv-tech/ui-core';
8
-
9
7
  function Accordion({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) {
10
8
  return <AccordionPrimitive.Root data-slot="accordion" className={cn('flex w-full flex-col', className)} {...props} />;
11
9
  }
@@ -45,7 +43,7 @@ function AccordionContent({ className, children, ...props }: React.ComponentProp
45
43
  return (
46
44
  <AccordionPrimitive.Content
47
45
  data-slot="accordion-content"
48
- className="data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm"
46
+ className="data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm"
49
47
  {...props}
50
48
  >
51
49
  <div
@@ -1,10 +1,9 @@
1
+ import type { AlertDialogBaseProps } from '@gv-tech/ui-core';
2
+ import { cn } from 'cn';
1
3
  import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
2
4
  import * as React from 'react';
3
5
 
4
- import { Button } from './button';
5
- import { cn } from './lib/utils';
6
-
7
- import type { AlertDialogBaseProps } from '@gv-tech/ui-core';
6
+ import { Button } from '@/./button';
8
7
 
9
8
  function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
10
9
  return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
@@ -23,7 +22,7 @@ function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof
23
22
  <AlertDialogPrimitive.Overlay
24
23
  data-slot="alert-dialog-overlay"
25
24
  className={cn(
26
- 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs',
25
+ 'data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs',
27
26
  className,
28
27
  )}
29
28
  {...props}
@@ -45,7 +44,7 @@ function AlertDialogContent({
45
44
  data-slot="alert-dialog-content"
46
45
  data-size={size}
47
46
  className={cn(
48
- 'group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2',
47
+ 'group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2',
49
48
  className,
50
49
  )}
51
50
  {...props}
@@ -85,7 +84,7 @@ function AlertDialogMedia({ className, ...props }: React.ComponentProps<'div'>)
85
84
  <div
86
85
  data-slot="alert-dialog-media"
87
86
  className={cn(
88
- 'bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*=size-])]:size-6',
87
+ "bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",
89
88
  className,
90
89
  )}
91
90
  {...props}
package/src/alert.tsx CHANGED
@@ -1,12 +1,10 @@
1
+ import type { AlertBaseProps } from '@gv-tech/ui-core';
1
2
  import { cva, type VariantProps } from 'class-variance-authority';
3
+ import { cn } from 'cn';
2
4
  import * as React from 'react';
3
5
 
4
- import { cn } from './lib/utils';
5
-
6
- import type { AlertBaseProps } from '@gv-tech/ui-core';
7
-
8
6
  const alertVariants = cva(
9
- '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',
7
+ "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
8
  {
11
9
  variants: {
12
10
  variant: {
@@ -14,8 +12,8 @@ const alertVariants = cva(
14
12
  destructive:
15
13
  'bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current',
16
14
  warning:
17
- 'bg-card text-amber-600 dark:text-amber-400 *:data-[slot=alert-description]:text-amber-700/90 dark:*:data-[slot=alert-description]:text-amber-300/90 *:[svg]:text-current',
18
- info: 'bg-card text-blue-600 dark:text-blue-400 *:data-[slot=alert-description]:text-blue-700/90 dark:*:data-[slot=alert-description]:text-blue-300/90 *:[svg]:text-current',
15
+ 'bg-card text-amber-600 *:data-[slot=alert-description]:text-amber-700/90 dark:text-amber-400 dark:*:data-[slot=alert-description]:text-amber-300/90 *:[svg]:text-current',
16
+ info: 'bg-card text-blue-600 *:data-[slot=alert-description]:text-blue-700/90 dark:text-blue-400 dark:*:data-[slot=alert-description]:text-blue-300/90 *:[svg]:text-current',
19
17
  },
20
18
  },
21
19
  defaultVariants: {
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { AspectRatio as AspectRatioPrimitive } from 'radix-ui';
4
-
5
3
  import type { AspectRatioBaseProps } from '@gv-tech/ui-core';
4
+ import { AspectRatio as AspectRatioPrimitive } from 'radix-ui';
6
5
 
7
6
  function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
8
7
  return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />;
@@ -0,0 +1,202 @@
1
+ import type {
2
+ AttachmentActionBaseProps,
3
+ AttachmentActionsBaseProps,
4
+ AttachmentBaseProps,
5
+ AttachmentContentBaseProps,
6
+ AttachmentDescriptionBaseProps,
7
+ AttachmentGroupBaseProps,
8
+ AttachmentMediaBaseProps,
9
+ AttachmentTitleBaseProps,
10
+ AttachmentTriggerBaseProps,
11
+ } from '@gv-tech/ui-core';
12
+ import { cva, type VariantProps } from 'class-variance-authority';
13
+ import { cn } from 'cn';
14
+ import { Slot } from 'radix-ui';
15
+ import * as React from 'react';
16
+
17
+ import { Button } from '@/./button';
18
+
19
+ const attachmentVariants = cva(
20
+ 'group/attachment bg-card text-card-foreground focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border transition-colors focus-within:ring-1 data-[state=idle]:border-dashed',
21
+ {
22
+ variants: {
23
+ size: {
24
+ default:
25
+ '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',
26
+ 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',
27
+ 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',
28
+ },
29
+ orientation: {
30
+ horizontal: 'min-w-40 items-center',
31
+ vertical: 'w-24 flex-col has-data-[slot=attachment-content]:w-30',
32
+ },
33
+ },
34
+ },
35
+ );
36
+
37
+ function Attachment({
38
+ className,
39
+ state = 'done',
40
+ size = 'default',
41
+ orientation = 'horizontal',
42
+ ...props
43
+ }: React.ComponentProps<'div'> & VariantProps<typeof attachmentVariants> & AttachmentBaseProps) {
44
+ return (
45
+ <div
46
+ data-slot="attachment"
47
+ data-state={state}
48
+ data-size={size}
49
+ data-orientation={orientation}
50
+ className={cn(attachmentVariants({ size, orientation }), className)}
51
+ {...props}
52
+ />
53
+ );
54
+ }
55
+
56
+ const attachmentMediaVariants = cva(
57
+ "bg-muted text-foreground group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg 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-[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",
58
+ {
59
+ variants: {
60
+ variant: {
61
+ icon: '',
62
+ image:
63
+ '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',
64
+ },
65
+ },
66
+ defaultVariants: {
67
+ variant: 'icon',
68
+ },
69
+ },
70
+ );
71
+
72
+ function AttachmentMedia({
73
+ className,
74
+ variant = 'icon',
75
+ ...props
76
+ }: React.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants> & AttachmentMediaBaseProps) {
77
+ return (
78
+ <div
79
+ data-slot="attachment-media"
80
+ data-variant={variant}
81
+ className={cn(attachmentMediaVariants({ variant }), className)}
82
+ {...props}
83
+ />
84
+ );
85
+ }
86
+
87
+ function AttachmentContent({ className, ...props }: React.ComponentProps<'div'> & AttachmentContentBaseProps) {
88
+ return (
89
+ <div
90
+ data-slot="attachment-content"
91
+ className={cn(
92
+ 'max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1',
93
+ className,
94
+ )}
95
+ {...props}
96
+ />
97
+ );
98
+ }
99
+
100
+ function AttachmentTitle({ className, ...props }: React.ComponentProps<'span'> & AttachmentTitleBaseProps) {
101
+ return (
102
+ <span
103
+ data-slot="attachment-title"
104
+ className={cn(
105
+ 'group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block max-w-full min-w-0 truncate font-medium',
106
+ className,
107
+ )}
108
+ {...props}
109
+ />
110
+ );
111
+ }
112
+
113
+ function AttachmentDescription({ className, ...props }: React.ComponentProps<'span'> & AttachmentDescriptionBaseProps) {
114
+ return (
115
+ <span
116
+ data-slot="attachment-description"
117
+ className={cn(
118
+ 'text-muted-foreground group-data-[state=error]/attachment:text-destructive/80 mt-0.5 block min-w-0 truncate text-xs',
119
+ 'max-w-full',
120
+ className,
121
+ )}
122
+ {...props}
123
+ />
124
+ );
125
+ }
126
+
127
+ function AttachmentActions({ className, ...props }: React.ComponentProps<'div'> & AttachmentActionsBaseProps) {
128
+ return (
129
+ <div
130
+ data-slot="attachment-actions"
131
+ className={cn(
132
+ 'relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1',
133
+ className,
134
+ )}
135
+ {...props}
136
+ />
137
+ );
138
+ }
139
+
140
+ function AttachmentAction({
141
+ className,
142
+ variant,
143
+ size = 'icon-xs',
144
+ ...props
145
+ }: React.ComponentProps<typeof Button> & AttachmentActionBaseProps) {
146
+ return (
147
+ <Button
148
+ data-slot="attachment-action"
149
+ variant={variant ?? 'ghost'}
150
+ size={size}
151
+ className={cn(className)}
152
+ {...props}
153
+ />
154
+ );
155
+ }
156
+
157
+ function AttachmentTrigger({
158
+ className,
159
+ asChild = false,
160
+ type,
161
+ ...props
162
+ }: React.ComponentProps<'button'> & AttachmentTriggerBaseProps) {
163
+ const Comp = asChild ? Slot.Root : 'button';
164
+
165
+ return (
166
+ <Comp
167
+ data-slot="attachment-trigger"
168
+ type={asChild ? undefined : (type ?? 'button')}
169
+ className={cn('absolute inset-0 z-10 outline-none', className)}
170
+ {...props}
171
+ />
172
+ );
173
+ }
174
+
175
+ function AttachmentGroup({ className, ...props }: React.ComponentProps<'div'> & AttachmentGroupBaseProps) {
176
+ return (
177
+ <div
178
+ data-slot="attachment-group"
179
+ className={cn(
180
+ 'scroll-fade-x flex min-w-0 snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start',
181
+ className,
182
+ )}
183
+ {...props}
184
+ />
185
+ );
186
+ }
187
+
188
+ export {
189
+ Attachment,
190
+ AttachmentAction,
191
+ AttachmentActions,
192
+ AttachmentContent,
193
+ AttachmentDescription,
194
+ AttachmentGroup,
195
+ AttachmentMedia,
196
+ AttachmentTitle,
197
+ AttachmentTrigger,
198
+ };
199
+
200
+ // Verify that the components satisfy the ui-core contracts
201
+ export type ___verifyAttachmentContract =
202
+ React.ComponentProps<typeof Attachment> extends AttachmentBaseProps ? true : false;
package/src/avatar.tsx CHANGED
@@ -1,10 +1,9 @@
1
+ import type { AvatarBaseProps } from '@gv-tech/ui-core';
1
2
  import { Avatar as AvatarPrimitive } from 'radix-ui';
2
3
  import * as React from 'react';
3
4
 
4
5
  import { cn } from './lib/utils';
5
6
 
6
- import type { AvatarBaseProps } from '@gv-tech/ui-core';
7
-
8
7
  function Avatar({
9
8
  className,
10
9
  size = 'default',
package/src/badge.tsx CHANGED
@@ -1,13 +1,12 @@
1
+ import type { BadgeBaseProps } from '@gv-tech/ui-core';
1
2
  import { cva, type VariantProps } from 'class-variance-authority';
2
3
  import { Slot } from 'radix-ui';
3
4
  import * as React from 'react';
4
5
 
5
6
  import { cn } from './lib/utils';
6
7
 
7
- import type { BadgeBaseProps } from '@gv-tech/ui-core';
8
-
9
8
  const badgeVariants = cva(
10
- '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-[3px] 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!',
9
+ 'group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 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:ring-[3px] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!',
11
10
  {
12
11
  variants: {
13
12
  variant: {
@@ -1,11 +1,9 @@
1
+ import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';
2
+ import { cn } from 'cn';
3
+ import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
1
4
  import { Slot } from 'radix-ui';
2
5
  import * as React from 'react';
3
6
 
4
- import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
5
- import { cn } from './lib/utils';
6
-
7
- import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';
8
-
9
7
  function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {
10
8
  return <nav aria-label="breadcrumb" data-slot="breadcrumb" className={cn(className)} {...props} />;
11
9
  }
@@ -42,8 +40,6 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {
42
40
  return (
43
41
  <span
44
42
  data-slot="breadcrumb-page"
45
- role="link"
46
- aria-disabled="true"
47
43
  aria-current="page"
48
44
  className={cn('text-foreground font-normal', className)}
49
45
  {...props}
@@ -60,7 +56,7 @@ function BreadcrumbSeparator({ children, className, ...props }: React.ComponentP
60
56
  className={cn('[&>svg]:size-3.5', className)}
61
57
  {...props}
62
58
  >
63
- {children ?? <ChevronRightIcon />}
59
+ {children ?? <ChevronRightIcon className="rtl:rotate-180" />}
64
60
  </li>
65
61
  );
66
62
  }
package/src/bubble.tsx ADDED
@@ -0,0 +1,115 @@
1
+ import type {
2
+ BubbleBaseProps,
3
+ BubbleContentBaseProps,
4
+ BubbleGroupBaseProps,
5
+ BubbleReactionsBaseProps,
6
+ } from '@gv-tech/ui-core';
7
+ import { cva, type VariantProps } from 'class-variance-authority';
8
+ import { cn } from 'cn';
9
+ import { Slot } from 'radix-ui';
10
+ import * as React from 'react';
11
+
12
+ function BubbleGroup({ className, ...props }: React.ComponentProps<'div'> & BubbleGroupBaseProps) {
13
+ return <div data-slot="bubble-group" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;
14
+ }
15
+
16
+ const bubbleVariants = cva(
17
+ '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',
18
+ {
19
+ variants: {
20
+ variant: {
21
+ default:
22
+ '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',
23
+ secondary:
24
+ '*: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%)]',
25
+ muted:
26
+ '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',
27
+ tinted:
28
+ '*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] 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)]',
29
+ outline:
30
+ '*: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',
31
+ ghost:
32
+ '[&>[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 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',
33
+ destructive:
34
+ '*: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',
35
+ },
36
+ },
37
+ defaultVariants: {
38
+ variant: 'default',
39
+ },
40
+ },
41
+ );
42
+
43
+ function Bubble({
44
+ variant = 'default',
45
+ align = 'start',
46
+ className,
47
+ ...props
48
+ }: React.ComponentProps<'div'> & VariantProps<typeof bubbleVariants> & BubbleBaseProps) {
49
+ return (
50
+ <div
51
+ data-slot="bubble"
52
+ data-variant={variant}
53
+ data-align={align}
54
+ className={cn(bubbleVariants({ variant }), className)}
55
+ {...props}
56
+ />
57
+ );
58
+ }
59
+
60
+ function BubbleContent({ asChild = false, className, ...props }: React.ComponentProps<'div'> & BubbleContentBaseProps) {
61
+ const Comp = asChild ? Slot.Root : 'div';
62
+
63
+ return (
64
+ <Comp
65
+ data-slot="bubble-content"
66
+ className={cn(
67
+ '[button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3',
68
+ className,
69
+ )}
70
+ {...props}
71
+ />
72
+ );
73
+ }
74
+
75
+ const bubbleReactionsVariants = cva(
76
+ 'bg-muted ring-card absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0',
77
+ {
78
+ variants: {
79
+ side: {
80
+ top: 'top-0 -translate-y-3/4',
81
+ bottom: 'bottom-0 translate-y-3/4',
82
+ },
83
+ align: {
84
+ start: 'start-3',
85
+ end: 'end-3',
86
+ },
87
+ },
88
+ defaultVariants: {
89
+ side: 'bottom',
90
+ align: 'end',
91
+ },
92
+ },
93
+ );
94
+
95
+ function BubbleReactions({
96
+ side = 'bottom',
97
+ align = 'end',
98
+ className,
99
+ ...props
100
+ }: React.ComponentProps<'div'> & BubbleReactionsBaseProps) {
101
+ return (
102
+ <div
103
+ data-slot="bubble-reactions"
104
+ data-align={align}
105
+ data-side={side}
106
+ className={cn(bubbleReactionsVariants({ side, align }), className)}
107
+ {...props}
108
+ />
109
+ );
110
+ }
111
+
112
+ export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
113
+
114
+ // Verify that the components satisfy the ui-core contracts
115
+ export type ___verifyBubbleContract = React.ComponentProps<typeof Bubble> extends BubbleBaseProps ? true : false;
@@ -1,11 +1,11 @@
1
1
  import { cva, type VariantProps } from 'class-variance-authority';
2
+ import { cn } from 'cn';
2
3
  import { Slot } from 'radix-ui';
3
4
 
4
- import { cn } from './lib/utils';
5
- import { Separator } from './separator';
5
+ import { Separator } from '@/./separator';
6
6
 
7
7
  const buttonGroupVariants = cva(
8
- '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',
8
+ "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",
9
9
  {
10
10
  variants: {
11
11
  orientation: {
@@ -27,10 +27,9 @@ function ButtonGroup({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants> & ButtonGroupBaseProps) {
30
+ }: React.ComponentProps<'fieldset'> & VariantProps<typeof buttonGroupVariants> & ButtonGroupBaseProps) {
31
31
  return (
32
- <div
33
- role="group"
32
+ <fieldset
34
33
  data-slot="button-group"
35
34
  data-orientation={orientation}
36
35
  className={cn(buttonGroupVariants({ orientation }), className)}
@@ -49,7 +48,7 @@ function ButtonGroupText({
49
48
  return (
50
49
  <Comp
51
50
  className={cn(
52
- 'bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4',
51
+ "bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
53
52
  className,
54
53
  )}
55
54
  {...props}
@@ -67,7 +66,7 @@ function ButtonGroupSeparator({
67
66
  data-slot="button-group-separator"
68
67
  orientation={orientation}
69
68
  className={cn(
70
- 'bg-input relative self-stretch data-[orientation=horizontal]:mx-px data-[orientation=horizontal]:w-auto data-[orientation=vertical]:my-px data-[orientation=vertical]:h-auto',
69
+ 'bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',
71
70
  className,
72
71
  )}
73
72
  {...props}
package/src/button.tsx CHANGED
@@ -1,13 +1,11 @@
1
+ import type { ButtonBaseProps } from '@gv-tech/ui-core';
1
2
  import { cva, type VariantProps } from 'class-variance-authority';
3
+ import { cn } from 'cn';
2
4
  import { Slot } from 'radix-ui';
3
5
  import * as React from 'react';
4
6
 
5
- import { cn } from './lib/utils';
6
-
7
- import type { ButtonBaseProps } from '@gv-tech/ui-core';
8
-
9
7
  const buttonVariants = cva(
10
- 'group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4',
8
+ "group/button focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:ring-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
11
9
  {
12
10
  variants: {
13
11
  variant: {
@@ -15,7 +13,7 @@ const buttonVariants = cva(
15
13
  outline:
16
14
  'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
17
15
  secondary:
18
- 'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
16
+ 'bg-secondary text-secondary-foreground aria-expanded:bg-secondary aria-expanded:text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]',
19
17
  ghost:
20
18
  'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',
21
19
  destructive:
@@ -24,12 +22,12 @@ const buttonVariants = cva(
24
22
  },
25
23
  size: {
26
24
  default: 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
27
- xs: 'h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3',
28
- sm: 'h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3.5',
25
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3",
26
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5",
29
27
  lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
30
28
  icon: 'size-8',
31
29
  'icon-xs':
32
- 'size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*=size-])]:size-3',
30
+ "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
33
31
  'icon-sm': 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',
34
32
  'icon-lg': 'size-9',
35
33
  },
package/src/calendar.tsx CHANGED
@@ -1,13 +1,12 @@
1
1
  'use client';
2
2
 
3
+ import type { CalendarBaseProps } from '@gv-tech/ui-core';
4
+ import { cn } from 'cn';
5
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
3
6
  import * as React from 'react';
4
7
  import { DayPicker, getDefaultClassNames, type DayButton, type Locale } from 'react-day-picker';
5
8
 
6
- import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
7
- import { Button, buttonVariants } from './button';
8
- import { cn } from './lib/utils';
9
-
10
- import type { CalendarBaseProps } from '@gv-tech/ui-core';
9
+ import { Button, buttonVariants } from '@/./button';
11
10
 
12
11
  function Calendar({
13
12
  className,
@@ -63,22 +62,23 @@ function Calendar({
63
62
  defaultClassNames.dropdowns,
64
63
  ),
65
64
  dropdown_root: cn('relative rounded-(--cell-radius)', defaultClassNames.dropdown_root),
66
- dropdown: cn('absolute inset-0 bg-popover opacity-0', defaultClassNames.dropdown),
65
+ dropdown: cn('bg-popover absolute inset-0 opacity-0', defaultClassNames.dropdown),
67
66
  caption_label: cn(
68
67
  'font-medium select-none',
69
68
  captionLayout === 'label'
70
69
  ? 'text-sm'
71
- : 'flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',
70
+ : '[&>svg]:text-muted-foreground flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5',
72
71
  defaultClassNames.caption_label,
73
72
  ),
73
+ month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),
74
74
  weekdays: cn('flex', defaultClassNames.weekdays),
75
75
  weekday: cn(
76
- 'flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none',
76
+ 'text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none',
77
77
  defaultClassNames.weekday,
78
78
  ),
79
79
  week: cn('mt-2 flex w-full', defaultClassNames.week),
80
80
  week_number_header: cn('w-(--cell-size) select-none', defaultClassNames.week_number_header),
81
- week_number: cn('text-[0.8rem] text-muted-foreground select-none', defaultClassNames.week_number),
81
+ week_number: cn('text-muted-foreground text-[0.8rem] select-none', defaultClassNames.week_number),
82
82
  day: cn(
83
83
  'group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)',
84
84
  props.showWeekNumber
@@ -87,16 +87,16 @@ function Calendar({
87
87
  defaultClassNames.day,
88
88
  ),
89
89
  range_start: cn(
90
- 'relative isolate z-0 rounded-s-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:end-0 after:w-4 after:bg-muted',
90
+ 'bg-muted after:bg-muted relative isolate z-0 rounded-s-(--cell-radius) after:absolute after:inset-y-0 after:end-0 after:w-4',
91
91
  defaultClassNames.range_start,
92
92
  ),
93
93
  range_middle: cn('rounded-none', defaultClassNames.range_middle),
94
94
  range_end: cn(
95
- 'relative isolate z-0 rounded-e-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:start-0 after:w-4 after:bg-muted',
95
+ 'bg-muted after:bg-muted relative isolate z-0 rounded-e-(--cell-radius) after:absolute after:inset-y-0 after:start-0 after:w-4',
96
96
  defaultClassNames.range_end,
97
97
  ),
98
98
  today: cn(
99
- 'rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none',
99
+ 'bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none',
100
100
  defaultClassNames.today,
101
101
  ),
102
102
  outside: cn('text-muted-foreground aria-selected:text-muted-foreground', defaultClassNames.outside),
@@ -110,11 +110,11 @@ function Calendar({
110
110
  },
111
111
  Chevron: ({ className, orientation, ...props }) => {
112
112
  if (orientation === 'left') {
113
- return <ChevronLeftIcon className={cn('size-4', className)} {...props} />;
113
+ return <ChevronLeftIcon className={cn('size-4 rtl:rotate-180', className)} {...props} />;
114
114
  }
115
115
 
116
116
  if (orientation === 'right') {
117
- return <ChevronRightIcon className={cn('size-4', className)} {...props} />;
117
+ return <ChevronRightIcon className={cn('size-4 rtl:rotate-180', className)} {...props} />;
118
118
  }
119
119
 
120
120
  return <ChevronDownIcon className={cn('size-4', className)} {...props} />;