@gv-tech/ui-web 2.29.0 → 2.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. package/dist/__contracts.d.ts +0 -1
  2. package/dist/__contracts.d.ts.map +1 -1
  3. package/dist/accordion-Bd0-CZQn.js +1 -0
  4. package/dist/accordion-Cf6DNbLH.mjs +244 -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 -2
  9. package/dist/{alert-dialog-BkUyJb_F.mjs → alert-dialog-BxFH0Lwn.mjs} +73 -75
  10. package/dist/alert-dialog-C6vNmGBL.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 -2
  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 +4 -5
  19. package/dist/{aspect-ratio-C7oBX-p_.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
  20. package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
  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 -2
  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 +5 -6
  29. package/dist/avatar-B5PWwGhY.mjs +136 -0
  30. package/dist/avatar-CFhYRM52.js +1 -0
  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 -2
  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 +6 -7
  39. package/dist/breadcrumb.cjs +1 -1
  40. package/dist/breadcrumb.d.ts.map +1 -1
  41. package/dist/breadcrumb.mjs +3 -6
  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 +6 -7
  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 +5 -7
  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 +5 -6
  54. package/dist/calendar-D5qgt2o2.js +1 -0
  55. package/dist/{calendar-CkHWa9Uu.mjs → calendar-DIqXNjOR.mjs} +732 -879
  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 -2
  60. package/dist/card.cjs +1 -1
  61. package/dist/card.d.ts.map +1 -1
  62. package/dist/card.mjs +2 -3
  63. package/dist/carousel-D-xEqRCX.js +1 -0
  64. package/dist/{carousel-ynaeMNIV.mjs → carousel-DPjWmM_A.mjs} +15 -19
  65. package/dist/carousel.cjs +1 -1
  66. package/dist/carousel.d.ts +3 -3
  67. package/dist/carousel.d.ts.map +1 -1
  68. package/dist/carousel.mjs +1 -2
  69. package/dist/chart.cjs +2 -2
  70. package/dist/chart.mjs +14 -15
  71. package/dist/{checkbox-BLvAEmRC.mjs → checkbox-DEPm1BBc.mjs} +70 -68
  72. package/dist/checkbox-DI9Hn_e_.js +1 -0
  73. package/dist/checkbox.cjs +1 -1
  74. package/dist/checkbox.d.ts +1 -1
  75. package/dist/checkbox.d.ts.map +1 -1
  76. package/dist/checkbox.mjs +1 -2
  77. package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
  78. package/dist/{chunk-HBS6WEDP-CzyhzCaP.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
  79. package/dist/collapsible.cjs +1 -1
  80. package/dist/collapsible.d.ts +4 -4
  81. package/dist/collapsible.d.ts.map +1 -1
  82. package/dist/collapsible.mjs +8 -9
  83. package/dist/combobox-C4y8AbZX.mjs +5644 -0
  84. package/dist/combobox-boXp-mix.js +3 -0
  85. package/dist/combobox.cjs +1 -1
  86. package/dist/combobox.d.ts.map +1 -1
  87. package/dist/combobox.mjs +1 -2
  88. package/dist/command-BnW6UIVk.js +1 -0
  89. package/dist/{command-DY6u8V0D.mjs → command-Cbsp7PBx.mjs} +121 -124
  90. package/dist/command.cjs +1 -1
  91. package/dist/command.d.ts +1 -1
  92. package/dist/command.d.ts.map +1 -1
  93. package/dist/command.mjs +1 -2
  94. package/dist/context-menu-CwsdFpx1.js +1 -0
  95. package/dist/{context-menu-tL6CY6a0.mjs → context-menu-FNgV55ZV.mjs} +137 -140
  96. package/dist/context-menu.cjs +1 -1
  97. package/dist/context-menu.d.ts +1 -1
  98. package/dist/context-menu.d.ts.map +1 -1
  99. package/dist/context-menu.mjs +1 -2
  100. package/dist/dialog.cjs +1 -1
  101. package/dist/dialog.d.ts +1 -1
  102. package/dist/dialog.d.ts.map +1 -1
  103. package/dist/dialog.mjs +3 -4
  104. package/dist/direction.cjs +1 -1
  105. package/dist/direction.d.ts +1 -1
  106. package/dist/direction.d.ts.map +1 -1
  107. package/dist/direction.mjs +2 -3
  108. package/dist/dist-7YyzJonC.mjs +39 -0
  109. package/dist/dist-AlmToDtO.mjs +17 -0
  110. package/dist/{dist-DyMv0xk8.mjs → dist-B76UOZbx.mjs} +1 -2
  111. package/dist/{dist-BQhMregZ.mjs → dist-B7Ph9-T6.mjs} +2 -3
  112. package/dist/dist-B7jnFMko.js +1 -0
  113. package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
  114. package/dist/dist-BQkDLAY7.js +1 -0
  115. package/dist/dist-Bal96K8t.js +1 -0
  116. package/dist/dist-Blgp9lfa.js +1 -0
  117. package/dist/{dist-Dg9ASyqI.mjs → dist-BnlI08Je.mjs} +4 -4
  118. package/dist/{dist-5r7hQmO0.mjs → dist-Bu-uFV1C.mjs} +60 -56
  119. package/dist/dist-C2BHd5i1.mjs +460 -0
  120. package/dist/{dist-8fYwoWd4.mjs → dist-C516Vwxy.mjs} +23 -18
  121. package/dist/dist-CBlqVBTk.js +1 -0
  122. package/dist/dist-CDcZ8WMF.js +1 -0
  123. package/dist/dist-CDksSmTD.mjs +189 -0
  124. package/dist/dist-CF-qVmmV.js +1 -0
  125. package/dist/dist-CIgGRTmJ.js +1 -0
  126. package/dist/dist-CJqVmdrU.js +1 -0
  127. package/dist/{dist-DMwCTE2i.mjs → dist-COqM3IM6.mjs} +3 -4
  128. package/dist/{dist-CYrqAnIr.mjs → dist-CbWpCWog.mjs} +13 -15
  129. package/dist/{dist-rx5WaFf5.mjs → dist-CcGLWbPa.mjs} +3 -4
  130. package/dist/dist-Cn4F8XlY.mjs +220 -0
  131. package/dist/dist-CoTs6T03.js +1 -0
  132. package/dist/dist-Co_xSt6d.js +1 -0
  133. package/dist/{dist-CBsYNwXz.mjs → dist-Cu0GG-3j.mjs} +2 -3
  134. package/dist/{dist-BUXpRW9O.mjs → dist-DKI-XYwI.mjs} +3 -5
  135. package/dist/dist-DQeXXRYL.mjs +201 -0
  136. package/dist/dist-DW2ltK5-.js +1 -0
  137. package/dist/dist-DWcKY_sJ.js +1 -0
  138. package/dist/dist-DdAeWIwf.js +1 -0
  139. package/dist/dist-DhubV_gU.mjs +4 -0
  140. package/dist/dist-DmY7elIQ.js +1 -0
  141. package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
  142. package/dist/dist-DuQlxGyN.js +1 -0
  143. package/dist/dist-KFF7QKuL.js +1 -0
  144. package/dist/dist-RXrZgzkO.js +1 -0
  145. package/dist/dist-R_G5UQRm.js +1 -0
  146. package/dist/dist-dwRwxUPt.mjs +22 -0
  147. package/dist/dist-fzmUl3YX.mjs +553 -0
  148. package/dist/{dist-ByW6RHeZ.mjs → dist-hBsne-A2.mjs} +24 -26
  149. package/dist/{dist-BIXhHahX.mjs → dist-ljiGYyay.mjs} +4 -5
  150. package/dist/dist-pqMcQ1Nk.js +1 -0
  151. package/dist/dist-zmnQp5Xf.js +1 -0
  152. package/dist/drawer.cjs +1 -1
  153. package/dist/drawer.d.ts +1 -1
  154. package/dist/drawer.d.ts.map +1 -1
  155. package/dist/drawer.mjs +2 -3
  156. package/dist/dropdown-menu-ChuqZeix.js +1 -0
  157. package/dist/{dropdown-menu-BWqWoYis.mjs → dropdown-menu-DU7KNoXP.mjs} +131 -133
  158. package/dist/dropdown-menu.cjs +1 -1
  159. package/dist/dropdown-menu.d.ts +1 -1
  160. package/dist/dropdown-menu.d.ts.map +1 -1
  161. package/dist/dropdown-menu.mjs +1 -2
  162. package/dist/empty.cjs +1 -1
  163. package/dist/empty.d.ts +7 -7
  164. package/dist/empty.d.ts.map +1 -1
  165. package/dist/empty.mjs +3 -4
  166. package/dist/es2015-BooeZGhO.mjs +554 -0
  167. package/dist/es2015-Dggv0vx3.js +41 -0
  168. package/dist/field.cjs +1 -1
  169. package/dist/field.d.ts +12 -12
  170. package/dist/field.d.ts.map +1 -1
  171. package/dist/field.mjs +6 -8
  172. package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
  173. package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
  174. package/dist/form.cjs +1 -1
  175. package/dist/form.d.ts +3 -3
  176. package/dist/form.d.ts.map +1 -1
  177. package/dist/form.mjs +19 -20
  178. package/dist/hooks/use-theme.d.ts +52 -52
  179. package/dist/hover-card-BeqCs_2R.js +1 -0
  180. package/dist/hover-card-w8PmCyw2.mjs +176 -0
  181. package/dist/hover-card.cjs +1 -1
  182. package/dist/hover-card.d.ts +1 -1
  183. package/dist/hover-card.d.ts.map +1 -1
  184. package/dist/hover-card.mjs +1 -2
  185. package/dist/index.cjs +1 -1
  186. package/dist/index.mjs +66 -66
  187. package/dist/input-group.cjs +1 -1
  188. package/dist/input-group.d.ts +3 -3
  189. package/dist/input-group.d.ts.map +1 -1
  190. package/dist/input-group.mjs +5 -11
  191. package/dist/{input-otp-m_BTudNY.mjs → input-otp-Bn_Uy1mR.mjs} +7 -18
  192. package/dist/input-otp-CTRB_0Xp.js +20 -0
  193. package/dist/input-otp.cjs +1 -1
  194. package/dist/input-otp.d.ts +1 -1
  195. package/dist/input-otp.d.ts.map +1 -1
  196. package/dist/input-otp.mjs +1 -2
  197. package/dist/input.cjs +1 -1
  198. package/dist/input.d.ts.map +1 -1
  199. package/dist/input.mjs +2 -3
  200. package/dist/item.cjs +1 -1
  201. package/dist/item.d.ts +2 -2
  202. package/dist/item.d.ts.map +1 -1
  203. package/dist/item.mjs +7 -9
  204. package/dist/kbd.cjs +1 -1
  205. package/dist/kbd.d.ts +2 -2
  206. package/dist/kbd.d.ts.map +1 -1
  207. package/dist/kbd.mjs +2 -3
  208. package/dist/{label-DVA-YKpB.mjs → label-Da0kELfR.mjs} +4 -6
  209. package/dist/label-JMa1tFfC.js +1 -0
  210. package/dist/label.cjs +1 -1
  211. package/dist/label.d.ts +1 -1
  212. package/dist/label.d.ts.map +1 -1
  213. package/dist/label.mjs +1 -2
  214. package/dist/marker.cjs +1 -1
  215. package/dist/marker.d.ts +1 -1
  216. package/dist/marker.d.ts.map +1 -1
  217. package/dist/marker.mjs +6 -7
  218. package/dist/menubar-B7sRxpE4.mjs +405 -0
  219. package/dist/menubar-Bd-QKMcw.js +1 -0
  220. package/dist/menubar.cjs +1 -1
  221. package/dist/menubar.d.ts +1 -1
  222. package/dist/menubar.d.ts.map +1 -1
  223. package/dist/menubar.mjs +1 -2
  224. package/dist/{message-scroller-FwdKclRM.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
  225. package/dist/message-scroller-BJb4Mh_I.js +1 -0
  226. package/dist/message-scroller.cjs +1 -1
  227. package/dist/message-scroller.d.ts +1 -1
  228. package/dist/message-scroller.d.ts.map +1 -1
  229. package/dist/message-scroller.mjs +1 -2
  230. package/dist/message.cjs +1 -1
  231. package/dist/message.d.ts.map +1 -1
  232. package/dist/message.mjs +2 -3
  233. package/dist/native-select.cjs +1 -1
  234. package/dist/native-select.d.ts.map +1 -1
  235. package/dist/native-select.mjs +2 -3
  236. package/dist/navigation-menu-B-RwfscB.mjs +638 -0
  237. package/dist/navigation-menu-kPwxYZCR.js +1 -0
  238. package/dist/navigation-menu.cjs +1 -1
  239. package/dist/navigation-menu.d.ts +1 -1
  240. package/dist/navigation-menu.d.ts.map +1 -1
  241. package/dist/navigation-menu.mjs +1 -2
  242. package/dist/pagination.cjs +1 -1
  243. package/dist/pagination.d.ts +2 -2
  244. package/dist/pagination.d.ts.map +1 -1
  245. package/dist/pagination.mjs +5 -5
  246. package/dist/popover-Cq5cTNtC.js +1 -0
  247. package/dist/popover-T6Ra737i.mjs +241 -0
  248. package/dist/popover.cjs +1 -1
  249. package/dist/popover.d.ts +1 -1
  250. package/dist/popover.d.ts.map +1 -1
  251. package/dist/popover.mjs +1 -2
  252. package/dist/{progress-ClcVCqjl.mjs → progress-e9YzxvRo.mjs} +15 -18
  253. package/dist/progress-iUSEI7J9.js +6 -0
  254. package/dist/progress.cjs +1 -1
  255. package/dist/progress.d.ts +1 -1
  256. package/dist/progress.d.ts.map +1 -1
  257. package/dist/progress.mjs +1 -2
  258. package/dist/{questionnaire-DKWcZeWT.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
  259. package/dist/questionnaire-CcymIPae.js +1 -0
  260. package/dist/questionnaire.cjs +1 -1
  261. package/dist/questionnaire.d.ts +1 -1
  262. package/dist/questionnaire.d.ts.map +1 -1
  263. package/dist/questionnaire.mjs +1 -2
  264. package/dist/{radio-group-5VwmCXRK.mjs → radio-group-BKpiDcIb.mjs} +76 -77
  265. package/dist/radio-group-DPEzCmxe.js +1 -0
  266. package/dist/radio-group.cjs +1 -1
  267. package/dist/radio-group.mjs +1 -2
  268. package/dist/resizable-ByF0NmN9.mjs +2153 -0
  269. package/dist/resizable-oL3v42zT.js +1 -0
  270. package/dist/resizable.cjs +1 -1
  271. package/dist/resizable.d.ts +3 -3
  272. package/dist/resizable.mjs +1 -2
  273. package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
  274. package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
  275. package/dist/scroll-area-BzNeOQ6C.mjs +568 -0
  276. package/dist/scroll-area-s4_ZJK59.js +1 -0
  277. package/dist/scroll-area.cjs +1 -1
  278. package/dist/scroll-area.d.ts +1 -1
  279. package/dist/scroll-area.d.ts.map +1 -1
  280. package/dist/scroll-area.mjs +1 -2
  281. package/dist/scroll-to-top.cjs +1 -1
  282. package/dist/scroll-to-top.d.ts.map +1 -1
  283. package/dist/scroll-to-top.mjs +13 -16
  284. package/dist/search.cjs +1 -1
  285. package/dist/search.d.ts.map +1 -1
  286. package/dist/search.mjs +12 -13
  287. package/dist/select-B_nRxX2Y.mjs +831 -0
  288. package/dist/select-j5_dph9S.js +1 -0
  289. package/dist/select.cjs +1 -1
  290. package/dist/select.d.ts +1 -1
  291. package/dist/select.d.ts.map +1 -1
  292. package/dist/select.mjs +1 -2
  293. package/dist/separator-Bn-3XUSJ.js +1 -0
  294. package/dist/separator-CCcMNS78.mjs +38 -0
  295. package/dist/separator.cjs +1 -1
  296. package/dist/separator.d.ts +1 -1
  297. package/dist/separator.d.ts.map +1 -1
  298. package/dist/separator.mjs +1 -2
  299. package/dist/sheet.cjs +1 -1
  300. package/dist/sheet.d.ts +1 -1
  301. package/dist/sheet.d.ts.map +1 -1
  302. package/dist/sheet.mjs +3 -4
  303. package/dist/{sidebar-B5q6nH2G.mjs → sidebar-C2ax_A0G.mjs} +50 -52
  304. package/dist/sidebar-Cnem2n5A.js +1 -0
  305. package/dist/sidebar.cjs +1 -1
  306. package/dist/sidebar.d.ts +1 -1
  307. package/dist/sidebar.d.ts.map +1 -1
  308. package/dist/sidebar.mjs +1 -2
  309. package/dist/skeleton.cjs +1 -1
  310. package/dist/skeleton.d.ts +1 -1
  311. package/dist/skeleton.d.ts.map +1 -1
  312. package/dist/skeleton.mjs +2 -3
  313. package/dist/slider-B2PUTc7W.mjs +484 -0
  314. package/dist/slider-wZuXwuib.js +1 -0
  315. package/dist/slider.cjs +1 -1
  316. package/dist/slider.d.ts +1 -1
  317. package/dist/slider.d.ts.map +1 -1
  318. package/dist/slider.mjs +1 -2
  319. package/dist/sonner.d.ts +1 -1
  320. package/dist/sonner.mjs +1 -2
  321. package/dist/spinner.cjs +1 -1
  322. package/dist/spinner.d.ts +2 -1
  323. package/dist/spinner.d.ts.map +1 -1
  324. package/dist/spinner.mjs +10 -7
  325. package/dist/support-fab.cjs +1 -1
  326. package/dist/support-fab.d.ts.map +1 -1
  327. package/dist/support-fab.mjs +21 -22
  328. package/dist/switch-CD675xU7.js +1 -0
  329. package/dist/{switch-DagjjAQu.mjs → switch-ikzIzrme.mjs} +66 -64
  330. package/dist/switch.cjs +1 -1
  331. package/dist/switch.d.ts +1 -1
  332. package/dist/switch.d.ts.map +1 -1
  333. package/dist/switch.mjs +1 -2
  334. package/dist/table-of-contents.cjs +1 -1
  335. package/dist/table-of-contents.d.ts +5 -10
  336. package/dist/table-of-contents.d.ts.map +1 -1
  337. package/dist/table-of-contents.mjs +6 -6
  338. package/dist/table.cjs +1 -1
  339. package/dist/table.d.ts.map +1 -1
  340. package/dist/table.mjs +2 -3
  341. package/dist/{tabs-OQ6rj-3B.mjs → tabs-DCm5zOYB.mjs} +73 -73
  342. package/dist/tabs-fcahDQDp.js +1 -0
  343. package/dist/tabs.cjs +1 -1
  344. package/dist/tabs.d.ts +1 -1
  345. package/dist/tabs.d.ts.map +1 -1
  346. package/dist/tabs.mjs +1 -2
  347. package/dist/text.cjs +1 -1
  348. package/dist/text.d.ts +1 -1
  349. package/dist/text.d.ts.map +1 -1
  350. package/dist/text.mjs +17 -15
  351. package/dist/textarea.cjs +1 -1
  352. package/dist/textarea.d.ts.map +1 -1
  353. package/dist/textarea.mjs +2 -3
  354. package/dist/theme-provider.d.ts +1 -1
  355. package/dist/theme-provider.d.ts.map +1 -1
  356. package/dist/theme-provider.mjs +1 -2
  357. package/dist/theme-toggle-BGTJsIA-.js +1 -0
  358. package/dist/{theme-toggle-BCcH-QtH.mjs → theme-toggle-BSMwXb8o.mjs} +29 -22
  359. package/dist/theme-toggle.cjs +1 -1
  360. package/dist/theme-toggle.d.ts +1 -1
  361. package/dist/theme-toggle.d.ts.map +1 -1
  362. package/dist/theme-toggle.mjs +1 -2
  363. package/dist/toast-C31v9P1K.js +1 -0
  364. package/dist/toast-vU5ISM03.mjs +445 -0
  365. package/dist/toast.cjs +1 -1
  366. package/dist/toast.d.ts +1 -1
  367. package/dist/toast.d.ts.map +1 -1
  368. package/dist/toast.mjs +1 -2
  369. package/dist/toaster-CaJyOCyC.js +1 -0
  370. package/dist/{toaster-CKAJ9cht.mjs → toaster-D2BV6jez.mjs} +3 -5
  371. package/dist/toaster.cjs +1 -1
  372. package/dist/toaster.d.ts +1 -1
  373. package/dist/toaster.d.ts.map +1 -1
  374. package/dist/toaster.mjs +1 -2
  375. package/dist/toggle-CSZdCCwX.js +1 -0
  376. package/dist/{toggle-CuLxBIWH.mjs → toggle-Cv9YYwLI.mjs} +14 -15
  377. package/dist/toggle-group-RT8wyBwK.js +1 -0
  378. package/dist/toggle-group-qvjasXS-.mjs +166 -0
  379. package/dist/toggle-group.cjs +1 -1
  380. package/dist/toggle-group.d.ts +1 -1
  381. package/dist/toggle-group.d.ts.map +1 -1
  382. package/dist/toggle-group.mjs +1 -2
  383. package/dist/toggle.cjs +1 -1
  384. package/dist/toggle.d.ts +1 -1
  385. package/dist/toggle.d.ts.map +1 -1
  386. package/dist/toggle.mjs +1 -2
  387. package/dist/tooltip-7ERoN5mV.mjs +386 -0
  388. package/dist/tooltip-CC9_spXT.js +1 -0
  389. package/dist/tooltip.cjs +1 -1
  390. package/dist/tooltip.d.ts +1 -1
  391. package/dist/tooltip.d.ts.map +1 -1
  392. package/dist/tooltip.mjs +1 -2
  393. package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
  394. package/package.json +18 -18
  395. package/src/__contracts.ts +318 -321
  396. package/src/accordion.tsx +1 -2
  397. package/src/alert-dialog.tsx +1 -2
  398. package/src/alert.tsx +3 -4
  399. package/src/aspect-ratio.tsx +1 -2
  400. package/src/attachment.tsx +8 -9
  401. package/src/avatar.tsx +1 -2
  402. package/src/badge.tsx +2 -3
  403. package/src/breadcrumb.tsx +1 -4
  404. package/src/bubble.tsx +7 -8
  405. package/src/button-group.tsx +2 -3
  406. package/src/button.tsx +3 -4
  407. package/src/calendar.tsx +8 -9
  408. package/src/card.tsx +1 -2
  409. package/src/carousel.tsx +9 -10
  410. package/src/checkbox.tsx +1 -2
  411. package/src/collapsible.tsx +1 -2
  412. package/src/combobox.tsx +6 -7
  413. package/src/command.tsx +1 -2
  414. package/src/context-menu.tsx +1 -2
  415. package/src/dialog.tsx +1 -2
  416. package/src/direction.tsx +1 -2
  417. package/src/drawer.tsx +1 -2
  418. package/src/dropdown-menu.tsx +1 -2
  419. package/src/empty.tsx +2 -3
  420. package/src/field.tsx +9 -11
  421. package/src/form.tsx +8 -8
  422. package/src/hooks/use-mobile.ts +1 -1
  423. package/src/hover-card.tsx +1 -2
  424. package/src/input-group.tsx +12 -21
  425. package/src/input-otp.tsx +5 -6
  426. package/src/input.tsx +1 -2
  427. package/src/item.tsx +10 -12
  428. package/src/kbd.tsx +1 -2
  429. package/src/label.tsx +1 -2
  430. package/src/marker.tsx +4 -5
  431. package/src/menubar.tsx +1 -2
  432. package/src/message-scroller.tsx +9 -10
  433. package/src/message.tsx +2 -3
  434. package/src/native-select.tsx +3 -4
  435. package/src/navigation-menu.tsx +2 -3
  436. package/src/pagination.tsx +5 -4
  437. package/src/popover.tsx +1 -2
  438. package/src/progress.tsx +1 -2
  439. package/src/questionnaire.tsx +6 -7
  440. package/src/scroll-area.tsx +1 -2
  441. package/src/scroll-to-top.tsx +7 -2
  442. package/src/search.tsx +2 -1
  443. package/src/select.tsx +1 -2
  444. package/src/separator.tsx +1 -2
  445. package/src/setupTests.ts +9 -9
  446. package/src/sheet.tsx +1 -2
  447. package/src/sidebar.tsx +15 -16
  448. package/src/skeleton.tsx +1 -2
  449. package/src/slider.tsx +1 -2
  450. package/src/spinner.tsx +8 -7
  451. package/src/support-fab.tsx +5 -1
  452. package/src/switch.tsx +1 -2
  453. package/src/table-of-contents.tsx +8 -11
  454. package/src/table.tsx +1 -2
  455. package/src/tabs.tsx +2 -3
  456. package/src/text.tsx +4 -4
  457. package/src/textarea.tsx +1 -2
  458. package/src/theme-provider.tsx +1 -1
  459. package/src/theme-toggle.tsx +26 -23
  460. package/src/toast.tsx +3 -4
  461. package/src/toaster.tsx +2 -1
  462. package/src/toggle-group.tsx +1 -2
  463. package/src/toggle.tsx +3 -4
  464. package/src/tooltip.tsx +1 -2
  465. package/dist/accordion-BgbjpZAF.js +0 -1
  466. package/dist/accordion-Bqt-y-u7.mjs +0 -239
  467. package/dist/alert-dialog-DonbkCSD.js +0 -1
  468. package/dist/aspect-ratio-X3HWxQz0.js +0 -1
  469. package/dist/avatar-DTkhTxt7.mjs +0 -133
  470. package/dist/avatar-DhvZbCtI.js +0 -1
  471. package/dist/calendar-Bo8kovKR.js +0 -1
  472. package/dist/carousel-Cv5isLeg.js +0 -1
  473. package/dist/checkbox-Dt06B4YW.js +0 -1
  474. package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
  475. package/dist/chunk-mLOUI7ql.js +0 -1
  476. package/dist/combobox-BB_YzCTY.js +0 -4
  477. package/dist/combobox-YxjYGUoe.mjs +0 -5748
  478. package/dist/command-BqO-CfH6.js +0 -1
  479. package/dist/context-menu-Dad9hs94.js +0 -1
  480. package/dist/dist-6c2NeKfz.mjs +0 -536
  481. package/dist/dist-9-j0_8D1.mjs +0 -34
  482. package/dist/dist-BMl8xXCH.mjs +0 -188
  483. package/dist/dist-BOKg7rhq.js +0 -1
  484. package/dist/dist-BPhn-EOy.mjs +0 -15
  485. package/dist/dist-BTN2t9yv.js +0 -1
  486. package/dist/dist-Bivv8B6p.mjs +0 -16
  487. package/dist/dist-BoNQb2nd.js +0 -1
  488. package/dist/dist-C83rnWRv.js +0 -1
  489. package/dist/dist-C8Pm6LRc.js +0 -1
  490. package/dist/dist-CGgemr2V.js +0 -1
  491. package/dist/dist-C_iFkwIX.js +0 -1
  492. package/dist/dist-CdBAkUWT.js +0 -1
  493. package/dist/dist-Cn7g8jD0.js +0 -1
  494. package/dist/dist-D7-Fky36.js +0 -1
  495. package/dist/dist-D7UHN1DJ.mjs +0 -5
  496. package/dist/dist-DOoZ3vGL.mjs +0 -407
  497. package/dist/dist-DYUvPCPC.js +0 -1
  498. package/dist/dist-DcRkoHAk.js +0 -1
  499. package/dist/dist-DfvK7DpO.mjs +0 -213
  500. package/dist/dist-Dj9s8AIv.js +0 -1
  501. package/dist/dist-NEeQKKDZ.js +0 -1
  502. package/dist/dist-N_70prl1.js +0 -1
  503. package/dist/dist-YAADIsyo.js +0 -1
  504. package/dist/dist-dMp9dzmY.mjs +0 -20
  505. package/dist/dist-mHQuNOH-.js +0 -1
  506. package/dist/dist-oyFh63Uq.js +0 -1
  507. package/dist/dist-v-Y6tnMq.js +0 -1
  508. package/dist/dist-v9094Auw.js +0 -1
  509. package/dist/dist-yA6iVq_M.js +0 -1
  510. package/dist/dropdown-menu-BpZcobmP.js +0 -1
  511. package/dist/es2015-CYxXY2oV.mjs +0 -727
  512. package/dist/es2015-t2RPC0Rg.js +0 -41
  513. package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
  514. package/dist/hover-card-7NjGqlP0.js +0 -1
  515. package/dist/hover-card-DuRUptxQ.mjs +0 -176
  516. package/dist/input-otp-D9MwUsPO.js +0 -20
  517. package/dist/label-CgKiKHKG.js +0 -1
  518. package/dist/menubar-CyKBLHme.mjs +0 -405
  519. package/dist/menubar-DlOMZeh1.js +0 -1
  520. package/dist/message-scroller-DqLu0YI6.js +0 -1
  521. package/dist/navigation-menu-BzE1J1rs.mjs +0 -608
  522. package/dist/navigation-menu-CrR01R8Z.js +0 -1
  523. package/dist/popover-CFF_HXSf.mjs +0 -222
  524. package/dist/popover-D9pVy08c.js +0 -1
  525. package/dist/progress-nfJMuKGj.js +0 -6
  526. package/dist/questionnaire-PWClWvST.js +0 -1
  527. package/dist/radio-group-DhXnB0fI.js +0 -1
  528. package/dist/resizable-ChIqXiu4.js +0 -1
  529. package/dist/resizable-CpovHnG-.mjs +0 -1573
  530. package/dist/scroll-area-CUqjuvqH.js +0 -1
  531. package/dist/scroll-area-DstdIGvS.mjs +0 -539
  532. package/dist/select-CnCTQeh7.js +0 -1
  533. package/dist/select-CnHZdna2.mjs +0 -792
  534. package/dist/separator-BXaVJadH.js +0 -1
  535. package/dist/separator-D1a8myFf.mjs +0 -38
  536. package/dist/sidebar-ns_2TNBM.js +0 -1
  537. package/dist/slider-PoIV6N-u.js +0 -1
  538. package/dist/slider-ZnyQjYsS.mjs +0 -460
  539. package/dist/switch-DLY8PkmL.js +0 -1
  540. package/dist/tabs-QBWdNfSK.js +0 -1
  541. package/dist/theme-toggle-Q3UHstP_.js +0 -1
  542. package/dist/toast-BOdziIGg.mjs +0 -424
  543. package/dist/toast-D1fjLwO1.js +0 -1
  544. package/dist/toaster-DS9iODKU.js +0 -1
  545. package/dist/toggle-DtpvPox_.js +0 -1
  546. package/dist/toggle-group-DfkvPKU_.mjs +0 -164
  547. package/dist/toggle-group-UHY0Tip1.js +0 -1
  548. package/dist/tooltip-BbCL1gtU.mjs +0 -384
  549. package/dist/tooltip-BvpyStn2.js +0 -1
  550. /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
@@ -1,11 +1,3 @@
1
- import { cva, type VariantProps } from 'class-variance-authority';
2
- import { cn } from 'cn';
3
- import * as React from 'react';
4
-
5
- import { Button } from '@/./button';
6
- import { Input } from '@/./input';
7
- import { Textarea } from '@/./textarea';
8
-
9
1
  import type {
10
2
  InputGroupAddonBaseProps,
11
3
  InputGroupBaseProps,
@@ -14,12 +6,18 @@ import type {
14
6
  InputGroupTextareaBaseProps,
15
7
  InputGroupTextBaseProps,
16
8
  } from '@gv-tech/ui-core';
9
+ import { cva, type VariantProps } from 'class-variance-authority';
10
+ import { cn } from 'cn';
11
+ import * as React from 'react';
12
+
13
+ import { Button } from '@/./button';
14
+ import { Input } from '@/./input';
15
+ import { Textarea } from '@/./textarea';
17
16
 
18
- function InputGroup({ className, ...props }: React.ComponentProps<'div'> & InputGroupBaseProps) {
17
+ function InputGroup({ className, ...props }: React.ComponentProps<'fieldset'> & InputGroupBaseProps) {
19
18
  return (
20
- <div
19
+ <fieldset
21
20
  data-slot="input-group"
22
- role="group"
23
21
  className={cn(
24
22
  'group/input-group border-input has-disabled:bg-input/50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 relative flex h-8 w-full min-w-0 items-center rounded-lg border transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5',
25
23
  className,
@@ -30,7 +28,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'> & Input
30
28
  }
31
29
 
32
30
  const inputGroupAddonVariants = cva(
33
- "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
31
+ "text-muted-foreground flex h-auto items-center justify-center gap-2 py-1.5 text-sm font-medium select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
34
32
  {
35
33
  variants: {
36
34
  align: {
@@ -51,19 +49,12 @@ function InputGroupAddon({
51
49
  className,
52
50
  align = 'inline-start',
53
51
  ...props
54
- }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants> & InputGroupAddonBaseProps) {
52
+ }: React.ComponentProps<'fieldset'> & VariantProps<typeof inputGroupAddonVariants> & InputGroupAddonBaseProps) {
55
53
  return (
56
- <div
57
- role="group"
54
+ <fieldset
58
55
  data-slot="input-group-addon"
59
56
  data-align={align}
60
57
  className={cn(inputGroupAddonVariants({ align }), className)}
61
- onClick={(e) => {
62
- if ((e.target as HTMLElement).closest('button')) {
63
- return;
64
- }
65
- e.currentTarget.parentElement?.querySelector('input')?.focus();
66
- }}
67
58
  {...props}
68
59
  />
69
60
  );
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',