@gv-tech/ui-web 2.29.0 → 2.29.2
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-Bd0-CZQn.js +1 -0
- package/dist/accordion-Cf6DNbLH.mjs +244 -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 -2
- package/dist/{alert-dialog-BkUyJb_F.mjs → alert-dialog-BxFH0Lwn.mjs} +73 -75
- package/dist/alert-dialog-C6vNmGBL.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 -2
- 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 +4 -5
- package/dist/{aspect-ratio-C7oBX-p_.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
- package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
- 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 -2
- 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 +5 -6
- package/dist/avatar-B5PWwGhY.mjs +136 -0
- package/dist/avatar-CFhYRM52.js +1 -0
- 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 -2
- 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 +6 -7
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +3 -6
- 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 +6 -7
- 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 +5 -7
- 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 +5 -6
- package/dist/calendar-D5qgt2o2.js +1 -0
- package/dist/{calendar-CkHWa9Uu.mjs → calendar-DIqXNjOR.mjs} +732 -879
- 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 -2
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel-D-xEqRCX.js +1 -0
- package/dist/{carousel-ynaeMNIV.mjs → carousel-DPjWmM_A.mjs} +15 -19
- 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 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/{checkbox-BLvAEmRC.mjs → checkbox-DEPm1BBc.mjs} +70 -68
- package/dist/checkbox-DI9Hn_e_.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 -2
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
- package/dist/{chunk-HBS6WEDP-CzyhzCaP.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
- 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 +8 -9
- package/dist/combobox-C4y8AbZX.mjs +5644 -0
- package/dist/combobox-boXp-mix.js +3 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -2
- package/dist/command-BnW6UIVk.js +1 -0
- package/dist/{command-DY6u8V0D.mjs → command-Cbsp7PBx.mjs} +121 -124
- 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 -2
- package/dist/context-menu-CwsdFpx1.js +1 -0
- package/dist/{context-menu-tL6CY6a0.mjs → context-menu-FNgV55ZV.mjs} +137 -140
- 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 -2
- 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 +3 -4
- 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 +2 -3
- package/dist/dist-7YyzJonC.mjs +39 -0
- package/dist/dist-AlmToDtO.mjs +17 -0
- package/dist/{dist-DyMv0xk8.mjs → dist-B76UOZbx.mjs} +1 -2
- package/dist/{dist-BQhMregZ.mjs → dist-B7Ph9-T6.mjs} +2 -3
- package/dist/dist-B7jnFMko.js +1 -0
- package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
- package/dist/dist-BQkDLAY7.js +1 -0
- package/dist/dist-Bal96K8t.js +1 -0
- package/dist/dist-Blgp9lfa.js +1 -0
- package/dist/{dist-Dg9ASyqI.mjs → dist-BnlI08Je.mjs} +4 -4
- package/dist/{dist-5r7hQmO0.mjs → dist-Bu-uFV1C.mjs} +60 -56
- package/dist/dist-C2BHd5i1.mjs +460 -0
- package/dist/{dist-8fYwoWd4.mjs → dist-C516Vwxy.mjs} +23 -18
- package/dist/dist-CBlqVBTk.js +1 -0
- package/dist/dist-CDcZ8WMF.js +1 -0
- package/dist/dist-CDksSmTD.mjs +189 -0
- package/dist/dist-CF-qVmmV.js +1 -0
- package/dist/dist-CIgGRTmJ.js +1 -0
- package/dist/dist-CJqVmdrU.js +1 -0
- package/dist/{dist-DMwCTE2i.mjs → dist-COqM3IM6.mjs} +3 -4
- package/dist/{dist-CYrqAnIr.mjs → dist-CbWpCWog.mjs} +13 -15
- package/dist/{dist-rx5WaFf5.mjs → dist-CcGLWbPa.mjs} +3 -4
- package/dist/dist-Cn4F8XlY.mjs +220 -0
- package/dist/dist-CoTs6T03.js +1 -0
- package/dist/dist-Co_xSt6d.js +1 -0
- package/dist/{dist-CBsYNwXz.mjs → dist-Cu0GG-3j.mjs} +2 -3
- package/dist/{dist-BUXpRW9O.mjs → dist-DKI-XYwI.mjs} +3 -5
- package/dist/dist-DQeXXRYL.mjs +201 -0
- package/dist/dist-DW2ltK5-.js +1 -0
- package/dist/dist-DWcKY_sJ.js +1 -0
- package/dist/dist-DdAeWIwf.js +1 -0
- package/dist/dist-DhubV_gU.mjs +4 -0
- package/dist/dist-DmY7elIQ.js +1 -0
- package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
- package/dist/dist-DuQlxGyN.js +1 -0
- package/dist/dist-KFF7QKuL.js +1 -0
- package/dist/dist-RXrZgzkO.js +1 -0
- package/dist/dist-R_G5UQRm.js +1 -0
- package/dist/dist-dwRwxUPt.mjs +22 -0
- package/dist/dist-fzmUl3YX.mjs +553 -0
- package/dist/{dist-ByW6RHeZ.mjs → dist-hBsne-A2.mjs} +24 -26
- package/dist/{dist-BIXhHahX.mjs → dist-ljiGYyay.mjs} +4 -5
- package/dist/dist-pqMcQ1Nk.js +1 -0
- package/dist/dist-zmnQp5Xf.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu-ChuqZeix.js +1 -0
- package/dist/{dropdown-menu-BWqWoYis.mjs → dropdown-menu-DU7KNoXP.mjs} +131 -133
- 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 -2
- 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 +3 -4
- package/dist/es2015-BooeZGhO.mjs +554 -0
- package/dist/es2015-Dggv0vx3.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +12 -12
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +6 -8
- package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
- package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
- 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 +19 -20
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card-BeqCs_2R.js +1 -0
- package/dist/hover-card-w8PmCyw2.mjs +176 -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 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- 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 +5 -11
- package/dist/{input-otp-m_BTudNY.mjs → input-otp-Bn_Uy1mR.mjs} +7 -18
- package/dist/input-otp-CTRB_0Xp.js +20 -0
- 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 -2
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +2 -3
- 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 +7 -9
- 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 -3
- package/dist/{label-DVA-YKpB.mjs → label-Da0kELfR.mjs} +4 -6
- package/dist/label-JMa1tFfC.js +1 -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 -2
- 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 +6 -7
- package/dist/menubar-B7sRxpE4.mjs +405 -0
- package/dist/menubar-Bd-QKMcw.js +1 -0
- 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 -2
- package/dist/{message-scroller-FwdKclRM.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
- package/dist/message-scroller-BJb4Mh_I.js +1 -0
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.d.ts +1 -1
- package/dist/message-scroller.d.ts.map +1 -1
- package/dist/message-scroller.mjs +1 -2
- package/dist/message.cjs +1 -1
- package/dist/message.d.ts.map +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu-B-RwfscB.mjs +638 -0
- package/dist/navigation-menu-kPwxYZCR.js +1 -0
- 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 -2
- 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 +5 -5
- package/dist/popover-Cq5cTNtC.js +1 -0
- package/dist/popover-T6Ra737i.mjs +241 -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 -2
- package/dist/{progress-ClcVCqjl.mjs → progress-e9YzxvRo.mjs} +15 -18
- package/dist/progress-iUSEI7J9.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 -2
- package/dist/{questionnaire-DKWcZeWT.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
- package/dist/questionnaire-CcymIPae.js +1 -0
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.d.ts +1 -1
- package/dist/questionnaire.d.ts.map +1 -1
- package/dist/questionnaire.mjs +1 -2
- package/dist/{radio-group-5VwmCXRK.mjs → radio-group-BKpiDcIb.mjs} +76 -77
- package/dist/radio-group-DPEzCmxe.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +1 -2
- package/dist/resizable-ByF0NmN9.mjs +2153 -0
- package/dist/resizable-oL3v42zT.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.mjs +1 -2
- package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
- package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
- package/dist/scroll-area-BzNeOQ6C.mjs +568 -0
- package/dist/scroll-area-s4_ZJK59.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 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +13 -16
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select-B_nRxX2Y.mjs +831 -0
- package/dist/select-j5_dph9S.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 -2
- package/dist/separator-Bn-3XUSJ.js +1 -0
- package/dist/separator-CCcMNS78.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 -2
- 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 +3 -4
- package/dist/{sidebar-B5q6nH2G.mjs → sidebar-C2ax_A0G.mjs} +50 -52
- package/dist/sidebar-Cnem2n5A.js +1 -0
- 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 -2
- 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 +2 -3
- package/dist/slider-B2PUTc7W.mjs +484 -0
- package/dist/slider-wZuXwuib.js +1 -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 -2
- package/dist/sonner.d.ts +1 -1
- package/dist/sonner.mjs +1 -2
- 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 +10 -7
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch-CD675xU7.js +1 -0
- package/dist/{switch-DagjjAQu.mjs → switch-ikzIzrme.mjs} +66 -64
- 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 -2
- 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 +6 -6
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +2 -3
- package/dist/{tabs-OQ6rj-3B.mjs → tabs-DCm5zOYB.mjs} +73 -73
- package/dist/tabs-fcahDQDp.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 -2
- 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 +17 -15
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-provider.mjs +1 -2
- package/dist/theme-toggle-BGTJsIA-.js +1 -0
- package/dist/{theme-toggle-BCcH-QtH.mjs → theme-toggle-BSMwXb8o.mjs} +29 -22
- 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 -2
- package/dist/toast-C31v9P1K.js +1 -0
- package/dist/toast-vU5ISM03.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 -2
- package/dist/toaster-CaJyOCyC.js +1 -0
- package/dist/{toaster-CKAJ9cht.mjs → toaster-D2BV6jez.mjs} +3 -5
- 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 -2
- package/dist/toggle-CSZdCCwX.js +1 -0
- package/dist/{toggle-CuLxBIWH.mjs → toggle-Cv9YYwLI.mjs} +14 -15
- package/dist/toggle-group-RT8wyBwK.js +1 -0
- package/dist/toggle-group-qvjasXS-.mjs +166 -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 -2
- 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 -2
- package/dist/tooltip-7ERoN5mV.mjs +386 -0
- package/dist/tooltip-CC9_spXT.js +1 -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 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +18 -18
- 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/accordion-Bqt-y-u7.mjs +0 -239
- package/dist/alert-dialog-DonbkCSD.js +0 -1
- package/dist/aspect-ratio-X3HWxQz0.js +0 -1
- package/dist/avatar-DTkhTxt7.mjs +0 -133
- package/dist/avatar-DhvZbCtI.js +0 -1
- package/dist/calendar-Bo8kovKR.js +0 -1
- package/dist/carousel-Cv5isLeg.js +0 -1
- package/dist/checkbox-Dt06B4YW.js +0 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-BB_YzCTY.js +0 -4
- package/dist/combobox-YxjYGUoe.mjs +0 -5748
- package/dist/command-BqO-CfH6.js +0 -1
- package/dist/context-menu-Dad9hs94.js +0 -1
- package/dist/dist-6c2NeKfz.mjs +0 -536
- 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-BTN2t9yv.js +0 -1
- package/dist/dist-Bivv8B6p.mjs +0 -16
- package/dist/dist-BoNQb2nd.js +0 -1
- package/dist/dist-C83rnWRv.js +0 -1
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-CdBAkUWT.js +0 -1
- package/dist/dist-Cn7g8jD0.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-D7UHN1DJ.mjs +0 -5
- package/dist/dist-DOoZ3vGL.mjs +0 -407
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DcRkoHAk.js +0 -1
- package/dist/dist-DfvK7DpO.mjs +0 -213
- package/dist/dist-Dj9s8AIv.js +0 -1
- package/dist/dist-NEeQKKDZ.js +0 -1
- package/dist/dist-N_70prl1.js +0 -1
- package/dist/dist-YAADIsyo.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/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/hover-card-7NjGqlP0.js +0 -1
- package/dist/hover-card-DuRUptxQ.mjs +0 -176
- package/dist/input-otp-D9MwUsPO.js +0 -20
- package/dist/label-CgKiKHKG.js +0 -1
- package/dist/menubar-CyKBLHme.mjs +0 -405
- package/dist/menubar-DlOMZeh1.js +0 -1
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-BzE1J1rs.mjs +0 -608
- 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/progress-nfJMuKGj.js +0 -6
- package/dist/questionnaire-PWClWvST.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/select-CnHZdna2.mjs +0 -792
- package/dist/separator-BXaVJadH.js +0 -1
- package/dist/separator-D1a8myFf.mjs +0 -38
- 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/toaster-DS9iODKU.js +0 -1
- package/dist/toggle-DtpvPox_.js +0 -1
- package/dist/toggle-group-DfkvPKU_.mjs +0 -164
- package/dist/toggle-group-UHY0Tip1.js +0 -1
- package/dist/tooltip-BbCL1gtU.mjs +0 -384
- package/dist/tooltip-BvpyStn2.js +0 -1
- /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
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
|
);
|
package/src/input-otp.tsx
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { cn } from 'cn';
|
|
4
|
-
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
5
|
-
import { MinusIcon } from 'lucide-react';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
|
|
8
3
|
import type {
|
|
9
4
|
InputOTPBaseProps,
|
|
10
5
|
InputOTPGroupBaseProps,
|
|
11
6
|
InputOTPSeparatorBaseProps,
|
|
12
7
|
InputOTPSlotBaseProps,
|
|
13
8
|
} from '@gv-tech/ui-core';
|
|
9
|
+
import { cn } from 'cn';
|
|
10
|
+
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
11
|
+
import { MinusIcon } from 'lucide-react';
|
|
12
|
+
import * as React from 'react';
|
|
14
13
|
|
|
15
14
|
function InputOTP({
|
|
16
15
|
className,
|
|
@@ -70,7 +69,7 @@ function InputOTPSeparator({ ...props }: React.ComponentProps<'div'> & InputOTPS
|
|
|
70
69
|
<div
|
|
71
70
|
data-slot="input-otp-separator"
|
|
72
71
|
className="flex items-center [&_svg:not([class*='size-'])]:size-4"
|
|
73
|
-
|
|
72
|
+
aria-hidden="true"
|
|
74
73
|
{...props}
|
|
75
74
|
>
|
|
76
75
|
<MinusIcon />
|
package/src/input.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { InputBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import type { InputBaseProps } from '@gv-tech/ui-core';
|
|
5
|
-
|
|
6
5
|
function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
7
6
|
return (
|
|
8
7
|
<input
|
package/src/item.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 { Separator } from '@/./separator';
|
|
7
|
-
|
|
8
1
|
import type {
|
|
9
2
|
ItemActionsBaseProps,
|
|
10
3
|
ItemBaseProps,
|
|
@@ -17,11 +10,16 @@ import type {
|
|
|
17
10
|
ItemSeparatorBaseProps,
|
|
18
11
|
ItemTitleBaseProps,
|
|
19
12
|
} from '@gv-tech/ui-core';
|
|
13
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
14
|
+
import { cn } from 'cn';
|
|
15
|
+
import { Slot } from 'radix-ui';
|
|
16
|
+
import * as React from 'react';
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
import { Separator } from '@/./separator';
|
|
19
|
+
|
|
20
|
+
function ItemGroup({ className, ...props }: React.ComponentProps<'ul'> & ItemGroupBaseProps) {
|
|
22
21
|
return (
|
|
23
|
-
<
|
|
24
|
-
role="list"
|
|
22
|
+
<ul
|
|
25
23
|
data-slot="item-group"
|
|
26
24
|
className={cn(
|
|
27
25
|
'group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2',
|
|
@@ -37,13 +35,13 @@ function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Sepa
|
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
const itemVariants = cva(
|
|
40
|
-
'group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:
|
|
38
|
+
'group/item focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors',
|
|
41
39
|
{
|
|
42
40
|
variants: {
|
|
43
41
|
variant: {
|
|
44
42
|
default: 'border-transparent',
|
|
45
43
|
outline: 'border-border',
|
|
46
|
-
muted: '
|
|
44
|
+
muted: 'bg-muted/50 border-transparent',
|
|
47
45
|
},
|
|
48
46
|
size: {
|
|
49
47
|
default: 'gap-2.5 px-3 py-2.5',
|
package/src/kbd.tsx
CHANGED
package/src/label.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type { LabelBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { Label as LabelPrimitive } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { LabelBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
6
|
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
|
|
8
7
|
return (
|
|
9
8
|
<LabelPrimitive.Root
|
package/src/marker.tsx
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
+
import type { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } 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 { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
const markerVariants = cva(
|
|
9
|
-
"group/marker relative flex min-h-4 w-full items-center gap-2 text-start text-sm
|
|
8
|
+
"group/marker text-muted-foreground [a]:hover:text-foreground relative flex min-h-4 w-full items-center gap-2 text-start text-sm [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3",
|
|
10
9
|
{
|
|
11
10
|
variants: {
|
|
12
11
|
variant: {
|
|
13
12
|
default: '',
|
|
14
13
|
separator:
|
|
15
|
-
'before:me-1 before:h-px before:min-w-0 before:flex-1
|
|
16
|
-
border: 'border-
|
|
14
|
+
'before:bg-border after:bg-border before:me-1 before:h-px before:min-w-0 before:flex-1 after:ms-1 after:h-px after:min-w-0 after:flex-1',
|
|
15
|
+
border: 'border-border border-b pb-2',
|
|
17
16
|
},
|
|
18
17
|
},
|
|
19
18
|
},
|
package/src/menubar.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { MenubarBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
6
|
import { Menubar as MenubarPrimitive } from 'radix-ui';
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
|
|
8
|
-
import type { MenubarBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
9
|
function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {
|
|
11
10
|
return (
|
|
12
11
|
<MenubarPrimitive.Root
|
package/src/message-scroller.tsx
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
MessageScrollerBaseProps,
|
|
3
|
+
MessageScrollerButtonBaseProps,
|
|
4
|
+
MessageScrollerContentBaseProps,
|
|
5
|
+
MessageScrollerItemBaseProps,
|
|
6
|
+
MessageScrollerProviderBaseProps,
|
|
7
|
+
MessageScrollerViewportBaseProps,
|
|
8
|
+
} from '@gv-tech/ui-core';
|
|
1
9
|
import {
|
|
2
10
|
MessageScroller as MessageScrollerPrimitive,
|
|
3
11
|
useMessageScroller,
|
|
@@ -5,19 +13,10 @@ import {
|
|
|
5
13
|
useMessageScrollerVisibility,
|
|
6
14
|
} from '@shadcn/react/message-scroller';
|
|
7
15
|
import { cn } from 'cn';
|
|
16
|
+
import { ArrowDownIcon } from 'lucide-react';
|
|
8
17
|
import * as React from 'react';
|
|
9
18
|
|
|
10
19
|
import { Button } from '@/./button';
|
|
11
|
-
import { ArrowDownIcon } from 'lucide-react';
|
|
12
|
-
|
|
13
|
-
import type {
|
|
14
|
-
MessageScrollerBaseProps,
|
|
15
|
-
MessageScrollerButtonBaseProps,
|
|
16
|
-
MessageScrollerContentBaseProps,
|
|
17
|
-
MessageScrollerItemBaseProps,
|
|
18
|
-
MessageScrollerProviderBaseProps,
|
|
19
|
-
MessageScrollerViewportBaseProps,
|
|
20
|
-
} from '@gv-tech/ui-core';
|
|
21
20
|
|
|
22
21
|
function MessageScrollerProvider(
|
|
23
22
|
props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider> & MessageScrollerProviderBaseProps,
|
package/src/message.tsx
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { cn } from 'cn';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
1
|
import type {
|
|
5
2
|
MessageAvatarBaseProps,
|
|
6
3
|
MessageBaseProps,
|
|
@@ -9,6 +6,8 @@ import type {
|
|
|
9
6
|
MessageGroupBaseProps,
|
|
10
7
|
MessageHeaderBaseProps,
|
|
11
8
|
} from '@gv-tech/ui-core';
|
|
9
|
+
import { cn } from 'cn';
|
|
10
|
+
import * as React from 'react';
|
|
12
11
|
|
|
13
12
|
function MessageGroup({ className, ...props }: React.ComponentProps<'div'> & MessageGroupBaseProps) {
|
|
14
13
|
return <div data-slot="message-group" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;
|
package/src/native-select.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { cn } from 'cn';
|
|
2
|
-
import { ChevronDownIcon } from 'lucide-react';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
1
|
import type {
|
|
6
2
|
NativeSelectBaseProps,
|
|
7
3
|
NativeSelectOptGroupBaseProps,
|
|
8
4
|
NativeSelectOptionBaseProps,
|
|
9
5
|
} from '@gv-tech/ui-core';
|
|
6
|
+
import { cn } from 'cn';
|
|
7
|
+
import { ChevronDownIcon } from 'lucide-react';
|
|
8
|
+
import * as React from 'react';
|
|
10
9
|
|
|
11
10
|
type NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & NativeSelectBaseProps;
|
|
12
11
|
|
package/src/navigation-menu.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import type { NavigationMenuBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cva } from 'class-variance-authority';
|
|
2
3
|
import { cn } from 'cn';
|
|
3
4
|
import { ChevronDownIcon } from 'lucide-react';
|
|
4
5
|
import { NavigationMenu as NavigationMenuPrimitive } from 'radix-ui';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
|
|
7
|
-
import type { NavigationMenuBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
function NavigationMenu({
|
|
10
9
|
className,
|
|
11
10
|
children,
|
|
@@ -44,7 +43,7 @@ function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof
|
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
const navigationMenuTriggerStyle = cva(
|
|
47
|
-
'group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none
|
|
46
|
+
'group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50',
|
|
48
47
|
);
|
|
49
48
|
|
|
50
49
|
function NavigationMenuTrigger({
|
package/src/pagination.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import type { PaginationBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
6
|
import { Button } from '@/./button';
|
|
6
7
|
|
|
7
|
-
import type { PaginationBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
function Pagination({ className, ...props }: React.ComponentProps<'nav'>) {
|
|
10
9
|
return (
|
|
11
10
|
<nav
|
|
@@ -31,10 +30,12 @@ type PaginationLinkProps = {
|
|
|
31
30
|
} & Pick<React.ComponentProps<typeof Button>, 'size'> &
|
|
32
31
|
React.ComponentProps<'a'>;
|
|
33
32
|
|
|
34
|
-
function PaginationLink({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) {
|
|
33
|
+
function PaginationLink({ className, isActive, size = 'icon', children, ...props }: PaginationLinkProps) {
|
|
35
34
|
return (
|
|
36
35
|
<Button asChild variant={isActive ? 'outline' : 'ghost'} size={size} className={cn(className)}>
|
|
37
|
-
<a aria-current={isActive ? 'page' : undefined} data-slot="pagination-link" data-active={isActive} {...props}
|
|
36
|
+
<a aria-current={isActive ? 'page' : undefined} data-slot="pagination-link" data-active={isActive} {...props}>
|
|
37
|
+
{children}
|
|
38
|
+
</a>
|
|
38
39
|
</Button>
|
|
39
40
|
);
|
|
40
41
|
}
|
package/src/popover.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type { PopoverBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { PopoverBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
6
|
function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
8
7
|
return <PopoverPrimitive.Root data-slot="popover" {...props} />;
|
|
9
8
|
}
|
package/src/progress.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { ProgressBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { Progress as ProgressPrimitive } from 'radix-ui';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
|
|
7
|
-
import type { ProgressBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {
|
|
10
9
|
return (
|
|
11
10
|
<ProgressPrimitive.Root
|
package/src/questionnaire.tsx
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';
|
|
4
|
-
import { cn } from 'cn';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
|
|
7
|
-
import { buttonVariants, type Button } from '@/./button';
|
|
8
|
-
import { CheckIcon } from 'lucide-react';
|
|
9
|
-
|
|
10
3
|
import type {
|
|
11
4
|
QuestionnaireActionsBaseProps,
|
|
12
5
|
QuestionnaireBaseProps,
|
|
@@ -24,6 +17,12 @@ import type {
|
|
|
24
17
|
QuestionnaireSubmitBaseProps,
|
|
25
18
|
QuestionnaireTitleBaseProps,
|
|
26
19
|
} from '@gv-tech/ui-core';
|
|
20
|
+
import { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';
|
|
21
|
+
import { cn } from 'cn';
|
|
22
|
+
import { CheckIcon } from 'lucide-react';
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
|
|
25
|
+
import { buttonVariants, type Button } from '@/./button';
|
|
27
26
|
|
|
28
27
|
function Questionnaire({
|
|
29
28
|
className,
|
package/src/scroll-area.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
6
|
function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
|
|
8
7
|
return (
|
|
9
8
|
<ScrollAreaPrimitive.Root data-slot="scroll-area" className={cn('relative', className)} {...props}>
|
package/src/scroll-to-top.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ScrollToTopBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ScrollToTopBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import { ArrowUp } from 'lucide-react';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
|
|
6
7
|
import { Button } from './button';
|
|
7
8
|
import { cn } from './lib/utils';
|
|
8
9
|
|
|
@@ -38,8 +39,12 @@ export function ScrollToTop({
|
|
|
38
39
|
React.useEffect(() => {
|
|
39
40
|
const target = scrollTarget === undefined ? window : scrollTarget;
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
const hideControl = () => {
|
|
42
43
|
setIsVisible(false);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
if (!target) {
|
|
47
|
+
hideControl();
|
|
43
48
|
return;
|
|
44
49
|
}
|
|
45
50
|
|
package/src/search.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import { Search as SearchIcon } from 'lucide-react';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
|
|
6
7
|
import { Button } from './button';
|
|
7
8
|
import { CommandDialog } from './command';
|
|
8
9
|
import { cn } from './lib/utils';
|
package/src/select.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { SelectBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
5
6
|
import { Select as SelectPrimitive } from 'radix-ui';
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
|
|
8
|
-
import type { SelectBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
9
|
function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {
|
|
11
10
|
return <SelectPrimitive.Root data-slot="select" {...props} />;
|
|
12
11
|
}
|
package/src/separator.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type { SeparatorBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { SeparatorBaseProps } from '@gv-tech/ui-core';
|
|
6
|
-
|
|
7
6
|
function Separator({
|
|
8
7
|
className,
|
|
9
8
|
orientation = 'horizontal',
|
package/src/setupTests.ts
CHANGED
|
@@ -37,15 +37,15 @@ globalThis.IntersectionObserver = class IntersectionObserver {
|
|
|
37
37
|
// matchMedia polyfill
|
|
38
38
|
Object.defineProperty(window, 'matchMedia', {
|
|
39
39
|
writable: true,
|
|
40
|
-
value: vi.fn().mockImplementation((query) => ({
|
|
40
|
+
value: vi.fn<(query: string) => MediaQueryList>().mockImplementation((query) => ({
|
|
41
41
|
matches: false,
|
|
42
42
|
media: query,
|
|
43
43
|
onchange: null,
|
|
44
|
-
addListener: vi.fn(), // deprecated
|
|
45
|
-
removeListener: vi.fn(), // deprecated
|
|
46
|
-
addEventListener: vi.fn(),
|
|
47
|
-
removeEventListener: vi.fn(),
|
|
48
|
-
dispatchEvent: vi.fn(),
|
|
44
|
+
addListener: vi.fn<() => void>(), // deprecated
|
|
45
|
+
removeListener: vi.fn<() => void>(), // deprecated
|
|
46
|
+
addEventListener: vi.fn<() => void>(),
|
|
47
|
+
removeEventListener: vi.fn<() => void>(),
|
|
48
|
+
dispatchEvent: vi.fn<() => boolean>(),
|
|
49
49
|
})),
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -110,6 +110,6 @@ Object.defineProperties(HTMLElement.prototype, {
|
|
|
110
110
|
},
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
window.HTMLElement.prototype.scrollIntoView = vi.fn();
|
|
114
|
-
window.HTMLElement.prototype.releasePointerCapture = vi.fn();
|
|
115
|
-
window.HTMLElement.prototype.hasPointerCapture = vi.fn();
|
|
113
|
+
window.HTMLElement.prototype.scrollIntoView = vi.fn<() => void>();
|
|
114
|
+
window.HTMLElement.prototype.releasePointerCapture = vi.fn<() => void>();
|
|
115
|
+
window.HTMLElement.prototype.hasPointerCapture = vi.fn<() => boolean>();
|
package/src/sheet.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SheetBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { XIcon } from 'lucide-react';
|
|
3
4
|
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
@@ -5,8 +6,6 @@ import * as React from 'react';
|
|
|
5
6
|
|
|
6
7
|
import { Button } from '@/./button';
|
|
7
8
|
|
|
8
|
-
import type { SheetBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
9
|
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
|
11
10
|
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
12
11
|
}
|
package/src/sidebar.tsx
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import { useIsMobile } from '@/hooks/use-mobile';
|
|
2
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { cn } from 'cn';
|
|
4
|
-
import { PanelLeftIcon } from 'lucide-react';
|
|
5
|
-
import { Slot } from 'radix-ui';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
|
|
8
|
-
import { Button } from '@/./button';
|
|
9
|
-
import { Input } from '@/./input';
|
|
10
|
-
import { Separator } from '@/./separator';
|
|
11
|
-
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/./sheet';
|
|
12
|
-
import { Skeleton } from '@/./skeleton';
|
|
13
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from '@/./tooltip';
|
|
14
|
-
|
|
15
1
|
import type {
|
|
16
2
|
SidebarBaseProps,
|
|
17
3
|
SidebarContentBaseProps,
|
|
@@ -37,6 +23,19 @@ import type {
|
|
|
37
23
|
SidebarSeparatorBaseProps,
|
|
38
24
|
SidebarTriggerBaseProps,
|
|
39
25
|
} from '@gv-tech/ui-core';
|
|
26
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
27
|
+
import { cn } from 'cn';
|
|
28
|
+
import { PanelLeftIcon } from 'lucide-react';
|
|
29
|
+
import { Slot } from 'radix-ui';
|
|
30
|
+
import * as React from 'react';
|
|
31
|
+
|
|
32
|
+
import { Button } from '@/./button';
|
|
33
|
+
import { Input } from '@/./input';
|
|
34
|
+
import { Separator } from '@/./separator';
|
|
35
|
+
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/./sheet';
|
|
36
|
+
import { Skeleton } from '@/./skeleton';
|
|
37
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '@/./tooltip';
|
|
38
|
+
import { useIsMobile } from '@/hooks/use-mobile';
|
|
40
39
|
|
|
41
40
|
const SIDEBAR_COOKIE_NAME = 'sidebar_state';
|
|
42
41
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -454,13 +453,13 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'> & S
|
|
|
454
453
|
}
|
|
455
454
|
|
|
456
455
|
const sidebarMenuButtonVariants = cva(
|
|
457
|
-
'peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm
|
|
456
|
+
'peer/menu-button group/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:font-medium [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate',
|
|
458
457
|
{
|
|
459
458
|
variants: {
|
|
460
459
|
variant: {
|
|
461
460
|
default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
|
|
462
461
|
outline:
|
|
463
|
-
'bg-background
|
|
462
|
+
'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',
|
|
464
463
|
},
|
|
465
464
|
size: {
|
|
466
465
|
default: 'h-8 text-sm',
|
package/src/skeleton.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { cn } from 'cn';
|
|
2
|
-
|
|
3
1
|
import type { SkeletonBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { cn } from 'cn';
|
|
4
3
|
|
|
5
4
|
function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
|
|
6
5
|
return <div data-slot="skeleton" className={cn('bg-muted animate-pulse rounded-md', className)} {...props} />;
|
package/src/slider.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { SliderBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
|
|
7
|
-
import type { SliderBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
function Slider({
|
|
10
9
|
className,
|
|
11
10
|
defaultValue,
|
package/src/spinner.tsx
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import type { SpinnerBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import { Loader2Icon } from 'lucide-react';
|
|
4
|
+
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function Spinner({ className, ...props }: React.ComponentProps<'svg'> & SpinnerBaseProps) {
|
|
6
|
+
function Spinner({ className, ...props }: React.ComponentProps<'output'> & SpinnerBaseProps) {
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
8
|
+
<output
|
|
9
9
|
data-slot="spinner"
|
|
10
|
-
role="status"
|
|
11
10
|
aria-label="Loading"
|
|
12
|
-
className={cn('size-4 animate-spin', className)}
|
|
11
|
+
className={cn('inline-flex size-4 animate-spin', className)}
|
|
13
12
|
{...props}
|
|
14
|
-
|
|
13
|
+
>
|
|
14
|
+
<Loader2Icon aria-hidden="true" className="size-full" />
|
|
15
|
+
</output>
|
|
15
16
|
);
|
|
16
17
|
}
|
|
17
18
|
|
package/src/support-fab.tsx
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Coffee, ExternalLink } from 'lucide-react';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
|
|
5
6
|
import { Button } from './button';
|
|
6
7
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from './dialog';
|
|
7
8
|
import { Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle } from './drawer';
|
|
@@ -66,8 +67,11 @@ const useIsMobile = () => {
|
|
|
66
67
|
|
|
67
68
|
const mediaQuery = window.matchMedia(MOBILE_QUERY);
|
|
68
69
|
const onChange = (event: MediaQueryListEvent) => setIsMobile(event.matches);
|
|
70
|
+
const syncInitialValue = () => {
|
|
71
|
+
setIsMobile(mediaQuery.matches);
|
|
72
|
+
};
|
|
69
73
|
|
|
70
|
-
|
|
74
|
+
syncInitialValue();
|
|
71
75
|
mediaQuery.addEventListener('change', onChange);
|
|
72
76
|
|
|
73
77
|
return () => {
|
package/src/switch.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { SwitchBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
|
|
7
|
-
import type { SwitchBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
function Switch({
|
|
10
9
|
className,
|
|
11
10
|
size = 'default',
|