@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/form.tsx
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import type {
|
|
4
|
+
FormControlBaseProps,
|
|
5
|
+
FormDescriptionBaseProps,
|
|
6
|
+
FormItemBaseProps,
|
|
7
|
+
FormLabelBaseProps,
|
|
8
|
+
FormMessageBaseProps,
|
|
9
|
+
} from '@gv-tech/ui-core';
|
|
10
|
+
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
11
|
import { Slot } from '@radix-ui/react-slot';
|
|
5
12
|
import * as React from 'react';
|
|
6
13
|
import {
|
|
@@ -12,13 +19,6 @@ import {
|
|
|
12
19
|
type FieldValues,
|
|
13
20
|
} from 'react-hook-form';
|
|
14
21
|
|
|
15
|
-
import {
|
|
16
|
-
FormControlBaseProps,
|
|
17
|
-
FormDescriptionBaseProps,
|
|
18
|
-
FormItemBaseProps,
|
|
19
|
-
FormLabelBaseProps,
|
|
20
|
-
FormMessageBaseProps,
|
|
21
|
-
} from '@gv-tech/ui-core';
|
|
22
22
|
import { Label } from './label';
|
|
23
23
|
import { cn } from './lib/utils';
|
|
24
24
|
|
package/src/hooks/use-mobile.ts
CHANGED
|
@@ -11,7 +11,7 @@ export function useIsMobile() {
|
|
|
11
11
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
12
12
|
};
|
|
13
13
|
mql.addEventListener('change', onChange);
|
|
14
|
-
|
|
14
|
+
onChange();
|
|
15
15
|
return () => mql.removeEventListener('change', onChange);
|
|
16
16
|
}, []);
|
|
17
17
|
|
package/src/hover-card.tsx
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import type { HoverCardBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
1
3
|
import { HoverCard as HoverCardPrimitive } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
|
-
import type { HoverCardBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
6
|
function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {
|
|
9
7
|
return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />;
|
|
10
8
|
}
|
|
@@ -26,7 +24,7 @@ function HoverCardContent({
|
|
|
26
24
|
align={align}
|
|
27
25
|
sideOffset={sideOffset}
|
|
28
26
|
className={cn(
|
|
29
|
-
'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-
|
|
27
|
+
'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 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',
|
|
30
28
|
className,
|
|
31
29
|
)}
|
|
32
30
|
{...props}
|
package/src/index.ts
CHANGED
|
@@ -442,3 +442,57 @@ export {
|
|
|
442
442
|
SidebarTrigger,
|
|
443
443
|
useSidebar,
|
|
444
444
|
} from './sidebar';
|
|
445
|
+
|
|
446
|
+
// Attachment
|
|
447
|
+
export {
|
|
448
|
+
Attachment,
|
|
449
|
+
AttachmentAction,
|
|
450
|
+
AttachmentActions,
|
|
451
|
+
AttachmentContent,
|
|
452
|
+
AttachmentDescription,
|
|
453
|
+
AttachmentGroup,
|
|
454
|
+
AttachmentMedia,
|
|
455
|
+
AttachmentTitle,
|
|
456
|
+
AttachmentTrigger,
|
|
457
|
+
} from './attachment';
|
|
458
|
+
|
|
459
|
+
// Bubble
|
|
460
|
+
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from './bubble';
|
|
461
|
+
|
|
462
|
+
// Marker
|
|
463
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants } from './marker';
|
|
464
|
+
|
|
465
|
+
// Message
|
|
466
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from './message';
|
|
467
|
+
|
|
468
|
+
// Message Scroller
|
|
469
|
+
export {
|
|
470
|
+
MessageScroller,
|
|
471
|
+
MessageScrollerButton,
|
|
472
|
+
MessageScrollerContent,
|
|
473
|
+
MessageScrollerItem,
|
|
474
|
+
MessageScrollerProvider,
|
|
475
|
+
MessageScrollerViewport,
|
|
476
|
+
useMessageScroller,
|
|
477
|
+
useMessageScrollerScrollable,
|
|
478
|
+
useMessageScrollerVisibility,
|
|
479
|
+
} from './message-scroller';
|
|
480
|
+
|
|
481
|
+
// Questionnaire
|
|
482
|
+
export {
|
|
483
|
+
Questionnaire,
|
|
484
|
+
QuestionnaireActions,
|
|
485
|
+
QuestionnaireChoice,
|
|
486
|
+
QuestionnaireChoiceDescription,
|
|
487
|
+
QuestionnaireChoices,
|
|
488
|
+
QuestionnaireDescription,
|
|
489
|
+
QuestionnaireError,
|
|
490
|
+
QuestionnaireInput,
|
|
491
|
+
QuestionnaireItem,
|
|
492
|
+
QuestionnaireNext,
|
|
493
|
+
QuestionnairePrevious,
|
|
494
|
+
QuestionnaireProgress,
|
|
495
|
+
QuestionnaireSkip,
|
|
496
|
+
QuestionnaireSubmit,
|
|
497
|
+
QuestionnaireTitle,
|
|
498
|
+
} from './questionnaire';
|
package/src/input-group.tsx
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
1
|
import type {
|
|
5
2
|
InputGroupAddonBaseProps,
|
|
6
3
|
InputGroupBaseProps,
|
|
@@ -9,16 +6,18 @@ import type {
|
|
|
9
6
|
InputGroupTextareaBaseProps,
|
|
10
7
|
InputGroupTextBaseProps,
|
|
11
8
|
} from '@gv-tech/ui-core';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
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';
|
|
16
16
|
|
|
17
|
-
function InputGroup({ className, ...props }: React.ComponentProps<'
|
|
17
|
+
function InputGroup({ className, ...props }: React.ComponentProps<'fieldset'> & InputGroupBaseProps) {
|
|
18
18
|
return (
|
|
19
|
-
<
|
|
19
|
+
<fieldset
|
|
20
20
|
data-slot="input-group"
|
|
21
|
-
role="group"
|
|
22
21
|
className={cn(
|
|
23
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',
|
|
24
23
|
className,
|
|
@@ -29,7 +28,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'> & Input
|
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
const inputGroupAddonVariants = cva(
|
|
32
|
-
|
|
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",
|
|
33
32
|
{
|
|
34
33
|
variants: {
|
|
35
34
|
align: {
|
|
@@ -50,19 +49,12 @@ function InputGroupAddon({
|
|
|
50
49
|
className,
|
|
51
50
|
align = 'inline-start',
|
|
52
51
|
...props
|
|
53
|
-
}: React.ComponentProps<'
|
|
52
|
+
}: React.ComponentProps<'fieldset'> & VariantProps<typeof inputGroupAddonVariants> & InputGroupAddonBaseProps) {
|
|
54
53
|
return (
|
|
55
|
-
<
|
|
56
|
-
role="group"
|
|
54
|
+
<fieldset
|
|
57
55
|
data-slot="input-group-addon"
|
|
58
56
|
data-align={align}
|
|
59
57
|
className={cn(inputGroupAddonVariants({ align }), className)}
|
|
60
|
-
onClick={(e) => {
|
|
61
|
-
if ((e.target as HTMLElement).closest('button')) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
e.currentTarget.parentElement?.querySelector('input')?.focus();
|
|
65
|
-
}}
|
|
66
58
|
{...props}
|
|
67
59
|
/>
|
|
68
60
|
);
|
|
@@ -71,7 +63,7 @@ function InputGroupAddon({
|
|
|
71
63
|
const inputGroupButtonVariants = cva('flex items-center gap-2 text-sm shadow-none', {
|
|
72
64
|
variants: {
|
|
73
65
|
size: {
|
|
74
|
-
xs:
|
|
66
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
75
67
|
sm: '',
|
|
76
68
|
'icon-xs': 'size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0',
|
|
77
69
|
'icon-sm': 'size-8 p-0 has-[>svg]:p-0',
|
|
@@ -106,7 +98,7 @@ function InputGroupText({ className, ...props }: React.ComponentProps<'span'> &
|
|
|
106
98
|
return (
|
|
107
99
|
<span
|
|
108
100
|
className={cn(
|
|
109
|
-
|
|
101
|
+
"text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
110
102
|
className,
|
|
111
103
|
)}
|
|
112
104
|
{...props}
|
package/src/input-otp.tsx
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
3
|
import type {
|
|
7
4
|
InputOTPBaseProps,
|
|
8
5
|
InputOTPGroupBaseProps,
|
|
9
6
|
InputOTPSeparatorBaseProps,
|
|
10
7
|
InputOTPSlotBaseProps,
|
|
11
8
|
} from '@gv-tech/ui-core';
|
|
9
|
+
import { cn } from 'cn';
|
|
10
|
+
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
12
11
|
import { MinusIcon } from 'lucide-react';
|
|
13
|
-
import
|
|
12
|
+
import * as React from 'react';
|
|
14
13
|
|
|
15
14
|
function InputOTP({
|
|
16
15
|
className,
|
|
@@ -69,8 +68,8 @@ function InputOTPSeparator({ ...props }: React.ComponentProps<'div'> & InputOTPS
|
|
|
69
68
|
return (
|
|
70
69
|
<div
|
|
71
70
|
data-slot="input-otp-separator"
|
|
72
|
-
className="flex items-center [&_svg:not([class*=size-])]:size-4"
|
|
73
|
-
|
|
71
|
+
className="flex items-center [&_svg:not([class*='size-'])]:size-4"
|
|
72
|
+
aria-hidden="true"
|
|
74
73
|
{...props}
|
|
75
74
|
>
|
|
76
75
|
<MinusIcon />
|
package/src/input.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import { cn } from './lib/utils';
|
|
4
|
-
|
|
5
1
|
import type { InputBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import * as React from 'react';
|
|
6
4
|
|
|
7
5
|
function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
8
6
|
return (
|
package/src/item.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
|
ItemActionsBaseProps,
|
|
7
3
|
ItemBaseProps,
|
|
@@ -14,13 +10,16 @@ import type {
|
|
|
14
10
|
ItemSeparatorBaseProps,
|
|
15
11
|
ItemTitleBaseProps,
|
|
16
12
|
} from '@gv-tech/ui-core';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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';
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
import { Separator } from '@/./separator';
|
|
19
|
+
|
|
20
|
+
function ItemGroup({ className, ...props }: React.ComponentProps<'ul'> & ItemGroupBaseProps) {
|
|
21
21
|
return (
|
|
22
|
-
<
|
|
23
|
-
role="list"
|
|
22
|
+
<ul
|
|
24
23
|
data-slot="item-group"
|
|
25
24
|
className={cn(
|
|
26
25
|
'group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2',
|
|
@@ -36,13 +35,13 @@ function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Sepa
|
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
const itemVariants = cva(
|
|
39
|
-
'group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:
|
|
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',
|
|
40
39
|
{
|
|
41
40
|
variants: {
|
|
42
41
|
variant: {
|
|
43
42
|
default: 'border-transparent',
|
|
44
43
|
outline: 'border-border',
|
|
45
|
-
muted: '
|
|
44
|
+
muted: 'bg-muted/50 border-transparent',
|
|
46
45
|
},
|
|
47
46
|
size: {
|
|
48
47
|
default: 'gap-2.5 px-3 py-2.5',
|
|
@@ -82,7 +81,7 @@ const itemMediaVariants = cva(
|
|
|
82
81
|
variants: {
|
|
83
82
|
variant: {
|
|
84
83
|
default: 'bg-transparent',
|
|
85
|
-
icon:
|
|
84
|
+
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
86
85
|
image:
|
|
87
86
|
'size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover',
|
|
88
87
|
},
|
package/src/kbd.tsx
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { KbdBaseProps, KbdGroupBaseProps } from '@gv-tech/ui-core';
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from 'cn';
|
|
3
3
|
|
|
4
4
|
function Kbd({ className, ...props }: React.ComponentProps<'kbd'> & KbdBaseProps) {
|
|
5
5
|
return (
|
|
6
6
|
<kbd
|
|
7
7
|
data-slot="kbd"
|
|
8
8
|
className={cn(
|
|
9
|
-
|
|
9
|
+
"bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none [&_svg:not([class*='size-'])]:size-3",
|
|
10
10
|
className,
|
|
11
11
|
)}
|
|
12
12
|
{...props}
|
package/src/label.tsx
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import type { LabelBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
1
3
|
import { Label as LabelPrimitive } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
|
-
import type { LabelBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
6
|
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
|
|
9
7
|
return (
|
|
10
8
|
<LabelPrimitive.Root
|
package/src/marker.tsx
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { cn } from 'cn';
|
|
4
|
+
import { Slot } from 'radix-ui';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
|
|
7
|
+
const markerVariants = cva(
|
|
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",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: '',
|
|
13
|
+
separator:
|
|
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',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
function Marker({
|
|
22
|
+
className,
|
|
23
|
+
variant = 'default',
|
|
24
|
+
asChild = false,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof markerVariants> & MarkerBaseProps) {
|
|
27
|
+
const Comp = asChild ? Slot.Root : 'div';
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<Comp data-slot="marker" data-variant={variant} className={cn(markerVariants({ variant, className }))} {...props} />
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function MarkerIcon({ className, ...props }: React.ComponentProps<'span'> & MarkerIconBaseProps) {
|
|
35
|
+
return (
|
|
36
|
+
<span
|
|
37
|
+
data-slot="marker-icon"
|
|
38
|
+
aria-hidden="true"
|
|
39
|
+
className={cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className)}
|
|
40
|
+
{...props}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function MarkerContent({ className, ...props }: React.ComponentProps<'span'> & MarkerContentBaseProps) {
|
|
46
|
+
return (
|
|
47
|
+
<span
|
|
48
|
+
data-slot="marker-content"
|
|
49
|
+
className={cn(
|
|
50
|
+
'*:[a]:hover:text-foreground min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3',
|
|
51
|
+
className,
|
|
52
|
+
)}
|
|
53
|
+
{...props}
|
|
54
|
+
/>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|
|
59
|
+
|
|
60
|
+
// Verify that the components satisfy the ui-core contracts
|
|
61
|
+
export type ___verifyMarkerContract = React.ComponentProps<typeof Marker> extends MarkerBaseProps ? true : false;
|
package/src/menubar.tsx
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { MenubarBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
5
|
+
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
3
6
|
import { Menubar as MenubarPrimitive } from 'radix-ui';
|
|
4
7
|
import * as React from 'react';
|
|
5
8
|
|
|
6
|
-
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
7
|
-
import { cn } from './lib/utils';
|
|
8
|
-
|
|
9
|
-
import type { MenubarBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
9
|
function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {
|
|
12
10
|
return (
|
|
13
11
|
<MenubarPrimitive.Root
|
|
@@ -62,7 +60,7 @@ function MenubarContent({
|
|
|
62
60
|
alignOffset={alignOffset}
|
|
63
61
|
sideOffset={sideOffset}
|
|
64
62
|
className={cn(
|
|
65
|
-
'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-
|
|
63
|
+
'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 z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-md ring-1 duration-100',
|
|
66
64
|
className,
|
|
67
65
|
)}
|
|
68
66
|
{...props}
|
|
@@ -86,7 +84,7 @@ function MenubarItem({
|
|
|
86
84
|
data-inset={inset}
|
|
87
85
|
data-variant={variant}
|
|
88
86
|
className={cn(
|
|
89
|
-
|
|
87
|
+
"group/menubar-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive! relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
90
88
|
className,
|
|
91
89
|
)}
|
|
92
90
|
{...props}
|
|
@@ -114,7 +112,7 @@ function MenubarCheckboxItem({
|
|
|
114
112
|
checked={checked}
|
|
115
113
|
{...props}
|
|
116
114
|
>
|
|
117
|
-
<span className="pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*=size-])]:size-4">
|
|
115
|
+
<span className="pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4">
|
|
118
116
|
<MenubarPrimitive.ItemIndicator>
|
|
119
117
|
<CheckIcon />
|
|
120
118
|
</MenubarPrimitive.ItemIndicator>
|
|
@@ -137,12 +135,12 @@ function MenubarRadioItem({
|
|
|
137
135
|
data-slot="menubar-radio-item"
|
|
138
136
|
data-inset={inset}
|
|
139
137
|
className={cn(
|
|
140
|
-
|
|
138
|
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
141
139
|
className,
|
|
142
140
|
)}
|
|
143
141
|
{...props}
|
|
144
142
|
>
|
|
145
|
-
<span className="pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*=size-])]:size-4">
|
|
143
|
+
<span className="pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4">
|
|
146
144
|
<MenubarPrimitive.ItemIndicator>
|
|
147
145
|
<CheckIcon />
|
|
148
146
|
</MenubarPrimitive.ItemIndicator>
|
|
@@ -209,13 +207,13 @@ function MenubarSubTrigger({
|
|
|
209
207
|
data-slot="menubar-sub-trigger"
|
|
210
208
|
data-inset={inset}
|
|
211
209
|
className={cn(
|
|
212
|
-
|
|
210
|
+
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4",
|
|
213
211
|
className,
|
|
214
212
|
)}
|
|
215
213
|
{...props}
|
|
216
214
|
>
|
|
217
215
|
{children}
|
|
218
|
-
<ChevronRightIcon className="ms-auto size-4" />
|
|
216
|
+
<ChevronRightIcon className="ms-auto size-4 rtl:rotate-180" />
|
|
219
217
|
</MenubarPrimitive.SubTrigger>
|
|
220
218
|
);
|
|
221
219
|
}
|
|
@@ -225,7 +223,7 @@ function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof
|
|
|
225
223
|
<MenubarPrimitive.SubContent
|
|
226
224
|
data-slot="menubar-sub-content"
|
|
227
225
|
className={cn(
|
|
228
|
-
'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-
|
|
226
|
+
'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 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100',
|
|
229
227
|
className,
|
|
230
228
|
)}
|
|
231
229
|
{...props}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
MessageScrollerBaseProps,
|
|
3
|
+
MessageScrollerButtonBaseProps,
|
|
4
|
+
MessageScrollerContentBaseProps,
|
|
5
|
+
MessageScrollerItemBaseProps,
|
|
6
|
+
MessageScrollerProviderBaseProps,
|
|
7
|
+
MessageScrollerViewportBaseProps,
|
|
8
|
+
} from '@gv-tech/ui-core';
|
|
9
|
+
import {
|
|
10
|
+
MessageScroller as MessageScrollerPrimitive,
|
|
11
|
+
useMessageScroller,
|
|
12
|
+
useMessageScrollerScrollable,
|
|
13
|
+
useMessageScrollerVisibility,
|
|
14
|
+
} from '@shadcn/react/message-scroller';
|
|
15
|
+
import { cn } from 'cn';
|
|
16
|
+
import { ArrowDownIcon } from 'lucide-react';
|
|
17
|
+
import * as React from 'react';
|
|
18
|
+
|
|
19
|
+
import { Button } from '@/./button';
|
|
20
|
+
|
|
21
|
+
function MessageScrollerProvider(
|
|
22
|
+
props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider> & MessageScrollerProviderBaseProps,
|
|
23
|
+
) {
|
|
24
|
+
return <MessageScrollerPrimitive.Provider {...props} />;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function MessageScroller({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<typeof MessageScrollerPrimitive.Root> & MessageScrollerBaseProps) {
|
|
31
|
+
return (
|
|
32
|
+
<MessageScrollerPrimitive.Root
|
|
33
|
+
data-slot="message-scroller"
|
|
34
|
+
className={cn('group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden', className)}
|
|
35
|
+
{...props}
|
|
36
|
+
/>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function MessageScrollerViewport({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport> & MessageScrollerViewportBaseProps) {
|
|
44
|
+
return (
|
|
45
|
+
<MessageScrollerPrimitive.Viewport
|
|
46
|
+
data-slot="message-scroller-viewport"
|
|
47
|
+
className={cn(
|
|
48
|
+
'scroll-fade-b size-full min-h-0 min-w-0 scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent data-pending-scroll:invisible',
|
|
49
|
+
className,
|
|
50
|
+
)}
|
|
51
|
+
{...props}
|
|
52
|
+
/>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function MessageScrollerContent({
|
|
57
|
+
className,
|
|
58
|
+
...props
|
|
59
|
+
}: React.ComponentProps<typeof MessageScrollerPrimitive.Content> & MessageScrollerContentBaseProps) {
|
|
60
|
+
return (
|
|
61
|
+
<MessageScrollerPrimitive.Content
|
|
62
|
+
data-slot="message-scroller-content"
|
|
63
|
+
className={cn('flex h-max min-h-full flex-col gap-6', className)}
|
|
64
|
+
{...props}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function MessageScrollerItem({
|
|
70
|
+
className,
|
|
71
|
+
scrollAnchor = false,
|
|
72
|
+
...props
|
|
73
|
+
}: React.ComponentProps<typeof MessageScrollerPrimitive.Item> & MessageScrollerItemBaseProps) {
|
|
74
|
+
return (
|
|
75
|
+
<MessageScrollerPrimitive.Item
|
|
76
|
+
data-slot="message-scroller-item"
|
|
77
|
+
scrollAnchor={scrollAnchor}
|
|
78
|
+
className={cn('min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]', className)}
|
|
79
|
+
{...props}
|
|
80
|
+
/>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function MessageScrollerButton({
|
|
85
|
+
direction = 'end',
|
|
86
|
+
className,
|
|
87
|
+
children,
|
|
88
|
+
render,
|
|
89
|
+
variant = 'secondary',
|
|
90
|
+
size = 'icon-sm',
|
|
91
|
+
...props
|
|
92
|
+
}: React.ComponentProps<typeof MessageScrollerPrimitive.Button> &
|
|
93
|
+
Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'> &
|
|
94
|
+
MessageScrollerButtonBaseProps) {
|
|
95
|
+
return (
|
|
96
|
+
<MessageScrollerPrimitive.Button
|
|
97
|
+
data-slot="message-scroller-button"
|
|
98
|
+
data-direction={direction}
|
|
99
|
+
data-variant={variant}
|
|
100
|
+
data-size={size}
|
|
101
|
+
direction={direction}
|
|
102
|
+
className={cn(
|
|
103
|
+
'border-border bg-background text-foreground hover:bg-muted hover:text-foreground absolute inset-s-1/2 -translate-x-1/2 transition-[translate,scale,opacity] duration-200 data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180',
|
|
104
|
+
className,
|
|
105
|
+
)}
|
|
106
|
+
render={render ?? <Button variant={variant} size={size} />}
|
|
107
|
+
{...props}
|
|
108
|
+
>
|
|
109
|
+
{children ?? (
|
|
110
|
+
<>
|
|
111
|
+
<ArrowDownIcon />
|
|
112
|
+
<span className="sr-only">{direction === 'end' ? 'Scroll to end' : 'Scroll to start'}</span>
|
|
113
|
+
</>
|
|
114
|
+
)}
|
|
115
|
+
</MessageScrollerPrimitive.Button>
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
MessageScroller,
|
|
121
|
+
MessageScrollerButton,
|
|
122
|
+
MessageScrollerContent,
|
|
123
|
+
MessageScrollerItem,
|
|
124
|
+
MessageScrollerProvider,
|
|
125
|
+
MessageScrollerViewport,
|
|
126
|
+
useMessageScroller,
|
|
127
|
+
useMessageScrollerScrollable,
|
|
128
|
+
useMessageScrollerVisibility,
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// Verify that the components satisfy the ui-core contracts
|
|
132
|
+
export type ___verifyMessageScrollerContract =
|
|
133
|
+
React.ComponentProps<typeof MessageScroller> extends MessageScrollerBaseProps ? true : false;
|