@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
4
|
HeadingItem,
|
|
5
5
|
TableOfContentsBaseProps,
|
|
6
6
|
TableOfContentsContentBaseProps,
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
TableOfContentsRootBaseProps,
|
|
9
9
|
} from '@gv-tech/ui-core';
|
|
10
10
|
import * as React from 'react';
|
|
11
|
+
|
|
11
12
|
import { cn, slugify } from './lib/utils';
|
|
12
13
|
|
|
13
14
|
// Context for sharing heading data
|
|
@@ -33,10 +34,9 @@ function useTOC() {
|
|
|
33
34
|
export type TableOfContentsProps = TableOfContentsRootBaseProps;
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
* Root component that provides the Table of Contents context.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* If used standalone: <TableOfContents /> (requires container ref or defaults to document)
|
|
37
|
+
* Root component that provides the Table of Contents context. Can be used as a wrapper OR standalone. If used as a
|
|
38
|
+
* wrapper: <TableOfContents><List /><Content>{children}</Content></TableOfContents> If used standalone:
|
|
39
|
+
* <TableOfContents /> (requires container ref or defaults to document)
|
|
40
40
|
*/
|
|
41
41
|
function TableOfContents({
|
|
42
42
|
children,
|
|
@@ -98,9 +98,7 @@ function TableOfContents({
|
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/**
|
|
102
|
-
* Renders the actual list of links.
|
|
103
|
-
*/
|
|
101
|
+
/** Renders the actual list of links. */
|
|
104
102
|
function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
|
|
105
103
|
const { headings, activeId, activeHeadingText } = useTOC();
|
|
106
104
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
@@ -161,6 +159,7 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
|
|
|
161
159
|
<div className={cn('bg-background/95 sticky top-0 z-40 border-b backdrop-blur lg:hidden', className)}>
|
|
162
160
|
<button
|
|
163
161
|
onClick={() => setIsOpen(!isOpen)}
|
|
162
|
+
aria-label={activeHeadingText ? `On this page: ${activeHeadingText}` : 'Table of contents'}
|
|
164
163
|
className="flex w-full items-center justify-between px-4 py-3 text-left"
|
|
165
164
|
>
|
|
166
165
|
<div className="flex items-center gap-2 overflow-hidden">
|
|
@@ -198,9 +197,7 @@ function TableOfContentsList({ className }: TableOfContentsListBaseProps) {
|
|
|
198
197
|
);
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
/**
|
|
202
|
-
* Wraps the content area and automatically detects headings within it.
|
|
203
|
-
*/
|
|
200
|
+
/** Wraps the content area and automatically detects headings within it. */
|
|
204
201
|
function TableOfContentsContent({ children, className }: TableOfContentsContentBaseProps) {
|
|
205
202
|
const { registerHeadings, setActiveId, config } = useTOC();
|
|
206
203
|
const contentRef = React.useRef<HTMLDivElement>(null);
|
package/src/table.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { TableBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import type { TableBaseProps } from '@gv-tech/ui-core';
|
|
5
|
-
|
|
6
5
|
function Table({ className, ...props }: React.ComponentProps<'table'>) {
|
|
7
6
|
return (
|
|
8
7
|
<div data-slot="table-container" className="relative w-full overflow-x-auto">
|
package/src/tabs.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { TabsBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
5
|
import { cn } from 'cn';
|
|
5
6
|
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
|
|
8
|
-
import type { TabsBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
9
|
function Tabs({ className, orientation = 'horizontal', ...props }: React.ComponentProps<typeof TabsPrimitive.Root>) {
|
|
11
10
|
return (
|
|
12
11
|
<TabsPrimitive.Root
|
|
@@ -19,7 +18,7 @@ function Tabs({ className, orientation = 'horizontal', ...props }: React.Compone
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
const tabsListVariants = cva(
|
|
22
|
-
'group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px]
|
|
21
|
+
'group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center rounded-lg p-[3px] group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none',
|
|
23
22
|
{
|
|
24
23
|
variants: {
|
|
25
24
|
variant: {
|
package/src/text.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import type { TextBaseProps } from '@gv-tech/ui-core';
|
|
2
3
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
|
-
import type { TextBaseProps } from '@gv-tech/ui-core';
|
|
6
6
|
import { cn } from './lib/utils';
|
|
7
7
|
|
|
8
8
|
const textVariants = cva('', {
|
|
@@ -14,9 +14,9 @@ const textVariants = cva('', {
|
|
|
14
14
|
h4: 'scroll-m-20 text-xl font-semibold tracking-tight',
|
|
15
15
|
body: 'leading-7',
|
|
16
16
|
bodySmall: 'text-sm leading-6',
|
|
17
|
-
caption: 'text-
|
|
18
|
-
label: 'text-sm font-medium
|
|
19
|
-
overline: 'text-xs font-semibold
|
|
17
|
+
caption: 'text-muted-foreground text-xs',
|
|
18
|
+
label: 'text-sm leading-none font-medium',
|
|
19
|
+
overline: 'text-muted-foreground text-xs font-semibold tracking-widest uppercase',
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
defaultVariants: {
|
package/src/textarea.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { TextareaBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cn } from 'cn';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
import type { TextareaBaseProps } from '@gv-tech/ui-core';
|
|
5
|
-
|
|
6
5
|
function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
|
|
7
6
|
return (
|
|
8
7
|
<textarea
|
package/src/theme-provider.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ThemeProviderBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ThemeProviderBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import type { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';
|
|
5
5
|
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
|
6
6
|
|
package/src/theme-toggle.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ThemeToggleBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ThemeToggleBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import { Moon, Sun, SunMoon } from 'lucide-react';
|
|
5
|
+
|
|
5
6
|
import { Button } from './button';
|
|
6
7
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from './dropdown-menu';
|
|
7
8
|
import { useTheme } from './hooks/use-theme';
|
|
@@ -9,26 +10,8 @@ import { cn } from './lib/utils';
|
|
|
9
10
|
|
|
10
11
|
export type ThemeToggleProps = ThemeToggleBaseProps;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Use customTheme if provided, otherwise fallback to next-themes
|
|
16
|
-
const currentTheme = customTheme ?? nextTheme;
|
|
17
|
-
|
|
18
|
-
// Determine the effective theme for icon rendering
|
|
19
|
-
const effectiveTheme = customTheme ? customTheme : resolvedTheme;
|
|
20
|
-
const isDark = effectiveTheme === 'dark';
|
|
21
|
-
const isSystem = currentTheme === 'system';
|
|
22
|
-
|
|
23
|
-
const handleThemeChange = (newTheme: string) => {
|
|
24
|
-
if (onThemeChange) {
|
|
25
|
-
onThemeChange(newTheme);
|
|
26
|
-
} else {
|
|
27
|
-
setNextTheme(newTheme);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const IconToggle = () => (
|
|
13
|
+
function ThemeIcons({ isDark, isSystem }: { isDark: boolean; isSystem: boolean }) {
|
|
14
|
+
return (
|
|
32
15
|
<>
|
|
33
16
|
<Sun
|
|
34
17
|
className={cn(
|
|
@@ -51,13 +34,33 @@ export function ThemeToggle({ variant = 'binary', onThemeChange, customTheme, cl
|
|
|
51
34
|
<span className="sr-only">Toggle theme</span>
|
|
52
35
|
</>
|
|
53
36
|
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ThemeToggle({ variant = 'binary', onThemeChange, customTheme, className }: ThemeToggleProps) {
|
|
40
|
+
const { theme: nextTheme, setTheme: setNextTheme, resolvedTheme } = useTheme();
|
|
41
|
+
|
|
42
|
+
// Use customTheme if provided, otherwise fallback to next-themes
|
|
43
|
+
const currentTheme = customTheme ?? nextTheme;
|
|
44
|
+
|
|
45
|
+
// Determine the effective theme for icon rendering
|
|
46
|
+
const effectiveTheme = customTheme ? customTheme : resolvedTheme;
|
|
47
|
+
const isDark = effectiveTheme === 'dark';
|
|
48
|
+
const isSystem = currentTheme === 'system';
|
|
49
|
+
|
|
50
|
+
const handleThemeChange = (newTheme: string) => {
|
|
51
|
+
if (onThemeChange) {
|
|
52
|
+
onThemeChange(newTheme);
|
|
53
|
+
} else {
|
|
54
|
+
setNextTheme(newTheme);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
54
57
|
|
|
55
58
|
if (variant === 'ternary') {
|
|
56
59
|
return (
|
|
57
60
|
<DropdownMenu>
|
|
58
61
|
<DropdownMenuTrigger asChild>
|
|
59
62
|
<Button variant="ghost" size="icon" className={cn('relative h-9 w-9', className)}>
|
|
60
|
-
<
|
|
63
|
+
<ThemeIcons isDark={isDark} isSystem={isSystem} />
|
|
61
64
|
</Button>
|
|
62
65
|
</DropdownMenuTrigger>
|
|
63
66
|
<DropdownMenuContent align="end">
|
|
@@ -86,7 +89,7 @@ export function ThemeToggle({ variant = 'binary', onThemeChange, customTheme, cl
|
|
|
86
89
|
onClick={() => handleThemeChange(currentTheme === 'dark' ? 'light' : 'dark')}
|
|
87
90
|
aria-label="Toggle theme"
|
|
88
91
|
>
|
|
89
|
-
<
|
|
92
|
+
<ThemeIcons isDark={isDark} isSystem={isSystem} />
|
|
90
93
|
</Button>
|
|
91
94
|
);
|
|
92
95
|
}
|
package/src/toast.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import type { ToastBaseProps } from '@gv-tech/ui-core';
|
|
2
3
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
4
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
5
|
import { X } from 'lucide-react';
|
|
@@ -6,8 +7,6 @@ import * as React from 'react';
|
|
|
6
7
|
|
|
7
8
|
import { cn } from './lib/utils';
|
|
8
9
|
|
|
9
|
-
import type { ToastBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
10
|
const ToastProvider = ToastPrimitives.Provider;
|
|
12
11
|
|
|
13
12
|
const ToastViewport = React.forwardRef<
|
|
@@ -26,11 +25,11 @@ const ToastViewport = React.forwardRef<
|
|
|
26
25
|
ToastViewport.displayName = ToastPrimitives.Viewport?.displayName || 'ToastViewport';
|
|
27
26
|
|
|
28
27
|
const toastVariants = cva(
|
|
29
|
-
'group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none
|
|
28
|
+
'group data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none',
|
|
30
29
|
{
|
|
31
30
|
variants: {
|
|
32
31
|
variant: {
|
|
33
|
-
default: '
|
|
32
|
+
default: 'bg-background text-foreground border',
|
|
34
33
|
destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground',
|
|
35
34
|
},
|
|
36
35
|
},
|
package/src/toaster.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ToasterBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ToasterBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
|
|
4
5
|
import { useToast } from './hooks/use-toast';
|
|
5
6
|
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast';
|
|
6
7
|
|
package/src/toggle-group.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { ToggleGroupBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
5
|
import { cn } from 'cn';
|
|
5
6
|
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
@@ -7,8 +8,6 @@ import * as React from 'react';
|
|
|
7
8
|
|
|
8
9
|
import { toggleVariants } from '@/./toggle';
|
|
9
10
|
|
|
10
|
-
import type { ToggleGroupBaseProps } from '@gv-tech/ui-core';
|
|
11
|
-
|
|
12
11
|
const ToggleGroupContext = React.createContext<
|
|
13
12
|
VariantProps<typeof toggleVariants> & {
|
|
14
13
|
spacing?: number;
|
package/src/toggle.tsx
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
+
import type { ToggleBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { cn } from 'cn';
|
|
3
4
|
import { Toggle as TogglePrimitive } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
|
-
import type { ToggleBaseProps } from '@gv-tech/ui-core';
|
|
7
|
-
|
|
8
7
|
const toggleVariants = cva(
|
|
9
|
-
"group/toggle
|
|
8
|
+
"group/toggle hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10
9
|
{
|
|
11
10
|
variants: {
|
|
12
11
|
variant: {
|
|
13
12
|
default: 'bg-transparent',
|
|
14
|
-
outline: 'border
|
|
13
|
+
outline: 'border-input hover:bg-muted border bg-transparent',
|
|
15
14
|
},
|
|
16
15
|
size: {
|
|
17
16
|
default: 'h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
package/src/tooltip.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { TooltipBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { cn } from 'cn';
|
|
4
5
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
|
|
7
|
-
import type { TooltipBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
8
|
function TooltipProvider({ delayDuration = 0, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
10
9
|
return <TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props} />;
|
|
11
10
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-NEeQKKDZ.js"),r=require("./dist-BoNQb2nd.js"),i=require("./dist-DYUvPCPC.js"),a=require("./dist-v9094Auw.js"),o=require("./dist-DZiOPWLp.js"),s=require("./dist-YAADIsyo.js"),c=require("./dist-C8Pm6LRc.js"),l=require("./dist-Dj9s8AIv.js"),u=require("./dist-mHQuNOH-.js");let d=require("lucide-react"),f=require("react"),p=e.r(f,1);f=e.r(f);let m=require("react/jsx-runtime");var h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0}),_=`Accordion`,v=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[y,b,x]=a.t(_),[S,ee]=i.t(_,[x,l.o]),C=l.o(),w=p.forwardRef(g(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,m.jsx)(y.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,m.jsx)(A,{...a,ref:t}):(0,m.jsx)(k,{...i,ref:t})})},`Accordion`)),[T,E]=S(_),[D,O]=S(_,{collapsible:!1}),k=p.forwardRef(g(function(e,t){let{value:n,defaultValue:r,onValueChange:i=g(()=>{},`onValueChange`),collapsible:a=!1,...o}=e,[c,l]=s.t({prop:n,defaultProp:r??``,onChange:i,caller:_});return(0,m.jsx)(T,{scope:e.__scopeAccordion,value:p.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:p.useCallback(()=>a&&l(``),[a,l]),children:(0,m.jsx)(D,{scope:e.__scopeAccordion,collapsible:a,children:(0,m.jsx)(N,{...o,ref:t})})})},`AccordionImplSingle`)),A=p.forwardRef(g(function(e,t){let{value:n,defaultValue:r,onValueChange:i=g(()=>{},`onValueChange`),...a}=e,[o,c]=s.t({prop:n,defaultProp:r??[],onChange:i,caller:_}),l=p.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=p.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,m.jsx)(T,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:(0,m.jsx)(D,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(N,{...a,ref:t})})})},`AccordionImplMultiple`)),[j,M]=S(_),N=p.forwardRef(g(function(e,t){let{__scopeAccordion:i,disabled:a,dir:s,orientation:c=`vertical`,...l}=e,d=n.a(p.useRef(null),t),f=b(i),h=u.n(s)===`ltr`,_=o.t(e.onKeyDown,e=>{if(!v.includes(e.key))return;let t=e.target,n=f().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,o=i-1,s=g(()=>{a=r+1,a>o&&(a=0)},`moveNext`),l=g(()=>{a=r-1,a<0&&(a=o)},`movePrev`);switch(e.key){case`Home`:a=0;break;case`End`:a=o;break;case`ArrowRight`:c===`horizontal`&&(h?s():l());break;case`ArrowDown`:c===`vertical`&&s();break;case`ArrowLeft`:c===`horizontal`&&(h?l():s());break;case`ArrowUp`:c===`vertical`&&l();break}n[a%i].ref.current?.focus()});return(0,m.jsx)(j,{scope:i,disabled:a,direction:s,orientation:c,children:(0,m.jsx)(y.Slot,{scope:i,children:(0,m.jsx)(r.t.div,{...l,"data-orientation":c,ref:d,onKeyDown:a?void 0:_})})})},`AccordionImpl`)),P=`AccordionItem`,[F,I]=S(P),L=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=M(P,n),o=E(P,n),s=C(n),u=c.t(),d=r&&o.value.includes(r)||!1,f=a.disabled||e.disabled;return(0,m.jsx)(F,{scope:n,open:d,disabled:f,triggerId:u,children:(0,m.jsx)(l.i,{"data-orientation":a.orientation,"data-state":W(d),...s,...i,ref:t,disabled:f,open:d,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),R=`AccordionHeader`,z=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...i}=e,a=M(_,n),o=I(R,n);return(0,m.jsx)(r.t.h3,{"data-orientation":a.orientation,"data-state":W(o.open),"data-disabled":o.disabled?``:void 0,...i,ref:t})},`AccordionHeader`)),B=`AccordionTrigger`,V=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=M(_,n),a=I(B,n),o=O(B,n),s=C(n);return(0,m.jsx)(y.ItemSlot,{scope:n,children:(0,m.jsx)(l.a,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),H=`AccordionContent`,U=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=M(_,n),a=I(H,n),o=C(n);return(0,m.jsx)(l.r,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function W(e){return e?`open`:`closed`}g(W,`getState`);var G=w,K=L,q=z,J=V,Y=U;function X({className:e,...n}){return(0,m.jsx)(G,{"data-slot":`accordion`,className:t.t(`flex w-full flex-col`,e),...n})}function Z({className:e,...n}){return(0,m.jsx)(K,{"data-slot":`accordion-item`,className:t.t(`not-last:border-b`,e),...n})}function Q({className:e,children:n,...r}){return(0,m.jsx)(q,{className:`flex`,children:(0,m.jsxs)(J,{"data-slot":`accordion-trigger`,className:t.t(`group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4`,e),...r,children:[n,(0,m.jsx)(d.ChevronDownIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,m.jsx)(d.ChevronUpIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function $({className:e,children:n,...r}){return(0,m.jsx)(Y,{"data-slot":`accordion-content`,className:`data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm`,...r,children:(0,m.jsx)(`div`,{className:t.t(`[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,e),children:n})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return X}});
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
-
import { a as t } from "./dist-8fYwoWd4.mjs";
|
|
3
|
-
import { t as n } from "./dist-BQhMregZ.mjs";
|
|
4
|
-
import { t as r } from "./dist-DMwCTE2i.mjs";
|
|
5
|
-
import { t as i } from "./dist-DOoZ3vGL.mjs";
|
|
6
|
-
import { t as a } from "./dist-DyMv0xk8.mjs";
|
|
7
|
-
import { t as o } from "./dist-BUXpRW9O.mjs";
|
|
8
|
-
import { t as s } from "./dist-CBsYNwXz.mjs";
|
|
9
|
-
import { a as c, i as l, o as u, r as d } from "./dist-ByW6RHeZ.mjs";
|
|
10
|
-
import { n as f } from "./dist-dMp9dzmY.mjs";
|
|
11
|
-
import { ChevronDownIcon as p, ChevronUpIcon as m } from "lucide-react";
|
|
12
|
-
import * as h from "react";
|
|
13
|
-
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
-
//#region ../../node_modules/.bun/@radix-ui+react-accordion@1.2.20+2b23df507bdda662/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
15
|
-
var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
16
|
-
value: t,
|
|
17
|
-
configurable: !0
|
|
18
|
-
}), b = "Accordion", x = [
|
|
19
|
-
"Home",
|
|
20
|
-
"End",
|
|
21
|
-
"ArrowDown",
|
|
22
|
-
"ArrowUp",
|
|
23
|
-
"ArrowLeft",
|
|
24
|
-
"ArrowRight"
|
|
25
|
-
], [S, C, w] = i(b), [T, ee] = r(b, [w, u]), E = u(), D = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
26
|
-
let { type: n, ...r } = e, i = r, a = r;
|
|
27
|
-
return /* @__PURE__ */ g(S.Provider, {
|
|
28
|
-
scope: e.__scopeAccordion,
|
|
29
|
-
children: n === "multiple" ? /* @__PURE__ */ g(N, {
|
|
30
|
-
...a,
|
|
31
|
-
ref: t
|
|
32
|
-
}) : /* @__PURE__ */ g(M, {
|
|
33
|
-
...i,
|
|
34
|
-
ref: t
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
}, "Accordion")), [O, k] = T(b), [A, j] = T(b, { collapsible: !1 }), M = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
38
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), collapsible: a = !1, ...s } = e, [c, l] = o({
|
|
39
|
-
prop: n,
|
|
40
|
-
defaultProp: r ?? "",
|
|
41
|
-
onChange: i,
|
|
42
|
-
caller: b
|
|
43
|
-
});
|
|
44
|
-
return /* @__PURE__ */ g(O, {
|
|
45
|
-
scope: e.__scopeAccordion,
|
|
46
|
-
value: h.useMemo(() => c ? [c] : [], [c]),
|
|
47
|
-
onItemOpen: l,
|
|
48
|
-
onItemClose: h.useCallback(() => a && l(""), [a, l]),
|
|
49
|
-
children: /* @__PURE__ */ g(A, {
|
|
50
|
-
scope: e.__scopeAccordion,
|
|
51
|
-
collapsible: a,
|
|
52
|
-
children: /* @__PURE__ */ g(I, {
|
|
53
|
-
...s,
|
|
54
|
-
ref: t
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
}, "AccordionImplSingle")), N = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
59
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), ...a } = e, [s, c] = o({
|
|
60
|
-
prop: n,
|
|
61
|
-
defaultProp: r ?? [],
|
|
62
|
-
onChange: i,
|
|
63
|
-
caller: b
|
|
64
|
-
}), l = h.useCallback((e) => c((t = []) => [...t, e]), [c]), u = h.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
65
|
-
return /* @__PURE__ */ g(O, {
|
|
66
|
-
scope: e.__scopeAccordion,
|
|
67
|
-
value: s,
|
|
68
|
-
onItemOpen: l,
|
|
69
|
-
onItemClose: u,
|
|
70
|
-
children: /* @__PURE__ */ g(A, {
|
|
71
|
-
scope: e.__scopeAccordion,
|
|
72
|
-
collapsible: !0,
|
|
73
|
-
children: /* @__PURE__ */ g(I, {
|
|
74
|
-
...a,
|
|
75
|
-
ref: t
|
|
76
|
-
})
|
|
77
|
-
})
|
|
78
|
-
});
|
|
79
|
-
}, "AccordionImplMultiple")), [P, F] = T(b), I = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, r) {
|
|
80
|
-
let { __scopeAccordion: i, disabled: o, dir: s, orientation: c = "vertical", ...l } = e, u = t(h.useRef(null), r), d = C(i), p = f(s) === "ltr", m = a(e.onKeyDown, (e) => {
|
|
81
|
-
if (!x.includes(e.key)) return;
|
|
82
|
-
let t = e.target, n = d().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
83
|
-
if (r === -1) return;
|
|
84
|
-
e.preventDefault();
|
|
85
|
-
let a = r, o = i - 1, s = /* @__PURE__ */ y(() => {
|
|
86
|
-
a = r + 1, a > o && (a = 0);
|
|
87
|
-
}, "moveNext"), l = /* @__PURE__ */ y(() => {
|
|
88
|
-
a = r - 1, a < 0 && (a = o);
|
|
89
|
-
}, "movePrev");
|
|
90
|
-
switch (e.key) {
|
|
91
|
-
case "Home":
|
|
92
|
-
a = 0;
|
|
93
|
-
break;
|
|
94
|
-
case "End":
|
|
95
|
-
a = o;
|
|
96
|
-
break;
|
|
97
|
-
case "ArrowRight":
|
|
98
|
-
c === "horizontal" && (p ? s() : l());
|
|
99
|
-
break;
|
|
100
|
-
case "ArrowDown":
|
|
101
|
-
c === "vertical" && s();
|
|
102
|
-
break;
|
|
103
|
-
case "ArrowLeft":
|
|
104
|
-
c === "horizontal" && (p ? l() : s());
|
|
105
|
-
break;
|
|
106
|
-
case "ArrowUp":
|
|
107
|
-
c === "vertical" && l();
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
n[a % i].ref.current?.focus();
|
|
111
|
-
});
|
|
112
|
-
return /* @__PURE__ */ g(P, {
|
|
113
|
-
scope: i,
|
|
114
|
-
disabled: o,
|
|
115
|
-
direction: s,
|
|
116
|
-
orientation: c,
|
|
117
|
-
children: /* @__PURE__ */ g(S.Slot, {
|
|
118
|
-
scope: i,
|
|
119
|
-
children: /* @__PURE__ */ g(n.div, {
|
|
120
|
-
...l,
|
|
121
|
-
"data-orientation": c,
|
|
122
|
-
ref: u,
|
|
123
|
-
onKeyDown: o ? void 0 : m
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
}, "AccordionImpl")), L = "AccordionItem", [R, z] = T(L), B = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
128
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = F(L, n), o = k(L, n), c = E(n), u = s(), d = r && o.value.includes(r) || !1, f = a.disabled || e.disabled;
|
|
129
|
-
return /* @__PURE__ */ g(R, {
|
|
130
|
-
scope: n,
|
|
131
|
-
open: d,
|
|
132
|
-
disabled: f,
|
|
133
|
-
triggerId: u,
|
|
134
|
-
children: /* @__PURE__ */ g(l, {
|
|
135
|
-
"data-orientation": a.orientation,
|
|
136
|
-
"data-state": q(d),
|
|
137
|
-
...c,
|
|
138
|
-
...i,
|
|
139
|
-
ref: t,
|
|
140
|
-
disabled: f,
|
|
141
|
-
open: d,
|
|
142
|
-
onOpenChange: (e) => {
|
|
143
|
-
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
144
|
-
}
|
|
145
|
-
})
|
|
146
|
-
});
|
|
147
|
-
}, "AccordionItem")), V = "AccordionHeader", H = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
148
|
-
let { __scopeAccordion: r, ...i } = e, a = F(b, r), o = z(V, r);
|
|
149
|
-
return /* @__PURE__ */ g(n.h3, {
|
|
150
|
-
"data-orientation": a.orientation,
|
|
151
|
-
"data-state": q(o.open),
|
|
152
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
153
|
-
...i,
|
|
154
|
-
ref: t
|
|
155
|
-
});
|
|
156
|
-
}, "AccordionHeader")), U = "AccordionTrigger", W = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
157
|
-
let { __scopeAccordion: n, ...r } = e, i = F(b, n), a = z(U, n), o = j(U, n), s = E(n);
|
|
158
|
-
return /* @__PURE__ */ g(S.ItemSlot, {
|
|
159
|
-
scope: n,
|
|
160
|
-
children: /* @__PURE__ */ g(c, {
|
|
161
|
-
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
162
|
-
"data-orientation": i.orientation,
|
|
163
|
-
id: a.triggerId,
|
|
164
|
-
...s,
|
|
165
|
-
...r,
|
|
166
|
-
ref: t
|
|
167
|
-
})
|
|
168
|
-
});
|
|
169
|
-
}, "AccordionTrigger")), G = "AccordionContent", K = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
170
|
-
let { __scopeAccordion: n, ...r } = e, i = F(b, n), a = z(G, n), o = E(n);
|
|
171
|
-
return /* @__PURE__ */ g(d, {
|
|
172
|
-
role: "region",
|
|
173
|
-
"aria-labelledby": a.triggerId,
|
|
174
|
-
"data-orientation": i.orientation,
|
|
175
|
-
...o,
|
|
176
|
-
...r,
|
|
177
|
-
ref: t,
|
|
178
|
-
style: {
|
|
179
|
-
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
180
|
-
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
181
|
-
...e.style
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
}, "AccordionContent"));
|
|
185
|
-
function q(e) {
|
|
186
|
-
return e ? "open" : "closed";
|
|
187
|
-
}
|
|
188
|
-
y(q, "getState");
|
|
189
|
-
var J = D, Y = B, X = H, Z = W, Q = K;
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/accordion.tsx
|
|
192
|
-
function $({ className: t, ...n }) {
|
|
193
|
-
return /* @__PURE__ */ g(J, {
|
|
194
|
-
"data-slot": "accordion",
|
|
195
|
-
className: e("flex w-full flex-col", t),
|
|
196
|
-
...n
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
function te({ className: t, ...n }) {
|
|
200
|
-
return /* @__PURE__ */ g(Y, {
|
|
201
|
-
"data-slot": "accordion-item",
|
|
202
|
-
className: e("not-last:border-b", t),
|
|
203
|
-
...n
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function ne({ className: t, children: n, ...r }) {
|
|
207
|
-
return /* @__PURE__ */ g(X, {
|
|
208
|
-
className: "flex",
|
|
209
|
-
children: /* @__PURE__ */ _(Z, {
|
|
210
|
-
"data-slot": "accordion-trigger",
|
|
211
|
-
className: e("group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4", t),
|
|
212
|
-
...r,
|
|
213
|
-
children: [
|
|
214
|
-
n,
|
|
215
|
-
/* @__PURE__ */ g(p, {
|
|
216
|
-
"data-slot": "accordion-trigger-icon",
|
|
217
|
-
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
218
|
-
}),
|
|
219
|
-
/* @__PURE__ */ g(m, {
|
|
220
|
-
"data-slot": "accordion-trigger-icon",
|
|
221
|
-
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
222
|
-
})
|
|
223
|
-
]
|
|
224
|
-
})
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
function re({ className: t, children: n, ...r }) {
|
|
228
|
-
return /* @__PURE__ */ g(Q, {
|
|
229
|
-
"data-slot": "accordion-content",
|
|
230
|
-
className: "data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm",
|
|
231
|
-
...r,
|
|
232
|
-
children: /* @__PURE__ */ g("div", {
|
|
233
|
-
className: e("[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4", t),
|
|
234
|
-
children: n
|
|
235
|
-
})
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
//#endregion
|
|
239
|
-
export { ne as i, re as n, te as r, $ as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-NEeQKKDZ.js"),r=require("./dist-DYUvPCPC.js"),i=require("./dist-DZiOPWLp.js"),a=require("./dist-yA6iVq_M.js"),o=require("./button.cjs");let s=require("react"),c=e.r(s,1);s=e.r(s);let l=require("react/jsx-runtime");var u=Object.defineProperty,d=(e,t)=>u(e,`name`,{value:t,configurable:!0}),[f,p]=r.t(`AlertDialog`,[a.l]),m=a.l(),h=d(e=>{let{__scopeAlertDialog:t,...n}=e,r=m(t);return(0,l.jsx)(a.t,{...r,...n,modal:!0})},`AlertDialog`),g=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=m(n);return(0,l.jsx)(a.c,{...i,...r,ref:t})},`AlertDialogTrigger`)),_=d(e=>{let{__scopeAlertDialog:t,...n}=e,r=m(t);return(0,l.jsx)(a.o,{...r,...n})},`AlertDialogPortal`),v=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=m(n);return(0,l.jsx)(a.a,{...i,...r,ref:t})},`AlertDialogOverlay`)),[y,b]=f(`AlertDialogContent`),x=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:r,children:o,...s}=e,u=m(r),d=n.a(t,c.useRef(null)),f=c.useRef(null);return(0,l.jsx)(y,{scope:r,cancelRef:f,children:(0,l.jsx)(a.r,{role:`alertdialog`,...u,...s,ref:d,onOpenAutoFocus:i.t(s.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},`AlertDialogContent`)),S=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=m(n);return(0,l.jsx)(a.s,{...i,...r,ref:t})},`AlertDialogTitle`)),C=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=m(n);return(0,l.jsx)(a.i,{...i,...r,ref:t})},`AlertDialogDescription`)),w=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=m(n);return(0,l.jsx)(a.n,{...i,...r,ref:t})},`AlertDialogAction`)),T=`AlertDialogCancel`,E=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:r,...i}=e,{cancelRef:o}=b(T,r),s=m(r),c=n.a(t,o);return(0,l.jsx)(a.n,{...s,...i,ref:c})},`AlertDialogCancel`)),D=h,O=g,k=_,A=v,j=x,M=w,N=E,P=S,F=C;function I({...e}){return(0,l.jsx)(D,{"data-slot":`alert-dialog`,...e})}function L({...e}){return(0,l.jsx)(O,{"data-slot":`alert-dialog-trigger`,...e})}function R({...e}){return(0,l.jsx)(k,{"data-slot":`alert-dialog-portal`,...e})}function z({className:e,...n}){return(0,l.jsx)(A,{"data-slot":`alert-dialog-overlay`,className:t.t(`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`,e),...n})}function B({className:e,size:n=`default`,...r}){return(0,l.jsxs)(R,{children:[(0,l.jsx)(z,{}),(0,l.jsx)(j,{"data-slot":`alert-dialog-content`,"data-size":n,className:t.t(`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`,e),...r})]})}function V({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:t.t(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...n})}function H({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:t.t(`bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...n})}function U({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:t.t(`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`,e),...n})}function W({className:e,...n}){return(0,l.jsx)(P,{"data-slot":`alert-dialog-title`,className:t.t(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...n})}function G({className:e,...n}){return(0,l.jsx)(F,{"data-slot":`alert-dialog-description`,className:t.t(`text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3`,e),...n})}function K({className:e,variant:n=`default`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(M,{"data-slot":`alert-dialog-action`,className:t.t(e),...i})})}function q({className:e,variant:n=`outline`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(N,{"data-slot":`alert-dialog-cancel`,className:t.t(e),...i})})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return R}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BoNQb2nd.js");let n=require("react");n=e.r(n,1);let r=require("react/jsx-runtime");var i=Object.defineProperty,a=n.forwardRef(((e,t)=>i(e,`name`,{value:t,configurable:!0}))(function(e,n){let{ratio:i=1/1,style:a,...o}=e;return(0,r.jsx)(`div`,{style:{position:`relative`,width:`100%`,paddingBottom:`${100/i}%`},"data-radix-aspect-ratio-wrapper":``,children:(0,r.jsx)(t.t.div,{...o,ref:n,style:{...a,position:`absolute`,top:0,right:0,bottom:0,left:0}})})},`AspectRatio`));function o({...e}){return(0,r.jsx)(a,{"data-slot":`aspect-ratio`,...e})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|