@gv-tech/ui-web 2.28.0 → 2.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__contracts.d.ts +44 -2
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-D5QXSsCK.mjs +248 -0
- package/dist/accordion-DjyDOX-h.js +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +5 -5
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +182 -0
- package/dist/alert-dialog-DYQAhGBC.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +13 -13
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +5 -5
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +4 -4
- package/dist/aspect-ratio-C-KOOyGP.js +1 -0
- package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-s7Ji1MSr.mjs} +10 -9
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +2 -2
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/attachment.cjs +1 -0
- package/dist/attachment.d.ts +23 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.mjs +101 -0
- package/dist/attachment.test.d.ts +2 -0
- package/dist/attachment.test.d.ts.map +1 -0
- package/dist/avatar-4K3XjhP8.js +1 -0
- package/dist/avatar-d8Di248f.mjs +138 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +7 -7
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +2 -2
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +2 -2
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +25 -27
- package/dist/bubble.cjs +1 -0
- package/dist/bubble.d.ts +13 -0
- package/dist/bubble.d.ts.map +1 -0
- package/dist/bubble.mjs +72 -0
- package/dist/bubble.test.d.ts +2 -0
- package/dist/bubble.test.d.ts.map +1 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.d.ts +4 -4
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +7 -8
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +7 -7
- package/dist/calendar-DFj14O6r.js +1 -0
- package/dist/{calendar-Dg6VGycy.mjs → calendar-UW8h9dfh.mjs} +870 -842
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +3 -3
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +7 -7
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +5 -5
- package/dist/carousel-CNGpg5df.js +1 -0
- package/dist/{carousel-DbDoNdqJ.mjs → carousel-DG9xGJns.mjs} +53 -55
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +6 -6
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.d.ts +4 -4
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox-BCgbTAdU.js +1 -0
- package/dist/checkbox-Dq8VHKDH.mjs +186 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +1 -0
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +63 -0
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +4 -4
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +7 -7
- package/dist/combobox-CpPIGtPJ.js +4 -0
- package/dist/combobox-b4OmCNw1.mjs +5887 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +14 -14
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -1
- package/dist/command-5hobOyGG.mjs +545 -0
- package/dist/command-Dbqnm9kI.js +1 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +10 -10
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu-DyTUismw.js +1 -0
- package/dist/context-menu-DzzU-_v8.mjs +317 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +16 -16
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +11 -11
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +25 -25
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +2 -2
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/dist-1zUKVGvf.js +1 -0
- package/dist/dist-B057I8ju.mjs +30 -0
- package/dist/dist-BB78QQyQ.mjs +41 -0
- package/dist/dist-BBvidwzC.js +1 -0
- package/dist/{dist-Cacc4QIh.mjs → dist-BEbV0Hal.mjs} +9 -5
- package/dist/dist-BPL7gUpg.mjs +18 -0
- package/dist/dist-BTUvBzOm.js +1 -0
- package/dist/dist-BU-TFzJf.js +1 -0
- package/dist/dist-Bb5W_J2F.mjs +39 -0
- package/dist/dist-BbI6NHqR.mjs +23 -0
- package/dist/dist-BexAB6yo.mjs +192 -0
- package/dist/dist-BgXIqHHq.js +1 -0
- package/dist/dist-Bvfb4y_L.mjs +100 -0
- package/dist/dist-C8Pm6LRc.js +1 -0
- package/dist/dist-CPAF050o.mjs +90 -0
- package/dist/dist-CS572Be42.mjs +11 -0
- package/dist/dist-CUvxOuXM.mjs +551 -0
- package/dist/dist-C_iFkwIX.js +1 -0
- package/dist/dist-ClYM7l1t.js +1 -0
- package/dist/dist-CpKLY_uZ.mjs +96 -0
- package/dist/dist-D1qkELLT.js +1 -0
- package/dist/dist-D7-Fky36.js +1 -0
- package/dist/dist-DEpkkABT.js +1 -0
- package/dist/dist-DI1vapnL.mjs +20 -0
- package/dist/dist-DJqkhIXb2.js +1 -0
- package/dist/dist-DKXojpVG.js +1 -0
- package/dist/dist-DYUvPCPC.js +1 -0
- package/dist/dist-DZiOPWLp.js +1 -0
- package/dist/dist-DatgTWLz.mjs +202 -0
- package/dist/dist-Dm3IQk5b.mjs +685 -0
- package/dist/dist-DoivLw3t.js +1 -0
- package/dist/dist-Dq-h6VAy.mjs +118 -0
- package/dist/dist-Dt6m-kwU.mjs +221 -0
- package/dist/dist-E8ieJTBC.mjs +190 -0
- package/dist/{dist-C9PlF532.mjs → dist-GazS1kfR.mjs} +1 -1
- package/dist/dist-N97cIp0_.js +1 -0
- package/dist/dist-OqDzLHTa.mjs +460 -0
- package/dist/dist-Qm9hFvM1.js +1 -0
- package/dist/dist-UkWa-Arh.mjs +16 -0
- package/dist/dist-UnTrOmPV.js +1 -0
- package/dist/dist-YAADIsyo.js +1 -0
- package/dist/dist-Zs2sjYhL.js +1 -0
- package/dist/dist-hFLuJoMi.js +1 -0
- package/dist/dist-s7ibhASj.mjs +181 -0
- package/dist/dist-vu20fMUK.mjs +93 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +11 -11
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BqAhn64y.mjs} +109 -143
- package/dist/dropdown-menu-BtKOr--r.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +16 -16
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.d.ts +7 -7
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +2 -2
- package/dist/es2015-DbAsWDbs.js +41 -0
- package/dist/es2015-DbsmTzuc.mjs +571 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +12 -12
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +6 -7
- package/dist/floating-ui.react-dom-BwFRxNGc.js +1 -0
- package/dist/{floating-ui.react-dom-DgS_bqyY.mjs → floating-ui.react-dom-CyupHsR6.mjs} +249 -276
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +8 -6
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hover-card-DMsxpR9G.mjs +178 -0
- package/dist/hover-card-DWXusgiI.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +4 -4
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +40 -34
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +7 -7
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +6 -11
- package/dist/input-otp-D49Y9VcH.mjs +409 -0
- package/dist/input-otp-u3obpt-Q.js +20 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +5 -5
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +11 -11
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +7 -8
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.mjs +2 -2
- package/dist/label-Dacwh21G.js +1 -0
- package/dist/label-DsSICLPc.mjs +28 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +2 -2
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -1
- package/dist/marker.cjs +1 -0
- package/dist/marker.d.ts +12 -0
- package/dist/marker.d.ts.map +1 -0
- package/dist/marker.mjs +40 -0
- package/dist/marker.test.d.ts +2 -0
- package/dist/marker.test.d.ts.map +1 -0
- package/dist/menubar-BYNeRuzx.js +1 -0
- package/dist/{menubar-BcyqIJgy.mjs → menubar-DZqEj6S1.mjs} +138 -172
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +17 -17
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/message-scroller-CS4t7Ypn.mjs +824 -0
- package/dist/message-scroller-DqLu0YI6.js +1 -0
- package/dist/message-scroller.cjs +1 -0
- package/dist/message-scroller.d.ts +13 -0
- package/dist/message-scroller.d.ts.map +1 -0
- package/dist/message-scroller.mjs +3 -0
- package/dist/message-scroller.test.d.ts +2 -0
- package/dist/message-scroller.test.d.ts.map +1 -0
- package/dist/message.cjs +1 -0
- package/dist/message.d.ts +11 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.mjs +50 -0
- package/dist/message.test.d.ts +2 -0
- package/dist/message.test.d.ts.map +1 -0
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts +3 -3
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +12 -12
- package/dist/navigation-menu-B36G3O83.js +1 -0
- package/dist/navigation-menu-RO6thDOF.mjs +636 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +9 -9
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +8 -8
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +42 -35
- package/dist/popover-DSBkc70V.mjs +243 -0
- package/dist/popover-DUHbvKB8.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +8 -8
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-B9z08UXf.js +6 -0
- package/dist/progress-CQ4nQ85t.mjs +92 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -2
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/questionnaire-CVED7G7R.mjs +1159 -0
- package/dist/questionnaire-PWClWvST.js +1 -0
- package/dist/questionnaire.cjs +1 -0
- package/dist/questionnaire.d.ts +22 -0
- package/dist/questionnaire.d.ts.map +1 -0
- package/dist/questionnaire.mjs +4 -0
- package/dist/questionnaire.test.d.ts +2 -0
- package/dist/questionnaire.test.d.ts.map +1 -0
- package/dist/radio-group-Bd3WbH5I.js +1 -0
- package/dist/radio-group-TRiAhMZB.mjs +266 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/resizable-Cq60hEWB.js +1 -0
- package/dist/resizable-Qc8cVUKd.mjs +2857 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area-D6MiNHnJ.mjs +564 -0
- package/dist/scroll-area-DFUdJeSZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +3 -3
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +18 -16
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +17 -17
- package/dist/select-BFJUmjvX.mjs +830 -0
- package/dist/select-iQFoKU1s.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +11 -11
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator-2kr96SyF.mjs +40 -0
- package/dist/separator-Bo49G2aj.js +1 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +2 -2
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +9 -9
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +23 -23
- package/dist/sidebar-C6O8hLkz.js +1 -0
- package/dist/{sidebar-B-sWccYh.mjs → sidebar-DM9ee9wf.mjs} +66 -66
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +24 -24
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider-CagVxozY.js +1 -0
- package/dist/slider-CdTCoQu1.mjs +485 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +2 -2
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +2 -4
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +8 -8
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.d.ts +2 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +12 -7
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +22 -22
- package/dist/switch-CoeAC1Wk.js +1 -0
- package/dist/switch-zUBdj7jK.mjs +174 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +2 -2
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +9 -13
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +3 -2
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -8
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs-DaE9pEbo.mjs +160 -0
- package/dist/tabs-TMhXe20x.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +5 -5
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.d.ts +1 -1
- package/dist/text.d.ts.map +1 -1
- package/dist/text.mjs +3 -3
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-toggle-3RStptYf.mjs +73 -0
- package/dist/theme-toggle-DKh8WFLT.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/theme-toggle.mjs +1 -1
- package/dist/toast-B0S3F09s.js +1 -0
- package/dist/toast-D0Yb-K84.mjs +445 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.d.ts +1 -1
- package/dist/toast.d.ts.map +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-DfDb2-aI.js → toaster-CX9im8R_.js} +1 -1
- package/dist/{toaster-Czhz-ktg.mjs → toaster-gT2b7mfE.mjs} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-B0hXPsi7.js +1 -0
- package/dist/toggle-BAeKd2N0.mjs +59 -0
- package/dist/toggle-group-CEKhUozD.mjs +167 -0
- package/dist/toggle-group-htyug3G7.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +3 -3
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +2 -2
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +1 -1
- package/dist/tooltip-BZazhXDZ.js +1 -0
- package/dist/tooltip-R_nK_Qh5.mjs +390 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +5 -5
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +18 -16
- package/src/__contracts.ts +438 -278
- package/src/accordion.tsx +4 -6
- package/src/alert-dialog.tsx +6 -7
- package/src/alert.tsx +5 -7
- package/src/aspect-ratio.tsx +1 -2
- package/src/attachment.tsx +202 -0
- package/src/avatar.tsx +1 -2
- package/src/badge.tsx +2 -3
- package/src/breadcrumb.tsx +4 -8
- package/src/bubble.tsx +115 -0
- package/src/button-group.tsx +7 -8
- package/src/button.tsx +7 -9
- package/src/calendar.tsx +14 -14
- package/src/card.tsx +6 -7
- package/src/carousel.tsx +16 -17
- package/src/chart.tsx +1 -4
- package/src/checkbox.tsx +4 -6
- package/src/collapsible.tsx +1 -2
- package/src/combobox.tsx +8 -8
- package/src/command.tsx +8 -9
- package/src/context-menu.tsx +10 -12
- package/src/dialog.tsx +6 -7
- package/src/direction.tsx +1 -2
- package/src/drawer.tsx +3 -5
- package/src/dropdown-menu.tsx +10 -12
- package/src/empty.tsx +3 -5
- package/src/field.tsx +10 -11
- package/src/form.tsx +8 -8
- package/src/hooks/use-mobile.ts +1 -1
- package/src/hover-card.tsx +3 -5
- package/src/index.ts +54 -0
- package/src/input-group.tsx +14 -22
- package/src/input-otp.tsx +5 -6
- package/src/input.tsx +2 -4
- package/src/item.tsx +11 -12
- package/src/kbd.tsx +2 -2
- package/src/label.tsx +2 -4
- package/src/marker.tsx +61 -0
- package/src/menubar.tsx +11 -13
- package/src/message-scroller.tsx +133 -0
- package/src/message.tsx +85 -0
- package/src/native-select.tsx +2 -3
- package/src/navigation-menu.tsx +8 -10
- package/src/pagination.tsx +11 -10
- package/src/popover.tsx +3 -5
- package/src/progress.tsx +2 -4
- package/src/questionnaire.tsx +333 -0
- package/src/radio-group.tsx +2 -3
- package/src/resizable.tsx +1 -4
- package/src/scroll-area.tsx +3 -5
- package/src/scroll-to-top.tsx +7 -2
- package/src/search.tsx +2 -1
- package/src/select.tsx +8 -10
- package/src/separator.tsx +4 -6
- package/src/setupTests.ts +9 -9
- package/src/sheet.tsx +6 -7
- package/src/sidebar.tsx +17 -17
- package/src/skeleton.tsx +1 -2
- package/src/slider.tsx +5 -7
- package/src/sonner.tsx +0 -5
- package/src/spinner.tsx +14 -5
- package/src/support-fab.tsx +5 -1
- package/src/switch.tsx +4 -6
- package/src/table-of-contents.tsx +15 -13
- package/src/table.tsx +2 -4
- package/src/tabs.tsx +9 -11
- package/src/text.tsx +4 -4
- package/src/textarea.tsx +2 -4
- package/src/theme-provider.tsx +1 -1
- package/src/theme-toggle.tsx +26 -23
- package/src/toast.tsx +3 -4
- package/src/toaster.tsx +2 -1
- package/src/toggle-group.tsx +5 -6
- package/src/toggle.tsx +5 -7
- package/src/tooltip.tsx +3 -5
- package/dist/accordion-Dd8Hrexd.mjs +0 -244
- package/dist/accordion-DdSOiVyo.js +0 -1
- package/dist/alert-dialog-B7zX3gJX.js +0 -7
- package/dist/alert-dialog-BQoG5g_w.mjs +0 -213
- package/dist/aspect-ratio-QD1ZXP2B.js +0 -1
- package/dist/avatar-C4onD8-4.mjs +0 -127
- package/dist/avatar-ki_M47qG.js +0 -1
- package/dist/calendar-D9sapvfY.js +0 -1
- package/dist/carousel-6oFHLN7R.js +0 -1
- package/dist/checkbox-BLgY82mB.js +0 -1
- package/dist/checkbox-Bts_zfqd.mjs +0 -173
- package/dist/combobox-6qNx9Wbb.js +0 -4
- package/dist/combobox-yDMqxM_J.mjs +0 -5522
- package/dist/command-C6wJ5giF.mjs +0 -576
- package/dist/command-DCrPL1iW.js +0 -1
- package/dist/context-menu-CydUpD4W.mjs +0 -349
- package/dist/context-menu-DQ7XuuG5.js +0 -1
- package/dist/dist-1C8JOpVg.js +0 -1
- package/dist/dist-B1OcuinL.mjs +0 -558
- package/dist/dist-BGZDG175.mjs +0 -199
- package/dist/dist-BPBwSSyk.mjs +0 -8
- package/dist/dist-BPX1UGAz2.js +0 -1
- package/dist/dist-BRsDdVlJ.js +0 -1
- package/dist/dist-BWwCr-xN.mjs +0 -118
- package/dist/dist-BYdcKuDi.mjs +0 -16
- package/dist/dist-BlB11V_z.mjs +0 -27
- package/dist/dist-Bm8Cuttq.mjs +0 -76
- package/dist/dist-Byhx2fDJ.js +0 -1
- package/dist/dist-CCXBcfM3.js +0 -1
- package/dist/dist-CCokLFyA.mjs +0 -10
- package/dist/dist-CDU9vno-.mjs +0 -18
- package/dist/dist-CEJNUZGZ.js +0 -1
- package/dist/dist-CJolxugc.js +0 -1
- package/dist/dist-CQhWBhaI.mjs +0 -91
- package/dist/dist-CRLbUj9C.js +0 -1
- package/dist/dist-CSkpam6a.js +0 -1
- package/dist/dist-CWElW7UD.js +0 -1
- package/dist/dist-CXbzwSnE.js +0 -1
- package/dist/dist-CYj6O95k.mjs +0 -220
- package/dist/dist-C_45sBzc2.js +0 -1
- package/dist/dist-Cb7OVHcJ.js +0 -1
- package/dist/dist-Ccv5O-Vw.js +0 -1
- package/dist/dist-ChuP-5Gb.js +0 -1
- package/dist/dist-CiM892Rg.js +0 -1
- package/dist/dist-CuMQq0hV.js +0 -1
- package/dist/dist-DGzGsPqo2.mjs +0 -6
- package/dist/dist-DMnXk8Uo.js +0 -1
- package/dist/dist-DPBTfUqI.mjs +0 -96
- package/dist/dist-DR0lXVFG.js +0 -1
- package/dist/dist-Da7BU5sd.js +0 -5
- package/dist/dist-Df2ez-DA.mjs +0 -12
- package/dist/dist-DuTFGM_g.mjs +0 -45
- package/dist/dist-DynSBUGq.js +0 -1
- package/dist/dist-Dz3LbuDd.mjs +0 -60
- package/dist/dist-GhACpuJb2.mjs +0 -73
- package/dist/dist-N3JLy7yk.mjs +0 -29
- package/dist/dist-o4zlRoDG.js +0 -1
- package/dist/dist-rGeQfsgN.mjs +0 -66
- package/dist/dist-tvb2Wafb.mjs +0 -153
- package/dist/dist-xgVOvcNx.mjs +0 -11
- package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
- package/dist/es2015-BhmbVcui.mjs +0 -701
- package/dist/es2015-D22cM8Q_.js +0 -41
- package/dist/floating-ui.react-dom-DpCJEf_x.js +0 -1
- package/dist/hover-card-CJ-ibpbC.mjs +0 -187
- package/dist/hover-card-CK5SjVLL.js +0 -1
- package/dist/input-otp-BH_9dVhh.mjs +0 -391
- package/dist/input-otp-BibboKMt.js +0 -20
- package/dist/label-BXMSoyyu.js +0 -1
- package/dist/label-C8GNfPU0.mjs +0 -25
- package/dist/menubar-DPxokWFI.js +0 -1
- package/dist/navigation-menu-2yE2MUu-.js +0 -1
- package/dist/navigation-menu-N8gkxEXE.mjs +0 -628
- package/dist/popover-D1AO-E8p.js +0 -1
- package/dist/popover-wQACF3ut.mjs +0 -245
- package/dist/progress-DPWSEWa5.mjs +0 -86
- package/dist/progress-ShXZwOfj.js +0 -6
- package/dist/radio-group-CQbZCQmj.mjs +0 -199
- package/dist/radio-group-DAEi5vW_.js +0 -1
- package/dist/resizable-Cv-mKMKP.js +0 -1
- package/dist/resizable-DJSE3e5L.mjs +0 -1561
- package/dist/scroll-area-8QcqkHnC.mjs +0 -530
- package/dist/scroll-area-Cqqinhxf.js +0 -1
- package/dist/select-DdUveoSA.js +0 -1
- package/dist/select-yoeH35x2.mjs +0 -778
- package/dist/separator-BU1ea5gl.mjs +0 -35
- package/dist/separator-DBjErwHf.js +0 -1
- package/dist/shim-B5sEfNEJ.js +0 -1
- package/dist/shim-DX33EwUw.mjs +0 -91
- package/dist/sidebar-DIW-1cin.js +0 -1
- package/dist/slider-CCPXejUF.mjs +0 -388
- package/dist/slider-w05gD_Ix.js +0 -1
- package/dist/switch-CDBqsWQa.mjs +0 -112
- package/dist/switch-X2WBJsUu.js +0 -1
- package/dist/tabs-DzvgrVzk.js +0 -1
- package/dist/tabs-KDeHjVQU.mjs +0 -160
- package/dist/theme-toggle-C2Y4bIM3.js +0 -1
- package/dist/theme-toggle-clE-HpSS.mjs +0 -64
- package/dist/toast-1keyrzem.js +0 -1
- package/dist/toast-DVI6jPq5.mjs +0 -428
- package/dist/toggle-BGkq5XDM.js +0 -1
- package/dist/toggle-BfIIdlA6.mjs +0 -58
- package/dist/toggle-group-CbqgoPFU.mjs +0 -167
- package/dist/toggle-group-D7hR4BT2.js +0 -1
- package/dist/tooltip-CAIbshMk.js +0 -1
- package/dist/tooltip-D_o8Z-Ya.mjs +0 -380
package/src/scroll-to-top.tsx
CHANGED
|
@@ -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
|
-
|
|
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,13 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { SelectBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
5
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
3
6
|
import { Select as SelectPrimitive } from 'radix-ui';
|
|
4
7
|
import * as React from 'react';
|
|
5
8
|
|
|
6
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
7
|
-
import { cn } from './lib/utils';
|
|
8
|
-
|
|
9
|
-
import type { SelectBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
9
|
function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {
|
|
12
10
|
return <SelectPrimitive.Root data-slot="select" {...props} />;
|
|
13
11
|
}
|
|
@@ -33,7 +31,7 @@ function SelectTrigger({
|
|
|
33
31
|
data-slot="select-trigger"
|
|
34
32
|
data-size={size}
|
|
35
33
|
className={cn(
|
|
36
|
-
|
|
34
|
+
"border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-lg border bg-transparent py-2 ps-2.5 pe-2 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
37
35
|
className,
|
|
38
36
|
)}
|
|
39
37
|
{...props}
|
|
@@ -59,7 +57,7 @@ function SelectContent({
|
|
|
59
57
|
data-slot="select-content"
|
|
60
58
|
data-align-trigger={position === 'item-aligned'}
|
|
61
59
|
className={cn(
|
|
62
|
-
'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-
|
|
60
|
+
'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none',
|
|
63
61
|
position === 'popper' &&
|
|
64
62
|
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 rtl:data-[side=left]:translate-x-1 rtl:data-[side=right]:-translate-x-1',
|
|
65
63
|
className,
|
|
@@ -99,7 +97,7 @@ function SelectItem({ className, children, ...props }: React.ComponentProps<type
|
|
|
99
97
|
<SelectPrimitive.Item
|
|
100
98
|
data-slot="select-item"
|
|
101
99
|
className={cn(
|
|
102
|
-
|
|
100
|
+
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
103
101
|
className,
|
|
104
102
|
)}
|
|
105
103
|
{...props}
|
|
@@ -129,7 +127,7 @@ function SelectScrollUpButton({ className, ...props }: React.ComponentProps<type
|
|
|
129
127
|
<SelectPrimitive.ScrollUpButton
|
|
130
128
|
data-slot="select-scroll-up-button"
|
|
131
129
|
className={cn(
|
|
132
|
-
|
|
130
|
+
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
133
131
|
className,
|
|
134
132
|
)}
|
|
135
133
|
{...props}
|
|
@@ -147,7 +145,7 @@ function SelectScrollDownButton({
|
|
|
147
145
|
<SelectPrimitive.ScrollDownButton
|
|
148
146
|
data-slot="select-scroll-down-button"
|
|
149
147
|
className={cn(
|
|
150
|
-
|
|
148
|
+
"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
151
149
|
className,
|
|
152
150
|
)}
|
|
153
151
|
{...props}
|
package/src/separator.tsx
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
+
import type { SeparatorBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
1
3
|
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
|
-
import type { SeparatorBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
6
|
function Separator({
|
|
9
7
|
className,
|
|
10
8
|
orientation = 'horizontal',
|
|
11
9
|
decorative = true,
|
|
12
10
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
|
|
11
|
+
}: React.ComponentProps<typeof SeparatorPrimitive.Root> & SeparatorBaseProps) {
|
|
14
12
|
return (
|
|
15
13
|
<SeparatorPrimitive.Root
|
|
16
14
|
data-slot="separator"
|
|
17
15
|
decorative={decorative}
|
|
18
16
|
orientation={orientation}
|
|
19
17
|
className={cn(
|
|
20
|
-
'bg-border shrink-0 data-
|
|
18
|
+
'bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch',
|
|
21
19
|
className,
|
|
22
20
|
)}
|
|
23
21
|
{...props}
|
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,11 +1,10 @@
|
|
|
1
|
+
import type { SheetBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import { XIcon } from 'lucide-react';
|
|
1
4
|
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
2
5
|
import * as React from 'react';
|
|
3
6
|
|
|
4
|
-
import {
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { cn } from './lib/utils';
|
|
7
|
-
|
|
8
|
-
import type { SheetBaseProps } from '@gv-tech/ui-core';
|
|
7
|
+
import { Button } from '@/./button';
|
|
9
8
|
|
|
10
9
|
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
|
11
10
|
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
@@ -28,7 +27,7 @@ function SheetOverlay({ className, ...props }: React.ComponentProps<typeof Sheet
|
|
|
28
27
|
<SheetPrimitive.Overlay
|
|
29
28
|
data-slot="sheet-overlay"
|
|
30
29
|
className={cn(
|
|
31
|
-
'data-
|
|
30
|
+
'data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs',
|
|
32
31
|
className,
|
|
33
32
|
)}
|
|
34
33
|
{...props}
|
|
@@ -53,7 +52,7 @@ function SheetContent({
|
|
|
53
52
|
data-slot="sheet-content"
|
|
54
53
|
data-side={side}
|
|
55
54
|
className={cn(
|
|
56
|
-
'bg-popover text-popover-foreground data-
|
|
55
|
+
'bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm',
|
|
57
56
|
className,
|
|
58
57
|
)}
|
|
59
58
|
{...props}
|
package/src/sidebar.tsx
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { Slot } from 'radix-ui';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
1
|
import type {
|
|
6
2
|
SidebarBaseProps,
|
|
7
3
|
SidebarContentBaseProps,
|
|
@@ -27,15 +23,19 @@ import type {
|
|
|
27
23
|
SidebarSeparatorBaseProps,
|
|
28
24
|
SidebarTriggerBaseProps,
|
|
29
25
|
} from '@gv-tech/ui-core';
|
|
26
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
27
|
+
import { cn } from 'cn';
|
|
30
28
|
import { PanelLeftIcon } from 'lucide-react';
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
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';
|
|
39
39
|
|
|
40
40
|
const SIDEBAR_COOKIE_NAME = 'sidebar_state';
|
|
41
41
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -266,7 +266,7 @@ function SidebarTrigger({
|
|
|
266
266
|
}}
|
|
267
267
|
{...props}
|
|
268
268
|
>
|
|
269
|
-
<PanelLeftIcon />
|
|
269
|
+
<PanelLeftIcon className="rtl:rotate-180" />
|
|
270
270
|
<span className="sr-only">Toggle Sidebar</span>
|
|
271
271
|
</Button>
|
|
272
272
|
);
|
|
@@ -284,7 +284,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'> & S
|
|
|
284
284
|
onClick={toggleSidebar}
|
|
285
285
|
title="Toggle Sidebar"
|
|
286
286
|
className={cn(
|
|
287
|
-
'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2
|
|
287
|
+
'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2',
|
|
288
288
|
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize',
|
|
289
289
|
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize',
|
|
290
290
|
'hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full rtl:group-data-[collapsible=offcanvas]:-translate-x-0',
|
|
@@ -453,13 +453,13 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'> & S
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
const sidebarMenuButtonVariants = cva(
|
|
456
|
-
'peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm
|
|
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',
|
|
457
457
|
{
|
|
458
458
|
variants: {
|
|
459
459
|
variant: {
|
|
460
460
|
default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
|
|
461
461
|
outline:
|
|
462
|
-
'bg-background
|
|
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)]',
|
|
463
463
|
},
|
|
464
464
|
size: {
|
|
465
465
|
default: 'h-8 text-sm',
|
|
@@ -624,7 +624,7 @@ function SidebarMenuSubButton({
|
|
|
624
624
|
data-size={size}
|
|
625
625
|
data-active={isActive}
|
|
626
626
|
className={cn(
|
|
627
|
-
'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-
|
|
627
|
+
'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden group-data-[collapsible=icon]:hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs rtl:translate-x-px [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',
|
|
628
628
|
className,
|
|
629
629
|
)}
|
|
630
630
|
{...props}
|
package/src/skeleton.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { cn } from './lib/utils';
|
|
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,12 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { SliderBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
3
5
|
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
|
|
6
|
-
import { cn } from './lib/utils';
|
|
7
|
-
|
|
8
|
-
import type { SliderBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
8
|
function Slider({
|
|
11
9
|
className,
|
|
12
10
|
defaultValue,
|
|
@@ -28,18 +26,18 @@ function Slider({
|
|
|
28
26
|
min={min}
|
|
29
27
|
max={max}
|
|
30
28
|
className={cn(
|
|
31
|
-
'relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-
|
|
29
|
+
'relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col',
|
|
32
30
|
className,
|
|
33
31
|
)}
|
|
34
32
|
{...props}
|
|
35
33
|
>
|
|
36
34
|
<SliderPrimitive.Track
|
|
37
35
|
data-slot="slider-track"
|
|
38
|
-
className="bg-muted relative grow overflow-hidden rounded-full data-
|
|
36
|
+
className="bg-muted relative grow overflow-hidden rounded-full data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1"
|
|
39
37
|
>
|
|
40
38
|
<SliderPrimitive.Range
|
|
41
39
|
data-slot="slider-range"
|
|
42
|
-
className="bg-primary absolute select-none data-
|
|
40
|
+
className="bg-primary absolute select-none data-horizontal:h-full data-vertical:w-full"
|
|
43
41
|
/>
|
|
44
42
|
</SliderPrimitive.Track>
|
|
45
43
|
{Array.from({ length: _values.length }, (_, index) => (
|
package/src/sonner.tsx
CHANGED
|
@@ -2,8 +2,6 @@ import { CircleCheckIcon, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon
|
|
|
2
2
|
import { useTheme } from 'next-themes';
|
|
3
3
|
import { Toaster as Sonner, type ToasterProps } from 'sonner';
|
|
4
4
|
|
|
5
|
-
import type { SonnerBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
5
|
const Toaster = ({ ...props }: ToasterProps) => {
|
|
8
6
|
const { theme = 'system' } = useTheme();
|
|
9
7
|
|
|
@@ -37,6 +35,3 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
37
35
|
};
|
|
38
36
|
|
|
39
37
|
export { Toaster };
|
|
40
|
-
|
|
41
|
-
// Verify that the component satisfies the ui-core contract
|
|
42
|
-
export type ___verifySonnerContract = React.ComponentProps<typeof Sonner> extends SonnerBaseProps ? true : false;
|
package/src/spinner.tsx
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { Loader2Icon } from 'lucide-react';
|
|
2
|
-
import { cn } from './lib/utils';
|
|
3
|
-
|
|
4
1
|
import type { SpinnerBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import { Loader2Icon } from 'lucide-react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
|
-
function Spinner({ className, ...props }: React.ComponentProps<'
|
|
7
|
-
return
|
|
6
|
+
function Spinner({ className, ...props }: React.ComponentProps<'output'> & SpinnerBaseProps) {
|
|
7
|
+
return (
|
|
8
|
+
<output
|
|
9
|
+
data-slot="spinner"
|
|
10
|
+
aria-label="Loading"
|
|
11
|
+
className={cn('inline-flex size-4 animate-spin', className)}
|
|
12
|
+
{...props}
|
|
13
|
+
>
|
|
14
|
+
<Loader2Icon aria-hidden="true" className="size-full" />
|
|
15
|
+
</output>
|
|
16
|
+
);
|
|
8
17
|
}
|
|
9
18
|
|
|
10
19
|
export { Spinner };
|
package/src/support-fab.tsx
CHANGED
|
@@ -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
|
-
|
|
74
|
+
syncInitialValue();
|
|
71
75
|
mediaQuery.addEventListener('change', onChange);
|
|
72
76
|
|
|
73
77
|
return () => {
|
package/src/switch.tsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { SwitchBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
3
5
|
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
|
|
6
|
-
import { cn } from './lib/utils';
|
|
7
|
-
|
|
8
|
-
import type { SwitchBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
8
|
function Switch({
|
|
11
9
|
className,
|
|
12
10
|
size = 'default',
|
|
@@ -19,14 +17,14 @@ function Switch({
|
|
|
19
17
|
data-slot="switch"
|
|
20
18
|
data-size={size}
|
|
21
19
|
className={cn(
|
|
22
|
-
'peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-
|
|
20
|
+
'peer group/switch focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 aria-invalid:ring-3 data-disabled:cursor-not-allowed data-disabled:opacity-50 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px]',
|
|
23
21
|
className,
|
|
24
22
|
)}
|
|
25
23
|
{...props}
|
|
26
24
|
>
|
|
27
25
|
<SwitchPrimitive.Thumb
|
|
28
26
|
data-slot="switch-thumb"
|
|
29
|
-
className="bg-background dark:data-
|
|
27
|
+
className="bg-background dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 rtl:group-data-[size=default]/switch:data-checked:-translate-x-[calc(100%-2px)] rtl:group-data-[size=sm]/switch:data-checked:-translate-x-[calc(100%-2px)] rtl:group-data-[size=default]/switch:data-unchecked:-translate-x-0 rtl:group-data-[size=sm]/switch:data-unchecked:-translate-x-0"
|
|
30
28
|
/>
|
|
31
29
|
</SwitchPrimitive.Root>
|
|
32
30
|
);
|
|
@@ -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
|
-
*
|
|
38
|
-
*
|
|
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,13 +98,18 @@ 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);
|
|
107
105
|
|
|
106
|
+
const currentMinLevel = React.useMemo(() => {
|
|
107
|
+
if (headings.length === 0) {
|
|
108
|
+
return 0;
|
|
109
|
+
}
|
|
110
|
+
return Math.min(...headings.map((h) => h.level));
|
|
111
|
+
}, [headings]);
|
|
112
|
+
|
|
108
113
|
// Auto-collapse on scroll
|
|
109
114
|
React.useEffect(() => {
|
|
110
115
|
if (!isOpen) {
|
|
@@ -123,8 +128,6 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
|
|
|
123
128
|
return null;
|
|
124
129
|
}
|
|
125
130
|
|
|
126
|
-
const currentMinLevel = Math.min(...headings.map((h) => h.level));
|
|
127
|
-
|
|
128
131
|
const listContent = (
|
|
129
132
|
<ul className="m-0 list-none text-sm">
|
|
130
133
|
{headings.map((heading) => {
|
|
@@ -156,6 +159,7 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
|
|
|
156
159
|
<div className={cn('bg-background/95 sticky top-0 z-40 border-b backdrop-blur lg:hidden', className)}>
|
|
157
160
|
<button
|
|
158
161
|
onClick={() => setIsOpen(!isOpen)}
|
|
162
|
+
aria-label={activeHeadingText ? `On this page: ${activeHeadingText}` : 'Table of contents'}
|
|
159
163
|
className="flex w-full items-center justify-between px-4 py-3 text-left"
|
|
160
164
|
>
|
|
161
165
|
<div className="flex items-center gap-2 overflow-hidden">
|
|
@@ -193,9 +197,7 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
|
|
|
193
197
|
);
|
|
194
198
|
}
|
|
195
199
|
|
|
196
|
-
/**
|
|
197
|
-
* Wraps the content area and automatically detects headings within it.
|
|
198
|
-
*/
|
|
200
|
+
/** Wraps the content area and automatically detects headings within it. */
|
|
199
201
|
function TableOfContentsContent({ children, className }: TableOfContentsContentBaseProps) {
|
|
200
202
|
const { registerHeadings, setActiveId, config } = useTOC();
|
|
201
203
|
const contentRef = React.useRef<HTMLDivElement>(null);
|
package/src/table.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import { cn } from './lib/utils';
|
|
4
|
-
|
|
5
1
|
import type { TableBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import * as React from 'react';
|
|
6
4
|
|
|
7
5
|
function Table({ className, ...props }: React.ComponentProps<'table'>) {
|
|
8
6
|
return (
|
package/src/tabs.tsx
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { TabsBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { cn } from 'cn';
|
|
4
6
|
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
5
7
|
import * as React from 'react';
|
|
6
8
|
|
|
7
|
-
import { cn } from './lib/utils';
|
|
8
|
-
|
|
9
|
-
import type { TabsBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
9
|
function Tabs({ className, orientation = 'horizontal', ...props }: React.ComponentProps<typeof TabsPrimitive.Root>) {
|
|
12
10
|
return (
|
|
13
11
|
<TabsPrimitive.Root
|
|
14
12
|
data-slot="tabs"
|
|
15
13
|
data-orientation={orientation}
|
|
16
|
-
className={cn('group/tabs flex gap-2 data-
|
|
14
|
+
className={cn('group/tabs flex gap-2 data-horizontal:flex-col', className)}
|
|
17
15
|
{...props}
|
|
18
16
|
/>
|
|
19
17
|
);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
const tabsListVariants = cva(
|
|
23
|
-
'group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px]
|
|
21
|
+
'group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center rounded-lg p-[3px] group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none',
|
|
24
22
|
{
|
|
25
23
|
variants: {
|
|
26
24
|
variant: {
|
|
27
25
|
default: 'bg-muted',
|
|
28
|
-
line: 'gap-1 bg-transparent
|
|
26
|
+
line: 'gap-1 bg-transparent',
|
|
29
27
|
},
|
|
30
28
|
},
|
|
31
29
|
defaultVariants: {
|
|
@@ -54,10 +52,10 @@ function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPr
|
|
|
54
52
|
<TabsPrimitive.Trigger
|
|
55
53
|
data-slot="tabs-trigger"
|
|
56
54
|
className={cn(
|
|
57
|
-
|
|
58
|
-
'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-
|
|
59
|
-
'data-
|
|
60
|
-
'after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-
|
|
55
|
+
"text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pe-1 has-data-[icon=inline-start]:ps-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
56
|
+
'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent',
|
|
57
|
+
'data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground',
|
|
58
|
+
'after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-end-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100',
|
|
61
59
|
className,
|
|
62
60
|
)}
|
|
63
61
|
{...props}
|
package/src/text.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import type { TextBaseProps } from '@gv-tech/ui-core';
|
|
2
3
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { TextBaseProps } from '@gv-tech/ui-core';
|
|
6
6
|
import { cn } from './lib/utils';
|
|
7
7
|
|
|
8
8
|
const textVariants = cva('', {
|
|
@@ -14,9 +14,9 @@ const textVariants = cva('', {
|
|
|
14
14
|
h4: 'scroll-m-20 text-xl font-semibold tracking-tight',
|
|
15
15
|
body: 'leading-7',
|
|
16
16
|
bodySmall: 'text-sm leading-6',
|
|
17
|
-
caption: 'text-
|
|
18
|
-
label: 'text-sm font-medium
|
|
19
|
-
overline: 'text-xs font-semibold
|
|
17
|
+
caption: 'text-muted-foreground text-xs',
|
|
18
|
+
label: 'text-sm leading-none font-medium',
|
|
19
|
+
overline: 'text-muted-foreground text-xs font-semibold tracking-widest uppercase',
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
defaultVariants: {
|
package/src/textarea.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import { cn } from './lib/utils';
|
|
4
|
-
|
|
5
1
|
import type { TextareaBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import * as React from 'react';
|
|
6
4
|
|
|
7
5
|
function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
|
|
8
6
|
return (
|
package/src/theme-provider.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ThemeProviderBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ThemeProviderBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import type { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';
|
|
5
5
|
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
|
6
6
|
|