@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/__contracts.ts
CHANGED
|
@@ -20,6 +20,15 @@ import {
|
|
|
20
20
|
AlertDialogTrigger,
|
|
21
21
|
AlertTitle,
|
|
22
22
|
AspectRatio,
|
|
23
|
+
Attachment,
|
|
24
|
+
AttachmentAction,
|
|
25
|
+
AttachmentActions,
|
|
26
|
+
AttachmentContent,
|
|
27
|
+
AttachmentDescription,
|
|
28
|
+
AttachmentGroup,
|
|
29
|
+
AttachmentMedia,
|
|
30
|
+
AttachmentTitle,
|
|
31
|
+
AttachmentTrigger,
|
|
23
32
|
Avatar,
|
|
24
33
|
AvatarFallback,
|
|
25
34
|
AvatarImage,
|
|
@@ -31,6 +40,10 @@ import {
|
|
|
31
40
|
BreadcrumbList,
|
|
32
41
|
BreadcrumbPage,
|
|
33
42
|
BreadcrumbSeparator,
|
|
43
|
+
Bubble,
|
|
44
|
+
BubbleContent,
|
|
45
|
+
BubbleGroup,
|
|
46
|
+
BubbleReactions,
|
|
34
47
|
Button,
|
|
35
48
|
ButtonGroup,
|
|
36
49
|
ButtonGroupSeparator,
|
|
@@ -154,6 +167,9 @@ import {
|
|
|
154
167
|
Kbd,
|
|
155
168
|
KbdGroup,
|
|
156
169
|
Label,
|
|
170
|
+
Marker,
|
|
171
|
+
MarkerContent,
|
|
172
|
+
MarkerIcon,
|
|
157
173
|
Menubar,
|
|
158
174
|
MenubarCheckboxItem,
|
|
159
175
|
MenubarContent,
|
|
@@ -167,6 +183,18 @@ import {
|
|
|
167
183
|
MenubarSubContent,
|
|
168
184
|
MenubarSubTrigger,
|
|
169
185
|
MenubarTrigger,
|
|
186
|
+
Message,
|
|
187
|
+
MessageAvatar,
|
|
188
|
+
MessageContent,
|
|
189
|
+
MessageFooter,
|
|
190
|
+
MessageGroup,
|
|
191
|
+
MessageHeader,
|
|
192
|
+
MessageScroller,
|
|
193
|
+
MessageScrollerButton,
|
|
194
|
+
MessageScrollerContent,
|
|
195
|
+
MessageScrollerItem,
|
|
196
|
+
MessageScrollerProvider,
|
|
197
|
+
MessageScrollerViewport,
|
|
170
198
|
NativeSelect,
|
|
171
199
|
NativeSelectOptGroup,
|
|
172
200
|
NativeSelectOption,
|
|
@@ -190,6 +218,21 @@ import {
|
|
|
190
218
|
PopoverContent,
|
|
191
219
|
PopoverTrigger,
|
|
192
220
|
Progress,
|
|
221
|
+
Questionnaire,
|
|
222
|
+
QuestionnaireActions,
|
|
223
|
+
QuestionnaireChoice,
|
|
224
|
+
QuestionnaireChoiceDescription,
|
|
225
|
+
QuestionnaireChoices,
|
|
226
|
+
QuestionnaireDescription,
|
|
227
|
+
QuestionnaireError,
|
|
228
|
+
QuestionnaireInput,
|
|
229
|
+
QuestionnaireItem,
|
|
230
|
+
QuestionnaireNext,
|
|
231
|
+
QuestionnairePrevious,
|
|
232
|
+
QuestionnaireProgress,
|
|
233
|
+
QuestionnaireSkip,
|
|
234
|
+
QuestionnaireSubmit,
|
|
235
|
+
QuestionnaireTitle,
|
|
193
236
|
RadioGroup,
|
|
194
237
|
RadioGroupItem,
|
|
195
238
|
ResizableHandle,
|
|
@@ -292,6 +335,15 @@ import type {
|
|
|
292
335
|
AlertDialogTriggerBaseProps,
|
|
293
336
|
AlertTitleBaseProps,
|
|
294
337
|
AspectRatioBaseProps,
|
|
338
|
+
AttachmentActionBaseProps,
|
|
339
|
+
AttachmentActionsBaseProps,
|
|
340
|
+
AttachmentBaseProps,
|
|
341
|
+
AttachmentContentBaseProps,
|
|
342
|
+
AttachmentDescriptionBaseProps,
|
|
343
|
+
AttachmentGroupBaseProps,
|
|
344
|
+
AttachmentMediaBaseProps,
|
|
345
|
+
AttachmentTitleBaseProps,
|
|
346
|
+
AttachmentTriggerBaseProps,
|
|
295
347
|
AvatarBaseProps,
|
|
296
348
|
AvatarFallbackBaseProps,
|
|
297
349
|
AvatarImageBaseProps,
|
|
@@ -303,6 +355,10 @@ import type {
|
|
|
303
355
|
BreadcrumbListBaseProps,
|
|
304
356
|
BreadcrumbPageBaseProps,
|
|
305
357
|
BreadcrumbSeparatorBaseProps,
|
|
358
|
+
BubbleBaseProps,
|
|
359
|
+
BubbleContentBaseProps,
|
|
360
|
+
BubbleGroupBaseProps,
|
|
361
|
+
BubbleReactionsBaseProps,
|
|
306
362
|
ButtonBaseProps,
|
|
307
363
|
ButtonGroupBaseProps,
|
|
308
364
|
ButtonGroupSeparatorBaseProps,
|
|
@@ -426,6 +482,9 @@ import type {
|
|
|
426
482
|
KbdBaseProps,
|
|
427
483
|
KbdGroupBaseProps,
|
|
428
484
|
LabelBaseProps,
|
|
485
|
+
MarkerBaseProps,
|
|
486
|
+
MarkerContentBaseProps,
|
|
487
|
+
MarkerIconBaseProps,
|
|
429
488
|
MenubarBaseProps,
|
|
430
489
|
MenubarCheckboxItemBaseProps,
|
|
431
490
|
MenubarContentBaseProps,
|
|
@@ -439,6 +498,18 @@ import type {
|
|
|
439
498
|
MenubarSubContentBaseProps,
|
|
440
499
|
MenubarSubTriggerBaseProps,
|
|
441
500
|
MenubarTriggerBaseProps,
|
|
501
|
+
MessageAvatarBaseProps,
|
|
502
|
+
MessageBaseProps,
|
|
503
|
+
MessageContentBaseProps,
|
|
504
|
+
MessageFooterBaseProps,
|
|
505
|
+
MessageGroupBaseProps,
|
|
506
|
+
MessageHeaderBaseProps,
|
|
507
|
+
MessageScrollerBaseProps,
|
|
508
|
+
MessageScrollerButtonBaseProps,
|
|
509
|
+
MessageScrollerContentBaseProps,
|
|
510
|
+
MessageScrollerItemBaseProps,
|
|
511
|
+
MessageScrollerProviderBaseProps,
|
|
512
|
+
MessageScrollerViewportBaseProps,
|
|
442
513
|
NativeSelectBaseProps,
|
|
443
514
|
NativeSelectOptGroupBaseProps,
|
|
444
515
|
NativeSelectOptionBaseProps,
|
|
@@ -462,6 +533,21 @@ import type {
|
|
|
462
533
|
PopoverContentBaseProps,
|
|
463
534
|
PopoverTriggerBaseProps,
|
|
464
535
|
ProgressBaseProps,
|
|
536
|
+
QuestionnaireActionsBaseProps,
|
|
537
|
+
QuestionnaireBaseProps,
|
|
538
|
+
QuestionnaireChoiceBaseProps,
|
|
539
|
+
QuestionnaireChoiceDescriptionBaseProps,
|
|
540
|
+
QuestionnaireChoicesBaseProps,
|
|
541
|
+
QuestionnaireDescriptionBaseProps,
|
|
542
|
+
QuestionnaireErrorBaseProps,
|
|
543
|
+
QuestionnaireInputBaseProps,
|
|
544
|
+
QuestionnaireItemBaseProps,
|
|
545
|
+
QuestionnaireNextBaseProps,
|
|
546
|
+
QuestionnairePreviousBaseProps,
|
|
547
|
+
QuestionnaireProgressBaseProps,
|
|
548
|
+
QuestionnaireSkipBaseProps,
|
|
549
|
+
QuestionnaireSubmitBaseProps,
|
|
550
|
+
QuestionnaireTitleBaseProps,
|
|
465
551
|
RadioGroupBaseProps,
|
|
466
552
|
RadioGroupItemBaseProps,
|
|
467
553
|
ResizableHandleBaseProps,
|
|
@@ -921,5 +1007,82 @@ export const _test_SidebarProvider: SidebarProviderBaseProps = {} as React.Compo
|
|
|
921
1007
|
export const _test_SidebarRail: SidebarRailBaseProps = {} as React.ComponentProps<typeof SidebarRail>;
|
|
922
1008
|
export const _test_SidebarSeparator: SidebarSeparatorBaseProps = {} as React.ComponentProps<typeof SidebarSeparator>;
|
|
923
1009
|
export const _test_SidebarTrigger: SidebarTriggerBaseProps = {} as React.ComponentProps<typeof SidebarTrigger>;
|
|
1010
|
+
export const _test_AttachmentAction: AttachmentActionBaseProps = {} as React.ComponentProps<typeof AttachmentAction>;
|
|
1011
|
+
export const _test_AttachmentActions: AttachmentActionsBaseProps = {} as React.ComponentProps<typeof AttachmentActions>;
|
|
1012
|
+
export const _test_Attachment: AttachmentBaseProps = {} as React.ComponentProps<typeof Attachment>;
|
|
1013
|
+
export const _test_AttachmentContent: AttachmentContentBaseProps = {} as React.ComponentProps<typeof AttachmentContent>;
|
|
1014
|
+
export const _test_AttachmentDescription: AttachmentDescriptionBaseProps = {} as React.ComponentProps<
|
|
1015
|
+
typeof AttachmentDescription
|
|
1016
|
+
>;
|
|
1017
|
+
export const _test_AttachmentGroup: AttachmentGroupBaseProps = {} as React.ComponentProps<typeof AttachmentGroup>;
|
|
1018
|
+
export const _test_AttachmentMedia: AttachmentMediaBaseProps = {} as React.ComponentProps<typeof AttachmentMedia>;
|
|
1019
|
+
export const _test_AttachmentTitle: AttachmentTitleBaseProps = {} as React.ComponentProps<typeof AttachmentTitle>;
|
|
1020
|
+
export const _test_AttachmentTrigger: AttachmentTriggerBaseProps = {} as React.ComponentProps<typeof AttachmentTrigger>;
|
|
1021
|
+
export const _test_Bubble: BubbleBaseProps = {} as React.ComponentProps<typeof Bubble>;
|
|
1022
|
+
export const _test_BubbleContent: BubbleContentBaseProps = {} as React.ComponentProps<typeof BubbleContent>;
|
|
1023
|
+
export const _test_BubbleGroup: BubbleGroupBaseProps = {} as React.ComponentProps<typeof BubbleGroup>;
|
|
1024
|
+
export const _test_BubbleReactions: BubbleReactionsBaseProps = {} as React.ComponentProps<typeof BubbleReactions>;
|
|
1025
|
+
export const _test_Marker: MarkerBaseProps = {} as React.ComponentProps<typeof Marker>;
|
|
1026
|
+
export const _test_MarkerContent: MarkerContentBaseProps = {} as React.ComponentProps<typeof MarkerContent>;
|
|
1027
|
+
export const _test_MarkerIcon: MarkerIconBaseProps = {} as React.ComponentProps<typeof MarkerIcon>;
|
|
1028
|
+
export const _test_MessageAvatar: MessageAvatarBaseProps = {} as React.ComponentProps<typeof MessageAvatar>;
|
|
1029
|
+
export const _test_Message: MessageBaseProps = {} as React.ComponentProps<typeof Message>;
|
|
1030
|
+
export const _test_MessageContent: MessageContentBaseProps = {} as React.ComponentProps<typeof MessageContent>;
|
|
1031
|
+
export const _test_MessageFooter: MessageFooterBaseProps = {} as React.ComponentProps<typeof MessageFooter>;
|
|
1032
|
+
export const _test_MessageGroup: MessageGroupBaseProps = {} as React.ComponentProps<typeof MessageGroup>;
|
|
1033
|
+
export const _test_MessageHeader: MessageHeaderBaseProps = {} as React.ComponentProps<typeof MessageHeader>;
|
|
1034
|
+
export const _test_MessageScroller: MessageScrollerBaseProps = {} as React.ComponentProps<typeof MessageScroller>;
|
|
1035
|
+
export const _test_MessageScrollerButton: MessageScrollerButtonBaseProps = {} as React.ComponentProps<
|
|
1036
|
+
typeof MessageScrollerButton
|
|
1037
|
+
>;
|
|
1038
|
+
export const _test_MessageScrollerContent: MessageScrollerContentBaseProps = {} as React.ComponentProps<
|
|
1039
|
+
typeof MessageScrollerContent
|
|
1040
|
+
>;
|
|
1041
|
+
export const _test_MessageScrollerItem: MessageScrollerItemBaseProps = {} as React.ComponentProps<
|
|
1042
|
+
typeof MessageScrollerItem
|
|
1043
|
+
>;
|
|
1044
|
+
export const _test_MessageScrollerProvider: MessageScrollerProviderBaseProps = {} as React.ComponentProps<
|
|
1045
|
+
typeof MessageScrollerProvider
|
|
1046
|
+
>;
|
|
1047
|
+
export const _test_MessageScrollerViewport: MessageScrollerViewportBaseProps = {} as React.ComponentProps<
|
|
1048
|
+
typeof MessageScrollerViewport
|
|
1049
|
+
>;
|
|
1050
|
+
export const _test_QuestionnaireActions: QuestionnaireActionsBaseProps = {} as React.ComponentProps<
|
|
1051
|
+
typeof QuestionnaireActions
|
|
1052
|
+
>;
|
|
1053
|
+
export const _test_Questionnaire: QuestionnaireBaseProps = {} as React.ComponentProps<typeof Questionnaire>;
|
|
1054
|
+
export const _test_QuestionnaireChoice: QuestionnaireChoiceBaseProps = {} as React.ComponentProps<
|
|
1055
|
+
typeof QuestionnaireChoice
|
|
1056
|
+
>;
|
|
1057
|
+
export const _test_QuestionnaireChoiceDescription: QuestionnaireChoiceDescriptionBaseProps = {} as React.ComponentProps<
|
|
1058
|
+
typeof QuestionnaireChoiceDescription
|
|
1059
|
+
>;
|
|
1060
|
+
export const _test_QuestionnaireChoices: QuestionnaireChoicesBaseProps = {} as React.ComponentProps<
|
|
1061
|
+
typeof QuestionnaireChoices
|
|
1062
|
+
>;
|
|
1063
|
+
export const _test_QuestionnaireDescription: QuestionnaireDescriptionBaseProps = {} as React.ComponentProps<
|
|
1064
|
+
typeof QuestionnaireDescription
|
|
1065
|
+
>;
|
|
1066
|
+
export const _test_QuestionnaireError: QuestionnaireErrorBaseProps = {} as React.ComponentProps<
|
|
1067
|
+
typeof QuestionnaireError
|
|
1068
|
+
>;
|
|
1069
|
+
export const _test_QuestionnaireInput: QuestionnaireInputBaseProps = {} as React.ComponentProps<
|
|
1070
|
+
typeof QuestionnaireInput
|
|
1071
|
+
>;
|
|
1072
|
+
export const _test_QuestionnaireItem: QuestionnaireItemBaseProps = {} as React.ComponentProps<typeof QuestionnaireItem>;
|
|
1073
|
+
export const _test_QuestionnaireNext: QuestionnaireNextBaseProps = {} as React.ComponentProps<typeof QuestionnaireNext>;
|
|
1074
|
+
export const _test_QuestionnairePrevious: QuestionnairePreviousBaseProps = {} as React.ComponentProps<
|
|
1075
|
+
typeof QuestionnairePrevious
|
|
1076
|
+
>;
|
|
1077
|
+
export const _test_QuestionnaireProgress: QuestionnaireProgressBaseProps = {} as React.ComponentProps<
|
|
1078
|
+
typeof QuestionnaireProgress
|
|
1079
|
+
>;
|
|
1080
|
+
export const _test_QuestionnaireSkip: QuestionnaireSkipBaseProps = {} as React.ComponentProps<typeof QuestionnaireSkip>;
|
|
1081
|
+
export const _test_QuestionnaireSubmit: QuestionnaireSubmitBaseProps = {} as React.ComponentProps<
|
|
1082
|
+
typeof QuestionnaireSubmit
|
|
1083
|
+
>;
|
|
1084
|
+
export const _test_QuestionnaireTitle: QuestionnaireTitleBaseProps = {} as React.ComponentProps<
|
|
1085
|
+
typeof QuestionnaireTitle
|
|
1086
|
+
>;
|
|
924
1087
|
|
|
925
1088
|
export {};
|
package/src/accordion.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
2
|
+
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
1
3
|
import { Accordion as AccordionPrimitive } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
6
|
import type { AccordionBaseProps } from '@gv-tech/ui-core';
|
|
8
7
|
|
|
9
8
|
function Accordion({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) {
|
|
@@ -45,7 +44,7 @@ function AccordionContent({ className, children, ...props }: React.ComponentProp
|
|
|
45
44
|
return (
|
|
46
45
|
<AccordionPrimitive.Content
|
|
47
46
|
data-slot="accordion-content"
|
|
48
|
-
className="data-
|
|
47
|
+
className="data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm"
|
|
49
48
|
{...props}
|
|
50
49
|
>
|
|
51
50
|
<div
|
package/src/alert-dialog.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
1
2
|
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import { Button } from '
|
|
5
|
-
import { cn } from './lib/utils';
|
|
5
|
+
import { Button } from '@/./button';
|
|
6
6
|
|
|
7
7
|
import type { AlertDialogBaseProps } from '@gv-tech/ui-core';
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof
|
|
|
23
23
|
<AlertDialogPrimitive.Overlay
|
|
24
24
|
data-slot="alert-dialog-overlay"
|
|
25
25
|
className={cn(
|
|
26
|
-
'data-
|
|
26
|
+
'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 duration-100 supports-backdrop-filter:backdrop-blur-xs',
|
|
27
27
|
className,
|
|
28
28
|
)}
|
|
29
29
|
{...props}
|
|
@@ -45,7 +45,7 @@ function AlertDialogContent({
|
|
|
45
45
|
data-slot="alert-dialog-content"
|
|
46
46
|
data-size={size}
|
|
47
47
|
className={cn(
|
|
48
|
-
'group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-
|
|
48
|
+
'group/alert-dialog-content 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 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2',
|
|
49
49
|
className,
|
|
50
50
|
)}
|
|
51
51
|
{...props}
|
|
@@ -85,7 +85,7 @@ function AlertDialogMedia({ className, ...props }: React.ComponentProps<'div'>)
|
|
|
85
85
|
<div
|
|
86
86
|
data-slot="alert-dialog-media"
|
|
87
87
|
className={cn(
|
|
88
|
-
|
|
88
|
+
"bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",
|
|
89
89
|
className,
|
|
90
90
|
)}
|
|
91
91
|
{...props}
|
package/src/alert.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { cn } from 'cn';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import { cn } from './lib/utils';
|
|
5
|
-
|
|
6
5
|
import type { AlertBaseProps } from '@gv-tech/ui-core';
|
|
7
6
|
|
|
8
7
|
const alertVariants = cva(
|
|
9
|
-
|
|
8
|
+
"group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
|
|
10
9
|
{
|
|
11
10
|
variants: {
|
|
12
11
|
variant: {
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { cn } from 'cn';
|
|
3
|
+
import { Slot } from 'radix-ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
import { Button } from '@/./button';
|
|
7
|
+
|
|
8
|
+
import type {
|
|
9
|
+
AttachmentActionBaseProps,
|
|
10
|
+
AttachmentActionsBaseProps,
|
|
11
|
+
AttachmentBaseProps,
|
|
12
|
+
AttachmentContentBaseProps,
|
|
13
|
+
AttachmentDescriptionBaseProps,
|
|
14
|
+
AttachmentGroupBaseProps,
|
|
15
|
+
AttachmentMediaBaseProps,
|
|
16
|
+
AttachmentTitleBaseProps,
|
|
17
|
+
AttachmentTriggerBaseProps,
|
|
18
|
+
} from '@gv-tech/ui-core';
|
|
19
|
+
|
|
20
|
+
const attachmentVariants = cva(
|
|
21
|
+
'group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed',
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
default:
|
|
26
|
+
'gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2',
|
|
27
|
+
sm: 'gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5',
|
|
28
|
+
xs: 'gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1',
|
|
29
|
+
},
|
|
30
|
+
orientation: {
|
|
31
|
+
horizontal: 'min-w-40 items-center',
|
|
32
|
+
vertical: 'w-24 flex-col has-data-[slot=attachment-content]:w-30',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
function Attachment({
|
|
39
|
+
className,
|
|
40
|
+
state = 'done',
|
|
41
|
+
size = 'default',
|
|
42
|
+
orientation = 'horizontal',
|
|
43
|
+
...props
|
|
44
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof attachmentVariants> & AttachmentBaseProps) {
|
|
45
|
+
return (
|
|
46
|
+
<div
|
|
47
|
+
data-slot="attachment"
|
|
48
|
+
data-state={state}
|
|
49
|
+
data-size={size}
|
|
50
|
+
data-orientation={orientation}
|
|
51
|
+
className={cn(attachmentVariants({ size, orientation }), className)}
|
|
52
|
+
{...props}
|
|
53
|
+
/>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const attachmentMediaVariants = cva(
|
|
58
|
+
"relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5",
|
|
59
|
+
{
|
|
60
|
+
variants: {
|
|
61
|
+
variant: {
|
|
62
|
+
icon: '',
|
|
63
|
+
image:
|
|
64
|
+
'opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
variant: 'icon',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
function AttachmentMedia({
|
|
74
|
+
className,
|
|
75
|
+
variant = 'icon',
|
|
76
|
+
...props
|
|
77
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants> & AttachmentMediaBaseProps) {
|
|
78
|
+
return (
|
|
79
|
+
<div
|
|
80
|
+
data-slot="attachment-media"
|
|
81
|
+
data-variant={variant}
|
|
82
|
+
className={cn(attachmentMediaVariants({ variant }), className)}
|
|
83
|
+
{...props}
|
|
84
|
+
/>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function AttachmentContent({ className, ...props }: React.ComponentProps<'div'> & AttachmentContentBaseProps) {
|
|
89
|
+
return (
|
|
90
|
+
<div
|
|
91
|
+
data-slot="attachment-content"
|
|
92
|
+
className={cn(
|
|
93
|
+
'max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1',
|
|
94
|
+
className,
|
|
95
|
+
)}
|
|
96
|
+
{...props}
|
|
97
|
+
/>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function AttachmentTitle({ className, ...props }: React.ComponentProps<'span'> & AttachmentTitleBaseProps) {
|
|
102
|
+
return (
|
|
103
|
+
<span
|
|
104
|
+
data-slot="attachment-title"
|
|
105
|
+
className={cn(
|
|
106
|
+
'group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block max-w-full min-w-0 truncate font-medium',
|
|
107
|
+
className,
|
|
108
|
+
)}
|
|
109
|
+
{...props}
|
|
110
|
+
/>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function AttachmentDescription({ className, ...props }: React.ComponentProps<'span'> & AttachmentDescriptionBaseProps) {
|
|
115
|
+
return (
|
|
116
|
+
<span
|
|
117
|
+
data-slot="attachment-description"
|
|
118
|
+
className={cn(
|
|
119
|
+
'text-muted-foreground group-data-[state=error]/attachment:text-destructive/80 mt-0.5 block min-w-0 truncate text-xs',
|
|
120
|
+
'max-w-full',
|
|
121
|
+
className,
|
|
122
|
+
)}
|
|
123
|
+
{...props}
|
|
124
|
+
/>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function AttachmentActions({ className, ...props }: React.ComponentProps<'div'> & AttachmentActionsBaseProps) {
|
|
129
|
+
return (
|
|
130
|
+
<div
|
|
131
|
+
data-slot="attachment-actions"
|
|
132
|
+
className={cn(
|
|
133
|
+
'relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1',
|
|
134
|
+
className,
|
|
135
|
+
)}
|
|
136
|
+
{...props}
|
|
137
|
+
/>
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function AttachmentAction({
|
|
142
|
+
className,
|
|
143
|
+
variant,
|
|
144
|
+
size = 'icon-xs',
|
|
145
|
+
...props
|
|
146
|
+
}: React.ComponentProps<typeof Button> & AttachmentActionBaseProps) {
|
|
147
|
+
return (
|
|
148
|
+
<Button
|
|
149
|
+
data-slot="attachment-action"
|
|
150
|
+
variant={variant ?? 'ghost'}
|
|
151
|
+
size={size}
|
|
152
|
+
className={cn(className)}
|
|
153
|
+
{...props}
|
|
154
|
+
/>
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function AttachmentTrigger({
|
|
159
|
+
className,
|
|
160
|
+
asChild = false,
|
|
161
|
+
type,
|
|
162
|
+
...props
|
|
163
|
+
}: React.ComponentProps<'button'> & AttachmentTriggerBaseProps) {
|
|
164
|
+
const Comp = asChild ? Slot.Root : 'button';
|
|
165
|
+
|
|
166
|
+
return (
|
|
167
|
+
<Comp
|
|
168
|
+
data-slot="attachment-trigger"
|
|
169
|
+
type={asChild ? undefined : (type ?? 'button')}
|
|
170
|
+
className={cn('absolute inset-0 z-10 outline-none', className)}
|
|
171
|
+
{...props}
|
|
172
|
+
/>
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function AttachmentGroup({ className, ...props }: React.ComponentProps<'div'> & AttachmentGroupBaseProps) {
|
|
177
|
+
return (
|
|
178
|
+
<div
|
|
179
|
+
data-slot="attachment-group"
|
|
180
|
+
className={cn(
|
|
181
|
+
'scroll-fade-x flex min-w-0 snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start',
|
|
182
|
+
className,
|
|
183
|
+
)}
|
|
184
|
+
{...props}
|
|
185
|
+
/>
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export {
|
|
190
|
+
Attachment,
|
|
191
|
+
AttachmentAction,
|
|
192
|
+
AttachmentActions,
|
|
193
|
+
AttachmentContent,
|
|
194
|
+
AttachmentDescription,
|
|
195
|
+
AttachmentGroup,
|
|
196
|
+
AttachmentMedia,
|
|
197
|
+
AttachmentTitle,
|
|
198
|
+
AttachmentTrigger,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// Verify that the components satisfy the ui-core contracts
|
|
202
|
+
export type ___verifyAttachmentContract =
|
|
203
|
+
React.ComponentProps<typeof Attachment> extends AttachmentBaseProps ? true : false;
|
package/src/breadcrumb.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { cn } from 'cn';
|
|
2
|
+
import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
|
|
1
3
|
import { Slot } from 'radix-ui';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
6
|
import type { BreadcrumbBaseProps } from '@gv-tech/ui-core';
|
|
8
7
|
|
|
9
8
|
function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {
|
|
@@ -60,7 +59,7 @@ function BreadcrumbSeparator({ children, className, ...props }: React.ComponentP
|
|
|
60
59
|
className={cn('[&>svg]:size-3.5', className)}
|
|
61
60
|
{...props}
|
|
62
61
|
>
|
|
63
|
-
{children ?? <ChevronRightIcon />}
|
|
62
|
+
{children ?? <ChevronRightIcon className="rtl:rotate-180" />}
|
|
64
63
|
</li>
|
|
65
64
|
);
|
|
66
65
|
}
|
package/src/bubble.tsx
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
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 type {
|
|
7
|
+
BubbleBaseProps,
|
|
8
|
+
BubbleContentBaseProps,
|
|
9
|
+
BubbleGroupBaseProps,
|
|
10
|
+
BubbleReactionsBaseProps,
|
|
11
|
+
} from '@gv-tech/ui-core';
|
|
12
|
+
|
|
13
|
+
function BubbleGroup({ className, ...props }: React.ComponentProps<'div'> & BubbleGroupBaseProps) {
|
|
14
|
+
return <div data-slot="bubble-group" className={cn('flex min-w-0 flex-col gap-2', className)} {...props} />;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const bubbleVariants = cva(
|
|
18
|
+
'group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full',
|
|
19
|
+
{
|
|
20
|
+
variants: {
|
|
21
|
+
variant: {
|
|
22
|
+
default:
|
|
23
|
+
'*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',
|
|
24
|
+
secondary:
|
|
25
|
+
'*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]',
|
|
26
|
+
muted:
|
|
27
|
+
'*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',
|
|
28
|
+
tinted:
|
|
29
|
+
'*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',
|
|
30
|
+
outline:
|
|
31
|
+
'*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',
|
|
32
|
+
ghost:
|
|
33
|
+
'border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50',
|
|
34
|
+
destructive:
|
|
35
|
+
'*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: 'default',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
function Bubble({
|
|
45
|
+
variant = 'default',
|
|
46
|
+
align = 'start',
|
|
47
|
+
className,
|
|
48
|
+
...props
|
|
49
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof bubbleVariants> & BubbleBaseProps) {
|
|
50
|
+
return (
|
|
51
|
+
<div
|
|
52
|
+
data-slot="bubble"
|
|
53
|
+
data-variant={variant}
|
|
54
|
+
data-align={align}
|
|
55
|
+
className={cn(bubbleVariants({ variant }), className)}
|
|
56
|
+
{...props}
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function BubbleContent({ asChild = false, className, ...props }: React.ComponentProps<'div'> & BubbleContentBaseProps) {
|
|
62
|
+
const Comp = asChild ? Slot.Root : 'div';
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<Comp
|
|
66
|
+
data-slot="bubble-content"
|
|
67
|
+
className={cn(
|
|
68
|
+
'[button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/50 w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:ring-3',
|
|
69
|
+
className,
|
|
70
|
+
)}
|
|
71
|
+
{...props}
|
|
72
|
+
/>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const bubbleReactionsVariants = cva(
|
|
77
|
+
'absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0',
|
|
78
|
+
{
|
|
79
|
+
variants: {
|
|
80
|
+
side: {
|
|
81
|
+
top: 'top-0 -translate-y-3/4',
|
|
82
|
+
bottom: 'bottom-0 translate-y-3/4',
|
|
83
|
+
},
|
|
84
|
+
align: {
|
|
85
|
+
start: 'start-3',
|
|
86
|
+
end: 'end-3',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: {
|
|
90
|
+
side: 'bottom',
|
|
91
|
+
align: 'end',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
function BubbleReactions({
|
|
97
|
+
side = 'bottom',
|
|
98
|
+
align = 'end',
|
|
99
|
+
className,
|
|
100
|
+
...props
|
|
101
|
+
}: React.ComponentProps<'div'> & BubbleReactionsBaseProps) {
|
|
102
|
+
return (
|
|
103
|
+
<div
|
|
104
|
+
data-slot="bubble-reactions"
|
|
105
|
+
data-align={align}
|
|
106
|
+
data-side={side}
|
|
107
|
+
className={cn(bubbleReactionsVariants({ side, align }), className)}
|
|
108
|
+
{...props}
|
|
109
|
+
/>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
|
|
114
|
+
|
|
115
|
+
// Verify that the components satisfy the ui-core contracts
|
|
116
|
+
export type ___verifyBubbleContract = React.ComponentProps<typeof Bubble> extends BubbleBaseProps ? true : false;
|
package/src/button-group.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { cn } from 'cn';
|
|
2
3
|
import { Slot } from 'radix-ui';
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
-
import { Separator } from './separator';
|
|
5
|
+
import { Separator } from '@/./separator';
|
|
6
6
|
|
|
7
7
|
const buttonGroupVariants = cva(
|
|
8
|
-
|
|
8
|
+
"group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
orientation: {
|
|
@@ -49,7 +49,7 @@ function ButtonGroupText({
|
|
|
49
49
|
return (
|
|
50
50
|
<Comp
|
|
51
51
|
className={cn(
|
|
52
|
-
|
|
52
|
+
"bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
53
53
|
className,
|
|
54
54
|
)}
|
|
55
55
|
{...props}
|
|
@@ -67,7 +67,7 @@ function ButtonGroupSeparator({
|
|
|
67
67
|
data-slot="button-group-separator"
|
|
68
68
|
orientation={orientation}
|
|
69
69
|
className={cn(
|
|
70
|
-
'bg-input relative self-stretch data-
|
|
70
|
+
'bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',
|
|
71
71
|
className,
|
|
72
72
|
)}
|
|
73
73
|
{...props}
|