@gv-tech/ui-web 2.29.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 (474) hide show
  1. package/dist/__contracts.d.ts +0 -1
  2. package/dist/__contracts.d.ts.map +1 -1
  3. package/dist/{accordion-Bqt-y-u7.mjs → accordion-D5QXSsCK.mjs} +83 -74
  4. package/dist/accordion-DjyDOX-h.js +1 -0
  5. package/dist/accordion.cjs +1 -1
  6. package/dist/accordion.d.ts +1 -1
  7. package/dist/accordion.d.ts.map +1 -1
  8. package/dist/accordion.mjs +1 -1
  9. package/dist/{alert-dialog-BkUyJb_F.mjs → alert-dialog-B-a0Wa1M.mjs} +47 -47
  10. package/dist/alert-dialog-DYQAhGBC.js +1 -0
  11. package/dist/alert-dialog.cjs +1 -1
  12. package/dist/alert-dialog.d.ts +1 -1
  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 +1 -1
  17. package/dist/alert.d.ts.map +1 -1
  18. package/dist/alert.mjs +2 -2
  19. package/dist/{aspect-ratio-X3HWxQz0.js → aspect-ratio-C-KOOyGP.js} +1 -1
  20. package/dist/{aspect-ratio-C7oBX-p_.mjs → aspect-ratio-s7Ji1MSr.mjs} +2 -2
  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 -1
  26. package/dist/attachment.d.ts +2 -2
  27. package/dist/attachment.d.ts.map +1 -1
  28. package/dist/attachment.mjs +3 -3
  29. package/dist/avatar-4K3XjhP8.js +1 -0
  30. package/dist/{avatar-DTkhTxt7.mjs → avatar-d8Di248f.mjs} +49 -44
  31. package/dist/avatar.cjs +1 -1
  32. package/dist/avatar.d.ts +1 -1
  33. package/dist/avatar.d.ts.map +1 -1
  34. package/dist/avatar.mjs +1 -1
  35. package/dist/badge.cjs +1 -1
  36. package/dist/badge.d.ts +1 -1
  37. package/dist/badge.d.ts.map +1 -1
  38. package/dist/badge.mjs +2 -2
  39. package/dist/breadcrumb.cjs +1 -1
  40. package/dist/breadcrumb.d.ts.map +1 -1
  41. package/dist/breadcrumb.mjs +1 -3
  42. package/dist/bubble.cjs +1 -1
  43. package/dist/bubble.d.ts +1 -1
  44. package/dist/bubble.d.ts.map +1 -1
  45. package/dist/bubble.mjs +4 -4
  46. package/dist/button-group.cjs +1 -1
  47. package/dist/button-group.d.ts +4 -4
  48. package/dist/button-group.d.ts.map +1 -1
  49. package/dist/button-group.mjs +3 -4
  50. package/dist/button.cjs +1 -1
  51. package/dist/button.d.ts +1 -1
  52. package/dist/button.d.ts.map +1 -1
  53. package/dist/button.mjs +3 -3
  54. package/dist/calendar-DFj14O6r.js +1 -0
  55. package/dist/{calendar-CkHWa9Uu.mjs → calendar-UW8h9dfh.mjs} +443 -437
  56. package/dist/calendar.cjs +1 -1
  57. package/dist/calendar.d.ts +1 -1
  58. package/dist/calendar.d.ts.map +1 -1
  59. package/dist/calendar.mjs +1 -1
  60. package/dist/card.d.ts.map +1 -1
  61. package/dist/{carousel-Cv5isLeg.js → carousel-CNGpg5df.js} +1 -1
  62. package/dist/{carousel-ynaeMNIV.mjs → carousel-DG9xGJns.mjs} +3 -5
  63. package/dist/carousel.cjs +1 -1
  64. package/dist/carousel.d.ts +3 -3
  65. package/dist/carousel.d.ts.map +1 -1
  66. package/dist/carousel.mjs +1 -1
  67. package/dist/checkbox-BCgbTAdU.js +1 -0
  68. package/dist/{checkbox-BLvAEmRC.mjs → checkbox-Dq8VHKDH.mjs} +48 -44
  69. package/dist/checkbox.cjs +1 -1
  70. package/dist/checkbox.d.ts +1 -1
  71. package/dist/checkbox.d.ts.map +1 -1
  72. package/dist/checkbox.mjs +1 -1
  73. package/dist/{chunk-HBS6WEDP-CzyhzCaP.mjs → chunk-HBS6WEDP-aK8IuEX9.mjs} +1 -1
  74. package/dist/collapsible.cjs +1 -1
  75. package/dist/collapsible.d.ts +4 -4
  76. package/dist/collapsible.d.ts.map +1 -1
  77. package/dist/collapsible.mjs +7 -7
  78. package/dist/combobox-CpPIGtPJ.js +4 -0
  79. package/dist/combobox-b4OmCNw1.mjs +5887 -0
  80. package/dist/combobox.cjs +1 -1
  81. package/dist/combobox.d.ts.map +1 -1
  82. package/dist/combobox.mjs +1 -1
  83. package/dist/{command-DY6u8V0D.mjs → command-5hobOyGG.mjs} +6 -6
  84. package/dist/{command-BqO-CfH6.js → command-Dbqnm9kI.js} +1 -1
  85. package/dist/command.cjs +1 -1
  86. package/dist/command.d.ts +1 -1
  87. package/dist/command.d.ts.map +1 -1
  88. package/dist/command.mjs +1 -1
  89. package/dist/context-menu-DyTUismw.js +1 -0
  90. package/dist/{context-menu-tL6CY6a0.mjs → context-menu-DzzU-_v8.mjs} +115 -116
  91. package/dist/context-menu.cjs +1 -1
  92. package/dist/context-menu.d.ts +1 -1
  93. package/dist/context-menu.d.ts.map +1 -1
  94. package/dist/context-menu.mjs +1 -1
  95. package/dist/dialog.cjs +1 -1
  96. package/dist/dialog.d.ts +1 -1
  97. package/dist/dialog.d.ts.map +1 -1
  98. package/dist/dialog.mjs +1 -1
  99. package/dist/direction.cjs +1 -1
  100. package/dist/direction.d.ts +1 -1
  101. package/dist/direction.d.ts.map +1 -1
  102. package/dist/direction.mjs +1 -1
  103. package/dist/{dist-BTN2t9yv.js → dist-1zUKVGvf.js} +1 -1
  104. package/dist/{dist-BIXhHahX.mjs → dist-B057I8ju.mjs} +4 -4
  105. package/dist/{dist-DyMv0xk8.mjs → dist-BB78QQyQ.mjs} +1 -1
  106. package/dist/dist-BBvidwzC.js +1 -0
  107. package/dist/{dist-BQhMregZ.mjs → dist-BEbV0Hal.mjs} +2 -2
  108. package/dist/dist-BPL7gUpg.mjs +18 -0
  109. package/dist/{dist-Dj9s8AIv.js → dist-BTUvBzOm.js} +1 -1
  110. package/dist/{dist-CdBAkUWT.js → dist-BU-TFzJf.js} +1 -1
  111. package/dist/dist-Bb5W_J2F.mjs +39 -0
  112. package/dist/dist-BbI6NHqR.mjs +23 -0
  113. package/dist/{dist-5r7hQmO0.mjs → dist-BexAB6yo.mjs} +53 -48
  114. package/dist/dist-BgXIqHHq.js +1 -0
  115. package/dist/{dist-BUXpRW9O.mjs → dist-Bvfb4y_L.mjs} +3 -3
  116. package/dist/{dist-DMwCTE2i.mjs → dist-CPAF050o.mjs} +1 -1
  117. package/dist/{dist-6c2NeKfz.mjs → dist-CUvxOuXM.mjs} +192 -177
  118. package/dist/dist-ClYM7l1t.js +1 -0
  119. package/dist/{dist-Dg9ASyqI.mjs → dist-CpKLY_uZ.mjs} +2 -2
  120. package/dist/dist-D1qkELLT.js +1 -0
  121. package/dist/dist-DEpkkABT.js +1 -0
  122. package/dist/{dist-rx5WaFf5.mjs → dist-DI1vapnL.mjs} +3 -3
  123. package/dist/dist-DKXojpVG.js +1 -0
  124. package/dist/dist-DatgTWLz.mjs +202 -0
  125. package/dist/dist-DoivLw3t.js +1 -0
  126. package/dist/{dist-8fYwoWd4.mjs → dist-Dq-h6VAy.mjs} +21 -14
  127. package/dist/{dist-DfvK7DpO.mjs → dist-Dt6m-kwU.mjs} +86 -78
  128. package/dist/dist-E8ieJTBC.mjs +190 -0
  129. package/dist/{dist-D7UHN1DJ.mjs → dist-GazS1kfR.mjs} +1 -1
  130. package/dist/dist-N97cIp0_.js +1 -0
  131. package/dist/dist-OqDzLHTa.mjs +460 -0
  132. package/dist/dist-Qm9hFvM1.js +1 -0
  133. package/dist/{dist-CBsYNwXz.mjs → dist-UkWa-Arh.mjs} +2 -2
  134. package/dist/dist-UnTrOmPV.js +1 -0
  135. package/dist/dist-Zs2sjYhL.js +1 -0
  136. package/dist/{dist-BoNQb2nd.js → dist-hFLuJoMi.js} +1 -1
  137. package/dist/{dist-CYrqAnIr.mjs → dist-s7ibhASj.mjs} +6 -7
  138. package/dist/{dist-ByW6RHeZ.mjs → dist-vu20fMUK.mjs} +15 -16
  139. package/dist/drawer.d.ts +1 -1
  140. package/dist/drawer.d.ts.map +1 -1
  141. package/dist/{dropdown-menu-BWqWoYis.mjs → dropdown-menu-BqAhn64y.mjs} +106 -106
  142. package/dist/dropdown-menu-BtKOr--r.js +1 -0
  143. package/dist/dropdown-menu.cjs +1 -1
  144. package/dist/dropdown-menu.d.ts +1 -1
  145. package/dist/dropdown-menu.d.ts.map +1 -1
  146. package/dist/dropdown-menu.mjs +1 -1
  147. package/dist/empty.cjs +1 -1
  148. package/dist/empty.d.ts +7 -7
  149. package/dist/empty.d.ts.map +1 -1
  150. package/dist/empty.mjs +1 -1
  151. package/dist/es2015-DbAsWDbs.js +41 -0
  152. package/dist/es2015-DbsmTzuc.mjs +571 -0
  153. package/dist/field.cjs +1 -1
  154. package/dist/field.d.ts +12 -12
  155. package/dist/field.d.ts.map +1 -1
  156. package/dist/field.mjs +4 -5
  157. package/dist/form.cjs +1 -1
  158. package/dist/form.d.ts +3 -3
  159. package/dist/form.d.ts.map +1 -1
  160. package/dist/form.mjs +2 -2
  161. package/dist/hover-card-DMsxpR9G.mjs +178 -0
  162. package/dist/hover-card-DWXusgiI.js +1 -0
  163. package/dist/hover-card.cjs +1 -1
  164. package/dist/hover-card.d.ts +1 -1
  165. package/dist/hover-card.d.ts.map +1 -1
  166. package/dist/hover-card.mjs +1 -1
  167. package/dist/index.cjs +1 -1
  168. package/dist/index.mjs +35 -35
  169. package/dist/input-group.cjs +1 -1
  170. package/dist/input-group.d.ts +3 -3
  171. package/dist/input-group.d.ts.map +1 -1
  172. package/dist/input-group.mjs +3 -8
  173. package/dist/{input-otp-m_BTudNY.mjs → input-otp-D49Y9VcH.mjs} +2 -2
  174. package/dist/{input-otp-D9MwUsPO.js → input-otp-u3obpt-Q.js} +1 -1
  175. package/dist/input-otp.cjs +1 -1
  176. package/dist/input-otp.d.ts +1 -1
  177. package/dist/input-otp.d.ts.map +1 -1
  178. package/dist/input-otp.mjs +1 -1
  179. package/dist/input.d.ts.map +1 -1
  180. package/dist/item.cjs +1 -1
  181. package/dist/item.d.ts +2 -2
  182. package/dist/item.d.ts.map +1 -1
  183. package/dist/item.mjs +5 -6
  184. package/dist/kbd.d.ts +2 -2
  185. package/dist/kbd.d.ts.map +1 -1
  186. package/dist/{label-CgKiKHKG.js → label-Dacwh21G.js} +1 -1
  187. package/dist/{label-DVA-YKpB.mjs → label-DsSICLPc.mjs} +2 -2
  188. package/dist/label.cjs +1 -1
  189. package/dist/label.d.ts +1 -1
  190. package/dist/label.d.ts.map +1 -1
  191. package/dist/label.mjs +1 -1
  192. package/dist/marker.cjs +1 -1
  193. package/dist/marker.d.ts +1 -1
  194. package/dist/marker.d.ts.map +1 -1
  195. package/dist/marker.mjs +4 -4
  196. package/dist/menubar-BYNeRuzx.js +1 -0
  197. package/dist/{menubar-CyKBLHme.mjs → menubar-DZqEj6S1.mjs} +102 -100
  198. package/dist/menubar.cjs +1 -1
  199. package/dist/menubar.d.ts +1 -1
  200. package/dist/menubar.d.ts.map +1 -1
  201. package/dist/menubar.mjs +1 -1
  202. package/dist/{message-scroller-FwdKclRM.mjs → message-scroller-CS4t7Ypn.mjs} +2 -2
  203. package/dist/message-scroller.d.ts +1 -1
  204. package/dist/message-scroller.d.ts.map +1 -1
  205. package/dist/message-scroller.mjs +1 -1
  206. package/dist/message.d.ts.map +1 -1
  207. package/dist/native-select.d.ts.map +1 -1
  208. package/dist/navigation-menu-B36G3O83.js +1 -0
  209. package/dist/{navigation-menu-BzE1J1rs.mjs → navigation-menu-RO6thDOF.mjs} +245 -217
  210. package/dist/navigation-menu.cjs +1 -1
  211. package/dist/navigation-menu.d.ts +1 -1
  212. package/dist/navigation-menu.d.ts.map +1 -1
  213. package/dist/navigation-menu.mjs +1 -1
  214. package/dist/pagination.cjs +1 -1
  215. package/dist/pagination.d.ts +2 -2
  216. package/dist/pagination.d.ts.map +1 -1
  217. package/dist/pagination.mjs +3 -2
  218. package/dist/popover-DSBkc70V.mjs +243 -0
  219. package/dist/popover-DUHbvKB8.js +1 -0
  220. package/dist/popover.cjs +1 -1
  221. package/dist/popover.d.ts +1 -1
  222. package/dist/popover.d.ts.map +1 -1
  223. package/dist/popover.mjs +1 -1
  224. package/dist/{progress-nfJMuKGj.js → progress-B9z08UXf.js} +2 -2
  225. package/dist/{progress-ClcVCqjl.mjs → progress-CQ4nQ85t.mjs} +7 -8
  226. package/dist/progress.cjs +1 -1
  227. package/dist/progress.d.ts +1 -1
  228. package/dist/progress.d.ts.map +1 -1
  229. package/dist/progress.mjs +1 -1
  230. package/dist/{questionnaire-DKWcZeWT.mjs → questionnaire-CVED7G7R.mjs} +2 -2
  231. package/dist/questionnaire.d.ts +1 -1
  232. package/dist/questionnaire.d.ts.map +1 -1
  233. package/dist/questionnaire.mjs +1 -1
  234. package/dist/radio-group-Bd3WbH5I.js +1 -0
  235. package/dist/{radio-group-5VwmCXRK.mjs → radio-group-TRiAhMZB.mjs} +43 -42
  236. package/dist/radio-group.cjs +1 -1
  237. package/dist/radio-group.mjs +1 -1
  238. package/dist/resizable-Cq60hEWB.js +1 -0
  239. package/dist/resizable-Qc8cVUKd.mjs +2857 -0
  240. package/dist/resizable.cjs +1 -1
  241. package/dist/resizable.d.ts +3 -3
  242. package/dist/resizable.mjs +1 -1
  243. package/dist/scroll-area-D6MiNHnJ.mjs +564 -0
  244. package/dist/scroll-area-DFUdJeSZ.js +1 -0
  245. package/dist/scroll-area.cjs +1 -1
  246. package/dist/scroll-area.d.ts +1 -1
  247. package/dist/scroll-area.d.ts.map +1 -1
  248. package/dist/scroll-area.mjs +1 -1
  249. package/dist/scroll-to-top.cjs +1 -1
  250. package/dist/scroll-to-top.d.ts.map +1 -1
  251. package/dist/scroll-to-top.mjs +7 -5
  252. package/dist/search.cjs +1 -1
  253. package/dist/search.d.ts.map +1 -1
  254. package/dist/search.mjs +1 -1
  255. package/dist/{select-CnHZdna2.mjs → select-BFJUmjvX.mjs} +326 -288
  256. package/dist/select-iQFoKU1s.js +1 -0
  257. package/dist/select.cjs +1 -1
  258. package/dist/select.d.ts +1 -1
  259. package/dist/select.d.ts.map +1 -1
  260. package/dist/select.mjs +1 -1
  261. package/dist/{separator-D1a8myFf.mjs → separator-2kr96SyF.mjs} +15 -13
  262. package/dist/separator-Bo49G2aj.js +1 -0
  263. package/dist/separator.cjs +1 -1
  264. package/dist/separator.d.ts +1 -1
  265. package/dist/separator.d.ts.map +1 -1
  266. package/dist/separator.mjs +1 -1
  267. package/dist/sheet.cjs +1 -1
  268. package/dist/sheet.d.ts +1 -1
  269. package/dist/sheet.d.ts.map +1 -1
  270. package/dist/sheet.mjs +1 -1
  271. package/dist/sidebar-C6O8hLkz.js +1 -0
  272. package/dist/{sidebar-B5q6nH2G.mjs → sidebar-DM9ee9wf.mjs} +6 -6
  273. package/dist/sidebar.cjs +1 -1
  274. package/dist/sidebar.d.ts +1 -1
  275. package/dist/sidebar.d.ts.map +1 -1
  276. package/dist/sidebar.mjs +1 -1
  277. package/dist/skeleton.d.ts +1 -1
  278. package/dist/skeleton.d.ts.map +1 -1
  279. package/dist/slider-CagVxozY.js +1 -0
  280. package/dist/slider-CdTCoQu1.mjs +485 -0
  281. package/dist/slider.cjs +1 -1
  282. package/dist/slider.d.ts +1 -1
  283. package/dist/slider.d.ts.map +1 -1
  284. package/dist/slider.mjs +1 -1
  285. package/dist/sonner.d.ts +1 -1
  286. package/dist/spinner.cjs +1 -1
  287. package/dist/spinner.d.ts +2 -1
  288. package/dist/spinner.d.ts.map +1 -1
  289. package/dist/spinner.mjs +8 -4
  290. package/dist/support-fab.d.ts.map +1 -1
  291. package/dist/switch-CoeAC1Wk.js +1 -0
  292. package/dist/{switch-DagjjAQu.mjs → switch-zUBdj7jK.mjs} +46 -42
  293. package/dist/switch.cjs +1 -1
  294. package/dist/switch.d.ts +1 -1
  295. package/dist/switch.d.ts.map +1 -1
  296. package/dist/switch.mjs +1 -1
  297. package/dist/table-of-contents.cjs +1 -1
  298. package/dist/table-of-contents.d.ts +5 -10
  299. package/dist/table-of-contents.d.ts.map +1 -1
  300. package/dist/table-of-contents.mjs +1 -0
  301. package/dist/table.d.ts.map +1 -1
  302. package/dist/{tabs-OQ6rj-3B.mjs → tabs-DaE9pEbo.mjs} +47 -45
  303. package/dist/tabs-TMhXe20x.js +1 -0
  304. package/dist/tabs.cjs +1 -1
  305. package/dist/tabs.d.ts +1 -1
  306. package/dist/tabs.d.ts.map +1 -1
  307. package/dist/tabs.mjs +1 -1
  308. package/dist/text.cjs +1 -1
  309. package/dist/text.d.ts +1 -1
  310. package/dist/text.d.ts.map +1 -1
  311. package/dist/text.mjs +3 -3
  312. package/dist/textarea.d.ts.map +1 -1
  313. package/dist/theme-provider.d.ts +1 -1
  314. package/dist/theme-provider.d.ts.map +1 -1
  315. package/dist/{theme-toggle-BCcH-QtH.mjs → theme-toggle-3RStptYf.mjs} +21 -12
  316. package/dist/theme-toggle-DKh8WFLT.js +1 -0
  317. package/dist/theme-toggle.cjs +1 -1
  318. package/dist/theme-toggle.d.ts +1 -1
  319. package/dist/theme-toggle.d.ts.map +1 -1
  320. package/dist/theme-toggle.mjs +1 -1
  321. package/dist/toast-B0S3F09s.js +1 -0
  322. package/dist/toast-D0Yb-K84.mjs +445 -0
  323. package/dist/toast.cjs +1 -1
  324. package/dist/toast.d.ts +1 -1
  325. package/dist/toast.d.ts.map +1 -1
  326. package/dist/toast.mjs +1 -1
  327. package/dist/{toaster-DS9iODKU.js → toaster-CX9im8R_.js} +1 -1
  328. package/dist/{toaster-CKAJ9cht.mjs → toaster-gT2b7mfE.mjs} +1 -1
  329. package/dist/toaster.cjs +1 -1
  330. package/dist/toaster.d.ts +1 -1
  331. package/dist/toaster.d.ts.map +1 -1
  332. package/dist/toaster.mjs +1 -1
  333. package/dist/toggle-B0hXPsi7.js +1 -0
  334. package/dist/{toggle-CuLxBIWH.mjs → toggle-BAeKd2N0.mjs} +10 -10
  335. package/dist/{toggle-group-DfkvPKU_.mjs → toggle-group-CEKhUozD.mjs} +47 -44
  336. package/dist/toggle-group-htyug3G7.js +1 -0
  337. package/dist/toggle-group.cjs +1 -1
  338. package/dist/toggle-group.d.ts +1 -1
  339. package/dist/toggle-group.d.ts.map +1 -1
  340. package/dist/toggle-group.mjs +1 -1
  341. package/dist/toggle.cjs +1 -1
  342. package/dist/toggle.d.ts +1 -1
  343. package/dist/toggle.d.ts.map +1 -1
  344. package/dist/toggle.mjs +1 -1
  345. package/dist/tooltip-BZazhXDZ.js +1 -0
  346. package/dist/tooltip-R_nK_Qh5.mjs +390 -0
  347. package/dist/tooltip.cjs +1 -1
  348. package/dist/tooltip.d.ts +1 -1
  349. package/dist/tooltip.d.ts.map +1 -1
  350. package/dist/tooltip.mjs +1 -1
  351. package/package.json +16 -16
  352. package/src/__contracts.ts +318 -321
  353. package/src/accordion.tsx +1 -2
  354. package/src/alert-dialog.tsx +1 -2
  355. package/src/alert.tsx +3 -4
  356. package/src/aspect-ratio.tsx +1 -2
  357. package/src/attachment.tsx +8 -9
  358. package/src/avatar.tsx +1 -2
  359. package/src/badge.tsx +2 -3
  360. package/src/breadcrumb.tsx +1 -4
  361. package/src/bubble.tsx +7 -8
  362. package/src/button-group.tsx +2 -3
  363. package/src/button.tsx +3 -4
  364. package/src/calendar.tsx +8 -9
  365. package/src/card.tsx +1 -2
  366. package/src/carousel.tsx +9 -10
  367. package/src/checkbox.tsx +1 -2
  368. package/src/collapsible.tsx +1 -2
  369. package/src/combobox.tsx +6 -7
  370. package/src/command.tsx +1 -2
  371. package/src/context-menu.tsx +1 -2
  372. package/src/dialog.tsx +1 -2
  373. package/src/direction.tsx +1 -2
  374. package/src/drawer.tsx +1 -2
  375. package/src/dropdown-menu.tsx +1 -2
  376. package/src/empty.tsx +2 -3
  377. package/src/field.tsx +9 -11
  378. package/src/form.tsx +8 -8
  379. package/src/hooks/use-mobile.ts +1 -1
  380. package/src/hover-card.tsx +1 -2
  381. package/src/input-group.tsx +12 -21
  382. package/src/input-otp.tsx +5 -6
  383. package/src/input.tsx +1 -2
  384. package/src/item.tsx +10 -12
  385. package/src/kbd.tsx +1 -2
  386. package/src/label.tsx +1 -2
  387. package/src/marker.tsx +4 -5
  388. package/src/menubar.tsx +1 -2
  389. package/src/message-scroller.tsx +9 -10
  390. package/src/message.tsx +2 -3
  391. package/src/native-select.tsx +3 -4
  392. package/src/navigation-menu.tsx +2 -3
  393. package/src/pagination.tsx +5 -4
  394. package/src/popover.tsx +1 -2
  395. package/src/progress.tsx +1 -2
  396. package/src/questionnaire.tsx +6 -7
  397. package/src/scroll-area.tsx +1 -2
  398. package/src/scroll-to-top.tsx +7 -2
  399. package/src/search.tsx +2 -1
  400. package/src/select.tsx +1 -2
  401. package/src/separator.tsx +1 -2
  402. package/src/setupTests.ts +9 -9
  403. package/src/sheet.tsx +1 -2
  404. package/src/sidebar.tsx +15 -16
  405. package/src/skeleton.tsx +1 -2
  406. package/src/slider.tsx +1 -2
  407. package/src/spinner.tsx +8 -7
  408. package/src/support-fab.tsx +5 -1
  409. package/src/switch.tsx +1 -2
  410. package/src/table-of-contents.tsx +8 -11
  411. package/src/table.tsx +1 -2
  412. package/src/tabs.tsx +2 -3
  413. package/src/text.tsx +4 -4
  414. package/src/textarea.tsx +1 -2
  415. package/src/theme-provider.tsx +1 -1
  416. package/src/theme-toggle.tsx +26 -23
  417. package/src/toast.tsx +3 -4
  418. package/src/toaster.tsx +2 -1
  419. package/src/toggle-group.tsx +1 -2
  420. package/src/toggle.tsx +3 -4
  421. package/src/tooltip.tsx +1 -2
  422. package/dist/accordion-BgbjpZAF.js +0 -1
  423. package/dist/alert-dialog-DonbkCSD.js +0 -1
  424. package/dist/avatar-DhvZbCtI.js +0 -1
  425. package/dist/calendar-Bo8kovKR.js +0 -1
  426. package/dist/checkbox-Dt06B4YW.js +0 -1
  427. package/dist/combobox-BB_YzCTY.js +0 -4
  428. package/dist/combobox-YxjYGUoe.mjs +0 -5748
  429. package/dist/context-menu-Dad9hs94.js +0 -1
  430. package/dist/dist-9-j0_8D1.mjs +0 -34
  431. package/dist/dist-BMl8xXCH.mjs +0 -188
  432. package/dist/dist-BOKg7rhq.js +0 -1
  433. package/dist/dist-BPhn-EOy.mjs +0 -15
  434. package/dist/dist-Bivv8B6p.mjs +0 -16
  435. package/dist/dist-C83rnWRv.js +0 -1
  436. package/dist/dist-Cn7g8jD0.js +0 -1
  437. package/dist/dist-DOoZ3vGL.mjs +0 -407
  438. package/dist/dist-DcRkoHAk.js +0 -1
  439. package/dist/dist-NEeQKKDZ.js +0 -1
  440. package/dist/dist-N_70prl1.js +0 -1
  441. package/dist/dist-dMp9dzmY.mjs +0 -20
  442. package/dist/dist-mHQuNOH-.js +0 -1
  443. package/dist/dist-oyFh63Uq.js +0 -1
  444. package/dist/dist-v-Y6tnMq.js +0 -1
  445. package/dist/dist-v9094Auw.js +0 -1
  446. package/dist/dist-yA6iVq_M.js +0 -1
  447. package/dist/dropdown-menu-BpZcobmP.js +0 -1
  448. package/dist/es2015-CYxXY2oV.mjs +0 -727
  449. package/dist/es2015-t2RPC0Rg.js +0 -41
  450. package/dist/hover-card-7NjGqlP0.js +0 -1
  451. package/dist/hover-card-DuRUptxQ.mjs +0 -176
  452. package/dist/menubar-DlOMZeh1.js +0 -1
  453. package/dist/navigation-menu-CrR01R8Z.js +0 -1
  454. package/dist/popover-CFF_HXSf.mjs +0 -222
  455. package/dist/popover-D9pVy08c.js +0 -1
  456. package/dist/radio-group-DhXnB0fI.js +0 -1
  457. package/dist/resizable-ChIqXiu4.js +0 -1
  458. package/dist/resizable-CpovHnG-.mjs +0 -1573
  459. package/dist/scroll-area-CUqjuvqH.js +0 -1
  460. package/dist/scroll-area-DstdIGvS.mjs +0 -539
  461. package/dist/select-CnCTQeh7.js +0 -1
  462. package/dist/separator-BXaVJadH.js +0 -1
  463. package/dist/sidebar-ns_2TNBM.js +0 -1
  464. package/dist/slider-PoIV6N-u.js +0 -1
  465. package/dist/slider-ZnyQjYsS.mjs +0 -460
  466. package/dist/switch-DLY8PkmL.js +0 -1
  467. package/dist/tabs-QBWdNfSK.js +0 -1
  468. package/dist/theme-toggle-Q3UHstP_.js +0 -1
  469. package/dist/toast-BOdziIGg.mjs +0 -424
  470. package/dist/toast-D1fjLwO1.js +0 -1
  471. package/dist/toggle-DtpvPox_.js +0 -1
  472. package/dist/toggle-group-UHY0Tip1.js +0 -1
  473. package/dist/tooltip-BbCL1gtU.mjs +0 -384
  474. package/dist/tooltip-BvpyStn2.js +0 -1
package/src/input-otp.tsx CHANGED
@@ -1,16 +1,15 @@
1
1
  'use client';
2
2
 
3
- import { cn } from 'cn';
4
- import { OTPInput, OTPInputContext } from 'input-otp';
5
- import { MinusIcon } from 'lucide-react';
6
- import * as React from 'react';
7
-
8
3
  import type {
9
4
  InputOTPBaseProps,
10
5
  InputOTPGroupBaseProps,
11
6
  InputOTPSeparatorBaseProps,
12
7
  InputOTPSlotBaseProps,
13
8
  } from '@gv-tech/ui-core';
9
+ import { cn } from 'cn';
10
+ import { OTPInput, OTPInputContext } from 'input-otp';
11
+ import { MinusIcon } from 'lucide-react';
12
+ import * as React from 'react';
14
13
 
15
14
  function InputOTP({
16
15
  className,
@@ -70,7 +69,7 @@ function InputOTPSeparator({ ...props }: React.ComponentProps<'div'> & InputOTPS
70
69
  <div
71
70
  data-slot="input-otp-separator"
72
71
  className="flex items-center [&_svg:not([class*='size-'])]:size-4"
73
- role="separator"
72
+ aria-hidden="true"
74
73
  {...props}
75
74
  >
76
75
  <MinusIcon />
package/src/input.tsx CHANGED
@@ -1,8 +1,7 @@
1
+ import type { InputBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import * as React from 'react';
3
4
 
4
- import type { InputBaseProps } from '@gv-tech/ui-core';
5
-
6
5
  function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
7
6
  return (
8
7
  <input
package/src/item.tsx CHANGED
@@ -1,10 +1,3 @@
1
- import { cva, type VariantProps } from 'class-variance-authority';
2
- import { cn } from 'cn';
3
- import { Slot } from 'radix-ui';
4
- import * as React from 'react';
5
-
6
- import { Separator } from '@/./separator';
7
-
8
1
  import type {
9
2
  ItemActionsBaseProps,
10
3
  ItemBaseProps,
@@ -17,11 +10,16 @@ import type {
17
10
  ItemSeparatorBaseProps,
18
11
  ItemTitleBaseProps,
19
12
  } from '@gv-tech/ui-core';
13
+ import { cva, type VariantProps } from 'class-variance-authority';
14
+ import { cn } from 'cn';
15
+ import { Slot } from 'radix-ui';
16
+ import * as React from 'react';
20
17
 
21
- function ItemGroup({ className, ...props }: React.ComponentProps<'div'> & ItemGroupBaseProps) {
18
+ import { Separator } from '@/./separator';
19
+
20
+ function ItemGroup({ className, ...props }: React.ComponentProps<'ul'> & ItemGroupBaseProps) {
22
21
  return (
23
- <div
24
- role="list"
22
+ <ul
25
23
  data-slot="item-group"
26
24
  className={cn(
27
25
  'group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2',
@@ -37,13 +35,13 @@ function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Sepa
37
35
  }
38
36
 
39
37
  const itemVariants = cva(
40
- 'group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted',
38
+ 'group/item focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors',
41
39
  {
42
40
  variants: {
43
41
  variant: {
44
42
  default: 'border-transparent',
45
43
  outline: 'border-border',
46
- muted: 'border-transparent bg-muted/50',
44
+ muted: 'bg-muted/50 border-transparent',
47
45
  },
48
46
  size: {
49
47
  default: 'gap-2.5 px-3 py-2.5',
package/src/kbd.tsx CHANGED
@@ -1,6 +1,5 @@
1
- import { cn } from 'cn';
2
-
3
1
  import type { KbdBaseProps, KbdGroupBaseProps } from '@gv-tech/ui-core';
2
+ import { cn } from 'cn';
4
3
 
5
4
  function Kbd({ className, ...props }: React.ComponentProps<'kbd'> & KbdBaseProps) {
6
5
  return (
package/src/label.tsx CHANGED
@@ -1,9 +1,8 @@
1
+ import type { LabelBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { Label as LabelPrimitive } from 'radix-ui';
3
4
  import * as React from 'react';
4
5
 
5
- import type { LabelBaseProps } from '@gv-tech/ui-core';
6
-
7
6
  function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
8
7
  return (
9
8
  <LabelPrimitive.Root
package/src/marker.tsx CHANGED
@@ -1,19 +1,18 @@
1
+ import type { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } from '@gv-tech/ui-core';
1
2
  import { cva, type VariantProps } from 'class-variance-authority';
2
3
  import { cn } from 'cn';
3
4
  import { Slot } from 'radix-ui';
4
5
  import * as React from 'react';
5
6
 
6
- import type { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } from '@gv-tech/ui-core';
7
-
8
7
  const markerVariants = cva(
9
- "group/marker relative flex min-h-4 w-full items-center gap-2 text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground",
8
+ "group/marker text-muted-foreground [a]:hover:text-foreground relative flex min-h-4 w-full items-center gap-2 text-start text-sm [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3",
10
9
  {
11
10
  variants: {
12
11
  variant: {
13
12
  default: '',
14
13
  separator:
15
- 'before:me-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ms-1 after:h-px after:min-w-0 after:flex-1 after:bg-border',
16
- border: 'border-b border-border pb-2',
14
+ 'before:bg-border after:bg-border before:me-1 before:h-px before:min-w-0 before:flex-1 after:ms-1 after:h-px after:min-w-0 after:flex-1',
15
+ border: 'border-border border-b pb-2',
17
16
  },
18
17
  },
19
18
  },
package/src/menubar.tsx CHANGED
@@ -1,12 +1,11 @@
1
1
  'use client';
2
2
 
3
+ import type { MenubarBaseProps } from '@gv-tech/ui-core';
3
4
  import { cn } from 'cn';
4
5
  import { CheckIcon, ChevronRightIcon } from 'lucide-react';
5
6
  import { Menubar as MenubarPrimitive } from 'radix-ui';
6
7
  import * as React from 'react';
7
8
 
8
- import type { MenubarBaseProps } from '@gv-tech/ui-core';
9
-
10
9
  function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {
11
10
  return (
12
11
  <MenubarPrimitive.Root
@@ -1,3 +1,11 @@
1
+ import type {
2
+ MessageScrollerBaseProps,
3
+ MessageScrollerButtonBaseProps,
4
+ MessageScrollerContentBaseProps,
5
+ MessageScrollerItemBaseProps,
6
+ MessageScrollerProviderBaseProps,
7
+ MessageScrollerViewportBaseProps,
8
+ } from '@gv-tech/ui-core';
1
9
  import {
2
10
  MessageScroller as MessageScrollerPrimitive,
3
11
  useMessageScroller,
@@ -5,19 +13,10 @@ import {
5
13
  useMessageScrollerVisibility,
6
14
  } from '@shadcn/react/message-scroller';
7
15
  import { cn } from 'cn';
16
+ import { ArrowDownIcon } from 'lucide-react';
8
17
  import * as React from 'react';
9
18
 
10
19
  import { Button } from '@/./button';
11
- import { ArrowDownIcon } from 'lucide-react';
12
-
13
- import type {
14
- MessageScrollerBaseProps,
15
- MessageScrollerButtonBaseProps,
16
- MessageScrollerContentBaseProps,
17
- MessageScrollerItemBaseProps,
18
- MessageScrollerProviderBaseProps,
19
- MessageScrollerViewportBaseProps,
20
- } from '@gv-tech/ui-core';
21
20
 
22
21
  function MessageScrollerProvider(
23
22
  props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider> & MessageScrollerProviderBaseProps,
package/src/message.tsx CHANGED
@@ -1,6 +1,3 @@
1
- import { cn } from 'cn';
2
- import * as React from 'react';
3
-
4
1
  import type {
5
2
  MessageAvatarBaseProps,
6
3
  MessageBaseProps,
@@ -9,6 +6,8 @@ import type {
9
6
  MessageGroupBaseProps,
10
7
  MessageHeaderBaseProps,
11
8
  } from '@gv-tech/ui-core';
9
+ import { cn } from 'cn';
10
+ import * as React from 'react';
12
11
 
13
12
  function MessageGroup({ className, ...props }: React.ComponentProps<'div'> & MessageGroupBaseProps) {
14
13
  return <div data-slot="message-group" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;
@@ -1,12 +1,11 @@
1
- import { cn } from 'cn';
2
- import { ChevronDownIcon } from 'lucide-react';
3
- import * as React from 'react';
4
-
5
1
  import type {
6
2
  NativeSelectBaseProps,
7
3
  NativeSelectOptGroupBaseProps,
8
4
  NativeSelectOptionBaseProps,
9
5
  } from '@gv-tech/ui-core';
6
+ import { cn } from 'cn';
7
+ import { ChevronDownIcon } from 'lucide-react';
8
+ import * as React from 'react';
10
9
 
11
10
  type NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & NativeSelectBaseProps;
12
11
 
@@ -1,11 +1,10 @@
1
+ import type { NavigationMenuBaseProps } from '@gv-tech/ui-core';
1
2
  import { cva } from 'class-variance-authority';
2
3
  import { cn } from 'cn';
3
4
  import { ChevronDownIcon } from 'lucide-react';
4
5
  import { NavigationMenu as NavigationMenuPrimitive } from 'radix-ui';
5
6
  import * as React from 'react';
6
7
 
7
- import type { NavigationMenuBaseProps } from '@gv-tech/ui-core';
8
-
9
8
  function NavigationMenu({
10
9
  className,
11
10
  children,
@@ -44,7 +43,7 @@ function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof
44
43
  }
45
44
 
46
45
  const navigationMenuTriggerStyle = cva(
47
- 'group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted',
46
+ 'group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50',
48
47
  );
49
48
 
50
49
  function NavigationMenuTrigger({
@@ -1,11 +1,10 @@
1
+ import type { PaginationBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
3
4
  import * as React from 'react';
4
5
 
5
6
  import { Button } from '@/./button';
6
7
 
7
- import type { PaginationBaseProps } from '@gv-tech/ui-core';
8
-
9
8
  function Pagination({ className, ...props }: React.ComponentProps<'nav'>) {
10
9
  return (
11
10
  <nav
@@ -31,10 +30,12 @@ type PaginationLinkProps = {
31
30
  } & Pick<React.ComponentProps<typeof Button>, 'size'> &
32
31
  React.ComponentProps<'a'>;
33
32
 
34
- function PaginationLink({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) {
33
+ function PaginationLink({ className, isActive, size = 'icon', children, ...props }: PaginationLinkProps) {
35
34
  return (
36
35
  <Button asChild variant={isActive ? 'outline' : 'ghost'} size={size} className={cn(className)}>
37
- <a aria-current={isActive ? 'page' : undefined} data-slot="pagination-link" data-active={isActive} {...props} />
36
+ <a aria-current={isActive ? 'page' : undefined} data-slot="pagination-link" data-active={isActive} {...props}>
37
+ {children}
38
+ </a>
38
39
  </Button>
39
40
  );
40
41
  }
package/src/popover.tsx CHANGED
@@ -1,9 +1,8 @@
1
+ import type { PopoverBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { Popover as PopoverPrimitive } from 'radix-ui';
3
4
  import * as React from 'react';
4
5
 
5
- import type { PopoverBaseProps } from '@gv-tech/ui-core';
6
-
7
6
  function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {
8
7
  return <PopoverPrimitive.Root data-slot="popover" {...props} />;
9
8
  }
package/src/progress.tsx CHANGED
@@ -1,11 +1,10 @@
1
1
  'use client';
2
2
 
3
+ import type { ProgressBaseProps } from '@gv-tech/ui-core';
3
4
  import { cn } from 'cn';
4
5
  import { Progress as ProgressPrimitive } from 'radix-ui';
5
6
  import * as React from 'react';
6
7
 
7
- import type { ProgressBaseProps } from '@gv-tech/ui-core';
8
-
9
8
  function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {
10
9
  return (
11
10
  <ProgressPrimitive.Root
@@ -1,12 +1,5 @@
1
1
  'use client';
2
2
 
3
- import { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';
4
- import { cn } from 'cn';
5
- import * as React from 'react';
6
-
7
- import { buttonVariants, type Button } from '@/./button';
8
- import { CheckIcon } from 'lucide-react';
9
-
10
3
  import type {
11
4
  QuestionnaireActionsBaseProps,
12
5
  QuestionnaireBaseProps,
@@ -24,6 +17,12 @@ import type {
24
17
  QuestionnaireSubmitBaseProps,
25
18
  QuestionnaireTitleBaseProps,
26
19
  } from '@gv-tech/ui-core';
20
+ import { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';
21
+ import { cn } from 'cn';
22
+ import { CheckIcon } from 'lucide-react';
23
+ import * as React from 'react';
24
+
25
+ import { buttonVariants, type Button } from '@/./button';
27
26
 
28
27
  function Questionnaire({
29
28
  className,
@@ -1,9 +1,8 @@
1
+ import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
3
4
  import * as React from 'react';
4
5
 
5
- import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';
6
-
7
6
  function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
8
7
  return (
9
8
  <ScrollAreaPrimitive.Root data-slot="scroll-area" className={cn('relative', className)} {...props}>
@@ -1,8 +1,9 @@
1
1
  'use client';
2
2
 
3
- import { ScrollToTopBaseProps } from '@gv-tech/ui-core';
3
+ import type { ScrollToTopBaseProps } from '@gv-tech/ui-core';
4
4
  import { ArrowUp } from 'lucide-react';
5
5
  import * as React from 'react';
6
+
6
7
  import { Button } from './button';
7
8
  import { cn } from './lib/utils';
8
9
 
@@ -38,8 +39,12 @@ export function ScrollToTop({
38
39
  React.useEffect(() => {
39
40
  const target = scrollTarget === undefined ? window : scrollTarget;
40
41
 
41
- if (!target) {
42
+ const hideControl = () => {
42
43
  setIsVisible(false);
44
+ };
45
+
46
+ if (!target) {
47
+ hideControl();
43
48
  return;
44
49
  }
45
50
 
package/src/search.tsx CHANGED
@@ -1,8 +1,9 @@
1
1
  'use client';
2
2
 
3
- import { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
3
+ import type { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
4
4
  import { Search as SearchIcon } from 'lucide-react';
5
5
  import * as React from 'react';
6
+
6
7
  import { Button } from './button';
7
8
  import { CommandDialog } from './command';
8
9
  import { cn } from './lib/utils';
package/src/select.tsx CHANGED
@@ -1,12 +1,11 @@
1
1
  'use client';
2
2
 
3
+ import type { SelectBaseProps } from '@gv-tech/ui-core';
3
4
  import { cn } from 'cn';
4
5
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
5
6
  import { Select as SelectPrimitive } from 'radix-ui';
6
7
  import * as React from 'react';
7
8
 
8
- import type { SelectBaseProps } from '@gv-tech/ui-core';
9
-
10
9
  function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {
11
10
  return <SelectPrimitive.Root data-slot="select" {...props} />;
12
11
  }
package/src/separator.tsx CHANGED
@@ -1,9 +1,8 @@
1
+ import type { SeparatorBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { Separator as SeparatorPrimitive } from 'radix-ui';
3
4
  import * as React from 'react';
4
5
 
5
- import type { SeparatorBaseProps } from '@gv-tech/ui-core';
6
-
7
6
  function Separator({
8
7
  className,
9
8
  orientation = 'horizontal',
package/src/setupTests.ts CHANGED
@@ -37,15 +37,15 @@ globalThis.IntersectionObserver = class IntersectionObserver {
37
37
  // matchMedia polyfill
38
38
  Object.defineProperty(window, 'matchMedia', {
39
39
  writable: true,
40
- value: vi.fn().mockImplementation((query) => ({
40
+ value: vi.fn<(query: string) => MediaQueryList>().mockImplementation((query) => ({
41
41
  matches: false,
42
42
  media: query,
43
43
  onchange: null,
44
- addListener: vi.fn(), // deprecated
45
- removeListener: vi.fn(), // deprecated
46
- addEventListener: vi.fn(),
47
- removeEventListener: vi.fn(),
48
- dispatchEvent: vi.fn(),
44
+ addListener: vi.fn<() => void>(), // deprecated
45
+ removeListener: vi.fn<() => void>(), // deprecated
46
+ addEventListener: vi.fn<() => void>(),
47
+ removeEventListener: vi.fn<() => void>(),
48
+ dispatchEvent: vi.fn<() => boolean>(),
49
49
  })),
50
50
  });
51
51
 
@@ -110,6 +110,6 @@ Object.defineProperties(HTMLElement.prototype, {
110
110
  },
111
111
  });
112
112
 
113
- window.HTMLElement.prototype.scrollIntoView = vi.fn();
114
- window.HTMLElement.prototype.releasePointerCapture = vi.fn();
115
- window.HTMLElement.prototype.hasPointerCapture = vi.fn();
113
+ window.HTMLElement.prototype.scrollIntoView = vi.fn<() => void>();
114
+ window.HTMLElement.prototype.releasePointerCapture = vi.fn<() => void>();
115
+ window.HTMLElement.prototype.hasPointerCapture = vi.fn<() => boolean>();
package/src/sheet.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ import type { SheetBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { XIcon } from 'lucide-react';
3
4
  import { Dialog as SheetPrimitive } from 'radix-ui';
@@ -5,8 +6,6 @@ import * as React from 'react';
5
6
 
6
7
  import { Button } from '@/./button';
7
8
 
8
- import type { SheetBaseProps } from '@gv-tech/ui-core';
9
-
10
9
  function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
11
10
  return <SheetPrimitive.Root data-slot="sheet" {...props} />;
12
11
  }
package/src/sidebar.tsx CHANGED
@@ -1,17 +1,3 @@
1
- import { useIsMobile } from '@/hooks/use-mobile';
2
- import { cva, type VariantProps } from 'class-variance-authority';
3
- import { cn } from 'cn';
4
- import { PanelLeftIcon } from 'lucide-react';
5
- import { Slot } from 'radix-ui';
6
- import * as React from 'react';
7
-
8
- import { Button } from '@/./button';
9
- import { Input } from '@/./input';
10
- import { Separator } from '@/./separator';
11
- import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/./sheet';
12
- import { Skeleton } from '@/./skeleton';
13
- import { Tooltip, TooltipContent, TooltipTrigger } from '@/./tooltip';
14
-
15
1
  import type {
16
2
  SidebarBaseProps,
17
3
  SidebarContentBaseProps,
@@ -37,6 +23,19 @@ import type {
37
23
  SidebarSeparatorBaseProps,
38
24
  SidebarTriggerBaseProps,
39
25
  } from '@gv-tech/ui-core';
26
+ import { cva, type VariantProps } from 'class-variance-authority';
27
+ import { cn } from 'cn';
28
+ import { PanelLeftIcon } from 'lucide-react';
29
+ import { Slot } from 'radix-ui';
30
+ import * as React from 'react';
31
+
32
+ import { Button } from '@/./button';
33
+ import { Input } from '@/./input';
34
+ import { Separator } from '@/./separator';
35
+ import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/./sheet';
36
+ import { Skeleton } from '@/./skeleton';
37
+ import { Tooltip, TooltipContent, TooltipTrigger } from '@/./tooltip';
38
+ import { useIsMobile } from '@/hooks/use-mobile';
40
39
 
41
40
  const SIDEBAR_COOKIE_NAME = 'sidebar_state';
42
41
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -454,13 +453,13 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'> & S
454
453
  }
455
454
 
456
455
  const sidebarMenuButtonVariants = cva(
457
- 'peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate',
456
+ 'peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:font-medium [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate',
458
457
  {
459
458
  variants: {
460
459
  variant: {
461
460
  default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
462
461
  outline:
463
- 'bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',
462
+ 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',
464
463
  },
465
464
  size: {
466
465
  default: 'h-8 text-sm',
package/src/skeleton.tsx CHANGED
@@ -1,6 +1,5 @@
1
- import { cn } from 'cn';
2
-
3
1
  import type { SkeletonBaseProps } from '@gv-tech/ui-core';
2
+ import { cn } from 'cn';
4
3
 
5
4
  function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
6
5
  return <div data-slot="skeleton" className={cn('bg-muted animate-pulse rounded-md', className)} {...props} />;
package/src/slider.tsx CHANGED
@@ -1,11 +1,10 @@
1
1
  'use client';
2
2
 
3
+ import type { SliderBaseProps } from '@gv-tech/ui-core';
3
4
  import { cn } from 'cn';
4
5
  import { Slider as SliderPrimitive } from 'radix-ui';
5
6
  import * as React from 'react';
6
7
 
7
- import type { SliderBaseProps } from '@gv-tech/ui-core';
8
-
9
8
  function Slider({
10
9
  className,
11
10
  defaultValue,
package/src/spinner.tsx CHANGED
@@ -1,17 +1,18 @@
1
+ import type { SpinnerBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import { Loader2Icon } from 'lucide-react';
4
+ import * as React from 'react';
3
5
 
4
- import type { SpinnerBaseProps } from '@gv-tech/ui-core';
5
-
6
- function Spinner({ className, ...props }: React.ComponentProps<'svg'> & SpinnerBaseProps) {
6
+ function Spinner({ className, ...props }: React.ComponentProps<'output'> & SpinnerBaseProps) {
7
7
  return (
8
- <Loader2Icon
8
+ <output
9
9
  data-slot="spinner"
10
- role="status"
11
10
  aria-label="Loading"
12
- className={cn('size-4 animate-spin', className)}
11
+ className={cn('inline-flex size-4 animate-spin', className)}
13
12
  {...props}
14
- />
13
+ >
14
+ <Loader2Icon aria-hidden="true" className="size-full" />
15
+ </output>
15
16
  );
16
17
  }
17
18
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { Coffee, ExternalLink } from 'lucide-react';
4
4
  import * as React from 'react';
5
+
5
6
  import { Button } from './button';
6
7
  import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from './dialog';
7
8
  import { Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle } from './drawer';
@@ -66,8 +67,11 @@ const useIsMobile = () => {
66
67
 
67
68
  const mediaQuery = window.matchMedia(MOBILE_QUERY);
68
69
  const onChange = (event: MediaQueryListEvent) => setIsMobile(event.matches);
70
+ const syncInitialValue = () => {
71
+ setIsMobile(mediaQuery.matches);
72
+ };
69
73
 
70
- setIsMobile(mediaQuery.matches);
74
+ syncInitialValue();
71
75
  mediaQuery.addEventListener('change', onChange);
72
76
 
73
77
  return () => {
package/src/switch.tsx CHANGED
@@ -1,11 +1,10 @@
1
1
  'use client';
2
2
 
3
+ import type { SwitchBaseProps } from '@gv-tech/ui-core';
3
4
  import { cn } from 'cn';
4
5
  import { Switch as SwitchPrimitive } from 'radix-ui';
5
6
  import * as React from 'react';
6
7
 
7
- import type { SwitchBaseProps } from '@gv-tech/ui-core';
8
-
9
8
  function Switch({
10
9
  className,
11
10
  size = 'default',
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import {
3
+ import type {
4
4
  HeadingItem,
5
5
  TableOfContentsBaseProps,
6
6
  TableOfContentsContentBaseProps,
@@ -8,6 +8,7 @@ import {
8
8
  TableOfContentsRootBaseProps,
9
9
  } from '@gv-tech/ui-core';
10
10
  import * as React from 'react';
11
+
11
12
  import { cn, slugify } from './lib/utils';
12
13
 
13
14
  // Context for sharing heading data
@@ -33,10 +34,9 @@ function useTOC() {
33
34
  export type TableOfContentsProps = TableOfContentsRootBaseProps;
34
35
 
35
36
  /**
36
- * Root component that provides the Table of Contents context.
37
- * Can be used as a wrapper OR standalone.
38
- * If used as a wrapper: <TableOfContents><List /><Content>{children}</Content></TableOfContents>
39
- * If used standalone: <TableOfContents /> (requires container ref or defaults to document)
37
+ * Root component that provides the Table of Contents context. Can be used as a wrapper OR standalone. If used as a
38
+ * wrapper: <TableOfContents><List /><Content>{children}</Content></TableOfContents> If used standalone:
39
+ * <TableOfContents /> (requires container ref or defaults to document)
40
40
  */
41
41
  function TableOfContents({
42
42
  children,
@@ -98,9 +98,7 @@ function TableOfContents({
98
98
  );
99
99
  }
100
100
 
101
- /**
102
- * Renders the actual list of links.
103
- */
101
+ /** Renders the actual list of links. */
104
102
  function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
105
103
  const { headings, activeId, activeHeadingText } = useTOC();
106
104
  const [isOpen, setIsOpen] = React.useState(false);
@@ -161,6 +159,7 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
161
159
  <div className={cn('bg-background/95 sticky top-0 z-40 border-b backdrop-blur lg:hidden', className)}>
162
160
  <button
163
161
  onClick={() => setIsOpen(!isOpen)}
162
+ aria-label={activeHeadingText ? `On this page: ${activeHeadingText}` : 'Table of contents'}
164
163
  className="flex w-full items-center justify-between px-4 py-3 text-left"
165
164
  >
166
165
  <div className="flex items-center gap-2 overflow-hidden">
@@ -198,9 +197,7 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
198
197
  );
199
198
  }
200
199
 
201
- /**
202
- * Wraps the content area and automatically detects headings within it.
203
- */
200
+ /** Wraps the content area and automatically detects headings within it. */
204
201
  function TableOfContentsContent({ children, className }: TableOfContentsContentBaseProps) {
205
202
  const { registerHeadings, setActiveId, config } = useTOC();
206
203
  const contentRef = React.useRef<HTMLDivElement>(null);
package/src/table.tsx CHANGED
@@ -1,8 +1,7 @@
1
+ import type { TableBaseProps } from '@gv-tech/ui-core';
1
2
  import { cn } from 'cn';
2
3
  import * as React from 'react';
3
4
 
4
- import type { TableBaseProps } from '@gv-tech/ui-core';
5
-
6
5
  function Table({ className, ...props }: React.ComponentProps<'table'>) {
7
6
  return (
8
7
  <div data-slot="table-container" className="relative w-full overflow-x-auto">