@gv-tech/ui-web 2.29.0 → 2.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__contracts.d.ts +0 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/{accordion-Bqt-y-u7.mjs → accordion-D5QXSsCK.mjs} +83 -74
- package/dist/accordion-DjyDOX-h.js +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +1 -1
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/{alert-dialog-BkUyJb_F.mjs → alert-dialog-B-a0Wa1M.mjs} +47 -47
- package/dist/alert-dialog-DYQAhGBC.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +1 -1
- 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 +1 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +2 -2
- package/dist/{aspect-ratio-X3HWxQz0.js → aspect-ratio-C-KOOyGP.js} +1 -1
- package/dist/{aspect-ratio-C7oBX-p_.mjs → aspect-ratio-s7Ji1MSr.mjs} +2 -2
- 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 -1
- package/dist/attachment.d.ts +2 -2
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.mjs +3 -3
- package/dist/avatar-4K3XjhP8.js +1 -0
- package/dist/{avatar-DTkhTxt7.mjs → avatar-d8Di248f.mjs} +49 -44
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +1 -1
- 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 +1 -1
- 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.map +1 -1
- package/dist/breadcrumb.mjs +1 -3
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.d.ts +1 -1
- package/dist/bubble.d.ts.map +1 -1
- package/dist/bubble.mjs +4 -4
- 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 +3 -4
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +3 -3
- package/dist/calendar-DFj14O6r.js +1 -0
- package/dist/{calendar-CkHWa9Uu.mjs → calendar-UW8h9dfh.mjs} +443 -437
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.d.ts.map +1 -1
- package/dist/{carousel-Cv5isLeg.js → carousel-CNGpg5df.js} +1 -1
- package/dist/{carousel-ynaeMNIV.mjs → carousel-DG9xGJns.mjs} +3 -5
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +3 -3
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/checkbox-BCgbTAdU.js +1 -0
- package/dist/{checkbox-BLvAEmRC.mjs → checkbox-Dq8VHKDH.mjs} +48 -44
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/{chunk-HBS6WEDP-CzyhzCaP.mjs → chunk-HBS6WEDP-aK8IuEX9.mjs} +1 -1
- 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.map +1 -1
- package/dist/combobox.mjs +1 -1
- package/dist/{command-DY6u8V0D.mjs → command-5hobOyGG.mjs} +6 -6
- package/dist/{command-BqO-CfH6.js → command-Dbqnm9kI.js} +1 -1
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +1 -1
- 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-tL6CY6a0.mjs → context-menu-DzzU-_v8.mjs} +115 -116
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +1 -1
- 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 +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +1 -1
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +1 -1
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/{dist-BTN2t9yv.js → dist-1zUKVGvf.js} +1 -1
- package/dist/{dist-BIXhHahX.mjs → dist-B057I8ju.mjs} +4 -4
- package/dist/{dist-DyMv0xk8.mjs → dist-BB78QQyQ.mjs} +1 -1
- package/dist/dist-BBvidwzC.js +1 -0
- package/dist/{dist-BQhMregZ.mjs → dist-BEbV0Hal.mjs} +2 -2
- package/dist/dist-BPL7gUpg.mjs +18 -0
- package/dist/{dist-Dj9s8AIv.js → dist-BTUvBzOm.js} +1 -1
- package/dist/{dist-CdBAkUWT.js → dist-BU-TFzJf.js} +1 -1
- package/dist/dist-Bb5W_J2F.mjs +39 -0
- package/dist/dist-BbI6NHqR.mjs +23 -0
- package/dist/{dist-5r7hQmO0.mjs → dist-BexAB6yo.mjs} +53 -48
- package/dist/dist-BgXIqHHq.js +1 -0
- package/dist/{dist-BUXpRW9O.mjs → dist-Bvfb4y_L.mjs} +3 -3
- package/dist/{dist-DMwCTE2i.mjs → dist-CPAF050o.mjs} +1 -1
- package/dist/{dist-6c2NeKfz.mjs → dist-CUvxOuXM.mjs} +192 -177
- package/dist/dist-ClYM7l1t.js +1 -0
- package/dist/{dist-Dg9ASyqI.mjs → dist-CpKLY_uZ.mjs} +2 -2
- package/dist/dist-D1qkELLT.js +1 -0
- package/dist/dist-DEpkkABT.js +1 -0
- package/dist/{dist-rx5WaFf5.mjs → dist-DI1vapnL.mjs} +3 -3
- package/dist/dist-DKXojpVG.js +1 -0
- package/dist/dist-DatgTWLz.mjs +202 -0
- package/dist/dist-DoivLw3t.js +1 -0
- package/dist/{dist-8fYwoWd4.mjs → dist-Dq-h6VAy.mjs} +21 -14
- package/dist/{dist-DfvK7DpO.mjs → dist-Dt6m-kwU.mjs} +86 -78
- package/dist/dist-E8ieJTBC.mjs +190 -0
- package/dist/{dist-D7UHN1DJ.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-CBsYNwXz.mjs → dist-UkWa-Arh.mjs} +2 -2
- package/dist/dist-UnTrOmPV.js +1 -0
- package/dist/dist-Zs2sjYhL.js +1 -0
- package/dist/{dist-BoNQb2nd.js → dist-hFLuJoMi.js} +1 -1
- package/dist/{dist-CYrqAnIr.mjs → dist-s7ibhASj.mjs} +6 -7
- package/dist/{dist-ByW6RHeZ.mjs → dist-vu20fMUK.mjs} +15 -16
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/{dropdown-menu-BWqWoYis.mjs → dropdown-menu-BqAhn64y.mjs} +106 -106
- package/dist/dropdown-menu-BtKOr--r.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +1 -1
- 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 +1 -1
- 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 +4 -5
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +2 -2
- 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 +1 -1
- 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.mjs +35 -35
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +3 -3
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +3 -8
- package/dist/{input-otp-m_BTudNY.mjs → input-otp-D49Y9VcH.mjs} +2 -2
- package/dist/{input-otp-D9MwUsPO.js → input-otp-u3obpt-Q.js} +1 -1
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +1 -1
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +2 -2
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +5 -6
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/{label-CgKiKHKG.js → label-Dacwh21G.js} +1 -1
- package/dist/{label-DVA-YKpB.mjs → label-DsSICLPc.mjs} +2 -2
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.d.ts +1 -1
- package/dist/marker.d.ts.map +1 -1
- package/dist/marker.mjs +4 -4
- package/dist/menubar-BYNeRuzx.js +1 -0
- package/dist/{menubar-CyKBLHme.mjs → menubar-DZqEj6S1.mjs} +102 -100
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/{message-scroller-FwdKclRM.mjs → message-scroller-CS4t7Ypn.mjs} +2 -2
- package/dist/message-scroller.d.ts +1 -1
- package/dist/message-scroller.d.ts.map +1 -1
- package/dist/message-scroller.mjs +1 -1
- package/dist/message.d.ts.map +1 -1
- package/dist/native-select.d.ts.map +1 -1
- package/dist/navigation-menu-B36G3O83.js +1 -0
- package/dist/{navigation-menu-BzE1J1rs.mjs → navigation-menu-RO6thDOF.mjs} +245 -217
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +1 -1
- 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 +2 -2
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +3 -2
- 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 +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/{progress-nfJMuKGj.js → progress-B9z08UXf.js} +2 -2
- package/dist/{progress-ClcVCqjl.mjs → progress-CQ4nQ85t.mjs} +7 -8
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/{questionnaire-DKWcZeWT.mjs → questionnaire-CVED7G7R.mjs} +2 -2
- package/dist/questionnaire.d.ts +1 -1
- package/dist/questionnaire.d.ts.map +1 -1
- package/dist/questionnaire.mjs +1 -1
- package/dist/radio-group-Bd3WbH5I.js +1 -0
- package/dist/{radio-group-5VwmCXRK.mjs → radio-group-TRiAhMZB.mjs} +43 -42
- package/dist/radio-group.cjs +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.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 +1 -1
- 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.map +1 -1
- package/dist/scroll-to-top.mjs +7 -5
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +1 -1
- package/dist/{select-CnHZdna2.mjs → select-BFJUmjvX.mjs} +326 -288
- package/dist/select-iQFoKU1s.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/{separator-D1a8myFf.mjs → separator-2kr96SyF.mjs} +15 -13
- package/dist/separator-Bo49G2aj.js +1 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +1 -1
- 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 +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +1 -1
- package/dist/sidebar-C6O8hLkz.js +1 -0
- package/dist/{sidebar-B5q6nH2G.mjs → sidebar-DM9ee9wf.mjs} +6 -6
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +1 -1
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +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 +1 -1
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.d.ts +1 -1
- 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 +8 -4
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/switch-CoeAC1Wk.js +1 -0
- package/dist/{switch-DagjjAQu.mjs → switch-zUBdj7jK.mjs} +46 -42
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +1 -1
- 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 +5 -10
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +1 -0
- package/dist/table.d.ts.map +1 -1
- package/dist/{tabs-OQ6rj-3B.mjs → tabs-DaE9pEbo.mjs} +47 -45
- package/dist/tabs-TMhXe20x.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +1 -1
- 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.d.ts.map +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/{theme-toggle-BCcH-QtH.mjs → theme-toggle-3RStptYf.mjs} +21 -12
- 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-DS9iODKU.js → toaster-CX9im8R_.js} +1 -1
- package/dist/{toaster-CKAJ9cht.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-CuLxBIWH.mjs → toggle-BAeKd2N0.mjs} +10 -10
- package/dist/{toggle-group-DfkvPKU_.mjs → toggle-group-CEKhUozD.mjs} +47 -44
- package/dist/toggle-group-htyug3G7.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +16 -16
- package/src/__contracts.ts +318 -321
- package/src/accordion.tsx +1 -2
- package/src/alert-dialog.tsx +1 -2
- package/src/alert.tsx +3 -4
- package/src/aspect-ratio.tsx +1 -2
- package/src/attachment.tsx +8 -9
- package/src/avatar.tsx +1 -2
- package/src/badge.tsx +2 -3
- package/src/breadcrumb.tsx +1 -4
- package/src/bubble.tsx +7 -8
- package/src/button-group.tsx +2 -3
- package/src/button.tsx +3 -4
- package/src/calendar.tsx +8 -9
- package/src/card.tsx +1 -2
- package/src/carousel.tsx +9 -10
- package/src/checkbox.tsx +1 -2
- package/src/collapsible.tsx +1 -2
- package/src/combobox.tsx +6 -7
- package/src/command.tsx +1 -2
- package/src/context-menu.tsx +1 -2
- package/src/dialog.tsx +1 -2
- package/src/direction.tsx +1 -2
- package/src/drawer.tsx +1 -2
- package/src/dropdown-menu.tsx +1 -2
- package/src/empty.tsx +2 -3
- package/src/field.tsx +9 -11
- package/src/form.tsx +8 -8
- package/src/hooks/use-mobile.ts +1 -1
- package/src/hover-card.tsx +1 -2
- package/src/input-group.tsx +12 -21
- package/src/input-otp.tsx +5 -6
- package/src/input.tsx +1 -2
- package/src/item.tsx +10 -12
- package/src/kbd.tsx +1 -2
- package/src/label.tsx +1 -2
- package/src/marker.tsx +4 -5
- package/src/menubar.tsx +1 -2
- package/src/message-scroller.tsx +9 -10
- package/src/message.tsx +2 -3
- package/src/native-select.tsx +3 -4
- package/src/navigation-menu.tsx +2 -3
- package/src/pagination.tsx +5 -4
- package/src/popover.tsx +1 -2
- package/src/progress.tsx +1 -2
- package/src/questionnaire.tsx +6 -7
- package/src/scroll-area.tsx +1 -2
- package/src/scroll-to-top.tsx +7 -2
- package/src/search.tsx +2 -1
- package/src/select.tsx +1 -2
- package/src/separator.tsx +1 -2
- package/src/setupTests.ts +9 -9
- package/src/sheet.tsx +1 -2
- package/src/sidebar.tsx +15 -16
- package/src/skeleton.tsx +1 -2
- package/src/slider.tsx +1 -2
- package/src/spinner.tsx +8 -7
- package/src/support-fab.tsx +5 -1
- package/src/switch.tsx +1 -2
- package/src/table-of-contents.tsx +8 -11
- package/src/table.tsx +1 -2
- package/src/tabs.tsx +2 -3
- package/src/text.tsx +4 -4
- package/src/textarea.tsx +1 -2
- 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 +1 -2
- package/src/toggle.tsx +3 -4
- package/src/tooltip.tsx +1 -2
- package/dist/accordion-BgbjpZAF.js +0 -1
- package/dist/alert-dialog-DonbkCSD.js +0 -1
- package/dist/avatar-DhvZbCtI.js +0 -1
- package/dist/calendar-Bo8kovKR.js +0 -1
- package/dist/checkbox-Dt06B4YW.js +0 -1
- package/dist/combobox-BB_YzCTY.js +0 -4
- package/dist/combobox-YxjYGUoe.mjs +0 -5748
- package/dist/context-menu-Dad9hs94.js +0 -1
- package/dist/dist-9-j0_8D1.mjs +0 -34
- package/dist/dist-BMl8xXCH.mjs +0 -188
- package/dist/dist-BOKg7rhq.js +0 -1
- package/dist/dist-BPhn-EOy.mjs +0 -15
- package/dist/dist-Bivv8B6p.mjs +0 -16
- package/dist/dist-C83rnWRv.js +0 -1
- package/dist/dist-Cn7g8jD0.js +0 -1
- package/dist/dist-DOoZ3vGL.mjs +0 -407
- package/dist/dist-DcRkoHAk.js +0 -1
- package/dist/dist-NEeQKKDZ.js +0 -1
- package/dist/dist-N_70prl1.js +0 -1
- package/dist/dist-dMp9dzmY.mjs +0 -20
- package/dist/dist-mHQuNOH-.js +0 -1
- package/dist/dist-oyFh63Uq.js +0 -1
- package/dist/dist-v-Y6tnMq.js +0 -1
- package/dist/dist-v9094Auw.js +0 -1
- package/dist/dist-yA6iVq_M.js +0 -1
- package/dist/dropdown-menu-BpZcobmP.js +0 -1
- package/dist/es2015-CYxXY2oV.mjs +0 -727
- package/dist/es2015-t2RPC0Rg.js +0 -41
- package/dist/hover-card-7NjGqlP0.js +0 -1
- package/dist/hover-card-DuRUptxQ.mjs +0 -176
- package/dist/menubar-DlOMZeh1.js +0 -1
- package/dist/navigation-menu-CrR01R8Z.js +0 -1
- package/dist/popover-CFF_HXSf.mjs +0 -222
- package/dist/popover-D9pVy08c.js +0 -1
- package/dist/radio-group-DhXnB0fI.js +0 -1
- package/dist/resizable-ChIqXiu4.js +0 -1
- package/dist/resizable-CpovHnG-.mjs +0 -1573
- package/dist/scroll-area-CUqjuvqH.js +0 -1
- package/dist/scroll-area-DstdIGvS.mjs +0 -539
- package/dist/select-CnCTQeh7.js +0 -1
- package/dist/separator-BXaVJadH.js +0 -1
- package/dist/sidebar-ns_2TNBM.js +0 -1
- package/dist/slider-PoIV6N-u.js +0 -1
- package/dist/slider-ZnyQjYsS.mjs +0 -460
- package/dist/switch-DLY8PkmL.js +0 -1
- package/dist/tabs-QBWdNfSK.js +0 -1
- package/dist/theme-toggle-Q3UHstP_.js +0 -1
- package/dist/toast-BOdziIGg.mjs +0 -424
- package/dist/toast-D1fjLwO1.js +0 -1
- package/dist/toggle-DtpvPox_.js +0 -1
- package/dist/toggle-group-UHY0Tip1.js +0 -1
- package/dist/tooltip-BbCL1gtU.mjs +0 -384
- package/dist/tooltip-BvpyStn2.js +0 -1
package/src/attachment.tsx
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { cn } from 'cn';
|
|
3
|
-
import { Slot } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
import { Button } from '@/./button';
|
|
7
|
-
|
|
8
1
|
import type {
|
|
9
2
|
AttachmentActionBaseProps,
|
|
10
3
|
AttachmentActionsBaseProps,
|
|
@@ -16,9 +9,15 @@ import type {
|
|
|
16
9
|
AttachmentTitleBaseProps,
|
|
17
10
|
AttachmentTriggerBaseProps,
|
|
18
11
|
} from '@gv-tech/ui-core';
|
|
12
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
13
|
+
import { cn } from 'cn';
|
|
14
|
+
import { Slot } from 'radix-ui';
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
|
|
17
|
+
import { Button } from '@/./button';
|
|
19
18
|
|
|
20
19
|
const attachmentVariants = cva(
|
|
21
|
-
'group/attachment
|
|
20
|
+
'group/attachment bg-card text-card-foreground focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border transition-colors focus-within:ring-1 data-[state=idle]:border-dashed',
|
|
22
21
|
{
|
|
23
22
|
variants: {
|
|
24
23
|
size: {
|
|
@@ -55,7 +54,7 @@ function Attachment({
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
const attachmentMediaVariants = cva(
|
|
58
|
-
"relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg
|
|
57
|
+
"bg-muted text-foreground group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5",
|
|
59
58
|
{
|
|
60
59
|
variants: {
|
|
61
60
|
variant: {
|
package/src/avatar.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type { AvatarBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { Avatar as AvatarPrimitive } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
5
|
import { cn } from './lib/utils';
|
|
5
6
|
|
|
6
|
-
import type { AvatarBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
function Avatar({
|
|
9
8
|
className,
|
|
10
9
|
size = 'default',
|
package/src/badge.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import type { BadgeBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { Slot } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
6
|
import { cn } from './lib/utils';
|
|
6
7
|
|
|
7
|
-
import type { BadgeBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
const badgeVariants = cva(
|
|
10
|
-
'group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:
|
|
9
|
+
'group/badge focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!',
|
|
11
10
|
{
|
|
12
11
|
variants: {
|
|
13
12
|
variant: {
|
package/src/breadcrumb.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
|
|
3
4
|
import { Slot } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
|
-
import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {
|
|
9
8
|
return <nav aria-label="breadcrumb" data-slot="breadcrumb" className={cn(className)} {...props} />;
|
|
10
9
|
}
|
|
@@ -41,8 +40,6 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {
|
|
|
41
40
|
return (
|
|
42
41
|
<span
|
|
43
42
|
data-slot="breadcrumb-page"
|
|
44
|
-
role="link"
|
|
45
|
-
aria-disabled="true"
|
|
46
43
|
aria-current="page"
|
|
47
44
|
className={cn('text-foreground font-normal', className)}
|
|
48
45
|
{...props}
|
package/src/bubble.tsx
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { cn } from 'cn';
|
|
3
|
-
import { Slot } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
1
|
import type {
|
|
7
2
|
BubbleBaseProps,
|
|
8
3
|
BubbleContentBaseProps,
|
|
9
4
|
BubbleGroupBaseProps,
|
|
10
5
|
BubbleReactionsBaseProps,
|
|
11
6
|
} from '@gv-tech/ui-core';
|
|
7
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { cn } from 'cn';
|
|
9
|
+
import { Slot } from 'radix-ui';
|
|
10
|
+
import * as React from 'react';
|
|
12
11
|
|
|
13
12
|
function BubbleGroup({ className, ...props }: React.ComponentProps<'div'> & BubbleGroupBaseProps) {
|
|
14
13
|
return <div data-slot="bubble-group" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;
|
|
@@ -26,11 +25,11 @@ const bubbleVariants = cva(
|
|
|
26
25
|
muted:
|
|
27
26
|
'*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',
|
|
28
27
|
tinted:
|
|
29
|
-
'*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)]
|
|
28
|
+
'*:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',
|
|
30
29
|
outline:
|
|
31
30
|
'*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',
|
|
32
31
|
ghost:
|
|
33
|
-
'
|
|
32
|
+
'[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',
|
|
34
33
|
destructive:
|
|
35
34
|
'*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',
|
|
36
35
|
},
|
|
@@ -74,7 +73,7 @@ function BubbleContent({ asChild = false, className, ...props }: React.Component
|
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
const bubbleReactionsVariants = cva(
|
|
77
|
-
'absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full
|
|
76
|
+
'bg-muted ring-card absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0',
|
|
78
77
|
{
|
|
79
78
|
variants: {
|
|
80
79
|
side: {
|
package/src/button-group.tsx
CHANGED
|
@@ -27,10 +27,9 @@ function ButtonGroup({
|
|
|
27
27
|
className,
|
|
28
28
|
orientation,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<'
|
|
30
|
+
}: React.ComponentProps<'fieldset'> & VariantProps<typeof buttonGroupVariants> & ButtonGroupBaseProps) {
|
|
31
31
|
return (
|
|
32
|
-
<
|
|
33
|
-
role="group"
|
|
32
|
+
<fieldset
|
|
34
33
|
data-slot="button-group"
|
|
35
34
|
data-orientation={orientation}
|
|
36
35
|
className={cn(buttonGroupVariants({ orientation }), className)}
|
package/src/button.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import type { ButtonBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { cn } from 'cn';
|
|
3
4
|
import { Slot } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
|
-
import type { ButtonBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
const buttonVariants = cva(
|
|
9
|
-
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:
|
|
8
|
+
"group/button focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:ring-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10
9
|
{
|
|
11
10
|
variants: {
|
|
12
11
|
variant: {
|
|
@@ -14,7 +13,7 @@ const buttonVariants = cva(
|
|
|
14
13
|
outline:
|
|
15
14
|
'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
|
|
16
15
|
secondary:
|
|
17
|
-
'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]
|
|
16
|
+
'bg-secondary text-secondary-foreground aria-expanded:bg-secondary aria-expanded:text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]',
|
|
18
17
|
ghost:
|
|
19
18
|
'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',
|
|
20
19
|
destructive:
|
package/src/calendar.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { CalendarBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
6
|
import * as React from 'react';
|
|
@@ -7,8 +8,6 @@ import { DayPicker, getDefaultClassNames, type DayButton, type Locale } from 're
|
|
|
7
8
|
|
|
8
9
|
import { Button, buttonVariants } from '@/./button';
|
|
9
10
|
|
|
10
|
-
import type { CalendarBaseProps } from '@gv-tech/ui-core';
|
|
11
|
-
|
|
12
11
|
function Calendar({
|
|
13
12
|
className,
|
|
14
13
|
classNames,
|
|
@@ -63,23 +62,23 @@ function Calendar({
|
|
|
63
62
|
defaultClassNames.dropdowns,
|
|
64
63
|
),
|
|
65
64
|
dropdown_root: cn('relative rounded-(--cell-radius)', defaultClassNames.dropdown_root),
|
|
66
|
-
dropdown: cn('absolute inset-0
|
|
65
|
+
dropdown: cn('bg-popover absolute inset-0 opacity-0', defaultClassNames.dropdown),
|
|
67
66
|
caption_label: cn(
|
|
68
67
|
'font-medium select-none',
|
|
69
68
|
captionLayout === 'label'
|
|
70
69
|
? 'text-sm'
|
|
71
|
-
: 'flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5
|
|
70
|
+
: '[&>svg]:text-muted-foreground flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5',
|
|
72
71
|
defaultClassNames.caption_label,
|
|
73
72
|
),
|
|
74
73
|
month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),
|
|
75
74
|
weekdays: cn('flex', defaultClassNames.weekdays),
|
|
76
75
|
weekday: cn(
|
|
77
|
-
'flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal
|
|
76
|
+
'text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none',
|
|
78
77
|
defaultClassNames.weekday,
|
|
79
78
|
),
|
|
80
79
|
week: cn('mt-2 flex w-full', defaultClassNames.week),
|
|
81
80
|
week_number_header: cn('w-(--cell-size) select-none', defaultClassNames.week_number_header),
|
|
82
|
-
week_number: cn('text-[0.8rem]
|
|
81
|
+
week_number: cn('text-muted-foreground text-[0.8rem] select-none', defaultClassNames.week_number),
|
|
83
82
|
day: cn(
|
|
84
83
|
'group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)',
|
|
85
84
|
props.showWeekNumber
|
|
@@ -88,16 +87,16 @@ function Calendar({
|
|
|
88
87
|
defaultClassNames.day,
|
|
89
88
|
),
|
|
90
89
|
range_start: cn(
|
|
91
|
-
'relative isolate z-0 rounded-s-(--cell-radius)
|
|
90
|
+
'bg-muted after:bg-muted relative isolate z-0 rounded-s-(--cell-radius) after:absolute after:inset-y-0 after:end-0 after:w-4',
|
|
92
91
|
defaultClassNames.range_start,
|
|
93
92
|
),
|
|
94
93
|
range_middle: cn('rounded-none', defaultClassNames.range_middle),
|
|
95
94
|
range_end: cn(
|
|
96
|
-
'relative isolate z-0 rounded-e-(--cell-radius)
|
|
95
|
+
'bg-muted after:bg-muted relative isolate z-0 rounded-e-(--cell-radius) after:absolute after:inset-y-0 after:start-0 after:w-4',
|
|
97
96
|
defaultClassNames.range_end,
|
|
98
97
|
),
|
|
99
98
|
today: cn(
|
|
100
|
-
'rounded-(--cell-radius)
|
|
99
|
+
'bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none',
|
|
101
100
|
defaultClassNames.today,
|
|
102
101
|
),
|
|
103
102
|
outside: cn('text-muted-foreground aria-selected:text-muted-foreground', defaultClassNames.outside),
|
package/src/card.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { CardBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import type { CardBaseProps } from '@gv-tech/ui-core';
|
|
5
|
-
|
|
6
5
|
function Card({ className, size = 'default', ...props }: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {
|
|
7
6
|
return (
|
|
8
7
|
<div
|
package/src/carousel.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CarouselBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
|
|
3
4
|
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
|
|
@@ -5,8 +6,6 @@ import * as React from 'react';
|
|
|
5
6
|
|
|
6
7
|
import { Button } from '@/./button';
|
|
7
8
|
|
|
8
|
-
import type { CarouselBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
9
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
11
10
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
12
11
|
type CarouselOptions = UseCarouselParameters[0];
|
|
@@ -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)}
|
package/src/checkbox.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type { CheckboxBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { CheckIcon } from 'lucide-react';
|
|
3
4
|
import { Checkbox as CheckboxPrimitive } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
|
-
import type { CheckboxBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
|
|
9
8
|
return (
|
|
10
9
|
<CheckboxPrimitive.Root
|
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,13 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
4
|
-
import { cn } from 'cn';
|
|
5
|
-
import { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
|
|
8
|
-
import { Button } from '@/./button';
|
|
9
|
-
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from '@/./input-group';
|
|
10
|
-
|
|
11
4
|
import type {
|
|
12
5
|
ComboboxChipBaseProps,
|
|
13
6
|
ComboboxChipsBaseProps,
|
|
@@ -25,6 +18,12 @@ import type {
|
|
|
25
18
|
ComboboxTriggerBaseProps,
|
|
26
19
|
ComboboxValueBaseProps,
|
|
27
20
|
} from '@gv-tech/ui-core';
|
|
21
|
+
import { cn } from 'cn';
|
|
22
|
+
import { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
|
|
25
|
+
import { Button } from '@/./button';
|
|
26
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from '@/./input-group';
|
|
28
27
|
|
|
29
28
|
const Combobox = ComboboxPrimitive.Root;
|
|
30
29
|
|
package/src/command.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CommandBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
3
|
import { cn } from 'cn';
|
|
3
4
|
import { CheckIcon, SearchIcon } from 'lucide-react';
|
|
@@ -6,8 +7,6 @@ import * as React from 'react';
|
|
|
6
7
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/./dialog';
|
|
7
8
|
import { InputGroup, InputGroupAddon } from '@/./input-group';
|
|
8
9
|
|
|
9
|
-
import type { CommandBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
10
|
function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {
|
|
12
11
|
return (
|
|
13
12
|
<CommandPrimitive
|
package/src/context-menu.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type { ContextMenuBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
3
4
|
import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
|
-
import type { ContextMenuBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
|
|
9
8
|
return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />;
|
|
10
9
|
}
|
package/src/dialog.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { DialogBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { XIcon } from 'lucide-react';
|
|
5
6
|
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
@@ -7,8 +8,6 @@ import * as React from 'react';
|
|
|
7
8
|
|
|
8
9
|
import { Button } from '@/./button';
|
|
9
10
|
|
|
10
|
-
import type { DialogBaseProps } from '@gv-tech/ui-core';
|
|
11
|
-
|
|
12
11
|
function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {
|
|
13
12
|
return <DialogPrimitive.Root data-slot="dialog" {...props} />;
|
|
14
13
|
}
|
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,9 +1,8 @@
|
|
|
1
|
+
import type { DrawerBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
4
5
|
|
|
5
|
-
import type { DrawerBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
6
|
function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
|
8
7
|
return <DrawerPrimitive.Root data-slot="drawer" {...props} />;
|
|
9
8
|
}
|
package/src/dropdown-menu.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { DropdownMenuBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
6
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
|
|
8
|
-
import type { DropdownMenuBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
9
|
function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
|
|
11
10
|
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
|
|
12
11
|
}
|
package/src/empty.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { EmptyBaseProps, EmptyMediaBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { cn } from 'cn';
|
|
3
4
|
|
|
4
|
-
import type { EmptyBaseProps, EmptyMediaBaseProps } from '@gv-tech/ui-core';
|
|
5
|
-
|
|
6
5
|
function Empty({ className, ...props }: React.ComponentProps<'div'> & EmptyBaseProps) {
|
|
7
6
|
return (
|
|
8
7
|
<div
|
|
@@ -28,7 +27,7 @@ const emptyMediaVariants = cva(
|
|
|
28
27
|
variants: {
|
|
29
28
|
variant: {
|
|
30
29
|
default: 'bg-transparent',
|
|
31
|
-
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg
|
|
30
|
+
icon: "bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-4",
|
|
32
31
|
},
|
|
33
32
|
},
|
|
34
33
|
defaultVariants: {
|
package/src/field.tsx
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { cn } from 'cn';
|
|
5
|
-
import { useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Label } from '@/./label';
|
|
8
|
-
import { Separator } from '@/./separator';
|
|
9
|
-
|
|
10
3
|
import type {
|
|
11
4
|
FieldBaseProps,
|
|
12
5
|
FieldContentBaseProps,
|
|
@@ -19,6 +12,12 @@ import type {
|
|
|
19
12
|
FieldSetBaseProps,
|
|
20
13
|
FieldTitleBaseProps,
|
|
21
14
|
} from '@gv-tech/ui-core';
|
|
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';
|
|
22
21
|
|
|
23
22
|
function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'> & FieldSetBaseProps) {
|
|
24
23
|
return (
|
|
@@ -61,7 +60,7 @@ function FieldGroup({ className, ...props }: React.ComponentProps<'div'> & Field
|
|
|
61
60
|
);
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
const fieldVariants = cva('group/field
|
|
63
|
+
const fieldVariants = cva('group/field data-[invalid=true]:text-destructive flex w-full gap-2', {
|
|
65
64
|
variants: {
|
|
66
65
|
orientation: {
|
|
67
66
|
vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',
|
|
@@ -80,10 +79,9 @@ function Field({
|
|
|
80
79
|
className,
|
|
81
80
|
orientation = 'vertical',
|
|
82
81
|
...props
|
|
83
|
-
}: React.ComponentProps<'
|
|
82
|
+
}: React.ComponentProps<'fieldset'> & VariantProps<typeof fieldVariants> & FieldBaseProps) {
|
|
84
83
|
return (
|
|
85
|
-
<
|
|
86
|
-
role="group"
|
|
84
|
+
<fieldset
|
|
87
85
|
data-slot="field"
|
|
88
86
|
data-orientation={orientation}
|
|
89
87
|
className={cn(fieldVariants({ orientation }), className)}
|
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,9 +1,8 @@
|
|
|
1
|
+
import type { HoverCardBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { HoverCard as HoverCardPrimitive } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { HoverCardBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
6
|
function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {
|
|
8
7
|
return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />;
|
|
9
8
|
}
|
package/src/input-group.tsx
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { cn } from 'cn';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import { Button } from '@/./button';
|
|
6
|
-
import { Input } from '@/./input';
|
|
7
|
-
import { Textarea } from '@/./textarea';
|
|
8
|
-
|
|
9
1
|
import type {
|
|
10
2
|
InputGroupAddonBaseProps,
|
|
11
3
|
InputGroupBaseProps,
|
|
@@ -14,12 +6,18 @@ import type {
|
|
|
14
6
|
InputGroupTextareaBaseProps,
|
|
15
7
|
InputGroupTextBaseProps,
|
|
16
8
|
} from '@gv-tech/ui-core';
|
|
9
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
10
|
+
import { cn } from 'cn';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
|
|
13
|
+
import { Button } from '@/./button';
|
|
14
|
+
import { Input } from '@/./input';
|
|
15
|
+
import { Textarea } from '@/./textarea';
|
|
17
16
|
|
|
18
|
-
function InputGroup({ className, ...props }: React.ComponentProps<'
|
|
17
|
+
function InputGroup({ className, ...props }: React.ComponentProps<'fieldset'> & InputGroupBaseProps) {
|
|
19
18
|
return (
|
|
20
|
-
<
|
|
19
|
+
<fieldset
|
|
21
20
|
data-slot="input-group"
|
|
22
|
-
role="group"
|
|
23
21
|
className={cn(
|
|
24
22
|
'group/input-group border-input has-disabled:bg-input/50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 relative flex h-8 w-full min-w-0 items-center rounded-lg border transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5',
|
|
25
23
|
className,
|
|
@@ -30,7 +28,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'> & Input
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
const inputGroupAddonVariants = cva(
|
|
33
|
-
"flex h-auto
|
|
31
|
+
"text-muted-foreground flex h-auto items-center justify-center gap-2 py-1.5 text-sm font-medium select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
|
|
34
32
|
{
|
|
35
33
|
variants: {
|
|
36
34
|
align: {
|
|
@@ -51,19 +49,12 @@ function InputGroupAddon({
|
|
|
51
49
|
className,
|
|
52
50
|
align = 'inline-start',
|
|
53
51
|
...props
|
|
54
|
-
}: React.ComponentProps<'
|
|
52
|
+
}: React.ComponentProps<'fieldset'> & VariantProps<typeof inputGroupAddonVariants> & InputGroupAddonBaseProps) {
|
|
55
53
|
return (
|
|
56
|
-
<
|
|
57
|
-
role="group"
|
|
54
|
+
<fieldset
|
|
58
55
|
data-slot="input-group-addon"
|
|
59
56
|
data-align={align}
|
|
60
57
|
className={cn(inputGroupAddonVariants({ align }), className)}
|
|
61
|
-
onClick={(e) => {
|
|
62
|
-
if ((e.target as HTMLElement).closest('button')) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
e.currentTarget.parentElement?.querySelector('input')?.focus();
|
|
66
|
-
}}
|
|
67
58
|
{...props}
|
|
68
59
|
/>
|
|
69
60
|
);
|