@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/card.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
1
|
import type { CardBaseProps } from '@gv-tech/ui-core';
|
|
4
|
-
import { cn } from '
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import * as React from 'react';
|
|
5
4
|
|
|
6
5
|
function Card({ className, size = 'default', ...props }: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {
|
|
7
6
|
return (
|
|
@@ -9,7 +8,7 @@ function Card({ className, size = 'default', ...props }: React.ComponentProps<'d
|
|
|
9
8
|
data-slot="card"
|
|
10
9
|
data-size={size}
|
|
11
10
|
className={cn(
|
|
12
|
-
'group/card bg-card text-card-foreground ring-foreground/10 flex flex-col gap-
|
|
11
|
+
'group/card bg-card text-card-foreground ring-foreground/10 flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',
|
|
13
12
|
className,
|
|
14
13
|
)}
|
|
15
14
|
{...props}
|
|
@@ -22,7 +21,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
22
21
|
<div
|
|
23
22
|
data-slot="card-header"
|
|
24
23
|
className={cn(
|
|
25
|
-
'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-
|
|
24
|
+
'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)',
|
|
26
25
|
className,
|
|
27
26
|
)}
|
|
28
27
|
{...props}
|
|
@@ -55,14 +54,14 @@ function CardAction({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
|
|
58
|
-
return <div data-slot="card-content" className={cn('px-
|
|
57
|
+
return <div data-slot="card-content" className={cn('px-(--card-spacing)', className)} {...props} />;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
62
61
|
return (
|
|
63
62
|
<div
|
|
64
63
|
data-slot="card-footer"
|
|
65
|
-
className={cn('bg-muted/50 flex items-center rounded-b-xl border-t p-
|
|
64
|
+
className={cn('bg-muted/50 flex items-center rounded-b-xl border-t p-(--card-spacing)', className)}
|
|
66
65
|
{...props}
|
|
67
66
|
/>
|
|
68
67
|
);
|
package/src/carousel.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import type { CarouselBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
1
3
|
import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
4
|
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
|
-
import
|
|
6
|
-
import { cn } from './lib/utils';
|
|
5
|
+
import * as React from 'react';
|
|
7
6
|
|
|
8
|
-
import
|
|
7
|
+
import { Button } from '@/./button';
|
|
9
8
|
|
|
10
9
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
11
10
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
@@ -48,7 +47,7 @@ function Carousel({
|
|
|
48
47
|
className,
|
|
49
48
|
children,
|
|
50
49
|
...props
|
|
51
|
-
}: React.ComponentProps<'
|
|
50
|
+
}: React.ComponentProps<'section'> & CarouselProps) {
|
|
52
51
|
const [carouselRef, api] = useEmblaCarousel(
|
|
53
52
|
{
|
|
54
53
|
...opts,
|
|
@@ -76,7 +75,7 @@ function Carousel({
|
|
|
76
75
|
}, [api]);
|
|
77
76
|
|
|
78
77
|
const handleKeyDown = React.useCallback(
|
|
79
|
-
(event: React.KeyboardEvent<
|
|
78
|
+
(event: React.KeyboardEvent<HTMLElement>) => {
|
|
80
79
|
if (event.key === 'ArrowLeft') {
|
|
81
80
|
event.preventDefault();
|
|
82
81
|
scrollPrev();
|
|
@@ -99,6 +98,8 @@ function Carousel({
|
|
|
99
98
|
if (!api) {
|
|
100
99
|
return;
|
|
101
100
|
}
|
|
101
|
+
// Sync parent with the initial selection on subscribe (external store sync)
|
|
102
|
+
// eslint-disable-next-line react/set-state-in-effect
|
|
102
103
|
onSelect(api);
|
|
103
104
|
api.on('reInit', onSelect);
|
|
104
105
|
api.on('select', onSelect);
|
|
@@ -121,16 +122,15 @@ function Carousel({
|
|
|
121
122
|
canScrollNext,
|
|
122
123
|
}}
|
|
123
124
|
>
|
|
124
|
-
<
|
|
125
|
+
<section
|
|
125
126
|
onKeyDownCapture={handleKeyDown}
|
|
126
127
|
className={cn('relative', className)}
|
|
127
|
-
role="region"
|
|
128
128
|
aria-roledescription="carousel"
|
|
129
129
|
data-slot="carousel"
|
|
130
130
|
{...props}
|
|
131
131
|
>
|
|
132
132
|
{children}
|
|
133
|
-
</
|
|
133
|
+
</section>
|
|
134
134
|
</CarouselContext.Provider>
|
|
135
135
|
);
|
|
136
136
|
}
|
|
@@ -145,12 +145,11 @@ function CarouselContent({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
function CarouselItem({ className, ...props }: React.ComponentProps<'
|
|
148
|
+
function CarouselItem({ className, ...props }: React.ComponentProps<'fieldset'>) {
|
|
149
149
|
const { orientation } = useCarousel();
|
|
150
150
|
|
|
151
151
|
return (
|
|
152
|
-
<
|
|
153
|
-
role="group"
|
|
152
|
+
<fieldset
|
|
154
153
|
aria-roledescription="slide"
|
|
155
154
|
data-slot="carousel-item"
|
|
156
155
|
className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'ps-4' : 'pt-4', className)}
|
|
@@ -175,7 +174,7 @@ function CarouselPrevious({
|
|
|
175
174
|
className={cn(
|
|
176
175
|
'absolute touch-manipulation rounded-full',
|
|
177
176
|
orientation === 'horizontal'
|
|
178
|
-
? '-start-12
|
|
177
|
+
? 'inset-y-0 -start-12 my-auto'
|
|
179
178
|
: 'start-1/2 -top-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2',
|
|
180
179
|
className,
|
|
181
180
|
)}
|
|
@@ -183,7 +182,7 @@ function CarouselPrevious({
|
|
|
183
182
|
onClick={scrollPrev}
|
|
184
183
|
{...props}
|
|
185
184
|
>
|
|
186
|
-
<ChevronLeftIcon />
|
|
185
|
+
<ChevronLeftIcon className="rtl:rotate-180" />
|
|
187
186
|
<span className="sr-only">Previous slide</span>
|
|
188
187
|
</Button>
|
|
189
188
|
);
|
|
@@ -205,7 +204,7 @@ function CarouselNext({
|
|
|
205
204
|
className={cn(
|
|
206
205
|
'absolute touch-manipulation rounded-full',
|
|
207
206
|
orientation === 'horizontal'
|
|
208
|
-
? '-end-12
|
|
207
|
+
? 'inset-y-0 -end-12 my-auto'
|
|
209
208
|
: 'start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2',
|
|
210
209
|
className,
|
|
211
210
|
)}
|
|
@@ -213,7 +212,7 @@ function CarouselNext({
|
|
|
213
212
|
onClick={scrollNext}
|
|
214
213
|
{...props}
|
|
215
214
|
>
|
|
216
|
-
<ChevronRightIcon />
|
|
215
|
+
<ChevronRightIcon className="rtl:rotate-180" />
|
|
217
216
|
<span className="sr-only">Next slide</span>
|
|
218
217
|
</Button>
|
|
219
218
|
);
|
package/src/chart.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { cn } from 'cn';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import type { TooltipValueType } from 'recharts';
|
|
5
6
|
import * as RechartsPrimitive from 'recharts';
|
|
6
7
|
|
|
7
|
-
import { cn } from './lib/utils';
|
|
8
|
-
|
|
9
8
|
// Format: { THEME_NAME: CSS_SELECTOR }
|
|
10
9
|
const THEMES = { light: '', dark: '.dark' } as const;
|
|
11
10
|
|
|
@@ -305,5 +304,3 @@ function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key:
|
|
|
305
304
|
}
|
|
306
305
|
|
|
307
306
|
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
|
|
308
|
-
|
|
309
|
-
// The script was manually reverted here
|
package/src/checkbox.tsx
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
import type { CheckboxBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import { CheckIcon } from 'lucide-react';
|
|
1
4
|
import { Checkbox as CheckboxPrimitive } from 'radix-ui';
|
|
2
5
|
import * as React from 'react';
|
|
3
6
|
|
|
4
|
-
import { CheckIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
|
-
import type { CheckboxBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
7
|
function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
|
|
10
8
|
return (
|
|
11
9
|
<CheckboxPrimitive.Root
|
|
12
10
|
data-slot="checkbox"
|
|
13
11
|
className={cn(
|
|
14
|
-
'peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-
|
|
12
|
+
'peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',
|
|
15
13
|
className,
|
|
16
14
|
)}
|
|
17
15
|
{...props}
|
package/src/collapsible.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
|
|
4
|
-
|
|
5
3
|
import type { CollapsibleBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
|
|
6
5
|
|
|
7
6
|
function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
|
|
8
7
|
return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />;
|
package/src/combobox.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
4
|
import type {
|
|
7
5
|
ComboboxChipBaseProps,
|
|
8
6
|
ComboboxChipsBaseProps,
|
|
@@ -20,10 +18,12 @@ import type {
|
|
|
20
18
|
ComboboxTriggerBaseProps,
|
|
21
19
|
ComboboxValueBaseProps,
|
|
22
20
|
} from '@gv-tech/ui-core';
|
|
21
|
+
import { cn } from 'cn';
|
|
23
22
|
import { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
import {
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
|
|
25
|
+
import { Button } from '@/./button';
|
|
26
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from '@/./input-group';
|
|
27
27
|
|
|
28
28
|
const Combobox = ComboboxPrimitive.Root;
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ function ComboboxTrigger({
|
|
|
39
39
|
return (
|
|
40
40
|
<ComboboxPrimitive.Trigger
|
|
41
41
|
data-slot="combobox-trigger"
|
|
42
|
-
className={cn(
|
|
42
|
+
className={cn("[&_svg:not([class*='size-'])]:size-4", className)}
|
|
43
43
|
{...props}
|
|
44
44
|
>
|
|
45
45
|
{children}
|
|
@@ -117,7 +117,7 @@ function ComboboxContent({
|
|
|
117
117
|
data-slot="combobox-content"
|
|
118
118
|
data-chips={!!anchor}
|
|
119
119
|
className={cn(
|
|
120
|
-
'group/combobox-content bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-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-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 data-
|
|
120
|
+
'group/combobox-content bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-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-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 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 max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg shadow-md ring-1 duration-100 data-[chips=true]:min-w-(--anchor-width) *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none',
|
|
121
121
|
className,
|
|
122
122
|
)}
|
|
123
123
|
{...props}
|
|
@@ -145,7 +145,7 @@ function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.
|
|
|
145
145
|
<ComboboxPrimitive.Item
|
|
146
146
|
data-slot="combobox-item"
|
|
147
147
|
className={cn(
|
|
148
|
-
|
|
148
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 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",
|
|
149
149
|
className,
|
|
150
150
|
)}
|
|
151
151
|
{...props}
|
package/src/command.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import type { CommandBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
-
import
|
|
3
|
-
|
|
3
|
+
import { cn } from 'cn';
|
|
4
4
|
import { CheckIcon, SearchIcon } from 'lucide-react';
|
|
5
|
-
import
|
|
6
|
-
import { InputGroup, InputGroupAddon } from './input-group';
|
|
7
|
-
import { cn } from './lib/utils';
|
|
5
|
+
import * as React from 'react';
|
|
8
6
|
|
|
9
|
-
import
|
|
7
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/./dialog';
|
|
8
|
+
import { InputGroup, InputGroupAddon } from '@/./input-group';
|
|
10
9
|
|
|
11
10
|
function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {
|
|
12
11
|
return (
|
|
@@ -41,7 +40,7 @@ function CommandDialog({
|
|
|
41
40
|
<DialogDescription>{description}</DialogDescription>
|
|
42
41
|
</DialogHeader>
|
|
43
42
|
<DialogContent
|
|
44
|
-
className={cn('top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0
|
|
43
|
+
className={cn('top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0', className)}
|
|
45
44
|
showCloseButton={showCloseButton}
|
|
46
45
|
>
|
|
47
46
|
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5">
|
|
@@ -117,7 +116,7 @@ function CommandItem({ className, children, ...props }: React.ComponentProps<typ
|
|
|
117
116
|
<CommandPrimitive.Item
|
|
118
117
|
data-slot="command-item"
|
|
119
118
|
className={cn(
|
|
120
|
-
|
|
119
|
+
"group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
121
120
|
className,
|
|
122
121
|
)}
|
|
123
122
|
{...props}
|
|
@@ -133,7 +132,7 @@ function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>)
|
|
|
133
132
|
<span
|
|
134
133
|
data-slot="command-shortcut"
|
|
135
134
|
className={cn(
|
|
136
|
-
'text-muted-foreground group-data-
|
|
135
|
+
'text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest',
|
|
137
136
|
className,
|
|
138
137
|
)}
|
|
139
138
|
{...props}
|
package/src/context-menu.tsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { ContextMenuBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
1
4
|
import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
|
|
2
5
|
import * as React from 'react';
|
|
3
6
|
|
|
4
|
-
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
|
-
import type { ContextMenuBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
7
|
function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
|
|
10
8
|
return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />;
|
|
11
9
|
}
|
|
@@ -47,7 +45,7 @@ function ContextMenuContent({
|
|
|
47
45
|
<ContextMenuPrimitive.Content
|
|
48
46
|
data-slot="context-menu-content"
|
|
49
47
|
className={cn(
|
|
50
|
-
'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-
|
|
48
|
+
'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 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100',
|
|
51
49
|
className,
|
|
52
50
|
)}
|
|
53
51
|
{...props}
|
|
@@ -71,7 +69,7 @@ function ContextMenuItem({
|
|
|
71
69
|
data-inset={inset}
|
|
72
70
|
data-variant={variant}
|
|
73
71
|
className={cn(
|
|
74
|
-
|
|
72
|
+
"group/context-menu-item focus:bg-accent 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 focus:*:[svg]:text-accent-foreground 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",
|
|
75
73
|
className,
|
|
76
74
|
)}
|
|
77
75
|
{...props}
|
|
@@ -92,13 +90,13 @@ function ContextMenuSubTrigger({
|
|
|
92
90
|
data-slot="context-menu-sub-trigger"
|
|
93
91
|
data-inset={inset}
|
|
94
92
|
className={cn(
|
|
95
|
-
|
|
93
|
+
"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-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
96
94
|
className,
|
|
97
95
|
)}
|
|
98
96
|
{...props}
|
|
99
97
|
>
|
|
100
98
|
{children}
|
|
101
|
-
<ChevronRightIcon className="ms-auto" />
|
|
99
|
+
<ChevronRightIcon className="ms-auto rtl:rotate-180" />
|
|
102
100
|
</ContextMenuPrimitive.SubTrigger>
|
|
103
101
|
);
|
|
104
102
|
}
|
|
@@ -108,7 +106,7 @@ function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typ
|
|
|
108
106
|
<ContextMenuPrimitive.SubContent
|
|
109
107
|
data-slot="context-menu-sub-content"
|
|
110
108
|
className={cn(
|
|
111
|
-
'bg-popover text-popover-foreground 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-
|
|
109
|
+
'bg-popover text-popover-foreground 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-context-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg duration-100',
|
|
112
110
|
className,
|
|
113
111
|
)}
|
|
114
112
|
{...props}
|
|
@@ -130,7 +128,7 @@ function ContextMenuCheckboxItem({
|
|
|
130
128
|
data-slot="context-menu-checkbox-item"
|
|
131
129
|
data-inset={inset}
|
|
132
130
|
className={cn(
|
|
133
|
-
|
|
131
|
+
"focus:bg-accent focus:text-accent-foreground relative flex 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 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
134
132
|
className,
|
|
135
133
|
)}
|
|
136
134
|
checked={checked}
|
|
@@ -159,7 +157,7 @@ function ContextMenuRadioItem({
|
|
|
159
157
|
data-slot="context-menu-radio-item"
|
|
160
158
|
data-inset={inset}
|
|
161
159
|
className={cn(
|
|
162
|
-
|
|
160
|
+
"focus:bg-accent focus:text-accent-foreground relative flex 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 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
163
161
|
className,
|
|
164
162
|
)}
|
|
165
163
|
{...props}
|
package/src/dialog.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { DialogBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
5
|
+
import { XIcon } from 'lucide-react';
|
|
3
6
|
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
4
7
|
import * as React from 'react';
|
|
5
8
|
|
|
6
|
-
import {
|
|
7
|
-
import { Button } from './button';
|
|
8
|
-
import { cn } from './lib/utils';
|
|
9
|
-
|
|
10
|
-
import type { DialogBaseProps } from '@gv-tech/ui-core';
|
|
9
|
+
import { Button } from '@/./button';
|
|
11
10
|
|
|
12
11
|
function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {
|
|
13
12
|
return <DialogPrimitive.Root data-slot="dialog" {...props} />;
|
|
@@ -30,7 +29,7 @@ function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dial
|
|
|
30
29
|
<DialogPrimitive.Overlay
|
|
31
30
|
data-slot="dialog-overlay"
|
|
32
31
|
className={cn(
|
|
33
|
-
'data-
|
|
32
|
+
'data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs',
|
|
34
33
|
className,
|
|
35
34
|
)}
|
|
36
35
|
{...props}
|
|
@@ -52,7 +51,7 @@ function DialogContent({
|
|
|
52
51
|
<DialogPrimitive.Content
|
|
53
52
|
data-slot="dialog-content"
|
|
54
53
|
className={cn(
|
|
55
|
-
'bg-popover text-popover-foreground ring-foreground/10 data-
|
|
54
|
+
'bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm rtl:translate-x-1/2',
|
|
56
55
|
className,
|
|
57
56
|
)}
|
|
58
57
|
{...props}
|
package/src/direction.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { DirectionProviderBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { Direction } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
|
-
import type { DirectionProviderBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
function DirectionProvider({
|
|
9
8
|
dir,
|
|
10
9
|
direction,
|
package/src/drawer.tsx
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import type { DrawerBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
5
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
|
-
import type { DrawerBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
6
|
function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
|
9
7
|
return <DrawerPrimitive.Root data-slot="drawer" {...props} />;
|
|
10
8
|
}
|
|
@@ -26,7 +24,7 @@ function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Draw
|
|
|
26
24
|
<DrawerPrimitive.Overlay
|
|
27
25
|
data-slot="drawer-overlay"
|
|
28
26
|
className={cn(
|
|
29
|
-
'data-
|
|
27
|
+
'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 supports-backdrop-filter:backdrop-blur-xs',
|
|
30
28
|
className,
|
|
31
29
|
)}
|
|
32
30
|
{...props}
|
package/src/dropdown-menu.tsx
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { DropdownMenuBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
5
|
+
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
3
6
|
import { DropdownMenu as DropdownMenuPrimitive } 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 { DropdownMenuBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
9
|
function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
|
|
12
10
|
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
|
|
13
11
|
}
|
|
@@ -33,7 +31,7 @@ function DropdownMenuContent({
|
|
|
33
31
|
sideOffset={sideOffset}
|
|
34
32
|
align={align}
|
|
35
33
|
className={cn(
|
|
36
|
-
'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-
|
|
34
|
+
'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 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 data-[state=closed]:overflow-hidden',
|
|
37
35
|
className,
|
|
38
36
|
)}
|
|
39
37
|
{...props}
|
|
@@ -61,7 +59,7 @@ function DropdownMenuItem({
|
|
|
61
59
|
data-inset={inset}
|
|
62
60
|
data-variant={variant}
|
|
63
61
|
className={cn(
|
|
64
|
-
|
|
62
|
+
"group/dropdown-menu-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",
|
|
65
63
|
className,
|
|
66
64
|
)}
|
|
67
65
|
{...props}
|
|
@@ -83,7 +81,7 @@ function DropdownMenuCheckboxItem({
|
|
|
83
81
|
data-slot="dropdown-menu-checkbox-item"
|
|
84
82
|
data-inset={inset}
|
|
85
83
|
className={cn(
|
|
86
|
-
|
|
84
|
+
"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-1.5 pe-8 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",
|
|
87
85
|
className,
|
|
88
86
|
)}
|
|
89
87
|
checked={checked}
|
|
@@ -119,7 +117,7 @@ function DropdownMenuRadioItem({
|
|
|
119
117
|
data-slot="dropdown-menu-radio-item"
|
|
120
118
|
data-inset={inset}
|
|
121
119
|
className={cn(
|
|
122
|
-
|
|
120
|
+
"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-1.5 pe-8 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",
|
|
123
121
|
className,
|
|
124
122
|
)}
|
|
125
123
|
{...props}
|
|
@@ -194,13 +192,13 @@ function DropdownMenuSubTrigger({
|
|
|
194
192
|
data-slot="dropdown-menu-sub-trigger"
|
|
195
193
|
data-inset={inset}
|
|
196
194
|
className={cn(
|
|
197
|
-
|
|
195
|
+
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
198
196
|
className,
|
|
199
197
|
)}
|
|
200
198
|
{...props}
|
|
201
199
|
>
|
|
202
200
|
{children}
|
|
203
|
-
<ChevronRightIcon className="ms-auto" />
|
|
201
|
+
<ChevronRightIcon className="ms-auto rtl:rotate-180" />
|
|
204
202
|
</DropdownMenuPrimitive.SubTrigger>
|
|
205
203
|
);
|
|
206
204
|
}
|
|
@@ -213,7 +211,7 @@ function DropdownMenuSubContent({
|
|
|
213
211
|
<DropdownMenuPrimitive.SubContent
|
|
214
212
|
data-slot="dropdown-menu-sub-content"
|
|
215
213
|
className={cn(
|
|
216
|
-
'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-
|
|
214
|
+
'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-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100',
|
|
217
215
|
className,
|
|
218
216
|
)}
|
|
219
217
|
{...props}
|
package/src/empty.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
|
|
3
|
-
import { cn } from './lib/utils';
|
|
4
|
-
|
|
5
1
|
import type { EmptyBaseProps, EmptyMediaBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { cn } from 'cn';
|
|
6
4
|
|
|
7
5
|
function Empty({ className, ...props }: React.ComponentProps<'div'> & EmptyBaseProps) {
|
|
8
6
|
return (
|
|
@@ -29,7 +27,7 @@ const emptyMediaVariants = cva(
|
|
|
29
27
|
variants: {
|
|
30
28
|
variant: {
|
|
31
29
|
default: 'bg-transparent',
|
|
32
|
-
icon:
|
|
30
|
+
icon: "bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-4",
|
|
33
31
|
},
|
|
34
32
|
},
|
|
35
33
|
defaultVariants: {
|
package/src/field.tsx
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { useMemo } from 'react';
|
|
5
|
-
|
|
6
3
|
import type {
|
|
7
4
|
FieldBaseProps,
|
|
8
5
|
FieldContentBaseProps,
|
|
@@ -15,9 +12,12 @@ import type {
|
|
|
15
12
|
FieldSetBaseProps,
|
|
16
13
|
FieldTitleBaseProps,
|
|
17
14
|
} from '@gv-tech/ui-core';
|
|
18
|
-
import {
|
|
19
|
-
import { cn } from '
|
|
20
|
-
import {
|
|
15
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
16
|
+
import { cn } from 'cn';
|
|
17
|
+
import { useMemo } from 'react';
|
|
18
|
+
|
|
19
|
+
import { Label } from '@/./label';
|
|
20
|
+
import { Separator } from '@/./separator';
|
|
21
21
|
|
|
22
22
|
function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'> & FieldSetBaseProps) {
|
|
23
23
|
return (
|
|
@@ -60,7 +60,7 @@ function FieldGroup({ className, ...props }: React.ComponentProps<'div'> & Field
|
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
const fieldVariants = cva('group/field
|
|
63
|
+
const fieldVariants = cva('group/field data-[invalid=true]:text-destructive flex w-full gap-2', {
|
|
64
64
|
variants: {
|
|
65
65
|
orientation: {
|
|
66
66
|
vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',
|
|
@@ -79,10 +79,9 @@ function Field({
|
|
|
79
79
|
className,
|
|
80
80
|
orientation = 'vertical',
|
|
81
81
|
...props
|
|
82
|
-
}: React.ComponentProps<'
|
|
82
|
+
}: React.ComponentProps<'fieldset'> & VariantProps<typeof fieldVariants> & FieldBaseProps) {
|
|
83
83
|
return (
|
|
84
|
-
<
|
|
85
|
-
role="group"
|
|
84
|
+
<fieldset
|
|
86
85
|
data-slot="field"
|
|
87
86
|
data-orientation={orientation}
|
|
88
87
|
className={cn(fieldVariants({ orientation }), className)}
|
|
@@ -106,7 +105,7 @@ function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>
|
|
|
106
105
|
<Label
|
|
107
106
|
data-slot="field-label"
|
|
108
107
|
className={cn(
|
|
109
|
-
'group/field-label peer/field-label has-data-
|
|
108
|
+
'group/field-label peer/field-label has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-2.5',
|
|
110
109
|
'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',
|
|
111
110
|
className,
|
|
112
111
|
)}
|