@gv-tech/ui-web 2.27.3 → 2.29.0
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 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-BgbjpZAF.js +1 -0
- package/dist/accordion-Bqt-y-u7.mjs +239 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +4 -4
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog-BkUyJb_F.mjs +182 -0
- package/dist/alert-dialog-DonbkCSD.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +12 -12
- 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 +4 -4
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +2 -2
- package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-C7oBX-p_.mjs} +10 -9
- package/dist/aspect-ratio-X3HWxQz0.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +1 -1
- 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-DTkhTxt7.mjs +133 -0
- package/dist/avatar-DhvZbCtI.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +6 -6
- 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 +1 -1
- 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 -25
- 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 +3 -3
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +6 -6
- 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 +6 -6
- package/dist/calendar-Bo8kovKR.js +1 -0
- package/dist/{calendar-Dg6VGycy.mjs → calendar-CkHWa9Uu.mjs} +825 -803
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +2 -2
- 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-Cv5isLeg.js +1 -0
- package/dist/{carousel-DbDoNdqJ.mjs → carousel-ynaeMNIV.mjs} +53 -53
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +5 -5
- 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-BLvAEmRC.mjs +182 -0
- package/dist/checkbox-Dt06B4YW.js +1 -0
- 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-CQNaACTf.js +1 -0
- package/dist/chunk-HBS6WEDP-CzyhzCaP.mjs +63 -0
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +1 -1
- package/dist/combobox-BB_YzCTY.js +4 -0
- package/dist/combobox-YxjYGUoe.mjs +5748 -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-BqO-CfH6.js +1 -0
- package/dist/command-DY6u8V0D.mjs +545 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +9 -9
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu-Dad9hs94.js +1 -0
- package/dist/context-menu-tL6CY6a0.mjs +318 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +15 -15
- 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 +10 -10
- 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 +1 -1
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/dist-5r7hQmO0.mjs +187 -0
- package/dist/dist-6c2NeKfz.mjs +536 -0
- package/dist/dist-8fYwoWd4.mjs +111 -0
- package/dist/{dist-N3JLy7yk.mjs → dist-9-j0_8D1.mjs} +9 -4
- package/dist/dist-BIXhHahX.mjs +30 -0
- package/dist/dist-BMl8xXCH.mjs +188 -0
- package/dist/dist-BOKg7rhq.js +1 -0
- package/dist/dist-BPhn-EOy.mjs +15 -0
- package/dist/{dist-Cacc4QIh.mjs → dist-BQhMregZ.mjs} +9 -5
- package/dist/dist-BTN2t9yv.js +1 -0
- package/dist/dist-BUXpRW9O.mjs +100 -0
- package/dist/{dist-xgVOvcNx.mjs → dist-Bivv8B6p.mjs} +8 -3
- package/dist/dist-BoNQb2nd.js +1 -0
- package/dist/dist-ByW6RHeZ.mjs +94 -0
- package/dist/dist-C83rnWRv.js +1 -0
- package/dist/dist-C8Pm6LRc.js +1 -0
- package/dist/dist-CBsYNwXz.mjs +16 -0
- package/dist/dist-CS572Be42.mjs +11 -0
- package/dist/dist-CYrqAnIr.mjs +182 -0
- package/dist/dist-C_iFkwIX.js +1 -0
- package/dist/dist-CdBAkUWT.js +1 -0
- package/dist/dist-Cn7g8jD0.js +1 -0
- package/dist/dist-D7-Fky36.js +1 -0
- package/dist/{dist-C9PlF532.mjs → dist-D7UHN1DJ.mjs} +1 -1
- package/dist/dist-DJqkhIXb2.js +1 -0
- package/dist/dist-DMwCTE2i.mjs +90 -0
- package/dist/dist-DOoZ3vGL.mjs +407 -0
- package/dist/dist-DYUvPCPC.js +1 -0
- package/dist/dist-DZiOPWLp.js +1 -0
- package/dist/dist-DcRkoHAk.js +1 -0
- package/dist/dist-DfvK7DpO.mjs +213 -0
- package/dist/dist-Dg9ASyqI.mjs +96 -0
- package/dist/dist-Dj9s8AIv.js +1 -0
- package/dist/dist-Dm3IQk5b.mjs +685 -0
- package/dist/dist-DyMv0xk8.mjs +41 -0
- package/dist/dist-NEeQKKDZ.js +1 -0
- package/dist/dist-N_70prl1.js +1 -0
- package/dist/dist-YAADIsyo.js +1 -0
- package/dist/dist-dMp9dzmY.mjs +20 -0
- package/dist/dist-mHQuNOH-.js +1 -0
- package/dist/dist-oyFh63Uq.js +1 -0
- package/dist/dist-rx5WaFf5.mjs +20 -0
- package/dist/dist-v-Y6tnMq.js +1 -0
- package/dist/dist-v9094Auw.js +1 -0
- package/dist/dist-yA6iVq_M.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +10 -10
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BWqWoYis.mjs} +117 -151
- package/dist/dropdown-menu-BpZcobmP.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +15 -15
- 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 +6 -6
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +2 -2
- package/dist/{es2015-BhmbVcui.mjs → es2015-CYxXY2oV.mjs} +242 -216
- package/dist/es2015-t2RPC0Rg.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +11 -11
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +4 -4
- 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 +6 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hover-card-7NjGqlP0.js +1 -0
- package/dist/hover-card-DuRUptxQ.mjs +176 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +3 -3
- 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 +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +72 -66
- 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 +4 -4
- package/dist/input-otp-D9MwUsPO.js +20 -0
- package/dist/input-otp-m_BTudNY.mjs +409 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +4 -4
- 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 +4 -4
- 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-CgKiKHKG.js +1 -0
- package/dist/label-DVA-YKpB.mjs +28 -0
- 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 -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-BcyqIJgy.mjs → menubar-CyKBLHme.mjs} +130 -166
- package/dist/menubar-DlOMZeh1.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +16 -16
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/message-scroller-DqLu0YI6.js +1 -0
- package/dist/message-scroller-FwdKclRM.mjs +824 -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-BzE1J1rs.mjs +608 -0
- package/dist/navigation-menu-CrR01R8Z.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +8 -8
- 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 +7 -7
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +40 -34
- package/dist/popover-CFF_HXSf.mjs +222 -0
- package/dist/popover-D9pVy08c.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +7 -7
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-ClcVCqjl.mjs +93 -0
- package/dist/progress-nfJMuKGj.js +6 -0
- 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 +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-5VwmCXRK.mjs +265 -0
- package/dist/radio-group-DhXnB0fI.js +1 -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-ChIqXiu4.js +1 -0
- package/dist/{resizable-DJSE3e5L.mjs → resizable-CpovHnG-.mjs} +341 -329
- 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-CUqjuvqH.js +1 -0
- package/dist/{scroll-area-8QcqkHnC.mjs → scroll-area-DstdIGvS.mjs} +151 -142
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +2 -2
- 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 +11 -11
- 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-CnCTQeh7.js +1 -0
- package/dist/select-CnHZdna2.mjs +792 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +10 -10
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator-BXaVJadH.js +1 -0
- package/dist/separator-D1a8myFf.mjs +38 -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 +8 -8
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +23 -23
- package/dist/{sidebar-B-sWccYh.mjs → sidebar-B5q6nH2G.mjs} +64 -64
- package/dist/sidebar-ns_2TNBM.js +1 -0
- 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-PoIV6N-u.js +1 -0
- package/dist/slider-ZnyQjYsS.mjs +460 -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.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 +1 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +5 -4
- 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 +49 -41
- package/dist/switch-DLY8PkmL.js +1 -0
- package/dist/switch-DagjjAQu.mjs +170 -0
- 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 +4 -3
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +2 -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-OQ6rj-3B.mjs +158 -0
- package/dist/tabs-QBWdNfSK.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -1
- 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-clE-HpSS.mjs → theme-toggle-BCcH-QtH.mjs} +20 -20
- package/dist/theme-toggle-Q3UHstP_.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-DVI6jPq5.mjs → toast-BOdziIGg.mjs} +165 -169
- package/dist/toast-D1fjLwO1.js +1 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-Czhz-ktg.mjs → toaster-CKAJ9cht.mjs} +1 -1
- package/dist/{toaster-DfDb2-aI.js → toaster-DS9iODKU.js} +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-CuLxBIWH.mjs +59 -0
- package/dist/toggle-DtpvPox_.js +1 -0
- package/dist/toggle-group-DfkvPKU_.mjs +164 -0
- package/dist/toggle-group-UHY0Tip1.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +2 -2
- 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-BbCL1gtU.mjs +384 -0
- package/dist/tooltip-BvpyStn2.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +4 -4
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +3 -1
- package/src/__contracts.ts +163 -0
- package/src/accordion.tsx +3 -4
- package/src/alert-dialog.tsx +5 -5
- package/src/alert.tsx +2 -3
- package/src/attachment.tsx +203 -0
- package/src/breadcrumb.tsx +3 -4
- package/src/bubble.tsx +116 -0
- package/src/button-group.tsx +5 -5
- package/src/button.tsx +5 -6
- package/src/calendar.tsx +6 -5
- package/src/card.tsx +5 -5
- package/src/carousel.tsx +7 -7
- package/src/chart.tsx +1 -4
- package/src/checkbox.tsx +3 -4
- package/src/combobox.tsx +8 -7
- package/src/command.tsx +7 -7
- package/src/context-menu.tsx +9 -10
- package/src/dialog.tsx +5 -5
- package/src/drawer.tsx +2 -3
- package/src/dropdown-menu.tsx +9 -10
- package/src/empty.tsx +2 -3
- package/src/field.tsx +5 -4
- package/src/hover-card.tsx +2 -3
- package/src/index.ts +55 -1
- package/src/input-group.tsx +8 -7
- package/src/input-otp.tsx +3 -3
- package/src/input.tsx +1 -2
- package/src/item.tsx +4 -3
- package/src/kbd.tsx +3 -2
- package/src/label.tsx +1 -2
- package/src/marker.tsx +62 -0
- package/src/menubar.tsx +10 -11
- package/src/message-scroller.tsx +134 -0
- package/src/message.tsx +86 -0
- package/src/native-select.tsx +2 -2
- package/src/navigation-menu.tsx +7 -8
- package/src/pagination.tsx +6 -6
- package/src/popover.tsx +2 -3
- package/src/progress.tsx +1 -2
- package/src/questionnaire.tsx +334 -0
- package/src/radio-group.tsx +2 -3
- package/src/resizable.tsx +1 -4
- package/src/scroll-area.tsx +2 -3
- package/src/select.tsx +7 -8
- package/src/separator.tsx +3 -4
- package/src/sheet.tsx +5 -5
- package/src/sidebar.tsx +14 -13
- package/src/skeleton.tsx +1 -1
- package/src/slider.tsx +4 -5
- package/src/sonner.tsx +0 -5
- package/src/spinner.tsx +10 -2
- package/src/support-fab.tsx +24 -3
- package/src/switch.tsx +3 -4
- package/src/table-of-contents.tsx +7 -2
- package/src/table.tsx +1 -2
- package/src/tabs.tsx +8 -9
- package/src/textarea.tsx +1 -2
- package/src/toggle-group.tsx +4 -4
- package/src/toggle.tsx +3 -4
- package/src/tooltip.tsx +2 -3
- 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-o4zlRoDG.js +0 -1
- package/dist/dist-rGeQfsgN.mjs +0 -66
- package/dist/dist-tvb2Wafb.mjs +0 -153
- package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
- 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/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/toast-1keyrzem.js +0 -1
- 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/button.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { cn } from 'cn';
|
|
2
3
|
import { Slot } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
6
|
import type { ButtonBaseProps } from '@gv-tech/ui-core';
|
|
8
7
|
|
|
9
8
|
const buttonVariants = cva(
|
|
10
|
-
|
|
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:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
11
10
|
{
|
|
12
11
|
variants: {
|
|
13
12
|
variant: {
|
|
@@ -24,12 +23,12 @@ const buttonVariants = cva(
|
|
|
24
23
|
},
|
|
25
24
|
size: {
|
|
26
25
|
default: 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
|
27
|
-
xs:
|
|
28
|
-
sm:
|
|
26
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
27
|
+
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
29
28
|
lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
|
30
29
|
icon: 'size-8',
|
|
31
30
|
'icon-xs':
|
|
32
|
-
|
|
31
|
+
"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
33
32
|
'icon-sm': 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',
|
|
34
33
|
'icon-lg': 'size-9',
|
|
35
34
|
},
|
package/src/calendar.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { cn } from 'cn';
|
|
4
|
+
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
|
|
3
5
|
import * as React from 'react';
|
|
4
6
|
import { DayPicker, getDefaultClassNames, type DayButton, type Locale } from 'react-day-picker';
|
|
5
7
|
|
|
6
|
-
import {
|
|
7
|
-
import { Button, buttonVariants } from './button';
|
|
8
|
-
import { cn } from './lib/utils';
|
|
8
|
+
import { Button, buttonVariants } from '@/./button';
|
|
9
9
|
|
|
10
10
|
import type { CalendarBaseProps } from '@gv-tech/ui-core';
|
|
11
11
|
|
|
@@ -71,6 +71,7 @@ function Calendar({
|
|
|
71
71
|
: 'flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',
|
|
72
72
|
defaultClassNames.caption_label,
|
|
73
73
|
),
|
|
74
|
+
month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),
|
|
74
75
|
weekdays: cn('flex', defaultClassNames.weekdays),
|
|
75
76
|
weekday: cn(
|
|
76
77
|
'flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none',
|
|
@@ -110,11 +111,11 @@ function Calendar({
|
|
|
110
111
|
},
|
|
111
112
|
Chevron: ({ className, orientation, ...props }) => {
|
|
112
113
|
if (orientation === 'left') {
|
|
113
|
-
return <ChevronLeftIcon className={cn('size-4', className)} {...props} />;
|
|
114
|
+
return <ChevronLeftIcon className={cn('size-4 rtl:rotate-180', className)} {...props} />;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
if (orientation === 'right') {
|
|
117
|
-
return <ChevronRightIcon className={cn('size-4', className)} {...props} />;
|
|
118
|
+
return <ChevronRightIcon className={cn('size-4 rtl:rotate-180', className)} {...props} />;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
return <ChevronDownIcon className={cn('size-4', className)} {...props} />;
|
package/src/card.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
|
|
3
4
|
import type { CardBaseProps } from '@gv-tech/ui-core';
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
5
|
|
|
6
6
|
function Card({ className, size = 'default', ...props }: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {
|
|
7
7
|
return (
|
|
@@ -9,7 +9,7 @@ function Card({ className, size = 'default', ...props }: React.ComponentProps<'d
|
|
|
9
9
|
data-slot="card"
|
|
10
10
|
data-size={size}
|
|
11
11
|
className={cn(
|
|
12
|
-
'group/card bg-card text-card-foreground ring-foreground/10 flex flex-col gap-
|
|
12
|
+
'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
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -22,7 +22,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
22
22
|
<div
|
|
23
23
|
data-slot="card-header"
|
|
24
24
|
className={cn(
|
|
25
|
-
'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-
|
|
25
|
+
'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
26
|
className,
|
|
27
27
|
)}
|
|
28
28
|
{...props}
|
|
@@ -55,14 +55,14 @@ function CardAction({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
|
|
58
|
-
return <div data-slot="card-content" className={cn('px-
|
|
58
|
+
return <div data-slot="card-content" className={cn('px-(--card-spacing)', className)} {...props} />;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
62
62
|
return (
|
|
63
63
|
<div
|
|
64
64
|
data-slot="card-footer"
|
|
65
|
-
className={cn('bg-muted/50 flex items-center rounded-b-xl border-t p-
|
|
65
|
+
className={cn('bg-muted/50 flex items-center rounded-b-xl border-t p-(--card-spacing)', className)}
|
|
66
66
|
{...props}
|
|
67
67
|
/>
|
|
68
68
|
);
|
package/src/carousel.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
1
2
|
import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
|
|
3
|
+
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import {
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { cn } from './lib/utils';
|
|
6
|
+
import { Button } from '@/./button';
|
|
7
7
|
|
|
8
8
|
import type { CarouselBaseProps } from '@gv-tech/ui-core';
|
|
9
9
|
|
|
@@ -175,7 +175,7 @@ function CarouselPrevious({
|
|
|
175
175
|
className={cn(
|
|
176
176
|
'absolute touch-manipulation rounded-full',
|
|
177
177
|
orientation === 'horizontal'
|
|
178
|
-
? '-start-12
|
|
178
|
+
? 'inset-y-0 -start-12 my-auto'
|
|
179
179
|
: 'start-1/2 -top-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2',
|
|
180
180
|
className,
|
|
181
181
|
)}
|
|
@@ -183,7 +183,7 @@ function CarouselPrevious({
|
|
|
183
183
|
onClick={scrollPrev}
|
|
184
184
|
{...props}
|
|
185
185
|
>
|
|
186
|
-
<ChevronLeftIcon />
|
|
186
|
+
<ChevronLeftIcon className="rtl:rotate-180" />
|
|
187
187
|
<span className="sr-only">Previous slide</span>
|
|
188
188
|
</Button>
|
|
189
189
|
);
|
|
@@ -205,7 +205,7 @@ function CarouselNext({
|
|
|
205
205
|
className={cn(
|
|
206
206
|
'absolute touch-manipulation rounded-full',
|
|
207
207
|
orientation === 'horizontal'
|
|
208
|
-
? '-end-12
|
|
208
|
+
? 'inset-y-0 -end-12 my-auto'
|
|
209
209
|
: 'start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2',
|
|
210
210
|
className,
|
|
211
211
|
)}
|
|
@@ -213,7 +213,7 @@ function CarouselNext({
|
|
|
213
213
|
onClick={scrollNext}
|
|
214
214
|
{...props}
|
|
215
215
|
>
|
|
216
|
-
<ChevronRightIcon />
|
|
216
|
+
<ChevronRightIcon className="rtl:rotate-180" />
|
|
217
217
|
<span className="sr-only">Next slide</span>
|
|
218
218
|
</Button>
|
|
219
219
|
);
|
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,9 +1,8 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
2
|
+
import { CheckIcon } from 'lucide-react';
|
|
1
3
|
import { Checkbox as CheckboxPrimitive } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { CheckIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
6
|
import type { CheckboxBaseProps } from '@gv-tech/ui-core';
|
|
8
7
|
|
|
9
8
|
function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
|
|
@@ -11,7 +10,7 @@ function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxP
|
|
|
11
10
|
<CheckboxPrimitive.Root
|
|
12
11
|
data-slot="checkbox"
|
|
13
12
|
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-
|
|
13
|
+
'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
14
|
className,
|
|
16
15
|
)}
|
|
17
16
|
{...props}
|
package/src/combobox.tsx
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
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';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
|
|
8
|
+
import { Button } from '@/./button';
|
|
9
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from '@/./input-group';
|
|
10
|
+
|
|
6
11
|
import type {
|
|
7
12
|
ComboboxChipBaseProps,
|
|
8
13
|
ComboboxChipsBaseProps,
|
|
@@ -20,10 +25,6 @@ import type {
|
|
|
20
25
|
ComboboxTriggerBaseProps,
|
|
21
26
|
ComboboxValueBaseProps,
|
|
22
27
|
} from '@gv-tech/ui-core';
|
|
23
|
-
import { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';
|
|
24
|
-
import { Button } from './button';
|
|
25
|
-
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from './input-group';
|
|
26
|
-
import { cn } from './lib/utils';
|
|
27
28
|
|
|
28
29
|
const Combobox = ComboboxPrimitive.Root;
|
|
29
30
|
|
|
@@ -39,7 +40,7 @@ function ComboboxTrigger({
|
|
|
39
40
|
return (
|
|
40
41
|
<ComboboxPrimitive.Trigger
|
|
41
42
|
data-slot="combobox-trigger"
|
|
42
|
-
className={cn(
|
|
43
|
+
className={cn("[&_svg:not([class*='size-'])]:size-4", className)}
|
|
43
44
|
{...props}
|
|
44
45
|
>
|
|
45
46
|
{children}
|
|
@@ -117,7 +118,7 @@ function ComboboxContent({
|
|
|
117
118
|
data-slot="combobox-content"
|
|
118
119
|
data-chips={!!anchor}
|
|
119
120
|
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-
|
|
121
|
+
'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
122
|
className,
|
|
122
123
|
)}
|
|
123
124
|
{...props}
|
|
@@ -145,7 +146,7 @@ function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.
|
|
|
145
146
|
<ComboboxPrimitive.Item
|
|
146
147
|
data-slot="combobox-item"
|
|
147
148
|
className={cn(
|
|
148
|
-
|
|
149
|
+
"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
150
|
className,
|
|
150
151
|
)}
|
|
151
152
|
{...props}
|
package/src/command.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import { CheckIcon, SearchIcon } from 'lucide-react';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { InputGroup, InputGroupAddon } from './input-group';
|
|
7
|
-
import { cn } from './lib/utils';
|
|
6
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/./dialog';
|
|
7
|
+
import { InputGroup, InputGroupAddon } from '@/./input-group';
|
|
8
8
|
|
|
9
9
|
import type { CommandBaseProps } from '@gv-tech/ui-core';
|
|
10
10
|
|
|
@@ -41,7 +41,7 @@ function CommandDialog({
|
|
|
41
41
|
<DialogDescription>{description}</DialogDescription>
|
|
42
42
|
</DialogHeader>
|
|
43
43
|
<DialogContent
|
|
44
|
-
className={cn('top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0
|
|
44
|
+
className={cn('top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0', className)}
|
|
45
45
|
showCloseButton={showCloseButton}
|
|
46
46
|
>
|
|
47
47
|
<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 +117,7 @@ function CommandItem({ className, children, ...props }: React.ComponentProps<typ
|
|
|
117
117
|
<CommandPrimitive.Item
|
|
118
118
|
data-slot="command-item"
|
|
119
119
|
className={cn(
|
|
120
|
-
|
|
120
|
+
"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
121
|
className,
|
|
122
122
|
)}
|
|
123
123
|
{...props}
|
|
@@ -133,7 +133,7 @@ function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>)
|
|
|
133
133
|
<span
|
|
134
134
|
data-slot="command-shortcut"
|
|
135
135
|
className={cn(
|
|
136
|
-
'text-muted-foreground group-data-
|
|
136
|
+
'text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest',
|
|
137
137
|
className,
|
|
138
138
|
)}
|
|
139
139
|
{...props}
|
package/src/context-menu.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
2
|
+
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
1
3
|
import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
6
|
import type { ContextMenuBaseProps } from '@gv-tech/ui-core';
|
|
8
7
|
|
|
9
8
|
function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
|
|
@@ -47,7 +46,7 @@ function ContextMenuContent({
|
|
|
47
46
|
<ContextMenuPrimitive.Content
|
|
48
47
|
data-slot="context-menu-content"
|
|
49
48
|
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-
|
|
49
|
+
'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
50
|
className,
|
|
52
51
|
)}
|
|
53
52
|
{...props}
|
|
@@ -71,7 +70,7 @@ function ContextMenuItem({
|
|
|
71
70
|
data-inset={inset}
|
|
72
71
|
data-variant={variant}
|
|
73
72
|
className={cn(
|
|
74
|
-
|
|
73
|
+
"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
74
|
className,
|
|
76
75
|
)}
|
|
77
76
|
{...props}
|
|
@@ -92,13 +91,13 @@ function ContextMenuSubTrigger({
|
|
|
92
91
|
data-slot="context-menu-sub-trigger"
|
|
93
92
|
data-inset={inset}
|
|
94
93
|
className={cn(
|
|
95
|
-
|
|
94
|
+
"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
95
|
className,
|
|
97
96
|
)}
|
|
98
97
|
{...props}
|
|
99
98
|
>
|
|
100
99
|
{children}
|
|
101
|
-
<ChevronRightIcon className="ms-auto" />
|
|
100
|
+
<ChevronRightIcon className="ms-auto rtl:rotate-180" />
|
|
102
101
|
</ContextMenuPrimitive.SubTrigger>
|
|
103
102
|
);
|
|
104
103
|
}
|
|
@@ -108,7 +107,7 @@ function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typ
|
|
|
108
107
|
<ContextMenuPrimitive.SubContent
|
|
109
108
|
data-slot="context-menu-sub-content"
|
|
110
109
|
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-
|
|
110
|
+
'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
111
|
className,
|
|
113
112
|
)}
|
|
114
113
|
{...props}
|
|
@@ -130,7 +129,7 @@ function ContextMenuCheckboxItem({
|
|
|
130
129
|
data-slot="context-menu-checkbox-item"
|
|
131
130
|
data-inset={inset}
|
|
132
131
|
className={cn(
|
|
133
|
-
|
|
132
|
+
"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
133
|
className,
|
|
135
134
|
)}
|
|
136
135
|
checked={checked}
|
|
@@ -159,7 +158,7 @@ function ContextMenuRadioItem({
|
|
|
159
158
|
data-slot="context-menu-radio-item"
|
|
160
159
|
data-inset={inset}
|
|
161
160
|
className={cn(
|
|
162
|
-
|
|
161
|
+
"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
162
|
className,
|
|
164
163
|
)}
|
|
165
164
|
{...props}
|
package/src/dialog.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { cn } from 'cn';
|
|
4
|
+
import { XIcon } from 'lucide-react';
|
|
3
5
|
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
|
|
6
|
-
import {
|
|
7
|
-
import { Button } from './button';
|
|
8
|
-
import { cn } from './lib/utils';
|
|
8
|
+
import { Button } from '@/./button';
|
|
9
9
|
|
|
10
10
|
import type { DialogBaseProps } from '@gv-tech/ui-core';
|
|
11
11
|
|
|
@@ -30,7 +30,7 @@ function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dial
|
|
|
30
30
|
<DialogPrimitive.Overlay
|
|
31
31
|
data-slot="dialog-overlay"
|
|
32
32
|
className={cn(
|
|
33
|
-
'data-
|
|
33
|
+
'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
34
|
className,
|
|
35
35
|
)}
|
|
36
36
|
{...props}
|
|
@@ -52,7 +52,7 @@ function DialogContent({
|
|
|
52
52
|
<DialogPrimitive.Content
|
|
53
53
|
data-slot="dialog-content"
|
|
54
54
|
className={cn(
|
|
55
|
-
'bg-popover text-popover-foreground ring-foreground/10 data-
|
|
55
|
+
'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
56
|
className,
|
|
57
57
|
)}
|
|
58
58
|
{...props}
|
package/src/drawer.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
4
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
5
|
import type { DrawerBaseProps } from '@gv-tech/ui-core';
|
|
7
6
|
|
|
8
7
|
function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
|
@@ -26,7 +25,7 @@ function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Draw
|
|
|
26
25
|
<DrawerPrimitive.Overlay
|
|
27
26
|
data-slot="drawer-overlay"
|
|
28
27
|
className={cn(
|
|
29
|
-
'data-
|
|
28
|
+
'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
29
|
className,
|
|
31
30
|
)}
|
|
32
31
|
{...props}
|
package/src/dropdown-menu.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { cn } from 'cn';
|
|
4
|
+
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
3
5
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
|
|
6
|
-
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
7
|
-
import { cn } from './lib/utils';
|
|
8
|
-
|
|
9
8
|
import type { DropdownMenuBaseProps } from '@gv-tech/ui-core';
|
|
10
9
|
|
|
11
10
|
function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
|
|
@@ -33,7 +32,7 @@ function DropdownMenuContent({
|
|
|
33
32
|
sideOffset={sideOffset}
|
|
34
33
|
align={align}
|
|
35
34
|
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-
|
|
35
|
+
'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
36
|
className,
|
|
38
37
|
)}
|
|
39
38
|
{...props}
|
|
@@ -61,7 +60,7 @@ function DropdownMenuItem({
|
|
|
61
60
|
data-inset={inset}
|
|
62
61
|
data-variant={variant}
|
|
63
62
|
className={cn(
|
|
64
|
-
|
|
63
|
+
"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
64
|
className,
|
|
66
65
|
)}
|
|
67
66
|
{...props}
|
|
@@ -83,7 +82,7 @@ function DropdownMenuCheckboxItem({
|
|
|
83
82
|
data-slot="dropdown-menu-checkbox-item"
|
|
84
83
|
data-inset={inset}
|
|
85
84
|
className={cn(
|
|
86
|
-
|
|
85
|
+
"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
86
|
className,
|
|
88
87
|
)}
|
|
89
88
|
checked={checked}
|
|
@@ -119,7 +118,7 @@ function DropdownMenuRadioItem({
|
|
|
119
118
|
data-slot="dropdown-menu-radio-item"
|
|
120
119
|
data-inset={inset}
|
|
121
120
|
className={cn(
|
|
122
|
-
|
|
121
|
+
"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
122
|
className,
|
|
124
123
|
)}
|
|
125
124
|
{...props}
|
|
@@ -194,13 +193,13 @@ function DropdownMenuSubTrigger({
|
|
|
194
193
|
data-slot="dropdown-menu-sub-trigger"
|
|
195
194
|
data-inset={inset}
|
|
196
195
|
className={cn(
|
|
197
|
-
|
|
196
|
+
"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
197
|
className,
|
|
199
198
|
)}
|
|
200
199
|
{...props}
|
|
201
200
|
>
|
|
202
201
|
{children}
|
|
203
|
-
<ChevronRightIcon className="ms-auto" />
|
|
202
|
+
<ChevronRightIcon className="ms-auto rtl:rotate-180" />
|
|
204
203
|
</DropdownMenuPrimitive.SubTrigger>
|
|
205
204
|
);
|
|
206
205
|
}
|
|
@@ -213,7 +212,7 @@ function DropdownMenuSubContent({
|
|
|
213
212
|
<DropdownMenuPrimitive.SubContent
|
|
214
213
|
data-slot="dropdown-menu-sub-content"
|
|
215
214
|
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-
|
|
215
|
+
'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
216
|
className,
|
|
218
217
|
)}
|
|
219
218
|
{...props}
|
package/src/empty.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
|
|
3
|
-
import { cn } from './lib/utils';
|
|
2
|
+
import { cn } from 'cn';
|
|
4
3
|
|
|
5
4
|
import type { EmptyBaseProps, EmptyMediaBaseProps } from '@gv-tech/ui-core';
|
|
6
5
|
|
|
@@ -29,7 +28,7 @@ const emptyMediaVariants = cva(
|
|
|
29
28
|
variants: {
|
|
30
29
|
variant: {
|
|
31
30
|
default: 'bg-transparent',
|
|
32
|
-
icon:
|
|
31
|
+
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4",
|
|
33
32
|
},
|
|
34
33
|
},
|
|
35
34
|
defaultVariants: {
|
package/src/field.tsx
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { cn } from 'cn';
|
|
4
5
|
import { useMemo } from 'react';
|
|
5
6
|
|
|
7
|
+
import { Label } from '@/./label';
|
|
8
|
+
import { Separator } from '@/./separator';
|
|
9
|
+
|
|
6
10
|
import type {
|
|
7
11
|
FieldBaseProps,
|
|
8
12
|
FieldContentBaseProps,
|
|
@@ -15,9 +19,6 @@ import type {
|
|
|
15
19
|
FieldSetBaseProps,
|
|
16
20
|
FieldTitleBaseProps,
|
|
17
21
|
} from '@gv-tech/ui-core';
|
|
18
|
-
import { Label } from './label';
|
|
19
|
-
import { cn } from './lib/utils';
|
|
20
|
-
import { Separator } from './separator';
|
|
21
22
|
|
|
22
23
|
function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'> & FieldSetBaseProps) {
|
|
23
24
|
return (
|
|
@@ -106,7 +107,7 @@ function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>
|
|
|
106
107
|
<Label
|
|
107
108
|
data-slot="field-label"
|
|
108
109
|
className={cn(
|
|
109
|
-
'group/field-label peer/field-label has-data-
|
|
110
|
+
'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
111
|
'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',
|
|
111
112
|
className,
|
|
112
113
|
)}
|
package/src/hover-card.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
1
2
|
import { HoverCard as HoverCardPrimitive } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
5
|
import type { HoverCardBaseProps } from '@gv-tech/ui-core';
|
|
7
6
|
|
|
8
7
|
function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {
|
|
@@ -26,7 +25,7 @@ function HoverCardContent({
|
|
|
26
25
|
align={align}
|
|
27
26
|
sideOffset={sideOffset}
|
|
28
27
|
className={cn(
|
|
29
|
-
'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-
|
|
28
|
+
'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',
|
|
30
29
|
className,
|
|
31
30
|
)}
|
|
32
31
|
{...props}
|